@sme.up/ketchup2 2.1.0 → 2.2.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 (203) hide show
  1. package/dist/{architectureDiagram-Q4EWVU46-JSjagcXX.cjs → architectureDiagram-Q4EWVU46-CX_6DnSJ.cjs} +1 -1
  2. package/dist/{architectureDiagram-Q4EWVU46-u2vgZv3N.js → architectureDiagram-Q4EWVU46-CnzjcVBn.js} +4 -4
  3. package/dist/assets/buttonListAssets.d.ts +8 -0
  4. package/dist/assets/buttonListAssets.d.ts.map +1 -1
  5. package/dist/basic-components/button/button-types.d.ts +4 -0
  6. package/dist/basic-components/button/button-types.d.ts.map +1 -1
  7. package/dist/basic-components/button-dropdown/button-dropdown-types.d.ts +16 -0
  8. package/dist/basic-components/button-dropdown/button-dropdown-types.d.ts.map +1 -0
  9. package/dist/basic-components/button-dropdown/button-dropdown.d.ts +4 -0
  10. package/dist/basic-components/button-dropdown/button-dropdown.d.ts.map +1 -0
  11. package/dist/basic-components/button-list/button-list-types.d.ts +6 -0
  12. package/dist/basic-components/button-list/button-list-types.d.ts.map +1 -1
  13. package/dist/basic-components/button-list/button-list.d.ts.map +1 -1
  14. package/dist/basic-components/cell/cell-utils.d.ts +11 -4
  15. package/dist/basic-components/cell/cell-utils.d.ts.map +1 -1
  16. package/dist/basic-components/cell/cell.d.ts.map +1 -1
  17. package/dist/basic-components/image/image.d.ts.map +1 -1
  18. package/dist/basic-components/image-cell/image-cell-types.d.ts +12 -3
  19. package/dist/basic-components/image-cell/image-cell-types.d.ts.map +1 -1
  20. package/dist/basic-components/image-cell/image-cell.d.ts.map +1 -1
  21. package/dist/basic-components/text/text.d.ts.map +1 -1
  22. package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
  23. package/dist/{blockDiagram-DXYQGD6D-BpB6_kTP.js → blockDiagram-DXYQGD6D-B0NvV2Ph.js} +8 -8
  24. package/dist/{blockDiagram-DXYQGD6D-DlcDXSwH.cjs → blockDiagram-DXYQGD6D-D6DypQdM.cjs} +1 -1
  25. package/dist/{c4Diagram-AHTNJAMY-B5Z8nO1s.js → c4Diagram-AHTNJAMY-DPijI3_r.js} +3 -3
  26. package/dist/{c4Diagram-AHTNJAMY-CX5IjREU.cjs → c4Diagram-AHTNJAMY-Dgwv-e5O.cjs} +1 -1
  27. package/dist/{channel-BqNr2cYO.js → channel-CRWct3-i.js} +1 -1
  28. package/dist/channel-DkTvdPpU.cjs +1 -0
  29. package/dist/{chunk-336JU56O-CuXRn1VH.cjs → chunk-336JU56O-DQhIGd25.cjs} +1 -1
  30. package/dist/{chunk-336JU56O-xKPgkG3O.js → chunk-336JU56O-DkZvWJVe.js} +5 -5
  31. package/dist/{chunk-426QAEUC-JjFVHKYG.js → chunk-426QAEUC-CDXJVpQr.js} +1 -1
  32. package/dist/{chunk-426QAEUC-Df31vuwu.cjs → chunk-426QAEUC-CqN26l3E.cjs} +1 -1
  33. package/dist/{chunk-4TB4RGXK-DdKJIFS5.cjs → chunk-4TB4RGXK-B0SIkKDf.cjs} +1 -1
  34. package/dist/{chunk-4TB4RGXK-CKyHmNcP.js → chunk-4TB4RGXK-D2LRzcEP.js} +5 -5
  35. package/dist/{chunk-5FUZZQ4R-D_vnCbAb.cjs → chunk-5FUZZQ4R-Cj5KbGC7.cjs} +1 -1
  36. package/dist/{chunk-5FUZZQ4R-2kdZJWq2.js → chunk-5FUZZQ4R-D3C0F0Tr.js} +5 -5
  37. package/dist/{chunk-5PVQY5BW-CfQDYQZt.cjs → chunk-5PVQY5BW-DEPZKGvb.cjs} +1 -1
  38. package/dist/{chunk-5PVQY5BW-C5U7sJAA.js → chunk-5PVQY5BW-Dn8n6moB.js} +1 -1
  39. package/dist/{chunk-EDXVE4YY-BZsJORf8.cjs → chunk-EDXVE4YY-1dwNWzc7.cjs} +1 -1
  40. package/dist/{chunk-EDXVE4YY-Bzf4FU3i.js → chunk-EDXVE4YY-CGNVB686.js} +1 -1
  41. package/dist/{chunk-ENJZ2VHE-CwgVASaU.cjs → chunk-ENJZ2VHE-BAWfx0nA.cjs} +1 -1
  42. package/dist/{chunk-ENJZ2VHE-BluGQPyl.js → chunk-ENJZ2VHE-CZ7BvL2h.js} +7 -7
  43. package/dist/{chunk-ICPOFSXX-Sn6LWD0k.js → chunk-ICPOFSXX-fQJ5ufMR.js} +435 -431
  44. package/dist/{chunk-ICPOFSXX-CoaJw-IT.cjs → chunk-ICPOFSXX-hY6BIZ4Y.cjs} +5 -5
  45. package/dist/{chunk-OYMX7WX6-BCT45RPu.cjs → chunk-OYMX7WX6-CrK-lehh.cjs} +1 -1
  46. package/dist/{chunk-OYMX7WX6-BQADsxYi.js → chunk-OYMX7WX6-DJkGVCqi.js} +4 -4
  47. package/dist/{chunk-U2HBQHQK-D0AoQWxK.cjs → chunk-U2HBQHQK-CJ77uizk.cjs} +1 -1
  48. package/dist/{chunk-U2HBQHQK-BZ3YFMXB.js → chunk-U2HBQHQK-Ceyeq0IV.js} +2 -2
  49. package/dist/{chunk-X2U36JSP-D1RYKjVc.cjs → chunk-X2U36JSP-CtXjVqek.cjs} +1 -1
  50. package/dist/{chunk-X2U36JSP-CY7mJR8m.js → chunk-X2U36JSP-VxRY65ea.js} +1 -1
  51. package/dist/{chunk-YZCP3GAM-9K9WNdyN.js → chunk-YZCP3GAM-D6P3SWmL.js} +1 -1
  52. package/dist/{chunk-YZCP3GAM-BmaAafMm.cjs → chunk-YZCP3GAM-qxaNo0r8.cjs} +1 -1
  53. package/dist/{chunk-ZZ45TVLE-AQQsnXy4.cjs → chunk-ZZ45TVLE-BfSqZnT4.cjs} +1 -1
  54. package/dist/{chunk-ZZ45TVLE-CIYrdg-O.js → chunk-ZZ45TVLE-X2jolXSO.js} +2 -2
  55. package/dist/classDiagram-6PBFFD2Q-BT4_JTnP.cjs +1 -0
  56. package/dist/{classDiagram-6PBFFD2Q-XGxl_AeB.js → classDiagram-6PBFFD2Q-Dgaxt4wI.js} +11 -11
  57. package/dist/{classDiagram-v2-HSJHXN6E-CwayYG4G.js → classDiagram-v2-HSJHXN6E-CWhiK6nm.js} +11 -11
  58. package/dist/classDiagram-v2-HSJHXN6E-DkBLzgTv.cjs +1 -0
  59. package/dist/clone-CQQwPjME.cjs +1 -0
  60. package/dist/{clone-Dn__H8fX.js → clone-Dwbh_blD.js} +1 -1
  61. package/dist/components/drawer/drawer-types.d.ts +4 -0
  62. package/dist/components/drawer/drawer-types.d.ts.map +1 -1
  63. package/dist/components/planner/planner-assets.d.ts +1 -1
  64. package/dist/components/planner/planner-assets.d.ts.map +1 -1
  65. package/dist/components/planner/planner-types.d.ts +1 -1
  66. package/dist/components/planner/planner-types.d.ts.map +1 -1
  67. package/dist/components/planner/planner-utils.d.ts +6 -5
  68. package/dist/components/planner/planner-utils.d.ts.map +1 -1
  69. package/dist/components/planner/planner.d.ts.map +1 -1
  70. package/dist/components/scaffold/context/scaffold-provider.d.ts.map +1 -1
  71. package/dist/components/scaffold/scaffold-types.d.ts +1 -0
  72. package/dist/components/scaffold/scaffold-types.d.ts.map +1 -1
  73. package/dist/components/timeline/timeline-types.d.ts +6 -2
  74. package/dist/components/timeline/timeline-types.d.ts.map +1 -1
  75. package/dist/components/timeline/timeline.d.ts.map +1 -1
  76. package/dist/components/toolbar/toolbar.d.ts.map +1 -1
  77. package/dist/components/tooltip/tooltip.d.ts.map +1 -1
  78. package/dist/{dagre-BjnWDdkw.cjs → dagre-BcwvU6ZF.cjs} +1 -1
  79. package/dist/{dagre-DVLnxd7n.js → dagre-D17h-Z-U.js} +2 -2
  80. package/dist/{dagre-KV5264BT-BjqayRYC.js → dagre-KV5264BT-BnEKAAAn.js} +10 -10
  81. package/dist/{dagre-KV5264BT-BvInGAUC.cjs → dagre-KV5264BT-DRbiLA37.cjs} +1 -1
  82. package/dist/{diagram-5BDNPKRD-Bk7depC0.js → diagram-5BDNPKRD-B_Fa4dpl.js} +3 -3
  83. package/dist/{diagram-5BDNPKRD-D6EXksHo.cjs → diagram-5BDNPKRD-CPN8m2Hl.cjs} +1 -1
  84. package/dist/{diagram-G4DWMVQ6-CJASbR70.cjs → diagram-G4DWMVQ6-VpXkNb67.cjs} +1 -1
  85. package/dist/{diagram-G4DWMVQ6-BkQnbCLv.js → diagram-G4DWMVQ6-iYV58Drq.js} +5 -5
  86. package/dist/{diagram-MMDJMWI5-DEt7jQx9.cjs → diagram-MMDJMWI5-DGk_PUo9.cjs} +1 -1
  87. package/dist/{diagram-MMDJMWI5-DUUVPi55.js → diagram-MMDJMWI5-DUpEI5ug.js} +3 -3
  88. package/dist/{diagram-TYMM5635-5auoAFCi.cjs → diagram-TYMM5635-BH_-vSv9.cjs} +1 -1
  89. package/dist/{diagram-TYMM5635-Cpj8wfoJ.js → diagram-TYMM5635-DHHPZ5ZJ.js} +3 -3
  90. package/dist/{erDiagram-SMLLAGMA-D_ByPk0C.js → erDiagram-SMLLAGMA-C8FM7wbJ.js} +10 -10
  91. package/dist/{erDiagram-SMLLAGMA-DVUT6TBy.cjs → erDiagram-SMLLAGMA-vuYEmfFA.cjs} +1 -1
  92. package/dist/{flowDiagram-DWJPFMVM-BWrkDnqc.js → flowDiagram-DWJPFMVM-BGtX2gw0.js} +11 -11
  93. package/dist/{flowDiagram-DWJPFMVM-BbK42NaF.cjs → flowDiagram-DWJPFMVM-DWuKiJeo.cjs} +1 -1
  94. package/dist/functional-components/action/action-types.d.ts +26 -1
  95. package/dist/functional-components/action/action-types.d.ts.map +1 -1
  96. package/dist/functional-components/action/action-utils.d.ts +13 -1
  97. package/dist/functional-components/action/action-utils.d.ts.map +1 -1
  98. package/dist/functional-components/action/action.d.ts.map +1 -1
  99. package/dist/functional-components/action-list/action-list.d.ts.map +1 -1
  100. package/dist/functional-components/action-list/dual-list/dual-list.d.ts.map +1 -1
  101. package/dist/functional-components/timeline-engine/components/gantt/bar/gantt-bar.d.ts +18 -0
  102. package/dist/functional-components/timeline-engine/components/gantt/bar/gantt-bar.d.ts.map +1 -0
  103. package/dist/functional-components/{gantt → timeline-engine/components/gantt}/gantt-assets.d.ts +2 -0
  104. package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts.map +1 -0
  105. package/dist/functional-components/{gantt → timeline-engine/components/gantt}/gantt.d.ts +3 -3
  106. package/dist/functional-components/timeline-engine/components/gantt/gantt.d.ts.map +1 -0
  107. package/dist/functional-components/{gantt → timeline-engine/components/gantt}/grid/gantt-grid.d.ts +3 -5
  108. package/dist/functional-components/timeline-engine/components/gantt/grid/gantt-grid.d.ts.map +1 -0
  109. package/dist/functional-components/timeline-engine/components/gantt/header/gantt-header.d.ts.map +1 -0
  110. package/dist/functional-components/timeline-engine/components/gantt/today-indicator/gantt-today-indicator.d.ts.map +1 -0
  111. package/dist/functional-components/{gantt → timeline-engine/components/gantt}/types/gantt-types.d.ts +27 -6
  112. package/dist/functional-components/timeline-engine/components/gantt/types/gantt-types.d.ts.map +1 -0
  113. package/dist/functional-components/timeline-engine/components/task-list/task-list-types.d.ts +27 -0
  114. package/dist/functional-components/timeline-engine/components/task-list/task-list-types.d.ts.map +1 -0
  115. package/dist/functional-components/{task-list → timeline-engine/components/task-list}/task-list-utils.d.ts +4 -4
  116. package/dist/functional-components/timeline-engine/components/task-list/task-list-utils.d.ts.map +1 -0
  117. package/dist/functional-components/timeline-engine/components/task-list/task-list.d.ts.map +1 -0
  118. package/dist/functional-components/timeline-engine/timeline-engine-types.d.ts +24 -0
  119. package/dist/functional-components/timeline-engine/timeline-engine-types.d.ts.map +1 -0
  120. package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts +119 -0
  121. package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts.map +1 -0
  122. package/dist/functional-components/timeline-engine/timeline-engine-utils.test.d.ts +2 -0
  123. package/dist/functional-components/timeline-engine/timeline-engine-utils.test.d.ts.map +1 -0
  124. package/dist/functional-components/timeline-engine/timeline-engine.d.ts +8 -0
  125. package/dist/functional-components/timeline-engine/timeline-engine.d.ts.map +1 -0
  126. package/dist/{ganttDiagram-T4ZO3ILL-DUi8jF9H.cjs → ganttDiagram-T4ZO3ILL-C25CnBTv.cjs} +1 -1
  127. package/dist/{ganttDiagram-T4ZO3ILL-LuaYkUvj.js → ganttDiagram-T4ZO3ILL-PY1BUp5b.js} +2 -2
  128. package/dist/{gitGraphDiagram-UUTBAWPF-D-tMWUQ1.cjs → gitGraphDiagram-UUTBAWPF-0lCBo9nK.cjs} +1 -1
  129. package/dist/{gitGraphDiagram-UUTBAWPF-DKkENwcV.js → gitGraphDiagram-UUTBAWPF-CDIW9-sX.js} +2 -2
  130. package/dist/{graphlib-HdfvGLpV.cjs → graphlib-CdgJ32J_.cjs} +1 -1
  131. package/dist/{graphlib-Cpifseqb.js → graphlib-DbQkSsC8.js} +1 -1
  132. package/dist/hooks/useFocusTrap.d.ts.map +1 -1
  133. package/dist/hooks/useGanttMath.d.ts +1 -1
  134. package/dist/hooks/useGanttMath.d.ts.map +1 -1
  135. package/dist/hooks/useVirtualListScroll.d.ts.map +1 -1
  136. package/dist/{infoDiagram-42DDH7IO-CLkQPFe0.js → infoDiagram-42DDH7IO-CQLxpytS.js} +2 -2
  137. package/dist/{infoDiagram-42DDH7IO-CH5xHj8H.cjs → infoDiagram-42DDH7IO-Da__a_a_.cjs} +1 -1
  138. package/dist/{ishikawaDiagram-UXIWVN3A-DqbVPChK.js → ishikawaDiagram-UXIWVN3A-BblrAmns.js} +3 -3
  139. package/dist/{ishikawaDiagram-UXIWVN3A-Cl3Ivm8H.cjs → ishikawaDiagram-UXIWVN3A-BfkF39Xv.cjs} +1 -1
  140. package/dist/{journeyDiagram-VCZTEJTY-DudduR0c.js → journeyDiagram-VCZTEJTY-CCOZ1XFK.js} +2 -2
  141. package/dist/{journeyDiagram-VCZTEJTY-XRc0J8gM.cjs → journeyDiagram-VCZTEJTY-UwcVOFtb.cjs} +1 -1
  142. package/dist/{kanban-definition-6JOO6SKY-DzEqE64J.js → kanban-definition-6JOO6SKY-BWwfbdd6.js} +7 -7
  143. package/dist/{kanban-definition-6JOO6SKY-Br87atRc.cjs → kanban-definition-6JOO6SKY-Coxpi43B.cjs} +1 -1
  144. package/dist/ketchup2.cjs.js +106 -99
  145. package/dist/ketchup2.css +1 -1
  146. package/dist/ketchup2.es.js +20387 -20008
  147. package/dist/{line-BbHmiwbs.cjs → line-C7oijaT4.cjs} +1 -1
  148. package/dist/{line-JyRBGWft.js → line-CrxZdHmO.js} +1 -1
  149. package/dist/{mindmap-definition-QFDTVHPH-BCq8zmLt.cjs → mindmap-definition-QFDTVHPH--xULjpFZ.cjs} +1 -1
  150. package/dist/{mindmap-definition-QFDTVHPH-NGjPQ5SM.js → mindmap-definition-QFDTVHPH-dYQoMeA6.js} +9 -9
  151. package/dist/{pieDiagram-DEJITSTG-CK4xy0PS.cjs → pieDiagram-DEJITSTG-7we8s9eC.cjs} +1 -1
  152. package/dist/{pieDiagram-DEJITSTG-DTeyzHmB.js → pieDiagram-DEJITSTG-Dj5pX4fC.js} +3 -3
  153. package/dist/{quadrantDiagram-34T5L4WZ-D-_iiK79.cjs → quadrantDiagram-34T5L4WZ-B3BFuPYQ.cjs} +1 -1
  154. package/dist/{quadrantDiagram-34T5L4WZ-CCcJIf91.js → quadrantDiagram-34T5L4WZ-BKNOJBiR.js} +1 -1
  155. package/dist/{requirementDiagram-MS252O5E-EfY029Xj.cjs → requirementDiagram-MS252O5E-BemsEy3Y.cjs} +1 -1
  156. package/dist/{requirementDiagram-MS252O5E-BdOanuYe.js → requirementDiagram-MS252O5E-r3eZu57d.js} +9 -9
  157. package/dist/{sankeyDiagram-XADWPNL6-3jlM2UcU.cjs → sankeyDiagram-XADWPNL6-B9YCkPHh.cjs} +1 -1
  158. package/dist/{sankeyDiagram-XADWPNL6-3wviN_U4.js → sankeyDiagram-XADWPNL6-ErTVVewH.js} +1 -1
  159. package/dist/{sequenceDiagram-FGHM5R23-DC8SjhFN.js → sequenceDiagram-FGHM5R23-BmqbzzHY.js} +3 -3
  160. package/dist/{sequenceDiagram-FGHM5R23-lK1G3QLN.cjs → sequenceDiagram-FGHM5R23-CBpQL6X2.cjs} +1 -1
  161. package/dist/{stateDiagram-FHFEXIEX-DnkzFphf.js → stateDiagram-FHFEXIEX-CL9LE-W1.js} +13 -13
  162. package/dist/{stateDiagram-FHFEXIEX-DsQigFuR.cjs → stateDiagram-FHFEXIEX-Cju5Z2VS.cjs} +1 -1
  163. package/dist/{stateDiagram-v2-QKLJ7IA2-2v8JiIJr.js → stateDiagram-v2-QKLJ7IA2-BHoytfGp.js} +10 -10
  164. package/dist/stateDiagram-v2-QKLJ7IA2-DO1H6Vqa.cjs +1 -0
  165. package/dist/{timeline-definition-GMOUNBTQ-DWpngnE4.cjs → timeline-definition-GMOUNBTQ-BeTHmikc.cjs} +1 -1
  166. package/dist/{timeline-definition-GMOUNBTQ-CBnYBWN0.js → timeline-definition-GMOUNBTQ-DgcI7XnE.js} +3 -3
  167. package/dist/types/data-structures.d.ts +9 -1
  168. package/dist/types/data-structures.d.ts.map +1 -1
  169. package/dist/utils/data-structures.d.ts +2 -0
  170. package/dist/utils/data-structures.d.ts.map +1 -1
  171. package/dist/utils/style.d.ts +13 -2
  172. package/dist/utils/style.d.ts.map +1 -1
  173. package/dist/{vennDiagram-DHZGUBPP-M-kkEkXj.js → vennDiagram-DHZGUBPP-7tx3VVDU.js} +3 -3
  174. package/dist/{vennDiagram-DHZGUBPP-D-kj-sVU.cjs → vennDiagram-DHZGUBPP-C16dnMoe.cjs} +1 -1
  175. package/dist/{wardleyDiagram-NUSXRM2D-CUX1SYhw.js → wardleyDiagram-NUSXRM2D-DGKU7A2U.js} +2 -2
  176. package/dist/{wardleyDiagram-NUSXRM2D-thoOuA_D.cjs → wardleyDiagram-NUSXRM2D-DY51LHBa.cjs} +1 -1
  177. package/dist/{xychartDiagram-5P7HB3ND-1cXRZ1bi.js → xychartDiagram-5P7HB3ND--7RYyckP.js} +5 -5
  178. package/dist/{xychartDiagram-5P7HB3ND-BF2WmJ4-.cjs → xychartDiagram-5P7HB3ND-Cj0HUNew.cjs} +1 -1
  179. package/package.json +1 -1
  180. package/dist/channel-BY9Lkyz7.cjs +0 -1
  181. package/dist/classDiagram-6PBFFD2Q-B6betnLH.cjs +0 -1
  182. package/dist/classDiagram-v2-HSJHXN6E-Dda8WDvn.cjs +0 -1
  183. package/dist/clone-lShkT11Q.cjs +0 -1
  184. package/dist/functional-components/gantt/bar/gantt-bar.d.ts +0 -17
  185. package/dist/functional-components/gantt/bar/gantt-bar.d.ts.map +0 -1
  186. package/dist/functional-components/gantt/gantt-assets.d.ts.map +0 -1
  187. package/dist/functional-components/gantt/gantt.d.ts.map +0 -1
  188. package/dist/functional-components/gantt/grid/gantt-grid.d.ts.map +0 -1
  189. package/dist/functional-components/gantt/header/gantt-header.d.ts.map +0 -1
  190. package/dist/functional-components/gantt/today-indicator/gantt-today-indicator.d.ts.map +0 -1
  191. package/dist/functional-components/gantt/types/gantt-types.d.ts.map +0 -1
  192. package/dist/functional-components/task-list/task-list-types.d.ts +0 -22
  193. package/dist/functional-components/task-list/task-list-types.d.ts.map +0 -1
  194. package/dist/functional-components/task-list/task-list-utils.d.ts.map +0 -1
  195. package/dist/functional-components/task-list/task-list.d.ts.map +0 -1
  196. package/dist/hooks/usePlannerSync.d.ts +0 -11
  197. package/dist/hooks/usePlannerSync.d.ts.map +0 -1
  198. package/dist/stateDiagram-v2-QKLJ7IA2-UKKfWPoT.cjs +0 -1
  199. package/dist/utils/wbs-utils.d.ts +0 -143
  200. package/dist/utils/wbs-utils.d.ts.map +0 -1
  201. /package/dist/functional-components/{gantt → timeline-engine/components/gantt}/header/gantt-header.d.ts +0 -0
  202. /package/dist/functional-components/{gantt → timeline-engine/components/gantt}/today-indicator/gantt-today-indicator.d.ts +0 -0
  203. /package/dist/functional-components/{task-list → timeline-engine/components/task-list}/task-list.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- const e=require(`./chunk-ICPOFSXX-CoaJw-IT.cjs`),t=require(`./src-DFxq-N5I.cjs`),n=require(`./chunk-5PVQY5BW-CfQDYQZt.cjs`),r=require(`./chunk-ZZ45TVLE-AQQsnXy4.cjs`),i=require(`./chunk-X2U36JSP-D1RYKjVc.cjs`),a=require(`./chunk-U2HBQHQK-D0AoQWxK.cjs`),o=require(`./rough.esm-BLKo1fIQ.cjs`);var s=t.h(async(i,o,s)=>{let c,l=o.useHtmlLabels||e.h(e.b()?.htmlLabels);c=s||`node default`;let u=i.insert(`g`).attr(`class`,c).attr(`id`,o.domId||o.id),d=u.insert(`g`).attr(`class`,`label`).attr(`style`,n.l(o.labelStyle)),f;f=o.label===void 0?``:typeof o.label==`string`?o.label:o.label[0];let p=!!o.icon||!!o.img,m=o.labelType===`markdown`,h=await a.n(d,e.L(n.i(f),e.b()),{useHtmlLabels:l,width:o.width||e.b().flowchart?.wrappingWidth,classes:m?`markdown-node-label`:``,style:o.labelStyle,addSvgBackground:p,markdown:m},e.b()),g=h.getBBox(),_=(o?.padding??0)/2;if(l){let e=h.children[0],n=t.p(h);await r.t(e,f),g=e.getBoundingClientRect(),n.attr(`width`,g.width),n.attr(`height`,g.height)}return l?d.attr(`transform`,`translate(`+-g.width/2+`, `+-g.height/2+`)`):d.attr(`transform`,`translate(0, `+-g.height/2+`)`),o.centerLabel&&d.attr(`transform`,`translate(`+-g.width/2+`, `+-g.height/2+`)`),d.insert(`rect`,`:first-child`),{shapeSvg:u,bbox:g,halfPadding:_,label:d}},`labelHelper`),c=t.h(async(r,i,o)=>{let s=o.useHtmlLabels??e.w(e.b()),c=r.insert(`g`).attr(`class`,`label`).attr(`style`,o.labelStyle||``),l=await a.n(c,e.L(n.i(i),e.b()),{useHtmlLabels:s,width:o.width||e.b()?.flowchart?.wrappingWidth,style:o.labelStyle,addSvgBackground:!!o.icon||!!o.img}),u=l.getBBox(),d=o.padding/2;if(e.w(e.b())){let e=l.children[0],n=t.p(l);u=e.getBoundingClientRect(),n.attr(`width`,u.width),n.attr(`height`,u.height)}return s?c.attr(`transform`,`translate(`+-u.width/2+`, `+-u.height/2+`)`):c.attr(`transform`,`translate(0, `+-u.height/2+`)`),o.centerLabel&&c.attr(`transform`,`translate(`+-u.width/2+`, `+-u.height/2+`)`),c.insert(`rect`,`:first-child`),{shapeSvg:r,bbox:u,halfPadding:d,label:c}},`insertLabel`),l=t.h((e,t)=>{let n=t.node().getBBox();e.width=n.width,e.height=n.height},`updateNodeBounds`),u=t.h((e,t)=>(e.look===`handDrawn`?`rough-node`:`node`)+` `+e.cssClasses+` `+(t||``),`getNodeClasses`);function d(e){let t=e.map((e,t)=>`${t===0?`M`:`L`}${e.x},${e.y}`);return t.push(`Z`),t.join(` `)}t.h(d,`createPathFromPoints`);function f(e,t,n,r,i,a){let o=[],s=n-e,c=r-t,l=s/a,u=2*Math.PI/l,d=t+c/2;for(let t=0;t<=50;t++){let n=e+t/50*s,r=d+i*Math.sin(u*(n-e));o.push({x:n,y:r})}return o}t.h(f,`generateFullSineWavePoints`);function p(e,t,n,r,i,a){let o=[],s=i*Math.PI/180,c=(a*Math.PI/180-s)/(r-1);for(let i=0;i<r;i++){let r=s+i*c,a=e+n*Math.cos(r),l=t+n*Math.sin(r);o.push({x:-a,y:-l})}return o}t.h(p,`generateCirclePoints`);function m(e){let n=Array.from(e.childNodes).filter(e=>e.tagName===`path`),r=document.createElementNS(`http://www.w3.org/2000/svg`,`path`),i=n.map(e=>e.getAttribute(`d`)).filter(e=>e!==null).join(` `);r.setAttribute(`d`,i);let a=n.find(e=>e.getAttribute(`fill`)!==`none`),o=n.find(e=>e.getAttribute(`stroke`)!==`none`),s=t.h((e,t)=>e?.getAttribute(t)??void 0,`getAttr`);if(a){let e={fill:s(a,`fill`),"fill-opacity":s(a,`fill-opacity`)??`1`};Object.entries(e).forEach(([e,t])=>{t&&r.setAttribute(e,t)})}if(o){let e={stroke:s(o,`stroke`),"stroke-width":s(o,`stroke-width`)??`1`,"stroke-opacity":s(o,`stroke-opacity`)??`1`};Object.entries(e).forEach(([e,t])=>{t&&r.setAttribute(e,t)})}let c=document.createElementNS(`http://www.w3.org/2000/svg`,`g`);return c.appendChild(r),c}t.h(m,`mergePaths`);var h=t.h((e,t)=>{var n=e.x,r=e.y,i=t.x-n,a=t.y-r,o=e.width/2,s=e.height/2,c,l;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),c=a===0?0:s*i/a,l=s):(i<0&&(o=-o),c=o,l=i===0?0:o*a/i),{x:n+c,y:r+l}},`intersectRect`),g=t.h(async(t,n,r,i=!1,o=!1)=>{let s=n||``;typeof s==`object`&&(s=s[0]);let c=e.b(),l=e.w(c);return await a.n(t,s,{style:r,isTitle:i,useHtmlLabels:l,markdown:!1,isNode:o,width:1/0},c)},`createLabel`),_=t.h((e,t,n,r,i)=>[`M`,e+i,t,`H`,e+n-i,`A`,i,i,0,0,1,e+n,t+i,`V`,t+r-i,`A`,i,i,0,0,1,e+n-i,t+r,`H`,e+i,`A`,i,i,0,0,1,e,t+r-i,`V`,t+i,`A`,i,i,0,0,1,e+i,t,`Z`].join(` `),`createRoundedRectPathD`),v=t.h(async(n,s)=>{t.g.info(`Creating subgraph rect for `,s.id,s);let c=e.b(),{themeVariables:l,handDrawnSeed:u}=c,{clusterBkg:d,clusterBorder:f}=l,{labelStyles:p,nodeStyles:m,borderStyles:v,backgroundStyles:y}=i.i(s),b=n.insert(`g`).attr(`class`,`cluster `+s.cssClasses).attr(`id`,s.domId).attr(`data-look`,s.look),x=e.w(c),S=b.insert(`g`).attr(`class`,`cluster-label `),C;C=s.labelType===`markdown`?await a.n(S,s.label,{style:s.labelStyle,useHtmlLabels:x,isNode:!0,width:s.width}):await g(S,s.label,s.labelStyle||``,!1,!0);let w=C.getBBox();if(e.w(c)){let e=C.children[0],n=t.p(C);w=e.getBoundingClientRect(),n.attr(`width`,w.width),n.attr(`height`,w.height)}let T=s.width<=w.width+s.padding?w.width+s.padding:s.width;s.width<=w.width+s.padding?s.diff=(T-s.width)/2-s.padding:s.diff=-s.padding;let E=s.height,D=s.x-T/2,O=s.y-E/2;t.g.trace(`Data `,s,JSON.stringify(s));let k;if(s.look===`handDrawn`){let e=o.t.svg(b),n=i.a(s,{roughness:.7,fill:d,stroke:f,fillWeight:3,seed:u}),r=e.path(_(D,O,T,E,0),n);k=b.insert(()=>(t.g.debug(`Rough node insert CXC`,r),r),`:first-child`),k.select(`path:nth-child(2)`).attr(`style`,v.join(`;`)),k.select(`path`).attr(`style`,y.join(`;`).replace(`fill`,`stroke`))}else k=b.insert(`rect`,`:first-child`),k.attr(`style`,m).attr(`rx`,s.rx).attr(`ry`,s.ry).attr(`x`,D).attr(`y`,O).attr(`width`,T).attr(`height`,E);let{subGraphTitleTopMargin:A}=r.n(c);if(S.attr(`transform`,`translate(${s.x-w.width/2}, ${s.y-s.height/2+A})`),p){let e=S.select(`span`);e&&e.attr(`style`,p)}let j=k.node().getBBox();return s.offsetX=0,s.width=j.width,s.height=j.height,s.offsetY=w.height-s.padding/2,s.intersect=function(e){return h(s,e)},{cluster:b,labelBBox:w}},`rect`),y={rect:v,squareRect:v,roundedWithTitle:t.h(async(n,r)=>{let i=e.b(),{themeVariables:a,handDrawnSeed:s}=i,{altBackground:c,compositeBackground:l,compositeTitleBackground:u,nodeBorder:d}=a,f=n.insert(`g`).attr(`class`,r.cssClasses).attr(`id`,r.domId).attr(`data-id`,r.id).attr(`data-look`,r.look),p=f.insert(`g`,`:first-child`),m=f.insert(`g`).attr(`class`,`cluster-label`),v=f.append(`rect`),y=await g(m,r.label,r.labelStyle,void 0,!0),b=y.getBBox();if(e.w(i)){let e=y.children[0],n=t.p(y);b=e.getBoundingClientRect(),n.attr(`width`,b.width),n.attr(`height`,b.height)}let x=0*r.padding,S=x/2,C=(r.width<=b.width+r.padding?b.width+r.padding:r.width)+x;r.width<=b.width+r.padding?r.diff=(C-r.width)/2-r.padding:r.diff=-r.padding;let w=r.height+x,T=r.height+x-b.height-6,E=r.x-C/2,D=r.y-w/2;r.width=C;let O=r.y-r.height/2-S+b.height+2,k;if(r.look===`handDrawn`){let e=r.cssClasses.includes(`statediagram-cluster-alt`),t=o.t.svg(f),n=r.rx||r.ry?t.path(_(E,D,C,w,10),{roughness:.7,fill:u,fillStyle:`solid`,stroke:d,seed:s}):t.rectangle(E,D,C,w,{seed:s});k=f.insert(()=>n,`:first-child`);let i=t.rectangle(E,O,C,T,{fill:e?c:l,fillStyle:e?`hachure`:`solid`,stroke:d,seed:s});k=f.insert(()=>n,`:first-child`),v=f.insert(()=>i)}else k=p.insert(`rect`,`:first-child`),k.attr(`class`,`outer`).attr(`x`,E).attr(`y`,D).attr(`width`,C).attr(`height`,w).attr(`data-look`,r.look),v.attr(`class`,`inner`).attr(`x`,E).attr(`y`,O).attr(`width`,C).attr(`height`,T);return m.attr(`transform`,`translate(${r.x-b.width/2}, ${D+1-(e.w(i)?0:3)})`),r.height=k.node().getBBox().height,r.offsetX=0,r.offsetY=b.height-r.padding/2,r.labelBBox=b,r.intersect=function(e){return h(r,e)},{cluster:f,labelBBox:b}},`roundedWithTitle`),noteGroup:t.h((e,t)=>{let n=e.insert(`g`).attr(`class`,`note-cluster`).attr(`id`,t.domId),r=n.insert(`rect`,`:first-child`),i=0*t.padding,a=i/2;r.attr(`rx`,t.rx).attr(`ry`,t.ry).attr(`x`,t.x-t.width/2-a).attr(`y`,t.y-t.height/2-a).attr(`width`,t.width+i).attr(`height`,t.height+i).attr(`fill`,`none`);let o=r.node().getBBox();return t.width=o.width,t.height=o.height,t.intersect=function(e){return h(t,e)},{cluster:n,labelBBox:{width:0,height:0}}},`noteGroup`),divider:t.h((t,n)=>{let{themeVariables:r,handDrawnSeed:i}=e.b(),{nodeBorder:a}=r,s=t.insert(`g`).attr(`class`,n.cssClasses).attr(`id`,n.domId).attr(`data-look`,n.look),c=s.insert(`g`,`:first-child`),l=0*n.padding,u=n.width+l;n.diff=-n.padding;let d=n.height+l,f=n.x-u/2,p=n.y-d/2;n.width=u;let m;if(n.look===`handDrawn`){let e=o.t.svg(s).rectangle(f,p,u,d,{fill:`lightgrey`,roughness:.5,strokeLineDash:[5],stroke:a,seed:i});m=s.insert(()=>e,`:first-child`)}else{m=c.insert(`rect`,`:first-child`);let e=`outer`;e=(n.look,`divider`),m.attr(`class`,e).attr(`x`,f).attr(`y`,p).attr(`width`,u).attr(`height`,d).attr(`data-look`,n.look)}return n.height=m.node().getBBox().height,n.offsetX=0,n.offsetY=0,n.intersect=function(e){return h(n,e)},{cluster:s,labelBBox:{}}},`divider`),kanbanSection:t.h(async(n,s)=>{t.g.info(`Creating subgraph rect for `,s.id,s);let c=e.b(),{themeVariables:l,handDrawnSeed:u}=c,{clusterBkg:d,clusterBorder:f}=l,{labelStyles:p,nodeStyles:m,borderStyles:g,backgroundStyles:v}=i.i(s),y=n.insert(`g`).attr(`class`,`cluster `+s.cssClasses).attr(`id`,s.domId).attr(`data-look`,s.look),b=e.w(c),x=y.insert(`g`).attr(`class`,`cluster-label `),S=await a.n(x,s.label,{style:s.labelStyle,useHtmlLabels:b,isNode:!0,width:s.width}),C=S.getBBox();if(e.w(c)){let e=S.children[0],n=t.p(S);C=e.getBoundingClientRect(),n.attr(`width`,C.width),n.attr(`height`,C.height)}let w=s.width<=C.width+s.padding?C.width+s.padding:s.width;s.width<=C.width+s.padding?s.diff=(w-s.width)/2-s.padding:s.diff=-s.padding;let T=s.height,E=s.x-w/2,D=s.y-T/2;t.g.trace(`Data `,s,JSON.stringify(s));let O;if(s.look===`handDrawn`){let e=o.t.svg(y),n=i.a(s,{roughness:.7,fill:d,stroke:f,fillWeight:4,seed:u}),r=e.path(_(E,D,w,T,s.rx),n);O=y.insert(()=>(t.g.debug(`Rough node insert CXC`,r),r),`:first-child`),O.select(`path:nth-child(2)`).attr(`style`,g.join(`;`)),O.select(`path`).attr(`style`,v.join(`;`).replace(`fill`,`stroke`))}else O=y.insert(`rect`,`:first-child`),O.attr(`style`,m).attr(`rx`,s.rx).attr(`ry`,s.ry).attr(`x`,E).attr(`y`,D).attr(`width`,w).attr(`height`,T);let{subGraphTitleTopMargin:k}=r.n(c);if(x.attr(`transform`,`translate(${s.x-C.width/2}, ${s.y-s.height/2+k})`),p){let e=x.select(`span`);e&&e.attr(`style`,p)}let A=O.node().getBBox();return s.offsetX=0,s.width=A.width,s.height=A.height,s.offsetY=C.height-s.padding/2,s.intersect=function(e){return h(s,e)},{cluster:y,labelBBox:C}},`kanbanSection`)},b=new Map,x=t.h(async(e,t)=>{let n=await y[t.shape||`rect`](e,t);return b.set(t.id,n),n},`insertCluster`),S=t.h(()=>{b=new Map},`clear`);function C(e,t){return e.intersect(t)}t.h(C,`intersectNode`);var w=C;function T(e,t,n,r){var i=e.x,a=e.y,o=i-r.x,s=a-r.y,c=Math.sqrt(t*t*s*s+n*n*o*o),l=Math.abs(t*n*o/c);r.x<i&&(l=-l);var u=Math.abs(t*n*s/c);return r.y<a&&(u=-u),{x:i+l,y:a+u}}t.h(T,`intersectEllipse`);var E=T;function D(e,t,n){return E(e,t,t,n)}t.h(D,`intersectCircle`);var O=D;function k(e,t,n,r){{let i=t.y-e.y,a=e.x-t.x,o=t.x*e.y-e.x*t.y,s=i*n.x+a*n.y+o,c=i*r.x+a*r.y+o,l=1e-6;if(s!==0&&c!==0&&A(s,c))return;let u=r.y-n.y,d=n.x-r.x,f=r.x*n.y-n.x*r.y,p=u*e.x+d*e.y+f,m=u*t.x+d*t.y+f;if(Math.abs(p)<l&&Math.abs(m)<l&&A(p,m))return;let h=i*d-u*a;if(h===0)return;let g=Math.abs(h/2),_=a*f-d*o,v=_<0?(_-g)/h:(_+g)/h;return _=u*o-i*f,{x:v,y:_<0?(_-g)/h:(_+g)/h}}}t.h(k,`intersectLine`);function A(e,t){return e*t>0}t.h(A,`sameSign`);var j=k;function M(e,t,n){let r=e.x,i=e.y,a=[],o=1/0,s=1/0;typeof t.forEach==`function`?t.forEach(function(e){o=Math.min(o,e.x),s=Math.min(s,e.y)}):(o=Math.min(o,t.x),s=Math.min(s,t.y));let c=r-e.width/2-o,l=i-e.height/2-s;for(let r=0;r<t.length;r++){let i=t[r],o=t[r<t.length-1?r+1:0],s=j(e,n,{x:c+i.x,y:l+i.y},{x:c+o.x,y:l+o.y});s&&a.push(s)}return a.length?(a.length>1&&a.sort(function(e,t){let r=e.x-n.x,i=e.y-n.y,a=Math.sqrt(r*r+i*i),o=t.x-n.x,s=t.y-n.y,c=Math.sqrt(o*o+s*s);return a<c?-1:a===c?0:1}),a[0]):e}t.h(M,`intersectPolygon`);var N={node:w,circle:O,ellipse:E,polygon:M,rect:h};function P(e,r){let{labelStyles:a}=i.i(r);r.labelStyle=a;let s=u(r),c=s;s||(c=`anchor`);let d=e.insert(`g`).attr(`class`,c).attr(`id`,r.domId||r.id),{cssStyles:f}=r,p=o.t.svg(d),m=i.a(r,{fill:`black`,stroke:`none`,fillStyle:`solid`});r.look!==`handDrawn`&&(m.roughness=0);let h=p.circle(0,0,2,m),g=d.insert(()=>h,`:first-child`);return g.attr(`class`,`anchor`).attr(`style`,n.l(f)),l(r,g),r.intersect=function(e){return t.g.info(`Circle intersect`,r,1,e),N.circle(r,1,e)},d}t.h(P,`anchor`);function F(e,t,n,r,i,a,o){let s=(e+n)/2,c=(t+r)/2,l=Math.atan2(r-t,n-e),u=(n-e)/2,d=(r-t)/2,f=u/i,p=d/a,m=Math.sqrt(f**2+p**2);if(m>1)throw Error(`The given radii are too small to create an arc between the points.`);let h=Math.sqrt(1-m**2),g=s+h*a*Math.sin(l)*(o?-1:1),_=c-h*i*Math.cos(l)*(o?-1:1),v=Math.atan2((t-_)/a,(e-g)/i),y=Math.atan2((r-_)/a,(n-g)/i)-v;o&&y<0&&(y+=2*Math.PI),!o&&y>0&&(y-=2*Math.PI);let b=[];for(let e=0;e<20;e++){let t=v+e/19*y,n=g+i*Math.cos(t),r=_+a*Math.sin(t);b.push({x:n,y:r})}return b}t.h(F,`generateArcPoints`);function I(e,t,n){let[r,i]=[t,n].sort((e,t)=>t-e);return i*(1-Math.sqrt(1-(e/r/2)**2))}t.h(I,`calculateArcSagitta`);async function L(e,n){let{labelStyles:r,nodeStyles:a}=i.i(n);n.labelStyle=r;let c=n.padding??0,f=n.look===`neo`?16:c,p=n.look===`neo`?12:c,m=t.h(e=>e+p,`calcTotalHeight`),h=t.h(e=>{let t=e/2;return[t/(2.5+e/50),t]},`calcEllipseRadius`),{shapeSvg:g,bbox:_}=await s(e,n,u(n)),v=m(n?.height?n?.height:_.height),[y,b]=h(v),x=I(v,y,b),S=(n?.width?n?.width:_.width)+f*2+x-x,C=v,{cssStyles:w}=n,T=[{x:S/2,y:-C/2},{x:-S/2,y:-C/2},...F(-S/2,-C/2,-S/2,C/2,y,b,!1),{x:S/2,y:C/2},...F(S/2,C/2,S/2,-C/2,y,b,!0)],E=o.t.svg(g),D=i.a(n,{});n.look!==`handDrawn`&&(D.roughness=0,D.fillStyle=`solid`);let O=d(T),k=E.path(O,D),A=g.insert(()=>k,`:first-child`);return A.attr(`class`,`basic label-container outer-path`),w&&n.look!==`handDrawn`&&A.selectAll(`path`).attr(`style`,w),a&&n.look!==`handDrawn`&&A.selectAll(`path`).attr(`style`,a),A.attr(`transform`,`translate(${y/2}, 0)`),l(n,A),n.intersect=function(e){return N.polygon(n,T,e)},g}t.h(L,`bowTieRect`);function R(e,t,n,r){return e.insert(`polygon`,`:first-child`).attr(`points`,r.map(function(e){return e.x+`,`+e.y}).join(` `)).attr(`class`,`label-container`).attr(`transform`,`translate(`+-t/2+`,`+n/2+`)`)}t.h(R,`insertPolygonShape`);var z=12;async function ee(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let a=t.padding??0,c=t.look===`neo`?28:a,f=t.look===`neo`?24:a,{shapeSvg:p,bbox:m}=await s(e,t,u(t)),h=(t?.width??m.width)+(t.look===`neo`?c*2:c+z),g=(t?.height??m.height)+(t.look===`neo`?f*2:f),_=h,v=-g,y=[{x:0+z,y:v},{x:_,y:v},{x:_,y:0},{x:0,y:0},{x:0,y:v+z},{x:0+z,y:v}],b,{cssStyles:x}=t;if(t.look===`handDrawn`){let e=o.t.svg(p),n=i.a(t,{}),r=d(y),a=e.path(r,n);b=p.insert(()=>a,`:first-child`).attr(`transform`,`translate(${-h/2}, ${g/2})`),x&&b.attr(`style`,x)}else b=R(p,h,g,y);return r&&b.attr(`style`,r),l(t,b),t.intersect=function(e){return N.polygon(t,y,e)},p}t.h(ee,`card`);function B(e,t){let{nodeStyles:n}=i.i(t);t.label=``;let r=e.insert(`g`).attr(`class`,u(t)).attr(`id`,t.domId??t.id),{cssStyles:a}=t,s=Math.max(28,t.width??0),c=[{x:0,y:s/2},{x:s/2,y:0},{x:0,y:-s/2},{x:-s/2,y:0}],l=o.t.svg(r),f=i.a(t,{});t.look!==`handDrawn`&&(f.roughness=0,f.fillStyle=`solid`);let p=d(c),m=l.path(p,f),h=r.insert(()=>m,`:first-child`);return a&&t.look!==`handDrawn`&&h.selectAll(`path`).attr(`style`,a),n&&t.look!==`handDrawn`&&h.selectAll(`path`).attr(`style`,n),t.width=28,t.height=28,t.intersect=function(e){return N.polygon(t,c,e)},r}t.h(B,`choice`);async function V(e,r,a){let{labelStyles:c,nodeStyles:d}=i.i(r);r.labelStyle=c;let{shapeSvg:f,bbox:p,halfPadding:m}=await s(e,r,u(r)),h=a?.padding??m,g=r.look===`neo`?p.width/2+32:p.width/2+h,_,{cssStyles:v}=r;if(r.look===`handDrawn`){let e=o.t.svg(f),t=i.a(r,{}),a=e.circle(0,0,g*2,t);_=f.insert(()=>a,`:first-child`),_.attr(`class`,`basic label-container`).attr(`style`,n.l(v))}else _=f.insert(`circle`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,d).attr(`r`,g).attr(`cx`,0).attr(`cy`,0);return l(r,_),r.calcIntersect=function(e,t){let n=e.width/2;return N.circle(e,n,t)},r.intersect=function(e){return t.g.info(`Circle intersect`,r,g,e),N.circle(r,g,e)},f}t.h(V,`circle`);function H(e){let t=Math.cos(Math.PI/4),n=Math.sin(Math.PI/4),r=e*2,i={x:r/2*t,y:r/2*n},a={x:-(r/2)*t,y:r/2*n},o={x:-(r/2)*t,y:-(r/2)*n},s={x:r/2*t,y:-(r/2)*n};return`M ${a.x},${a.y} L ${s.x},${s.y}
1
+ const e=require(`./chunk-ICPOFSXX-hY6BIZ4Y.cjs`),t=require(`./src-DFxq-N5I.cjs`),n=require(`./chunk-5PVQY5BW-DEPZKGvb.cjs`),r=require(`./chunk-ZZ45TVLE-BfSqZnT4.cjs`),i=require(`./chunk-X2U36JSP-CtXjVqek.cjs`),a=require(`./chunk-U2HBQHQK-CJ77uizk.cjs`),o=require(`./rough.esm-BLKo1fIQ.cjs`);var s=t.h(async(i,o,s)=>{let c,l=o.useHtmlLabels||e.h(e.b()?.htmlLabels);c=s||`node default`;let u=i.insert(`g`).attr(`class`,c).attr(`id`,o.domId||o.id),d=u.insert(`g`).attr(`class`,`label`).attr(`style`,n.l(o.labelStyle)),f;f=o.label===void 0?``:typeof o.label==`string`?o.label:o.label[0];let p=!!o.icon||!!o.img,m=o.labelType===`markdown`,h=await a.n(d,e.L(n.i(f),e.b()),{useHtmlLabels:l,width:o.width||e.b().flowchart?.wrappingWidth,classes:m?`markdown-node-label`:``,style:o.labelStyle,addSvgBackground:p,markdown:m},e.b()),g=h.getBBox(),_=(o?.padding??0)/2;if(l){let e=h.children[0],n=t.p(h);await r.t(e,f),g=e.getBoundingClientRect(),n.attr(`width`,g.width),n.attr(`height`,g.height)}return l?d.attr(`transform`,`translate(`+-g.width/2+`, `+-g.height/2+`)`):d.attr(`transform`,`translate(0, `+-g.height/2+`)`),o.centerLabel&&d.attr(`transform`,`translate(`+-g.width/2+`, `+-g.height/2+`)`),d.insert(`rect`,`:first-child`),{shapeSvg:u,bbox:g,halfPadding:_,label:d}},`labelHelper`),c=t.h(async(r,i,o)=>{let s=o.useHtmlLabels??e.w(e.b()),c=r.insert(`g`).attr(`class`,`label`).attr(`style`,o.labelStyle||``),l=await a.n(c,e.L(n.i(i),e.b()),{useHtmlLabels:s,width:o.width||e.b()?.flowchart?.wrappingWidth,style:o.labelStyle,addSvgBackground:!!o.icon||!!o.img}),u=l.getBBox(),d=o.padding/2;if(e.w(e.b())){let e=l.children[0],n=t.p(l);u=e.getBoundingClientRect(),n.attr(`width`,u.width),n.attr(`height`,u.height)}return s?c.attr(`transform`,`translate(`+-u.width/2+`, `+-u.height/2+`)`):c.attr(`transform`,`translate(0, `+-u.height/2+`)`),o.centerLabel&&c.attr(`transform`,`translate(`+-u.width/2+`, `+-u.height/2+`)`),c.insert(`rect`,`:first-child`),{shapeSvg:r,bbox:u,halfPadding:d,label:c}},`insertLabel`),l=t.h((e,t)=>{let n=t.node().getBBox();e.width=n.width,e.height=n.height},`updateNodeBounds`),u=t.h((e,t)=>(e.look===`handDrawn`?`rough-node`:`node`)+` `+e.cssClasses+` `+(t||``),`getNodeClasses`);function d(e){let t=e.map((e,t)=>`${t===0?`M`:`L`}${e.x},${e.y}`);return t.push(`Z`),t.join(` `)}t.h(d,`createPathFromPoints`);function f(e,t,n,r,i,a){let o=[],s=n-e,c=r-t,l=s/a,u=2*Math.PI/l,d=t+c/2;for(let t=0;t<=50;t++){let n=e+t/50*s,r=d+i*Math.sin(u*(n-e));o.push({x:n,y:r})}return o}t.h(f,`generateFullSineWavePoints`);function p(e,t,n,r,i,a){let o=[],s=i*Math.PI/180,c=(a*Math.PI/180-s)/(r-1);for(let i=0;i<r;i++){let r=s+i*c,a=e+n*Math.cos(r),l=t+n*Math.sin(r);o.push({x:-a,y:-l})}return o}t.h(p,`generateCirclePoints`);function m(e){let n=Array.from(e.childNodes).filter(e=>e.tagName===`path`),r=document.createElementNS(`http://www.w3.org/2000/svg`,`path`),i=n.map(e=>e.getAttribute(`d`)).filter(e=>e!==null).join(` `);r.setAttribute(`d`,i);let a=n.find(e=>e.getAttribute(`fill`)!==`none`),o=n.find(e=>e.getAttribute(`stroke`)!==`none`),s=t.h((e,t)=>e?.getAttribute(t)??void 0,`getAttr`);if(a){let e={fill:s(a,`fill`),"fill-opacity":s(a,`fill-opacity`)??`1`};Object.entries(e).forEach(([e,t])=>{t&&r.setAttribute(e,t)})}if(o){let e={stroke:s(o,`stroke`),"stroke-width":s(o,`stroke-width`)??`1`,"stroke-opacity":s(o,`stroke-opacity`)??`1`};Object.entries(e).forEach(([e,t])=>{t&&r.setAttribute(e,t)})}let c=document.createElementNS(`http://www.w3.org/2000/svg`,`g`);return c.appendChild(r),c}t.h(m,`mergePaths`);var h=t.h((e,t)=>{var n=e.x,r=e.y,i=t.x-n,a=t.y-r,o=e.width/2,s=e.height/2,c,l;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),c=a===0?0:s*i/a,l=s):(i<0&&(o=-o),c=o,l=i===0?0:o*a/i),{x:n+c,y:r+l}},`intersectRect`),g=t.h(async(t,n,r,i=!1,o=!1)=>{let s=n||``;typeof s==`object`&&(s=s[0]);let c=e.b(),l=e.w(c);return await a.n(t,s,{style:r,isTitle:i,useHtmlLabels:l,markdown:!1,isNode:o,width:1/0},c)},`createLabel`),_=t.h((e,t,n,r,i)=>[`M`,e+i,t,`H`,e+n-i,`A`,i,i,0,0,1,e+n,t+i,`V`,t+r-i,`A`,i,i,0,0,1,e+n-i,t+r,`H`,e+i,`A`,i,i,0,0,1,e,t+r-i,`V`,t+i,`A`,i,i,0,0,1,e+i,t,`Z`].join(` `),`createRoundedRectPathD`),v=t.h(async(n,s)=>{t.g.info(`Creating subgraph rect for `,s.id,s);let c=e.b(),{themeVariables:l,handDrawnSeed:u}=c,{clusterBkg:d,clusterBorder:f}=l,{labelStyles:p,nodeStyles:m,borderStyles:v,backgroundStyles:y}=i.i(s),b=n.insert(`g`).attr(`class`,`cluster `+s.cssClasses).attr(`id`,s.domId).attr(`data-look`,s.look),x=e.w(c),S=b.insert(`g`).attr(`class`,`cluster-label `),C;C=s.labelType===`markdown`?await a.n(S,s.label,{style:s.labelStyle,useHtmlLabels:x,isNode:!0,width:s.width}):await g(S,s.label,s.labelStyle||``,!1,!0);let w=C.getBBox();if(e.w(c)){let e=C.children[0],n=t.p(C);w=e.getBoundingClientRect(),n.attr(`width`,w.width),n.attr(`height`,w.height)}let T=s.width<=w.width+s.padding?w.width+s.padding:s.width;s.width<=w.width+s.padding?s.diff=(T-s.width)/2-s.padding:s.diff=-s.padding;let E=s.height,D=s.x-T/2,O=s.y-E/2;t.g.trace(`Data `,s,JSON.stringify(s));let k;if(s.look===`handDrawn`){let e=o.t.svg(b),n=i.a(s,{roughness:.7,fill:d,stroke:f,fillWeight:3,seed:u}),r=e.path(_(D,O,T,E,0),n);k=b.insert(()=>(t.g.debug(`Rough node insert CXC`,r),r),`:first-child`),k.select(`path:nth-child(2)`).attr(`style`,v.join(`;`)),k.select(`path`).attr(`style`,y.join(`;`).replace(`fill`,`stroke`))}else k=b.insert(`rect`,`:first-child`),k.attr(`style`,m).attr(`rx`,s.rx).attr(`ry`,s.ry).attr(`x`,D).attr(`y`,O).attr(`width`,T).attr(`height`,E);let{subGraphTitleTopMargin:A}=r.n(c);if(S.attr(`transform`,`translate(${s.x-w.width/2}, ${s.y-s.height/2+A})`),p){let e=S.select(`span`);e&&e.attr(`style`,p)}let j=k.node().getBBox();return s.offsetX=0,s.width=j.width,s.height=j.height,s.offsetY=w.height-s.padding/2,s.intersect=function(e){return h(s,e)},{cluster:b,labelBBox:w}},`rect`),y={rect:v,squareRect:v,roundedWithTitle:t.h(async(n,r)=>{let i=e.b(),{themeVariables:a,handDrawnSeed:s}=i,{altBackground:c,compositeBackground:l,compositeTitleBackground:u,nodeBorder:d}=a,f=n.insert(`g`).attr(`class`,r.cssClasses).attr(`id`,r.domId).attr(`data-id`,r.id).attr(`data-look`,r.look),p=f.insert(`g`,`:first-child`),m=f.insert(`g`).attr(`class`,`cluster-label`),v=f.append(`rect`),y=await g(m,r.label,r.labelStyle,void 0,!0),b=y.getBBox();if(e.w(i)){let e=y.children[0],n=t.p(y);b=e.getBoundingClientRect(),n.attr(`width`,b.width),n.attr(`height`,b.height)}let x=0*r.padding,S=x/2,C=(r.width<=b.width+r.padding?b.width+r.padding:r.width)+x;r.width<=b.width+r.padding?r.diff=(C-r.width)/2-r.padding:r.diff=-r.padding;let w=r.height+x,T=r.height+x-b.height-6,E=r.x-C/2,D=r.y-w/2;r.width=C;let O=r.y-r.height/2-S+b.height+2,k;if(r.look===`handDrawn`){let e=r.cssClasses.includes(`statediagram-cluster-alt`),t=o.t.svg(f),n=r.rx||r.ry?t.path(_(E,D,C,w,10),{roughness:.7,fill:u,fillStyle:`solid`,stroke:d,seed:s}):t.rectangle(E,D,C,w,{seed:s});k=f.insert(()=>n,`:first-child`);let i=t.rectangle(E,O,C,T,{fill:e?c:l,fillStyle:e?`hachure`:`solid`,stroke:d,seed:s});k=f.insert(()=>n,`:first-child`),v=f.insert(()=>i)}else k=p.insert(`rect`,`:first-child`),k.attr(`class`,`outer`).attr(`x`,E).attr(`y`,D).attr(`width`,C).attr(`height`,w).attr(`data-look`,r.look),v.attr(`class`,`inner`).attr(`x`,E).attr(`y`,O).attr(`width`,C).attr(`height`,T);return m.attr(`transform`,`translate(${r.x-b.width/2}, ${D+1-(e.w(i)?0:3)})`),r.height=k.node().getBBox().height,r.offsetX=0,r.offsetY=b.height-r.padding/2,r.labelBBox=b,r.intersect=function(e){return h(r,e)},{cluster:f,labelBBox:b}},`roundedWithTitle`),noteGroup:t.h((e,t)=>{let n=e.insert(`g`).attr(`class`,`note-cluster`).attr(`id`,t.domId),r=n.insert(`rect`,`:first-child`),i=0*t.padding,a=i/2;r.attr(`rx`,t.rx).attr(`ry`,t.ry).attr(`x`,t.x-t.width/2-a).attr(`y`,t.y-t.height/2-a).attr(`width`,t.width+i).attr(`height`,t.height+i).attr(`fill`,`none`);let o=r.node().getBBox();return t.width=o.width,t.height=o.height,t.intersect=function(e){return h(t,e)},{cluster:n,labelBBox:{width:0,height:0}}},`noteGroup`),divider:t.h((t,n)=>{let{themeVariables:r,handDrawnSeed:i}=e.b(),{nodeBorder:a}=r,s=t.insert(`g`).attr(`class`,n.cssClasses).attr(`id`,n.domId).attr(`data-look`,n.look),c=s.insert(`g`,`:first-child`),l=0*n.padding,u=n.width+l;n.diff=-n.padding;let d=n.height+l,f=n.x-u/2,p=n.y-d/2;n.width=u;let m;if(n.look===`handDrawn`){let e=o.t.svg(s).rectangle(f,p,u,d,{fill:`lightgrey`,roughness:.5,strokeLineDash:[5],stroke:a,seed:i});m=s.insert(()=>e,`:first-child`)}else{m=c.insert(`rect`,`:first-child`);let e=`outer`;e=(n.look,`divider`),m.attr(`class`,e).attr(`x`,f).attr(`y`,p).attr(`width`,u).attr(`height`,d).attr(`data-look`,n.look)}return n.height=m.node().getBBox().height,n.offsetX=0,n.offsetY=0,n.intersect=function(e){return h(n,e)},{cluster:s,labelBBox:{}}},`divider`),kanbanSection:t.h(async(n,s)=>{t.g.info(`Creating subgraph rect for `,s.id,s);let c=e.b(),{themeVariables:l,handDrawnSeed:u}=c,{clusterBkg:d,clusterBorder:f}=l,{labelStyles:p,nodeStyles:m,borderStyles:g,backgroundStyles:v}=i.i(s),y=n.insert(`g`).attr(`class`,`cluster `+s.cssClasses).attr(`id`,s.domId).attr(`data-look`,s.look),b=e.w(c),x=y.insert(`g`).attr(`class`,`cluster-label `),S=await a.n(x,s.label,{style:s.labelStyle,useHtmlLabels:b,isNode:!0,width:s.width}),C=S.getBBox();if(e.w(c)){let e=S.children[0],n=t.p(S);C=e.getBoundingClientRect(),n.attr(`width`,C.width),n.attr(`height`,C.height)}let w=s.width<=C.width+s.padding?C.width+s.padding:s.width;s.width<=C.width+s.padding?s.diff=(w-s.width)/2-s.padding:s.diff=-s.padding;let T=s.height,E=s.x-w/2,D=s.y-T/2;t.g.trace(`Data `,s,JSON.stringify(s));let O;if(s.look===`handDrawn`){let e=o.t.svg(y),n=i.a(s,{roughness:.7,fill:d,stroke:f,fillWeight:4,seed:u}),r=e.path(_(E,D,w,T,s.rx),n);O=y.insert(()=>(t.g.debug(`Rough node insert CXC`,r),r),`:first-child`),O.select(`path:nth-child(2)`).attr(`style`,g.join(`;`)),O.select(`path`).attr(`style`,v.join(`;`).replace(`fill`,`stroke`))}else O=y.insert(`rect`,`:first-child`),O.attr(`style`,m).attr(`rx`,s.rx).attr(`ry`,s.ry).attr(`x`,E).attr(`y`,D).attr(`width`,w).attr(`height`,T);let{subGraphTitleTopMargin:k}=r.n(c);if(x.attr(`transform`,`translate(${s.x-C.width/2}, ${s.y-s.height/2+k})`),p){let e=x.select(`span`);e&&e.attr(`style`,p)}let A=O.node().getBBox();return s.offsetX=0,s.width=A.width,s.height=A.height,s.offsetY=C.height-s.padding/2,s.intersect=function(e){return h(s,e)},{cluster:y,labelBBox:C}},`kanbanSection`)},b=new Map,x=t.h(async(e,t)=>{let n=await y[t.shape||`rect`](e,t);return b.set(t.id,n),n},`insertCluster`),S=t.h(()=>{b=new Map},`clear`);function C(e,t){return e.intersect(t)}t.h(C,`intersectNode`);var w=C;function T(e,t,n,r){var i=e.x,a=e.y,o=i-r.x,s=a-r.y,c=Math.sqrt(t*t*s*s+n*n*o*o),l=Math.abs(t*n*o/c);r.x<i&&(l=-l);var u=Math.abs(t*n*s/c);return r.y<a&&(u=-u),{x:i+l,y:a+u}}t.h(T,`intersectEllipse`);var E=T;function D(e,t,n){return E(e,t,t,n)}t.h(D,`intersectCircle`);var O=D;function k(e,t,n,r){{let i=t.y-e.y,a=e.x-t.x,o=t.x*e.y-e.x*t.y,s=i*n.x+a*n.y+o,c=i*r.x+a*r.y+o,l=1e-6;if(s!==0&&c!==0&&A(s,c))return;let u=r.y-n.y,d=n.x-r.x,f=r.x*n.y-n.x*r.y,p=u*e.x+d*e.y+f,m=u*t.x+d*t.y+f;if(Math.abs(p)<l&&Math.abs(m)<l&&A(p,m))return;let h=i*d-u*a;if(h===0)return;let g=Math.abs(h/2),_=a*f-d*o,v=_<0?(_-g)/h:(_+g)/h;return _=u*o-i*f,{x:v,y:_<0?(_-g)/h:(_+g)/h}}}t.h(k,`intersectLine`);function A(e,t){return e*t>0}t.h(A,`sameSign`);var j=k;function M(e,t,n){let r=e.x,i=e.y,a=[],o=1/0,s=1/0;typeof t.forEach==`function`?t.forEach(function(e){o=Math.min(o,e.x),s=Math.min(s,e.y)}):(o=Math.min(o,t.x),s=Math.min(s,t.y));let c=r-e.width/2-o,l=i-e.height/2-s;for(let r=0;r<t.length;r++){let i=t[r],o=t[r<t.length-1?r+1:0],s=j(e,n,{x:c+i.x,y:l+i.y},{x:c+o.x,y:l+o.y});s&&a.push(s)}return a.length?(a.length>1&&a.sort(function(e,t){let r=e.x-n.x,i=e.y-n.y,a=Math.sqrt(r*r+i*i),o=t.x-n.x,s=t.y-n.y,c=Math.sqrt(o*o+s*s);return a<c?-1:a===c?0:1}),a[0]):e}t.h(M,`intersectPolygon`);var N={node:w,circle:O,ellipse:E,polygon:M,rect:h};function P(e,r){let{labelStyles:a}=i.i(r);r.labelStyle=a;let s=u(r),c=s;s||(c=`anchor`);let d=e.insert(`g`).attr(`class`,c).attr(`id`,r.domId||r.id),{cssStyles:f}=r,p=o.t.svg(d),m=i.a(r,{fill:`black`,stroke:`none`,fillStyle:`solid`});r.look!==`handDrawn`&&(m.roughness=0);let h=p.circle(0,0,2,m),g=d.insert(()=>h,`:first-child`);return g.attr(`class`,`anchor`).attr(`style`,n.l(f)),l(r,g),r.intersect=function(e){return t.g.info(`Circle intersect`,r,1,e),N.circle(r,1,e)},d}t.h(P,`anchor`);function F(e,t,n,r,i,a,o){let s=(e+n)/2,c=(t+r)/2,l=Math.atan2(r-t,n-e),u=(n-e)/2,d=(r-t)/2,f=u/i,p=d/a,m=Math.sqrt(f**2+p**2);if(m>1)throw Error(`The given radii are too small to create an arc between the points.`);let h=Math.sqrt(1-m**2),g=s+h*a*Math.sin(l)*(o?-1:1),_=c-h*i*Math.cos(l)*(o?-1:1),v=Math.atan2((t-_)/a,(e-g)/i),y=Math.atan2((r-_)/a,(n-g)/i)-v;o&&y<0&&(y+=2*Math.PI),!o&&y>0&&(y-=2*Math.PI);let b=[];for(let e=0;e<20;e++){let t=v+e/19*y,n=g+i*Math.cos(t),r=_+a*Math.sin(t);b.push({x:n,y:r})}return b}t.h(F,`generateArcPoints`);function I(e,t,n){let[r,i]=[t,n].sort((e,t)=>t-e);return i*(1-Math.sqrt(1-(e/r/2)**2))}t.h(I,`calculateArcSagitta`);async function L(e,n){let{labelStyles:r,nodeStyles:a}=i.i(n);n.labelStyle=r;let c=n.padding??0,f=n.look===`neo`?16:c,p=n.look===`neo`?12:c,m=t.h(e=>e+p,`calcTotalHeight`),h=t.h(e=>{let t=e/2;return[t/(2.5+e/50),t]},`calcEllipseRadius`),{shapeSvg:g,bbox:_}=await s(e,n,u(n)),v=m(n?.height?n?.height:_.height),[y,b]=h(v),x=I(v,y,b),S=(n?.width?n?.width:_.width)+f*2+x-x,C=v,{cssStyles:w}=n,T=[{x:S/2,y:-C/2},{x:-S/2,y:-C/2},...F(-S/2,-C/2,-S/2,C/2,y,b,!1),{x:S/2,y:C/2},...F(S/2,C/2,S/2,-C/2,y,b,!0)],E=o.t.svg(g),D=i.a(n,{});n.look!==`handDrawn`&&(D.roughness=0,D.fillStyle=`solid`);let O=d(T),k=E.path(O,D),A=g.insert(()=>k,`:first-child`);return A.attr(`class`,`basic label-container outer-path`),w&&n.look!==`handDrawn`&&A.selectAll(`path`).attr(`style`,w),a&&n.look!==`handDrawn`&&A.selectAll(`path`).attr(`style`,a),A.attr(`transform`,`translate(${y/2}, 0)`),l(n,A),n.intersect=function(e){return N.polygon(n,T,e)},g}t.h(L,`bowTieRect`);function R(e,t,n,r){return e.insert(`polygon`,`:first-child`).attr(`points`,r.map(function(e){return e.x+`,`+e.y}).join(` `)).attr(`class`,`label-container`).attr(`transform`,`translate(`+-t/2+`,`+n/2+`)`)}t.h(R,`insertPolygonShape`);var z=12;async function ee(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let a=t.padding??0,c=t.look===`neo`?28:a,f=t.look===`neo`?24:a,{shapeSvg:p,bbox:m}=await s(e,t,u(t)),h=(t?.width??m.width)+(t.look===`neo`?c*2:c+z),g=(t?.height??m.height)+(t.look===`neo`?f*2:f),_=h,v=-g,y=[{x:0+z,y:v},{x:_,y:v},{x:_,y:0},{x:0,y:0},{x:0,y:v+z},{x:0+z,y:v}],b,{cssStyles:x}=t;if(t.look===`handDrawn`){let e=o.t.svg(p),n=i.a(t,{}),r=d(y),a=e.path(r,n);b=p.insert(()=>a,`:first-child`).attr(`transform`,`translate(${-h/2}, ${g/2})`),x&&b.attr(`style`,x)}else b=R(p,h,g,y);return r&&b.attr(`style`,r),l(t,b),t.intersect=function(e){return N.polygon(t,y,e)},p}t.h(ee,`card`);function B(e,t){let{nodeStyles:n}=i.i(t);t.label=``;let r=e.insert(`g`).attr(`class`,u(t)).attr(`id`,t.domId??t.id),{cssStyles:a}=t,s=Math.max(28,t.width??0),c=[{x:0,y:s/2},{x:s/2,y:0},{x:0,y:-s/2},{x:-s/2,y:0}],l=o.t.svg(r),f=i.a(t,{});t.look!==`handDrawn`&&(f.roughness=0,f.fillStyle=`solid`);let p=d(c),m=l.path(p,f),h=r.insert(()=>m,`:first-child`);return a&&t.look!==`handDrawn`&&h.selectAll(`path`).attr(`style`,a),n&&t.look!==`handDrawn`&&h.selectAll(`path`).attr(`style`,n),t.width=28,t.height=28,t.intersect=function(e){return N.polygon(t,c,e)},r}t.h(B,`choice`);async function V(e,r,a){let{labelStyles:c,nodeStyles:d}=i.i(r);r.labelStyle=c;let{shapeSvg:f,bbox:p,halfPadding:m}=await s(e,r,u(r)),h=a?.padding??m,g=r.look===`neo`?p.width/2+32:p.width/2+h,_,{cssStyles:v}=r;if(r.look===`handDrawn`){let e=o.t.svg(f),t=i.a(r,{}),a=e.circle(0,0,g*2,t);_=f.insert(()=>a,`:first-child`),_.attr(`class`,`basic label-container`).attr(`style`,n.l(v))}else _=f.insert(`circle`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,d).attr(`r`,g).attr(`cx`,0).attr(`cy`,0);return l(r,_),r.calcIntersect=function(e,t){let n=e.width/2;return N.circle(e,n,t)},r.intersect=function(e){return t.g.info(`Circle intersect`,r,g,e),N.circle(r,g,e)},f}t.h(V,`circle`);function H(e){let t=Math.cos(Math.PI/4),n=Math.sin(Math.PI/4),r=e*2,i={x:r/2*t,y:r/2*n},a={x:-(r/2)*t,y:r/2*n},o={x:-(r/2)*t,y:-(r/2)*n},s={x:r/2*t,y:-(r/2)*n};return`M ${a.x},${a.y} L ${s.x},${s.y}
2
2
  M ${i.x},${i.y} L ${o.x},${o.y}`}t.h(H,`createLine`);function U(e,n){let{labelStyles:r,nodeStyles:a}=i.i(n);n.labelStyle=r,n.label=``;let s=e.insert(`g`).attr(`class`,u(n)).attr(`id`,n.domId??n.id),c=Math.max(30,n?.width??0),{cssStyles:d}=n,f=o.t.svg(s),p=i.a(n,{});n.look!==`handDrawn`&&(p.roughness=0,p.fillStyle=`solid`);let m=f.circle(0,0,c*2,p),h=H(c),g=f.path(h,p),_=s.insert(()=>m,`:first-child`);return _.insert(()=>g),_.attr(`class`,`outer-path`),d&&n.look!==`handDrawn`&&_.selectAll(`path`).attr(`style`,d),a&&n.look!==`handDrawn`&&_.selectAll(`path`).attr(`style`,a),l(n,_),n.intersect=function(e){return t.g.info(`crossedCircle intersect`,n,{radius:c,point:e}),N.circle(n,c,e)},s}t.h(U,`crossedCircle`);function W(e,t,n,r=100,i=0,a=180){let o=[],s=i*Math.PI/180,c=(a*Math.PI/180-s)/(r-1);for(let i=0;i<r;i++){let r=s+i*c,a=e+n*Math.cos(r),l=t+n*Math.sin(r);o.push({x:-a,y:-l})}return o}t.h(W,`generateCirclePoints`);async function te(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let{shapeSvg:a,bbox:c,label:f}=await s(e,t,u(t)),p=t.look===`neo`?18:t.padding??0,m=t.look===`neo`?12:t.padding??0,h=c.width+p,g=c.height+m,_=Math.max(5,g*.1),{cssStyles:v}=t,y=[...W(h/2,-g/2,_,30,-90,0),{x:-h/2-_,y:_},...W(h/2+_*2,-_,_,20,-180,-270),...W(h/2+_*2,_,_,20,-90,-180),{x:-h/2-_,y:-g/2},...W(h/2,g/2,_,20,0,90)],b=[{x:h/2,y:-g/2-_},{x:-h/2,y:-g/2-_},...W(h/2,-g/2,_,20,-90,0),{x:-h/2-_,y:-_},...W(h/2+h*.1,-_,_,20,-180,-270),...W(h/2+h*.1,_,_,20,-90,-180),{x:-h/2-_,y:g/2},...W(h/2,g/2,_,20,0,90),{x:-h/2,y:g/2+_},{x:h/2,y:g/2+_}],x=o.t.svg(a),S=i.a(t,{fill:`none`});t.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=d(y).replace(`Z`,``),w=x.path(C,S),T=d(b),E=x.path(T,{...S}),D=a.insert(`g`,`:first-child`);return D.insert(()=>E,`:first-child`).attr(`stroke-opacity`,0),D.insert(()=>w,`:first-child`),D.attr(`class`,`text`),v&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,v),r&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,r),D.attr(`transform`,`translate(${_}, 0)`),f.attr(`transform`,`translate(${-h/2+_-(c.x-(c.left??0))},${-g/2+(t.padding??0)/2-(c.y-(c.top??0))})`),l(t,D),t.intersect=function(e){return N.polygon(t,b,e)},a}t.h(te,`curlyBraceLeft`);function G(e,t,n,r=100,i=0,a=180){let o=[],s=i*Math.PI/180,c=(a*Math.PI/180-s)/(r-1);for(let i=0;i<r;i++){let r=s+i*c,a=e+n*Math.cos(r),l=t+n*Math.sin(r);o.push({x:a,y:l})}return o}t.h(G,`generateCirclePoints`);async function K(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let{shapeSvg:a,bbox:c,label:f}=await s(e,t,u(t)),p=t.look===`neo`?18:t.padding??0,m=t.look===`neo`?12:t.padding??0,h=c.width+(t.look===`neo`?p*2:p),g=c.height+(t.look===`neo`?m*2:m),_=Math.max(5,g*.1),{cssStyles:v}=t,y=[...G(h/2,-g/2,_,20,-90,0),{x:h/2+_,y:-_},...G(h/2+_*2,-_,_,20,-180,-270),...G(h/2+_*2,_,_,20,-90,-180),{x:h/2+_,y:g/2},...G(h/2,g/2,_,20,0,90)],b=[{x:-h/2,y:-g/2-_},{x:h/2,y:-g/2-_},...G(h/2,-g/2,_,20,-90,0),{x:h/2+_,y:-_},...G(h/2+_*2,-_,_,20,-180,-270),...G(h/2+_*2,_,_,20,-90,-180),{x:h/2+_,y:g/2},...G(h/2,g/2,_,20,0,90),{x:h/2,y:g/2+_},{x:-h/2,y:g/2+_}],x=o.t.svg(a),S=i.a(t,{fill:`none`});t.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=d(y).replace(`Z`,``),w=x.path(C,S),T=d(b),E=x.path(T,{...S}),D=a.insert(`g`,`:first-child`);return D.insert(()=>E,`:first-child`).attr(`stroke-opacity`,0),D.insert(()=>w,`:first-child`),D.attr(`class`,`text`),v&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,v),r&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,r),D.attr(`transform`,`translate(${-_}, 0)`),f.attr(`transform`,`translate(${-h/2+(t.padding??0)/2-(c.x-(c.left??0))},${-g/2+(t.padding??0)/2-(c.y-(c.top??0))})`),l(t,D),t.intersect=function(e){return N.polygon(t,b,e)},a}t.h(K,`curlyBraceRight`);function q(e,t,n,r=100,i=0,a=180){let o=[],s=i*Math.PI/180,c=(a*Math.PI/180-s)/(r-1);for(let i=0;i<r;i++){let r=s+i*c,a=e+n*Math.cos(r),l=t+n*Math.sin(r);o.push({x:-a,y:-l})}return o}t.h(q,`generateCirclePoints`);async function ne(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let{shapeSvg:a,bbox:c,label:f}=await s(e,t,u(t)),p=t.look===`neo`?18:t.padding??0,m=t.look===`neo`?12:t.padding??0,h=c.width+(t.look===`neo`?p*2:p),g=c.height+(t.look===`neo`?m*2:m),_=Math.max(5,g*.1),{cssStyles:v}=t,y=[...q(h/2,-g/2,_,30,-90,0),{x:-h/2-_,y:_},...q(h/2+_*2,-_,_,20,-180,-270),...q(h/2+_*2,_,_,20,-90,-180),{x:-h/2-_,y:-g/2},...q(h/2,g/2,_,20,0,90)],b=[...q(-h/2+_+_/2,-g/2,_,20,-90,-180),{x:h/2-_/2,y:_},...q(-h/2-_/2,-_,_,20,0,90),...q(-h/2-_/2,_,_,20,-90,0),{x:h/2-_/2,y:-_},...q(-h/2+_+_/2,g/2,_,30,-180,-270)],x=[{x:h/2,y:-g/2-_},{x:-h/2,y:-g/2-_},...q(h/2,-g/2,_,20,-90,0),{x:-h/2-_,y:-_},...q(h/2+_*2,-_,_,20,-180,-270),...q(h/2+_*2,_,_,20,-90,-180),{x:-h/2-_,y:g/2},...q(h/2,g/2,_,20,0,90),{x:-h/2,y:g/2+_},{x:h/2-_-_/2,y:g/2+_},...q(-h/2+_+_/2,-g/2,_,20,-90,-180),{x:h/2-_/2,y:_},...q(-h/2-_/2,-_,_,20,0,90),...q(-h/2-_/2,_,_,20,-90,0),{x:h/2-_/2,y:-_},...q(-h/2+_+_/2,g/2,_,30,-180,-270)],S=o.t.svg(a),C=i.a(t,{fill:`none`});t.look!==`handDrawn`&&(C.roughness=0,C.fillStyle=`solid`);let w=d(y).replace(`Z`,``),T=S.path(w,C),E=d(b).replace(`Z`,``),D=S.path(E,C),O=d(x),k=S.path(O,{...C}),A=a.insert(`g`,`:first-child`);return A.insert(()=>k,`:first-child`).attr(`stroke-opacity`,0),A.insert(()=>T,`:first-child`),A.insert(()=>D,`:first-child`),A.attr(`class`,`text`),v&&t.look!==`handDrawn`&&A.selectAll(`path`).attr(`style`,v),r&&t.look!==`handDrawn`&&A.selectAll(`path`).attr(`style`,r),A.attr(`transform`,`translate(${_-_/4}, 0)`),f.attr(`transform`,`translate(${-h/2+(t.padding??0)/2-(c.x-(c.left??0))},${-g/2+(t.padding??0)/2-(c.y-(c.top??0))})`),l(t,A),t.intersect=function(e){return N.polygon(t,x,e)},a}t.h(ne,`curlyBraces`);async function re(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let a=t.padding??0,c=t.look===`neo`?16:a,f=t.look===`neo`?12:a,{shapeSvg:m,bbox:h}=await s(e,t,u(t)),g=Math.max(20,(h.width+c*2)*1.25,t?.width??0),_=Math.max(5,h.height+f*2,t?.height??0),v=_/2,{cssStyles:y}=t,b=o.t.svg(m),x=i.a(t,{});t.look!==`handDrawn`&&(x.roughness=0,x.fillStyle=`solid`);let S=g,C=_,w=S-v,T=C/4,E=[{x:w,y:0},{x:T,y:0},{x:0,y:C/2},{x:T,y:C},{x:w,y:C},...p(-w,-C/2,v,50,270,90)],D=d(E),O=b.path(D,x),k=m.insert(()=>O,`:first-child`);return k.attr(`class`,`basic label-container outer-path`),y&&t.look!==`handDrawn`&&k.selectChildren(`path`).attr(`style`,y),r&&t.look!==`handDrawn`&&k.selectChildren(`path`).attr(`style`,r),k.attr(`transform`,`translate(${-g/2}, ${-_/2})`),l(t,k),t.intersect=function(e){return N.polygon(t,E,e)},m}t.h(re,`curvedTrapezoid`);var ie=t.h((e,t,n,r,i,a)=>[`M${e},${t+a}`,`a${i},${a} 0,0,0 ${n},0`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`].join(` `),`createCylinderPathD`),ae=t.h((e,t,n,r,i,a)=>[`M${e},${t+a}`,`M${e+n},${t+a}`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`].join(` `),`createOuterCylinderPathD`),oe=t.h((e,t,n,r,i,a)=>[`M${e-n/2},${-r/2}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createInnerCylinderPathD`),se=8,ce=8;async function le(e,t){let{labelStyles:r,nodeStyles:a}=i.i(t);t.labelStyle=r;let c=t.padding??0,d=t.look===`neo`?24:c,f=t.look===`neo`?24:c;if(t.width||t.height){let e=t.width??0;t.width=(t.width??0)-f,t.width<ce&&(t.width=ce);let n=e/2/(2.5+e/50);t.height=(t.height??0)-d-n*3,t.height<se&&(t.height=se)}let{shapeSvg:p,bbox:m,label:h}=await s(e,t,u(t)),g=(t.width?t.width:m.width)+f,_=g/2,v=_/(2.5+g/50),y=(t.height?t.height:m.height)+d+v,b,{cssStyles:x}=t;if(t.look===`handDrawn`){let e=o.t.svg(p),n=ae(0,0,g,y,_,v),r=oe(0,v,g,y,_,v),a=i.a(t,{}),s=e.path(n,a),c=e.path(r,i.a(t,{fill:`none`}));b=p.insert(()=>c,`:first-child`),b=p.insert(()=>s,`:first-child`),b.attr(`class`,`basic label-container`),x&&b.attr(`style`,x)}else{let e=ie(0,0,g,y,_,v);b=p.insert(`path`,`:first-child`).attr(`d`,e).attr(`class`,`basic label-container outer-path`).attr(`style`,n.l(x)).attr(`style`,a)}return b.attr(`label-offset-y`,v),b.attr(`transform`,`translate(${-g/2}, ${-(y/2+v)})`),l(t,b),h.attr(`transform`,`translate(${-(m.width/2)-(m.x-(m.left??0))}, ${-(m.height/2)+(t.padding??0)/1.5-(m.y-(m.top??0))})`),t.intersect=function(e){let n=N.rect(t,e),r=n.x-(t.x??0);if(_!=0&&(Math.abs(r)<(t.width??0)/2||Math.abs(r)==(t.width??0)/2&&Math.abs(n.y-(t.y??0))>(t.height??0)/2-v)){let i=v*v*(1-r*r/(_*_));i>0&&(i=Math.sqrt(i)),i=v-i,e.y-(t.y??0)>0&&(i=-i),n.y+=i}return n},p}t.h(le,`cylinder`);async function ue(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let a=t.look===`neo`?16:t.padding??0,c=t.look===`neo`?16:t.padding??0,{shapeSvg:d,bbox:f,label:p}=await s(e,t,u(t)),m=f.width+a,h=f.height+c,g=h*.2,_=-m/2,v=-h/2-g/2,{cssStyles:y}=t,b=o.t.svg(d),x=i.a(t,{});t.look!==`handDrawn`&&(x.roughness=0,x.fillStyle=`solid`);let S=[{x:_,y:v+g},{x:-_,y:v+g},{x:-_,y:-v},{x:_,y:-v},{x:_,y:v},{x:-_,y:v},{x:-_,y:v+g}],C=b.polygon(S.map(e=>[e.x,e.y]),x),w=d.insert(()=>C,`:first-child`);return w.attr(`class`,`basic label-container outer-path`),y&&t.look!==`handDrawn`&&w.selectAll(`path`).attr(`style`,y),r&&t.look!==`handDrawn`&&w.selectAll(`path`).attr(`style`,r),p.attr(`transform`,`translate(${_+(t.padding??0)/2-(f.x-(f.left??0))}, ${v+g+(t.padding??0)/2-(f.y-(f.top??0))})`),l(t,w),t.intersect=function(e){return N.rect(t,e)},d}t.h(ue,`dividedRectangle`);async function de(e,r){let{labelStyles:a,nodeStyles:c}=i.i(r),d=r.look===`neo`?12:5;r.labelStyle=a;let f=r.padding??0,p=r.look===`neo`?16:f,{shapeSvg:m,bbox:h}=await s(e,r,u(r)),g=(r?.width?r?.width/2:h.width/2)+(p??0),_=g-d,v,{cssStyles:y}=r;if(r.look===`handDrawn`){let e=o.t.svg(m),t=i.a(r,{roughness:.2,strokeWidth:2.5}),a=i.a(r,{roughness:.2,strokeWidth:1.5}),s=e.circle(0,0,g*2,t),c=e.circle(0,0,_*2,a);v=m.insert(`g`,`:first-child`),v.attr(`class`,n.l(r.cssClasses)).attr(`style`,n.l(y)),v.node()?.appendChild(s),v.node()?.appendChild(c)}else{v=m.insert(`g`,`:first-child`);let e=v.insert(`circle`,`:first-child`),t=v.insert(`circle`);v.attr(`class`,`basic label-container`).attr(`style`,c),e.attr(`class`,`outer-circle`).attr(`style`,c).attr(`r`,g).attr(`cx`,0).attr(`cy`,0),t.attr(`class`,`inner-circle`).attr(`style`,c).attr(`r`,_).attr(`cx`,0).attr(`cy`,0)}return l(r,v),r.intersect=function(e){return t.g.info(`DoubleCircle intersect`,r,g,e),N.circle(r,g,e)},m}t.h(de,`doublecircle`);function fe(e,n,{config:{themeVariables:r}}){let{labelStyles:a,nodeStyles:s}=i.i(n);n.label=``,n.labelStyle=a;let c=e.insert(`g`).attr(`class`,u(n)).attr(`id`,n.domId??n.id),{cssStyles:d}=n,f=o.t.svg(c),{nodeBorder:p}=r,m=i.a(n,{fillStyle:`solid`});n.look!==`handDrawn`&&(m.roughness=0);let h=f.circle(0,0,14,m),g=c.insert(()=>h,`:first-child`);return g.selectAll(`path`).attr(`style`,`fill: ${p} !important;`),d&&d.length>0&&n.look!==`handDrawn`&&g.selectAll(`path`).attr(`style`,d),s&&n.look!==`handDrawn`&&g.selectAll(`path`).attr(`style`,s),l(n,g),n.intersect=function(e){return t.g.info(`filledCircle intersect`,n,{radius:7,point:e}),N.circle(n,7,e)},c}t.h(fe,`filledCircle`);var pe=10,me=10;async function he(e,n){let{labelStyles:r,nodeStyles:a}=i.i(n);n.labelStyle=r;let c=n.padding??0,f=n.look===`neo`?c*2:c;(n.width||n.height)&&(n.height=n?.height??0,n.height<pe&&(n.height=pe),n.width=(n?.width??0)-f-f/2,n.width<me&&(n.width=me));let{shapeSvg:p,bbox:m,label:h}=await s(e,n,u(n)),g=(n?.width?n?.width:m.width)+(f??0),_=n?.height?n?.height:g+m.height,v=_,y=[{x:0,y:-_},{x:v,y:-_},{x:v/2,y:0}],{cssStyles:b}=n,x=o.t.svg(p),S=i.a(n,{});n.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=d(y),w=x.path(C,S),T=p.insert(()=>w,`:first-child`).attr(`transform`,`translate(${-_/2}, ${_/2})`).attr(`class`,`outer-path`);return b&&n.look!==`handDrawn`&&T.selectChildren(`path`).attr(`style`,b),a&&n.look!==`handDrawn`&&T.selectChildren(`path`).attr(`style`,a),n.width=g,n.height=_,l(n,T),h.attr(`transform`,`translate(${-m.width/2-(m.x-(m.left??0))}, ${-_/2+(n.padding??0)/2+(m.y-(m.top??0))})`),n.intersect=function(e){return t.g.info(`Triangle intersect`,n,y,e),N.polygon(n,y,e)},p}t.h(he,`flippedTriangle`);function ge(e,t,{dir:n,config:{state:r,themeVariables:a}}){let{nodeStyles:s}=i.i(t);t.label=``;let c=e.insert(`g`).attr(`class`,u(t)).attr(`id`,t.domId??t.id),{cssStyles:d}=t,f=Math.max(70,t?.width??0),p=Math.max(10,t?.height??0);n===`LR`&&(f=Math.max(10,t?.width??0),p=Math.max(70,t?.height??0));let m=-1*f/2,h=-1*p/2,g=o.t.svg(c),_=i.a(t,{stroke:a.lineColor,fill:a.lineColor});t.look!==`handDrawn`&&(_.roughness=0,_.fillStyle=`solid`);let v=g.rectangle(m,h,f,p,_),y=c.insert(()=>v,`:first-child`);d&&t.look!==`handDrawn`&&y.selectAll(`path`).attr(`style`,d),s&&t.look!==`handDrawn`&&y.selectAll(`path`).attr(`style`,s),l(t,y);let b=r?.padding??0;return t.width&&t.height&&(t.width+=b/2||0,t.height+=b/2||0),t.intersect=function(e){return N.rect(t,e)},c}t.h(ge,`forkJoin`);async function _e(e,n){let{labelStyles:r,nodeStyles:a}=i.i(n);n.labelStyle=r;let c=n.look===`neo`?16:n.padding??0,f=n.look===`neo`?12:n.padding??0;(n.width||n.height)&&(n.height=(n?.height??0)-f*2,n.height<10&&(n.height=10),n.width=(n?.width??0)-c*2,n.width<15&&(n.width=15));let{shapeSvg:m,bbox:h}=await s(e,n,u(n)),g=(n?.width?n?.width:Math.max(15,h.width))+c*2,_=(n?.height?n?.height:Math.max(10,h.height))+f*2,v=_/2,{cssStyles:y}=n,b=o.t.svg(m),x=i.a(n,{});n.look!==`handDrawn`&&(x.roughness=0,x.fillStyle=`solid`);let S=[{x:-g/2,y:-_/2},{x:g/2-v,y:-_/2},...p(-g/2+v,0,v,50,90,270),{x:g/2-v,y:_/2},{x:-g/2,y:_/2}],C=d(S),w=b.path(C,x),T=m.insert(()=>w,`:first-child`);return T.attr(`class`,`basic label-container outer-path`),y&&n.look!==`handDrawn`&&T.selectChildren(`path`).attr(`style`,y),a&&n.look!==`handDrawn`&&T.selectChildren(`path`).attr(`style`,a),l(n,T),n.intersect=function(e){return t.g.info(`Pill intersect`,n,{radius:v,point:e}),N.polygon(n,S,e)},m}t.h(_e,`halfRoundedRectangle`);var ve=t.h((e,t,n,r,i)=>[`M${e+i},${t}`,`L${e+n-i},${t}`,`L${e+n},${t-r/2}`,`L${e+n-i},${t-r}`,`L${e+i},${t-r}`,`L${e},${t-r/2}`,`Z`].join(` `),`createHexagonPathD`);async function ye(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t),a=t.look===`neo`?3.5:4;t.labelStyle=n;let c=t.padding??0,d=t.look===`neo`?70:c,f=t.look===`neo`?32:c;if(t.width||t.height){let e=(t.height??0)/a;t.width=(t?.width??0)-2*e-f,t.height=(t.height??0)-d}let{shapeSvg:p,bbox:m}=await s(e,t,u(t)),h=(t?.height?t?.height:m.height)+d,g=h/a,_=(t?.width?t?.width:m.width)+2*g+f,v=[{x:g,y:0},{x:_-g,y:0},{x:_,y:-h/2},{x:_-g,y:-h},{x:g,y:-h},{x:0,y:-h/2}],y,{cssStyles:b}=t;if(t.look===`handDrawn`){let e=o.t.svg(p),n=i.a(t,{}),r=ve(0,0,_,h,g),a=e.path(r,n);y=p.insert(()=>a,`:first-child`).attr(`transform`,`translate(${-_/2}, ${h/2})`),b&&y.attr(`style`,b)}else y=R(p,_,h,v);return r&&y.attr(`style`,r),t.width=_,t.height=h,l(t,y),t.intersect=function(e){return N.polygon(t,v,e)},p}t.h(ye,`hexagon`);async function be(e,n){let{labelStyles:r,nodeStyles:a}=i.i(n);n.label=``,n.labelStyle=r;let{shapeSvg:c}=await s(e,n,u(n)),f=Math.max(30,n?.width??0),p=Math.max(30,n?.height??0),{cssStyles:m}=n,h=o.t.svg(c),g=i.a(n,{});n.look!==`handDrawn`&&(g.roughness=0,g.fillStyle=`solid`);let _=[{x:0,y:0},{x:f,y:0},{x:0,y:p},{x:f,y:p}],v=d(_),y=h.path(v,g),b=c.insert(()=>y,`:first-child`);return b.attr(`class`,`basic label-container outer-path`),m&&n.look!==`handDrawn`&&b.selectChildren(`path`).attr(`style`,m),a&&n.look!==`handDrawn`&&b.selectChildren(`path`).attr(`style`,a),b.attr(`transform`,`translate(${-f/2}, ${-p/2})`),l(n,b),n.intersect=function(e){return t.g.info(`Pill intersect`,n,{points:_}),N.polygon(n,_,e)},c}t.h(be,`hourglass`);async function xe(e,n,{config:{themeVariables:r,flowchart:c}}){let{labelStyles:u}=i.i(n);n.labelStyle=u;let d=n.assetHeight??48,f=n.assetWidth??48,p=Math.max(d,f),m=c?.wrappingWidth;n.width=Math.max(p,m??0);let{shapeSvg:h,bbox:g,label:_}=await s(e,n,`icon-shape default`),v=n.pos===`t`,y=p,b=p,{nodeBorder:x}=r,{stylesMap:S}=i.t(n),C=-b/2,w=-y/2,T=n.label?8:0,E=o.t.svg(h),D=i.a(n,{stroke:`none`,fill:`none`});n.look!==`handDrawn`&&(D.roughness=0,D.fillStyle=`solid`);let O=E.rectangle(C,w,b,y,D),k=Math.max(b,g.width),A=y+g.height+T,j=E.rectangle(-k/2,-A/2,k,A,{...D,fill:`transparent`,stroke:`none`}),M=h.insert(()=>O,`:first-child`),P=h.insert(()=>j);if(n.icon){let e=h.append(`g`);e.html(`<g>${await a.r(n.icon,{height:p,width:p,fallbackPrefix:``})}</g>`);let t=e.node().getBBox(),r=t.width,i=t.height,o=t.x,s=t.y;e.attr(`transform`,`translate(${-r/2-o},${v?g.height/2+T/2-i/2-s:-g.height/2-T/2-i/2-s})`),e.attr(`style`,`color: ${S.get(`stroke`)??x};`)}return _.attr(`transform`,`translate(${-g.width/2-(g.x-(g.left??0))},${v?-A/2:A/2-g.height})`),M.attr(`transform`,`translate(0,${v?g.height/2+T/2:-g.height/2-T/2})`),l(n,P),n.intersect=function(e){if(t.g.info(`iconSquare intersect`,n,e),!n.label)return N.rect(n,e);let r=n.x??0,i=n.y??0,a=n.height??0,o=[];return o=v?[{x:r-g.width/2,y:i-a/2},{x:r+g.width/2,y:i-a/2},{x:r+g.width/2,y:i-a/2+g.height+T},{x:r+b/2,y:i-a/2+g.height+T},{x:r+b/2,y:i+a/2},{x:r-b/2,y:i+a/2},{x:r-b/2,y:i-a/2+g.height+T},{x:r-g.width/2,y:i-a/2+g.height+T}]:[{x:r-b/2,y:i-a/2},{x:r+b/2,y:i-a/2},{x:r+b/2,y:i-a/2+y},{x:r+g.width/2,y:i-a/2+y},{x:r+g.width/2/2,y:i+a/2},{x:r-g.width/2,y:i+a/2},{x:r-g.width/2,y:i-a/2+y},{x:r-b/2,y:i-a/2+y}],N.polygon(n,o,e)},h}t.h(xe,`icon`);async function Se(e,n,{config:{themeVariables:r,flowchart:c}}){let{labelStyles:u}=i.i(n);n.labelStyle=u;let d=n.assetHeight??48,f=n.assetWidth??48,p=Math.max(d,f),m=c?.wrappingWidth;n.width=Math.max(p,m??0);let{shapeSvg:h,bbox:g,label:_}=await s(e,n,`icon-shape default`),v=n.label?8:0,y=n.pos===`t`,{nodeBorder:b,mainBkg:x}=r,{stylesMap:S}=i.t(n),C=o.t.svg(h),w=i.a(n,{});n.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`),w.stroke=S.get(`fill`)??x;let T=h.append(`g`);n.icon&&T.html(`<g>${await a.r(n.icon,{height:p,width:p,fallbackPrefix:``})}</g>`);let E=T.node().getBBox(),D=E.width,O=E.height,k=E.x,A=E.y,j=Math.max(D,O)*Math.SQRT2+40,M=C.circle(0,0,j,w),P=Math.max(j,g.width),F=j+g.height+v,I=C.rectangle(-P/2,-F/2,P,F,{...w,fill:`transparent`,stroke:`none`}),L=h.insert(()=>M,`:first-child`),R=h.insert(()=>I);return T.attr(`transform`,`translate(${-D/2-k},${y?g.height/2+v/2-O/2-A:-g.height/2-v/2-O/2-A})`),T.attr(`style`,`color: ${S.get(`stroke`)??b};`),_.attr(`transform`,`translate(${-g.width/2-(g.x-(g.left??0))},${y?-F/2:F/2-g.height})`),L.attr(`transform`,`translate(0,${y?g.height/2+v/2:-g.height/2-v/2})`),l(n,R),n.intersect=function(e){return t.g.info(`iconSquare intersect`,n,e),N.rect(n,e)},h}t.h(Se,`iconCircle`);async function Ce(e,n,{config:{themeVariables:r,flowchart:c}}){let{labelStyles:u}=i.i(n);n.labelStyle=u;let d=n.assetHeight??48,f=n.assetWidth??48,p=Math.max(d,f),m=c?.wrappingWidth;n.width=Math.max(p,m??0);let{shapeSvg:h,bbox:g,halfPadding:v,label:y}=await s(e,n,`icon-shape default`),b=n.pos===`t`,x=p+v*2,S=p+v*2,{nodeBorder:C,mainBkg:w}=r,{stylesMap:T}=i.t(n),E=-S/2,D=-x/2,O=n.label?8:0,k=o.t.svg(h),A=i.a(n,{});n.look!==`handDrawn`&&(A.roughness=0,A.fillStyle=`solid`),A.stroke=T.get(`fill`)??w;let j=k.path(_(E,D,S,x,5),A),M=Math.max(S,g.width),P=x+g.height+O,F=k.rectangle(-M/2,-P/2,M,P,{...A,fill:`transparent`,stroke:`none`}),I=h.insert(()=>j,`:first-child`).attr(`class`,`icon-shape2`),L=h.insert(()=>F);if(n.icon){let e=h.append(`g`);e.html(`<g>${await a.r(n.icon,{height:p,width:p,fallbackPrefix:``})}</g>`);let t=e.node().getBBox(),r=t.width,i=t.height,o=t.x,s=t.y;e.attr(`transform`,`translate(${-r/2-o},${b?g.height/2+O/2-i/2-s:-g.height/2-O/2-i/2-s})`),e.attr(`style`,`color: ${T.get(`stroke`)??C};`)}return y.attr(`transform`,`translate(${-g.width/2-(g.x-(g.left??0))},${b?-P/2:P/2-g.height})`),I.attr(`transform`,`translate(0,${b?g.height/2+O/2:-g.height/2-O/2})`),l(n,L),n.intersect=function(e){if(t.g.info(`iconSquare intersect`,n,e),!n.label)return N.rect(n,e);let r=n.x??0,i=n.y??0,a=n.height??0,o=[];return o=b?[{x:r-g.width/2,y:i-a/2},{x:r+g.width/2,y:i-a/2},{x:r+g.width/2,y:i-a/2+g.height+O},{x:r+S/2,y:i-a/2+g.height+O},{x:r+S/2,y:i+a/2},{x:r-S/2,y:i+a/2},{x:r-S/2,y:i-a/2+g.height+O},{x:r-g.width/2,y:i-a/2+g.height+O}]:[{x:r-S/2,y:i-a/2},{x:r+S/2,y:i-a/2},{x:r+S/2,y:i-a/2+x},{x:r+g.width/2,y:i-a/2+x},{x:r+g.width/2/2,y:i+a/2},{x:r-g.width/2,y:i+a/2},{x:r-g.width/2,y:i-a/2+x},{x:r-S/2,y:i-a/2+x}],N.polygon(n,o,e)},h}t.h(Ce,`iconRounded`);async function we(e,n,{config:{themeVariables:r,flowchart:c}}){let{labelStyles:u}=i.i(n);n.labelStyle=u;let d=n.assetHeight??48,f=n.assetWidth??48,p=Math.max(d,f),m=c?.wrappingWidth;n.width=Math.max(p,m??0);let{shapeSvg:h,bbox:g,halfPadding:v,label:y}=await s(e,n,`icon-shape default`),b=n.pos===`t`,x=p+v*2,S=p+v*2,{nodeBorder:C,mainBkg:w}=r,{stylesMap:T}=i.t(n),E=-S/2,D=-x/2,O=n.label?8:0,k=o.t.svg(h),A=i.a(n,{});n.look!==`handDrawn`&&(A.roughness=0,A.fillStyle=`solid`),A.stroke=T.get(`fill`)??w;let j=k.path(_(E,D,S,x,.1),A),M=Math.max(S,g.width),P=x+g.height+O,F=k.rectangle(-M/2,-P/2,M,P,{...A,fill:`transparent`,stroke:`none`}),I=h.insert(()=>j,`:first-child`),L=h.insert(()=>F);if(n.icon){let e=h.append(`g`);e.html(`<g>${await a.r(n.icon,{height:p,width:p,fallbackPrefix:``})}</g>`);let t=e.node().getBBox(),r=t.width,i=t.height,o=t.x,s=t.y;e.attr(`transform`,`translate(${-r/2-o},${b?g.height/2+O/2-i/2-s:-g.height/2-O/2-i/2-s})`),e.attr(`style`,`color: ${T.get(`stroke`)??C};`)}return y.attr(`transform`,`translate(${-g.width/2-(g.x-(g.left??0))},${b?-P/2:P/2-g.height})`),I.attr(`transform`,`translate(0,${b?g.height/2+O/2:-g.height/2-O/2})`),l(n,L),n.intersect=function(e){if(t.g.info(`iconSquare intersect`,n,e),!n.label)return N.rect(n,e);let r=n.x??0,i=n.y??0,a=n.height??0,o=[];return o=b?[{x:r-g.width/2,y:i-a/2},{x:r+g.width/2,y:i-a/2},{x:r+g.width/2,y:i-a/2+g.height+O},{x:r+S/2,y:i-a/2+g.height+O},{x:r+S/2,y:i+a/2},{x:r-S/2,y:i+a/2},{x:r-S/2,y:i-a/2+g.height+O},{x:r-g.width/2,y:i-a/2+g.height+O}]:[{x:r-S/2,y:i-a/2},{x:r+S/2,y:i-a/2},{x:r+S/2,y:i-a/2+x},{x:r+g.width/2,y:i-a/2+x},{x:r+g.width/2/2,y:i+a/2},{x:r-g.width/2,y:i+a/2},{x:r-g.width/2,y:i-a/2+x},{x:r-S/2,y:i-a/2+x}],N.polygon(n,o,e)},h}t.h(we,`iconSquare`);async function Te(e,n,{config:{flowchart:r}}){let a=new Image;a.src=n?.img??``,await a.decode();let c=Number(a.naturalWidth.toString().replace(`px`,``)),u=Number(a.naturalHeight.toString().replace(`px`,``));n.imageAspectRatio=c/u;let{labelStyles:d}=i.i(n);n.labelStyle=d;let f=r?.wrappingWidth;n.defaultWidth=r?.wrappingWidth;let p=Math.max(n.label?f??0:0,n?.assetWidth??c),m=n.constraint===`on`&&n?.assetHeight?n.assetHeight*n.imageAspectRatio:p,h=n.constraint===`on`?m/n.imageAspectRatio:n?.assetHeight??u;n.width=Math.max(m,f??0);let{shapeSvg:g,bbox:_,label:v}=await s(e,n,`image-shape default`),y=n.pos===`t`,b=-m/2,x=-h/2,S=n.label?8:0,C=o.t.svg(g),w=i.a(n,{});n.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`);let T=C.rectangle(b,x,m,h,w),E=Math.max(m,_.width),D=h+_.height+S,O=C.rectangle(-E/2,-D/2,E,D,{...w,fill:`none`,stroke:`none`}),k=g.insert(()=>T,`:first-child`),A=g.insert(()=>O);if(n.img){let e=g.append(`image`);e.attr(`href`,n.img),e.attr(`width`,m),e.attr(`height`,h),e.attr(`preserveAspectRatio`,`none`),e.attr(`transform`,`translate(${-m/2},${y?D/2-h:-D/2})`)}return v.attr(`transform`,`translate(${-_.width/2-(_.x-(_.left??0))},${y?-h/2-_.height/2-S/2:h/2-_.height/2+S/2})`),k.attr(`transform`,`translate(0,${y?_.height/2+S/2:-_.height/2-S/2})`),l(n,A),n.intersect=function(e){if(t.g.info(`iconSquare intersect`,n,e),!n.label)return N.rect(n,e);let r=n.x??0,i=n.y??0,a=n.height??0,o=[];return o=y?[{x:r-_.width/2,y:i-a/2},{x:r+_.width/2,y:i-a/2},{x:r+_.width/2,y:i-a/2+_.height+S},{x:r+m/2,y:i-a/2+_.height+S},{x:r+m/2,y:i+a/2},{x:r-m/2,y:i+a/2},{x:r-m/2,y:i-a/2+_.height+S},{x:r-_.width/2,y:i-a/2+_.height+S}]:[{x:r-m/2,y:i-a/2},{x:r+m/2,y:i-a/2},{x:r+m/2,y:i-a/2+h},{x:r+_.width/2,y:i-a/2+h},{x:r+_.width/2/2,y:i+a/2},{x:r-_.width/2,y:i+a/2},{x:r-_.width/2,y:i-a/2+h},{x:r-m/2,y:i-a/2+h}],N.polygon(n,o,e)},g}t.h(Te,`imageSquare`);async function Ee(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let a=t.padding??0,c=a,f=t.look===`neo`?a*2:a,{shapeSvg:p,bbox:m}=await s(e,t,u(t)),h=Math.max(m.width+(f??0)*2,t?.width??0),g=Math.max(m.height+(c??0)*2,t?.height??0),_=[{x:0,y:0},{x:h,y:0},{x:h+3*g/6,y:-g},{x:-3*g/6,y:-g}],v,{cssStyles:y}=t;if(t.look===`handDrawn`){let e=o.t.svg(p),n=i.a(t,{}),r=d(_),a=e.path(r,n);v=p.insert(()=>a,`:first-child`).attr(`transform`,`translate(${-h/2}, ${g/2})`),y&&v.attr(`style`,y)}else v=R(p,h,g,_);return r&&v.attr(`style`,r),t.width=h,t.height=g,l(t,v),t.intersect=function(e){return N.polygon(t,_,e)},p}t.h(Ee,`inv_trapezoid`);async function De(e,t,r){let{labelStyles:a,nodeStyles:c}=i.i(t);t.labelStyle=a;let{shapeSvg:d,bbox:f}=await s(e,t,u(t)),p=Math.max(f.width+r.labelPaddingX*2,t?.width||0),m=Math.max(f.height+r.labelPaddingY*2,t?.height||0),h=-p/2,g=-m/2,v,{rx:y,ry:b}=t,{cssStyles:x}=t;if(r?.rx&&r.ry&&(y=r.rx,b=r.ry),t.look===`handDrawn`){let e=o.t.svg(d),r=i.a(t,{}),a=y||b?e.path(_(h,g,p,m,y||0),r):e.rectangle(h,g,p,m,r);v=d.insert(()=>a,`:first-child`),v.attr(`class`,`basic label-container`).attr(`style`,n.l(x))}else v=d.insert(`rect`,`:first-child`),v.attr(`class`,`basic label-container`).attr(`style`,c).attr(`rx`,n.l(y)).attr(`ry`,n.l(b)).attr(`x`,h).attr(`y`,g).attr(`width`,p).attr(`height`,m);return l(t,v),t.calcIntersect=function(e,t){return N.rect(e,t)},t.intersect=function(e){return N.rect(t,e)},d}t.h(De,`drawRect`);async function Oe(e,t){let{shapeSvg:n,bbox:r,label:i}=await s(e,t,`label`),a=n.insert(`rect`,`:first-child`);return a.attr(`width`,.1).attr(`height`,.1),n.attr(`class`,`label edgeLabel`),i.attr(`transform`,`translate(${-(r.width/2)-(r.x-(r.left??0))}, ${-(r.height/2)-(r.y-(r.top??0))})`),l(t,a),t.intersect=function(e){return N.rect(t,e)},n}t.h(Oe,`labelRect`);async function ke(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let a=t.padding??0,c=a,f=t.look===`neo`?a*2:a,{shapeSvg:p,bbox:m}=await s(e,t,u(t)),h=(t?.height??m.height)+c,g=(t?.width??m.width)+f,_=[{x:0,y:0},{x:g+3*h/6,y:0},{x:g,y:-h},{x:-(3*h)/6,y:-h}],v,{cssStyles:y}=t;if(t.look===`handDrawn`){let e=o.t.svg(p),n=i.a(t,{}),r=d(_),a=e.path(r,n);v=p.insert(()=>a,`:first-child`).attr(`transform`,`translate(${-g/2}, ${h/2})`),y&&v.attr(`style`,y)}else v=R(p,g,h,_);return r&&v.attr(`style`,r),t.width=g,t.height=h,l(t,v),t.intersect=function(e){return N.polygon(t,_,e)},p}t.h(ke,`lean_left`);async function Ae(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let a=t.padding??0,c=a,f=t.look===`neo`?a*2:a,{shapeSvg:p,bbox:m}=await s(e,t,u(t)),h=(t?.height??m.height)+c,g=(t?.width??m.width)+f,_=[{x:-3*h/6,y:0},{x:g,y:0},{x:g+3*h/6,y:-h},{x:0,y:-h}],v,{cssStyles:y}=t;if(t.look===`handDrawn`){let e=o.t.svg(p),n=i.a(t,{}),r=d(_),a=e.path(r,n);v=p.insert(()=>a,`:first-child`).attr(`transform`,`translate(${-g/2}, ${h/2})`),y&&v.attr(`style`,y)}else v=R(p,g,h,_);return r&&v.attr(`style`,r),t.width=g,t.height=h,l(t,v),t.intersect=function(e){return N.polygon(t,_,e)},p}t.h(Ae,`lean_right`);function je(e,n){let{labelStyles:r,nodeStyles:a}=i.i(n);n.label=``,n.labelStyle=r;let s=e.insert(`g`).attr(`class`,u(n)).attr(`id`,n.domId??n.id),{cssStyles:c}=n,f=Math.max(35,n?.width??0),p=Math.max(35,n?.height??0),m=[{x:f,y:0},{x:0,y:p+7/2},{x:f-14,y:p+7/2},{x:0,y:2*p},{x:f,y:p-7/2},{x:14,y:p-7/2}],h=o.t.svg(s),g=i.a(n,{});n.look!==`handDrawn`&&(g.roughness=0,g.fillStyle=`solid`);let _=d(m),v=h.path(_,g),y=s.insert(()=>v,`:first-child`);return y.attr(`class`,`outer-path`),c&&n.look!==`handDrawn`&&y.selectAll(`path`).attr(`style`,c),a&&n.look!==`handDrawn`&&y.selectAll(`path`).attr(`style`,a),y.attr(`transform`,`translate(-${f/2},${-p})`),l(n,y),n.intersect=function(e){return t.g.info(`lightningBolt intersect`,n,e),N.polygon(n,m,e)},s}t.h(je,`lightningBolt`);var Me=t.h((e,t,n,r,i,a,o)=>[`M${e},${t+a}`,`a${i},${a} 0,0,0 ${n},0`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`,`M${e},${t+a+o}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createCylinderPathD`),Ne=t.h((e,t,n,r,i,a,o)=>[`M${e},${t+a}`,`M${e+n},${t+a}`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`,`M${e},${t+a+o}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createOuterCylinderPathD`),Pe=t.h((e,t,n,r,i,a)=>[`M${e-n/2},${-r/2}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createInnerCylinderPathD`),Fe=10,Ie=10;async function Le(e,t){let{labelStyles:r,nodeStyles:a}=i.i(t);t.labelStyle=r;let c=t.padding??0,d=t.look===`neo`?16:c,f=t.look===`neo`?24:c;if(t.width||t.height){let e=t.width??0;t.width=(t.width??0)-d,t.width<Ie&&(t.width=Ie);let n=e/2/(2.5+e/50);t.height=(t.height??0)-f-n*3,t.height<Fe&&(t.height=Fe)}let{shapeSvg:p,bbox:m,label:h}=await s(e,t,u(t)),g=(t?.width?t?.width:m.width)+d*2,_=g/2,v=_/(2.5+g/50),y=(t?.height?t?.height:m.height)+v+f*2,b=y*.1,x,{cssStyles:S}=t;if(t.look===`handDrawn`){let e=o.t.svg(p),n=Ne(0,0,g,y,_,v,b),r=Pe(0,v,g,y,_,v),a=i.a(t,{}),s=e.path(n,a),c=e.path(r,a);p.insert(()=>c,`:first-child`).attr(`class`,`line`),x=p.insert(()=>s,`:first-child`),x.attr(`class`,`basic label-container`),S&&x.attr(`style`,S)}else{let e=Me(0,0,g,y,_,v,b);x=p.insert(`path`,`:first-child`).attr(`d`,e).attr(`class`,`basic label-container outer-path`).attr(`style`,n.l(S)).attr(`style`,a)}return x.attr(`label-offset-y`,v),x.attr(`transform`,`translate(${-g/2}, ${-(y/2+v)})`),l(t,x),h.attr(`transform`,`translate(${-(m.width/2)-(m.x-(m.left??0))}, ${-(m.height/2)+v-(m.y-(m.top??0))})`),t.intersect=function(e){let n=N.rect(t,e),r=n.x-(t.x??0);if(_!=0&&(Math.abs(r)<(t.width??0)/2||Math.abs(r)==(t.width??0)/2&&Math.abs(n.y-(t.y??0))>(t.height??0)/2-v)){let i=v*v*(1-r*r/(_*_));i>0&&(i=Math.sqrt(i)),i=v-i,e.y-(t.y??0)>0&&(i=-i),n.y+=i}return n},p}t.h(Le,`linedCylinder`);async function Re(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let a=t.padding??0,c=t.look===`neo`?16:a,d=t.look===`neo`?12:a;(t.width||t.height)&&(t.width=(t.width??0)*10/11-c*2,t.width<10&&(t.width=10),t.height=(t?.height??0)-d*2,t.height<10&&(t.height=10));let{shapeSvg:p,bbox:m,label:h}=await s(e,t,u(t)),g=(t?.width?t?.width:m.width)+(c??0)*2,_=(t?.height?t?.height:m.height)+(d??0)*2,v=t.look===`neo`?_/4:_/8,y=_+v,{cssStyles:b}=t,x=o.t.svg(p),S=i.a(t,{});t.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=[{x:-g/2-g/2*.1,y:-y/2},{x:-g/2-g/2*.1,y:y/2},...f(-g/2-g/2*.1,y/2,g/2+g/2*.1,y/2,v,.8),{x:g/2+g/2*.1,y:-y/2},{x:-g/2-g/2*.1,y:-y/2},{x:-g/2,y:-y/2},{x:-g/2,y:y/2*1.1},{x:-g/2,y:-y/2}],w=x.polygon(C.map(e=>[e.x,e.y]),S),T=p.insert(()=>w,`:first-child`);return T.attr(`class`,`basic label-container outer-path`),b&&t.look!==`handDrawn`&&T.selectAll(`path`).attr(`style`,b),r&&t.look!==`handDrawn`&&T.selectAll(`path`).attr(`style`,r),T.attr(`transform`,`translate(0,${-v/2})`),h.attr(`transform`,`translate(${-g/2+(t.padding??0)+g/2*.1/2-(m.x-(m.left??0))},${-_/2+(t.padding??0)-v/2-(m.y-(m.top??0))})`),l(t,T),t.intersect=function(e){return N.polygon(t,C,e)},p}t.h(Re,`linedWaveEdgedRect`);async function ze(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let a=t.padding??0,c=t.look===`neo`?16:a,f=t.look===`neo`?12:a,p=t.look===`neo`?10:5;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-c*2-2*p,10),t.height=Math.max((t?.height??0)-f*2-2*p,10));let{shapeSvg:h,bbox:g,label:_}=await s(e,t,u(t)),v=(t?.width?t?.width:g.width)+c*2+2*p,y=(t?.height?t?.height:g.height)+f*2+2*p,b=v-2*p,x=y-2*p,S=-b/2,C=-x/2,{cssStyles:w}=t,T=o.t.svg(h),E=i.a(t,{}),D=[{x:S-p,y:C+p},{x:S-p,y:C+x+p},{x:S+b-p,y:C+x+p},{x:S+b-p,y:C+x},{x:S+b,y:C+x},{x:S+b,y:C+x-p},{x:S+b+p,y:C+x-p},{x:S+b+p,y:C-p},{x:S+p,y:C-p},{x:S+p,y:C},{x:S,y:C},{x:S,y:C+p}],O=[{x:S,y:C+p},{x:S+b-p,y:C+p},{x:S+b-p,y:C+x},{x:S+b,y:C+x},{x:S+b,y:C},{x:S,y:C}];t.look!==`handDrawn`&&(E.roughness=0,E.fillStyle=`solid`);let k=d(D),A=T.path(k,E),j=d(O),M=T.path(j,E);t.look!==`handDrawn`&&(A=m(A),M=m(M));let P=h.insert(`g`,`:first-child`);return P.insert(()=>A),P.insert(()=>M),P.attr(`class`,`basic label-container outer-path`),w&&t.look!==`handDrawn`&&P.selectAll(`path`).attr(`style`,w),r&&t.look!==`handDrawn`&&P.selectAll(`path`).attr(`style`,r),_.attr(`transform`,`translate(${-(g.width/2)-p-(g.x-(g.left??0))}, ${-(g.height/2)+p-(g.y-(g.top??0))})`),l(t,P),t.intersect=function(e){return N.polygon(t,D,e)},h}t.h(ze,`multiRect`);async function Be(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let{shapeSvg:a,bbox:c,label:p}=await s(e,t,u(t)),m=t.padding??0,h=t.look===`neo`?16:m,g=t.look===`neo`?12:m,_=!0;(t.width||t.height)&&(_=!1,t.width=(t?.width??0)-h*2,t.height=(t?.height??0)-g*3);let v=Math.max(c.width,t?.width??0)+h*2,y=Math.max(c.height,t?.height??0)+g*3,b=t.look===`neo`?y/4:y/8,x=y+(_?b/2:-b/2),S=-v/2,C=-x/2,{cssStyles:w}=t,T=f(S-10,C+x+10,S+v-10,C+x+10,b,.8),E=T?.[T.length-1],D=[{x:S-10,y:C+10},{x:S-10,y:C+x+10},...T,{x:S+v-10,y:E.y-10},{x:S+v,y:E.y-10},{x:S+v,y:E.y-20},{x:S+v+10,y:E.y-20},{x:S+v+10,y:C-10},{x:S+10,y:C-10},{x:S+10,y:C},{x:S,y:C},{x:S,y:C+10}],O=[{x:S,y:C+10},{x:S+v-10,y:C+10},{x:S+v-10,y:E.y-10},{x:S+v,y:E.y-10},{x:S+v,y:C},{x:S,y:C}],k=o.t.svg(a),A=i.a(t,{});t.look!==`handDrawn`&&(A.roughness=0,A.fillStyle=`solid`);let j=d(D),M=k.path(j,A),P=d(O),F=k.path(P,A),I=a.insert(()=>M,`:first-child`);return I.insert(()=>F),I.attr(`class`,`basic label-container outer-path`),w&&t.look!==`handDrawn`&&I.selectAll(`path`).attr(`style`,w),r&&t.look!==`handDrawn`&&I.selectAll(`path`).attr(`style`,r),I.attr(`transform`,`translate(0,${-b/2})`),p.attr(`transform`,`translate(${-(c.width/2)-10-(c.x-(c.left??0))}, ${-(c.height/2)+10-b/2-(c.y-(c.top??0))})`),l(t,I),t.intersect=function(e){return N.polygon(t,D,e)},a}t.h(Be,`multiWaveEdgedRectangle`);async function Ve(t,n,{config:{themeVariables:r}}){let{labelStyles:a,nodeStyles:c}=i.i(n);n.labelStyle=a,n.useHtmlLabels||e.w(e.y())||(n.centerLabel=!0);let{shapeSvg:d,bbox:f,label:p}=await s(t,n,u(n)),m=Math.max(f.width+(n.padding??0)*2,n?.width??0),h=Math.max(f.height+(n.padding??0)*2,n?.height??0),g=-m/2,_=-h/2,{cssStyles:v}=n,y=o.t.svg(d),b=i.a(n,{fill:r.noteBkgColor,stroke:r.noteBorderColor});n.look!==`handDrawn`&&(b.roughness=0,b.fillStyle=`solid`);let x=y.rectangle(g,_,m,h,b),S=d.insert(()=>x,`:first-child`);return S.attr(`class`,`basic label-container outer-path`),p.attr(`class`,`label noteLabel`),v&&n.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,v),c&&n.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,c),p.attr(`transform`,`translate(${-f.width/2-(f.x-(f.left??0))}, ${-(f.height/2)-(f.y-(f.top??0))})`),l(n,S),n.intersect=function(e){return N.rect(n,e)},d}t.h(Ve,`note`);var He=t.h((e,t,n)=>[`M${e+n/2},${t}`,`L${e+n},${t-n/2}`,`L${e+n/2},${t-n}`,`L${e},${t-n/2}`,`Z`].join(` `),`createDecisionBoxPathD`);async function Ue(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let{shapeSvg:a,bbox:c}=await s(e,t,u(t)),d=c.width+(t.padding??0)+(c.height+(t.padding??0)),f=.5,p=[{x:d/2,y:0},{x:d,y:-d/2},{x:d/2,y:-d},{x:0,y:-d/2}],m,{cssStyles:h}=t;if(t.look===`handDrawn`){let e=o.t.svg(a),n=i.a(t,{}),r=He(0,0,d),s=e.path(r,n);m=a.insert(()=>s,`:first-child`).attr(`transform`,`translate(${-d/2+f}, ${d/2})`),h&&m.attr(`style`,h)}else m=R(a,d,d,p),m.attr(`transform`,`translate(${-d/2+f}, ${d/2})`);return r&&m.attr(`style`,r),l(t,m),t.calcIntersect=function(e,t){let n=e.width,r=[{x:n/2,y:0},{x:n,y:-n/2},{x:n/2,y:-n},{x:0,y:-n/2}],i=N.polygon(e,r,t);return{x:i.x-.5,y:i.y-.5}},t.intersect=function(e){return this.calcIntersect(t,e)},a}t.h(Ue,`question`);async function We(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let a=t.padding??0,c=t.look===`neo`?21:a??0,f=t.look===`neo`?12:a??0,{shapeSvg:p,bbox:m,label:h}=await s(e,t,u(t)),g=(t?.width??m.width)+(t.look===`neo`?c*2:c),_=(t?.height??m.height)+(t.look===`neo`?f*2:f),v=-g/2,y=-_/2,b=y/2,x=[{x:v+b,y},{x:v,y:0},{x:v+b,y:-y},{x:-v,y:-y},{x:-v,y}],{cssStyles:S}=t,C=o.t.svg(p),w=i.a(t,{});t.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`);let T=d(x),E=C.path(T,w),D=p.insert(()=>E,`:first-child`);return D.attr(`class`,`basic label-container outer-path`),S&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,S),r&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,r),D.attr(`transform`,`translate(${-b/2},0)`),h.attr(`transform`,`translate(${-b/2-m.width/2-(m.x-(m.left??0))}, ${-(m.height/2)-(m.y-(m.top??0))})`),l(t,D),t.intersect=function(e){return N.polygon(t,x,e)},p}t.h(We,`rect_left_inv_arrow`);async function Ge(n,r){let{labelStyles:a,nodeStyles:s}=i.i(r);r.labelStyle=a;let c;c=r.cssClasses?`node `+r.cssClasses:`node default`;let u=n.insert(`g`).attr(`class`,c).attr(`id`,r.domId||r.id),d=u.insert(`g`),f=u.insert(`g`).attr(`class`,`label`).attr(`style`,s),p=r.description,m=r.label,h=await g(f,m,r.labelStyle,!0,!0),v={width:0,height:0};if(e.w(e.b())){let e=h.children[0],n=t.p(h);v=e.getBoundingClientRect(),n.attr(`width`,v.width),n.attr(`height`,v.height)}t.g.info(`Text 2`,p);let y=p||[],b=h.getBBox(),x=await g(f,Array.isArray(y)?y.join(`<br/>`):y,r.labelStyle,!0,!0),S=x.children[0],C=t.p(x);v=S.getBoundingClientRect(),C.attr(`width`,v.width),C.attr(`height`,v.height);let w=(r.padding||0)/2;t.p(x).attr(`transform`,`translate( `+(v.width>b.width?0:(b.width-v.width)/2)+`, `+(b.height+w+5)+`)`),t.p(h).attr(`transform`,`translate( `+(v.width<b.width?0:-(b.width-v.width)/2)+`, 0)`),v=f.node().getBBox(),f.attr(`transform`,`translate(`+-v.width/2+`, `+(-v.height/2-w+3)+`)`);let T=v.width+(r.padding||0),E=v.height+(r.padding||0),D=-v.width/2-w,O=-v.height/2-w,k,A;if(r.look===`handDrawn`){let e=o.t.svg(u),n=i.a(r,{}),a=e.path(_(D,O,T,E,r.rx||0),n),s=e.line(-v.width/2-w,-v.height/2-w+b.height+w,v.width/2+w,-v.height/2-w+b.height+w,n);A=u.insert(()=>(t.g.debug(`Rough node insert CXC`,a),s),`:first-child`),k=u.insert(()=>(t.g.debug(`Rough node insert CXC`,a),a),`:first-child`)}else k=d.insert(`rect`,`:first-child`),A=d.insert(`line`),k.attr(`class`,`outer title-state`).attr(`style`,s).attr(`x`,-v.width/2-w).attr(`y`,-v.height/2-w).attr(`width`,v.width+(r.padding||0)).attr(`height`,v.height+(r.padding||0)),A.attr(`class`,`divider`).attr(`x1`,-v.width/2-w).attr(`x2`,v.width/2+w).attr(`y1`,-v.height/2-w+b.height+w).attr(`y2`,-v.height/2-w+b.height+w);return l(r,k),r.intersect=function(e){return N.rect(r,e)},u}t.h(Ge,`rectWithTitle`);async function Ke(e,t,{config:{themeVariables:n}}){let r=n?.radius??5;return De(e,t,{rx:r,ry:r,classes:``,labelPaddingX:(t?.padding??0)*1,labelPaddingY:(t?.padding??0)*1})}t.h(Ke,`roundedRect`);var J=8;async function qe(e,t){let{labelStyles:r,nodeStyles:a}=i.i(t);t.labelStyle=r;let c=t.look===`neo`?16:t.padding??0,d=t.look===`neo`?12:t.padding??0,{shapeSvg:f,bbox:p,label:m}=await s(e,t,u(t)),h=(t?.width??p.width)+c*2+(t.look===`neo`?J:J*2),g=(t?.height??p.height)+d*2,_=h-J,v=g,y=J-h/2,b=-g/2,{cssStyles:x}=t,S=o.t.svg(f),C=i.a(t,{});t.look!==`handDrawn`&&(C.roughness=0,C.fillStyle=`solid`);let w=[{x:y,y:b},{x:y+_,y:b},{x:y+_,y:b+v},{x:y-J,y:b+v},{x:y-J,y:b},{x:y,y:b},{x:y,y:b+v}],T=S.polygon(w.map(e=>[e.x,e.y]),C),E=f.insert(()=>T,`:first-child`);return E.attr(`class`,`basic label-container outer-path`).attr(`style`,n.l(x)),a&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,a),x&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,a),m.attr(`transform`,`translate(${J/2-p.width/2-(p.x-(p.left??0))}, ${-(p.height/2)-(p.y-(p.top??0))})`),l(t,E),t.intersect=function(e){return N.rect(t,e)},f}t.h(qe,`shadedProcess`);async function Je(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let a=t.padding??0,c=t.look===`neo`?16:a,f=t.look===`neo`?12:a;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-c*2,10),t.height=Math.max((t?.height??0)/1.5-f*2,10));let{shapeSvg:p,bbox:m,label:h}=await s(e,t,u(t)),g=(t?.width?t?.width:m.width)+c*2,_=((t?.height?t?.height:m.height)+f*2)*1.5,v=g,y=_/1.5,b=-v/2,x=-y/2,{cssStyles:S}=t,C=o.t.svg(p),w=i.a(t,{});t.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`);let T=[{x:b,y:x},{x:b,y:x+y},{x:b+v,y:x+y},{x:b+v,y:x-y/2}],E=d(T),D=C.path(E,w),O=p.insert(()=>D,`:first-child`);return O.attr(`class`,`basic label-container outer-path`),S&&t.look!==`handDrawn`&&O.selectChildren(`path`).attr(`style`,S),r&&t.look!==`handDrawn`&&O.selectChildren(`path`).attr(`style`,r),O.attr(`transform`,`translate(0, ${y/4})`),h.attr(`transform`,`translate(${-v/2+(t.padding??0)-(m.x-(m.left??0))}, ${-y/4+(t.padding??0)-(m.y-(m.top??0))})`),l(t,O),t.intersect=function(e){return N.polygon(t,T,e)},p}t.h(Je,`slopedRect`);async function Ye(e,t){let n=t.padding??0,r=t.look===`neo`?16:n*2,i=t.look===`neo`?12:n;return De(e,t,{rx:0,ry:0,classes:``,labelPaddingX:t.labelPaddingX??r,labelPaddingY:i})}t.h(Ye,`squareRect`);async function Xe(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let a=t.padding??0,c=t.look===`neo`?20:a,f=t.look===`neo`?12:a,{shapeSvg:m,bbox:h}=await s(e,t,u(t)),g=h.height+(t.look===`neo`?f*2:f),_=h.width+g/4+(t.look===`neo`?c*2:c),v=g/2,{cssStyles:y}=t,b=o.t.svg(m),x=i.a(t,{});t.look!==`handDrawn`&&(x.roughness=0,x.fillStyle=`solid`);let S=[{x:-_/2+v,y:-g/2},{x:_/2-v,y:-g/2},...p(-_/2+v,0,v,50,90,270),{x:_/2-v,y:g/2},...p(_/2-v,0,v,50,270,450)],C=d(S),w=b.path(C,x),T=m.insert(()=>w,`:first-child`);return T.attr(`class`,`basic label-container outer-path`),y&&t.look!==`handDrawn`&&T.selectChildren(`path`).attr(`style`,y),r&&t.look!==`handDrawn`&&T.selectChildren(`path`).attr(`style`,r),l(t,T),t.intersect=function(e){return N.polygon(t,S,e)},m}t.h(Xe,`stadium`);async function Ze(e,t){return De(e,t,{rx:t.look===`neo`?3:5,ry:t.look===`neo`?3:5,classes:`flowchart-node`})}t.h(Ze,`state`);function Qe(e,t,{config:{themeVariables:n}}){let{labelStyles:r,nodeStyles:a}=i.i(t);t.labelStyle=r;let{cssStyles:s}=t,{lineColor:c,stateBorder:u,nodeBorder:d,nodeShadow:f}=n;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||=14,t.height||=14;let p=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId??t.id),m=o.t.svg(p),h=i.a(t,{});t.look!==`handDrawn`&&(h.roughness=0,h.fillStyle=`solid`);let g=m.circle(0,0,t.width,{...h,stroke:c,strokeWidth:2}),_=u??d,v=(t.width??0)*5/14,y=m.circle(0,0,v,{...h,fill:_,stroke:_,strokeWidth:2,fillStyle:`solid`}),b=p.insert(()=>g,`:first-child`);if(b.insert(()=>y),t.look!==`handDrawn`&&b.attr(`class`,`outer-path`),s&&b.selectAll(`path`).attr(`style`,s),a&&b.selectAll(`path`).attr(`style`,a),t.width<25&&f&&t.look!==`handDrawn`){let t=e.node()?.ownerSVGElement?.id??``,n=t?`${t}-drop-shadow-small`:`drop-shadow-small`;b.attr(`style`,`filter:url(#${n})`)}return l(t,b),t.intersect=function(e){return N.circle(t,(t.width??0)/2,e)},p}t.h(Qe,`stateEnd`);function $e(e,t,{config:{themeVariables:n}}){let{lineColor:r,nodeShadow:a}=n;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||=14,t.height||=14;let s=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId||t.id),c;if(t.look===`handDrawn`){let e=o.t.svg(s).circle(0,0,t.width,i.r(r));c=s.insert(()=>e),c.attr(`class`,`state-start`).attr(`r`,(t.width??7)/2).attr(`width`,t.width??14).attr(`height`,t.height??14)}else c=s.insert(`circle`,`:first-child`),c.attr(`class`,`state-start`).attr(`r`,(t.width??7)/2).attr(`width`,t.width??14).attr(`height`,t.height??14);if(t.width<25&&a&&t.look!==`handDrawn`){let t=e.node()?.ownerSVGElement?.id??``,n=t?`${t}-drop-shadow-small`:`drop-shadow-small`;c.attr(`style`,`filter:url(#${n})`)}return l(t,c),t.intersect=function(e){return N.circle(t,(t.width??7)/2,e)},s}t.h($e,`stateStart`);var Y=8;async function et(e,t){let{labelStyles:r,nodeStyles:a}=i.i(t);t.labelStyle=r;let c=t?.padding??8,d=t.look===`neo`?28:c,f=t.look===`neo`?12:c,{shapeSvg:p,bbox:m}=await s(e,t,u(t)),h=(t?.width??m.width)+2*Y+d,g=(t?.height??m.height)+f,_=h-2*Y,v=g,y=-h/2,b=-g/2,x=[{x:0,y:0},{x:_,y:0},{x:_,y:-v},{x:0,y:-v},{x:0,y:0},{x:-8,y:0},{x:_+8,y:0},{x:_+8,y:-v},{x:-8,y:-v},{x:-8,y:0}];if(t.look===`handDrawn`){let e=o.t.svg(p),r=i.a(t,{}),a=e.rectangle(y,b,_+16,v,r),s=e.line(y+Y,b,y+Y,b+v,r),c=e.line(y+Y+_,b,y+Y+_,b+v,r);p.insert(()=>s,`:first-child`),p.insert(()=>c,`:first-child`);let u=p.insert(()=>a,`:first-child`),{cssStyles:d}=t;u.attr(`class`,`basic label-container`).attr(`style`,n.l(d)),l(t,u)}else{let e=R(p,_,v,x);a&&e.attr(`style`,a),l(t,e)}return t.intersect=function(e){return N.polygon(t,x,e)},p}t.h(et,`subroutine`);var tt=.2;async function nt(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let a=t.padding??0,c=t.look===`neo`?16:a,f=t.look===`neo`?12:a;(t.width||t.height)&&(t.height=Math.max((t?.height??0)-f*2,10),t.width=Math.max((t?.width??0)-c*2-tt*(t.height+f*2),10));let{shapeSvg:p,bbox:m}=await s(e,t,u(t)),h=(t?.height?t?.height:m.height)+f*2,g=tt*h,_=tt*h,v=(t?.width?t?.width:m.width)+c*2+g-g,y=h,b=-v/2,x=-y/2,{cssStyles:S}=t,C=o.t.svg(p),w=i.a(t,{}),T=[{x:b-g/2,y:x},{x:b+v+g/2,y:x},{x:b+v+g/2,y:x+y},{x:b-g/2,y:x+y}],E=[{x:b+v-g/2,y:x+y},{x:b+v+g/2,y:x+y},{x:b+v+g/2,y:x+y-_}];t.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`);let D=d(T),O=C.path(D,w),k=d(E),A=C.path(k,{...w,fillStyle:`solid`}),j=p.insert(()=>A,`:first-child`);return j.insert(()=>O,`:first-child`),j.attr(`class`,`basic label-container outer-path`),S&&t.look!==`handDrawn`&&j.selectAll(`path`).attr(`style`,S),r&&t.look!==`handDrawn`&&j.selectAll(`path`).attr(`style`,r),l(t,j),t.intersect=function(e){return N.polygon(t,T,e)},p}t.h(nt,`taggedRect`);async function rt(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let{shapeSvg:a,bbox:c,label:p}=await s(e,t,u(t)),m=Math.max(c.width+(t.padding??0)*2,t?.width??0),h=Math.max(c.height+(t.padding??0)*2,t?.height??0),g=h/8,_=.2*m,v=.2*h,y=h+g,{cssStyles:b}=t,x=o.t.svg(a),S=i.a(t,{});t.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=[{x:-m/2-m/2*.1,y:y/2},...f(-m/2-m/2*.1,y/2,m/2+m/2*.1,y/2,g,.8),{x:m/2+m/2*.1,y:-y/2},{x:-m/2-m/2*.1,y:-y/2}],w=-m/2+m/2*.1,T=-y/2-v*.4,E=[{x:w+m-_,y:(T+h)*1.3},{x:w+m,y:T+h-v},{x:w+m,y:(T+h)*.9},...f(w+m,(T+h)*1.25,w+m-_,(T+h)*1.3,-h*.02,.5)],D=d(C),O=x.path(D,S),k=d(E),A=x.path(k,{...S,fillStyle:`solid`}),j=a.insert(()=>A,`:first-child`);return j.insert(()=>O,`:first-child`),j.attr(`class`,`basic label-container outer-path`),b&&t.look!==`handDrawn`&&j.selectAll(`path`).attr(`style`,b),r&&t.look!==`handDrawn`&&j.selectAll(`path`).attr(`style`,r),j.attr(`transform`,`translate(0,${-g/2})`),p.attr(`transform`,`translate(${-m/2+(t.padding??0)-(c.x-(c.left??0))},${-h/2+(t.padding??0)-g/2-(c.y-(c.top??0))})`),l(t,j),t.intersect=function(e){return N.polygon(t,C,e)},a}t.h(rt,`taggedWaveEdgedRectangle`);async function it(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let{shapeSvg:a,bbox:o}=await s(e,t,u(t)),c=Math.max(o.width+(t.padding??0),t?.width||0),d=Math.max(o.height+(t.padding??0),t?.height||0),f=-c/2,p=-d/2,m=a.insert(`rect`,`:first-child`);return m.attr(`class`,`text`).attr(`style`,r).attr(`rx`,0).attr(`ry`,0).attr(`x`,f).attr(`y`,p).attr(`width`,c).attr(`height`,d),l(t,m),t.intersect=function(e){return N.rect(t,e)},a}t.h(it,`text`);var at=t.h((e,t,n,r,i,a)=>`M${e},${t}
3
3
  a${i},${a} 0,0,1 0,${-r}
4
4
  l${n},0
@@ -1,9 +1,9 @@
1
- import { L as e, R as t, b as n, h as r, j as i, k as a, w as o, y as s } from "./chunk-ICPOFSXX-Sn6LWD0k.js";
1
+ import { L as e, R as t, b as n, h as r, j as i, k as a, w as o, y as s } from "./chunk-ICPOFSXX-fQJ5ufMR.js";
2
2
  import { g as c, h as l, p as u } from "./src-BQiFKP24.js";
3
- import { i as d, l as f, n as p } from "./chunk-5PVQY5BW-C5U7sJAA.js";
4
- import { n as m, t as h } from "./chunk-ZZ45TVLE-CIYrdg-O.js";
5
- import { a as g, i as _, r as v, t as y } from "./chunk-X2U36JSP-CY7mJR8m.js";
6
- import { n as b, r as x } from "./chunk-U2HBQHQK-BZ3YFMXB.js";
3
+ import { i as d, l as f, n as p } from "./chunk-5PVQY5BW-Dn8n6moB.js";
4
+ import { n as m, t as h } from "./chunk-ZZ45TVLE-X2jolXSO.js";
5
+ import { a as g, i as _, r as v, t as y } from "./chunk-X2U36JSP-VxRY65ea.js";
6
+ import { n as b, r as x } from "./chunk-U2HBQHQK-Ceyeq0IV.js";
7
7
  import { t as S } from "./rough.esm-1mqTSjCt.js";
8
8
  //#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-5FUZZQ4R.mjs
9
9
  var C = /* @__PURE__ */ l(async (t, i, a) => {
@@ -1,2 +1,2 @@
1
- const e=require(`./chunk-ICPOFSXX-CoaJw-IT.cjs`),t=require(`./src-DFxq-N5I.cjs`),n=require(`./dist-BgvMZbfo.cjs`),r=require(`./identity-KQSjemTb.cjs`);function i(e){this._context=e}i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function a(e){return new i(e)}var o=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t);break}this._x0=e,this._y0=t}};function s(e){return new o(e,!0)}function c(e){return new o(e,!1)}function l(){}function u(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function d(e){this._context=e}d.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:u(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:u(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function f(e){return new d(e)}function p(e){this._context=e}p.prototype={areaStart:l,areaEnd:l,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:u(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function m(e){return new p(e)}function h(e){this._context=e}h.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:u(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ee(e){return new h(e)}function te(e,t){this._basis=new d(e),this._beta=t}te.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,c;++s<=n;)c=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+c*a),this._beta*t[s]+(1-this._beta)*(i+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var ne=(function e(t){function n(e){return t===1?new d(e):new te(e,t)}return n.beta=function(t){return e(+t)},n})(.85);function g(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function _(e,t){this._context=e,this._k=(1-t)/6}_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:g(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:g(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var re=(function e(t){function n(e){return new _(e,t)}return n.tension=function(t){return e(+t)},n})(0);function v(e,t){this._context=e,this._k=(1-t)/6}v.prototype={areaStart:l,areaEnd:l,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:g(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ie=(function e(t){function n(e){return new v(e,t)}return n.tension=function(t){return e(+t)},n})(0);function y(e,t){this._context=e,this._k=(1-t)/6}y.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:g(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ae=(function e(t){function n(e){return new y(e,t)}return n.tension=function(t){return e(+t)},n})(0);function b(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>1e-12){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>1e-12){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*l+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*l+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function oe(e,t){this._context=e,this._alpha=t}oe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:b(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var se=(function e(t){function n(e){return t?new oe(e,t):new _(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function x(e,t){this._context=e,this._alpha=t}x.prototype={areaStart:l,areaEnd:l,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:b(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ce=(function e(t){function n(e){return t?new x(e,t):new v(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function S(e,t){this._context=e,this._alpha=t}S.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:b(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var le=(function e(t){function n(e){return t?new S(e,t):new y(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function ue(e){this._context=e}ue.prototype={areaStart:l,areaEnd:l,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function de(e){return new ue(e)}function fe(e){return e<0?-1:1}function pe(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(fe(a)+fe(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function me(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function C(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function w(e){this._context=e}w.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:C(this,this._t0,me(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,C(this,me(this,n=pe(this,e,t)),n);break;default:C(this,this._t0,n=pe(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function he(e){this._context=new ge(e)}(he.prototype=Object.create(w.prototype)).point=function(e,t){w.prototype.point.call(this,t,e)};function ge(e){this._context=e}ge.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function T(e){return new w(e)}function E(e){return new he(e)}function D(e){this._context=e}D.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=O(e),i=O(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function O(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function k(e){return new D(e)}function A(e,t){this._context=e,this._t=t}A.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}this._x=e,this._y=t}};function j(e){return new A(e,.5)}function M(e){return new A(e,0)}function N(e){return new A(e,1)}var _e=n.t(),P=function(){try{var e=r.S(Object,`defineProperty`);return e({},``,{}),e}catch{}}();function F(e,t,n){t==`__proto__`&&P?P(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function I(e,t,n){(n!==void 0&&!r.x(e[t],n)||n===void 0&&!(t in e))&&F(e,t,n)}var L=typeof exports==`object`&&exports&&!exports.nodeType&&exports,R=L&&typeof module==`object`&&module&&!module.nodeType&&module,z=R&&R.exports===L?r.O.Buffer:void 0,B=z?z.allocUnsafe:void 0;function ve(e,t){if(t)return e.slice();var n=e.length,r=B?B(n):new e.constructor(n);return e.copy(r),r}function ye(e){var t=new e.constructor(e.byteLength);return new r.h(t).set(new r.h(e)),t}function be(e,t){var n=t?ye(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function xe(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}var Se=Object.create,Ce=function(){function e(){}return function(t){if(!r.T(t))return{};if(Se)return Se(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),V=r.m(Object.getPrototypeOf,Object);function we(e){return typeof e.constructor==`function`&&!r.p(e)?Ce(V(e)):{}}function Te(e){return r.f(e)&&r.c(e)}var Ee=`[object Object]`,De=Function.prototype,Oe=Object.prototype,ke=De.toString,Ae=Oe.hasOwnProperty,je=ke.call(Object);function Me(e){if(!r.f(e)||r.E(e)!=Ee)return!1;var t=V(e);if(t===null)return!0;var n=Ae.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&ke.call(n)==je}function H(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}var Ne=Object.prototype.hasOwnProperty;function Pe(e,t,n){var i=e[t];(!(Ne.call(e,t)&&r.x(i,n))||n===void 0&&!(t in e))&&F(e,t,n)}function Fe(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),i?F(n,s,c):Pe(n,s,c)}return n}function Ie(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Le=Object.prototype.hasOwnProperty;function Re(e){if(!r.T(e))return Ie(e);var t=r.p(e),n=[];for(var i in e)i==`constructor`&&(t||!Le.call(e,i))||n.push(i);return n}function U(e){return r.c(e)?r.n(e,!0):Re(e)}function ze(e){return Fe(e,U(e))}function Be(e,t,n,i,a,o,s){var c=H(e,n),l=H(t,n),u=s.get(l);if(u){I(e,n,u);return}var d=o?o(c,l,n+``,e,t,s):void 0,f=d===void 0;if(f){var p=r.u(l),m=!p&&r.s(l),h=!p&&!m&&r.i(l);d=l,p||m||h?r.u(c)?d=c:Te(c)?d=xe(c):m?(f=!1,d=ve(l,!0)):h?(f=!1,d=be(l,!0)):d=[]:Me(l)||r.d(l)?(d=c,r.d(c)?d=ze(c):(!r.T(c)||r.w(c))&&(d=we(l))):f=!1}f&&(s.set(l,d),a(d,l,i,o,s),s.delete(l)),I(e,n,d)}function Ve(e,t,n,i,a){e!==t&&r.g(t,function(o,s){if(a||=new r._,r.T(o))Be(e,t,s,n,Ve,i,a);else{var c=i?i(H(e,s),o,s+``,e,t,a):void 0;c===void 0&&(c=o),I(e,s,c)}},U)}function He(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Ue=Math.max;function We(e,t,n){return t=Ue(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=Ue(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),He(e,this,s)}}function Ge(e){return function(){return e}}var Ke=P?function(e,t){return P(e,`toString`,{configurable:!0,enumerable:!1,value:Ge(t),writable:!0})}:r.t,qe=800,Je=16,Ye=Date.now;function Xe(e){var t=0,n=0;return function(){var r=Ye(),i=Je-(r-n);if(n=r,i>0){if(++t>=qe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Ze=Xe(Ke);function Qe(e,t){return Ze(We(e,t,r.t),e+``)}function $e(e,t,n){if(!r.T(n))return!1;var i=typeof t;return(i==`number`?r.c(n)&&r.r(t,n.length):i==`string`&&t in n)?r.x(n[t],e):!1}function et(e){return Qe(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&$e(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}var tt=et(function(e,t,n){Ve(e,t,n)}),nt={curveBasis:f,curveBasisClosed:m,curveBasisOpen:ee,curveBumpX:s,curveBumpY:c,curveBundle:ne,curveCardinalClosed:ie,curveCardinalOpen:ae,curveCardinal:re,curveCatmullRomClosed:ce,curveCatmullRomOpen:le,curveCatmullRom:se,curveLinear:a,curveLinearClosed:de,curveMonotoneX:T,curveMonotoneY:E,curveNatural:k,curveStep:j,curveStepAfter:N,curveStepBefore:M},rt=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,it=t.h(function(t,n){let r=at(t,/(?:init\b)|(?:initialize\b)/),i={};if(Array.isArray(r)){let t=r.map(e=>e.args);e.I(t),i=e.r(i,[...t])}else i=r.args;if(!i)return;let a=e.f(t,n),o=`config`;return i[o]!==void 0&&(a===`flowchart-v2`&&(a=`flowchart`),i[a]=i[o],delete i[o]),i},`detectInit`),at=t.h(function(n,r=null){try{let i=RegExp(`[%]{2}(?![{]${rt.source})(?=[}][%]{2}).*
1
+ const e=require(`./chunk-ICPOFSXX-hY6BIZ4Y.cjs`),t=require(`./src-DFxq-N5I.cjs`),n=require(`./dist-BgvMZbfo.cjs`),r=require(`./identity-KQSjemTb.cjs`);function i(e){this._context=e}i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function a(e){return new i(e)}var o=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t);break}this._x0=e,this._y0=t}};function s(e){return new o(e,!0)}function c(e){return new o(e,!1)}function l(){}function u(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function d(e){this._context=e}d.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:u(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:u(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function f(e){return new d(e)}function p(e){this._context=e}p.prototype={areaStart:l,areaEnd:l,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:u(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function m(e){return new p(e)}function h(e){this._context=e}h.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:u(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ee(e){return new h(e)}function te(e,t){this._basis=new d(e),this._beta=t}te.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,c;++s<=n;)c=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+c*a),this._beta*t[s]+(1-this._beta)*(i+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var ne=(function e(t){function n(e){return t===1?new d(e):new te(e,t)}return n.beta=function(t){return e(+t)},n})(.85);function g(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function _(e,t){this._context=e,this._k=(1-t)/6}_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:g(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:g(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var re=(function e(t){function n(e){return new _(e,t)}return n.tension=function(t){return e(+t)},n})(0);function v(e,t){this._context=e,this._k=(1-t)/6}v.prototype={areaStart:l,areaEnd:l,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:g(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ie=(function e(t){function n(e){return new v(e,t)}return n.tension=function(t){return e(+t)},n})(0);function y(e,t){this._context=e,this._k=(1-t)/6}y.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:g(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ae=(function e(t){function n(e){return new y(e,t)}return n.tension=function(t){return e(+t)},n})(0);function b(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>1e-12){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>1e-12){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*l+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*l+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function oe(e,t){this._context=e,this._alpha=t}oe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:b(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var se=(function e(t){function n(e){return t?new oe(e,t):new _(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function x(e,t){this._context=e,this._alpha=t}x.prototype={areaStart:l,areaEnd:l,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:b(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ce=(function e(t){function n(e){return t?new x(e,t):new v(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function S(e,t){this._context=e,this._alpha=t}S.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:b(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var le=(function e(t){function n(e){return t?new S(e,t):new y(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function ue(e){this._context=e}ue.prototype={areaStart:l,areaEnd:l,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function de(e){return new ue(e)}function fe(e){return e<0?-1:1}function pe(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(fe(a)+fe(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function me(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function C(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function w(e){this._context=e}w.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:C(this,this._t0,me(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,C(this,me(this,n=pe(this,e,t)),n);break;default:C(this,this._t0,n=pe(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function he(e){this._context=new ge(e)}(he.prototype=Object.create(w.prototype)).point=function(e,t){w.prototype.point.call(this,t,e)};function ge(e){this._context=e}ge.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function T(e){return new w(e)}function E(e){return new he(e)}function D(e){this._context=e}D.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=O(e),i=O(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function O(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function k(e){return new D(e)}function A(e,t){this._context=e,this._t=t}A.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}this._x=e,this._y=t}};function j(e){return new A(e,.5)}function M(e){return new A(e,0)}function N(e){return new A(e,1)}var _e=n.t(),P=function(){try{var e=r.S(Object,`defineProperty`);return e({},``,{}),e}catch{}}();function F(e,t,n){t==`__proto__`&&P?P(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function I(e,t,n){(n!==void 0&&!r.x(e[t],n)||n===void 0&&!(t in e))&&F(e,t,n)}var L=typeof exports==`object`&&exports&&!exports.nodeType&&exports,R=L&&typeof module==`object`&&module&&!module.nodeType&&module,z=R&&R.exports===L?r.O.Buffer:void 0,B=z?z.allocUnsafe:void 0;function ve(e,t){if(t)return e.slice();var n=e.length,r=B?B(n):new e.constructor(n);return e.copy(r),r}function ye(e){var t=new e.constructor(e.byteLength);return new r.h(t).set(new r.h(e)),t}function be(e,t){var n=t?ye(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function xe(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}var Se=Object.create,Ce=function(){function e(){}return function(t){if(!r.T(t))return{};if(Se)return Se(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),V=r.m(Object.getPrototypeOf,Object);function we(e){return typeof e.constructor==`function`&&!r.p(e)?Ce(V(e)):{}}function Te(e){return r.f(e)&&r.c(e)}var Ee=`[object Object]`,De=Function.prototype,Oe=Object.prototype,ke=De.toString,Ae=Oe.hasOwnProperty,je=ke.call(Object);function Me(e){if(!r.f(e)||r.E(e)!=Ee)return!1;var t=V(e);if(t===null)return!0;var n=Ae.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&ke.call(n)==je}function H(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}var Ne=Object.prototype.hasOwnProperty;function Pe(e,t,n){var i=e[t];(!(Ne.call(e,t)&&r.x(i,n))||n===void 0&&!(t in e))&&F(e,t,n)}function Fe(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),i?F(n,s,c):Pe(n,s,c)}return n}function Ie(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Le=Object.prototype.hasOwnProperty;function Re(e){if(!r.T(e))return Ie(e);var t=r.p(e),n=[];for(var i in e)i==`constructor`&&(t||!Le.call(e,i))||n.push(i);return n}function U(e){return r.c(e)?r.n(e,!0):Re(e)}function ze(e){return Fe(e,U(e))}function Be(e,t,n,i,a,o,s){var c=H(e,n),l=H(t,n),u=s.get(l);if(u){I(e,n,u);return}var d=o?o(c,l,n+``,e,t,s):void 0,f=d===void 0;if(f){var p=r.u(l),m=!p&&r.s(l),h=!p&&!m&&r.i(l);d=l,p||m||h?r.u(c)?d=c:Te(c)?d=xe(c):m?(f=!1,d=ve(l,!0)):h?(f=!1,d=be(l,!0)):d=[]:Me(l)||r.d(l)?(d=c,r.d(c)?d=ze(c):(!r.T(c)||r.w(c))&&(d=we(l))):f=!1}f&&(s.set(l,d),a(d,l,i,o,s),s.delete(l)),I(e,n,d)}function Ve(e,t,n,i,a){e!==t&&r.g(t,function(o,s){if(a||=new r._,r.T(o))Be(e,t,s,n,Ve,i,a);else{var c=i?i(H(e,s),o,s+``,e,t,a):void 0;c===void 0&&(c=o),I(e,s,c)}},U)}function He(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Ue=Math.max;function We(e,t,n){return t=Ue(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=Ue(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),He(e,this,s)}}function Ge(e){return function(){return e}}var Ke=P?function(e,t){return P(e,`toString`,{configurable:!0,enumerable:!1,value:Ge(t),writable:!0})}:r.t,qe=800,Je=16,Ye=Date.now;function Xe(e){var t=0,n=0;return function(){var r=Ye(),i=Je-(r-n);if(n=r,i>0){if(++t>=qe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Ze=Xe(Ke);function Qe(e,t){return Ze(We(e,t,r.t),e+``)}function $e(e,t,n){if(!r.T(n))return!1;var i=typeof t;return(i==`number`?r.c(n)&&r.r(t,n.length):i==`string`&&t in n)?r.x(n[t],e):!1}function et(e){return Qe(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&$e(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}var tt=et(function(e,t,n){Ve(e,t,n)}),nt={curveBasis:f,curveBasisClosed:m,curveBasisOpen:ee,curveBumpX:s,curveBumpY:c,curveBundle:ne,curveCardinalClosed:ie,curveCardinalOpen:ae,curveCardinal:re,curveCatmullRomClosed:ce,curveCatmullRomOpen:le,curveCatmullRom:se,curveLinear:a,curveLinearClosed:de,curveMonotoneX:T,curveMonotoneY:E,curveNatural:k,curveStep:j,curveStepAfter:N,curveStepBefore:M},rt=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,it=t.h(function(t,n){let r=at(t,/(?:init\b)|(?:initialize\b)/),i={};if(Array.isArray(r)){let t=r.map(e=>e.args);e.I(t),i=e.r(i,[...t])}else i=r.args;if(!i)return;let a=e.f(t,n),o=`config`;return i[o]!==void 0&&(a===`flowchart-v2`&&(a=`flowchart`),i[a]=i[o],delete i[o]),i},`detectInit`),at=t.h(function(n,r=null){try{let i=RegExp(`[%]{2}(?![{]${rt.source})(?=[}][%]{2}).*
2
2
  `,`ig`);n=n.trim().replace(i,``).replace(/'/gm,`"`),t.g.debug(`Detecting diagram directive${r===null?``:` type:`+r} based on the text:${n}`);let a,o=[];for(;(a=e.m.exec(n))!==null;)if(a.index===e.m.lastIndex&&e.m.lastIndex++,a&&!r||r&&a[1]?.match(r)||r&&a[2]?.match(r)){let e=a[1]?a[1]:a[2],t=a[3]?a[3].trim():a[4]?JSON.parse(a[4].trim()):null;o.push({type:e,args:t})}return o.length===0?{type:n,args:null}:o.length===1?o[0]:o}catch(e){return t.g.error(`ERROR: ${e.message} - Unable to parse directive type: '${r}' based on the text: '${n}'`),{type:void 0,args:null}}},`detectDirective`),ot=t.h(function(t){return t.replace(e.m,``)},`removeDirectives`),st=t.h(function(e,t){for(let[n,r]of t.entries())if(r.match(e))return n;return-1},`isSubstringInArray`);function W(e,t){return e?nt[`curve${e.charAt(0).toUpperCase()+e.slice(1)}`]??t:t}t.h(W,`interpolateToCurve`);function ct(e,t){let n=e.trim();if(n)return t.securityLevel===`loose`?n:(0,_e.sanitizeUrl)(n)}t.h(ct,`formatUrl`);var lt=t.h((e,...n)=>{let r=e.split(`.`),i=r.length-1,a=r[i],o=window;for(let n=0;n<i;n++)if(o=o[r[n]],!o){t.g.error(`Function name: ${e} not found in window`);return}o[a](...n)},`runFunc`);function G(e,t){return!e||!t?0:Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)}t.h(G,`distance`);function ut(e){let t,n=0;return e.forEach(e=>{n+=G(e,t),t=e}),K(e,n/2)}t.h(ut,`traverseEdge`);function dt(e){return e.length===1?e[0]:ut(e)}t.h(dt,`calcLabelPosition`);var ft=t.h((e,t=2)=>{let n=10**t;return Math.round(e*n)/n},`roundNumber`),K=t.h((e,t)=>{let n,r=t;for(let t of e){if(n){let e=G(t,n);if(e===0)return n;if(e<r)r-=e;else{let i=r/e;if(i<=0)return n;if(i>=1)return{x:t.x,y:t.y};if(i>0&&i<1)return{x:ft((1-i)*n.x+i*t.x,5),y:ft((1-i)*n.y+i*t.y,5)}}}n=t}throw Error(`Could not find a suitable point for the given distance`)},`calculatePoint`),pt=t.h((e,n,r)=>{t.g.info(`our points ${JSON.stringify(n)}`),n[0]!==r&&(n=n.reverse());let i=K(n,25),a=e?10:5,o=Math.atan2(n[0].y-i.y,n[0].x-i.x),s={x:0,y:0};return s.x=Math.sin(o)*a+(n[0].x+i.x)/2,s.y=-Math.cos(o)*a+(n[0].y+i.y)/2,s},`calcCardinalityPosition`);function mt(e,n,r){let i=structuredClone(r);t.g.info(`our points`,i),n!==`start_left`&&n!==`start_right`&&i.reverse();let a=K(i,25+e),o=10+e*.5,s=Math.atan2(i[0].y-a.y,i[0].x-a.x),c={x:0,y:0};return n===`start_left`?(c.x=Math.sin(s+Math.PI)*o+(i[0].x+a.x)/2,c.y=-Math.cos(s+Math.PI)*o+(i[0].y+a.y)/2):n===`end_right`?(c.x=Math.sin(s-Math.PI)*o+(i[0].x+a.x)/2-5,c.y=-Math.cos(s-Math.PI)*o+(i[0].y+a.y)/2-5):n===`end_left`?(c.x=Math.sin(s)*o+(i[0].x+a.x)/2-5,c.y=-Math.cos(s)*o+(i[0].y+a.y)/2-5):(c.x=Math.sin(s)*o+(i[0].x+a.x)/2,c.y=-Math.cos(s)*o+(i[0].y+a.y)/2),c}t.h(mt,`calcTerminalLabelPosition`);function q(e){let t=``,n=``;for(let r of e)r!==void 0&&(r.startsWith(`color:`)||r.startsWith(`text-align:`)?n=n+r+`;`:t=t+r+`;`);return{style:t,labelStyle:n}}t.h(q,`getStylesFromArray`);var ht=0,gt=t.h(()=>(ht++,`id-`+Math.random().toString(36).substr(2,12)+`-`+ht),`generateId`);function _t(e){let t=``;for(let n=0;n<e;n++)t+=`0123456789abcdef`.charAt(Math.floor(Math.random()*16));return t}t.h(_t,`makeRandomHex`);var vt=t.h(e=>_t(e.length),`random`),yt=t.h(function(){return{x:0,y:0,fill:void 0,anchor:`start`,style:`#666`,width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:``}},`getTextObj`),bt=t.h(function(t,n){let r=n.text.replace(e.s.lineBreakRegex,` `),[,i]=Q(n.fontSize),a=t.append(`text`);a.attr(`x`,n.x),a.attr(`y`,n.y),a.style(`text-anchor`,n.anchor),a.style(`font-family`,n.fontFamily),a.style(`font-size`,i),a.style(`font-weight`,n.fontWeight),a.attr(`fill`,n.fill),n.class!==void 0&&a.attr(`class`,n.class);let o=a.append(`tspan`);return o.attr(`x`,n.x+n.textMargin*2),o.attr(`fill`,n.fill),o.text(r),a},`drawSimpleText`),xt=r.v((t,n,r)=>{if(!t||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:`Arial`,joinWith:`<br/>`},r),e.s.lineBreakRegex.test(t)))return t;let i=t.split(` `).filter(Boolean),a=[],o=``;return i.forEach((e,t)=>{let s=Y(`${e} `,r),c=Y(o,r);if(s>n){let{hyphenatedStrings:t,remainingWord:i}=St(e,n,`-`,r);a.push(o,...t),o=i}else c+s>=n?(a.push(o),o=e):o=[o,e].filter(Boolean).join(` `);t+1===i.length&&a.push(o)}),a.filter(e=>e!==``).join(r.joinWith)},(e,t,n)=>`${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`),St=r.v((e,t,n=`-`,r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:`Arial`,margin:0},r);let i=[...e],a=[],o=``;return i.forEach((e,s)=>{let c=`${o}${e}`;if(Y(c,r)>=t){let e=s+1,t=i.length===e,r=`${c}${n}`;a.push(t?c:r),o=``}else o=c}),{hyphenatedStrings:a,remainingWord:o}},(e,t,n=`-`,r)=>`${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function J(e,t){return X(e,t).height}t.h(J,`calculateTextHeight`);function Y(e,t){return X(e,t).width}t.h(Y,`calculateTextWidth`);var X=r.v((n,r)=>{let{fontSize:i=12,fontFamily:a=`Arial`,fontWeight:o=400}=r;if(!n)return{width:0,height:0};let[,s]=Q(i),c=[`sans-serif`,a],l=n.split(e.s.lineBreakRegex),u=[],d=t.p(`body`);if(!d.remove)return{width:0,height:0,lineHeight:0};let f=d.append(`svg`);for(let e of c){let t=0,n={width:0,height:0,lineHeight:0};for(let r of l){let i=yt();i.text=r||`​`;let a=bt(f,i).style(`font-size`,s).style(`font-weight`,o).style(`font-family`,e),c=(a._groups||a)[0][0].getBBox();if(c.width===0&&c.height===0)throw Error(`svg element not in render tree`);n.width=Math.round(Math.max(n.width,c.width)),t=Math.round(c.height),n.height+=t,n.lineHeight=Math.round(Math.max(n.lineHeight,t))}u.push(n)}return f.remove(),u[isNaN(u[1].height)||isNaN(u[1].width)||isNaN(u[1].lineHeight)||u[0].height>u[1].height&&u[0].width>u[1].width&&u[0].lineHeight>u[1].lineHeight?0:1]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),Ct=class{constructor(e=!1,t){this.count=0,this.count=t?t.length:0,this.next=e?()=>this.count++:()=>Date.now()}static{t.h(this,`InitIDGenerator`)}},Z,wt=t.h(function(e){return Z||=document.createElement(`div`),e=escape(e).replace(/%26/g,`&`).replace(/%23/g,`#`).replace(/%3B/g,`;`),Z.innerHTML=e,unescape(Z.textContent)},`entityDecode`);function Tt(e){return`str`in e}t.h(Tt,`isDetailedError`);var Et=t.h((e,t,n,r)=>{if(!r)return;let i=e.node()?.getBBox();i&&e.append(`text`).text(r).attr(`text-anchor`,`middle`).attr(`x`,i.x+i.width/2).attr(`y`,-n).attr(`class`,t)},`insertTitle`),Q=t.h(e=>{if(typeof e==`number`)return[e,e+`px`];let t=parseInt(e??``,10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+`px`]:[t,e]},`parseFontSize`);function $(e,t){return tt({},e,t)}t.h($,`cleanAndMerge`);var Dt={assignWithDepth:e.r,wrapLabel:xt,calculateTextHeight:J,calculateTextWidth:Y,calculateTextDimensions:X,cleanAndMerge:$,detectInit:it,detectDirective:at,isSubstringInArray:st,interpolateToCurve:W,calcLabelPosition:dt,calcCardinalityPosition:pt,calcTerminalLabelPosition:mt,formatUrl:ct,getStylesFromArray:q,generateId:gt,random:vt,runFunc:lt,entityDecode:wt,insertTitle:Et,isLabelCoordinateInPath:Mt,parseFontSize:Q,InitIDGenerator:Ct},Ot=t.h(function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)}),t=t.replace(/#\w+;/g,function(e){let t=e.substring(1,e.length-1);return/^\+?\d+$/.test(t)?`fl°°`+t+`¶ß`:`fl°`+t+`¶ß`}),t},`encodeEntities`),kt=t.h(function(e){return e.replace(/fl°°/g,`&#`).replace(/fl°/g,`&`).replace(/¶ß/g,`;`)},`decodeEntities`),At=t.h((e,t,{counter:n=0,prefix:r,suffix:i},a)=>a||`${r?`${r}_`:``}${e}_${t}_${n}${i?`_${i}`:``}`,`getEdgeId`);function jt(e){return e??null}t.h(jt,`handleUndefinedAttr`);function Mt(e,t){let n=Math.round(e.x),r=Math.round(e.y),i=t.replace(/(\d+\.\d+)/g,e=>Math.round(parseFloat(e)).toString());return i.includes(n.toString())||i.includes(r.toString())}t.h(Mt,`isLabelCoordinateInPath`),Object.defineProperty(exports,`A`,{enumerable:!0,get:function(){return be}}),Object.defineProperty(exports,`B`,{enumerable:!0,get:function(){return se}}),Object.defineProperty(exports,`C`,{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,`D`,{enumerable:!0,get:function(){return we}}),Object.defineProperty(exports,`E`,{enumerable:!0,get:function(){return Te}}),Object.defineProperty(exports,`F`,{enumerable:!0,get:function(){return M}}),Object.defineProperty(exports,`G`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`H`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`I`,{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,`L`,{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,`M`,{enumerable:!0,get:function(){return ve}}),Object.defineProperty(exports,`N`,{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,`O`,{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,`P`,{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,`R`,{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,`S`,{enumerable:!0,get:function(){return We}}),Object.defineProperty(exports,`T`,{enumerable:!0,get:function(){return Pe}}),Object.defineProperty(exports,`U`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`V`,{enumerable:!0,get:function(){return re}}),Object.defineProperty(exports,`W`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`_`,{enumerable:!0,get:function(){return tt}}),Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return Ot}}),Object.defineProperty(exports,`b`,{enumerable:!0,get:function(){return Ze}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return q}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return Tt}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return Q}}),Object.defineProperty(exports,`g`,{enumerable:!0,get:function(){return xt}}),Object.defineProperty(exports,`h`,{enumerable:!0,get:function(){return Dt}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return kt}}),Object.defineProperty(exports,`j`,{enumerable:!0,get:function(){return ye}}),Object.defineProperty(exports,`k`,{enumerable:!0,get:function(){return xe}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return jt}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return ot}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return Y}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return gt}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return vt}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return $}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return At}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return J}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return W}}),Object.defineProperty(exports,`v`,{enumerable:!0,get:function(){return $e}}),Object.defineProperty(exports,`w`,{enumerable:!0,get:function(){return Fe}}),Object.defineProperty(exports,`x`,{enumerable:!0,get:function(){return Ge}}),Object.defineProperty(exports,`y`,{enumerable:!0,get:function(){return Qe}}),Object.defineProperty(exports,`z`,{enumerable:!0,get:function(){return E}});
@@ -1,4 +1,4 @@
1
- import { I as e, f as t, m as n, r, s as i } from "./chunk-ICPOFSXX-Sn6LWD0k.js";
1
+ import { I as e, f as t, m as n, r, s as i } from "./chunk-ICPOFSXX-fQJ5ufMR.js";
2
2
  import { g as a, h as o, p as s } from "./src-BQiFKP24.js";
3
3
  import { t as c } from "./dist-DL30VIBI.js";
4
4
  import { E as l, O as u, S as d, T as f, _ as p, c as m, d as ee, f as h, g as te, h as ne, i as re, m as ie, n as ae, p as oe, r as se, s as ce, t as g, u as le, v as _, w as ue, x as v } from "./identity-g0dsMjx7.js";
@@ -1 +1 @@
1
- const e=require(`./chunk-ICPOFSXX-CoaJw-IT.cjs`),t=require(`./src-DFxq-N5I.cjs`);var n=t.h((n,a,o,s)=>{n.attr(`class`,o);let{width:c,height:l,x:u,y:d}=r(n,a);e.c(n,l,c,s);let f=i(u,d,c,l,a);n.attr(`viewBox`,f),t.g.debug(`viewBox configured: ${f} with padding: ${a}`)},`setupViewPortForSVG`),r=t.h((e,t)=>{let n=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:n.width+t*2,height:n.height+t*2,x:n.x,y:n.y}},`calculateDimensionsWithPadding`),i=t.h((e,t,n,r,i)=>`${e-i} ${t-i} ${n} ${r}`,`createViewBox`);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return n}});
1
+ const e=require(`./chunk-ICPOFSXX-hY6BIZ4Y.cjs`),t=require(`./src-DFxq-N5I.cjs`);var n=t.h((n,a,o,s)=>{n.attr(`class`,o);let{width:c,height:l,x:u,y:d}=r(n,a);e.c(n,l,c,s);let f=i(u,d,c,l,a);n.attr(`viewBox`,f),t.g.debug(`viewBox configured: ${f} with padding: ${a}`)},`setupViewPortForSVG`),r=t.h((e,t)=>{let n=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:n.width+t*2,height:n.height+t*2,x:n.x,y:n.y}},`calculateDimensionsWithPadding`),i=t.h((e,t,n,r,i)=>`${e-i} ${t-i} ${n} ${r}`,`createViewBox`);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return n}});
@@ -1,4 +1,4 @@
1
- import { c as e } from "./chunk-ICPOFSXX-Sn6LWD0k.js";
1
+ import { c as e } from "./chunk-ICPOFSXX-fQJ5ufMR.js";
2
2
  import { g as t, h as n } from "./src-BQiFKP24.js";
3
3
  //#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-EDXVE4YY.mjs
4
4
  var r = /* @__PURE__ */ n((n, r, o, s) => {
@@ -1,4 +1,4 @@
1
- const e=require(`./chunk-ICPOFSXX-CoaJw-IT.cjs`),t=require(`./src-DFxq-N5I.cjs`),n=require(`./chunk-5PVQY5BW-CfQDYQZt.cjs`),r=require(`./line-BbHmiwbs.cjs`),i=require(`./chunk-BSJP7CBP-CFzYPvgr.cjs`),a=require(`./chunk-ZZ45TVLE-AQQsnXy4.cjs`),o=require(`./chunk-X2U36JSP-D1RYKjVc.cjs`),s=require(`./chunk-U2HBQHQK-D0AoQWxK.cjs`),c=require(`./rough.esm-BLKo1fIQ.cjs`),l=require(`./chunk-5FUZZQ4R-D_vnCbAb.cjs`);var u=t.h((e,t,n,r,i,a=!1,o)=>{t.arrowTypeStart&&p(e,`start`,t.arrowTypeStart,n,r,i,a,o),t.arrowTypeEnd&&p(e,`end`,t.arrowTypeEnd,n,r,i,a,o)},`addEdgeMarkers`),d={arrow_cross:{type:`cross`,fill:!1},arrow_point:{type:`point`,fill:!0},arrow_barb:{type:`barb`,fill:!0},arrow_barb_neo:{type:`barb`,fill:!0},arrow_circle:{type:`circle`,fill:!1},aggregation:{type:`aggregation`,fill:!1},extension:{type:`extension`,fill:!1},composition:{type:`composition`,fill:!0},dependency:{type:`dependency`,fill:!0},lollipop:{type:`lollipop`,fill:!1},only_one:{type:`onlyOne`,fill:!1},zero_or_one:{type:`zeroOrOne`,fill:!1},one_or_more:{type:`oneOrMore`,fill:!1},zero_or_more:{type:`zeroOrMore`,fill:!1},requirement_arrow:{type:`requirement_arrow`,fill:!1},requirement_contains:{type:`requirement_contains`,fill:!1}},f=[`cross`,`point`,`circle`,`lollipop`,`aggregation`,`extension`,`composition`,`dependency`,`barb`],p=t.h((e,n,r,i,a,o,s=!1,c)=>{let l=d[r],u=l&&f.includes(l.type);if(!l){t.g.warn(`Unknown arrow type: ${r}`);return}let p=`${a}_${o}-${l.type}${n===`start`?`Start`:`End`}${s&&u?`-margin`:``}`;if(c&&c.trim()!==``){let t=`${p}_${c.replace(/[^\dA-Za-z]/g,`_`)}`;if(!document.getElementById(t)){let e=document.getElementById(p);if(e){let n=e.cloneNode(!0);n.id=t,n.querySelectorAll(`path, circle, line`).forEach(e=>{e.setAttribute(`stroke`,c),l.fill&&e.setAttribute(`fill`,c)}),e.parentNode?.appendChild(n)}}e.attr(`marker-${n}`,`url(${i}#${t})`)}else e.attr(`marker-${n}`,`url(${i}#${p})`)},`addEdgeMarker`),m=t.h(t=>typeof t==`string`?t:e.b()?.flowchart?.curve,`resolveEdgeCurveType`),h=new Map,g=new Map,_=t.h(()=>{h.clear(),g.clear()},`clear`),v=t.h(e=>e?typeof e==`string`?e:e.reduce((e,t)=>e+`;`+t,``):``,`getLabelStyles`),y=t.h(async(n,r)=>{let a=e.b(),c=e.w(a),{labelStyles:u}=o.i(r);r.labelStyle=u;let d=n.insert(`g`).attr(`class`,`edgeLabel`),f=d.insert(`g`).attr(`class`,`label`).attr(`data-id`,r.id),p=r.labelType===`markdown`,m=await s.n(n,r.label,{style:v(r.labelStyle),useHtmlLabels:c,addSvgBackground:!0,isNode:!1,markdown:p,width:void 0},a);f.node().appendChild(m),t.g.info(`abc82`,r,r.labelType);let _=m.getBBox(),y=_;if(c){let e=m.children[0],n=t.p(m);_=e.getBoundingClientRect(),y=_,n.attr(`width`,_.width),n.attr(`height`,_.height)}else{let e=t.p(m).select(`text`).node();e&&typeof e.getBBox==`function`&&(y=e.getBBox())}f.attr(`transform`,i.t(y,c)),h.set(r.id,d),r.width=_.width,r.height=_.height;let x;if(r.startLabelLeft){let e=n.insert(`g`).attr(`class`,`edgeTerminals`),a=e.insert(`g`).attr(`class`,`inner`),o=await l.r(a,r.startLabelLeft,v(r.labelStyle)||``,!1,!1);x=o;let s=o.getBBox();if(c){let e=o.children[0],n=t.p(o);s=e.getBoundingClientRect(),n.attr(`width`,s.width),n.attr(`height`,s.height)}a.attr(`transform`,i.t(s,c)),g.get(r.id)||g.set(r.id,{}),g.get(r.id).startLeft=e,b(x,r.startLabelLeft)}if(r.startLabelRight){let e=n.insert(`g`).attr(`class`,`edgeTerminals`),a=e.insert(`g`).attr(`class`,`inner`),o=await l.r(a,r.startLabelRight,v(r.labelStyle)||``,!1,!1);x=o,a.node().appendChild(o);let s=o.getBBox();if(c){let e=o.children[0],n=t.p(o);s=e.getBoundingClientRect(),n.attr(`width`,s.width),n.attr(`height`,s.height)}a.attr(`transform`,i.t(s,c)),g.get(r.id)||g.set(r.id,{}),g.get(r.id).startRight=e,b(x,r.startLabelRight)}if(r.endLabelLeft){let e=n.insert(`g`).attr(`class`,`edgeTerminals`),a=e.insert(`g`).attr(`class`,`inner`),o=await l.r(a,r.endLabelLeft,v(r.labelStyle)||``,!1,!1);x=o;let s=o.getBBox();if(c){let e=o.children[0],n=t.p(o);s=e.getBoundingClientRect(),n.attr(`width`,s.width),n.attr(`height`,s.height)}a.attr(`transform`,i.t(s,c)),e.node().appendChild(o),g.get(r.id)||g.set(r.id,{}),g.get(r.id).endLeft=e,b(x,r.endLabelLeft)}if(r.endLabelRight){let e=n.insert(`g`).attr(`class`,`edgeTerminals`),a=e.insert(`g`).attr(`class`,`inner`),o=await l.r(a,r.endLabelRight,v(r.labelStyle)||``,!1,!1);x=o;let s=o.getBBox();if(c){let e=o.children[0],n=t.p(o);s=e.getBoundingClientRect(),n.attr(`width`,s.width),n.attr(`height`,s.height)}a.attr(`transform`,i.t(s,c)),e.node().appendChild(o),g.get(r.id)||g.set(r.id,{}),g.get(r.id).endRight=e,b(x,r.endLabelRight)}return m},`insertEdgeLabel`);function b(t,n){e.w(e.b())&&t&&(t.style.width=n.length*9+`px`,t.style.height=`12px`)}t.h(b,`setTerminalWidth`);var x=t.h((r,i)=>{t.g.debug(`Moving label abc88 `,r.id,r.label,h.get(r.id),i);let o=i.updatedPath?i.updatedPath:i.originalPath,{subGraphTitleTotalMargin:s}=a.n(e.b());if(r.label){let e=h.get(r.id),a=r.x,c=r.y;if(o){let e=n.h.calcLabelPosition(o);t.g.debug(`Moving label `+r.label+` from (`,a,`,`,c,`) to (`,e.x,`,`,e.y,`) abc88`),i.updatedPath&&(a=e.x,c=e.y)}e.attr(`transform`,`translate(${a}, ${c+s/2})`)}if(r.startLabelLeft){let e=g.get(r.id).startLeft,t=r.x,i=r.y;if(o){let e=n.h.calcTerminalLabelPosition(r.arrowTypeStart?10:0,`start_left`,o);t=e.x,i=e.y}e.attr(`transform`,`translate(${t}, ${i})`)}if(r.startLabelRight){let e=g.get(r.id).startRight,t=r.x,i=r.y;if(o){let e=n.h.calcTerminalLabelPosition(r.arrowTypeStart?10:0,`start_right`,o);t=e.x,i=e.y}e.attr(`transform`,`translate(${t}, ${i})`)}if(r.endLabelLeft){let e=g.get(r.id).endLeft,t=r.x,i=r.y;if(o){let e=n.h.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,`end_left`,o);t=e.x,i=e.y}e.attr(`transform`,`translate(${t}, ${i})`)}if(r.endLabelRight){let e=g.get(r.id).endRight,t=r.x,i=r.y;if(o){let e=n.h.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,`end_right`,o);t=e.x,i=e.y}e.attr(`transform`,`translate(${t}, ${i})`)}},`positionEdgeLabel`),S=t.h((e,t)=>{let n=e.x,r=e.y,i=Math.abs(t.x-n),a=Math.abs(t.y-r),o=e.width/2,s=e.height/2;return i>=o||a>=s},`outsideNode`),C=t.h((e,n,r)=>{t.g.debug(`intersection calc abc89:
1
+ const e=require(`./chunk-ICPOFSXX-hY6BIZ4Y.cjs`),t=require(`./src-DFxq-N5I.cjs`),n=require(`./chunk-5PVQY5BW-DEPZKGvb.cjs`),r=require(`./line-C7oijaT4.cjs`),i=require(`./chunk-BSJP7CBP-CFzYPvgr.cjs`),a=require(`./chunk-ZZ45TVLE-BfSqZnT4.cjs`),o=require(`./chunk-X2U36JSP-CtXjVqek.cjs`),s=require(`./chunk-U2HBQHQK-CJ77uizk.cjs`),c=require(`./rough.esm-BLKo1fIQ.cjs`),l=require(`./chunk-5FUZZQ4R-Cj5KbGC7.cjs`);var u=t.h((e,t,n,r,i,a=!1,o)=>{t.arrowTypeStart&&p(e,`start`,t.arrowTypeStart,n,r,i,a,o),t.arrowTypeEnd&&p(e,`end`,t.arrowTypeEnd,n,r,i,a,o)},`addEdgeMarkers`),d={arrow_cross:{type:`cross`,fill:!1},arrow_point:{type:`point`,fill:!0},arrow_barb:{type:`barb`,fill:!0},arrow_barb_neo:{type:`barb`,fill:!0},arrow_circle:{type:`circle`,fill:!1},aggregation:{type:`aggregation`,fill:!1},extension:{type:`extension`,fill:!1},composition:{type:`composition`,fill:!0},dependency:{type:`dependency`,fill:!0},lollipop:{type:`lollipop`,fill:!1},only_one:{type:`onlyOne`,fill:!1},zero_or_one:{type:`zeroOrOne`,fill:!1},one_or_more:{type:`oneOrMore`,fill:!1},zero_or_more:{type:`zeroOrMore`,fill:!1},requirement_arrow:{type:`requirement_arrow`,fill:!1},requirement_contains:{type:`requirement_contains`,fill:!1}},f=[`cross`,`point`,`circle`,`lollipop`,`aggregation`,`extension`,`composition`,`dependency`,`barb`],p=t.h((e,n,r,i,a,o,s=!1,c)=>{let l=d[r],u=l&&f.includes(l.type);if(!l){t.g.warn(`Unknown arrow type: ${r}`);return}let p=`${a}_${o}-${l.type}${n===`start`?`Start`:`End`}${s&&u?`-margin`:``}`;if(c&&c.trim()!==``){let t=`${p}_${c.replace(/[^\dA-Za-z]/g,`_`)}`;if(!document.getElementById(t)){let e=document.getElementById(p);if(e){let n=e.cloneNode(!0);n.id=t,n.querySelectorAll(`path, circle, line`).forEach(e=>{e.setAttribute(`stroke`,c),l.fill&&e.setAttribute(`fill`,c)}),e.parentNode?.appendChild(n)}}e.attr(`marker-${n}`,`url(${i}#${t})`)}else e.attr(`marker-${n}`,`url(${i}#${p})`)},`addEdgeMarker`),m=t.h(t=>typeof t==`string`?t:e.b()?.flowchart?.curve,`resolveEdgeCurveType`),h=new Map,g=new Map,_=t.h(()=>{h.clear(),g.clear()},`clear`),v=t.h(e=>e?typeof e==`string`?e:e.reduce((e,t)=>e+`;`+t,``):``,`getLabelStyles`),y=t.h(async(n,r)=>{let a=e.b(),c=e.w(a),{labelStyles:u}=o.i(r);r.labelStyle=u;let d=n.insert(`g`).attr(`class`,`edgeLabel`),f=d.insert(`g`).attr(`class`,`label`).attr(`data-id`,r.id),p=r.labelType===`markdown`,m=await s.n(n,r.label,{style:v(r.labelStyle),useHtmlLabels:c,addSvgBackground:!0,isNode:!1,markdown:p,width:void 0},a);f.node().appendChild(m),t.g.info(`abc82`,r,r.labelType);let _=m.getBBox(),y=_;if(c){let e=m.children[0],n=t.p(m);_=e.getBoundingClientRect(),y=_,n.attr(`width`,_.width),n.attr(`height`,_.height)}else{let e=t.p(m).select(`text`).node();e&&typeof e.getBBox==`function`&&(y=e.getBBox())}f.attr(`transform`,i.t(y,c)),h.set(r.id,d),r.width=_.width,r.height=_.height;let x;if(r.startLabelLeft){let e=n.insert(`g`).attr(`class`,`edgeTerminals`),a=e.insert(`g`).attr(`class`,`inner`),o=await l.r(a,r.startLabelLeft,v(r.labelStyle)||``,!1,!1);x=o;let s=o.getBBox();if(c){let e=o.children[0],n=t.p(o);s=e.getBoundingClientRect(),n.attr(`width`,s.width),n.attr(`height`,s.height)}a.attr(`transform`,i.t(s,c)),g.get(r.id)||g.set(r.id,{}),g.get(r.id).startLeft=e,b(x,r.startLabelLeft)}if(r.startLabelRight){let e=n.insert(`g`).attr(`class`,`edgeTerminals`),a=e.insert(`g`).attr(`class`,`inner`),o=await l.r(a,r.startLabelRight,v(r.labelStyle)||``,!1,!1);x=o,a.node().appendChild(o);let s=o.getBBox();if(c){let e=o.children[0],n=t.p(o);s=e.getBoundingClientRect(),n.attr(`width`,s.width),n.attr(`height`,s.height)}a.attr(`transform`,i.t(s,c)),g.get(r.id)||g.set(r.id,{}),g.get(r.id).startRight=e,b(x,r.startLabelRight)}if(r.endLabelLeft){let e=n.insert(`g`).attr(`class`,`edgeTerminals`),a=e.insert(`g`).attr(`class`,`inner`),o=await l.r(a,r.endLabelLeft,v(r.labelStyle)||``,!1,!1);x=o;let s=o.getBBox();if(c){let e=o.children[0],n=t.p(o);s=e.getBoundingClientRect(),n.attr(`width`,s.width),n.attr(`height`,s.height)}a.attr(`transform`,i.t(s,c)),e.node().appendChild(o),g.get(r.id)||g.set(r.id,{}),g.get(r.id).endLeft=e,b(x,r.endLabelLeft)}if(r.endLabelRight){let e=n.insert(`g`).attr(`class`,`edgeTerminals`),a=e.insert(`g`).attr(`class`,`inner`),o=await l.r(a,r.endLabelRight,v(r.labelStyle)||``,!1,!1);x=o;let s=o.getBBox();if(c){let e=o.children[0],n=t.p(o);s=e.getBoundingClientRect(),n.attr(`width`,s.width),n.attr(`height`,s.height)}a.attr(`transform`,i.t(s,c)),e.node().appendChild(o),g.get(r.id)||g.set(r.id,{}),g.get(r.id).endRight=e,b(x,r.endLabelRight)}return m},`insertEdgeLabel`);function b(t,n){e.w(e.b())&&t&&(t.style.width=n.length*9+`px`,t.style.height=`12px`)}t.h(b,`setTerminalWidth`);var x=t.h((r,i)=>{t.g.debug(`Moving label abc88 `,r.id,r.label,h.get(r.id),i);let o=i.updatedPath?i.updatedPath:i.originalPath,{subGraphTitleTotalMargin:s}=a.n(e.b());if(r.label){let e=h.get(r.id),a=r.x,c=r.y;if(o){let e=n.h.calcLabelPosition(o);t.g.debug(`Moving label `+r.label+` from (`,a,`,`,c,`) to (`,e.x,`,`,e.y,`) abc88`),i.updatedPath&&(a=e.x,c=e.y)}e.attr(`transform`,`translate(${a}, ${c+s/2})`)}if(r.startLabelLeft){let e=g.get(r.id).startLeft,t=r.x,i=r.y;if(o){let e=n.h.calcTerminalLabelPosition(r.arrowTypeStart?10:0,`start_left`,o);t=e.x,i=e.y}e.attr(`transform`,`translate(${t}, ${i})`)}if(r.startLabelRight){let e=g.get(r.id).startRight,t=r.x,i=r.y;if(o){let e=n.h.calcTerminalLabelPosition(r.arrowTypeStart?10:0,`start_right`,o);t=e.x,i=e.y}e.attr(`transform`,`translate(${t}, ${i})`)}if(r.endLabelLeft){let e=g.get(r.id).endLeft,t=r.x,i=r.y;if(o){let e=n.h.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,`end_left`,o);t=e.x,i=e.y}e.attr(`transform`,`translate(${t}, ${i})`)}if(r.endLabelRight){let e=g.get(r.id).endRight,t=r.x,i=r.y;if(o){let e=n.h.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,`end_right`,o);t=e.x,i=e.y}e.attr(`transform`,`translate(${t}, ${i})`)}},`positionEdgeLabel`),S=t.h((e,t)=>{let n=e.x,r=e.y,i=Math.abs(t.x-n),a=Math.abs(t.y-r),o=e.width/2,s=e.height/2;return i>=o||a>=s},`outsideNode`),C=t.h((e,n,r)=>{t.g.debug(`intersection calc abc89:
2
2
  outsidePoint: ${JSON.stringify(n)}
3
3
  insidePoint : ${JSON.stringify(r)}
4
4
  node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);let i=e.x,a=e.y,o=Math.abs(i-r.x),s=e.width/2,c=r.x<n.x?s-o:s+o,l=e.height/2,u=Math.abs(n.y-r.y),d=Math.abs(n.x-r.x);if(Math.abs(a-n.y)*s>Math.abs(i-n.x)*l){let e=r.y<n.y?n.y-l-a:a-l-n.y;c=d*e/u;let i={x:r.x<n.x?r.x+c:r.x-d+c,y:r.y<n.y?r.y+u-e:r.y-u+e};return c===0&&(i.x=n.x,i.y=n.y),d===0&&(i.x=n.x),u===0&&(i.y=n.y),t.g.debug(`abc89 top/bottom calc, Q ${u}, q ${e}, R ${d}, r ${c}`,i),i}else{c=r.x<n.x?n.x-s-i:i-s-n.x;let e=u*c/d,a=r.x<n.x?r.x+d-c:r.x-d+c,o=r.y<n.y?r.y+e:r.y-e;return t.g.debug(`sides calc abc89, Q ${u}, q ${e}, R ${d}, r ${c}`,{_x:a,_y:o}),c===0&&(a=n.x,o=n.y),d===0&&(a=n.x),u===0&&(o=n.y),{x:a,y:o}}},`intersection`),w=t.h((e,n)=>{t.g.warn(`abc88 cutPathAtIntersect`,e,n);let r=[],i=e[0],a=!1;return e.forEach(e=>{if(t.g.info(`abc88 checking point`,e,n),!S(n,e)&&!a){let o=C(n,i,e);t.g.debug(`abc88 inside`,e,i,o),t.g.debug(`abc88 intersection`,o,n);let s=!1;r.forEach(e=>{s||=e.x===o.x&&e.y===o.y}),r.some(e=>e.x===o.x&&e.y===o.y)?t.g.warn(`abc88 no intersect`,o,r):r.push(o),a=!0}else t.g.warn(`abc88 outside`,e,i),i=e,a||r.push(e)}),t.g.debug(`returning points`,r),r},`cutPathAtIntersect`);function T(e){let t=[],n=[];for(let r=1;r<e.length-1;r++){let i=e[r-1],a=e[r],o=e[r+1];(i.x===a.x&&a.y===o.y&&Math.abs(a.x-o.x)>5&&Math.abs(a.y-i.y)>5||i.y===a.y&&a.x===o.x&&Math.abs(a.x-i.x)>5&&Math.abs(a.y-o.y)>5)&&(t.push(a),n.push(r))}return{cornerPoints:t,cornerPointPositions:n}}t.h(T,`extractCornerPoints`);var E=t.h(function(e,t,n){let r=t.x-e.x,i=t.y-e.y,a=n/Math.sqrt(r*r+i*i);return{x:t.x-a*r,y:t.y-a*i}},`findAdjacentPoint`),D=t.h(function(e){let{cornerPointPositions:n}=T(e),r=[];for(let i=0;i<e.length;i++)if(n.includes(i)){let n=e[i-1],a=e[i+1],o=e[i],s=E(n,o,5),c=E(a,o,5),l=c.x-s.x,u=c.y-s.y;r.push(s);let d=Math.sqrt(2)*2,f={x:o.x,y:o.y};Math.abs(a.x-n.x)>10&&Math.abs(a.y-n.y)>=10?(t.g.debug(`Corner point fixing`,Math.abs(a.x-n.x),Math.abs(a.y-n.y)),f=o.x===s.x?{x:l<0?s.x-5+d:s.x+5-d,y:u<0?s.y-d:s.y+d}:{x:l<0?s.x-d:s.x+d,y:u<0?s.y-5+d:s.y+5-d}):t.g.debug(`Corner point skipping fixing`,Math.abs(a.x-n.x),Math.abs(a.y-n.y)),r.push(f,c)}else r.push(e[i]);return r},`fixCorners`),O=t.h((e,t,n)=>{let r=e-t-n,i=Math.floor(r/4);return`0 ${t} ${Array(i).fill(`2 2`).join(` `)} ${n}`},`generateDashArray`),k=t.h(function(a,s,l,d,f,p,h,g=!1){if(!h)throw Error(`insertEdge: missing diagramId for edge "${s.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:_}=e.b(),v=s.points,y=!1,b=f;var x=p;let S=[];for(let e in s.cssCompiledStyles)o.n(e)||S.push(s.cssCompiledStyles[e]);t.g.debug(`UIO intersect check`,s.points,x.x,b.x),x.intersect&&b.intersect&&!g&&(v=v.slice(1,s.points.length-1),v.unshift(b.intersect(v[0])),t.g.debug(`Last point UIO`,s.start,`-->`,s.end,v[v.length-1],x,x.intersect(v[v.length-1])),v.push(x.intersect(v[v.length-1])));let C=btoa(JSON.stringify(v));s.toCluster&&(t.g.info(`to cluster abc88`,l.get(s.toCluster)),v=w(s.points,l.get(s.toCluster).node),y=!0),s.fromCluster&&(t.g.debug(`from cluster abc88`,l.get(s.fromCluster),JSON.stringify(v,null,2)),v=w(v.reverse(),l.get(s.fromCluster).node).reverse(),y=!0);let T=v.filter(e=>!Number.isNaN(e.y)),E=m(s.curve);E!==`rounded`&&(T=D(T));let k=n.G;switch(E){case`linear`:k=n.G;break;case`basis`:k=n.H;break;case`cardinal`:k=n.V;break;case`bumpX`:k=n.U;break;case`bumpY`:k=n.W;break;case`catmullRom`:k=n.B;break;case`monotoneX`:k=n.R;break;case`monotoneY`:k=n.z;break;case`natural`:k=n.L;break;case`step`:k=n.I;break;case`stepAfter`:k=n.P;break;case`stepBefore`:k=n.F;break;case`rounded`:k=n.G;break;default:k=n.H}let{x:j,y:N}=i.n(s),P=r.t().x(j).y(N).curve(k),F;switch(s.thickness){case`normal`:F=`edge-thickness-normal`;break;case`thick`:F=`edge-thickness-thick`;break;case`invisible`:F=`edge-thickness-invisible`;break;default:F=`edge-thickness-normal`}switch(s.pattern){case`solid`:F+=` edge-pattern-solid`;break;case`dotted`:F+=` edge-pattern-dotted`;break;case`dashed`:F+=` edge-pattern-dashed`;break;default:F+=` edge-pattern-solid`}let I,L=E===`rounded`?A(M(T,s),5):P(T),R=Array.isArray(s.style)?s.style:[s.style],z=R.find(e=>e?.startsWith(`stroke:`)),B=``;s.animate&&(B=`edge-animation-fast`),s.animation&&(B=`edge-animation-`+s.animation);let V=!1;if(s.look===`handDrawn`){let e=c.t.svg(a);Object.assign([],T);let n=e.path(L,{roughness:.3,seed:_});F+=` transition`,I=t.p(n).select(`path`).attr(`id`,`${h}-${s.id}`).attr(`class`,` `+F+(s.classes?` `+s.classes:``)+(B?` `+B:``)).attr(`style`,R?R.reduce((e,t)=>e+`;`+t,``):``);let r=I.attr(`d`);I.attr(`d`,r),a.node().appendChild(I.node())}else{let e=S.join(`;`),t=R?R.reduce((e,t)=>e+t+`;`,``):``,n=(e?e+`;`+t+`;`:t)+`;`+(R?R.reduce((e,t)=>e+`;`+t,``):``);I=a.append(`path`).attr(`d`,L).attr(`id`,`${h}-${s.id}`).attr(`class`,` `+F+(s.classes?` `+s.classes:``)+(B?` `+B:``)).attr(`style`,n),z=n.match(/stroke:([^;]+)/)?.[1],V=s.animate===!0||!!s.animation||e.includes(`animation`);let r=I.node(),o=typeof r.getTotalLength==`function`?r.getTotalLength():0,c=i.i[s.arrowTypeStart]||0,l=i.i[s.arrowTypeEnd]||0;if(s.look===`neo`&&!V){let e=`stroke-dasharray: ${s.pattern===`dotted`||s.pattern===`dashed`?O(o,c,l):`0 ${c} ${o-c-l} ${l}`}; stroke-dashoffset: 0;`;I.attr(`style`,e+I.attr(`style`))}}I.attr(`data-edge`,!0),I.attr(`data-et`,`edge`),I.attr(`data-id`,s.id),I.attr(`data-points`,C),I.attr(`data-look`,n.l(s.look)),s.showPoints&&T.forEach(e=>{a.append(`circle`).style(`stroke`,`red`).style(`fill`,`red`).attr(`r`,1).attr(`cx`,e.x).attr(`cy`,e.y)});let H=``;(e.b().flowchart.arrowMarkerAbsolute||e.b().state.arrowMarkerAbsolute)&&(H=window.location.protocol+`//`+window.location.host+window.location.pathname+window.location.search,H=H.replace(/\(/g,`\\(`).replace(/\)/g,`\\)`)),t.g.info(`arrowTypeStart`,s.arrowTypeStart),t.g.info(`arrowTypeEnd`,s.arrowTypeEnd);let U=!V&&s?.look===`neo`;u(I,s,H,h,d,U,z);let W=Math.floor(v.length/2),G=v[W];n.h.isLabelCoordinateInPath(G,I.attr(`d`))||(y=!0);let K={};return y&&(K.updatedPath=v),K.originalPath=s.points,K},`insertEdge`);function A(e,t){if(e.length<2)return``;let n=``,r=e.length,i=1e-5;for(let a=0;a<r;a++){let o=e[a],s=e[a-1],c=e[a+1];if(a===0)n+=`M${o.x},${o.y}`;else if(a===r-1)n+=`L${o.x},${o.y}`;else{let e=o.x-s.x,r=o.y-s.y,a=c.x-o.x,l=c.y-o.y,u=Math.hypot(e,r),d=Math.hypot(a,l);if(u<i||d<i){n+=`L${o.x},${o.y}`;continue}let f=e/u,p=r/u,m=a/d,h=l/d,g=f*m+p*h,_=Math.acos(Math.max(-1,Math.min(1,g)));if(_<i||Math.abs(Math.PI-_)<i){n+=`L${o.x},${o.y}`;continue}let v=Math.min(t/Math.sin(_/2),u/2,d/2),y=o.x-f*v,b=o.y-p*v,x=o.x+m*v,S=o.y+h*v;n+=`L${y},${b}`,n+=`Q${o.x},${o.y} ${x},${S}`}}return n}t.h(A,`generateRoundedPath`);function j(e,t){if(!e||!t)return{angle:0,deltaX:0,deltaY:0};let n=t.x-e.x,r=t.y-e.y;return{angle:Math.atan2(r,n),deltaX:n,deltaY:r}}t.h(j,`calculateDeltaAndAngle`);function M(e,t){let n=e.map(e=>({...e}));if(e.length>=2&&i.r[t.arrowTypeStart]){let r=i.r[t.arrowTypeStart],a=e[0],o=e[1],{angle:s}=j(a,o),c=r*Math.cos(s),l=r*Math.sin(s);n[0].x=a.x+c,n[0].y=a.y+l}let r=e.length;if(r>=2&&i.r[t.arrowTypeEnd]){let a=i.r[t.arrowTypeEnd],o=e[r-1],s=e[r-2],{angle:c}=j(s,o),l=a*Math.cos(c),u=a*Math.sin(c);n[r-1].x=o.x-l,n[r-1].y=o.y-u}return n}t.h(M,`applyMarkerOffsetsToPoints`);var N=t.h((e,t,n,r)=>{t.forEach(t=>{P[t](e,n,r)})},`insertMarkers`),P={extension:t.h((e,n,r)=>{t.g.trace(`Making markers for `,r),e.append(`defs`).append(`marker`).attr(`id`,r+`_`+n+`-extensionStart`).attr(`class`,`marker extension `+n).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 1,7 L18,13 V 1 Z`),e.append(`defs`).append(`marker`).attr(`id`,r+`_`+n+`-extensionEnd`).attr(`class`,`marker extension `+n).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 V 13 L18,7 Z`),e.append(`marker`).attr(`id`,r+`_`+n+`-extensionStart-margin`).attr(`class`,`marker extension `+n).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).attr(`viewBox`,`0 0 20 14`).append(`polygon`).attr(`points`,`10,7 18,13 18,1`).style(`stroke-width`,2).style(`stroke-dasharray`,`0`),e.append(`defs`).append(`marker`).attr(`id`,r+`_`+n+`-extensionEnd-margin`).attr(`class`,`marker extension `+n).attr(`refX`,9).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).attr(`viewBox`,`0 0 20 14`).append(`polygon`).attr(`points`,`10,1 10,13 18,7`).style(`stroke-width`,2).style(`stroke-dasharray`,`0`)},`extension`),composition:t.h((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionStart`).attr(`class`,`marker composition `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionEnd`).attr(`class`,`marker composition `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionStart-margin`).attr(`class`,`marker composition `+t).attr(`refX`,15).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`viewBox`,`0 0 15 15`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionEnd-margin`).attr(`class`,`marker composition `+t).attr(`refX`,3.5).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`)},`composition`),aggregation:t.h((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationStart`).attr(`class`,`marker aggregation `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationEnd`).attr(`class`,`marker aggregation `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationStart-margin`).attr(`class`,`marker aggregation `+t).attr(`refX`,15).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,2).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationEnd-margin`).attr(`class`,`marker aggregation `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,2).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`)},`aggregation`),dependency:t.h((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyStart`).attr(`class`,`marker dependency `+t).attr(`refX`,6).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 5,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyEnd`).attr(`class`,`marker dependency `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L14,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyStart-margin`).attr(`class`,`marker dependency `+t).attr(`refX`,4).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`d`,`M 5,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyEnd-margin`).attr(`class`,`marker dependency `+t).attr(`refX`,16).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`d`,`M 18,7 L9,13 L14,7 L9,1 Z`)},`dependency`),lollipop:t.h((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopStart`).attr(`class`,`marker lollipop `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopEnd`).attr(`class`,`marker lollipop `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopStart-margin`).attr(`class`,`marker lollipop `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6).attr(`stroke-width`,2),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopEnd-margin`).attr(`class`,`marker lollipop `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6).attr(`stroke-width`,2)},`lollipop`),point:t.h((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-pointEnd`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,5).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,8).attr(`markerHeight`,8).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 10 5 L 0 10 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointStart`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,4.5).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,8).attr(`markerHeight`,8).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 5 L 10 10 L 10 0 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointEnd-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 11.5 14`).attr(`refX`,11.5).attr(`refY`,7).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,10.5).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 11.5 7 L 0 14 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointStart-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 11.5 14`).attr(`refX`,1).attr(`refY`,7).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11.5).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`polygon`).attr(`points`,`0,7 11.5,14 11.5,0`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`)},`point`),circle:t.h((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-circleEnd`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,11).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleStart`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,-1).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleEnd-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refY`,5).attr(`refX`,12.25).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,14).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleStart-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,-2).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,14).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`)},`circle`),cross:t.h((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-crossEnd`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 11 11`).attr(`refX`,12).attr(`refY`,5.2).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 l 9,9 M 10,1 l -9,9`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-crossStart`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 11 11`).attr(`refX`,-1).attr(`refY`,5.2).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 l 9,9 M 10,1 l -9,9`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-crossEnd-margin`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 15 15`).attr(`refX`,17.7).attr(`refY`,7.5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 L 14,14 M 1,14 L 14,1`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2.5),e.append(`marker`).attr(`id`,n+`_`+t+`-crossStart-margin`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 15 15`).attr(`refX`,-3.5).attr(`refY`,7.5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 L 14,14 M 1,14 L 14,1`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2.5).style(`stroke-dasharray`,`1,0`)},`cross`),barb:t.h((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-barbEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L9,13 L14,7 L9,1 Z`)},`barb`),barbNeo:t.h((t,n,r)=>{let{themeVariables:i}=e.y(),{transitionColor:a}=i;t.append(`defs`).append(`marker`).attr(`id`,r+`_`+n+`-barbEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`strokeWidth`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L11,14 L13,7 L11,0 Z`),t.append(`defs`).append(`marker`).attr(`id`,r+`_`+n+`-barbEnd-margin`).attr(`refX`,17).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L11,14 L13,7 L11,0 Z`).attr(`fill`,`${a}`)},`barbNeo`),only_one:t.h((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneStart`).attr(`class`,`marker onlyOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).append(`path`).attr(`d`,`M9,0 L9,18 M15,0 L15,18`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneEnd`).attr(`class`,`marker onlyOne `+t).attr(`refX`,18).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).append(`path`).attr(`d`,`M3,0 L3,18 M9,0 L9,18`)},`only_one`),zero_or_one:t.h((e,t,n)=>{let r=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneStart`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`);r.append(`circle`).attr(`fill`,`white`).attr(`cx`,21).attr(`cy`,9).attr(`r`,6),r.append(`path`).attr(`d`,`M9,0 L9,18`);let i=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneEnd`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,30).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`);i.append(`circle`).attr(`fill`,`white`).attr(`cx`,9).attr(`cy`,9).attr(`r`,6),i.append(`path`).attr(`d`,`M21,0 L21,18`)},`zero_or_one`),one_or_more:t.h((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreStart`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`orient`,`auto`).append(`path`).attr(`d`,`M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreEnd`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,27).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`orient`,`auto`).append(`path`).attr(`d`,`M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18`)},`one_or_more`),zero_or_more:t.h((e,t,n)=>{let r=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreStart`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`);r.append(`circle`).attr(`fill`,`white`).attr(`cx`,48).attr(`cy`,18).attr(`r`,6),r.append(`path`).attr(`d`,`M0,18 Q18,0 36,18 Q18,36 0,18`);let i=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreEnd`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,39).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`);i.append(`circle`).attr(`fill`,`white`).attr(`cx`,9).attr(`cy`,18).attr(`r`,6),i.append(`path`).attr(`d`,`M21,18 Q39,0 57,18 Q39,36 21,18`)},`zero_or_more`),only_one_neo:t.h((t,n,r)=>{let{themeVariables:i}=e.y(),{strokeWidth:a}=i;t.append(`defs`).append(`marker`).attr(`id`,r+`_`+n+`-onlyOneStart`).attr(`class`,`marker onlyOne `+n).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M9,0 L9,18 M15,0 L15,18`).attr(`stroke-width`,`${a}`),t.append(`defs`).append(`marker`).attr(`id`,r+`_`+n+`-onlyOneEnd`).attr(`class`,`marker onlyOne `+n).attr(`refX`,18).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M3,0 L3,18 M9,0 L9,18`).attr(`stroke-width`,`${a}`)},`only_one_neo`),zero_or_one_neo:t.h((t,n,r)=>{let{themeVariables:i}=e.y(),{strokeWidth:a,mainBkg:o}=i,s=t.append(`defs`).append(`marker`).attr(`id`,r+`_`+n+`-zeroOrOneStart`).attr(`class`,`marker zeroOrOne `+n).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`);s.append(`circle`).attr(`fill`,o??`white`).attr(`cx`,21).attr(`cy`,9).attr(`stroke-width`,`${a}`).attr(`r`,6),s.append(`path`).attr(`d`,`M9,0 L9,18`).attr(`stroke-width`,`${a}`);let c=t.append(`defs`).append(`marker`).attr(`id`,r+`_`+n+`-zeroOrOneEnd`).attr(`class`,`marker zeroOrOne `+n).attr(`refX`,30).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`);c.append(`circle`).attr(`fill`,o??`white`).attr(`cx`,9).attr(`cy`,9).attr(`stroke-width`,`${a}`).attr(`r`,6),c.append(`path`).attr(`d`,`M21,0 L21,18`).attr(`stroke-width`,`${a}`)},`zero_or_one_neo`),one_or_more_neo:t.h((t,n,r)=>{let{themeVariables:i}=e.y(),{strokeWidth:a}=i;t.append(`defs`).append(`marker`).attr(`id`,r+`_`+n+`-oneOrMoreStart`).attr(`class`,`marker oneOrMore `+n).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27`).attr(`stroke-width`,`${a}`),t.append(`defs`).append(`marker`).attr(`id`,r+`_`+n+`-oneOrMoreEnd`).attr(`class`,`marker oneOrMore `+n).attr(`refX`,27).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18`).attr(`stroke-width`,`${a}`)},`one_or_more_neo`),zero_or_more_neo:t.h((t,n,r)=>{let{themeVariables:i}=e.y(),{strokeWidth:a,mainBkg:o}=i,s=t.append(`defs`).append(`marker`).attr(`id`,r+`_`+n+`-zeroOrMoreStart`).attr(`class`,`marker zeroOrMore `+n).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`);s.append(`circle`).attr(`fill`,o??`white`).attr(`cx`,45.5).attr(`cy`,18).attr(`r`,6).attr(`stroke-width`,`${a}`),s.append(`path`).attr(`d`,`M0,18 Q18,0 36,18 Q18,36 0,18`).attr(`stroke-width`,`${a}`);let c=t.append(`defs`).append(`marker`).attr(`id`,r+`_`+n+`-zeroOrMoreEnd`).attr(`class`,`marker zeroOrMore `+n).attr(`refX`,39).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`);c.append(`circle`).attr(`fill`,o??`white`).attr(`cx`,11).attr(`cy`,18).attr(`r`,6).attr(`stroke-width`,`${a}`),c.append(`path`).attr(`d`,`M21,18 Q39,0 57,18 Q39,36 21,18`).attr(`stroke-width`,`${a}`)},`zero_or_more_neo`),requirement_arrow:t.h((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-requirement_arrowEnd`).attr(`refX`,20).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).append(`path`).attr(`d`,`M0,0
@@ -1,13 +1,13 @@
1
- import { b as e, w as t, y as n } from "./chunk-ICPOFSXX-Sn6LWD0k.js";
1
+ import { b as e, w as t, y as n } from "./chunk-ICPOFSXX-fQJ5ufMR.js";
2
2
  import { g as r, h as i, p as a } from "./src-BQiFKP24.js";
3
- import { B as o, F as s, G as c, H as l, I as u, L as d, P as f, R as p, U as m, V as h, W as g, h as _, l as v, z as y } from "./chunk-5PVQY5BW-C5U7sJAA.js";
4
- import { t as b } from "./line-JyRBGWft.js";
3
+ import { B as o, F as s, G as c, H as l, I as u, L as d, P as f, R as p, U as m, V as h, W as g, h as _, l as v, z as y } from "./chunk-5PVQY5BW-Dn8n6moB.js";
4
+ import { t as b } from "./line-CrxZdHmO.js";
5
5
  import { i as x, n as S, r as C, t as w } from "./chunk-BSJP7CBP-oNTXVRA7.js";
6
- import { n as T } from "./chunk-ZZ45TVLE-CIYrdg-O.js";
7
- import { i as E, n as ee } from "./chunk-X2U36JSP-CY7mJR8m.js";
8
- import { n as D } from "./chunk-U2HBQHQK-BZ3YFMXB.js";
6
+ import { n as T } from "./chunk-ZZ45TVLE-X2jolXSO.js";
7
+ import { i as E, n as ee } from "./chunk-X2U36JSP-VxRY65ea.js";
8
+ import { n as D } from "./chunk-U2HBQHQK-Ceyeq0IV.js";
9
9
  import { t as te } from "./rough.esm-1mqTSjCt.js";
10
- import { r as O } from "./chunk-5FUZZQ4R-2kdZJWq2.js";
10
+ import { r as O } from "./chunk-5FUZZQ4R-D3C0F0Tr.js";
11
11
  //#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-ENJZ2VHE.mjs
12
12
  var k = /* @__PURE__ */ i((e, t, n, r, i, a = !1, o) => {
13
13
  t.arrowTypeStart && M(e, "start", t.arrowTypeStart, n, r, i, a, o), t.arrowTypeEnd && M(e, "end", t.arrowTypeEnd, n, r, i, a, o);