@jackuait/blok 0.10.0-beta.5 → 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 (471) hide show
  1. package/codemod/migrate-editorjs-to-blok.js +0 -2
  2. package/codemod/test.js +0 -6
  3. package/dist/blok.mjs +3 -3
  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-DH-WEcA8.mjs → blok-CiLRmoHI.mjs} +2030 -1996
  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-D6kmoKXy.mjs +20 -0
  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-Ccno9NZS.mjs → constants-DFS8l39Y.mjs} +525 -552
  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/default-DIfXCS2E.mjs +4 -0
  54. package/dist/chunks/defaultLocale-DFhS1600.mjs +201 -0
  55. package/dist/chunks/diagram-5BDNPKRD-CM7c3UTI.mjs +112 -0
  56. package/dist/chunks/diagram-G4DWMVQ6-Bhg4ps6b.mjs +546 -0
  57. package/dist/chunks/diagram-MMDJMWI5-C-UCVaxB.mjs +234 -0
  58. package/dist/chunks/diagram-TYMM5635-BOHSujSD.mjs +144 -0
  59. package/dist/chunks/dist-DHsXIYdd.mjs +59 -0
  60. package/dist/chunks/erDiagram-SMLLAGMA-CwKxXFMB.mjs +1712 -0
  61. package/dist/chunks/flowDiagram-DWJPFMVM-rQJKfyuO.mjs +4175 -0
  62. package/dist/chunks/ganttDiagram-T4ZO3ILL-DfaZirLX.mjs +3083 -0
  63. package/dist/chunks/gitGraph-7Q5UKJZL-BKG8cHGz.mjs +3 -0
  64. package/dist/chunks/gitGraphDiagram-UUTBAWPF-CRa-ymsI.mjs +792 -0
  65. package/dist/chunks/graphlib-CuDElSdG.mjs +223 -0
  66. package/dist/chunks/{i18next-G6FKbZqA.mjs → i18next-BBGW2sDE.mjs} +1 -1
  67. package/dist/chunks/{i18next-loader-CwNimni3.mjs → i18next-loader-CasQQb5s.mjs} +2 -2
  68. package/dist/chunks/info-OMHHGYJF-FKqYyUn9.mjs +3 -0
  69. package/dist/chunks/infoDiagram-42DDH7IO-CvyJU2nE.mjs +29 -0
  70. package/dist/chunks/init-JlKGZtuT.mjs +15 -0
  71. package/dist/chunks/ishikawaDiagram-UXIWVN3A-CIpbw1BK.mjs +719 -0
  72. package/dist/chunks/journeyDiagram-VCZTEJTY-H96UcUK9.mjs +885 -0
  73. package/dist/chunks/kanban-definition-6JOO6SKY-BYZT3srA.mjs +980 -0
  74. package/dist/chunks/katex-JyOgX6MW.mjs +22026 -0
  75. package/dist/chunks/{lightweight-i18n-DWCdzAw0.mjs → lightweight-i18n-Cvv8CWh4.mjs} +29 -18
  76. package/dist/chunks/line-B9xUUA7k.mjs +34 -0
  77. package/dist/chunks/linear-Dj-1yA_B.mjs +289 -0
  78. package/dist/chunks/mdast-util-math-CHYUxOHk.mjs +151 -0
  79. package/dist/chunks/mermaid-parser.core-D6OPAUtM.mjs +57 -0
  80. package/dist/chunks/mermaid.core-BPN9ZHKQ.mjs +989 -0
  81. package/dist/{messages-B-4fku2H2.mjs → chunks/messages--YKhFEDE.mjs} +30 -19
  82. package/dist/{messages-BCG_evLg.mjs → chunks/messages-0Uwu1AMJ2.mjs} +28 -17
  83. package/dist/{messages-CdlsTFB1.mjs → chunks/messages-1__0Ph4Q.mjs} +28 -17
  84. package/dist/chunks/{messages-wLSVQbsA2.mjs → messages-4sm9Pb0C.mjs} +28 -17
  85. package/dist/chunks/{messages-R2W_rGOo2.mjs → messages-4uxjtzKW.mjs} +28 -17
  86. package/dist/chunks/{messages-Dm4YVlrm.mjs → messages-B-SwLgkQ.mjs} +30 -19
  87. package/dist/{messages--S8_taOd2.mjs → chunks/messages-B1ylBxXQ.mjs} +28 -17
  88. package/dist/chunks/{messages-B7MIRzCa2.mjs → messages-B5m3dhKc.mjs} +28 -17
  89. package/dist/chunks/{messages-Dplnp19q.mjs → messages-B6n2zDtv.mjs} +29 -18
  90. package/dist/chunks/{messages-DD7BI6BK.mjs → messages-BC9w4zAT.mjs} +28 -17
  91. package/dist/chunks/{messages-BrFl5773.mjs → messages-BOj-7N3p.mjs} +28 -17
  92. package/dist/chunks/{messages-BbdNugdi.mjs → messages-BRYHTS18.mjs} +28 -17
  93. package/dist/chunks/{messages-JQKFJo7C.mjs → messages-BSBbVjor.mjs} +35 -24
  94. package/dist/{messages-CBzd_x7H.mjs → chunks/messages-BUUkmUGc.mjs} +28 -17
  95. package/dist/{messages-CjmSrt1D.mjs → chunks/messages-Bb3YEV2P.mjs} +33 -22
  96. package/dist/{messages-BvgXeMSL2.mjs → chunks/messages-Be_6YLzJ.mjs} +29 -18
  97. package/dist/{messages-pgPcitDH.mjs → chunks/messages-BevRhv5d.mjs} +28 -17
  98. package/dist/chunks/{messages-BW_7lfqG2.mjs → messages-Bhqr7Im2.mjs} +28 -17
  99. package/dist/chunks/{messages-LxumrNue2.mjs → messages-BpJFjSKa.mjs} +29 -18
  100. package/dist/{messages-xEI8gEDK.mjs → chunks/messages-BqYlq_Bn.mjs} +28 -17
  101. package/dist/{messages-CBdQ3XP9.mjs → chunks/messages-BtAwCUfD.mjs} +28 -17
  102. package/dist/{messages-D3cAcyzj.mjs → chunks/messages-Bthbp65G.mjs} +29 -18
  103. package/dist/{messages-CYX48nfg.mjs → chunks/messages-BvHMZ8Pi2.mjs} +28 -17
  104. package/dist/{messages-Dddxv8-f2.mjs → chunks/messages-Bw1BE9jW.mjs} +28 -17
  105. package/dist/chunks/{messages-d0Ky6QjR.mjs → messages-Bx6Wt285.mjs} +28 -17
  106. package/dist/chunks/{messages-BPog17132.mjs → messages-BzslJRYv.mjs} +29 -18
  107. package/dist/{messages-hTpeKUaW.mjs → chunks/messages-C02M0Tpw.mjs} +28 -17
  108. package/dist/chunks/{messages-C-b6tPad2.mjs → messages-C1u3E9qg.mjs} +28 -17
  109. package/dist/{messages-BJ7BuFZi.mjs → chunks/messages-C68WgSKk.mjs} +29 -18
  110. package/dist/chunks/{messages-Bpda_3PM2.mjs → messages-C8w8JCP0.mjs} +30 -19
  111. package/dist/chunks/{messages-CmrMwBv3.mjs → messages-CFOZdSk4.mjs} +28 -17
  112. package/dist/{messages-DVQNjdPk.mjs → chunks/messages-CGOY79lr.mjs} +28 -17
  113. package/dist/chunks/{messages-DAVsuDWh2.mjs → messages-CGaSMZPu.mjs} +28 -17
  114. package/dist/{messages-DtrSrdfE2.mjs → chunks/messages-CJJgQ0BH.mjs} +28 -17
  115. package/dist/{messages-CgzbJ8_l2.mjs → chunks/messages-CTD6rtQj2.mjs} +28 -17
  116. package/dist/chunks/{messages-p4byLfvR.mjs → messages-CZymJML9.mjs} +32 -21
  117. package/dist/{messages-CqkRG9mH.mjs → chunks/messages-CfeFJbiv.mjs} +32 -21
  118. package/dist/{messages-DjJQoYvP2.mjs → chunks/messages-Cgatzu_z.mjs} +30 -19
  119. package/dist/{messages-CM5fsPo02.mjs → chunks/messages-Ch2zBI602.mjs} +28 -17
  120. package/dist/chunks/{messages-CyNsByCY.mjs → messages-CiAHsUfO.mjs} +28 -17
  121. package/dist/{messages-BXI3qIos.mjs → chunks/messages-Cuzq-tNW.mjs} +28 -17
  122. package/dist/chunks/{messages-FHrCEJmY2.mjs → messages-Cw4qiMwb.mjs} +28 -17
  123. package/dist/chunks/{messages-xfjdrZmx.mjs → messages-Cyh-mz40.mjs} +28 -17
  124. package/dist/{messages-Bo_FUvVH.mjs → chunks/messages-D-I2QO8H.mjs} +28 -17
  125. package/dist/chunks/{messages-Ct7AMBS82.mjs → messages-D0D2gruy.mjs} +28 -17
  126. package/dist/chunks/{messages-CrMfiGu5.mjs → messages-D1BKxfLD.mjs} +29 -18
  127. package/dist/chunks/{messages-CmXADeab2.mjs → messages-D4eDs6R_.mjs} +28 -17
  128. package/dist/chunks/{messages-ClRHDxzh.mjs → messages-D9Xr-hES.mjs} +28 -17
  129. package/dist/{messages-tsHpMdDT2.mjs → chunks/messages-D9eJPHia.mjs} +30 -19
  130. package/dist/{messages-DUBHHfEt.mjs → chunks/messages-DBFWSzKY2.mjs} +28 -17
  131. package/dist/{messages-i4S6q64n2.mjs → chunks/messages-DC0wu2S7.mjs} +28 -17
  132. package/dist/chunks/{messages-BnznaKEP2.mjs → messages-DF9o19rG.mjs} +28 -17
  133. package/dist/{messages-DA-o8X3A.mjs → chunks/messages-DFS_n986.mjs} +51 -40
  134. package/dist/{messages-BGsDZTQp2.mjs → chunks/messages-DGS4H30T.mjs} +28 -17
  135. package/dist/chunks/{messages-Cdx4QMR1.mjs → messages-DKjddpzJ.mjs} +30 -19
  136. package/dist/chunks/{messages-B3s2vra72.mjs → messages-DMvTdUXC.mjs} +30 -19
  137. package/dist/{messages-Dcyrzdxa2.mjs → chunks/messages-DQUX-QYI2.mjs} +28 -17
  138. package/dist/chunks/{messages-BS1nOvZ-.mjs → messages-DUigq8FO2.mjs} +28 -17
  139. package/dist/{messages-BKjqW08U.mjs → chunks/messages-DY0FJdpH.mjs} +28 -17
  140. package/dist/{messages-BBvDbp62.mjs → chunks/messages-DfVXiqt-2.mjs} +28 -17
  141. package/dist/chunks/{messages-DHCVA7XQ.mjs → messages-DgZc9TJw.mjs} +28 -17
  142. package/dist/chunks/{messages-1Raf1IK82.mjs → messages-QD4BCUDP.mjs} +28 -17
  143. package/dist/{messages-JhoVMjfX2.mjs → chunks/messages-USmweex9.mjs} +28 -17
  144. package/dist/chunks/{messages-DBpXyvRe2.mjs → messages-a1JTi0Qm.mjs} +31 -20
  145. package/dist/chunks/{messages-D5IgUbBD2.mjs → messages-jcgCHPRn.mjs} +28 -17
  146. package/dist/chunks/{messages-Dfpi8pDY.mjs → messages-tnnqHpbd.mjs} +29 -18
  147. package/dist/{messages-DZEcrbmH.mjs → chunks/messages-vzWKPLJO.mjs} +28 -17
  148. package/dist/chunks/micromark-extension-math-Cz_ZZ_0Y.mjs +169 -0
  149. package/dist/chunks/micromark-factory-space-WwmyBO_J.mjs +36 -0
  150. package/dist/chunks/mindmap-definition-QFDTVHPH-BswFuNN6.mjs +1013 -0
  151. package/dist/chunks/{notifier-Butv4Dvo.mjs → notifier-B1zCi9G1.mjs} +1 -1
  152. package/dist/chunks/{objectSpread2-BY4mgzrQ.mjs → objectSpread2-CWwMYL_U.mjs} +1 -1
  153. package/dist/chunks/ordinal-D1_lEgAO.mjs +65 -0
  154. package/dist/chunks/packet-4T2RLAQJ-DTUW2U0C.mjs +3 -0
  155. package/dist/chunks/path-6nYPAvNb.mjs +85 -0
  156. package/dist/chunks/pie-ZZUOXDRM-D-umqvEM.mjs +3 -0
  157. package/dist/chunks/pieDiagram-DEJITSTG-1WJgvK1w.mjs +179 -0
  158. package/dist/chunks/quadrantDiagram-34T5L4WZ-B_YH8QGl.mjs +1960 -0
  159. package/dist/chunks/radar-PYXPWWZC-DkQelf08.mjs +3 -0
  160. package/dist/chunks/requirementDiagram-MS252O5E-DRl0YJRI.mjs +2224 -0
  161. package/dist/chunks/rough.esm-CSWJruu5.mjs +1353 -0
  162. package/dist/chunks/sankeyDiagram-XADWPNL6-B-8IrknH.mjs +909 -0
  163. package/dist/chunks/sequenceDiagram-FGHM5R23-DTLb8qmO.mjs +4181 -0
  164. package/dist/chunks/src-CRgEHLPW.mjs +2149 -0
  165. package/dist/chunks/stateDiagram-FHFEXIEX-B0JFjLFy.mjs +218 -0
  166. package/dist/chunks/stateDiagram-v2-QKLJ7IA2-Co9CUU_z.mjs +28 -0
  167. package/dist/chunks/timeline-definition-GMOUNBTQ-CS9KTh-Q.mjs +1084 -0
  168. package/dist/chunks/{tools-C2_IVsQY.mjs → tools-CSYsrnud.mjs} +2846 -3098
  169. package/dist/chunks/treeView-SZITEDCU-DOOoyNP9.mjs +3 -0
  170. package/dist/chunks/treemap-W4RFUUIX-CsOoUA-u.mjs +3 -0
  171. package/dist/chunks/vennDiagram-DHZGUBPP-0BNu5Wna.mjs +1876 -0
  172. package/dist/chunks/wardley-RL74JXVD-CCzZcmEk.mjs +3 -0
  173. package/dist/chunks/wardleyDiagram-NUSXRM2D-Ca9XByNH.mjs +594 -0
  174. package/dist/chunks/xychartDiagram-5P7HB3ND-C8AyKUAE.mjs +2017 -0
  175. package/dist/cli.mjs +1 -1
  176. package/dist/full.mjs +14 -14
  177. package/dist/locales.mjs +95 -84
  178. package/dist/markdown.mjs +3962 -0
  179. package/dist/{chunks/messages-6mikOS4D2.mjs → messages-5jvKxQNu2.mjs} +28 -17
  180. package/dist/{messages-BAcH6PtT2.mjs → messages-7QD-X6XT2.mjs} +28 -17
  181. package/dist/{messages-DbxbxUiK2.mjs → messages-96iaAUds2.mjs} +29 -18
  182. package/dist/{messages-CVcQD-9u.mjs → messages-B19o-Teb.mjs} +30 -19
  183. package/dist/{messages-Ccd587Yn.mjs → messages-B1ZUQagA.mjs} +28 -17
  184. package/dist/{messages-upqrRZQH2.mjs → messages-B7ieAJBd2.mjs} +28 -17
  185. package/dist/{chunks/messages-Csvm4mtA.mjs → messages-BECMxmfX.mjs} +28 -17
  186. package/dist/{chunks/messages-DA7Zk-Cy.mjs → messages-BIHc0KHY.mjs} +29 -18
  187. package/dist/{chunks/messages-BdnSVKOw.mjs → messages-BIoeoik5.mjs} +28 -17
  188. package/dist/{chunks/messages-DQ5AyNCU.mjs → messages-BJeGJksD.mjs} +28 -17
  189. package/dist/{messages-C5XPUD9T2.mjs → messages-BRZX964b2.mjs} +29 -18
  190. package/dist/{messages-Dkg99bfr2.mjs → messages-BTQPpoM42.mjs} +31 -20
  191. package/dist/{messages-fLi0P2dP.mjs → messages-BYNcD6uR.mjs} +28 -17
  192. package/dist/{messages-BvgTQLf72.mjs → messages-BYmmMDrN2.mjs} +28 -17
  193. package/dist/{chunks/messages-CgRvtOEY.mjs → messages-BbYq1pk-.mjs} +28 -17
  194. package/dist/{chunks/messages-DUDgFEEe2.mjs → messages-BiUGXvYr2.mjs} +28 -17
  195. package/dist/{chunks/messages-DJkIeapn.mjs → messages-BiiongNz2.mjs} +28 -17
  196. package/dist/{messages-BBq0M604.mjs → messages-Bm0Feca1.mjs} +32 -21
  197. package/dist/{messages-eTourT12.mjs → messages-BmAn22OX.mjs} +28 -17
  198. package/dist/{messages-C6Y4Jv2N.mjs → messages-Bq3F2Tp_.mjs} +28 -17
  199. package/dist/{messages-DIRha_gg2.mjs → messages-BsycN_JI2.mjs} +28 -17
  200. package/dist/{chunks/messages-CljStrYi.mjs → messages-BwHs4cm1.mjs} +32 -21
  201. package/dist/{chunks/messages-Cs9XBt4T.mjs → messages-CJTy6JZt.mjs} +28 -17
  202. package/dist/{messages-BokEflKa.mjs → messages-CR_L_UtK.mjs} +28 -17
  203. package/dist/{chunks/messages-ZJ0b1C3a.mjs → messages-CSUHBs4c2.mjs} +28 -17
  204. package/dist/{messages-BcFQFcJ92.mjs → messages-CWIXvnDf2.mjs} +28 -17
  205. package/dist/{messages-DnatBKPm.mjs → messages-CcF4y-E4.mjs} +28 -17
  206. package/dist/{messages-BywbKcPC.mjs → messages-Ce6KVEbT.mjs} +29 -18
  207. package/dist/{messages-DOTJ2NvJ.mjs → messages-Ci0KqX-J.mjs} +35 -24
  208. package/dist/{messages-BtxaN-xx.mjs → messages-CjbnogEC.mjs} +28 -17
  209. package/dist/{messages-BSe3QDnQ.mjs → messages-CmB406HW.mjs} +30 -19
  210. package/dist/{messages-BVKZK-3t.mjs → messages-CqXtJTpU.mjs} +28 -17
  211. package/dist/{chunks/messages-DJA6fb_P2.mjs → messages-D0aw5_0k2.mjs} +30 -19
  212. package/dist/{chunks/messages-DPykxECP2.mjs → messages-D8FQWulF2.mjs} +28 -17
  213. package/dist/{chunks/messages-CpzO7KRA.mjs → messages-DBiVgUs2.mjs} +29 -18
  214. package/dist/{chunks/messages-B0ffBqzr.mjs → messages-DIJlIqlQ2.mjs} +28 -17
  215. package/dist/{chunks/messages-BaPZuLjN.mjs → messages-DLX_iBDJ.mjs} +28 -17
  216. package/dist/{chunks/messages-CvfKofOP.mjs → messages-DLlc9QPw.mjs} +28 -17
  217. package/dist/{chunks/messages-Czny5pPT2.mjs → messages-DMr62KiO2.mjs} +28 -17
  218. package/dist/{chunks/messages-IDEUsFhQ2.mjs → messages-DPA-mMWC2.mjs} +29 -18
  219. package/dist/{messages-BCuTVHBV.mjs → messages-DTh9a8mR.mjs} +28 -17
  220. package/dist/{chunks/messages-DT7fRpCy.mjs → messages-DY4IqlhY.mjs} +28 -17
  221. package/dist/{chunks/messages-BgVEGd4c.mjs → messages-DYTTu0O12.mjs} +28 -17
  222. package/dist/{messages-Bk984gRE2.mjs → messages-DbySKTKt2.mjs} +30 -19
  223. package/dist/{chunks/messages-ID1PHnMv.mjs → messages-Ddnj2iTG2.mjs} +28 -17
  224. package/dist/{messages-BmNaAyKS.mjs → messages-DkLU_rWm.mjs} +28 -17
  225. package/dist/{messages-C6OJvnJg2.mjs → messages-Dl3Sv6Rq2.mjs} +29 -18
  226. package/dist/{chunks/messages-C1OqT_nL.mjs → messages-Dl5Y2-Ia.mjs} +51 -40
  227. package/dist/{chunks/messages-Cqc-6rfh2.mjs → messages-DnG0ef8t2.mjs} +30 -19
  228. package/dist/{chunks/messages-BkCjgGxc.mjs → messages-DnGJD4TL.mjs} +28 -17
  229. package/dist/{messages-Bio7KYsr2.mjs → messages-Dnp9N6RU2.mjs} +28 -17
  230. package/dist/{chunks/messages-Df87zXXG.mjs → messages-Dvn35ksS.mjs} +28 -17
  231. package/dist/{messages-CHJ5SOZI.mjs → messages-Dw__BcTj.mjs} +28 -17
  232. package/dist/{chunks/messages-DC7TX-YT.mjs → messages-Dy-Y_nEI.mjs} +28 -17
  233. package/dist/{messages-DV9e1DW7.mjs → messages-E_ZuzGDt.mjs} +28 -17
  234. package/dist/{messages-DD5pW0zJ.mjs → messages-F2xRoY1w.mjs} +28 -17
  235. package/dist/{chunks/messages-BgsPQXfP.mjs → messages-Smt4GBbj.mjs} +33 -22
  236. package/dist/{messages-DJT4Bt_02.mjs → messages-aMXpHt5X2.mjs} +28 -17
  237. package/dist/{chunks/messages-B2pW6jO_.mjs → messages-aWZH50vu2.mjs} +30 -19
  238. package/dist/{chunks/messages-u2yxkNTE2.mjs → messages-dv19AkyJ.mjs} +28 -17
  239. package/dist/{messages-DJKLtW7u.mjs → messages-hWwSRF-2.mjs} +28 -17
  240. package/dist/{messages-tK67CBqn.mjs → messages-j7o5rT9s.mjs} +28 -17
  241. package/dist/{messages-DqyqEw1_.mjs → messages-nUVjeh7K.mjs} +29 -18
  242. package/dist/{chunks/messages-DSjXen8E.mjs → messages-nlhESX9t.mjs} +28 -17
  243. package/dist/{messages-C30Vz-UZ2.mjs → messages-rk-A1Wa42.mjs} +30 -19
  244. package/dist/{chunks/messages-DR09nkcZ.mjs → messages-xh2eOLvs.mjs} +28 -17
  245. package/dist/{chunks/messages-C11byid72.mjs → messages-ynAe7ewZ.mjs} +28 -17
  246. package/dist/react.mjs +3 -3
  247. package/dist/tools.mjs +3 -3
  248. package/dist/vendor.LICENSE.txt +4609 -212
  249. package/package.json +21 -3
  250. package/src/components/blocks.ts +26 -1
  251. package/src/components/constants/data-attributes.ts +0 -2
  252. package/src/components/i18n/locales/am/messages.json +28 -17
  253. package/src/components/i18n/locales/ar/messages.json +28 -17
  254. package/src/components/i18n/locales/az/messages.json +28 -17
  255. package/src/components/i18n/locales/bg/messages.json +28 -17
  256. package/src/components/i18n/locales/bn/messages.json +28 -17
  257. package/src/components/i18n/locales/bs/messages.json +30 -19
  258. package/src/components/i18n/locales/cs/messages.json +32 -21
  259. package/src/components/i18n/locales/da/messages.json +35 -24
  260. package/src/components/i18n/locales/de/messages.json +33 -22
  261. package/src/components/i18n/locales/dv/messages.json +28 -17
  262. package/src/components/i18n/locales/el/messages.json +28 -17
  263. package/src/components/i18n/locales/en/messages.json +28 -17
  264. package/src/components/i18n/locales/es/messages.json +29 -18
  265. package/src/components/i18n/locales/et/messages.json +32 -21
  266. package/src/components/i18n/locales/fa/messages.json +28 -17
  267. package/src/components/i18n/locales/fi/messages.json +28 -17
  268. package/src/components/i18n/locales/fil/messages.json +51 -40
  269. package/src/components/i18n/locales/fr/messages.json +29 -18
  270. package/src/components/i18n/locales/gu/messages.json +28 -17
  271. package/src/components/i18n/locales/he/messages.json +28 -17
  272. package/src/components/i18n/locales/hi/messages.json +28 -17
  273. package/src/components/i18n/locales/hr/messages.json +30 -19
  274. package/src/components/i18n/locales/hu/messages.json +29 -18
  275. package/src/components/i18n/locales/hy/messages.json +28 -17
  276. package/src/components/i18n/locales/id/messages.json +28 -17
  277. package/src/components/i18n/locales/it/messages.json +29 -18
  278. package/src/components/i18n/locales/ja/messages.json +28 -17
  279. package/src/components/i18n/locales/ka/messages.json +28 -17
  280. package/src/components/i18n/locales/km/messages.json +28 -17
  281. package/src/components/i18n/locales/kn/messages.json +28 -17
  282. package/src/components/i18n/locales/ko/messages.json +28 -17
  283. package/src/components/i18n/locales/ku/messages.json +28 -17
  284. package/src/components/i18n/locales/lo/messages.json +28 -17
  285. package/src/components/i18n/locales/lt/messages.json +28 -17
  286. package/src/components/i18n/locales/lv/messages.json +28 -17
  287. package/src/components/i18n/locales/mk/messages.json +28 -17
  288. package/src/components/i18n/locales/ml/messages.json +28 -17
  289. package/src/components/i18n/locales/mn/messages.json +28 -17
  290. package/src/components/i18n/locales/mr/messages.json +28 -17
  291. package/src/components/i18n/locales/ms/messages.json +30 -19
  292. package/src/components/i18n/locales/my/messages.json +28 -17
  293. package/src/components/i18n/locales/ne/messages.json +28 -17
  294. package/src/components/i18n/locales/nl/messages.json +30 -19
  295. package/src/components/i18n/locales/no/messages.json +31 -20
  296. package/src/components/i18n/locales/pa/messages.json +28 -17
  297. package/src/components/i18n/locales/pl/messages.json +29 -18
  298. package/src/components/i18n/locales/ps/messages.json +28 -17
  299. package/src/components/i18n/locales/pt/messages.json +29 -18
  300. package/src/components/i18n/locales/ro/messages.json +29 -18
  301. package/src/components/i18n/locales/ru/messages.json +28 -17
  302. package/src/components/i18n/locales/sd/messages.json +28 -17
  303. package/src/components/i18n/locales/si/messages.json +28 -17
  304. package/src/components/i18n/locales/sk/messages.json +30 -19
  305. package/src/components/i18n/locales/sl/messages.json +30 -19
  306. package/src/components/i18n/locales/sq/messages.json +29 -18
  307. package/src/components/i18n/locales/sr/messages.json +28 -17
  308. package/src/components/i18n/locales/sv/messages.json +30 -19
  309. package/src/components/i18n/locales/sw/messages.json +28 -17
  310. package/src/components/i18n/locales/ta/messages.json +28 -17
  311. package/src/components/i18n/locales/te/messages.json +28 -17
  312. package/src/components/i18n/locales/th/messages.json +28 -17
  313. package/src/components/i18n/locales/tr/messages.json +28 -17
  314. package/src/components/i18n/locales/ug/messages.json +28 -17
  315. package/src/components/i18n/locales/uk/messages.json +28 -17
  316. package/src/components/i18n/locales/ur/messages.json +28 -17
  317. package/src/components/i18n/locales/vi/messages.json +28 -17
  318. package/src/components/i18n/locales/yi/messages.json +28 -17
  319. package/src/components/i18n/locales/zh/messages.json +28 -17
  320. package/src/components/icons/index.ts +59 -47
  321. package/src/components/inline-tools/inline-tool-code.ts +399 -0
  322. package/src/components/modules/api/blocks.ts +17 -0
  323. package/src/components/modules/api/tools.ts +0 -19
  324. package/src/components/modules/blockEvents/composers/blockSelectionKeys.ts +20 -3
  325. package/src/components/modules/blockEvents/composers/keyboardNavigation.ts +5 -5
  326. package/src/components/modules/blockManager/blockManager.ts +0 -11
  327. package/src/components/modules/blockManager/event-binder.ts +1 -12
  328. package/src/components/modules/paste/handlers/html-handler.ts +13 -10
  329. package/src/components/modules/paste/handlers/index.ts +1 -0
  330. package/src/components/modules/paste/index.ts +6 -0
  331. package/src/components/modules/themeManager.ts +1 -3
  332. package/src/components/modules/toolbar/blockSettings.ts +1 -0
  333. package/src/components/modules/toolbar/inline/index.ts +3 -0
  334. package/src/components/modules/ui.ts +0 -13
  335. package/src/components/modules/uiControllers/controllers/keyboard.ts +0 -29
  336. package/src/components/modules/uiControllers/controllers/selection.ts +2 -14
  337. package/src/components/ui/toolbox.ts +1 -0
  338. package/src/components/utils/popover/popover-position.ts +2 -4
  339. package/src/markdown/index.ts +63 -0
  340. package/src/markdown/markdown-handler.ts +110 -0
  341. package/src/markdown/mdast-to-blocks.ts +418 -0
  342. package/src/markdown/phrasing-to-html.ts +60 -0
  343. package/src/markdown/types.ts +42 -0
  344. package/src/stories/EditorModes.stories.ts +0 -60
  345. package/src/styles/main.css +39 -1140
  346. package/src/tools/callout/emoji-picker/index.ts +3 -2
  347. package/src/tools/callout/index.ts +24 -0
  348. package/src/tools/code/code-keyboard.ts +142 -0
  349. package/src/tools/code/constants.ts +96 -0
  350. package/src/tools/code/dom-builder.ts +181 -0
  351. package/src/tools/code/highlight-applier.ts +229 -0
  352. package/src/tools/code/index.ts +462 -0
  353. package/src/tools/code/katex-loader.ts +50 -0
  354. package/src/tools/code/language-picker.ts +241 -0
  355. package/src/tools/code/mermaid-loader.ts +45 -0
  356. package/src/tools/code/shiki-loader.ts +135 -0
  357. package/src/tools/divider/index.ts +9 -1
  358. package/src/tools/index.ts +4 -2
  359. package/src/tools/list/block-operations.ts +3 -1
  360. package/src/tools/list/depth-validator.ts +4 -7
  361. package/src/tools/list/dom-builder.ts +5 -3
  362. package/src/tools/list/index.ts +21 -3
  363. package/src/tools/list/list-helpers.ts +9 -2
  364. package/src/tools/list/list-keyboard.ts +56 -14
  365. package/src/tools/list/list-lifecycle.ts +3 -1
  366. package/src/tools/list/marker-calculator.ts +37 -0
  367. package/src/tools/list/ordered-marker-manager.ts +4 -2
  368. package/src/tools/table/core/table-commands.ts +16 -0
  369. package/src/tools/table/core/table-controller.ts +29 -0
  370. package/src/tools/table/core/table-events.ts +17 -0
  371. package/src/tools/table/index.ts +196 -13
  372. package/src/tools/table/table-cell-blocks.ts +9 -6
  373. package/src/tools/table/table-cell-clipboard.ts +7 -2
  374. package/src/tools/table/table-cell-placement-picker.ts +133 -0
  375. package/src/tools/table/table-cell-selection.ts +174 -19
  376. package/src/tools/table/table-core.ts +321 -113
  377. package/src/tools/table/table-map.ts +279 -0
  378. package/src/tools/table/table-model.ts +901 -1
  379. package/src/tools/table/table-operations.ts +78 -44
  380. package/src/tools/table/table-resize.ts +19 -17
  381. package/src/tools/table/table-row-col-drag.ts +24 -10
  382. package/src/tools/table/types.ts +24 -2
  383. package/types/api/tools.d.ts +0 -18
  384. package/types/data-attributes.d.ts +0 -1
  385. package/types/index.d.ts +0 -16
  386. package/types/markdown.d.ts +2 -0
  387. package/types/tools/code.d.ts +13 -0
  388. package/src/tools/database/database-backend-sync.ts +0 -101
  389. package/src/tools/database/database-board-view.ts +0 -301
  390. package/src/tools/database/database-card-drag.ts +0 -306
  391. package/src/tools/database/database-card-drawer.ts +0 -546
  392. package/src/tools/database/database-column-controls.ts +0 -46
  393. package/src/tools/database/database-column-drag.ts +0 -262
  394. package/src/tools/database/database-keyboard.ts +0 -35
  395. package/src/tools/database/database-list-row-drag.ts +0 -245
  396. package/src/tools/database/database-list-view.ts +0 -333
  397. package/src/tools/database/database-model.ts +0 -246
  398. package/src/tools/database/database-property-type-popover.ts +0 -108
  399. package/src/tools/database/database-tab-bar.ts +0 -532
  400. package/src/tools/database/database-view-popover.ts +0 -109
  401. package/src/tools/database/database-view-renderer.ts +0 -25
  402. package/src/tools/database/index.ts +0 -948
  403. package/src/tools/database/types.ts +0 -144
  404. package/types/tools/database.d.ts +0 -145
  405. /package/dist/chunks/{am-CHDDMHkd.mjs → am-rVzV1W41.mjs} +0 -0
  406. /package/dist/chunks/{ar-DoqfNqut.mjs → ar-C710lkoH.mjs} +0 -0
  407. /package/dist/chunks/{az-C34P9iEa.mjs → az-BOp1pgua.mjs} +0 -0
  408. /package/dist/chunks/{bg-jroXLY8Y.mjs → bg-CL9p09ZD.mjs} +0 -0
  409. /package/dist/chunks/{bn-BRI-WqxY.mjs → bn-CNmSeyAy.mjs} +0 -0
  410. /package/dist/chunks/{bs-CCGUpNHu.mjs → bs-BRzMGqzk.mjs} +0 -0
  411. /package/dist/chunks/{cs-D5qZOGuc.mjs → cs-BYPBLmnF.mjs} +0 -0
  412. /package/dist/chunks/{da-DrJ7W37K.mjs → da-CBC_LR1c.mjs} +0 -0
  413. /package/dist/chunks/{de-BW6-kp2c.mjs → de-DxRFMoAj.mjs} +0 -0
  414. /package/dist/chunks/{el-C-Vc_Otu.mjs → el-Bk6YbySf.mjs} +0 -0
  415. /package/dist/chunks/{es-B6fI5K9i.mjs → es-DpT3FCMR.mjs} +0 -0
  416. /package/dist/chunks/{et-BhVlZ-Yz.mjs → et-DE9Dr_g9.mjs} +0 -0
  417. /package/dist/chunks/{fa-D55Ijdqa.mjs → fa-Banj1QUE.mjs} +0 -0
  418. /package/dist/chunks/{fi-jNLjhKUQ.mjs → fi-DfN3M5ER.mjs} +0 -0
  419. /package/dist/chunks/{fil-DYd0T5aX.mjs → fil-DbCsRS1d.mjs} +0 -0
  420. /package/dist/chunks/{fr-yxy5xWw_.mjs → fr-D1clKhgt.mjs} +0 -0
  421. /package/dist/chunks/{gu-CcY_LJe7.mjs → gu-1CsZyRwT.mjs} +0 -0
  422. /package/dist/chunks/{he-DL9s7wNw.mjs → he-qQdnL6eK.mjs} +0 -0
  423. /package/dist/chunks/{hi-C8eGXgw5.mjs → hi-DxM0Nff1.mjs} +0 -0
  424. /package/dist/chunks/{hr-DLpybOhU.mjs → hr-Onldyi-u.mjs} +0 -0
  425. /package/dist/chunks/{hu-BkT0gT00.mjs → hu-CAn3pBuY.mjs} +0 -0
  426. /package/dist/chunks/{hy-CVFDCp2S.mjs → hy-D43q7NxE.mjs} +0 -0
  427. /package/dist/chunks/{id-0P4W9Az0.mjs → id-Xrw5Dd0Y.mjs} +0 -0
  428. /package/dist/chunks/{it-mLY6_uoW.mjs → it-CA9ZDMSc.mjs} +0 -0
  429. /package/dist/chunks/{ja-7RkeRNWG.mjs → ja-D0J6WRFh.mjs} +0 -0
  430. /package/dist/chunks/{ka-C7Lx-Qsh.mjs → ka-BZL7xDuY.mjs} +0 -0
  431. /package/dist/chunks/{km-Q8udaraH.mjs → km-BimgQZVU.mjs} +0 -0
  432. /package/dist/chunks/{kn-BiETM-iq.mjs → kn-C2n2cPHK.mjs} +0 -0
  433. /package/dist/chunks/{ko-tiB80pF1.mjs → ko-n4Cn93D3.mjs} +0 -0
  434. /package/dist/chunks/{ku-CY-OABkR.mjs → ku-BYZCgT44.mjs} +0 -0
  435. /package/dist/chunks/{lo-CTBhEnyk.mjs → lo-DVXiAE4N.mjs} +0 -0
  436. /package/dist/chunks/{lt-BHKHEtqK.mjs → lt-B9KlQFnY.mjs} +0 -0
  437. /package/dist/chunks/{lv-DWxgtfUg.mjs → lv-BINeOdyx.mjs} +0 -0
  438. /package/dist/chunks/{mk-BjookGdx.mjs → mk-_-QrPrLN.mjs} +0 -0
  439. /package/dist/chunks/{ml-L-NnZcp9.mjs → ml-KvJSC1KT.mjs} +0 -0
  440. /package/dist/chunks/{mn-OMWi7Hl_.mjs → mn-CjFjWnRG.mjs} +0 -0
  441. /package/dist/chunks/{mr-B6JPzITo.mjs → mr-DqAZ7FRX.mjs} +0 -0
  442. /package/dist/chunks/{ms-CG3S-sPB.mjs → ms-BZcV4UG_.mjs} +0 -0
  443. /package/dist/chunks/{my-BLAmGfhT.mjs → my-97SC9jYN.mjs} +0 -0
  444. /package/dist/chunks/{native-BPcABu9z.mjs → native-CzYG0YgY.mjs} +0 -0
  445. /package/dist/chunks/{ne-D1JHLfYw.mjs → ne-Bs-M2TyF.mjs} +0 -0
  446. /package/dist/chunks/{nl-Ca7Q8FnY.mjs → nl-2ZwQilo-.mjs} +0 -0
  447. /package/dist/chunks/{no-Coxcohcz.mjs → no-fOQTpFq1.mjs} +0 -0
  448. /package/dist/chunks/{pa-CCaXqpaI.mjs → pa-DLOqkMi0.mjs} +0 -0
  449. /package/dist/chunks/{pl-Cl_fAZ84.mjs → pl-FYs9QrXU.mjs} +0 -0
  450. /package/dist/chunks/{ps-WD5qGAWy.mjs → ps-CTXe6pSe.mjs} +0 -0
  451. /package/dist/chunks/{pt-C4zvLfvq.mjs → pt-B1X4x7d1.mjs} +0 -0
  452. /package/dist/chunks/{ro-DbefHcmM.mjs → ro-Bf7S2FaR.mjs} +0 -0
  453. /package/dist/chunks/{ru-uU1J14jd.mjs → ru-B8lqnu_j.mjs} +0 -0
  454. /package/dist/chunks/{sd-DKu368Ip.mjs → sd-CHRYJm2r.mjs} +0 -0
  455. /package/dist/chunks/{si-BsJCiPkZ.mjs → si-CI0Hs6vH.mjs} +0 -0
  456. /package/dist/chunks/{sk-CD-a3SN6.mjs → sk-Bdvq1Kb_.mjs} +0 -0
  457. /package/dist/chunks/{sl-CXhrPJe_.mjs → sl-B_qiFTV5.mjs} +0 -0
  458. /package/dist/chunks/{sq-CTctCoFQ.mjs → sq-E0j1hysP.mjs} +0 -0
  459. /package/dist/chunks/{sr-BZkhBwXj.mjs → sr-VPpVNTZw.mjs} +0 -0
  460. /package/dist/chunks/{sv-NmRZb_xi.mjs → sv-gKmDSR3d.mjs} +0 -0
  461. /package/dist/chunks/{sw-Be5ik3H6.mjs → sw-zeFLiO23.mjs} +0 -0
  462. /package/dist/chunks/{ta-DsXh6neL.mjs → ta-Ci-j89hR.mjs} +0 -0
  463. /package/dist/chunks/{te-CwpCbM8M.mjs → te-qyMI0M7a.mjs} +0 -0
  464. /package/dist/chunks/{th-CcZ15OLk.mjs → th-DPxHtpdb.mjs} +0 -0
  465. /package/dist/chunks/{tr-q3bTgvhW.mjs → tr-CRV6GS-G.mjs} +0 -0
  466. /package/dist/chunks/{tw-DmW6-pCY.mjs → tw-CqxBf-1Y.mjs} +0 -0
  467. /package/dist/chunks/{ug-919EhLsL.mjs → ug-DW0YFpo5.mjs} +0 -0
  468. /package/dist/chunks/{uk-aNMEzd0Y.mjs → uk-ssteuphK.mjs} +0 -0
  469. /package/dist/chunks/{ur-BwQI77sh.mjs → ur-qhY3-jY7.mjs} +0 -0
  470. /package/dist/chunks/{vi-Dxq806-F.mjs → vi-CHriMMC8.mjs} +0 -0
  471. /package/dist/chunks/{zh-BcHuy1Ti.mjs → zh-BJktawVN.mjs} +0 -0
@@ -0,0 +1,1013 @@
1
+ import { g as e, h as t } from "./src-CRgEHLPW.mjs";
2
+ import { $ as n, L as r, O as i, Q as a, b as o, d as s, tt as c, y as l } from "./chunk-ICPOFSXX-BMja8cuy.mjs";
3
+ import "./dist-DHsXIYdd.mjs";
4
+ import "./chunk-5PVQY5BW-CxUGVzQL.mjs";
5
+ import "./chunk-U2HBQHQK-DJytnHmZ.mjs";
6
+ import "./chunk-BSJP7CBP-CpUW7gi5.mjs";
7
+ import "./chunk-ZZ45TVLE-DWziaKxP.mjs";
8
+ import { t as u } from "./chunk-55IACEB6-CGkn5ABd.mjs";
9
+ import { t as d } from "./chunk-EDXVE4YY-DEcX4XWm.mjs";
10
+ import "./chunk-X2U36JSP-DlOifw1K.mjs";
11
+ import "./chunk-5FUZZQ4R-USdumo_u.mjs";
12
+ import "./chunk-ENJZ2VHE-B4THRZkR.mjs";
13
+ import { r as f, t as p } from "./chunk-336JU56O-heO72r_k.mjs";
14
+ //#region node_modules/uuid/dist/esm-browser/stringify.js
15
+ var m = [];
16
+ for (let e = 0; e < 256; ++e) m.push((e + 256).toString(16).slice(1));
17
+ function h(e, t = 0) {
18
+ return (m[e[t + 0]] + m[e[t + 1]] + m[e[t + 2]] + m[e[t + 3]] + "-" + m[e[t + 4]] + m[e[t + 5]] + "-" + m[e[t + 6]] + m[e[t + 7]] + "-" + m[e[t + 8]] + m[e[t + 9]] + "-" + m[e[t + 10]] + m[e[t + 11]] + m[e[t + 12]] + m[e[t + 13]] + m[e[t + 14]] + m[e[t + 15]]).toLowerCase();
19
+ }
20
+ //#endregion
21
+ //#region node_modules/uuid/dist/esm-browser/rng.js
22
+ var g, _ = new Uint8Array(16);
23
+ function v() {
24
+ if (!g) {
25
+ if (typeof crypto > "u" || !crypto.getRandomValues) throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
26
+ g = crypto.getRandomValues.bind(crypto);
27
+ }
28
+ return g(_);
29
+ }
30
+ var y = { randomUUID: typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto) };
31
+ //#endregion
32
+ //#region node_modules/uuid/dist/esm-browser/v4.js
33
+ function b(e, t, n) {
34
+ var r, i, a;
35
+ if (y.randomUUID && !t && !e) return y.randomUUID();
36
+ e = e || {};
37
+ let o = (r = (i = e.random) == null ? (a = e.rng) == null ? void 0 : a.call(e) : i) == null ? v() : r;
38
+ if (o.length < 16) throw Error("Random bytes length must be >= 16");
39
+ if (o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, t) {
40
+ if (n = n || 0, n < 0 || n + 16 > t.length) throw RangeError(`UUID byte range ${n}:${n + 15} is out of buffer bounds`);
41
+ for (let e = 0; e < 16; ++e) t[n + e] = o[e];
42
+ return t;
43
+ }
44
+ return h(o);
45
+ }
46
+ //#endregion
47
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-QFDTVHPH.mjs
48
+ var x, S = (function() {
49
+ var e = /* @__PURE__ */ t(function(e, t, n, r) {
50
+ for (n = n || {}, r = e.length; r--; n[e[r]] = t);
51
+ return n;
52
+ }, "o"), n = [1, 4], r = [1, 13], i = [1, 12], a = [1, 15], o = [1, 16], s = [1, 20], c = [1, 19], l = [
53
+ 6,
54
+ 7,
55
+ 8
56
+ ], u = [1, 26], d = [1, 24], f = [1, 25], p = [
57
+ 6,
58
+ 7,
59
+ 11
60
+ ], m = [
61
+ 1,
62
+ 6,
63
+ 13,
64
+ 15,
65
+ 16,
66
+ 19,
67
+ 22
68
+ ], h = [1, 33], g = [1, 34], _ = [
69
+ 1,
70
+ 6,
71
+ 7,
72
+ 11,
73
+ 13,
74
+ 15,
75
+ 16,
76
+ 19,
77
+ 22
78
+ ], v = {
79
+ trace: /* @__PURE__ */ t(function() {}, "trace"),
80
+ yy: {},
81
+ symbols_: {
82
+ error: 2,
83
+ start: 3,
84
+ mindMap: 4,
85
+ spaceLines: 5,
86
+ SPACELINE: 6,
87
+ NL: 7,
88
+ MINDMAP: 8,
89
+ document: 9,
90
+ stop: 10,
91
+ EOF: 11,
92
+ statement: 12,
93
+ SPACELIST: 13,
94
+ node: 14,
95
+ ICON: 15,
96
+ CLASS: 16,
97
+ nodeWithId: 17,
98
+ nodeWithoutId: 18,
99
+ NODE_DSTART: 19,
100
+ NODE_DESCR: 20,
101
+ NODE_DEND: 21,
102
+ NODE_ID: 22,
103
+ $accept: 0,
104
+ $end: 1
105
+ },
106
+ terminals_: {
107
+ 2: "error",
108
+ 6: "SPACELINE",
109
+ 7: "NL",
110
+ 8: "MINDMAP",
111
+ 11: "EOF",
112
+ 13: "SPACELIST",
113
+ 15: "ICON",
114
+ 16: "CLASS",
115
+ 19: "NODE_DSTART",
116
+ 20: "NODE_DESCR",
117
+ 21: "NODE_DEND",
118
+ 22: "NODE_ID"
119
+ },
120
+ productions_: [
121
+ 0,
122
+ [3, 1],
123
+ [3, 2],
124
+ [5, 1],
125
+ [5, 2],
126
+ [5, 2],
127
+ [4, 2],
128
+ [4, 3],
129
+ [10, 1],
130
+ [10, 1],
131
+ [10, 1],
132
+ [10, 2],
133
+ [10, 2],
134
+ [9, 3],
135
+ [9, 2],
136
+ [12, 2],
137
+ [12, 2],
138
+ [12, 2],
139
+ [12, 1],
140
+ [12, 1],
141
+ [12, 1],
142
+ [12, 1],
143
+ [12, 1],
144
+ [14, 1],
145
+ [14, 1],
146
+ [18, 3],
147
+ [17, 1],
148
+ [17, 4]
149
+ ],
150
+ performAction: /* @__PURE__ */ t(function(e, t, n, r, i, a, o) {
151
+ var s = a.length - 1;
152
+ switch (i) {
153
+ case 6:
154
+ case 7: return r;
155
+ case 8:
156
+ r.getLogger().trace("Stop NL ");
157
+ break;
158
+ case 9:
159
+ r.getLogger().trace("Stop EOF ");
160
+ break;
161
+ case 11:
162
+ r.getLogger().trace("Stop NL2 ");
163
+ break;
164
+ case 12:
165
+ r.getLogger().trace("Stop EOF2 ");
166
+ break;
167
+ case 15:
168
+ r.getLogger().info("Node: ", a[s].id), r.addNode(a[s - 1].length, a[s].id, a[s].descr, a[s].type);
169
+ break;
170
+ case 16:
171
+ r.getLogger().trace("Icon: ", a[s]), r.decorateNode({ icon: a[s] });
172
+ break;
173
+ case 17:
174
+ case 21:
175
+ r.decorateNode({ class: a[s] });
176
+ break;
177
+ case 18:
178
+ r.getLogger().trace("SPACELIST");
179
+ break;
180
+ case 19:
181
+ r.getLogger().trace("Node: ", a[s].id), r.addNode(0, a[s].id, a[s].descr, a[s].type);
182
+ break;
183
+ case 20:
184
+ r.decorateNode({ icon: a[s] });
185
+ break;
186
+ case 25:
187
+ r.getLogger().trace("node found ..", a[s - 2]), this.$ = {
188
+ id: a[s - 1],
189
+ descr: a[s - 1],
190
+ type: r.getType(a[s - 2], a[s])
191
+ };
192
+ break;
193
+ case 26:
194
+ this.$ = {
195
+ id: a[s],
196
+ descr: a[s],
197
+ type: r.nodeType.DEFAULT
198
+ };
199
+ break;
200
+ case 27:
201
+ r.getLogger().trace("node found ..", a[s - 3]), this.$ = {
202
+ id: a[s - 3],
203
+ descr: a[s - 1],
204
+ type: r.getType(a[s - 2], a[s])
205
+ };
206
+ break;
207
+ }
208
+ }, "anonymous"),
209
+ table: [
210
+ {
211
+ 3: 1,
212
+ 4: 2,
213
+ 5: 3,
214
+ 6: [1, 5],
215
+ 8: n
216
+ },
217
+ { 1: [3] },
218
+ { 1: [2, 1] },
219
+ {
220
+ 4: 6,
221
+ 6: [1, 7],
222
+ 7: [1, 8],
223
+ 8: n
224
+ },
225
+ {
226
+ 6: r,
227
+ 7: [1, 10],
228
+ 9: 9,
229
+ 12: 11,
230
+ 13: i,
231
+ 14: 14,
232
+ 15: a,
233
+ 16: o,
234
+ 17: 17,
235
+ 18: 18,
236
+ 19: s,
237
+ 22: c
238
+ },
239
+ e(l, [2, 3]),
240
+ { 1: [2, 2] },
241
+ e(l, [2, 4]),
242
+ e(l, [2, 5]),
243
+ {
244
+ 1: [2, 6],
245
+ 6: r,
246
+ 12: 21,
247
+ 13: i,
248
+ 14: 14,
249
+ 15: a,
250
+ 16: o,
251
+ 17: 17,
252
+ 18: 18,
253
+ 19: s,
254
+ 22: c
255
+ },
256
+ {
257
+ 6: r,
258
+ 9: 22,
259
+ 12: 11,
260
+ 13: i,
261
+ 14: 14,
262
+ 15: a,
263
+ 16: o,
264
+ 17: 17,
265
+ 18: 18,
266
+ 19: s,
267
+ 22: c
268
+ },
269
+ {
270
+ 6: u,
271
+ 7: d,
272
+ 10: 23,
273
+ 11: f
274
+ },
275
+ e(p, [2, 22], {
276
+ 17: 17,
277
+ 18: 18,
278
+ 14: 27,
279
+ 15: [1, 28],
280
+ 16: [1, 29],
281
+ 19: s,
282
+ 22: c
283
+ }),
284
+ e(p, [2, 18]),
285
+ e(p, [2, 19]),
286
+ e(p, [2, 20]),
287
+ e(p, [2, 21]),
288
+ e(p, [2, 23]),
289
+ e(p, [2, 24]),
290
+ e(p, [2, 26], { 19: [1, 30] }),
291
+ { 20: [1, 31] },
292
+ {
293
+ 6: u,
294
+ 7: d,
295
+ 10: 32,
296
+ 11: f
297
+ },
298
+ {
299
+ 1: [2, 7],
300
+ 6: r,
301
+ 12: 21,
302
+ 13: i,
303
+ 14: 14,
304
+ 15: a,
305
+ 16: o,
306
+ 17: 17,
307
+ 18: 18,
308
+ 19: s,
309
+ 22: c
310
+ },
311
+ e(m, [2, 14], {
312
+ 7: h,
313
+ 11: g
314
+ }),
315
+ e(_, [2, 8]),
316
+ e(_, [2, 9]),
317
+ e(_, [2, 10]),
318
+ e(p, [2, 15]),
319
+ e(p, [2, 16]),
320
+ e(p, [2, 17]),
321
+ { 20: [1, 35] },
322
+ { 21: [1, 36] },
323
+ e(m, [2, 13], {
324
+ 7: h,
325
+ 11: g
326
+ }),
327
+ e(_, [2, 11]),
328
+ e(_, [2, 12]),
329
+ { 21: [1, 37] },
330
+ e(p, [2, 25]),
331
+ e(p, [2, 27])
332
+ ],
333
+ defaultActions: {
334
+ 2: [2, 1],
335
+ 6: [2, 2]
336
+ },
337
+ parseError: /* @__PURE__ */ t(function(e, t) {
338
+ if (t.recoverable) this.trace(e);
339
+ else {
340
+ var n = Error(e);
341
+ throw n.hash = t, n;
342
+ }
343
+ }, "parseError"),
344
+ parse: /* @__PURE__ */ t(function(e) {
345
+ 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: {} };
346
+ for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
347
+ h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
348
+ var v = h.yylloc;
349
+ o.push(v);
350
+ var y = h.options && h.options.ranges;
351
+ typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
352
+ function b(e) {
353
+ r.length -= 2 * e, a.length -= e, o.length -= e;
354
+ }
355
+ t(b, "popStack");
356
+ function x() {
357
+ var e = i.pop() || h.lex() || p;
358
+ return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
359
+ }
360
+ t(x, "lex");
361
+ for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
362
+ 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]) {
363
+ var M = "";
364
+ for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
365
+ 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, {
366
+ text: h.match,
367
+ token: this.terminals_[S] || S,
368
+ line: h.yylineno,
369
+ loc: v,
370
+ expected: j
371
+ });
372
+ }
373
+ if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
374
+ switch (T[0]) {
375
+ case 1:
376
+ 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--);
377
+ break;
378
+ case 2:
379
+ if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
380
+ first_line: o[o.length - (k || 1)].first_line,
381
+ last_line: o[o.length - 1].last_line,
382
+ first_column: o[o.length - (k || 1)].first_column,
383
+ last_column: o[o.length - 1].last_column
384
+ }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
385
+ c,
386
+ u,
387
+ l,
388
+ g.yy,
389
+ T[1],
390
+ a,
391
+ o
392
+ ].concat(m)), E !== void 0) return E;
393
+ 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);
394
+ break;
395
+ case 3: return !0;
396
+ }
397
+ }
398
+ return !0;
399
+ }, "parse")
400
+ };
401
+ v.lexer = /* @__PURE__ */ (function() {
402
+ return {
403
+ EOF: 1,
404
+ parseError: /* @__PURE__ */ t(function(e, t) {
405
+ if (this.yy.parser) this.yy.parser.parseError(e, t);
406
+ else throw Error(e);
407
+ }, "parseError"),
408
+ setInput: /* @__PURE__ */ t(function(e, t) {
409
+ 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 = {
410
+ first_line: 1,
411
+ first_column: 0,
412
+ last_line: 1,
413
+ last_column: 0
414
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
415
+ }, "setInput"),
416
+ input: /* @__PURE__ */ t(function() {
417
+ var e = this._input[0];
418
+ 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;
419
+ }, "input"),
420
+ unput: /* @__PURE__ */ t(function(e) {
421
+ var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
422
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
423
+ var r = this.match.split(/(?:\r\n?|\n)/g);
424
+ 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);
425
+ var i = this.yylloc.range;
426
+ return this.yylloc = {
427
+ first_line: this.yylloc.first_line,
428
+ last_line: this.yylineno + 1,
429
+ first_column: this.yylloc.first_column,
430
+ 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
431
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
432
+ }, "unput"),
433
+ more: /* @__PURE__ */ t(function() {
434
+ return this._more = !0, this;
435
+ }, "more"),
436
+ reject: /* @__PURE__ */ t(function() {
437
+ if (this.options.backtrack_lexer) this._backtrack = !0;
438
+ 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(), {
439
+ text: "",
440
+ token: null,
441
+ line: this.yylineno
442
+ });
443
+ return this;
444
+ }, "reject"),
445
+ less: /* @__PURE__ */ t(function(e) {
446
+ this.unput(this.match.slice(e));
447
+ }, "less"),
448
+ pastInput: /* @__PURE__ */ t(function() {
449
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
450
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
451
+ }, "pastInput"),
452
+ upcomingInput: /* @__PURE__ */ t(function() {
453
+ var e = this.match;
454
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
455
+ }, "upcomingInput"),
456
+ showPosition: /* @__PURE__ */ t(function() {
457
+ var e = this.pastInput(), t = Array(e.length + 1).join("-");
458
+ return e + this.upcomingInput() + "\n" + t + "^";
459
+ }, "showPosition"),
460
+ test_match: /* @__PURE__ */ t(function(e, t) {
461
+ var n, r, i;
462
+ if (this.options.backtrack_lexer && (i = {
463
+ yylineno: this.yylineno,
464
+ yylloc: {
465
+ first_line: this.yylloc.first_line,
466
+ last_line: this.last_line,
467
+ first_column: this.yylloc.first_column,
468
+ last_column: this.yylloc.last_column
469
+ },
470
+ yytext: this.yytext,
471
+ match: this.match,
472
+ matches: this.matches,
473
+ matched: this.matched,
474
+ yyleng: this.yyleng,
475
+ offset: this.offset,
476
+ _more: this._more,
477
+ _input: this._input,
478
+ yy: this.yy,
479
+ conditionStack: this.conditionStack.slice(0),
480
+ done: this.done
481
+ }, 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 = {
482
+ first_line: this.yylloc.last_line,
483
+ last_line: this.yylineno + 1,
484
+ first_column: this.yylloc.last_column,
485
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
486
+ }, 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;
487
+ if (this._backtrack) {
488
+ for (var a in i) this[a] = i[a];
489
+ return !1;
490
+ }
491
+ return !1;
492
+ }, "test_match"),
493
+ next: /* @__PURE__ */ t(function() {
494
+ if (this.done) return this.EOF;
495
+ this._input || (this.done = !0);
496
+ var e, t, n, r;
497
+ this._more || (this.yytext = "", this.match = "");
498
+ 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)) {
499
+ if (t = n, r = a, this.options.backtrack_lexer) {
500
+ if (e = this.test_match(n, i[a]), e !== !1) return e;
501
+ if (this._backtrack) {
502
+ t = !1;
503
+ continue;
504
+ } else return !1;
505
+ } else if (!this.options.flex) break;
506
+ }
507
+ 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(), {
508
+ text: "",
509
+ token: null,
510
+ line: this.yylineno
511
+ });
512
+ }, "next"),
513
+ lex: /* @__PURE__ */ t(function() {
514
+ return this.next() || this.lex();
515
+ }, "lex"),
516
+ begin: /* @__PURE__ */ t(function(e) {
517
+ this.conditionStack.push(e);
518
+ }, "begin"),
519
+ popState: /* @__PURE__ */ t(function() {
520
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
521
+ }, "popState"),
522
+ _currentRules: /* @__PURE__ */ t(function() {
523
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
524
+ }, "_currentRules"),
525
+ topState: /* @__PURE__ */ t(function(e) {
526
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
527
+ }, "topState"),
528
+ pushState: /* @__PURE__ */ t(function(e) {
529
+ this.begin(e);
530
+ }, "pushState"),
531
+ stateStackSize: /* @__PURE__ */ t(function() {
532
+ return this.conditionStack.length;
533
+ }, "stateStackSize"),
534
+ options: { "case-insensitive": !0 },
535
+ performAction: /* @__PURE__ */ t(function(e, t, n, r) {
536
+ switch (n) {
537
+ case 0: return e.getLogger().trace("Found comment", t.yytext), 6;
538
+ case 1: return 8;
539
+ case 2:
540
+ this.begin("CLASS");
541
+ break;
542
+ case 3: return this.popState(), 16;
543
+ case 4:
544
+ this.popState();
545
+ break;
546
+ case 5:
547
+ e.getLogger().trace("Begin icon"), this.begin("ICON");
548
+ break;
549
+ case 6: return e.getLogger().trace("SPACELINE"), 6;
550
+ case 7: return 7;
551
+ case 8: return 15;
552
+ case 9:
553
+ e.getLogger().trace("end icon"), this.popState();
554
+ break;
555
+ case 10: return e.getLogger().trace("Exploding node"), this.begin("NODE"), 19;
556
+ case 11: return e.getLogger().trace("Cloud"), this.begin("NODE"), 19;
557
+ case 12: return e.getLogger().trace("Explosion Bang"), this.begin("NODE"), 19;
558
+ case 13: return e.getLogger().trace("Cloud Bang"), this.begin("NODE"), 19;
559
+ case 14: return this.begin("NODE"), 19;
560
+ case 15: return this.begin("NODE"), 19;
561
+ case 16: return this.begin("NODE"), 19;
562
+ case 17: return this.begin("NODE"), 19;
563
+ case 18: return 13;
564
+ case 19: return 22;
565
+ case 20: return 11;
566
+ case 21:
567
+ this.begin("NSTR2");
568
+ break;
569
+ case 22: return "NODE_DESCR";
570
+ case 23:
571
+ this.popState();
572
+ break;
573
+ case 24:
574
+ e.getLogger().trace("Starting NSTR"), this.begin("NSTR");
575
+ break;
576
+ case 25: return e.getLogger().trace("description:", t.yytext), "NODE_DESCR";
577
+ case 26:
578
+ this.popState();
579
+ break;
580
+ case 27: return this.popState(), e.getLogger().trace("node end ))"), "NODE_DEND";
581
+ case 28: return this.popState(), e.getLogger().trace("node end )"), "NODE_DEND";
582
+ case 29: return this.popState(), e.getLogger().trace("node end ...", t.yytext), "NODE_DEND";
583
+ case 30: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
584
+ case 31: return this.popState(), e.getLogger().trace("node end (-"), "NODE_DEND";
585
+ case 32: return this.popState(), e.getLogger().trace("node end (-"), "NODE_DEND";
586
+ case 33: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
587
+ case 34: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
588
+ case 35: return e.getLogger().trace("Long description:", t.yytext), 20;
589
+ case 36: return e.getLogger().trace("Long description:", t.yytext), 20;
590
+ }
591
+ }, "anonymous"),
592
+ rules: [
593
+ /^(?:\s*%%.*)/i,
594
+ /^(?:mindmap\b)/i,
595
+ /^(?::::)/i,
596
+ /^(?:.+)/i,
597
+ /^(?:\n)/i,
598
+ /^(?:::icon\()/i,
599
+ /^(?:[\s]+[\n])/i,
600
+ /^(?:[\n]+)/i,
601
+ /^(?:[^\)]+)/i,
602
+ /^(?:\))/i,
603
+ /^(?:-\))/i,
604
+ /^(?:\(-)/i,
605
+ /^(?:\)\))/i,
606
+ /^(?:\))/i,
607
+ /^(?:\(\()/i,
608
+ /^(?:\{\{)/i,
609
+ /^(?:\()/i,
610
+ /^(?:\[)/i,
611
+ /^(?:[\s]+)/i,
612
+ /^(?:[^\(\[\n\)\{\}]+)/i,
613
+ /^(?:$)/i,
614
+ /^(?:["][`])/i,
615
+ /^(?:[^`"]+)/i,
616
+ /^(?:[`]["])/i,
617
+ /^(?:["])/i,
618
+ /^(?:[^"]+)/i,
619
+ /^(?:["])/i,
620
+ /^(?:[\)]\))/i,
621
+ /^(?:[\)])/i,
622
+ /^(?:[\]])/i,
623
+ /^(?:\}\})/i,
624
+ /^(?:\(-)/i,
625
+ /^(?:-\))/i,
626
+ /^(?:\(\()/i,
627
+ /^(?:\()/i,
628
+ /^(?:[^\)\]\(\}]+)/i,
629
+ /^(?:.+(?!\(\())/i
630
+ ],
631
+ conditions: {
632
+ CLASS: {
633
+ rules: [3, 4],
634
+ inclusive: !1
635
+ },
636
+ ICON: {
637
+ rules: [8, 9],
638
+ inclusive: !1
639
+ },
640
+ NSTR2: {
641
+ rules: [22, 23],
642
+ inclusive: !1
643
+ },
644
+ NSTR: {
645
+ rules: [25, 26],
646
+ inclusive: !1
647
+ },
648
+ NODE: {
649
+ rules: [
650
+ 21,
651
+ 24,
652
+ 27,
653
+ 28,
654
+ 29,
655
+ 30,
656
+ 31,
657
+ 32,
658
+ 33,
659
+ 34,
660
+ 35,
661
+ 36
662
+ ],
663
+ inclusive: !1
664
+ },
665
+ INITIAL: {
666
+ rules: [
667
+ 0,
668
+ 1,
669
+ 2,
670
+ 5,
671
+ 6,
672
+ 7,
673
+ 10,
674
+ 11,
675
+ 12,
676
+ 13,
677
+ 14,
678
+ 15,
679
+ 16,
680
+ 17,
681
+ 18,
682
+ 19,
683
+ 20
684
+ ],
685
+ inclusive: !0
686
+ }
687
+ }
688
+ };
689
+ })();
690
+ function y() {
691
+ this.yy = {};
692
+ }
693
+ return t(y, "Parser"), y.prototype = v, v.Parser = y, new y();
694
+ })();
695
+ S.parser = S;
696
+ var C = S, w = 12, T = {
697
+ DEFAULT: 0,
698
+ NO_BORDER: 0,
699
+ ROUNDED_RECT: 1,
700
+ RECT: 2,
701
+ CIRCLE: 3,
702
+ CLOUD: 4,
703
+ BANG: 5,
704
+ HEXAGON: 6
705
+ }, E = (x = class {
706
+ constructor() {
707
+ this.nodes = [], this.count = 0, this.elements = {}, this.getLogger = this.getLogger.bind(this), this.nodeType = T, this.clear(), this.getType = this.getType.bind(this), this.getElementById = this.getElementById.bind(this), this.getParent = this.getParent.bind(this), this.getMindmap = this.getMindmap.bind(this), this.addNode = this.addNode.bind(this), this.decorateNode = this.decorateNode.bind(this);
708
+ }
709
+ clear() {
710
+ this.nodes = [], this.count = 0, this.elements = {}, this.baseLevel = void 0;
711
+ }
712
+ getParent(e) {
713
+ for (let t = this.nodes.length - 1; t >= 0; t--) if (this.nodes[t].level < e) return this.nodes[t];
714
+ return null;
715
+ }
716
+ getMindmap() {
717
+ return this.nodes.length > 0 ? this.nodes[0] : null;
718
+ }
719
+ addNode(t, n, i, a) {
720
+ var c, l, u, d;
721
+ e.info("addNode", t, n, i, a);
722
+ let f = !1;
723
+ this.nodes.length === 0 ? (this.baseLevel = t, t = 0, f = !0) : this.baseLevel !== void 0 && (t -= this.baseLevel, f = !1);
724
+ let p = o(), m = (c = (l = p.mindmap) == null ? void 0 : l.padding) == null ? s.mindmap.padding : c;
725
+ switch (a) {
726
+ case this.nodeType.ROUNDED_RECT:
727
+ case this.nodeType.RECT:
728
+ case this.nodeType.HEXAGON:
729
+ m *= 2;
730
+ break;
731
+ }
732
+ let h = {
733
+ id: this.count++,
734
+ nodeId: r(n, p),
735
+ level: t,
736
+ descr: r(i, p),
737
+ type: a,
738
+ children: [],
739
+ width: (u = (d = p.mindmap) == null ? void 0 : d.maxNodeWidth) == null ? s.mindmap.maxNodeWidth : u,
740
+ padding: m,
741
+ isRoot: f
742
+ }, g = this.getParent(t);
743
+ if (g) g.children.push(h), this.nodes.push(h);
744
+ else if (f) this.nodes.push(h);
745
+ else throw Error(`There can be only one root. No parent could be found for ("${h.descr}")`);
746
+ }
747
+ getType(t, n) {
748
+ switch (e.debug("In get type", t, n), t) {
749
+ case "[": return this.nodeType.RECT;
750
+ case "(": return n === ")" ? this.nodeType.ROUNDED_RECT : this.nodeType.CLOUD;
751
+ case "((": return this.nodeType.CIRCLE;
752
+ case ")": return this.nodeType.CLOUD;
753
+ case "))": return this.nodeType.BANG;
754
+ case "{{": return this.nodeType.HEXAGON;
755
+ default: return this.nodeType.DEFAULT;
756
+ }
757
+ }
758
+ setElementForId(e, t) {
759
+ this.elements[e] = t;
760
+ }
761
+ getElementById(e) {
762
+ return this.elements[e];
763
+ }
764
+ decorateNode(e) {
765
+ if (!e) return;
766
+ let t = o(), n = this.nodes[this.nodes.length - 1];
767
+ e.icon && (n.icon = r(e.icon, t)), e.class && (n.class = r(e.class, t));
768
+ }
769
+ type2Str(e) {
770
+ switch (e) {
771
+ case this.nodeType.DEFAULT: return "no-border";
772
+ case this.nodeType.RECT: return "rect";
773
+ case this.nodeType.ROUNDED_RECT: return "rounded-rect";
774
+ case this.nodeType.CIRCLE: return "circle";
775
+ case this.nodeType.CLOUD: return "cloud";
776
+ case this.nodeType.BANG: return "bang";
777
+ case this.nodeType.HEXAGON: return "hexgon";
778
+ default: return "no-border";
779
+ }
780
+ }
781
+ assignSections(e, t) {
782
+ if (e.level === 0 ? e.section = void 0 : e.section = t, e.children) for (let [n, r] of e.children.entries()) {
783
+ let i = e.level === 0 ? n % (w - 1) : t;
784
+ this.assignSections(r, i);
785
+ }
786
+ }
787
+ flattenNodes(e, n) {
788
+ var r;
789
+ let i = o(), a = ["mindmap-node"];
790
+ e.isRoot === !0 ? a.push("section-root", "section--1") : e.section !== void 0 && a.push(`section-${e.section}`), e.class && a.push(e.class);
791
+ let s = a.join(" "), c = /* @__PURE__ */ t((e) => {
792
+ var t, n;
793
+ let r = ((t = (n = i.theme) == null ? void 0 : n.toLowerCase()) == null ? "" : t).includes("redux");
794
+ switch (e) {
795
+ case T.CIRCLE: return "mindmapCircle";
796
+ case T.RECT: return "rect";
797
+ case T.ROUNDED_RECT: return "rounded";
798
+ case T.CLOUD: return "cloud";
799
+ case T.BANG: return "bang";
800
+ case T.HEXAGON: return "hexagon";
801
+ case T.DEFAULT: return r ? "rounded" : "defaultMindmapNode";
802
+ case T.NO_BORDER:
803
+ default: return "rect";
804
+ }
805
+ }, "getShapeFromType"), l = {
806
+ id: e.id.toString(),
807
+ domId: "node_" + e.id.toString(),
808
+ label: e.descr,
809
+ labelType: "markdown",
810
+ isGroup: !1,
811
+ shape: c(e.type),
812
+ width: e.width,
813
+ height: (r = e.height) == null ? 0 : r,
814
+ padding: e.padding,
815
+ cssClasses: s,
816
+ cssStyles: [],
817
+ look: i.look,
818
+ icon: e.icon,
819
+ x: e.x,
820
+ y: e.y,
821
+ level: e.level,
822
+ nodeId: e.nodeId,
823
+ type: e.type,
824
+ section: e.section
825
+ };
826
+ if (n.push(l), e.children) for (let t of e.children) this.flattenNodes(t, n);
827
+ }
828
+ generateEdges(e, t) {
829
+ if (!e.children) return;
830
+ let n = o();
831
+ for (let r of e.children) {
832
+ let i = "edge";
833
+ r.section !== void 0 && (i += ` section-edge-${r.section}`);
834
+ let a = e.level + 1;
835
+ i += ` edge-depth-${a}`;
836
+ let o = {
837
+ id: `edge_${e.id}_${r.id}`,
838
+ start: e.id.toString(),
839
+ end: r.id.toString(),
840
+ type: "normal",
841
+ curve: "basis",
842
+ thickness: "normal",
843
+ look: n.look,
844
+ classes: i,
845
+ depth: e.level,
846
+ section: r.section
847
+ };
848
+ t.push(o), this.generateEdges(r, t);
849
+ }
850
+ }
851
+ getData() {
852
+ let t = this.getMindmap(), n = o(), r = i().layout !== void 0, a = n;
853
+ if (r || (a.layout = "cose-bilkent"), !t) return {
854
+ nodes: [],
855
+ edges: [],
856
+ config: a
857
+ };
858
+ e.debug("getData: mindmapRoot", t, n), this.assignSections(t);
859
+ let s = [], c = [];
860
+ this.flattenNodes(t, s), this.generateEdges(t, c), e.debug(`getData: processed ${s.length} nodes and ${c.length} edges`);
861
+ let l = /* @__PURE__ */ new Map();
862
+ for (let e of s) l.set(e.id, {
863
+ shape: e.shape,
864
+ width: e.width,
865
+ height: e.height,
866
+ padding: e.padding
867
+ });
868
+ return {
869
+ nodes: s,
870
+ edges: c,
871
+ config: a,
872
+ rootNode: t,
873
+ markers: ["point"],
874
+ direction: "TB",
875
+ nodeSpacing: 50,
876
+ rankSpacing: 50,
877
+ shapes: Object.fromEntries(l),
878
+ type: "mindmap",
879
+ diagramId: "mindmap-" + b()
880
+ };
881
+ }
882
+ getLogger() {
883
+ return e;
884
+ }
885
+ }, t(x, "MindmapDB"), x), D = { draw: /* @__PURE__ */ t(async (t, n, r, i) => {
886
+ var a, o, c, m;
887
+ e.debug("Rendering mindmap diagram\n" + t);
888
+ let h = i.db, g = h.getData(), _ = u(n, g.config.securityLevel);
889
+ if (g.type = i.type, g.layoutAlgorithm = p(g.config.layout, { fallback: "cose-bilkent" }), g.diagramId = n, !h.getMindmap()) return;
890
+ g.nodes.forEach((e) => {
891
+ e.shape === "rounded" ? (e.radius = 15, e.taper = 15, e.stroke = "none", e.width = 0, e.padding = 15) : e.shape === "circle" ? e.padding = 10 : e.shape === "rect" ? (e.width = 0, e.padding = 10) : e.shape === "hexagon" && (e.width = 0, e.height = 0);
892
+ }), await f(g, _);
893
+ let { themeVariables: v } = l(), { useGradient: y, gradientStart: b, gradientStop: x } = v;
894
+ if (y && b && x) {
895
+ let e = _.attr("id"), t = _.append("defs").append("linearGradient").attr("id", `${e}-gradient`).attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
896
+ t.append("stop").attr("offset", "0%").attr("stop-color", b).attr("stop-opacity", 1), t.append("stop").attr("offset", "100%").attr("stop-color", x).attr("stop-opacity", 1);
897
+ }
898
+ d(_, (a = (o = g.config.mindmap) == null ? void 0 : o.padding) == null ? s.mindmap.padding : a, "mindmapDiagram", (c = (m = g.config.mindmap) == null ? void 0 : m.useMaxWidth) == null ? s.mindmap.useMaxWidth : c);
899
+ }, "draw") }, O = /* @__PURE__ */ t((e) => {
900
+ let { theme: t, look: r } = e, i = "";
901
+ for (let t = 0; t < e.THEME_COLOR_LIMIT; t++) e["lineColor" + t] = e["lineColor" + t] || e["cScaleInv" + t], c(e["lineColor" + t]) ? e["lineColor" + t] = n(e["lineColor" + t], 20) : e["lineColor" + t] = a(e["lineColor" + t], 20);
902
+ for (let n = 0; n < e.THEME_COLOR_LIMIT; n++) {
903
+ var o;
904
+ let a = "" + (r === "neo" ? Math.max(10 - (n - 1) * 2, 2) : 17 - 3 * n);
905
+ i += `
906
+ .section-${n - 1} rect, .section-${n - 1} path, .section-${n - 1} circle, .section-${n - 1} polygon, .section-${n - 1} path {
907
+ fill: ${e["cScale" + n]};
908
+ }
909
+ .section-${n - 1} text {
910
+ fill: ${e["cScaleLabel" + n]};
911
+ }
912
+ .section-${n - 1} span {
913
+ color: ${e["cScaleLabel" + n]};
914
+ }
915
+ .node-icon-${n - 1} {
916
+ font-size: 40px;
917
+ color: ${e["cScaleLabel" + n]};
918
+ }
919
+ .section-edge-${n - 1}{
920
+ stroke: ${e["cScale" + n]};
921
+ }
922
+ .edge-depth-${n - 1}{
923
+ stroke-width: ${a};
924
+ }
925
+ .section-${n - 1} line {
926
+ stroke: ${e["cScaleInv" + n]} ;
927
+ stroke-width: 3;
928
+ }
929
+
930
+ .disabled, .disabled circle, .disabled text {
931
+ fill: lightgray;
932
+ }
933
+ .disabled text {
934
+ fill: #efefef;
935
+ }
936
+ [data-look="neo"].mindmap-node.section-${n - 1} rect, [data-look="neo"].mindmap-node.section-${n - 1} path, [data-look="neo"].mindmap-node.section-${n - 1} circle, [data-look="neo"].mindmap-node.section-${n - 1} polygon {
937
+ fill: ${t === "redux" || t === "redux-dark" || t === "neutral" ? e.mainBkg : e["cScale" + n]};
938
+ stroke: ${t === "redux" || t === "redux-dark" ? e.nodeBorder : e["cScale" + n]};
939
+ stroke-width: ${(o = e.strokeWidth) == null ? 2 : o}px;
940
+ }
941
+ [data-look="neo"].section-edge-${n - 1}{
942
+ stroke: ${t != null && t.includes("redux") || t === "neo-dark" ? e.nodeBorder : e["cScale" + n]};
943
+ }
944
+ [data-look="neo"].mindmap-node.section-${n - 1} text {
945
+ fill: ${t === "redux" || t === "redux-dark" ? e.nodeBorder : e["cScaleLabel" + (t === "neutral" ? 1 : n)]};
946
+ }
947
+ `;
948
+ }
949
+ return i;
950
+ }, "genSections"), k = /* @__PURE__ */ t((e, t, n) => {
951
+ let r = "";
952
+ for (let i = 0; i < e; i++) r += `
953
+ [data-look="neo"].mindmap-node.section-${i - 1} rect, [data-look="neo"].mindmap-node.section-${i - 1} path, [data-look="neo"].mindmap-node.section-${i - 1} circle, [data-look="neo"].mindmap-node.section-${i - 1} polygon {
954
+ stroke: url(${t}-gradient);
955
+ fill: ${n};
956
+ }
957
+ .section-${i - 1} line {
958
+ stroke-width: 0;
959
+ }`;
960
+ return r;
961
+ }, "genGradient"), A = {
962
+ get db() {
963
+ return new E();
964
+ },
965
+ renderer: D,
966
+ parser: C,
967
+ styles: /* @__PURE__ */ t((e) => {
968
+ let { theme: t } = e, n = e.svgId, r = e.dropShadow ? e.dropShadow.replace("url(#drop-shadow)", `url(${n}-drop-shadow)`) : "none";
969
+ return `
970
+ .edge {
971
+ stroke-width: 3;
972
+ }
973
+ ${O(e)}
974
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
975
+ fill: ${e.git0};
976
+ }
977
+ .section-root text {
978
+ fill: ${e.gitBranchLabel0};
979
+ }
980
+ .section-root span {
981
+ color: ${t != null && t.includes("redux") ? e.nodeBorder : e.gitBranchLabel0};
982
+ }
983
+ .icon-container {
984
+ height:100%;
985
+ display: flex;
986
+ justify-content: center;
987
+ align-items: center;
988
+ }
989
+ .edge {
990
+ fill: none;
991
+ }
992
+ .mindmap-node-label {
993
+ dy: 1em;
994
+ alignment-baseline: middle;
995
+ text-anchor: middle;
996
+ dominant-baseline: middle;
997
+ text-align: center;
998
+ }
999
+ [data-look="neo"].mindmap-node {
1000
+ filter: ${r};
1001
+ }
1002
+ [data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon {
1003
+ fill: ${t != null && t.includes("redux") ? e.mainBkg : e.git0};
1004
+ }
1005
+ [data-look="neo"].mindmap-node.section-root .text-inner-tspan {
1006
+ fill: ${t != null && t.includes("redux") ? e.nodeBorder : e["cScaleLabel" + (t === "neutral" ? 1 : 0)]};
1007
+ }
1008
+ ${e.useGradient && n && e.mainBkg ? k(e.THEME_COLOR_LIMIT, n, e.mainBkg) : ""}
1009
+ `;
1010
+ }, "getStyles")
1011
+ };
1012
+ //#endregion
1013
+ export { A as diagram };