@jackuait/blok 0.10.0-beta.6 → 0.10.0-beta.7

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 (409) hide show
  1. package/codemod/migrate-editorjs-to-blok.js +0 -2
  2. package/codemod/test.js +0 -6
  3. package/dist/blok.mjs +2 -2
  4. package/dist/chunks/_basePickBy-BHRNO12X.mjs +410 -0
  5. package/dist/chunks/_baseUniq-DtFPDBML.mjs +1045 -0
  6. package/dist/chunks/_getTag-ozrhqxk_.mjs +26 -0
  7. package/dist/chunks/arc-BEqJP9HX.mjs +80 -0
  8. package/dist/chunks/architecture-YZFGNWBL-Bcu-90pi.mjs +3 -0
  9. package/dist/chunks/architectureDiagram-Q4EWVU46-BMno5LCn.mjs +4066 -0
  10. package/dist/chunks/array-Cyf-61SV.mjs +6 -0
  11. package/dist/chunks/blockDiagram-DXYQGD6D-DlP_cPth.mjs +3259 -0
  12. package/dist/chunks/{blok-BdlR_lX6.mjs → blok-CiLRmoHI.mjs} +850 -855
  13. package/dist/chunks/c4Diagram-AHTNJAMY-BbVV8EXj.mjs +2956 -0
  14. package/dist/chunks/channel-DPcniO2B.mjs +5 -0
  15. package/dist/chunks/chunk-2KRD3SAO-CazES4VS.mjs +20 -0
  16. package/dist/chunks/chunk-336JU56O-heO72r_k.mjs +49 -0
  17. package/dist/chunks/chunk-426QAEUC-CmCcml1z.mjs +13 -0
  18. package/dist/chunks/chunk-4BX2VUAB-B10DxOza.mjs +19 -0
  19. package/dist/chunks/chunk-4TB4RGXK-B0snhZOU.mjs +3250 -0
  20. package/dist/chunks/chunk-55IACEB6-CGkn5ABd.mjs +8 -0
  21. package/dist/chunks/chunk-5FUZZQ4R-USdumo_u.mjs +3786 -0
  22. package/dist/chunks/chunk-5PVQY5BW-CxUGVzQL.mjs +1692 -0
  23. package/dist/chunks/chunk-67CJDMHE-Bvw55oRa.mjs +20 -0
  24. package/dist/chunks/chunk-7N4EOEYR-Bs2qDy88.mjs +29 -0
  25. package/dist/chunks/chunk-AA7GKIK3-Bss0LgrN.mjs +24 -0
  26. package/dist/chunks/chunk-BSJP7CBP-CpUW7gi5.mjs +83 -0
  27. package/dist/chunks/chunk-CIAEETIT-DlRbLLf3.mjs +20 -0
  28. package/dist/chunks/{chunk-Byubey_H.mjs → chunk-D6kmoKXy.mjs} +5 -5
  29. package/dist/chunks/chunk-EDXVE4YY-DEcX4XWm.mjs +26 -0
  30. package/dist/chunks/chunk-ENJZ2VHE-B4THRZkR.mjs +566 -0
  31. package/dist/chunks/chunk-FMBD7UC4-CF6BKEiV.mjs +5 -0
  32. package/dist/chunks/chunk-FOC6F5B3--xuza7Yn.mjs +20 -0
  33. package/dist/chunks/chunk-ICPOFSXX-BMja8cuy.mjs +3290 -0
  34. package/dist/chunks/chunk-K5T4RW27-CHEqGHFS.mjs +16370 -0
  35. package/dist/chunks/chunk-KGLVRYIC-DHYYpR8v.mjs +20 -0
  36. package/dist/chunks/chunk-LIHQZDEY-AvbOvyLE.mjs +55 -0
  37. package/dist/chunks/chunk-ORNJ4GCN-38fbR5OS.mjs +25 -0
  38. package/dist/chunks/chunk-OYMX7WX6-BiqlATPA.mjs +2038 -0
  39. package/dist/chunks/chunk-QZHKN3VN-DitZIvj8.mjs +12 -0
  40. package/dist/chunks/chunk-U2HBQHQK-DJytnHmZ.mjs +1875 -0
  41. package/dist/chunks/chunk-X2U36JSP-DlOifw1K.mjs +68 -0
  42. package/dist/chunks/chunk-XPW4576I-s4fsi4XO.mjs +1146 -0
  43. package/dist/chunks/chunk-YZCP3GAM-Ch258bXC.mjs +60 -0
  44. package/dist/chunks/chunk-ZZ45TVLE-DWziaKxP.mjs +33 -0
  45. package/dist/chunks/classDiagram-6PBFFD2Q-BOkAe08u.mjs +30 -0
  46. package/dist/chunks/classDiagram-v2-HSJHXN6E-DeKatSvh.mjs +30 -0
  47. package/dist/chunks/clone-CJCz7VRp.mjs +8 -0
  48. package/dist/chunks/{constants-Cp8O0UfP.mjs → constants-DFS8l39Y.mjs} +49 -50
  49. package/dist/chunks/cose-bilkent-S5V4N54A-CzLGVqvr.mjs +2246 -0
  50. package/dist/chunks/cytoscape.esm-D0iglm-M.mjs +18108 -0
  51. package/dist/chunks/dagre-KV5264BT-XbHSjleO.mjs +298 -0
  52. package/dist/chunks/dagre-XY8CZ1sg.mjs +1536 -0
  53. package/dist/chunks/defaultLocale-DFhS1600.mjs +201 -0
  54. package/dist/chunks/diagram-5BDNPKRD-CM7c3UTI.mjs +112 -0
  55. package/dist/chunks/diagram-G4DWMVQ6-Bhg4ps6b.mjs +546 -0
  56. package/dist/chunks/diagram-MMDJMWI5-C-UCVaxB.mjs +234 -0
  57. package/dist/chunks/diagram-TYMM5635-BOHSujSD.mjs +144 -0
  58. package/dist/chunks/dist-DHsXIYdd.mjs +59 -0
  59. package/dist/chunks/erDiagram-SMLLAGMA-CwKxXFMB.mjs +1712 -0
  60. package/dist/chunks/flowDiagram-DWJPFMVM-rQJKfyuO.mjs +4175 -0
  61. package/dist/chunks/ganttDiagram-T4ZO3ILL-DfaZirLX.mjs +3083 -0
  62. package/dist/chunks/gitGraph-7Q5UKJZL-BKG8cHGz.mjs +3 -0
  63. package/dist/chunks/gitGraphDiagram-UUTBAWPF-CRa-ymsI.mjs +792 -0
  64. package/dist/chunks/graphlib-CuDElSdG.mjs +223 -0
  65. package/dist/chunks/{i18next-loader-oDO9ZKUV.mjs → i18next-loader-CasQQb5s.mjs} +2 -2
  66. package/dist/chunks/info-OMHHGYJF-FKqYyUn9.mjs +3 -0
  67. package/dist/chunks/infoDiagram-42DDH7IO-CvyJU2nE.mjs +29 -0
  68. package/dist/chunks/init-JlKGZtuT.mjs +15 -0
  69. package/dist/chunks/ishikawaDiagram-UXIWVN3A-CIpbw1BK.mjs +719 -0
  70. package/dist/chunks/journeyDiagram-VCZTEJTY-H96UcUK9.mjs +885 -0
  71. package/dist/chunks/kanban-definition-6JOO6SKY-BYZT3srA.mjs +980 -0
  72. package/dist/chunks/{katex-NjLaA6AJ.mjs → katex-JyOgX6MW.mjs} +1 -1
  73. package/dist/chunks/{lightweight-i18n-DTySD6f6.mjs → lightweight-i18n-Cvv8CWh4.mjs} +13 -0
  74. package/dist/chunks/line-B9xUUA7k.mjs +34 -0
  75. package/dist/chunks/linear-Dj-1yA_B.mjs +289 -0
  76. package/dist/chunks/mermaid-parser.core-D6OPAUtM.mjs +57 -0
  77. package/dist/chunks/mermaid.core-BPN9ZHKQ.mjs +989 -0
  78. package/dist/{messages-B4lhNMKm2.mjs → chunks/messages--YKhFEDE.mjs} +28 -3
  79. package/dist/chunks/{messages-CF_PfacZ.mjs → messages-0Uwu1AMJ2.mjs} +26 -1
  80. package/dist/{messages-Bug6Du35.mjs → chunks/messages-1__0Ph4Q.mjs} +26 -1
  81. package/dist/chunks/{messages-CnQydQJd2.mjs → messages-4sm9Pb0C.mjs} +26 -1
  82. package/dist/chunks/{messages-BDXl53cy2.mjs → messages-4uxjtzKW.mjs} +26 -1
  83. package/dist/{messages-DQN1y6E9.mjs → chunks/messages-B-SwLgkQ.mjs} +28 -3
  84. package/dist/chunks/{messages-BlcRm2I3.mjs → messages-B1ylBxXQ.mjs} +26 -1
  85. package/dist/{messages-12_eyAo-.mjs → chunks/messages-B5m3dhKc.mjs} +26 -1
  86. package/dist/chunks/{messages-D8-N0FmU.mjs → messages-B6n2zDtv.mjs} +27 -2
  87. package/dist/chunks/{messages-BMq9k_lI.mjs → messages-BC9w4zAT.mjs} +26 -1
  88. package/dist/{messages-CsiGzUSP2.mjs → chunks/messages-BOj-7N3p.mjs} +26 -1
  89. package/dist/chunks/{messages-CvlMT1e62.mjs → messages-BRYHTS18.mjs} +26 -1
  90. package/dist/{messages-hrSlVSHp.mjs → chunks/messages-BSBbVjor.mjs} +33 -8
  91. package/dist/{messages-uCsQjz7M.mjs → chunks/messages-BUUkmUGc.mjs} +26 -1
  92. package/dist/chunks/{messages-DopbvJlg.mjs → messages-Bb3YEV2P.mjs} +31 -6
  93. package/dist/{messages-KqWQKmIu2.mjs → chunks/messages-Be_6YLzJ.mjs} +27 -2
  94. package/dist/chunks/{messages-BXn9Vzbx2.mjs → messages-BevRhv5d.mjs} +26 -1
  95. package/dist/chunks/{messages-DQ5ng0_t2.mjs → messages-Bhqr7Im2.mjs} +26 -1
  96. package/dist/{messages-B3Yhiycb2.mjs → chunks/messages-BpJFjSKa.mjs} +27 -2
  97. package/dist/chunks/{messages-BaoJwsEZ.mjs → messages-BqYlq_Bn.mjs} +26 -1
  98. package/dist/chunks/{messages-vN4T4r67.mjs → messages-BtAwCUfD.mjs} +26 -1
  99. package/dist/{messages-Cb3wXGnc.mjs → chunks/messages-Bthbp65G.mjs} +27 -2
  100. package/dist/{messages-x353UCBI.mjs → chunks/messages-BvHMZ8Pi2.mjs} +26 -1
  101. package/dist/{messages-BOE2mzCj2.mjs → chunks/messages-Bw1BE9jW.mjs} +26 -1
  102. package/dist/chunks/{messages-C5aCWL7B.mjs → messages-Bx6Wt285.mjs} +26 -1
  103. package/dist/{messages-C8f1I5EQ2.mjs → chunks/messages-BzslJRYv.mjs} +27 -2
  104. package/dist/chunks/{messages-CZ5Sbf8U.mjs → messages-C02M0Tpw.mjs} +26 -1
  105. package/dist/chunks/{messages-DN-194c32.mjs → messages-C1u3E9qg.mjs} +26 -1
  106. package/dist/chunks/{messages-DdmWzF5M.mjs → messages-C68WgSKk.mjs} +27 -2
  107. package/dist/chunks/{messages-Dgng6KN8.mjs → messages-C8w8JCP0.mjs} +28 -3
  108. package/dist/chunks/{messages-B5fKJXd6.mjs → messages-CFOZdSk4.mjs} +26 -1
  109. package/dist/chunks/{messages-5ArOv8cj.mjs → messages-CGOY79lr.mjs} +26 -1
  110. package/dist/{messages-mipkPgwQ2.mjs → chunks/messages-CGaSMZPu.mjs} +26 -1
  111. package/dist/{messages-Dq_v7slw2.mjs → chunks/messages-CJJgQ0BH.mjs} +26 -1
  112. package/dist/chunks/{messages-DUGEqDEG.mjs → messages-CTD6rtQj2.mjs} +26 -1
  113. package/dist/{messages-DIKCwGog.mjs → chunks/messages-CZymJML9.mjs} +30 -5
  114. package/dist/chunks/{messages-CcyIKgGU.mjs → messages-CfeFJbiv.mjs} +30 -5
  115. package/dist/chunks/{messages-BXSXk3oS2.mjs → messages-Cgatzu_z.mjs} +28 -3
  116. package/dist/{messages-CBPiFbEf2.mjs → chunks/messages-Ch2zBI602.mjs} +26 -1
  117. package/dist/chunks/{messages-yszqJukE.mjs → messages-CiAHsUfO.mjs} +26 -1
  118. package/dist/chunks/{messages-bmwto4UV.mjs → messages-Cuzq-tNW.mjs} +26 -1
  119. package/dist/{messages-JK9Okzsy2.mjs → chunks/messages-Cw4qiMwb.mjs} +26 -1
  120. package/dist/chunks/{messages-DSO2U-ul.mjs → messages-Cyh-mz40.mjs} +26 -1
  121. package/dist/{messages-DbZsJAff.mjs → chunks/messages-D-I2QO8H.mjs} +26 -1
  122. package/dist/chunks/{messages-BhcYsC_M2.mjs → messages-D0D2gruy.mjs} +26 -1
  123. package/dist/{messages-X80Nh0ib.mjs → chunks/messages-D1BKxfLD.mjs} +27 -2
  124. package/dist/chunks/{messages-CjVPwkVy.mjs → messages-D4eDs6R_.mjs} +26 -1
  125. package/dist/{messages-C5Uufygq.mjs → chunks/messages-D9Xr-hES.mjs} +26 -1
  126. package/dist/{messages-DkvQ-6HC2.mjs → chunks/messages-D9eJPHia.mjs} +28 -3
  127. package/dist/chunks/{messages-DRv4g-IA.mjs → messages-DBFWSzKY2.mjs} +26 -1
  128. package/dist/chunks/{messages-SSDr5fGF2.mjs → messages-DC0wu2S7.mjs} +26 -1
  129. package/dist/{messages-Bdk4ocMI.mjs → chunks/messages-DF9o19rG.mjs} +26 -1
  130. package/dist/chunks/{messages-DVKifYlq.mjs → messages-DFS_n986.mjs} +49 -24
  131. package/dist/{messages-CvvbLyTy2.mjs → chunks/messages-DGS4H30T.mjs} +26 -1
  132. package/dist/{messages-PvMdmlxI.mjs → chunks/messages-DKjddpzJ.mjs} +28 -3
  133. package/dist/chunks/{messages-DGD6BiGd.mjs → messages-DMvTdUXC.mjs} +28 -3
  134. package/dist/{messages-CD8K1g_t2.mjs → chunks/messages-DQUX-QYI2.mjs} +26 -1
  135. package/dist/chunks/{messages-CqgEz7C5.mjs → messages-DUigq8FO2.mjs} +26 -1
  136. package/dist/chunks/{messages-ByAqzAhB.mjs → messages-DY0FJdpH.mjs} +26 -1
  137. package/dist/{messages-DACg1XAu.mjs → chunks/messages-DfVXiqt-2.mjs} +26 -1
  138. package/dist/{messages-BYQ769S5.mjs → chunks/messages-DgZc9TJw.mjs} +26 -1
  139. package/dist/{messages-Dj79y02X.mjs → chunks/messages-QD4BCUDP.mjs} +26 -1
  140. package/dist/{messages-BeI2HORe2.mjs → chunks/messages-USmweex9.mjs} +26 -1
  141. package/dist/{messages-CEEzfqMO2.mjs → chunks/messages-a1JTi0Qm.mjs} +29 -4
  142. package/dist/chunks/{messages-Dz3UhEco2.mjs → messages-jcgCHPRn.mjs} +26 -1
  143. package/dist/{messages--cUQf9JX.mjs → chunks/messages-tnnqHpbd.mjs} +27 -2
  144. package/dist/chunks/{messages-DZwCufSb.mjs → messages-vzWKPLJO.mjs} +26 -1
  145. package/dist/chunks/{micromark-extension-math-CCEGWpdz.mjs → micromark-extension-math-Cz_ZZ_0Y.mjs} +1 -1
  146. package/dist/chunks/mindmap-definition-QFDTVHPH-BswFuNN6.mjs +1013 -0
  147. package/dist/chunks/ordinal-D1_lEgAO.mjs +65 -0
  148. package/dist/chunks/packet-4T2RLAQJ-DTUW2U0C.mjs +3 -0
  149. package/dist/chunks/path-6nYPAvNb.mjs +85 -0
  150. package/dist/chunks/pie-ZZUOXDRM-D-umqvEM.mjs +3 -0
  151. package/dist/chunks/pieDiagram-DEJITSTG-1WJgvK1w.mjs +179 -0
  152. package/dist/chunks/quadrantDiagram-34T5L4WZ-B_YH8QGl.mjs +1960 -0
  153. package/dist/chunks/radar-PYXPWWZC-DkQelf08.mjs +3 -0
  154. package/dist/chunks/requirementDiagram-MS252O5E-DRl0YJRI.mjs +2224 -0
  155. package/dist/chunks/rough.esm-CSWJruu5.mjs +1353 -0
  156. package/dist/chunks/sankeyDiagram-XADWPNL6-B-8IrknH.mjs +909 -0
  157. package/dist/chunks/sequenceDiagram-FGHM5R23-DTLb8qmO.mjs +4181 -0
  158. package/dist/chunks/src-CRgEHLPW.mjs +2149 -0
  159. package/dist/chunks/stateDiagram-FHFEXIEX-B0JFjLFy.mjs +218 -0
  160. package/dist/chunks/stateDiagram-v2-QKLJ7IA2-Co9CUU_z.mjs +28 -0
  161. package/dist/chunks/timeline-definition-GMOUNBTQ-CS9KTh-Q.mjs +1084 -0
  162. package/dist/chunks/{tools-DGOsJbHH.mjs → tools-CSYsrnud.mjs} +2116 -1268
  163. package/dist/chunks/treeView-SZITEDCU-DOOoyNP9.mjs +3 -0
  164. package/dist/chunks/treemap-W4RFUUIX-CsOoUA-u.mjs +3 -0
  165. package/dist/chunks/vennDiagram-DHZGUBPP-0BNu5Wna.mjs +1876 -0
  166. package/dist/chunks/wardley-RL74JXVD-CCzZcmEk.mjs +3 -0
  167. package/dist/chunks/wardleyDiagram-NUSXRM2D-Ca9XByNH.mjs +594 -0
  168. package/dist/chunks/xychartDiagram-5P7HB3ND-C8AyKUAE.mjs +2017 -0
  169. package/dist/cli.mjs +1 -1
  170. package/dist/full.mjs +3 -3
  171. package/dist/locales.mjs +80 -67
  172. package/dist/markdown.mjs +2 -2
  173. package/dist/{chunks/messages-9l49jauY.mjs → messages-5jvKxQNu2.mjs} +26 -1
  174. package/dist/{messages-CkySRhtd2.mjs → messages-7QD-X6XT2.mjs} +26 -1
  175. package/dist/{chunks/messages-Btr121zI2.mjs → messages-96iaAUds2.mjs} +27 -2
  176. package/dist/{chunks/messages-BAP2OAQk.mjs → messages-B19o-Teb.mjs} +28 -3
  177. package/dist/{messages-DJU4YLij.mjs → messages-B1ZUQagA.mjs} +26 -1
  178. package/dist/{messages-Dg2CDXZi2.mjs → messages-B7ieAJBd2.mjs} +26 -1
  179. package/dist/{messages-CByBLxWk.mjs → messages-BECMxmfX.mjs} +26 -1
  180. package/dist/{messages-CwCEcbWG.mjs → messages-BIHc0KHY.mjs} +27 -2
  181. package/dist/{messages-D8WvwU42.mjs → messages-BIoeoik5.mjs} +26 -1
  182. package/dist/{messages-D38h5XlF.mjs → messages-BJeGJksD.mjs} +26 -1
  183. package/dist/{messages-Cd23UgLV2.mjs → messages-BRZX964b2.mjs} +27 -2
  184. package/dist/{chunks/messages-B9N__q552.mjs → messages-BTQPpoM42.mjs} +29 -4
  185. package/dist/{messages-CUzBNjnc.mjs → messages-BYNcD6uR.mjs} +26 -1
  186. package/dist/{messages-DjWfVYHS2.mjs → messages-BYmmMDrN2.mjs} +26 -1
  187. package/dist/{chunks/messages-DkTxBa1V.mjs → messages-BbYq1pk-.mjs} +26 -1
  188. package/dist/{chunks/messages-BHhbHLoq.mjs → messages-BiUGXvYr2.mjs} +26 -1
  189. package/dist/{messages-So3SHdIc2.mjs → messages-BiiongNz2.mjs} +26 -1
  190. package/dist/{chunks/messages-BxBID_0B.mjs → messages-Bm0Feca1.mjs} +30 -5
  191. package/dist/{messages-C2veeQpU.mjs → messages-BmAn22OX.mjs} +26 -1
  192. package/dist/{messages-KbYSpNrE.mjs → messages-Bq3F2Tp_.mjs} +26 -1
  193. package/dist/{chunks/messages-Dux1S0-D2.mjs → messages-BsycN_JI2.mjs} +26 -1
  194. package/dist/{messages-DRU_IgoW.mjs → messages-BwHs4cm1.mjs} +30 -5
  195. package/dist/{messages-Cv-DKlZd.mjs → messages-CJTy6JZt.mjs} +26 -1
  196. package/dist/{chunks/messages-D7n_wJK7.mjs → messages-CR_L_UtK.mjs} +26 -1
  197. package/dist/{messages-DnhEzmXJ2.mjs → messages-CSUHBs4c2.mjs} +26 -1
  198. package/dist/{messages-C_HmWyXc2.mjs → messages-CWIXvnDf2.mjs} +26 -1
  199. package/dist/{messages-KSxF8eib.mjs → messages-CcF4y-E4.mjs} +26 -1
  200. package/dist/{chunks/messages-CL3mCbi6.mjs → messages-Ce6KVEbT.mjs} +27 -2
  201. package/dist/{chunks/messages-C-jA6Rf7.mjs → messages-Ci0KqX-J.mjs} +33 -8
  202. package/dist/{chunks/messages-DMyRdafk2.mjs → messages-CjbnogEC.mjs} +26 -1
  203. package/dist/{chunks/messages-BlO_37l_.mjs → messages-CmB406HW.mjs} +28 -3
  204. package/dist/{messages-Cho2VTAX.mjs → messages-CqXtJTpU.mjs} +26 -1
  205. package/dist/{messages-CWEL1WDy2.mjs → messages-D0aw5_0k2.mjs} +28 -3
  206. package/dist/{messages-CgEDVri-2.mjs → messages-D8FQWulF2.mjs} +26 -1
  207. package/dist/{chunks/messages-B5aAzExz.mjs → messages-DBiVgUs2.mjs} +27 -2
  208. package/dist/{chunks/messages-DYizZHT2.mjs → messages-DIJlIqlQ2.mjs} +26 -1
  209. package/dist/{messages-BPL7riv-.mjs → messages-DLX_iBDJ.mjs} +26 -1
  210. package/dist/{messages-vptt-pVF.mjs → messages-DLlc9QPw.mjs} +26 -1
  211. package/dist/{chunks/messages-876bKyUj2.mjs → messages-DMr62KiO2.mjs} +26 -1
  212. package/dist/{chunks/messages-CgedvWCf.mjs → messages-DPA-mMWC2.mjs} +27 -2
  213. package/dist/{messages-vcoib5Ga.mjs → messages-DTh9a8mR.mjs} +26 -1
  214. package/dist/{chunks/messages-DgEGJECT.mjs → messages-DY4IqlhY.mjs} +26 -1
  215. package/dist/{chunks/messages-CdzF0Hvl.mjs → messages-DYTTu0O12.mjs} +26 -1
  216. package/dist/{messages-rbox5gSb2.mjs → messages-DbySKTKt2.mjs} +28 -3
  217. package/dist/{chunks/messages-BGCQCeWd.mjs → messages-Ddnj2iTG2.mjs} +26 -1
  218. package/dist/{chunks/messages-CNEJxD8q2.mjs → messages-DkLU_rWm.mjs} +26 -1
  219. package/dist/{chunks/messages-FYl9woii2.mjs → messages-Dl3Sv6Rq2.mjs} +27 -2
  220. package/dist/{messages-Clsh86WQ.mjs → messages-Dl5Y2-Ia.mjs} +49 -24
  221. package/dist/{chunks/messages-CKRJDX0K2.mjs → messages-DnG0ef8t2.mjs} +28 -3
  222. package/dist/{chunks/messages-CyxDkx8a.mjs → messages-DnGJD4TL.mjs} +26 -1
  223. package/dist/{chunks/messages-DnJHflSh.mjs → messages-Dnp9N6RU2.mjs} +26 -1
  224. package/dist/{chunks/messages-Jps5Tc77.mjs → messages-Dvn35ksS.mjs} +26 -1
  225. package/dist/{messages-ChTWmxS8.mjs → messages-Dw__BcTj.mjs} +26 -1
  226. package/dist/{messages-D7juvhHp.mjs → messages-Dy-Y_nEI.mjs} +26 -1
  227. package/dist/{messages-CNNcKuGH.mjs → messages-E_ZuzGDt.mjs} +26 -1
  228. package/dist/{chunks/messages-DJO0ERQT.mjs → messages-F2xRoY1w.mjs} +26 -1
  229. package/dist/{messages-DqJTZbwt.mjs → messages-Smt4GBbj.mjs} +31 -6
  230. package/dist/{chunks/messages-D8dKkyII2.mjs → messages-aMXpHt5X2.mjs} +26 -1
  231. package/dist/{chunks/messages-DWD0ry9x.mjs → messages-aWZH50vu2.mjs} +28 -3
  232. package/dist/{chunks/messages-BbfLRqLh2.mjs → messages-dv19AkyJ.mjs} +26 -1
  233. package/dist/{chunks/messages-Dw2rmKMi2.mjs → messages-hWwSRF-2.mjs} +26 -1
  234. package/dist/{messages-En8LDjUB.mjs → messages-j7o5rT9s.mjs} +26 -1
  235. package/dist/{chunks/messages-NJsvFwJj.mjs → messages-nUVjeh7K.mjs} +27 -2
  236. package/dist/{messages-Cg1CF4pw.mjs → messages-nlhESX9t.mjs} +26 -1
  237. package/dist/{messages-CSl0Wla62.mjs → messages-rk-A1Wa42.mjs} +28 -3
  238. package/dist/{messages-nOe1gJYu.mjs → messages-xh2eOLvs.mjs} +26 -1
  239. package/dist/{messages-B_sKqaeK.mjs → messages-ynAe7ewZ.mjs} +26 -1
  240. package/dist/react.mjs +2 -2
  241. package/dist/tools.mjs +2 -2
  242. package/dist/vendor.LICENSE.txt +3254 -297
  243. package/package.json +7 -2
  244. package/src/components/constants/data-attributes.ts +0 -2
  245. package/src/components/i18n/locales/am/messages.json +26 -1
  246. package/src/components/i18n/locales/ar/messages.json +26 -1
  247. package/src/components/i18n/locales/az/messages.json +26 -1
  248. package/src/components/i18n/locales/bg/messages.json +26 -1
  249. package/src/components/i18n/locales/bn/messages.json +26 -1
  250. package/src/components/i18n/locales/bs/messages.json +28 -3
  251. package/src/components/i18n/locales/cs/messages.json +30 -5
  252. package/src/components/i18n/locales/da/messages.json +33 -8
  253. package/src/components/i18n/locales/de/messages.json +31 -6
  254. package/src/components/i18n/locales/dv/messages.json +26 -1
  255. package/src/components/i18n/locales/el/messages.json +26 -1
  256. package/src/components/i18n/locales/en/messages.json +13 -0
  257. package/src/components/i18n/locales/es/messages.json +27 -2
  258. package/src/components/i18n/locales/et/messages.json +30 -5
  259. package/src/components/i18n/locales/fa/messages.json +26 -1
  260. package/src/components/i18n/locales/fi/messages.json +26 -1
  261. package/src/components/i18n/locales/fil/messages.json +49 -24
  262. package/src/components/i18n/locales/fr/messages.json +27 -2
  263. package/src/components/i18n/locales/gu/messages.json +26 -1
  264. package/src/components/i18n/locales/he/messages.json +26 -1
  265. package/src/components/i18n/locales/hi/messages.json +26 -1
  266. package/src/components/i18n/locales/hr/messages.json +28 -3
  267. package/src/components/i18n/locales/hu/messages.json +27 -2
  268. package/src/components/i18n/locales/hy/messages.json +26 -1
  269. package/src/components/i18n/locales/id/messages.json +26 -1
  270. package/src/components/i18n/locales/it/messages.json +27 -2
  271. package/src/components/i18n/locales/ja/messages.json +26 -1
  272. package/src/components/i18n/locales/ka/messages.json +26 -1
  273. package/src/components/i18n/locales/km/messages.json +26 -1
  274. package/src/components/i18n/locales/kn/messages.json +26 -1
  275. package/src/components/i18n/locales/ko/messages.json +26 -1
  276. package/src/components/i18n/locales/ku/messages.json +26 -1
  277. package/src/components/i18n/locales/lo/messages.json +26 -1
  278. package/src/components/i18n/locales/lt/messages.json +26 -1
  279. package/src/components/i18n/locales/lv/messages.json +26 -1
  280. package/src/components/i18n/locales/mk/messages.json +26 -1
  281. package/src/components/i18n/locales/ml/messages.json +26 -1
  282. package/src/components/i18n/locales/mn/messages.json +26 -1
  283. package/src/components/i18n/locales/mr/messages.json +26 -1
  284. package/src/components/i18n/locales/ms/messages.json +28 -3
  285. package/src/components/i18n/locales/my/messages.json +26 -1
  286. package/src/components/i18n/locales/ne/messages.json +26 -1
  287. package/src/components/i18n/locales/nl/messages.json +28 -3
  288. package/src/components/i18n/locales/no/messages.json +29 -4
  289. package/src/components/i18n/locales/pa/messages.json +26 -1
  290. package/src/components/i18n/locales/pl/messages.json +27 -2
  291. package/src/components/i18n/locales/ps/messages.json +26 -1
  292. package/src/components/i18n/locales/pt/messages.json +27 -2
  293. package/src/components/i18n/locales/ro/messages.json +27 -2
  294. package/src/components/i18n/locales/ru/messages.json +26 -1
  295. package/src/components/i18n/locales/sd/messages.json +26 -1
  296. package/src/components/i18n/locales/si/messages.json +26 -1
  297. package/src/components/i18n/locales/sk/messages.json +28 -3
  298. package/src/components/i18n/locales/sl/messages.json +28 -3
  299. package/src/components/i18n/locales/sq/messages.json +27 -2
  300. package/src/components/i18n/locales/sr/messages.json +26 -1
  301. package/src/components/i18n/locales/sv/messages.json +28 -3
  302. package/src/components/i18n/locales/sw/messages.json +26 -1
  303. package/src/components/i18n/locales/ta/messages.json +26 -1
  304. package/src/components/i18n/locales/te/messages.json +26 -1
  305. package/src/components/i18n/locales/th/messages.json +26 -1
  306. package/src/components/i18n/locales/tr/messages.json +26 -1
  307. package/src/components/i18n/locales/ug/messages.json +26 -1
  308. package/src/components/i18n/locales/uk/messages.json +26 -1
  309. package/src/components/i18n/locales/ur/messages.json +26 -1
  310. package/src/components/i18n/locales/vi/messages.json +26 -1
  311. package/src/components/i18n/locales/yi/messages.json +26 -1
  312. package/src/components/i18n/locales/zh/messages.json +26 -1
  313. package/src/components/icons/index.ts +38 -0
  314. package/src/components/modules/ui.ts +0 -13
  315. package/src/stories/EditorModes.stories.ts +0 -60
  316. package/src/styles/main.css +39 -1
  317. package/src/tools/callout/emoji-picker/index.ts +3 -2
  318. package/src/tools/code/code-keyboard.ts +16 -9
  319. package/src/tools/code/constants.ts +26 -3
  320. package/src/tools/code/dom-builder.ts +40 -5
  321. package/src/tools/code/highlight-applier.ts +229 -0
  322. package/src/tools/code/index.ts +141 -1
  323. package/src/tools/code/mermaid-loader.ts +45 -0
  324. package/src/tools/code/shiki-loader.ts +135 -0
  325. package/src/tools/table/core/table-commands.ts +16 -0
  326. package/src/tools/table/core/table-controller.ts +29 -0
  327. package/src/tools/table/core/table-events.ts +17 -0
  328. package/src/tools/table/index.ts +194 -11
  329. package/src/tools/table/table-cell-blocks.ts +9 -6
  330. package/src/tools/table/table-cell-clipboard.ts +6 -1
  331. package/src/tools/table/table-cell-placement-picker.ts +133 -0
  332. package/src/tools/table/table-cell-selection.ts +174 -19
  333. package/src/tools/table/table-core.ts +321 -113
  334. package/src/tools/table/table-map.ts +279 -0
  335. package/src/tools/table/table-model.ts +901 -1
  336. package/src/tools/table/table-operations.ts +78 -44
  337. package/src/tools/table/table-resize.ts +19 -17
  338. package/src/tools/table/table-row-col-drag.ts +24 -10
  339. package/src/tools/table/types.ts +24 -2
  340. package/types/data-attributes.d.ts +0 -1
  341. package/types/tools/code.d.ts +2 -0
  342. /package/dist/chunks/{am-CS-JjQ0N.mjs → am-rVzV1W41.mjs} +0 -0
  343. /package/dist/chunks/{ar-Dt4XzR5U.mjs → ar-C710lkoH.mjs} +0 -0
  344. /package/dist/chunks/{az-CaDTXby8.mjs → az-BOp1pgua.mjs} +0 -0
  345. /package/dist/chunks/{bg-D1pLog-R.mjs → bg-CL9p09ZD.mjs} +0 -0
  346. /package/dist/chunks/{bn-Db_ae60m.mjs → bn-CNmSeyAy.mjs} +0 -0
  347. /package/dist/chunks/{bs-DJTg1R9e.mjs → bs-BRzMGqzk.mjs} +0 -0
  348. /package/dist/chunks/{cs-_Gc21gSL.mjs → cs-BYPBLmnF.mjs} +0 -0
  349. /package/dist/chunks/{da-xDB8uhCd.mjs → da-CBC_LR1c.mjs} +0 -0
  350. /package/dist/chunks/{de-B6gVjh1Z.mjs → de-DxRFMoAj.mjs} +0 -0
  351. /package/dist/chunks/{el-ClbRSnOs.mjs → el-Bk6YbySf.mjs} +0 -0
  352. /package/dist/chunks/{es-CuY9rnLK.mjs → es-DpT3FCMR.mjs} +0 -0
  353. /package/dist/chunks/{et-BLu5lDVc.mjs → et-DE9Dr_g9.mjs} +0 -0
  354. /package/dist/chunks/{fa-P3gnrZH8.mjs → fa-Banj1QUE.mjs} +0 -0
  355. /package/dist/chunks/{fi-B8PVHLjq.mjs → fi-DfN3M5ER.mjs} +0 -0
  356. /package/dist/chunks/{fil-B9JII5iF.mjs → fil-DbCsRS1d.mjs} +0 -0
  357. /package/dist/chunks/{fr-BWLDZdcc.mjs → fr-D1clKhgt.mjs} +0 -0
  358. /package/dist/chunks/{gu-BH3R_s4c.mjs → gu-1CsZyRwT.mjs} +0 -0
  359. /package/dist/chunks/{he-CCmeCVR_.mjs → he-qQdnL6eK.mjs} +0 -0
  360. /package/dist/chunks/{hi-BBav00DN.mjs → hi-DxM0Nff1.mjs} +0 -0
  361. /package/dist/chunks/{hr-B5ZX0r9G.mjs → hr-Onldyi-u.mjs} +0 -0
  362. /package/dist/chunks/{hu-1jgDa3YU.mjs → hu-CAn3pBuY.mjs} +0 -0
  363. /package/dist/chunks/{hy-LX4Kp2PE.mjs → hy-D43q7NxE.mjs} +0 -0
  364. /package/dist/chunks/{i18next-KNC_XV5x.mjs → i18next-BBGW2sDE.mjs} +0 -0
  365. /package/dist/chunks/{id-CcG40D1H.mjs → id-Xrw5Dd0Y.mjs} +0 -0
  366. /package/dist/chunks/{it-Cb8_K72W.mjs → it-CA9ZDMSc.mjs} +0 -0
  367. /package/dist/chunks/{ja-ipCH91mv.mjs → ja-D0J6WRFh.mjs} +0 -0
  368. /package/dist/chunks/{ka-BRvREIgq.mjs → ka-BZL7xDuY.mjs} +0 -0
  369. /package/dist/chunks/{km-BJwVw7Fg.mjs → km-BimgQZVU.mjs} +0 -0
  370. /package/dist/chunks/{kn-BPgUazCC.mjs → kn-C2n2cPHK.mjs} +0 -0
  371. /package/dist/chunks/{ko-CQLzxe7k.mjs → ko-n4Cn93D3.mjs} +0 -0
  372. /package/dist/chunks/{ku-BHhHu8Iz.mjs → ku-BYZCgT44.mjs} +0 -0
  373. /package/dist/chunks/{lo-DsTgYblY.mjs → lo-DVXiAE4N.mjs} +0 -0
  374. /package/dist/chunks/{lt-CDzHJm71.mjs → lt-B9KlQFnY.mjs} +0 -0
  375. /package/dist/chunks/{lv-MLLIAnIX.mjs → lv-BINeOdyx.mjs} +0 -0
  376. /package/dist/chunks/{mdast-util-math-yS0EygZV.mjs → mdast-util-math-CHYUxOHk.mjs} +0 -0
  377. /package/dist/chunks/{mk-DQdmUquZ.mjs → mk-_-QrPrLN.mjs} +0 -0
  378. /package/dist/chunks/{ml-DqehZnra.mjs → ml-KvJSC1KT.mjs} +0 -0
  379. /package/dist/chunks/{mn-4cFkKFjW.mjs → mn-CjFjWnRG.mjs} +0 -0
  380. /package/dist/chunks/{mr-DWiztOP4.mjs → mr-DqAZ7FRX.mjs} +0 -0
  381. /package/dist/chunks/{ms-BSz-iSnc.mjs → ms-BZcV4UG_.mjs} +0 -0
  382. /package/dist/chunks/{my-DbtbM1MW.mjs → my-97SC9jYN.mjs} +0 -0
  383. /package/dist/chunks/{ne-CqALWw_f.mjs → ne-Bs-M2TyF.mjs} +0 -0
  384. /package/dist/chunks/{nl-D_ra6RvH.mjs → nl-2ZwQilo-.mjs} +0 -0
  385. /package/dist/chunks/{no-Cg_kz_jl.mjs → no-fOQTpFq1.mjs} +0 -0
  386. /package/dist/chunks/{notifier-BOwxj_Ok.mjs → notifier-B1zCi9G1.mjs} +0 -0
  387. /package/dist/chunks/{pa-NLAsNqwY.mjs → pa-DLOqkMi0.mjs} +0 -0
  388. /package/dist/chunks/{pl-NHKp4YDg.mjs → pl-FYs9QrXU.mjs} +0 -0
  389. /package/dist/chunks/{ps-D1zEqNeg.mjs → ps-CTXe6pSe.mjs} +0 -0
  390. /package/dist/chunks/{pt-DBtqbUEB.mjs → pt-B1X4x7d1.mjs} +0 -0
  391. /package/dist/chunks/{ro-lqr63ai5.mjs → ro-Bf7S2FaR.mjs} +0 -0
  392. /package/dist/chunks/{ru-BycNnDyN.mjs → ru-B8lqnu_j.mjs} +0 -0
  393. /package/dist/chunks/{sd-DpHpIN9Z.mjs → sd-CHRYJm2r.mjs} +0 -0
  394. /package/dist/chunks/{si-BwiwaC7N.mjs → si-CI0Hs6vH.mjs} +0 -0
  395. /package/dist/chunks/{sk-CqRHT2Gp.mjs → sk-Bdvq1Kb_.mjs} +0 -0
  396. /package/dist/chunks/{sl-DA348uQ_.mjs → sl-B_qiFTV5.mjs} +0 -0
  397. /package/dist/chunks/{sq-D7JNgve1.mjs → sq-E0j1hysP.mjs} +0 -0
  398. /package/dist/chunks/{sr-D8RK6Kwp.mjs → sr-VPpVNTZw.mjs} +0 -0
  399. /package/dist/chunks/{sv-dwgT67ZG.mjs → sv-gKmDSR3d.mjs} +0 -0
  400. /package/dist/chunks/{sw-ZRRJnkem.mjs → sw-zeFLiO23.mjs} +0 -0
  401. /package/dist/chunks/{ta-5x4L5Krl.mjs → ta-Ci-j89hR.mjs} +0 -0
  402. /package/dist/chunks/{te-BZpEimwA.mjs → te-qyMI0M7a.mjs} +0 -0
  403. /package/dist/chunks/{th-Bhr-33kv.mjs → th-DPxHtpdb.mjs} +0 -0
  404. /package/dist/chunks/{tr-6tSNKGNB.mjs → tr-CRV6GS-G.mjs} +0 -0
  405. /package/dist/chunks/{ug-_e-jvr2b.mjs → ug-DW0YFpo5.mjs} +0 -0
  406. /package/dist/chunks/{uk-DooSc2Ja.mjs → uk-ssteuphK.mjs} +0 -0
  407. /package/dist/chunks/{ur-rb-krkIO.mjs → ur-qhY3-jY7.mjs} +0 -0
  408. /package/dist/chunks/{vi-CQkLn2AQ.mjs → vi-CHriMMC8.mjs} +0 -0
  409. /package/dist/chunks/{zh-CXQ40Q2_.mjs → zh-BJktawVN.mjs} +0 -0
@@ -0,0 +1,2017 @@
1
+ import { g as e, h as t } from "./src-CRgEHLPW.mjs";
2
+ import { B as n, C as r, E as i, L as a, V as o, W as s, _ as c, a as l, c as u, d, v as f, y as p } from "./chunk-ICPOFSXX-BMja8cuy.mjs";
3
+ import { t as m } from "./linear-Dj-1yA_B.mjs";
4
+ import { t as h } from "./ordinal-D1_lEgAO.mjs";
5
+ import "./defaultLocale-DFhS1600.mjs";
6
+ import { t as g } from "./init-JlKGZtuT.mjs";
7
+ import "./dist-DHsXIYdd.mjs";
8
+ import { r as _ } from "./chunk-5PVQY5BW-CxUGVzQL.mjs";
9
+ import { t as v } from "./line-B9xUUA7k.mjs";
10
+ import { t as y } from "./chunk-426QAEUC-CmCcml1z.mjs";
11
+ import { t as b } from "./chunk-U2HBQHQK-DJytnHmZ.mjs";
12
+ //#region node_modules/d3-array/src/range.js
13
+ function x(e, t, n) {
14
+ e = +e, t = +t, n = (i = arguments.length) < 2 ? (t = e, e = 0, 1) : i < 3 ? 1 : +n;
15
+ for (var r = -1, i = Math.max(0, Math.ceil((t - e) / n)) | 0, a = Array(i); ++r < i;) a[r] = e + r * n;
16
+ return a;
17
+ }
18
+ //#endregion
19
+ //#region node_modules/d3-scale/src/band.js
20
+ function S() {
21
+ var e = h().unknown(void 0), t = e.domain, n = e.range, r = 0, i = 1, a, o, s = !1, c = 0, l = 0, u = .5;
22
+ delete e.unknown;
23
+ function d() {
24
+ var e = t().length, d = i < r, f = d ? i : r, p = d ? r : i;
25
+ a = (p - f) / Math.max(1, e - c + l * 2), s && (a = Math.floor(a)), f += (p - f - a * (e - c)) * u, o = a * (1 - c), s && (f = Math.round(f), o = Math.round(o));
26
+ var m = x(e).map(function(e) {
27
+ return f + a * e;
28
+ });
29
+ return n(d ? m.reverse() : m);
30
+ }
31
+ return e.domain = function(e) {
32
+ return arguments.length ? (t(e), d()) : t();
33
+ }, e.range = function(e) {
34
+ return arguments.length ? ([r, i] = e, r = +r, i = +i, d()) : [r, i];
35
+ }, e.rangeRound = function(e) {
36
+ return [r, i] = e, r = +r, i = +i, s = !0, d();
37
+ }, e.bandwidth = function() {
38
+ return o;
39
+ }, e.step = function() {
40
+ return a;
41
+ }, e.round = function(e) {
42
+ return arguments.length ? (s = !!e, d()) : s;
43
+ }, e.padding = function(e) {
44
+ return arguments.length ? (c = Math.min(1, l = +e), d()) : c;
45
+ }, e.paddingInner = function(e) {
46
+ return arguments.length ? (c = Math.min(1, e), d()) : c;
47
+ }, e.paddingOuter = function(e) {
48
+ return arguments.length ? (l = +e, d()) : l;
49
+ }, e.align = function(e) {
50
+ return arguments.length ? (u = Math.max(0, Math.min(1, e)), d()) : u;
51
+ }, e.copy = function() {
52
+ return S(t(), [r, i]).round(s).paddingInner(c).paddingOuter(l).align(u);
53
+ }, g.apply(d(), arguments);
54
+ }
55
+ //#endregion
56
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-5P7HB3ND.mjs
57
+ var C, w, T, E, D, O, k, A, j, M, N = (function() {
58
+ var e = /* @__PURE__ */ t(function(e, t, n, r) {
59
+ for (n = n || {}, r = e.length; r--; n[e[r]] = t);
60
+ return n;
61
+ }, "o"), n = [
62
+ 1,
63
+ 10,
64
+ 12,
65
+ 14,
66
+ 16,
67
+ 18,
68
+ 19,
69
+ 21,
70
+ 23
71
+ ], r = [2, 6], i = [1, 3], a = [1, 5], o = [1, 6], s = [1, 7], c = [
72
+ 1,
73
+ 5,
74
+ 10,
75
+ 12,
76
+ 14,
77
+ 16,
78
+ 18,
79
+ 19,
80
+ 21,
81
+ 23,
82
+ 34,
83
+ 35,
84
+ 36
85
+ ], l = [1, 25], u = [1, 26], d = [1, 28], f = [1, 29], p = [1, 30], m = [1, 31], h = [1, 32], g = [1, 33], _ = [1, 34], v = [1, 35], y = [1, 36], b = [1, 37], x = [1, 43], S = [1, 42], C = [1, 47], w = [1, 50], T = [
86
+ 1,
87
+ 10,
88
+ 12,
89
+ 14,
90
+ 16,
91
+ 18,
92
+ 19,
93
+ 21,
94
+ 23,
95
+ 34,
96
+ 35,
97
+ 36
98
+ ], E = [
99
+ 1,
100
+ 10,
101
+ 12,
102
+ 14,
103
+ 16,
104
+ 18,
105
+ 19,
106
+ 21,
107
+ 23,
108
+ 24,
109
+ 26,
110
+ 27,
111
+ 28,
112
+ 34,
113
+ 35,
114
+ 36
115
+ ], D = [
116
+ 1,
117
+ 10,
118
+ 12,
119
+ 14,
120
+ 16,
121
+ 18,
122
+ 19,
123
+ 21,
124
+ 23,
125
+ 24,
126
+ 26,
127
+ 27,
128
+ 28,
129
+ 34,
130
+ 35,
131
+ 36,
132
+ 41,
133
+ 42,
134
+ 43,
135
+ 44,
136
+ 45,
137
+ 46,
138
+ 47,
139
+ 48,
140
+ 49,
141
+ 50
142
+ ], O = [1, 64], k = {
143
+ trace: /* @__PURE__ */ t(function() {}, "trace"),
144
+ yy: {},
145
+ symbols_: {
146
+ error: 2,
147
+ start: 3,
148
+ eol: 4,
149
+ XYCHART: 5,
150
+ chartConfig: 6,
151
+ document: 7,
152
+ CHART_ORIENTATION: 8,
153
+ statement: 9,
154
+ title: 10,
155
+ text: 11,
156
+ X_AXIS: 12,
157
+ parseXAxis: 13,
158
+ Y_AXIS: 14,
159
+ parseYAxis: 15,
160
+ LINE: 16,
161
+ plotData: 17,
162
+ BAR: 18,
163
+ acc_title: 19,
164
+ acc_title_value: 20,
165
+ acc_descr: 21,
166
+ acc_descr_value: 22,
167
+ acc_descr_multiline_value: 23,
168
+ SQUARE_BRACES_START: 24,
169
+ commaSeparatedNumbers: 25,
170
+ SQUARE_BRACES_END: 26,
171
+ NUMBER_WITH_DECIMAL: 27,
172
+ COMMA: 28,
173
+ xAxisData: 29,
174
+ bandData: 30,
175
+ ARROW_DELIMITER: 31,
176
+ commaSeparatedTexts: 32,
177
+ yAxisData: 33,
178
+ NEWLINE: 34,
179
+ SEMI: 35,
180
+ EOF: 36,
181
+ alphaNum: 37,
182
+ STR: 38,
183
+ MD_STR: 39,
184
+ alphaNumToken: 40,
185
+ AMP: 41,
186
+ NUM: 42,
187
+ ALPHA: 43,
188
+ PLUS: 44,
189
+ EQUALS: 45,
190
+ MULT: 46,
191
+ DOT: 47,
192
+ BRKT: 48,
193
+ MINUS: 49,
194
+ UNDERSCORE: 50,
195
+ $accept: 0,
196
+ $end: 1
197
+ },
198
+ terminals_: {
199
+ 2: "error",
200
+ 5: "XYCHART",
201
+ 8: "CHART_ORIENTATION",
202
+ 10: "title",
203
+ 12: "X_AXIS",
204
+ 14: "Y_AXIS",
205
+ 16: "LINE",
206
+ 18: "BAR",
207
+ 19: "acc_title",
208
+ 20: "acc_title_value",
209
+ 21: "acc_descr",
210
+ 22: "acc_descr_value",
211
+ 23: "acc_descr_multiline_value",
212
+ 24: "SQUARE_BRACES_START",
213
+ 26: "SQUARE_BRACES_END",
214
+ 27: "NUMBER_WITH_DECIMAL",
215
+ 28: "COMMA",
216
+ 31: "ARROW_DELIMITER",
217
+ 34: "NEWLINE",
218
+ 35: "SEMI",
219
+ 36: "EOF",
220
+ 38: "STR",
221
+ 39: "MD_STR",
222
+ 41: "AMP",
223
+ 42: "NUM",
224
+ 43: "ALPHA",
225
+ 44: "PLUS",
226
+ 45: "EQUALS",
227
+ 46: "MULT",
228
+ 47: "DOT",
229
+ 48: "BRKT",
230
+ 49: "MINUS",
231
+ 50: "UNDERSCORE"
232
+ },
233
+ productions_: [
234
+ 0,
235
+ [3, 2],
236
+ [3, 3],
237
+ [3, 2],
238
+ [3, 1],
239
+ [6, 1],
240
+ [7, 0],
241
+ [7, 2],
242
+ [9, 2],
243
+ [9, 2],
244
+ [9, 2],
245
+ [9, 2],
246
+ [9, 2],
247
+ [9, 3],
248
+ [9, 2],
249
+ [9, 3],
250
+ [9, 2],
251
+ [9, 2],
252
+ [9, 1],
253
+ [17, 3],
254
+ [25, 3],
255
+ [25, 1],
256
+ [13, 1],
257
+ [13, 2],
258
+ [13, 1],
259
+ [29, 1],
260
+ [29, 3],
261
+ [30, 3],
262
+ [32, 3],
263
+ [32, 1],
264
+ [15, 1],
265
+ [15, 2],
266
+ [15, 1],
267
+ [33, 3],
268
+ [4, 1],
269
+ [4, 1],
270
+ [4, 1],
271
+ [11, 1],
272
+ [11, 1],
273
+ [11, 1],
274
+ [37, 1],
275
+ [37, 2],
276
+ [40, 1],
277
+ [40, 1],
278
+ [40, 1],
279
+ [40, 1],
280
+ [40, 1],
281
+ [40, 1],
282
+ [40, 1],
283
+ [40, 1],
284
+ [40, 1],
285
+ [40, 1]
286
+ ],
287
+ performAction: /* @__PURE__ */ t(function(e, t, n, r, i, a, o) {
288
+ var s = a.length - 1;
289
+ switch (i) {
290
+ case 5:
291
+ r.setOrientation(a[s]);
292
+ break;
293
+ case 9:
294
+ r.setDiagramTitle(a[s].text.trim());
295
+ break;
296
+ case 12:
297
+ r.setLineData({
298
+ text: "",
299
+ type: "text"
300
+ }, a[s]);
301
+ break;
302
+ case 13:
303
+ r.setLineData(a[s - 1], a[s]);
304
+ break;
305
+ case 14:
306
+ r.setBarData({
307
+ text: "",
308
+ type: "text"
309
+ }, a[s]);
310
+ break;
311
+ case 15:
312
+ r.setBarData(a[s - 1], a[s]);
313
+ break;
314
+ case 16:
315
+ this.$ = a[s].trim(), r.setAccTitle(this.$);
316
+ break;
317
+ case 17:
318
+ case 18:
319
+ this.$ = a[s].trim(), r.setAccDescription(this.$);
320
+ break;
321
+ case 19:
322
+ this.$ = a[s - 1];
323
+ break;
324
+ case 20:
325
+ this.$ = [Number(a[s - 2]), ...a[s]];
326
+ break;
327
+ case 21:
328
+ this.$ = [Number(a[s])];
329
+ break;
330
+ case 22:
331
+ r.setXAxisTitle(a[s]);
332
+ break;
333
+ case 23:
334
+ r.setXAxisTitle(a[s - 1]);
335
+ break;
336
+ case 24:
337
+ r.setXAxisTitle({
338
+ type: "text",
339
+ text: ""
340
+ });
341
+ break;
342
+ case 25:
343
+ r.setXAxisBand(a[s]);
344
+ break;
345
+ case 26:
346
+ r.setXAxisRangeData(Number(a[s - 2]), Number(a[s]));
347
+ break;
348
+ case 27:
349
+ this.$ = a[s - 1];
350
+ break;
351
+ case 28:
352
+ this.$ = [a[s - 2], ...a[s]];
353
+ break;
354
+ case 29:
355
+ this.$ = [a[s]];
356
+ break;
357
+ case 30:
358
+ r.setYAxisTitle(a[s]);
359
+ break;
360
+ case 31:
361
+ r.setYAxisTitle(a[s - 1]);
362
+ break;
363
+ case 32:
364
+ r.setYAxisTitle({
365
+ type: "text",
366
+ text: ""
367
+ });
368
+ break;
369
+ case 33:
370
+ r.setYAxisRangeData(Number(a[s - 2]), Number(a[s]));
371
+ break;
372
+ case 37:
373
+ this.$ = {
374
+ text: a[s],
375
+ type: "text"
376
+ };
377
+ break;
378
+ case 38:
379
+ this.$ = {
380
+ text: a[s],
381
+ type: "text"
382
+ };
383
+ break;
384
+ case 39:
385
+ this.$ = {
386
+ text: a[s],
387
+ type: "markdown"
388
+ };
389
+ break;
390
+ case 40:
391
+ this.$ = a[s];
392
+ break;
393
+ case 41:
394
+ this.$ = a[s - 1] + "" + a[s];
395
+ break;
396
+ }
397
+ }, "anonymous"),
398
+ table: [
399
+ e(n, r, {
400
+ 3: 1,
401
+ 4: 2,
402
+ 7: 4,
403
+ 5: i,
404
+ 34: a,
405
+ 35: o,
406
+ 36: s
407
+ }),
408
+ { 1: [3] },
409
+ e(n, r, {
410
+ 4: 2,
411
+ 7: 4,
412
+ 3: 8,
413
+ 5: i,
414
+ 34: a,
415
+ 35: o,
416
+ 36: s
417
+ }),
418
+ e(n, r, {
419
+ 4: 2,
420
+ 7: 4,
421
+ 6: 9,
422
+ 3: 10,
423
+ 5: i,
424
+ 8: [1, 11],
425
+ 34: a,
426
+ 35: o,
427
+ 36: s
428
+ }),
429
+ {
430
+ 1: [2, 4],
431
+ 9: 12,
432
+ 10: [1, 13],
433
+ 12: [1, 14],
434
+ 14: [1, 15],
435
+ 16: [1, 16],
436
+ 18: [1, 17],
437
+ 19: [1, 18],
438
+ 21: [1, 19],
439
+ 23: [1, 20]
440
+ },
441
+ e(c, [2, 34]),
442
+ e(c, [2, 35]),
443
+ e(c, [2, 36]),
444
+ { 1: [2, 1] },
445
+ e(n, r, {
446
+ 4: 2,
447
+ 7: 4,
448
+ 3: 21,
449
+ 5: i,
450
+ 34: a,
451
+ 35: o,
452
+ 36: s
453
+ }),
454
+ { 1: [2, 3] },
455
+ e(c, [2, 5]),
456
+ e(n, [2, 7], {
457
+ 4: 22,
458
+ 34: a,
459
+ 35: o,
460
+ 36: s
461
+ }),
462
+ {
463
+ 11: 23,
464
+ 37: 24,
465
+ 38: l,
466
+ 39: u,
467
+ 40: 27,
468
+ 41: d,
469
+ 42: f,
470
+ 43: p,
471
+ 44: m,
472
+ 45: h,
473
+ 46: g,
474
+ 47: _,
475
+ 48: v,
476
+ 49: y,
477
+ 50: b
478
+ },
479
+ {
480
+ 11: 39,
481
+ 13: 38,
482
+ 24: x,
483
+ 27: S,
484
+ 29: 40,
485
+ 30: 41,
486
+ 37: 24,
487
+ 38: l,
488
+ 39: u,
489
+ 40: 27,
490
+ 41: d,
491
+ 42: f,
492
+ 43: p,
493
+ 44: m,
494
+ 45: h,
495
+ 46: g,
496
+ 47: _,
497
+ 48: v,
498
+ 49: y,
499
+ 50: b
500
+ },
501
+ {
502
+ 11: 45,
503
+ 15: 44,
504
+ 27: C,
505
+ 33: 46,
506
+ 37: 24,
507
+ 38: l,
508
+ 39: u,
509
+ 40: 27,
510
+ 41: d,
511
+ 42: f,
512
+ 43: p,
513
+ 44: m,
514
+ 45: h,
515
+ 46: g,
516
+ 47: _,
517
+ 48: v,
518
+ 49: y,
519
+ 50: b
520
+ },
521
+ {
522
+ 11: 49,
523
+ 17: 48,
524
+ 24: w,
525
+ 37: 24,
526
+ 38: l,
527
+ 39: u,
528
+ 40: 27,
529
+ 41: d,
530
+ 42: f,
531
+ 43: p,
532
+ 44: m,
533
+ 45: h,
534
+ 46: g,
535
+ 47: _,
536
+ 48: v,
537
+ 49: y,
538
+ 50: b
539
+ },
540
+ {
541
+ 11: 52,
542
+ 17: 51,
543
+ 24: w,
544
+ 37: 24,
545
+ 38: l,
546
+ 39: u,
547
+ 40: 27,
548
+ 41: d,
549
+ 42: f,
550
+ 43: p,
551
+ 44: m,
552
+ 45: h,
553
+ 46: g,
554
+ 47: _,
555
+ 48: v,
556
+ 49: y,
557
+ 50: b
558
+ },
559
+ { 20: [1, 53] },
560
+ { 22: [1, 54] },
561
+ e(T, [2, 18]),
562
+ { 1: [2, 2] },
563
+ e(T, [2, 8]),
564
+ e(T, [2, 9]),
565
+ e(E, [2, 37], {
566
+ 40: 55,
567
+ 41: d,
568
+ 42: f,
569
+ 43: p,
570
+ 44: m,
571
+ 45: h,
572
+ 46: g,
573
+ 47: _,
574
+ 48: v,
575
+ 49: y,
576
+ 50: b
577
+ }),
578
+ e(E, [2, 38]),
579
+ e(E, [2, 39]),
580
+ e(D, [2, 40]),
581
+ e(D, [2, 42]),
582
+ e(D, [2, 43]),
583
+ e(D, [2, 44]),
584
+ e(D, [2, 45]),
585
+ e(D, [2, 46]),
586
+ e(D, [2, 47]),
587
+ e(D, [2, 48]),
588
+ e(D, [2, 49]),
589
+ e(D, [2, 50]),
590
+ e(D, [2, 51]),
591
+ e(T, [2, 10]),
592
+ e(T, [2, 22], {
593
+ 30: 41,
594
+ 29: 56,
595
+ 24: x,
596
+ 27: S
597
+ }),
598
+ e(T, [2, 24]),
599
+ e(T, [2, 25]),
600
+ { 31: [1, 57] },
601
+ {
602
+ 11: 59,
603
+ 32: 58,
604
+ 37: 24,
605
+ 38: l,
606
+ 39: u,
607
+ 40: 27,
608
+ 41: d,
609
+ 42: f,
610
+ 43: p,
611
+ 44: m,
612
+ 45: h,
613
+ 46: g,
614
+ 47: _,
615
+ 48: v,
616
+ 49: y,
617
+ 50: b
618
+ },
619
+ e(T, [2, 11]),
620
+ e(T, [2, 30], {
621
+ 33: 60,
622
+ 27: C
623
+ }),
624
+ e(T, [2, 32]),
625
+ { 31: [1, 61] },
626
+ e(T, [2, 12]),
627
+ {
628
+ 17: 62,
629
+ 24: w
630
+ },
631
+ {
632
+ 25: 63,
633
+ 27: O
634
+ },
635
+ e(T, [2, 14]),
636
+ {
637
+ 17: 65,
638
+ 24: w
639
+ },
640
+ e(T, [2, 16]),
641
+ e(T, [2, 17]),
642
+ e(D, [2, 41]),
643
+ e(T, [2, 23]),
644
+ { 27: [1, 66] },
645
+ { 26: [1, 67] },
646
+ {
647
+ 26: [2, 29],
648
+ 28: [1, 68]
649
+ },
650
+ e(T, [2, 31]),
651
+ { 27: [1, 69] },
652
+ e(T, [2, 13]),
653
+ { 26: [1, 70] },
654
+ {
655
+ 26: [2, 21],
656
+ 28: [1, 71]
657
+ },
658
+ e(T, [2, 15]),
659
+ e(T, [2, 26]),
660
+ e(T, [2, 27]),
661
+ {
662
+ 11: 59,
663
+ 32: 72,
664
+ 37: 24,
665
+ 38: l,
666
+ 39: u,
667
+ 40: 27,
668
+ 41: d,
669
+ 42: f,
670
+ 43: p,
671
+ 44: m,
672
+ 45: h,
673
+ 46: g,
674
+ 47: _,
675
+ 48: v,
676
+ 49: y,
677
+ 50: b
678
+ },
679
+ e(T, [2, 33]),
680
+ e(T, [2, 19]),
681
+ {
682
+ 25: 73,
683
+ 27: O
684
+ },
685
+ { 26: [2, 28] },
686
+ { 26: [2, 20] }
687
+ ],
688
+ defaultActions: {
689
+ 8: [2, 1],
690
+ 10: [2, 3],
691
+ 21: [2, 2],
692
+ 72: [2, 28],
693
+ 73: [2, 20]
694
+ },
695
+ parseError: /* @__PURE__ */ t(function(e, t) {
696
+ if (t.recoverable) this.trace(e);
697
+ else {
698
+ var n = Error(e);
699
+ throw n.hash = t, n;
700
+ }
701
+ }, "parseError"),
702
+ parse: /* @__PURE__ */ t(function(e) {
703
+ var n = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
704
+ for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
705
+ h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
706
+ var v = h.yylloc;
707
+ o.push(v);
708
+ var y = h.options && h.options.ranges;
709
+ typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
710
+ function b(e) {
711
+ r.length -= 2 * e, a.length -= e, o.length -= e;
712
+ }
713
+ t(b, "popStack");
714
+ function x() {
715
+ var e = i.pop() || h.lex() || p;
716
+ return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
717
+ }
718
+ t(x, "lex");
719
+ for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
720
+ if (w = r[r.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S == null && (S = x()), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
721
+ var M = "";
722
+ for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
723
+ M = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
724
+ text: h.match,
725
+ token: this.terminals_[S] || S,
726
+ line: h.yylineno,
727
+ loc: v,
728
+ expected: j
729
+ });
730
+ }
731
+ if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
732
+ switch (T[0]) {
733
+ case 1:
734
+ r.push(S), a.push(h.yytext), o.push(h.yylloc), r.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
735
+ break;
736
+ case 2:
737
+ if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
738
+ first_line: o[o.length - (k || 1)].first_line,
739
+ last_line: o[o.length - 1].last_line,
740
+ first_column: o[o.length - (k || 1)].first_column,
741
+ last_column: o[o.length - 1].last_column
742
+ }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
743
+ c,
744
+ u,
745
+ l,
746
+ g.yy,
747
+ T[1],
748
+ a,
749
+ o
750
+ ].concat(m)), E !== void 0) return E;
751
+ k && (r = r.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), r.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[r[r.length - 2]][r[r.length - 1]], r.push(A);
752
+ break;
753
+ case 3: return !0;
754
+ }
755
+ }
756
+ return !0;
757
+ }, "parse")
758
+ };
759
+ k.lexer = /* @__PURE__ */ (function() {
760
+ return {
761
+ EOF: 1,
762
+ parseError: /* @__PURE__ */ t(function(e, t) {
763
+ if (this.yy.parser) this.yy.parser.parseError(e, t);
764
+ else throw Error(e);
765
+ }, "parseError"),
766
+ setInput: /* @__PURE__ */ t(function(e, t) {
767
+ return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
768
+ first_line: 1,
769
+ first_column: 0,
770
+ last_line: 1,
771
+ last_column: 0
772
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
773
+ }, "setInput"),
774
+ input: /* @__PURE__ */ t(function() {
775
+ var e = this._input[0];
776
+ return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
777
+ }, "input"),
778
+ unput: /* @__PURE__ */ t(function(e) {
779
+ var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
780
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
781
+ var r = this.match.split(/(?:\r\n?|\n)/g);
782
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
783
+ var i = this.yylloc.range;
784
+ return this.yylloc = {
785
+ first_line: this.yylloc.first_line,
786
+ last_line: this.yylineno + 1,
787
+ first_column: this.yylloc.first_column,
788
+ last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
789
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
790
+ }, "unput"),
791
+ more: /* @__PURE__ */ t(function() {
792
+ return this._more = !0, this;
793
+ }, "more"),
794
+ reject: /* @__PURE__ */ t(function() {
795
+ if (this.options.backtrack_lexer) this._backtrack = !0;
796
+ else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
797
+ text: "",
798
+ token: null,
799
+ line: this.yylineno
800
+ });
801
+ return this;
802
+ }, "reject"),
803
+ less: /* @__PURE__ */ t(function(e) {
804
+ this.unput(this.match.slice(e));
805
+ }, "less"),
806
+ pastInput: /* @__PURE__ */ t(function() {
807
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
808
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
809
+ }, "pastInput"),
810
+ upcomingInput: /* @__PURE__ */ t(function() {
811
+ var e = this.match;
812
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
813
+ }, "upcomingInput"),
814
+ showPosition: /* @__PURE__ */ t(function() {
815
+ var e = this.pastInput(), t = Array(e.length + 1).join("-");
816
+ return e + this.upcomingInput() + "\n" + t + "^";
817
+ }, "showPosition"),
818
+ test_match: /* @__PURE__ */ t(function(e, t) {
819
+ var n, r, i;
820
+ if (this.options.backtrack_lexer && (i = {
821
+ yylineno: this.yylineno,
822
+ yylloc: {
823
+ first_line: this.yylloc.first_line,
824
+ last_line: this.last_line,
825
+ first_column: this.yylloc.first_column,
826
+ last_column: this.yylloc.last_column
827
+ },
828
+ yytext: this.yytext,
829
+ match: this.match,
830
+ matches: this.matches,
831
+ matched: this.matched,
832
+ yyleng: this.yyleng,
833
+ offset: this.offset,
834
+ _more: this._more,
835
+ _input: this._input,
836
+ yy: this.yy,
837
+ conditionStack: this.conditionStack.slice(0),
838
+ done: this.done
839
+ }, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), r = e[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
840
+ first_line: this.yylloc.last_line,
841
+ last_line: this.yylineno + 1,
842
+ first_column: this.yylloc.last_column,
843
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
844
+ }, this.yytext += e[0], this.match += e[0], this.matches = e, 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(e[0].length), this.matched += e[0], n = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
845
+ if (this._backtrack) {
846
+ for (var a in i) this[a] = i[a];
847
+ return !1;
848
+ }
849
+ return !1;
850
+ }, "test_match"),
851
+ next: /* @__PURE__ */ t(function() {
852
+ if (this.done) return this.EOF;
853
+ this._input || (this.done = !0);
854
+ var e, t, n, r;
855
+ this._more || (this.yytext = "", this.match = "");
856
+ for (var i = this._currentRules(), a = 0; a < i.length; a++) if (n = this._input.match(this.rules[i[a]]), n && (!t || n[0].length > t[0].length)) {
857
+ if (t = n, r = a, this.options.backtrack_lexer) {
858
+ if (e = this.test_match(n, i[a]), e !== !1) return e;
859
+ if (this._backtrack) {
860
+ t = !1;
861
+ continue;
862
+ } else return !1;
863
+ } else if (!this.options.flex) break;
864
+ }
865
+ return t ? (e = this.test_match(t, i[r]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
866
+ text: "",
867
+ token: null,
868
+ line: this.yylineno
869
+ });
870
+ }, "next"),
871
+ lex: /* @__PURE__ */ t(function() {
872
+ return this.next() || this.lex();
873
+ }, "lex"),
874
+ begin: /* @__PURE__ */ t(function(e) {
875
+ this.conditionStack.push(e);
876
+ }, "begin"),
877
+ popState: /* @__PURE__ */ t(function() {
878
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
879
+ }, "popState"),
880
+ _currentRules: /* @__PURE__ */ t(function() {
881
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
882
+ }, "_currentRules"),
883
+ topState: /* @__PURE__ */ t(function(e) {
884
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
885
+ }, "topState"),
886
+ pushState: /* @__PURE__ */ t(function(e) {
887
+ this.begin(e);
888
+ }, "pushState"),
889
+ stateStackSize: /* @__PURE__ */ t(function() {
890
+ return this.conditionStack.length;
891
+ }, "stateStackSize"),
892
+ options: { "case-insensitive": !0 },
893
+ performAction: /* @__PURE__ */ t(function(e, t, n, r) {
894
+ switch (n) {
895
+ case 0: break;
896
+ case 1: break;
897
+ case 2: return this.popState(), 34;
898
+ case 3: return this.popState(), 34;
899
+ case 4: return 34;
900
+ case 5: break;
901
+ case 6: return 10;
902
+ case 7: return this.pushState("acc_title"), 19;
903
+ case 8: return this.popState(), "acc_title_value";
904
+ case 9: return this.pushState("acc_descr"), 21;
905
+ case 10: return this.popState(), "acc_descr_value";
906
+ case 11:
907
+ this.pushState("acc_descr_multiline");
908
+ break;
909
+ case 12:
910
+ this.popState();
911
+ break;
912
+ case 13: return "acc_descr_multiline_value";
913
+ case 14: return 5;
914
+ case 15: return 5;
915
+ case 16: return 8;
916
+ case 17: return this.pushState("axis_data"), "X_AXIS";
917
+ case 18: return this.pushState("axis_data"), "Y_AXIS";
918
+ case 19: return this.pushState("axis_band_data"), 24;
919
+ case 20: return 31;
920
+ case 21: return this.pushState("data"), 16;
921
+ case 22: return this.pushState("data"), 18;
922
+ case 23: return this.pushState("data_inner"), 24;
923
+ case 24: return 27;
924
+ case 25: return this.popState(), 26;
925
+ case 26:
926
+ this.popState();
927
+ break;
928
+ case 27:
929
+ this.pushState("string");
930
+ break;
931
+ case 28:
932
+ this.popState();
933
+ break;
934
+ case 29: return "STR";
935
+ case 30: return 24;
936
+ case 31: return 26;
937
+ case 32: return 43;
938
+ case 33: return "COLON";
939
+ case 34: return 44;
940
+ case 35: return 28;
941
+ case 36: return 45;
942
+ case 37: return 46;
943
+ case 38: return 48;
944
+ case 39: return 50;
945
+ case 40: return 47;
946
+ case 41: return 41;
947
+ case 42: return 49;
948
+ case 43: return 42;
949
+ case 44: break;
950
+ case 45: return 35;
951
+ case 46: return 36;
952
+ }
953
+ }, "anonymous"),
954
+ rules: [
955
+ /^(?:%%(?!\{)[^\n]*)/i,
956
+ /^(?:[^\}]%%[^\n]*)/i,
957
+ /^(?:(\r?\n))/i,
958
+ /^(?:(\r?\n))/i,
959
+ /^(?:[\n\r]+)/i,
960
+ /^(?:%%[^\n]*)/i,
961
+ /^(?:title\b)/i,
962
+ /^(?:accTitle\s*:\s*)/i,
963
+ /^(?:(?!\n||)*[^\n]*)/i,
964
+ /^(?:accDescr\s*:\s*)/i,
965
+ /^(?:(?!\n||)*[^\n]*)/i,
966
+ /^(?:accDescr\s*\{\s*)/i,
967
+ /^(?:\})/i,
968
+ /^(?:[^\}]*)/i,
969
+ /^(?:xychart-beta\b)/i,
970
+ /^(?:xychart\b)/i,
971
+ /^(?:(?:vertical|horizontal))/i,
972
+ /^(?:x-axis\b)/i,
973
+ /^(?:y-axis\b)/i,
974
+ /^(?:\[)/i,
975
+ /^(?:-->)/i,
976
+ /^(?:line\b)/i,
977
+ /^(?:bar\b)/i,
978
+ /^(?:\[)/i,
979
+ /^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,
980
+ /^(?:\])/i,
981
+ /^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i,
982
+ /^(?:["])/i,
983
+ /^(?:["])/i,
984
+ /^(?:[^"]*)/i,
985
+ /^(?:\[)/i,
986
+ /^(?:\])/i,
987
+ /^(?:[A-Za-z]+)/i,
988
+ /^(?::)/i,
989
+ /^(?:\+)/i,
990
+ /^(?:,)/i,
991
+ /^(?:=)/i,
992
+ /^(?:\*)/i,
993
+ /^(?:#)/i,
994
+ /^(?:[\_])/i,
995
+ /^(?:\.)/i,
996
+ /^(?:&)/i,
997
+ /^(?:-)/i,
998
+ /^(?:[0-9]+)/i,
999
+ /^(?:\s+)/i,
1000
+ /^(?:;)/i,
1001
+ /^(?:$)/i
1002
+ ],
1003
+ conditions: {
1004
+ data_inner: {
1005
+ rules: [
1006
+ 0,
1007
+ 1,
1008
+ 4,
1009
+ 5,
1010
+ 6,
1011
+ 7,
1012
+ 9,
1013
+ 11,
1014
+ 14,
1015
+ 15,
1016
+ 16,
1017
+ 17,
1018
+ 18,
1019
+ 21,
1020
+ 22,
1021
+ 24,
1022
+ 25,
1023
+ 26,
1024
+ 27,
1025
+ 30,
1026
+ 31,
1027
+ 32,
1028
+ 33,
1029
+ 34,
1030
+ 35,
1031
+ 36,
1032
+ 37,
1033
+ 38,
1034
+ 39,
1035
+ 40,
1036
+ 41,
1037
+ 42,
1038
+ 43,
1039
+ 44,
1040
+ 45,
1041
+ 46
1042
+ ],
1043
+ inclusive: !0
1044
+ },
1045
+ data: {
1046
+ rules: [
1047
+ 0,
1048
+ 1,
1049
+ 3,
1050
+ 4,
1051
+ 5,
1052
+ 6,
1053
+ 7,
1054
+ 9,
1055
+ 11,
1056
+ 14,
1057
+ 15,
1058
+ 16,
1059
+ 17,
1060
+ 18,
1061
+ 21,
1062
+ 22,
1063
+ 23,
1064
+ 26,
1065
+ 27,
1066
+ 30,
1067
+ 31,
1068
+ 32,
1069
+ 33,
1070
+ 34,
1071
+ 35,
1072
+ 36,
1073
+ 37,
1074
+ 38,
1075
+ 39,
1076
+ 40,
1077
+ 41,
1078
+ 42,
1079
+ 43,
1080
+ 44,
1081
+ 45,
1082
+ 46
1083
+ ],
1084
+ inclusive: !0
1085
+ },
1086
+ axis_band_data: {
1087
+ rules: [
1088
+ 0,
1089
+ 1,
1090
+ 4,
1091
+ 5,
1092
+ 6,
1093
+ 7,
1094
+ 9,
1095
+ 11,
1096
+ 14,
1097
+ 15,
1098
+ 16,
1099
+ 17,
1100
+ 18,
1101
+ 21,
1102
+ 22,
1103
+ 25,
1104
+ 26,
1105
+ 27,
1106
+ 30,
1107
+ 31,
1108
+ 32,
1109
+ 33,
1110
+ 34,
1111
+ 35,
1112
+ 36,
1113
+ 37,
1114
+ 38,
1115
+ 39,
1116
+ 40,
1117
+ 41,
1118
+ 42,
1119
+ 43,
1120
+ 44,
1121
+ 45,
1122
+ 46
1123
+ ],
1124
+ inclusive: !0
1125
+ },
1126
+ axis_data: {
1127
+ rules: [
1128
+ 0,
1129
+ 1,
1130
+ 2,
1131
+ 4,
1132
+ 5,
1133
+ 6,
1134
+ 7,
1135
+ 9,
1136
+ 11,
1137
+ 14,
1138
+ 15,
1139
+ 16,
1140
+ 17,
1141
+ 18,
1142
+ 19,
1143
+ 20,
1144
+ 21,
1145
+ 22,
1146
+ 24,
1147
+ 26,
1148
+ 27,
1149
+ 30,
1150
+ 31,
1151
+ 32,
1152
+ 33,
1153
+ 34,
1154
+ 35,
1155
+ 36,
1156
+ 37,
1157
+ 38,
1158
+ 39,
1159
+ 40,
1160
+ 41,
1161
+ 42,
1162
+ 43,
1163
+ 44,
1164
+ 45,
1165
+ 46
1166
+ ],
1167
+ inclusive: !0
1168
+ },
1169
+ acc_descr_multiline: {
1170
+ rules: [12, 13],
1171
+ inclusive: !1
1172
+ },
1173
+ acc_descr: {
1174
+ rules: [10],
1175
+ inclusive: !1
1176
+ },
1177
+ acc_title: {
1178
+ rules: [8],
1179
+ inclusive: !1
1180
+ },
1181
+ title: {
1182
+ rules: [],
1183
+ inclusive: !1
1184
+ },
1185
+ md_string: {
1186
+ rules: [],
1187
+ inclusive: !1
1188
+ },
1189
+ string: {
1190
+ rules: [28, 29],
1191
+ inclusive: !1
1192
+ },
1193
+ INITIAL: {
1194
+ rules: [
1195
+ 0,
1196
+ 1,
1197
+ 4,
1198
+ 5,
1199
+ 6,
1200
+ 7,
1201
+ 9,
1202
+ 11,
1203
+ 14,
1204
+ 15,
1205
+ 16,
1206
+ 17,
1207
+ 18,
1208
+ 21,
1209
+ 22,
1210
+ 26,
1211
+ 27,
1212
+ 30,
1213
+ 31,
1214
+ 32,
1215
+ 33,
1216
+ 34,
1217
+ 35,
1218
+ 36,
1219
+ 37,
1220
+ 38,
1221
+ 39,
1222
+ 40,
1223
+ 41,
1224
+ 42,
1225
+ 43,
1226
+ 44,
1227
+ 45,
1228
+ 46
1229
+ ],
1230
+ inclusive: !0
1231
+ }
1232
+ }
1233
+ };
1234
+ })();
1235
+ function A() {
1236
+ this.yy = {};
1237
+ }
1238
+ return t(A, "Parser"), A.prototype = k, k.Parser = A, new A();
1239
+ })();
1240
+ N.parser = N;
1241
+ var ee = N;
1242
+ function P(e) {
1243
+ return e.type === "bar";
1244
+ }
1245
+ t(P, "isBarPlot");
1246
+ function F(e) {
1247
+ return e.type === "band";
1248
+ }
1249
+ t(F, "isBandAxisData");
1250
+ function I(e) {
1251
+ return e.type === "linear";
1252
+ }
1253
+ t(I, "isLinearAxisData");
1254
+ var L = (C = class {
1255
+ constructor(e) {
1256
+ this.parentGroup = e;
1257
+ }
1258
+ getMaxDimension(e, t) {
1259
+ if (!this.parentGroup) return {
1260
+ width: e.reduce((e, t) => Math.max(t.length, e), 0) * t,
1261
+ height: t
1262
+ };
1263
+ let n = {
1264
+ width: 0,
1265
+ height: 0
1266
+ }, r = this.parentGroup.append("g").attr("visibility", "hidden").attr("font-size", t);
1267
+ for (let i of e) {
1268
+ let e = b(r, 1, i), a = e ? e.width : i.length * t, o = e ? e.height : t;
1269
+ n.width = Math.max(n.width, a), n.height = Math.max(n.height, o);
1270
+ }
1271
+ return r.remove(), n;
1272
+ }
1273
+ }, t(C, "TextDimensionCalculatorWithFont"), C), te = .7, ne = .2, re = (w = class {
1274
+ constructor(e, t, n, r) {
1275
+ this.axisConfig = e, this.title = t, this.textDimensionCalculator = n, this.axisThemeConfig = r, this.boundingRect = {
1276
+ x: 0,
1277
+ y: 0,
1278
+ width: 0,
1279
+ height: 0
1280
+ }, 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 = {
1281
+ x: 0,
1282
+ y: 0,
1283
+ width: 0,
1284
+ height: 0
1285
+ }, this.axisPosition = "left";
1286
+ }
1287
+ setRange(e) {
1288
+ this.range = e, this.axisPosition === "left" || this.axisPosition === "right" ? this.boundingRect.height = e[1] - e[0] : this.boundingRect.width = e[1] - e[0], this.recalculateScale();
1289
+ }
1290
+ getRange() {
1291
+ return [this.range[0] + this.outerPadding, this.range[1] - this.outerPadding];
1292
+ }
1293
+ setAxisPosition(e) {
1294
+ this.axisPosition = e, this.setRange(this.range);
1295
+ }
1296
+ getTickDistance() {
1297
+ let e = this.getRange();
1298
+ return Math.abs(e[0] - e[1]) / this.getTickValues().length;
1299
+ }
1300
+ getAxisOuterPadding() {
1301
+ return this.outerPadding;
1302
+ }
1303
+ getLabelDimension() {
1304
+ return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map((e) => e.toString()), this.axisConfig.labelFontSize);
1305
+ }
1306
+ recalculateOuterPaddingToDrawBar() {
1307
+ te * this.getTickDistance() > this.outerPadding * 2 && (this.outerPadding = Math.floor(te * this.getTickDistance() / 2)), this.recalculateScale();
1308
+ }
1309
+ calculateSpaceIfDrawnHorizontally(e) {
1310
+ let t = e.height;
1311
+ if (this.axisConfig.showAxisLine && t > this.axisConfig.axisLineWidth && (t -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
1312
+ let n = this.getLabelDimension(), r = ne * e.width;
1313
+ this.outerPadding = Math.min(n.width / 2, r);
1314
+ let i = n.height + this.axisConfig.labelPadding * 2;
1315
+ this.labelTextHeight = n.height, i <= t && (t -= i, this.showLabel = !0);
1316
+ }
1317
+ if (this.axisConfig.showTick && t >= this.axisConfig.tickLength && (this.showTick = !0, t -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
1318
+ let e = this.textDimensionCalculator.getMaxDimension([this.title], this.axisConfig.titleFontSize), n = e.height + this.axisConfig.titlePadding * 2;
1319
+ this.titleTextHeight = e.height, n <= t && (t -= n, this.showTitle = !0);
1320
+ }
1321
+ this.boundingRect.width = e.width, this.boundingRect.height = e.height - t;
1322
+ }
1323
+ calculateSpaceIfDrawnVertical(e) {
1324
+ let t = e.width;
1325
+ if (this.axisConfig.showAxisLine && t > this.axisConfig.axisLineWidth && (t -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
1326
+ let n = this.getLabelDimension(), r = ne * e.height;
1327
+ this.outerPadding = Math.min(n.height / 2, r);
1328
+ let i = n.width + this.axisConfig.labelPadding * 2;
1329
+ i <= t && (t -= i, this.showLabel = !0);
1330
+ }
1331
+ if (this.axisConfig.showTick && t >= this.axisConfig.tickLength && (this.showTick = !0, t -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
1332
+ let e = this.textDimensionCalculator.getMaxDimension([this.title], this.axisConfig.titleFontSize), n = e.height + this.axisConfig.titlePadding * 2;
1333
+ this.titleTextHeight = e.height, n <= t && (t -= n, this.showTitle = !0);
1334
+ }
1335
+ this.boundingRect.width = e.width - t, this.boundingRect.height = e.height;
1336
+ }
1337
+ calculateSpace(e) {
1338
+ return this.axisPosition === "left" || this.axisPosition === "right" ? this.calculateSpaceIfDrawnVertical(e) : this.calculateSpaceIfDrawnHorizontally(e), this.recalculateScale(), {
1339
+ width: this.boundingRect.width,
1340
+ height: this.boundingRect.height
1341
+ };
1342
+ }
1343
+ setBoundingBoxXY(e) {
1344
+ this.boundingRect.x = e.x, this.boundingRect.y = e.y;
1345
+ }
1346
+ getDrawableElementsForLeftAxis() {
1347
+ let e = [];
1348
+ if (this.showAxisLine) {
1349
+ let t = this.boundingRect.x + this.boundingRect.width - this.axisConfig.axisLineWidth / 2;
1350
+ e.push({
1351
+ type: "path",
1352
+ groupTexts: ["left-axis", "axisl-line"],
1353
+ data: [{
1354
+ path: `M ${t},${this.boundingRect.y} L ${t},${this.boundingRect.y + this.boundingRect.height} `,
1355
+ strokeFill: this.axisThemeConfig.axisLineColor,
1356
+ strokeWidth: this.axisConfig.axisLineWidth
1357
+ }]
1358
+ });
1359
+ }
1360
+ if (this.showLabel && e.push({
1361
+ type: "text",
1362
+ groupTexts: ["left-axis", "label"],
1363
+ data: this.getTickValues().map((e) => ({
1364
+ text: e.toString(),
1365
+ x: this.boundingRect.x + this.boundingRect.width - (this.showLabel ? this.axisConfig.labelPadding : 0) - (this.showTick ? this.axisConfig.tickLength : 0) - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0),
1366
+ y: this.getScaleValue(e),
1367
+ fill: this.axisThemeConfig.labelColor,
1368
+ fontSize: this.axisConfig.labelFontSize,
1369
+ rotation: 0,
1370
+ verticalPos: "middle",
1371
+ horizontalPos: "right"
1372
+ }))
1373
+ }), this.showTick) {
1374
+ let t = this.boundingRect.x + this.boundingRect.width - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0);
1375
+ e.push({
1376
+ type: "path",
1377
+ groupTexts: ["left-axis", "ticks"],
1378
+ data: this.getTickValues().map((e) => ({
1379
+ path: `M ${t},${this.getScaleValue(e)} L ${t - this.axisConfig.tickLength},${this.getScaleValue(e)}`,
1380
+ strokeFill: this.axisThemeConfig.tickColor,
1381
+ strokeWidth: this.axisConfig.tickWidth
1382
+ }))
1383
+ });
1384
+ }
1385
+ return this.showTitle && e.push({
1386
+ type: "text",
1387
+ groupTexts: ["left-axis", "title"],
1388
+ data: [{
1389
+ text: this.title,
1390
+ x: this.boundingRect.x + this.axisConfig.titlePadding,
1391
+ y: this.boundingRect.y + this.boundingRect.height / 2,
1392
+ fill: this.axisThemeConfig.titleColor,
1393
+ fontSize: this.axisConfig.titleFontSize,
1394
+ rotation: 270,
1395
+ verticalPos: "top",
1396
+ horizontalPos: "center"
1397
+ }]
1398
+ }), e;
1399
+ }
1400
+ getDrawableElementsForBottomAxis() {
1401
+ let e = [];
1402
+ if (this.showAxisLine) {
1403
+ let t = this.boundingRect.y + this.axisConfig.axisLineWidth / 2;
1404
+ e.push({
1405
+ type: "path",
1406
+ groupTexts: ["bottom-axis", "axis-line"],
1407
+ data: [{
1408
+ path: `M ${this.boundingRect.x},${t} L ${this.boundingRect.x + this.boundingRect.width},${t}`,
1409
+ strokeFill: this.axisThemeConfig.axisLineColor,
1410
+ strokeWidth: this.axisConfig.axisLineWidth
1411
+ }]
1412
+ });
1413
+ }
1414
+ if (this.showLabel && e.push({
1415
+ type: "text",
1416
+ groupTexts: ["bottom-axis", "label"],
1417
+ data: this.getTickValues().map((e) => ({
1418
+ text: e.toString(),
1419
+ x: this.getScaleValue(e),
1420
+ y: this.boundingRect.y + this.axisConfig.labelPadding + (this.showTick ? this.axisConfig.tickLength : 0) + (this.showAxisLine ? this.axisConfig.axisLineWidth : 0),
1421
+ fill: this.axisThemeConfig.labelColor,
1422
+ fontSize: this.axisConfig.labelFontSize,
1423
+ rotation: 0,
1424
+ verticalPos: "top",
1425
+ horizontalPos: "center"
1426
+ }))
1427
+ }), this.showTick) {
1428
+ let t = this.boundingRect.y + (this.showAxisLine ? this.axisConfig.axisLineWidth : 0);
1429
+ e.push({
1430
+ type: "path",
1431
+ groupTexts: ["bottom-axis", "ticks"],
1432
+ data: this.getTickValues().map((e) => ({
1433
+ path: `M ${this.getScaleValue(e)},${t} L ${this.getScaleValue(e)},${t + this.axisConfig.tickLength}`,
1434
+ strokeFill: this.axisThemeConfig.tickColor,
1435
+ strokeWidth: this.axisConfig.tickWidth
1436
+ }))
1437
+ });
1438
+ }
1439
+ return this.showTitle && e.push({
1440
+ type: "text",
1441
+ groupTexts: ["bottom-axis", "title"],
1442
+ data: [{
1443
+ text: this.title,
1444
+ x: this.range[0] + (this.range[1] - this.range[0]) / 2,
1445
+ y: this.boundingRect.y + this.boundingRect.height - this.axisConfig.titlePadding - this.titleTextHeight,
1446
+ fill: this.axisThemeConfig.titleColor,
1447
+ fontSize: this.axisConfig.titleFontSize,
1448
+ rotation: 0,
1449
+ verticalPos: "top",
1450
+ horizontalPos: "center"
1451
+ }]
1452
+ }), e;
1453
+ }
1454
+ getDrawableElementsForTopAxis() {
1455
+ let e = [];
1456
+ if (this.showAxisLine) {
1457
+ let t = this.boundingRect.y + this.boundingRect.height - this.axisConfig.axisLineWidth / 2;
1458
+ e.push({
1459
+ type: "path",
1460
+ groupTexts: ["top-axis", "axis-line"],
1461
+ data: [{
1462
+ path: `M ${this.boundingRect.x},${t} L ${this.boundingRect.x + this.boundingRect.width},${t}`,
1463
+ strokeFill: this.axisThemeConfig.axisLineColor,
1464
+ strokeWidth: this.axisConfig.axisLineWidth
1465
+ }]
1466
+ });
1467
+ }
1468
+ if (this.showLabel && e.push({
1469
+ type: "text",
1470
+ groupTexts: ["top-axis", "label"],
1471
+ data: this.getTickValues().map((e) => ({
1472
+ text: e.toString(),
1473
+ x: this.getScaleValue(e),
1474
+ y: this.boundingRect.y + (this.showTitle ? this.titleTextHeight + this.axisConfig.titlePadding * 2 : 0) + this.axisConfig.labelPadding,
1475
+ fill: this.axisThemeConfig.labelColor,
1476
+ fontSize: this.axisConfig.labelFontSize,
1477
+ rotation: 0,
1478
+ verticalPos: "top",
1479
+ horizontalPos: "center"
1480
+ }))
1481
+ }), this.showTick) {
1482
+ let t = this.boundingRect.y;
1483
+ e.push({
1484
+ type: "path",
1485
+ groupTexts: ["top-axis", "ticks"],
1486
+ data: this.getTickValues().map((e) => ({
1487
+ path: `M ${this.getScaleValue(e)},${t + this.boundingRect.height - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0)} L ${this.getScaleValue(e)},${t + this.boundingRect.height - this.axisConfig.tickLength - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0)}`,
1488
+ strokeFill: this.axisThemeConfig.tickColor,
1489
+ strokeWidth: this.axisConfig.tickWidth
1490
+ }))
1491
+ });
1492
+ }
1493
+ return this.showTitle && e.push({
1494
+ type: "text",
1495
+ groupTexts: ["top-axis", "title"],
1496
+ data: [{
1497
+ text: this.title,
1498
+ x: this.boundingRect.x + this.boundingRect.width / 2,
1499
+ y: this.boundingRect.y + this.axisConfig.titlePadding,
1500
+ fill: this.axisThemeConfig.titleColor,
1501
+ fontSize: this.axisConfig.titleFontSize,
1502
+ rotation: 0,
1503
+ verticalPos: "top",
1504
+ horizontalPos: "center"
1505
+ }]
1506
+ }), e;
1507
+ }
1508
+ getDrawableElements() {
1509
+ if (this.axisPosition === "left") return this.getDrawableElementsForLeftAxis();
1510
+ if (this.axisPosition === "right") throw Error("Drawing of right axis is not implemented");
1511
+ return this.axisPosition === "bottom" ? this.getDrawableElementsForBottomAxis() : this.axisPosition === "top" ? this.getDrawableElementsForTopAxis() : [];
1512
+ }
1513
+ }, t(w, "BaseAxis"), w), ie = (T = class extends re {
1514
+ constructor(e, t, n, r, i) {
1515
+ super(e, r, i, t), this.categories = n, this.scale = S().domain(this.categories).range(this.getRange());
1516
+ }
1517
+ setRange(e) {
1518
+ super.setRange(e);
1519
+ }
1520
+ recalculateScale() {
1521
+ this.scale = S().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5), e.trace("BandAxis axis final categories, range: ", this.categories, this.getRange());
1522
+ }
1523
+ getTickValues() {
1524
+ return this.categories;
1525
+ }
1526
+ getScaleValue(e) {
1527
+ var t;
1528
+ return (t = this.scale(e)) == null ? this.getRange()[0] : t;
1529
+ }
1530
+ }, t(T, "BandAxis"), T), ae = (E = class extends re {
1531
+ constructor(e, t, n, r, i) {
1532
+ super(e, r, i, t), this.domain = n, this.scale = m().domain(this.domain).range(this.getRange());
1533
+ }
1534
+ getTickValues() {
1535
+ return this.scale.ticks();
1536
+ }
1537
+ recalculateScale() {
1538
+ let e = [...this.domain];
1539
+ this.axisPosition === "left" && e.reverse(), this.scale = m().domain(e).range(this.getRange());
1540
+ }
1541
+ getScaleValue(e) {
1542
+ return this.scale(e);
1543
+ }
1544
+ }, t(E, "LinearAxis"), E);
1545
+ function R(e, t, n, r) {
1546
+ let i = new L(r);
1547
+ return F(e) ? new ie(t, n, e.categories, e.title, i) : new ae(t, n, [e.min, e.max], e.title, i);
1548
+ }
1549
+ t(R, "getAxis");
1550
+ var oe = (D = class {
1551
+ constructor(e, t, n, r) {
1552
+ this.textDimensionCalculator = e, this.chartConfig = t, this.chartData = n, this.chartThemeConfig = r, this.boundingRect = {
1553
+ x: 0,
1554
+ y: 0,
1555
+ width: 0,
1556
+ height: 0
1557
+ }, this.showChartTitle = !1;
1558
+ }
1559
+ setBoundingBoxXY(e) {
1560
+ this.boundingRect.x = e.x, this.boundingRect.y = e.y;
1561
+ }
1562
+ calculateSpace(e) {
1563
+ let t = this.textDimensionCalculator.getMaxDimension([this.chartData.title], this.chartConfig.titleFontSize), n = Math.max(t.width, e.width), r = t.height + 2 * this.chartConfig.titlePadding;
1564
+ return t.width <= n && t.height <= r && this.chartConfig.showTitle && this.chartData.title && (this.boundingRect.width = n, this.boundingRect.height = r, this.showChartTitle = !0), {
1565
+ width: this.boundingRect.width,
1566
+ height: this.boundingRect.height
1567
+ };
1568
+ }
1569
+ getDrawableElements() {
1570
+ let e = [];
1571
+ return this.showChartTitle && e.push({
1572
+ groupTexts: ["chart-title"],
1573
+ type: "text",
1574
+ data: [{
1575
+ fontSize: this.chartConfig.titleFontSize,
1576
+ text: this.chartData.title,
1577
+ verticalPos: "middle",
1578
+ horizontalPos: "center",
1579
+ x: this.boundingRect.x + this.boundingRect.width / 2,
1580
+ y: this.boundingRect.y + this.boundingRect.height / 2,
1581
+ fill: this.chartThemeConfig.titleColor,
1582
+ rotation: 0
1583
+ }]
1584
+ }), e;
1585
+ }
1586
+ }, t(D, "ChartTitle"), D);
1587
+ function se(e, t, n, r) {
1588
+ return new oe(new L(r), e, t, n);
1589
+ }
1590
+ t(se, "getChartTitleComponent");
1591
+ var ce = (O = class {
1592
+ constructor(e, t, n, r, i) {
1593
+ this.plotData = e, this.xAxis = t, this.yAxis = n, this.orientation = r, this.plotIndex = i;
1594
+ }
1595
+ getDrawableElement() {
1596
+ let e = this.plotData.data.map((e) => [this.xAxis.getScaleValue(e[0]), this.yAxis.getScaleValue(e[1])]), t;
1597
+ return t = this.orientation === "horizontal" ? v().y((e) => e[0]).x((e) => e[1])(e) : v().x((e) => e[0]).y((e) => e[1])(e), t ? [{
1598
+ groupTexts: ["plot", `line-plot-${this.plotIndex}`],
1599
+ type: "path",
1600
+ data: [{
1601
+ path: t,
1602
+ strokeFill: this.plotData.strokeFill,
1603
+ strokeWidth: this.plotData.strokeWidth
1604
+ }]
1605
+ }] : [];
1606
+ }
1607
+ }, t(O, "LinePlot"), O), le = (k = class {
1608
+ constructor(e, t, n, r, i, a) {
1609
+ this.barData = e, this.boundingRect = t, this.xAxis = n, this.yAxis = r, this.orientation = i, this.plotIndex = a;
1610
+ }
1611
+ getDrawableElement() {
1612
+ let e = this.barData.data.map((e) => [this.xAxis.getScaleValue(e[0]), this.yAxis.getScaleValue(e[1])]), t = Math.min(this.xAxis.getAxisOuterPadding() * 2, this.xAxis.getTickDistance()) * .95, n = t / 2;
1613
+ return this.orientation === "horizontal" ? [{
1614
+ groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
1615
+ type: "rect",
1616
+ data: e.map((e) => ({
1617
+ x: this.boundingRect.x,
1618
+ y: e[0] - n,
1619
+ height: t,
1620
+ width: e[1] - this.boundingRect.x,
1621
+ fill: this.barData.fill,
1622
+ strokeWidth: 0,
1623
+ strokeFill: this.barData.fill
1624
+ }))
1625
+ }] : [{
1626
+ groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
1627
+ type: "rect",
1628
+ data: e.map((e) => ({
1629
+ x: e[0] - n,
1630
+ y: e[1],
1631
+ width: t,
1632
+ height: this.boundingRect.y + this.boundingRect.height - e[1],
1633
+ fill: this.barData.fill,
1634
+ strokeWidth: 0,
1635
+ strokeFill: this.barData.fill
1636
+ }))
1637
+ }];
1638
+ }
1639
+ }, t(k, "BarPlot"), k), ue = (A = class {
1640
+ constructor(e, t, n) {
1641
+ this.chartConfig = e, this.chartData = t, this.chartThemeConfig = n, this.boundingRect = {
1642
+ x: 0,
1643
+ y: 0,
1644
+ width: 0,
1645
+ height: 0
1646
+ };
1647
+ }
1648
+ setAxes(e, t) {
1649
+ this.xAxis = e, this.yAxis = t;
1650
+ }
1651
+ setBoundingBoxXY(e) {
1652
+ this.boundingRect.x = e.x, this.boundingRect.y = e.y;
1653
+ }
1654
+ calculateSpace(e) {
1655
+ return this.boundingRect.width = e.width, this.boundingRect.height = e.height, {
1656
+ width: this.boundingRect.width,
1657
+ height: this.boundingRect.height
1658
+ };
1659
+ }
1660
+ getDrawableElements() {
1661
+ if (!(this.xAxis && this.yAxis)) throw Error("Axes must be passed to render Plots");
1662
+ let e = [];
1663
+ for (let [t, n] of this.chartData.plots.entries()) switch (n.type) {
1664
+ case "line":
1665
+ {
1666
+ let r = new ce(n, this.xAxis, this.yAxis, this.chartConfig.chartOrientation, t);
1667
+ e.push(...r.getDrawableElement());
1668
+ }
1669
+ break;
1670
+ case "bar":
1671
+ {
1672
+ let r = new le(n, this.boundingRect, this.xAxis, this.yAxis, this.chartConfig.chartOrientation, t);
1673
+ e.push(...r.getDrawableElement());
1674
+ }
1675
+ break;
1676
+ }
1677
+ return e;
1678
+ }
1679
+ }, t(A, "BasePlot"), A);
1680
+ function de(e, t, n) {
1681
+ return new ue(e, t, n);
1682
+ }
1683
+ t(de, "getPlotComponent");
1684
+ var fe = (j = class {
1685
+ constructor(e, t, n, r) {
1686
+ this.chartConfig = e, this.chartData = t, this.componentStore = {
1687
+ title: se(e, t, n, r),
1688
+ plot: de(e, t, n),
1689
+ xAxis: R(t.xAxis, e.xAxis, {
1690
+ titleColor: n.xAxisTitleColor,
1691
+ labelColor: n.xAxisLabelColor,
1692
+ tickColor: n.xAxisTickColor,
1693
+ axisLineColor: n.xAxisLineColor
1694
+ }, r),
1695
+ yAxis: R(t.yAxis, e.yAxis, {
1696
+ titleColor: n.yAxisTitleColor,
1697
+ labelColor: n.yAxisLabelColor,
1698
+ tickColor: n.yAxisTickColor,
1699
+ axisLineColor: n.yAxisLineColor
1700
+ }, r)
1701
+ };
1702
+ }
1703
+ calculateVerticalSpace() {
1704
+ let e = this.chartConfig.width, t = this.chartConfig.height, n = 0, r = 0, i = Math.floor(e * this.chartConfig.plotReservedSpacePercent / 100), a = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), o = this.componentStore.plot.calculateSpace({
1705
+ width: i,
1706
+ height: a
1707
+ });
1708
+ e -= o.width, t -= o.height, o = this.componentStore.title.calculateSpace({
1709
+ width: this.chartConfig.width,
1710
+ height: t
1711
+ }), r = o.height, t -= o.height, this.componentStore.xAxis.setAxisPosition("bottom"), o = this.componentStore.xAxis.calculateSpace({
1712
+ width: e,
1713
+ height: t
1714
+ }), t -= o.height, this.componentStore.yAxis.setAxisPosition("left"), o = this.componentStore.yAxis.calculateSpace({
1715
+ width: e,
1716
+ height: t
1717
+ }), n = o.width, e -= o.width, e > 0 && (i += e, e = 0), t > 0 && (a += t, t = 0), this.componentStore.plot.calculateSpace({
1718
+ width: i,
1719
+ height: a
1720
+ }), this.componentStore.plot.setBoundingBoxXY({
1721
+ x: n,
1722
+ y: r
1723
+ }), this.componentStore.xAxis.setRange([n, n + i]), this.componentStore.xAxis.setBoundingBoxXY({
1724
+ x: n,
1725
+ y: r + a
1726
+ }), this.componentStore.yAxis.setRange([r, r + a]), this.componentStore.yAxis.setBoundingBoxXY({
1727
+ x: 0,
1728
+ y: r
1729
+ }), this.chartData.plots.some((e) => P(e)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1730
+ }
1731
+ calculateHorizontalSpace() {
1732
+ let e = this.chartConfig.width, t = this.chartConfig.height, n = 0, r = 0, i = 0, a = Math.floor(e * this.chartConfig.plotReservedSpacePercent / 100), o = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), s = this.componentStore.plot.calculateSpace({
1733
+ width: a,
1734
+ height: o
1735
+ });
1736
+ e -= s.width, t -= s.height, s = this.componentStore.title.calculateSpace({
1737
+ width: this.chartConfig.width,
1738
+ height: t
1739
+ }), n = s.height, t -= s.height, this.componentStore.xAxis.setAxisPosition("left"), s = this.componentStore.xAxis.calculateSpace({
1740
+ width: e,
1741
+ height: t
1742
+ }), e -= s.width, r = s.width, this.componentStore.yAxis.setAxisPosition("top"), s = this.componentStore.yAxis.calculateSpace({
1743
+ width: e,
1744
+ height: t
1745
+ }), t -= s.height, i = n + s.height, e > 0 && (a += e, e = 0), t > 0 && (o += t, t = 0), this.componentStore.plot.calculateSpace({
1746
+ width: a,
1747
+ height: o
1748
+ }), this.componentStore.plot.setBoundingBoxXY({
1749
+ x: r,
1750
+ y: i
1751
+ }), this.componentStore.yAxis.setRange([r, r + a]), this.componentStore.yAxis.setBoundingBoxXY({
1752
+ x: r,
1753
+ y: n
1754
+ }), this.componentStore.xAxis.setRange([i, i + o]), this.componentStore.xAxis.setBoundingBoxXY({
1755
+ x: 0,
1756
+ y: i
1757
+ }), this.chartData.plots.some((e) => P(e)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1758
+ }
1759
+ calculateSpace() {
1760
+ this.chartConfig.chartOrientation === "horizontal" ? this.calculateHorizontalSpace() : this.calculateVerticalSpace();
1761
+ }
1762
+ getDrawableElement() {
1763
+ this.calculateSpace();
1764
+ let e = [];
1765
+ this.componentStore.plot.setAxes(this.componentStore.xAxis, this.componentStore.yAxis);
1766
+ for (let t of Object.values(this.componentStore)) e.push(...t.getDrawableElements());
1767
+ return e;
1768
+ }
1769
+ }, t(j, "Orchestrator"), j), pe = (M = class {
1770
+ static build(e, t, n, r) {
1771
+ return new fe(e, t, n, r).getDrawableElement();
1772
+ }
1773
+ }, t(M, "XYChartBuilder"), M), z = 0, me, B = q(), V = K(), H = J(), U = V.plotColorPalette.split(",").map((e) => e.trim()), W = !1, G = !1;
1774
+ function K() {
1775
+ let e = i(), t = p();
1776
+ return _(e.xyChart, t.themeVariables.xyChart);
1777
+ }
1778
+ t(K, "getChartDefaultThemeConfig");
1779
+ function q() {
1780
+ let e = p();
1781
+ return _(d.xyChart, e.xyChart);
1782
+ }
1783
+ t(q, "getChartDefaultConfig");
1784
+ function J() {
1785
+ return {
1786
+ yAxis: {
1787
+ type: "linear",
1788
+ title: "",
1789
+ min: Infinity,
1790
+ max: -Infinity
1791
+ },
1792
+ xAxis: {
1793
+ type: "band",
1794
+ title: "",
1795
+ categories: []
1796
+ },
1797
+ title: "",
1798
+ plots: []
1799
+ };
1800
+ }
1801
+ t(J, "getChartDefaultData");
1802
+ function Y(e) {
1803
+ let t = p();
1804
+ return a(e.trim(), t);
1805
+ }
1806
+ t(Y, "textSanitizer");
1807
+ function he(e) {
1808
+ me = e;
1809
+ }
1810
+ t(he, "setTmpSVGG");
1811
+ function ge(e) {
1812
+ e === "horizontal" ? B.chartOrientation = "horizontal" : B.chartOrientation = "vertical";
1813
+ }
1814
+ t(ge, "setOrientation");
1815
+ function _e(e) {
1816
+ H.xAxis.title = Y(e.text);
1817
+ }
1818
+ t(_e, "setXAxisTitle");
1819
+ function X(e, t) {
1820
+ H.xAxis = {
1821
+ type: "linear",
1822
+ title: H.xAxis.title,
1823
+ min: e,
1824
+ max: t
1825
+ }, W = !0;
1826
+ }
1827
+ t(X, "setXAxisRangeData");
1828
+ function ve(e) {
1829
+ H.xAxis = {
1830
+ type: "band",
1831
+ title: H.xAxis.title,
1832
+ categories: e.map((e) => Y(e.text))
1833
+ }, W = !0;
1834
+ }
1835
+ t(ve, "setXAxisBand");
1836
+ function ye(e) {
1837
+ H.yAxis.title = Y(e.text);
1838
+ }
1839
+ t(ye, "setYAxisTitle");
1840
+ function be(e, t) {
1841
+ H.yAxis = {
1842
+ type: "linear",
1843
+ title: H.yAxis.title,
1844
+ min: e,
1845
+ max: t
1846
+ }, G = !0;
1847
+ }
1848
+ t(be, "setYAxisRangeData");
1849
+ function xe(e) {
1850
+ let t = Math.min(...e), n = Math.max(...e), r = I(H.yAxis) ? H.yAxis.min : Infinity, i = I(H.yAxis) ? H.yAxis.max : -Infinity;
1851
+ H.yAxis = {
1852
+ type: "linear",
1853
+ title: H.yAxis.title,
1854
+ min: Math.min(r, t),
1855
+ max: Math.max(i, n)
1856
+ };
1857
+ }
1858
+ t(xe, "setYAxisRangeFromPlotData");
1859
+ function Z(e) {
1860
+ let t = [];
1861
+ if (e.length === 0) return t;
1862
+ if (!W) {
1863
+ let t = I(H.xAxis) ? H.xAxis.min : Infinity, n = I(H.xAxis) ? H.xAxis.max : -Infinity;
1864
+ X(Math.min(t, 1), Math.max(n, e.length));
1865
+ }
1866
+ if (G || xe(e), F(H.xAxis) && (t = H.xAxis.categories.map((t, n) => [t, e[n]])), I(H.xAxis)) {
1867
+ let n = H.xAxis.min, r = H.xAxis.max, i = (r - n) / (e.length - 1), a = [];
1868
+ for (let e = n; e <= r; e += i) a.push(`${e}`);
1869
+ t = a.map((t, n) => [t, e[n]]);
1870
+ }
1871
+ return t;
1872
+ }
1873
+ t(Z, "transformDataWithoutCategory");
1874
+ function Q(e) {
1875
+ return U[e === 0 ? 0 : e % U.length];
1876
+ }
1877
+ t(Q, "getPlotColorFromPalette");
1878
+ function Se(e, t) {
1879
+ let n = Z(t);
1880
+ H.plots.push({
1881
+ type: "line",
1882
+ strokeFill: Q(z),
1883
+ strokeWidth: 2,
1884
+ data: n
1885
+ }), z++;
1886
+ }
1887
+ t(Se, "setLineData");
1888
+ function Ce(e, t) {
1889
+ let n = Z(t);
1890
+ H.plots.push({
1891
+ type: "bar",
1892
+ fill: Q(z),
1893
+ data: n
1894
+ }), z++;
1895
+ }
1896
+ t(Ce, "setBarData");
1897
+ function $() {
1898
+ if (H.plots.length === 0) throw Error("No Plot to render, please provide a plot with some data");
1899
+ return H.title = r(), pe.build(B, H, V, me);
1900
+ }
1901
+ t($, "getDrawableElem");
1902
+ function we() {
1903
+ return V;
1904
+ }
1905
+ t(we, "getChartThemeConfig");
1906
+ function Te() {
1907
+ return B;
1908
+ }
1909
+ t(Te, "getChartConfig");
1910
+ function Ee() {
1911
+ return H;
1912
+ }
1913
+ t(Ee, "getXYChartData");
1914
+ var De = {
1915
+ parser: ee,
1916
+ db: {
1917
+ getDrawableElem: $,
1918
+ clear: /* @__PURE__ */ t(function() {
1919
+ l(), z = 0, B = q(), H = J(), V = K(), U = V.plotColorPalette.split(",").map((e) => e.trim()), W = !1, G = !1;
1920
+ }, "clear"),
1921
+ setAccTitle: o,
1922
+ getAccTitle: f,
1923
+ setDiagramTitle: s,
1924
+ getDiagramTitle: r,
1925
+ getAccDescription: c,
1926
+ setAccDescription: n,
1927
+ setOrientation: ge,
1928
+ setXAxisTitle: _e,
1929
+ setXAxisRangeData: X,
1930
+ setXAxisBand: ve,
1931
+ setYAxisTitle: ye,
1932
+ setYAxisRangeData: be,
1933
+ setLineData: Se,
1934
+ setBarData: Ce,
1935
+ setTmpSVGG: he,
1936
+ getChartThemeConfig: we,
1937
+ getChartConfig: Te,
1938
+ getXYChartData: Ee
1939
+ },
1940
+ renderer: { draw: /* @__PURE__ */ t((n, r, i, a) => {
1941
+ let o = a.db, s = o.getChartThemeConfig(), c = o.getChartConfig(), l = o.getXYChartData().plots[0].data.map((e) => e[1]);
1942
+ function d(e) {
1943
+ return e === "top" ? "text-before-edge" : "middle";
1944
+ }
1945
+ t(d, "getDominantBaseLine");
1946
+ function f(e) {
1947
+ return e === "left" ? "start" : e === "right" ? "end" : "middle";
1948
+ }
1949
+ t(f, "getTextAnchor");
1950
+ function p(e) {
1951
+ return `translate(${e.x}, ${e.y}) rotate(${e.rotation || 0})`;
1952
+ }
1953
+ t(p, "getTextTransformation"), e.debug("Rendering xychart chart\n" + n);
1954
+ let m = y(r), h = m.append("g").attr("class", "main"), g = h.append("rect").attr("width", c.width).attr("height", c.height).attr("class", "background");
1955
+ u(m, c.height, c.width, !0), m.attr("viewBox", `0 0 ${c.width} ${c.height}`), g.attr("fill", s.backgroundColor), o.setTmpSVGG(m.append("g").attr("class", "mermaid-tmp-group"));
1956
+ let _ = o.getDrawableElem(), v = {};
1957
+ function b(e) {
1958
+ let t = h, n = "";
1959
+ for (let [r] of e.entries()) {
1960
+ let i = h;
1961
+ r > 0 && v[n] && (i = v[n]), n += e[r], t = v[n], t || (t = v[n] = i.append("g").attr("class", e[r]));
1962
+ }
1963
+ return t;
1964
+ }
1965
+ t(b, "getGroup");
1966
+ for (let e of _) {
1967
+ if (e.data.length === 0) continue;
1968
+ let n = b(e.groupTexts);
1969
+ switch (e.type) {
1970
+ case "rect":
1971
+ if (n.selectAll("rect").data(e.data).enter().append("rect").attr("x", (e) => e.x).attr("y", (e) => e.y).attr("width", (e) => e.width).attr("height", (e) => e.height).attr("fill", (e) => e.fill).attr("stroke", (e) => e.strokeFill).attr("stroke-width", (e) => e.strokeWidth), c.showDataLabel) {
1972
+ let r = c.showDataLabelOutsideBar;
1973
+ if (c.chartOrientation === "horizontal") {
1974
+ let i = function(e, t) {
1975
+ let { data: n, label: r } = e;
1976
+ return t * r.length * a <= n.width - o;
1977
+ };
1978
+ t(i, "fitsHorizontally");
1979
+ let a = .7, o = 10, c = e.data.map((e, t) => ({
1980
+ data: e,
1981
+ label: l[t].toString()
1982
+ })).filter((e) => e.data.width > 0 && e.data.height > 0), u = c.map((e) => {
1983
+ let { data: t } = e, n = t.height * .7;
1984
+ for (; !i(e, n) && n > 0;) --n;
1985
+ return n;
1986
+ }), d = Math.floor(Math.min(...u)), f = /* @__PURE__ */ t((e) => r ? e.data.x + e.data.width + 10 : e.data.x + e.data.width - 10, "determineLabelXPosition");
1987
+ n.selectAll("text").data(c).enter().append("text").attr("x", f).attr("y", (e) => e.data.y + e.data.height / 2).attr("text-anchor", r ? "start" : "end").attr("dominant-baseline", "middle").attr("fill", s.dataLabelColor).attr("font-size", `${d}px`).text((e) => e.label);
1988
+ } else {
1989
+ let i = function(e, t, n) {
1990
+ let { data: r, label: i } = e, a = t * i.length * .7, o = r.x + r.width / 2, s = o - a / 2, c = o + a / 2, l = s >= r.x && c <= r.x + r.width, u = r.y + n + t <= r.y + r.height;
1991
+ return l && u;
1992
+ };
1993
+ t(i, "fitsInBar");
1994
+ let a = e.data.map((e, t) => ({
1995
+ data: e,
1996
+ label: l[t].toString()
1997
+ })).filter((e) => e.data.width > 0 && e.data.height > 0), o = a.map((e) => {
1998
+ let { data: t, label: n } = e, r = t.width / (n.length * .7);
1999
+ for (; !i(e, r, 10) && r > 0;) --r;
2000
+ return r;
2001
+ }), c = Math.floor(Math.min(...o)), u = /* @__PURE__ */ t((e) => r ? e.data.y - 10 : e.data.y + 10, "determineLabelYPosition");
2002
+ n.selectAll("text").data(a).enter().append("text").attr("x", (e) => e.data.x + e.data.width / 2).attr("y", u).attr("text-anchor", "middle").attr("dominant-baseline", r ? "auto" : "hanging").attr("fill", s.dataLabelColor).attr("font-size", `${c}px`).text((e) => e.label);
2003
+ }
2004
+ }
2005
+ break;
2006
+ case "text":
2007
+ n.selectAll("text").data(e.data).enter().append("text").attr("x", 0).attr("y", 0).attr("fill", (e) => e.fill).attr("font-size", (e) => e.fontSize).attr("dominant-baseline", (e) => d(e.verticalPos)).attr("text-anchor", (e) => f(e.horizontalPos)).attr("transform", (e) => p(e)).text((e) => e.text);
2008
+ break;
2009
+ case "path":
2010
+ n.selectAll("path").data(e.data).enter().append("path").attr("d", (e) => e.path).attr("fill", (e) => e.fill ? e.fill : "none").attr("stroke", (e) => e.strokeFill).attr("stroke-width", (e) => e.strokeWidth);
2011
+ break;
2012
+ }
2013
+ }
2014
+ }, "draw") }
2015
+ };
2016
+ //#endregion
2017
+ export { De as diagram };