@celljs/ta 4.13.0 → 4.14.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 (276) hide show
  1. package/dist/cli.mjs +997 -811
  2. package/dist/gateway.mjs +315 -129
  3. package/dist/pi/CHANGELOG.md +11 -0
  4. package/dist/pi/package.json +1 -1
  5. package/dist/pi/packages/ta-agents/package.json +3 -3
  6. package/dist/pi/packages/ta-bots/extension/index.mjs +21 -0
  7. package/dist/pi/packages/ta-bots/host/index.mjs +171 -114
  8. package/dist/pi/packages/ta-bots/package.json +3 -3
  9. package/dist/pi/packages/ta-changes/extension/index.mjs +21 -0
  10. package/dist/pi/packages/ta-changes/package.json +3 -3
  11. package/dist/pi/packages/ta-channels/extension/index.mjs +23 -2
  12. package/dist/pi/packages/ta-channels/host/index.mjs +170 -113
  13. package/dist/pi/packages/ta-channels/lib/extension.js +2 -2
  14. package/dist/pi/packages/ta-channels/lib/room.js +3 -3
  15. package/dist/pi/packages/ta-channels/package.json +3 -3
  16. package/dist/pi/packages/ta-channels/web/index.js +1 -0
  17. package/dist/pi/packages/ta-computer-use/package.json +3 -3
  18. package/dist/pi/packages/ta-cron/README.en.md +1 -1
  19. package/dist/pi/packages/ta-cron/README.md +1 -1
  20. package/dist/pi/packages/ta-cron/extension/index.mjs +22 -1
  21. package/dist/pi/packages/ta-cron/lib/extension.js +1 -1
  22. package/dist/pi/packages/ta-cron/lib/page.d.ts +2 -0
  23. package/dist/pi/packages/ta-cron/lib/page.js +8 -4
  24. package/dist/pi/packages/ta-cron/package.json +3 -3
  25. package/dist/pi/packages/ta-cron/web/index.js +9 -4
  26. package/dist/pi/packages/ta-extensions/package.json +3 -3
  27. package/dist/pi/packages/ta-extensions/skills/ta-package/SKILL.md +1 -1
  28. package/dist/pi/packages/ta-extensions/web/index.js +170 -113
  29. package/dist/pi/packages/ta-games/package.json +3 -3
  30. package/dist/pi/packages/ta-glance/extension/index.mjs +21 -0
  31. package/dist/pi/packages/ta-glance/package.json +3 -3
  32. package/dist/pi/packages/ta-initiative/README.en.md +1 -0
  33. package/dist/pi/packages/ta-initiative/README.md +1 -0
  34. package/dist/pi/packages/ta-initiative/extension/index.mjs +24 -3
  35. package/dist/pi/packages/ta-initiative/host/index.mjs +3 -0
  36. package/dist/pi/packages/ta-initiative/lib/extension.js +3 -4
  37. package/dist/pi/packages/ta-initiative/lib/i18n.d.ts +1 -0
  38. package/dist/pi/packages/ta-initiative/lib/i18n.js +4 -2
  39. package/dist/pi/packages/ta-initiative/lib/inbox.js +1 -1
  40. package/dist/pi/packages/ta-initiative/lib/initiative-protocol.d.ts +2 -0
  41. package/dist/pi/packages/ta-initiative/lib/initiative-service.d.ts +1 -0
  42. package/dist/pi/packages/ta-initiative/lib/initiative-service.js +3 -0
  43. package/dist/pi/packages/ta-initiative/lib/initiative-store.js +5 -1
  44. package/dist/pi/packages/ta-initiative/lib/style.d.ts +1 -1
  45. package/dist/pi/packages/ta-initiative/lib/style.js +1 -1
  46. package/dist/pi/packages/ta-initiative/package.json +3 -3
  47. package/dist/pi/packages/ta-initiative/web/index.js +10 -7
  48. package/dist/pi/packages/ta-launcher/package.json +3 -3
  49. package/dist/pi/packages/ta-manual/package.json +3 -3
  50. package/dist/pi/packages/ta-moments/extension/index.mjs +104 -47
  51. package/dist/pi/packages/ta-moments/host/index.mjs +103 -46
  52. package/dist/pi/packages/ta-moments/lib/editor.js +1 -1
  53. package/dist/pi/packages/ta-moments/lib/extension.js +2 -2
  54. package/dist/pi/packages/ta-moments/lib/friends.d.ts +4 -1
  55. package/dist/pi/packages/ta-moments/lib/friends.js +3 -2
  56. package/dist/pi/packages/ta-moments/lib/moments-host.js +1 -1
  57. package/dist/pi/packages/ta-moments/lib/moments-protocol.d.ts +2 -0
  58. package/dist/pi/packages/ta-moments/lib/page.js +4 -5
  59. package/dist/pi/packages/ta-moments/lib/post-util.js +2 -2
  60. package/dist/pi/packages/ta-moments/lib/store.js +6 -0
  61. package/dist/pi/packages/ta-moments/lib/style.d.ts +1 -1
  62. package/dist/pi/packages/ta-moments/lib/style.js +4 -5
  63. package/dist/pi/packages/ta-moments/package.json +3 -3
  64. package/dist/pi/packages/ta-moments/web/index.js +193 -128
  65. package/dist/pi/packages/ta-nearby/extension/index.mjs +22 -1
  66. package/dist/pi/packages/ta-nearby/host/index.mjs +189 -4
  67. package/dist/pi/packages/ta-nearby/lib/extension.js +1 -1
  68. package/dist/pi/packages/ta-nearby/lib/nearby-net.js +2 -0
  69. package/dist/pi/packages/ta-nearby/lib/nearby-protocol.d.ts +11 -0
  70. package/dist/pi/packages/ta-nearby/lib/nearby-service.d.ts +3 -0
  71. package/dist/pi/packages/ta-nearby/lib/nearby-service.js +32 -7
  72. package/dist/pi/packages/ta-nearby/lib/page.js +10 -9
  73. package/dist/pi/packages/ta-nearby/lib/style.d.ts +1 -1
  74. package/dist/pi/packages/ta-nearby/lib/style.js +1 -1
  75. package/dist/pi/packages/ta-nearby/package.json +3 -3
  76. package/dist/pi/packages/ta-nearby/web/index.js +10 -2
  77. package/dist/pi/packages/ta-notify/README.en.md +1 -0
  78. package/dist/pi/packages/ta-notify/README.md +1 -0
  79. package/dist/pi/packages/ta-notify/extension/index.mjs +21 -0
  80. package/dist/pi/packages/ta-notify/host/index.mjs +3 -0
  81. package/dist/pi/packages/ta-notify/lib/notify-protocol.d.ts +2 -0
  82. package/dist/pi/packages/ta-notify/lib/notify-service.d.ts +1 -0
  83. package/dist/pi/packages/ta-notify/lib/notify-service.js +3 -0
  84. package/dist/pi/packages/ta-notify/package.json +3 -3
  85. package/dist/pi/packages/ta-recall/README.en.md +1 -1
  86. package/dist/pi/packages/ta-recall/README.md +1 -1
  87. package/dist/pi/packages/ta-recall/extension/index.mjs +22 -1
  88. package/dist/pi/packages/ta-recall/host/index.mjs +30 -12
  89. package/dist/pi/packages/ta-recall/lib/brief-util.d.ts +3 -3
  90. package/dist/pi/packages/ta-recall/lib/extension.js +1 -1
  91. package/dist/pi/packages/ta-recall/lib/recall-service.d.ts +5 -3
  92. package/dist/pi/packages/ta-recall/lib/recall-service.js +11 -7
  93. package/dist/pi/packages/ta-recall/package.json +3 -3
  94. package/dist/pi/packages/ta-recall/web/index.js +21 -0
  95. package/dist/pi/packages/ta-rooms/extension/index.mjs +23 -2
  96. package/dist/pi/packages/ta-rooms/host/index.mjs +21 -0
  97. package/dist/pi/packages/ta-rooms/lib/extension.js +2 -2
  98. package/dist/pi/packages/ta-rooms/lib/friends-view.js +7 -8
  99. package/dist/pi/packages/ta-rooms/lib/page.d.ts +12 -0
  100. package/dist/pi/packages/ta-rooms/lib/page.js +38 -3
  101. package/dist/pi/packages/ta-rooms/lib/style.d.ts +1 -1
  102. package/dist/pi/packages/ta-rooms/lib/style.js +1 -2
  103. package/dist/pi/packages/ta-rooms/package.json +3 -3
  104. package/dist/pi/packages/ta-rooms/web/index.js +58 -17
  105. package/dist/pi/packages/ta-share/extension/index.mjs +21 -0
  106. package/dist/pi/packages/ta-share/package.json +3 -3
  107. package/dist/pi/packages/ta-sync/lib/i18n.js +2 -2
  108. package/dist/pi/packages/ta-sync/lib/migrate-i18n.js +2 -2
  109. package/dist/pi/packages/ta-sync/lib/style.d.ts +1 -1
  110. package/dist/pi/packages/ta-sync/lib/style.js +1 -1
  111. package/dist/pi/packages/ta-sync/package.json +3 -3
  112. package/dist/pi/packages/ta-sync/web/index.js +5 -5
  113. package/dist/pi/packages/ta-sync-cloud/package.json +3 -3
  114. package/dist/pi/packages/ta-team/README.en.md +3 -1
  115. package/dist/pi/packages/ta-team/README.md +3 -1
  116. package/dist/pi/packages/ta-team/extension/index.mjs +21 -0
  117. package/dist/pi/packages/ta-team/host/index.mjs +590 -47
  118. package/dist/pi/packages/ta-team/lib/dialogs.js +83 -16
  119. package/dist/pi/packages/ta-team/lib/host.js +4 -0
  120. package/dist/pi/packages/ta-team/lib/i18n.d.ts +11 -0
  121. package/dist/pi/packages/ta-team/lib/i18n.js +24 -2
  122. package/dist/pi/packages/ta-team/lib/members-tab.js +55 -8
  123. package/dist/pi/packages/ta-team/lib/page.d.ts +5 -0
  124. package/dist/pi/packages/ta-team/lib/page.js +15 -0
  125. package/dist/pi/packages/ta-team/lib/parts.d.ts +3 -1
  126. package/dist/pi/packages/ta-team/lib/parts.js +4 -3
  127. package/dist/pi/packages/ta-team/lib/policy.d.ts +24 -0
  128. package/dist/pi/packages/ta-team/lib/policy.js +32 -0
  129. package/dist/pi/packages/ta-team/lib/protocol.d.ts +22 -15
  130. package/dist/pi/packages/ta-team/lib/protocol.js +1 -3
  131. package/dist/pi/packages/ta-team/lib/shared-home.js +2 -2
  132. package/dist/pi/packages/ta-team/lib/style.d.ts +1 -1
  133. package/dist/pi/packages/ta-team/lib/style.js +8 -4
  134. package/dist/pi/packages/ta-team/lib/team-admin.js +1 -0
  135. package/dist/pi/packages/ta-team/lib/team-core.js +1 -0
  136. package/dist/pi/packages/ta-team/lib/team-invites.d.ts +74 -6
  137. package/dist/pi/packages/ta-team/lib/team-invites.js +207 -10
  138. package/dist/pi/packages/ta-team/lib/team-people.js +2 -0
  139. package/dist/pi/packages/ta-team/package.json +7 -3
  140. package/dist/pi/packages/ta-team/web/index.js +362 -139
  141. package/dist/pi/packages/ta-workspace/lib/style.d.ts +1 -1
  142. package/dist/pi/packages/ta-workspace/lib/style.js +2 -2
  143. package/dist/pi/packages/ta-workspace/package.json +4 -4
  144. package/dist/pi/packages/ta-workspace/web/index.js +210 -139
  145. package/dist/public/assets/{abnfDiagram-S7VZAUFO-DJMZKA5d.js → abnfDiagram-S7VZAUFO-DMceNIR5.js} +1 -1
  146. package/dist/public/assets/{architecture-WOLXFQ4H-DwZ8A2Bp.js → architecture-WOLXFQ4H-5AdYeEv8.js} +1 -1
  147. package/dist/public/assets/{architectureDiagram-YGSQEFNW-DPezb7-w.js → architectureDiagram-YGSQEFNW-CqkJHg0A.js} +1 -1
  148. package/dist/public/assets/{blockDiagram-APKKGZFW-SrFYBlSp.js → blockDiagram-APKKGZFW-BtuHdIjQ.js} +1 -1
  149. package/dist/public/assets/{browser-D2CY3Lfb.js → browser-D2BcOPKG.js} +1 -1
  150. package/dist/public/assets/{browser-CljOqDFz.js → browser-Ds5TwWWr.js} +1 -1
  151. package/dist/public/assets/{c4Diagram-KJ2TOQU5-COCMkiJ6.js → c4Diagram-KJ2TOQU5-eebbjTgZ.js} +1 -1
  152. package/dist/public/assets/{chunk-6MUBBAK2-CWRxZCiu.js → chunk-6MUBBAK2-BjMKSfTf.js} +1 -1
  153. package/dist/public/assets/{chunk-AXFCVDMN-Dgn3RHlx.js → chunk-AXFCVDMN-BElluw_7.js} +1 -1
  154. package/dist/public/assets/{chunk-BG4553SI-BDnAChfb.js → chunk-BG4553SI-CUDwpWNL.js} +1 -1
  155. package/dist/public/assets/{chunk-DQASFODM-DSgprMfc.js → chunk-DQASFODM-B-92o8Uj.js} +1 -1
  156. package/dist/public/assets/{chunk-HFQBQIA3-ChtjyKjP.js → chunk-HFQBQIA3-pveEMcXK.js} +1 -1
  157. package/dist/public/assets/{chunk-KQLB2F66-B2o0ufJC.js → chunk-KQLB2F66-m7DKNjYW.js} +1 -1
  158. package/dist/public/assets/{chunk-KS47KZWR-C4qJvDaX.js → chunk-KS47KZWR-CnSSETdj.js} +1 -1
  159. package/dist/public/assets/{chunk-LEVMRMFU-2jTGUstS.js → chunk-LEVMRMFU-Ds7OnJrC.js} +1 -1
  160. package/dist/public/assets/{chunk-M57EVK23-CKAWW7fj.js → chunk-M57EVK23-PJSYCuUh.js} +1 -1
  161. package/dist/public/assets/{chunk-OY52VR5R-B5TUKZAt.js → chunk-OY52VR5R-C3ygRwSC.js} +1 -1
  162. package/dist/public/assets/{chunk-QB3YPZ4I-CyQFTqwG.js → chunk-QB3YPZ4I-DcFtmZh7.js} +1 -1
  163. package/dist/public/assets/{chunk-R3KSYZAL-C6git_yh.js → chunk-R3KSYZAL-B4BOidE6.js} +1 -1
  164. package/dist/public/assets/{chunk-STOXU5M4-AwEqcNnS.js → chunk-STOXU5M4-DcXfwN7k.js} +1 -1
  165. package/dist/public/assets/{chunk-TU62E6Q5-GKcRDmvw.js → chunk-TU62E6Q5-B-rpQQxX.js} +1 -1
  166. package/dist/public/assets/{chunk-X4PVCEUW-CMG5EfZ9.js → chunk-X4PVCEUW-BBtlFSw1.js} +1 -1
  167. package/dist/public/assets/{chunk-XXDRQBXY-BHd-dKtZ.js → chunk-XXDRQBXY-Do8BIocv.js} +1 -1
  168. package/dist/public/assets/{classDiagram-v2-L25IHNXF-HaRsBCG9.js → classDiagram-v2-L25IHNXF-bhGAODMS.js} +1 -1
  169. package/dist/public/assets/{client-sUFoEC5s.js → client-C8gi9Fk2.js} +1 -1
  170. package/dist/public/assets/{common-CGQN5htF.js → common-DrZR0tgm.js} +2 -2
  171. package/dist/public/assets/{cose-bilkent-JH36ORCC-BPBTCfj3.js → cose-bilkent-JH36ORCC-B7Qv6Hv_.js} +1 -1
  172. package/dist/public/assets/cynefin-EF2NZ3EQ-Dfu5k3iG.js +1 -0
  173. package/dist/public/assets/{cynefinDiagram-L36ESFBY-dAmWDtva.js → cynefinDiagram-L36ESFBY-BX-R5Z6L.js} +1 -1
  174. package/dist/public/assets/{d3-selection-BhemR5ul.js → d3-selection-D3xgEEla.js} +1 -1
  175. package/dist/public/assets/{dagre-SPEB5RXH-D93g6hNI.js → dagre-SPEB5RXH-MfJ9yO0v.js} +1 -1
  176. package/dist/public/assets/{diagram-3B7GL73J-FJBKgG3X.js → diagram-3B7GL73J-DxFRc2vC.js} +1 -1
  177. package/dist/public/assets/{diagram-DNEMPZML-BP22T976.js → diagram-DNEMPZML-BcBwOLbM.js} +1 -1
  178. package/dist/public/assets/{diagram-L3MUGCDN-DcrCJXRt.js → diagram-L3MUGCDN--Rw-isPI.js} +1 -1
  179. package/dist/public/assets/{diagram-LA4NIPWU-DUgd3PHQ.js → diagram-LA4NIPWU-DXkY85UN.js} +1 -1
  180. package/dist/public/assets/{diagram-MHCOC4E2-ejTInqzQ.js → diagram-MHCOC4E2-CbNmfAid.js} +1 -1
  181. package/dist/public/assets/{diagram-XPFHEONP-BLjkgho1.js → diagram-XPFHEONP-D1nGQjzf.js} +1 -1
  182. package/dist/public/assets/{dist-C9xqTt0E.js → dist-B1JMTrET.js} +1 -1
  183. package/dist/public/assets/{ebnfDiagram-UZSYDL2S-CB1QQ4_T.js → ebnfDiagram-UZSYDL2S-DGXbVfke.js} +1 -1
  184. package/dist/public/assets/{editor.api-lz6I1oVk.js → editor.api-e3yQoo1r.js} +1 -1
  185. package/dist/public/assets/{elk-XV6XMXQE-CLBx1s2b.js → elk-XV6XMXQE-pA-iT6fg.js} +1 -1
  186. package/dist/public/assets/{erDiagram-EYBAPDEH-Dsj6RYi5.js → erDiagram-EYBAPDEH-BpgBun7y.js} +1 -1
  187. package/dist/public/assets/{eventmodeling-K75KTNOO-smOORsSG.js → eventmodeling-K75KTNOO-CVfyCcul.js} +1 -1
  188. package/dist/public/assets/flowDiagram-MALGAFMO-BHlXeeVG.js +1 -0
  189. package/dist/public/assets/{freemarker2-DrLPw7Mc.js → freemarker2-dYGec-fT.js} +1 -1
  190. package/dist/public/assets/{ganttDiagram-23REXITY-BV9WK0rK.js → ganttDiagram-23REXITY-DjLTTWwA.js} +1 -1
  191. package/dist/public/assets/gitGraph-VSP46ZUC-CFVSDv3q.js +1 -0
  192. package/dist/public/assets/{gitGraphDiagram-STJD7YCW-CsSpSQ0T.js → gitGraphDiagram-STJD7YCW-D9m7IVyJ.js} +1 -1
  193. package/dist/public/assets/{handlebars-CLx5-csF.js → handlebars-Bxerz7ci.js} +1 -1
  194. package/dist/public/assets/{html-C9LmGm46.js → html-DlVnGsdp.js} +1 -1
  195. package/dist/public/assets/{index-CLWW0mVu.js → index-CZmGe9gc.js} +2 -2
  196. package/dist/public/assets/info-OHQRW6UA-C_Db4yjo.js +1 -0
  197. package/dist/public/assets/{infoDiagram-KBXO4MBG-wm5AnXDz.js → infoDiagram-KBXO4MBG-DoYdhkAy.js} +1 -1
  198. package/dist/public/assets/{ishikawaDiagram-M35NCXHK-BLUBDeS3.js → ishikawaDiagram-M35NCXHK-Bc0GAInW.js} +1 -1
  199. package/dist/public/assets/{javascript-C4S1eQb7.js → javascript-DZrowo_I.js} +1 -1
  200. package/dist/public/assets/{journeyDiagram-OPLOXDXO-DXc7-I_g.js → journeyDiagram-OPLOXDXO-BM7Dwstu.js} +1 -1
  201. package/dist/public/assets/{jsonMode-lLJKR2M6.js → jsonMode-Bs30wPr5.js} +1 -1
  202. package/dist/public/assets/{kanban-definition-BZKZHSQY-D5Ra4L_5.js → kanban-definition-BZKZHSQY-CO-Crrdu.js} +1 -1
  203. package/dist/public/assets/{liquid-DRlm-XZd.js → liquid-dLz9d3ax.js} +1 -1
  204. package/dist/public/assets/{mdx-CzIqeqPy.js → mdx-DO0x92Kn.js} +1 -1
  205. package/dist/public/assets/{mermaid-parser.core-BIPB1BgS.js → mermaid-parser.core-BXwArNvw.js} +3 -3
  206. package/dist/public/assets/{mermaid.core-DxBlQ6oF.js → mermaid.core-C6mppfDC.js} +4 -4
  207. package/dist/public/assets/{mindmap-definition-I2QAS2VK-BdupvuYr.js → mindmap-definition-I2QAS2VK-vcQ2EU4T.js} +1 -1
  208. package/dist/public/assets/module-C0tELrcJ.js +1 -0
  209. package/dist/public/assets/{module-B8jze-Tx.js → module-Cm_mLwAQ.js} +1 -1
  210. package/dist/public/assets/module-CteT9pTP.js +2405 -0
  211. package/dist/public/assets/module-DDH-aU6z.js +1 -0
  212. package/dist/public/assets/module-DRofmFJn.js +1 -0
  213. package/dist/public/assets/{module-ZhkaqrNe.js → module-DUYj4E8T.js} +1 -1
  214. package/dist/public/assets/module-MaD4hvv4.js +1 -0
  215. package/dist/public/assets/module-ZDJutm0b.js +1 -0
  216. package/dist/public/assets/module-qoBVcE5h.js +1 -0
  217. package/dist/public/assets/{monaco-ChpJIYsY.js → monaco-J_Pr5zjk.js} +3 -3
  218. package/dist/public/assets/packet-JDAUHWVQ-Bw7hmDUU.js +1 -0
  219. package/dist/public/assets/{pegDiagram-FD4XPPHP-C_GF7Fng.js → pegDiagram-FD4XPPHP-DPDrbtS2.js} +1 -1
  220. package/dist/public/assets/pie-XZMESJXO-cb_eq1B6.js +1 -0
  221. package/dist/public/assets/{pieDiagram-J4AKIIQI-WlpNP-IM.js → pieDiagram-J4AKIIQI-DXuaepGJ.js} +1 -1
  222. package/dist/public/assets/{python-BJgFCfc8.js → python-nnmIOv4s.js} +1 -1
  223. package/dist/public/assets/{quadrantDiagram-XTYBLID2-CkCL5rJY.js → quadrantDiagram-XTYBLID2-BuD_-coZ.js} +1 -1
  224. package/dist/public/assets/radar-ABXABTNO-Dqy-xoY_.js +1 -0
  225. package/dist/public/assets/railroad-I3PHUGI6-CBPVCTd3.js +1 -0
  226. package/dist/public/assets/{railroad-abnf-LNEFI6M7-DZZKUytl.js → railroad-abnf-LNEFI6M7-CkCl68xY.js} +1 -1
  227. package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-CS7KsJdb.js → railroad-ebnf-DWYD2UWJ-DO3GiRv6.js} +1 -1
  228. package/dist/public/assets/{railroad-peg-JR7BVNR7-CiukTZVd.js → railroad-peg-JR7BVNR7-DZBsKy4P.js} +1 -1
  229. package/dist/public/assets/{railroadDiagram-MRQ6NCDL-BS0R_H3-.js → railroadDiagram-MRQ6NCDL-BeLq7Mqp.js} +1 -1
  230. package/dist/public/assets/{razor-jcBIjr45.js → razor-l2rRITgB.js} +1 -1
  231. package/dist/public/assets/{requirementDiagram-Y7LWUY3S-C0_T9jgl.js → requirementDiagram-Y7LWUY3S-BBizkrON.js} +1 -1
  232. package/dist/public/assets/{resolver-B7c_-amj.js → resolver-0zC31mg5.js} +1 -1
  233. package/dist/public/assets/{sankeyDiagram-WGJFYUXA-DF15sUfS.js → sankeyDiagram-WGJFYUXA-tyo-p7oc.js} +1 -1
  234. package/dist/public/assets/{sequenceDiagram-5NDRBG5M-7AkTLleX.js → sequenceDiagram-5NDRBG5M-BSGPbeJX.js} +1 -1
  235. package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-CU3i-U9q.js → stateDiagram-v2-FJ4FJNEA-Dcdy66MQ.js} +1 -1
  236. package/dist/public/assets/{swimlanes-UMQ2AFYF-CR-ieLeo.js → swimlanes-UMQ2AFYF-BJfgQyQo.js} +1 -1
  237. package/dist/public/assets/swimlanesDiagram-OMPLPG4O-BWvcVkFg.js +8 -0
  238. package/dist/public/assets/{timeline-definition-SEUHKTQE-DeM0Uekm.js → timeline-definition-SEUHKTQE-Ch8aQwF6.js} +1 -1
  239. package/dist/public/assets/treeView-D4JQ5SDB--XUqgqA6.js +1 -0
  240. package/dist/public/assets/treemap-SAJKECNS-CfrNtG7H.js +1 -0
  241. package/dist/public/assets/{typescript-B7zp7QPf.js → typescript-LasX-M7S.js} +1 -1
  242. package/dist/public/assets/{usecaseDiagram-AFA6YXN4-D6rDIgdU.js → usecaseDiagram-AFA6YXN4-BzlSB4R4.js} +1 -1
  243. package/dist/public/assets/{vennDiagram-NNMJR3RB-CncVDcMl.js → vennDiagram-NNMJR3RB-4xaWLrMk.js} +1 -1
  244. package/dist/public/assets/wardley-7MLQ67FV-BXBG-txR.js +1 -0
  245. package/dist/public/assets/{wardleyDiagram-S7YFUSEH-DKPAMfTE.js → wardleyDiagram-S7YFUSEH-C-iK1p-O.js} +1 -1
  246. package/dist/public/assets/{xml-BJIgLD52.js → xml-CGhYQUqn.js} +1 -1
  247. package/dist/public/assets/{xychartDiagram-GGNKY7IX-DmmXGebm.js → xychartDiagram-GGNKY7IX-CFsnisdM.js} +1 -1
  248. package/dist/public/assets/{yaml-Dxb2gmP5.js → yaml-BcOaPfuH.js} +1 -1
  249. package/dist/public/index.html +2 -2
  250. package/dist/serve/index.mjs +2333 -1253
  251. package/package.json +39 -39
  252. package/dist/pi/packages/ta-team/lib/join.d.ts +0 -28
  253. package/dist/pi/packages/ta-team/lib/join.js +0 -48
  254. package/dist/pi/packages/ta-team/lib/remote.d.ts +0 -31
  255. package/dist/pi/packages/ta-team/lib/remote.js +0 -128
  256. package/dist/pi/packages/ta-team/lib/seal.d.ts +0 -28
  257. package/dist/pi/packages/ta-team/lib/seal.js +0 -75
  258. package/dist/public/assets/cynefin-EF2NZ3EQ-DyqqRII3.js +0 -1
  259. package/dist/public/assets/flowDiagram-MALGAFMO-DFmQPJ7B.js +0 -1
  260. package/dist/public/assets/gitGraph-VSP46ZUC-ybrJCK6u.js +0 -1
  261. package/dist/public/assets/info-OHQRW6UA-n41_wZE4.js +0 -1
  262. package/dist/public/assets/module-BPxWyxwR.js +0 -2362
  263. package/dist/public/assets/module-Blc8dqbf.js +0 -1
  264. package/dist/public/assets/module-C9WFrzAc.js +0 -1
  265. package/dist/public/assets/module-C_MSCGQC.js +0 -1
  266. package/dist/public/assets/module-CouMtASh.js +0 -1
  267. package/dist/public/assets/module-EGdAhoOx.js +0 -1
  268. package/dist/public/assets/module-EeaigZHL.js +0 -1
  269. package/dist/public/assets/packet-JDAUHWVQ-BjrqMgis.js +0 -1
  270. package/dist/public/assets/pie-XZMESJXO-CJSA88kr.js +0 -1
  271. package/dist/public/assets/radar-ABXABTNO-4nLUXAkG.js +0 -1
  272. package/dist/public/assets/railroad-I3PHUGI6-BD2LqZSr.js +0 -1
  273. package/dist/public/assets/swimlanesDiagram-OMPLPG4O-COK2pFDF.js +0 -8
  274. package/dist/public/assets/treeView-D4JQ5SDB-BL13z_2J.js +0 -1
  275. package/dist/public/assets/treemap-SAJKECNS-Lx2qjQpO.js +0 -1
  276. package/dist/public/assets/wardley-7MLQ67FV-B4j5rilS.js +0 -1
@@ -1,2 +1,2 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./sizeCapture-INFHLROL-3uHXrFqA.js","./chunk-Y2CYZVJY-DsF7k-Jl.js"])))=>i.map(i=>d[i]);
2
- import{r as e,t}from"./chunk-M57EVK23-CKAWW7fj.js";import{a as n,i as r,m as i,n as a,o,p as s,t as c,u as l}from"./chunk-DQASFODM-DSgprMfc.js";import{i as u,n as d,r as f,t as p}from"./chunk-LEVMRMFU-2jTGUstS.js";import{o as m}from"./chunk-AXFCVDMN-Dgn3RHlx.js";import{_ as h}from"./chunk-6MUBBAK2-CWRxZCiu.js";import{b as g,y as _}from"./chunk-BG4553SI-BDnAChfb.js";import{n as v}from"./d3-selection-BhemR5ul.js";import{n as y}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{t as b}from"./graphlib-DoDw2DoG.js";import{t as x}from"./index-CLWW0mVu.js";function S(e,{edgePathsClass:t=`edges edgePaths`}={}){let n=e.insert(`g`).attr(`class`,`root`);return{clusters:n.insert(`g`).attr(`class`,`clusters`),edgePaths:n.insert(`g`).attr(`class`,t),edgeLabels:n.insert(`g`).attr(`class`,`edgeLabels`),nodes:n.insert(`g`).attr(`class`,`nodes`),rootGroups:n}}y(S,`createLayoutElementGroups`);async function C(e,t,n){if(t.label){let{shapeSvg:r,bbox:i}=await m(e,n===void 0?t:{...t,width:n});t.labelBBox={width:i.width,height:i.height},r.remove()}else t.labelBBox={width:0,height:0}}y(C,`measureGroupLabel`);async function w(e,t,n){let r=await f(e,t,n),i=r.node()?.getBBox()??{width:0,height:0};return t.width=i.width,t.height=i.height,r}y(w,`insertMeasuredNode`);function T(e,t,n){let r=e,i=new Set;for(;r;){if(r.dir)return r.dir;if(!r.parentId||i.has(r.parentId))break;i.add(r.parentId),r=t.get(r.parentId)}return n}y(T,`resolveNodeDir`);async function E(e,t,n={}){let i=new b({multigraph:!0,compound:!0}),a=[...t.edges],s=g(),c=S(e),{edgeLabels:l,nodes:u}=c,d=new Map,f=new Map(t.nodes.map(e=>[e.id,e])),p=t.direction,m=e.node()!=null;await Promise.all(t.nodes.map(async e=>{if(e.isGroup){if(m){let t=n.unwrapGroupLabels&&e.labelType!==`markdown`;await C(u,e,t?1/0:void 0)}i.setNode(e.id,{...e})}else{if(m){let t=await w(u,e,{config:s,dir:T(e,f,p)});d.set(e.id,t)}i.setNode(e.id,{...e})}}));for(let e of a)m&&r(e)&&await o(l,e),i.setEdge(e.start,e.end,{...e},e.id),t.edges.some(t=>t.id===e.id)||t.edges.push(e);if(globalThis.mermaidCaptureSizes){let{captureNodeSizes:n}=await x(async()=>{let{captureNodeSizes:e}=await import(`./sizeCapture-INFHLROL-3uHXrFqA.js`);return{captureNodeSizes:e}},__vite__mapDeps([0,1]),import.meta.url);n(e,t)}return{graph:i,groups:c,nodeElements:d}}y(E,`createGraphWithElements`);var D=new Map,O=new Map,k=new Map,A=y(()=>{O.clear(),k.clear(),D.clear()},`clear`),j=y((e,t)=>{let n=O.get(t)||[];return v.trace(`In isDescendant`,t,` `,e,` = `,n.includes(e)),n.includes(e)},`isDescendant`),M=y((e,t)=>{let n=O.get(t)||[];return v.info(`Descendants of `,t,` is `,n),v.info(`Edge is `,e),e.v===t||e.w===t?!1:n?n.includes(e.v)||j(e.v,t)||j(e.w,t)||n.includes(e.w):(v.debug(`Tilt, `,t,`,not in descendants`),!1)},`edgeInCluster`),N=y((e,t,n,r)=>{v.debug(`Copying children of `,e,`root`,r,`data`,t.node(e),r);let i=t.children(e)||[];e!==r&&i.push(e),v.debug(`Copying (nodes) clusterId`,e,`nodes`,i),i.forEach(i=>{if(t.children(i).length>0)N(i,t,n,r);else{let a=t.node(i);v.info(`cp `,i,` to `,r,` with parent `,e),n.setNode(i,a),r!==t.parent(i)&&(v.debug(`Setting parent`,i,t.parent(i)),n.setParent(i,t.parent(i))),e!==r&&i!==e?(v.debug(`Setting parent`,i,e),n.setParent(i,e)):(v.info(`In copy `,e,`root`,r,`data`,t.node(e),r),v.debug(`Not Setting parent for node=`,i,`cluster!==rootId`,e!==r,`node!==clusterId`,i!==e));let o=t.edges(i);v.debug(`Copying Edges`,o),o.forEach(i=>{v.info(`Edge`,i);let a=t.edge(i.v,i.w,i.name);v.info(`Edge data`,a,r);try{M(i,r)?(v.info(`Copying as `,i.v,i.w,a,i.name),n.setEdge(i.v,i.w,a,i.name),v.info(`newGraph edges `,n.edges(),n.edge(n.edges()[0]))):v.info(`Skipping copy of edge `,i.v,`-->`,i.w,` rootId: `,r,` clusterId:`,e)}catch(e){v.error(e)}})}v.debug(`Removing node`,i),t.removeNode(i)})},`copy`),P=y((e,t)=>{let n=t.children(e),r=[...n];for(let i of n)k.set(i,e),r=[...r,...P(i,t)];return r},`extractDescendants`),F=y((e,t,n)=>{let r=e.edges().filter(e=>e.v===t||e.w===t),i=e.edges().filter(e=>e.v===n||e.w===n),a=r.map(e=>({v:e.v===t?n:e.v,w:e.w===t?t:e.w})),o=i.map(e=>({v:e.v,w:e.w}));return a.filter(e=>o.some(t=>e.v===t.v&&e.w===t.w))},`findCommonEdges`),I=y((e,t,n)=>{let r=t.children(e);if(v.trace(`Searching children of id `,e,r),r.length<1)return e;let i;for(let e of r){let r=I(e,t,n),a=F(t,n,r);if(r){if(a.length>0)i=r;else return r}}return i},`findNonClusterChild`),L=y(e=>!D.has(e)||!D.get(e).externalConnections?e:D.has(e)?D.get(e).id:e,`getAnchorId`),ee=y((e,t)=>{if(!e||t>10)v.debug(`Opting out, no graph `);else{v.debug(`Opting in, graph `),e.nodes().forEach(function(t){e.children(t).length>0&&(v.debug(`Cluster identified`,t,` Replacement id in edges: `,I(t,e,t)),O.set(t,P(t,e)),D.set(t,{id:I(t,e,t),clusterData:e.node(t)}))}),e.nodes().forEach(function(t){let n=e.children(t),r=e.edges();n.length>0?(v.debug(`Cluster identified`,t,O),r.forEach(e=>{j(e.v,t)^j(e.w,t)&&(v.debug(`Edge: `,e,` leaves cluster `,t),v.debug(`Descendants of XXX `,t,`: `,O.get(t)),D.get(t).externalConnections=!0)})):v.debug(`Not a cluster `,t,O)});for(let t of D.keys()){let n=D.get(t).id,r=e.parent(n);r!==t&&D.has(r)&&!D.get(r).externalConnections&&(D.get(t).id=r);let i=e.edges().some(e=>e.v===t);if(n&&D.get(t)?.externalConnections&&i&&B(e,n,t)){let r=ne(e,t,e.parent(n));r&&(D.get(t).id=r)}}e.edges().forEach(function(t){let n=e.edge(t);v.debug(`Edge `+t.v+` -> `+t.w+`: `+JSON.stringify(t)),v.debug(`Edge `+t.v+` -> `+t.w+`: `+JSON.stringify(e.edge(t)));let r=t.v,i=t.w;if(v.debug(`Fix XXX`,D,`ids:`,t.v,t.w,`Translating: `,D.get(t.v),` --- `,D.get(t.w)),D.get(t.v)||D.get(t.w)){if(v.debug(`Fixing and trying - removing XXX`,t.v,t.w,t.name),r=L(t.v),i=L(t.w),e.removeEdge(t.v,t.w,t.name),r!==t.v){let i=e.parent(r);D.get(i).externalConnections=!0,n.fromCluster=t.v}if(i!==t.w){let r=e.parent(i);D.get(r).externalConnections=!0,n.toCluster=t.w}v.debug(`Fix Replacing with XXX`,r,i,t.name),e.setEdge(r,i,n,t.name)}}),R(e,0),v.trace(D)}},`adjustClustersAndEdges`),R=y((e,t)=>{if(t>10){v.error(`Bailing out`);return}let n=e.nodes(),r=!1;for(let t of n){let n=e.children(t);r||=n.length>0}if(!r)v.debug(`Done, no node has children`,e.nodes());else{v.debug(`Nodes = `,n,t);for(let r of n)if(v.debug(`Extracting node`,r,D,D.has(r)&&!D.get(r).externalConnections,!e.parent(r),e.node(r),e.children(`D`),` Depth `,t),!D.has(r))v.debug(`Not a cluster`,r,t);else if(!D.get(r).externalConnections&&e.children(r)&&e.children(r).length>0){v.debug(`Cluster without external connections, without a parent and with children`,r,t);let n=e.graph().rankdir===`TB`?`LR`:`TB`;D.get(r)?.clusterData?.dir&&(n=D.get(r).clusterData.dir,v.debug(`Fixing dir`,D.get(r).clusterData.dir,n));let i=new b({multigraph:!0,compound:!0}).setGraph({rankdir:n,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});N(r,e,i,r),e.setNode(r,{clusterNode:!0,id:r,clusterData:D.get(r).clusterData,label:D.get(r).label,graph:i})}else v.debug(`Cluster ** `,r,` **not meeting the criteria !externalConnections:`,!D.get(r).externalConnections,` no parent: `,!e.parent(r),` children `,e.children(r)&&e.children(r).length>0,e.children(`D`),t),v.debug(D);n=e.nodes(),v.debug(`New list of nodes`,n);for(let r of n){let n=e.node(r);v.debug(` Now next level`,r,n),n?.clusterNode&&R(n.graph,t+1)}}},`extractor`),z=y((e,t)=>{if(t.length===0)return[];let n=Object.assign([],t);return t.forEach(t=>{let r=z(e,e.children(t));n=[...n,...r]}),n},`sorter`),te=y(e=>z(e,e.children()),`sortNodesByHierarchy`),B=y((e,t,n)=>{let r=e.parent(t);for(;r&&r!==n;){let t=D.get(r);if(t&&!t.externalConnections)return!0;r=e.parent(r)}return!1},`isNodeInExtractableCluster`),ne=y((e,t,n)=>{let r=e.children(t)??[];for(let i of r){if(i===n||j(i,n))continue;let r=I(i,e,t);if(r&&!B(e,r,t))return r}return null},`findSafeAnchorNode`);function V({prepareLayout:e,measureLayout:t,runLayoutCore:n,paintLayout:r,afterPaint:i,paintOptions:a}){let o=t??U;return y(async function(t,s,c,u){let d=s.select(`g`);(c?.insertMarkers??l)(d,t.markers,t.type,t.diagramId),H();let f={element:d,helpers:c,options:u};f.preparedLayout=await e?.(t,f);let p=await o(t,f),m=await n(t,f),h={...f,measure:p};r?await r(t,h,m):await W(t,h,a),await i?.(t,h,m)},`render`)}y(V,`createCommonLayoutRenderer`);function H(){p(),c(),t(),A()}y(H,`clearLayoutRenderState`);async function U(e,{element:t},n){return await E(t,e,n)}y(U,`defaultMeasureLayout`);async function W(e,t,n={}){let{measure:r}=t,{groups:i}=r;for(let r of n.getNodes?.(e,t)??e.nodes)n.skipNode?.(r,t)||await G(i,r,t,n);let a=q(e.nodes);for(let r of e.edges)J(r,n)||await Y(i,r,a,e,n,t)}y(W,`paintLayoutData`);async function G(t,n,r,i){n.clusterNode?u(n):K(n,r,i)?await e(t.clusters,n):u(n)}y(G,`paintLayoutNode`);function K(e,t,n){return e.isGroup===!0&&(n.isCluster?.(e,t)??!0)}y(K,`shouldPaintAsCluster`);function q(e){let t=new Map;for(let n of e)n?.id&&t.set(n.id,n);return t}y(q,`buildNodeLookup`);function J(e,t){return e.isLayoutOnly||!!t.skipEdge?.(e)}y(J,`shouldSkipPaintEdge`);async function Y(e,t,i,s,c,l){let u=n(e.edgePaths,{...t},c.clusterDb??new Map,s.type,X(t.start,t,i,l,c),X(t.end,t,i,l,c),s.diagramId,Z(t,c),s.layoutAlgorithm);r(t)&&(a.has(t.id)||await o(e.edgeLabels,t),Q(t,u))}y(Y,`paintLayoutEdge`);function X(e,t,n,r,i){return i.getEdgeNode?.(e,t,r)??(e?n.get(e)??{}:{})}y(X,`getRenderedNode`);function Z(e,t){return typeof t.skipIntersect==`function`?t.skipIntersect(e):t.skipIntersect??!1}y(Z,`shouldSkipIntersect`);function Q(e,t){let n=t?.updatedPath??t?.originalPath,r=_(),{subGraphTitleTotalMargin:o}=d({flowchart:r.flowchart??{}});if(e.label){let n=a.get(e.id),{x:r,y:i}=s(e,t);n.attr(`transform`,`translate(${r}, ${i+o/2})`)}for(let[t,r]of[[`startLeft`,e.startLabelLeft],[`startRight`,e.startLabelRight],[`endLeft`,e.endLabelLeft],[`endRight`,e.endLabelRight]])if(r){let{x:r,y:a}=$(e,t,n);i.get(e.id)[t].attr(`transform`,`translate(${r}, ${a})`)}}y(Q,`positionRenderedEdgeLabel`);var re={startLeft:`start_left`,startRight:`start_right`,endLeft:`end_left`,endRight:`end_right`};function $(e,t,n){let r=e.terminalLabelCenters?.[t];if(r)return{...r};if(!n)return{x:e.x,y:e.y};let i=t.startsWith(`start`)?e.arrowTypeStart:e.arrowTypeEnd;return h.calcTerminalLabelPosition(i?10:0,re[t],n)}y($,`terminalLabelTranslate`);export{U as a,te as c,S as i,D as n,I as o,V as r,w as s,ee as t};
2
+ import{r as e,t}from"./chunk-M57EVK23-PJSYCuUh.js";import{a as n,i as r,m as i,n as a,o,p as s,t as c,u as l}from"./chunk-DQASFODM-B-92o8Uj.js";import{i as u,n as d,r as f,t as p}from"./chunk-LEVMRMFU-Ds7OnJrC.js";import{o as m}from"./chunk-AXFCVDMN-BElluw_7.js";import{_ as h}from"./chunk-6MUBBAK2-BjMKSfTf.js";import{b as g,y as _}from"./chunk-BG4553SI-CUDwpWNL.js";import{n as v}from"./d3-selection-D3xgEEla.js";import{n as y}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{t as b}from"./graphlib-DoDw2DoG.js";import{t as x}from"./index-CZmGe9gc.js";function S(e,{edgePathsClass:t=`edges edgePaths`}={}){let n=e.insert(`g`).attr(`class`,`root`);return{clusters:n.insert(`g`).attr(`class`,`clusters`),edgePaths:n.insert(`g`).attr(`class`,t),edgeLabels:n.insert(`g`).attr(`class`,`edgeLabels`),nodes:n.insert(`g`).attr(`class`,`nodes`),rootGroups:n}}y(S,`createLayoutElementGroups`);async function C(e,t,n){if(t.label){let{shapeSvg:r,bbox:i}=await m(e,n===void 0?t:{...t,width:n});t.labelBBox={width:i.width,height:i.height},r.remove()}else t.labelBBox={width:0,height:0}}y(C,`measureGroupLabel`);async function w(e,t,n){let r=await f(e,t,n),i=r.node()?.getBBox()??{width:0,height:0};return t.width=i.width,t.height=i.height,r}y(w,`insertMeasuredNode`);function T(e,t,n){let r=e,i=new Set;for(;r;){if(r.dir)return r.dir;if(!r.parentId||i.has(r.parentId))break;i.add(r.parentId),r=t.get(r.parentId)}return n}y(T,`resolveNodeDir`);async function E(e,t,n={}){let i=new b({multigraph:!0,compound:!0}),a=[...t.edges],s=g(),c=S(e),{edgeLabels:l,nodes:u}=c,d=new Map,f=new Map(t.nodes.map(e=>[e.id,e])),p=t.direction,m=e.node()!=null;await Promise.all(t.nodes.map(async e=>{if(e.isGroup){if(m){let t=n.unwrapGroupLabels&&e.labelType!==`markdown`;await C(u,e,t?1/0:void 0)}i.setNode(e.id,{...e})}else{if(m){let t=await w(u,e,{config:s,dir:T(e,f,p)});d.set(e.id,t)}i.setNode(e.id,{...e})}}));for(let e of a)m&&r(e)&&await o(l,e),i.setEdge(e.start,e.end,{...e},e.id),t.edges.some(t=>t.id===e.id)||t.edges.push(e);if(globalThis.mermaidCaptureSizes){let{captureNodeSizes:n}=await x(async()=>{let{captureNodeSizes:e}=await import(`./sizeCapture-INFHLROL-3uHXrFqA.js`);return{captureNodeSizes:e}},__vite__mapDeps([0,1]),import.meta.url);n(e,t)}return{graph:i,groups:c,nodeElements:d}}y(E,`createGraphWithElements`);var D=new Map,O=new Map,k=new Map,A=y(()=>{O.clear(),k.clear(),D.clear()},`clear`),j=y((e,t)=>{let n=O.get(t)||[];return v.trace(`In isDescendant`,t,` `,e,` = `,n.includes(e)),n.includes(e)},`isDescendant`),M=y((e,t)=>{let n=O.get(t)||[];return v.info(`Descendants of `,t,` is `,n),v.info(`Edge is `,e),e.v===t||e.w===t?!1:n?n.includes(e.v)||j(e.v,t)||j(e.w,t)||n.includes(e.w):(v.debug(`Tilt, `,t,`,not in descendants`),!1)},`edgeInCluster`),N=y((e,t,n,r)=>{v.debug(`Copying children of `,e,`root`,r,`data`,t.node(e),r);let i=t.children(e)||[];e!==r&&i.push(e),v.debug(`Copying (nodes) clusterId`,e,`nodes`,i),i.forEach(i=>{if(t.children(i).length>0)N(i,t,n,r);else{let a=t.node(i);v.info(`cp `,i,` to `,r,` with parent `,e),n.setNode(i,a),r!==t.parent(i)&&(v.debug(`Setting parent`,i,t.parent(i)),n.setParent(i,t.parent(i))),e!==r&&i!==e?(v.debug(`Setting parent`,i,e),n.setParent(i,e)):(v.info(`In copy `,e,`root`,r,`data`,t.node(e),r),v.debug(`Not Setting parent for node=`,i,`cluster!==rootId`,e!==r,`node!==clusterId`,i!==e));let o=t.edges(i);v.debug(`Copying Edges`,o),o.forEach(i=>{v.info(`Edge`,i);let a=t.edge(i.v,i.w,i.name);v.info(`Edge data`,a,r);try{M(i,r)?(v.info(`Copying as `,i.v,i.w,a,i.name),n.setEdge(i.v,i.w,a,i.name),v.info(`newGraph edges `,n.edges(),n.edge(n.edges()[0]))):v.info(`Skipping copy of edge `,i.v,`-->`,i.w,` rootId: `,r,` clusterId:`,e)}catch(e){v.error(e)}})}v.debug(`Removing node`,i),t.removeNode(i)})},`copy`),P=y((e,t)=>{let n=t.children(e),r=[...n];for(let i of n)k.set(i,e),r=[...r,...P(i,t)];return r},`extractDescendants`),F=y((e,t,n)=>{let r=e.edges().filter(e=>e.v===t||e.w===t),i=e.edges().filter(e=>e.v===n||e.w===n),a=r.map(e=>({v:e.v===t?n:e.v,w:e.w===t?t:e.w})),o=i.map(e=>({v:e.v,w:e.w}));return a.filter(e=>o.some(t=>e.v===t.v&&e.w===t.w))},`findCommonEdges`),I=y((e,t,n)=>{let r=t.children(e);if(v.trace(`Searching children of id `,e,r),r.length<1)return e;let i;for(let e of r){let r=I(e,t,n),a=F(t,n,r);if(r){if(a.length>0)i=r;else return r}}return i},`findNonClusterChild`),L=y(e=>!D.has(e)||!D.get(e).externalConnections?e:D.has(e)?D.get(e).id:e,`getAnchorId`),ee=y((e,t)=>{if(!e||t>10)v.debug(`Opting out, no graph `);else{v.debug(`Opting in, graph `),e.nodes().forEach(function(t){e.children(t).length>0&&(v.debug(`Cluster identified`,t,` Replacement id in edges: `,I(t,e,t)),O.set(t,P(t,e)),D.set(t,{id:I(t,e,t),clusterData:e.node(t)}))}),e.nodes().forEach(function(t){let n=e.children(t),r=e.edges();n.length>0?(v.debug(`Cluster identified`,t,O),r.forEach(e=>{j(e.v,t)^j(e.w,t)&&(v.debug(`Edge: `,e,` leaves cluster `,t),v.debug(`Descendants of XXX `,t,`: `,O.get(t)),D.get(t).externalConnections=!0)})):v.debug(`Not a cluster `,t,O)});for(let t of D.keys()){let n=D.get(t).id,r=e.parent(n);r!==t&&D.has(r)&&!D.get(r).externalConnections&&(D.get(t).id=r);let i=e.edges().some(e=>e.v===t);if(n&&D.get(t)?.externalConnections&&i&&B(e,n,t)){let r=ne(e,t,e.parent(n));r&&(D.get(t).id=r)}}e.edges().forEach(function(t){let n=e.edge(t);v.debug(`Edge `+t.v+` -> `+t.w+`: `+JSON.stringify(t)),v.debug(`Edge `+t.v+` -> `+t.w+`: `+JSON.stringify(e.edge(t)));let r=t.v,i=t.w;if(v.debug(`Fix XXX`,D,`ids:`,t.v,t.w,`Translating: `,D.get(t.v),` --- `,D.get(t.w)),D.get(t.v)||D.get(t.w)){if(v.debug(`Fixing and trying - removing XXX`,t.v,t.w,t.name),r=L(t.v),i=L(t.w),e.removeEdge(t.v,t.w,t.name),r!==t.v){let i=e.parent(r);D.get(i).externalConnections=!0,n.fromCluster=t.v}if(i!==t.w){let r=e.parent(i);D.get(r).externalConnections=!0,n.toCluster=t.w}v.debug(`Fix Replacing with XXX`,r,i,t.name),e.setEdge(r,i,n,t.name)}}),R(e,0),v.trace(D)}},`adjustClustersAndEdges`),R=y((e,t)=>{if(t>10){v.error(`Bailing out`);return}let n=e.nodes(),r=!1;for(let t of n){let n=e.children(t);r||=n.length>0}if(!r)v.debug(`Done, no node has children`,e.nodes());else{v.debug(`Nodes = `,n,t);for(let r of n)if(v.debug(`Extracting node`,r,D,D.has(r)&&!D.get(r).externalConnections,!e.parent(r),e.node(r),e.children(`D`),` Depth `,t),!D.has(r))v.debug(`Not a cluster`,r,t);else if(!D.get(r).externalConnections&&e.children(r)&&e.children(r).length>0){v.debug(`Cluster without external connections, without a parent and with children`,r,t);let n=e.graph().rankdir===`TB`?`LR`:`TB`;D.get(r)?.clusterData?.dir&&(n=D.get(r).clusterData.dir,v.debug(`Fixing dir`,D.get(r).clusterData.dir,n));let i=new b({multigraph:!0,compound:!0}).setGraph({rankdir:n,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});N(r,e,i,r),e.setNode(r,{clusterNode:!0,id:r,clusterData:D.get(r).clusterData,label:D.get(r).label,graph:i})}else v.debug(`Cluster ** `,r,` **not meeting the criteria !externalConnections:`,!D.get(r).externalConnections,` no parent: `,!e.parent(r),` children `,e.children(r)&&e.children(r).length>0,e.children(`D`),t),v.debug(D);n=e.nodes(),v.debug(`New list of nodes`,n);for(let r of n){let n=e.node(r);v.debug(` Now next level`,r,n),n?.clusterNode&&R(n.graph,t+1)}}},`extractor`),z=y((e,t)=>{if(t.length===0)return[];let n=Object.assign([],t);return t.forEach(t=>{let r=z(e,e.children(t));n=[...n,...r]}),n},`sorter`),te=y(e=>z(e,e.children()),`sortNodesByHierarchy`),B=y((e,t,n)=>{let r=e.parent(t);for(;r&&r!==n;){let t=D.get(r);if(t&&!t.externalConnections)return!0;r=e.parent(r)}return!1},`isNodeInExtractableCluster`),ne=y((e,t,n)=>{let r=e.children(t)??[];for(let i of r){if(i===n||j(i,n))continue;let r=I(i,e,t);if(r&&!B(e,r,t))return r}return null},`findSafeAnchorNode`);function V({prepareLayout:e,measureLayout:t,runLayoutCore:n,paintLayout:r,afterPaint:i,paintOptions:a}){let o=t??U;return y(async function(t,s,c,u){let d=s.select(`g`);(c?.insertMarkers??l)(d,t.markers,t.type,t.diagramId),H();let f={element:d,helpers:c,options:u};f.preparedLayout=await e?.(t,f);let p=await o(t,f),m=await n(t,f),h={...f,measure:p};r?await r(t,h,m):await W(t,h,a),await i?.(t,h,m)},`render`)}y(V,`createCommonLayoutRenderer`);function H(){p(),c(),t(),A()}y(H,`clearLayoutRenderState`);async function U(e,{element:t},n){return await E(t,e,n)}y(U,`defaultMeasureLayout`);async function W(e,t,n={}){let{measure:r}=t,{groups:i}=r;for(let r of n.getNodes?.(e,t)??e.nodes)n.skipNode?.(r,t)||await G(i,r,t,n);let a=q(e.nodes);for(let r of e.edges)J(r,n)||await Y(i,r,a,e,n,t)}y(W,`paintLayoutData`);async function G(t,n,r,i){n.clusterNode?u(n):K(n,r,i)?await e(t.clusters,n):u(n)}y(G,`paintLayoutNode`);function K(e,t,n){return e.isGroup===!0&&(n.isCluster?.(e,t)??!0)}y(K,`shouldPaintAsCluster`);function q(e){let t=new Map;for(let n of e)n?.id&&t.set(n.id,n);return t}y(q,`buildNodeLookup`);function J(e,t){return e.isLayoutOnly||!!t.skipEdge?.(e)}y(J,`shouldSkipPaintEdge`);async function Y(e,t,i,s,c,l){let u=n(e.edgePaths,{...t},c.clusterDb??new Map,s.type,X(t.start,t,i,l,c),X(t.end,t,i,l,c),s.diagramId,Z(t,c),s.layoutAlgorithm);r(t)&&(a.has(t.id)||await o(e.edgeLabels,t),Q(t,u))}y(Y,`paintLayoutEdge`);function X(e,t,n,r,i){return i.getEdgeNode?.(e,t,r)??(e?n.get(e)??{}:{})}y(X,`getRenderedNode`);function Z(e,t){return typeof t.skipIntersect==`function`?t.skipIntersect(e):t.skipIntersect??!1}y(Z,`shouldSkipIntersect`);function Q(e,t){let n=t?.updatedPath??t?.originalPath,r=_(),{subGraphTitleTotalMargin:o}=d({flowchart:r.flowchart??{}});if(e.label){let n=a.get(e.id),{x:r,y:i}=s(e,t);n.attr(`transform`,`translate(${r}, ${i+o/2})`)}for(let[t,r]of[[`startLeft`,e.startLabelLeft],[`startRight`,e.startLabelRight],[`endLeft`,e.endLabelLeft],[`endRight`,e.endLabelRight]])if(r){let{x:r,y:a}=$(e,t,n);i.get(e.id)[t].attr(`transform`,`translate(${r}, ${a})`)}}y(Q,`positionRenderedEdgeLabel`);var re={startLeft:`start_left`,startRight:`start_right`,endLeft:`end_left`,endRight:`end_right`};function $(e,t,n){let r=e.terminalLabelCenters?.[t];if(r)return{...r};if(!n)return{x:e.x,y:e.y};let i=t.startsWith(`start`)?e.arrowTypeStart:e.arrowTypeEnd;return h.calcTerminalLabelPosition(i?10:0,re[t],n)}y($,`terminalLabelTranslate`);export{U as a,te as c,S as i,D as n,I as o,V as r,w as s,ee as t};
@@ -1 +1 @@
1
- import{c as e}from"./chunk-DQASFODM-DSgprMfc.js";import{n as t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";var n=5,r=1e-5,i=2,a=.6,o=1e-6;function s(e){let t=[];for(let n=0;n<e.length-1;n++)t.push({a:e[n],b:e[n+1]});return t}t(s,`buildSegmentList`);function c(e,t,n,r){let i=t.x-e.x,a=t.y-e.y,s=r.x-n.x,c=r.y-n.y,l=i*c-a*s;if(l===0)return null;let u=n.x-e.x,d=n.y-e.y,f=(u*c-d*s)/l,p=(u*a-d*i)/l;return f<=o||f>=1-o||p<=o||p>=1-o?null:{point:{x:e.x+f*i,y:e.y+f*a},tA:f,tB:p}}t(c,`segmentIntersection`);function l(e){return Math.abs(e.b.x-e.a.x)>=Math.abs(e.b.y-e.a.y)}t(l,`isHorizontalSeg`);function u(e,t,r){if(e.curve!==`rounded`)return!1;let i=e.points,a=i[t],o=i[t+1];if(!a||!o)return!1;let s=Math.hypot(o.x-a.x,o.y-a.y),c=r*s,l=t>0?_(i[t-1],a,o,n):null;if(l&&c<l.cutLen)return!0;let u=t+2<i.length?_(a,o,i[t+2],n):null;return u!==null&&s-c<u.cutLen}t(u,`crossingSitsInRoundedCorner`);function d(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n],i=s(r.points);for(let a=n+1;a<e.length;a++){let n=e[a],o=s(n.points);for(let[e,a]of i.entries())for(let[i,s]of o.entries()){let o=c(a.a,a.b,s.a,s.b);if(!o||u(r,e,o.tA)||u(n,i,o.tB))continue;let d=l(a);d!==l(s)&&d?t.push({jumpEdgeId:r.id,otherEdgeId:n.id,segIndex:e,t:o.tA,point:o.point}):t.push({jumpEdgeId:n.id,otherEdgeId:r.id,segIndex:i,t:o.tB,point:o.point})}}}return t}t(d,`findEdgeIntersections`);function f(e){return`${Math.round(e*1e3)/1e3}`}t(f,`fmt`);function p(e){return`${f(e.x)},${f(e.y)}`}t(p,`pointToString`);function m(e){let t=e.b.x-e.a.x,n=e.b.y-e.a.y;return Math.abs(t)>=Math.abs(n)?+(t>=0):+(n>=0)}t(m,`getArcSweepFlag`);function h(t,n){if(t.length<2)return t.map(e=>({...e}));let r=t.map(e=>({...e})),i=n.arrowTypeStart&&e[n.arrowTypeStart];if(i){let e=t[0],n=t[1],a=Math.atan2(n.y-e.y,n.x-e.x);r[0].x=e.x+i*Math.cos(a),r[0].y=e.y+i*Math.sin(a)}let a=n.arrowTypeEnd&&e[n.arrowTypeEnd];if(a){let e=t.length,n=t[e-2],i=t[e-1],o=Math.atan2(i.y-n.y,i.x-n.x);r[e-1].x=i.x-a*Math.cos(o),r[e-1].y=i.y-a*Math.sin(o)}return r}t(h,`applyMarkerOffsets`);function g(e,t,n,r,i){let a=e.point.x,o=e.point.y,s={x:a-t*e.r,y:o-n*e.r},c={x:a+t*e.r,y:o+n*e.r},l=[`L${p(s)}`];return i===`arc`?l.push(`A${f(e.r)},${f(e.r)} 0 0 ${r} ${p(c)}`):l.push(`M${p(c)}`),l}t(g,`emitJump`);function _(e,t,n,i){let a=t.x-e.x,o=t.y-e.y,s=n.x-t.x,c=n.y-t.y,l=Math.hypot(a,o),u=Math.hypot(s,c);if(l<r||u<r)return null;let d=a/l,f=o/l,p=s/u,m=c/u,h=d*p+f*m,g=Math.acos(Math.max(-1,Math.min(1,h)));if(g<r||Math.abs(Math.PI-g)<r)return null;let _=Math.min(i/Math.sin(g/2),l/2,u/2);return{startX:t.x-d*_,startY:t.y-f*_,endX:t.x+p*_,endY:t.y+m*_,ctrlX:t.x,ctrlY:t.y,cutLen:_}}t(_,`computeRoundedCorner`);function v(e,t,r){let o=e.points;if(o.length<2)return``;let c=h(o,e),l=e.curve===`rounded`,u=s(c),d=new Map;for(let e of t){let t=u[e.segIndex];if(!t)continue;let n=Math.hypot(t.b.x-t.a.x,t.b.y-t.a.y),i=d.get(e.segIndex)??[];i.push({t:e.t,point:e.point,d:e.t*n,r:r.jumpRadius}),d.set(e.segIndex,i)}let v=[`M${p(c[0])}`];for(let e=0;e<u.length;e++){let t=u[e],o=Math.hypot(t.b.x-t.a.x,t.b.y-t.a.y),s=o===0?0:(t.b.x-t.a.x)/o,h=o===0?0:(t.b.y-t.a.y)/o,y=m(t),b=0;if(l&&e>0){let t=_(c[e-1],c[e],c[e+1]??c[e],n);t&&(b=t.cutLen)}let x=o,S=null;l&&e<u.length-1&&(S=_(c[e],c[e+1],c[e+2]??c[e+1],n),S&&(x=o-S.cutLen));let C=r.jumpRadius*a,w=[...d.get(e)??[]].sort((e,t)=>e.t-t.t).filter(e=>{let t=Math.min(e.d-b,x-e.d)-i;return e.r=Math.min(e.r,t),e.r>=C});for(let e=0;e<w.length-1;e++){let t=w[e+1].d-w[e].d;if(w[e].r+w[e+1].r>t){let n=t/2;w[e].r=Math.min(w[e].r,n),w[e+1].r=Math.min(w[e+1].r,n)}}for(let e of w)e.r<C||v.push(...g(e,s,h,y,r.jumpStyle));l&&S?(v.push(`L${f(S.startX)},${f(S.startY)}`),v.push(`Q${f(S.ctrlX)},${f(S.ctrlY)} ${f(S.endX)},${f(S.endY)}`)):v.push(`L${p(t.b)}`)}return v.join(` `)}t(v,`rewriteEdgePath`);function y(e){return/^[\d\s+,.LMelm-]*$/.test(e)}t(y,`isStraightPath`);function b(e){return!e||e===`linear`||e===`rounded`||e===`step`||e===`stepBefore`||e===`stepAfter`}t(b,`curveSupportsLineHops`);function x(e){if(!e)return null;try{let t=typeof atob==`function`?atob(e):Buffer.from(e,`base64`).toString(),n=JSON.parse(t);if(!Array.isArray(n))return null;let r=[];for(let e of n)e&&typeof e.x==`number`&&typeof e.y==`number`&&r.push({x:e.x,y:e.y});return r.length>=2?r:null}catch{return null}}t(x,`decodeDataPoints`);function S(e,t,n){if(!n.enabled)return;let r=e.node();if(!r)return;let i=new Map;for(let e of t)i.set(e.id,e);let a=new Map;for(let e of r.querySelectorAll(`path[data-id]`)){let t=e.getAttribute(`data-id`);t!==null&&!a.has(t)&&a.set(t,e)}let o=[];for(let e of t){let t=a.get(e.id);if(!t)continue;let n=x(t.getAttribute(`data-points`))??e.points;o.push({...e,points:n})}let s=d(o);if(s.length===0)return;let c=new Map;for(let e of s){let t=c.get(e.jumpEdgeId)??[];t.push(e),c.set(e.jumpEdgeId,t)}for(let e of o){let t=c.get(e.id);if(!t||t.length===0)continue;let r=i.get(e.id)?.curve;if(r!==void 0&&!b(r))continue;let o=a.get(e.id);if(!o||r===void 0&&!y(o.getAttribute(`d`)??``))continue;let s=o.getAttribute(`style`)??``,l=/stroke-dasharray\s*:\s*0\s+([\d.]+)\s+[\d.]+\s+([\d.]+)/.exec(s),u=l?Number.parseFloat(l[1]):null,d=l?Number.parseFloat(l[2]):null,f=v(e,t,n);if(o.setAttribute(`d`,f),u!==null&&d!==null&&typeof o.getTotalLength==`function`){let e=o.getTotalLength(),t=`0 ${u} ${Math.max(0,e-u-d)} ${d}`,n=s.replace(/stroke-dasharray\s*:[^;]*;?/g,`stroke-dasharray: ${t};`).replace(/;\s*;+/g,`;`);o.setAttribute(`style`,n)}}}t(S,`applyLineJumpsToSvg`);export{S as t};
1
+ import{c as e}from"./chunk-DQASFODM-B-92o8Uj.js";import{n as t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";var n=5,r=1e-5,i=2,a=.6,o=1e-6;function s(e){let t=[];for(let n=0;n<e.length-1;n++)t.push({a:e[n],b:e[n+1]});return t}t(s,`buildSegmentList`);function c(e,t,n,r){let i=t.x-e.x,a=t.y-e.y,s=r.x-n.x,c=r.y-n.y,l=i*c-a*s;if(l===0)return null;let u=n.x-e.x,d=n.y-e.y,f=(u*c-d*s)/l,p=(u*a-d*i)/l;return f<=o||f>=1-o||p<=o||p>=1-o?null:{point:{x:e.x+f*i,y:e.y+f*a},tA:f,tB:p}}t(c,`segmentIntersection`);function l(e){return Math.abs(e.b.x-e.a.x)>=Math.abs(e.b.y-e.a.y)}t(l,`isHorizontalSeg`);function u(e,t,r){if(e.curve!==`rounded`)return!1;let i=e.points,a=i[t],o=i[t+1];if(!a||!o)return!1;let s=Math.hypot(o.x-a.x,o.y-a.y),c=r*s,l=t>0?_(i[t-1],a,o,n):null;if(l&&c<l.cutLen)return!0;let u=t+2<i.length?_(a,o,i[t+2],n):null;return u!==null&&s-c<u.cutLen}t(u,`crossingSitsInRoundedCorner`);function d(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n],i=s(r.points);for(let a=n+1;a<e.length;a++){let n=e[a],o=s(n.points);for(let[e,a]of i.entries())for(let[i,s]of o.entries()){let o=c(a.a,a.b,s.a,s.b);if(!o||u(r,e,o.tA)||u(n,i,o.tB))continue;let d=l(a);d!==l(s)&&d?t.push({jumpEdgeId:r.id,otherEdgeId:n.id,segIndex:e,t:o.tA,point:o.point}):t.push({jumpEdgeId:n.id,otherEdgeId:r.id,segIndex:i,t:o.tB,point:o.point})}}}return t}t(d,`findEdgeIntersections`);function f(e){return`${Math.round(e*1e3)/1e3}`}t(f,`fmt`);function p(e){return`${f(e.x)},${f(e.y)}`}t(p,`pointToString`);function m(e){let t=e.b.x-e.a.x,n=e.b.y-e.a.y;return Math.abs(t)>=Math.abs(n)?+(t>=0):+(n>=0)}t(m,`getArcSweepFlag`);function h(t,n){if(t.length<2)return t.map(e=>({...e}));let r=t.map(e=>({...e})),i=n.arrowTypeStart&&e[n.arrowTypeStart];if(i){let e=t[0],n=t[1],a=Math.atan2(n.y-e.y,n.x-e.x);r[0].x=e.x+i*Math.cos(a),r[0].y=e.y+i*Math.sin(a)}let a=n.arrowTypeEnd&&e[n.arrowTypeEnd];if(a){let e=t.length,n=t[e-2],i=t[e-1],o=Math.atan2(i.y-n.y,i.x-n.x);r[e-1].x=i.x-a*Math.cos(o),r[e-1].y=i.y-a*Math.sin(o)}return r}t(h,`applyMarkerOffsets`);function g(e,t,n,r,i){let a=e.point.x,o=e.point.y,s={x:a-t*e.r,y:o-n*e.r},c={x:a+t*e.r,y:o+n*e.r},l=[`L${p(s)}`];return i===`arc`?l.push(`A${f(e.r)},${f(e.r)} 0 0 ${r} ${p(c)}`):l.push(`M${p(c)}`),l}t(g,`emitJump`);function _(e,t,n,i){let a=t.x-e.x,o=t.y-e.y,s=n.x-t.x,c=n.y-t.y,l=Math.hypot(a,o),u=Math.hypot(s,c);if(l<r||u<r)return null;let d=a/l,f=o/l,p=s/u,m=c/u,h=d*p+f*m,g=Math.acos(Math.max(-1,Math.min(1,h)));if(g<r||Math.abs(Math.PI-g)<r)return null;let _=Math.min(i/Math.sin(g/2),l/2,u/2);return{startX:t.x-d*_,startY:t.y-f*_,endX:t.x+p*_,endY:t.y+m*_,ctrlX:t.x,ctrlY:t.y,cutLen:_}}t(_,`computeRoundedCorner`);function v(e,t,r){let o=e.points;if(o.length<2)return``;let c=h(o,e),l=e.curve===`rounded`,u=s(c),d=new Map;for(let e of t){let t=u[e.segIndex];if(!t)continue;let n=Math.hypot(t.b.x-t.a.x,t.b.y-t.a.y),i=d.get(e.segIndex)??[];i.push({t:e.t,point:e.point,d:e.t*n,r:r.jumpRadius}),d.set(e.segIndex,i)}let v=[`M${p(c[0])}`];for(let e=0;e<u.length;e++){let t=u[e],o=Math.hypot(t.b.x-t.a.x,t.b.y-t.a.y),s=o===0?0:(t.b.x-t.a.x)/o,h=o===0?0:(t.b.y-t.a.y)/o,y=m(t),b=0;if(l&&e>0){let t=_(c[e-1],c[e],c[e+1]??c[e],n);t&&(b=t.cutLen)}let x=o,S=null;l&&e<u.length-1&&(S=_(c[e],c[e+1],c[e+2]??c[e+1],n),S&&(x=o-S.cutLen));let C=r.jumpRadius*a,w=[...d.get(e)??[]].sort((e,t)=>e.t-t.t).filter(e=>{let t=Math.min(e.d-b,x-e.d)-i;return e.r=Math.min(e.r,t),e.r>=C});for(let e=0;e<w.length-1;e++){let t=w[e+1].d-w[e].d;if(w[e].r+w[e+1].r>t){let n=t/2;w[e].r=Math.min(w[e].r,n),w[e+1].r=Math.min(w[e+1].r,n)}}for(let e of w)e.r<C||v.push(...g(e,s,h,y,r.jumpStyle));l&&S?(v.push(`L${f(S.startX)},${f(S.startY)}`),v.push(`Q${f(S.ctrlX)},${f(S.ctrlY)} ${f(S.endX)},${f(S.endY)}`)):v.push(`L${p(t.b)}`)}return v.join(` `)}t(v,`rewriteEdgePath`);function y(e){return/^[\d\s+,.LMelm-]*$/.test(e)}t(y,`isStraightPath`);function b(e){return!e||e===`linear`||e===`rounded`||e===`step`||e===`stepBefore`||e===`stepAfter`}t(b,`curveSupportsLineHops`);function x(e){if(!e)return null;try{let t=typeof atob==`function`?atob(e):Buffer.from(e,`base64`).toString(),n=JSON.parse(t);if(!Array.isArray(n))return null;let r=[];for(let e of n)e&&typeof e.x==`number`&&typeof e.y==`number`&&r.push({x:e.x,y:e.y});return r.length>=2?r:null}catch{return null}}t(x,`decodeDataPoints`);function S(e,t,n){if(!n.enabled)return;let r=e.node();if(!r)return;let i=new Map;for(let e of t)i.set(e.id,e);let a=new Map;for(let e of r.querySelectorAll(`path[data-id]`)){let t=e.getAttribute(`data-id`);t!==null&&!a.has(t)&&a.set(t,e)}let o=[];for(let e of t){let t=a.get(e.id);if(!t)continue;let n=x(t.getAttribute(`data-points`))??e.points;o.push({...e,points:n})}let s=d(o);if(s.length===0)return;let c=new Map;for(let e of s){let t=c.get(e.jumpEdgeId)??[];t.push(e),c.set(e.jumpEdgeId,t)}for(let e of o){let t=c.get(e.id);if(!t||t.length===0)continue;let r=i.get(e.id)?.curve;if(r!==void 0&&!b(r))continue;let o=a.get(e.id);if(!o||r===void 0&&!y(o.getAttribute(`d`)??``))continue;let s=o.getAttribute(`style`)??``,l=/stroke-dasharray\s*:\s*0\s+([\d.]+)\s+[\d.]+\s+([\d.]+)/.exec(s),u=l?Number.parseFloat(l[1]):null,d=l?Number.parseFloat(l[2]):null,f=v(e,t,n);if(o.setAttribute(`d`,f),u!==null&&d!==null&&typeof o.getTotalLength==`function`){let e=o.getTotalLength(),t=`0 ${u} ${Math.max(0,e-u-d)} ${d}`,n=s.replace(/stroke-dasharray\s*:[^;]*;?/g,`stroke-dasharray: ${t};`).replace(/;\s*;+/g,`;`);o.setAttribute(`style`,n)}}}t(S,`applyLineJumpsToSvg`);export{S as t};
@@ -1 +1 @@
1
- import{s as e}from"./chunk-AXFCVDMN-Dgn3RHlx.js";import{d as t}from"./chunk-6MUBBAK2-CWRxZCiu.js";import{n}from"./d3-selection-BhemR5ul.js";import{n as r}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";var i=r(({flowchart:e})=>{let t=e?.subGraphTitleMargin?.top??0,n=e?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:n,subGraphTitleTotalMargin:t+n}},`getSubGraphTitleMargins`),a=new Map;async function o(n,r,i){let o,s;r.shape===`rect`&&(r.shape=r.rx&&r.ry?`roundedRect`:`squareRect`);let c=r.shape?e[r.shape]:void 0;if(!c)throw Error(`No such shape: ${r.shape}. Please check your syntax.`);if(r.link){let e;i.config.securityLevel===`sandbox`?e=`_top`:r.linkTarget&&(e=r.linkTarget||`_blank`),o=n.insert(`svg:a`).attr(`xlink:href`,r.link).attr(`target`,e??null),s=await c(o,r,i)}else s=await c(n,r,i),o=s;return o.attr(`data-look`,t(r.look)),r.tooltip&&s.attr(`title`,r.tooltip),a.set(r.id,o),r.haveCallback&&o.attr(`class`,o.attr(`class`)+` clickable`),o}r(o,`insertNode`);var s=r((e,t)=>{a.set(t.id,e)},`setNodeElem`),c=r(()=>{a.clear()},`clear`),l=r(e=>{let t=a.get(e.id);n.trace(`Transforming node`,e.diff,e,`translate(`+(e.x-e.width/2-5)+`, `+e.width/2+`)`);let r=e.diff||0;return e.clusterNode?t.attr(`transform`,`translate(`+(e.x+r-e.width/2)+`, `+(e.y-e.height/2-8)+`)`):t.attr(`transform`,`translate(`+e.x+`, `+e.y+`)`),r},`positionNode`);export{s as a,l as i,i as n,o as r,c as t};
1
+ import{s as e}from"./chunk-AXFCVDMN-BElluw_7.js";import{d as t}from"./chunk-6MUBBAK2-BjMKSfTf.js";import{n}from"./d3-selection-D3xgEEla.js";import{n as r}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";var i=r(({flowchart:e})=>{let t=e?.subGraphTitleMargin?.top??0,n=e?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:n,subGraphTitleTotalMargin:t+n}},`getSubGraphTitleMargins`),a=new Map;async function o(n,r,i){let o,s;r.shape===`rect`&&(r.shape=r.rx&&r.ry?`roundedRect`:`squareRect`);let c=r.shape?e[r.shape]:void 0;if(!c)throw Error(`No such shape: ${r.shape}. Please check your syntax.`);if(r.link){let e;i.config.securityLevel===`sandbox`?e=`_top`:r.linkTarget&&(e=r.linkTarget||`_blank`),o=n.insert(`svg:a`).attr(`xlink:href`,r.link).attr(`target`,e??null),s=await c(o,r,i)}else s=await c(n,r,i),o=s;return o.attr(`data-look`,t(r.look)),r.tooltip&&s.attr(`title`,r.tooltip),a.set(r.id,o),r.haveCallback&&o.attr(`class`,o.attr(`class`)+` clickable`),o}r(o,`insertNode`);var s=r((e,t)=>{a.set(t.id,e)},`setNodeElem`),c=r(()=>{a.clear()},`clear`),l=r(e=>{let t=a.get(e.id);n.trace(`Transforming node`,e.diff,e,`translate(`+(e.x-e.width/2-5)+`, `+e.width/2+`)`);let r=e.diff||0;return e.clusterNode?t.attr(`transform`,`translate(`+(e.x+r-e.width/2)+`, `+(e.y-e.height/2-8)+`)`):t.attr(`transform`,`translate(`+e.x+`, `+e.y+`)`),r},`positionNode`);export{s as a,l as i,i as n,o as r,c as t};
@@ -1 +1 @@
1
- import{n as e}from"./chunk-LEVMRMFU-2jTGUstS.js";import{i as t,n,t as r}from"./chunk-AXFCVDMN-Dgn3RHlx.js";import{a as i,i as a,t as o}from"./chunk-X4PVCEUW-CMG5EfZ9.js";import{n as s}from"./chunk-STOXU5M4-AwEqcNnS.js";import{s as c}from"./chunk-J5ZVWO5B-oDCd-gWO.js";import{b as l,g as u,w as d}from"./chunk-BG4553SI-BDnAChfb.js";import{n as f,t as p}from"./d3-selection-BhemR5ul.js";import{n as m}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{t as h}from"./rough.esm-Dy-Kn_BL.js";var g=m(async(e,n,{variant:r=`swimlane`}={})=>{let o=r===`pool`,d=o?`pool swimlane`:`swimlane`,m=o?`pool-label swimlane-label`:`swimlane-label`,g=o?`pool-title swimlane-title`:`swimlane-title`,_=o?`pool-body swimlane-body`:`swimlane-body`,v=l(),{theme:y,themeVariables:b,handDrawnSeed:x}=v,{clusterBkg:S,clusterBorder:C,borderColorArray:w}=b,T=C,{labelStyles:E,nodeStyles:D,borderStyles:O,backgroundStyles:k}=a(n),A=e.insert(`g`).attr(`class`,`cluster `+d+` `+(n.cssClasses||``)).attr(`id`,n.domId??n.id).attr(`data-id`,n.id).attr(`data-et`,`cluster`).attr(`data-look`,n.look);c(A,n.colorIndex,y,w);let j=u(v.flowchart.htmlLabels),M=n.direction===`LR`,N=A.insert(`g`).attr(`class`,`cluster-label `+m),P=await s(N,n.label,{style:n.labelStyle,useHtmlLabels:j,isNode:!0,width:n.width}),F=P.getBBox();if(j){let e=P.children[0],t=p(P);F=e.getBoundingClientRect(),t.attr(`width`,F.width),t.attr(`height`,F.height)}let I=n.padding??0,L=n.width<=F.width+I?F.width+I:n.width;n.diff=n.width<=F.width+I?(L-n.width)/2-I:-I;let R=n.height,z=n.y-R/2,B=n.y+R/2,V=n.x-L/2,H=n.swimlaneContentTop===void 0?z+R/3:n.swimlaneContentTop,U=M?4:0,W=F.height+2*U,G,K;if(M){let e=Math.max(W,F.height+2*U),t=V+e,r=Math.max(0,L-e);if(n.look===`handDrawn`){let a=h.svg(A),o=i(n,{roughness:.7,fill:S,stroke:T,seed:x}),s=i(n,{roughness:.7,fill:`none`,stroke:T,seed:x}),c=a.rectangle(V,z,e,R,o);G=A.insert(()=>c,`:first-child`).attr(`class`,g);let l=a.rectangle(t,z,r,R,s);K=A.insert(()=>l,`:first-child`).attr(`class`,_),G.select(`path:nth-child(2)`).attr(`style`,O.join(`;`)),G.select(`path`).attr(`style`,k.join(`;`).replace(`fill`,`stroke`))}else G=A.insert(`rect`,`:first-child`),K=A.insert(`rect`,`:first-child`),G.attr(`class`,g).attr(`style`,D).attr(`x`,V).attr(`y`,z).attr(`width`,e).attr(`height`,R).attr(`fill`,S).attr(`stroke`,T),K.attr(`class`,_).attr(`style`,D).attr(`x`,t).attr(`y`,z).attr(`width`,r).attr(`height`,R).attr(`fill`,`none`).attr(`stroke`,T);let a=V+e/2,o=n.y;N.attr(`transform`,`translate(${a}, ${o}) rotate(-90) translate(${-F.width/2}, ${-F.height/2})`)}else{let e=Math.max(0,H-z),t=Math.min(W,e),r=z+t,a=Math.max(0,B-r),o=n.x-L/2;if(n.look===`handDrawn`){let e=h.svg(A),s=i(n,{roughness:.7,fill:S,stroke:T,fillWeight:3,seed:x}),c=i(n,{roughness:.7,fill:`none`,stroke:T,seed:x}),l=e.rectangle(o,z,L,t,s);G=A.insert(()=>l,`:first-child`).attr(`class`,g);let u=e.rectangle(o,r,L,a,c);K=A.insert(()=>u,`:first-child`).attr(`class`,_),G.select(`path:nth-child(2)`).attr(`style`,O.join(`;`)),G.select(`path`).attr(`style`,k.join(`;`).replace(`fill`,`stroke`))}else G=A.insert(`rect`,`:first-child`),K=A.insert(`rect`,`:first-child`),G.attr(`class`,g).attr(`style`,D).attr(`x`,o).attr(`y`,z).attr(`width`,L).attr(`height`,t).attr(`fill`,S).attr(`stroke`,T),K.attr(`class`,_).attr(`style`,D).attr(`x`,o).attr(`y`,r).attr(`width`,L).attr(`height`,a).attr(`fill`,`none`).attr(`stroke`,T);let s=n.x-F.width/2,c=z+(t-F.height)/2;N.attr(`transform`,`translate(${s}, ${c})`)}if(f.trace(`Swimlane data `,n,JSON.stringify(n)),E){let e=N.select(`span`);e&&e.attr(`style`,E)}return n.offsetX=0,n.width=L,n.height=R,n.offsetY=F.height-I/2,n.intersect=function(e){return t(n,e)},{cluster:A,labelBBox:F}},`swimlane`),_=m(async(o,u)=>{f.info(`Creating subgraph rect for `,u.id,u);let m=l(),{theme:g,themeVariables:_,handDrawnSeed:v}=m,{clusterBkg:y,clusterBorder:b,borderColorArray:x}=_,{labelStyles:S,nodeStyles:C,borderStyles:w,backgroundStyles:T}=a(u),E=o.insert(`g`).attr(`class`,`cluster `+u.cssClasses).attr(`id`,u.domId).attr(`data-look`,u.look);c(E,u.colorIndex,g,x);let D=d(m),O=E.insert(`g`).attr(`class`,`cluster-label `),k;k=u.labelType===`markdown`?await s(O,u.label,{style:u.labelStyle,useHtmlLabels:D,isNode:!0,width:u.width}):await r(O,u.label,u.labelStyle||``,!1,!0);let A=k.getBBox();if(d(m)){let e=k.children[0],t=p(k);A=e.getBoundingClientRect(),t.attr(`width`,A.width),t.attr(`height`,A.height)}let j=u.width<=A.width+u.padding?A.width+u.padding:u.width;u.diff=u.width<=A.width+u.padding?(j-u.width)/2-u.padding:-u.padding;let M=u.height,N=u.x-j/2,P=u.y-M/2;f.trace(`Data `,u,JSON.stringify(u));let F;if(u.look===`handDrawn`){let e=h.svg(E),t=i(u,{roughness:.7,fill:y,stroke:b,fillWeight:3,seed:v}),r=e.path(n(N,P,j,M,0),t);F=E.insert(()=>(f.debug(`Rough node insert CXC`,r),r),`:first-child`),F.select(`path:nth-child(2)`).attr(`style`,w.join(`;`)),F.select(`path`).attr(`style`,T.join(`;`).replace(`fill`,`stroke`))}else F=E.insert(`rect`,`:first-child`),F.attr(`style`,C).attr(`rx`,u.rx).attr(`ry`,u.ry).attr(`x`,N).attr(`y`,P).attr(`width`,j).attr(`height`,M);let{subGraphTitleTopMargin:I}=e(m);if(O.attr(`transform`,`translate(${u.x-A.width/2}, ${u.y-u.height/2+I})`),S){let e=O.select(`span`);e&&e.attr(`style`,S)}let L=F.node().getBBox();return u.offsetX=0,u.width=L.width,u.height=L.height,u.offsetY=A.height-u.padding/2,u.intersect=function(e){return t(u,e)},{cluster:E,labelBBox:A}},`rect`),v=m((e,n)=>{let r=e.insert(`g`).attr(`class`,`note-cluster`).attr(`id`,n.domId),i=r.insert(`rect`,`:first-child`),a=0*n.padding,o=a/2;i.attr(`rx`,n.rx).attr(`ry`,n.ry).attr(`x`,n.x-n.width/2-o).attr(`y`,n.y-n.height/2-o).attr(`width`,n.width+a).attr(`height`,n.height+a).attr(`fill`,`none`);let s=i.node().getBBox();return n.width=s.width,n.height=s.height,n.intersect=function(e){return t(n,e)},{cluster:r,labelBBox:{width:0,height:0}}},`noteGroup`),y=m(async(e,i)=>{let a=l(),{theme:o,themeVariables:s,handDrawnSeed:u}=a,{altBackground:f,borderColorArray:m,compositeBackground:g,compositeTitleBackground:_,nodeBorder:v}=s,y=e.insert(`g`).attr(`class`,i.cssClasses).attr(`id`,i.domId).attr(`data-id`,i.id).attr(`data-look`,i.look);c(y,i.colorIndex,o,m);let b=y.insert(`g`,`:first-child`),x=y.insert(`g`).attr(`class`,`cluster-label`),S=y.append(`rect`),C=await r(x,i.label,i.labelStyle,void 0,!0),w=C.getBBox();if(d(a)){let e=C.children[0],t=p(C);w=e.getBoundingClientRect(),t.attr(`width`,w.width),t.attr(`height`,w.height)}let T=0*i.padding,E=T/2,D=(i.width<=w.width+i.padding?w.width+i.padding:i.width)+T;i.diff=i.width<=w.width+i.padding?(D-i.width)/2-i.padding:-i.padding;let O=i.height+T,k=i.height+T-w.height-6,A=i.x-D/2,j=i.y-O/2;i.width=D;let M=i.y-i.height/2-E+w.height+2,N;if(i.look===`handDrawn`){let e=i.cssClasses.includes(`statediagram-cluster-alt`),t=h.svg(y),r=i.rx||i.ry?t.path(n(A,j,D,O,10),{roughness:.7,fill:_,fillStyle:`solid`,stroke:v,seed:u}):t.rectangle(A,j,D,O,{seed:u});N=y.insert(()=>r,`:first-child`);let a=t.rectangle(A,M,D,k,{fill:e?f:g,fillStyle:e?`hachure`:`solid`,stroke:v,seed:u});N=y.insert(()=>r,`:first-child`),S=y.insert(()=>a),N.attr(`class`,`outer`),S.attr(`class`,`inner`)}else N=b.insert(`rect`,`:first-child`),N.attr(`class`,`outer`).attr(`x`,A).attr(`y`,j).attr(`width`,D).attr(`height`,O).attr(`data-look`,i.look),S.attr(`class`,`inner`).attr(`x`,A).attr(`y`,M).attr(`width`,D).attr(`height`,k);return x.attr(`transform`,`translate(${i.x-w.width/2}, ${j+1-(d(a)?0:3)})`),i.height=N.node().getBBox().height,i.offsetX=0,i.offsetY=w.height-i.padding/2,i.labelBBox=w,i.intersect=function(e){return t(i,e)},{cluster:y,labelBBox:w}},`roundedWithTitle`),b=m(async(r,o)=>{f.info(`Creating subgraph rect for `,o.id,o);let c=l(),{themeVariables:u,handDrawnSeed:m}=c,{clusterBkg:g,clusterBorder:_}=u,{labelStyles:v,nodeStyles:y,borderStyles:b,backgroundStyles:x}=a(o),S=r.insert(`g`).attr(`class`,`cluster `+o.cssClasses).attr(`id`,o.domId).attr(`data-look`,o.look),C=d(c),w=S.insert(`g`).attr(`class`,`cluster-label `),T=await s(w,o.label,{style:o.labelStyle,useHtmlLabels:C,isNode:!0,width:o.width}),E=T.getBBox();if(d(c)){let e=T.children[0],t=p(T);E=e.getBoundingClientRect(),t.attr(`width`,E.width),t.attr(`height`,E.height)}let D=o.width<=E.width+o.padding?E.width+o.padding:o.width;o.diff=o.width<=E.width+o.padding?(D-o.width)/2-o.padding:-o.padding;let O=o.height,k=o.x-D/2,A=o.y-O/2;f.trace(`Data `,o,JSON.stringify(o));let j;if(o.look===`handDrawn`){let e=h.svg(S),t=i(o,{roughness:.7,fill:g,stroke:_,fillWeight:4,seed:m}),r=e.path(n(k,A,D,O,o.rx),t);j=S.insert(()=>(f.debug(`Rough node insert CXC`,r),r),`:first-child`),j.select(`path:nth-child(2)`).attr(`style`,b.join(`;`)),j.select(`path`).attr(`style`,x.join(`;`).replace(`fill`,`stroke`))}else j=S.insert(`rect`,`:first-child`),j.attr(`style`,y).attr(`rx`,o.rx).attr(`ry`,o.ry).attr(`x`,k).attr(`y`,A).attr(`width`,D).attr(`height`,O);let{subGraphTitleTopMargin:M}=e(c);if(w.attr(`transform`,`translate(${o.x-E.width/2}, ${o.y-o.height/2+M})`),v){let e=w.select(`span`);e&&e.attr(`style`,v)}let N=j.node().getBBox();return o.offsetX=0,o.width=N.width,o.height=N.height,o.offsetY=E.height-o.padding/2,o.intersect=function(e){return t(o,e)},{cluster:S,labelBBox:E}},`kanbanSection`),x=m((e,n)=>{let{theme:r,themeVariables:i,handDrawnSeed:a}=l(),{altBackground:o,nodeBorder:s,borderColorArray:u}=i,d=e.insert(`g`).attr(`class`,n.cssClasses).attr(`id`,n.domId).attr(`data-look`,n.look);c(d,n.colorIndex,r,u);let f=d.insert(`g`,`:first-child`),p=0*n.padding,m=n.width+p;n.diff=-n.padding;let g=n.height+p,_=n.x-m/2,v=n.y-g/2;n.width=m;let y;if(n.look===`handDrawn`){let e=h.svg(d).rectangle(_,v,m,g,{fill:o??`#efefef`,fillStyle:`solid`,roughness:.5,strokeLineDash:[5],stroke:s,seed:a});y=d.insert(()=>e,`:first-child`).attr(`class`,`divider`)}else{y=f.insert(`rect`,`:first-child`);let e=`outer`;e=(n.look,`divider`),y.attr(`class`,e).attr(`x`,_).attr(`y`,v).attr(`width`,m).attr(`height`,g).attr(`data-look`,n.look)}return n.height=y.node().getBBox().height,n.offsetX=0,n.offsetY=0,n.intersect=function(e){return t(n,e)},{cluster:d,labelBBox:{}}},`divider`),S=m(async(o,u,m)=>{f.info(`Creating ${m.cssClass} for `,u.id,u);let g=l(),{theme:_,themeVariables:v,handDrawnSeed:y}=g,{borderColorArray:b}=v,{labelStyles:x,borderStyles:S}=a(u),C=o.insert(`g`).attr(`class`,`cluster `+m.cssClass+` `+u.cssClasses).attr(`id`,u.domId??u.id).attr(`data-look`,u.look);c(C,u.colorIndex,_,b);let w=d(g),T=C.insert(`g`).attr(`class`,`cluster-label`),E={width:0,height:0},D=u.label?.trim();if(D){let e;if(e=u.labelType===`markdown`?await s(T,u.label,{style:u.labelStyle,useHtmlLabels:w,isNode:!0,width:u.width}):await r(T,u.label,u.labelStyle||``,!1,!0),E=e.getBBox(),w){let t=e.children[0],n=p(e);E=t.getBoundingClientRect(),n.attr(`width`,E.width),n.attr(`height`,E.height)}}let O=u.width<=E.width+u.padding?E.width+u.padding:u.width;u.diff=u.width<=E.width+u.padding?(O-u.width)/2-u.padding:-u.padding;let k=u.height,A=u.x-O/2,j=u.y-k/2,M;if(u.look===`handDrawn`){let e=h.svg(C),t=i(u,{roughness:m.roughness,fill:m.fill,stroke:m.stroke,strokeWidth:m.strokeWidth,seed:y,...m.fill===`none`?{fillWeight:0}:{fillStyle:`solid`},...m.strokeDash?{strokeLineDash:m.strokeDash}:{}}),r=e.path(n(A,j,O,k,m.rx),t);M=C.insert(()=>r,`:first-child`),M.select(`path:nth-child(2)`).attr(`style`,S.join(`;`))}else M=C.insert(`rect`,`:first-child`),M.attr(`rx`,m.rx).attr(`ry`,m.rx).attr(`x`,A).attr(`y`,j).attr(`width`,O).attr(`height`,k).attr(`fill`,m.fill).attr(`stroke`,m.stroke).attr(`stroke-width`,m.strokeWidth+`px`),m.strokeDash&&M.attr(`stroke-dasharray`,m.strokeDash.join(`, `));if(D){let{subGraphTitleTopMargin:t}=e(g);if(T.attr(`transform`,`translate(${u.x-E.width/2}, ${u.y-u.height/2+t})`),x){let e=T.select(`span`);e&&e.attr(`style`,x)}}let N=M.node().getBBox();return u.offsetX=0,u.width=N.width,u.height=N.height,u.offsetY=E.height-u.padding/2,u.intersect=function(e){return t(u,e)},{cluster:C,labelBBox:E}},`createContainerGroup`),C=m(async(e,t)=>{let{themeVariables:n}=l();return S(e,t,{cssClass:`flow-cluster`,rx:10,fill:`none`,stroke:n.flowContainerStroke||n.secondaryBorderColor,strokeWidth:.75,roughness:.7})},`flowGroup`),w=m((e,t)=>{let n=e.boundaryType||`rect`,r=n===`package`?20:e.padding,i=n===`package`?t.height+10:0,a=Math.max(e.width,t.width+r),o=n===`package`?Math.max(e.height,i+e.padding*2):e.height,s=e.x-a/2,c=e.y-o/2;return{boundaryType:n,width:a,height:o,x:s,y:c,bodyY:c+i,bodyHeight:o-i,tabHeight:i,tabWidth:n===`package`?Math.min(a,Math.max(80,t.width+20)):0}},`getUsecaseSystemBoundaryGeometry`),T={rect:_,squareRect:_,roundedWithTitle:y,noteGroup:v,divider:x,kanbanSection:b,flowGroup:C,usecaseSystemBoundary:m(async(n,r)=>{f.info(`Creating usecase system boundary for `,r.id,r);let u=l(),{theme:m,themeVariables:g,handDrawnSeed:_}=u,{clusterBkg:v,clusterBorder:y,borderColorArray:b}=g,{labelStyles:x,nodeStyles:S}=a(r),{stylesMap:C}=o(r),T=r.boundaryType||`rect`,E=n.insert(`g`).attr(`class`,`cluster usecase-system-boundary usecase-system-boundary-${T} ${r.cssClasses}`).attr(`id`,typeof r.domId==`string`?r.domId:r.id).attr(`data-boundary-type`,T).attr(`data-look`,r.look);c(E,r.colorIndex,m,b);let D=d(u),O=E.insert(`g`).attr(`class`,`cluster-label system-boundary-title`),k=await s(O,r.label,{style:x,useHtmlLabels:D,isNode:!0}),A=k.getBBox();if(D){let e=k.children[0],t=p(k);A=e.getBoundingClientRect(),t.attr(`width`,A.width),t.attr(`height`,A.height)}let{width:j,height:M,x:N,y:P,bodyY:F,bodyHeight:I,tabHeight:L,tabWidth:R}=w(r,A);r.diff=r.width<=A.width+r.padding?(j-r.width)/2-r.padding:-r.padding;let z=i(r,{fill:C.get(`fill`)||v,stroke:C.get(`stroke`)||y,strokeWidth:C.get(`stroke-width`)?.replace(`px`,``)||1,seed:_});if(r.look===`handDrawn`){let e=h.svg(E),t=e.rectangle(N,F,j,I,z);if(E.insert(()=>t,`:first-child`).attr(`class`,`boundary-body label-container`),T===`package`){let t=e.rectangle(N,P,R,L,z);E.insert(()=>t,`:first-child`).attr(`class`,`boundary-tab system-boundary-package-tab label-container`)}}else E.insert(`rect`,`:first-child`).attr(`class`,`boundary-body label-container`).attr(`style`,S).attr(`x`,N).attr(`y`,F).attr(`width`,j).attr(`height`,I),T===`package`&&E.insert(`rect`,`:first-child`).attr(`class`,`boundary-tab system-boundary-package-tab label-container`).attr(`style`,S).attr(`x`,N).attr(`y`,P).attr(`width`,R).attr(`height`,L);let{subGraphTitleTopMargin:B}=e(u);return T===`package`?O.attr(`transform`,`translate(${N+(R-A.width)/2}, ${P+(L-A.height)/2})`):O.attr(`transform`,`translate(${r.x-A.width/2}, ${P+B})`),x&&(O.attr(`style`,x),O.select(`span`).attr(`style`,x)),r.offsetX=0,r.width=j,r.height=M,r.offsetY=A.height-r.padding/2,r.labelBBox=A,r.intersect=function(e){return t(r,e)},{cluster:E,labelBBox:A}},`usecaseSystemBoundary`),swimlane:g,pool:m((e,t)=>g(e,t,{variant:`pool`}),`pool`)},E=new Set([`noteGroup`,`divider`]),D=m(e=>!E.has(e??`rect`),`clusterPaintsTitle`),O=new Map,k=m(async(e,t)=>{let n=await T[t.shape||`rect`](e,t);return O.set(t.id,n),n},`insertCluster`),A=m(()=>{O=new Map},`clear`);export{D as n,k as r,A as t};
1
+ import{n as e}from"./chunk-LEVMRMFU-Ds7OnJrC.js";import{i as t,n,t as r}from"./chunk-AXFCVDMN-BElluw_7.js";import{a as i,i as a,t as o}from"./chunk-X4PVCEUW-BBtlFSw1.js";import{n as s}from"./chunk-STOXU5M4-DcXfwN7k.js";import{s as c}from"./chunk-J5ZVWO5B-oDCd-gWO.js";import{b as l,g as u,w as d}from"./chunk-BG4553SI-CUDwpWNL.js";import{n as f,t as p}from"./d3-selection-D3xgEEla.js";import{n as m}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{t as h}from"./rough.esm-Dy-Kn_BL.js";var g=m(async(e,n,{variant:r=`swimlane`}={})=>{let o=r===`pool`,d=o?`pool swimlane`:`swimlane`,m=o?`pool-label swimlane-label`:`swimlane-label`,g=o?`pool-title swimlane-title`:`swimlane-title`,_=o?`pool-body swimlane-body`:`swimlane-body`,v=l(),{theme:y,themeVariables:b,handDrawnSeed:x}=v,{clusterBkg:S,clusterBorder:C,borderColorArray:w}=b,T=C,{labelStyles:E,nodeStyles:D,borderStyles:O,backgroundStyles:k}=a(n),A=e.insert(`g`).attr(`class`,`cluster `+d+` `+(n.cssClasses||``)).attr(`id`,n.domId??n.id).attr(`data-id`,n.id).attr(`data-et`,`cluster`).attr(`data-look`,n.look);c(A,n.colorIndex,y,w);let j=u(v.flowchart.htmlLabels),M=n.direction===`LR`,N=A.insert(`g`).attr(`class`,`cluster-label `+m),P=await s(N,n.label,{style:n.labelStyle,useHtmlLabels:j,isNode:!0,width:n.width}),F=P.getBBox();if(j){let e=P.children[0],t=p(P);F=e.getBoundingClientRect(),t.attr(`width`,F.width),t.attr(`height`,F.height)}let I=n.padding??0,L=n.width<=F.width+I?F.width+I:n.width;n.diff=n.width<=F.width+I?(L-n.width)/2-I:-I;let R=n.height,z=n.y-R/2,B=n.y+R/2,V=n.x-L/2,H=n.swimlaneContentTop===void 0?z+R/3:n.swimlaneContentTop,U=M?4:0,W=F.height+2*U,G,K;if(M){let e=Math.max(W,F.height+2*U),t=V+e,r=Math.max(0,L-e);if(n.look===`handDrawn`){let a=h.svg(A),o=i(n,{roughness:.7,fill:S,stroke:T,seed:x}),s=i(n,{roughness:.7,fill:`none`,stroke:T,seed:x}),c=a.rectangle(V,z,e,R,o);G=A.insert(()=>c,`:first-child`).attr(`class`,g);let l=a.rectangle(t,z,r,R,s);K=A.insert(()=>l,`:first-child`).attr(`class`,_),G.select(`path:nth-child(2)`).attr(`style`,O.join(`;`)),G.select(`path`).attr(`style`,k.join(`;`).replace(`fill`,`stroke`))}else G=A.insert(`rect`,`:first-child`),K=A.insert(`rect`,`:first-child`),G.attr(`class`,g).attr(`style`,D).attr(`x`,V).attr(`y`,z).attr(`width`,e).attr(`height`,R).attr(`fill`,S).attr(`stroke`,T),K.attr(`class`,_).attr(`style`,D).attr(`x`,t).attr(`y`,z).attr(`width`,r).attr(`height`,R).attr(`fill`,`none`).attr(`stroke`,T);let a=V+e/2,o=n.y;N.attr(`transform`,`translate(${a}, ${o}) rotate(-90) translate(${-F.width/2}, ${-F.height/2})`)}else{let e=Math.max(0,H-z),t=Math.min(W,e),r=z+t,a=Math.max(0,B-r),o=n.x-L/2;if(n.look===`handDrawn`){let e=h.svg(A),s=i(n,{roughness:.7,fill:S,stroke:T,fillWeight:3,seed:x}),c=i(n,{roughness:.7,fill:`none`,stroke:T,seed:x}),l=e.rectangle(o,z,L,t,s);G=A.insert(()=>l,`:first-child`).attr(`class`,g);let u=e.rectangle(o,r,L,a,c);K=A.insert(()=>u,`:first-child`).attr(`class`,_),G.select(`path:nth-child(2)`).attr(`style`,O.join(`;`)),G.select(`path`).attr(`style`,k.join(`;`).replace(`fill`,`stroke`))}else G=A.insert(`rect`,`:first-child`),K=A.insert(`rect`,`:first-child`),G.attr(`class`,g).attr(`style`,D).attr(`x`,o).attr(`y`,z).attr(`width`,L).attr(`height`,t).attr(`fill`,S).attr(`stroke`,T),K.attr(`class`,_).attr(`style`,D).attr(`x`,o).attr(`y`,r).attr(`width`,L).attr(`height`,a).attr(`fill`,`none`).attr(`stroke`,T);let s=n.x-F.width/2,c=z+(t-F.height)/2;N.attr(`transform`,`translate(${s}, ${c})`)}if(f.trace(`Swimlane data `,n,JSON.stringify(n)),E){let e=N.select(`span`);e&&e.attr(`style`,E)}return n.offsetX=0,n.width=L,n.height=R,n.offsetY=F.height-I/2,n.intersect=function(e){return t(n,e)},{cluster:A,labelBBox:F}},`swimlane`),_=m(async(o,u)=>{f.info(`Creating subgraph rect for `,u.id,u);let m=l(),{theme:g,themeVariables:_,handDrawnSeed:v}=m,{clusterBkg:y,clusterBorder:b,borderColorArray:x}=_,{labelStyles:S,nodeStyles:C,borderStyles:w,backgroundStyles:T}=a(u),E=o.insert(`g`).attr(`class`,`cluster `+u.cssClasses).attr(`id`,u.domId).attr(`data-look`,u.look);c(E,u.colorIndex,g,x);let D=d(m),O=E.insert(`g`).attr(`class`,`cluster-label `),k;k=u.labelType===`markdown`?await s(O,u.label,{style:u.labelStyle,useHtmlLabels:D,isNode:!0,width:u.width}):await r(O,u.label,u.labelStyle||``,!1,!0);let A=k.getBBox();if(d(m)){let e=k.children[0],t=p(k);A=e.getBoundingClientRect(),t.attr(`width`,A.width),t.attr(`height`,A.height)}let j=u.width<=A.width+u.padding?A.width+u.padding:u.width;u.diff=u.width<=A.width+u.padding?(j-u.width)/2-u.padding:-u.padding;let M=u.height,N=u.x-j/2,P=u.y-M/2;f.trace(`Data `,u,JSON.stringify(u));let F;if(u.look===`handDrawn`){let e=h.svg(E),t=i(u,{roughness:.7,fill:y,stroke:b,fillWeight:3,seed:v}),r=e.path(n(N,P,j,M,0),t);F=E.insert(()=>(f.debug(`Rough node insert CXC`,r),r),`:first-child`),F.select(`path:nth-child(2)`).attr(`style`,w.join(`;`)),F.select(`path`).attr(`style`,T.join(`;`).replace(`fill`,`stroke`))}else F=E.insert(`rect`,`:first-child`),F.attr(`style`,C).attr(`rx`,u.rx).attr(`ry`,u.ry).attr(`x`,N).attr(`y`,P).attr(`width`,j).attr(`height`,M);let{subGraphTitleTopMargin:I}=e(m);if(O.attr(`transform`,`translate(${u.x-A.width/2}, ${u.y-u.height/2+I})`),S){let e=O.select(`span`);e&&e.attr(`style`,S)}let L=F.node().getBBox();return u.offsetX=0,u.width=L.width,u.height=L.height,u.offsetY=A.height-u.padding/2,u.intersect=function(e){return t(u,e)},{cluster:E,labelBBox:A}},`rect`),v=m((e,n)=>{let r=e.insert(`g`).attr(`class`,`note-cluster`).attr(`id`,n.domId),i=r.insert(`rect`,`:first-child`),a=0*n.padding,o=a/2;i.attr(`rx`,n.rx).attr(`ry`,n.ry).attr(`x`,n.x-n.width/2-o).attr(`y`,n.y-n.height/2-o).attr(`width`,n.width+a).attr(`height`,n.height+a).attr(`fill`,`none`);let s=i.node().getBBox();return n.width=s.width,n.height=s.height,n.intersect=function(e){return t(n,e)},{cluster:r,labelBBox:{width:0,height:0}}},`noteGroup`),y=m(async(e,i)=>{let a=l(),{theme:o,themeVariables:s,handDrawnSeed:u}=a,{altBackground:f,borderColorArray:m,compositeBackground:g,compositeTitleBackground:_,nodeBorder:v}=s,y=e.insert(`g`).attr(`class`,i.cssClasses).attr(`id`,i.domId).attr(`data-id`,i.id).attr(`data-look`,i.look);c(y,i.colorIndex,o,m);let b=y.insert(`g`,`:first-child`),x=y.insert(`g`).attr(`class`,`cluster-label`),S=y.append(`rect`),C=await r(x,i.label,i.labelStyle,void 0,!0),w=C.getBBox();if(d(a)){let e=C.children[0],t=p(C);w=e.getBoundingClientRect(),t.attr(`width`,w.width),t.attr(`height`,w.height)}let T=0*i.padding,E=T/2,D=(i.width<=w.width+i.padding?w.width+i.padding:i.width)+T;i.diff=i.width<=w.width+i.padding?(D-i.width)/2-i.padding:-i.padding;let O=i.height+T,k=i.height+T-w.height-6,A=i.x-D/2,j=i.y-O/2;i.width=D;let M=i.y-i.height/2-E+w.height+2,N;if(i.look===`handDrawn`){let e=i.cssClasses.includes(`statediagram-cluster-alt`),t=h.svg(y),r=i.rx||i.ry?t.path(n(A,j,D,O,10),{roughness:.7,fill:_,fillStyle:`solid`,stroke:v,seed:u}):t.rectangle(A,j,D,O,{seed:u});N=y.insert(()=>r,`:first-child`);let a=t.rectangle(A,M,D,k,{fill:e?f:g,fillStyle:e?`hachure`:`solid`,stroke:v,seed:u});N=y.insert(()=>r,`:first-child`),S=y.insert(()=>a),N.attr(`class`,`outer`),S.attr(`class`,`inner`)}else N=b.insert(`rect`,`:first-child`),N.attr(`class`,`outer`).attr(`x`,A).attr(`y`,j).attr(`width`,D).attr(`height`,O).attr(`data-look`,i.look),S.attr(`class`,`inner`).attr(`x`,A).attr(`y`,M).attr(`width`,D).attr(`height`,k);return x.attr(`transform`,`translate(${i.x-w.width/2}, ${j+1-(d(a)?0:3)})`),i.height=N.node().getBBox().height,i.offsetX=0,i.offsetY=w.height-i.padding/2,i.labelBBox=w,i.intersect=function(e){return t(i,e)},{cluster:y,labelBBox:w}},`roundedWithTitle`),b=m(async(r,o)=>{f.info(`Creating subgraph rect for `,o.id,o);let c=l(),{themeVariables:u,handDrawnSeed:m}=c,{clusterBkg:g,clusterBorder:_}=u,{labelStyles:v,nodeStyles:y,borderStyles:b,backgroundStyles:x}=a(o),S=r.insert(`g`).attr(`class`,`cluster `+o.cssClasses).attr(`id`,o.domId).attr(`data-look`,o.look),C=d(c),w=S.insert(`g`).attr(`class`,`cluster-label `),T=await s(w,o.label,{style:o.labelStyle,useHtmlLabels:C,isNode:!0,width:o.width}),E=T.getBBox();if(d(c)){let e=T.children[0],t=p(T);E=e.getBoundingClientRect(),t.attr(`width`,E.width),t.attr(`height`,E.height)}let D=o.width<=E.width+o.padding?E.width+o.padding:o.width;o.diff=o.width<=E.width+o.padding?(D-o.width)/2-o.padding:-o.padding;let O=o.height,k=o.x-D/2,A=o.y-O/2;f.trace(`Data `,o,JSON.stringify(o));let j;if(o.look===`handDrawn`){let e=h.svg(S),t=i(o,{roughness:.7,fill:g,stroke:_,fillWeight:4,seed:m}),r=e.path(n(k,A,D,O,o.rx),t);j=S.insert(()=>(f.debug(`Rough node insert CXC`,r),r),`:first-child`),j.select(`path:nth-child(2)`).attr(`style`,b.join(`;`)),j.select(`path`).attr(`style`,x.join(`;`).replace(`fill`,`stroke`))}else j=S.insert(`rect`,`:first-child`),j.attr(`style`,y).attr(`rx`,o.rx).attr(`ry`,o.ry).attr(`x`,k).attr(`y`,A).attr(`width`,D).attr(`height`,O);let{subGraphTitleTopMargin:M}=e(c);if(w.attr(`transform`,`translate(${o.x-E.width/2}, ${o.y-o.height/2+M})`),v){let e=w.select(`span`);e&&e.attr(`style`,v)}let N=j.node().getBBox();return o.offsetX=0,o.width=N.width,o.height=N.height,o.offsetY=E.height-o.padding/2,o.intersect=function(e){return t(o,e)},{cluster:S,labelBBox:E}},`kanbanSection`),x=m((e,n)=>{let{theme:r,themeVariables:i,handDrawnSeed:a}=l(),{altBackground:o,nodeBorder:s,borderColorArray:u}=i,d=e.insert(`g`).attr(`class`,n.cssClasses).attr(`id`,n.domId).attr(`data-look`,n.look);c(d,n.colorIndex,r,u);let f=d.insert(`g`,`:first-child`),p=0*n.padding,m=n.width+p;n.diff=-n.padding;let g=n.height+p,_=n.x-m/2,v=n.y-g/2;n.width=m;let y;if(n.look===`handDrawn`){let e=h.svg(d).rectangle(_,v,m,g,{fill:o??`#efefef`,fillStyle:`solid`,roughness:.5,strokeLineDash:[5],stroke:s,seed:a});y=d.insert(()=>e,`:first-child`).attr(`class`,`divider`)}else{y=f.insert(`rect`,`:first-child`);let e=`outer`;e=(n.look,`divider`),y.attr(`class`,e).attr(`x`,_).attr(`y`,v).attr(`width`,m).attr(`height`,g).attr(`data-look`,n.look)}return n.height=y.node().getBBox().height,n.offsetX=0,n.offsetY=0,n.intersect=function(e){return t(n,e)},{cluster:d,labelBBox:{}}},`divider`),S=m(async(o,u,m)=>{f.info(`Creating ${m.cssClass} for `,u.id,u);let g=l(),{theme:_,themeVariables:v,handDrawnSeed:y}=g,{borderColorArray:b}=v,{labelStyles:x,borderStyles:S}=a(u),C=o.insert(`g`).attr(`class`,`cluster `+m.cssClass+` `+u.cssClasses).attr(`id`,u.domId??u.id).attr(`data-look`,u.look);c(C,u.colorIndex,_,b);let w=d(g),T=C.insert(`g`).attr(`class`,`cluster-label`),E={width:0,height:0},D=u.label?.trim();if(D){let e;if(e=u.labelType===`markdown`?await s(T,u.label,{style:u.labelStyle,useHtmlLabels:w,isNode:!0,width:u.width}):await r(T,u.label,u.labelStyle||``,!1,!0),E=e.getBBox(),w){let t=e.children[0],n=p(e);E=t.getBoundingClientRect(),n.attr(`width`,E.width),n.attr(`height`,E.height)}}let O=u.width<=E.width+u.padding?E.width+u.padding:u.width;u.diff=u.width<=E.width+u.padding?(O-u.width)/2-u.padding:-u.padding;let k=u.height,A=u.x-O/2,j=u.y-k/2,M;if(u.look===`handDrawn`){let e=h.svg(C),t=i(u,{roughness:m.roughness,fill:m.fill,stroke:m.stroke,strokeWidth:m.strokeWidth,seed:y,...m.fill===`none`?{fillWeight:0}:{fillStyle:`solid`},...m.strokeDash?{strokeLineDash:m.strokeDash}:{}}),r=e.path(n(A,j,O,k,m.rx),t);M=C.insert(()=>r,`:first-child`),M.select(`path:nth-child(2)`).attr(`style`,S.join(`;`))}else M=C.insert(`rect`,`:first-child`),M.attr(`rx`,m.rx).attr(`ry`,m.rx).attr(`x`,A).attr(`y`,j).attr(`width`,O).attr(`height`,k).attr(`fill`,m.fill).attr(`stroke`,m.stroke).attr(`stroke-width`,m.strokeWidth+`px`),m.strokeDash&&M.attr(`stroke-dasharray`,m.strokeDash.join(`, `));if(D){let{subGraphTitleTopMargin:t}=e(g);if(T.attr(`transform`,`translate(${u.x-E.width/2}, ${u.y-u.height/2+t})`),x){let e=T.select(`span`);e&&e.attr(`style`,x)}}let N=M.node().getBBox();return u.offsetX=0,u.width=N.width,u.height=N.height,u.offsetY=E.height-u.padding/2,u.intersect=function(e){return t(u,e)},{cluster:C,labelBBox:E}},`createContainerGroup`),C=m(async(e,t)=>{let{themeVariables:n}=l();return S(e,t,{cssClass:`flow-cluster`,rx:10,fill:`none`,stroke:n.flowContainerStroke||n.secondaryBorderColor,strokeWidth:.75,roughness:.7})},`flowGroup`),w=m((e,t)=>{let n=e.boundaryType||`rect`,r=n===`package`?20:e.padding,i=n===`package`?t.height+10:0,a=Math.max(e.width,t.width+r),o=n===`package`?Math.max(e.height,i+e.padding*2):e.height,s=e.x-a/2,c=e.y-o/2;return{boundaryType:n,width:a,height:o,x:s,y:c,bodyY:c+i,bodyHeight:o-i,tabHeight:i,tabWidth:n===`package`?Math.min(a,Math.max(80,t.width+20)):0}},`getUsecaseSystemBoundaryGeometry`),T={rect:_,squareRect:_,roundedWithTitle:y,noteGroup:v,divider:x,kanbanSection:b,flowGroup:C,usecaseSystemBoundary:m(async(n,r)=>{f.info(`Creating usecase system boundary for `,r.id,r);let u=l(),{theme:m,themeVariables:g,handDrawnSeed:_}=u,{clusterBkg:v,clusterBorder:y,borderColorArray:b}=g,{labelStyles:x,nodeStyles:S}=a(r),{stylesMap:C}=o(r),T=r.boundaryType||`rect`,E=n.insert(`g`).attr(`class`,`cluster usecase-system-boundary usecase-system-boundary-${T} ${r.cssClasses}`).attr(`id`,typeof r.domId==`string`?r.domId:r.id).attr(`data-boundary-type`,T).attr(`data-look`,r.look);c(E,r.colorIndex,m,b);let D=d(u),O=E.insert(`g`).attr(`class`,`cluster-label system-boundary-title`),k=await s(O,r.label,{style:x,useHtmlLabels:D,isNode:!0}),A=k.getBBox();if(D){let e=k.children[0],t=p(k);A=e.getBoundingClientRect(),t.attr(`width`,A.width),t.attr(`height`,A.height)}let{width:j,height:M,x:N,y:P,bodyY:F,bodyHeight:I,tabHeight:L,tabWidth:R}=w(r,A);r.diff=r.width<=A.width+r.padding?(j-r.width)/2-r.padding:-r.padding;let z=i(r,{fill:C.get(`fill`)||v,stroke:C.get(`stroke`)||y,strokeWidth:C.get(`stroke-width`)?.replace(`px`,``)||1,seed:_});if(r.look===`handDrawn`){let e=h.svg(E),t=e.rectangle(N,F,j,I,z);if(E.insert(()=>t,`:first-child`).attr(`class`,`boundary-body label-container`),T===`package`){let t=e.rectangle(N,P,R,L,z);E.insert(()=>t,`:first-child`).attr(`class`,`boundary-tab system-boundary-package-tab label-container`)}}else E.insert(`rect`,`:first-child`).attr(`class`,`boundary-body label-container`).attr(`style`,S).attr(`x`,N).attr(`y`,F).attr(`width`,j).attr(`height`,I),T===`package`&&E.insert(`rect`,`:first-child`).attr(`class`,`boundary-tab system-boundary-package-tab label-container`).attr(`style`,S).attr(`x`,N).attr(`y`,P).attr(`width`,R).attr(`height`,L);let{subGraphTitleTopMargin:B}=e(u);return T===`package`?O.attr(`transform`,`translate(${N+(R-A.width)/2}, ${P+(L-A.height)/2})`):O.attr(`transform`,`translate(${r.x-A.width/2}, ${P+B})`),x&&(O.attr(`style`,x),O.select(`span`).attr(`style`,x)),r.offsetX=0,r.width=j,r.height=M,r.offsetY=A.height-r.padding/2,r.labelBBox=A,r.intersect=function(e){return t(r,e)},{cluster:E,labelBBox:A}},`usecaseSystemBoundary`),swimlane:g,pool:m((e,t)=>g(e,t,{variant:`pool`}),`pool`)},E=new Set([`noteGroup`,`divider`]),D=m(e=>!E.has(e??`rect`),`clusterPaintsTitle`),O=new Map,k=m(async(e,t)=>{let n=await T[t.shape||`rect`](e,t);return O.set(t.id,n),n},`insertCluster`),A=m(()=>{O=new Map},`clear`);export{D as n,k as r,A as t};
@@ -1,4 +1,4 @@
1
- import{a as e}from"./mermaid.core-DxBlQ6oF.js";import{E as t,a as n,b as r,c as i,y as a,z as o}from"./chunk-BG4553SI-BDnAChfb.js";import{n as s}from"./d3-selection-BhemR5ul.js";import{n as c}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";var l=``,u=``,d=``,f=[],p=new Map,m=c(e=>o(e,r()),`sanitizeText`),h=c(e=>{switch(e.type){case`terminal`:return{...e,value:m(e.value)};case`nonterminal`:return{...e,name:m(e.name)};case`sequence`:return{...e,elements:e.elements.map(h)};case`choice`:return{...e,alternatives:e.alternatives.map(h)};case`optional`:return{...e,element:h(e.element)};case`repetition`:return{...e,element:h(e.element),separator:e.separator?h(e.separator):void 0};case`special`:return{...e,text:m(e.text)}}},`sanitizeAstNode`),g=c(()=>{l=``,u=``,d=``,f.length=0,p.clear(),n(),s.debug(`[Railroad] Database cleared`)},`clear`),_=c(e=>{l=m(e),s.debug(`[Railroad] Title set:`,e)},`setTitle`),v=c(()=>l,`getTitle`),y={clear:g,setTitle:_,getTitle:v,addRule:c(e=>{let t={...e,name:m(e.name),definition:h(e.definition),comment:e.comment?m(e.comment):void 0};s.debug(`[Railroad] Adding rule:`,t.name),p.has(t.name)&&s.warn(`[Railroad] Rule '${t.name}' is already defined. Overwriting.`),f.push(t),p.set(t.name,t)},`addRule`),getRules:c(()=>f,`getRules`),getRule:c(e=>p.get(e),`getRule`),setAccTitle:c(e=>{u=m(e).replace(/^\s+/g,``),s.debug(`[Railroad] Accessibility title set:`,e)},`setAccTitle`),getAccTitle:c(()=>u,`getAccTitle`),setAccDescription:c(e=>{d=m(e).replace(/\n\s+/g,`
1
+ import{a as e}from"./mermaid.core-C6mppfDC.js";import{E as t,a as n,b as r,c as i,y as a,z as o}from"./chunk-BG4553SI-CUDwpWNL.js";import{n as s}from"./d3-selection-D3xgEEla.js";import{n as c}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";var l=``,u=``,d=``,f=[],p=new Map,m=c(e=>o(e,r()),`sanitizeText`),h=c(e=>{switch(e.type){case`terminal`:return{...e,value:m(e.value)};case`nonterminal`:return{...e,name:m(e.name)};case`sequence`:return{...e,elements:e.elements.map(h)};case`choice`:return{...e,alternatives:e.alternatives.map(h)};case`optional`:return{...e,element:h(e.element)};case`repetition`:return{...e,element:h(e.element),separator:e.separator?h(e.separator):void 0};case`special`:return{...e,text:m(e.text)}}},`sanitizeAstNode`),g=c(()=>{l=``,u=``,d=``,f.length=0,p.clear(),n(),s.debug(`[Railroad] Database cleared`)},`clear`),_=c(e=>{l=m(e),s.debug(`[Railroad] Title set:`,e)},`setTitle`),v=c(()=>l,`getTitle`),y={clear:g,setTitle:_,getTitle:v,addRule:c(e=>{let t={...e,name:m(e.name),definition:h(e.definition),comment:e.comment?m(e.comment):void 0};s.debug(`[Railroad] Adding rule:`,t.name),p.has(t.name)&&s.warn(`[Railroad] Rule '${t.name}' is already defined. Overwriting.`),f.push(t),p.set(t.name,t)},`addRule`),getRules:c(()=>f,`getRules`),getRule:c(e=>p.get(e),`getRule`),setAccTitle:c(e=>{u=m(e).replace(/^\s+/g,``),s.debug(`[Railroad] Accessibility title set:`,e)},`setAccTitle`),getAccTitle:c(()=>u,`getAccTitle`),setAccDescription:c(e=>{d=m(e).replace(/\n\s+/g,`
2
2
  `),s.debug(`[Railroad] Accessibility description set:`,e)},`setAccDescription`),getAccDescription:c(()=>d,`getAccDescription`),setDiagramTitle:_,getDiagramTitle:v},b={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:`monospace`,terminalFill:`#FFFFC0`,terminalStroke:`#000000`,terminalTextColor:`#000000`,nonTerminalFill:`#FFFFFF`,nonTerminalStroke:`#000000`,nonTerminalTextColor:`#000000`,lineColor:`#000000`,strokeWidth:2,markerFill:`#000000`,commentFill:`#E8E8E8`,commentStroke:`#888888`,commentTextColor:`#666666`,specialFill:`#F0E0FF`,specialStroke:`#8800CC`,ruleNameColor:`#000066`,showMarkers:!0,markerRadius:5},x=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,S=/^[\w "',.-]+$/,C=new Set([`compactMode`,`padding`,`verticalSeparation`,`horizontalSeparation`,`arcRadius`,`fontSize`,`fontFamily`,`terminalFill`,`terminalStroke`,`terminalTextColor`,`nonTerminalFill`,`nonTerminalStroke`,`nonTerminalTextColor`,`lineColor`,`strokeWidth`,`markerFill`,`commentFill`,`commentStroke`,`commentTextColor`,`specialFill`,`specialStroke`,`ruleNameColor`,`showMarkers`,`markerRadius`]),w=c(e=>e?Object.keys(e).every(e=>e===`railroad`||C.has(e)):!1,`isRailroadStyleOptions`),T=c(e=>e?`railroad`in e&&e.railroad?e.railroad:w(e)?e:{}:{},`extractRailroadOverrides`),E=c(e=>{if(!e||w(e))return{};let{railroad:t,svgId:n,theme:r,look:i,...a}=e;return a},`extractThemeOverrides`),D=c((e,t)=>{if(typeof e!=`string`)return t;let n=e.trim();return x.test(n)?n:t},`sanitizeColorValue`),O=c((e,t)=>{if(typeof e!=`string`)return t;let n=e.trim();return S.test(n)?n:t},`sanitizeFontFamilyValue`),k=c((e,t)=>{let n=typeof e==`number`?e:typeof e==`string`?Number.parseFloat(e):NaN;return Number.isFinite(n)&&n>=0?n:t},`sanitizeNumberValue`),A=c(e=>{let t=typeof e==`number`?e:typeof e==`string`?Number.parseFloat(e):NaN;return Number.isFinite(t)&&t>0?t:void 0},`parseThemeFontSize`),j=c(e=>{let t=O(e.fontFamily,b.fontFamily),n=A(e.fontSize)??b.fontSize;return{...b,fontFamily:t,fontSize:n,terminalFill:D(e.secondBkg??e.secondaryColor,b.terminalFill),terminalStroke:D(e.secondaryBorderColor??e.lineColor,b.terminalStroke),terminalTextColor:D(e.secondaryTextColor??e.textColor,b.terminalTextColor),nonTerminalFill:D(e.mainBkg??e.background,b.nonTerminalFill),nonTerminalStroke:D(e.primaryBorderColor??e.lineColor,b.nonTerminalStroke),nonTerminalTextColor:D(e.primaryTextColor??e.textColor,b.nonTerminalTextColor),lineColor:D(e.lineColor,b.lineColor),markerFill:D(e.lineColor,b.markerFill),commentFill:D(e.labelBackground??e.tertiaryColor,b.commentFill),commentStroke:D(e.tertiaryBorderColor??e.lineColor,b.commentStroke),commentTextColor:D(e.tertiaryTextColor??e.textColor,b.commentTextColor),specialFill:D(e.tertiaryColor??e.secondaryColor,b.specialFill),specialStroke:D(e.tertiaryBorderColor??e.secondaryBorderColor,b.specialStroke),ruleNameColor:D(e.titleColor??e.textColor,b.ruleNameColor)}},`buildThemeDefaults`),M=c(e=>{let n=a(),r=j({...t(),...n.themeVariables??{},...E(e)}),i={...n.railroad??{},...T(e)};return{compactMode:i.compactMode??r.compactMode,padding:k(i.padding,r.padding),verticalSeparation:k(i.verticalSeparation,r.verticalSeparation),horizontalSeparation:k(i.horizontalSeparation,r.horizontalSeparation),arcRadius:k(i.arcRadius,r.arcRadius),fontSize:k(i.fontSize,r.fontSize),fontFamily:O(i.fontFamily,r.fontFamily),terminalFill:D(i.terminalFill,r.terminalFill),terminalStroke:D(i.terminalStroke,r.terminalStroke),terminalTextColor:D(i.terminalTextColor,r.terminalTextColor),nonTerminalFill:D(i.nonTerminalFill,r.nonTerminalFill),nonTerminalStroke:D(i.nonTerminalStroke,r.nonTerminalStroke),nonTerminalTextColor:D(i.nonTerminalTextColor,r.nonTerminalTextColor),lineColor:D(i.lineColor,r.lineColor),strokeWidth:k(i.strokeWidth,r.strokeWidth),markerFill:D(i.markerFill,r.markerFill),commentFill:D(i.commentFill,r.commentFill),commentStroke:D(i.commentStroke,r.commentStroke),commentTextColor:D(i.commentTextColor,r.commentTextColor),specialFill:D(i.specialFill,r.specialFill),specialStroke:D(i.specialStroke,r.specialStroke),ruleNameColor:D(i.ruleNameColor,r.ruleNameColor),showMarkers:i.showMarkers??r.showMarkers,markerRadius:k(i.markerRadius,r.markerRadius)}},`buildRailroadStyleOptions`),N=c(e=>{let{fontFamily:t,fontSize:n,terminalFill:r,terminalStroke:i,terminalTextColor:a,nonTerminalFill:o,nonTerminalStroke:s,nonTerminalTextColor:c,lineColor:l,strokeWidth:u,markerFill:d,commentFill:f,commentStroke:p,commentTextColor:m,specialFill:h,specialStroke:g,ruleNameColor:_}=M(e);return`
3
3
  .railroad-diagram {
4
4
  font-family: ${t};
@@ -1,4 +1,4 @@
1
- import{t as e}from"./chunk-5VM5RSS4-ZNzvKenW.js";import{t}from"./chunk-XXDRQBXY-BHd-dKtZ.js";import{t as n}from"./chunk-TU62E6Q5-GKcRDmvw.js";import{i as r,n as i,r as a,t as o}from"./mermaid.core-DxBlQ6oF.js";import{t as s}from"./chunk-HFQBQIA3-ChtjyKjP.js";import{h as c,r as l,s as u}from"./chunk-DQASFODM-DSgprMfc.js";import{a as d}from"./chunk-AXFCVDMN-Dgn3RHlx.js";import{i as f,n as p,o as m,r as h}from"./chunk-J5ZVWO5B-oDCd-gWO.js";import{_ as g,c as _}from"./chunk-6MUBBAK2-CWRxZCiu.js";import{C as v,G as ee,H as te,U as y,_ as b,a as x,at as S,b as C,d as w,et as T,q as E,s as D,v as O}from"./chunk-BG4553SI-BDnAChfb.js";import{n as k,t as ne}from"./d3-selection-BhemR5ul.js";import{n as A}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";var re=`flowchart-`,ie=[`laneRole`,`laneIndex`,`drawnExtent`];function j(e){if(!e||typeof e!=`object`)return e;let t={...e};for(let e of ie)Reflect.deleteProperty(t,e);return t}A(j,`withoutInternalKeys`);var M=class{constructor(){this.vertexCounter=0,this.config=C(),this.diagramId=``,this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.droppedSubGraphMembers=[],this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=y,this.setAccDescription=te,this.setDiagramTitle=E,this.getAccTitle=O,this.getAccDescription=b,this.getDiagramTitle=v,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen(`gen-2`)}static{A(this,`FlowDB`)}sanitizeText(e){return D.sanitizeText(e,this.config)}sanitizeNodeLabelType(e){switch(e){case`markdown`:case`string`:case`text`:return e;default:return`markdown`}}setDiagramId(e){this.diagramId=e}lookUpDomId(e){for(let t of this.vertices.values())if(t.id===e)return this.diagramId?`${this.diagramId}-${t.domId}`:t.domId;return this.diagramId?`${this.diagramId}-${e}`:e}addVertex(e,t,n,r,a,s,c={},l){if(!e||e.trim().length===0)return;let f;if(l!==void 0){let e;e=l.includes(`
1
+ import{t as e}from"./chunk-5VM5RSS4-ZNzvKenW.js";import{t}from"./chunk-XXDRQBXY-Do8BIocv.js";import{t as n}from"./chunk-TU62E6Q5-B-rpQQxX.js";import{i as r,n as i,r as a,t as o}from"./mermaid.core-C6mppfDC.js";import{t as s}from"./chunk-HFQBQIA3-pveEMcXK.js";import{h as c,r as l,s as u}from"./chunk-DQASFODM-B-92o8Uj.js";import{a as d}from"./chunk-AXFCVDMN-BElluw_7.js";import{i as f,n as p,o as m,r as h}from"./chunk-J5ZVWO5B-oDCd-gWO.js";import{_ as g,c as _}from"./chunk-6MUBBAK2-BjMKSfTf.js";import{C as v,G as ee,H as te,U as y,_ as b,a as x,at as S,b as C,d as w,et as T,q as E,s as D,v as O}from"./chunk-BG4553SI-CUDwpWNL.js";import{n as k,t as ne}from"./d3-selection-D3xgEEla.js";import{n as A}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";var re=`flowchart-`,ie=[`laneRole`,`laneIndex`,`drawnExtent`];function j(e){if(!e||typeof e!=`object`)return e;let t={...e};for(let e of ie)Reflect.deleteProperty(t,e);return t}A(j,`withoutInternalKeys`);var M=class{constructor(){this.vertexCounter=0,this.config=C(),this.diagramId=``,this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.droppedSubGraphMembers=[],this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=y,this.setAccDescription=te,this.setDiagramTitle=E,this.getAccTitle=O,this.getAccDescription=b,this.getDiagramTitle=v,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen(`gen-2`)}static{A(this,`FlowDB`)}sanitizeText(e){return D.sanitizeText(e,this.config)}sanitizeNodeLabelType(e){switch(e){case`markdown`:case`string`:case`text`:return e;default:return`markdown`}}setDiagramId(e){this.diagramId=e}lookUpDomId(e){for(let t of this.vertices.values())if(t.id===e)return this.diagramId?`${this.diagramId}-${t.domId}`:t.domId;return this.diagramId?`${this.diagramId}-${e}`:e}addVertex(e,t,n,r,a,s,c={},l){if(!e||e.trim().length===0)return;let f;if(l!==void 0){let e;e=l.includes(`
2
2
  `)?l+`
3
3
  `:`{
4
4
  `+l+`
@@ -1 +1 @@
1
- import{y as e,z as t}from"./chunk-BG4553SI-BDnAChfb.js";import{n}from"./d3-selection-BhemR5ul.js";import{n as r}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";var i=Object.freeze({left:0,top:0,width:16,height:16}),a=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),o=Object.freeze({...i,...a}),s=Object.freeze({...o,body:``,hidden:!1}),c=Object.freeze({width:null,height:null}),l=Object.freeze({...c,...a}),u=(e,t,n,r=``)=>{let i=e.split(`:`);if(e.slice(0,1)===`@`){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let e=i.pop(),n=i.pop(),a={provider:i.length>0?i[0]:r,prefix:n,name:e};return t&&!d(a)?null:a}let a=i[0],o=a.split(`-`);if(o.length>1){let e={provider:r,prefix:o.shift(),name:o.join(`-`)};return t&&!d(e)?null:e}if(n&&r===``){let e={provider:r,prefix:``,name:a};return t&&!d(e,n)?null:e}return null},d=(e,t)=>e?!!((t&&e.prefix===``||e.prefix)&&e.name):!1;function f(e,t){let n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);let r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function p(e,t){let n=f(e,t);for(let r in s)r in a?r in e&&!(r in n)&&(n[r]=a[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function m(e,t){let n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function a(e){if(n[e])return i[e]=[];if(!(e in i)){i[e]=null;let t=r[e]&&r[e].parent,n=t&&a(t);n&&(i[e]=[t].concat(n))}return i[e]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(a),i}function h(e,t,n){let r=e.icons,i=e.aliases||Object.create(null),a={};function o(e){a=p(r[e]||i[e],a)}return o(t),n.forEach(o),p(e,a)}function g(e,t){if(e.icons[t])return h(e,t,[]);let n=m(e,[t])[t];return n?h(e,t,n):null}var _=/(-?[0-9.]*[0-9]+[0-9.]*)/g,v=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function y(e,t,n){if(t===1)return e;if(n||=100,typeof e==`number`)return Math.ceil(e*t*n)/n;if(typeof e!=`string`)return e;let r=e.split(_);if(r===null||!r.length)return e;let i=[],a=r.shift(),o=v.test(a);for(;;){if(o){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join(``);o=!o}}function b(e,t=`defs`){let n=``,r=e.indexOf(`<`+t);for(;r>=0;){let i=e.indexOf(`>`,r),a=e.indexOf(`</`+t);if(i===-1||a===-1)break;let o=e.indexOf(`>`,a);if(o===-1)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function x(e,t){return e?`<defs>`+e+`</defs>`+t:t}function S(e,t,n){let r=b(e);return x(r.defs,t+r.content+n)}var C=e=>e===`unset`||e===`undefined`||e===`none`;function w(e,t){let n={...o,...e},r={...l,...t},i={left:n.left,top:n.top,width:n.width,height:n.height},a=n.body;[n,r].forEach(e=>{let t=[],n=e.hFlip,r=e.vFlip,o=e.rotate;n?r?o+=2:(t.push(`translate(`+(i.width+i.left).toString()+` `+(0-i.top).toString()+`)`),t.push(`scale(-1 1)`),i.top=i.left=0):r&&(t.push(`translate(`+(0-i.left).toString()+` `+(i.height+i.top).toString()+`)`),t.push(`scale(1 -1)`),i.top=i.left=0);let s;switch(o<0&&(o-=Math.floor(o/4)*4),o%=4,o){case 1:s=i.height/2+i.top,t.unshift(`rotate(90 `+s.toString()+` `+s.toString()+`)`);break;case 2:t.unshift(`rotate(180 `+(i.width/2+i.left).toString()+` `+(i.height/2+i.top).toString()+`)`);break;case 3:s=i.width/2+i.left,t.unshift(`rotate(-90 `+s.toString()+` `+s.toString()+`)`)}o%2==1&&(i.left!==i.top&&(s=i.left,i.left=i.top,i.top=s),i.width!==i.height&&(s=i.width,i.width=i.height,i.height=s)),t.length&&(a=S(a,`<g transform="`+t.join(` `)+`">`,`</g>`))});let s=r.width,c=r.height,u=i.width,d=i.height,f,p;s===null?(p=c===null?`1em`:c===`auto`?d:c,f=y(p,u/d)):(f=s===`auto`?u:s,p=c===null?y(f,d/u):c===`auto`?d:c);let m={},h=(e,t)=>{C(t)||(m[e]=t.toString())};h(`width`,f),h(`height`,p);let g=[i.left,i.top,u,d];return m.viewBox=g.join(` `),{attributes:m,viewBox:g,body:a}}var T=/\sid="(\S+)"/g,E=new Map;function D(e){e=e.replace(/[0-9]+$/,``)||`a`;let t=E.get(e)||0;return E.set(e,t+1),t?`${e}${t}`:e}function O(e){let t=[],n;for(;n=T.exec(e);)t.push(n[1]);if(!t.length)return e;let r=`suffix`+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(t=>{let n=D(t),i=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);e=e.replace(RegExp(`([#;"])(`+i+`)([")]|\\.[a-z])`,`g`),`$1`+n+r+`$3`)}),e=e.replace(new RegExp(r,`g`),``),e}function k(e,t){let n=e.indexOf(`xlink:`)===-1?``:` xmlns:xlink="http://www.w3.org/1999/xlink"`;for(let e in t)n+=` `+e+`="`+t[e]+`"`;return`<svg xmlns="http://www.w3.org/2000/svg"`+n+`>`+e+`</svg>`}var A={body:`<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>`,height:80,width:80},j=new Map,M=new Map,N=r(e=>{for(let t of e){if(!t.name)throw Error(`Invalid icon loader. Must have a "name" property with non-empty string value.`);if(n.debug(`Registering icon pack:`,t.name),`loader`in t)M.set(t.name,t.loader);else if(`icons`in t)j.set(t.name,t.icons);else throw n.error(`Invalid icon loader:`,t),Error(`Invalid icon loader. Must have either "icons" or "loader" property.`)}},`registerIconPacks`),P=r(e=>j.has(e)||M.has(e),`isIconPackRegistered`),F=r(async(e,t)=>{let r=u(e,!0,t!==void 0);if(!r)throw Error(`Invalid icon name: ${e}`);let i=r.prefix||t;if(!i)throw Error(`Icon name must contain a prefix: ${e}`);let a=j.get(i);if(!a){let e=M.get(i);if(!e)throw Error(`Icon set not found: ${r.prefix}`);try{a={...await e(),prefix:i},j.set(i,a)}catch(e){throw n.error(e),Error(`Failed to load icon set: ${r.prefix}`)}}let o=g(a,r.name);if(!o)throw Error(`Icon not found: ${e}`);return o},`getRegisteredIconData`),I=r(async e=>{try{return await F(e),!0}catch{return!1}},`isIconAvailable`),L=r(async(r,i,a)=>{let o;try{o=await F(r,i?.fallbackPrefix)}catch(e){n.error(e),o=A}let s=w(o,i),c=k(O(s.body),{...s.attributes,...a});return t(c,e())},`getIconSVG`);export{A as a,N as i,I as n,P as r,L as t};
1
+ import{y as e,z as t}from"./chunk-BG4553SI-CUDwpWNL.js";import{n}from"./d3-selection-D3xgEEla.js";import{n as r}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";var i=Object.freeze({left:0,top:0,width:16,height:16}),a=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),o=Object.freeze({...i,...a}),s=Object.freeze({...o,body:``,hidden:!1}),c=Object.freeze({width:null,height:null}),l=Object.freeze({...c,...a}),u=(e,t,n,r=``)=>{let i=e.split(`:`);if(e.slice(0,1)===`@`){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let e=i.pop(),n=i.pop(),a={provider:i.length>0?i[0]:r,prefix:n,name:e};return t&&!d(a)?null:a}let a=i[0],o=a.split(`-`);if(o.length>1){let e={provider:r,prefix:o.shift(),name:o.join(`-`)};return t&&!d(e)?null:e}if(n&&r===``){let e={provider:r,prefix:``,name:a};return t&&!d(e,n)?null:e}return null},d=(e,t)=>e?!!((t&&e.prefix===``||e.prefix)&&e.name):!1;function f(e,t){let n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);let r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function p(e,t){let n=f(e,t);for(let r in s)r in a?r in e&&!(r in n)&&(n[r]=a[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function m(e,t){let n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function a(e){if(n[e])return i[e]=[];if(!(e in i)){i[e]=null;let t=r[e]&&r[e].parent,n=t&&a(t);n&&(i[e]=[t].concat(n))}return i[e]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(a),i}function h(e,t,n){let r=e.icons,i=e.aliases||Object.create(null),a={};function o(e){a=p(r[e]||i[e],a)}return o(t),n.forEach(o),p(e,a)}function g(e,t){if(e.icons[t])return h(e,t,[]);let n=m(e,[t])[t];return n?h(e,t,n):null}var _=/(-?[0-9.]*[0-9]+[0-9.]*)/g,v=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function y(e,t,n){if(t===1)return e;if(n||=100,typeof e==`number`)return Math.ceil(e*t*n)/n;if(typeof e!=`string`)return e;let r=e.split(_);if(r===null||!r.length)return e;let i=[],a=r.shift(),o=v.test(a);for(;;){if(o){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join(``);o=!o}}function b(e,t=`defs`){let n=``,r=e.indexOf(`<`+t);for(;r>=0;){let i=e.indexOf(`>`,r),a=e.indexOf(`</`+t);if(i===-1||a===-1)break;let o=e.indexOf(`>`,a);if(o===-1)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function x(e,t){return e?`<defs>`+e+`</defs>`+t:t}function S(e,t,n){let r=b(e);return x(r.defs,t+r.content+n)}var C=e=>e===`unset`||e===`undefined`||e===`none`;function w(e,t){let n={...o,...e},r={...l,...t},i={left:n.left,top:n.top,width:n.width,height:n.height},a=n.body;[n,r].forEach(e=>{let t=[],n=e.hFlip,r=e.vFlip,o=e.rotate;n?r?o+=2:(t.push(`translate(`+(i.width+i.left).toString()+` `+(0-i.top).toString()+`)`),t.push(`scale(-1 1)`),i.top=i.left=0):r&&(t.push(`translate(`+(0-i.left).toString()+` `+(i.height+i.top).toString()+`)`),t.push(`scale(1 -1)`),i.top=i.left=0);let s;switch(o<0&&(o-=Math.floor(o/4)*4),o%=4,o){case 1:s=i.height/2+i.top,t.unshift(`rotate(90 `+s.toString()+` `+s.toString()+`)`);break;case 2:t.unshift(`rotate(180 `+(i.width/2+i.left).toString()+` `+(i.height/2+i.top).toString()+`)`);break;case 3:s=i.width/2+i.left,t.unshift(`rotate(-90 `+s.toString()+` `+s.toString()+`)`)}o%2==1&&(i.left!==i.top&&(s=i.left,i.left=i.top,i.top=s),i.width!==i.height&&(s=i.width,i.width=i.height,i.height=s)),t.length&&(a=S(a,`<g transform="`+t.join(` `)+`">`,`</g>`))});let s=r.width,c=r.height,u=i.width,d=i.height,f,p;s===null?(p=c===null?`1em`:c===`auto`?d:c,f=y(p,u/d)):(f=s===`auto`?u:s,p=c===null?y(f,d/u):c===`auto`?d:c);let m={},h=(e,t)=>{C(t)||(m[e]=t.toString())};h(`width`,f),h(`height`,p);let g=[i.left,i.top,u,d];return m.viewBox=g.join(` `),{attributes:m,viewBox:g,body:a}}var T=/\sid="(\S+)"/g,E=new Map;function D(e){e=e.replace(/[0-9]+$/,``)||`a`;let t=E.get(e)||0;return E.set(e,t+1),t?`${e}${t}`:e}function O(e){let t=[],n;for(;n=T.exec(e);)t.push(n[1]);if(!t.length)return e;let r=`suffix`+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(t=>{let n=D(t),i=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);e=e.replace(RegExp(`([#;"])(`+i+`)([")]|\\.[a-z])`,`g`),`$1`+n+r+`$3`)}),e=e.replace(new RegExp(r,`g`),``),e}function k(e,t){let n=e.indexOf(`xlink:`)===-1?``:` xmlns:xlink="http://www.w3.org/1999/xlink"`;for(let e in t)n+=` `+e+`="`+t[e]+`"`;return`<svg xmlns="http://www.w3.org/2000/svg"`+n+`>`+e+`</svg>`}var A={body:`<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>`,height:80,width:80},j=new Map,M=new Map,N=r(e=>{for(let t of e){if(!t.name)throw Error(`Invalid icon loader. Must have a "name" property with non-empty string value.`);if(n.debug(`Registering icon pack:`,t.name),`loader`in t)M.set(t.name,t.loader);else if(`icons`in t)j.set(t.name,t.icons);else throw n.error(`Invalid icon loader:`,t),Error(`Invalid icon loader. Must have either "icons" or "loader" property.`)}},`registerIconPacks`),P=r(e=>j.has(e)||M.has(e),`isIconPackRegistered`),F=r(async(e,t)=>{let r=u(e,!0,t!==void 0);if(!r)throw Error(`Invalid icon name: ${e}`);let i=r.prefix||t;if(!i)throw Error(`Icon name must contain a prefix: ${e}`);let a=j.get(i);if(!a){let e=M.get(i);if(!e)throw Error(`Icon set not found: ${r.prefix}`);try{a={...await e(),prefix:i},j.set(i,a)}catch(e){throw n.error(e),Error(`Failed to load icon set: ${r.prefix}`)}}let o=g(a,r.name);if(!o)throw Error(`Icon not found: ${e}`);return o},`getRegisteredIconData`),I=r(async e=>{try{return await F(e),!0}catch{return!1}},`isIconAvailable`),L=r(async(r,i,a)=>{let o;try{o=await F(r,i?.fallbackPrefix)}catch(e){n.error(e),o=A}let s=w(o,i),c=k(O(s.body),{...s.attributes,...a});return t(c,e())},`getIconSVG`);export{A as a,N as i,I as n,P as r,L as t};
@@ -1,4 +1,4 @@
1
- import{n as e,t}from"./chunk-R3KSYZAL-C6git_yh.js";import{a as n}from"./chunk-6MUBBAK2-CWRxZCiu.js";import{F as r,k as i,s as a,y as o,z as s}from"./chunk-BG4553SI-BDnAChfb.js";import{n as c,t as l}from"./d3-selection-BhemR5ul.js";import{n as u}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";function d(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var f=d();function p(e){f=e}var m={exec:()=>null};function h(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(_.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var g=(()=>{try{return!0}catch{return!1}})(),_={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,`i`)},ee=/^(?:[ \t]*(?:\n|$))+/,te=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ne=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,v=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,re=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,y=/(?:[*+-]|\d{1,9}[.)])/,ie=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ae=h(ie).replace(/bull/g,y).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),oe=h(ie).replace(/bull/g,y).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),b=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,se=/^[^\n]+/,x=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,ce=h(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,x).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),le=h(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,y).getRegex(),S=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,C=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ue=h(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,C).replace(`tag`,S).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),de=h(b).replace(`hr`,v).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,S).getRegex(),w={blockquote:h(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,de).getRegex(),code:te,def:ce,fences:ne,heading:re,hr:v,html:ue,lheading:ae,list:le,newline:ee,paragraph:de,table:m,text:se},fe=h(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,v).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,S).getRegex(),pe={...w,lheading:oe,table:fe,paragraph:h(b).replace(`hr`,v).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,fe).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,S).getRegex()},me={...w,html:h(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,C).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:m,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:h(b).replace(`hr`,v).replace(`heading`,` *#{1,6} *[^
1
+ import{n as e,t}from"./chunk-R3KSYZAL-B4BOidE6.js";import{a as n}from"./chunk-6MUBBAK2-BjMKSfTf.js";import{F as r,k as i,s as a,y as o,z as s}from"./chunk-BG4553SI-CUDwpWNL.js";import{n as c,t as l}from"./d3-selection-D3xgEEla.js";import{n as u}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";function d(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var f=d();function p(e){f=e}var m={exec:()=>null};function h(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(_.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var g=(()=>{try{return!0}catch{return!1}})(),_={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,`i`)},ee=/^(?:[ \t]*(?:\n|$))+/,te=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ne=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,v=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,re=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,y=/(?:[*+-]|\d{1,9}[.)])/,ie=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ae=h(ie).replace(/bull/g,y).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),oe=h(ie).replace(/bull/g,y).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),b=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,se=/^[^\n]+/,x=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,ce=h(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,x).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),le=h(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,y).getRegex(),S=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,C=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ue=h(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,C).replace(`tag`,S).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),de=h(b).replace(`hr`,v).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,S).getRegex(),w={blockquote:h(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,de).getRegex(),code:te,def:ce,fences:ne,heading:re,hr:v,html:ue,lheading:ae,list:le,newline:ee,paragraph:de,table:m,text:se},fe=h(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,v).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,S).getRegex(),pe={...w,lheading:oe,table:fe,paragraph:h(b).replace(`hr`,v).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,fe).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,S).getRegex()},me={...w,html:h(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,C).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:m,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:h(b).replace(`hr`,v).replace(`heading`,` *#{1,6} *[^
2
2
  ]`).replace(`lheading`,ae).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},he=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ge=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,_e=/^( {2,}|\\)\n(?!\s*$)/,ve=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,T=/[\p{P}\p{S}]/u,E=/[\s\p{P}\p{S}]/u,ye=/[^\s\p{P}\p{S}]/u,be=h(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,E).getRegex(),xe=/(?!~)[\p{P}\p{S}]/u,Se=/(?!~)[\s\p{P}\p{S}]/u,Ce=/(?:[^\s\p{P}\p{S}]|~)/u,we=h(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,g?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),Te=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Ee=h(Te,`u`).replace(/punct/g,T).getRegex(),De=h(Te,`u`).replace(/punct/g,xe).getRegex(),Oe=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,ke=h(Oe,`gu`).replace(/notPunctSpace/g,ye).replace(/punctSpace/g,E).replace(/punct/g,T).getRegex(),Ae=h(Oe,`gu`).replace(/notPunctSpace/g,Ce).replace(/punctSpace/g,Se).replace(/punct/g,xe).getRegex(),je=h(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,ye).replace(/punctSpace/g,E).replace(/punct/g,T).getRegex(),Me=h(/\\(punct)/,`gu`).replace(/punct/g,T).getRegex(),Ne=h(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Pe=h(C).replace(`(?:-->|$)`,`-->`).getRegex(),Fe=h(`^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,Pe).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),D=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Ie=h(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace(`label`,D).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Le=h(/^!?\[(label)\]\[(ref)\]/).replace(`label`,D).replace(`ref`,x).getRegex(),Re=h(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,x).getRegex(),ze=h(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,Le).replace(`nolink`,Re).getRegex(),Be=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,O={_backpedal:m,anyPunctuation:Me,autolink:Ne,blockSkip:we,br:_e,code:ge,del:m,emStrongLDelim:Ee,emStrongRDelimAst:ke,emStrongRDelimUnd:je,escape:he,link:Ie,nolink:Re,punctuation:be,reflink:Le,reflinkSearch:ze,tag:Fe,text:ve,url:m},Ve={...O,link:h(/^!?\[(label)\]\((.*?)\)/).replace(`label`,D).getRegex(),reflink:h(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,D).getRegex()},k={...O,emStrongRDelimAst:Ae,emStrongLDelim:De,url:h(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,Be).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:h(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace(`protocol`,Be).getRegex()},He={...k,br:h(_e).replace(`{2,}`,`*`).getRegex(),text:h(k.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},A={normal:w,gfm:pe,pedantic:me},j={normal:O,gfm:k,breaks:He,pedantic:Ve},Ue={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},We=e=>Ue[e];function M(e,t){if(t){if(_.escapeTest.test(e))return e.replace(_.escapeReplace,We)}else if(_.escapeTestNoEncode.test(e))return e.replace(_.escapeReplaceNoEncode,We);return e}function Ge(e){try{e=encodeURI(e).replace(_.percentDecode,`%`)}catch{return null}return e}function Ke(e,t){let n=e.replace(_.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(_.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t){if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``)}for(;r<n.length;r++)n[r]=n[r].trim().replace(_.slashPipe,`|`);return n}function N(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function qe(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function Je(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let c={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}function Ye(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
3
3
  `).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
4
4
  `)}var P=class{options;rules;lexer;constructor(e){this.options=e||f}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,``);return{type:`code`,raw:t[0],codeBlockStyle:`indented`,text:this.options.pedantic?e:N(e,`
@@ -1 +1 @@
1
- import{c as e}from"./chunk-BG4553SI-BDnAChfb.js";import{n as t}from"./d3-selection-BhemR5ul.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";var r=n((n,r,o,s)=>{n.attr(`class`,o);let{width:c,height:l,x:u,y:d}=i(n,r);e(n,l,c,s);let f=a(u,d,c,l,r);n.attr(`viewBox`,f),t.debug(`viewBox configured: ${f} with padding: ${r}`)},`setupViewPortForSVG`),i=n((e,t)=>{let n=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:n.width+t*2,height:n.height+t*2,x:n.x,y:n.y}},`calculateDimensionsWithPadding`),a=n((e,t,n,r,i)=>`${e-i} ${t-i} ${n} ${r}`,`createViewBox`);export{r as t};
1
+ import{c as e}from"./chunk-BG4553SI-CUDwpWNL.js";import{n as t}from"./d3-selection-D3xgEEla.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";var r=n((n,r,o,s)=>{n.attr(`class`,o);let{width:c,height:l,x:u,y:d}=i(n,r);e(n,l,c,s);let f=a(u,d,c,l,r);n.attr(`viewBox`,f),t.debug(`viewBox configured: ${f} with padding: ${r}`)},`setupViewPortForSVG`),i=n((e,t)=>{let n=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:n.width+t*2,height:n.height+t*2,x:n.x,y:n.y}},`calculateDimensionsWithPadding`),a=n((e,t,n,r,i)=>`${e-i} ${t-i} ${n} ${r}`,`createViewBox`);export{r as t};
@@ -1 +1 @@
1
- import{b as e}from"./chunk-BG4553SI-BDnAChfb.js";import{n as t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";var n=t(t=>{let{handDrawnSeed:n}=e();return{fill:t,hachureAngle:120,hachureGap:1.5,fillWeight:1.5,roughness:.7,stroke:t,seed:n}},`solidStateFill`),r=t(e=>Array.isArray(e)?e:e?e.split(`;`).map(e=>e.trim()).filter(Boolean):[],`normalizeStyleList`),i=t(e=>{let t=a([...e.cssCompiledStyles||[],...e.cssStyles||[],...r(e.labelStyle)]);return{stylesMap:t,stylesArray:[...t]}},`compileStyles`),a=t(e=>{let t=new Map;return e.forEach(e=>{let[n,r]=e.split(`:`);t.set(n.trim(),r?.trim())}),t},`styles2Map`),o=t(e=>e===`color`||e===`font-size`||e===`font-family`||e===`font-weight`||e===`font-style`||e===`text-decoration`||e===`text-align`||e===`text-transform`||e===`line-height`||e===`letter-spacing`||e===`word-spacing`||e===`text-shadow`||e===`text-overflow`||e===`white-space`||e===`word-wrap`||e===`word-break`||e===`overflow-wrap`||e===`hyphens`,`isLabelStyle`),s=t(e=>{let{stylesArray:t}=i(e),n=[],r=[],a=[],s=[];return t.forEach(e=>{let t=e[0];o(t)?n.push(e.join(`:`)+` !important`):(r.push(e.join(`:`)+` !important`),t.includes(`stroke`)&&a.push(e.join(`:`)+` !important`),t===`fill`&&s.push(e.join(`:`)+` !important`))}),{labelStyles:n.join(`;`),nodeStyles:r.join(`;`),stylesArray:t,borderStyles:a,backgroundStyles:s}},`styles2String`),c=t((t,n)=>{let{themeVariables:r,handDrawnSeed:a}=e(),{nodeBorder:o,mainBkg:s}=r,{stylesMap:c}=i(t);return Object.assign({roughness:.7,fill:c.get(`fill`)||s,fillStyle:`hachure`,fillWeight:1.5,hachureGap:1.5,stroke:c.get(`stroke`)||o,seed:a,strokeWidth:c.get(`stroke-width`)?.replace(`px`,``)||1.3,fillLineDash:[0,0],strokeLineDash:l(c.get(`stroke-dasharray`))},n)},`userNodeOverrides`),l=t(e=>{if(!e)return[0,0];let t=e.trim().split(/\s+/).map(Number);if(t.length===1){let e=isNaN(t[0])?0:t[0];return[e,e]}return[isNaN(t[0])?0:t[0],isNaN(t[1])?0:t[1]]},`getStrokeDashArray`);export{c as a,s as i,o as n,n as r,i as t};
1
+ import{b as e}from"./chunk-BG4553SI-CUDwpWNL.js";import{n as t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";var n=t(t=>{let{handDrawnSeed:n}=e();return{fill:t,hachureAngle:120,hachureGap:1.5,fillWeight:1.5,roughness:.7,stroke:t,seed:n}},`solidStateFill`),r=t(e=>Array.isArray(e)?e:e?e.split(`;`).map(e=>e.trim()).filter(Boolean):[],`normalizeStyleList`),i=t(e=>{let t=a([...e.cssCompiledStyles||[],...e.cssStyles||[],...r(e.labelStyle)]);return{stylesMap:t,stylesArray:[...t]}},`compileStyles`),a=t(e=>{let t=new Map;return e.forEach(e=>{let[n,r]=e.split(`:`);t.set(n.trim(),r?.trim())}),t},`styles2Map`),o=t(e=>e===`color`||e===`font-size`||e===`font-family`||e===`font-weight`||e===`font-style`||e===`text-decoration`||e===`text-align`||e===`text-transform`||e===`line-height`||e===`letter-spacing`||e===`word-spacing`||e===`text-shadow`||e===`text-overflow`||e===`white-space`||e===`word-wrap`||e===`word-break`||e===`overflow-wrap`||e===`hyphens`,`isLabelStyle`),s=t(e=>{let{stylesArray:t}=i(e),n=[],r=[],a=[],s=[];return t.forEach(e=>{let t=e[0];o(t)?n.push(e.join(`:`)+` !important`):(r.push(e.join(`:`)+` !important`),t.includes(`stroke`)&&a.push(e.join(`:`)+` !important`),t===`fill`&&s.push(e.join(`:`)+` !important`))}),{labelStyles:n.join(`;`),nodeStyles:r.join(`;`),stylesArray:t,borderStyles:a,backgroundStyles:s}},`styles2String`),c=t((t,n)=>{let{themeVariables:r,handDrawnSeed:a}=e(),{nodeBorder:o,mainBkg:s}=r,{stylesMap:c}=i(t);return Object.assign({roughness:.7,fill:c.get(`fill`)||s,fillStyle:`hachure`,fillWeight:1.5,hachureGap:1.5,stroke:c.get(`stroke`)||o,seed:a,strokeWidth:c.get(`stroke-width`)?.replace(`px`,``)||1.3,fillLineDash:[0,0],strokeLineDash:l(c.get(`stroke-dasharray`))},n)},`userNodeOverrides`),l=t(e=>{if(!e)return[0,0];let t=e.trim().split(/\s+/).map(Number);if(t.length===1){let e=isNaN(t[0])?0:t[0];return[e,e]}return[isNaN(t[0])?0:t[0],isNaN(t[1])?0:t[1]]},`getStrokeDashArray`);export{c as a,s as i,o as n,n as r,i as t};
@@ -1 +1 @@
1
- import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{t}from"./d3-selection-BhemR5ul.js";var n=e((e,n)=>{let r;return n===`sandbox`&&(r=t(`#i`+e)),t(n===`sandbox`?r.nodes()[0].contentDocument.body:`body`).select(`[id="${e}"]`)},`getDiagramElement`);export{n as t};
1
+ import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{t}from"./d3-selection-D3xgEEla.js";var n=e((e,n)=>{let r;return n===`sandbox`&&(r=t(`#i`+e)),t(n===`sandbox`?r.nodes()[0].contentDocument.body:`body`).select(`[id="${e}"]`)},`getDiagramElement`);export{n as t};
@@ -1,4 +1,4 @@
1
- import{t as e}from"./chunk-5VM5RSS4-ZNzvKenW.js";import{t}from"./chunk-XXDRQBXY-BHd-dKtZ.js";import{t as n}from"./chunk-TU62E6Q5-GKcRDmvw.js";import{i as r,r as i}from"./mermaid.core-DxBlQ6oF.js";import{t as a}from"./chunk-HFQBQIA3-ChtjyKjP.js";import"./chunk-M57EVK23-CKAWW7fj.js";import"./chunk-DQASFODM-DSgprMfc.js";import"./chunk-LEVMRMFU-2jTGUstS.js";import"./chunk-AXFCVDMN-Dgn3RHlx.js";import"./chunk-X4PVCEUW-CMG5EfZ9.js";import"./chunk-STOXU5M4-AwEqcNnS.js";import"./chunk-R3KSYZAL-C6git_yh.js";import{i as o,n as s,o as c,r as l}from"./chunk-J5ZVWO5B-oDCd-gWO.js";import{_ as u,c as d}from"./chunk-6MUBBAK2-CWRxZCiu.js";import{C as f,H as p,M as m,U as h,_ as g,a as _,b as v,et as y,q as b,s as x,v as S,z as C}from"./chunk-BG4553SI-BDnAChfb.js";import{n as w,t as T}from"./d3-selection-BhemR5ul.js";import{n as E}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";var D=(function(){var e=E(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,18],n=[1,19],r=[1,20],i=[1,41],a=[1,26],o=[1,42],s=[1,24],c=[1,25],l=[1,32],u=[1,33],d=[1,34],f=[1,45],p=[1,35],m=[1,36],h=[1,37],g=[1,38],_=[1,27],v=[1,28],y=[1,29],b=[1,30],x=[1,31],S=[1,44],C=[1,46],w=[1,43],T=[1,47],D=[1,9],O=[1,8,9],k=[1,58],A=[1,59],j=[1,60],M=[1,61],N=[1,62],P=[1,63],F=[1,64],I=[1,8,9,41],ee=[1,77],L=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],R=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],z=[13,60,86,100,102,103],B=[13,60,73,74,86,100,102,103],te=[13,60,68,69,70,71,72,86,100,102,103],V=[1,103],H=[1,121],U=[1,117],W=[1,113],G=[1,119],K=[1,114],q=[1,115],J=[1,116],Y=[1,118],X=[1,120],ne=[22,50,60,61,82,86,87,88,89,90],re=[1,128],Z=[12,39],ie=[1,8,9,39,41,44,46],Q=[1,8,9,22],ae=[1,153],oe=[1,8,9,61],$=[1,8,9,22,50,60,61,82,86,87,88,89,90],se={trace:E(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:`error`,7:`CLASS_DIAGRAM`,8:`NEWLINE`,9:`EOF`,12:`SQS`,13:`STR`,14:`SQE`,18:`DOT`,20:`GENERICTYPE`,22:`LABEL`,33:`acc_title`,34:`acc_title_value`,35:`acc_descr`,36:`acc_descr_value`,37:`acc_descr_multiline_value`,39:`STRUCT_START`,41:`STRUCT_STOP`,42:`NAMESPACE`,44:`STYLE_SEPARATOR`,46:`ANNOTATION_START`,47:`ANNOTATION_END`,48:`CLASS`,50:`SPACE`,51:`MEMBER`,52:`SEPARATOR`,54:`NOTE_FOR`,56:`NOTE`,57:`CLASSDEF`,60:`ALPHA`,61:`COMMA`,62:`direction_tb`,63:`direction_bt`,64:`direction_rl`,65:`direction_lr`,68:`AGGREGATION`,69:`EXTENSION`,70:`COMPOSITION`,71:`DEPENDENCY`,72:`LOLLIPOP`,73:`LINE`,74:`DOTTED_LINE`,75:`CALLBACK`,76:`LINK`,77:`LINK_TARGET`,78:`CLICK`,79:`CALLBACK_NAME`,80:`CALLBACK_ARGS`,81:`HREF`,82:`STYLE`,83:`CSSCLASS`,86:`NUM`,87:`COLON`,88:`UNIT`,89:`BRKT`,90:`PCT`,93:`graphCodeTokens`,95:`TAGSTART`,96:`TAGEND`,97:`==`,98:`--`,99:`DEFAULT`,100:`MINUS`,101:`keywords`,102:`UNICODE_TEXT`,103:`BQUOTE_STR`},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:E(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 8:this.$=a[s-1];break;case 9:case 10:case 13:case 15:this.$=a[s];break;case 11:case 14:this.$=a[s-2]+`.`+a[s];break;case 12:case 16:this.$=a[s-1]+a[s];break;case 17:case 18:this.$=a[s-1]+`~`+a[s]+`~`;break;case 19:r.addRelation(a[s]);break;case 20:a[s-1].title=r.cleanupLabel(a[s]),r.addRelation(a[s-1]);break;case 31:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 32:case 33:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 34:r.addClassesToNamespace(a[s-3],a[s-1][0],a[s-1][1]),r.popNamespace();break;case 35:r.addClassesToNamespace(a[s-4],a[s-1][0],a[s-1][1]),r.popNamespace();break;case 36:this.$=r.addNamespace(a[s]);break;case 37:this.$=r.addNamespace(a[s-1],a[s]);break;case 38:this.$=[[a[s]],[]];break;case 39:this.$=[[a[s-1]],[]];break;case 40:a[s][0].unshift(a[s-2]),this.$=a[s];break;case 41:this.$=[[],[a[s]]];break;case 42:this.$=[[],[a[s-1]]];break;case 43:a[s][1].unshift(a[s-2]),this.$=a[s];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=a[s];break;case 48:r.setCssClass(a[s-2],a[s]);break;case 49:r.addMembers(a[s-3],a[s-1]);break;case 51:r.setCssClass(a[s-5],a[s-3]),r.addMembers(a[s-5],a[s-1]);break;case 52:r.addAnnotation(a[s-3],a[s-1]);break;case 53:r.addAnnotation(a[s-6],a[s-4]),r.addMembers(a[s-6],a[s-1]);break;case 54:r.addAnnotation(a[s-5],a[s-3]);break;case 55:this.$=a[s],r.addClass(a[s]);break;case 56:this.$=a[s-1],r.addClass(a[s-1]),r.setClassLabel(a[s-1],a[s]);break;case 60:r.addAnnotation(a[s],a[s-2]);break;case 61:case 74:this.$=[a[s]];break;case 62:a[s].push(a[s-1]),this.$=a[s];break;case 63:break;case 64:r.addMember(a[s-1],r.cleanupLabel(a[s]));break;case 65:break;case 66:break;case 67:this.$={id1:a[s-2],id2:a[s],relation:a[s-1],relationTitle1:`none`,relationTitle2:`none`};break;case 68:this.$={id1:a[s-3],id2:a[s],relation:a[s-1],relationTitle1:a[s-2],relationTitle2:`none`};break;case 69:this.$={id1:a[s-3],id2:a[s],relation:a[s-2],relationTitle1:`none`,relationTitle2:a[s-1]};break;case 70:this.$={id1:a[s-4],id2:a[s],relation:a[s-2],relationTitle1:a[s-3],relationTitle2:a[s-1]};break;case 71:this.$=r.addNote(a[s],a[s-1]);break;case 72:this.$=r.addNote(a[s]);break;case 73:this.$=a[s-2],r.defineClass(a[s-1],a[s]);break;case 75:this.$=a[s-2].concat([a[s]]);break;case 76:r.setDirection(`TB`);break;case 77:r.setDirection(`BT`);break;case 78:r.setDirection(`RL`);break;case 79:r.setDirection(`LR`);break;case 80:this.$={type1:a[s-2],type2:a[s],lineType:a[s-1]};break;case 81:this.$={type1:`none`,type2:a[s],lineType:a[s-1]};break;case 82:this.$={type1:a[s-1],type2:`none`,lineType:a[s]};break;case 83:this.$={type1:`none`,type2:`none`,lineType:a[s]};break;case 84:this.$=r.relationType.AGGREGATION;break;case 85:this.$=r.relationType.EXTENSION;break;case 86:this.$=r.relationType.COMPOSITION;break;case 87:this.$=r.relationType.DEPENDENCY;break;case 88:this.$=r.relationType.LOLLIPOP;break;case 89:this.$=r.lineType.LINE;break;case 90:this.$=r.lineType.DOTTED_LINE;break;case 91:case 97:this.$=a[s-2],r.setClickEvent(a[s-1],a[s]);break;case 92:case 98:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 93:this.$=a[s-2],r.setLink(a[s-1],a[s]);break;case 94:this.$=a[s-3],r.setLink(a[s-2],a[s-1],a[s]);break;case 95:this.$=a[s-3],r.setLink(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 96:this.$=a[s-4],r.setLink(a[s-3],a[s-2],a[s]),r.setTooltip(a[s-3],a[s-1]);break;case 99:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 100:this.$=a[s-4],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setTooltip(a[s-3],a[s]);break;case 101:this.$=a[s-3],r.setLink(a[s-2],a[s]);break;case 102:this.$=a[s-4],r.setLink(a[s-3],a[s-1],a[s]);break;case 103:this.$=a[s-4],r.setLink(a[s-3],a[s-1]),r.setTooltip(a[s-3],a[s]);break;case 104:this.$=a[s-5],r.setLink(a[s-4],a[s-2],a[s]),r.setTooltip(a[s-4],a[s-1]);break;case 105:this.$=a[s-2],r.setCssStyle(a[s-1],a[s]);break;case 106:r.setCssClass(a[s-1],a[s]);break;case 107:this.$=[a[s]];break;case 108:a[s-2].push(a[s]),this.$=a[s-2];break;case 110:this.$=a[s-1]+a[s]}},`anonymous`),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:t,35:n,37:r,38:22,42:i,43:23,46:a,48:o,51:s,52:c,54:l,56:u,57:d,60:f,62:p,63:m,64:h,65:g,75:_,76:v,78:y,82:b,83:x,86:S,100:C,102:w,103:T},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(D,[2,5],{8:[1,48]}),{8:[1,49]},e(O,[2,19],{22:[1,50]}),e(O,[2,21]),e(O,[2,22]),e(O,[2,23]),e(O,[2,24]),e(O,[2,25]),e(O,[2,26]),e(O,[2,27]),e(O,[2,28]),e(O,[2,29]),e(O,[2,30]),{34:[1,51]},{36:[1,52]},e(O,[2,33]),e(O,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:k,69:A,70:j,71:M,72:N,73:P,74:F}),{39:[1,65]},e(I,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),e(O,[2,65]),e(O,[2,66]),{16:69,60:f,86:S,100:C,102:w},{16:39,17:40,19:70,60:f,86:S,100:C,102:w,103:T},{16:39,17:40,19:71,60:f,86:S,100:C,102:w,103:T},{16:39,17:40,19:72,60:f,86:S,100:C,102:w,103:T},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:f,86:S,100:C,102:w,103:T},{13:ee,55:76},{58:78,60:[1,79]},e(O,[2,76]),e(O,[2,77]),e(O,[2,78]),e(O,[2,79]),e(L,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:f,86:S,100:C,102:w,103:T}),e(L,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:f,86:S,100:C,102:w,103:T},{16:39,17:40,19:87,60:f,86:S,100:C,102:w,103:T},e(R,[2,133]),e(R,[2,134]),e(R,[2,135]),e(R,[2,136]),e([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),e(D,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:t,35:n,37:r,42:i,46:a,48:o,51:s,52:c,54:l,56:u,57:d,60:f,62:p,63:m,64:h,65:g,75:_,76:v,78:y,82:b,83:x,86:S,100:C,102:w,103:T}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:t,35:n,37:r,38:22,42:i,43:23,46:a,48:o,51:s,52:c,54:l,56:u,57:d,60:f,62:p,63:m,64:h,65:g,75:_,76:v,78:y,82:b,83:x,86:S,100:C,102:w,103:T},e(O,[2,20]),e(O,[2,31]),e(O,[2,32]),{13:[1,91],16:39,17:40,19:90,60:f,86:S,100:C,102:w,103:T},{53:92,66:56,67:57,68:k,69:A,70:j,71:M,72:N,73:P,74:F},e(O,[2,64]),{67:93,73:P,74:F},e(z,[2,83],{66:94,68:k,69:A,70:j,71:M,72:N}),e(B,[2,84]),e(B,[2,85]),e(B,[2,86]),e(B,[2,87]),e(B,[2,88]),e(te,[2,89]),e(te,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:i,43:23,48:o,54:l,56:u},{16:100,60:f,86:S,100:C,102:w},{41:[1,102],45:101,51:V},{16:104,60:f,86:S,100:C,102:w},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:H,50:U,59:110,60:W,82:G,84:111,85:112,86:K,87:q,88:J,89:Y,90:X},{60:[1,122]},{13:ee,55:123},e(I,[2,72]),e(I,[2,138]),{22:H,50:U,59:124,60:W,61:[1,125],82:G,84:111,85:112,86:K,87:q,88:J,89:Y,90:X},e(ne,[2,74]),{16:39,17:40,19:126,60:f,86:S,100:C,102:w,103:T},e(L,[2,16]),e(L,[2,17]),e(L,[2,18]),{11:127,12:re,39:[2,36]},e(Z,[2,9],{16:85,17:86,15:130,18:[1,129],60:f,86:S,100:C,102:w,103:T}),e(Z,[2,10]),e(ie,[2,55],{11:131,12:re}),e(D,[2,7]),{9:[1,132]},e(Q,[2,67]),{16:39,17:40,19:133,60:f,86:S,100:C,102:w,103:T},{13:[1,135],16:39,17:40,19:134,60:f,86:S,100:C,102:w,103:T},e(z,[2,82],{66:136,68:k,69:A,70:j,71:M,72:N}),e(z,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:i,43:23,48:o,54:l,56:u},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},e(I,[2,48],{39:[1,142]}),{41:[1,143]},e(I,[2,50]),{41:[2,61],45:144,51:V},{47:[1,145]},{16:39,17:40,19:146,60:f,86:S,100:C,102:w,103:T},e(O,[2,91],{13:[1,147]}),e(O,[2,93],{13:[1,149],77:[1,148]}),e(O,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},e(O,[2,105],{61:ae}),e(oe,[2,107],{85:154,22:H,50:U,60:W,82:G,86:K,87:q,88:J,89:Y,90:X}),e($,[2,109]),e($,[2,111]),e($,[2,112]),e($,[2,113]),e($,[2,114]),e($,[2,115]),e($,[2,116]),e($,[2,117]),e($,[2,118]),e($,[2,119]),e(O,[2,106]),e(I,[2,71]),e(O,[2,73],{61:ae}),{60:[1,155]},e(L,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:f,86:S,100:C,102:w,103:T},e(Z,[2,12]),e(ie,[2,56]),{1:[2,4]},e(Q,[2,69]),e(Q,[2,68]),{16:39,17:40,19:158,60:f,86:S,100:C,102:w,103:T},e(z,[2,80]),e(I,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:i,43:23,48:o,54:l,56:u},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:i,43:23,48:o,54:l,56:u},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:i,43:23,48:o,54:l,56:u},{45:163,51:V},e(I,[2,49]),{41:[2,62]},e(I,[2,52],{39:[1,164]}),e(O,[2,60]),e(O,[2,92]),e(O,[2,94]),e(O,[2,95],{77:[1,165]}),e(O,[2,98]),e(O,[2,99],{13:[1,166]}),e(O,[2,101],{13:[1,168],77:[1,167]}),{22:H,50:U,60:W,82:G,84:169,85:112,86:K,87:q,88:J,89:Y,90:X},e($,[2,110]),e(ne,[2,75]),{14:[1,170]},e(Z,[2,11]),e(Q,[2,70]),e(I,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:V},e(O,[2,96]),e(O,[2,100]),e(O,[2,102]),e(O,[2,103],{77:[1,174]}),e(oe,[2,108],{85:154,22:H,50:U,60:W,82:G,86:K,87:q,88:J,89:Y,90:X}),e(ie,[2,8]),e(I,[2,51]),{41:[1,175]},e(I,[2,54]),e(O,[2,104]),e(I,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:E(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:E(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,c=0,l=0,u=0,d=2,f=1,p=a.slice.call(arguments,1),m=Object.create(this.lexer),h={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(h.yy[g]=this.yy[g]);m.setInput(e,h.yy),h.yy.lexer=m,h.yy.parser=this,m.yylloc===void 0&&(m.yylloc={});var _=m.yylloc;a.push(_);var v=m.options&&m.options.ranges;this.parseError=typeof h.yy.parseError==`function`?h.yy.parseError:Object.getPrototypeOf(this).parseError;function y(e){n.length-=2*e,i.length-=e,a.length-=e}E(y,`popStack`);function b(){var e=r.pop()||m.lex()||f;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}E(b,`lex`);for(var x,S,C,w,T,D={},O,k,A,j;;){if(C=n[n.length-1],this.defaultActions[C]?w=this.defaultActions[C]:(x??=b(),w=o[C]&&o[C][x]),w===void 0||!w.length||!w[0]){var M=``;for(O in j=[],o[C])this.terminals_[O]&&O>d&&j.push(`'`+this.terminals_[O]+`'`);M=m.showPosition?`Parse error on line `+(c+1)+`:
1
+ import{t as e}from"./chunk-5VM5RSS4-ZNzvKenW.js";import{t}from"./chunk-XXDRQBXY-Do8BIocv.js";import{t as n}from"./chunk-TU62E6Q5-B-rpQQxX.js";import{i as r,r as i}from"./mermaid.core-C6mppfDC.js";import{t as a}from"./chunk-HFQBQIA3-pveEMcXK.js";import"./chunk-M57EVK23-PJSYCuUh.js";import"./chunk-DQASFODM-B-92o8Uj.js";import"./chunk-LEVMRMFU-Ds7OnJrC.js";import"./chunk-AXFCVDMN-BElluw_7.js";import"./chunk-X4PVCEUW-BBtlFSw1.js";import"./chunk-STOXU5M4-DcXfwN7k.js";import"./chunk-R3KSYZAL-B4BOidE6.js";import{i as o,n as s,o as c,r as l}from"./chunk-J5ZVWO5B-oDCd-gWO.js";import{_ as u,c as d}from"./chunk-6MUBBAK2-BjMKSfTf.js";import{C as f,H as p,M as m,U as h,_ as g,a as _,b as v,et as y,q as b,s as x,v as S,z as C}from"./chunk-BG4553SI-CUDwpWNL.js";import{n as w,t as T}from"./d3-selection-D3xgEEla.js";import{n as E}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";var D=(function(){var e=E(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,18],n=[1,19],r=[1,20],i=[1,41],a=[1,26],o=[1,42],s=[1,24],c=[1,25],l=[1,32],u=[1,33],d=[1,34],f=[1,45],p=[1,35],m=[1,36],h=[1,37],g=[1,38],_=[1,27],v=[1,28],y=[1,29],b=[1,30],x=[1,31],S=[1,44],C=[1,46],w=[1,43],T=[1,47],D=[1,9],O=[1,8,9],k=[1,58],A=[1,59],j=[1,60],M=[1,61],N=[1,62],P=[1,63],F=[1,64],I=[1,8,9,41],ee=[1,77],L=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],R=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],z=[13,60,86,100,102,103],B=[13,60,73,74,86,100,102,103],te=[13,60,68,69,70,71,72,86,100,102,103],V=[1,103],H=[1,121],U=[1,117],W=[1,113],G=[1,119],K=[1,114],q=[1,115],J=[1,116],Y=[1,118],X=[1,120],ne=[22,50,60,61,82,86,87,88,89,90],re=[1,128],Z=[12,39],ie=[1,8,9,39,41,44,46],Q=[1,8,9,22],ae=[1,153],oe=[1,8,9,61],$=[1,8,9,22,50,60,61,82,86,87,88,89,90],se={trace:E(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:`error`,7:`CLASS_DIAGRAM`,8:`NEWLINE`,9:`EOF`,12:`SQS`,13:`STR`,14:`SQE`,18:`DOT`,20:`GENERICTYPE`,22:`LABEL`,33:`acc_title`,34:`acc_title_value`,35:`acc_descr`,36:`acc_descr_value`,37:`acc_descr_multiline_value`,39:`STRUCT_START`,41:`STRUCT_STOP`,42:`NAMESPACE`,44:`STYLE_SEPARATOR`,46:`ANNOTATION_START`,47:`ANNOTATION_END`,48:`CLASS`,50:`SPACE`,51:`MEMBER`,52:`SEPARATOR`,54:`NOTE_FOR`,56:`NOTE`,57:`CLASSDEF`,60:`ALPHA`,61:`COMMA`,62:`direction_tb`,63:`direction_bt`,64:`direction_rl`,65:`direction_lr`,68:`AGGREGATION`,69:`EXTENSION`,70:`COMPOSITION`,71:`DEPENDENCY`,72:`LOLLIPOP`,73:`LINE`,74:`DOTTED_LINE`,75:`CALLBACK`,76:`LINK`,77:`LINK_TARGET`,78:`CLICK`,79:`CALLBACK_NAME`,80:`CALLBACK_ARGS`,81:`HREF`,82:`STYLE`,83:`CSSCLASS`,86:`NUM`,87:`COLON`,88:`UNIT`,89:`BRKT`,90:`PCT`,93:`graphCodeTokens`,95:`TAGSTART`,96:`TAGEND`,97:`==`,98:`--`,99:`DEFAULT`,100:`MINUS`,101:`keywords`,102:`UNICODE_TEXT`,103:`BQUOTE_STR`},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:E(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 8:this.$=a[s-1];break;case 9:case 10:case 13:case 15:this.$=a[s];break;case 11:case 14:this.$=a[s-2]+`.`+a[s];break;case 12:case 16:this.$=a[s-1]+a[s];break;case 17:case 18:this.$=a[s-1]+`~`+a[s]+`~`;break;case 19:r.addRelation(a[s]);break;case 20:a[s-1].title=r.cleanupLabel(a[s]),r.addRelation(a[s-1]);break;case 31:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 32:case 33:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 34:r.addClassesToNamespace(a[s-3],a[s-1][0],a[s-1][1]),r.popNamespace();break;case 35:r.addClassesToNamespace(a[s-4],a[s-1][0],a[s-1][1]),r.popNamespace();break;case 36:this.$=r.addNamespace(a[s]);break;case 37:this.$=r.addNamespace(a[s-1],a[s]);break;case 38:this.$=[[a[s]],[]];break;case 39:this.$=[[a[s-1]],[]];break;case 40:a[s][0].unshift(a[s-2]),this.$=a[s];break;case 41:this.$=[[],[a[s]]];break;case 42:this.$=[[],[a[s-1]]];break;case 43:a[s][1].unshift(a[s-2]),this.$=a[s];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=a[s];break;case 48:r.setCssClass(a[s-2],a[s]);break;case 49:r.addMembers(a[s-3],a[s-1]);break;case 51:r.setCssClass(a[s-5],a[s-3]),r.addMembers(a[s-5],a[s-1]);break;case 52:r.addAnnotation(a[s-3],a[s-1]);break;case 53:r.addAnnotation(a[s-6],a[s-4]),r.addMembers(a[s-6],a[s-1]);break;case 54:r.addAnnotation(a[s-5],a[s-3]);break;case 55:this.$=a[s],r.addClass(a[s]);break;case 56:this.$=a[s-1],r.addClass(a[s-1]),r.setClassLabel(a[s-1],a[s]);break;case 60:r.addAnnotation(a[s],a[s-2]);break;case 61:case 74:this.$=[a[s]];break;case 62:a[s].push(a[s-1]),this.$=a[s];break;case 63:break;case 64:r.addMember(a[s-1],r.cleanupLabel(a[s]));break;case 65:break;case 66:break;case 67:this.$={id1:a[s-2],id2:a[s],relation:a[s-1],relationTitle1:`none`,relationTitle2:`none`};break;case 68:this.$={id1:a[s-3],id2:a[s],relation:a[s-1],relationTitle1:a[s-2],relationTitle2:`none`};break;case 69:this.$={id1:a[s-3],id2:a[s],relation:a[s-2],relationTitle1:`none`,relationTitle2:a[s-1]};break;case 70:this.$={id1:a[s-4],id2:a[s],relation:a[s-2],relationTitle1:a[s-3],relationTitle2:a[s-1]};break;case 71:this.$=r.addNote(a[s],a[s-1]);break;case 72:this.$=r.addNote(a[s]);break;case 73:this.$=a[s-2],r.defineClass(a[s-1],a[s]);break;case 75:this.$=a[s-2].concat([a[s]]);break;case 76:r.setDirection(`TB`);break;case 77:r.setDirection(`BT`);break;case 78:r.setDirection(`RL`);break;case 79:r.setDirection(`LR`);break;case 80:this.$={type1:a[s-2],type2:a[s],lineType:a[s-1]};break;case 81:this.$={type1:`none`,type2:a[s],lineType:a[s-1]};break;case 82:this.$={type1:a[s-1],type2:`none`,lineType:a[s]};break;case 83:this.$={type1:`none`,type2:`none`,lineType:a[s]};break;case 84:this.$=r.relationType.AGGREGATION;break;case 85:this.$=r.relationType.EXTENSION;break;case 86:this.$=r.relationType.COMPOSITION;break;case 87:this.$=r.relationType.DEPENDENCY;break;case 88:this.$=r.relationType.LOLLIPOP;break;case 89:this.$=r.lineType.LINE;break;case 90:this.$=r.lineType.DOTTED_LINE;break;case 91:case 97:this.$=a[s-2],r.setClickEvent(a[s-1],a[s]);break;case 92:case 98:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 93:this.$=a[s-2],r.setLink(a[s-1],a[s]);break;case 94:this.$=a[s-3],r.setLink(a[s-2],a[s-1],a[s]);break;case 95:this.$=a[s-3],r.setLink(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 96:this.$=a[s-4],r.setLink(a[s-3],a[s-2],a[s]),r.setTooltip(a[s-3],a[s-1]);break;case 99:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 100:this.$=a[s-4],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setTooltip(a[s-3],a[s]);break;case 101:this.$=a[s-3],r.setLink(a[s-2],a[s]);break;case 102:this.$=a[s-4],r.setLink(a[s-3],a[s-1],a[s]);break;case 103:this.$=a[s-4],r.setLink(a[s-3],a[s-1]),r.setTooltip(a[s-3],a[s]);break;case 104:this.$=a[s-5],r.setLink(a[s-4],a[s-2],a[s]),r.setTooltip(a[s-4],a[s-1]);break;case 105:this.$=a[s-2],r.setCssStyle(a[s-1],a[s]);break;case 106:r.setCssClass(a[s-1],a[s]);break;case 107:this.$=[a[s]];break;case 108:a[s-2].push(a[s]),this.$=a[s-2];break;case 110:this.$=a[s-1]+a[s]}},`anonymous`),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:t,35:n,37:r,38:22,42:i,43:23,46:a,48:o,51:s,52:c,54:l,56:u,57:d,60:f,62:p,63:m,64:h,65:g,75:_,76:v,78:y,82:b,83:x,86:S,100:C,102:w,103:T},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(D,[2,5],{8:[1,48]}),{8:[1,49]},e(O,[2,19],{22:[1,50]}),e(O,[2,21]),e(O,[2,22]),e(O,[2,23]),e(O,[2,24]),e(O,[2,25]),e(O,[2,26]),e(O,[2,27]),e(O,[2,28]),e(O,[2,29]),e(O,[2,30]),{34:[1,51]},{36:[1,52]},e(O,[2,33]),e(O,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:k,69:A,70:j,71:M,72:N,73:P,74:F}),{39:[1,65]},e(I,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),e(O,[2,65]),e(O,[2,66]),{16:69,60:f,86:S,100:C,102:w},{16:39,17:40,19:70,60:f,86:S,100:C,102:w,103:T},{16:39,17:40,19:71,60:f,86:S,100:C,102:w,103:T},{16:39,17:40,19:72,60:f,86:S,100:C,102:w,103:T},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:f,86:S,100:C,102:w,103:T},{13:ee,55:76},{58:78,60:[1,79]},e(O,[2,76]),e(O,[2,77]),e(O,[2,78]),e(O,[2,79]),e(L,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:f,86:S,100:C,102:w,103:T}),e(L,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:f,86:S,100:C,102:w,103:T},{16:39,17:40,19:87,60:f,86:S,100:C,102:w,103:T},e(R,[2,133]),e(R,[2,134]),e(R,[2,135]),e(R,[2,136]),e([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),e(D,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:t,35:n,37:r,42:i,46:a,48:o,51:s,52:c,54:l,56:u,57:d,60:f,62:p,63:m,64:h,65:g,75:_,76:v,78:y,82:b,83:x,86:S,100:C,102:w,103:T}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:t,35:n,37:r,38:22,42:i,43:23,46:a,48:o,51:s,52:c,54:l,56:u,57:d,60:f,62:p,63:m,64:h,65:g,75:_,76:v,78:y,82:b,83:x,86:S,100:C,102:w,103:T},e(O,[2,20]),e(O,[2,31]),e(O,[2,32]),{13:[1,91],16:39,17:40,19:90,60:f,86:S,100:C,102:w,103:T},{53:92,66:56,67:57,68:k,69:A,70:j,71:M,72:N,73:P,74:F},e(O,[2,64]),{67:93,73:P,74:F},e(z,[2,83],{66:94,68:k,69:A,70:j,71:M,72:N}),e(B,[2,84]),e(B,[2,85]),e(B,[2,86]),e(B,[2,87]),e(B,[2,88]),e(te,[2,89]),e(te,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:i,43:23,48:o,54:l,56:u},{16:100,60:f,86:S,100:C,102:w},{41:[1,102],45:101,51:V},{16:104,60:f,86:S,100:C,102:w},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:H,50:U,59:110,60:W,82:G,84:111,85:112,86:K,87:q,88:J,89:Y,90:X},{60:[1,122]},{13:ee,55:123},e(I,[2,72]),e(I,[2,138]),{22:H,50:U,59:124,60:W,61:[1,125],82:G,84:111,85:112,86:K,87:q,88:J,89:Y,90:X},e(ne,[2,74]),{16:39,17:40,19:126,60:f,86:S,100:C,102:w,103:T},e(L,[2,16]),e(L,[2,17]),e(L,[2,18]),{11:127,12:re,39:[2,36]},e(Z,[2,9],{16:85,17:86,15:130,18:[1,129],60:f,86:S,100:C,102:w,103:T}),e(Z,[2,10]),e(ie,[2,55],{11:131,12:re}),e(D,[2,7]),{9:[1,132]},e(Q,[2,67]),{16:39,17:40,19:133,60:f,86:S,100:C,102:w,103:T},{13:[1,135],16:39,17:40,19:134,60:f,86:S,100:C,102:w,103:T},e(z,[2,82],{66:136,68:k,69:A,70:j,71:M,72:N}),e(z,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:i,43:23,48:o,54:l,56:u},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},e(I,[2,48],{39:[1,142]}),{41:[1,143]},e(I,[2,50]),{41:[2,61],45:144,51:V},{47:[1,145]},{16:39,17:40,19:146,60:f,86:S,100:C,102:w,103:T},e(O,[2,91],{13:[1,147]}),e(O,[2,93],{13:[1,149],77:[1,148]}),e(O,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},e(O,[2,105],{61:ae}),e(oe,[2,107],{85:154,22:H,50:U,60:W,82:G,86:K,87:q,88:J,89:Y,90:X}),e($,[2,109]),e($,[2,111]),e($,[2,112]),e($,[2,113]),e($,[2,114]),e($,[2,115]),e($,[2,116]),e($,[2,117]),e($,[2,118]),e($,[2,119]),e(O,[2,106]),e(I,[2,71]),e(O,[2,73],{61:ae}),{60:[1,155]},e(L,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:f,86:S,100:C,102:w,103:T},e(Z,[2,12]),e(ie,[2,56]),{1:[2,4]},e(Q,[2,69]),e(Q,[2,68]),{16:39,17:40,19:158,60:f,86:S,100:C,102:w,103:T},e(z,[2,80]),e(I,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:i,43:23,48:o,54:l,56:u},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:i,43:23,48:o,54:l,56:u},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:i,43:23,48:o,54:l,56:u},{45:163,51:V},e(I,[2,49]),{41:[2,62]},e(I,[2,52],{39:[1,164]}),e(O,[2,60]),e(O,[2,92]),e(O,[2,94]),e(O,[2,95],{77:[1,165]}),e(O,[2,98]),e(O,[2,99],{13:[1,166]}),e(O,[2,101],{13:[1,168],77:[1,167]}),{22:H,50:U,60:W,82:G,84:169,85:112,86:K,87:q,88:J,89:Y,90:X},e($,[2,110]),e(ne,[2,75]),{14:[1,170]},e(Z,[2,11]),e(Q,[2,70]),e(I,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:V},e(O,[2,96]),e(O,[2,100]),e(O,[2,102]),e(O,[2,103],{77:[1,174]}),e(oe,[2,108],{85:154,22:H,50:U,60:W,82:G,86:K,87:q,88:J,89:Y,90:X}),e(ie,[2,8]),e(I,[2,51]),{41:[1,175]},e(I,[2,54]),e(O,[2,104]),e(I,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:E(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:E(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,c=0,l=0,u=0,d=2,f=1,p=a.slice.call(arguments,1),m=Object.create(this.lexer),h={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(h.yy[g]=this.yy[g]);m.setInput(e,h.yy),h.yy.lexer=m,h.yy.parser=this,m.yylloc===void 0&&(m.yylloc={});var _=m.yylloc;a.push(_);var v=m.options&&m.options.ranges;this.parseError=typeof h.yy.parseError==`function`?h.yy.parseError:Object.getPrototypeOf(this).parseError;function y(e){n.length-=2*e,i.length-=e,a.length-=e}E(y,`popStack`);function b(){var e=r.pop()||m.lex()||f;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}E(b,`lex`);for(var x,S,C,w,T,D={},O,k,A,j;;){if(C=n[n.length-1],this.defaultActions[C]?w=this.defaultActions[C]:(x??=b(),w=o[C]&&o[C][x]),w===void 0||!w.length||!w[0]){var M=``;for(O in j=[],o[C])this.terminals_[O]&&O>d&&j.push(`'`+this.terminals_[O]+`'`);M=m.showPosition?`Parse error on line `+(c+1)+`:
2
2
  `+m.showPosition()+`
3
3
  Expecting `+j.join(`, `)+`, got '`+(this.terminals_[x]||x)+`'`:`Parse error on line `+(c+1)+`: Unexpected `+(x==f?`end of input`:`'`+(this.terminals_[x]||x)+`'`),this.parseError(M,{text:m.match,token:this.terminals_[x]||x,line:m.yylineno,loc:_,expected:j})}if(w[0]instanceof Array&&w.length>1)throw Error(`Parse Error: multiple actions possible at state: `+C+`, token: `+x);switch(w[0]){case 1:n.push(x),i.push(m.yytext),a.push(m.yylloc),n.push(w[1]),x=null,S?(x=S,S=null):(l=m.yyleng,s=m.yytext,c=m.yylineno,_=m.yylloc,u>0&&u--);break;case 2:if(k=this.productions_[w[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},v&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),T=this.performAction.apply(D,[s,l,c,h.yy,w[1],i,a].concat(p)),T!==void 0)return T;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[w[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};se.lexer=(function(){return{EOF:1,parseError:E(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:E(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:E(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:E(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:E(function(){return this._more=!0,this},`more`),reject:E(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:E(function(e){this.unput(this.match.slice(e))},`less`),pastInput:E(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:E(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:E(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{g as e,p as t}from"./common-CGQN5htF.js";var n=Symbol(`RestOperations`),r=Symbol(`RestOperationsFactory`);(class{static ok(e,t){return{status:200,headers:t||{},body:e}}static created(e,t){return{status:201,headers:t||{},body:e}}static noContent(){return{status:204,headers:{},body:void 0}}static{Object.defineProperty(this,"name",{value:`ResponseEntityUtil`,configurable:!0})}});var i=class{constructor(){this.handlers=new Map,this.nextId=0}use(e,t){let n=this.nextId++;return this.handlers.set(n,{fulfilled:e,rejected:t}),n}eject(e){this.handlers.delete(e)}clear(){this.handlers.clear()}apply(e){let t=e;for(let{fulfilled:e,rejected:n}of this.handlers.values())t=t.then(e,n);return t}static{Object.defineProperty(this,"name",{value:`InterceptorManager`,configurable:!0})}},a=class extends Error{constructor(e){super(e.message),this.name=`HttpClientError`,this.code=e.code,this.hint=e.hint,this.config=e.config,this.response=e.response,this.cause=e.cause}static{Object.defineProperty(this,"name",{value:`HttpClientError`,configurable:!0})}};(function(e){function t(t,n){return t instanceof e&&(n===void 0||t.code===n)}e.is=t})(a||={});var o=/^([a-z][a-z\d+\-.]*:)?\/\//i,s=class e{constructor(e={}){this.defaults=e,this.interceptors={request:new i,response:new i}}request(e){let t=this.interceptors.request.apply(Promise.resolve(this.merge(e))).then(e=>this.send(e));return this.interceptors.response.apply(t)}get(e,t){return this.request({...t,url:e,method:`GET`})}delete(e,t){return this.request({...t,url:e,method:`DELETE`})}head(e,t){return this.request({...t,url:e,method:`HEAD`})}options(e,t){return this.request({...t,url:e,method:`OPTIONS`})}post(e,t,n){return this.request({...n,url:e,data:t,method:`POST`})}put(e,t,n){return this.request({...n,url:e,data:t,method:`PUT`})}patch(e,t,n){return this.request({...n,url:e,data:t,method:`PATCH`})}merge(e){return{...this.defaults,...e,headers:{...this.defaults.headers,...e.headers}}}async send(t){var n;let r=(t.method||`GET`).toUpperCase(),i=this.buildURL(t),o=this.buildHeaders(t),s={method:r,headers:o};r!==`GET`&&r!==`HEAD`&&(s.body=this.serialize(t.data,o),typeof ReadableStream<`u`&&s.body instanceof ReadableStream&&(s.duplex=`half`)),t.withCredentials!==void 0&&typeof window<`u`&&(s.credentials=t.withCredentials?`include`:`same-origin`);let c=t.timeout?new AbortController:void 0,l=!1,u=c&&setTimeout(()=>{l=!0,c.abort()},t.timeout),d=()=>c?.abort();c&&t.signal&&(t.signal.aborted?c.abort():t.signal.addEventListener(`abort`,d,{once:!0})),s.signal=c?.signal??t.signal;try{let n=await fetch(i,s),o={status:n.status,statusText:n.statusText,headers:this.readHeaders(n.headers),data:await this.parse(n,t),config:t},c=t.validateStatus===void 0?e.isSuccess:t.validateStatus;if(c&&!c(o.status))throw new a({code:`CELL_HTTP_BAD_STATUS`,message:`${r} ${i} answered ${o.status} ${o.statusText}`.trimEnd(),hint:`error.response holds the status, headers and body of the answer; pass validateStatus to resolve such statuses instead.`,config:t,response:o});return o}catch(e){throw this.toError(e,t,`${r} ${i}`,l)}finally{clearTimeout(u),(n=t.signal)==null||n.removeEventListener(`abort`,d)}}toError(e,t,n,r){return e instanceof a?e:r?new a({code:`CELL_HTTP_TIMEOUT`,message:`${n} took longer than ${t.timeout} ms`,hint:`Raise timeout in the request config or http.client in cell.yml, or check why the server is slow.`,config:t,cause:e}):t.signal?.aborted?new a({code:`CELL_HTTP_ABORTED`,message:`${n} was aborted`,hint:`The signal passed in the request config was aborted; nothing to fix unless that was not intended.`,config:t,cause:e}):new a({code:`CELL_HTTP_NETWORK`,message:`${n} failed: ${e?.message??e}`,hint:`Check that the host is reachable and, on the server, that the URL is absolute; behind a proxy, Node.js uses HTTP_PROXY / HTTPS_PROXY only with NODE_USE_ENV_PROXY=1.`,config:t,cause:e})}buildURL(e){let t=e.url||``;e.baseURL&&!o.test(t)&&(t=t?`${e.baseURL.replace(/\/+$/,``)}/${t.replace(/^\/+/,``)}`:e.baseURL);let n=this.serializeParams(e.params);if(!n)return t;let r=t.indexOf(`#`);return r!==-1&&(t=t.slice(0,r)),t+(t.includes(`?`)?`&`:`?`)+n}serializeParams(e){if(!e)return``;if(e instanceof URLSearchParams)return e.toString();let t=new URLSearchParams;for(let[n,r]of Object.entries(e))for(let e of Array.isArray(r)?r:[r])e!=null&&t.append(n,e instanceof Date?e.toISOString():typeof e==`object`?JSON.stringify(e):String(e));return t.toString()}buildHeaders(e){let t=new Headers;for(let[n,r]of Object.entries(e.headers||{}))r!=null&&t.set(n,String(r));return t}serialize(e,t){if(e!=null)return typeof e==`string`||e instanceof URLSearchParams||e instanceof ArrayBuffer||ArrayBuffer.isView(e)||typeof FormData<`u`&&e instanceof FormData||typeof Blob<`u`&&e instanceof Blob||typeof ReadableStream<`u`&&e instanceof ReadableStream?e:(t.has(`content-type`)||t.set(`content-type`,`application/json`),JSON.stringify(e))}async parse(e,t){switch(t.responseType){case`stream`:return e.body;case`arraybuffer`:return e.arrayBuffer();case`blob`:return e.blob();case`text`:return e.text()}let n=await e.text();if(!n)return n;try{return JSON.parse(n)}catch{return n}}readHeaders(e){let t={};return e.forEach((e,n)=>{t[n]=t[n]===void 0?e:`${t[n]}, ${e}`}),t}static isSuccess(e){return e>=200&&e<300}static{Object.defineProperty(this,"name",{value:`DefaultRestOperations`,configurable:!0})}},c=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},l=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},u=class{create(){return new s(this.clientConfig)}static{Object.defineProperty(this,"name",{value:`DefaultRestOperationsFactory`,configurable:!0})}};c([t(`http.client`),l(`design:type`,Object)],u.prototype,`clientConfig`,void 0),u=c([e(r)],u);export{n,r,s as t};
1
+ import{g as e,p as t}from"./common-DrZR0tgm.js";var n=Symbol(`RestOperations`),r=Symbol(`RestOperationsFactory`);(class{static ok(e,t){return{status:200,headers:t||{},body:e}}static created(e,t){return{status:201,headers:t||{},body:e}}static noContent(){return{status:204,headers:{},body:void 0}}static{Object.defineProperty(this,"name",{value:`ResponseEntityUtil`,configurable:!0})}});var i=class{constructor(){this.handlers=new Map,this.nextId=0}use(e,t){let n=this.nextId++;return this.handlers.set(n,{fulfilled:e,rejected:t}),n}eject(e){this.handlers.delete(e)}clear(){this.handlers.clear()}apply(e){let t=e;for(let{fulfilled:e,rejected:n}of this.handlers.values())t=t.then(e,n);return t}static{Object.defineProperty(this,"name",{value:`InterceptorManager`,configurable:!0})}},a=class extends Error{constructor(e){super(e.message),this.name=`HttpClientError`,this.code=e.code,this.hint=e.hint,this.config=e.config,this.response=e.response,this.cause=e.cause}static{Object.defineProperty(this,"name",{value:`HttpClientError`,configurable:!0})}};(function(e){function t(t,n){return t instanceof e&&(n===void 0||t.code===n)}e.is=t})(a||={});var o=/^([a-z][a-z\d+\-.]*:)?\/\//i,s=class e{constructor(e={}){this.defaults=e,this.interceptors={request:new i,response:new i}}request(e){let t=this.interceptors.request.apply(Promise.resolve(this.merge(e))).then(e=>this.send(e));return this.interceptors.response.apply(t)}get(e,t){return this.request({...t,url:e,method:`GET`})}delete(e,t){return this.request({...t,url:e,method:`DELETE`})}head(e,t){return this.request({...t,url:e,method:`HEAD`})}options(e,t){return this.request({...t,url:e,method:`OPTIONS`})}post(e,t,n){return this.request({...n,url:e,data:t,method:`POST`})}put(e,t,n){return this.request({...n,url:e,data:t,method:`PUT`})}patch(e,t,n){return this.request({...n,url:e,data:t,method:`PATCH`})}merge(e){return{...this.defaults,...e,headers:{...this.defaults.headers,...e.headers}}}async send(t){var n;let r=(t.method||`GET`).toUpperCase(),i=this.buildURL(t),o=this.buildHeaders(t),s={method:r,headers:o};r!==`GET`&&r!==`HEAD`&&(s.body=this.serialize(t.data,o),typeof ReadableStream<`u`&&s.body instanceof ReadableStream&&(s.duplex=`half`)),t.withCredentials!==void 0&&typeof window<`u`&&(s.credentials=t.withCredentials?`include`:`same-origin`);let c=t.timeout?new AbortController:void 0,l=!1,u=c&&setTimeout(()=>{l=!0,c.abort()},t.timeout),d=()=>c?.abort();c&&t.signal&&(t.signal.aborted?c.abort():t.signal.addEventListener(`abort`,d,{once:!0})),s.signal=c?.signal??t.signal;try{let n=await fetch(i,s),o={status:n.status,statusText:n.statusText,headers:this.readHeaders(n.headers),data:await this.parse(n,t),config:t},c=t.validateStatus===void 0?e.isSuccess:t.validateStatus;if(c&&!c(o.status))throw new a({code:`CELL_HTTP_BAD_STATUS`,message:`${r} ${i} answered ${o.status} ${o.statusText}`.trimEnd(),hint:`error.response holds the status, headers and body of the answer; pass validateStatus to resolve such statuses instead.`,config:t,response:o});return o}catch(e){throw this.toError(e,t,`${r} ${i}`,l)}finally{clearTimeout(u),(n=t.signal)==null||n.removeEventListener(`abort`,d)}}toError(e,t,n,r){return e instanceof a?e:r?new a({code:`CELL_HTTP_TIMEOUT`,message:`${n} took longer than ${t.timeout} ms`,hint:`Raise timeout in the request config or http.client in cell.yml, or check why the server is slow.`,config:t,cause:e}):t.signal?.aborted?new a({code:`CELL_HTTP_ABORTED`,message:`${n} was aborted`,hint:`The signal passed in the request config was aborted; nothing to fix unless that was not intended.`,config:t,cause:e}):new a({code:`CELL_HTTP_NETWORK`,message:`${n} failed: ${e?.message??e}`,hint:`Check that the host is reachable and, on the server, that the URL is absolute; behind a proxy, Node.js uses HTTP_PROXY / HTTPS_PROXY only with NODE_USE_ENV_PROXY=1.`,config:t,cause:e})}buildURL(e){let t=e.url||``;e.baseURL&&!o.test(t)&&(t=t?`${e.baseURL.replace(/\/+$/,``)}/${t.replace(/^\/+/,``)}`:e.baseURL);let n=this.serializeParams(e.params);if(!n)return t;let r=t.indexOf(`#`);return r!==-1&&(t=t.slice(0,r)),t+(t.includes(`?`)?`&`:`?`)+n}serializeParams(e){if(!e)return``;if(e instanceof URLSearchParams)return e.toString();let t=new URLSearchParams;for(let[n,r]of Object.entries(e))for(let e of Array.isArray(r)?r:[r])e!=null&&t.append(n,e instanceof Date?e.toISOString():typeof e==`object`?JSON.stringify(e):String(e));return t.toString()}buildHeaders(e){let t=new Headers;for(let[n,r]of Object.entries(e.headers||{}))r!=null&&t.set(n,String(r));return t}serialize(e,t){if(e!=null)return typeof e==`string`||e instanceof URLSearchParams||e instanceof ArrayBuffer||ArrayBuffer.isView(e)||typeof FormData<`u`&&e instanceof FormData||typeof Blob<`u`&&e instanceof Blob||typeof ReadableStream<`u`&&e instanceof ReadableStream?e:(t.has(`content-type`)||t.set(`content-type`,`application/json`),JSON.stringify(e))}async parse(e,t){switch(t.responseType){case`stream`:return e.body;case`arraybuffer`:return e.arrayBuffer();case`blob`:return e.blob();case`text`:return e.text()}let n=await e.text();if(!n)return n;try{return JSON.parse(n)}catch{return n}}readHeaders(e){let t={};return e.forEach((e,n)=>{t[n]=t[n]===void 0?e:`${t[n]}, ${e}`}),t}static isSuccess(e){return e>=200&&e<300}static{Object.defineProperty(this,"name",{value:`DefaultRestOperations`,configurable:!0})}},c=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},l=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},u=class{create(){return new s(this.clientConfig)}static{Object.defineProperty(this,"name",{value:`DefaultRestOperationsFactory`,configurable:!0})}};c([t(`http.client`),l(`design:type`,Object)],u.prototype,`clientConfig`,void 0),u=c([e(r)],u);export{n,r,s as t};