@altimateai/ui-components 0.0.77-beta.4 → 0.0.77-beta.6

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 (405) hide show
  1. package/dist/CoachForm.css +1 -1
  2. package/dist/CoachForm.js +62488 -24049
  3. package/dist/DbtDocsRenderer.js +1 -1
  4. package/dist/Stack.js +2826 -2276
  5. package/dist/Switch.js +128 -87
  6. package/dist/ToggleGroup.js +5956 -4781
  7. package/dist/_basePickBy.js +60 -60
  8. package/dist/_baseUniq.js +152 -152
  9. package/dist/abap.js +6 -0
  10. package/dist/actionscript-3.js +6 -0
  11. package/dist/ada.js +6 -0
  12. package/dist/andromeeda.js +4 -0
  13. package/dist/angular-html.js +32 -0
  14. package/dist/angular-ts.js +21 -0
  15. package/dist/apache.js +6 -0
  16. package/dist/apex.js +6 -0
  17. package/dist/apl.js +16 -0
  18. package/dist/applescript.js +6 -0
  19. package/dist/ara.js +6 -0
  20. package/dist/arc.js +53 -53
  21. package/dist/architectureDiagram-VXUJARFQ.js +480 -4315
  22. package/dist/architectureDiagram-VXUJARFQ2.js +831 -0
  23. package/dist/asciidoc.js +6 -0
  24. package/dist/asm.js +6 -0
  25. package/dist/assets/icons/index.js +1 -1
  26. package/dist/astro.js +18 -0
  27. package/dist/aurora-x.js +4 -0
  28. package/dist/awk.js +6 -0
  29. package/dist/ayu-dark.js +4 -0
  30. package/dist/ballerina.js +6 -0
  31. package/dist/band.js +46 -0
  32. package/dist/bat.js +6 -0
  33. package/dist/beancount.js +6 -0
  34. package/dist/berry.js +6 -0
  35. package/dist/bibtex.js +6 -0
  36. package/dist/bicep.js +6 -0
  37. package/dist/blade.js +20 -0
  38. package/dist/blockDiagram-VD42YOAC.js +1 -1
  39. package/dist/blockDiagram-VD42YOAC2.js +2266 -0
  40. package/dist/bsl.js +8 -0
  41. package/dist/c.js +6 -0
  42. package/dist/c3.js +6 -0
  43. package/dist/c4Diagram-YG6GDRKO.js +22 -22
  44. package/dist/c4Diagram-YG6GDRKO2.js +1582 -0
  45. package/dist/cadence.js +6 -0
  46. package/dist/cairo.js +8 -0
  47. package/dist/catppuccin-frappe.js +4 -0
  48. package/dist/catppuccin-latte.js +4 -0
  49. package/dist/catppuccin-macchiato.js +4 -0
  50. package/dist/catppuccin-mocha.js +4 -0
  51. package/dist/channel.js +2 -2
  52. package/dist/chatbotV2/index.d.ts +57 -19
  53. package/dist/chatbotV2/index.js +120 -56
  54. package/dist/chunk-4BX2VUAB.js +1 -1
  55. package/dist/chunk-4BX2VUAB2.js +9 -0
  56. package/dist/chunk-55IACEB6.js +2 -2
  57. package/dist/chunk-55IACEB62.js +9 -0
  58. package/dist/chunk-B4BG7PRW.js +1 -1
  59. package/dist/chunk-B4BG7PRW2.js +1377 -0
  60. package/dist/chunk-DI55MBZ5.js +14 -14
  61. package/dist/chunk-DI55MBZ52.js +1382 -0
  62. package/dist/chunk-FMBD7UC4.js +1 -1
  63. package/dist/chunk-FMBD7UC42.js +19 -0
  64. package/dist/chunk-QN33PNHL.js +5 -5
  65. package/dist/chunk-QN33PNHL2.js +20 -0
  66. package/dist/chunk-QZHKN3VN.js +1 -1
  67. package/dist/chunk-QZHKN3VN2.js +15 -0
  68. package/dist/chunk-TZMSLE5B.js +1 -1
  69. package/dist/chunk-TZMSLE5B2.js +64 -0
  70. package/dist/clarity.js +6 -0
  71. package/dist/classDiagram-2ON5EDUG.js +1 -1
  72. package/dist/classDiagram-2ON5EDUG2.js +17 -0
  73. package/dist/classDiagram-v2-WZHVMYZB.js +1 -1
  74. package/dist/classDiagram-v2-WZHVMYZB2.js +17 -0
  75. package/dist/clojure.js +6 -0
  76. package/dist/cmake.js +6 -0
  77. package/dist/cobol.js +10 -0
  78. package/dist/code-block-37QAKDTI.js +27 -0
  79. package/dist/codeowners.js +6 -0
  80. package/dist/codeql.js +6 -0
  81. package/dist/coffee.js +8 -0
  82. package/dist/common-lisp.js +6 -0
  83. package/dist/coq.js +6 -0
  84. package/dist/cose-bilkent-S5V4N54A.js +160 -2535
  85. package/dist/cose-bilkent-S5V4N54A2.js +231 -0
  86. package/dist/cpp.js +18 -0
  87. package/dist/crystal.js +18 -0
  88. package/dist/csharp.js +6 -0
  89. package/dist/css.js +6 -0
  90. package/dist/csv.js +6 -0
  91. package/dist/cue.js +6 -0
  92. package/dist/cypher.js +6 -0
  93. package/dist/cytoscape-cose-bilkent.js +2380 -0
  94. package/dist/cytoscape-fcose.js +3840 -0
  95. package/dist/d.js +6 -0
  96. package/dist/dagre-6UL2VRFP.js +44 -44
  97. package/dist/dagre-6UL2VRFP2.js +447 -0
  98. package/dist/dark-plus.js +4 -0
  99. package/dist/dart.js +6 -0
  100. package/dist/dax.js +6 -0
  101. package/dist/dayjs.min.js +2 -2
  102. package/dist/defaultLocale.js +3 -3
  103. package/dist/desktop.js +6 -0
  104. package/dist/diagram-PSM6KHXK.js +198 -414
  105. package/dist/diagram-PSM6KHXK2.js +319 -0
  106. package/dist/diagram-QEK2KX5R.js +26 -26
  107. package/dist/diagram-QEK2KX5R2.js +221 -0
  108. package/dist/diagram-S2PKOQOG.js +12 -12
  109. package/dist/diagram-S2PKOQOG2.js +143 -0
  110. package/dist/diff.js +6 -0
  111. package/dist/docker.js +6 -0
  112. package/dist/dotenv.js +6 -0
  113. package/dist/dracula-soft.js +4 -0
  114. package/dist/dracula.js +4 -0
  115. package/dist/dream-maker.js +6 -0
  116. package/dist/edge.js +12 -0
  117. package/dist/elixir.js +8 -0
  118. package/dist/elm.js +8 -0
  119. package/dist/emacs-lisp.js +6 -0
  120. package/dist/erDiagram-Q2GNP2WA.js +1 -1
  121. package/dist/erDiagram-Q2GNP2WA2.js +843 -0
  122. package/dist/erb.js +10 -0
  123. package/dist/erlang.js +8 -0
  124. package/dist/everforest-dark.js +4 -0
  125. package/dist/everforest-light.js +4 -0
  126. package/dist/fennel.js +6 -0
  127. package/dist/fish.js +6 -0
  128. package/dist/flowDiagram-NV44I4VS.js +6 -6
  129. package/dist/flowDiagram-NV44I4VS2.js +1628 -0
  130. package/dist/fluent.js +6 -0
  131. package/dist/fortran-fixed-form.js +8 -0
  132. package/dist/fortran-free-form.js +6 -0
  133. package/dist/fsharp.js +8 -0
  134. package/dist/ganttDiagram-JELNMOA3.js +1788 -0
  135. package/dist/ganttDiagram-LVOFAZNH.js +843 -1718
  136. package/dist/gdresource.js +10 -0
  137. package/dist/gdscript.js +6 -0
  138. package/dist/gdshader.js +6 -0
  139. package/dist/genie.js +6 -0
  140. package/dist/gherkin.js +6 -0
  141. package/dist/git-commit.js +8 -0
  142. package/dist/git-rebase.js +8 -0
  143. package/dist/gitGraphDiagram-NY62KEGX.js +13 -13
  144. package/dist/gitGraphDiagram-NY62KEGX2.js +713 -0
  145. package/dist/github-dark-default.js +4 -0
  146. package/dist/github-dark-dimmed.js +4 -0
  147. package/dist/github-dark-high-contrast.js +4 -0
  148. package/dist/github-dark.js +4 -0
  149. package/dist/github-light-default.js +4 -0
  150. package/dist/github-light-high-contrast.js +4 -0
  151. package/dist/github-light.js +4 -0
  152. package/dist/gleam.js +6 -0
  153. package/dist/glimmer-js.js +14 -0
  154. package/dist/glimmer-ts.js +14 -0
  155. package/dist/glsl.js +8 -0
  156. package/dist/gn.js +6 -0
  157. package/dist/gnuplot.js +6 -0
  158. package/dist/go.js +6 -0
  159. package/dist/graph.js +17 -18
  160. package/dist/graph2.js +246 -0
  161. package/dist/graphql.js +14 -0
  162. package/dist/groovy.js +6 -0
  163. package/dist/gruvbox-dark-hard.js +4 -0
  164. package/dist/gruvbox-dark-medium.js +4 -0
  165. package/dist/gruvbox-dark-soft.js +4 -0
  166. package/dist/gruvbox-light-hard.js +4 -0
  167. package/dist/gruvbox-light-medium.js +4 -0
  168. package/dist/gruvbox-light-soft.js +4 -0
  169. package/dist/hack.js +10 -0
  170. package/dist/haml.js +10 -0
  171. package/dist/handlebars.js +14 -0
  172. package/dist/haskell.js +6 -0
  173. package/dist/haxe.js +6 -0
  174. package/dist/hcl.js +6 -0
  175. package/dist/hjson.js +6 -0
  176. package/dist/hlsl.js +6 -0
  177. package/dist/houston.js +4 -0
  178. package/dist/html-derivative.js +8 -0
  179. package/dist/html.js +10 -0
  180. package/dist/http.js +14 -0
  181. package/dist/hurl.js +12 -0
  182. package/dist/hxml.js +8 -0
  183. package/dist/hy.js +6 -0
  184. package/dist/imba.js +6 -0
  185. package/dist/index.d.ts +2 -2
  186. package/dist/index.js +37 -37
  187. package/dist/index2.js +216 -684
  188. package/dist/index3.js +689 -0
  189. package/dist/infoDiagram-F6ZHWCRC.js +14 -14
  190. package/dist/infoDiagram-WHAUD3N6.js +24 -0
  191. package/dist/ini.js +6 -0
  192. package/dist/java.js +6 -0
  193. package/dist/javascript.js +6 -0
  194. package/dist/jinja.js +11 -0
  195. package/dist/jison.js +8 -0
  196. package/dist/journeyDiagram-XKPGCS4Q.js +1 -1
  197. package/dist/journeyDiagram-XKPGCS4Q2.js +837 -0
  198. package/dist/json.js +6 -0
  199. package/dist/json5.js +6 -0
  200. package/dist/jsonc.js +6 -0
  201. package/dist/jsonl.js +6 -0
  202. package/dist/jsonnet.js +6 -0
  203. package/dist/jssm.js +6 -0
  204. package/dist/jsx.js +6 -0
  205. package/dist/julia.js +16 -0
  206. package/dist/kanagawa-dragon.js +4 -0
  207. package/dist/kanagawa-lotus.js +4 -0
  208. package/dist/kanagawa-wave.js +4 -0
  209. package/dist/kanban-definition-3W4ZIXB7.js +42 -42
  210. package/dist/kanban-definition-3W4ZIXB72.js +720 -0
  211. package/dist/katex2.js +11691 -0
  212. package/dist/kdl.js +6 -0
  213. package/dist/kotlin.js +6 -0
  214. package/dist/kusto.js +6 -0
  215. package/dist/laserwave.js +4 -0
  216. package/dist/latex.js +8 -0
  217. package/dist/layout.js +567 -678
  218. package/dist/layout2.js +1224 -0
  219. package/dist/lean.js +6 -0
  220. package/dist/less.js +6 -0
  221. package/dist/light-plus.js +4 -0
  222. package/dist/lineage/index.js +1234 -1241
  223. package/dist/linear.js +1 -1
  224. package/dist/liquid.js +14 -0
  225. package/dist/llvm.js +6 -0
  226. package/dist/log.js +6 -0
  227. package/dist/logo.js +6 -0
  228. package/dist/lua.js +8 -0
  229. package/dist/luau.js +6 -0
  230. package/dist/main.css +1 -1
  231. package/dist/main.js +82 -82
  232. package/dist/make.js +6 -0
  233. package/dist/markdown.js +6 -0
  234. package/dist/marko.js +14 -0
  235. package/dist/material-theme-darker.js +4 -0
  236. package/dist/material-theme-lighter.js +4 -0
  237. package/dist/material-theme-ocean.js +4 -0
  238. package/dist/material-theme-palenight.js +4 -0
  239. package/dist/material-theme.js +4 -0
  240. package/dist/matlab.js +6 -0
  241. package/dist/mdc.js +12 -0
  242. package/dist/mdx.js +6 -0
  243. package/dist/mermaid-4DMBBIKO.js +4 -0
  244. package/dist/mermaid-parser.core.js +155 -155
  245. package/dist/mermaid.js +6 -0
  246. package/dist/min-dark.js +4 -0
  247. package/dist/min-light.js +4 -0
  248. package/dist/mindmap-definition-VGOIOE7T.js +28 -28
  249. package/dist/mindmap-definition-VGOIOE7T2.js +786 -0
  250. package/dist/mipsasm.js +6 -0
  251. package/dist/mojo.js +6 -0
  252. package/dist/monokai.js +4 -0
  253. package/dist/moonbit.js +6 -0
  254. package/dist/move.js +6 -0
  255. package/dist/narrat.js +6 -0
  256. package/dist/nextflow.js +6 -0
  257. package/dist/nginx.js +8 -0
  258. package/dist/night-owl.js +4 -0
  259. package/dist/nim.js +20 -0
  260. package/dist/nix.js +9 -0
  261. package/dist/nord.js +4 -0
  262. package/dist/nushell.js +6 -0
  263. package/dist/objective-c.js +6 -0
  264. package/dist/objective-cpp.js +6 -0
  265. package/dist/ocaml.js +6 -0
  266. package/dist/one-dark-pro.js +4 -0
  267. package/dist/one-light.js +4 -0
  268. package/dist/openscad.js +6 -0
  269. package/dist/pascal.js +6 -0
  270. package/dist/perl.js +16 -0
  271. package/dist/php.js +18 -0
  272. package/dist/pie.js +45 -0
  273. package/dist/pieDiagram-ADFJNKIX.js +68 -108
  274. package/dist/pieDiagram-ADFJNKIX2.js +123 -0
  275. package/dist/pkl.js +6 -0
  276. package/dist/plastic.js +4 -0
  277. package/dist/plsql.js +6 -0
  278. package/dist/po.js +6 -0
  279. package/dist/poimandres.js +4 -0
  280. package/dist/polar.js +6 -0
  281. package/dist/postcss.js +6 -0
  282. package/dist/powerquery.js +6 -0
  283. package/dist/powershell.js +6 -0
  284. package/dist/prisma.js +6 -0
  285. package/dist/prolog.js +6 -0
  286. package/dist/proto.js +6 -0
  287. package/dist/pug.js +12 -0
  288. package/dist/puppet.js +6 -0
  289. package/dist/purescript.js +6 -0
  290. package/dist/python.js +6 -0
  291. package/dist/qml.js +8 -0
  292. package/dist/qmldir.js +6 -0
  293. package/dist/qss.js +6 -0
  294. package/dist/quadrantDiagram-AYHSOK5B.js +1 -1
  295. package/dist/quadrantDiagram-AYHSOK5B2.js +1025 -0
  296. package/dist/r.js +6 -0
  297. package/dist/racket.js +6 -0
  298. package/dist/raku.js +6 -0
  299. package/dist/razor.js +10 -0
  300. package/dist/red.js +4 -0
  301. package/dist/redux-toolkit.modern.js +563 -555
  302. package/dist/reg.js +6 -0
  303. package/dist/regexp.js +6 -0
  304. package/dist/rel.js +6 -0
  305. package/dist/requirementDiagram-UZGBJVZJ.js +14 -14
  306. package/dist/requirementDiagram-UZGBJVZJ2.js +852 -0
  307. package/dist/riscv.js +6 -0
  308. package/dist/rose-pine-dawn.js +4 -0
  309. package/dist/rose-pine-moon.js +4 -0
  310. package/dist/rose-pine.js +4 -0
  311. package/dist/rosmsg.js +6 -0
  312. package/dist/rst.js +22 -0
  313. package/dist/ruby.js +30 -0
  314. package/dist/rust.js +6 -0
  315. package/dist/sankeyDiagram-TZEHDZUN.js +229 -622
  316. package/dist/sankeyDiagram-TZEHDZUN2.js +418 -0
  317. package/dist/sankeyLinkHorizontal.js +403 -0
  318. package/dist/sas.js +8 -0
  319. package/dist/sass.js +6 -0
  320. package/dist/scala.js +6 -0
  321. package/dist/scheme.js +6 -0
  322. package/dist/scss.js +8 -0
  323. package/dist/sdbl.js +6 -0
  324. package/dist/sequenceDiagram-WL72ISMW.js +1 -1
  325. package/dist/sequenceDiagram-WL72ISMW2.js +2523 -0
  326. package/dist/shadcn/index.d.ts +24 -40
  327. package/dist/shadcn/index.js +7330 -5516
  328. package/dist/shaderlab.js +8 -0
  329. package/dist/shellscript.js +6 -0
  330. package/dist/shellsession.js +8 -0
  331. package/dist/slack-dark.js +4 -0
  332. package/dist/slack-ochin.js +4 -0
  333. package/dist/smalltalk.js +6 -0
  334. package/dist/snazzy-light.js +4 -0
  335. package/dist/solarized-dark.js +4 -0
  336. package/dist/solarized-light.js +4 -0
  337. package/dist/solidity.js +6 -0
  338. package/dist/soy.js +8 -0
  339. package/dist/sparql.js +8 -0
  340. package/dist/splunk.js +6 -0
  341. package/dist/sql.js +6 -0
  342. package/dist/ssh-config.js +6 -0
  343. package/dist/stata.js +8 -0
  344. package/dist/stateDiagram-FKZM4ZOC.js +33 -33
  345. package/dist/stateDiagram-FKZM4ZOC2.js +264 -0
  346. package/dist/stateDiagram-v2-4FDKWEC3.js +6 -6
  347. package/dist/stateDiagram-v2-4FDKWEC32.js +17 -0
  348. package/dist/storybook/Typography.stories.tsx +93 -120
  349. package/dist/stylus.js +6 -0
  350. package/dist/svelte.js +14 -0
  351. package/dist/swift.js +6 -0
  352. package/dist/synthwave-84.js +4 -0
  353. package/dist/system-verilog.js +6 -0
  354. package/dist/systemd.js +6 -0
  355. package/dist/talonscript.js +6 -0
  356. package/dist/tasl.js +6 -0
  357. package/dist/tcl.js +6 -0
  358. package/dist/templ.js +12 -0
  359. package/dist/terraform.js +6 -0
  360. package/dist/tex.js +8 -0
  361. package/dist/time.js +900 -0
  362. package/dist/timeline-definition-IT6M3QCI.js +63 -63
  363. package/dist/timeline-definition-IT6M3QCI2.js +802 -0
  364. package/dist/tokyo-night.js +4 -0
  365. package/dist/toml.js +6 -0
  366. package/dist/ts-tags.js +41 -0
  367. package/dist/tsv.js +6 -0
  368. package/dist/tsx.js +6 -0
  369. package/dist/turtle.js +6 -0
  370. package/dist/twig.js +18 -0
  371. package/dist/{types-ByRPUpXR.d.ts → types-BZH4Xw79.d.ts} +1 -1
  372. package/dist/typescript.js +6 -0
  373. package/dist/typespec.js +6 -0
  374. package/dist/typst.js +6 -0
  375. package/dist/union.js +8 -0
  376. package/dist/v.js +6 -0
  377. package/dist/vala.js +6 -0
  378. package/dist/vb.js +6 -0
  379. package/dist/verilog.js +6 -0
  380. package/dist/vesper.js +4 -0
  381. package/dist/vhdl.js +6 -0
  382. package/dist/viml.js +6 -0
  383. package/dist/vitesse-black.js +4 -0
  384. package/dist/vitesse-dark.js +4 -0
  385. package/dist/vitesse-light.js +4 -0
  386. package/dist/vue-html.js +8 -0
  387. package/dist/vue-vine.js +18 -0
  388. package/dist/vue.js +31 -0
  389. package/dist/vyper.js +6 -0
  390. package/dist/wasm.js +6 -0
  391. package/dist/wasm2.js +7 -0
  392. package/dist/wenyan.js +6 -0
  393. package/dist/wgsl.js +6 -0
  394. package/dist/wikitext.js +6 -0
  395. package/dist/wit.js +6 -0
  396. package/dist/wolfram.js +6 -0
  397. package/dist/xml.js +8 -0
  398. package/dist/xsl.js +8 -0
  399. package/dist/xychartDiagram-PRI3JC2R.js +449 -491
  400. package/dist/xychartDiagram-PRI3JC2R2.js +1299 -0
  401. package/dist/yaml.js +6 -0
  402. package/dist/zenscript.js +6 -0
  403. package/dist/zig.js +6 -0
  404. package/dist/zipObject.js +128 -0
  405. package/package.json +1 -1
@@ -1,220 +1,178 @@
1
- import { a1 as a, bv as gi, ad as Xt, aJ as Wt, aB as xi, aw as St, av as Nt, au as di, ac as fi, ah as Yt, a3 as pi, a4 as mi, ag as yi, a5 as bi, a6 as Ai, an as wi, az as Ci, ae as Si } from "./CoachForm.js";
1
+ import { _ as n, M as gi, l as Xt, N as Bt, L as xi, E as Ct, D as Nt, C as di, i as pi, n as Yt, s as fi, g as yi, m as mi, b as bi, c as Ai, r as wi, H as Ci, j as Si } from "./CoachForm.js";
2
2
  import "./redux-toolkit.modern.js";
3
- import { i as _i } from "./init.js";
4
- import { o as ki } from "./ordinal.js";
3
+ import { b as Wt } from "./band.js";
5
4
  import { l as zt } from "./linear.js";
6
- function Ri(e, t, i) {
7
- e = +e, t = +t, i = (n = arguments.length) < 2 ? (t = e, e = 0, 1) : n < 3 ? 1 : +i;
8
- for (var s = -1, n = Math.max(0, Math.ceil((t - e) / i)) | 0, o = new Array(n); ++s < n; )
9
- o[s] = e + s * i;
10
- return o;
11
- }
12
- function yt() {
13
- var e = ki().unknown(void 0), t = e.domain, i = e.range, s = 0, n = 1, o, g, m = !1, p = 0, k = 0, v = 0.5;
14
- delete e.unknown;
15
- function C() {
16
- var b = t().length, E = n < s, D = E ? n : s, P = E ? s : n;
17
- o = (P - D) / Math.max(1, b - p + k * 2), m && (o = Math.floor(o)), D += (P - D - o * (b - p)) * v, g = o * (1 - p), m && (D = Math.round(D), g = Math.round(g));
18
- var I = Ri(b).map(function(y) {
19
- return D + o * y;
20
- });
21
- return i(E ? I.reverse() : I);
22
- }
23
- return e.domain = function(b) {
24
- return arguments.length ? (t(b), C()) : t();
25
- }, e.range = function(b) {
26
- return arguments.length ? ([s, n] = b, s = +s, n = +n, C()) : [s, n];
27
- }, e.rangeRound = function(b) {
28
- return [s, n] = b, s = +s, n = +n, m = !0, C();
29
- }, e.bandwidth = function() {
30
- return g;
31
- }, e.step = function() {
32
- return o;
33
- }, e.round = function(b) {
34
- return arguments.length ? (m = !!b, C()) : m;
35
- }, e.padding = function(b) {
36
- return arguments.length ? (p = Math.min(1, k = +b), C()) : p;
37
- }, e.paddingInner = function(b) {
38
- return arguments.length ? (p = Math.min(1, b), C()) : p;
39
- }, e.paddingOuter = function(b) {
40
- return arguments.length ? (k = +b, C()) : k;
41
- }, e.align = function(b) {
42
- return arguments.length ? (v = Math.max(0, Math.min(1, b)), C()) : v;
43
- }, e.copy = function() {
44
- return yt(t(), [s, n]).round(m).paddingInner(p).paddingOuter(k).align(v);
45
- }, _i.apply(C(), arguments);
46
- }
47
- var bt = function() {
48
- var e = /* @__PURE__ */ a(function(O, h, u, x) {
49
- for (u = u || {}, x = O.length; x--; u[O[x]] = h) ;
5
+ var mt = function() {
6
+ var s = /* @__PURE__ */ n(function(W, r, u, g) {
7
+ for (u = u || {}, g = W.length; g--; u[W[g]] = r) ;
50
8
  return u;
51
- }, "o"), t = [1, 10, 12, 14, 16, 18, 19, 21, 23], i = [2, 6], s = [1, 3], n = [1, 5], o = [1, 6], g = [1, 7], m = [1, 5, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], p = [1, 25], k = [1, 26], v = [1, 28], C = [1, 29], b = [1, 30], E = [1, 31], D = [1, 32], P = [1, 33], I = [1, 34], y = [1, 35], _ = [1, 36], c = [1, 37], W = [1, 43], z = [1, 42], U = [1, 47], X = [1, 50], l = [1, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], L = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36], S = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50], R = [1, 64], $ = {
52
- trace: /* @__PURE__ */ a(function() {
9
+ }, "o"), t = [1, 10, 12, 14, 16, 18, 19, 21, 23], i = [2, 6], e = [1, 3], a = [1, 5], c = [1, 6], d = [1, 7], m = [1, 5, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], b = [1, 25], P = [1, 26], I = [1, 28], R = [1, 29], L = [1, 30], z = [1, 31], F = [1, 32], D = [1, 33], V = [1, 34], f = [1, 35], C = [1, 36], l = [1, 37], M = [1, 43], B = [1, 42], U = [1, 47], X = [1, 50], h = [1, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], k = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36], w = [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], S = [1, 64], $ = {
10
+ trace: /* @__PURE__ */ n(function() {
53
11
  }, "trace"),
54
12
  yy: {},
55
13
  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 },
56
14
  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" },
57
15
  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]],
58
- performAction: /* @__PURE__ */ a(function(h, u, x, d, w, r, at) {
59
- var f = r.length - 1;
60
- switch (w) {
16
+ performAction: /* @__PURE__ */ n(function(r, u, g, x, A, o, nt) {
17
+ var p = o.length - 1;
18
+ switch (A) {
61
19
  case 5:
62
- d.setOrientation(r[f]);
20
+ x.setOrientation(o[p]);
63
21
  break;
64
22
  case 9:
65
- d.setDiagramTitle(r[f].text.trim());
23
+ x.setDiagramTitle(o[p].text.trim());
66
24
  break;
67
25
  case 12:
68
- d.setLineData({ text: "", type: "text" }, r[f]);
26
+ x.setLineData({ text: "", type: "text" }, o[p]);
69
27
  break;
70
28
  case 13:
71
- d.setLineData(r[f - 1], r[f]);
29
+ x.setLineData(o[p - 1], o[p]);
72
30
  break;
73
31
  case 14:
74
- d.setBarData({ text: "", type: "text" }, r[f]);
32
+ x.setBarData({ text: "", type: "text" }, o[p]);
75
33
  break;
76
34
  case 15:
77
- d.setBarData(r[f - 1], r[f]);
35
+ x.setBarData(o[p - 1], o[p]);
78
36
  break;
79
37
  case 16:
80
- this.$ = r[f].trim(), d.setAccTitle(this.$);
38
+ this.$ = o[p].trim(), x.setAccTitle(this.$);
81
39
  break;
82
40
  case 17:
83
41
  case 18:
84
- this.$ = r[f].trim(), d.setAccDescription(this.$);
42
+ this.$ = o[p].trim(), x.setAccDescription(this.$);
85
43
  break;
86
44
  case 19:
87
- this.$ = r[f - 1];
45
+ this.$ = o[p - 1];
88
46
  break;
89
47
  case 20:
90
- this.$ = [Number(r[f - 2]), ...r[f]];
48
+ this.$ = [Number(o[p - 2]), ...o[p]];
91
49
  break;
92
50
  case 21:
93
- this.$ = [Number(r[f])];
51
+ this.$ = [Number(o[p])];
94
52
  break;
95
53
  case 22:
96
- d.setXAxisTitle(r[f]);
54
+ x.setXAxisTitle(o[p]);
97
55
  break;
98
56
  case 23:
99
- d.setXAxisTitle(r[f - 1]);
57
+ x.setXAxisTitle(o[p - 1]);
100
58
  break;
101
59
  case 24:
102
- d.setXAxisTitle({ type: "text", text: "" });
60
+ x.setXAxisTitle({ type: "text", text: "" });
103
61
  break;
104
62
  case 25:
105
- d.setXAxisBand(r[f]);
63
+ x.setXAxisBand(o[p]);
106
64
  break;
107
65
  case 26:
108
- d.setXAxisRangeData(Number(r[f - 2]), Number(r[f]));
66
+ x.setXAxisRangeData(Number(o[p - 2]), Number(o[p]));
109
67
  break;
110
68
  case 27:
111
- this.$ = r[f - 1];
69
+ this.$ = o[p - 1];
112
70
  break;
113
71
  case 28:
114
- this.$ = [r[f - 2], ...r[f]];
72
+ this.$ = [o[p - 2], ...o[p]];
115
73
  break;
116
74
  case 29:
117
- this.$ = [r[f]];
75
+ this.$ = [o[p]];
118
76
  break;
119
77
  case 30:
120
- d.setYAxisTitle(r[f]);
78
+ x.setYAxisTitle(o[p]);
121
79
  break;
122
80
  case 31:
123
- d.setYAxisTitle(r[f - 1]);
81
+ x.setYAxisTitle(o[p - 1]);
124
82
  break;
125
83
  case 32:
126
- d.setYAxisTitle({ type: "text", text: "" });
84
+ x.setYAxisTitle({ type: "text", text: "" });
127
85
  break;
128
86
  case 33:
129
- d.setYAxisRangeData(Number(r[f - 2]), Number(r[f]));
87
+ x.setYAxisRangeData(Number(o[p - 2]), Number(o[p]));
130
88
  break;
131
89
  case 37:
132
- this.$ = { text: r[f], type: "text" };
90
+ this.$ = { text: o[p], type: "text" };
133
91
  break;
134
92
  case 38:
135
- this.$ = { text: r[f], type: "text" };
93
+ this.$ = { text: o[p], type: "text" };
136
94
  break;
137
95
  case 39:
138
- this.$ = { text: r[f], type: "markdown" };
96
+ this.$ = { text: o[p], type: "markdown" };
139
97
  break;
140
98
  case 40:
141
- this.$ = r[f];
99
+ this.$ = o[p];
142
100
  break;
143
101
  case 41:
144
- this.$ = r[f - 1] + "" + r[f];
102
+ this.$ = o[p - 1] + "" + o[p];
145
103
  break;
146
104
  }
147
105
  }, "anonymous"),
148
- table: [e(t, i, { 3: 1, 4: 2, 7: 4, 5: s, 34: n, 35: o, 36: g }), { 1: [3] }, e(t, i, { 4: 2, 7: 4, 3: 8, 5: s, 34: n, 35: o, 36: g }), e(t, i, { 4: 2, 7: 4, 6: 9, 3: 10, 5: s, 8: [1, 11], 34: n, 35: o, 36: g }), { 1: [2, 4], 9: 12, 10: [1, 13], 12: [1, 14], 14: [1, 15], 16: [1, 16], 18: [1, 17], 19: [1, 18], 21: [1, 19], 23: [1, 20] }, e(m, [2, 34]), e(m, [2, 35]), e(m, [2, 36]), { 1: [2, 1] }, e(t, i, { 4: 2, 7: 4, 3: 21, 5: s, 34: n, 35: o, 36: g }), { 1: [2, 3] }, e(m, [2, 5]), e(t, [2, 7], { 4: 22, 34: n, 35: o, 36: g }), { 11: 23, 37: 24, 38: p, 39: k, 40: 27, 41: v, 42: C, 43: b, 44: E, 45: D, 46: P, 47: I, 48: y, 49: _, 50: c }, { 11: 39, 13: 38, 24: W, 27: z, 29: 40, 30: 41, 37: 24, 38: p, 39: k, 40: 27, 41: v, 42: C, 43: b, 44: E, 45: D, 46: P, 47: I, 48: y, 49: _, 50: c }, { 11: 45, 15: 44, 27: U, 33: 46, 37: 24, 38: p, 39: k, 40: 27, 41: v, 42: C, 43: b, 44: E, 45: D, 46: P, 47: I, 48: y, 49: _, 50: c }, { 11: 49, 17: 48, 24: X, 37: 24, 38: p, 39: k, 40: 27, 41: v, 42: C, 43: b, 44: E, 45: D, 46: P, 47: I, 48: y, 49: _, 50: c }, { 11: 52, 17: 51, 24: X, 37: 24, 38: p, 39: k, 40: 27, 41: v, 42: C, 43: b, 44: E, 45: D, 46: P, 47: I, 48: y, 49: _, 50: c }, { 20: [1, 53] }, { 22: [1, 54] }, e(l, [2, 18]), { 1: [2, 2] }, e(l, [2, 8]), e(l, [2, 9]), e(L, [2, 37], { 40: 55, 41: v, 42: C, 43: b, 44: E, 45: D, 46: P, 47: I, 48: y, 49: _, 50: c }), e(L, [2, 38]), e(L, [2, 39]), e(S, [2, 40]), e(S, [2, 42]), e(S, [2, 43]), e(S, [2, 44]), e(S, [2, 45]), e(S, [2, 46]), e(S, [2, 47]), e(S, [2, 48]), e(S, [2, 49]), e(S, [2, 50]), e(S, [2, 51]), e(l, [2, 10]), e(l, [2, 22], { 30: 41, 29: 56, 24: W, 27: z }), e(l, [2, 24]), e(l, [2, 25]), { 31: [1, 57] }, { 11: 59, 32: 58, 37: 24, 38: p, 39: k, 40: 27, 41: v, 42: C, 43: b, 44: E, 45: D, 46: P, 47: I, 48: y, 49: _, 50: c }, e(l, [2, 11]), e(l, [2, 30], { 33: 60, 27: U }), e(l, [2, 32]), { 31: [1, 61] }, e(l, [2, 12]), { 17: 62, 24: X }, { 25: 63, 27: R }, e(l, [2, 14]), { 17: 65, 24: X }, e(l, [2, 16]), e(l, [2, 17]), e(S, [2, 41]), e(l, [2, 23]), { 27: [1, 66] }, { 26: [1, 67] }, { 26: [2, 29], 28: [1, 68] }, e(l, [2, 31]), { 27: [1, 69] }, e(l, [2, 13]), { 26: [1, 70] }, { 26: [2, 21], 28: [1, 71] }, e(l, [2, 15]), e(l, [2, 26]), e(l, [2, 27]), { 11: 59, 32: 72, 37: 24, 38: p, 39: k, 40: 27, 41: v, 42: C, 43: b, 44: E, 45: D, 46: P, 47: I, 48: y, 49: _, 50: c }, e(l, [2, 33]), e(l, [2, 19]), { 25: 73, 27: R }, { 26: [2, 28] }, { 26: [2, 20] }],
106
+ table: [s(t, i, { 3: 1, 4: 2, 7: 4, 5: e, 34: a, 35: c, 36: d }), { 1: [3] }, s(t, i, { 4: 2, 7: 4, 3: 8, 5: e, 34: a, 35: c, 36: d }), s(t, i, { 4: 2, 7: 4, 6: 9, 3: 10, 5: e, 8: [1, 11], 34: a, 35: c, 36: d }), { 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] }, s(m, [2, 34]), s(m, [2, 35]), s(m, [2, 36]), { 1: [2, 1] }, s(t, i, { 4: 2, 7: 4, 3: 21, 5: e, 34: a, 35: c, 36: d }), { 1: [2, 3] }, s(m, [2, 5]), s(t, [2, 7], { 4: 22, 34: a, 35: c, 36: d }), { 11: 23, 37: 24, 38: b, 39: P, 40: 27, 41: I, 42: R, 43: L, 44: z, 45: F, 46: D, 47: V, 48: f, 49: C, 50: l }, { 11: 39, 13: 38, 24: M, 27: B, 29: 40, 30: 41, 37: 24, 38: b, 39: P, 40: 27, 41: I, 42: R, 43: L, 44: z, 45: F, 46: D, 47: V, 48: f, 49: C, 50: l }, { 11: 45, 15: 44, 27: U, 33: 46, 37: 24, 38: b, 39: P, 40: 27, 41: I, 42: R, 43: L, 44: z, 45: F, 46: D, 47: V, 48: f, 49: C, 50: l }, { 11: 49, 17: 48, 24: X, 37: 24, 38: b, 39: P, 40: 27, 41: I, 42: R, 43: L, 44: z, 45: F, 46: D, 47: V, 48: f, 49: C, 50: l }, { 11: 52, 17: 51, 24: X, 37: 24, 38: b, 39: P, 40: 27, 41: I, 42: R, 43: L, 44: z, 45: F, 46: D, 47: V, 48: f, 49: C, 50: l }, { 20: [1, 53] }, { 22: [1, 54] }, s(h, [2, 18]), { 1: [2, 2] }, s(h, [2, 8]), s(h, [2, 9]), s(k, [2, 37], { 40: 55, 41: I, 42: R, 43: L, 44: z, 45: F, 46: D, 47: V, 48: f, 49: C, 50: l }), s(k, [2, 38]), s(k, [2, 39]), s(w, [2, 40]), s(w, [2, 42]), s(w, [2, 43]), s(w, [2, 44]), s(w, [2, 45]), s(w, [2, 46]), s(w, [2, 47]), s(w, [2, 48]), s(w, [2, 49]), s(w, [2, 50]), s(w, [2, 51]), s(h, [2, 10]), s(h, [2, 22], { 30: 41, 29: 56, 24: M, 27: B }), s(h, [2, 24]), s(h, [2, 25]), { 31: [1, 57] }, { 11: 59, 32: 58, 37: 24, 38: b, 39: P, 40: 27, 41: I, 42: R, 43: L, 44: z, 45: F, 46: D, 47: V, 48: f, 49: C, 50: l }, s(h, [2, 11]), s(h, [2, 30], { 33: 60, 27: U }), s(h, [2, 32]), { 31: [1, 61] }, s(h, [2, 12]), { 17: 62, 24: X }, { 25: 63, 27: S }, s(h, [2, 14]), { 17: 65, 24: X }, s(h, [2, 16]), s(h, [2, 17]), s(w, [2, 41]), s(h, [2, 23]), { 27: [1, 66] }, { 26: [1, 67] }, { 26: [2, 29], 28: [1, 68] }, s(h, [2, 31]), { 27: [1, 69] }, s(h, [2, 13]), { 26: [1, 70] }, { 26: [2, 21], 28: [1, 71] }, s(h, [2, 15]), s(h, [2, 26]), s(h, [2, 27]), { 11: 59, 32: 72, 37: 24, 38: b, 39: P, 40: 27, 41: I, 42: R, 43: L, 44: z, 45: F, 46: D, 47: V, 48: f, 49: C, 50: l }, s(h, [2, 33]), s(h, [2, 19]), { 25: 73, 27: S }, { 26: [2, 28] }, { 26: [2, 20] }],
149
107
  defaultActions: { 8: [2, 1], 10: [2, 3], 21: [2, 2], 72: [2, 28], 73: [2, 20] },
150
- parseError: /* @__PURE__ */ a(function(h, u) {
108
+ parseError: /* @__PURE__ */ n(function(r, u) {
151
109
  if (u.recoverable)
152
- this.trace(h);
110
+ this.trace(r);
153
111
  else {
154
- var x = new Error(h);
155
- throw x.hash = u, x;
112
+ var g = new Error(r);
113
+ throw g.hash = u, g;
156
114
  }
157
115
  }, "parseError"),
158
- parse: /* @__PURE__ */ a(function(h) {
159
- var u = this, x = [0], d = [], w = [null], r = [], at = this.table, f = "", lt = 0, It = 0, hi = 2, Mt = 1, li = r.slice.call(arguments, 1), T = Object.create(this.lexer), Y = { yy: {} };
116
+ parse: /* @__PURE__ */ n(function(r) {
117
+ var u = this, g = [0], x = [], A = [null], o = [], nt = this.table, p = "", lt = 0, Et = 0, hi = 2, It = 1, li = o.slice.call(arguments, 1), _ = Object.create(this.lexer), Y = { yy: {} };
160
118
  for (var dt in this.yy)
161
119
  Object.prototype.hasOwnProperty.call(this.yy, dt) && (Y.yy[dt] = this.yy[dt]);
162
- T.setInput(h, Y.yy), Y.yy.lexer = T, Y.yy.parser = this, typeof T.yylloc > "u" && (T.yylloc = {});
163
- var ft = T.yylloc;
164
- r.push(ft);
165
- var ci = T.options && T.options.ranges;
120
+ _.setInput(r, Y.yy), Y.yy.lexer = _, Y.yy.parser = this, typeof _.yylloc > "u" && (_.yylloc = {});
121
+ var pt = _.yylloc;
122
+ o.push(pt);
123
+ var ci = _.options && _.options.ranges;
166
124
  typeof Y.yy.parseError == "function" ? this.parseError = Y.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
167
- function ui(V) {
168
- x.length = x.length - 2 * V, w.length = w.length - V, r.length = r.length - V;
125
+ function ui(v) {
126
+ g.length = g.length - 2 * v, A.length = A.length - v, o.length = o.length - v;
169
127
  }
170
- a(ui, "popStack");
128
+ n(ui, "popStack");
171
129
  function Vt() {
172
- var V;
173
- return V = d.pop() || T.lex() || Mt, typeof V != "number" && (V instanceof Array && (d = V, V = d.pop()), V = u.symbols_[V] || V), V;
130
+ var v;
131
+ return v = x.pop() || _.lex() || It, typeof v != "number" && (v instanceof Array && (x = v, v = x.pop()), v = u.symbols_[v] || v), v;
174
132
  }
175
- a(Vt, "lex");
176
- for (var M, H, B, pt, q = {}, ct, F, Bt, ut; ; ) {
177
- if (H = x[x.length - 1], this.defaultActions[H] ? B = this.defaultActions[H] : ((M === null || typeof M > "u") && (M = Vt()), B = at[H] && at[H][M]), typeof B > "u" || !B.length || !B[0]) {
178
- var mt = "";
133
+ n(Vt, "lex");
134
+ for (var T, H, E, ft, j = {}, ct, O, Mt, ut; ; ) {
135
+ if (H = g[g.length - 1], this.defaultActions[H] ? E = this.defaultActions[H] : ((T === null || typeof T > "u") && (T = Vt()), E = nt[H] && nt[H][T]), typeof E > "u" || !E.length || !E[0]) {
136
+ var yt = "";
179
137
  ut = [];
180
- for (ct in at[H])
138
+ for (ct in nt[H])
181
139
  this.terminals_[ct] && ct > hi && ut.push("'" + this.terminals_[ct] + "'");
182
- T.showPosition ? mt = "Parse error on line " + (lt + 1) + `:
183
- ` + T.showPosition() + `
184
- Expecting ` + ut.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : mt = "Parse error on line " + (lt + 1) + ": Unexpected " + (M == Mt ? "end of input" : "'" + (this.terminals_[M] || M) + "'"), this.parseError(mt, {
185
- text: T.match,
186
- token: this.terminals_[M] || M,
187
- line: T.yylineno,
188
- loc: ft,
140
+ _.showPosition ? yt = "Parse error on line " + (lt + 1) + `:
141
+ ` + _.showPosition() + `
142
+ Expecting ` + ut.join(", ") + ", got '" + (this.terminals_[T] || T) + "'" : yt = "Parse error on line " + (lt + 1) + ": Unexpected " + (T == It ? "end of input" : "'" + (this.terminals_[T] || T) + "'"), this.parseError(yt, {
143
+ text: _.match,
144
+ token: this.terminals_[T] || T,
145
+ line: _.yylineno,
146
+ loc: pt,
189
147
  expected: ut
190
148
  });
191
149
  }
192
- if (B[0] instanceof Array && B.length > 1)
193
- throw new Error("Parse Error: multiple actions possible at state: " + H + ", token: " + M);
194
- switch (B[0]) {
150
+ if (E[0] instanceof Array && E.length > 1)
151
+ throw new Error("Parse Error: multiple actions possible at state: " + H + ", token: " + T);
152
+ switch (E[0]) {
195
153
  case 1:
196
- x.push(M), w.push(T.yytext), r.push(T.yylloc), x.push(B[1]), M = null, It = T.yyleng, f = T.yytext, lt = T.yylineno, ft = T.yylloc;
154
+ g.push(T), A.push(_.yytext), o.push(_.yylloc), g.push(E[1]), T = null, Et = _.yyleng, p = _.yytext, lt = _.yylineno, pt = _.yylloc;
197
155
  break;
198
156
  case 2:
199
- if (F = this.productions_[B[1]][1], q.$ = w[w.length - F], q._$ = {
200
- first_line: r[r.length - (F || 1)].first_line,
201
- last_line: r[r.length - 1].last_line,
202
- first_column: r[r.length - (F || 1)].first_column,
203
- last_column: r[r.length - 1].last_column
204
- }, ci && (q._$.range = [
205
- r[r.length - (F || 1)].range[0],
206
- r[r.length - 1].range[1]
207
- ]), pt = this.performAction.apply(q, [
208
- f,
209
- It,
157
+ if (O = this.productions_[E[1]][1], j.$ = A[A.length - O], j._$ = {
158
+ first_line: o[o.length - (O || 1)].first_line,
159
+ last_line: o[o.length - 1].last_line,
160
+ first_column: o[o.length - (O || 1)].first_column,
161
+ last_column: o[o.length - 1].last_column
162
+ }, ci && (j._$.range = [
163
+ o[o.length - (O || 1)].range[0],
164
+ o[o.length - 1].range[1]
165
+ ]), ft = this.performAction.apply(j, [
166
+ p,
167
+ Et,
210
168
  lt,
211
169
  Y.yy,
212
- B[1],
213
- w,
214
- r
215
- ].concat(li)), typeof pt < "u")
216
- return pt;
217
- F && (x = x.slice(0, -1 * F * 2), w = w.slice(0, -1 * F), r = r.slice(0, -1 * F)), x.push(this.productions_[B[1]][0]), w.push(q.$), r.push(q._$), Bt = at[x[x.length - 2]][x[x.length - 1]], x.push(Bt);
170
+ E[1],
171
+ A,
172
+ o
173
+ ].concat(li)), typeof ft < "u")
174
+ return ft;
175
+ O && (g = g.slice(0, -1 * O * 2), A = A.slice(0, -1 * O), o = o.slice(0, -1 * O)), g.push(this.productions_[E[1]][0]), A.push(j.$), o.push(j._$), Mt = nt[g[g.length - 2]][g[g.length - 1]], g.push(Mt);
218
176
  break;
219
177
  case 3:
220
178
  return !0;
@@ -222,18 +180,18 @@ Expecting ` + ut.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : mt =
222
180
  }
223
181
  return !0;
224
182
  }, "parse")
225
- }, Et = /* @__PURE__ */ function() {
226
- var O = {
183
+ }, Lt = /* @__PURE__ */ function() {
184
+ var W = {
227
185
  EOF: 1,
228
- parseError: /* @__PURE__ */ a(function(u, x) {
186
+ parseError: /* @__PURE__ */ n(function(u, g) {
229
187
  if (this.yy.parser)
230
- this.yy.parser.parseError(u, x);
188
+ this.yy.parser.parseError(u, g);
231
189
  else
232
190
  throw new Error(u);
233
191
  }, "parseError"),
234
192
  // resets the lexer, sets new input
235
- setInput: /* @__PURE__ */ a(function(h, u) {
236
- return this.yy = u || this.yy || {}, this._input = h, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
193
+ setInput: /* @__PURE__ */ n(function(r, u) {
194
+ return this.yy = u || 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 = {
237
195
  first_line: 1,
238
196
  first_column: 0,
239
197
  last_line: 1,
@@ -241,32 +199,32 @@ Expecting ` + ut.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : mt =
241
199
  }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
242
200
  }, "setInput"),
243
201
  // consumes and returns one char from the input
244
- input: /* @__PURE__ */ a(function() {
245
- var h = this._input[0];
246
- this.yytext += h, this.yyleng++, this.offset++, this.match += h, this.matched += h;
247
- var u = h.match(/(?:\r\n?|\n).*/g);
248
- return u ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), h;
202
+ input: /* @__PURE__ */ n(function() {
203
+ var r = this._input[0];
204
+ this.yytext += r, this.yyleng++, this.offset++, this.match += r, this.matched += r;
205
+ var u = r.match(/(?:\r\n?|\n).*/g);
206
+ return u ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), r;
249
207
  }, "input"),
250
208
  // unshifts one char (or a string) into the input
251
- unput: /* @__PURE__ */ a(function(h) {
252
- var u = h.length, x = h.split(/(?:\r\n?|\n)/g);
253
- this._input = h + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - u), this.offset -= u;
254
- var d = this.match.split(/(?:\r\n?|\n)/g);
255
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), x.length - 1 && (this.yylineno -= x.length - 1);
256
- var w = this.yylloc.range;
209
+ unput: /* @__PURE__ */ n(function(r) {
210
+ var u = r.length, g = r.split(/(?:\r\n?|\n)/g);
211
+ this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - u), this.offset -= u;
212
+ var x = this.match.split(/(?:\r\n?|\n)/g);
213
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), g.length - 1 && (this.yylineno -= g.length - 1);
214
+ var A = this.yylloc.range;
257
215
  return this.yylloc = {
258
216
  first_line: this.yylloc.first_line,
259
217
  last_line: this.yylineno + 1,
260
218
  first_column: this.yylloc.first_column,
261
- last_column: x ? (x.length === d.length ? this.yylloc.first_column : 0) + d[d.length - x.length].length - x[0].length : this.yylloc.first_column - u
262
- }, this.options.ranges && (this.yylloc.range = [w[0], w[0] + this.yyleng - u]), this.yyleng = this.yytext.length, this;
219
+ last_column: g ? (g.length === x.length ? this.yylloc.first_column : 0) + x[x.length - g.length].length - g[0].length : this.yylloc.first_column - u
220
+ }, this.options.ranges && (this.yylloc.range = [A[0], A[0] + this.yyleng - u]), this.yyleng = this.yytext.length, this;
263
221
  }, "unput"),
264
222
  // When called from action, caches matched text and appends it on next action
265
- more: /* @__PURE__ */ a(function() {
223
+ more: /* @__PURE__ */ n(function() {
266
224
  return this._more = !0, this;
267
225
  }, "more"),
268
226
  // 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.
269
- reject: /* @__PURE__ */ a(function() {
227
+ reject: /* @__PURE__ */ n(function() {
270
228
  if (this.options.backtrack_lexer)
271
229
  this._backtrack = !0;
272
230
  else
@@ -279,29 +237,29 @@ Expecting ` + ut.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : mt =
279
237
  return this;
280
238
  }, "reject"),
281
239
  // retain first n characters of the match
282
- less: /* @__PURE__ */ a(function(h) {
283
- this.unput(this.match.slice(h));
240
+ less: /* @__PURE__ */ n(function(r) {
241
+ this.unput(this.match.slice(r));
284
242
  }, "less"),
285
243
  // displays already matched input, i.e. for error messages
286
- pastInput: /* @__PURE__ */ a(function() {
287
- var h = this.matched.substr(0, this.matched.length - this.match.length);
288
- return (h.length > 20 ? "..." : "") + h.substr(-20).replace(/\n/g, "");
244
+ pastInput: /* @__PURE__ */ n(function() {
245
+ var r = this.matched.substr(0, this.matched.length - this.match.length);
246
+ return (r.length > 20 ? "..." : "") + r.substr(-20).replace(/\n/g, "");
289
247
  }, "pastInput"),
290
248
  // displays upcoming input, i.e. for error messages
291
- upcomingInput: /* @__PURE__ */ a(function() {
292
- var h = this.match;
293
- return h.length < 20 && (h += this._input.substr(0, 20 - h.length)), (h.substr(0, 20) + (h.length > 20 ? "..." : "")).replace(/\n/g, "");
249
+ upcomingInput: /* @__PURE__ */ n(function() {
250
+ var r = this.match;
251
+ return r.length < 20 && (r += this._input.substr(0, 20 - r.length)), (r.substr(0, 20) + (r.length > 20 ? "..." : "")).replace(/\n/g, "");
294
252
  }, "upcomingInput"),
295
253
  // displays the character position where the lexing error occurred, i.e. for error messages
296
- showPosition: /* @__PURE__ */ a(function() {
297
- var h = this.pastInput(), u = new Array(h.length + 1).join("-");
298
- return h + this.upcomingInput() + `
254
+ showPosition: /* @__PURE__ */ n(function() {
255
+ var r = this.pastInput(), u = new Array(r.length + 1).join("-");
256
+ return r + this.upcomingInput() + `
299
257
  ` + u + "^";
300
258
  }, "showPosition"),
301
259
  // test the lexed token: return FALSE when not a match, otherwise return token
302
- test_match: /* @__PURE__ */ a(function(h, u) {
303
- var x, d, w;
304
- if (this.options.backtrack_lexer && (w = {
260
+ test_match: /* @__PURE__ */ n(function(r, u) {
261
+ var g, x, A;
262
+ if (this.options.backtrack_lexer && (A = {
305
263
  yylineno: this.yylineno,
306
264
  yylloc: {
307
265
  first_line: this.yylloc.first_line,
@@ -320,32 +278,32 @@ Expecting ` + ut.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : mt =
320
278
  yy: this.yy,
321
279
  conditionStack: this.conditionStack.slice(0),
322
280
  done: this.done
323
- }, this.options.ranges && (w.yylloc.range = this.yylloc.range.slice(0))), d = h[0].match(/(?:\r\n?|\n).*/g), d && (this.yylineno += d.length), this.yylloc = {
281
+ }, this.options.ranges && (A.yylloc.range = this.yylloc.range.slice(0))), x = r[0].match(/(?:\r\n?|\n).*/g), x && (this.yylineno += x.length), this.yylloc = {
324
282
  first_line: this.yylloc.last_line,
325
283
  last_line: this.yylineno + 1,
326
284
  first_column: this.yylloc.last_column,
327
- last_column: d ? d[d.length - 1].length - d[d.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + h[0].length
328
- }, this.yytext += h[0], this.match += h[0], this.matches = h, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(h[0].length), this.matched += h[0], x = this.performAction.call(this, this.yy, this, u, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), x)
329
- return x;
285
+ last_column: x ? x[x.length - 1].length - x[x.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
286
+ }, 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], g = this.performAction.call(this, this.yy, this, u, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), g)
287
+ return g;
330
288
  if (this._backtrack) {
331
- for (var r in w)
332
- this[r] = w[r];
289
+ for (var o in A)
290
+ this[o] = A[o];
333
291
  return !1;
334
292
  }
335
293
  return !1;
336
294
  }, "test_match"),
337
295
  // return next match in input
338
- next: /* @__PURE__ */ a(function() {
296
+ next: /* @__PURE__ */ n(function() {
339
297
  if (this.done)
340
298
  return this.EOF;
341
299
  this._input || (this.done = !0);
342
- var h, u, x, d;
300
+ var r, u, g, x;
343
301
  this._more || (this.yytext = "", this.match = "");
344
- for (var w = this._currentRules(), r = 0; r < w.length; r++)
345
- if (x = this._input.match(this.rules[w[r]]), x && (!u || x[0].length > u[0].length)) {
346
- if (u = x, d = r, this.options.backtrack_lexer) {
347
- if (h = this.test_match(x, w[r]), h !== !1)
348
- return h;
302
+ for (var A = this._currentRules(), o = 0; o < A.length; o++)
303
+ if (g = this._input.match(this.rules[A[o]]), g && (!u || g[0].length > u[0].length)) {
304
+ if (u = g, x = o, this.options.backtrack_lexer) {
305
+ if (r = this.test_match(g, A[o]), r !== !1)
306
+ return r;
349
307
  if (this._backtrack) {
350
308
  u = !1;
351
309
  continue;
@@ -354,7 +312,7 @@ Expecting ` + ut.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : mt =
354
312
  } else if (!this.options.flex)
355
313
  break;
356
314
  }
357
- return u ? (h = this.test_match(u, w[d]), h !== !1 ? h : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
315
+ return u ? (r = this.test_match(u, A[x]), r !== !1 ? r : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
358
316
  ` + this.showPosition(), {
359
317
  text: "",
360
318
  token: null,
@@ -362,38 +320,38 @@ Expecting ` + ut.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : mt =
362
320
  });
363
321
  }, "next"),
364
322
  // return next match that has a token
365
- lex: /* @__PURE__ */ a(function() {
323
+ lex: /* @__PURE__ */ n(function() {
366
324
  var u = this.next();
367
325
  return u || this.lex();
368
326
  }, "lex"),
369
327
  // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
370
- begin: /* @__PURE__ */ a(function(u) {
328
+ begin: /* @__PURE__ */ n(function(u) {
371
329
  this.conditionStack.push(u);
372
330
  }, "begin"),
373
331
  // pop the previously active lexer condition state off the condition stack
374
- popState: /* @__PURE__ */ a(function() {
332
+ popState: /* @__PURE__ */ n(function() {
375
333
  var u = this.conditionStack.length - 1;
376
334
  return u > 0 ? this.conditionStack.pop() : this.conditionStack[0];
377
335
  }, "popState"),
378
336
  // produce the lexer rule set which is active for the currently active lexer condition state
379
- _currentRules: /* @__PURE__ */ a(function() {
337
+ _currentRules: /* @__PURE__ */ n(function() {
380
338
  return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
381
339
  }, "_currentRules"),
382
340
  // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
383
- topState: /* @__PURE__ */ a(function(u) {
341
+ topState: /* @__PURE__ */ n(function(u) {
384
342
  return u = this.conditionStack.length - 1 - Math.abs(u || 0), u >= 0 ? this.conditionStack[u] : "INITIAL";
385
343
  }, "topState"),
386
344
  // alias for begin(condition)
387
- pushState: /* @__PURE__ */ a(function(u) {
345
+ pushState: /* @__PURE__ */ n(function(u) {
388
346
  this.begin(u);
389
347
  }, "pushState"),
390
348
  // return the number of states currently on the stack
391
- stateStackSize: /* @__PURE__ */ a(function() {
349
+ stateStackSize: /* @__PURE__ */ n(function() {
392
350
  return this.conditionStack.length;
393
351
  }, "stateStackSize"),
394
352
  options: { "case-insensitive": !0 },
395
- performAction: /* @__PURE__ */ a(function(u, x, d, w) {
396
- switch (d) {
353
+ performAction: /* @__PURE__ */ n(function(u, g, x, A) {
354
+ switch (x) {
397
355
  case 0:
398
356
  break;
399
357
  case 1:
@@ -498,51 +456,51 @@ Expecting ` + ut.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : mt =
498
456
  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],
499
457
  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 } }
500
458
  };
501
- return O;
459
+ return W;
502
460
  }();
503
- $.lexer = Et;
461
+ $.lexer = Lt;
504
462
  function N() {
505
463
  this.yy = {};
506
464
  }
507
- return a(N, "Parser"), N.prototype = $, $.Parser = N, new N();
465
+ return n(N, "Parser"), N.prototype = $, $.Parser = N, new N();
508
466
  }();
509
- bt.parser = bt;
510
- var Ti = bt;
511
- function At(e) {
512
- return e.type === "bar";
467
+ mt.parser = mt;
468
+ var _i = mt;
469
+ function bt(s) {
470
+ return s.type === "bar";
513
471
  }
514
- a(At, "isBarPlot");
515
- function _t(e) {
516
- return e.type === "band";
472
+ n(bt, "isBarPlot");
473
+ function St(s) {
474
+ return s.type === "band";
517
475
  }
518
- a(_t, "isBandAxisData");
519
- function G(e) {
520
- return e.type === "linear";
476
+ n(St, "isBandAxisData");
477
+ function q(s) {
478
+ return s.type === "linear";
521
479
  }
522
- a(G, "isLinearAxisData");
523
- var j, Ht = (j = class {
480
+ n(q, "isLinearAxisData");
481
+ var G, Ht = (G = class {
524
482
  constructor(t) {
525
483
  this.parentGroup = t;
526
484
  }
527
485
  getMaxDimension(t, i) {
528
486
  if (!this.parentGroup)
529
487
  return {
530
- width: t.reduce((o, g) => Math.max(g.length, o), 0) * i,
488
+ width: t.reduce((c, d) => Math.max(d.length, c), 0) * i,
531
489
  height: i
532
490
  };
533
- const s = {
491
+ const e = {
534
492
  width: 0,
535
493
  height: 0
536
- }, n = this.parentGroup.append("g").attr("visibility", "hidden").attr("font-size", i);
537
- for (const o of t) {
538
- const g = gi(n, 1, o), m = g ? g.width : o.length * i, p = g ? g.height : i;
539
- s.width = Math.max(s.width, m), s.height = Math.max(s.height, p);
494
+ }, a = this.parentGroup.append("g").attr("visibility", "hidden").attr("font-size", i);
495
+ for (const c of t) {
496
+ const d = gi(a, 1, c), m = d ? d.width : c.length * i, b = d ? d.height : i;
497
+ e.width = Math.max(e.width, m), e.height = Math.max(e.height, b);
540
498
  }
541
- return n.remove(), s;
499
+ return a.remove(), e;
542
500
  }
543
- }, a(j, "TextDimensionCalculatorWithFont"), j), Ot = 0.7, Ft = 0.2, Q, Ut = (Q = class {
544
- constructor(t, i, s, n) {
545
- this.axisConfig = t, this.title = i, this.textDimensionCalculator = s, this.axisThemeConfig = n, this.boundingRect = { x: 0, y: 0, width: 0, height: 0 }, this.axisPosition = "left", this.showTitle = !1, this.showLabel = !1, this.showTick = !1, this.showAxisLine = !1, this.outerPadding = 0, this.titleTextHeight = 0, this.labelTextHeight = 0, this.range = [0, 10], this.boundingRect = { x: 0, y: 0, width: 0, height: 0 }, this.axisPosition = "left";
501
+ }, n(G, "TextDimensionCalculatorWithFont"), G), Ft = 0.7, Ot = 0.2, Q, Ut = (Q = class {
502
+ constructor(t, i, e, a) {
503
+ this.axisConfig = t, this.title = i, this.textDimensionCalculator = e, this.axisThemeConfig = a, 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";
546
504
  }
547
505
  setRange(t) {
548
506
  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();
@@ -567,39 +525,39 @@ var j, Ht = (j = class {
567
525
  );
568
526
  }
569
527
  recalculateOuterPaddingToDrawBar() {
570
- Ot * this.getTickDistance() > this.outerPadding * 2 && (this.outerPadding = Math.floor(Ot * this.getTickDistance() / 2)), this.recalculateScale();
528
+ Ft * this.getTickDistance() > this.outerPadding * 2 && (this.outerPadding = Math.floor(Ft * this.getTickDistance() / 2)), this.recalculateScale();
571
529
  }
572
530
  calculateSpaceIfDrawnHorizontally(t) {
573
531
  let i = t.height;
574
532
  if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
575
- const s = this.getLabelDimension(), n = Ft * t.width;
576
- this.outerPadding = Math.min(s.width / 2, n);
577
- const o = s.height + this.axisConfig.labelPadding * 2;
578
- this.labelTextHeight = s.height, o <= i && (i -= o, this.showLabel = !0);
533
+ const e = this.getLabelDimension(), a = Ot * t.width;
534
+ this.outerPadding = Math.min(e.width / 2, a);
535
+ const c = e.height + this.axisConfig.labelPadding * 2;
536
+ this.labelTextHeight = e.height, c <= i && (i -= c, this.showLabel = !0);
579
537
  }
580
538
  if (this.axisConfig.showTick && i >= this.axisConfig.tickLength && (this.showTick = !0, i -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
581
- const s = this.textDimensionCalculator.getMaxDimension(
539
+ const e = this.textDimensionCalculator.getMaxDimension(
582
540
  [this.title],
583
541
  this.axisConfig.titleFontSize
584
- ), n = s.height + this.axisConfig.titlePadding * 2;
585
- this.titleTextHeight = s.height, n <= i && (i -= n, this.showTitle = !0);
542
+ ), a = e.height + this.axisConfig.titlePadding * 2;
543
+ this.titleTextHeight = e.height, a <= i && (i -= a, this.showTitle = !0);
586
544
  }
587
545
  this.boundingRect.width = t.width, this.boundingRect.height = t.height - i;
588
546
  }
589
547
  calculateSpaceIfDrawnVertical(t) {
590
548
  let i = t.width;
591
549
  if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
592
- const s = this.getLabelDimension(), n = Ft * t.height;
593
- this.outerPadding = Math.min(s.height / 2, n);
594
- const o = s.width + this.axisConfig.labelPadding * 2;
595
- o <= i && (i -= o, this.showLabel = !0);
550
+ const e = this.getLabelDimension(), a = Ot * t.height;
551
+ this.outerPadding = Math.min(e.height / 2, a);
552
+ const c = e.width + this.axisConfig.labelPadding * 2;
553
+ c <= i && (i -= c, this.showLabel = !0);
596
554
  }
597
555
  if (this.axisConfig.showTick && i >= this.axisConfig.tickLength && (this.showTick = !0, i -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
598
- const s = this.textDimensionCalculator.getMaxDimension(
556
+ const e = this.textDimensionCalculator.getMaxDimension(
599
557
  [this.title],
600
558
  this.axisConfig.titleFontSize
601
- ), n = s.height + this.axisConfig.titlePadding * 2;
602
- this.titleTextHeight = s.height, n <= i && (i -= n, this.showTitle = !0);
559
+ ), a = e.height + this.axisConfig.titlePadding * 2;
560
+ this.titleTextHeight = e.height, a <= i && (i -= a, this.showTitle = !0);
603
561
  }
604
562
  this.boundingRect.width = t.width - i, this.boundingRect.height = t.height;
605
563
  }
@@ -646,8 +604,8 @@ var j, Ht = (j = class {
646
604
  t.push({
647
605
  type: "path",
648
606
  groupTexts: ["left-axis", "ticks"],
649
- data: this.getTickValues().map((s) => ({
650
- path: `M ${i},${this.getScaleValue(s)} L ${i - this.axisConfig.tickLength},${this.getScaleValue(s)}`,
607
+ data: this.getTickValues().map((e) => ({
608
+ path: `M ${i},${this.getScaleValue(e)} L ${i - this.axisConfig.tickLength},${this.getScaleValue(e)}`,
651
609
  strokeFill: this.axisThemeConfig.tickColor,
652
610
  strokeWidth: this.axisConfig.tickWidth
653
611
  }))
@@ -704,8 +662,8 @@ var j, Ht = (j = class {
704
662
  t.push({
705
663
  type: "path",
706
664
  groupTexts: ["bottom-axis", "ticks"],
707
- data: this.getTickValues().map((s) => ({
708
- path: `M ${this.getScaleValue(s)},${i} L ${this.getScaleValue(s)},${i + this.axisConfig.tickLength}`,
665
+ data: this.getTickValues().map((e) => ({
666
+ path: `M ${this.getScaleValue(e)},${i} L ${this.getScaleValue(e)},${i + this.axisConfig.tickLength}`,
709
667
  strokeFill: this.axisThemeConfig.tickColor,
710
668
  strokeWidth: this.axisConfig.tickWidth
711
669
  }))
@@ -762,8 +720,8 @@ var j, Ht = (j = class {
762
720
  t.push({
763
721
  type: "path",
764
722
  groupTexts: ["top-axis", "ticks"],
765
- data: this.getTickValues().map((s) => ({
766
- path: `M ${this.getScaleValue(s)},${i + this.boundingRect.height - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0)} L ${this.getScaleValue(s)},${i + this.boundingRect.height - this.axisConfig.tickLength - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0)}`,
723
+ data: this.getTickValues().map((e) => ({
724
+ 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)}`,
767
725
  strokeFill: this.axisThemeConfig.tickColor,
768
726
  strokeWidth: this.axisConfig.tickWidth
769
727
  }))
@@ -793,15 +751,15 @@ var j, Ht = (j = class {
793
751
  throw Error("Drawing of right axis is not implemented");
794
752
  return this.axisPosition === "bottom" ? this.getDrawableElementsForBottomAxis() : this.axisPosition === "top" ? this.getDrawableElementsForTopAxis() : [];
795
753
  }
796
- }, a(Q, "BaseAxis"), Q), K, Di = (K = class extends Ut {
797
- constructor(t, i, s, n, o) {
798
- super(t, n, o, i), this.categories = s, this.scale = yt().domain(this.categories).range(this.getRange());
754
+ }, n(Q, "BaseAxis"), Q), K, ki = (K = class extends Ut {
755
+ constructor(t, i, e, a, c) {
756
+ super(t, a, c, i), this.categories = e, this.scale = Wt().domain(this.categories).range(this.getRange());
799
757
  }
800
758
  setRange(t) {
801
759
  super.setRange(t);
802
760
  }
803
761
  recalculateScale() {
804
- this.scale = yt().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(0.5), Xt.trace("BandAxis axis final categories, range: ", this.categories, this.getRange());
762
+ this.scale = Wt().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(0.5), Xt.trace("BandAxis axis final categories, range: ", this.categories, this.getRange());
805
763
  }
806
764
  getTickValues() {
807
765
  return this.categories;
@@ -809,9 +767,9 @@ var j, Ht = (j = class {
809
767
  getScaleValue(t) {
810
768
  return this.scale(t) ?? this.getRange()[0];
811
769
  }
812
- }, a(K, "BandAxis"), K), J, vi = (J = class extends Ut {
813
- constructor(t, i, s, n, o) {
814
- super(t, n, o, i), this.domain = s, this.scale = zt().domain(this.domain).range(this.getRange());
770
+ }, n(K, "BandAxis"), K), Z, Ti = (Z = class extends Ut {
771
+ constructor(t, i, e, a, c) {
772
+ super(t, a, c, i), this.domain = e, this.scale = zt().domain(this.domain).range(this.getRange());
815
773
  }
816
774
  getTickValues() {
817
775
  return this.scale.ticks();
@@ -823,27 +781,27 @@ var j, Ht = (j = class {
823
781
  getScaleValue(t) {
824
782
  return this.scale(t);
825
783
  }
826
- }, a(J, "LinearAxis"), J);
827
- function wt(e, t, i, s) {
828
- const n = new Ht(s);
829
- return _t(e) ? new Di(
784
+ }, n(Z, "LinearAxis"), Z);
785
+ function At(s, t, i, e) {
786
+ const a = new Ht(e);
787
+ return St(s) ? new ki(
830
788
  t,
831
789
  i,
832
- e.categories,
833
- e.title,
834
- n
835
- ) : new vi(
790
+ s.categories,
791
+ s.title,
792
+ a
793
+ ) : new Ti(
836
794
  t,
837
795
  i,
838
- [e.min, e.max],
839
- e.title,
840
- n
796
+ [s.min, s.max],
797
+ s.title,
798
+ a
841
799
  );
842
800
  }
843
- a(wt, "getAxis");
844
- var Z, Pi = (Z = class {
845
- constructor(t, i, s, n) {
846
- this.textDimensionCalculator = t, this.chartConfig = i, this.chartData = s, this.chartThemeConfig = n, this.boundingRect = {
801
+ n(At, "getAxis");
802
+ var J, Ri = (J = class {
803
+ constructor(t, i, e, a) {
804
+ this.textDimensionCalculator = t, this.chartConfig = i, this.chartData = e, this.chartThemeConfig = a, this.boundingRect = {
847
805
  x: 0,
848
806
  y: 0,
849
807
  width: 0,
@@ -857,8 +815,8 @@ var Z, Pi = (Z = class {
857
815
  const i = this.textDimensionCalculator.getMaxDimension(
858
816
  [this.chartData.title],
859
817
  this.chartConfig.titleFontSize
860
- ), s = Math.max(i.width, t.width), n = i.height + 2 * this.chartConfig.titlePadding;
861
- return i.width <= s && i.height <= n && this.chartConfig.showTitle && this.chartData.title && (this.boundingRect.width = s, this.boundingRect.height = n, this.showChartTitle = !0), {
818
+ ), e = Math.max(i.width, t.width), a = i.height + 2 * this.chartConfig.titlePadding;
819
+ return i.width <= e && i.height <= a && this.chartConfig.showTitle && this.chartData.title && (this.boundingRect.width = e, this.boundingRect.height = a, this.showChartTitle = !0), {
862
820
  width: this.boundingRect.width,
863
821
  height: this.boundingRect.height
864
822
  };
@@ -882,23 +840,23 @@ var Z, Pi = (Z = class {
882
840
  ]
883
841
  }), t;
884
842
  }
885
- }, a(Z, "ChartTitle"), Z);
886
- function $t(e, t, i, s) {
887
- const n = new Ht(s);
888
- return new Pi(n, e, t, i);
843
+ }, n(J, "ChartTitle"), J);
844
+ function $t(s, t, i, e) {
845
+ const a = new Ht(e);
846
+ return new Ri(a, s, t, i);
889
847
  }
890
- a($t, "getChartTitleComponent");
891
- var tt, Li = (tt = class {
892
- constructor(t, i, s, n, o) {
893
- this.plotData = t, this.xAxis = i, this.yAxis = s, this.orientation = n, this.plotIndex = o;
848
+ n($t, "getChartTitleComponent");
849
+ var tt, Di = (tt = class {
850
+ constructor(t, i, e, a, c) {
851
+ this.plotData = t, this.xAxis = i, this.yAxis = e, this.orientation = a, this.plotIndex = c;
894
852
  }
895
853
  getDrawableElement() {
896
- const t = this.plotData.data.map((s) => [
897
- this.xAxis.getScaleValue(s[0]),
898
- this.yAxis.getScaleValue(s[1])
854
+ const t = this.plotData.data.map((e) => [
855
+ this.xAxis.getScaleValue(e[0]),
856
+ this.yAxis.getScaleValue(e[1])
899
857
  ]);
900
858
  let i;
901
- return this.orientation === "horizontal" ? i = Wt().y((s) => s[0]).x((s) => s[1])(t) : i = Wt().x((s) => s[0]).y((s) => s[1])(t), i ? [
859
+ return this.orientation === "horizontal" ? i = Bt().y((e) => e[0]).x((e) => e[1])(t) : i = Bt().x((e) => e[0]).y((e) => e[1])(t), i ? [
902
860
  {
903
861
  groupTexts: ["plot", `line-plot-${this.plotIndex}`],
904
862
  type: "path",
@@ -912,24 +870,24 @@ var tt, Li = (tt = class {
912
870
  }
913
871
  ] : [];
914
872
  }
915
- }, a(tt, "LinePlot"), tt), it, Ei = (it = class {
916
- constructor(t, i, s, n, o, g) {
917
- this.barData = t, this.boundingRect = i, this.xAxis = s, this.yAxis = n, this.orientation = o, this.plotIndex = g;
873
+ }, n(tt, "LinePlot"), tt), it, vi = (it = class {
874
+ constructor(t, i, e, a, c, d) {
875
+ this.barData = t, this.boundingRect = i, this.xAxis = e, this.yAxis = a, this.orientation = c, this.plotIndex = d;
918
876
  }
919
877
  getDrawableElement() {
920
- const t = this.barData.data.map((o) => [
921
- this.xAxis.getScaleValue(o[0]),
922
- this.yAxis.getScaleValue(o[1])
923
- ]), s = Math.min(this.xAxis.getAxisOuterPadding() * 2, this.xAxis.getTickDistance()) * (1 - 0.05), n = s / 2;
878
+ const t = this.barData.data.map((c) => [
879
+ this.xAxis.getScaleValue(c[0]),
880
+ this.yAxis.getScaleValue(c[1])
881
+ ]), e = Math.min(this.xAxis.getAxisOuterPadding() * 2, this.xAxis.getTickDistance()) * (1 - 0.05), a = e / 2;
924
882
  return this.orientation === "horizontal" ? [
925
883
  {
926
884
  groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
927
885
  type: "rect",
928
- data: t.map((o) => ({
886
+ data: t.map((c) => ({
929
887
  x: this.boundingRect.x,
930
- y: o[0] - n,
931
- height: s,
932
- width: o[1] - this.boundingRect.x,
888
+ y: c[0] - a,
889
+ height: e,
890
+ width: c[1] - this.boundingRect.x,
933
891
  fill: this.barData.fill,
934
892
  strokeWidth: 0,
935
893
  strokeFill: this.barData.fill
@@ -939,11 +897,11 @@ var tt, Li = (tt = class {
939
897
  {
940
898
  groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
941
899
  type: "rect",
942
- data: t.map((o) => ({
943
- x: o[0] - n,
944
- y: o[1],
945
- width: s,
946
- height: this.boundingRect.y + this.boundingRect.height - o[1],
900
+ data: t.map((c) => ({
901
+ x: c[0] - a,
902
+ y: c[1],
903
+ width: e,
904
+ height: this.boundingRect.y + this.boundingRect.height - c[1],
947
905
  fill: this.barData.fill,
948
906
  strokeWidth: 0,
949
907
  strokeFill: this.barData.fill
@@ -951,9 +909,9 @@ var tt, Li = (tt = class {
951
909
  }
952
910
  ];
953
911
  }
954
- }, a(it, "BarPlot"), it), et, Ii = (et = class {
955
- constructor(t, i, s) {
956
- this.chartConfig = t, this.chartData = i, this.chartThemeConfig = s, this.boundingRect = {
912
+ }, n(it, "BarPlot"), it), et, Pi = (et = class {
913
+ constructor(t, i, e) {
914
+ this.chartConfig = t, this.chartData = i, this.chartThemeConfig = e, this.boundingRect = {
957
915
  x: 0,
958
916
  y: 0,
959
917
  width: 0,
@@ -976,111 +934,111 @@ var tt, Li = (tt = class {
976
934
  if (!(this.xAxis && this.yAxis))
977
935
  throw Error("Axes must be passed to render Plots");
978
936
  const t = [];
979
- for (const [i, s] of this.chartData.plots.entries())
980
- switch (s.type) {
937
+ for (const [i, e] of this.chartData.plots.entries())
938
+ switch (e.type) {
981
939
  case "line":
982
940
  {
983
- const n = new Li(
984
- s,
941
+ const a = new Di(
942
+ e,
985
943
  this.xAxis,
986
944
  this.yAxis,
987
945
  this.chartConfig.chartOrientation,
988
946
  i
989
947
  );
990
- t.push(...n.getDrawableElement());
948
+ t.push(...a.getDrawableElement());
991
949
  }
992
950
  break;
993
951
  case "bar":
994
952
  {
995
- const n = new Ei(
996
- s,
953
+ const a = new vi(
954
+ e,
997
955
  this.boundingRect,
998
956
  this.xAxis,
999
957
  this.yAxis,
1000
958
  this.chartConfig.chartOrientation,
1001
959
  i
1002
960
  );
1003
- t.push(...n.getDrawableElement());
961
+ t.push(...a.getDrawableElement());
1004
962
  }
1005
963
  break;
1006
964
  }
1007
965
  return t;
1008
966
  }
1009
- }, a(et, "BasePlot"), et);
1010
- function qt(e, t, i) {
1011
- return new Ii(e, t, i);
967
+ }, n(et, "BasePlot"), et);
968
+ function jt(s, t, i) {
969
+ return new Pi(s, t, i);
1012
970
  }
1013
- a(qt, "getPlotComponent");
1014
- var st, Mi = (st = class {
1015
- constructor(t, i, s, n) {
971
+ n(jt, "getPlotComponent");
972
+ var st, Li = (st = class {
973
+ constructor(t, i, e, a) {
1016
974
  this.chartConfig = t, this.chartData = i, this.componentStore = {
1017
- title: $t(t, i, s, n),
1018
- plot: qt(t, i, s),
1019
- xAxis: wt(
975
+ title: $t(t, i, e, a),
976
+ plot: jt(t, i, e),
977
+ xAxis: At(
1020
978
  i.xAxis,
1021
979
  t.xAxis,
1022
980
  {
1023
- titleColor: s.xAxisTitleColor,
1024
- labelColor: s.xAxisLabelColor,
1025
- tickColor: s.xAxisTickColor,
1026
- axisLineColor: s.xAxisLineColor
981
+ titleColor: e.xAxisTitleColor,
982
+ labelColor: e.xAxisLabelColor,
983
+ tickColor: e.xAxisTickColor,
984
+ axisLineColor: e.xAxisLineColor
1027
985
  },
1028
- n
986
+ a
1029
987
  ),
1030
- yAxis: wt(
988
+ yAxis: At(
1031
989
  i.yAxis,
1032
990
  t.yAxis,
1033
991
  {
1034
- titleColor: s.yAxisTitleColor,
1035
- labelColor: s.yAxisLabelColor,
1036
- tickColor: s.yAxisTickColor,
1037
- axisLineColor: s.yAxisLineColor
992
+ titleColor: e.yAxisTitleColor,
993
+ labelColor: e.yAxisLabelColor,
994
+ tickColor: e.yAxisTickColor,
995
+ axisLineColor: e.yAxisLineColor
1038
996
  },
1039
- n
997
+ a
1040
998
  )
1041
999
  };
1042
1000
  }
1043
1001
  calculateVerticalSpace() {
1044
- let t = this.chartConfig.width, i = this.chartConfig.height, s = 0, n = 0, o = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), g = Math.floor(
1002
+ let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, a = 0, c = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), d = Math.floor(
1045
1003
  i * this.chartConfig.plotReservedSpacePercent / 100
1046
1004
  ), m = this.componentStore.plot.calculateSpace({
1047
- width: o,
1048
- height: g
1005
+ width: c,
1006
+ height: d
1049
1007
  });
1050
1008
  t -= m.width, i -= m.height, m = this.componentStore.title.calculateSpace({
1051
1009
  width: this.chartConfig.width,
1052
1010
  height: i
1053
- }), n = m.height, i -= m.height, this.componentStore.xAxis.setAxisPosition("bottom"), m = this.componentStore.xAxis.calculateSpace({
1011
+ }), a = m.height, i -= m.height, this.componentStore.xAxis.setAxisPosition("bottom"), m = this.componentStore.xAxis.calculateSpace({
1054
1012
  width: t,
1055
1013
  height: i
1056
1014
  }), i -= m.height, this.componentStore.yAxis.setAxisPosition("left"), m = this.componentStore.yAxis.calculateSpace({
1057
1015
  width: t,
1058
1016
  height: i
1059
- }), s = m.width, t -= m.width, t > 0 && (o += t, t = 0), i > 0 && (g += i, i = 0), this.componentStore.plot.calculateSpace({
1060
- width: o,
1061
- height: g
1062
- }), this.componentStore.plot.setBoundingBoxXY({ x: s, y: n }), this.componentStore.xAxis.setRange([s, s + o]), this.componentStore.xAxis.setBoundingBoxXY({ x: s, y: n + g }), this.componentStore.yAxis.setRange([n, n + g]), this.componentStore.yAxis.setBoundingBoxXY({ x: 0, y: n }), this.chartData.plots.some((p) => At(p)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1017
+ }), e = m.width, t -= m.width, t > 0 && (c += t, t = 0), i > 0 && (d += i, i = 0), this.componentStore.plot.calculateSpace({
1018
+ width: c,
1019
+ height: d
1020
+ }), this.componentStore.plot.setBoundingBoxXY({ x: e, y: a }), this.componentStore.xAxis.setRange([e, e + c]), this.componentStore.xAxis.setBoundingBoxXY({ x: e, y: a + d }), this.componentStore.yAxis.setRange([a, a + d]), this.componentStore.yAxis.setBoundingBoxXY({ x: 0, y: a }), this.chartData.plots.some((b) => bt(b)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1063
1021
  }
1064
1022
  calculateHorizontalSpace() {
1065
- let t = this.chartConfig.width, i = this.chartConfig.height, s = 0, n = 0, o = 0, g = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), m = Math.floor(
1023
+ let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, a = 0, c = 0, d = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), m = Math.floor(
1066
1024
  i * this.chartConfig.plotReservedSpacePercent / 100
1067
- ), p = this.componentStore.plot.calculateSpace({
1068
- width: g,
1025
+ ), b = this.componentStore.plot.calculateSpace({
1026
+ width: d,
1069
1027
  height: m
1070
1028
  });
1071
- t -= p.width, i -= p.height, p = this.componentStore.title.calculateSpace({
1029
+ t -= b.width, i -= b.height, b = this.componentStore.title.calculateSpace({
1072
1030
  width: this.chartConfig.width,
1073
1031
  height: i
1074
- }), s = p.height, i -= p.height, this.componentStore.xAxis.setAxisPosition("left"), p = this.componentStore.xAxis.calculateSpace({
1032
+ }), e = b.height, i -= b.height, this.componentStore.xAxis.setAxisPosition("left"), b = this.componentStore.xAxis.calculateSpace({
1075
1033
  width: t,
1076
1034
  height: i
1077
- }), t -= p.width, n = p.width, this.componentStore.yAxis.setAxisPosition("top"), p = this.componentStore.yAxis.calculateSpace({
1035
+ }), t -= b.width, a = b.width, this.componentStore.yAxis.setAxisPosition("top"), b = this.componentStore.yAxis.calculateSpace({
1078
1036
  width: t,
1079
1037
  height: i
1080
- }), i -= p.height, o = s + p.height, t > 0 && (g += t, t = 0), i > 0 && (m += i, i = 0), this.componentStore.plot.calculateSpace({
1081
- width: g,
1038
+ }), i -= b.height, c = e + b.height, t > 0 && (d += t, t = 0), i > 0 && (m += i, i = 0), this.componentStore.plot.calculateSpace({
1039
+ width: d,
1082
1040
  height: m
1083
- }), this.componentStore.plot.setBoundingBoxXY({ x: n, y: o }), this.componentStore.yAxis.setRange([n, n + g]), this.componentStore.yAxis.setBoundingBoxXY({ x: n, y: s }), this.componentStore.xAxis.setRange([o, o + m]), this.componentStore.xAxis.setBoundingBoxXY({ x: 0, y: o }), this.chartData.plots.some((k) => At(k)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1041
+ }), this.componentStore.plot.setBoundingBoxXY({ x: a, y: c }), this.componentStore.yAxis.setRange([a, a + d]), this.componentStore.yAxis.setBoundingBoxXY({ x: a, y: e }), this.componentStore.xAxis.setRange([c, c + m]), this.componentStore.xAxis.setBoundingBoxXY({ x: 0, y: c }), this.chartData.plots.some((P) => bt(P)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1084
1042
  }
1085
1043
  calculateSpace() {
1086
1044
  this.chartConfig.chartOrientation === "horizontal" ? this.calculateHorizontalSpace() : this.calculateVerticalSpace();
@@ -1093,25 +1051,25 @@ var st, Mi = (st = class {
1093
1051
  t.push(...i.getDrawableElements());
1094
1052
  return t;
1095
1053
  }
1096
- }, a(st, "Orchestrator"), st), nt, Vi = (nt = class {
1097
- static build(t, i, s, n) {
1098
- return new Mi(t, i, s, n).getDrawableElement();
1054
+ }, n(st, "Orchestrator"), st), at, Ei = (at = class {
1055
+ static build(t, i, e, a) {
1056
+ return new Li(t, i, e, a).getDrawableElement();
1099
1057
  }
1100
- }, a(nt, "XYChartBuilder"), nt), rt = 0, Gt, ot = Tt(), ht = Rt(), A = Dt(), Ct = ht.plotColorPalette.split(",").map((e) => e.trim()), gt = !1, kt = !1;
1101
- function Rt() {
1102
- const e = xi(), t = St();
1103
- return Nt(e.xyChart, t.themeVariables.xyChart);
1058
+ }, n(at, "XYChartBuilder"), at), ot = 0, qt, rt = Tt(), ht = kt(), y = Rt(), wt = ht.plotColorPalette.split(",").map((s) => s.trim()), gt = !1, _t = !1;
1059
+ function kt() {
1060
+ const s = xi(), t = Ct();
1061
+ return Nt(s.xyChart, t.themeVariables.xyChart);
1104
1062
  }
1105
- a(Rt, "getChartDefaultThemeConfig");
1063
+ n(kt, "getChartDefaultThemeConfig");
1106
1064
  function Tt() {
1107
- const e = St();
1065
+ const s = Ct();
1108
1066
  return Nt(
1109
1067
  di.xyChart,
1110
- e.xyChart
1068
+ s.xyChart
1111
1069
  );
1112
1070
  }
1113
- a(Tt, "getChartDefaultConfig");
1114
- function Dt() {
1071
+ n(Tt, "getChartDefaultConfig");
1072
+ function Rt() {
1115
1073
  return {
1116
1074
  yAxis: {
1117
1075
  type: "linear",
@@ -1128,214 +1086,214 @@ function Dt() {
1128
1086
  plots: []
1129
1087
  };
1130
1088
  }
1131
- a(Dt, "getChartDefaultData");
1132
- function xt(e) {
1133
- const t = St();
1134
- return fi(e.trim(), t);
1089
+ n(Rt, "getChartDefaultData");
1090
+ function xt(s) {
1091
+ const t = Ct();
1092
+ return pi(s.trim(), t);
1135
1093
  }
1136
- a(xt, "textSanitizer");
1137
- function jt(e) {
1138
- Gt = e;
1094
+ n(xt, "textSanitizer");
1095
+ function Gt(s) {
1096
+ qt = s;
1139
1097
  }
1140
- a(jt, "setTmpSVGG");
1141
- function Qt(e) {
1142
- e === "horizontal" ? ot.chartOrientation = "horizontal" : ot.chartOrientation = "vertical";
1098
+ n(Gt, "setTmpSVGG");
1099
+ function Qt(s) {
1100
+ s === "horizontal" ? rt.chartOrientation = "horizontal" : rt.chartOrientation = "vertical";
1143
1101
  }
1144
- a(Qt, "setOrientation");
1145
- function Kt(e) {
1146
- A.xAxis.title = xt(e.text);
1102
+ n(Qt, "setOrientation");
1103
+ function Kt(s) {
1104
+ y.xAxis.title = xt(s.text);
1147
1105
  }
1148
- a(Kt, "setXAxisTitle");
1149
- function vt(e, t) {
1150
- A.xAxis = { type: "linear", title: A.xAxis.title, min: e, max: t }, gt = !0;
1106
+ n(Kt, "setXAxisTitle");
1107
+ function Dt(s, t) {
1108
+ y.xAxis = { type: "linear", title: y.xAxis.title, min: s, max: t }, gt = !0;
1151
1109
  }
1152
- a(vt, "setXAxisRangeData");
1153
- function Jt(e) {
1154
- A.xAxis = {
1110
+ n(Dt, "setXAxisRangeData");
1111
+ function Zt(s) {
1112
+ y.xAxis = {
1155
1113
  type: "band",
1156
- title: A.xAxis.title,
1157
- categories: e.map((t) => xt(t.text))
1114
+ title: y.xAxis.title,
1115
+ categories: s.map((t) => xt(t.text))
1158
1116
  }, gt = !0;
1159
1117
  }
1160
- a(Jt, "setXAxisBand");
1161
- function Zt(e) {
1162
- A.yAxis.title = xt(e.text);
1118
+ n(Zt, "setXAxisBand");
1119
+ function Jt(s) {
1120
+ y.yAxis.title = xt(s.text);
1163
1121
  }
1164
- a(Zt, "setYAxisTitle");
1165
- function ti(e, t) {
1166
- A.yAxis = { type: "linear", title: A.yAxis.title, min: e, max: t }, kt = !0;
1122
+ n(Jt, "setYAxisTitle");
1123
+ function ti(s, t) {
1124
+ y.yAxis = { type: "linear", title: y.yAxis.title, min: s, max: t }, _t = !0;
1167
1125
  }
1168
- a(ti, "setYAxisRangeData");
1169
- function ii(e) {
1170
- const t = Math.min(...e), i = Math.max(...e), s = G(A.yAxis) ? A.yAxis.min : 1 / 0, n = G(A.yAxis) ? A.yAxis.max : -1 / 0;
1171
- A.yAxis = {
1126
+ n(ti, "setYAxisRangeData");
1127
+ function ii(s) {
1128
+ const t = Math.min(...s), i = Math.max(...s), e = q(y.yAxis) ? y.yAxis.min : 1 / 0, a = q(y.yAxis) ? y.yAxis.max : -1 / 0;
1129
+ y.yAxis = {
1172
1130
  type: "linear",
1173
- title: A.yAxis.title,
1174
- min: Math.min(s, t),
1175
- max: Math.max(n, i)
1131
+ title: y.yAxis.title,
1132
+ min: Math.min(e, t),
1133
+ max: Math.max(a, i)
1176
1134
  };
1177
1135
  }
1178
- a(ii, "setYAxisRangeFromPlotData");
1179
- function Pt(e) {
1136
+ n(ii, "setYAxisRangeFromPlotData");
1137
+ function vt(s) {
1180
1138
  let t = [];
1181
- if (e.length === 0)
1139
+ if (s.length === 0)
1182
1140
  return t;
1183
1141
  if (!gt) {
1184
- const i = G(A.xAxis) ? A.xAxis.min : 1 / 0, s = G(A.xAxis) ? A.xAxis.max : -1 / 0;
1185
- vt(Math.min(i, 1), Math.max(s, e.length));
1142
+ const i = q(y.xAxis) ? y.xAxis.min : 1 / 0, e = q(y.xAxis) ? y.xAxis.max : -1 / 0;
1143
+ Dt(Math.min(i, 1), Math.max(e, s.length));
1186
1144
  }
1187
- if (kt || ii(e), _t(A.xAxis) && (t = A.xAxis.categories.map((i, s) => [i, e[s]])), G(A.xAxis)) {
1188
- const i = A.xAxis.min, s = A.xAxis.max, n = (s - i) / (e.length - 1), o = [];
1189
- for (let g = i; g <= s; g += n)
1190
- o.push(`${g}`);
1191
- t = o.map((g, m) => [g, e[m]]);
1145
+ if (_t || ii(s), St(y.xAxis) && (t = y.xAxis.categories.map((i, e) => [i, s[e]])), q(y.xAxis)) {
1146
+ const i = y.xAxis.min, e = y.xAxis.max, a = (e - i) / (s.length - 1), c = [];
1147
+ for (let d = i; d <= e; d += a)
1148
+ c.push(`${d}`);
1149
+ t = c.map((d, m) => [d, s[m]]);
1192
1150
  }
1193
1151
  return t;
1194
1152
  }
1195
- a(Pt, "transformDataWithoutCategory");
1196
- function Lt(e) {
1197
- return Ct[e === 0 ? 0 : e % Ct.length];
1153
+ n(vt, "transformDataWithoutCategory");
1154
+ function Pt(s) {
1155
+ return wt[s === 0 ? 0 : s % wt.length];
1198
1156
  }
1199
- a(Lt, "getPlotColorFromPalette");
1200
- function ei(e, t) {
1201
- const i = Pt(t);
1202
- A.plots.push({
1157
+ n(Pt, "getPlotColorFromPalette");
1158
+ function ei(s, t) {
1159
+ const i = vt(t);
1160
+ y.plots.push({
1203
1161
  type: "line",
1204
- strokeFill: Lt(rt),
1162
+ strokeFill: Pt(ot),
1205
1163
  strokeWidth: 2,
1206
1164
  data: i
1207
- }), rt++;
1165
+ }), ot++;
1208
1166
  }
1209
- a(ei, "setLineData");
1210
- function si(e, t) {
1211
- const i = Pt(t);
1212
- A.plots.push({
1167
+ n(ei, "setLineData");
1168
+ function si(s, t) {
1169
+ const i = vt(t);
1170
+ y.plots.push({
1213
1171
  type: "bar",
1214
- fill: Lt(rt),
1172
+ fill: Pt(ot),
1215
1173
  data: i
1216
- }), rt++;
1174
+ }), ot++;
1217
1175
  }
1218
- a(si, "setBarData");
1219
- function ni() {
1220
- if (A.plots.length === 0)
1176
+ n(si, "setBarData");
1177
+ function ai() {
1178
+ if (y.plots.length === 0)
1221
1179
  throw Error("No Plot to render, please provide a plot with some data");
1222
- return A.title = Yt(), Vi.build(ot, A, ht, Gt);
1180
+ return y.title = Yt(), Ei.build(rt, y, ht, qt);
1223
1181
  }
1224
- a(ni, "getDrawableElem");
1225
- function ai() {
1182
+ n(ai, "getDrawableElem");
1183
+ function ni() {
1226
1184
  return ht;
1227
1185
  }
1228
- a(ai, "getChartThemeConfig");
1229
- function ri() {
1230
- return ot;
1231
- }
1232
- a(ri, "getChartConfig");
1186
+ n(ni, "getChartThemeConfig");
1233
1187
  function oi() {
1234
- return A;
1188
+ return rt;
1189
+ }
1190
+ n(oi, "getChartConfig");
1191
+ function ri() {
1192
+ return y;
1235
1193
  }
1236
- a(oi, "getXYChartData");
1237
- var Bi = /* @__PURE__ */ a(function() {
1238
- wi(), rt = 0, ot = Tt(), A = Dt(), ht = Rt(), Ct = ht.plotColorPalette.split(",").map((e) => e.trim()), gt = !1, kt = !1;
1239
- }, "clear"), Wi = {
1240
- getDrawableElem: ni,
1241
- clear: Bi,
1242
- setAccTitle: pi,
1243
- getAccTitle: mi,
1244
- setDiagramTitle: yi,
1194
+ n(ri, "getXYChartData");
1195
+ var Ii = /* @__PURE__ */ n(function() {
1196
+ wi(), ot = 0, rt = Tt(), y = Rt(), ht = kt(), wt = ht.plotColorPalette.split(",").map((s) => s.trim()), gt = !1, _t = !1;
1197
+ }, "clear"), Vi = {
1198
+ getDrawableElem: ai,
1199
+ clear: Ii,
1200
+ setAccTitle: fi,
1201
+ getAccTitle: yi,
1202
+ setDiagramTitle: mi,
1245
1203
  getDiagramTitle: Yt,
1246
1204
  getAccDescription: bi,
1247
1205
  setAccDescription: Ai,
1248
1206
  setOrientation: Qt,
1249
1207
  setXAxisTitle: Kt,
1250
- setXAxisRangeData: vt,
1251
- setXAxisBand: Jt,
1252
- setYAxisTitle: Zt,
1208
+ setXAxisRangeData: Dt,
1209
+ setXAxisBand: Zt,
1210
+ setYAxisTitle: Jt,
1253
1211
  setYAxisRangeData: ti,
1254
1212
  setLineData: ei,
1255
1213
  setBarData: si,
1256
- setTmpSVGG: jt,
1257
- getChartThemeConfig: ai,
1258
- getChartConfig: ri,
1259
- getXYChartData: oi
1260
- }, zi = /* @__PURE__ */ a((e, t, i, s) => {
1261
- const n = s.db, o = n.getChartThemeConfig(), g = n.getChartConfig(), m = n.getXYChartData().plots[0].data.map((y) => y[1]);
1262
- function p(y) {
1263
- return y === "top" ? "text-before-edge" : "middle";
1214
+ setTmpSVGG: Gt,
1215
+ getChartThemeConfig: ni,
1216
+ getChartConfig: oi,
1217
+ getXYChartData: ri
1218
+ }, Mi = /* @__PURE__ */ n((s, t, i, e) => {
1219
+ const a = e.db, c = a.getChartThemeConfig(), d = a.getChartConfig(), m = a.getXYChartData().plots[0].data.map((f) => f[1]);
1220
+ function b(f) {
1221
+ return f === "top" ? "text-before-edge" : "middle";
1264
1222
  }
1265
- a(p, "getDominantBaseLine");
1266
- function k(y) {
1267
- return y === "left" ? "start" : y === "right" ? "end" : "middle";
1223
+ n(b, "getDominantBaseLine");
1224
+ function P(f) {
1225
+ return f === "left" ? "start" : f === "right" ? "end" : "middle";
1268
1226
  }
1269
- a(k, "getTextAnchor");
1270
- function v(y) {
1271
- return `translate(${y.x}, ${y.y}) rotate(${y.rotation || 0})`;
1227
+ n(P, "getTextAnchor");
1228
+ function I(f) {
1229
+ return `translate(${f.x}, ${f.y}) rotate(${f.rotation || 0})`;
1272
1230
  }
1273
- a(v, "getTextTransformation"), Xt.debug(`Rendering xychart chart
1274
- ` + e);
1275
- const C = Ci(t), b = C.append("g").attr("class", "main"), E = b.append("rect").attr("width", g.width).attr("height", g.height).attr("class", "background");
1276
- Si(C, g.height, g.width, !0), C.attr("viewBox", `0 0 ${g.width} ${g.height}`), E.attr("fill", o.backgroundColor), n.setTmpSVGG(C.append("g").attr("class", "mermaid-tmp-group"));
1277
- const D = n.getDrawableElem(), P = {};
1278
- function I(y) {
1279
- let _ = b, c = "";
1280
- for (const [W] of y.entries()) {
1281
- let z = b;
1282
- W > 0 && P[c] && (z = P[c]), c += y[W], _ = P[c], _ || (_ = P[c] = z.append("g").attr("class", y[W]));
1231
+ n(I, "getTextTransformation"), Xt.debug(`Rendering xychart chart
1232
+ ` + s);
1233
+ const R = Ci(t), L = R.append("g").attr("class", "main"), z = L.append("rect").attr("width", d.width).attr("height", d.height).attr("class", "background");
1234
+ Si(R, d.height, d.width, !0), R.attr("viewBox", `0 0 ${d.width} ${d.height}`), z.attr("fill", c.backgroundColor), a.setTmpSVGG(R.append("g").attr("class", "mermaid-tmp-group"));
1235
+ const F = a.getDrawableElem(), D = {};
1236
+ function V(f) {
1237
+ let C = L, l = "";
1238
+ for (const [M] of f.entries()) {
1239
+ let B = L;
1240
+ M > 0 && D[l] && (B = D[l]), l += f[M], C = D[l], C || (C = D[l] = B.append("g").attr("class", f[M]));
1283
1241
  }
1284
- return _;
1242
+ return C;
1285
1243
  }
1286
- a(I, "getGroup");
1287
- for (const y of D) {
1288
- if (y.data.length === 0)
1244
+ n(V, "getGroup");
1245
+ for (const f of F) {
1246
+ if (f.data.length === 0)
1289
1247
  continue;
1290
- const _ = I(y.groupTexts);
1291
- switch (y.type) {
1248
+ const C = V(f.groupTexts);
1249
+ switch (f.type) {
1292
1250
  case "rect":
1293
- if (_.selectAll("rect").data(y.data).enter().append("rect").attr("x", (c) => c.x).attr("y", (c) => c.y).attr("width", (c) => c.width).attr("height", (c) => c.height).attr("fill", (c) => c.fill).attr("stroke", (c) => c.strokeFill).attr("stroke-width", (c) => c.strokeWidth), g.showDataLabel)
1294
- if (g.chartOrientation === "horizontal") {
1295
- let c = function(l, L) {
1296
- const { data: S, label: R } = l;
1297
- return L * R.length * W <= S.width - 10;
1251
+ if (C.selectAll("rect").data(f.data).enter().append("rect").attr("x", (l) => l.x).attr("y", (l) => l.y).attr("width", (l) => l.width).attr("height", (l) => l.height).attr("fill", (l) => l.fill).attr("stroke", (l) => l.strokeFill).attr("stroke-width", (l) => l.strokeWidth), d.showDataLabel)
1252
+ if (d.chartOrientation === "horizontal") {
1253
+ let l = function(h, k) {
1254
+ const { data: w, label: S } = h;
1255
+ return k * S.length * M <= w.width - 10;
1298
1256
  };
1299
- a(c, "fitsHorizontally");
1300
- const W = 0.7, z = y.data.map((l, L) => ({ data: l, label: m[L].toString() })).filter((l) => l.data.width > 0 && l.data.height > 0), U = z.map((l) => {
1301
- const { data: L } = l;
1302
- let S = L.height * 0.7;
1303
- for (; !c(l, S) && S > 0; )
1304
- S -= 1;
1305
- return S;
1257
+ n(l, "fitsHorizontally");
1258
+ const M = 0.7, B = f.data.map((h, k) => ({ data: h, label: m[k].toString() })).filter((h) => h.data.width > 0 && h.data.height > 0), U = B.map((h) => {
1259
+ const { data: k } = h;
1260
+ let w = k.height * 0.7;
1261
+ for (; !l(h, w) && w > 0; )
1262
+ w -= 1;
1263
+ return w;
1306
1264
  }), X = Math.floor(Math.min(...U));
1307
- _.selectAll("text").data(z).enter().append("text").attr("x", (l) => l.data.x + l.data.width - 10).attr("y", (l) => l.data.y + l.data.height / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").attr("fill", "black").attr("font-size", `${X}px`).text((l) => l.label);
1265
+ C.selectAll("text").data(B).enter().append("text").attr("x", (h) => h.data.x + h.data.width - 10).attr("y", (h) => h.data.y + h.data.height / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").attr("fill", "black").attr("font-size", `${X}px`).text((h) => h.label);
1308
1266
  } else {
1309
- let c = function(l, L, S) {
1310
- const { data: R, label: $ } = l, N = L * $.length * 0.7, O = R.x + R.width / 2, h = O - N / 2, u = O + N / 2, x = h >= R.x && u <= R.x + R.width, d = R.y + S + L <= R.y + R.height;
1311
- return x && d;
1267
+ let l = function(h, k, w) {
1268
+ const { data: S, label: $ } = h, N = k * $.length * 0.7, W = S.x + S.width / 2, r = W - N / 2, u = W + N / 2, g = r >= S.x && u <= S.x + S.width, x = S.y + w + k <= S.y + S.height;
1269
+ return g && x;
1312
1270
  };
1313
- a(c, "fitsInBar");
1314
- const W = 10, z = y.data.map((l, L) => ({ data: l, label: m[L].toString() })).filter((l) => l.data.width > 0 && l.data.height > 0), U = z.map((l) => {
1315
- const { data: L, label: S } = l;
1316
- let R = L.width / (S.length * 0.7);
1317
- for (; !c(l, R, W) && R > 0; )
1318
- R -= 1;
1319
- return R;
1271
+ n(l, "fitsInBar");
1272
+ const M = 10, B = f.data.map((h, k) => ({ data: h, label: m[k].toString() })).filter((h) => h.data.width > 0 && h.data.height > 0), U = B.map((h) => {
1273
+ const { data: k, label: w } = h;
1274
+ let S = k.width / (w.length * 0.7);
1275
+ for (; !l(h, S, M) && S > 0; )
1276
+ S -= 1;
1277
+ return S;
1320
1278
  }), X = Math.floor(Math.min(...U));
1321
- _.selectAll("text").data(z).enter().append("text").attr("x", (l) => l.data.x + l.data.width / 2).attr("y", (l) => l.data.y + W).attr("text-anchor", "middle").attr("dominant-baseline", "hanging").attr("fill", "black").attr("font-size", `${X}px`).text((l) => l.label);
1279
+ C.selectAll("text").data(B).enter().append("text").attr("x", (h) => h.data.x + h.data.width / 2).attr("y", (h) => h.data.y + M).attr("text-anchor", "middle").attr("dominant-baseline", "hanging").attr("fill", "black").attr("font-size", `${X}px`).text((h) => h.label);
1322
1280
  }
1323
1281
  break;
1324
1282
  case "text":
1325
- _.selectAll("text").data(y.data).enter().append("text").attr("x", 0).attr("y", 0).attr("fill", (c) => c.fill).attr("font-size", (c) => c.fontSize).attr("dominant-baseline", (c) => p(c.verticalPos)).attr("text-anchor", (c) => k(c.horizontalPos)).attr("transform", (c) => v(c)).text((c) => c.text);
1283
+ C.selectAll("text").data(f.data).enter().append("text").attr("x", 0).attr("y", 0).attr("fill", (l) => l.fill).attr("font-size", (l) => l.fontSize).attr("dominant-baseline", (l) => b(l.verticalPos)).attr("text-anchor", (l) => P(l.horizontalPos)).attr("transform", (l) => I(l)).text((l) => l.text);
1326
1284
  break;
1327
1285
  case "path":
1328
- _.selectAll("path").data(y.data).enter().append("path").attr("d", (c) => c.path).attr("fill", (c) => c.fill ? c.fill : "none").attr("stroke", (c) => c.strokeFill).attr("stroke-width", (c) => c.strokeWidth);
1286
+ C.selectAll("path").data(f.data).enter().append("path").attr("d", (l) => l.path).attr("fill", (l) => l.fill ? l.fill : "none").attr("stroke", (l) => l.strokeFill).attr("stroke-width", (l) => l.strokeWidth);
1329
1287
  break;
1330
1288
  }
1331
1289
  }
1332
- }, "draw"), Oi = {
1333
- draw: zi
1334
- }, Ui = {
1335
- parser: Ti,
1336
- db: Wi,
1337
- renderer: Oi
1290
+ }, "draw"), Bi = {
1291
+ draw: Mi
1292
+ }, Xi = {
1293
+ parser: _i,
1294
+ db: Vi,
1295
+ renderer: Bi
1338
1296
  };
1339
1297
  export {
1340
- Ui as diagram
1298
+ Xi as diagram
1341
1299
  };