@pi-outpost/embed 0.32.4 → 0.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (234) hide show
  1. package/dist/{abnfDiagram-VCTEODGH-SjZtzoAs.cjs → abnfDiagram-YUKMZFIV-CgM8_qF6.cjs} +1 -1
  2. package/dist/{abnfDiagram-VCTEODGH-BX4P82Y6.js → abnfDiagram-YUKMZFIV-dNHR2FX4.js} +5 -5
  3. package/dist/architecture-WOLXFQ4H-DupyKILn.cjs +1 -0
  4. package/dist/architecture-WOLXFQ4H-X4ZWxzi-.js +3 -0
  5. package/dist/{architectureDiagram-5GKGNRK7-BRdxCCja.js → architectureDiagram-47P4ROYG-C_rUoWaO.js} +31 -31
  6. package/dist/{architectureDiagram-5GKGNRK7-wrDPdf3y.cjs → architectureDiagram-47P4ROYG-bflaQP1L.cjs} +3 -3
  7. package/dist/{blockDiagram-OSKFZWR5-Boo8WJyt.cjs → blockDiagram-E7TT5TSB-BKw9FE2U.cjs} +19 -8
  8. package/dist/{blockDiagram-OSKFZWR5-B1pU8Z2f.js → blockDiagram-E7TT5TSB-CEa2A5E9.js} +217 -193
  9. package/dist/c4Diagram-CRA5TL53-C-PuMGA5.cjs +38 -0
  10. package/dist/{c4Diagram-7LVT6UL2-WfERxhw2.js → c4Diagram-CRA5TL53-CtJh9DsO.js} +283 -273
  11. package/dist/channel-BjC1TKrU.cjs +1 -0
  12. package/dist/{channel-Cf_XiG-0.js → channel-DCXZw5aW.js} +1 -1
  13. package/dist/{chunk-OSK3NFVY-BUXOUgUl.js → chunk-2BW5OAIV-DWtmlmt_.js} +178 -154
  14. package/dist/chunk-2BW5OAIV-FkhgcL6B.cjs +10 -0
  15. package/dist/{chunk-75Z2AOVW-DoA8rENV.js → chunk-3YJQHVM4-BNbfg-7y.js} +235 -231
  16. package/dist/chunk-3YJQHVM4-ChvNe1M8.cjs +2 -0
  17. package/dist/chunk-4EA7E6EY-3OELTJ93.cjs +1 -0
  18. package/dist/{chunk-P2QGCYS3-BoMkrMIF.js → chunk-4EA7E6EY-B5P7n2an.js} +6 -6
  19. package/dist/{chunk-F27PBJKO-s9M3oGHp.js → chunk-7TKQ45FW-CD1KuemG.js} +2 -2
  20. package/dist/{chunk-F27PBJKO-3UPgzIlN.cjs → chunk-7TKQ45FW-Djscho_M.cjs} +1 -1
  21. package/dist/{chunk-SVP7TREG-CTKSOFlx.cjs → chunk-AW2ZBBNX-C4uNh90t.cjs} +3 -3
  22. package/dist/{chunk-SVP7TREG-weNUySou.js → chunk-AW2ZBBNX-CVsDDdv5.js} +33 -33
  23. package/dist/{chunk-GVQU2GXP-iZT_vNLp.cjs → chunk-DBDB3WZW-DSRcln4l.cjs} +1 -1
  24. package/dist/{chunk-GVQU2GXP-BhLneNgJ.js → chunk-DBDB3WZW-DpEOsLsQ.js} +3 -3
  25. package/dist/chunk-DUW6YSOI-2RXTEh_8.cjs +1 -0
  26. package/dist/chunk-DUW6YSOI-CVhxvrBO.js +10 -0
  27. package/dist/{chunk-GMAD6QVW-DZ2r0pLj.js → chunk-E2ZNV5FY-Bu796yUY.js} +354 -361
  28. package/dist/chunk-E2ZNV5FY-DIRTchKA.cjs +72 -0
  29. package/dist/chunk-EU5HNXII-DNBbmfcI.cjs +213 -0
  30. package/dist/{chunk-3NF5O7KM-DQV4G__C.js → chunk-EU5HNXII-DW-QTb0f.js} +426 -357
  31. package/dist/chunk-FVRAUYC3-Crqd-lTD.cjs +1 -0
  32. package/dist/chunk-FVRAUYC3-tiT7dtx-.js +356 -0
  33. package/dist/{chunk-PWAF6VOD-9dCi1q-p.js → chunk-HJ2JQQFS-CgYTXthn.js} +2 -2
  34. package/dist/{chunk-PWAF6VOD-CZZKCekP.cjs → chunk-HJ2JQQFS-DnrogIdt.cjs} +1 -1
  35. package/dist/chunk-HTAEGDNF-D4u24-lD.js +236 -0
  36. package/dist/chunk-HTAEGDNF-I4JlqwMr.cjs +1 -0
  37. package/dist/chunk-J5ZVWO5B-CK5HGA-t.cjs +1 -0
  38. package/dist/chunk-J5ZVWO5B-DEP-pB-1.js +12 -0
  39. package/dist/{chunk-POPQ4Y6H-BRQPB1-9.cjs → chunk-KQW6MTUR-C_XQxsme.cjs} +1 -1
  40. package/dist/{chunk-POPQ4Y6H-vLTNjxsT.js → chunk-KQW6MTUR-c0XOjr_c.js} +2 -2
  41. package/dist/chunk-NGNAAXSQ-DM0DL2MX.js +19836 -0
  42. package/dist/chunk-NGNAAXSQ-kHtfTQLE.cjs +136 -0
  43. package/dist/chunk-NTY3LDVX-CvRtOCpm.js +363 -0
  44. package/dist/chunk-NTY3LDVX-DBVRlnMJ.cjs +1 -0
  45. package/dist/chunk-VPRB5NB3-CT204jN6.cjs +129 -0
  46. package/dist/{chunk-DU6HZSFF-BW30DVuW.js → chunk-VPRB5NB3-DJh7spRO.js} +791 -611
  47. package/dist/chunk-XC4XBNZT-BTUjiQhE.cjs +62 -0
  48. package/dist/{chunk-4HAMMTFA-C2YXJpQw.js → chunk-XC4XBNZT-CSiWBPH9.js} +1378 -1079
  49. package/dist/classDiagram-v2-K4WV4PDN-BndXIwai.cjs +217 -0
  50. package/dist/{chunk-HLEWEB6X-BrzeadBj.js → classDiagram-v2-K4WV4PDN-C39xKke0.js} +254 -214
  51. package/dist/{conversationExport-QWEGKkKB.js → conversationExport-0aa7tXBv.js} +2 -2
  52. package/dist/{conversationExport-D2ekPeYe.cjs → conversationExport-BVHvnvh5.cjs} +1 -1
  53. package/dist/conversationHistory-CNfOwM8H.cjs +287 -0
  54. package/dist/{conversationHistory-BylZCAb1.js → conversationHistory-D-hT7EvD.js} +9066 -6513
  55. package/dist/cynefin-EF2NZ3EQ-BB_WO8YQ.js +3 -0
  56. package/dist/cynefin-EF2NZ3EQ-Du3-s5Z7.cjs +1 -0
  57. package/dist/{cynefinDiagram-5FMLGOSQ-GvGZco52.cjs → cynefinDiagram-3GCD6N5R-Bmvj-sQO.cjs} +1 -1
  58. package/dist/{cynefinDiagram-5FMLGOSQ-BEFzUfsd.js → cynefinDiagram-3GCD6N5R-C2CRSeJl.js} +14 -14
  59. package/dist/dagre-W4DXFKR2-ECmxkO0T.js +2356 -0
  60. package/dist/dagre-W4DXFKR2-aPKdYPEj.cjs +4 -0
  61. package/dist/diagram-2UJZ2QOL-B1JKtFHG.cjs +200 -0
  62. package/dist/diagram-2UJZ2QOL-CJRsGDwn.js +5081 -0
  63. package/dist/{diagram-VX7I27RA-Bx9fEhR0.cjs → diagram-OVF4WLC6-CwZeVpHT.cjs} +1 -1
  64. package/dist/{diagram-VX7I27RA-BK8jsKkD.js → diagram-OVF4WLC6-D6r6aTeO.js} +61 -61
  65. package/dist/{diagram-S7CK7UJ4-BH8mrGrv.js → diagram-PFPMY2P6-BpOJbdZ5.js} +15 -15
  66. package/dist/{diagram-S7CK7UJ4-BA67ZpiO.cjs → diagram-PFPMY2P6-DlLbGc_k.cjs} +3 -3
  67. package/dist/{diagram-Z3DM3KII-jy895UiZ.cjs → diagram-UMYRVEAY-BE-t_ZdV.cjs} +1 -1
  68. package/dist/{diagram-Z3DM3KII-CqouFf3D.js → diagram-UMYRVEAY-blW7NpUU.js} +14 -14
  69. package/dist/{diagram-UQ7AKVKN-Bvz7faiB.js → diagram-YEKJPTXX-BOgf87BN.js} +15 -15
  70. package/dist/{diagram-UQ7AKVKN-OteiyKD9.cjs → diagram-YEKJPTXX-CeQjir5H.cjs} +2 -2
  71. package/dist/diagram-ZIFT7M5P-BHePHmHl.cjs +3 -0
  72. package/dist/{diagram-VSXAHHWV-l9f6spkp.js → diagram-ZIFT7M5P-CZOnEYez.js} +40 -25
  73. package/dist/{docxExport-DK8uhXvT.js → docxExport-Cyk5ToUi.js} +1 -1
  74. package/dist/{docxExport-Dt55TJ2h.cjs → docxExport-DF-PXilo.cjs} +1 -1
  75. package/dist/{ebnfDiagram-PWID7BFC-Bwmmg23f.js → ebnfDiagram-VR2GEFS7-Cr0a3Ho_.js} +5 -5
  76. package/dist/{ebnfDiagram-PWID7BFC-BQZKHpUr.cjs → ebnfDiagram-VR2GEFS7-cgyTJ-Xs.cjs} +1 -1
  77. package/dist/elk-IJKZMXRS-NO3xNT-V.cjs +27 -0
  78. package/dist/elk-IJKZMXRS-V31is6hS.js +47984 -0
  79. package/dist/{erDiagram-2YWLMYGG-RTHTTqyH.js → erDiagram-O2IAPWRE-CP06GjjM.js} +60 -56
  80. package/dist/{erDiagram-2YWLMYGG-CuEEIv1I.cjs → erDiagram-O2IAPWRE-CnkFrABC.cjs} +13 -13
  81. package/dist/eventmodeling-K75KTNOO-CMoz0K5S.js +3 -0
  82. package/dist/eventmodeling-K75KTNOO-DZdZrgwl.cjs +1 -0
  83. package/dist/flowDiagram-OXPTDLAJ-BdYr7Idm.cjs +1 -0
  84. package/dist/flowDiagram-OXPTDLAJ-R_xf7pNW.js +16 -0
  85. package/dist/{ganttDiagram-EL5Y4UJY-PTWIufq8.cjs → ganttDiagram-R7TSEDQI-Jhax10tw.cjs} +3 -3
  86. package/dist/{ganttDiagram-EL5Y4UJY-BTvevd1z.js → ganttDiagram-R7TSEDQI-y1bDU8Ba.js} +103 -92
  87. package/dist/gitGraph-VSP46ZUC-DoTshgkY.js +3 -0
  88. package/dist/gitGraph-VSP46ZUC-lawIO6K6.cjs +1 -0
  89. package/dist/{gitGraphDiagram-WWUBYQGX-D5yozoaq.cjs → gitGraphDiagram-XJZIOB7I-CLZLQcPk.cjs} +5 -5
  90. package/dist/{gitGraphDiagram-WWUBYQGX-Bh9F7wif.js → gitGraphDiagram-XJZIOB7I-CYZa0-Ct.js} +45 -45
  91. package/dist/info-OHQRW6UA-DPTZOb30.js +3 -0
  92. package/dist/info-OHQRW6UA-deop1PPz.cjs +1 -0
  93. package/dist/infoDiagram-5W2HQ5XZ-D8fJK3ph.cjs +2 -0
  94. package/dist/{infoDiagram-FKFFQAWI-D6en39j4.js → infoDiagram-5W2HQ5XZ-Dw_D4zI1.js} +5 -5
  95. package/dist/{ishikawaDiagram-5VMMS53U-CvVqTWku.js → ishikawaDiagram-K3B6WC7H-BeLiZFVY.js} +25 -25
  96. package/dist/{ishikawaDiagram-5VMMS53U-DN23jmFw.cjs → ishikawaDiagram-K3B6WC7H-DtjgiZAB.cjs} +2 -2
  97. package/dist/{journeyDiagram-EYS64GPL-CqhBN0KZ.js → journeyDiagram-COXZFDF6-B-qvdudB.js} +31 -31
  98. package/dist/{journeyDiagram-EYS64GPL-Co9rp-Q1.cjs → journeyDiagram-COXZFDF6-Dge2AV0B.cjs} +4 -4
  99. package/dist/{kanban-definition-UXKFOSKX-DzKPVjAq.cjs → kanban-definition-P3RFRI5V-C02YfFZv.cjs} +4 -4
  100. package/dist/{kanban-definition-UXKFOSKX-CWx_Y40t.js → kanban-definition-P3RFRI5V-D0XAXDl8.js} +42 -42
  101. package/dist/{line-D6gR53Af.cjs → line-5eGinYgh.cjs} +1 -1
  102. package/dist/{line-CwYnx9Ke.js → line-BTenwQwq.js} +1 -1
  103. package/dist/loadReferencedImage-C60bzMNm.cjs +1 -0
  104. package/dist/{loadReferencedImage-BKEDAhWQ.js → loadReferencedImage-XQS67fhR.js} +3 -1
  105. package/dist/mermaid-parser.core-BHBS1DqP.cjs +6 -0
  106. package/dist/{mermaid-parser.core-DLNlSmfj.js → mermaid-parser.core-CI12FMcX.js} +163 -163
  107. package/dist/mermaid.core-4MZ-Iwu7.cjs +43 -0
  108. package/dist/{mermaid.core-DI1iFk6G.js → mermaid.core-BJkDCzqA.js} +875 -1150
  109. package/dist/{mindmap-definition-THT77NOG-Bo3D8RRT.cjs → mindmap-definition-LZFPQGKD-CXV1hV3a.cjs} +3 -3
  110. package/dist/{mindmap-definition-THT77NOG-B9hdpQgy.js → mindmap-definition-LZFPQGKD-gYumvdwo.js} +78 -78
  111. package/dist/packet-JDAUHWVQ-Bcik24Kz.js +3 -0
  112. package/dist/packet-JDAUHWVQ-CrY7ylWJ.cjs +1 -0
  113. package/dist/{pegDiagram-XKGWAZYB-Cx-wZf4B.cjs → pegDiagram-BGZESJAR-BICf3jMN.cjs} +1 -1
  114. package/dist/{pegDiagram-XKGWAZYB-CIBfY2Ob.js → pegDiagram-BGZESJAR-Dw9pRv5d.js} +5 -5
  115. package/dist/pi-outpost-embed.cjs +9 -10
  116. package/dist/pi-outpost-embed.js +2833 -2786
  117. package/dist/pie-XZMESJXO-BYQC-ufi.js +3 -0
  118. package/dist/pie-XZMESJXO-WjCBboSE.cjs +1 -0
  119. package/dist/{pieDiagram-E7YTZNPT-BC-pW4cK.cjs → pieDiagram-CAPJLFHJ-CF8cTQpC.cjs} +2 -2
  120. package/dist/{pieDiagram-E7YTZNPT-SG9oy_nV.js → pieDiagram-CAPJLFHJ-uz37FR9I.js} +18 -18
  121. package/dist/{quadrantDiagram-AXDQQJYC-C65HQ6gT.js → quadrantDiagram-GDMTTRAM-C4rt8LIh.js} +40 -40
  122. package/dist/{quadrantDiagram-AXDQQJYC-zPfqM9Q4.cjs → quadrantDiagram-GDMTTRAM-D9SYFJ_P.cjs} +2 -2
  123. package/dist/radar-ABXABTNO-BoQ7hH7Z.cjs +1 -0
  124. package/dist/radar-ABXABTNO-MxbyaZja.js +3 -0
  125. package/dist/railroad-I3PHUGI6-DckUArT-.js +3 -0
  126. package/dist/railroad-I3PHUGI6-DuGTlHry.cjs +1 -0
  127. package/dist/railroad-abnf-LNEFI6M7-DmAJaMEu.js +3 -0
  128. package/dist/railroad-abnf-LNEFI6M7-DoWf9u55.cjs +1 -0
  129. package/dist/railroad-ebnf-DWYD2UWJ-Bf05ZyW1.cjs +1 -0
  130. package/dist/railroad-ebnf-DWYD2UWJ-CS2AUYSv.js +3 -0
  131. package/dist/railroad-peg-JR7BVNR7-B-nctVbV.js +3 -0
  132. package/dist/railroad-peg-JR7BVNR7-CcV5KH4m.cjs +1 -0
  133. package/dist/{railroadDiagram-O6MQD6OU-3JsgWyLe.cjs → railroadDiagram-SM67HX2B-GgesxX7v.cjs} +1 -1
  134. package/dist/{railroadDiagram-O6MQD6OU-DLBEWyaH.js → railroadDiagram-SM67HX2B-T5SG0kEf.js} +5 -5
  135. package/dist/{requirementDiagram-IS5BZ75X-DwrHgMzq.js → requirementDiagram-X7JNWC4A-BEeCszC1.js} +49 -45
  136. package/dist/{requirementDiagram-IS5BZ75X-D1BMLxZg.cjs → requirementDiagram-X7JNWC4A-BVzf-VRr.cjs} +11 -11
  137. package/dist/{sankeyDiagram-P5KCCOFB-D5BHxcxB.cjs → sankeyDiagram-UM26HJRW-CdBXqklJ.cjs} +3 -3
  138. package/dist/{sankeyDiagram-P5KCCOFB-CcT0ZbW6.js → sankeyDiagram-UM26HJRW-DLDVzhPm.js} +16 -16
  139. package/dist/{sequenceDiagram-WJ2MYXX4-DM6BpXMT.js → sequenceDiagram-ZO4K6R2Y-B8wM6a-A.js} +704 -619
  140. package/dist/sequenceDiagram-ZO4K6R2Y-ytX57BES.cjs +169 -0
  141. package/dist/stateDiagram-v2-TBUQTH76-BTuAbG28.cjs +291 -0
  142. package/dist/{chunk-ZLD2IHE6-CqnVd2rq.js → stateDiagram-v2-TBUQTH76-PRnBJSrY.js} +271 -174
  143. package/dist/swimlanes-N4OXWK64-41SBE_L2.cjs +1 -0
  144. package/dist/{swimlanes-V6O3JKXN-BR7rwPmC.js → swimlanes-N4OXWK64-DipLcZla.js} +1006 -1219
  145. package/dist/swimlanesDiagram-K3J5GTZL-D6tIMgkj.cjs +8 -0
  146. package/dist/swimlanesDiagram-K3J5GTZL-_MehEHMi.js +27 -0
  147. package/dist/timeline-definition-YOQAKGHF-D_LWHCSA.cjs +120 -0
  148. package/dist/{timeline-definition-24CTP7MA-BQmq-H07.js → timeline-definition-YOQAKGHF-h8_spxIb.js} +210 -206
  149. package/dist/treeView-D4JQ5SDB-C3ticT1s.cjs +1 -0
  150. package/dist/treeView-D4JQ5SDB-CEuRf8gK.js +3 -0
  151. package/dist/treemap-SAJKECNS-BwIfwvl-.cjs +1 -0
  152. package/dist/treemap-SAJKECNS-DiC0668-.js +3 -0
  153. package/dist/usecaseDiagram-VIAY4XPW-DCfwvERR.js +7187 -0
  154. package/dist/usecaseDiagram-VIAY4XPW-PJHZiyJN.cjs +328 -0
  155. package/dist/{vennDiagram-4TSXK5OY-BdzbrV6i.js → vennDiagram-BLWOH2XV-_zHkfDVB.js} +43 -43
  156. package/dist/{vennDiagram-4TSXK5OY-D5MMYyff.cjs → vennDiagram-BLWOH2XV-niExkaFk.cjs} +3 -3
  157. package/dist/wardley-7MLQ67FV-BoIyQQ0E.cjs +1 -0
  158. package/dist/wardley-7MLQ67FV-CFF6IT1d.js +3 -0
  159. package/dist/{wardleyDiagram-VM6X3IG4-Ccz1enMd.js → wardleyDiagram-YMQ3BMBF-BKvQkiZP.js} +17 -17
  160. package/dist/{wardleyDiagram-VM6X3IG4-DzZNzmB8.cjs → wardleyDiagram-YMQ3BMBF-btlDrKA6.cjs} +3 -3
  161. package/dist/xychartDiagram-TAQBALBS-CkNZcyIi.cjs +7 -0
  162. package/dist/{xychartDiagram-S5SC5T6Z-B-sQkN_B.js → xychartDiagram-TAQBALBS-DlfKpBG9.js} +34 -30
  163. package/package.json +2 -2
  164. package/dist/architecture-7GRP2DOG-BtgYGXkq.cjs +0 -1
  165. package/dist/architecture-7GRP2DOG-DBQ9eYgM.js +0 -3
  166. package/dist/c4Diagram-7LVT6UL2-BCrC0RQo.cjs +0 -38
  167. package/dist/channel-DcrLLvcO.cjs +0 -1
  168. package/dist/chunk-3NF5O7KM-B-DpUW2r.cjs +0 -168
  169. package/dist/chunk-4HAMMTFA-CtkrBT7X.cjs +0 -62
  170. package/dist/chunk-75Z2AOVW-DOXS9ORa.cjs +0 -2
  171. package/dist/chunk-DU6HZSFF-3Hhp3Fo5.cjs +0 -127
  172. package/dist/chunk-FOHPRMQF-BNNbqxGX.js +0 -21456
  173. package/dist/chunk-FOHPRMQF-tmTlwTeH.cjs +0 -161
  174. package/dist/chunk-GMAD6QVW-B6uvB_wz.cjs +0 -72
  175. package/dist/chunk-HLEWEB6X-aqFoPl02.cjs +0 -206
  176. package/dist/chunk-L3NEJ4N5-BaR_9rF3.js +0 -245
  177. package/dist/chunk-L3NEJ4N5-vW3qRjIb.cjs +0 -1
  178. package/dist/chunk-OSK3NFVY-DU2FGOlI.cjs +0 -10
  179. package/dist/chunk-P2QGCYS3-DWeL9spl.cjs +0 -1
  180. package/dist/chunk-ZLD2IHE6-BZxKwfuv.cjs +0 -231
  181. package/dist/classDiagram-CYGNFDIV-CQLOfBmz.cjs +0 -1
  182. package/dist/classDiagram-CYGNFDIV-DsnY_WNO.js +0 -30
  183. package/dist/classDiagram-v2-TLXNO2FR-CQLOfBmz.cjs +0 -1
  184. package/dist/classDiagram-v2-TLXNO2FR-DeNpu9ZP.js +0 -30
  185. package/dist/conversationHistory-BmpdU77I.cjs +0 -286
  186. package/dist/cynefin-OW5HDTMX-BmLJra-4.cjs +0 -1
  187. package/dist/cynefin-OW5HDTMX-CfYr_cVN.js +0 -3
  188. package/dist/dagre-BMKbPnPh.js +0 -1934
  189. package/dist/dagre-EEW2OxRU.cjs +0 -1
  190. package/dist/dagre-OS7QT2EB-BtJ6v_Nc.js +0 -425
  191. package/dist/dagre-OS7QT2EB-DFi6nnZc.cjs +0 -4
  192. package/dist/diagram-VSXAHHWV-BjsZz1JJ.cjs +0 -3
  193. package/dist/eventmodeling-NTZA5JFV-D57pc07U.cjs +0 -1
  194. package/dist/eventmodeling-NTZA5JFV-DUbGOrrF.js +0 -3
  195. package/dist/flowDiagram-T62WH6J4-YyzE7N5Z.cjs +0 -1
  196. package/dist/flowDiagram-T62WH6J4-ptBWC6KI.js +0 -16
  197. package/dist/gitGraph-4MIJSDKK-CY4IuhXZ.js +0 -3
  198. package/dist/gitGraph-4MIJSDKK-D97vaDci.cjs +0 -1
  199. package/dist/info-A6RAGUB7-Cx39sHYM.js +0 -3
  200. package/dist/info-A6RAGUB7-DT06-FB3.cjs +0 -1
  201. package/dist/infoDiagram-FKFFQAWI-NPtQF4vB.cjs +0 -2
  202. package/dist/loadReferencedImage-DlRgJ4vm.cjs +0 -1
  203. package/dist/mermaid-parser.core-CBiDgMLi.cjs +0 -6
  204. package/dist/mermaid.core-B3QcBB1O.cjs +0 -43
  205. package/dist/packet-AYTQ26CC-BGX2McoE.cjs +0 -1
  206. package/dist/packet-AYTQ26CC-IgkU2VYK.js +0 -3
  207. package/dist/pie-WAS4IAKB-CEyPj3UJ.cjs +0 -1
  208. package/dist/pie-WAS4IAKB-odE0A7fM.js +0 -3
  209. package/dist/radar-RG4KPBEZ-ClYJNseM.cjs +0 -1
  210. package/dist/radar-RG4KPBEZ-DqbNqlJH.js +0 -3
  211. package/dist/railroad-74A4TZTK-Dzt4afqg.js +0 -3
  212. package/dist/railroad-74A4TZTK-hSKcr2y6.cjs +0 -1
  213. package/dist/railroad-abnf-HS5TGJTU-gq2RybTO.js +0 -3
  214. package/dist/railroad-abnf-HS5TGJTU-irEXz0eI.cjs +0 -1
  215. package/dist/railroad-ebnf-LZEXJU2U-CG19A1Xj.cjs +0 -1
  216. package/dist/railroad-ebnf-LZEXJU2U-D-pNpFrj.js +0 -3
  217. package/dist/railroad-peg-WCYAUIDC-BLdK3QCV.cjs +0 -1
  218. package/dist/railroad-peg-WCYAUIDC-Bo7wfe--.js +0 -3
  219. package/dist/sequenceDiagram-WJ2MYXX4-DlVJIIIl.cjs +0 -162
  220. package/dist/stateDiagram-XQSTLZYL-BhzcW44q.js +0 -220
  221. package/dist/stateDiagram-XQSTLZYL-mSOJx_Wv.cjs +0 -1
  222. package/dist/stateDiagram-v2-IH3M54BS-BE5CXOTu.js +0 -30
  223. package/dist/stateDiagram-v2-IH3M54BS-DAa6SuH4.cjs +0 -1
  224. package/dist/swimlanes-V6O3JKXN-BooYLGtP.cjs +0 -1
  225. package/dist/swimlanesDiagram-JKAHXJPX-BaMCBEUQ.cjs +0 -8
  226. package/dist/swimlanesDiagram-JKAHXJPX-lIPwQ8Mc.js +0 -30
  227. package/dist/timeline-definition-24CTP7MA-D6sSmprF.cjs +0 -120
  228. package/dist/treeView-Q6P3EWNA-BmkQxkVU.cjs +0 -1
  229. package/dist/treeView-Q6P3EWNA-CPEEGmNv.js +0 -3
  230. package/dist/treemap-WGGIJYW6-CGULpntJ.js +0 -3
  231. package/dist/treemap-WGGIJYW6-Dmi9HAR8.cjs +0 -1
  232. package/dist/wardley-WFR3VGLG-9zHZLKh9.js +0 -3
  233. package/dist/wardley-WFR3VGLG-B6YvLPJA.cjs +0 -1
  234. package/dist/xychartDiagram-S5SC5T6Z-BOsjfYJh.cjs +0 -7
@@ -1,24 +1,25 @@
1
1
  import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
2
2
  import { m as t, p as n } from "./src-Dkp7vqs8.js";
3
- import { $ as r, G as i, H as a, K as o, U as s, a as c, d as l, it as u, k as d, s as f, v as p, w as ee, x as m, y as h } from "./chunk-DU6HZSFF-BW30DVuW.js";
4
- import { t as te } from "./channel-Cf_XiG-0.js";
5
- import { c as g, g as _ } from "./chunk-75Z2AOVW-DoA8rENV.js";
6
- import { t as ne } from "./chunk-5VM5RSS4-BMfgdMFU.js";
7
- import { i as re } from "./chunk-4HAMMTFA-C2YXJpQw.js";
8
- import { t as v } from "./chunk-F27PBJKO-s9M3oGHp.js";
9
- import { t as y } from "./chunk-XXDRQBXY-IzhWXllg.js";
10
- import { t as b } from "./chunk-POPQ4Y6H-vLTNjxsT.js";
11
- import { d as x, n as S, r as C, u as w } from "./mermaid.core-DI1iFk6G.js";
12
- //#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-3NF5O7KM.mjs
13
- var T = "flowchart-", E = class {
3
+ import { C as r, G as i, H as a, U as o, _ as s, a as c, at as l, b as u, d, et as f, q as p, s as m, v as h } from "./chunk-VPRB5NB3-DJh7spRO.js";
4
+ import { t as g } from "./channel-DCXZw5aW.js";
5
+ import { _, c as v } from "./chunk-3YJQHVM4-BNbfg-7y.js";
6
+ import { t as ee } from "./chunk-5VM5RSS4-BMfgdMFU.js";
7
+ import { i as te, n as ne, o as y, r as b } from "./chunk-J5ZVWO5B-DEP-pB-1.js";
8
+ import { a as x } from "./chunk-XC4XBNZT-CSiWBPH9.js";
9
+ import { t as S } from "./chunk-7TKQ45FW-CD1KuemG.js";
10
+ import { t as C } from "./chunk-XXDRQBXY-IzhWXllg.js";
11
+ import { t as w } from "./chunk-KQW6MTUR-c0XOjr_c.js";
12
+ import { a as T, i as E, n as D, r as O } from "./mermaid.core-BJkDCzqA.js";
13
+ //#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-EU5HNXII.mjs
14
+ var re = "flowchart-", ie = class {
14
15
  constructor() {
15
- this.vertexCounter = 0, this.config = m(), this.diagramId = "", this.vertices = /* @__PURE__ */ new Map(), this.edges = [], this.classes = /* @__PURE__ */ new Map(), this.subGraphs = [], this.subGraphLookup = /* @__PURE__ */ new Map(), this.tooltips = /* @__PURE__ */ new Map(), this.subCount = 0, this.firstGraphFlag = !0, this.secCount = -1, this.posCrossRef = [], this.funs = [], this.setAccTitle = s, this.setAccDescription = a, this.setDiagramTitle = o, this.getAccTitle = h, this.getAccDescription = p, this.getDiagramTitle = ee, this.funs.push(this.setupToolTips.bind(this)), this.addVertex = this.addVertex.bind(this), this.firstGraph = this.firstGraph.bind(this), this.setDirection = this.setDirection.bind(this), this.addSubGraph = this.addSubGraph.bind(this), this.addLink = this.addLink.bind(this), this.setLink = this.setLink.bind(this), this.updateLink = this.updateLink.bind(this), this.addClass = this.addClass.bind(this), this.setClass = this.setClass.bind(this), this.destructLink = this.destructLink.bind(this), this.setClickEvent = this.setClickEvent.bind(this), this.setTooltip = this.setTooltip.bind(this), this.updateLinkInterpolate = this.updateLinkInterpolate.bind(this), this.setClickFun = this.setClickFun.bind(this), this.bindFunctions = this.bindFunctions.bind(this), this.lex = { firstGraph: this.firstGraph.bind(this) }, this.clear(), this.setGen("gen-2");
16
+ this.vertexCounter = 0, this.config = u(), this.diagramId = "", this.vertices = /* @__PURE__ */ new Map(), this.edges = [], this.classes = /* @__PURE__ */ new Map(), this.subGraphs = [], this.subGraphLookup = /* @__PURE__ */ new Map(), this.tooltips = /* @__PURE__ */ new Map(), this.subCount = 0, this.firstGraphFlag = !0, this.secCount = -1, this.posCrossRef = [], this.funs = [], this.setAccTitle = o, this.setAccDescription = a, this.setDiagramTitle = p, this.getAccTitle = h, this.getAccDescription = s, this.getDiagramTitle = r, this.funs.push(this.setupToolTips.bind(this)), this.addVertex = this.addVertex.bind(this), this.firstGraph = this.firstGraph.bind(this), this.setDirection = this.setDirection.bind(this), this.addSubGraph = this.addSubGraph.bind(this), this.addLink = this.addLink.bind(this), this.setLink = this.setLink.bind(this), this.updateLink = this.updateLink.bind(this), this.addClass = this.addClass.bind(this), this.setClass = this.setClass.bind(this), this.destructLink = this.destructLink.bind(this), this.setClickEvent = this.setClickEvent.bind(this), this.setTooltip = this.setTooltip.bind(this), this.updateLinkInterpolate = this.updateLinkInterpolate.bind(this), this.setClickFun = this.setClickFun.bind(this), this.bindFunctions = this.bindFunctions.bind(this), this.lex = { firstGraph: this.firstGraph.bind(this) }, this.clear(), this.setGen("gen-2");
16
17
  }
17
18
  static {
18
19
  e(this, "FlowDB");
19
20
  }
20
21
  sanitizeText(e) {
21
- return f.sanitizeText(e, this.config);
22
+ return m.sanitizeText(e, this.config);
22
23
  }
23
24
  sanitizeNodeLabelType(e) {
24
25
  switch (e) {
@@ -40,40 +41,40 @@ var T = "flowchart-", E = class {
40
41
  let l;
41
42
  if (c !== void 0) {
42
43
  let e;
43
- e = c.includes("\n") ? c + "\n" : "{\n" + c + "\n}", l = C(e, { schema: S });
44
+ e = c.includes("\n") ? c + "\n" : "{\n" + c + "\n}", l = O(e, { schema: D });
44
45
  }
45
- let u = this.subGraphLookup.get(e);
46
- if (u && l) {
47
- u.metadata = {
48
- ...u.metadata,
46
+ let d = this.subGraphLookup.get(e);
47
+ if (d && l) {
48
+ d.metadata = {
49
+ ...d.metadata,
49
50
  ...l
50
51
  };
51
52
  return;
52
53
  }
53
- let d = this.edges.find((t) => t.id === e);
54
- if (d) {
54
+ let f = this.edges.find((t) => t.id === e);
55
+ if (f) {
55
56
  let e = l;
56
- e?.animate !== void 0 && (d.animate = e.animate), e?.animation !== void 0 && (d.animation = e.animation), e?.curve !== void 0 && (d.interpolate = e.curve);
57
+ e?.animate !== void 0 && (f.animate = e.animate), e?.animation !== void 0 && (f.animation = e.animation), e?.curve !== void 0 && (f.interpolate = e.curve);
57
58
  return;
58
59
  }
59
- let f, p = this.vertices.get(e);
60
- if (p === void 0 && (n === void 0 && r === void 0 && i != null && t.warn(`Style applied to unknown node "${e}". This may indicate a typo. The node will be created automatically.`), p = {
60
+ let p, m = this.vertices.get(e);
61
+ if (m === void 0 && (n === void 0 && r === void 0 && i != null && t.warn(`Style applied to unknown node "${e}". This may indicate a typo. The node will be created automatically.`), m = {
61
62
  id: e,
62
63
  labelType: "text",
63
- domId: T + e + "-" + this.vertexCounter,
64
+ domId: re + e + "-" + this.vertexCounter,
64
65
  styles: [],
65
66
  classes: []
66
- }, this.vertices.set(e, p)), this.vertexCounter++, n === void 0 ? p.text === void 0 && (p.text = e) : (this.config = m(), f = this.sanitizeText(n.text.trim()), p.labelType = n.type, f.startsWith("\"") && f.endsWith("\"") && (f = f.substring(1, f.length - 1)), p.text = f), r !== void 0 && (p.type = r), i?.forEach((e) => {
67
- p.styles.push(e);
67
+ }, this.vertices.set(e, m)), this.vertexCounter++, n === void 0 ? m.text === void 0 && (m.text = e) : (this.config = u(), p = this.sanitizeText(n.text.trim()), m.labelType = n.type, p.startsWith("\"") && p.endsWith("\"") && (p = p.substring(1, p.length - 1)), m.text = p), r !== void 0 && (m.type = r), i?.forEach((e) => {
68
+ m.styles.push(e);
68
69
  }), a?.forEach((e) => {
69
- p.classes.push(e);
70
- }), o !== void 0 && (p.dir = o), p.props === void 0 ? p.props = s : s !== void 0 && Object.assign(p.props, s), l !== void 0) {
70
+ m.classes.push(e);
71
+ }), o !== void 0 && (m.dir = o), m.props === void 0 ? m.props = s : s !== void 0 && Object.assign(m.props, s), l !== void 0) {
71
72
  if (l.shape) {
72
73
  if (l.shape !== l.shape.toLowerCase() || l.shape.includes("_")) throw Error(`No such shape: ${l.shape}. Shape names should be lowercase.`);
73
- if (!re(l.shape)) throw Error(`No such shape: ${l.shape}.`);
74
- p.type = l?.shape;
74
+ if (!x(l.shape)) throw Error(`No such shape: ${l.shape}.`);
75
+ m.type = l?.shape;
75
76
  }
76
- l?.label && (p.text = l?.label, p.labelType = this.sanitizeNodeLabelType(l?.labelType)), l?.icon && (p.icon = l?.icon, !l.label?.trim() && p.text === e && (p.text = "")), l?.form && (p.form = l?.form), l?.pos && (p.pos = l?.pos), l?.img && (p.img = l?.img, !l.label?.trim() && p.text === e && (p.text = "")), l?.constraint && (p.constraint = l.constraint), l.w && (p.assetWidth = Number(l.w)), l.h && (p.assetHeight = Number(l.h));
77
+ l?.label && (m.text = l?.label, m.labelType = this.sanitizeNodeLabelType(l?.labelType)), l?.icon && (m.icon = l?.icon, !l.label?.trim() && m.text === e && (m.text = "")), l?.form && (m.form = l?.form), l?.pos && (m.pos = l?.pos), l?.img && (m.img = l?.img, !l.label?.trim() && m.text === e && (m.text = "")), l?.constraint && (m.constraint = l.constraint), l.w && (m.assetWidth = Number(l.w)), l.h && (m.assetHeight = Number(l.h));
77
78
  }
78
79
  }
79
80
  addSingleLink(e, n, r, i) {
@@ -92,10 +93,10 @@ var T = "flowchart-", E = class {
92
93
  if (o !== void 0 && (a.text = this.sanitizeText(o.text.trim()), a.text.startsWith("\"") && a.text.endsWith("\"") && (a.text = a.text.substring(1, a.text.length - 1)), a.labelType = this.sanitizeNodeLabelType(o.type)), r !== void 0 && (a.type = r.type, a.stroke = r.stroke, a.length = r.length > 10 ? 10 : r.length), i && !this.edges.some((e) => e.id === i)) a.id = i, a.isUserDefinedId = !0;
93
94
  else {
94
95
  let e = this.edges.filter((e) => e.start === a.start && e.end === a.end);
95
- a.id = e.length === 0 ? g(a.start, a.end, {
96
+ a.id = e.length === 0 ? v(a.start, a.end, {
96
97
  counter: 0,
97
98
  prefix: "L"
98
- }) : g(a.start, a.end, {
99
+ }) : v(a.start, a.end, {
99
100
  counter: e.length + 1,
100
101
  prefix: "L"
101
102
  });
@@ -166,7 +167,7 @@ You have to call mermaid.initialize.`);
166
167
  }
167
168
  }
168
169
  setClickFun(e, t, n) {
169
- if (m().securityLevel !== "loose" || t === void 0) return;
170
+ if (u().securityLevel !== "loose" || t === void 0) return;
170
171
  let r = [];
171
172
  if (typeof n == "string") {
172
173
  r = n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
@@ -216,18 +217,18 @@ You have to call mermaid.initialize.`);
216
217
  return this.classes;
217
218
  }
218
219
  setupToolTips(e) {
219
- let t = v();
220
+ let t = S();
220
221
  n(e).select("svg").selectAll("g.node").on("mouseover", (e) => {
221
- let i = n(e.currentTarget), a = i.attr("title");
222
- if (a === null) return;
223
- let o = e.currentTarget?.getBoundingClientRect();
224
- t.transition().duration(200).style("opacity", ".9"), t.text(i.attr("title")).style("left", window.scrollX + o.left + (o.right - o.left) / 2 + "px").style("top", window.scrollY + o.bottom + "px"), t.html(r.sanitize(a)), i.classed("hover", !0);
222
+ let r = n(e.currentTarget), i = r.attr("title");
223
+ if (i === null) return;
224
+ let a = e.currentTarget?.getBoundingClientRect();
225
+ t.transition().duration(200).style("opacity", ".9"), t.text(r.attr("title")).style("left", window.scrollX + a.left + (a.right - a.left) / 2 + "px").style("top", window.scrollY + a.bottom + "px"), t.html(f.sanitize(i)), r.classed("hover", !0);
225
226
  }).on("mouseout", (e) => {
226
227
  t.transition().duration(500).style("opacity", 0), n(e.currentTarget).classed("hover", !1);
227
228
  });
228
229
  }
229
230
  clear(e = "gen-2") {
230
- this.vertices = /* @__PURE__ */ new Map(), this.classes = /* @__PURE__ */ new Map(), this.edges = [], this.funs = [this.setupToolTips.bind(this)], this.diagramId = "", this.subGraphs = [], this.subGraphLookup = /* @__PURE__ */ new Map(), this.subCount = 0, this.tooltips = /* @__PURE__ */ new Map(), this.firstGraphFlag = !0, this.version = e, this.config = m(), c();
231
+ this.vertices = /* @__PURE__ */ new Map(), this.classes = /* @__PURE__ */ new Map(), this.edges = [], this.funs = [this.setupToolTips.bind(this)], this.diagramId = "", this.subGraphs = [], this.subGraphLookup = /* @__PURE__ */ new Map(), this.subCount = 0, this.tooltips = /* @__PURE__ */ new Map(), this.firstGraphFlag = !0, this.version = e, this.config = u(), c();
231
232
  }
232
233
  setGen(e) {
233
234
  this.version = e || "gen-2";
@@ -251,10 +252,10 @@ You have to call mermaid.initialize.`);
251
252
  }),
252
253
  dir: r
253
254
  };
254
- }, "uniq"))(r.flat()), c = s.nodeList, l = s.dir, u = m().flowchart ?? {};
255
- if (l ??= u.inheritDir ? this.getDirection() ?? m().direction ?? void 0 : void 0, this.version === "gen-1") for (let e = 0; e < c.length; e++) c[e] = this.lookUpDomId(c[e]);
255
+ }, "uniq"))(r.flat()), c = s.nodeList, l = s.dir, d = u().flowchart ?? {};
256
+ if (l ??= d.inheritDir ? this.getDirection() ?? u().direction ?? void 0 : void 0, this.version === "gen-1") for (let e = 0; e < c.length; e++) c[e] = this.lookUpDomId(c[e]);
256
257
  a ??= "subGraph" + this.subCount, o ||= "", o = this.sanitizeText(o), this.subCount += 1;
257
- let d = {
258
+ let f = {
258
259
  id: a,
259
260
  nodes: c,
260
261
  title: o.trim(),
@@ -262,7 +263,9 @@ You have to call mermaid.initialize.`);
262
263
  dir: l,
263
264
  labelType: this.sanitizeNodeLabelType(i?.type)
264
265
  };
265
- return t.info("Adding", d.id, d.nodes, d.dir), d.nodes = this.makeUniq(d, this.subGraphs).nodes, this.subGraphs.push(d), this.subGraphLookup.set(a, d), a;
266
+ t.info("Adding", f.id, f.nodes, f.dir), f.nodes = this.makeUniq(f, this.subGraphs).nodes.filter((e) => e !== a);
267
+ let p = this.subGraphs.find((e) => e.id === a);
268
+ return p ? p.nodes.push(...f.nodes) : this.subGraphs.push(f), this.subGraphLookup.set(a, p ?? f), a;
266
269
  }
267
270
  getPosForId(e) {
268
271
  for (let [t, n] of this.subGraphs.entries()) if (n.id === e) return t;
@@ -448,7 +451,8 @@ You have to call mermaid.initialize.`);
448
451
  }) : t.push({
449
452
  ...n,
450
453
  isGroup: !1,
451
- shape: this.getTypeFromVertex(e)
454
+ shape: this.getTypeFromVertex(e),
455
+ minWidth: i.flowchart?.minNodeWidth
452
456
  });
453
457
  }
454
458
  }
@@ -461,30 +465,40 @@ You have to call mermaid.initialize.`);
461
465
  return t;
462
466
  }
463
467
  getData() {
464
- let t = m(), n = [], r = [], i = this.getSubGraphs(), a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map();
468
+ let t = u(), n = [], r = [], i = this.getSubGraphs(), a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map();
465
469
  for (let e of i) for (let t of e.nodes) this.subGraphLookup.has(t) && s.set(t, e.id);
466
- let c = /* @__PURE__ */ e((e) => this.subGraphLookup.get(e)?.metadata?.view === "collapsed", "isCollapsed"), l = /* @__PURE__ */ e((e) => {
470
+ let c = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map();
471
+ for (let e of i) {
472
+ let t = s.get(e.id);
473
+ t !== void 0 && l.set(t, [...l.get(t) ?? [], e.id]);
474
+ }
475
+ let d = 0, f = /* @__PURE__ */ e((e) => {
476
+ c.set(e, d++);
477
+ for (let t of l.get(e) ?? []) f(t);
478
+ }, "walk");
479
+ for (let e of i) s.has(e.id) || f(e.id);
480
+ let p = /* @__PURE__ */ e((e) => this.subGraphLookup.get(e)?.metadata?.view === "collapsed", "isCollapsed"), m = /* @__PURE__ */ e((e) => {
467
481
  let t, n = /* @__PURE__ */ new Set(), r = e;
468
- for (; r !== void 0 && !n.has(r);) n.add(r), c(r) && (t = r), r = s.get(r);
482
+ for (; r !== void 0 && !n.has(r);) n.add(r), p(r) && (t = r), r = s.get(r);
469
483
  return t;
470
- }, "outermostCollapsed"), u = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Map();
484
+ }, "outermostCollapsed"), h = /* @__PURE__ */ new Set(), g = /* @__PURE__ */ new Map();
471
485
  for (let e of i) {
472
- let t = l(e.id);
486
+ let t = m(e.id);
473
487
  if (t !== void 0) {
474
- e.id !== t && (u.add(e.id), d.set(e.id, t));
475
- for (let n of e.nodes) n !== t && (u.add(n), d.set(n, t));
488
+ e.id !== t && (h.add(e.id), g.set(e.id, t));
489
+ for (let n of e.nodes) n !== t && (h.add(n), g.set(n, t));
476
490
  }
477
491
  }
478
492
  for (let e = i.length - 1; e >= 0; e--) {
479
493
  let t = i[e];
480
- if (!u.has(t.id)) {
494
+ if (!h.has(t.id)) {
481
495
  t.nodes.length > 0 && o.set(t.id, !0);
482
496
  for (let e of t.nodes) a.set(e, t.id);
483
497
  }
484
498
  }
485
499
  for (let e = i.length - 1; e >= 0; e--) {
486
500
  let r = i[e];
487
- u.has(r.id) || (r.metadata?.view === "collapsed" ? n.push({
501
+ h.has(r.id) || (r.metadata?.view === "collapsed" ? n.push({
488
502
  id: r.id,
489
503
  label: r.title,
490
504
  labelStyle: "",
@@ -496,7 +510,8 @@ You have to call mermaid.initialize.`);
496
510
  shape: "collapsedGroup",
497
511
  dir: r.dir,
498
512
  isGroup: !1,
499
- look: t.look
513
+ look: t.look,
514
+ colorIndex: c.get(r.id)
500
515
  }) : n.push({
501
516
  id: r.id,
502
517
  label: r.title,
@@ -509,19 +524,21 @@ You have to call mermaid.initialize.`);
509
524
  shape: "rect",
510
525
  dir: r.dir,
511
526
  isGroup: !0,
512
- look: t.look
527
+ look: t.look,
528
+ colorIndex: c.get(r.id),
529
+ metadata: r.metadata
513
530
  }));
514
531
  }
515
532
  this.getVertices().forEach((e) => {
516
- u.has(e.id) || this.addNodeFromVertex(e, n, a, o, t, t.look || "classic");
533
+ h.has(e.id) || this.addNodeFromVertex(e, n, a, o, t, t.look || "classic");
517
534
  });
518
- let f = this.getEdges();
519
- return f.forEach((e, n) => {
520
- let { arrowTypeStart: i, arrowTypeEnd: a } = this.destructEdgeType(e.type), o = [...f.defaultStyle ?? []], s = d.get(e.start) ?? e.start, c = d.get(e.end) ?? e.end;
521
- if (s === c && (d.has(e.start) || d.has(e.end))) return;
535
+ let _ = this.getEdges();
536
+ return _.forEach((e, n) => {
537
+ let { arrowTypeStart: i, arrowTypeEnd: a } = this.destructEdgeType(e.type), o = [..._.defaultStyle ?? []], s = g.get(e.start) ?? e.start, c = g.get(e.end) ?? e.end;
538
+ if (s === c && (g.has(e.start) || g.has(e.end))) return;
522
539
  e.style && o.push(...e.style);
523
540
  let l = {
524
- id: g(s, c, {
541
+ id: v(s, c, {
525
542
  counter: n,
526
543
  prefix: "L"
527
544
  }, e.id),
@@ -556,28 +573,28 @@ You have to call mermaid.initialize.`);
556
573
  };
557
574
  }
558
575
  defaultConfig() {
559
- return l.flowchart;
576
+ return d.flowchart;
560
577
  }
561
- }, D = {
578
+ }, ae = {
562
579
  getClasses: /* @__PURE__ */ e(function(e, t) {
563
580
  return t.db.getClasses();
564
581
  }, "getClasses"),
565
582
  draw: /* @__PURE__ */ e(async function(e, n, r, i) {
566
583
  t.info("REF0:"), t.info("Drawing state diagram (v2)", n);
567
- let { securityLevel: a, flowchart: o, layout: s } = m();
584
+ let { securityLevel: a, flowchart: o, layout: s } = u();
568
585
  i.db.setDiagramId(n), t.debug("Before getData: ");
569
586
  let c = i.db.getData();
570
587
  t.debug("Data: ", c);
571
- let l = y(n, a), u = i.db.getDirection();
572
- c.type = i.type, c.layoutAlgorithm = w(s), c.layoutAlgorithm === "dagre" && s === "elk" && t.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."), c.direction = u, c.nodeSpacing = o?.nodeSpacing || 50, c.rankSpacing = o?.rankSpacing || 50, c.markers = [
588
+ let l = C(n, a), d = i.db.getDirection();
589
+ c.type = i.type, c.layoutAlgorithm = E(s), c.direction = d, c.nodeSpacing = o?.nodeSpacing || 50, c.rankSpacing = o?.rankSpacing || 50, c.markers = [
573
590
  "point",
574
591
  "circle",
575
592
  "cross"
576
- ], c.diagramId = n, t.debug("REF1:", c), await x(c, l);
577
- let d = c.config.flowchart?.diagramPadding ?? 8;
578
- _.insertTitle(l, "flowchartTitleText", o?.titleTopMargin || 0, i.db.getDiagramTitle()), b(l, d, "flowchart", o?.useMaxWidth || !1);
593
+ ], c.diagramId = n, t.debug("REF1:", c), await T(c, l);
594
+ let f = c.config.flowchart?.diagramPadding ?? 8;
595
+ _.insertTitle(l, "flowchartTitleText", o?.titleTopMargin || 0, i.db.getDiagramTitle()), w(l, f, "flowchart", o?.useMaxWidth || !1);
579
596
  }, "draw")
580
- }, O = (function() {
597
+ }, oe = (function() {
581
598
  var t = /* @__PURE__ */ e(function(e, t, n, r) {
582
599
  for (n ||= {}, r = e.length; r--; n[e[r]] = t);
583
600
  return n;
@@ -612,7 +629,7 @@ You have to call mermaid.initialize.`);
612
629
  123,
613
630
  124,
614
631
  125
615
- ], o = [2, 2], s = [1, 13], c = [1, 14], l = [1, 15], u = [1, 16], d = [1, 23], f = [1, 25], p = [1, 26], ee = [1, 27], m = [1, 50], h = [1, 49], te = [1, 29], g = [1, 30], _ = [1, 31], ne = [1, 32], re = [1, 33], v = [1, 45], y = [1, 47], b = [1, 43], x = [1, 48], S = [1, 44], C = [1, 51], w = [1, 46], T = [1, 52], E = [1, 53], D = [1, 34], O = [1, 35], ie = [1, 36], ae = [1, 37], oe = [1, 38], k = [1, 58], A = [
632
+ ], o = [2, 2], s = [1, 13], c = [1, 14], l = [1, 15], u = [1, 16], d = [1, 23], f = [1, 25], p = [1, 26], m = [1, 27], h = [1, 50], g = [1, 49], _ = [1, 29], v = [1, 30], ee = [1, 31], te = [1, 32], ne = [1, 33], y = [1, 45], b = [1, 47], x = [1, 43], S = [1, 48], C = [1, 44], w = [1, 51], T = [1, 46], E = [1, 52], D = [1, 53], O = [1, 34], re = [1, 35], ie = [1, 36], ae = [1, 37], oe = [1, 38], k = [1, 58], A = [
616
633
  1,
617
634
  8,
618
635
  9,
@@ -1700,30 +1717,30 @@ You have to call mermaid.initialize.`);
1700
1717
  33: 24,
1701
1718
  34: f,
1702
1719
  36: p,
1703
- 38: ee,
1720
+ 38: m,
1704
1721
  42: 28,
1705
1722
  43: 39,
1706
- 44: m,
1723
+ 44: h,
1707
1724
  45: 40,
1708
1725
  47: 41,
1709
- 60: h,
1710
- 84: te,
1711
- 85: g,
1712
- 86: _,
1713
- 87: ne,
1714
- 88: re,
1715
- 89: v,
1716
- 102: y,
1717
- 105: b,
1718
- 106: x,
1719
- 109: S,
1720
- 111: C,
1726
+ 60: g,
1727
+ 84: _,
1728
+ 85: v,
1729
+ 86: ee,
1730
+ 87: te,
1731
+ 88: ne,
1732
+ 89: y,
1733
+ 102: b,
1734
+ 105: x,
1735
+ 106: S,
1736
+ 109: C,
1737
+ 111: w,
1721
1738
  113: 42,
1722
- 114: w,
1723
- 115: T,
1724
- 116: E,
1725
- 121: D,
1726
- 122: O,
1739
+ 114: T,
1740
+ 115: E,
1741
+ 116: D,
1742
+ 121: O,
1743
+ 122: re,
1727
1744
  123: ie,
1728
1745
  124: ae,
1729
1746
  125: oe
@@ -1834,28 +1851,28 @@ You have to call mermaid.initialize.`);
1834
1851
  t(P, [2, 72], {
1835
1852
  113: 113,
1836
1853
  29: [1, 101],
1837
- 44: m,
1854
+ 44: h,
1838
1855
  48: [1, 102],
1839
1856
  50: [1, 103],
1840
1857
  52: [1, 104],
1841
1858
  54: [1, 105],
1842
1859
  56: [1, 106],
1843
1860
  58: [1, 107],
1844
- 60: h,
1861
+ 60: g,
1845
1862
  63: [1, 108],
1846
1863
  65: [1, 109],
1847
1864
  67: [1, 110],
1848
1865
  68: [1, 111],
1849
1866
  70: [1, 112],
1850
- 89: v,
1851
- 102: y,
1852
- 105: b,
1853
- 106: x,
1854
- 109: S,
1855
- 111: C,
1856
- 114: w,
1857
- 115: T,
1858
- 116: E
1867
+ 89: y,
1868
+ 102: b,
1869
+ 105: x,
1870
+ 106: S,
1871
+ 109: C,
1872
+ 111: w,
1873
+ 114: T,
1874
+ 115: E,
1875
+ 116: D
1859
1876
  }),
1860
1877
  t(F, [2, 181]),
1861
1878
  t(F, [2, 142]),
@@ -1881,20 +1898,20 @@ You have to call mermaid.initialize.`);
1881
1898
  {
1882
1899
  42: 116,
1883
1900
  43: 39,
1884
- 44: m,
1901
+ 44: h,
1885
1902
  45: 40,
1886
1903
  47: 41,
1887
- 60: h,
1888
- 89: v,
1889
- 102: y,
1890
- 105: b,
1891
- 106: x,
1892
- 109: S,
1893
- 111: C,
1904
+ 60: g,
1905
+ 89: y,
1906
+ 102: b,
1907
+ 105: x,
1908
+ 106: S,
1909
+ 109: C,
1910
+ 111: w,
1894
1911
  113: 42,
1895
- 114: w,
1896
- 115: T,
1897
- 116: E
1912
+ 114: T,
1913
+ 115: E,
1914
+ 116: D
1898
1915
  },
1899
1916
  t(A, [2, 40]),
1900
1917
  t(A, [2, 41]),
@@ -1961,19 +1978,19 @@ You have to call mermaid.initialize.`);
1961
1978
  }),
1962
1979
  t(be, [2, 44]),
1963
1980
  {
1964
- 44: m,
1981
+ 44: h,
1965
1982
  47: 158,
1966
- 60: h,
1967
- 89: v,
1968
- 102: y,
1969
- 105: b,
1970
- 106: x,
1971
- 109: S,
1972
- 111: C,
1983
+ 60: g,
1984
+ 89: y,
1985
+ 102: b,
1986
+ 105: x,
1987
+ 106: S,
1988
+ 109: C,
1989
+ 111: w,
1973
1990
  113: 42,
1974
- 114: w,
1975
- 115: T,
1976
- 116: E
1991
+ 114: T,
1992
+ 115: E,
1993
+ 116: D
1977
1994
  },
1978
1995
  {
1979
1996
  102: [1, 159],
@@ -1981,34 +1998,34 @@ You have to call mermaid.initialize.`);
1981
1998
  105: [1, 161]
1982
1999
  },
1983
2000
  {
1984
- 44: m,
2001
+ 44: h,
1985
2002
  47: 162,
1986
- 60: h,
1987
- 89: v,
1988
- 102: y,
1989
- 105: b,
1990
- 106: x,
1991
- 109: S,
1992
- 111: C,
2003
+ 60: g,
2004
+ 89: y,
2005
+ 102: b,
2006
+ 105: x,
2007
+ 106: S,
2008
+ 109: C,
2009
+ 111: w,
1993
2010
  113: 42,
1994
- 114: w,
1995
- 115: T,
1996
- 116: E
2011
+ 114: T,
2012
+ 115: E,
2013
+ 116: D
1997
2014
  },
1998
2015
  {
1999
- 44: m,
2016
+ 44: h,
2000
2017
  47: 163,
2001
- 60: h,
2002
- 89: v,
2003
- 102: y,
2004
- 105: b,
2005
- 106: x,
2006
- 109: S,
2007
- 111: C,
2018
+ 60: g,
2019
+ 89: y,
2020
+ 102: b,
2021
+ 105: x,
2022
+ 106: S,
2023
+ 109: C,
2024
+ 111: w,
2008
2025
  113: 42,
2009
- 114: w,
2010
- 115: T,
2011
- 116: E
2026
+ 114: T,
2027
+ 115: E,
2028
+ 116: D
2012
2029
  },
2013
2030
  t(I, [2, 107], {
2014
2031
  10: [1, 164],
@@ -2044,19 +2061,19 @@ You have to call mermaid.initialize.`);
2044
2061
  t(L, [2, 179]),
2045
2062
  t(L, [2, 180]),
2046
2063
  {
2047
- 44: m,
2064
+ 44: h,
2048
2065
  47: 170,
2049
- 60: h,
2050
- 89: v,
2051
- 102: y,
2052
- 105: b,
2053
- 106: x,
2054
- 109: S,
2055
- 111: C,
2066
+ 60: g,
2067
+ 89: y,
2068
+ 102: b,
2069
+ 105: x,
2070
+ 106: S,
2071
+ 109: C,
2072
+ 111: w,
2056
2073
  113: 42,
2057
- 114: w,
2058
- 115: T,
2059
- 116: E
2074
+ 114: T,
2075
+ 115: E,
2076
+ 116: D
2060
2077
  },
2061
2078
  {
2062
2079
  30: 171,
@@ -2285,30 +2302,30 @@ You have to call mermaid.initialize.`);
2285
2302
  33: 24,
2286
2303
  34: f,
2287
2304
  36: p,
2288
- 38: ee,
2305
+ 38: m,
2289
2306
  42: 28,
2290
2307
  43: 39,
2291
- 44: m,
2308
+ 44: h,
2292
2309
  45: 40,
2293
2310
  47: 41,
2294
- 60: h,
2295
- 84: te,
2296
- 85: g,
2297
- 86: _,
2298
- 87: ne,
2299
- 88: re,
2300
- 89: v,
2301
- 102: y,
2302
- 105: b,
2303
- 106: x,
2304
- 109: S,
2305
- 111: C,
2311
+ 60: g,
2312
+ 84: _,
2313
+ 85: v,
2314
+ 86: ee,
2315
+ 87: te,
2316
+ 88: ne,
2317
+ 89: y,
2318
+ 102: b,
2319
+ 105: x,
2320
+ 106: S,
2321
+ 109: C,
2322
+ 111: w,
2306
2323
  113: 42,
2307
- 114: w,
2308
- 115: T,
2309
- 116: E,
2310
- 121: D,
2311
- 122: O,
2324
+ 114: T,
2325
+ 115: E,
2326
+ 116: D,
2327
+ 121: O,
2328
+ 122: re,
2312
2329
  123: ie,
2313
2330
  124: ae,
2314
2331
  125: oe
@@ -2321,18 +2338,18 @@ You have to call mermaid.initialize.`);
2321
2338
  t(be, [2, 43]),
2322
2339
  {
2323
2340
  10: [1, 206],
2324
- 44: m,
2325
- 60: h,
2326
- 89: v,
2327
- 102: y,
2328
- 105: b,
2329
- 106: x,
2330
- 109: S,
2331
- 111: C,
2341
+ 44: h,
2342
+ 60: g,
2343
+ 89: y,
2344
+ 102: b,
2345
+ 105: x,
2346
+ 106: S,
2347
+ 109: C,
2348
+ 111: w,
2332
2349
  113: 113,
2333
- 114: w,
2334
- 115: T,
2335
- 116: E
2350
+ 114: T,
2351
+ 115: E,
2352
+ 116: D
2336
2353
  },
2337
2354
  { 10: [1, 207] },
2338
2355
  {
@@ -2342,33 +2359,33 @@ You have to call mermaid.initialize.`);
2342
2359
  t($e, [2, 128]),
2343
2360
  {
2344
2361
  10: [1, 210],
2345
- 44: m,
2346
- 60: h,
2347
- 89: v,
2348
- 102: y,
2349
- 105: b,
2350
- 106: x,
2351
- 109: S,
2352
- 111: C,
2362
+ 44: h,
2363
+ 60: g,
2364
+ 89: y,
2365
+ 102: b,
2366
+ 105: x,
2367
+ 106: S,
2368
+ 109: C,
2369
+ 111: w,
2353
2370
  113: 113,
2354
- 114: w,
2355
- 115: T,
2356
- 116: E
2371
+ 114: T,
2372
+ 115: E,
2373
+ 116: D
2357
2374
  },
2358
2375
  {
2359
2376
  10: [1, 211],
2360
- 44: m,
2361
- 60: h,
2362
- 89: v,
2363
- 102: y,
2364
- 105: b,
2365
- 106: x,
2366
- 109: S,
2367
- 111: C,
2377
+ 44: h,
2378
+ 60: g,
2379
+ 89: y,
2380
+ 102: b,
2381
+ 105: x,
2382
+ 106: S,
2383
+ 109: C,
2384
+ 111: w,
2368
2385
  113: 113,
2369
- 114: w,
2370
- 115: T,
2371
- 116: E
2386
+ 114: T,
2387
+ 115: E,
2388
+ 116: D
2372
2389
  },
2373
2390
  { 80: [1, 212] },
2374
2391
  t(I, [2, 109], { 10: [1, 213] }),
@@ -2381,17 +2398,17 @@ You have to call mermaid.initialize.`);
2381
2398
  },
2382
2399
  t(be, [2, 55], {
2383
2400
  113: 113,
2384
- 44: m,
2385
- 60: h,
2386
- 89: v,
2387
- 102: y,
2388
- 105: b,
2389
- 106: x,
2390
- 109: S,
2391
- 111: C,
2392
- 114: w,
2393
- 115: T,
2394
- 116: E
2401
+ 44: h,
2402
+ 60: g,
2403
+ 89: y,
2404
+ 102: b,
2405
+ 105: x,
2406
+ 106: S,
2407
+ 109: C,
2408
+ 111: w,
2409
+ 114: T,
2410
+ 115: E,
2411
+ 116: D
2395
2412
  }),
2396
2413
  {
2397
2414
  31: [1, 218],
@@ -2550,20 +2567,20 @@ You have to call mermaid.initialize.`);
2550
2567
  t(A, [2, 35]),
2551
2568
  {
2552
2569
  43: 239,
2553
- 44: m,
2570
+ 44: h,
2554
2571
  45: 40,
2555
2572
  47: 41,
2556
- 60: h,
2557
- 89: v,
2558
- 102: y,
2559
- 105: b,
2560
- 106: x,
2561
- 109: S,
2562
- 111: C,
2573
+ 60: g,
2574
+ 89: y,
2575
+ 102: b,
2576
+ 105: x,
2577
+ 106: S,
2578
+ 109: C,
2579
+ 111: w,
2563
2580
  113: 42,
2564
- 114: w,
2565
- 115: T,
2566
- 116: E
2581
+ 114: T,
2582
+ 115: E,
2583
+ 116: D
2567
2584
  },
2568
2585
  {
2569
2586
  10: k,
@@ -2625,19 +2642,19 @@ You have to call mermaid.initialize.`);
2625
2642
  112: Q
2626
2643
  },
2627
2644
  {
2628
- 44: m,
2645
+ 44: h,
2629
2646
  47: 258,
2630
- 60: h,
2631
- 89: v,
2632
- 102: y,
2633
- 105: b,
2634
- 106: x,
2635
- 109: S,
2636
- 111: C,
2647
+ 60: g,
2648
+ 89: y,
2649
+ 102: b,
2650
+ 105: x,
2651
+ 106: S,
2652
+ 109: C,
2653
+ 111: w,
2637
2654
  113: 42,
2638
- 114: w,
2639
- 115: T,
2640
- 116: E
2655
+ 114: T,
2656
+ 115: E,
2657
+ 116: D
2641
2658
  },
2642
2659
  t(I, [2, 108]),
2643
2660
  { 80: [1, 259] },
@@ -2720,30 +2737,30 @@ You have to call mermaid.initialize.`);
2720
2737
  33: 24,
2721
2738
  34: f,
2722
2739
  36: p,
2723
- 38: ee,
2740
+ 38: m,
2724
2741
  42: 28,
2725
2742
  43: 39,
2726
- 44: m,
2743
+ 44: h,
2727
2744
  45: 40,
2728
2745
  47: 41,
2729
- 60: h,
2730
- 84: te,
2731
- 85: g,
2732
- 86: _,
2733
- 87: ne,
2734
- 88: re,
2735
- 89: v,
2736
- 102: y,
2737
- 105: b,
2738
- 106: x,
2739
- 109: S,
2740
- 111: C,
2746
+ 60: g,
2747
+ 84: _,
2748
+ 85: v,
2749
+ 86: ee,
2750
+ 87: te,
2751
+ 88: ne,
2752
+ 89: y,
2753
+ 102: b,
2754
+ 105: x,
2755
+ 106: S,
2756
+ 109: C,
2757
+ 111: w,
2741
2758
  113: 42,
2742
- 114: w,
2743
- 115: T,
2744
- 116: E,
2745
- 121: D,
2746
- 122: O,
2759
+ 114: T,
2760
+ 115: E,
2761
+ 116: D,
2762
+ 121: O,
2763
+ 122: re,
2747
2764
  123: ie,
2748
2765
  124: ae,
2749
2766
  125: oe
@@ -2751,20 +2768,20 @@ You have to call mermaid.initialize.`);
2751
2768
  t(be, [2, 53]),
2752
2769
  {
2753
2770
  43: 268,
2754
- 44: m,
2771
+ 44: h,
2755
2772
  45: 40,
2756
2773
  47: 41,
2757
- 60: h,
2758
- 89: v,
2759
- 102: y,
2760
- 105: b,
2761
- 106: x,
2762
- 109: S,
2763
- 111: C,
2774
+ 60: g,
2775
+ 89: y,
2776
+ 102: b,
2777
+ 105: x,
2778
+ 106: S,
2779
+ 109: C,
2780
+ 111: w,
2764
2781
  113: 42,
2765
- 114: w,
2766
- 115: T,
2767
- 116: E
2782
+ 114: T,
2783
+ 115: E,
2784
+ 116: D
2768
2785
  },
2769
2786
  t(I, [2, 121], { 106: tt }),
2770
2787
  t(nt, [2, 130], {
@@ -2795,17 +2812,17 @@ You have to call mermaid.initialize.`);
2795
2812
  t(I, [2, 105], { 106: tt }),
2796
2813
  t(I, [2, 106], {
2797
2814
  113: 113,
2798
- 44: m,
2799
- 60: h,
2800
- 89: v,
2801
- 102: y,
2802
- 105: b,
2803
- 106: x,
2804
- 109: S,
2805
- 111: C,
2806
- 114: w,
2807
- 115: T,
2808
- 116: E
2815
+ 44: h,
2816
+ 60: g,
2817
+ 89: y,
2818
+ 102: b,
2819
+ 105: x,
2820
+ 106: S,
2821
+ 109: C,
2822
+ 111: w,
2823
+ 114: T,
2824
+ 115: E,
2825
+ 116: D
2809
2826
  }),
2810
2827
  t(I, [2, 110]),
2811
2828
  t(I, [2, 112], { 10: [1, 273] }),
@@ -2948,30 +2965,30 @@ You have to call mermaid.initialize.`);
2948
2965
  33: 24,
2949
2966
  34: f,
2950
2967
  36: p,
2951
- 38: ee,
2968
+ 38: m,
2952
2969
  42: 28,
2953
2970
  43: 39,
2954
- 44: m,
2971
+ 44: h,
2955
2972
  45: 40,
2956
2973
  47: 41,
2957
- 60: h,
2958
- 84: te,
2959
- 85: g,
2960
- 86: _,
2961
- 87: ne,
2962
- 88: re,
2963
- 89: v,
2964
- 102: y,
2965
- 105: b,
2966
- 106: x,
2967
- 109: S,
2968
- 111: C,
2974
+ 60: g,
2975
+ 84: _,
2976
+ 85: v,
2977
+ 86: ee,
2978
+ 87: te,
2979
+ 88: ne,
2980
+ 89: y,
2981
+ 102: b,
2982
+ 105: x,
2983
+ 106: S,
2984
+ 109: C,
2985
+ 111: w,
2969
2986
  113: 42,
2970
- 114: w,
2971
- 115: T,
2972
- 116: E,
2973
- 121: D,
2974
- 122: O,
2987
+ 114: T,
2988
+ 115: E,
2989
+ 116: D,
2990
+ 121: O,
2991
+ 122: re,
2975
2992
  123: ie,
2976
2993
  124: ae,
2977
2994
  125: oe
@@ -3016,55 +3033,55 @@ You have to call mermaid.initialize.`);
3016
3033
  }
3017
3034
  }, "parseError"),
3018
3035
  parse: /* @__PURE__ */ e(function(t) {
3019
- var n = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, ee = o.slice.call(arguments, 1), m = Object.create(this.lexer), h = { yy: {} };
3020
- for (var te in this.yy) Object.prototype.hasOwnProperty.call(this.yy, te) && (h.yy[te] = this.yy[te]);
3021
- m.setInput(t, h.yy), h.yy.lexer = m, h.yy.parser = this, m.yylloc === void 0 && (m.yylloc = {});
3022
- var g = m.yylloc;
3023
- o.push(g);
3024
- var _ = m.options && m.options.ranges;
3025
- this.parseError = typeof h.yy.parseError == "function" ? h.yy.parseError : Object.getPrototypeOf(this).parseError;
3026
- function ne(e) {
3036
+ 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: {} };
3037
+ for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
3038
+ h.setInput(t, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
3039
+ var v = h.yylloc;
3040
+ o.push(v);
3041
+ var ee = h.options && h.options.ranges;
3042
+ this.parseError = typeof g.yy.parseError == "function" ? g.yy.parseError : Object.getPrototypeOf(this).parseError;
3043
+ function te(e) {
3027
3044
  r.length -= 2 * e, a.length -= e, o.length -= e;
3028
3045
  }
3029
- e(ne, "popStack");
3030
- function re() {
3031
- var e = i.pop() || m.lex() || p;
3046
+ e(te, "popStack");
3047
+ function ne() {
3048
+ var e = i.pop() || h.lex() || p;
3032
3049
  return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
3033
3050
  }
3034
- e(re, "lex");
3035
- for (var v, y, b, x, S, C = {}, w, T, E, D;;) {
3036
- if (b = r[r.length - 1], this.defaultActions[b] ? x = this.defaultActions[b] : (v ??= re(), x = s[b] && s[b][v]), x === void 0 || !x.length || !x[0]) {
3037
- var O = "";
3038
- for (w in D = [], s[b]) this.terminals_[w] && w > f && D.push("'" + this.terminals_[w] + "'");
3039
- O = m.showPosition ? "Parse error on line " + (l + 1) + ":\n" + m.showPosition() + "\nExpecting " + D.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (v == p ? "end of input" : "'" + (this.terminals_[v] || v) + "'"), this.parseError(O, {
3040
- text: m.match,
3041
- token: this.terminals_[v] || v,
3042
- line: m.yylineno,
3043
- loc: g,
3044
- expected: D
3051
+ e(ne, "lex");
3052
+ for (var y, b, x, S, C, w = {}, T, E, D, O;;) {
3053
+ if (x = r[r.length - 1], this.defaultActions[x] ? S = this.defaultActions[x] : (y ??= ne(), S = s[x] && s[x][y]), S === void 0 || !S.length || !S[0]) {
3054
+ var re = "";
3055
+ for (T in O = [], s[x]) this.terminals_[T] && T > f && O.push("'" + this.terminals_[T] + "'");
3056
+ re = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + O.join(", ") + ", got '" + (this.terminals_[y] || y) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (y == p ? "end of input" : "'" + (this.terminals_[y] || y) + "'"), this.parseError(re, {
3057
+ text: h.match,
3058
+ token: this.terminals_[y] || y,
3059
+ line: h.yylineno,
3060
+ loc: v,
3061
+ expected: O
3045
3062
  });
3046
3063
  }
3047
- if (x[0] instanceof Array && x.length > 1) throw Error("Parse Error: multiple actions possible at state: " + b + ", token: " + v);
3048
- switch (x[0]) {
3064
+ if (S[0] instanceof Array && S.length > 1) throw Error("Parse Error: multiple actions possible at state: " + x + ", token: " + y);
3065
+ switch (S[0]) {
3049
3066
  case 1:
3050
- r.push(v), a.push(m.yytext), o.push(m.yylloc), r.push(x[1]), v = null, y ? (v = y, y = null) : (u = m.yyleng, c = m.yytext, l = m.yylineno, g = m.yylloc, d > 0 && d--);
3067
+ r.push(y), a.push(h.yytext), o.push(h.yylloc), r.push(S[1]), y = null, b ? (y = b, b = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
3051
3068
  break;
3052
3069
  case 2:
3053
- if (T = this.productions_[x[1]][1], C.$ = a[a.length - T], C._$ = {
3054
- first_line: o[o.length - (T || 1)].first_line,
3070
+ if (E = this.productions_[S[1]][1], w.$ = a[a.length - E], w._$ = {
3071
+ first_line: o[o.length - (E || 1)].first_line,
3055
3072
  last_line: o[o.length - 1].last_line,
3056
- first_column: o[o.length - (T || 1)].first_column,
3073
+ first_column: o[o.length - (E || 1)].first_column,
3057
3074
  last_column: o[o.length - 1].last_column
3058
- }, _ && (C._$.range = [o[o.length - (T || 1)].range[0], o[o.length - 1].range[1]]), S = this.performAction.apply(C, [
3075
+ }, ee && (w._$.range = [o[o.length - (E || 1)].range[0], o[o.length - 1].range[1]]), C = this.performAction.apply(w, [
3059
3076
  c,
3060
3077
  u,
3061
3078
  l,
3062
- h.yy,
3063
- x[1],
3079
+ g.yy,
3080
+ S[1],
3064
3081
  a,
3065
3082
  o
3066
- ].concat(ee)), S !== void 0) return S;
3067
- T && (r = r.slice(0, -1 * T * 2), a = a.slice(0, -1 * T), o = o.slice(0, -1 * T)), r.push(this.productions_[x[1]][0]), a.push(C.$), o.push(C._$), E = s[r[r.length - 2]][r[r.length - 1]], r.push(E);
3083
+ ].concat(m)), C !== void 0) return C;
3084
+ E && (r = r.slice(0, -1 * E * 2), a = a.slice(0, -1 * E), o = o.slice(0, -1 * E)), r.push(this.productions_[S[1]][0]), a.push(w.$), o.push(w._$), D = s[r[r.length - 2]][r[r.length - 1]], r.push(D);
3068
3085
  break;
3069
3086
  case 3: return !0;
3070
3087
  }
@@ -3481,7 +3498,7 @@ You have to call mermaid.initialize.`);
3481
3498
  /^(?:[^\[\]\(\)\{\}\|\"]+)/,
3482
3499
  /^(?:")/,
3483
3500
  /^(?:(\r?\n)+)/,
3484
- /^(?:\s)/,
3501
+ /^(?:[^\S\n\r]+)/,
3485
3502
  /^(?:$)/
3486
3503
  ],
3487
3504
  conditions: {
@@ -4003,16 +4020,70 @@ You have to call mermaid.initialize.`);
4003
4020
  }
4004
4021
  return e(it, "Parser"), it.prototype = rt, rt.Parser = it, new it();
4005
4022
  })();
4006
- O.parser = O;
4007
- var ie = O, ae = Object.assign({}, ie);
4008
- ae.parse = (e) => {
4023
+ oe.parser = oe;
4024
+ var k = oe, A = Object.assign({}, k);
4025
+ A.parse = (e) => {
4009
4026
  let t = e.replace(/}\s*\n/g, "}\n");
4010
- return ie.parse(t);
4027
+ return k.parse(t);
4011
4028
  };
4012
- var oe = ae, k = /* @__PURE__ */ e((e, t) => {
4013
- let n = te, r = n(e, "r"), i = n(e, "g"), a = n(e, "b");
4014
- return u(r, i, a, t);
4015
- }, "fade"), A = /* @__PURE__ */ e((e) => `.label {
4029
+ var j = A, M = /* @__PURE__ */ e((t) => {
4030
+ let { theme: n, bkgColorArray: r, borderColorArray: i } = t;
4031
+ if (!te(n, i)) return "";
4032
+ let a = y(t.look), o = b(r), s = "";
4033
+ for (let n = 0; n < ne(t.THEME_COLOR_LIMIT, i); n++) {
4034
+ let t = i[n % i.length], c = o ? `fill: ${r[n % r.length]};` : "", l = `[data-look="${a}"][data-color-id="color-${n}"]`, u = /* @__PURE__ */ e((e) => `${l}.node ${e}, ${l}.rough-node ${e}`, "collapsedRule"), d = /* @__PURE__ */ e((e) => `${l}.swimlane.cluster .swimlane-title${e}, ${l}.swimlane.cluster .swimlane-body${e}`, "laneRule");
4035
+ s += `
4036
+
4037
+ ${l}.cluster:not(.swimlane) rect {
4038
+ stroke: ${t};
4039
+ ${c}
4040
+ }
4041
+
4042
+ ${l}.cluster:not(.swimlane) path {
4043
+ stroke: ${t};
4044
+ ${c}
4045
+ }
4046
+
4047
+ /* Lane, classic and neo. */
4048
+ ${l}.swimlane.cluster rect.swimlane-title,
4049
+ ${l}.swimlane.cluster rect.swimlane-body {
4050
+ stroke: ${t};
4051
+ ${c}
4052
+ }
4053
+
4054
+ /* Lane, handDrawn: roughjs emits the hachure fill first, then the outline. */
4055
+ ${d(" path:nth-of-type(2)")} {
4056
+ stroke: ${t};
4057
+ }
4058
+ ${o ? `
4059
+ /* A roughjs fill is drawn as lines, so the lane fill is a stroke here. */
4060
+ ${d(" path:first-of-type")} {
4061
+ stroke: ${r[n % r.length]};
4062
+ }
4063
+ ` : ""}
4064
+ ${u(".collapsed-group")},
4065
+ ${u(".collapsed-group path")} {
4066
+ stroke: ${t};
4067
+ ${c}
4068
+ }
4069
+
4070
+ /* The ellipsis dots and the separator take clusterBorder further down, so without
4071
+ these the container is palette-coloured while its own markers are not. */
4072
+ ${u(".collapsed-indicator")} {
4073
+ fill: ${t};
4074
+ }
4075
+
4076
+ ${u(".collapsed-separator")} {
4077
+ stroke: ${t};
4078
+ }
4079
+ `;
4080
+ }
4081
+ return s;
4082
+ }, "genColor"), N = /* @__PURE__ */ e((e, t) => {
4083
+ let n = g, r = n(e, "r"), i = n(e, "g"), a = n(e, "b");
4084
+ return l(r, i, a, t);
4085
+ }, "fade"), se = /* @__PURE__ */ e((e) => `${M(e)}
4086
+ .label {
4016
4087
  font-family: ${e.fontFamily};
4017
4088
  color: ${e.nodeTextColor || e.textColor};
4018
4089
  }
@@ -4068,7 +4139,7 @@ var oe = ae, k = /* @__PURE__ */ e((e, t) => {
4068
4139
  fill: ${e.arrowheadColor};
4069
4140
  }
4070
4141
 
4071
- .edgePath .path {
4142
+ .edgePaths .path {
4072
4143
  stroke: ${e.lineColor};
4073
4144
  stroke-width: ${e.strokeWidth ?? 2}px;
4074
4145
  }
@@ -4093,7 +4164,7 @@ var oe = ae, k = /* @__PURE__ */ e((e, t) => {
4093
4164
 
4094
4165
  /* For html labels only */
4095
4166
  .labelBkg {
4096
- background-color: ${k(e.edgeLabelBackground, .5)};
4167
+ background-color: ${N(e.edgeLabelBackground, .5)};
4097
4168
  // background-color:
4098
4169
  }
4099
4170
 
@@ -4164,19 +4235,17 @@ var oe = ae, k = /* @__PURE__ */ e((e, t) => {
4164
4235
  }
4165
4236
  text-align: center;
4166
4237
  }
4167
- ${ne()}
4168
- `, "getStyles"), j = /* @__PURE__ */ e(({ defaultLayout: t, styles: n = A } = {}) => ({
4169
- parser: oe,
4238
+ ${ee()}
4239
+ `, "getStyles"), ce = /* @__PURE__ */ e(({ styles: t = se } = {}) => ({
4240
+ parser: j,
4170
4241
  get db() {
4171
- return new E();
4242
+ return new ie();
4172
4243
  },
4173
- renderer: D,
4174
- styles: n,
4244
+ renderer: ae,
4245
+ styles: t,
4175
4246
  init: /* @__PURE__ */ e((e) => {
4176
- e.flowchart ||= {};
4177
- let n = d().layout ?? t ?? e.layout;
4178
- n && i({ layout: n }), e.flowchart.arrowMarkerAbsolute = e.arrowMarkerAbsolute, i({ flowchart: { arrowMarkerAbsolute: e.arrowMarkerAbsolute } });
4247
+ e.flowchart ||= {}, e.flowchart.arrowMarkerAbsolute = e.arrowMarkerAbsolute, i({ flowchart: { arrowMarkerAbsolute: e.arrowMarkerAbsolute } });
4179
4248
  }, "init")
4180
- }), "createFlowDiagram"), M = j();
4249
+ }), "createFlowDiagram"), le = ce();
4181
4250
  //#endregion
4182
- export { M as n, A as r, j as t };
4251
+ export { le as n, se as r, ce as t };