@sme.up/ketchup2 2.5.0 → 2.7.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 (379) hide show
  1. package/dist/{arc-D80gVCcI.js → arc-CVbkjF8U.js} +2 -2
  2. package/dist/{arc-MUYNnJxV.cjs → arc-w3BipdfE.cjs} +1 -1
  3. package/dist/architecture-7EHR7CIX-Bzeobe9Y.cjs +1 -0
  4. package/dist/architecture-7EHR7CIX-C8NPmR2w.js +3 -0
  5. package/dist/{architectureDiagram-3BPJPVTR-EFK4DMha.js → architectureDiagram-3BPJPVTR-B6VZAtZU.js} +10 -10
  6. package/dist/{architectureDiagram-3BPJPVTR-BrmPrClJ.cjs → architectureDiagram-3BPJPVTR-DlnXl9d5.cjs} +2 -2
  7. package/dist/array-DZSRzHA_.cjs +1 -0
  8. package/dist/basic-components/autocomplete/autocomplete-types.d.ts +2 -1
  9. package/dist/basic-components/autocomplete/autocomplete-types.d.ts.map +1 -1
  10. package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
  11. package/dist/basic-components/barcode/barcode.d.ts.map +1 -1
  12. package/dist/basic-components/button/button-utils.d.ts.map +1 -1
  13. package/dist/basic-components/icon/icon.d.ts.map +1 -1
  14. package/dist/basic-components/image/image.d.ts.map +1 -1
  15. package/dist/basic-components/image-cell/image-cell-types.d.ts +4 -0
  16. package/dist/basic-components/image-cell/image-cell-types.d.ts.map +1 -1
  17. package/dist/basic-components/image-cell/image-cell.d.ts.map +1 -1
  18. package/dist/basic-components/password/password.d.ts.map +1 -1
  19. package/dist/basic-components/qr-code/qr-code-types.d.ts +9 -2
  20. package/dist/basic-components/qr-code/qr-code-types.d.ts.map +1 -1
  21. package/dist/basic-components/qr-code/qr-code.d.ts.map +1 -1
  22. package/dist/basic-components/textfield/textfield-types.d.ts +1 -0
  23. package/dist/basic-components/textfield/textfield-types.d.ts.map +1 -1
  24. package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
  25. package/dist/{blockDiagram-GPEHLZMM-C3UgY0Z5.js → blockDiagram-GPEHLZMM-BohmRoCC.js} +21 -19
  26. package/dist/{blockDiagram-GPEHLZMM-CuzoKhJT.cjs → blockDiagram-GPEHLZMM-rfyR2Ffl.cjs} +1 -1
  27. package/dist/{c4Diagram-AAUBKEIU-klnmEOUo.js → c4Diagram-AAUBKEIU-CdT8VCbo.js} +5 -5
  28. package/dist/{c4Diagram-AAUBKEIU-DU8uXbgK.cjs → c4Diagram-AAUBKEIU-Du1vqJYZ.cjs} +1 -1
  29. package/dist/{channel-BbRDdbmM.js → channel-C-LAmObA.js} +1 -1
  30. package/dist/channel-DJpMBAs-.cjs +1 -0
  31. package/dist/{chunk-2J33WTMH-EmvF7iYC.js → chunk-2J33WTMH-BMqA-riF.js} +2 -2
  32. package/dist/{chunk-2J33WTMH-PlcpVW8G.cjs → chunk-2J33WTMH-BQs9SXq8.cjs} +1 -1
  33. package/dist/{chunk-3OPIFGDE-CT5oNC5X.cjs → chunk-3OPIFGDE-Bk_ByTBh.cjs} +2 -2
  34. package/dist/{chunk-3OPIFGDE-C7wE5oN7.js → chunk-3OPIFGDE-Bs2mXISw.js} +7 -7
  35. package/dist/chunk-4BX2VUAB-C8VW0QW0.cjs +1 -0
  36. package/dist/{chunk-4BX2VUAB-BO1KRGb1.js → chunk-4BX2VUAB-zglw1T4d.js} +1 -1
  37. package/dist/chunk-55IACEB6-CNxnI3nm.cjs +1 -0
  38. package/dist/{chunk-55IACEB6-b_Ivgrk-.js → chunk-55IACEB6-CmKDx-YO.js} +1 -1
  39. package/dist/{chunk-5ZQYHXKU-C4uam08j.js → chunk-5ZQYHXKU-B_nOC8-n.js} +3 -3
  40. package/dist/{chunk-5ZQYHXKU-BMnKD7Zq.cjs → chunk-5ZQYHXKU-DMrStm4M.cjs} +2 -2
  41. package/dist/{chunk-727SXJPM-Dof0vDVV.js → chunk-727SXJPM-CDeV7mmg.js} +11 -9
  42. package/dist/{chunk-727SXJPM-DTmqhRKX.cjs → chunk-727SXJPM-Dj8nsm0O.cjs} +3 -3
  43. package/dist/{chunk-AQP2D5EJ-DdWeFQ4O.cjs → chunk-AQP2D5EJ-CYuEYK6i.cjs} +2 -2
  44. package/dist/{chunk-AQP2D5EJ-N9ii4fwJ.js → chunk-AQP2D5EJ-vJ_pitKp.js} +6 -6
  45. package/dist/{chunk-BSJP7CBP-CaeBFqNU.cjs → chunk-BSJP7CBP-CSCICPww.cjs} +1 -1
  46. package/dist/{chunk-BSJP7CBP-Bx5APwBA.js → chunk-BSJP7CBP-YsQACkyC.js} +1 -1
  47. package/dist/chunk-CSCIHK7Q-BAdl6GW-.cjs +124 -0
  48. package/dist/{chunk-CSCIHK7Q-9WKhcDqw.js → chunk-CSCIHK7Q-BEk3YcEH.js} +954 -772
  49. package/dist/{chunk-FMBD7UC4-CiO_59ls.cjs → chunk-FMBD7UC4-BIKI8zae.cjs} +2 -2
  50. package/dist/{chunk-FMBD7UC4-BbggSGOg.js → chunk-FMBD7UC4-BURT0llY.js} +1 -1
  51. package/dist/{chunk-KSCS5N6A-BY1s4eGg.js → chunk-KSCS5N6A-BemQomLE.js} +10 -10
  52. package/dist/{chunk-KSCS5N6A-DO8jEi0y.cjs → chunk-KSCS5N6A-DsN7gJEf.cjs} +2 -2
  53. package/dist/{chunk-L5ZTLDWV-D3UwMopa.js → chunk-L5ZTLDWV-BQCNoMVG.js} +3 -3
  54. package/dist/{chunk-L5ZTLDWV-BE9udiOh.cjs → chunk-L5ZTLDWV-BbLRyKcx.cjs} +1 -1
  55. package/dist/{chunk-LZXEDZCA-KzBFuWPU.js → chunk-LZXEDZCA-J9irjuVP.js} +9 -9
  56. package/dist/chunk-LZXEDZCA-rjLYyX5U.cjs +1 -0
  57. package/dist/{chunk-ND2GUHAM-DdBSZTft.cjs → chunk-ND2GUHAM-1o9Sjy2_.cjs} +1 -1
  58. package/dist/{chunk-ND2GUHAM-CHTke4K8.js → chunk-ND2GUHAM-Ca12h-m9.js} +3 -3
  59. package/dist/{chunk-NNHCCRGN-D_orSz6n.js → chunk-NNHCCRGN-BB1q5NkR.js} +32 -16
  60. package/dist/{chunk-NNHCCRGN-aKMHXBzL.cjs → chunk-NNHCCRGN-qV8bfiMQ.cjs} +13 -13
  61. package/dist/{chunk-NZK2D7GU-BVOINLmx.js → chunk-NZK2D7GU-CPxdSJTy.js} +2 -2
  62. package/dist/{chunk-NZK2D7GU-_twqedIe.cjs → chunk-NZK2D7GU-CRneGIrP.cjs} +1 -1
  63. package/dist/{chunk-O5CBEL6O-CDvi2oZo.cjs → chunk-O5CBEL6O-Cd4Z5Dy9.cjs} +2 -2
  64. package/dist/{chunk-O5CBEL6O-VsMF4aZB.js → chunk-O5CBEL6O-DbWeP4Au.js} +3 -3
  65. package/dist/{chunk-QZHKN3VN-CHjRGMI2.cjs → chunk-QZHKN3VN-ZJ4hLUIw.cjs} +1 -1
  66. package/dist/{chunk-QZHKN3VN-DCddt14Q.js → chunk-QZHKN3VN-lYfzaOt9.js} +1 -1
  67. package/dist/{chunk-WU5MYG2G-mQn7Wt-i.js → chunk-WU5MYG2G-DuCEb9G-.js} +2 -2
  68. package/dist/chunk-WU5MYG2G-ExiaHFbF.cjs +1 -0
  69. package/dist/{chunk-XPW4576I-D_mwgMVU.cjs → chunk-XPW4576I-BybfDrup.cjs} +2 -2
  70. package/dist/{chunk-XPW4576I-BCowsgDU.js → chunk-XPW4576I-D3DQ47oC.js} +1 -1
  71. package/dist/classDiagram-4FO5ZUOK-CRX1QumH.js +29 -0
  72. package/dist/classDiagram-4FO5ZUOK-yTAlLFG2.cjs +1 -0
  73. package/dist/classDiagram-v2-Q7XG4LA2-oM01mYfB.js +29 -0
  74. package/dist/classDiagram-v2-Q7XG4LA2-yTAlLFG2.cjs +1 -0
  75. package/dist/components/box-list/box-list.d.ts.map +1 -1
  76. package/dist/components/data-table/columns/useColumnWidths.d.ts +6 -1
  77. package/dist/components/data-table/columns/useColumnWidths.d.ts.map +1 -1
  78. package/dist/components/data-table/data-table-types.d.ts +56 -3
  79. package/dist/components/data-table/data-table-types.d.ts.map +1 -1
  80. package/dist/components/data-table/data-table.d.ts.map +1 -1
  81. package/dist/components/data-table/header/Header.d.ts.map +1 -1
  82. package/dist/components/data-table/header/header-types.d.ts +7 -3
  83. package/dist/components/data-table/header/header-types.d.ts.map +1 -1
  84. package/dist/components/data-table/sorting/parseDftSort.d.ts +14 -0
  85. package/dist/components/data-table/sorting/parseDftSort.d.ts.map +1 -0
  86. package/dist/components/data-table/sorting/parseDftSort.test.d.ts +2 -0
  87. package/dist/components/data-table/sorting/parseDftSort.test.d.ts.map +1 -0
  88. package/dist/components/data-table/sorting/sortTable-utils.d.ts +8 -9
  89. package/dist/components/data-table/sorting/sortTable-utils.d.ts.map +1 -1
  90. package/dist/components/data-table/sorting/useSortableTable.d.ts +3 -5
  91. package/dist/components/data-table/sorting/useSortableTable.d.ts.map +1 -1
  92. package/dist/components/data-table/state/datatable-state.d.ts +1 -0
  93. package/dist/components/data-table/state/datatable-state.d.ts.map +1 -1
  94. package/dist/components/echarts/echarts-graph.d.ts.map +1 -1
  95. package/dist/components/input-panel/assets/data.d.ts +1 -0
  96. package/dist/components/input-panel/assets/data.d.ts.map +1 -1
  97. package/dist/components/input-panel/input-panel-types.d.ts +5 -0
  98. package/dist/components/input-panel/input-panel-types.d.ts.map +1 -1
  99. package/dist/components/input-panel/input-panel-utils.d.ts +1 -0
  100. package/dist/components/input-panel/input-panel-utils.d.ts.map +1 -1
  101. package/dist/components/input-panel/input-panel.d.ts.map +1 -1
  102. package/dist/components/pdf/pdf-utils.d.ts +1 -1
  103. package/dist/components/pdf/pdf-utils.d.ts.map +1 -1
  104. package/dist/components/toolbar/toolbar-nodes/toolbar-plain-node.d.ts.map +1 -1
  105. package/dist/components/workflow-designer/workflow-designer-types.d.ts +76 -0
  106. package/dist/components/workflow-designer/workflow-designer-types.d.ts.map +1 -0
  107. package/dist/components/workflow-designer/workflow-designer-utils.d.ts +7 -0
  108. package/dist/components/workflow-designer/workflow-designer-utils.d.ts.map +1 -0
  109. package/dist/components/workflow-designer/workflow-designer.d.ts +14 -0
  110. package/dist/components/workflow-designer/workflow-designer.d.ts.map +1 -0
  111. package/dist/{cose-bilkent-S5V4N54A-Bfb7U01p.js → cose-bilkent-S5V4N54A-BhA3VnPW.js} +2 -2
  112. package/dist/{cose-bilkent-S5V4N54A-CE-7Sw0Y.cjs → cose-bilkent-S5V4N54A-D7fhWOP4.cjs} +1 -1
  113. package/dist/{cytoscape.esm-VShrX2U1.js → cytoscape.esm-BU21wl3m.js} +17 -17
  114. package/dist/{cytoscape.esm-BzblyxzZ.cjs → cytoscape.esm-CElDUMAx.cjs} +4 -4
  115. package/dist/{dagre-Cg4CV48I.js → dagre-3-RnF0EK.js} +1 -1
  116. package/dist/{dagre-CC68z3y6.cjs → dagre-B2BBwKNb.cjs} +1 -1
  117. package/dist/{dagre-BM42HDAG-D87Rv2R4.js → dagre-BM42HDAG-DfpR5Mml.js} +11 -11
  118. package/dist/{dagre-BM42HDAG-BhbA1R8l.cjs → dagre-BM42HDAG-kORxgFz_.cjs} +1 -1
  119. package/dist/{defaultLocale-Bj_Ndo9V.cjs → defaultLocale-u9yUoUmE.cjs} +1 -1
  120. package/dist/{diagram-2AECGRRQ-OSYCK0tv.js → diagram-2AECGRRQ-23vM90dy.js} +8 -8
  121. package/dist/{diagram-2AECGRRQ-C6vI3yau.cjs → diagram-2AECGRRQ-B0IEGKjr.cjs} +1 -1
  122. package/dist/{diagram-5GNKFQAL-DnquluB9.js → diagram-5GNKFQAL-BEY9x4us.js} +9 -9
  123. package/dist/{diagram-5GNKFQAL-BS9rRMAe.cjs → diagram-5GNKFQAL-vb6e35PR.cjs} +1 -1
  124. package/dist/{diagram-KO2AKTUF-CjA_KTJj.cjs → diagram-KO2AKTUF-9V_zu-2x.cjs} +2 -2
  125. package/dist/{diagram-KO2AKTUF-CFi6eQYd.js → diagram-KO2AKTUF-BEnEQF6b.js} +8 -8
  126. package/dist/{diagram-LMA3HP47-DBwSTp2j.cjs → diagram-LMA3HP47-BN_geiB9.cjs} +1 -1
  127. package/dist/{diagram-LMA3HP47-Cwm5bzeM.js → diagram-LMA3HP47-OWxAHrmz.js} +8 -8
  128. package/dist/{diagram-OG6HWLK6-BdLnbUYy.cjs → diagram-OG6HWLK6-6OnEK9-6.cjs} +1 -1
  129. package/dist/{diagram-OG6HWLK6-DvGk1j55.js → diagram-OG6HWLK6-Cfbv6mIH.js} +12 -12
  130. package/dist/{dist-9MKIBfY4.js → dist-Btd8EZyy.js} +1 -1
  131. package/dist/{dist-DC1YYeHc.cjs → dist-D8RD2QWc.cjs} +1 -1
  132. package/dist/{erDiagram-TEJ5UH35-B17mqgD_.js → erDiagram-TEJ5UH35-6OEXIM6m.js} +13 -13
  133. package/dist/{erDiagram-TEJ5UH35-NlRiP_bX.cjs → erDiagram-TEJ5UH35-CzsOt0l4.cjs} +1 -1
  134. package/dist/eventmodeling-FCH6USID-Cued7Lz2.cjs +1 -0
  135. package/dist/eventmodeling-FCH6USID-mCB8hc7X.js +3 -0
  136. package/dist/{flowDiagram-I6XJVG4X-ChI_6giU.cjs → flowDiagram-I6XJVG4X-DR1CMtZZ.cjs} +2 -2
  137. package/dist/{flowDiagram-I6XJVG4X-C2G6Tgw_.js → flowDiagram-I6XJVG4X-DnsxKD0w.js} +16 -16
  138. package/dist/functional-components/action/action-types.d.ts +5 -1
  139. package/dist/functional-components/action/action-types.d.ts.map +1 -1
  140. package/dist/functional-components/action/action-utils.d.ts +1 -2
  141. package/dist/functional-components/action/action-utils.d.ts.map +1 -1
  142. package/dist/functional-components/action/action.d.ts.map +1 -1
  143. package/dist/functional-components/action-list/action-list-types.d.ts +0 -7
  144. package/dist/functional-components/action-list/action-list-types.d.ts.map +1 -1
  145. package/dist/functional-components/action-list/action-list.d.ts.map +1 -1
  146. package/dist/functional-components/badge/badge-assets.d.ts +3 -3
  147. package/dist/functional-components/badge/badge-assets.d.ts.map +1 -1
  148. package/dist/functional-components/row/row-types.d.ts +8 -0
  149. package/dist/functional-components/row/row-types.d.ts.map +1 -1
  150. package/dist/functional-components/row/row.d.ts.map +1 -1
  151. package/dist/{ganttDiagram-6RSMTGT7-B0DHqd7u.cjs → ganttDiagram-6RSMTGT7-C5t5_mjf.cjs} +1 -1
  152. package/dist/{ganttDiagram-6RSMTGT7-Bb6bqcaS.js → ganttDiagram-6RSMTGT7-CwbJqdwB.js} +8 -8
  153. package/dist/gitGraph-WXDBUCRP-B23gOjfP.js +3 -0
  154. package/dist/gitGraph-WXDBUCRP-Bi-Y5dA7.cjs +1 -0
  155. package/dist/{gitGraphDiagram-PVQCEYII-BzbgPrwe.cjs → gitGraphDiagram-PVQCEYII-CLdgm7yJ.cjs} +1 -1
  156. package/dist/{gitGraphDiagram-PVQCEYII-DiJUr7lO.js → gitGraphDiagram-PVQCEYII-mL2WiT98.js} +8 -8
  157. package/dist/graphlib-CkkG5MuS.cjs +1 -0
  158. package/dist/{graphlib-B1zohIOM.js → graphlib-VMWSbyYi.js} +2 -1
  159. package/dist/index.d.ts +3 -3
  160. package/dist/index.d.ts.map +1 -1
  161. package/dist/info-J43DQDTF-DC3N8SoX.js +3 -0
  162. package/dist/info-J43DQDTF-jRjlWVKj.cjs +1 -0
  163. package/dist/{infoDiagram-5YYISTIA-C8P9DHlE.js → infoDiagram-5YYISTIA-BIM8xaiE.js} +4 -4
  164. package/dist/{infoDiagram-5YYISTIA-fhwEAAjF.cjs → infoDiagram-5YYISTIA-CbnHgs-I.cjs} +1 -1
  165. package/dist/{init-CEL65JUo.cjs → init-07zIhv_j.cjs} +1 -1
  166. package/dist/{ishikawaDiagram-YF4QCWOH-j6IZz59g.cjs → ishikawaDiagram-YF4QCWOH-DAWMXD1l.cjs} +1 -1
  167. package/dist/{ishikawaDiagram-YF4QCWOH-rqNbTKZp.js → ishikawaDiagram-YF4QCWOH-DGOgWzve.js} +5 -5
  168. package/dist/{journeyDiagram-JHISSGLW-peUJlm3L.js → journeyDiagram-JHISSGLW-CHVTMdrq.js} +5 -5
  169. package/dist/{journeyDiagram-JHISSGLW-BhHdd4y3.cjs → journeyDiagram-JHISSGLW-DfnmJPLn.cjs} +1 -1
  170. package/dist/{kanban-definition-UN3LZRKU-TUg1x5yJ.cjs → kanban-definition-UN3LZRKU-CbeoJJE7.cjs} +1 -1
  171. package/dist/{kanban-definition-UN3LZRKU-DLxDqiQn.js → kanban-definition-UN3LZRKU-upKA3b5x.js} +10 -10
  172. package/dist/ketchup2.cjs.js +398 -108
  173. package/dist/ketchup2.css +1 -1
  174. package/dist/ketchup2.es.js +59533 -36164
  175. package/dist/{line-CpcTW4h-.cjs → line-CzwncDY3.cjs} +1 -1
  176. package/dist/{line-BhAnxCE8.js → line-DIhSUgmA.js} +3 -3
  177. package/dist/{linear-D0eFmsG1.cjs → linear-1lpO_WlJ.cjs} +1 -1
  178. package/dist/{linear-lSeWuvgy.js → linear-DUAteVwl.js} +3 -3
  179. package/dist/locale/en/translation.json.d.ts +9 -0
  180. package/dist/locale/it/translation.json.d.ts +9 -0
  181. package/dist/mermaid-parser.core-ADyJ_PY4.cjs +3 -0
  182. package/dist/mermaid-parser.core-D6xVjl2t.js +373 -0
  183. package/dist/{mindmap-definition-RKZ34NQL-DHkmUkxh.js → mindmap-definition-RKZ34NQL-C3YkCJDi.js} +13 -13
  184. package/dist/{mindmap-definition-RKZ34NQL-D9BOsg5W.cjs → mindmap-definition-RKZ34NQL-C8cZ7xN-.cjs} +1 -1
  185. package/dist/{ordinal-BnUYNBtU.cjs → ordinal-CUPR-p0T.cjs} +1 -1
  186. package/dist/{ordinal-MD9_ORcM.js → ordinal-D_ZgubzR.js} +1 -1
  187. package/dist/packet-YPE3B663-CGZxZ1Z0.cjs +1 -0
  188. package/dist/packet-YPE3B663-D2JW2EUF.js +3 -0
  189. package/dist/{path-CRahBUHI.cjs → path-Kklx0M1v.cjs} +1 -1
  190. package/dist/pie-LRSECV5Y-BHyd33ZA.js +3 -0
  191. package/dist/pie-LRSECV5Y-Ca_qbHEv.cjs +1 -0
  192. package/dist/{pieDiagram-4H26LBE5-ByA7ytZx.js → pieDiagram-4H26LBE5-BvhguaHn.js} +13 -13
  193. package/dist/{pieDiagram-4H26LBE5-CrLJh4L9.cjs → pieDiagram-4H26LBE5-DpDrJBQK.cjs} +1 -1
  194. package/dist/{quadrantDiagram-W4KKPZXB-CHHpmu1l.js → quadrantDiagram-W4KKPZXB-C2oA-eGZ.js} +3 -3
  195. package/dist/{quadrantDiagram-W4KKPZXB-CalC_db_.cjs → quadrantDiagram-W4KKPZXB-hWSN7YfD.cjs} +1 -1
  196. package/dist/radar-GUYGQ44K-BpJWFTCm.js +3 -0
  197. package/dist/radar-GUYGQ44K-CYqWSxO_.cjs +1 -0
  198. package/dist/{requirementDiagram-4Y6WPE33-BVcDFSx8.js → requirementDiagram-4Y6WPE33-BEGryahw.js} +12 -12
  199. package/dist/{requirementDiagram-4Y6WPE33-SsePLT8d.cjs → requirementDiagram-4Y6WPE33-GmjmsbiY.cjs} +1 -1
  200. package/dist/{rough.esm-BEA_SCZB.cjs → rough.esm-r0QOSzHM.cjs} +1 -1
  201. package/dist/{sankeyDiagram-5OEKKPKP-BgvTZ7jd.cjs → sankeyDiagram-5OEKKPKP-DbGAx-Bm.cjs} +1 -1
  202. package/dist/{sankeyDiagram-5OEKKPKP-C-ODz9lV.js → sankeyDiagram-5OEKKPKP-VPzKV4zM.js} +3 -3
  203. package/dist/{sequenceDiagram-3UESZ5HK-Cnc0aDO4.js → sequenceDiagram-3UESZ5HK-Bc30_Cm2.js} +21 -21
  204. package/dist/{sequenceDiagram-3UESZ5HK-DEVLteqD.cjs → sequenceDiagram-3UESZ5HK-D85rpewi.cjs} +2 -2
  205. package/dist/src-DEmZ9bFr.cjs +1 -0
  206. package/dist/{src-v9RrE_4h.js → src-DjDATEq3.js} +7 -4
  207. package/dist/{stateDiagram-AJRCARHV-D_yPvIRw.cjs → stateDiagram-AJRCARHV-Bg4Y3HPa.cjs} +1 -1
  208. package/dist/{stateDiagram-AJRCARHV-CuHe6Iji.js → stateDiagram-AJRCARHV-wqjltbKb.js} +16 -16
  209. package/dist/stateDiagram-v2-BHNVJYJU-Cgrf5tQC.js +27 -0
  210. package/dist/stateDiagram-v2-BHNVJYJU-D_Tzn4WM.cjs +1 -0
  211. package/dist/{timeline-definition-PNZ67QCA-Bj1BItRB.js → timeline-definition-PNZ67QCA-1z911Ume.js} +5 -5
  212. package/dist/{timeline-definition-PNZ67QCA-Cynbc96w.cjs → timeline-definition-PNZ67QCA-Dpu3hfhP.cjs} +1 -1
  213. package/dist/treeView-BLDUP644-C9tQMbiq.js +3 -0
  214. package/dist/treeView-BLDUP644-DKh9BcaT.cjs +1 -0
  215. package/dist/treemap-LRROVOQU-2aferAph.cjs +1 -0
  216. package/dist/treemap-LRROVOQU-CBv3oGC3.js +3 -0
  217. package/dist/types/data-structures.d.ts +3 -0
  218. package/dist/types/data-structures.d.ts.map +1 -1
  219. package/dist/types/global.d.ts +1 -1
  220. package/dist/types/global.d.ts.map +1 -1
  221. package/dist/types/translation.d.ts +10 -1
  222. package/dist/types/translation.d.ts.map +1 -1
  223. package/dist/utils/objects.d.ts +2 -0
  224. package/dist/utils/objects.d.ts.map +1 -1
  225. package/dist/{v4-CA8ev9YY.cjs → v4-Dyp-SQ1c.cjs} +1 -1
  226. package/dist/{vennDiagram-CIIHVFJN-Dm4D6omA.cjs → vennDiagram-CIIHVFJN-BLBDqWTG.cjs} +2 -2
  227. package/dist/{vennDiagram-CIIHVFJN-CdmcxixA.js → vennDiagram-CIIHVFJN-BiLcQ0SR.js} +5 -5
  228. package/dist/wardley-L42UT6IY-CIM0_V5T.js +3 -0
  229. package/dist/wardley-L42UT6IY-DjjjOB8T.cjs +1 -0
  230. package/dist/{wardleyDiagram-YWT4CUSO-D1o116Wi.js → wardleyDiagram-YWT4CUSO-Bq-BejOl.js} +8 -8
  231. package/dist/{wardleyDiagram-YWT4CUSO-C-DdutxP.cjs → wardleyDiagram-YWT4CUSO-dzyAWKiV.cjs} +1 -1
  232. package/dist/{xychartDiagram-2RQKCTM6-Byw7djcg.js → xychartDiagram-2RQKCTM6-B13zquXC.js} +9 -9
  233. package/dist/{xychartDiagram-2RQKCTM6-D0D4PIQS.cjs → xychartDiagram-2RQKCTM6-DA3O42Dk.cjs} +1 -1
  234. package/package.json +26 -25
  235. package/dist/architecture-7EHR7CIX-Bnyu5zgG.js +0 -3
  236. package/dist/architecture-7EHR7CIX-CKF7-4kH.cjs +0 -1
  237. package/dist/array-Cx1JwiGD.cjs +0 -1
  238. package/dist/assets/imageListAssets.d.ts +0 -16
  239. package/dist/assets/imageListAssets.d.ts.map +0 -1
  240. package/dist/channel-intTktDQ.cjs +0 -1
  241. package/dist/chunk-4BX2VUAB-CtDGlaPx.cjs +0 -1
  242. package/dist/chunk-4EGX6M5U-BMVrizoY.js +0 -35
  243. package/dist/chunk-4EGX6M5U-VENLmgBt.cjs +0 -1
  244. package/dist/chunk-55IACEB6-VJP3Osm7.cjs +0 -1
  245. package/dist/chunk-5DO6E6H7-Cx6Mfbjl.cjs +0 -1
  246. package/dist/chunk-5DO6E6H7-QuTLwcim.js +0 -23
  247. package/dist/chunk-BR22UD5L-CS6hURQQ.js +0 -64
  248. package/dist/chunk-BR22UD5L-wI1vkyAT.cjs +0 -1
  249. package/dist/chunk-CSCIHK7Q-BPMuICCz.cjs +0 -123
  250. package/dist/chunk-FHYWG6QK-CfRqYwCI.js +0 -23
  251. package/dist/chunk-FHYWG6QK-DxmnARsZ.cjs +0 -1
  252. package/dist/chunk-LZXEDZCA-Dpz_wx3M.cjs +0 -1
  253. package/dist/chunk-MPE355IW-4bpROspE.js +0 -23
  254. package/dist/chunk-MPE355IW-CxPw_dPP.cjs +0 -1
  255. package/dist/chunk-MZUSXYTE-DA5mUG5B.js +0 -30
  256. package/dist/chunk-MZUSXYTE-DIg1BPts.cjs +0 -1
  257. package/dist/chunk-N66VUXT2-DSbygtq1.cjs +0 -1
  258. package/dist/chunk-N66VUXT2-pDZ1b-B3.js +0 -54
  259. package/dist/chunk-PUPMXCY4-CKjhJQnN.js +0 -23
  260. package/dist/chunk-PUPMXCY4-DsS_t57r.cjs +0 -1
  261. package/dist/chunk-UIBZB4QT-BZf7vqd9.cjs +0 -1
  262. package/dist/chunk-UIBZB4QT-BvFllM0Q.js +0 -23
  263. package/dist/chunk-WCWK7LTN-D_C1as0Y.js +0 -31
  264. package/dist/chunk-WCWK7LTN-Dl2uC9ZD.cjs +0 -1
  265. package/dist/chunk-WU5MYG2G-DgyP9QDj.cjs +0 -1
  266. package/dist/classDiagram-4FO5ZUOK-5DyhpZRK.cjs +0 -1
  267. package/dist/classDiagram-4FO5ZUOK-BHGLQIkz.js +0 -29
  268. package/dist/classDiagram-v2-Q7XG4LA2-CCAbBo05.js +0 -29
  269. package/dist/classDiagram-v2-Q7XG4LA2-D4TX4CLT.cjs +0 -1
  270. package/dist/components/image-list/components/error-boundary.d.ts +0 -16
  271. package/dist/components/image-list/components/error-boundary.d.ts.map +0 -1
  272. package/dist/components/image-list/components/image-list-command-panel.d.ts +0 -15
  273. package/dist/components/image-list/components/image-list-command-panel.d.ts.map +0 -1
  274. package/dist/components/image-list/components/image-list-command-trigger.d.ts +0 -16
  275. package/dist/components/image-list/components/image-list-command-trigger.d.ts.map +0 -1
  276. package/dist/components/image-list/components/image-list-drill-down.d.ts +0 -4
  277. package/dist/components/image-list/components/image-list-drill-down.d.ts.map +0 -1
  278. package/dist/components/image-list/components/image-list-filter-picker.d.ts +0 -14
  279. package/dist/components/image-list/components/image-list-filter-picker.d.ts.map +0 -1
  280. package/dist/components/image-list/components/image-list-h-strip.d.ts +0 -5
  281. package/dist/components/image-list/components/image-list-h-strip.d.ts.map +0 -1
  282. package/dist/components/image-list/components/image-list-json-viewer.d.ts +0 -11
  283. package/dist/components/image-list/components/image-list-json-viewer.d.ts.map +0 -1
  284. package/dist/components/image-list/components/image-list-menu.d.ts +0 -5
  285. package/dist/components/image-list/components/image-list-menu.d.ts.map +0 -1
  286. package/dist/components/image-list/components/image-list-navigation-picker.d.ts +0 -15
  287. package/dist/components/image-list/components/image-list-navigation-picker.d.ts.map +0 -1
  288. package/dist/components/image-list/components/image-list-sort-picker.d.ts +0 -14
  289. package/dist/components/image-list/components/image-list-sort-picker.d.ts.map +0 -1
  290. package/dist/components/image-list/components/image-list-v-strip.d.ts +0 -5
  291. package/dist/components/image-list/components/image-list-v-strip.d.ts.map +0 -1
  292. package/dist/components/image-list/components/items/image-list-card-item.d.ts +0 -5
  293. package/dist/components/image-list/components/items/image-list-card-item.d.ts.map +0 -1
  294. package/dist/components/image-list/components/items/image-list-folder-item.d.ts +0 -5
  295. package/dist/components/image-list/components/items/image-list-folder-item.d.ts.map +0 -1
  296. package/dist/components/image-list/components/items/image-list-item.d.ts +0 -5
  297. package/dist/components/image-list/components/items/image-list-item.d.ts.map +0 -1
  298. package/dist/components/image-list/components/menu-nav-item.d.ts +0 -5
  299. package/dist/components/image-list/components/menu-nav-item.d.ts.map +0 -1
  300. package/dist/components/image-list/components/navigation-modes/image-list-catalog.d.ts +0 -5
  301. package/dist/components/image-list/components/navigation-modes/image-list-catalog.d.ts.map +0 -1
  302. package/dist/components/image-list/components/navigation-modes/image-list-compact.d.ts +0 -5
  303. package/dist/components/image-list/components/navigation-modes/image-list-compact.d.ts.map +0 -1
  304. package/dist/components/image-list/components/navigation-modes/image-list-explorer.d.ts +0 -5
  305. package/dist/components/image-list/components/navigation-modes/image-list-explorer.d.ts.map +0 -1
  306. package/dist/components/image-list/components/navigation-modes/image-list-modal.d.ts +0 -5
  307. package/dist/components/image-list/components/navigation-modes/image-list-modal.d.ts.map +0 -1
  308. package/dist/components/image-list/components/navigation-modes/image-list-slideshow.d.ts +0 -5
  309. package/dist/components/image-list/components/navigation-modes/image-list-slideshow.d.ts.map +0 -1
  310. package/dist/components/image-list/components/navigation-modes/image-list-tree.d.ts +0 -5
  311. package/dist/components/image-list/components/navigation-modes/image-list-tree.d.ts.map +0 -1
  312. package/dist/components/image-list/components/strip-child-popup.d.ts +0 -5
  313. package/dist/components/image-list/components/strip-child-popup.d.ts.map +0 -1
  314. package/dist/components/image-list/components/strip-item.d.ts +0 -5
  315. package/dist/components/image-list/components/strip-item.d.ts.map +0 -1
  316. package/dist/components/image-list/components/strip-overflow-button.d.ts +0 -5
  317. package/dist/components/image-list/components/strip-overflow-button.d.ts.map +0 -1
  318. package/dist/components/image-list/hooks/useCommandPickers.d.ts +0 -13
  319. package/dist/components/image-list/hooks/useCommandPickers.d.ts.map +0 -1
  320. package/dist/components/image-list/hooks/useNavigation.d.ts +0 -16
  321. package/dist/components/image-list/hooks/useNavigation.d.ts.map +0 -1
  322. package/dist/components/image-list/hooks/useSelection.d.ts +0 -34
  323. package/dist/components/image-list/hooks/useSelection.d.ts.map +0 -1
  324. package/dist/components/image-list/hooks/useStripOverflow.d.ts +0 -17
  325. package/dist/components/image-list/hooks/useStripOverflow.d.ts.map +0 -1
  326. package/dist/components/image-list/image-list-column-utils.d.ts +0 -9
  327. package/dist/components/image-list/image-list-column-utils.d.ts.map +0 -1
  328. package/dist/components/image-list/image-list-context.d.ts +0 -29
  329. package/dist/components/image-list/image-list-context.d.ts.map +0 -1
  330. package/dist/components/image-list/image-list-debug-utils.d.ts +0 -13
  331. package/dist/components/image-list/image-list-debug-utils.d.ts.map +0 -1
  332. package/dist/components/image-list/image-list-filter-context.d.ts +0 -9
  333. package/dist/components/image-list/image-list-filter-context.d.ts.map +0 -1
  334. package/dist/components/image-list/image-list-filter-utils.d.ts +0 -12
  335. package/dist/components/image-list/image-list-filter-utils.d.ts.map +0 -1
  336. package/dist/components/image-list/image-list-sort-context.d.ts +0 -9
  337. package/dist/components/image-list/image-list-sort-context.d.ts.map +0 -1
  338. package/dist/components/image-list/image-list-sort-utils.d.ts +0 -13
  339. package/dist/components/image-list/image-list-sort-utils.d.ts.map +0 -1
  340. package/dist/components/image-list/image-list-state-context.d.ts +0 -5
  341. package/dist/components/image-list/image-list-state-context.d.ts.map +0 -1
  342. package/dist/components/image-list/image-list-types.d.ts +0 -196
  343. package/dist/components/image-list/image-list-types.d.ts.map +0 -1
  344. package/dist/components/image-list/image-list-utils.d.ts +0 -83
  345. package/dist/components/image-list/image-list-utils.d.ts.map +0 -1
  346. package/dist/components/image-list/image-list.d.ts +0 -5
  347. package/dist/components/image-list/image-list.d.ts.map +0 -1
  348. package/dist/eventmodeling-FCH6USID-BVaFiLQO.js +0 -3
  349. package/dist/eventmodeling-FCH6USID-leiC8dtX.cjs +0 -1
  350. package/dist/gitGraph-WXDBUCRP-BFFuTWG4.cjs +0 -1
  351. package/dist/gitGraph-WXDBUCRP-Fz2kRwJ-.js +0 -3
  352. package/dist/graphlib-B5AXIZA4.cjs +0 -1
  353. package/dist/info-J43DQDTF-CLRXRK49.js +0 -3
  354. package/dist/info-J43DQDTF-CmpcAuH-.cjs +0 -1
  355. package/dist/mermaid-parser.core-Dz33ts1l.js +0 -74
  356. package/dist/mermaid-parser.core-HQxPJrkY.cjs +0 -3
  357. package/dist/packet-YPE3B663-BwjweAZY.cjs +0 -1
  358. package/dist/packet-YPE3B663-D1Hr9AQm.js +0 -3
  359. package/dist/pie-LRSECV5Y-CpDfN1P0.js +0 -3
  360. package/dist/pie-LRSECV5Y-I1-OkIXi.cjs +0 -1
  361. package/dist/radar-GUYGQ44K-BXt3oO8c.cjs +0 -1
  362. package/dist/radar-GUYGQ44K-ByzrmbOz.js +0 -3
  363. package/dist/src-BgvDIw01.cjs +0 -1
  364. package/dist/stateDiagram-v2-BHNVJYJU-CTnE6fOT.cjs +0 -1
  365. package/dist/stateDiagram-v2-BHNVJYJU-DqstYMSl.js +0 -27
  366. package/dist/treeView-BLDUP644-CxLhpd93.js +0 -3
  367. package/dist/treeView-BLDUP644-DMwVx0AR.cjs +0 -1
  368. package/dist/treemap-LRROVOQU-BqmiLdFI.js +0 -3
  369. package/dist/treemap-LRROVOQU-XhaFZdvI.cjs +0 -1
  370. package/dist/wardley-L42UT6IY-C7UjBmVh.js +0 -3
  371. package/dist/wardley-L42UT6IY-DFAYOpjD.cjs +0 -1
  372. /package/dist/{array-CBdkHBGa.js → array-CApNbSU9.js} +0 -0
  373. /package/dist/{defaultLocale-dGy1YRID.js → defaultLocale-DnzPsei5.js} +0 -0
  374. /package/dist/{init-B7h4SEX5.js → init-MwSGRDIl.js} +0 -0
  375. /package/dist/{katex-HkVgAsLB.cjs → katex-CkiTumqg.cjs} +0 -0
  376. /package/dist/{katex-DWDh1q_h.js → katex-D-2KeLwt.js} +0 -0
  377. /package/dist/{path-CAXMhBzK.js → path-DGNPZRdx.js} +0 -0
  378. /package/dist/{rough.esm-TWNWL4Us.js → rough.esm-rcMoXTJj.js} +0 -0
  379. /package/dist/{v4-BpDBEhLK.js → v4-BK7K-jy_.js} +0 -0
@@ -1,4 +1,4 @@
1
- const e=require(`./src-BgvDIw01.cjs`),t=require(`./chunk-CSCIHK7Q-BPMuICCz.cjs`),n=require(`./chunk-5ZQYHXKU-BMnKD7Zq.cjs`),r=require(`./chunk-L5ZTLDWV-BE9udiOh.cjs`),i=require(`./chunk-NZK2D7GU-_twqedIe.cjs`),a=require(`./chunk-O5CBEL6O-CDvi2oZo.cjs`),o=require(`./rough.esm-BEA_SCZB.cjs`);var s=e.h(async(i,o,s)=>{let c,l=o.useHtmlLabels||t.g(t.x()?.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.u(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,t.z(n.a(f),t.x()),{useHtmlLabels:l,width:o.width||t.x().flowchart?.wrappingWidth,classes:m?`markdown-node-label`:``,style:o.labelStyle,addSvgBackground:p,markdown:m},t.x()),g=h.getBBox(),_=(o?.padding??0)/2;if(l){let t=h.children[0],n=e.p(h);await r.t(t,f),g=t.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=e.h(async(r,i,o)=>{let s=o.useHtmlLabels??t.T(t.x()),c=r.insert(`g`).attr(`class`,`label`).attr(`style`,o.labelStyle||``),l=await a.n(c,t.z(n.a(i),t.x()),{useHtmlLabels:s,width:o.width||t.x()?.flowchart?.wrappingWidth,style:o.labelStyle,addSvgBackground:!!o.icon||!!o.img}),u=l.getBBox(),d=o.padding/2;if(t.T(t.x())){let t=l.children[0],n=e.p(l);u=t.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=e.h((e,t)=>{let n=t.node().getBBox();e.width=n.width,e.height=n.height},`updateNodeBounds`),u=e.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(` `)}e.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}e.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}e.h(p,`generateCirclePoints`);function m(t){let n=Array.from(t.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=e.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}e.h(m,`mergePaths`);var h=e.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=e.h(async(e,n,r,i=!1,o=!1)=>{let s=n||``;typeof s==`object`&&(s=s[0]);let c=t.x(),l=t.T(c);return await a.n(e,s,{style:r,isTitle:i,useHtmlLabels:l,markdown:!1,isNode:o,width:1/0},c)},`createLabel`),_=e.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=e.h(async(n,s)=>{e.g.info(`Creating subgraph rect for `,s.id,s);let c=t.x(),{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=t.T(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(t.T(c)){let t=C.children[0],n=e.p(C);w=t.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;e.g.trace(`Data `,s,JSON.stringify(s));let k;if(s.look===`handDrawn`){let t=o.t.svg(b),n=i.a(s,{roughness:.7,fill:d,stroke:f,fillWeight:3,seed:u}),r=t.path(_(D,O,T,E,0),n);k=b.insert(()=>(e.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:e.h(async(n,r)=>{let i=t.x(),{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(t.T(i)){let t=y.children[0],n=e.p(y);b=t.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-(t.T(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:e.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:e.h((e,n)=>{let{themeVariables:r,handDrawnSeed:i}=t.x(),{nodeBorder:a}=r,s=e.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:e.h(async(n,s)=>{e.g.info(`Creating subgraph rect for `,s.id,s);let c=t.x(),{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=t.T(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(t.T(c)){let t=S.children[0],n=e.p(S);C=t.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;e.g.trace(`Data `,s,JSON.stringify(s));let O;if(s.look===`handDrawn`){let t=o.t.svg(y),n=i.a(s,{roughness:.7,fill:d,stroke:f,fillWeight:4,seed:u}),r=t.path(_(E,D,w,T,s.rx),n);O=y.insert(()=>(e.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=e.h(async(e,t)=>{let n=await y[t.shape||`rect`](e,t);return b.set(t.id,n),n},`insertCluster`),S=e.h(()=>{b=new Map},`clear`);function C(e,t){return e.intersect(t)}e.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}}e.h(T,`intersectEllipse`);var E=T;function D(e,t,n){return E(e,t,t,n)}e.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}}}e.h(k,`intersectLine`);function A(e,t){return e*t>0}e.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}e.h(M,`intersectPolygon`);var N={node:w,circle:O,ellipse:E,polygon:M,rect:h};function P(t,r){let{labelStyles:a}=i.i(r);r.labelStyle=a;let s=u(r),c=s;s||(c=`anchor`);let d=t.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.u(f)),l(r,g),r.intersect=function(t){return e.g.info(`Circle intersect`,r,1,t),N.circle(r,1,t)},d}e.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}e.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))}e.h(I,`calculateArcSagitta`);async function L(t,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=e.h(e=>e+p,`calcTotalHeight`),h=e.h(e=>{let t=e/2;return[t/(2.5+e/50),t]},`calcEllipseRadius`),{shapeSvg:g,bbox:_}=await s(t,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}e.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+`)`)}e.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}e.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}e.h(B,`choice`);async function V(t,r,a){let{labelStyles:c,nodeStyles:d}=i.i(r);r.labelStyle=c;let{shapeSvg:f,bbox:p,halfPadding:m}=await s(t,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.u(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(t){return e.g.info(`Circle intersect`,r,g,t),N.circle(r,g,t)},f}e.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("./src-DEmZ9bFr.cjs"),t=require("./chunk-CSCIHK7Q-BAdl6GW-.cjs"),n=require("./chunk-5ZQYHXKU-DMrStm4M.cjs"),r=require("./chunk-L5ZTLDWV-BbLRyKcx.cjs"),i=require("./chunk-NZK2D7GU-CRneGIrP.cjs"),a=require("./chunk-O5CBEL6O-Cd4Z5Dy9.cjs"),o=require("./rough.esm-r0QOSzHM.cjs");var s=e.h(async(i,o,s)=>{let c,l=o.useHtmlLabels||t.g(t.x()?.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.u(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,t.z(n.a(f),t.x()),{useHtmlLabels:l,width:o.width||t.x().flowchart?.wrappingWidth,classes:m?`markdown-node-label`:``,style:o.labelStyle,addSvgBackground:p,markdown:m},t.x()),g=h.getBBox(),_=(o?.padding??0)/2;if(l){let t=h.children[0],n=e.p(h);await r.t(t,f),g=t.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=e.h(async(r,i,o)=>{let s=o.useHtmlLabels??t.T(t.x()),c=r.insert(`g`).attr(`class`,`label`).attr(`style`,o.labelStyle||``),l=await a.n(c,t.z(n.a(i),t.x()),{useHtmlLabels:s,width:o.width||t.x()?.flowchart?.wrappingWidth,style:o.labelStyle,addSvgBackground:!!o.icon||!!o.img}),u=l.getBBox(),d=o.padding/2;if(t.T(t.x())){let t=l.children[0],n=e.p(l);u=t.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=e.h((e,t)=>{let n=t.node().getBBox();e.width=n.width,e.height=n.height},`updateNodeBounds`),u=e.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(` `)}e.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}e.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}e.h(p,`generateCirclePoints`);function m(t){let n=Array.from(t.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=e.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}e.h(m,`mergePaths`);var h=e.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=e.h(async(e,n,r,i=!1,o=!1)=>{let s=n||``;typeof s==`object`&&(s=s[0]);let c=t.x(),l=t.T(c);return await a.n(e,s,{style:r,isTitle:i,useHtmlLabels:l,markdown:!1,isNode:o,width:1/0},c)},`createLabel`),_=e.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=e.h(async(n,s)=>{e.g.info(`Creating subgraph rect for `,s.id,s);let c=t.x(),{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=t.T(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(t.T(c)){let t=C.children[0],n=e.p(C);w=t.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;e.g.trace(`Data `,s,JSON.stringify(s));let k;if(s.look===`handDrawn`){let t=o.t.svg(b),n=i.a(s,{roughness:.7,fill:d,stroke:f,fillWeight:3,seed:u}),r=t.path(_(D,O,T,E,0),n);k=b.insert(()=>(e.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:e.h(async(n,r)=>{let i=t.x(),{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(t.T(i)){let t=y.children[0],n=e.p(y);b=t.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-(t.T(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:e.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:e.h((e,n)=>{let{themeVariables:r,handDrawnSeed:i}=t.x(),{nodeBorder:a}=r,s=e.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:e.h(async(n,s)=>{e.g.info(`Creating subgraph rect for `,s.id,s);let c=t.x(),{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=t.T(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(t.T(c)){let t=S.children[0],n=e.p(S);C=t.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;e.g.trace(`Data `,s,JSON.stringify(s));let O;if(s.look===`handDrawn`){let t=o.t.svg(y),n=i.a(s,{roughness:.7,fill:d,stroke:f,fillWeight:4,seed:u}),r=t.path(_(E,D,w,T,s.rx),n);O=y.insert(()=>(e.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=e.h(async(e,t)=>{let n=await y[t.shape||`rect`](e,t);return b.set(t.id,n),n},`insertCluster`),S=e.h(()=>{b=new Map},`clear`);function C(e,t){return e.intersect(t)}e.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}}e.h(T,`intersectEllipse`);var E=T;function D(e,t,n){return E(e,t,t,n)}e.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}}}e.h(k,`intersectLine`);function A(e,t){return e*t>0}e.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}e.h(M,`intersectPolygon`);var N={node:w,circle:O,ellipse:E,polygon:M,rect:h};function P(t,r){let{labelStyles:a}=i.i(r);r.labelStyle=a;let s=u(r),c=s;s||(c=`anchor`);let d=t.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.u(f)),l(r,g),r.intersect=function(t){return e.g.info(`Circle intersect`,r,1,t),N.circle(r,1,t)},d}e.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}e.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))}e.h(I,`calculateArcSagitta`);async function L(t,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=e.h(e=>e+p,`calcTotalHeight`),h=e.h(e=>{let t=e/2;return[t/(2.5+e/50),t]},`calcEllipseRadius`),{shapeSvg:g,bbox:_}=await s(t,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}e.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+`)`)}e.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}e.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}e.h(B,`choice`);async function V(t,r,a){let{labelStyles:c,nodeStyles:d}=i.i(r);r.labelStyle=c;let{shapeSvg:f,bbox:p,halfPadding:m}=await s(t,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.u(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(t){return e.g.info(`Circle intersect`,r,g,t),N.circle(r,g,t)},f}e.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}`}e.h(H,`createLine`);function U(t,n){let{labelStyles:r,nodeStyles:a}=i.i(n);n.labelStyle=r,n.label=``;let s=t.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(t){return e.g.info(`crossedCircle intersect`,n,{radius:c,point:t}),N.circle(n,c,t)},s}e.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}e.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}e.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}e.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}e.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}e.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}e.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}e.h(re,`curvedTrapezoid`);var ie=e.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=e.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=e.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.u(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}e.h(le,`cylinder`);async function J(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.u(x))}else v=d.insert(`rect`,`:first-child`),v.attr(`class`,`basic label-container`).attr(`style`,c).attr(`rx`,n.u(y)).attr(`ry`,n.u(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}e.h(J,`drawRect`);async function ue(e,t){let{cssClasses:n,labelPaddingX:r,labelPaddingY:a,padding:s,width:c,height:l}=t,u=await J(e,t,{rx:0,ry:0,classes:n??``,labelPaddingX:r??(s??0)*2,labelPaddingY:a??s??0});if(t.look===`handDrawn`){let e=o.t.svg(u),n=i.a(t,{}),r=u.select(`.basic.label-container > path:nth-child(2)`),a=r.node();if(!a)return u;let s=null;if(a instanceof SVGGraphicsElement)s=a.getBBox();else return u;return u.insert(()=>e.line(s.x,s.y,s.x+s.width,s.y,n),`.basic.label-container g.label`),u.insert(()=>e.line(s.x,s.y+s.height,s.x+s.width,s.y+s.height,n),`.basic.label-container g.label`),r.remove(),u}let d=u.select(`.basic.label-container`),f=(Number(d.attr(`width`))||c)??0,p=(Number(d.attr(`height`))||l)??0;return f>0&&p>0&&d.attr(`stroke-dasharray`,`${f} ${p}`),u}e.h(ue,`datastore`);async function de(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}e.h(de,`dividedRectangle`);async function fe(t,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(t,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.u(r.cssClasses)).attr(`style`,n.u(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(t){return e.g.info(`DoubleCircle intersect`,r,g,t),N.circle(r,g,t)},m}e.h(fe,`doublecircle`);function pe(t,n,{config:{themeVariables:r}}){let{labelStyles:a,nodeStyles:s}=i.i(n);n.label=``,n.labelStyle=a;let c=t.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(t){return e.g.info(`filledCircle intersect`,n,{radius:7,point:t}),N.circle(n,7,t)},c}e.h(pe,`filledCircle`);var me=10,he=10;async function ge(t,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<me&&(n.height=me),n.width=(n?.width??0)-f-f/2,n.width<he&&(n.width=he));let{shapeSvg:p,bbox:m,label:h}=await s(t,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(t){return e.g.info(`Triangle intersect`,n,y,t),N.polygon(n,y,t)},p}e.h(ge,`flippedTriangle`);function _e(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}e.h(_e,`forkJoin`);async function ve(t,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(t,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(t){return e.g.info(`Pill intersect`,n,{radius:v,point:t}),N.polygon(n,S,t)},m}e.h(ve,`halfRoundedRectangle`);var ye=e.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 be(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=ye(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}e.h(be,`hexagon`);async function xe(t,n){let{labelStyles:r,nodeStyles:a}=i.i(n);n.label=``,n.labelStyle=r;let{shapeSvg:c}=await s(t,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(t){return e.g.info(`Pill intersect`,n,{points:_}),N.polygon(n,_,t)},c}e.h(xe,`hourglass`);async function Se(t,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(t,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(t){if(e.g.info(`iconSquare intersect`,n,t),!n.label)return N.rect(n,t);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,t)},h}e.h(Se,`icon`);async function Ce(t,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(t,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(t){return e.g.info(`iconSquare intersect`,n,t),N.rect(n,t)},h}e.h(Ce,`iconCircle`);async function we(t,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(t,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(t){if(e.g.info(`iconSquare intersect`,n,t),!n.label)return N.rect(n,t);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,t)},h}e.h(we,`iconRounded`);async function Te(t,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(t,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(t){if(e.g.info(`iconSquare intersect`,n,t),!n.label)return N.rect(n,t);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,t)},h}e.h(Te,`iconSquare`);async function Ee(t,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(t,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(t){if(e.g.info(`iconSquare intersect`,n,t),!n.label)return N.rect(n,t);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,t)},g}e.h(Ee,`imageSquare`);async function De(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}e.h(De,`inv_trapezoid`);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}e.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}e.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}e.h(Ae,`lean_right`);function je(t,n){let{labelStyles:r,nodeStyles:a}=i.i(n);n.label=``,n.labelStyle=r;let s=t.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(t){return e.g.info(`lightningBolt intersect`,n,t),N.polygon(n,m,t)},s}e.h(je,`lightningBolt`);var Me=e.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=e.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=e.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.u(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}e.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}e.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}e.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}e.h(Be,`multiWaveEdgedRectangle`);async function Ve(e,n,{config:{themeVariables:r}}){let{labelStyles:a,nodeStyles:c}=i.i(n);n.labelStyle=a,n.useHtmlLabels||t.T(t.b())||(n.centerLabel=!0);let{shapeSvg:d,bbox:f,label:p}=await s(e,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}e.h(Ve,`note`);var He=e.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}e.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}e.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(t.T(t.x())){let t=h.children[0],n=e.p(h);v=t.getBoundingClientRect(),n.attr(`width`,v.width),n.attr(`height`,v.height)}e.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=e.p(x);v=S.getBoundingClientRect(),C.attr(`width`,v.width),C.attr(`height`,v.height);let w=(r.padding||0)/2;e.p(x).attr(`transform`,`translate( `+(v.width>b.width?0:(b.width-v.width)/2)+`, `+(b.height+w+5)+`)`),e.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 t=o.t.svg(u),n=i.a(r,{}),a=t.path(_(D,O,T,E,r.rx||0),n),s=t.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(()=>(e.g.debug(`Rough node insert CXC`,a),s),`:first-child`),k=u.insert(()=>(e.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}e.h(Ge,`rectWithTitle`);async function Ke(e,t,{config:{themeVariables:n}}){let r=n?.radius??5;return J(e,t,{rx:r,ry:r,classes:``,labelPaddingX:(t?.padding??0)*1,labelPaddingY:(t?.padding??0)*1})}e.h(Ke,`roundedRect`);var Y=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`?Y:Y*2),g=(t?.height??p.height)+d*2,_=h-Y,v=g,y=Y-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-Y,y:b+v},{x:y-Y,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.u(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(${Y/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}e.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}e.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 J(e,t,{rx:0,ry:0,classes:``,labelPaddingX:t.labelPaddingX??r,labelPaddingY:i})}e.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}e.h(Xe,`stadium`);async function Ze(e,t){return J(e,t,{rx:t.look===`neo`?3:5,ry:t.look===`neo`?3:5,classes:`flowchart-node`})}e.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}e.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}e.h($e,`stateStart`);var X=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*X+d,g=(t?.height??m.height)+f,_=h-2*X,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+X,b,y+X,b+v,r),c=e.line(y+X+_,b,y+X+_,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.u(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}e.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}e.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}e.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}e.h(it,`text`);var at=e.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
@@ -59,4 +59,4 @@ const e=require(`./src-BgvDIw01.cjs`),t=require(`./chunk-CSCIHK7Q-BPMuICCz.cjs`)
59
59
  h${-(f-10)}
60
60
  q-5,0 -5,-5
61
61
  Z
62
- `;if(!t.domId)throw Error(`defaultMindmapNode: node "${t.id}" is missing a domId \u2014 was render.ts domId prefixing skipped?`);let h=a.append(`path`).attr(`id`,t.domId).attr(`class`,`node-bkg node-`+t.type).attr(`style`,r).attr(`d`,m);return a.append(`line`).attr(`class`,`node-line-`).attr(`x1`,-f/2).attr(`y1`,p/2).attr(`x2`,f/2).attr(`y2`,p/2),d.attr(`transform`,`translate(${-o.width/2}, ${-o.height/2})`),a.append(()=>d.node()),l(t,h),t.calcIntersect=function(e,t){return N.rect(e,t)},t.intersect=function(e){return N.rect(t,e)},a}e.h(jt,`defaultMindmapNode`);async function Mt(e,t){return V(e,t,{padding:t.padding??0})}e.h(Mt,`mindmapCircle`);var Nt=[{semanticName:`Process`,name:`Rectangle`,shortName:`rect`,description:`Standard process shape`,aliases:[`proc`,`process`,`rectangle`],internalAliases:[`squareRect`],handler:Ye},{semanticName:`Event`,name:`Rounded Rectangle`,shortName:`rounded`,description:`Represents an event`,aliases:[`event`],internalAliases:[`roundedRect`],handler:Ke},{semanticName:`Terminal Point`,name:`Stadium`,shortName:`stadium`,description:`Terminal point`,aliases:[`terminal`,`pill`],handler:Xe},{semanticName:`Subprocess`,name:`Framed Rectangle`,shortName:`fr-rect`,description:`Subprocess`,aliases:[`subprocess`,`subproc`,`framed-rectangle`,`subroutine`],handler:et},{semanticName:`Database`,name:`Cylinder`,shortName:`cyl`,description:`Database storage`,aliases:[`db`,`database`,`cylinder`],handler:le},{semanticName:`Data Store`,name:`Data Store`,shortName:`datastore`,description:`Data flow diagram data store`,aliases:[`data-store`],handler:ue},{semanticName:`Start`,name:`Circle`,shortName:`circle`,description:`Starting point`,aliases:[`circ`],handler:V},{semanticName:`Bang`,name:`Bang`,shortName:`bang`,description:`Bang`,aliases:[`bang`],handler:kt},{semanticName:`Cloud`,name:`Cloud`,shortName:`cloud`,description:`cloud`,aliases:[`cloud`],handler:At},{semanticName:`Decision`,name:`Diamond`,shortName:`diam`,description:`Decision-making step`,aliases:[`decision`,`diamond`,`question`],handler:Ue},{semanticName:`Prepare Conditional`,name:`Hexagon`,shortName:`hex`,description:`Preparation or condition step`,aliases:[`hexagon`,`prepare`],handler:be},{semanticName:`Data Input/Output`,name:`Lean Right`,shortName:`lean-r`,description:`Represents input or output`,aliases:[`lean-right`,`in-out`],internalAliases:[`lean_right`],handler:Ae},{semanticName:`Data Input/Output`,name:`Lean Left`,shortName:`lean-l`,description:`Represents output or input`,aliases:[`lean-left`,`out-in`],internalAliases:[`lean_left`],handler:ke},{semanticName:`Priority Action`,name:`Trapezoid Base Bottom`,shortName:`trap-b`,description:`Priority action`,aliases:[`priority`,`trapezoid-bottom`,`trapezoid`],handler:dt},{semanticName:`Manual Operation`,name:`Trapezoid Base Top`,shortName:`trap-t`,description:`Represents a manual task`,aliases:[`manual`,`trapezoid-top`,`inv-trapezoid`],internalAliases:[`inv_trapezoid`],handler:De},{semanticName:`Stop`,name:`Double Circle`,shortName:`dbl-circ`,description:`Represents a stop point`,aliases:[`double-circle`],internalAliases:[`doublecircle`],handler:fe},{semanticName:`Text Block`,name:`Text Block`,shortName:`text`,description:`Text block`,handler:it},{semanticName:`Card`,name:`Notched Rectangle`,shortName:`notch-rect`,description:`Represents a card`,aliases:[`card`,`notched-rectangle`],handler:ee},{semanticName:`Lined/Shaded Process`,name:`Lined Rectangle`,shortName:`lin-rect`,description:`Lined process shape`,aliases:[`lined-rectangle`,`lined-process`,`lin-proc`,`shaded-process`],handler:qe},{semanticName:`Start`,name:`Small Circle`,shortName:`sm-circ`,description:`Small starting point`,aliases:[`start`,`small-circle`],internalAliases:[`stateStart`],handler:$e},{semanticName:`Stop`,name:`Framed Circle`,shortName:`fr-circ`,description:`Stop point`,aliases:[`stop`,`framed-circle`],internalAliases:[`stateEnd`],handler:Qe},{semanticName:`Fork/Join`,name:`Filled Rectangle`,shortName:`fork`,description:`Fork or join in process flow`,aliases:[`join`],internalAliases:[`forkJoin`],handler:_e},{semanticName:`Collate`,name:`Hourglass`,shortName:`hourglass`,description:`Represents a collate operation`,aliases:[`hourglass`,`collate`],handler:xe},{semanticName:`Comment`,name:`Curly Brace`,shortName:`brace`,description:`Adds a comment`,aliases:[`comment`,`brace-l`],handler:te},{semanticName:`Comment Right`,name:`Curly Brace`,shortName:`brace-r`,description:`Adds a comment`,handler:K},{semanticName:`Comment with braces on both sides`,name:`Curly Braces`,shortName:`braces`,description:`Adds a comment`,handler:ne},{semanticName:`Com Link`,name:`Lightning Bolt`,shortName:`bolt`,description:`Communication link`,aliases:[`com-link`,`lightning-bolt`],handler:je},{semanticName:`Document`,name:`Document`,shortName:`doc`,description:`Represents a document`,aliases:[`doc`,`document`],handler:gt},{semanticName:`Delay`,name:`Half-Rounded Rectangle`,shortName:`delay`,description:`Represents a delay`,aliases:[`half-rounded-rectangle`],handler:ve},{semanticName:`Direct Access Storage`,name:`Horizontal Cylinder`,shortName:`h-cyl`,description:`Direct access storage`,aliases:[`das`,`horizontal-cylinder`],handler:ut},{semanticName:`Disk Storage`,name:`Lined Cylinder`,shortName:`lin-cyl`,description:`Disk storage`,aliases:[`disk`,`lined-cylinder`],handler:Le},{semanticName:`Display`,name:`Curved Trapezoid`,shortName:`curv-trap`,description:`Represents a display`,aliases:[`curved-trapezoid`,`display`],handler:re},{semanticName:`Divided Process`,name:`Divided Rectangle`,shortName:`div-rect`,description:`Divided process shape`,aliases:[`div-proc`,`divided-rectangle`,`divided-process`],handler:de},{semanticName:`Extract`,name:`Triangle`,shortName:`tri`,description:`Extraction process`,aliases:[`extract`,`triangle`],handler:ht},{semanticName:`Internal Storage`,name:`Window Pane`,shortName:`win-pane`,description:`Internal storage`,aliases:[`internal-storage`,`window-pane`],handler:vt},{semanticName:`Junction`,name:`Filled Circle`,shortName:`f-circ`,description:`Junction point`,aliases:[`junction`,`filled-circle`],handler:pe},{semanticName:`Loop Limit`,name:`Trapezoidal Pentagon`,shortName:`notch-pent`,description:`Loop limit step`,aliases:[`loop-limit`,`notched-pentagon`],handler:ft},{semanticName:`Manual File`,name:`Flipped Triangle`,shortName:`flip-tri`,description:`Manual file operation`,aliases:[`manual-file`,`flipped-triangle`],handler:ge},{semanticName:`Manual Input`,name:`Sloped Rectangle`,shortName:`sl-rect`,description:`Manual input step`,aliases:[`manual-input`,`sloped-rectangle`],handler:Je},{semanticName:`Multi-Document`,name:`Stacked Document`,shortName:`docs`,description:`Multiple documents`,aliases:[`documents`,`st-doc`,`stacked-document`],handler:Be},{semanticName:`Multi-Process`,name:`Stacked Rectangle`,shortName:`st-rect`,description:`Multiple processes`,aliases:[`procs`,`processes`,`stacked-rectangle`],handler:ze},{semanticName:`Stored Data`,name:`Bow Tie Rectangle`,shortName:`bow-rect`,description:`Stored data`,aliases:[`stored-data`,`bow-tie-rectangle`],handler:L},{semanticName:`Summary`,name:`Crossed Circle`,shortName:`cross-circ`,description:`Summary`,aliases:[`summary`,`crossed-circle`],handler:U},{semanticName:`Tagged Document`,name:`Tagged Document`,shortName:`tag-doc`,description:`Tagged document`,aliases:[`tag-doc`,`tagged-document`],handler:rt},{semanticName:`Tagged Process`,name:`Tagged Rectangle`,shortName:`tag-rect`,description:`Tagged process`,aliases:[`tagged-rectangle`,`tag-proc`,`tagged-process`],handler:nt},{semanticName:`Paper Tape`,name:`Flag`,shortName:`flag`,description:`Paper tape`,aliases:[`paper-tape`],handler:_t},{semanticName:`Odd`,name:`Odd`,shortName:`odd`,description:`Odd shape`,internalAliases:[`rect_left_inv_arrow`],handler:We},{semanticName:`Lined Document`,name:`Lined Document`,shortName:`lin-doc`,description:`Lined document`,aliases:[`lined-document`],handler:Re}],Pt=e.h(()=>{let e=[...Object.entries({state:Ze,choice:B,note:Ve,rectWithTitle:Ge,labelRect:Oe,iconSquare:Te,iconCircle:Ce,icon:Se,iconRounded:we,imageSquare:Ee,anchor:P,kanbanItem:Ot,mindmapCircle:Mt,defaultMindmapNode:jt,classBox:Tt,erBox:xt,requirementBox:Et}),...Nt.flatMap(e=>[e.shortName,...`aliases`in e?e.aliases:[],...`internalAliases`in e?e.internalAliases:[]].map(t=>[t,e.handler]))];return Object.fromEntries(e)},`generateShapeMap`)();function Ft(e){return e in Pt}e.h(Ft,`isValidShape`);var It=new Map;async function Lt(e,t,r){let i,a;t.shape===`rect`&&(t.rx&&t.ry?t.shape=`roundedRect`:t.shape=`squareRect`);let o=t.shape?Pt[t.shape]:void 0;if(!o)throw Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let n;r.config.securityLevel===`sandbox`?n=`_top`:t.linkTarget&&(n=t.linkTarget||`_blank`),i=e.insert(`svg:a`).attr(`xlink:href`,t.link).attr(`target`,n??null),a=await o(i,t,r)}else a=await o(e,t,r),i=a;return i.attr(`data-look`,n.u(t.look)),t.tooltip&&a.attr(`title`,t.tooltip),It.set(t.id,i),t.haveCallback&&i.attr(`class`,i.attr(`class`)+` clickable`),i}e.h(Lt,`insertNode`);var Rt=e.h((e,t)=>{It.set(t.id,e)},`setNodeElem`),zt=e.h(()=>{It.clear()},`clear`),Bt=e.h(t=>{let n=It.get(t.id);e.g.trace(`Transforming node`,t.diff,t,`translate(`+(t.x-t.width/2-5)+`, `+t.width/2+`)`);let r=t.diff||0;return t.clusterNode?n.attr(`transform`,`translate(`+(t.x+r-t.width/2)+`, `+(t.y-t.height/2-8)+`)`):n.attr(`transform`,`translate(`+t.x+`, `+t.y+`)`),r},`positionNode`);Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return Lt}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return Bt}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return Rt}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return zt}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return Ft}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return l}});
62
+ `;if(!t.domId)throw Error(`defaultMindmapNode: node "${t.id}" is missing a domId \u2014 was render.ts domId prefixing skipped?`);let h=a.append(`path`).attr(`id`,t.domId).attr(`class`,`node-bkg node-`+t.type).attr(`style`,r).attr(`d`,m);return a.append(`line`).attr(`class`,`node-line-`).attr(`x1`,-f/2).attr(`y1`,p/2).attr(`x2`,f/2).attr(`y2`,p/2),d.attr(`transform`,`translate(${-o.width/2}, ${-o.height/2})`),a.append(()=>d.node()),l(t,h),t.calcIntersect=function(e,t){return N.rect(e,t)},t.intersect=function(e){return N.rect(t,e)},a}e.h(jt,`defaultMindmapNode`);async function Mt(e,t){return V(e,t,{padding:t.padding??0})}e.h(Mt,`mindmapCircle`);var Nt=[{semanticName:`Process`,name:`Rectangle`,shortName:`rect`,description:`Standard process shape`,aliases:[`proc`,`process`,`rectangle`],internalAliases:[`squareRect`],handler:Ye},{semanticName:`Event`,name:`Rounded Rectangle`,shortName:`rounded`,description:`Represents an event`,aliases:[`event`],internalAliases:[`roundedRect`],handler:Ke},{semanticName:`Terminal Point`,name:`Stadium`,shortName:`stadium`,description:`Terminal point`,aliases:[`terminal`,`pill`],handler:Xe},{semanticName:`Subprocess`,name:`Framed Rectangle`,shortName:`fr-rect`,description:`Subprocess`,aliases:[`subprocess`,`subproc`,`framed-rectangle`,`subroutine`],handler:et},{semanticName:`Database`,name:`Cylinder`,shortName:`cyl`,description:`Database storage`,aliases:[`db`,`database`,`cylinder`],handler:le},{semanticName:`Data Store`,name:`Data Store`,shortName:`datastore`,description:`Data flow diagram data store`,aliases:[`data-store`],handler:ue},{semanticName:`Start`,name:`Circle`,shortName:`circle`,description:`Starting point`,aliases:[`circ`],handler:V},{semanticName:`Bang`,name:`Bang`,shortName:`bang`,description:`Bang`,aliases:[`bang`],handler:kt},{semanticName:`Cloud`,name:`Cloud`,shortName:`cloud`,description:`cloud`,aliases:[`cloud`],handler:At},{semanticName:`Decision`,name:`Diamond`,shortName:`diam`,description:`Decision-making step`,aliases:[`decision`,`diamond`,`question`],handler:Ue},{semanticName:`Prepare Conditional`,name:`Hexagon`,shortName:`hex`,description:`Preparation or condition step`,aliases:[`hexagon`,`prepare`],handler:be},{semanticName:`Data Input/Output`,name:`Lean Right`,shortName:`lean-r`,description:`Represents input or output`,aliases:[`lean-right`,`in-out`],internalAliases:[`lean_right`],handler:Ae},{semanticName:`Data Input/Output`,name:`Lean Left`,shortName:`lean-l`,description:`Represents output or input`,aliases:[`lean-left`,`out-in`],internalAliases:[`lean_left`],handler:ke},{semanticName:`Priority Action`,name:`Trapezoid Base Bottom`,shortName:`trap-b`,description:`Priority action`,aliases:[`priority`,`trapezoid-bottom`,`trapezoid`],handler:dt},{semanticName:`Manual Operation`,name:`Trapezoid Base Top`,shortName:`trap-t`,description:`Represents a manual task`,aliases:[`manual`,`trapezoid-top`,`inv-trapezoid`],internalAliases:[`inv_trapezoid`],handler:De},{semanticName:`Stop`,name:`Double Circle`,shortName:`dbl-circ`,description:`Represents a stop point`,aliases:[`double-circle`],internalAliases:[`doublecircle`],handler:fe},{semanticName:`Text Block`,name:`Text Block`,shortName:`text`,description:`Text block`,handler:it},{semanticName:`Card`,name:`Notched Rectangle`,shortName:`notch-rect`,description:`Represents a card`,aliases:[`card`,`notched-rectangle`],handler:ee},{semanticName:`Lined/Shaded Process`,name:`Lined Rectangle`,shortName:`lin-rect`,description:`Lined process shape`,aliases:[`lined-rectangle`,`lined-process`,`lin-proc`,`shaded-process`],handler:qe},{semanticName:`Start`,name:`Small Circle`,shortName:`sm-circ`,description:`Small starting point`,aliases:[`start`,`small-circle`],internalAliases:[`stateStart`],handler:$e},{semanticName:`Stop`,name:`Framed Circle`,shortName:`fr-circ`,description:`Stop point`,aliases:[`stop`,`framed-circle`],internalAliases:[`stateEnd`],handler:Qe},{semanticName:`Fork/Join`,name:`Filled Rectangle`,shortName:`fork`,description:`Fork or join in process flow`,aliases:[`join`],internalAliases:[`forkJoin`],handler:_e},{semanticName:`Collate`,name:`Hourglass`,shortName:`hourglass`,description:`Represents a collate operation`,aliases:[`hourglass`,`collate`],handler:xe},{semanticName:`Comment`,name:`Curly Brace`,shortName:`brace`,description:`Adds a comment`,aliases:[`comment`,`brace-l`],handler:te},{semanticName:`Comment Right`,name:`Curly Brace`,shortName:`brace-r`,description:`Adds a comment`,handler:K},{semanticName:`Comment with braces on both sides`,name:`Curly Braces`,shortName:`braces`,description:`Adds a comment`,handler:ne},{semanticName:`Com Link`,name:`Lightning Bolt`,shortName:`bolt`,description:`Communication link`,aliases:[`com-link`,`lightning-bolt`],handler:je},{semanticName:`Document`,name:`Document`,shortName:`doc`,description:`Represents a document`,aliases:[`doc`,`document`],handler:gt},{semanticName:`Delay`,name:`Half-Rounded Rectangle`,shortName:`delay`,description:`Represents a delay`,aliases:[`half-rounded-rectangle`],handler:ve},{semanticName:`Direct Access Storage`,name:`Horizontal Cylinder`,shortName:`h-cyl`,description:`Direct access storage`,aliases:[`das`,`horizontal-cylinder`],handler:ut},{semanticName:`Disk Storage`,name:`Lined Cylinder`,shortName:`lin-cyl`,description:`Disk storage`,aliases:[`disk`,`lined-cylinder`],handler:Le},{semanticName:`Display`,name:`Curved Trapezoid`,shortName:`curv-trap`,description:`Represents a display`,aliases:[`curved-trapezoid`,`display`],handler:re},{semanticName:`Divided Process`,name:`Divided Rectangle`,shortName:`div-rect`,description:`Divided process shape`,aliases:[`div-proc`,`divided-rectangle`,`divided-process`],handler:de},{semanticName:`Extract`,name:`Triangle`,shortName:`tri`,description:`Extraction process`,aliases:[`extract`,`triangle`],handler:ht},{semanticName:`Internal Storage`,name:`Window Pane`,shortName:`win-pane`,description:`Internal storage`,aliases:[`internal-storage`,`window-pane`],handler:vt},{semanticName:`Junction`,name:`Filled Circle`,shortName:`f-circ`,description:`Junction point`,aliases:[`junction`,`filled-circle`],handler:pe},{semanticName:`Loop Limit`,name:`Trapezoidal Pentagon`,shortName:`notch-pent`,description:`Loop limit step`,aliases:[`loop-limit`,`notched-pentagon`],handler:ft},{semanticName:`Manual File`,name:`Flipped Triangle`,shortName:`flip-tri`,description:`Manual file operation`,aliases:[`manual-file`,`flipped-triangle`],handler:ge},{semanticName:`Manual Input`,name:`Sloped Rectangle`,shortName:`sl-rect`,description:`Manual input step`,aliases:[`manual-input`,`sloped-rectangle`],handler:Je},{semanticName:`Multi-Document`,name:`Stacked Document`,shortName:`docs`,description:`Multiple documents`,aliases:[`documents`,`st-doc`,`stacked-document`],handler:Be},{semanticName:`Multi-Process`,name:`Stacked Rectangle`,shortName:`st-rect`,description:`Multiple processes`,aliases:[`procs`,`processes`,`stacked-rectangle`],handler:ze},{semanticName:`Stored Data`,name:`Bow Tie Rectangle`,shortName:`bow-rect`,description:`Stored data`,aliases:[`stored-data`,`bow-tie-rectangle`],handler:L},{semanticName:`Summary`,name:`Crossed Circle`,shortName:`cross-circ`,description:`Summary`,aliases:[`summary`,`crossed-circle`],handler:U},{semanticName:`Tagged Document`,name:`Tagged Document`,shortName:`tag-doc`,description:`Tagged document`,aliases:[`tag-doc`,`tagged-document`],handler:rt},{semanticName:`Tagged Process`,name:`Tagged Rectangle`,shortName:`tag-rect`,description:`Tagged process`,aliases:[`tagged-rectangle`,`tag-proc`,`tagged-process`],handler:nt},{semanticName:`Paper Tape`,name:`Flag`,shortName:`flag`,description:`Paper tape`,aliases:[`paper-tape`],handler:_t},{semanticName:`Odd`,name:`Odd`,shortName:`odd`,description:`Odd shape`,internalAliases:[`rect_left_inv_arrow`],handler:We},{semanticName:`Lined Document`,name:`Lined Document`,shortName:`lin-doc`,description:`Lined document`,aliases:[`lined-document`],handler:Re}],Pt=e.h(()=>{let e=[...Object.entries({state:Ze,choice:B,note:Ve,rectWithTitle:Ge,labelRect:Oe,iconSquare:Te,iconCircle:Ce,icon:Se,iconRounded:we,imageSquare:Ee,anchor:P,kanbanItem:Ot,mindmapCircle:Mt,defaultMindmapNode:jt,classBox:Tt,erBox:xt,requirementBox:Et}),...Nt.flatMap(e=>[e.shortName,...`aliases`in e?e.aliases:[],...`internalAliases`in e?e.internalAliases:[]].map(t=>[t,e.handler]))];return Object.fromEntries(e)},`generateShapeMap`)();function Ft(e){return e in Pt}e.h(Ft,`isValidShape`);var It=new Map;async function Lt(e,t,r){let i,a;t.shape===`rect`&&(t.rx&&t.ry?t.shape=`roundedRect`:t.shape=`squareRect`);let o=t.shape?Pt[t.shape]:void 0;if(!o)throw Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let n;r.config.securityLevel===`sandbox`?n=`_top`:t.linkTarget&&(n=t.linkTarget||`_blank`),i=e.insert(`svg:a`).attr(`xlink:href`,t.link).attr(`target`,n??null),a=await o(i,t,r)}else a=await o(e,t,r),i=a;return i.attr(`data-look`,n.u(t.look)),t.tooltip&&a.attr(`title`,t.tooltip),It.set(t.id,i),t.haveCallback&&i.attr(`class`,i.attr(`class`)+` clickable`),i}e.h(Lt,`insertNode`);var Rt=e.h((e,t)=>{It.set(t.id,e)},`setNodeElem`),zt=e.h(()=>{It.clear()},`clear`),Bt=e.h(t=>{let n=It.get(t.id);e.g.trace(`Transforming node`,t.diff,t,`translate(`+(t.x-t.width/2-5)+`, `+t.width/2+`)`);let r=t.diff||0;return t.clusterNode?n.attr(`transform`,`translate(`+(t.x+r-t.width/2)+`, `+(t.y-t.height/2-8)+`)`):n.attr(`transform`,`translate(`+t.x+`, `+t.y+`)`),r},`positionNode`);Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return Lt}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return Bt}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return Rt}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return zt}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return Ft}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return l}});
@@ -1,10 +1,10 @@
1
- import { g as e, h as t, p as n } from "./src-v9RrE_4h.js";
2
- import { A as r, B as i, M as a, T as o, b as s, g as c, x as l, z as u } from "./chunk-CSCIHK7Q-9WKhcDqw.js";
3
- import { a as d, r as f, u as p } from "./chunk-5ZQYHXKU-C4uam08j.js";
4
- import { n as m, t as h } from "./chunk-L5ZTLDWV-D3UwMopa.js";
5
- import { a as g, i as _, r as v, t as y } from "./chunk-NZK2D7GU-BVOINLmx.js";
6
- import { n as b, r as x } from "./chunk-O5CBEL6O-VsMF4aZB.js";
7
- import { t as S } from "./rough.esm-TWNWL4Us.js";
1
+ import { g as e, h as t, p as n } from "./src-DjDATEq3.js";
2
+ import { A as r, B as i, M as a, T as o, b as s, g as c, x as l, z as u } from "./chunk-CSCIHK7Q-BEk3YcEH.js";
3
+ import { a as d, r as f, u as p } from "./chunk-5ZQYHXKU-B_nOC8-n.js";
4
+ import { n as m, t as h } from "./chunk-L5ZTLDWV-BQCNoMVG.js";
5
+ import { a as g, i as _, r as v, t as y } from "./chunk-NZK2D7GU-CPxdSJTy.js";
6
+ import { n as b, r as x } from "./chunk-O5CBEL6O-DbWeP4Au.js";
7
+ import { t as S } from "./rough.esm-rcMoXTJj.js";
8
8
  //#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-3OPIFGDE.mjs
9
9
  var C = /* @__PURE__ */ t(async (e, t, r) => {
10
10
  let i, a = t.useHtmlLabels || c(l()?.htmlLabels);
@@ -0,0 +1 @@
1
+ const e=require("./src-DEmZ9bFr.cjs");function t(e,t){e.accDescr&&t.setAccDescription?.(e.accDescr),e.accTitle&&t.setAccTitle?.(e.accTitle),e.title&&t.setDiagramTitle?.(e.title)}e.h(t,`populateCommonDb`),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return t}});
@@ -1,4 +1,4 @@
1
- import { h as e } from "./src-v9RrE_4h.js";
1
+ import { h as e } from "./src-DjDATEq3.js";
2
2
  //#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-4BX2VUAB.mjs
3
3
  function t(e, t) {
4
4
  e.accDescr && t.setAccDescription?.(e.accDescr), e.accTitle && t.setAccTitle?.(e.accTitle), e.title && t.setDiagramTitle?.(e.title);
@@ -0,0 +1 @@
1
+ const e=require("./src-DEmZ9bFr.cjs");var t=e.h((t,n)=>{let r;return n===`sandbox`&&(r=e.p(`#i`+t)),(n===`sandbox`?e.p(r.nodes()[0].contentDocument.body):e.p(`body`)).select(`[id="${t}"]`)},`getDiagramElement`);Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return t}});
@@ -1,4 +1,4 @@
1
- import { h as e, p as t } from "./src-v9RrE_4h.js";
1
+ import { h as e, p as t } from "./src-DjDATEq3.js";
2
2
  //#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-55IACEB6.mjs
3
3
  var n = /* @__PURE__ */ e((e, n) => {
4
4
  let r;
@@ -1,6 +1,6 @@
1
- import { g as e, h as t, p as n } from "./src-v9RrE_4h.js";
2
- import { R as r, h as i, p as a, r as o, s } from "./chunk-CSCIHK7Q-9WKhcDqw.js";
3
- import { t as c } from "./dist-9MKIBfY4.js";
1
+ import { g as e, h as t, p as n } from "./src-DjDATEq3.js";
2
+ import { R as r, h as i, p as a, r as o, s } from "./chunk-CSCIHK7Q-BEk3YcEH.js";
3
+ import { t as c } from "./dist-Btd8EZyy.js";
4
4
  //#region node_modules/d3-shape/src/curve/linear.js
5
5
  function l(e) {
6
6
  this._context = e;
@@ -1,2 +1,2 @@
1
- const e=require(`./src-BgvDIw01.cjs`),t=require(`./chunk-CSCIHK7Q-BPMuICCz.cjs`),n=require(`./dist-DC1YYeHc.cjs`);function r(e){this._context=e}r.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 i(e){return new r(e)}var a=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 o(e){return new a(e,!0)}function s(e){return new a(e,!1)}function c(){}function l(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 u(e){this._context=e}u.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:l(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:l(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function d(e){return new u(e)}function f(e){this._context=e}f.prototype={areaStart:c,areaEnd:c,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:l(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ee(e){return new f(e)}function te(e){this._context=e}te.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:l(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ne(e){return new te(e)}function p(e,t){this._basis=new u(e),this._beta=t}p.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 re=(function e(t){function n(e){return t===1?new u(e):new p(e,t)}return n.beta=function(t){return e(+t)},n})(.85);function m(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 h(e,t){this._context=e,this._k=(1-t)/6}h.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:m(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:m(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 h(e,t)}return n.tension=function(t){return e(+t)},n})(0);function g(e,t){this._context=e,this._k=(1-t)/6}g.prototype={areaStart:c,areaEnd:c,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:m(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 g(e,t)}return n.tension=function(t){return e(+t)},n})(0);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(){(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:m(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 oe=(function e(t){function n(e){return new _(e,t)}return n.tension=function(t){return e(+t)},n})(0);function v(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 y(e,t){this._context=e,this._alpha=t}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._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:v(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 y(e,t):new h(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function ce(e,t){this._context=e,this._alpha=t}ce.prototype={areaStart:c,areaEnd:c,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:v(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 ce(e,t):new g(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function ue(e,t){this._context=e,this._alpha=t}ue.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:v(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 de=(function e(t){function n(e){return t?new ue(e,t):new _(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function fe(e){this._context=e}fe.prototype={areaStart:c,areaEnd:c,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 pe(e){return new fe(e)}function me(e){return e<0?-1:1}function he(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(me(a)+me(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function ge(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function b(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 x(e){this._context=e}x.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:b(this,this._t0,ge(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,b(this,ge(this,n=he(this,e,t)),n);break;default:b(this,this._t0,n=he(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function _e(e){this._context=new ve(e)}(_e.prototype=Object.create(x.prototype)).point=function(e,t){x.prototype.point.call(this,t,e)};function ve(e){this._context=e}ve.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 ye(e){return new x(e)}function be(e){return new _e(e)}function xe(e){this._context=e}xe.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=Se(e),i=Se(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 Se(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 Ce(e){return new xe(e)}function S(e,t){this._context=e,this._t=t}S.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 we(e){return new S(e,.5)}function Te(e){return new S(e,0)}function C(e){return new S(e,1)}function Ee(e){return Number.isSafeInteger(e)&&e>=0}function w(e){return e!=null&&typeof e!=`function`&&Ee(e.length)}function De(e){return e===`__proto__`}function T(e){return e==null||typeof e!=`object`&&typeof e!=`function`}function E(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function D(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var O=`[object RegExp]`,k=`[object String]`,A=`[object Number]`,j=`[object Boolean]`,M=`[object Arguments]`,Oe=`[object Symbol]`,ke=`[object Date]`,Ae=`[object Map]`,je=`[object Set]`,Me=`[object Array]`,Ne=`[object ArrayBuffer]`,Pe=`[object Object]`,Fe=`[object DataView]`,Ie=`[object Uint8Array]`,Le=`[object Uint8ClampedArray]`,Re=`[object Uint16Array]`,ze=`[object Uint32Array]`,Be=`[object Int8Array]`,Ve=`[object Int16Array]`,He=`[object Int32Array]`,Ue=`[object Float32Array]`,We=`[object Float64Array]`,Ge=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof global==`object`&&global||(function(){return this})()||Function(`return this`)();function N(e){return Ge.Buffer!==void 0&&Ge.Buffer.isBuffer(e)}function P(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Ke(e,t){return F(e,void 0,e,new Map,t)}function F(e,t,n,r=new Map,i=void 0){let a=i?.(e,t,n,r);if(a!==void 0)return a;if(T(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=F(e[a],a,n,r,i);return Object.hasOwn(e,`index`)&&(t.index=e.index),Object.hasOwn(e,`input`)&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;r.set(e,t);for(let[a,o]of e)t.set(a,F(o,a,n,r,i));return t}if(e instanceof Set){let t=new Set;r.set(e,t);for(let a of e)t.add(F(a,void 0,n,r,i));return t}if(N(e))return e.subarray();if(P(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=F(e[a],a,n,r,i);return t}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),I(t,e,n,r,i),t}if(typeof File<`u`&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),I(t,e,n,r,i),t}if(typeof Blob<`u`&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),I(t,e,n,r,i),t}if(e instanceof Error){let t=structuredClone(e);return r.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,I(t,e,n,r,i),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return r.set(e,t),I(t,e,n,r,i),t}if(e instanceof Number){let t=new Number(e.valueOf());return r.set(e,t),I(t,e,n,r,i),t}if(e instanceof String){let t=new String(e.valueOf());return r.set(e,t),I(t,e,n,r,i),t}if(typeof e==`object`&&qe(e)){let t=Object.create(Object.getPrototypeOf(e));return r.set(e,t),I(t,e,n,r,i),t}return e}function I(e,t,n=e,r,i){let a=[...Object.keys(t),...E(t)];for(let o=0;o<a.length;o++){let s=a[o],c=Object.getOwnPropertyDescriptor(e,s);(c==null||c.writable)&&(e[s]=F(t[s],s,n,r,i))}}function qe(e){switch(D(e)){case M:case Me:case Ne:case Fe:case j:case ke:case Ue:case We:case Be:case Ve:case He:case Ae:case A:case Pe:case O:case je:case k:case Oe:case Ie:case Le:case Re:case ze:return!0;default:return!1}}function Je(e,t){return Ke(e,(n,r,i,a)=>{let o=t?.(n,r,i,a);if(o!==void 0)return o;if(typeof e==`object`){if(D(e)===`[object Object]`&&typeof e.constructor!=`function`){let t={};return a.set(e,t),I(t,e,i,a),t}switch(Object.prototype.toString.call(e)){case A:case k:case j:{let t=new e.constructor(e?.valueOf());return I(t,e),t}case M:{let t={};return I(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}function Ye(e){return Je(e)}function L(e){return typeof e==`object`&&!!e&&D(e)===`[object Arguments]`}function R(e){return typeof e==`object`&&!!e}function Xe(e){return R(e)&&w(e)}function z(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(`Expected a function`);let n=function(...r){let i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);let o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(z.Cache||Map),n}z.Cache=Map;function Ze(){}function B(e){return P(e)}function V(e){if(typeof e!=`object`||!e)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!==`[object Object]`){let t=e[Symbol.toStringTag];return t==null||!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable?!1:e.toString()===`[object ${t}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Qe(e){if(T(e))return e;if(Array.isArray(e)||P(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e);if(t==null)return Object.assign(Object.create(t),e);let n=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new n(e);if(e instanceof RegExp){let t=new n(e);return t.lastIndex=e.lastIndex,t}if(e instanceof DataView)return new n(e.buffer.slice(0));if(e instanceof Error){let t;return t=e instanceof AggregateError?new n(e.errors,e.message,{cause:e.cause}):new n(e.message,{cause:e.cause}),t.stack=e.stack,Object.assign(t,e),t}return typeof File<`u`&&e instanceof File?new n([e],e.name,{type:e.type,lastModified:e.lastModified}):typeof e==`object`?Object.assign(Object.create(t),e):e}function $e(e,...t){let n=t.slice(0,-1),r=t[t.length-1],i=e;for(let e=0;e<n.length;e++){let t=n[e];i=H(i,t,r,new Map)}return i}function H(e,t,n,r){if(T(e)&&(e=Object(e)),typeof t!=`object`||!t)return e;if(r.has(t))return Qe(r.get(t));if(r.set(t,e),Array.isArray(t)){t=t.slice();for(let e=0;e<t.length;e++)t[e]=t[e]??void 0}let i=[...Object.keys(t),...E(t)];for(let a=0;a<i.length;a++){let o=i[a];if(De(o))continue;let s=t[o],c=e[o];if(L(s)&&(s={...s}),L(c)&&(c={...c}),N(s)&&(s=Ye(s)),Array.isArray(s))if(Array.isArray(c)){let e=[],t=Reflect.ownKeys(c);for(let n=0;n<t.length;n++){let r=t[n];e[r]=c[r]}c=e}else if(Xe(c)){let e=[];for(let t=0;t<c.length;t++)e[t]=c[t];c=e}else c=[];let l=n(c,s,o,e,t,r);l===void 0?Array.isArray(s)||R(c)&&R(s)&&(V(c)||V(s)||B(c)||B(s))?e[o]=H(c,s,n,r):c==null&&V(s)?e[o]=H({},s,n,r):c==null&&B(s)?e[o]=Ye(s):(c===void 0||s!==void 0)&&(e[o]=s):e[o]=l}return e}function et(e,...t){return $e(e,...t,Ze)}var tt=n.t(),nt={curveBasis:d,curveBasisClosed:ee,curveBasisOpen:ne,curveBumpX:o,curveBumpY:s,curveBundle:re,curveCardinalClosed:ae,curveCardinalOpen:oe,curveCardinal:ie,curveCatmullRomClosed:le,curveCatmullRomOpen:de,curveCatmullRom:se,curveLinear:i,curveLinearClosed:pe,curveMonotoneX:ye,curveMonotoneY:be,curveNatural:Ce,curveStep:we,curveStepAfter:C,curveStepBefore:Te},rt=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,it=e.h(function(e,n){let r=at(e,/(?:init\b)|(?:initialize\b)/),i={};if(Array.isArray(r)){let e=r.map(e=>e.args);t.R(e),i=t.r(i,[...e])}else i=r.args;if(!i)return;let a=t.p(e,n),o=`config`;return i[o]!==void 0&&(a===`flowchart-v2`&&(a=`flowchart`),i[a]=i[o],delete i[o]),i},`detectInit`),at=e.h(function(n,r=null){try{let i=RegExp(`[%]{2}(?![{]${rt.source})(?=[}][%]{2}).*
2
- `,`ig`);n=n.trim().replace(i,``).replace(/'/gm,`"`),e.g.debug(`Detecting diagram directive${r===null?``:` type:`+r} based on the text:${n}`);let a,o=[];for(;(a=t.h.exec(n))!==null;)if(a.index===t.h.lastIndex&&t.h.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(t){return e.g.error(`ERROR: ${t.message} - Unable to parse directive type: '${r}' based on the text: '${n}'`),{type:void 0,args:null}}},`detectDirective`),ot=e.h(function(e){return e.replace(t.h,``)},`removeDirectives`),st=e.h(function(e,t){for(let[n,r]of t.entries())if(r.match(e))return n;return-1},`isSubstringInArray`);function U(e,t){return e?nt[`curve${e.charAt(0).toUpperCase()+e.slice(1)}`]??t:t}e.h(U,`interpolateToCurve`);function ct(e,t){let n=e.trim();if(n)return t.securityLevel===`loose`?n:(0,tt.sanitizeUrl)(n)}e.h(ct,`formatUrl`);var lt=e.h((t,...n)=>{let r=t.split(`.`),i=r.length-1,a=r[i],o=window;for(let n=0;n<i;n++)if(o=o[r[n]],!o){e.g.error(`Function name: ${t} not found in window`);return}o[a](...n)},`runFunc`);function W(e,t){return!e||!t?0:Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)}e.h(W,`distance`);function ut(e){let t,n=0;return e.forEach(e=>{n+=W(e,t),t=e}),G(e,n/2)}e.h(ut,`traverseEdge`);function dt(e){return e.length===1?e[0]:ut(e)}e.h(dt,`calcLabelPosition`);var ft=e.h((e,t=2)=>{let n=10**t;return Math.round(e*n)/n},`roundNumber`),G=e.h((e,t)=>{let n,r=t;for(let t of e){if(n){let e=W(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=e.h((t,n,r)=>{e.g.info(`our points ${JSON.stringify(n)}`),n[0]!==r&&(n=n.reverse());let i=G(n,25),a=t?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(t,n,r){let i=structuredClone(r);e.g.info(`our points`,i),n!==`start_left`&&n!==`start_right`&&i.reverse();let a=G(i,25+t),o=10+t*.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}e.h(mt,`calcTerminalLabelPosition`);function K(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}}e.h(K,`getStylesFromArray`);var ht=0,gt=e.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}e.h(_t,`makeRandomHex`);var q=e.h(e=>_t(e.length),`random`),vt=e.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`),yt=e.h(function(e,n){let r=n.text.replace(t.s.lineBreakRegex,` `),[,i]=Q(n.fontSize),a=e.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`),bt=z((e,n,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:`Arial`,joinWith:`<br/>`},r),t.s.lineBreakRegex.test(e)))return e;let i=e.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}=xt(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}`),xt=z((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}e.h(J,`calculateTextHeight`);function Y(e,t){return X(e,t).width}e.h(Y,`calculateTextWidth`);var X=z((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(t.s.lineBreakRegex),u=[],d=e.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=vt();i.text=r||`​`;let a=yt(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}`),St=class{constructor(e=!1,t){this.count=0,this.count=t?t.length:0,this.next=e?()=>this.count++:()=>Date.now()}static{e.h(this,`InitIDGenerator`)}},Z,Ct=e.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 wt(e){return`str`in e}e.h(wt,`isDetailedError`);var Tt=e.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=e.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 et({},e,t)}e.h($,`cleanAndMerge`);var Et={assignWithDepth:t.r,wrapLabel:bt,calculateTextHeight:J,calculateTextWidth:Y,calculateTextDimensions:X,cleanAndMerge:$,detectInit:it,detectDirective:at,isSubstringInArray:st,interpolateToCurve:U,calcLabelPosition:dt,calcCardinalityPosition:pt,calcTerminalLabelPosition:mt,formatUrl:ct,getStylesFromArray:K,generateId:gt,random:q,runFunc:lt,entityDecode:Ct,insertTitle:Tt,isLabelCoordinateInPath:jt,parseFontSize:Q,InitIDGenerator:St},Dt=e.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`),Ot=e.h(function(e){return e.replace(/fl°°/g,`&#`).replace(/fl°/g,`&`).replace(/¶ß/g,`;`)},`decodeEntities`),kt=e.h((e,t,{counter:n=0,prefix:r,suffix:i},a)=>a||`${r?`${r}_`:``}${e}_${t}_${n}${i?`_${i}`:``}`,`getEdgeId`);function At(e){return e??null}e.h(At,`handleUndefinedAttr`);function jt(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())}e.h(jt,`isLabelCoordinateInPath`),Object.defineProperty(exports,`$`,{enumerable:!0,get:function(){return ie}}),Object.defineProperty(exports,`A`,{enumerable:!0,get:function(){return He}}),Object.defineProperty(exports,`B`,{enumerable:!0,get:function(){return ze}}),Object.defineProperty(exports,`C`,{enumerable:!0,get:function(){return Me}}),Object.defineProperty(exports,`D`,{enumerable:!0,get:function(){return Ue}}),Object.defineProperty(exports,`E`,{enumerable:!0,get:function(){return ke}}),Object.defineProperty(exports,`F`,{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,`G`,{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,`H`,{enumerable:!0,get:function(){return Le}}),Object.defineProperty(exports,`I`,{enumerable:!0,get:function(){return je}}),Object.defineProperty(exports,`J`,{enumerable:!0,get:function(){return we}}),Object.defineProperty(exports,`K`,{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,`L`,{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,`M`,{enumerable:!0,get:function(){return Ae}}),Object.defineProperty(exports,`N`,{enumerable:!0,get:function(){return A}}),Object.defineProperty(exports,`O`,{enumerable:!0,get:function(){return We}}),Object.defineProperty(exports,`P`,{enumerable:!0,get:function(){return Pe}}),Object.defineProperty(exports,`Q`,{enumerable:!0,get:function(){return se}}),Object.defineProperty(exports,`R`,{enumerable:!0,get:function(){return Oe}}),Object.defineProperty(exports,`S`,{enumerable:!0,get:function(){return Ne}}),Object.defineProperty(exports,`T`,{enumerable:!0,get:function(){return Fe}}),Object.defineProperty(exports,`U`,{enumerable:!0,get:function(){return D}}),Object.defineProperty(exports,`V`,{enumerable:!0,get:function(){return Ie}}),Object.defineProperty(exports,`W`,{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,`X`,{enumerable:!0,get:function(){return ye}}),Object.defineProperty(exports,`Y`,{enumerable:!0,get:function(){return Ce}}),Object.defineProperty(exports,`Z`,{enumerable:!0,get:function(){return be}}),Object.defineProperty(exports,`_`,{enumerable:!0,get:function(){return bt}}),Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return Ot}}),Object.defineProperty(exports,`b`,{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return kt}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,`et`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return wt}}),Object.defineProperty(exports,`g`,{enumerable:!0,get:function(){return Et}}),Object.defineProperty(exports,`h`,{enumerable:!0,get:function(){return ot}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return $}}),Object.defineProperty(exports,`j`,{enumerable:!0,get:function(){return Be}}),Object.defineProperty(exports,`k`,{enumerable:!0,get:function(){return Ve}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return K}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return q}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return J}}),Object.defineProperty(exports,`nt`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return Dt}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return Q}}),Object.defineProperty(exports,`q`,{enumerable:!0,get:function(){return Te}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return Y}}),Object.defineProperty(exports,`rt`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return gt}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return X}}),Object.defineProperty(exports,`tt`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return At}}),Object.defineProperty(exports,`v`,{enumerable:!0,get:function(){return B}}),Object.defineProperty(exports,`w`,{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,`x`,{enumerable:!0,get:function(){return M}}),Object.defineProperty(exports,`y`,{enumerable:!0,get:function(){return L}}),Object.defineProperty(exports,`z`,{enumerable:!0,get:function(){return Re}});
1
+ const e=require("./src-DEmZ9bFr.cjs"),t=require("./chunk-CSCIHK7Q-BAdl6GW-.cjs"),n=require("./dist-D8RD2QWc.cjs");function r(e){this._context=e}r.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 i(e){return new r(e)}var a=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 o(e){return new a(e,!0)}function s(e){return new a(e,!1)}function c(){}function l(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 u(e){this._context=e}u.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:l(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:l(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function d(e){return new u(e)}function f(e){this._context=e}f.prototype={areaStart:c,areaEnd:c,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:l(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ee(e){return new f(e)}function te(e){this._context=e}te.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:l(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ne(e){return new te(e)}function p(e,t){this._basis=new u(e),this._beta=t}p.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 re=(function e(t){function n(e){return t===1?new u(e):new p(e,t)}return n.beta=function(t){return e(+t)},n})(.85);function m(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 h(e,t){this._context=e,this._k=(1-t)/6}h.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:m(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:m(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 h(e,t)}return n.tension=function(t){return e(+t)},n})(0);function g(e,t){this._context=e,this._k=(1-t)/6}g.prototype={areaStart:c,areaEnd:c,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:m(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 g(e,t)}return n.tension=function(t){return e(+t)},n})(0);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(){(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:m(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 oe=(function e(t){function n(e){return new _(e,t)}return n.tension=function(t){return e(+t)},n})(0);function v(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 y(e,t){this._context=e,this._alpha=t}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._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:v(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 y(e,t):new h(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function ce(e,t){this._context=e,this._alpha=t}ce.prototype={areaStart:c,areaEnd:c,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:v(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 ce(e,t):new g(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function ue(e,t){this._context=e,this._alpha=t}ue.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:v(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 de=(function e(t){function n(e){return t?new ue(e,t):new _(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function fe(e){this._context=e}fe.prototype={areaStart:c,areaEnd:c,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 pe(e){return new fe(e)}function me(e){return e<0?-1:1}function he(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(me(a)+me(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function ge(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function b(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 x(e){this._context=e}x.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:b(this,this._t0,ge(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,b(this,ge(this,n=he(this,e,t)),n);break;default:b(this,this._t0,n=he(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function _e(e){this._context=new ve(e)}(_e.prototype=Object.create(x.prototype)).point=function(e,t){x.prototype.point.call(this,t,e)};function ve(e){this._context=e}ve.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 ye(e){return new x(e)}function be(e){return new _e(e)}function xe(e){this._context=e}xe.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=Se(e),i=Se(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 Se(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 Ce(e){return new xe(e)}function S(e,t){this._context=e,this._t=t}S.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 we(e){return new S(e,.5)}function Te(e){return new S(e,0)}function C(e){return new S(e,1)}function Ee(e){return Number.isSafeInteger(e)&&e>=0}function w(e){return e!=null&&typeof e!=`function`&&Ee(e.length)}function De(e){return e===`__proto__`}function T(e){return e==null||typeof e!=`object`&&typeof e!=`function`}function E(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function D(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var O=`[object RegExp]`,k=`[object String]`,A=`[object Number]`,j=`[object Boolean]`,M=`[object Arguments]`,Oe=`[object Symbol]`,ke=`[object Date]`,Ae=`[object Map]`,je=`[object Set]`,Me=`[object Array]`,Ne=`[object ArrayBuffer]`,Pe=`[object Object]`,Fe=`[object DataView]`,Ie=`[object Uint8Array]`,Le=`[object Uint8ClampedArray]`,Re=`[object Uint16Array]`,ze=`[object Uint32Array]`,Be=`[object Int8Array]`,Ve=`[object Int16Array]`,He=`[object Int32Array]`,Ue=`[object Float32Array]`,We=`[object Float64Array]`,Ge=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof global==`object`&&global||(function(){return this})()||Function(`return this`)();function N(e){return Ge.Buffer!==void 0&&Ge.Buffer.isBuffer(e)}function P(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Ke(e,t){return F(e,void 0,e,new Map,t)}function F(e,t,n,r=new Map,i=void 0){let a=i?.(e,t,n,r);if(a!==void 0)return a;if(T(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=F(e[a],a,n,r,i);return Object.hasOwn(e,`index`)&&(t.index=e.index),Object.hasOwn(e,`input`)&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;r.set(e,t);for(let[a,o]of e)t.set(a,F(o,a,n,r,i));return t}if(e instanceof Set){let t=new Set;r.set(e,t);for(let a of e)t.add(F(a,void 0,n,r,i));return t}if(N(e))return e.subarray();if(P(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=F(e[a],a,n,r,i);return t}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),I(t,e,n,r,i),t}if(typeof File<`u`&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),I(t,e,n,r,i),t}if(typeof Blob<`u`&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),I(t,e,n,r,i),t}if(e instanceof Error){let t=structuredClone(e);return r.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,I(t,e,n,r,i),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return r.set(e,t),I(t,e,n,r,i),t}if(e instanceof Number){let t=new Number(e.valueOf());return r.set(e,t),I(t,e,n,r,i),t}if(e instanceof String){let t=new String(e.valueOf());return r.set(e,t),I(t,e,n,r,i),t}if(typeof e==`object`&&qe(e)){let t=Object.create(Object.getPrototypeOf(e));return r.set(e,t),I(t,e,n,r,i),t}return e}function I(e,t,n=e,r,i){let a=[...Object.keys(t),...E(t)];for(let o=0;o<a.length;o++){let s=a[o],c=Object.getOwnPropertyDescriptor(e,s);(c==null||c.writable)&&(e[s]=F(t[s],s,n,r,i))}}function qe(e){switch(D(e)){case M:case Me:case Ne:case Fe:case j:case ke:case Ue:case We:case Be:case Ve:case He:case Ae:case A:case Pe:case O:case je:case k:case Oe:case Ie:case Le:case Re:case ze:return!0;default:return!1}}function Je(e,t){return Ke(e,(n,r,i,a)=>{let o=t?.(n,r,i,a);if(o!==void 0)return o;if(typeof e==`object`){if(D(e)===`[object Object]`&&typeof e.constructor!=`function`){let t={};return a.set(e,t),I(t,e,i,a),t}switch(Object.prototype.toString.call(e)){case A:case k:case j:{let t=new e.constructor(e?.valueOf());return I(t,e),t}case M:{let t={};return I(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}function Ye(e){return Je(e)}function L(e){return typeof e==`object`&&!!e&&D(e)===`[object Arguments]`}function R(e){return typeof e==`object`&&!!e}function Xe(e){return R(e)&&w(e)}function z(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(`Expected a function`);let n=function(...r){let i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);let o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(z.Cache||Map),n}z.Cache=Map;function Ze(){}function B(e){return P(e)}function V(e){if(typeof e!=`object`||!e)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!==`[object Object]`){let t=e[Symbol.toStringTag];return t==null||!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable?!1:e.toString()===`[object ${t}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Qe(e){if(T(e))return e;if(Array.isArray(e)||P(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e);if(t==null)return Object.assign(Object.create(t),e);let n=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new n(e);if(e instanceof RegExp){let t=new n(e);return t.lastIndex=e.lastIndex,t}if(e instanceof DataView)return new n(e.buffer.slice(0));if(e instanceof Error){let t;return t=e instanceof AggregateError?new n(e.errors,e.message,{cause:e.cause}):new n(e.message,{cause:e.cause}),t.stack=e.stack,Object.assign(t,e),t}return typeof File<`u`&&e instanceof File?new n([e],e.name,{type:e.type,lastModified:e.lastModified}):typeof e==`object`?Object.assign(Object.create(t),e):e}function $e(e,...t){let n=t.slice(0,-1),r=t[t.length-1],i=e;for(let e=0;e<n.length;e++){let t=n[e];i=H(i,t,r,new Map)}return i}function H(e,t,n,r){if(T(e)&&(e=Object(e)),typeof t!=`object`||!t)return e;if(r.has(t))return Qe(r.get(t));if(r.set(t,e),Array.isArray(t)){t=t.slice();for(let e=0;e<t.length;e++)t[e]=t[e]??void 0}let i=[...Object.keys(t),...E(t)];for(let a=0;a<i.length;a++){let o=i[a];if(De(o))continue;let s=t[o],c=e[o];if(L(s)&&(s={...s}),L(c)&&(c={...c}),N(s)&&(s=Ye(s)),Array.isArray(s))if(Array.isArray(c)){let e=[],t=Reflect.ownKeys(c);for(let n=0;n<t.length;n++){let r=t[n];e[r]=c[r]}c=e}else if(Xe(c)){let e=[];for(let t=0;t<c.length;t++)e[t]=c[t];c=e}else c=[];let l=n(c,s,o,e,t,r);l===void 0?Array.isArray(s)||R(c)&&R(s)&&(V(c)||V(s)||B(c)||B(s))?e[o]=H(c,s,n,r):c==null&&V(s)?e[o]=H({},s,n,r):c==null&&B(s)?e[o]=Ye(s):(c===void 0||s!==void 0)&&(e[o]=s):e[o]=l}return e}function et(e,...t){return $e(e,...t,Ze)}var tt=n.t(),nt={curveBasis:d,curveBasisClosed:ee,curveBasisOpen:ne,curveBumpX:o,curveBumpY:s,curveBundle:re,curveCardinalClosed:ae,curveCardinalOpen:oe,curveCardinal:ie,curveCatmullRomClosed:le,curveCatmullRomOpen:de,curveCatmullRom:se,curveLinear:i,curveLinearClosed:pe,curveMonotoneX:ye,curveMonotoneY:be,curveNatural:Ce,curveStep:we,curveStepAfter:C,curveStepBefore:Te},rt=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,it=e.h(function(e,n){let r=at(e,/(?:init\b)|(?:initialize\b)/),i={};if(Array.isArray(r)){let e=r.map(e=>e.args);t.R(e),i=t.r(i,[...e])}else i=r.args;if(!i)return;let a=t.p(e,n),o=`config`;return i[o]!==void 0&&(a===`flowchart-v2`&&(a=`flowchart`),i[a]=i[o],delete i[o]),i},`detectInit`),at=e.h(function(n,r=null){try{let i=RegExp(`[%]{2}(?![{]${rt.source})(?=[}][%]{2}).*
2
+ `,`ig`);n=n.trim().replace(i,``).replace(/'/gm,`"`),e.g.debug(`Detecting diagram directive${r===null?``:` type:`+r} based on the text:${n}`);let a,o=[];for(;(a=t.h.exec(n))!==null;)if(a.index===t.h.lastIndex&&t.h.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(t){return e.g.error(`ERROR: ${t.message} - Unable to parse directive type: '${r}' based on the text: '${n}'`),{type:void 0,args:null}}},`detectDirective`),ot=e.h(function(e){return e.replace(t.h,``)},`removeDirectives`),st=e.h(function(e,t){for(let[n,r]of t.entries())if(r.match(e))return n;return-1},`isSubstringInArray`);function U(e,t){return e?nt[`curve${e.charAt(0).toUpperCase()+e.slice(1)}`]??t:t}e.h(U,`interpolateToCurve`);function ct(e,t){let n=e.trim();if(n)return t.securityLevel===`loose`?n:(0,tt.sanitizeUrl)(n)}e.h(ct,`formatUrl`);var lt=e.h((t,...n)=>{let r=t.split(`.`),i=r.length-1,a=r[i],o=window;for(let n=0;n<i;n++)if(o=o[r[n]],!o){e.g.error(`Function name: ${t} not found in window`);return}o[a](...n)},`runFunc`);function W(e,t){return!e||!t?0:Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)}e.h(W,`distance`);function ut(e){let t,n=0;return e.forEach(e=>{n+=W(e,t),t=e}),G(e,n/2)}e.h(ut,`traverseEdge`);function dt(e){return e.length===1?e[0]:ut(e)}e.h(dt,`calcLabelPosition`);var ft=e.h((e,t=2)=>{let n=10**t;return Math.round(e*n)/n},`roundNumber`),G=e.h((e,t)=>{let n,r=t;for(let t of e){if(n){let e=W(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=e.h((t,n,r)=>{e.g.info(`our points ${JSON.stringify(n)}`),n[0]!==r&&(n=n.reverse());let i=G(n,25),a=t?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(t,n,r){let i=structuredClone(r);e.g.info(`our points`,i),n!==`start_left`&&n!==`start_right`&&i.reverse();let a=G(i,25+t),o=10+t*.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}e.h(mt,`calcTerminalLabelPosition`);function K(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}}e.h(K,`getStylesFromArray`);var ht=0,gt=e.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}e.h(_t,`makeRandomHex`);var q=e.h(e=>_t(e.length),`random`),vt=e.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`),yt=e.h(function(e,n){let r=n.text.replace(t.s.lineBreakRegex,` `),[,i]=Q(n.fontSize),a=e.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`),bt=z((e,n,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:`Arial`,joinWith:`<br/>`},r),t.s.lineBreakRegex.test(e)))return e;let i=e.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}=xt(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}`),xt=z((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}e.h(J,`calculateTextHeight`);function Y(e,t){return X(e,t).width}e.h(Y,`calculateTextWidth`);var X=z((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(t.s.lineBreakRegex),u=[],d=e.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=vt();i.text=r||`​`;let a=yt(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}`),St=class{constructor(e=!1,t){this.count=0,this.count=t?t.length:0,this.next=e?()=>this.count++:()=>Date.now()}static{e.h(this,`InitIDGenerator`)}},Z,Ct=e.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 wt(e){return`str`in e}e.h(wt,`isDetailedError`);var Tt=e.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=e.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 et({},e,t)}e.h($,`cleanAndMerge`);var Et={assignWithDepth:t.r,wrapLabel:bt,calculateTextHeight:J,calculateTextWidth:Y,calculateTextDimensions:X,cleanAndMerge:$,detectInit:it,detectDirective:at,isSubstringInArray:st,interpolateToCurve:U,calcLabelPosition:dt,calcCardinalityPosition:pt,calcTerminalLabelPosition:mt,formatUrl:ct,getStylesFromArray:K,generateId:gt,random:q,runFunc:lt,entityDecode:Ct,insertTitle:Tt,isLabelCoordinateInPath:jt,parseFontSize:Q,InitIDGenerator:St},Dt=e.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`),Ot=e.h(function(e){return e.replace(/fl°°/g,`&#`).replace(/fl°/g,`&`).replace(/¶ß/g,`;`)},`decodeEntities`),kt=e.h((e,t,{counter:n=0,prefix:r,suffix:i},a)=>a||`${r?`${r}_`:``}${e}_${t}_${n}${i?`_${i}`:``}`,`getEdgeId`);function At(e){return e??null}e.h(At,`handleUndefinedAttr`);function jt(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())}e.h(jt,`isLabelCoordinateInPath`),Object.defineProperty(exports,"$",{enumerable:!0,get:function(){return ie}}),Object.defineProperty(exports,"A",{enumerable:!0,get:function(){return He}}),Object.defineProperty(exports,"B",{enumerable:!0,get:function(){return ze}}),Object.defineProperty(exports,"C",{enumerable:!0,get:function(){return Me}}),Object.defineProperty(exports,"D",{enumerable:!0,get:function(){return Ue}}),Object.defineProperty(exports,"E",{enumerable:!0,get:function(){return ke}}),Object.defineProperty(exports,"F",{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,"G",{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,"H",{enumerable:!0,get:function(){return Le}}),Object.defineProperty(exports,"I",{enumerable:!0,get:function(){return je}}),Object.defineProperty(exports,"J",{enumerable:!0,get:function(){return we}}),Object.defineProperty(exports,"K",{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,"L",{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,"M",{enumerable:!0,get:function(){return Ae}}),Object.defineProperty(exports,"N",{enumerable:!0,get:function(){return A}}),Object.defineProperty(exports,"O",{enumerable:!0,get:function(){return We}}),Object.defineProperty(exports,"P",{enumerable:!0,get:function(){return Pe}}),Object.defineProperty(exports,"Q",{enumerable:!0,get:function(){return se}}),Object.defineProperty(exports,"R",{enumerable:!0,get:function(){return Oe}}),Object.defineProperty(exports,"S",{enumerable:!0,get:function(){return Ne}}),Object.defineProperty(exports,"T",{enumerable:!0,get:function(){return Fe}}),Object.defineProperty(exports,"U",{enumerable:!0,get:function(){return D}}),Object.defineProperty(exports,"V",{enumerable:!0,get:function(){return Ie}}),Object.defineProperty(exports,"W",{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,"X",{enumerable:!0,get:function(){return ye}}),Object.defineProperty(exports,"Y",{enumerable:!0,get:function(){return Ce}}),Object.defineProperty(exports,"Z",{enumerable:!0,get:function(){return be}}),Object.defineProperty(exports,"_",{enumerable:!0,get:function(){return bt}}),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return Ot}}),Object.defineProperty(exports,"b",{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return kt}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,"et",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return wt}}),Object.defineProperty(exports,"g",{enumerable:!0,get:function(){return Et}}),Object.defineProperty(exports,"h",{enumerable:!0,get:function(){return ot}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return $}}),Object.defineProperty(exports,"j",{enumerable:!0,get:function(){return Be}}),Object.defineProperty(exports,"k",{enumerable:!0,get:function(){return Ve}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return K}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return q}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return J}}),Object.defineProperty(exports,"nt",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return Dt}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(exports,"q",{enumerable:!0,get:function(){return Te}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(exports,"rt",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return gt}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return X}}),Object.defineProperty(exports,"tt",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return At}}),Object.defineProperty(exports,"v",{enumerable:!0,get:function(){return B}}),Object.defineProperty(exports,"w",{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,"x",{enumerable:!0,get:function(){return M}}),Object.defineProperty(exports,"y",{enumerable:!0,get:function(){return L}}),Object.defineProperty(exports,"z",{enumerable:!0,get:function(){return Re}});
@@ -1,11 +1,11 @@
1
- import { g as e, h as t, p as n } from "./src-v9RrE_4h.js";
2
- import { H as r, K as i, M as a, U as o, a as s, ot as c, s as l, v as u, w as d, x as f, y as p, z as m } from "./chunk-CSCIHK7Q-9WKhcDqw.js";
3
- import { c as h, g } from "./chunk-5ZQYHXKU-C4uam08j.js";
4
- import { r as _, t as v } from "./chunk-LZXEDZCA-KzBFuWPU.js";
5
- import { t as y } from "./chunk-FMBD7UC4-BbggSGOg.js";
6
- import { t as b } from "./chunk-ND2GUHAM-CHTke4K8.js";
7
- import { t as x } from "./chunk-55IACEB6-b_Ivgrk-.js";
8
- import { t as S } from "./chunk-2J33WTMH-EmvF7iYC.js";
1
+ import { g as e, h as t, p as n } from "./src-DjDATEq3.js";
2
+ import { H as r, K as i, M as a, U as o, a as s, ot as c, s as l, v as u, w as d, x as f, y as p, z as m } from "./chunk-CSCIHK7Q-BEk3YcEH.js";
3
+ import { c as h, g } from "./chunk-5ZQYHXKU-B_nOC8-n.js";
4
+ import { r as _, t as v } from "./chunk-LZXEDZCA-J9irjuVP.js";
5
+ import { t as y } from "./chunk-FMBD7UC4-BURT0llY.js";
6
+ import { t as b } from "./chunk-ND2GUHAM-Ca12h-m9.js";
7
+ import { t as x } from "./chunk-55IACEB6-CmKDx-YO.js";
8
+ import { t as S } from "./chunk-2J33WTMH-BMqA-riF.js";
9
9
  //#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-727SXJPM.mjs
10
10
  var C = (function() {
11
11
  var e = /* @__PURE__ */ t(function(e, t, n, r) {
@@ -2684,7 +2684,9 @@ var w = C, T = [
2684
2684
  let n = e.length, r = e.substring(0, 1), i = e.substring(n - 1);
2685
2685
  T.includes(r) && (this.visibility = r), /[$*]/.exec(i) && (t = i), this.id = e.substring(this.visibility === "" ? 0 : 1, t === "" ? n : n - 1);
2686
2686
  }
2687
- this.classifier = t, this.id = this.id.startsWith(" ") ? " " + this.id.trim() : this.id.trim(), this.text = `${this.visibility ? "\\" + this.visibility : ""}${a(this.id)}${this.memberType === "method" ? `(${a(this.parameters)})${this.returnType ? " : " + a(this.returnType) : ""}` : ""}`.replaceAll("<", "&lt;").replaceAll(">", "&gt;"), this.text.startsWith("\\&lt;") && (this.text = this.text.replace("\\&lt;", "~"));
2687
+ this.classifier = t, this.id = this.id.startsWith(" ") ? " " + this.id.trim() : this.id.trim();
2688
+ let n = `${this.visibility ? "\\" + this.visibility : ""}${a(this.id)}${this.memberType === "method" ? `(${a(this.parameters)})${this.returnType ? " : " + a(this.returnType) : ""}` : ""}`;
2689
+ this.text = n.replaceAll("<", "&lt;").replaceAll(">", "&gt;"), this.text.startsWith("\\&lt;") && (this.text = this.text.replace("\\&lt;", "~"));
2688
2690
  }
2689
2691
  parseClassifier() {
2690
2692
  switch (this.classifier) {