@datalayer/agent-runtimes 1.6.83 → 1.6.85

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 (826) hide show
  1. package/dist-embed/chunks/{AgentDetails-LhuDov4Q.js → AgentDetails-BRhO9qA_.js} +1 -1
  2. package/dist-embed/chunks/AgentDetailsDialog-DAWAmYS1.js +1 -0
  3. package/dist-embed/chunks/{CellSidebarExtension-DwGg7VbR.js → CellSidebarExtension-BMTA9AQz.js} +1 -1
  4. package/dist-embed/chunks/{CollapsiblePlugin-DS2HZl7a.js → CollapsiblePlugin-D_fVK4i3.js} +1 -1
  5. package/dist-embed/chunks/ContextPie-h_II4EDU.js +1 -0
  6. package/dist-embed/chunks/{DeckComponent-1aJoEglD.js → DeckComponent-CGFO-xGa.js} +2 -2
  7. package/dist-embed/chunks/{DocumentView-CaVDL8X7.js → DocumentView-BzBCyOZP.js} +1 -1
  8. package/dist-embed/chunks/{EphemeralDocument-SeXQLZbi.js → EphemeralDocument-spGg7WCy.js} +1 -1
  9. package/dist-embed/chunks/{EphemeralNotebook-DrL1r8Nx.js → EphemeralNotebook-BqUNh0zm.js} +1 -1
  10. package/dist-embed/chunks/{ExcalidrawComponent-CoZvA0u7.js → ExcalidrawComponent-Cb0JOQDr.js} +1 -1
  11. package/dist-embed/chunks/{ExcalidrawModal-Czd2Kx8H.js → ExcalidrawModal-MG-b9Tus.js} +1 -1
  12. package/dist-embed/chunks/{JupyterLexicalExtension-Du1Loz2o.js → JupyterLexicalExtension-lz41mjjY.js} +29 -29
  13. package/dist-embed/chunks/{KernelVariables-CmWkosM8.js → KernelVariables-BXCbgHG5.js} +1 -1
  14. package/dist-embed/chunks/{LexicalToolRegistry-BZUJ9wvF.js → LexicalToolRegistry-rXaW8uXA.js} +4 -4
  15. package/dist-embed/chunks/{NotebookToolSurfaces-m37Crb7c.js → NotebookToolSurfaces-BT_hNR4k.js} +1 -1
  16. package/dist-embed/chunks/{NotebookView-DeCxHOph.js → NotebookView-wYwtORMB.js} +1 -1
  17. package/dist-embed/chunks/{Output-CJVIj3Io.js → Output-BfjIM99o.js} +1 -1
  18. package/dist-embed/chunks/{SandboxDetailsDialog-B4_0r2A_.js → SandboxDetailsDialog-B_nI8zH_.js} +1 -1
  19. package/dist-embed/chunks/{SchemaForm-9JmMbUiD.js → SchemaForm-1QzMu6Zk.js} +1 -1
  20. package/dist-embed/chunks/{SheetTabs-DJLVReVo.js → SheetTabs-DJG69znU.js} +2 -2
  21. package/dist-embed/chunks/{SpreadsheetPreviewView-BGdz5D65.js → SpreadsheetPreviewView-5marsdKE.js} +1 -1
  22. package/dist-embed/chunks/{SpreadsheetView-BvCWGCsx.js → SpreadsheetView-CmD-dAjn.js} +1 -1
  23. package/dist-embed/chunks/{WidgetVariableView-B9KgSbhv.js → WidgetVariableView-Dqsy8MDf.js} +1 -1
  24. package/dist-embed/chunks/{YouTubePlugin-DtVTIrdm.js → YouTubePlugin-BLdLNfNB.js} +1 -1
  25. package/dist-embed/chunks/{abnfDiagram-VCTEODGH-DN0kRlog.js → abnfDiagram-VCTEODGH-BSmEjUJk.js} +1 -1
  26. package/dist-embed/chunks/{abnfDiagram-VCTEODGH-BG9Jt7Hr.js → abnfDiagram-VCTEODGH-CF8QpiZa.js} +1 -1
  27. package/dist-embed/chunks/{abnfDiagram-VCTEODGH-CvZ8usho.js → abnfDiagram-VCTEODGH-GnaR64st.js} +1 -1
  28. package/dist-embed/chunks/{ar-SA-G6X2FPQ2-C-nP9nq8.js → ar-SA-G6X2FPQ2-Boa4jpGN.js} +1 -1
  29. package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-Bwqgkba9.js → architectureDiagram-5GKGNRK7-ByAYkSMW.js} +1 -1
  30. package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-DRfUn2vu.js → architectureDiagram-5GKGNRK7-Cy6c9GhS.js} +1 -1
  31. package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-87FtCsnw.js → architectureDiagram-5GKGNRK7-b_EnmOeS.js} +1 -1
  32. package/dist-embed/chunks/{az-AZ-76LH7QW2-WoAwmwN_.js → az-AZ-76LH7QW2-DS7v8DUm.js} +1 -1
  33. package/dist-embed/chunks/{bg-BG-XCXSNQG7-SLqAK6qo.js → bg-BG-XCXSNQG7-CPWbvkhp.js} +1 -1
  34. package/dist-embed/chunks/{blockDiagram-868be97b-CH6k87Wa.js → blockDiagram-868be97b-C6Xxmbgc.js} +1 -1
  35. package/dist-embed/chunks/{blockDiagram-I7D4REHJ-BWHrrqXo.js → blockDiagram-I7D4REHJ-BBd_q6Z7.js} +1 -1
  36. package/dist-embed/chunks/{blockDiagram-I7D4REHJ-DUfJri3_.js → blockDiagram-I7D4REHJ-Clrwi7_Q.js} +1 -1
  37. package/dist-embed/chunks/{blockDiagram-I7D4REHJ-BjLfxD7u.js → blockDiagram-I7D4REHJ-zXh6gZYF.js} +1 -1
  38. package/dist-embed/chunks/{bn-BD-2XOGV67Q-DfCeTaG1.js → bn-BD-2XOGV67Q-DJlv8gSj.js} +1 -1
  39. package/dist-embed/chunks/{c4Diagram-3f4bdde3-ufrtLRrD.js → c4Diagram-3f4bdde3-BhBNs69f.js} +1 -1
  40. package/dist-embed/chunks/{c4Diagram-7LVT6UL2-BK8yvli2.js → c4Diagram-7LVT6UL2-BWQ9xHoN.js} +1 -1
  41. package/dist-embed/chunks/{c4Diagram-7LVT6UL2-C-0ZQ8Xa.js → c4Diagram-7LVT6UL2-DcCc8HaH.js} +1 -1
  42. package/dist-embed/chunks/{c4Diagram-7LVT6UL2-O_rZefrz.js → c4Diagram-7LVT6UL2-p14SIG7V.js} +1 -1
  43. package/dist-embed/chunks/{ca-ES-6MX7JW3Y-1rV8dCez.js → ca-ES-6MX7JW3Y-_XMb5PXx.js} +1 -1
  44. package/dist-embed/chunks/{celltoolbartracker-B_UScIax.js → celltoolbartracker-8YTtJOxD.js} +1 -1
  45. package/dist-embed/chunks/{chunk-2Q5K7J3B-BX9u1bBi.js → chunk-2Q5K7J3B-BkzWX8eg.js} +1 -1
  46. package/dist-embed/chunks/{chunk-2Q5K7J3B-DiqqlJZw.js → chunk-2Q5K7J3B-CWx-QJ0-.js} +1 -1
  47. package/dist-embed/chunks/{chunk-2Q5K7J3B-BFUbUsBE.js → chunk-2Q5K7J3B-CtmdieBX.js} +1 -1
  48. package/dist-embed/chunks/{chunk-5VM5RSS4-D4N_xxBJ.js → chunk-5VM5RSS4-C7mbT2Vq.js} +1 -1
  49. package/dist-embed/chunks/{chunk-5VM5RSS4-BbOPwJfe.js → chunk-5VM5RSS4-Ciba-ybC.js} +1 -1
  50. package/dist-embed/chunks/{chunk-5VM5RSS4-box8kQsT.js → chunk-5VM5RSS4-O8p7luYq.js} +1 -1
  51. package/dist-embed/chunks/{chunk-F27PBJKO-BUeWPnw5.js → chunk-F27PBJKO-Bo5boRfj.js} +1 -1
  52. package/dist-embed/chunks/{chunk-F27PBJKO-CQM02DXR.js → chunk-F27PBJKO-CZHz6AS9.js} +1 -1
  53. package/dist-embed/chunks/{chunk-F27PBJKO-DPF3nC8g.js → chunk-F27PBJKO-WqHcL2s0.js} +1 -1
  54. package/dist-embed/chunks/{chunk-IMKFNOWR-CPIe37ka.js → chunk-IMKFNOWR-BJR6rkFo.js} +1 -1
  55. package/dist-embed/chunks/{chunk-IMKFNOWR-DAOxV09i.js → chunk-IMKFNOWR-CPdtPffh.js} +1 -1
  56. package/dist-embed/chunks/{chunk-IMKFNOWR-rg2BEcj6.js → chunk-IMKFNOWR-Csfu1kFU.js} +1 -1
  57. package/dist-embed/chunks/{chunk-JWPE2WC7-BGdc9-bH.js → chunk-JWPE2WC7-BVXd-ICe.js} +1 -1
  58. package/dist-embed/chunks/{chunk-JWPE2WC7-NvLQtuoq.js → chunk-JWPE2WC7-Bf4pFlIJ.js} +1 -1
  59. package/dist-embed/chunks/{chunk-JWPE2WC7-QIDUQRBr.js → chunk-JWPE2WC7-Cq6Q947j.js} +1 -1
  60. package/dist-embed/chunks/{chunk-POPQ4Y6H-Cl1oUaAM.js → chunk-POPQ4Y6H-B_rWRGt2.js} +1 -1
  61. package/dist-embed/chunks/{chunk-POPQ4Y6H-BgR92oKl.js → chunk-POPQ4Y6H-DhNnPwZp.js} +1 -1
  62. package/dist-embed/chunks/{chunk-POPQ4Y6H-DWWKSDND.js → chunk-POPQ4Y6H-s1yt1ZtK.js} +1 -1
  63. package/dist-embed/chunks/{chunk-SVP7TREG-BGHt1HDi.js → chunk-SVP7TREG-8oKVa2mm.js} +1 -1
  64. package/dist-embed/chunks/{chunk-SVP7TREG-DtwPtAP8.js → chunk-SVP7TREG-CHN6fclq.js} +1 -1
  65. package/dist-embed/chunks/{chunk-SVP7TREG-lMq3S-u-.js → chunk-SVP7TREG-CsFEUe5B.js} +1 -1
  66. package/dist-embed/chunks/{chunk-TICWLB2K-CaVrVRpm.js → chunk-TICWLB2K-BsCtCkEM.js} +1 -1
  67. package/dist-embed/chunks/{chunk-TICWLB2K-BdUzhQPw.js → chunk-TICWLB2K-CSCMv_QA.js} +1 -1
  68. package/dist-embed/chunks/{chunk-TICWLB2K-D6WJ64X6.js → chunk-TICWLB2K-InZQ5ZEH.js} +1 -1
  69. package/dist-embed/chunks/{chunk-XXDRQBXY-BU32lP3z.js → chunk-XXDRQBXY-Y8pSpMzF.js} +1 -1
  70. package/dist-embed/chunks/{chunk-XXDRQBXY-CjAMT3RS.js → chunk-XXDRQBXY-sm2AIgJ5.js} +1 -1
  71. package/dist-embed/chunks/{chunk-XXDRQBXY-CtNPThT-.js → chunk-XXDRQBXY-z8go8Kjf.js} +1 -1
  72. package/dist-embed/chunks/{classDiagram-ZZMXUADV-Cy9bb-Ja.js → classDiagram-ZZMXUADV-BjEOw29S.js} +1 -1
  73. package/dist-embed/chunks/{classDiagram-ZZMXUADV-9x2pAf81.js → classDiagram-ZZMXUADV-DJ40c8si.js} +1 -1
  74. package/dist-embed/chunks/{classDiagram-ZZMXUADV-HBhnoh6h.js → classDiagram-ZZMXUADV-G9WI_1Zg.js} +1 -1
  75. package/dist-embed/chunks/{classDiagram-f62afe4f-DKREECyJ.js → classDiagram-f62afe4f-Blm1wT1_.js} +1 -1
  76. package/dist-embed/chunks/{classDiagram-v2-604399ef-CQ5TgOQe.js → classDiagram-v2-604399ef-DtWqjJhW.js} +1 -1
  77. package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-Cy9bb-Ja.js → classDiagram-v2-VYDZK3BY-BjEOw29S.js} +1 -1
  78. package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-9x2pAf81.js → classDiagram-v2-VYDZK3BY-DJ40c8si.js} +1 -1
  79. package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-HBhnoh6h.js → classDiagram-v2-VYDZK3BY-G9WI_1Zg.js} +1 -1
  80. package/dist-embed/chunks/{code-block-IT6T5CEO-B1q5VFMK.js → code-block-IT6T5CEO-Rra2QX20.js} +1 -1
  81. package/dist-embed/chunks/{component-CHd9jmXQ.js → component-DxhBhMYf.js} +1 -1
  82. package/dist-embed/chunks/{index-BhCoJe__.js → core-BrYTRvTy.js} +13 -13
  83. package/dist-embed/chunks/{cose-bilkent-JH36ORCC-DFWJgtSE.js → cose-bilkent-JH36ORCC-C73aLaB-.js} +1 -1
  84. package/dist-embed/chunks/{cose-bilkent-JH36ORCC-DGrxjlJ4.js → cose-bilkent-JH36ORCC-DCtKiRmD.js} +1 -1
  85. package/dist-embed/chunks/{cose-bilkent-JH36ORCC-F97qu5nX.js → cose-bilkent-JH36ORCC-j_7L0NF5.js} +1 -1
  86. package/dist-embed/chunks/{createText-aed3d8b3-B1Tmb4Mr.js → createText-aed3d8b3-B0tLexrf.js} +2 -2
  87. package/dist-embed/chunks/{cs-CZ-2BRQDIVT-SF5YII-L.js → cs-CZ-2BRQDIVT-Cc6P0HN5.js} +1 -1
  88. package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-DhFh7Gts.js → cynefinDiagram-5FMLGOSQ-BSwaTAfL.js} +1 -1
  89. package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-BZ1LtKUy.js → cynefinDiagram-5FMLGOSQ-DLyDkFEh.js} +1 -1
  90. package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-CR7crOrC.js → cynefinDiagram-5FMLGOSQ-DXr1M_CB.js} +1 -1
  91. package/dist-embed/chunks/{da-DK-5WZEPLOC-nd3n1KuA.js → da-DK-5WZEPLOC-BPgmzhCM.js} +1 -1
  92. package/dist-embed/chunks/{dagre-GXQ25YYZ-BpWd0wTo.js → dagre-GXQ25YYZ-Bfxayyi1.js} +1 -1
  93. package/dist-embed/chunks/{dagre-GXQ25YYZ-4P90jeEC.js → dagre-GXQ25YYZ-CPu-St26.js} +1 -1
  94. package/dist-embed/chunks/{dagre-GXQ25YYZ-MXGi4287.js → dagre-GXQ25YYZ-DTWZ8vY1.js} +1 -1
  95. package/dist-embed/chunks/{de-DE-XR44H4JA-DxoPxuG0.js → de-DE-XR44H4JA-DjNk3C1Q.js} +1 -1
  96. package/dist-embed/chunks/{diagram-S7CK7UJ4-DhLnfG8J.js → diagram-S7CK7UJ4-Biw5mnoN.js} +1 -1
  97. package/dist-embed/chunks/{diagram-S7CK7UJ4-Ccq8-Zxr.js → diagram-S7CK7UJ4-ERKr1j6v.js} +1 -1
  98. package/dist-embed/chunks/{diagram-S7CK7UJ4-xgW0lqt_.js → diagram-S7CK7UJ4-ewBgYmRN.js} +1 -1
  99. package/dist-embed/chunks/{diagram-UQ7AKVKN-Csc8IuSs.js → diagram-UQ7AKVKN-B-f2Afei.js} +1 -1
  100. package/dist-embed/chunks/{diagram-UQ7AKVKN-vfaPVBIp.js → diagram-UQ7AKVKN-C-6kzgTn.js} +1 -1
  101. package/dist-embed/chunks/{diagram-UQ7AKVKN-DM05uJg0.js → diagram-UQ7AKVKN-CGNA7gub.js} +1 -1
  102. package/dist-embed/chunks/{diagram-VSXAHHWV-BpkflTV8.js → diagram-VSXAHHWV-7M08zFHc.js} +1 -1
  103. package/dist-embed/chunks/{diagram-VSXAHHWV-ChcqzpvG.js → diagram-VSXAHHWV-CTQu2IBp.js} +1 -1
  104. package/dist-embed/chunks/{diagram-VSXAHHWV-C0Dte6B4.js → diagram-VSXAHHWV-DRVoe_PH.js} +1 -1
  105. package/dist-embed/chunks/{diagram-VX7I27RA-DA3s85ZI.js → diagram-VX7I27RA-B_LkfTnq.js} +1 -1
  106. package/dist-embed/chunks/{diagram-VX7I27RA-DFBWpFKi.js → diagram-VX7I27RA-DHwSWNj4.js} +1 -1
  107. package/dist-embed/chunks/{diagram-VX7I27RA-D3eZ6yyK.js → diagram-VX7I27RA-vkcQI8-t.js} +1 -1
  108. package/dist-embed/chunks/{diagram-Z3DM3KII-DpwpLNON.js → diagram-Z3DM3KII-BZ9tmKdd.js} +1 -1
  109. package/dist-embed/chunks/{diagram-Z3DM3KII-CWv5dRb1.js → diagram-Z3DM3KII-D0Xt6xwn.js} +1 -1
  110. package/dist-embed/chunks/{diagram-Z3DM3KII-BPDco9BP.js → diagram-Z3DM3KII-YAo8QSYR.js} +1 -1
  111. package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-BrHZve2O.js → ebnfDiagram-PWID7BFC-C2oLjL45.js} +1 -1
  112. package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-CeZcQDV3.js → ebnfDiagram-PWID7BFC-DN2tb-X8.js} +1 -1
  113. package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-ZbRTmpLY.js → ebnfDiagram-PWID7BFC-Dk5WVIim.js} +1 -1
  114. package/dist-embed/chunks/{edges-b2856ca0-CHQtJW0X.js → edges-b2856ca0-BSzU9ga-.js} +1 -1
  115. package/dist-embed/chunks/{el-GR-BZB4AONW-B_p1F0WP.js → el-GR-BZB4AONW-BA_6_8BV.js} +1 -1
  116. package/dist-embed/chunks/{erDiagram-5d81789a-7uQXDmYP.js → erDiagram-5d81789a--wvCe6Ur.js} +1 -1
  117. package/dist-embed/chunks/{erDiagram-RLTQ6QDP-DO7X3O5w.js → erDiagram-RLTQ6QDP-BDw_Db3e.js} +1 -1
  118. package/dist-embed/chunks/{erDiagram-RLTQ6QDP-CmahDLTF.js → erDiagram-RLTQ6QDP-BTXMcY7Y.js} +1 -1
  119. package/dist-embed/chunks/{erDiagram-RLTQ6QDP-QI_LQlaL.js → erDiagram-RLTQ6QDP-BsU1EeJN.js} +1 -1
  120. package/dist-embed/chunks/{es-ES-U4NZUMDT-BWCUsoic.js → es-ES-U4NZUMDT-DB2skShM.js} +1 -1
  121. package/dist-embed/chunks/{esm-M4z_FfnQ.js → esm-BFRTiV0k.js} +1 -1
  122. package/dist-embed/chunks/{esm-itrlzhnT.js → esm-VjpQWsU9.js} +14 -14
  123. package/dist-embed/chunks/{eu-ES-A7QVB2H4-QqCRXKSF.js → eu-ES-A7QVB2H4-D4jAAmi7.js} +1 -1
  124. package/dist-embed/chunks/{fa-IR-HGAKTJCU-C0NVSF_c.js → fa-IR-HGAKTJCU-Cm5LhQ8o.js} +1 -1
  125. package/dist-embed/chunks/{fi-FI-Z5N7JZ37-BP_C4Wwz.js → fi-FI-Z5N7JZ37-DEH_Gx5V.js} +1 -1
  126. package/dist-embed/chunks/{flowDb-185abca5-BmhWH32g.js → flowDb-185abca5-CBeP2_ZY.js} +1 -1
  127. package/dist-embed/chunks/{flowDiagram-1629c991-oMWtc4C3.js → flowDiagram-1629c991-LZzO5ZR8.js} +1 -1
  128. package/dist-embed/chunks/{flowDiagram-HODETNUW-CmuRDMmw.js → flowDiagram-HODETNUW-DNjEQlAR.js} +1 -1
  129. package/dist-embed/chunks/{flowDiagram-HODETNUW-CgvZqEVs.js → flowDiagram-HODETNUW-DP1PWdQF.js} +1 -1
  130. package/dist-embed/chunks/{flowDiagram-HODETNUW-Cy-T1qw4.js → flowDiagram-HODETNUW-_U05MBMl.js} +1 -1
  131. package/dist-embed/chunks/{flowDiagram-v2-1d953310-OG6RhgdC.js → flowDiagram-v2-1d953310-DeqYSBVG.js} +1 -1
  132. package/dist-embed/chunks/{flowchart-elk-definition-6df44142-I8LO2x_c.js → flowchart-elk-definition-6df44142-Dg5bSBS4.js} +1 -1
  133. package/dist-embed/chunks/{fr-FR-RHASNOE6-B1_hgegA.js → fr-FR-RHASNOE6-Blvt0egy.js} +1 -1
  134. package/dist-embed/chunks/{ganttDiagram-3b0b3873-Ch394Td4.js → ganttDiagram-3b0b3873-D9Pr_Kxk.js} +1 -1
  135. package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-iVAJV8uC.js → ganttDiagram-EL5Y4UJY-Baccn166.js} +1 -1
  136. package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-sX30iW6f.js → ganttDiagram-EL5Y4UJY-DmwhuzrV.js} +1 -1
  137. package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-DjmeWOsd.js → ganttDiagram-EL5Y4UJY-Qz5HuyzZ.js} +1 -1
  138. package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-BuldyYGe.js → gitGraphDiagram-WWUBYQGX-BUlSUrle.js} +1 -1
  139. package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-CVcSYkDK.js → gitGraphDiagram-WWUBYQGX-CF5nE-hV.js} +1 -1
  140. package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-CeOMDDRZ.js → gitGraphDiagram-WWUBYQGX-ZgEb3qK-.js} +1 -1
  141. package/dist-embed/chunks/{gitGraphDiagram-f01e8bc2-CfNzWqtG.js → gitGraphDiagram-f01e8bc2-BqpGV-_U.js} +1 -1
  142. package/dist-embed/chunks/{gl-ES-HMX3MZ6V-BhVM3-ho.js → gl-ES-HMX3MZ6V-CTMS_g-D.js} +1 -1
  143. package/dist-embed/chunks/{he-IL-6SHJWFNN-oud0_kOl.js → he-IL-6SHJWFNN-CwRAX3eS.js} +1 -1
  144. package/dist-embed/chunks/{hi-IN-IWLTKZ5I-CD6iySjh.js → hi-IN-IWLTKZ5I-BGqXOwtD.js} +1 -1
  145. package/dist-embed/chunks/{hu-HU-A5ZG7DT2-DXuEZMlE.js → hu-HU-A5ZG7DT2-DPTG8MEz.js} +1 -1
  146. package/dist-embed/chunks/{id-ID-SAP4L64H-C-E1a9_p.js → id-ID-SAP4L64H-SGVYgM36.js} +1 -1
  147. package/dist-embed/chunks/{index-CaEDkyBB.js → index--Rl4aMiU.js} +1 -1
  148. package/dist-embed/chunks/{index-9bae90f3-BZE71ijg.js → index-9bae90f3-9T5x-xqi.js} +1 -1
  149. package/dist-embed/chunks/{index-86hxexQA.js → index-BGTb9Nvb.js} +1 -1
  150. package/dist-embed/chunks/{index-DakHBTji.js → index-CHu5zo1L.js} +1 -1
  151. package/dist-embed/chunks/{index-s25RSqvt.js → index-DObGLuCI.js} +4 -4
  152. package/dist-embed/chunks/{index-CvKH_NYI.js → index-DRUP-YmW.js} +2 -2
  153. package/dist-embed/chunks/{index-CLB4KPZs.js → index-Df2MkvAW.js} +4 -4
  154. package/dist-embed/chunks/{index-CXSUknte.js → index-_yFHxlc9.js} +1 -1
  155. package/dist-embed/chunks/{index-BMY48-7N.js → index-i9IsP_xD.js} +1 -1
  156. package/dist-embed/chunks/{index.esm-CDmg415B.js → index.esm-BA_6VWW2.js} +1 -1
  157. package/dist-embed/chunks/index.esm-CjezntnN.js +1 -0
  158. package/dist-embed/chunks/{infoDiagram-27XIBGKW-r53wKy7u.js → infoDiagram-27XIBGKW-B4XVsJvC.js} +1 -1
  159. package/dist-embed/chunks/{infoDiagram-27XIBGKW-ZpA0pyod.js → infoDiagram-27XIBGKW-Cs7bZlH6.js} +1 -1
  160. package/dist-embed/chunks/{infoDiagram-27XIBGKW-CJ3r0yt4.js → infoDiagram-27XIBGKW-D3fIZzte.js} +1 -1
  161. package/dist-embed/chunks/{infoDiagram-a29d40f1-SCeFVgXv.js → infoDiagram-a29d40f1-DkWa9MRC.js} +1 -1
  162. package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-CvqPw0ea.js → ishikawaDiagram-5VMMS53U-B6nIkJxX.js} +1 -1
  163. package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-DZTg3ecD.js → ishikawaDiagram-5VMMS53U-BB-Kv-Mj.js} +1 -1
  164. package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-DyyVsa6G.js → ishikawaDiagram-5VMMS53U-BIytcjnR.js} +1 -1
  165. package/dist-embed/chunks/{it-IT-JPQ66NNP-iU7kI7qX.js → it-IT-JPQ66NNP-BVqiIDuA.js} +1 -1
  166. package/dist-embed/chunks/{ja-JP-DBVTYXUO-CgiuMyHB.js → ja-JP-DBVTYXUO-BVru9viS.js} +1 -1
  167. package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-DAnc386V.js → journeyDiagram-3NMN7TZE-Bs6ObzT9.js} +1 -1
  168. package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-Bc9JVKJo.js → journeyDiagram-3NMN7TZE-C3yCP95B.js} +1 -1
  169. package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-MiKYaC2s.js → journeyDiagram-3NMN7TZE-DjgUmoWA.js} +1 -1
  170. package/dist-embed/chunks/{journeyDiagram-95396277-DT_97eTw.js → journeyDiagram-95396277-Dj4xwdzk.js} +1 -1
  171. package/dist-embed/chunks/{kaa-6HZHGXH3-kCO_bmZz.js → kaa-6HZHGXH3-COq8GIG8.js} +1 -1
  172. package/dist-embed/chunks/{kab-KAB-ZGHBKWFO-XZlP8YRp.js → kab-KAB-ZGHBKWFO-C6sCJW81.js} +1 -1
  173. package/dist-embed/chunks/{kanban-definition-UXKFOSKX-C2nVULib.js → kanban-definition-UXKFOSKX-B9DSJpj9.js} +1 -1
  174. package/dist-embed/chunks/{kanban-definition-UXKFOSKX-BkReeSIH.js → kanban-definition-UXKFOSKX-Chsw2-Nq.js} +1 -1
  175. package/dist-embed/chunks/{kanban-definition-UXKFOSKX-CaaDxJqC.js → kanban-definition-UXKFOSKX-_mcHB773.js} +1 -1
  176. package/dist-embed/chunks/{kk-KZ-P5N5QNE5-BYUwHB4m.js → kk-KZ-P5N5QNE5-dn5L62v9.js} +1 -1
  177. package/dist-embed/chunks/{km-KH-HSX4SM5Z-CUO0IDD-.js → km-KH-HSX4SM5Z-DHRs2Dac.js} +1 -1
  178. package/dist-embed/chunks/{ko-KR-MTYHY66A-CuR4MTdp.js → ko-KR-MTYHY66A-B-6WTOYs.js} +1 -1
  179. package/dist-embed/chunks/{ku-TR-6OUDTVRD-CuFtqN6b.js → ku-TR-6OUDTVRD-DtHakiL_.js} +1 -1
  180. package/dist-embed/chunks/{layout-BjpOdFu2.js → layout-DTdkd155.js} +1 -1
  181. package/dist-embed/chunks/{layout-DQIVAfpO.js → layout-D_LOxL0l.js} +1 -1
  182. package/dist-embed/chunks/{layout-BD_a0kBf.js → layout-W4AzWc9F.js} +1 -1
  183. package/dist-embed/chunks/{lexicalHooks-BM3oRORX.js → lexicalHooks-eeb6BvjZ.js} +1 -1
  184. package/dist-embed/chunks/{lib-BXb6Der8.js → lib-BMPXKfof.js} +1 -1
  185. package/dist-embed/chunks/{lib-Dfg3vZM8.js → lib-BQwc_iHi.js} +1 -1
  186. package/dist-embed/chunks/{lib-CXURv0CD.js → lib-BZqd0lRo.js} +1 -1
  187. package/dist-embed/chunks/{lib-CEAQckSu.js → lib-BrI7Hb25.js} +1 -1
  188. package/dist-embed/chunks/{lib-Bx0zoo2z.js → lib-Bt3UDo1P.js} +1 -1
  189. package/dist-embed/chunks/{lib-0t46pS-5.js → lib-Btas-Vc2.js} +1 -1
  190. package/dist-embed/chunks/{lib-DXoXqPR6.js → lib-Bukh35h2.js} +1 -1
  191. package/dist-embed/chunks/{lib-Yguxonvz.js → lib-BzbIpAN9.js} +1 -1
  192. package/dist-embed/chunks/{lib-BZnIPSNY.js → lib-CM6qdZu_.js} +1 -1
  193. package/dist-embed/chunks/{lib-B5XoICB9.js → lib-CYKJVq8i.js} +1 -1
  194. package/dist-embed/chunks/{lib-CJ9ULCcA.js → lib-C_8F-jrZ.js} +1 -1
  195. package/dist-embed/chunks/{lib-WvggSsMk.js → lib-Cz-lZRHD.js} +1 -1
  196. package/dist-embed/chunks/{lib-CqNuA7eJ.js → lib-D--prlsO.js} +1 -1
  197. package/dist-embed/chunks/{lib-CtFV0V1H.js → lib-DLTzM19O.js} +11 -11
  198. package/dist-embed/chunks/{lib-Bf4e9-pt.js → lib-DPx8N2oL.js} +1 -1
  199. package/dist-embed/chunks/{lib-CBlEbdz_.js → lib-DS4NMFQk.js} +1 -1
  200. package/dist-embed/chunks/{lib-B_ADtK-Y.js → lib-DekQ5MbL.js} +1 -1
  201. package/dist-embed/chunks/{lib-eeN6DkZa.js → lib-DyPVwxhD.js} +1 -1
  202. package/dist-embed/chunks/{lib-QwGhpmEd.js → lib-Y2W358Nu.js} +1 -1
  203. package/dist-embed/chunks/{lib-Bj6VnDnz.js → lib-ZsSgUH3L.js} +1 -1
  204. package/dist-embed/chunks/{lt-LT-XHIRWOB4-TpyDKA3C.js → lt-LT-XHIRWOB4-Bov6lsrL.js} +1 -1
  205. package/dist-embed/chunks/{lv-LV-5QDEKY6T-Dz0_ikqR.js → lv-LV-5QDEKY6T-7TYkSlIn.js} +1 -1
  206. package/dist-embed/chunks/{mermaid.core-meWUGbq7.js → mermaid.core-By9AWIOp.js} +3 -3
  207. package/dist-embed/chunks/{mermaid.core-Dkoaa-_D.js → mermaid.core-Dd-D7tJ4.js} +5 -5
  208. package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-BxYK9vLg.js → mindmap-definition-YA3MSWOX-CCpwK8vh.js} +1 -1
  209. package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-DQSoT62j.js → mindmap-definition-YA3MSWOX-CmGscTNk.js} +1 -1
  210. package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-1p4XwdjF.js → mindmap-definition-YA3MSWOX-Uv7-26v7.js} +1 -1
  211. package/dist-embed/chunks/{mindmap-definition-e4c1d938-BGiAi0LL.js → mindmap-definition-e4c1d938-aCX0qYqH.js} +1 -1
  212. package/dist-embed/chunks/{mr-IN-CRQNXWMA-Vbci-IWj.js → mr-IN-CRQNXWMA-C1hMHCkZ.js} +1 -1
  213. package/dist-embed/chunks/{my-MM-5M5IBNSE-C0JHZ0Gp.js → my-MM-5M5IBNSE-CmNBubDy.js} +1 -1
  214. package/dist-embed/chunks/{nb-NO-T6EIAALU-eFOvuJCy.js → nb-NO-T6EIAALU-NtLUc485.js} +1 -1
  215. package/dist-embed/chunks/{nl-NL-IS3SIHDZ-Din9L_2S.js → nl-NL-IS3SIHDZ-CCHd5AqI.js} +1 -1
  216. package/dist-embed/chunks/{nn-NO-6E72VCQL-D7cIpOBH.js → nn-NO-6E72VCQL-BYMvh_fX.js} +1 -1
  217. package/dist-embed/chunks/{oc-FR-POXYY2M6-Bcxv3YfP.js → oc-FR-POXYY2M6-CkuSUWy_.js} +1 -1
  218. package/dist-embed/chunks/{pa-IN-N4M65BXN-IrBb1NlL.js → pa-IN-N4M65BXN-Daq4uKWi.js} +1 -1
  219. package/dist-embed/chunks/{pegDiagram-XKGWAZYB-GlLsdSxR.js → pegDiagram-XKGWAZYB-C1R8Kk6K.js} +1 -1
  220. package/dist-embed/chunks/{pegDiagram-XKGWAZYB-DDgyLvau.js → pegDiagram-XKGWAZYB-DLONs192.js} +1 -1
  221. package/dist-embed/chunks/{pegDiagram-XKGWAZYB-iCCMOEMa.js → pegDiagram-XKGWAZYB-dwQNJiaW.js} +1 -1
  222. package/dist-embed/chunks/{percentages-BXMCSKIN-BaaVroR_.js → percentages-BXMCSKIN-_vjQ8CcA.js} +5 -5
  223. package/dist-embed/chunks/{pieDiagram-E7YTZNPT-CIfzhxTy.js → pieDiagram-E7YTZNPT-CH60iHt1.js} +1 -1
  224. package/dist-embed/chunks/{pieDiagram-E7YTZNPT-ffhUIieA.js → pieDiagram-E7YTZNPT-Cm-wzRi8.js} +1 -1
  225. package/dist-embed/chunks/{pieDiagram-E7YTZNPT-DIErsg9L.js → pieDiagram-E7YTZNPT-DiT0kFGb.js} +1 -1
  226. package/dist-embed/chunks/{pieDiagram-c941bede-JKyix3vD.js → pieDiagram-c941bede-BF587JLB.js} +1 -1
  227. package/dist-embed/chunks/{pl-PL-T2D74RX3-bF5WEfvP.js → pl-PL-T2D74RX3-DUHQouxW.js} +1 -1
  228. package/dist-embed/chunks/plugin-Bvp_HQZg.js +1 -0
  229. package/dist-embed/chunks/{pt-BR-5N22H2LF-K9lAvfY5.js → pt-BR-5N22H2LF-DK_6K-F_.js} +1 -1
  230. package/dist-embed/chunks/{pt-PT-UZXXM6DQ-DAlaVYmT.js → pt-PT-UZXXM6DQ-DtH8Iay_.js} +1 -1
  231. package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-DbYIZcyN.js → quadrantDiagram-AXDQQJYC-B1wf6Zth.js} +1 -1
  232. package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-D3pxCP4M.js → quadrantDiagram-AXDQQJYC-DWDtOx8-.js} +1 -1
  233. package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-BE9RPE6m.js → quadrantDiagram-AXDQQJYC-mkOZIUHb.js} +1 -1
  234. package/dist-embed/chunks/{quadrantDiagram-cf8b8fe0-C_nd7FeD.js → quadrantDiagram-cf8b8fe0-CE6GwviF.js} +1 -1
  235. package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-CwaTW3Mo.js → railroadDiagram-O6MQD6OU-DEB7gRmX.js} +1 -1
  236. package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-CpXUNzTV.js → railroadDiagram-O6MQD6OU-DjA_m2-o.js} +1 -1
  237. package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-CEl2l0ZE.js → railroadDiagram-O6MQD6OU-DrkBEH1z.js} +1 -1
  238. package/dist-embed/chunks/{renderer-CtmiT4nP.js → renderer-jLLXpZ99.js} +1 -1
  239. package/dist-embed/chunks/{requirementDiagram-53bda41b-WVBAkQmj.js → requirementDiagram-53bda41b-BsRjuGBf.js} +1 -1
  240. package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-sE3y_NEM.js → requirementDiagram-BXWQKSXE-82Ybj2ki.js} +1 -1
  241. package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-ClYVmNTl.js → requirementDiagram-BXWQKSXE-C8d0kJ1A.js} +1 -1
  242. package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-Bd0fV1Bn.js → requirementDiagram-BXWQKSXE-S8WT8VJ1.js} +1 -1
  243. package/dist-embed/chunks/{ro-RO-JPDTUUEW-kn8FzruZ.js → ro-RO-JPDTUUEW-CfeEiLsp.js} +1 -1
  244. package/dist-embed/chunks/{ru-RU-B4JR7IUQ-iQW1KMip.js → ru-RU-B4JR7IUQ-xuXvLXWI.js} +1 -1
  245. package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-CLR82118.js → sankeyDiagram-P5KCCOFB-C2LowYxA.js} +1 -1
  246. package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-BZnLyt_G.js → sankeyDiagram-P5KCCOFB-CKqSAqcJ.js} +1 -1
  247. package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-DH-uxGJV.js → sankeyDiagram-P5KCCOFB-eNBOyfBR.js} +1 -1
  248. package/dist-embed/chunks/{sankeyDiagram-c3ef121a-CINAq9g5.js → sankeyDiagram-c3ef121a-BAS8V2Ov.js} +1 -1
  249. package/dist-embed/chunks/{sequenceDiagram-82a5b84f-Bx7xO8lv.js → sequenceDiagram-82a5b84f-BWNvF-m7.js} +1 -1
  250. package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-D00NbcmA.js → sequenceDiagram-WJ2MYXX4-C_2alFNp.js} +1 -1
  251. package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-CxHuil7I.js → sequenceDiagram-WJ2MYXX4-CxH0MlFa.js} +1 -1
  252. package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-VyUqwKEJ.js → sequenceDiagram-WJ2MYXX4-fsR56p6L.js} +1 -1
  253. package/dist-embed/chunks/{si-LK-N5RQ5JYF-C1J6zA3p.js → si-LK-N5RQ5JYF-CP-9ouz_.js} +1 -1
  254. package/dist-embed/chunks/{sizeCapture-INFHLROL-B_CNNL_v.js → sizeCapture-INFHLROL-BCe0IiFV.js} +1 -1
  255. package/dist-embed/chunks/{sizeCapture-INFHLROL-_h3QW8w5.js → sizeCapture-INFHLROL-BsZaIjAU.js} +1 -1
  256. package/dist-embed/chunks/{sizeCapture-INFHLROL-BhSnrZjU.js → sizeCapture-INFHLROL-Y7lBmAj6.js} +1 -1
  257. package/dist-embed/chunks/{sk-SK-C5VTKIMK-CK9RvjRD.js → sk-SK-C5VTKIMK-BB-nLd53.js} +1 -1
  258. package/dist-embed/chunks/{sl-SI-NN7IZMDC-CcDWOBHp.js → sl-SI-NN7IZMDC-Ct4gcmka.js} +1 -1
  259. package/dist-embed/chunks/{state-CGa66Nqd.js → state-DeMGhTAB.js} +1 -1
  260. package/dist-embed/chunks/{stateDiagram-43e79a5f-DFrFK9qM.js → stateDiagram-43e79a5f-2cuSVith.js} +1 -1
  261. package/dist-embed/chunks/{stateDiagram-D77RDMKH-QwBnfyKm.js → stateDiagram-D77RDMKH-3P7AgNud.js} +1 -1
  262. package/dist-embed/chunks/{stateDiagram-D77RDMKH-BVJqlFiv.js → stateDiagram-D77RDMKH-DosU0FIz.js} +1 -1
  263. package/dist-embed/chunks/{stateDiagram-D77RDMKH-CEvuFuTH.js → stateDiagram-D77RDMKH-ul2eLf5Q.js} +1 -1
  264. package/dist-embed/chunks/{stateDiagram-v2-2041ed4f-CcaIZYWt.js → stateDiagram-v2-2041ed4f-Ur2pX7Zl.js} +1 -1
  265. package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-BaZ6xgsr.js → stateDiagram-v2-MP3YSRHH-BvlJBilq.js} +1 -1
  266. package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-C_JHNwKt.js → stateDiagram-v2-MP3YSRHH-D0rhfnrW.js} +1 -1
  267. package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-ok1qePbZ.js → stateDiagram-v2-MP3YSRHH-DeEmivLr.js} +1 -1
  268. package/dist-embed/chunks/{styles-455b33cd-CAiZEic0.js → styles-455b33cd-DPOVDa0x.js} +1 -1
  269. package/dist-embed/chunks/{styles-f932cba9-CEhWf7q3.js → styles-f932cba9-Dev7yXQc.js} +1 -1
  270. package/dist-embed/chunks/{styles-fcc2142b-v0gPnZ9U.js → styles-fcc2142b-70zGEKfV.js} +1 -1
  271. package/dist-embed/chunks/{subset-shared.chunk-C0JvsRAi.js → subset-shared.chunk-Jbgk4hFg.js} +1 -1
  272. package/dist-embed/chunks/{subset-worker.chunk-qynV-rht.js → subset-worker.chunk-C52XcgS8.js} +1 -1
  273. package/dist-embed/chunks/{substates-Bs9ZMVGa.js → substates-BuHNVWkx.js} +1 -1
  274. package/dist-embed/chunks/{sv-SE-XGPEYMSR-B38oK2Y4.js → sv-SE-XGPEYMSR-DSfTTYTP.js} +1 -1
  275. package/dist-embed/chunks/{svgDrawCommon-148a3cd9-vsaJmSq8.js → svgDrawCommon-148a3cd9-zokUeLzq.js} +1 -1
  276. package/dist-embed/chunks/{swimlanes-42K2YHIH-CpRw9PHz.js → swimlanes-42K2YHIH-CIW2hU2l.js} +1 -1
  277. package/dist-embed/chunks/{swimlanes-42K2YHIH-DO1ZzP4k.js → swimlanes-42K2YHIH-DOkKP2_2.js} +1 -1
  278. package/dist-embed/chunks/{swimlanes-42K2YHIH-C_43oheZ.js → swimlanes-42K2YHIH-x4BMo9Cs.js} +1 -1
  279. package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-BucpGmoC.js → swimlanesDiagram-VR7AAH4N-9yw92Xx_.js} +1 -1
  280. package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-BYKvE-MW.js → swimlanesDiagram-VR7AAH4N-BlFZ7eQS.js} +1 -1
  281. package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-BBi0wpOL.js → swimlanesDiagram-VR7AAH4N-zOAH82Ya.js} +1 -1
  282. package/dist-embed/chunks/{ta-IN-2NMHFXQM-uSQqrrN6.js → ta-IN-2NMHFXQM-_SwRKWkS.js} +1 -1
  283. package/dist-embed/chunks/{th-TH-HPSO5L25-Cs2r4usA.js → th-TH-HPSO5L25-NbkJxgfv.js} +1 -1
  284. package/dist-embed/chunks/{timeline-definition-24CTP7MA-C9oiFt1s.js → timeline-definition-24CTP7MA-BfM-0614.js} +1 -1
  285. package/dist-embed/chunks/{timeline-definition-24CTP7MA-CRpA2xfq.js → timeline-definition-24CTP7MA-C9Ed6D0K.js} +1 -1
  286. package/dist-embed/chunks/{timeline-definition-24CTP7MA-C_RPFzcS.js → timeline-definition-24CTP7MA-kHlycslq.js} +1 -1
  287. package/dist-embed/chunks/{timeline-definition-7545f45a-diaQHYG7.js → timeline-definition-7545f45a-B4ECAP9Q.js} +1 -1
  288. package/dist-embed/chunks/{tr-TR-DEFEU3FU-D8o50B7O.js → tr-TR-DEFEU3FU-DrMMVO-E.js} +1 -1
  289. package/dist-embed/chunks/{uk-UA-QMV73CPH-B5fUoSFX.js → uk-UA-QMV73CPH-B53y70gR.js} +1 -1
  290. package/dist-embed/chunks/{vennDiagram-4TSXK5OY-ByKQXzaL.js → vennDiagram-4TSXK5OY-7gMUaOyw.js} +1 -1
  291. package/dist-embed/chunks/{vennDiagram-4TSXK5OY-6I3E2S1J.js → vennDiagram-4TSXK5OY-CrE30dtz.js} +1 -1
  292. package/dist-embed/chunks/{vennDiagram-4TSXK5OY-C4cLgb45.js → vennDiagram-4TSXK5OY-Dt9fBhlj.js} +1 -1
  293. package/dist-embed/chunks/{vi-VN-M7AON7JQ-Dj_kFfvZ.js → vi-VN-M7AON7JQ-BVHYf59K.js} +1 -1
  294. package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-CLayLpj4.js → wardleyDiagram-VM6X3IG4-6HRbbvDt.js} +1 -1
  295. package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-CnxCRlDr.js → wardleyDiagram-VM6X3IG4-AvAVDPLG.js} +1 -1
  296. package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-6QgHmuap.js → wardleyDiagram-VM6X3IG4-CsR-8GhP.js} +1 -1
  297. package/dist-embed/chunks/{xychartDiagram-3f383b91-COn0cE9r.js → xychartDiagram-3f383b91-C09F8RkF.js} +1 -1
  298. package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-Hrzni--y.js → xychartDiagram-S5SC5T6Z-CkZtbHvK.js} +1 -1
  299. package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-CoRCml5l.js → xychartDiagram-S5SC5T6Z-VWPR98LV.js} +1 -1
  300. package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-RhhCg-yn.js → xychartDiagram-S5SC5T6Z-ZZD1fZ1L.js} +1 -1
  301. package/dist-embed/chunks/{zh-CN-LNUGB5OW-CHJxgGXp.js → zh-CN-LNUGB5OW-z2taSDkS.js} +1 -1
  302. package/dist-embed/chunks/{zh-HK-E62DVLB3-CLxE_xvU.js → zh-HK-E62DVLB3-Rkl2piEx.js} +1 -1
  303. package/dist-embed/chunks/{zh-TW-RAJ6MFWO-CpEgHY46.js → zh-TW-RAJ6MFWO-BgDiBZag.js} +1 -1
  304. package/dist-embed/datalayer-app-main.js +21 -21
  305. package/lib/api/runtimes/environments.d.ts +15 -16
  306. package/lib/api/runtimes/environments.js +19 -20
  307. package/lib/api/runtimes/runtimes.d.ts +8 -8
  308. package/lib/api/runtimes/runtimes.js +6 -6
  309. package/lib/apps/Application.d.ts +3 -3
  310. package/lib/apps/Application.js +2 -2
  311. package/lib/apps/__tests__/fixtures/sceneCheckCases.json +1 -1
  312. package/lib/apps/apps/AppBrowserSandbox.js +1 -1
  313. package/lib/apps/apps/AppComposer.d.ts +7 -7
  314. package/lib/apps/apps/AppComposer.js +9 -9
  315. package/lib/apps/apps/AppFeedback.d.ts +1 -1
  316. package/lib/apps/apps/AppFeedback.js +1 -1
  317. package/lib/apps/apps/AppKept.d.ts +1 -1
  318. package/lib/apps/apps/AppKept.js +1 -2
  319. package/lib/apps/apps/AppRenderer.d.ts +41 -42
  320. package/lib/apps/apps/AppRenderer.js +54 -55
  321. package/lib/apps/apps/AppRuntimePlugins.d.ts +1 -1
  322. package/lib/apps/apps/AppRuntimePlugins.js +3 -3
  323. package/lib/apps/apps/agent.js +1 -1
  324. package/lib/apps/apps/browserSandbox.d.ts +1 -1
  325. package/lib/apps/apps/checks.d.ts +8 -8
  326. package/lib/apps/apps/checks.js +40 -40
  327. package/lib/apps/apps/composer.d.ts +3 -3
  328. package/lib/apps/apps/composer.js +2 -2
  329. package/lib/apps/apps/computer.d.ts +5 -5
  330. package/lib/apps/apps/computer.js +2 -2
  331. package/lib/apps/apps/customComponents.d.ts +3 -3
  332. package/lib/apps/apps/customComponents.js +4 -4
  333. package/lib/apps/apps/feedback.d.ts +2 -2
  334. package/lib/apps/apps/feedback.js +1 -1
  335. package/lib/apps/apps/hostTools.d.ts +4 -4
  336. package/lib/apps/apps/hostTools.js +3 -3
  337. package/lib/apps/apps/kept.d.ts +2 -2
  338. package/lib/apps/apps/language.d.ts +1 -1
  339. package/lib/apps/apps/pluginPair.d.ts +1 -1
  340. package/lib/apps/apps/records.d.ts +6 -6
  341. package/lib/apps/apps/records.js +4 -4
  342. package/lib/apps/apps/rules.d.ts +4 -4
  343. package/lib/apps/apps/rules.js +4 -4
  344. package/lib/apps/apps/saved.d.ts +1 -1
  345. package/lib/apps/apps/saved.js +1 -1
  346. package/lib/apps/apps/sceneChecks.d.ts +5 -5
  347. package/lib/apps/apps/sceneChecks.js +7 -7
  348. package/lib/apps/apps/sceneYaml.d.ts +2 -2
  349. package/lib/apps/apps/sceneYaml.js +4 -4
  350. package/lib/apps/apps/sessionRules.d.ts +2 -2
  351. package/lib/apps/apps/sessionRules.js +2 -2
  352. package/lib/apps/apps/settingsInputs.d.ts +1 -1
  353. package/lib/apps/apps/settingsInputs.js +1 -1
  354. package/lib/apps/apps/threads.d.ts +3 -3
  355. package/lib/apps/apps/uploads.d.ts +1 -1
  356. package/lib/apps/apps/visitorToken.d.ts +3 -3
  357. package/lib/apps/apps/visitorToken.js +4 -4
  358. package/lib/apps/core/a2uiComponents.js +1 -1
  359. package/lib/apps/core/appFiles.js +1 -1
  360. package/lib/apps/core/canvasParts.d.ts +3 -3
  361. package/lib/apps/core/canvasParts.js +2 -2
  362. package/lib/apps/core/index.d.ts +20 -21
  363. package/lib/apps/core/index.js +5 -5
  364. package/lib/apps/embed/AppEmbed.d.ts +19 -19
  365. package/lib/apps/embed/AppEmbed.js +27 -27
  366. package/lib/apps/embed/LoopEmbed.d.ts +2 -2
  367. package/lib/apps/embed/LoopEmbed.js +1 -1
  368. package/lib/apps/embed/datalayer-app.js +1 -1
  369. package/lib/apps/embed/element.d.ts +1 -1
  370. package/lib/apps/embed/element.js +25 -25
  371. package/lib/apps/embed/embedConfig.d.ts +14 -14
  372. package/lib/apps/embed/embedConfig.js +11 -11
  373. package/lib/apps/embed/embedSession.d.ts +2 -2
  374. package/lib/apps/embed/embedSession.js +1 -1
  375. package/lib/apps/embed/embedTheme.d.ts +4 -4
  376. package/lib/apps/embed/embedTheme.js +5 -5
  377. package/lib/apps/embed/embeddedSecrets.d.ts +1 -1
  378. package/lib/apps/embed/embeddedSecrets.js +1 -1
  379. package/lib/apps/embed/hostBridge.d.ts +15 -15
  380. package/lib/apps/embed/hostBridge.js +10 -10
  381. package/lib/apps/embed/loader.js +2 -2
  382. package/lib/apps/embed/visitorApp.d.ts +2 -2
  383. package/lib/apps/embed/visitorApp.js +3 -4
  384. package/lib/apps/index.js +2 -2
  385. package/lib/apps/plugins/a2ui-surface/AnswerShows.d.ts +2 -2
  386. package/lib/apps/plugins/a2ui-surface/AnswerShows.js +1 -1
  387. package/lib/apps/plugins/a2ui-surface/InlineSurface.d.ts +1 -1
  388. package/lib/apps/plugins/a2ui-surface/SurfaceToolResult.js +2 -2
  389. package/lib/apps/plugins/a2ui-surface/index.js +1 -1
  390. package/lib/apps/plugins/a2ui-surface/ownComponents.js +1 -1
  391. package/lib/apps/plugins/a2ui-surface/toolResult.d.ts +2 -2
  392. package/lib/apps/plugins/a2ui-surface/toolResult.js +2 -2
  393. package/lib/apps/plugins/agent-capacity/index.d.ts +2 -2
  394. package/lib/apps/plugins/agents/DatalayerAgentBridge.js +5 -5
  395. package/lib/apps/plugins/agents/appLaunch.d.ts +1 -1
  396. package/lib/apps/plugins/agents/plugin.d.ts +4 -4
  397. package/lib/apps/plugins/agents/switchable.js +1 -1
  398. package/lib/apps/plugins/app-activity/AppActivity.d.ts +2 -2
  399. package/lib/apps/plugins/app-activity/index.js +1 -1
  400. package/lib/apps/plugins/app-components/index.d.ts +1 -1
  401. package/lib/apps/plugins/app-components/index.js +1 -1
  402. package/lib/apps/plugins/app-computer/AppComputer.d.ts +1 -1
  403. package/lib/apps/plugins/app-computer/AppComputer.js +2 -2
  404. package/lib/apps/plugins/app-computer/index.js +1 -1
  405. package/lib/apps/plugins/app-elements/AppElements.d.ts +1 -1
  406. package/lib/apps/plugins/app-elements/AppElements.js +1 -1
  407. package/lib/apps/plugins/app-elements/QuestionView.d.ts +2 -2
  408. package/lib/apps/plugins/app-elements/QuestionView.js +1 -1
  409. package/lib/apps/plugins/app-elements/index.d.ts +4 -4
  410. package/lib/apps/plugins/app-elements/index.js +4 -4
  411. package/lib/apps/plugins/app-page/AppPage.d.ts +5 -5
  412. package/lib/apps/plugins/app-page/AppPage.js +5 -5
  413. package/lib/apps/plugins/app-page/appPageModel.d.ts +13 -14
  414. package/lib/apps/plugins/app-page/appPageModel.js +12 -12
  415. package/lib/apps/plugins/app-page/index.d.ts +3 -4
  416. package/lib/apps/plugins/app-page/index.js +1 -1
  417. package/lib/apps/plugins/app-page/pageRun.d.ts +2 -2
  418. package/lib/apps/plugins/app-page/pageRun.js +2 -2
  419. package/lib/apps/plugins/app-rules/AppRulesCard.d.ts +5 -6
  420. package/lib/apps/plugins/app-rules/AppRulesCard.js +4 -4
  421. package/lib/apps/plugins/app-rules/index.js +1 -1
  422. package/lib/apps/plugins/app-rules/sessionRulesAction.d.ts +1 -1
  423. package/lib/apps/plugins/assistant/index.d.ts +9 -9
  424. package/lib/apps/plugins/assistant/index.js +5 -5
  425. package/lib/apps/plugins/assistant-characters/index.d.ts +6 -6
  426. package/lib/apps/plugins/assistant-characters/index.js +5 -5
  427. package/lib/apps/plugins/canvas-blocks/index.d.ts +2 -2
  428. package/lib/apps/plugins/canvas-blocks/index.js +2 -2
  429. package/lib/apps/plugins/canvas-parts/index.d.ts +6 -6
  430. package/lib/apps/plugins/canvas-parts/index.js +6 -6
  431. package/lib/apps/plugins/chat/ChatView.js +61 -61
  432. package/lib/apps/plugins/chat/SessionActionsMenu.d.ts +4 -4
  433. package/lib/apps/plugins/chat/SessionActionsMenu.js +3 -3
  434. package/lib/apps/plugins/chat/SessionChooseDialog.d.ts +1 -1
  435. package/lib/apps/plugins/chat/index.d.ts +9 -9
  436. package/lib/apps/plugins/chat/index.js +1 -1
  437. package/lib/apps/plugins/chat/sessionActions.js +1 -1
  438. package/lib/apps/plugins/chat/turnState.d.ts +1 -1
  439. package/lib/apps/plugins/page-layout/SplitLayout.d.ts +2 -2
  440. package/lib/apps/plugins/page-layout/SplitLayout.js +1 -1
  441. package/lib/apps/plugins/page-layout/index.js +1 -1
  442. package/lib/apps/plugins/pap-purchase/index.d.ts +9 -0
  443. package/lib/apps/plugins/pap-purchase/index.js +68 -4
  444. package/lib/apps/plugins/pap-sign-in/PapSignInCard.d.ts +1 -1
  445. package/lib/apps/plugins/pap-sign-in/PapSignInCard.js +2 -2
  446. package/lib/apps/plugins/pap-sign-in/index.js +1 -1
  447. package/lib/apps/plugins/pap-sign-in/signIn.d.ts +1 -1
  448. package/lib/apps/plugins/pap-sign-in/signIn.js +1 -1
  449. package/lib/apps/plugins/plugins-panel/index.d.ts +1 -1
  450. package/lib/apps/plugins/plugins-panel/index.js +1 -1
  451. package/lib/apps/plugins/shield-displays/DiffCard.d.ts +1 -1
  452. package/lib/apps/plugins/shield-displays/TerminalCard.d.ts +1 -1
  453. package/lib/apps/plugins/shield-displays/index.js +4 -4
  454. package/lib/apps/presets.d.ts +8 -8
  455. package/lib/apps/presets.js +1 -1
  456. package/lib/apps/shell/LoopWorkspace.d.ts +1 -1
  457. package/lib/apps/shell/LoopWorkspace.js +2 -2
  458. package/lib/apps/shell/SidebarRail.d.ts +2 -2
  459. package/lib/apps/shell/paneMotion.d.ts +1 -1
  460. package/lib/apps/shell/paneMotion.js +1 -1
  461. package/lib/chat/Chat.d.ts +2 -2
  462. package/lib/chat/Chat.js +2 -2
  463. package/lib/chat/ChatFloating.d.ts +8 -8
  464. package/lib/chat/ChatFloating.js +15 -15
  465. package/lib/chat/ChatInline.js +1 -1
  466. package/lib/chat/ChatLanguage.d.ts +1 -1
  467. package/lib/chat/ChatLanguage.js +1 -1
  468. package/lib/chat/assistant/AssistantContextMenu.d.ts +1 -1
  469. package/lib/chat/assistant/AssistantStage.d.ts +14 -14
  470. package/lib/chat/assistant/AssistantStage.js +11 -12
  471. package/lib/chat/assistant/Avatar3D.d.ts +1 -1
  472. package/lib/chat/assistant/BalloonParts.d.ts +2 -2
  473. package/lib/chat/assistant/BalloonParts.js +1 -1
  474. package/lib/chat/assistant/BalloonVisual.d.ts +1 -1
  475. package/lib/chat/assistant/ConversationBalloon.d.ts +2 -2
  476. package/lib/chat/assistant/ConversationBalloon.js +1 -1
  477. package/lib/chat/assistant/SpeechBalloon.d.ts +2 -2
  478. package/lib/chat/assistant/SpriteCharacter.d.ts +2 -2
  479. package/lib/chat/assistant/characters.d.ts +5 -5
  480. package/lib/chat/assistant/clearance.d.ts +3 -3
  481. package/lib/chat/assistant/clearance.js +3 -3
  482. package/lib/chat/assistant/formats/acf.js +1 -1
  483. package/lib/chat/assistant/formats/files.js +1 -1
  484. package/lib/chat/assistant/formats/index.d.ts +1 -1
  485. package/lib/chat/assistant/formats/index.js +1 -1
  486. package/lib/chat/assistant/formats/stateAnimations.d.ts +1 -1
  487. package/lib/chat/assistant/formats/types.d.ts +1 -1
  488. package/lib/chat/assistant/state.d.ts +10 -10
  489. package/lib/chat/assistant/state.js +5 -5
  490. package/lib/chat/assistant/toolLine.d.ts +1 -1
  491. package/lib/chat/assistant/toolLine.js +2 -2
  492. package/lib/chat/base/ChatBase.js +44 -44
  493. package/lib/chat/base/conversationItems.d.ts +2 -2
  494. package/lib/chat/base/loopElement.d.ts +4 -4
  495. package/lib/chat/base/loopStep.d.ts +4 -4
  496. package/lib/chat/base/loopStep.js +1 -1
  497. package/lib/chat/base/loopWindow.d.ts +2 -2
  498. package/lib/chat/base/loopWindow.js +2 -2
  499. package/lib/chat/base/uiFiles.d.ts +1 -1
  500. package/lib/chat/base/uiFiles.js +1 -1
  501. package/lib/chat/base/uiOps.d.ts +2 -2
  502. package/lib/chat/base/uiOps.js +2 -2
  503. package/lib/chat/index.js +1 -1
  504. package/lib/chat/indicators/McpStatusIndicator.js +1 -1
  505. package/lib/chat/indicators/SkillsStatusIndicator.js +1 -1
  506. package/lib/chat/messages/ChatMessageList.d.ts +3 -3
  507. package/lib/chat/messages/ChatMessageList.js +3 -3
  508. package/lib/chat/messages/markdownWithoutHtml.d.ts +1 -1
  509. package/lib/chat/messages/markdownWithoutHtml.js +1 -1
  510. package/lib/chat/presence/Presence.d.ts +4 -4
  511. package/lib/chat/presence/Presence.js +1 -1
  512. package/lib/chat/presence/presenceStatus.d.ts +2 -2
  513. package/lib/chat/presence/presenceStatus.js +2 -2
  514. package/lib/chat/prompt/InputPrompt.d.ts +2 -2
  515. package/lib/chat/prompt/InputPrompt.js +2 -2
  516. package/lib/chat/prompt/InputPromptBase.d.ts +1 -1
  517. package/lib/chat/prompt/InputPromptBase.js +1 -1
  518. package/lib/chat/prompt/InputPromptLexical.d.ts +1 -1
  519. package/lib/chat/styles/streamdownStyles.js +1 -1
  520. package/lib/chat/tools/IdentityAuthorization.js +1 -1
  521. package/lib/chat/useViewportDrag.d.ts +1 -1
  522. package/lib/chat/viewModes.d.ts +1 -1
  523. package/lib/chat/viewModes.js +2 -2
  524. package/lib/chat/words.js +1 -1
  525. package/lib/client/mixins/RuntimesMixin.d.ts +5 -5
  526. package/lib/client/mixins/RuntimesMixin.js +5 -5
  527. package/lib/components/a2ui/custom/index.d.ts +3 -3
  528. package/lib/components/a2ui/custom/index.js +1 -1
  529. package/lib/components/a2ui/custom/sandbox.d.ts +2 -2
  530. package/lib/components/a2ui/custom/sandbox.js +2 -2
  531. package/lib/components/a2ui/datalayer/Chart.js +2 -2
  532. package/lib/components/a2ui/datalayer/Chat.js +1 -1
  533. package/lib/components/a2ui/datalayer/Download.js +1 -1
  534. package/lib/components/a2ui/datalayer/Evidence.js +1 -1
  535. package/lib/components/a2ui/datalayer/FileUpload.d.ts +1 -1
  536. package/lib/components/a2ui/datalayer/FileUpload.js +2 -2
  537. package/lib/components/a2ui/datalayer/Form.d.ts +1 -1
  538. package/lib/components/a2ui/datalayer/Form.js +3 -3
  539. package/lib/components/a2ui/datalayer/SchemaForm.d.ts +1 -1
  540. package/lib/components/a2ui/datalayer/Table.js +1 -1
  541. package/lib/components/a2ui/datalayer/drawn.d.ts +1 -1
  542. package/lib/components/a2ui/datalayer/drawn.js +1 -1
  543. package/lib/components/a2ui/datalayer/formWidgets.js +1 -1
  544. package/lib/components/a2ui/datalayer/index.d.ts +1 -1
  545. package/lib/components/a2ui/datalayer/schema.d.ts +3 -3
  546. package/lib/components/a2ui/datalayer/schema.js +3 -3
  547. package/lib/components/a2ui/styles.js +1 -1
  548. package/lib/components/a2ui/visibleWhen.d.ts +4 -4
  549. package/lib/components/a2ui/visibleWhen.js +4 -4
  550. package/lib/components/code-sandboxes/CodeSandboxEnvironmentSelect.d.ts +2 -2
  551. package/lib/components/code-sandboxes/CodeSandboxEnvironmentSelect.js +2 -2
  552. package/lib/components/code-sandboxes/CodeSandboxLauncher.d.ts +1 -1
  553. package/lib/components/code-sandboxes/CodeSandboxLauncher.js +4 -4
  554. package/lib/components/code-sandboxes/CodeSandboxUtils.d.ts +2 -2
  555. package/lib/components/code-sandboxes/codeSandboxEnvironments.d.ts +6 -8
  556. package/lib/components/code-sandboxes/codeSandboxEnvironments.js +4 -6
  557. package/lib/components/inspector/a2aSpans.d.ts +1 -1
  558. package/lib/components/inspector/a2aSpans.js +1 -1
  559. package/lib/components/teams/A2ATeamGraph.d.ts +3 -3
  560. package/lib/components/teams/A2ATeamGraph.js +1 -1
  561. package/lib/components/teams/AnswerSurfaces.d.ts +1 -1
  562. package/lib/components/teams/AnswerSurfacesView.d.ts +1 -1
  563. package/lib/components/teams/AnswerSurfacesView.js +1 -1
  564. package/lib/components/teams/NotebookPreview.d.ts +1 -1
  565. package/lib/components/teams/SceneTranscript.d.ts +2 -2
  566. package/lib/components/teams/SceneView.d.ts +3 -3
  567. package/lib/components/teams/a2aTeamFlow.d.ts +1 -1
  568. package/lib/components/teams/a2aTeamFlow.js +1 -1
  569. package/lib/components/teams/backdrops/halo.d.ts +1 -1
  570. package/lib/components/teams/backdrops/types.d.ts +3 -3
  571. package/lib/components/teams/sceneStage.d.ts +1 -1
  572. package/lib/components/teams/sceneTranscriptRules.d.ts +2 -2
  573. package/lib/components/teams/toolEventLoop.js +1 -1
  574. package/lib/components/teams/transcript/SequenceDiagram.d.ts +1 -1
  575. package/lib/components/teams/transcript/TranscriptDetail.d.ts +1 -1
  576. package/lib/components/teams/transcript/TranscriptTable.d.ts +1 -1
  577. package/lib/components/teams/transcript/TranscriptViews.d.ts +3 -4
  578. package/lib/components/teams/transcript/index.d.ts +1 -1
  579. package/lib/components/teams/transcript/index.js +1 -1
  580. package/lib/components/teams/transcript/selection.d.ts +1 -1
  581. package/lib/components/teams/transcript/sequenceDiagramRules.d.ts +1 -1
  582. package/lib/components/teams/transcript/sequenceDiagramRules.js +1 -1
  583. package/lib/components/teams/transcript/transcriptDetailRules.d.ts +1 -1
  584. package/lib/components/teams/transcript/transcriptExport.d.ts +1 -1
  585. package/lib/components/teams/transcript/transcriptRows.d.ts +1 -1
  586. package/lib/components/teams/transcript/transcriptRows.js +1 -1
  587. package/lib/components/teams/useA2ATeam.d.ts +9 -9
  588. package/lib/components/teams/useA2ATeam.js +6 -6
  589. package/lib/examples/AvatarExample.d.ts +2 -2
  590. package/lib/examples/AvatarExample.js +3 -3
  591. package/lib/examples/AvatarGalleryExample.d.ts +3 -3
  592. package/lib/examples/AvatarGalleryExample.js +4 -4
  593. package/lib/examples/LoopAppComputerExample.d.ts +1 -1
  594. package/lib/examples/LoopAppComputerExample.js +1 -1
  595. package/lib/examples/ProtocolSignedRequestsExample.d.ts +1 -1
  596. package/lib/examples/ProtocolSignedRequestsExample.js +1 -1
  597. package/lib/examples/ProtocolUcpCheckoutExample.d.ts +1 -1
  598. package/lib/examples/ProtocolUcpCheckoutExample.js +1 -1
  599. package/lib/examples/ScenesExample.js +4 -4
  600. package/lib/examples/ShieldHarnessExample.d.ts +1 -1
  601. package/lib/examples/ShieldHarnessExample.js +1 -1
  602. package/lib/examples/ShieldPolicyExample.d.ts +1 -1
  603. package/lib/examples/ShieldPolicyExample.js +1 -1
  604. package/lib/examples/VoiceChatExample.js +1 -1
  605. package/lib/examples/example-selector.js +1 -1
  606. package/lib/examples/exampleGroups.js +4 -4
  607. package/lib/examples/pap/papSignInCases.js +1 -1
  608. package/lib/examples/protocols/signedRequestsDemo.d.ts +1 -1
  609. package/lib/examples/protocols/signedRequestsDemo.js +1 -1
  610. package/lib/examples/protocols/ucpCheckoutDemo.d.ts +1 -2
  611. package/lib/examples/protocols/ucpCheckoutDemo.js +1 -2
  612. package/lib/examples/shield/shieldHarness.d.ts +1 -1
  613. package/lib/examples/shield/shieldPolicyDemo.d.ts +1 -1
  614. package/lib/examples/utils/AvatarGalleryGrid.d.ts +2 -2
  615. package/lib/examples/utils/AvatarGalleryGrid.js +2 -2
  616. package/lib/examples/utils/avatarGallery.d.ts +5 -5
  617. package/lib/examples/utils/avatarGallery.js +2 -2
  618. package/lib/examples/utils/testSpriteCharacter.js +1 -1
  619. package/lib/hooks/useAgUi.js +1 -1
  620. package/lib/hooks/useAgentRuntimes.d.ts +3 -3
  621. package/lib/hooks/useAgentRuntimes.js +2 -2
  622. package/lib/hooks/useChat.js +1 -1
  623. package/lib/models/Environment.d.ts +39 -39
  624. package/lib/models/Environment.js +1 -1
  625. package/lib/models/EnvironmentDTO.d.ts +6 -6
  626. package/lib/models/EnvironmentDTO.js +2 -2
  627. package/lib/models/RuntimeDTO.d.ts +2 -2
  628. package/lib/portable/activity.d.ts +7 -7
  629. package/lib/portable/activity.js +3 -3
  630. package/lib/portable/adapterEvents.d.ts +2 -2
  631. package/lib/portable/agUiRefusal.d.ts +1 -1
  632. package/lib/portable/agUiRefusal.js +1 -1
  633. package/lib/portable/approvalCard.d.ts +1 -1
  634. package/lib/portable/approvalCard.js +1 -1
  635. package/lib/portable/approvals.d.ts +4 -4
  636. package/lib/portable/approvals.js +2 -2
  637. package/lib/portable/attention.d.ts +4 -4
  638. package/lib/portable/attention.js +6 -6
  639. package/lib/portable/conversation.d.ts +2 -2
  640. package/lib/portable/conversation.js +1 -1
  641. package/lib/portable/direct.d.ts +2 -2
  642. package/lib/portable/fixtures.d.ts +3 -3
  643. package/lib/portable/fixtures.js +3 -3
  644. package/lib/portable/hosts/agentClient.d.ts +4 -4
  645. package/lib/portable/hosts/agentClient.js +2 -2
  646. package/lib/portable/hosts/client.d.ts +2 -2
  647. package/lib/portable/hosts/client.js +3 -3
  648. package/lib/portable/hosts/contracts.d.ts +2 -2
  649. package/lib/portable/hosts/contracts.js +3 -3
  650. package/lib/portable/hosts/contracts.json +1 -1
  651. package/lib/portable/hosts/deadLetters.d.ts +1 -1
  652. package/lib/portable/hosts/deadLetters.js +4 -4
  653. package/lib/portable/hosts/deliveries.d.ts +1 -1
  654. package/lib/portable/hosts/forbiddenGraph.d.ts +2 -3
  655. package/lib/portable/hosts/forbiddenGraph.js +2 -3
  656. package/lib/portable/hosts/health.d.ts +2 -2
  657. package/lib/portable/hosts/health.js +2 -2
  658. package/lib/portable/hosts/index.d.ts +1 -1
  659. package/lib/portable/hosts/index.js +1 -1
  660. package/lib/portable/hosts/observability.d.ts +2 -2
  661. package/lib/portable/hosts/observability.js +3 -3
  662. package/lib/portable/hosts/postgresQueue.d.ts +5 -6
  663. package/lib/portable/hosts/postgresQueue.js +4 -5
  664. package/lib/portable/hosts/queue.d.ts +1 -1
  665. package/lib/portable/hosts/quotas.d.ts +3 -3
  666. package/lib/portable/hosts/quotas.js +2 -2
  667. package/lib/portable/hosts/rateLimit.d.ts +1 -1
  668. package/lib/portable/hosts/resolution.d.ts +3 -3
  669. package/lib/portable/hosts/schema.d.ts +1 -1
  670. package/lib/portable/hosts/schema.js +1 -1
  671. package/lib/portable/hosts/secretCipher.d.ts +1 -2
  672. package/lib/portable/hosts/turnState.d.ts +1 -1
  673. package/lib/portable/index.js +13 -13
  674. package/lib/portable/lifecycle.d.ts +4 -4
  675. package/lib/portable/lifecycle.js +1 -1
  676. package/lib/portable/localApprovals.d.ts +1 -1
  677. package/lib/portable/localApprovals.js +1 -1
  678. package/lib/portable/localRuntime.d.ts +7 -7
  679. package/lib/portable/localRuntime.js +5 -5
  680. package/lib/portable/presence.d.ts +3 -3
  681. package/lib/portable/protectedInput.d.ts +1 -1
  682. package/lib/portable/records.d.ts +1 -1
  683. package/lib/portable/records.js +1 -1
  684. package/lib/portable/runMeasures.d.ts +1 -1
  685. package/lib/portable/runMeasures.js +1 -1
  686. package/lib/portable/runtimes.d.ts +1 -1
  687. package/lib/portable/semantic-events.json +1 -1
  688. package/lib/portable/semantic.d.ts +1 -1
  689. package/lib/portable/semanticOfAgUi.d.ts +2 -2
  690. package/lib/portable/semanticOfAgUi.js +1 -1
  691. package/lib/portable/sessionList.d.ts +11 -11
  692. package/lib/portable/sessionList.js +8 -8
  693. package/lib/portable/signIn.d.ts +9 -9
  694. package/lib/portable/signIn.js +4 -4
  695. package/lib/portable/signInStatus.d.ts +1 -1
  696. package/lib/portable/signInStatus.js +1 -1
  697. package/lib/portable/thread.d.ts +1 -1
  698. package/lib/portable/views.d.ts +3 -3
  699. package/lib/protocols/A2AAdapter.d.ts +1 -1
  700. package/lib/protocols/A2AAdapter.js +4 -4
  701. package/lib/protocols/AGUIAdapter.d.ts +1 -1
  702. package/lib/protocols/AGUIAdapter.js +2 -2
  703. package/lib/protocols/BrowserAgentAdapter.d.ts +2 -2
  704. package/lib/protocols/BrowserAgentAdapter.js +1 -1
  705. package/lib/protocols/VercelAIAdapter.js +2 -2
  706. package/lib/protocols/a2a/index.d.ts +1 -1
  707. package/lib/protocols/a2a/index.js +1 -1
  708. package/lib/protocols/agentic-commerce/index.d.ts +3 -3
  709. package/lib/protocols/agentic-commerce/index.js +3 -3
  710. package/lib/protocols/commerce.d.ts +3 -3
  711. package/lib/protocols/commerce.js +3 -3
  712. package/lib/protocols/core.d.ts +3 -3
  713. package/lib/protocols/mcp/client.js +1 -1
  714. package/lib/protocols/mcp/index.js +2 -2
  715. package/lib/protocols/pact/index.d.ts +2 -2
  716. package/lib/protocols/pact/index.js +1 -1
  717. package/lib/protocols/ucp/index.d.ts +3 -3
  718. package/lib/protocols/ucp/index.js +3 -3
  719. package/lib/protocols/ucp/merchant.js +1 -1
  720. package/lib/protocols/web-bot-auth/index.d.ts +2 -3
  721. package/lib/protocols/web-bot-auth/index.js +2 -3
  722. package/lib/protocols/web-bot-auth/tap.js +1 -1
  723. package/lib/runtimes/actions.d.ts +1 -1
  724. package/lib/runtimes/actions.js +3 -3
  725. package/lib/runtimes/apis.d.ts +4 -4
  726. package/lib/runtimes/browser/a2aPeer.d.ts +1 -1
  727. package/lib/runtimes/browser/a2aPeer.js +1 -1
  728. package/lib/runtimes/browser/frontendTools.d.ts +1 -1
  729. package/lib/runtimes/browser/protocol.d.ts +1 -1
  730. package/lib/runtimes/variants.d.ts +3 -3
  731. package/lib/runtimes/variants.js +4 -4
  732. package/lib/specs/apps.js +37 -37
  733. package/lib/specs/appspecSchema.js +2 -2
  734. package/lib/specs/harnesses.d.ts +2 -2
  735. package/lib/specs/harnesses.js +1 -1
  736. package/lib/specs/policies.d.ts +1 -1
  737. package/lib/specs/protocols.d.ts +1 -1
  738. package/lib/specs/sessionFiles.d.ts +1 -1
  739. package/lib/specs/sessionFiles.js +1 -1
  740. package/lib/specs/standards.d.ts +1 -1
  741. package/lib/specs/ui.d.ts +1 -1
  742. package/lib/specs/ui.js +1 -1
  743. package/lib/specs/voices.d.ts +1 -1
  744. package/lib/stores/agentRuntimeStore.js +1 -1
  745. package/lib/stories/loop/ReferenceScreens.d.ts +3 -3
  746. package/lib/stories/loop/ReferenceScreens.js +12 -12
  747. package/lib/stories/loop/pictures-main.js +3 -3
  748. package/lib/tools/adapters/agent-runtimes/AgentRuntimesToolAdapter.js +1 -1
  749. package/lib/tools/toolEventTurns.d.ts +2 -2
  750. package/lib/types/agentspecs.d.ts +4 -4
  751. package/lib/types/chat.d.ts +22 -22
  752. package/lib/types/mcp.d.ts +2 -2
  753. package/lib/types/messages.d.ts +1 -1
  754. package/lib/types/protocol.d.ts +1 -1
  755. package/lib/types/scenes.d.ts +7 -7
  756. package/lib/types/teams.d.ts +5 -5
  757. package/lib/types/tools.d.ts +2 -2
  758. package/lib/ui-plugins/MCPUIPlugin.d.ts +2 -2
  759. package/lib/ui-plugins/MCPUIPlugin.js +1 -1
  760. package/lib/voice/ComposerVoice.d.ts +13 -13
  761. package/lib/voice/ComposerVoice.js +3 -3
  762. package/lib/voice/HandsFree.d.ts +13 -13
  763. package/lib/voice/HandsFree.js +5 -5
  764. package/lib/voice/ReadAloud.d.ts +1 -1
  765. package/lib/voice/VoiceInput.d.ts +7 -7
  766. package/lib/voice/VoiceInput.js +5 -5
  767. package/lib/voice/VoiceMenu.d.ts +2 -2
  768. package/lib/voice/captions.d.ts +1 -1
  769. package/lib/voice/captions.js +1 -1
  770. package/lib/voice/capture.d.ts +3 -3
  771. package/lib/voice/capture.js +3 -3
  772. package/lib/voice/chatVoice.d.ts +8 -8
  773. package/lib/voice/chatVoice.js +11 -11
  774. package/lib/voice/choices.d.ts +3 -3
  775. package/lib/voice/choices.js +3 -3
  776. package/lib/voice/consent.d.ts +3 -3
  777. package/lib/voice/consent.js +4 -4
  778. package/lib/voice/handsFreeRules.d.ts +11 -11
  779. package/lib/voice/handsFreeRules.js +8 -8
  780. package/lib/voice/hearing.d.ts +7 -7
  781. package/lib/voice/hearing.js +4 -4
  782. package/lib/voice/index.d.ts +11 -11
  783. package/lib/voice/keptSound.d.ts +2 -2
  784. package/lib/voice/keptSound.js +3 -3
  785. package/lib/voice/pinned.d.ts +2 -2
  786. package/lib/voice/pinned.js +2 -2
  787. package/lib/voice/sayAloud.d.ts +5 -5
  788. package/lib/voice/sayAloud.js +5 -5
  789. package/lib/voice/sentences.d.ts +2 -2
  790. package/lib/voice/sentences.js +3 -3
  791. package/lib/voice/serverHearing.d.ts +2 -2
  792. package/lib/voice/serverHearing.js +5 -5
  793. package/lib/voice/settings.d.ts +11 -11
  794. package/lib/voice/settings.js +7 -7
  795. package/lib/voice/speaker.d.ts +14 -14
  796. package/lib/voice/speaker.js +7 -7
  797. package/lib/voice/types.d.ts +3 -3
  798. package/lib/voice/useSpokenAnswers.js +1 -1
  799. package/lib/voice/useVoiceSettings.js +1 -1
  800. package/lib/voice/useVoiceSpeaker.d.ts +2 -2
  801. package/lib/voice/useVoiceSpeaker.js +2 -2
  802. package/package.json +2 -2
  803. package/scripts/codegen/generate_agentic_commerce.sh +1 -1
  804. package/scripts/codegen/generate_agents.py +6 -6
  805. package/scripts/codegen/generate_harnesses.py +7 -7
  806. package/scripts/codegen/generate_mcp_servers.py +4 -4
  807. package/scripts/codegen/generate_policies.py +3 -3
  808. package/scripts/codegen/generate_protocols.py +4 -4
  809. package/scripts/codegen/generate_scenes.py +4 -4
  810. package/scripts/codegen/generate_session_files.py +3 -3
  811. package/scripts/codegen/generate_standards.py +3 -3
  812. package/scripts/codegen/generate_teams.py +1 -1
  813. package/scripts/codegen/generate_ui.py +5 -5
  814. package/scripts/codegen/generate_ui_renderers.py +2 -2
  815. package/scripts/codegen/generate_voices.py +3 -3
  816. package/scripts/dist-embed.mjs +1 -1
  817. package/scripts/generate-environments-types.py +2 -2
  818. package/scripts/record-scene-checks.py +2 -2
  819. package/scripts/voice/measure.py +3 -3
  820. package/scripts/voice/pin_store.py +2 -2
  821. package/scripts/voice/serve_store.py +1 -1
  822. package/scripts/voice/transcribe.mjs +1 -1
  823. package/dist-embed/chunks/AgentDetailsDialog-DMTVgMus.js +0 -1
  824. package/dist-embed/chunks/ContextPie-C0N8hwmj.js +0 -1
  825. package/dist-embed/chunks/index.esm-tNe_Tes8.js +0 -1
  826. package/dist-embed/chunks/plugin-BFdQv_3f.js +0 -1
@@ -1,4 +1,4 @@
1
- import{p as xt}from"./chunk-JWPE2WC7-QIDUQRBr.js";import{s as gt,g as $t,p as bt,o as wt,a as Ct,b as vt,_ as i,l as O,D as Dt,d as kt,q as At,A as U,y as Q,B as Tt,F as ot}from"./mermaid.core-Dkoaa-_D.js";import{p as Bt}from"./cynefin-OW5HDTMX-BVK0_S--.js";import"../datalayer-app-main.js";import"./index-CyZxCTSq.js";import"./dayjs.min-u3zuoSR8.js";import"./fastdom-promised-Cw4_bL92.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";var rt=i(()=>({domains:new Map,transitions:[]}),"createDefaultData"),H=rt(),St=i(()=>H.domains,"getDomains"),Mt=i(()=>H.transitions,"getTransitions"),zt=i(t=>{if(t)for(const e of t){const n=e.domain,a=(e.items??[]).map(c=>({label:c.label}));H.domains.set(n,{name:n,items:a})}},"setDomains"),Lt=i(t=>{t&&(H.transitions=t.filter(e=>e.from===e.to?(O.warn(`Cynefin: self-loop transition on domain "${e.from}" is not meaningful and will be skipped.`),!1):!0).map(e=>({from:e.from,to:e.to,label:e.label||void 0})))},"setTransitions"),Nt=i(()=>U({...Tt.cynefin,...Q().cynefin}),"getConfig"),Pt=i(()=>{At(),H=rt()},"clear"),Y={getDomains:St,getTransitions:Mt,setDomains:zt,setTransitions:Lt,getConfig:Nt,clear:Pt,setAccTitle:vt,getAccTitle:Ct,setDiagramTitle:wt,getDiagramTitle:bt,getAccDescription:$t,setAccDescription:gt},It=i(t=>{xt(t,Y),Y.setDomains(t.domains),Y.setTransitions(t.transitions)},"populate"),Wt={parse:i(async t=>{const e=await Bt("cynefin",t);O.debug(e),It(e)},"parse")};function E(t){let e=t+1831565813|0;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}i(E,"seededRandom");function it(t){let e=0;for(let n=0;n<t.length;n++){const a=t.charCodeAt(n);e=(e<<5)-e+a,e|=0}return e}i(it,"hashString");function st(t,e){return typeof t=="number"&&Number.isFinite(t)&&t!==0?t:it(e)}i(st,"resolveSeed");function ct(t,e,n,a){const c=t/2,m=a??t*.015,v=7,W=e/v,d=[];for(let o=0;o<=v;o++){const p=E(n+o*17)*m*2-m;d.push({x:c+p,y:o*W})}let D=`M${d[0].x},${d[0].y}`;for(let o=0;o<d.length-1;o++){const p=d[o],s=d[o+1],f=(p.y+s.y)/2,b=o%2===0?1:-1,h=m*1.5*b*E(n+o*31+7),F=p.x+h,R=f,_=s.x-h;D+=` C${F},${R} ${_},${f} ${s.x},${s.y}`}return D}i(ct,"generateFoldPath");function lt(t,e,n,a){const c=e/2,m=a??e*.015,v=7,W=t/v,d=[];for(let o=0;o<=v;o++){const p=E(n+o*23)*m*2-m;d.push({x:o*W,y:c+p})}let D=`M${d[0].x},${d[0].y}`;for(let o=0;o<d.length-1;o++){const p=d[o],s=d[o+1],f=(p.x+s.x)/2,b=o%2===0?1:-1,h=m*1.5*b*E(n+o*37+11),F=f,R=p.y+h,_=f,z=s.y-h;D+=` C${F},${R} ${_},${z} ${s.x},${s.y}`}return D}i(lt,"generateHorizontalBoundary");function dt(t,e){const n=t/2,a=e*.5,c=e,m=t*.03;return[`M${n},${a}`,`C${n+m},${a+(c-a)*.2}`,`${n-m*1.5},${a+(c-a)*.55}`,`${n+m*.5},${a+(c-a)*.75}`,`C${n-m},${a+(c-a)*.85}`,`${n+m*.3},${a+(c-a)*.95}`,`${n},${c}`].join(" ")}i(dt,"generateCliffPath");function ft(t,e,n,a){return[`M${t-n},${e}`,`A${n},${a} 0 1,1 ${t+n},${e}`,`A${n},${a} 0 1,1 ${t-n},${e}`,"Z"].join(" ")}i(ft,"generateConfusionPath");var at={complex:{model:"Probe → Sense → Respond",practice:"Emergent Practices"},complicated:{model:"Sense → Analyse → Respond",practice:"Good Practices"},clear:{model:"Sense → Categorise → Respond",practice:"Best Practices"},chaotic:{model:"Act → Sense → Respond",practice:"Novel Practices"},confusion:{model:"",practice:"Disorder"}},Ft=i((t,e)=>{const n=t/2,a=e/2;return{complex:{cx:n/2,cy:a/2,x:0,y:0,w:n,h:a},complicated:{cx:n+n/2,cy:a/2,x:n,y:0,w:n,h:a},chaotic:{cx:n/2,cy:a+a/2,x:0,y:a,w:n,h:a},clear:{cx:n+n/2,cy:a+a/2,x:n,y:a,w:n,h:a},confusion:{cx:n,cy:a,x:n*.7,y:a*.7,w:n*.6,h:a*.6}}},"getDomainLayouts"),Rt=i(()=>{const t=ot(),e=Q();return U(t,e.themeVariables).cynefin},"getCynefinDomainColors"),q=3,_t=i((t,e,n,a)=>{const c=a.db,m=c.getDomains(),v=c.getTransitions(),W=c.getDiagramTitle(),d=c.getAccTitle(),D=c.getAccDescription(),o=c.getConfig(),p=Rt();O.debug("Rendering Cynefin diagram");const s=o.width,f=o.height,b=o.padding,h=o.showDomainDescriptions,F=o.boundaryAmplitude,R=s+b*2,_=f+b*2,z={complex:p.complexBg,complicated:p.complicatedBg,clear:p.clearBg,chaotic:p.chaoticBg,confusion:p.confusionBg},k=Dt(e);kt(k,_,R,o.useMaxWidth??!0),k.attr("viewBox",`0 0 ${R} ${_}`),d&&k.append("title").text(d),D&&k.append("desc").text(D);const A=k.append("g").attr("transform",`translate(${b}, ${b})`),V=Ft(s,f),Z=st(o.seed,e),mt=A.append("g").attr("class","cynefin-backgrounds"),X=["complex","complicated","chaotic","clear"];for(const l of X){const r=V[l];mt.append("rect").attr("class","cynefinDomain").attr("x",r.x).attr("y",r.y).attr("width",r.w).attr("height",r.h).attr("fill",z[l]).attr("fill-opacity",.4).attr("stroke","none")}const j=A.append("g").attr("class","cynefin-boundaries");j.append("path").attr("class","cynefinBoundary").attr("d",ct(s,f,Z,F)).attr("fill","none"),j.append("path").attr("class","cynefinBoundary").attr("d",lt(s,f,Z+100,F)).attr("fill","none"),j.append("path").attr("class","cynefinCliff").attr("d",dt(s,f)).attr("fill","none");const pt=s*.15,yt=f*.15;A.append("path").attr("class","cynefinConfusion").attr("d",ft(s/2,f/2,pt,yt)).attr("fill",z.confusion).attr("fill-opacity",.5);const J=A.append("g").attr("class","cynefin-labels");for(const l of X){const r=V[l];J.append("text").attr("class","cynefinDomainLabel").attr("x",r.cx).attr("y",h?r.cy-30:r.cy).attr("text-anchor","middle").attr("dominant-baseline","middle").text(l.charAt(0).toUpperCase()+l.slice(1))}if(J.append("text").attr("class","cynefinDomainLabel").attr("x",s/2).attr("y",h?f/2-10:f/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text("Confusion"),h){const l=A.append("g").attr("class","cynefin-subtitles");for(const r of X){const u=V[r],y=at[r];l.append("text").attr("class","cynefinSubtitle").attr("x",u.cx).attr("y",u.cy-10).attr("text-anchor","middle").attr("dominant-baseline","middle").text(y.model),l.append("text").attr("class","cynefinSubtitle").attr("x",u.cx).attr("y",u.cy+5).attr("text-anchor","middle").attr("dominant-baseline","middle").text(y.practice)}l.append("text").attr("class","cynefinSubtitle").attr("x",s/2).attr("y",f/2+8).attr("text-anchor","middle").attr("dominant-baseline","middle").text(at.confusion.practice)}const K=A.append("g").attr("class","cynefin-items"),T=26,tt=10,ut=["complex","complicated","chaotic","clear","confusion"];for(const l of ut){const r=m.get(l);if(!r||r.items.length===0)continue;const u=V[l],y=l==="confusion";let L=r.items,N=0;y&&r.items.length>q&&(N=r.items.length-q,L=r.items.slice(0,q));let B;if(y){const g=h?22:14;B=u.cy+g}else B=u.cy+(h?25:15);if([...L].forEach((g,S)=>{const w=B+S*(T+4),M=K.append("g"),P=M.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",T/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(g.label);let $=g.label.length*7;const x=P.node();if(x&&typeof x.getBBox=="function"){const G=x.getBBox();G.width>0&&($=G.width)}const C=$+tt*2,I=u.cx-C/2;M.attr("transform",`translate(${I}, ${w})`),M.insert("rect","text").attr("class","cynefinItem").attr("x",0).attr("y",0).attr("width",C).attr("height",T).attr("rx",4).attr("ry",4).attr("fill",z[l]).attr("fill-opacity",.95),P.attr("x",C/2).attr("y",T/2)}),N>0){const g=B+L.length*(T+4),S=`+${N} more`,w=K.append("g"),M=w.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",T/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(S);let P=S.length*7;const $=M.node();if($&&typeof $.getBBox=="function"){const I=$.getBBox();I.width>0&&(P=I.width)}const x=P+tt*2,C=u.cx-x/2;w.attr("transform",`translate(${C}, ${g})`),w.insert("rect","text").attr("class","cynefinItemOverflow").attr("x",0).attr("y",0).attr("width",x).attr("height",T).attr("rx",4).attr("ry",4).attr("fill",z[l]).attr("fill-opacity",.6),M.attr("x",x/2).attr("y",T/2)}}if(v.length>0){const l=k.select("defs").empty()?k.append("defs"):k.select("defs"),r=`cynefin-arrow-${e}`;l.append("marker").attr("id",r).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","cynefinArrowHead");const u=A.append("g").attr("class","cynefin-arrows");v.forEach(y=>{const L=V[y.from],N=V[y.to];if(!L||!N)return;if(y.from===y.to){O.warn(`Cynefin renderer: skipping self-loop on domain "${y.from}"`);return}const B=L.cx,g=L.cy,S=N.cx,w=N.cy,M=(B+S)/2,P=(g+w)/2,$=S-B,x=w-g,C=Math.sqrt($*$+x*x),I=C*.15,G=-x/C,ht=$/C,et=M+G*I,nt=P+ht*I;u.append("path").attr("class","cynefinArrowLine").attr("d",`M${B},${g} Q${et},${nt} ${S},${w}`).attr("fill","none").attr("marker-end",`url(#${r})`),y.label&&u.append("text").attr("class","cynefinArrowLabel").attr("x",et).attr("y",nt-6).attr("text-anchor","middle").attr("dominant-baseline","auto").text(y.label)})}W&&A.append("text").attr("class","cynefinTitle").attr("x",s/2).attr("y",-b/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text(W)},"draw"),Vt={draw:_t},Et=i(()=>{const t=ot(),e=Q();return U(t,e.themeVariables).cynefin},"getCynefinTheme"),Ht=i(()=>{const t=Et();return`
1
+ import{p as xt}from"./chunk-JWPE2WC7-Cq6Q947j.js";import{s as gt,g as $t,p as bt,o as wt,a as Ct,b as vt,_ as i,l as O,D as Dt,d as kt,q as At,A as U,y as Q,B as Tt,F as ot}from"./mermaid.core-Dd-D7tJ4.js";import{p as Bt}from"./cynefin-OW5HDTMX-BVK0_S--.js";import"../datalayer-app-main.js";import"./index-CyZxCTSq.js";import"./dayjs.min-u3zuoSR8.js";import"./fastdom-promised-Cw4_bL92.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";var rt=i(()=>({domains:new Map,transitions:[]}),"createDefaultData"),H=rt(),St=i(()=>H.domains,"getDomains"),Mt=i(()=>H.transitions,"getTransitions"),zt=i(t=>{if(t)for(const e of t){const n=e.domain,a=(e.items??[]).map(c=>({label:c.label}));H.domains.set(n,{name:n,items:a})}},"setDomains"),Lt=i(t=>{t&&(H.transitions=t.filter(e=>e.from===e.to?(O.warn(`Cynefin: self-loop transition on domain "${e.from}" is not meaningful and will be skipped.`),!1):!0).map(e=>({from:e.from,to:e.to,label:e.label||void 0})))},"setTransitions"),Nt=i(()=>U({...Tt.cynefin,...Q().cynefin}),"getConfig"),Pt=i(()=>{At(),H=rt()},"clear"),Y={getDomains:St,getTransitions:Mt,setDomains:zt,setTransitions:Lt,getConfig:Nt,clear:Pt,setAccTitle:vt,getAccTitle:Ct,setDiagramTitle:wt,getDiagramTitle:bt,getAccDescription:$t,setAccDescription:gt},It=i(t=>{xt(t,Y),Y.setDomains(t.domains),Y.setTransitions(t.transitions)},"populate"),Wt={parse:i(async t=>{const e=await Bt("cynefin",t);O.debug(e),It(e)},"parse")};function E(t){let e=t+1831565813|0;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}i(E,"seededRandom");function it(t){let e=0;for(let n=0;n<t.length;n++){const a=t.charCodeAt(n);e=(e<<5)-e+a,e|=0}return e}i(it,"hashString");function st(t,e){return typeof t=="number"&&Number.isFinite(t)&&t!==0?t:it(e)}i(st,"resolveSeed");function ct(t,e,n,a){const c=t/2,m=a??t*.015,v=7,W=e/v,d=[];for(let o=0;o<=v;o++){const p=E(n+o*17)*m*2-m;d.push({x:c+p,y:o*W})}let D=`M${d[0].x},${d[0].y}`;for(let o=0;o<d.length-1;o++){const p=d[o],s=d[o+1],f=(p.y+s.y)/2,b=o%2===0?1:-1,h=m*1.5*b*E(n+o*31+7),F=p.x+h,R=f,_=s.x-h;D+=` C${F},${R} ${_},${f} ${s.x},${s.y}`}return D}i(ct,"generateFoldPath");function lt(t,e,n,a){const c=e/2,m=a??e*.015,v=7,W=t/v,d=[];for(let o=0;o<=v;o++){const p=E(n+o*23)*m*2-m;d.push({x:o*W,y:c+p})}let D=`M${d[0].x},${d[0].y}`;for(let o=0;o<d.length-1;o++){const p=d[o],s=d[o+1],f=(p.x+s.x)/2,b=o%2===0?1:-1,h=m*1.5*b*E(n+o*37+11),F=f,R=p.y+h,_=f,z=s.y-h;D+=` C${F},${R} ${_},${z} ${s.x},${s.y}`}return D}i(lt,"generateHorizontalBoundary");function dt(t,e){const n=t/2,a=e*.5,c=e,m=t*.03;return[`M${n},${a}`,`C${n+m},${a+(c-a)*.2}`,`${n-m*1.5},${a+(c-a)*.55}`,`${n+m*.5},${a+(c-a)*.75}`,`C${n-m},${a+(c-a)*.85}`,`${n+m*.3},${a+(c-a)*.95}`,`${n},${c}`].join(" ")}i(dt,"generateCliffPath");function ft(t,e,n,a){return[`M${t-n},${e}`,`A${n},${a} 0 1,1 ${t+n},${e}`,`A${n},${a} 0 1,1 ${t-n},${e}`,"Z"].join(" ")}i(ft,"generateConfusionPath");var at={complex:{model:"Probe → Sense → Respond",practice:"Emergent Practices"},complicated:{model:"Sense → Analyse → Respond",practice:"Good Practices"},clear:{model:"Sense → Categorise → Respond",practice:"Best Practices"},chaotic:{model:"Act → Sense → Respond",practice:"Novel Practices"},confusion:{model:"",practice:"Disorder"}},Ft=i((t,e)=>{const n=t/2,a=e/2;return{complex:{cx:n/2,cy:a/2,x:0,y:0,w:n,h:a},complicated:{cx:n+n/2,cy:a/2,x:n,y:0,w:n,h:a},chaotic:{cx:n/2,cy:a+a/2,x:0,y:a,w:n,h:a},clear:{cx:n+n/2,cy:a+a/2,x:n,y:a,w:n,h:a},confusion:{cx:n,cy:a,x:n*.7,y:a*.7,w:n*.6,h:a*.6}}},"getDomainLayouts"),Rt=i(()=>{const t=ot(),e=Q();return U(t,e.themeVariables).cynefin},"getCynefinDomainColors"),q=3,_t=i((t,e,n,a)=>{const c=a.db,m=c.getDomains(),v=c.getTransitions(),W=c.getDiagramTitle(),d=c.getAccTitle(),D=c.getAccDescription(),o=c.getConfig(),p=Rt();O.debug("Rendering Cynefin diagram");const s=o.width,f=o.height,b=o.padding,h=o.showDomainDescriptions,F=o.boundaryAmplitude,R=s+b*2,_=f+b*2,z={complex:p.complexBg,complicated:p.complicatedBg,clear:p.clearBg,chaotic:p.chaoticBg,confusion:p.confusionBg},k=Dt(e);kt(k,_,R,o.useMaxWidth??!0),k.attr("viewBox",`0 0 ${R} ${_}`),d&&k.append("title").text(d),D&&k.append("desc").text(D);const A=k.append("g").attr("transform",`translate(${b}, ${b})`),V=Ft(s,f),Z=st(o.seed,e),mt=A.append("g").attr("class","cynefin-backgrounds"),X=["complex","complicated","chaotic","clear"];for(const l of X){const r=V[l];mt.append("rect").attr("class","cynefinDomain").attr("x",r.x).attr("y",r.y).attr("width",r.w).attr("height",r.h).attr("fill",z[l]).attr("fill-opacity",.4).attr("stroke","none")}const j=A.append("g").attr("class","cynefin-boundaries");j.append("path").attr("class","cynefinBoundary").attr("d",ct(s,f,Z,F)).attr("fill","none"),j.append("path").attr("class","cynefinBoundary").attr("d",lt(s,f,Z+100,F)).attr("fill","none"),j.append("path").attr("class","cynefinCliff").attr("d",dt(s,f)).attr("fill","none");const pt=s*.15,yt=f*.15;A.append("path").attr("class","cynefinConfusion").attr("d",ft(s/2,f/2,pt,yt)).attr("fill",z.confusion).attr("fill-opacity",.5);const J=A.append("g").attr("class","cynefin-labels");for(const l of X){const r=V[l];J.append("text").attr("class","cynefinDomainLabel").attr("x",r.cx).attr("y",h?r.cy-30:r.cy).attr("text-anchor","middle").attr("dominant-baseline","middle").text(l.charAt(0).toUpperCase()+l.slice(1))}if(J.append("text").attr("class","cynefinDomainLabel").attr("x",s/2).attr("y",h?f/2-10:f/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text("Confusion"),h){const l=A.append("g").attr("class","cynefin-subtitles");for(const r of X){const u=V[r],y=at[r];l.append("text").attr("class","cynefinSubtitle").attr("x",u.cx).attr("y",u.cy-10).attr("text-anchor","middle").attr("dominant-baseline","middle").text(y.model),l.append("text").attr("class","cynefinSubtitle").attr("x",u.cx).attr("y",u.cy+5).attr("text-anchor","middle").attr("dominant-baseline","middle").text(y.practice)}l.append("text").attr("class","cynefinSubtitle").attr("x",s/2).attr("y",f/2+8).attr("text-anchor","middle").attr("dominant-baseline","middle").text(at.confusion.practice)}const K=A.append("g").attr("class","cynefin-items"),T=26,tt=10,ut=["complex","complicated","chaotic","clear","confusion"];for(const l of ut){const r=m.get(l);if(!r||r.items.length===0)continue;const u=V[l],y=l==="confusion";let L=r.items,N=0;y&&r.items.length>q&&(N=r.items.length-q,L=r.items.slice(0,q));let B;if(y){const g=h?22:14;B=u.cy+g}else B=u.cy+(h?25:15);if([...L].forEach((g,S)=>{const w=B+S*(T+4),M=K.append("g"),P=M.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",T/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(g.label);let $=g.label.length*7;const x=P.node();if(x&&typeof x.getBBox=="function"){const G=x.getBBox();G.width>0&&($=G.width)}const C=$+tt*2,I=u.cx-C/2;M.attr("transform",`translate(${I}, ${w})`),M.insert("rect","text").attr("class","cynefinItem").attr("x",0).attr("y",0).attr("width",C).attr("height",T).attr("rx",4).attr("ry",4).attr("fill",z[l]).attr("fill-opacity",.95),P.attr("x",C/2).attr("y",T/2)}),N>0){const g=B+L.length*(T+4),S=`+${N} more`,w=K.append("g"),M=w.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",T/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(S);let P=S.length*7;const $=M.node();if($&&typeof $.getBBox=="function"){const I=$.getBBox();I.width>0&&(P=I.width)}const x=P+tt*2,C=u.cx-x/2;w.attr("transform",`translate(${C}, ${g})`),w.insert("rect","text").attr("class","cynefinItemOverflow").attr("x",0).attr("y",0).attr("width",x).attr("height",T).attr("rx",4).attr("ry",4).attr("fill",z[l]).attr("fill-opacity",.6),M.attr("x",x/2).attr("y",T/2)}}if(v.length>0){const l=k.select("defs").empty()?k.append("defs"):k.select("defs"),r=`cynefin-arrow-${e}`;l.append("marker").attr("id",r).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","cynefinArrowHead");const u=A.append("g").attr("class","cynefin-arrows");v.forEach(y=>{const L=V[y.from],N=V[y.to];if(!L||!N)return;if(y.from===y.to){O.warn(`Cynefin renderer: skipping self-loop on domain "${y.from}"`);return}const B=L.cx,g=L.cy,S=N.cx,w=N.cy,M=(B+S)/2,P=(g+w)/2,$=S-B,x=w-g,C=Math.sqrt($*$+x*x),I=C*.15,G=-x/C,ht=$/C,et=M+G*I,nt=P+ht*I;u.append("path").attr("class","cynefinArrowLine").attr("d",`M${B},${g} Q${et},${nt} ${S},${w}`).attr("fill","none").attr("marker-end",`url(#${r})`),y.label&&u.append("text").attr("class","cynefinArrowLabel").attr("x",et).attr("y",nt-6).attr("text-anchor","middle").attr("dominant-baseline","auto").text(y.label)})}W&&A.append("text").attr("class","cynefinTitle").attr("x",s/2).attr("y",-b/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text(W)},"draw"),Vt={draw:_t},Et=i(()=>{const t=ot(),e=Q();return U(t,e.themeVariables).cynefin},"getCynefinTheme"),Ht=i(()=>{const t=Et();return`
2
2
  .cynefinDomain {
3
3
  stroke: none;
4
4
  }
@@ -1,4 +1,4 @@
1
- import"./percentages-BXMCSKIN-BaaVroR_.js";import"../datalayer-app-main.js";import"./JupyterLexicalExtension-Du1Loz2o.js";import"./NotebookSkeleton-GSdyJDf_.js";import"./Avatar-DUPBQXVt.js";import"./url-DY3jeuF8.js";import"./isSymbol-BLtK9CV6.js";import"./toNumber-B1wj8-wx.js";import"./StrikethroughIcon-CbiEuPT-.js";import"./VideoIcon-C3wcjUxu.js";import"./ArrowUpIcon-y5enrVH9.js";import"./SortDescIcon-Qif6E10I.js";import"./PaintbrushIcon-CFBHU-3l.js";import"./PrismCss-c7kvMU60.js";import"./Output-CJVIj3Io.js";import"./index-BMY48-7N.js";import"./hoverbox-CStlKQWE.js";import"./index-CaEDkyBB.js";import"./index-CXSUknte.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-DXPB_0fo.js";import"./d3-color-Jd8hXty2.js";import"./dist-Frc5TvpU.js";import"./index-BaRoLDk0.js";import"./RestartIcon-DvpOf5Mf.js";import"./LexicalToolRegistry-BZUJ9wvF.js";import"./extends-CF3RwP-h.js";import"./index-BWeXDhSd.js";import"./index-DoBkwclg.js";var e={paste:"Indsæt",pasteAsPlaintext:"Indsæt som klartekst",pasteCharts:"Indsæt diagrammer",selectAll:"Marker alle",multiSelect:"Tilføj element til markering",moveCanvas:"Flyt lærred",cut:"Klip",copy:"Kopier",copyAsPng:"Kopier til klippebord som PNG",copyAsSvg:"Kopier til klippebord som SVG",copyText:"Kopiér til udklipsholder som tekst",copySource:"Kopiér kilde til udklipsholder",convertToCode:"Konvertér til kode",bringForward:"Flyt fremad",sendToBack:"Placer bagest",bringToFront:"Placer forrest",sendBackward:"Send bagud",delete:"Fjern",copyStyles:"Kopier stil",pasteStyles:"Indsæt stil",stroke:"Linje",background:"Baggrund",fill:"Udfyld",strokeWidth:"Linjebredde",strokeStyle:"Linjeform",strokeStyle_solid:"Solid",strokeStyle_dashed:"Stiplet",strokeStyle_dotted:"Prikket",sloppiness:"Sjuskethed",opacity:"Gennemsigtighed",textAlign:"Tekstjustering",edges:"Kanter",sharp:"Skarp",round:"Rund",arrowheads:"Pilehoveder",arrowhead_none:"Ingen",arrowhead_arrow:"Pil",arrowhead_bar:"Bjælke",arrowhead_circle:"",arrowhead_circle_outline:"",arrowhead_triangle:"Trekant",arrowhead_triangle_outline:"",arrowhead_diamond:"",arrowhead_diamond_outline:"",fontSize:"Skriftstørrelse",fontFamily:"Skrifttypefamilie",addWatermark:'Tilføj "Lavet med Excalidraw"',handDrawn:"Hånd-tegnet",normal:"Normal",code:"Kode",small:"Lille",medium:"Mellem",large:"Stor",veryLarge:"Meget stor",solid:"Solid",hachure:"Skravering",zigzag:"Zigzag",crossHatch:"Krydsskravering",thin:"Tynd",bold:"Fed",left:"Venstre",center:"Centrere",right:"Højre",extraBold:"Extra fed",architect:"Arkitekt",artist:"Kunstner",cartoonist:"Tegneserietegner",fileTitle:"Filnavn",colorPicker:"Farvevælger",canvasColors:"Brugt på lærred",canvasBackground:"Lærredsbaggrund",drawingCanvas:"Tegnelærred",layers:"Lag",actions:"Handlinger",language:"Sprog",liveCollaboration:"Live samarbejde...",duplicateSelection:"Duplikér",untitled:"Unavngivet",name:"Navn",yourName:"Dit navn",madeWithExcalidraw:"Fremstillet med Excalidraw",group:"Grupper valgte",ungroup:"Opløs gruppe",collaborators:"Deltagere",showGrid:"Vis gitter",addToLibrary:"Føj til Bibliotek",removeFromLibrary:"Fjern fra biblioteket",libraryLoadingMessage:"Indlæser bibliotek…",libraries:"Gennemse biblioteker",loadingScene:"Indlæser scene…",align:"Justér",alignTop:"Juster til top",alignBottom:"Juster til bund",alignLeft:"Venstrejusteret",alignRight:"Juster højre",centerVertically:"Center vertikalt",centerHorizontally:"Vandret centreret",distributeHorizontally:"Distribuer vandret",distributeVertically:"Distribuer lodret",flipHorizontal:"Spejlvend horisontalt",flipVertical:"Vend lodret",viewMode:"Visningstilstand",share:"Del",showStroke:"Vis stregfarve-vælger",showBackground:"Vis baggrundsfarve-vælger",toggleTheme:"Skift tema",personalLib:"Personligt bibliotek",excalidrawLib:"Excalidraw Bibliotek",decreaseFontSize:"Gør skriften mindre",increaseFontSize:"Gør skriften større",unbindText:"Frigør tekst",bindText:"Bind tekst til beholderen",createContainerFromText:"Ombryd tekst i en beholder",link:{edit:"Redigér link",editEmbed:"Redigér link & indlejret",create:"Link oprettet",createEmbed:"Opret link & indlejret",label:"Links",labelEmbed:"Link & indlejret",empty:"Intet link angivet"},lineEditor:{edit:"Rediger Linje",exit:"Afslut linjeeditor"},elementLock:{lock:"Lås",unlock:"Lås op",lockAll:"Lås alle",unlockAll:"Lås alle op"},statusPublished:"Udgiver",sidebarLock:"Hold sidepanel åben",selectAllElementsInFrame:"Vælg alle elementer i rammen",removeAllElementsFromFrame:"Fjern alle elementer fra ramme",eyeDropper:"Vælg farve fra lærred",textToDiagram:"Tekst til diagram",prompt:"Prompt"},r={noItems:"Ingen varer tilføjet endnu...",hint_emptyLibrary:"Vælg et element på lærred for at tilføje det her, eller installer et bibliotek fra det offentlige arkiv, nedenfor.",hint_emptyPrivateLibrary:"Vælg et element på lærred for at tilføje det her."},t={clearReset:"Nulstil lærredet",exportJSON:"Eksportér til fil",exportImage:"Eksporter billede...",export:"Gem til...",copyToClipboard:"Kopier til klippebord",save:"Gem til nuværende fil",saveAs:"Gem som",load:"Åbn",getShareableLink:"Lav et delbart link",close:"Luk",selectLanguage:"Vælg sprog",scrollBackToContent:"Scroll tilbage til indhold",zoomIn:"Zoom ind",zoomOut:"Zoom ud",resetZoom:"Nulstil zoom",menu:"Menu",done:"Færdig",edit:"Rediger",undo:"Fortryd",redo:"Gendan",resetLibrary:"Nulstil bibliotek",createNewRoom:"Opret nyt rum",fullScreen:"Fuld skærm",darkMode:"Mørk tilstand",lightMode:"Lys baggrund",zenMode:"Zentilstand",objectsSnapMode:"Fastgør til objekter",exitZenMode:"Stop zentilstand",cancel:"Annuller",clear:"Ryd",remove:"Fjern",embed:"Slå indlejring til/fra",publishLibrary:"Publicér",submit:"Gem",confirm:"Bekræft",embeddableInteractionButton:"Klik for at interagere"},i={clearReset:"Dette vil rydde hele lærredet. Er du sikker?",couldNotCreateShareableLink:"Kunne ikke oprette delbart link.",couldNotCreateShareableLinkTooBig:"Kunne ikke oprette delbart link: scenen er for stor",couldNotLoadInvalidFile:"Kunne ikke indlæse ugyldig fil",importBackendFailed:"Import fra backend mislykkedes.",cannotExportEmptyCanvas:"Kan ikke eksportere tomt lærred.",couldNotCopyToClipboard:"Kunne ikke kopiere til udklipsholderen.",decryptFailed:"Kunne ikke dekryptere data.",uploadedSecurly:"Upload er blevet sikret med ende-til-ende kryptering, hvilket betyder, at Excalidraw server og tredjeparter ikke kan læse indholdet.",loadSceneOverridePrompt:"Indlæsning af ekstern tegning erstatter dit eksisterende indhold. Ønsker du at fortsætte?",collabStopOverridePrompt:`Stopper sessionen vil overskrive din tidligere, lokalt gemte tegning. Er du sikker?
1
+ import"./percentages-BXMCSKIN-_vjQ8CcA.js";import"../datalayer-app-main.js";import"./JupyterLexicalExtension-lz41mjjY.js";import"./NotebookSkeleton-GSdyJDf_.js";import"./Avatar-DUPBQXVt.js";import"./url-DY3jeuF8.js";import"./isSymbol-BLtK9CV6.js";import"./toNumber-B1wj8-wx.js";import"./StrikethroughIcon-CbiEuPT-.js";import"./VideoIcon-C3wcjUxu.js";import"./ArrowUpIcon-y5enrVH9.js";import"./SortDescIcon-Qif6E10I.js";import"./PaintbrushIcon-CFBHU-3l.js";import"./PrismCss-c7kvMU60.js";import"./Output-BfjIM99o.js";import"./index-i9IsP_xD.js";import"./hoverbox-CStlKQWE.js";import"./index--Rl4aMiU.js";import"./index-_yFHxlc9.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-DXPB_0fo.js";import"./d3-color-Jd8hXty2.js";import"./dist-Frc5TvpU.js";import"./index-BaRoLDk0.js";import"./RestartIcon-DvpOf5Mf.js";import"./LexicalToolRegistry-rXaW8uXA.js";import"./extends-CF3RwP-h.js";import"./index-BWeXDhSd.js";import"./index-DoBkwclg.js";var e={paste:"Indsæt",pasteAsPlaintext:"Indsæt som klartekst",pasteCharts:"Indsæt diagrammer",selectAll:"Marker alle",multiSelect:"Tilføj element til markering",moveCanvas:"Flyt lærred",cut:"Klip",copy:"Kopier",copyAsPng:"Kopier til klippebord som PNG",copyAsSvg:"Kopier til klippebord som SVG",copyText:"Kopiér til udklipsholder som tekst",copySource:"Kopiér kilde til udklipsholder",convertToCode:"Konvertér til kode",bringForward:"Flyt fremad",sendToBack:"Placer bagest",bringToFront:"Placer forrest",sendBackward:"Send bagud",delete:"Fjern",copyStyles:"Kopier stil",pasteStyles:"Indsæt stil",stroke:"Linje",background:"Baggrund",fill:"Udfyld",strokeWidth:"Linjebredde",strokeStyle:"Linjeform",strokeStyle_solid:"Solid",strokeStyle_dashed:"Stiplet",strokeStyle_dotted:"Prikket",sloppiness:"Sjuskethed",opacity:"Gennemsigtighed",textAlign:"Tekstjustering",edges:"Kanter",sharp:"Skarp",round:"Rund",arrowheads:"Pilehoveder",arrowhead_none:"Ingen",arrowhead_arrow:"Pil",arrowhead_bar:"Bjælke",arrowhead_circle:"",arrowhead_circle_outline:"",arrowhead_triangle:"Trekant",arrowhead_triangle_outline:"",arrowhead_diamond:"",arrowhead_diamond_outline:"",fontSize:"Skriftstørrelse",fontFamily:"Skrifttypefamilie",addWatermark:'Tilføj "Lavet med Excalidraw"',handDrawn:"Hånd-tegnet",normal:"Normal",code:"Kode",small:"Lille",medium:"Mellem",large:"Stor",veryLarge:"Meget stor",solid:"Solid",hachure:"Skravering",zigzag:"Zigzag",crossHatch:"Krydsskravering",thin:"Tynd",bold:"Fed",left:"Venstre",center:"Centrere",right:"Højre",extraBold:"Extra fed",architect:"Arkitekt",artist:"Kunstner",cartoonist:"Tegneserietegner",fileTitle:"Filnavn",colorPicker:"Farvevælger",canvasColors:"Brugt på lærred",canvasBackground:"Lærredsbaggrund",drawingCanvas:"Tegnelærred",layers:"Lag",actions:"Handlinger",language:"Sprog",liveCollaboration:"Live samarbejde...",duplicateSelection:"Duplikér",untitled:"Unavngivet",name:"Navn",yourName:"Dit navn",madeWithExcalidraw:"Fremstillet med Excalidraw",group:"Grupper valgte",ungroup:"Opløs gruppe",collaborators:"Deltagere",showGrid:"Vis gitter",addToLibrary:"Føj til Bibliotek",removeFromLibrary:"Fjern fra biblioteket",libraryLoadingMessage:"Indlæser bibliotek…",libraries:"Gennemse biblioteker",loadingScene:"Indlæser scene…",align:"Justér",alignTop:"Juster til top",alignBottom:"Juster til bund",alignLeft:"Venstrejusteret",alignRight:"Juster højre",centerVertically:"Center vertikalt",centerHorizontally:"Vandret centreret",distributeHorizontally:"Distribuer vandret",distributeVertically:"Distribuer lodret",flipHorizontal:"Spejlvend horisontalt",flipVertical:"Vend lodret",viewMode:"Visningstilstand",share:"Del",showStroke:"Vis stregfarve-vælger",showBackground:"Vis baggrundsfarve-vælger",toggleTheme:"Skift tema",personalLib:"Personligt bibliotek",excalidrawLib:"Excalidraw Bibliotek",decreaseFontSize:"Gør skriften mindre",increaseFontSize:"Gør skriften større",unbindText:"Frigør tekst",bindText:"Bind tekst til beholderen",createContainerFromText:"Ombryd tekst i en beholder",link:{edit:"Redigér link",editEmbed:"Redigér link & indlejret",create:"Link oprettet",createEmbed:"Opret link & indlejret",label:"Links",labelEmbed:"Link & indlejret",empty:"Intet link angivet"},lineEditor:{edit:"Rediger Linje",exit:"Afslut linjeeditor"},elementLock:{lock:"Lås",unlock:"Lås op",lockAll:"Lås alle",unlockAll:"Lås alle op"},statusPublished:"Udgiver",sidebarLock:"Hold sidepanel åben",selectAllElementsInFrame:"Vælg alle elementer i rammen",removeAllElementsFromFrame:"Fjern alle elementer fra ramme",eyeDropper:"Vælg farve fra lærred",textToDiagram:"Tekst til diagram",prompt:"Prompt"},r={noItems:"Ingen varer tilføjet endnu...",hint_emptyLibrary:"Vælg et element på lærred for at tilføje det her, eller installer et bibliotek fra det offentlige arkiv, nedenfor.",hint_emptyPrivateLibrary:"Vælg et element på lærred for at tilføje det her."},t={clearReset:"Nulstil lærredet",exportJSON:"Eksportér til fil",exportImage:"Eksporter billede...",export:"Gem til...",copyToClipboard:"Kopier til klippebord",save:"Gem til nuværende fil",saveAs:"Gem som",load:"Åbn",getShareableLink:"Lav et delbart link",close:"Luk",selectLanguage:"Vælg sprog",scrollBackToContent:"Scroll tilbage til indhold",zoomIn:"Zoom ind",zoomOut:"Zoom ud",resetZoom:"Nulstil zoom",menu:"Menu",done:"Færdig",edit:"Rediger",undo:"Fortryd",redo:"Gendan",resetLibrary:"Nulstil bibliotek",createNewRoom:"Opret nyt rum",fullScreen:"Fuld skærm",darkMode:"Mørk tilstand",lightMode:"Lys baggrund",zenMode:"Zentilstand",objectsSnapMode:"Fastgør til objekter",exitZenMode:"Stop zentilstand",cancel:"Annuller",clear:"Ryd",remove:"Fjern",embed:"Slå indlejring til/fra",publishLibrary:"Publicér",submit:"Gem",confirm:"Bekræft",embeddableInteractionButton:"Klik for at interagere"},i={clearReset:"Dette vil rydde hele lærredet. Er du sikker?",couldNotCreateShareableLink:"Kunne ikke oprette delbart link.",couldNotCreateShareableLinkTooBig:"Kunne ikke oprette delbart link: scenen er for stor",couldNotLoadInvalidFile:"Kunne ikke indlæse ugyldig fil",importBackendFailed:"Import fra backend mislykkedes.",cannotExportEmptyCanvas:"Kan ikke eksportere tomt lærred.",couldNotCopyToClipboard:"Kunne ikke kopiere til udklipsholderen.",decryptFailed:"Kunne ikke dekryptere data.",uploadedSecurly:"Upload er blevet sikret med ende-til-ende kryptering, hvilket betyder, at Excalidraw server og tredjeparter ikke kan læse indholdet.",loadSceneOverridePrompt:"Indlæsning af ekstern tegning erstatter dit eksisterende indhold. Ønsker du at fortsætte?",collabStopOverridePrompt:`Stopper sessionen vil overskrive din tidligere, lokalt gemte tegning. Er du sikker?
2
2
 
3
3
  (Hvis du ønsker at beholde din lokale tegning, skal du blot lukke browserfanen i stedet.)`,errorAddingToLibrary:"Kunne ikke tilføje element til biblioteket",errorRemovingFromLibrary:"Kunne ikke fjerne element fra biblioteket",confirmAddLibrary:"Dette vil tilføje {{numShapes}} form(er) til dit bibliotek. Er du sikker?",imageDoesNotContainScene:"Dette billede synes ikke at indeholde scene data. Har du aktiveret scene indlejring under eksport?",cannotRestoreFromImage:"Scene kunne ikke gendannes fra denne billedfil",invalidSceneUrl:"Kunne ikke importere scene fra den angivne URL. Det er enten misdannet eller indeholder ikke gyldige Excalidraw JSON data.",resetLibrary:"Dette vil rydde hele lærredet. Er du sikker?",removeItemsFromsLibrary:"Slet {{count}} vare(r) fra biblioteket?",invalidEncryptionKey:"Krypteringsnøglen skal være på 22 tegn. Live-samarbejde er deaktiveret.",collabOfflineWarning:`Ingen internetforbindelse tilgængelig.
4
4
  Dine ændringer vil ikke blive gemt!`},l={unsupportedFileType:"Filtypen er ikke understøttet.",imageInsertError:"Billedet kunne ikke indsættes. Prøv igen senere...",fileTooBig:"Filen er for stor. Maksimal tilladt størrelse er {{maxSize}}.",svgImageInsertError:"Kunne ikke indsætte SVG-billede. SVG-markup'en ser ugyldig ud.",failedToFetchImage:"Dataene blev ikke hentet.",invalidSVGString:"Ugyldig SVG.",cannotResolveCollabServer:"Kunne ikke oprette forbindelse til samarbejdsserveren. Genindlæs siden og prøv igen.",importLibraryError:"Biblioteket kunne ikke indlæses",collabSaveFailed:"Kunne ikke gemme i databasen. Hvis problemerne fortsætter, bør du gemme din fil lokalt for at sikre, at du ikke mister dit arbejde.",collabSaveFailed_sizeExceeded:"Kunne ikke gemme i databasen, lærredet lader til at være for stort. Du bør gemme filen lokalt for at sikre, at du ikke mister dit arbejde.",imageToolNotSupported:"Billeder er deaktiveret.",brave_measure_text_error:{line1:"Det ser ud til, at du bruger Brave browser med indstillingen <bold>Aggressively Block Fingerprinting</bold> aktiveret.",line2:"Dette kan resultere i brud på <bold>tekstelementerne</bold> i dine tegninger.",line3:"Vi anbefaler kraftigt at deaktivere denne indstilling. Du kan følge <link>disse trin</link> om, hvordan du gør det.",line4:"Hvis deaktivering af denne indstilling ikke løser visning af tekstelementer, åbn venligst et <issueLink>issue</issueLink> på vores GitHub, eller skriv os på <discordLink>Discord</discordLink>"},libraryElementTypeError:{embeddable:"Indlejringselementer kan ikke tilføjes til biblioteket.",iframe:"IFrame elementer kan ikke tilføjes til biblioteket.",image:"Understøttelse af at tilføje billeder til biblioteket kommer snart!"},asyncPasteFailedOnRead:"Kunne ikke indsætte (kan ikke læse fra systemets udklipsholder).",asyncPasteFailedOnParse:"Kunne ikke indsætte.",copyToSystemClipboardFailed:"Kunne ikke kopiere til udklipsholderen."},n={selection:"&Udvalg",image:"Indsæt billeder",rectangle:"Rektangler",diamond:"Diamanter",ellipse:"Ellipser",arrow:"Pile",line:"Linje",freedraw:"Tegn",text:"Tekster",library:"~Bibliotek",lock:"Behold valgte værktøj aktiv efter tegning",penMode:"Pen-tilstand - forhindrer berøring",link:"Tilføj/ Opdater link for en valgt form",eraser:"Slet",frame:"Rammeværktøj",magicframe:"Wireframe til kode",embeddable:"Web-indlejring",laser:"Lasermarkør",hand:"Hånd (panorering værktøj)",extraTools:"Flere værktøjer",mermaidToExcalidraw:"Mermaid til Excalidraw",magicSettings:"AI indstillinger"},a={canvasActions:"Lærred handlinger",selectedShapeActions:"Valgte figurhandlinger",shapes:"Former"},o={canvasPanning:"For at flytte lærred, hold musehjulet eller mellemrumstasten mens du trækker, eller brug håndværktøjet",linearElement:"Klik for at starte flere punkter, træk for enkelt linje",freeDraw:"Klik og træk, slip når du er færdig",text:"Tip: du kan også tilføje tekst ved at dobbeltklikke hvor som helst med det valgte værktøj",embeddable:"Klik på træk for at oprette en hjemmeside indlejret",text_selected:"",text_editing:"",linearElementMulti:"",lockAngle:"",resize:"",resizeImage:"",rotate:"",lineEditor_info:"",lineEditor_pointSelected:"",lineEditor_nothingSelected:"",placeImage:"",publishLibrary:"",bindTextToElement:"",deepBoxSelect:"",eraserRevert:"",firefox_clipboard_write:"",disableSnapping:""},s={cannotShowPreview:"Kan ikke vise forhåndsvisning",canvasTooBig:"Lærredet kan være for stort.",canvasTooBigTip:"Tip: Prøv at flytte de fjerneste elementer lidt tættere sammen."},d={headingMain:"Der opstod en fejl. Prøv <button>at genindlæse siden</button>.",clearCanvasMessage:"",clearCanvasCaveat:"",trackedToSentry:"",openIssueMessage:"<button></button> Kopiere og indsæt venligst oplysningerne nedenfor i et GitHub problem.",sceneContent:"Scene indhold:"},k={desc_intro:"Du kan invitere folk til din nuværende scene, så de kan samarbejde med dig.",desc_privacy:"Bare rolig, sessionen bruger end-to-end kryptering, så uanset hvad du tegner vil det forblive privat. Ikke engang vores server vil kunne se, hvad du kommer op med.",button_startSession:"Start session",button_stopSession:"Stop session",desc_inProgressIntro:"Live-samarbejde session er nu begyndt.",desc_shareLink:"Del dette link med enhver, du ønsker at samarbejde med:",desc_exitSession:"",shareTitle:""},m={title:"Fejl"},g={disk_title:"Gem til disk",disk_details:"",disk_button:"",link_title:"",link_details:"",link_button:"",excalidrawplus_description:"",excalidrawplus_button:"",excalidrawplus_exportError:""},p={blog:"Læs vores blog",click:"",deepSelect:"",deepBoxSelect:"",curvedArrow:"",curvedLine:"",documentation:"",doubleClick:"",drag:"",editor:"",editLineArrowPoints:"",editText:"",github:"",howto:"",or:"",preventBinding:"",tools:"",shortcuts:"",textFinish:"",textNewLine:"",title:"",view:"",zoomToFit:"",zoomToSelection:"",toggleElementLock:"",movePageUpDown:"",movePageLeftRight:""},b={title:""},c={title:"",itemName:"",authorName:"",githubUsername:"",twitterUsername:"",libraryName:"",libraryDesc:"",website:"",placeholder:{authorName:"",libraryName:"",libraryDesc:"",githubHandle:"",twitterHandle:"",website:""},errors:{required:"",website:""},noteDescription:"",noteGuidelines:"",noteLicense:"",noteItems:"",atleastOneLibItem:"",republishWarning:""},u={title:"",content:""},x={resetLibrary:"",removeItemsFromLib:""},v={header:"",label:{withBackground:"",onlySelected:"",darkMode:"",embedScene:"",scale:"",padding:""},tooltip:{embedScene:""},title:{exportToPng:"",exportToSvg:"",copyPngToClipboard:""},button:{exportToPng:"",exportToSvg:"",copyPngToClipboard:""}},E={tooltip:"",link:""},f={angle:"",element:"",elements:"",height:"",scene:"",selected:"",storage:"",title:"Statistik for nørder",total:"",version:"",versionCopy:"Klik for at kopiere",versionNotAvailable:"",width:"Bredde"},h={addedToLibrary:"",copyStyles:"Kopieret stilarter.",copyToClipboard:"Kopieret til klippebord.",copyToClipboardAsPng:`Kopieret {{exportSelection}} til klippebord som PNG
@@ -1,4 +1,4 @@
1
- import{_ as m,ab as x,c as G,P as O,l as p,ac as A,ad as Y,ae as w,af as _,ag as H,ah as J,ai as D,aj as T,ak as z,a0 as X,W as R,U as F,$ as W,a1 as j}from"./mermaid.core-Dkoaa-_D.js";import{l as U}from"./layout-BD_a0kBf.js";import"../datalayer-app-main.js";import"./index-CyZxCTSq.js";import"./dayjs.min-u3zuoSR8.js";import"./fastdom-promised-Cw4_bL92.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./zipObject-C6Fl8RUH.js";import"./merge-B_wcPK4Y.js";import"./uniqueId-BVuTZY3F.js";import"./toNumber-B1wj8-wx.js";import"./_baseClone-ByJL1tkX.js";var C=m((t,e,r)=>Math.max(e,Math.min(r,t)),"clamp"),P=m((t="TB")=>{switch(t){case"BT":return"bottom";case"LR":return"right";case"RL":return"left";default:return"top"}},"getDefaultSelfLoopSide"),q=m(t=>t==="flowchart"||t==="flowchart-v2"||t==="stateDiagram"||t==="er"||t==="classDiagram","shouldMergeSelfLoopSegments"),$=["x","y","width","height","labelBBox","intersect","calcIntersect","diff","clusterNode"],K=m((t,e,r,d,a)=>{const f=[],h=new Set;if(r.forEach(({start:i,end:o})=>{i!==d&&h.add(i),o!==d&&h.add(o)}),h.forEach(i=>{const o=t.node(i);typeof o?.x=="number"&&typeof o?.y=="number"&&f.push(o)}),f.length===0&&r.forEach(({edge:i})=>{(i.points??[]).forEach(o=>{typeof o?.x=="number"&&typeof o?.y=="number"&&f.push(o)})}),f.length===0)return P(a);const c=f.reduce((i,o)=>({x:i.x+o.x/f.length,y:i.y+o.y/f.length}),{x:0,y:0}),l=c.x-e.x,s=c.y-e.y;return Math.abs(l)>Math.abs(s)?l>0?"right":"left":Math.abs(s)>0?s>0?"bottom":"top":P(a)},"getSelfLoopSide"),Q=m((t,e="top",r=0,d=0)=>{const a=t.x,f=t.y-r,h=t.width/2,c=t.height/2,l=Math.max(36,Math.min(100,t.width*.8)),s=C(Math.max(d,t.width*.35),36,l),i=C(Math.min(t.width,t.height)*.45,24,48);switch(e){case"bottom":{const o=f+c;return[{x:a-s/2,y:o},{x:a-s/2,y:o+i},{x:a+s/2,y:o+i},{x:a+s/2,y:o}]}case"right":{const o=a+h;return[{x:o,y:f-s/2},{x:o+i,y:f-s/2},{x:o+i,y:f+s/2},{x:o,y:f+s/2}]}case"left":{const o=a-h;return[{x:o,y:f-s/2},{x:o-i,y:f-s/2},{x:o-i,y:f+s/2},{x:o,y:f+s/2}]}default:{const o=f-c;return[{x:a-s/2,y:o},{x:a-s/2,y:o-i},{x:a+s/2,y:o-i},{x:a+s/2,y:o}]}}},"getSelfLoopPoints"),V=m((t,e,r="top",d=0,a={})=>{const h=t.x,c=t.y-d,l=a.width??0,s=a.height??0;switch(r){case"bottom":return{x:h,y:Math.max(...e.map(i=>i.y))+s/2+4};case"right":return{x:Math.max(...e.map(i=>i.x))+l/2+4,y:c};case"left":return{x:Math.min(...e.map(i=>i.x))-l/2-4,y:c};default:return{x:h,y:Math.min(...e.map(i=>i.y))-s/2-4}}},"getSelfLoopLabelPosition"),B=m((t,e=0,{mergeSelfLoops:r=!0}={})=>{const d=new Map,a=[],f=t.graph()?.rankdir;return t.edges().forEach(h=>{const c=t.edge(h);if(r&&c.selfLoop){const l=c.selfLoop.id;d.has(l)||d.set(l,[]),d.get(l).push({edge:c,start:h.v,end:h.w})}else a.push({edge:c,start:h.v,end:h.w})}),d.forEach(h=>{if(h.length!==3){h.forEach(u=>a.push(u));return}h.sort((u,b)=>u.edge.selfLoop.order-b.edge.selfLoop.order);const[c,l,s]=h,i=c.edge.originalEdge??l.edge.originalEdge??s.edge.originalEdge??l.edge,o=t.node(i.start);if(!o){h.forEach(u=>a.push(u));return}const n={width:l.edge.width,height:l.edge.height},L=K(t,o,h,i.start,f),E=Q(o,L,e,n.width??0),y=V(o,E,L,e,n),g={...l.edge,...i,id:i.id,points:E,start:i.start,end:i.end,x:y.x,y:y.y,width:n.width,height:n.height,labelStyle:l.edge.labelStyle,fromCluster:c.edge.fromCluster??l.edge.fromCluster??s.edge.fromCluster,toCluster:c.edge.toCluster??l.edge.toCluster??s.edge.toCluster};delete g.selfLoop,delete g.originalEdge,a.push({edge:g,start:g.start,end:g.end})}),a},"getEdgesToRender"),I=m(async({element:t,graph:e,diagramType:r,id:d,parentCluster:a,siteConfig:f})=>{const h=e.graph().rankdir;p.trace("Dir in recursive render - dir:",h);const{clusters:c,edgePaths:l,edgeLabels:s,nodes:i,rootGroups:o}=_(t,{edgePathsClass:"edgePaths"});e.nodes()?p.info("Recursive render XXX",e.nodes()):p.info("No nodes found for",e),e.edges().length>0&&p.info("Recursive edges",e.edge(e.edges()[0]));const n=q(r);await Promise.all(e.nodes().map(async function(y){const g=e.node(y);if(a!==void 0){const u=JSON.parse(JSON.stringify(a.clusterData));p.trace(`Setting data for parent cluster XXX
1
+ import{_ as m,ab as x,c as G,P as O,l as p,ac as A,ad as Y,ae as w,af as _,ag as H,ah as J,ai as D,aj as T,ak as z,a0 as X,W as R,U as F,$ as W,a1 as j}from"./mermaid.core-Dd-D7tJ4.js";import{l as U}from"./layout-W4AzWc9F.js";import"../datalayer-app-main.js";import"./index-CyZxCTSq.js";import"./dayjs.min-u3zuoSR8.js";import"./fastdom-promised-Cw4_bL92.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./zipObject-C6Fl8RUH.js";import"./merge-B_wcPK4Y.js";import"./uniqueId-BVuTZY3F.js";import"./toNumber-B1wj8-wx.js";import"./_baseClone-ByJL1tkX.js";var C=m((t,e,r)=>Math.max(e,Math.min(r,t)),"clamp"),P=m((t="TB")=>{switch(t){case"BT":return"bottom";case"LR":return"right";case"RL":return"left";default:return"top"}},"getDefaultSelfLoopSide"),q=m(t=>t==="flowchart"||t==="flowchart-v2"||t==="stateDiagram"||t==="er"||t==="classDiagram","shouldMergeSelfLoopSegments"),$=["x","y","width","height","labelBBox","intersect","calcIntersect","diff","clusterNode"],K=m((t,e,r,d,a)=>{const f=[],h=new Set;if(r.forEach(({start:i,end:o})=>{i!==d&&h.add(i),o!==d&&h.add(o)}),h.forEach(i=>{const o=t.node(i);typeof o?.x=="number"&&typeof o?.y=="number"&&f.push(o)}),f.length===0&&r.forEach(({edge:i})=>{(i.points??[]).forEach(o=>{typeof o?.x=="number"&&typeof o?.y=="number"&&f.push(o)})}),f.length===0)return P(a);const c=f.reduce((i,o)=>({x:i.x+o.x/f.length,y:i.y+o.y/f.length}),{x:0,y:0}),l=c.x-e.x,s=c.y-e.y;return Math.abs(l)>Math.abs(s)?l>0?"right":"left":Math.abs(s)>0?s>0?"bottom":"top":P(a)},"getSelfLoopSide"),Q=m((t,e="top",r=0,d=0)=>{const a=t.x,f=t.y-r,h=t.width/2,c=t.height/2,l=Math.max(36,Math.min(100,t.width*.8)),s=C(Math.max(d,t.width*.35),36,l),i=C(Math.min(t.width,t.height)*.45,24,48);switch(e){case"bottom":{const o=f+c;return[{x:a-s/2,y:o},{x:a-s/2,y:o+i},{x:a+s/2,y:o+i},{x:a+s/2,y:o}]}case"right":{const o=a+h;return[{x:o,y:f-s/2},{x:o+i,y:f-s/2},{x:o+i,y:f+s/2},{x:o,y:f+s/2}]}case"left":{const o=a-h;return[{x:o,y:f-s/2},{x:o-i,y:f-s/2},{x:o-i,y:f+s/2},{x:o,y:f+s/2}]}default:{const o=f-c;return[{x:a-s/2,y:o},{x:a-s/2,y:o-i},{x:a+s/2,y:o-i},{x:a+s/2,y:o}]}}},"getSelfLoopPoints"),V=m((t,e,r="top",d=0,a={})=>{const h=t.x,c=t.y-d,l=a.width??0,s=a.height??0;switch(r){case"bottom":return{x:h,y:Math.max(...e.map(i=>i.y))+s/2+4};case"right":return{x:Math.max(...e.map(i=>i.x))+l/2+4,y:c};case"left":return{x:Math.min(...e.map(i=>i.x))-l/2-4,y:c};default:return{x:h,y:Math.min(...e.map(i=>i.y))-s/2-4}}},"getSelfLoopLabelPosition"),B=m((t,e=0,{mergeSelfLoops:r=!0}={})=>{const d=new Map,a=[],f=t.graph()?.rankdir;return t.edges().forEach(h=>{const c=t.edge(h);if(r&&c.selfLoop){const l=c.selfLoop.id;d.has(l)||d.set(l,[]),d.get(l).push({edge:c,start:h.v,end:h.w})}else a.push({edge:c,start:h.v,end:h.w})}),d.forEach(h=>{if(h.length!==3){h.forEach(u=>a.push(u));return}h.sort((u,b)=>u.edge.selfLoop.order-b.edge.selfLoop.order);const[c,l,s]=h,i=c.edge.originalEdge??l.edge.originalEdge??s.edge.originalEdge??l.edge,o=t.node(i.start);if(!o){h.forEach(u=>a.push(u));return}const n={width:l.edge.width,height:l.edge.height},L=K(t,o,h,i.start,f),E=Q(o,L,e,n.width??0),y=V(o,E,L,e,n),g={...l.edge,...i,id:i.id,points:E,start:i.start,end:i.end,x:y.x,y:y.y,width:n.width,height:n.height,labelStyle:l.edge.labelStyle,fromCluster:c.edge.fromCluster??l.edge.fromCluster??s.edge.fromCluster,toCluster:c.edge.toCluster??l.edge.toCluster??s.edge.toCluster};delete g.selfLoop,delete g.originalEdge,a.push({edge:g,start:g.start,end:g.end})}),a},"getEdgesToRender"),I=m(async({element:t,graph:e,diagramType:r,id:d,parentCluster:a,siteConfig:f})=>{const h=e.graph().rankdir;p.trace("Dir in recursive render - dir:",h);const{clusters:c,edgePaths:l,edgeLabels:s,nodes:i,rootGroups:o}=_(t,{edgePathsClass:"edgePaths"});e.nodes()?p.info("Recursive render XXX",e.nodes()):p.info("No nodes found for",e),e.edges().length>0&&p.info("Recursive edges",e.edge(e.edges()[0]));const n=q(r);await Promise.all(e.nodes().map(async function(y){const g=e.node(y);if(a!==void 0){const u=JSON.parse(JSON.stringify(a.clusterData));p.trace(`Setting data for parent cluster XXX
2
2
  Node.id = `,y,`
3
3
  data=`,u.height,`
4
4
  Parent cluster`,a.height),e.setNode(a.id,u),e.parent(y)||(p.trace("Setting parent",y,a.id),e.setParent(y,a.id,u))}if(p.info("(Insert) Node XXX"+y+": "+JSON.stringify(e.node(y))),g?.clusterNode){p.info("Cluster identified XBX",y,g.width,e.node(y));const{ranksep:u,nodesep:b}=e.graph();g.graph.setGraph({...g.graph.graph(),ranksep:u+25,nodesep:b});const S=await oe({element:i,graph:g.graph,diagramType:r,id:d,parentCluster:e.node(y),siteConfig:f}),N=S.elem;H(g,N),g.diff=S.diff||0,p.info("New compound node after recursive render XAX",y,"width",g.width,"height",g.height),J(N,g)}else e.children(y).length>0?(p.trace("Cluster - the non recursive path XBX",y,g.id,g,g.width,"Graph:",e),p.trace(D(g.id,e)),w.set(g.id,{id:D(g.id,e),node:g})):(p.trace("Node - the non recursive path XAX",y,i,e.node(y),h),await T(i,e.node(y),{config:f,dir:h}))})),await m(async()=>{const y=e.edges().map(async function(g){const u=e.edge(g.v,g.w,g.name);if(p.info("Edge "+g.v+" -> "+g.w+": "+JSON.stringify(g)),p.info("Edge "+g.v+" -> "+g.w+": ",g," ",JSON.stringify(e.edge(g))),p.info("Fix",w,"ids:",g.v,g.w,"Translating: ",w.get(g.v),w.get(g.w)),n&&u.selfLoop){if(u.selfLoop.order!==1)return;const b={...u.originalEdge,...u,id:u.selfLoop.id,startLabelLeft:u.originalEdge?.startLabelLeft??u.startLabelLeft,startLabelRight:u.originalEdge?.startLabelRight??u.startLabelRight,endLabelLeft:u.originalEdge?.endLabelLeft??u.endLabelLeft,endLabelRight:u.originalEdge?.endLabelRight??u.endLabelRight};await X(s,b),u.width=b.width,u.height=b.height,u.labelStyle=b.labelStyle;return}await X(s,u)});await Promise.all(y)},"processEdges")();const{subGraphTitleTotalMargin:E}=z(f);return{elem:o,graph:e,groups:{clusters:c,edgePaths:l,edgeLabels:s,nodes:i,rootGroups:o},diagramType:r,id:d,mergeSelfLoops:n,subGraphTitleTotalMargin:E}},"measureDagreGraph"),M=m(t=>{p.info("############################################# XXX"),p.info("### Layout ### XXX"),p.info("############################################# XXX"),U(t)},"runDagreGraphLayout"),Z=m((t,e,r)=>{const d=t.node(e);if(!d)return;const a={...d};return d?.clusterNode?a.y=(d.y??0)+r:t.children(e).length>0?a.height=(d.height??0)+r:a.y=(d.y??0)+r/2,a},"normalizeDagreNode"),v=m((t,e)=>{$.forEach(r=>{e[r]!==void 0&&(t[r]=e[r])})},"applyDagreNodeLayout"),ee=m((t,e,r,d)=>({...t,start:t.start??e,end:t.end??r,points:(t.points??[]).map(a=>({...a,y:typeof a.y=="number"?a.y+d:a.y}))}),"normalizeDagreEdge"),te=m((t,e)=>{const{graph:r,mergeSelfLoops:d,subGraphTitleTotalMargin:a=0}=e,f=new Map(t.nodes.map(c=>[c.id,c]));x(r).forEach(c=>{const l=Z(r,c,a);if(!l)return;v(r.node(c),l);const s=f.get(c);s&&v(s,l)});const h=a/2;return t.edges=B(r,h,{mergeSelfLoops:d}).map(({edge:c,start:l,end:s})=>ee(c,l,s,h)),t},"applyDagreLayoutResult"),re=m(async({elem:t,graph:e,groups:{clusters:r,edgePaths:d},diagramType:a,id:f,mergeSelfLoops:h,subGraphTitleTotalMargin:c})=>{let l=0;await Promise.all(x(e).map(async function(o){const n=e.node(o);if(p.info("Position XBX => "+o+": ("+n.x,","+n.y,") width: ",n.width," height: ",n.height),n?.clusterNode)n.y+=c,p.info("A tainted cluster node XBX1",o,n.id,n.width,n.height,n.x,n.y,e.parent(o)),w.get(n.id).node=n,R(n);else if(e.children(o).length>0){p.info("A pure cluster node XBX1",o,n.id,n.x,n.y,n.width,n.height,e.parent(o)),n.height+=c,e.node(n.parentId);const L=n?.padding/2||0,E=n?.labelBBox?.height||0,y=E-L||0;p.debug("OffsetY",y,"labelHeight",E,"halfPadding",L),await F(r,n),w.get(n.id).node=n}else{const L=e.node(n.parentId);n.y+=c/2,p.info("A regular node XBX1 - using the padding",n.id,"parent",n.parentId,n.width,n.height,n.x,n.y,"offsetY",n.offsetY,"parent",L,L?.offsetY,n),R(n)}}));const s=c/2;return B(e,s,{mergeSelfLoops:h}).forEach(function({edge:o,start:n,end:L}){p.info("Edge "+n+" -> "+L+": "+JSON.stringify(o),o),o.points.forEach(u=>u.y+=s);const E=e.node(n),y=e.node(L),g=W(d,o,w,a,E,y,f);j(o,g)}),e.nodes().forEach(function(o){const n=e.node(o);p.info(o,n.type,n.diff),n.isGroup&&(l=n.diff)}),p.warn("Returning from recursive render XAX",t,l),{elem:t,diff:l}},"paintDagreLayoutCore"),oe=m(async t=>{const e=await I(t);return M(e.graph),await re(e)},"renderDagreSubgraph"),k=m(t=>{const e=new O({multigraph:!0,compound:!0}).setGraph({rankdir:t.direction,nodesep:t.config?.nodeSpacing||t.nodeSpacing||t.config?.flowchart?.nodeSpacing,ranksep:t.config?.rankSpacing||t.rankSpacing||t.config?.flowchart?.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});return t.nodes.forEach(r=>{e.setNode(r.id,{...r}),r.parentId&&e.setParent(r.id,r.parentId)}),p.debug("Edges:",t.edges),t.edges.forEach(r=>{if(r.start===r.end){const d=r.start,a=d+"---"+d+"---1",f=d+"---"+d+"---2",h=e.node(d);e.setNode(a,{domId:a,id:a,parentId:h.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),e.setParent(a,h.parentId),e.setNode(f,{domId:f,id:f,parentId:h.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),e.setParent(f,h.parentId);const c=structuredClone(r),l=structuredClone(r),s=structuredClone(r),i=structuredClone(r);l.originalEdge=c,l.selfLoop={id:c.id,order:0},s.originalEdge=c,s.selfLoop={id:c.id,order:1},i.originalEdge=c,i.selfLoop={id:c.id,order:2},l.label="",l.arrowTypeEnd="none",l.endLabelLeft="",l.endLabelRight="",l.startLabelLeft="",l.id=d+"-cyclic-special-1",s.startLabelRight="",s.startLabelLeft="",s.endLabelLeft="",s.endLabelRight="",s.arrowTypeStart="none",s.arrowTypeEnd="none",s.id=d+"-cyclic-special-mid",i.label="",i.startLabelRight="",i.startLabelLeft="",i.arrowTypeStart="none",h.isGroup&&(l.fromCluster=d,i.toCluster=d),i.id=d+"-cyclic-special-2",i.arrowTypeStart="none",e.setEdge(d,a,l,d+"-cyclic-special-0"),e.setEdge(a,f,s,d+"-cyclic-special-1"),e.setEdge(f,d,i,d+"-cyclic-special-2")}else e.setEdge(r.start,r.end,{...r},r.id)}),A(e),{graph:e}},"prepareLayoutForDagre"),ae=m(async(t,{element:e,preparedLayout:r})=>{const d=r??k(t),a=G(),f=await I({element:e,graph:d.graph,diagramType:t.type,id:t.diagramId,parentCluster:void 0,siteConfig:a});return d.measuredLayout=f,f},"measureDagreLayout"),ne=m((t,e)=>{const r=e.preparedLayout?.measuredLayout;if(!r)throw new Error("runDagreLayoutCore requires measureDagreLayout to run first");return M(r.graph),te(t,r),r},"runDagreLayoutCore"),se=m((t,{measure:e})=>x(e.graph).map(r=>e.graph.node(r)).filter(Boolean),"getDagrePaintNodes"),ie=m((t,e,{measure:r})=>t?r.graph.node(t):void 0,"getDagreEdgeNode"),Se=Y({prepareLayout:k,measureLayout:ae,runLayoutCore:ne,paintOptions:{clusterDb:w,getNodes:se,getEdgeNode:ie,skipNode:m((t,{measure:e})=>!e.graph.hasNode(t.id),"skipNode"),isCluster:m((t,{measure:e})=>e.graph.hasNode(t.id)&&(e.graph.children(t.id)??[]).length>0,"isCluster")}});export{te as applyDagreLayoutResult,B as getEdgesToRender,ae as measureDagreLayout,k as prepareLayoutForDagre,Se as render,ne as runDagreLayoutCore};
@@ -1,4 +1,4 @@
1
- import{_ as m,ab as x,c as G,P as O,l as p,ac as A,ad as Y,ae as w,af as _,ag as H,ah as J,ai as D,aj as T,ak as z,a0 as X,W as R,U as F,$ as W,a1 as j}from"./index-CLB4KPZs.js";import{l as U}from"./layout-BjpOdFu2.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./index-CyZxCTSq.js";import"./dayjs.min-u3zuoSR8.js";import"./fastdom-promised-Cw4_bL92.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./zipObject-C6Fl8RUH.js";import"./merge-B_wcPK4Y.js";import"./uniqueId-BVuTZY3F.js";import"./toNumber-B1wj8-wx.js";import"./_baseClone-ByJL1tkX.js";var C=m((t,e,r)=>Math.max(e,Math.min(r,t)),"clamp"),P=m((t="TB")=>{switch(t){case"BT":return"bottom";case"LR":return"right";case"RL":return"left";default:return"top"}},"getDefaultSelfLoopSide"),q=m(t=>t==="flowchart"||t==="flowchart-v2"||t==="stateDiagram"||t==="er"||t==="classDiagram","shouldMergeSelfLoopSegments"),$=["x","y","width","height","labelBBox","intersect","calcIntersect","diff","clusterNode"],K=m((t,e,r,d,a)=>{const f=[],h=new Set;if(r.forEach(({start:i,end:o})=>{i!==d&&h.add(i),o!==d&&h.add(o)}),h.forEach(i=>{const o=t.node(i);typeof o?.x=="number"&&typeof o?.y=="number"&&f.push(o)}),f.length===0&&r.forEach(({edge:i})=>{(i.points??[]).forEach(o=>{typeof o?.x=="number"&&typeof o?.y=="number"&&f.push(o)})}),f.length===0)return P(a);const c=f.reduce((i,o)=>({x:i.x+o.x/f.length,y:i.y+o.y/f.length}),{x:0,y:0}),l=c.x-e.x,s=c.y-e.y;return Math.abs(l)>Math.abs(s)?l>0?"right":"left":Math.abs(s)>0?s>0?"bottom":"top":P(a)},"getSelfLoopSide"),Q=m((t,e="top",r=0,d=0)=>{const a=t.x,f=t.y-r,h=t.width/2,c=t.height/2,l=Math.max(36,Math.min(100,t.width*.8)),s=C(Math.max(d,t.width*.35),36,l),i=C(Math.min(t.width,t.height)*.45,24,48);switch(e){case"bottom":{const o=f+c;return[{x:a-s/2,y:o},{x:a-s/2,y:o+i},{x:a+s/2,y:o+i},{x:a+s/2,y:o}]}case"right":{const o=a+h;return[{x:o,y:f-s/2},{x:o+i,y:f-s/2},{x:o+i,y:f+s/2},{x:o,y:f+s/2}]}case"left":{const o=a-h;return[{x:o,y:f-s/2},{x:o-i,y:f-s/2},{x:o-i,y:f+s/2},{x:o,y:f+s/2}]}default:{const o=f-c;return[{x:a-s/2,y:o},{x:a-s/2,y:o-i},{x:a+s/2,y:o-i},{x:a+s/2,y:o}]}}},"getSelfLoopPoints"),V=m((t,e,r="top",d=0,a={})=>{const h=t.x,c=t.y-d,l=a.width??0,s=a.height??0;switch(r){case"bottom":return{x:h,y:Math.max(...e.map(i=>i.y))+s/2+4};case"right":return{x:Math.max(...e.map(i=>i.x))+l/2+4,y:c};case"left":return{x:Math.min(...e.map(i=>i.x))-l/2-4,y:c};default:return{x:h,y:Math.min(...e.map(i=>i.y))-s/2-4}}},"getSelfLoopLabelPosition"),B=m((t,e=0,{mergeSelfLoops:r=!0}={})=>{const d=new Map,a=[],f=t.graph()?.rankdir;return t.edges().forEach(h=>{const c=t.edge(h);if(r&&c.selfLoop){const l=c.selfLoop.id;d.has(l)||d.set(l,[]),d.get(l).push({edge:c,start:h.v,end:h.w})}else a.push({edge:c,start:h.v,end:h.w})}),d.forEach(h=>{if(h.length!==3){h.forEach(u=>a.push(u));return}h.sort((u,b)=>u.edge.selfLoop.order-b.edge.selfLoop.order);const[c,l,s]=h,i=c.edge.originalEdge??l.edge.originalEdge??s.edge.originalEdge??l.edge,o=t.node(i.start);if(!o){h.forEach(u=>a.push(u));return}const n={width:l.edge.width,height:l.edge.height},L=K(t,o,h,i.start,f),E=Q(o,L,e,n.width??0),y=V(o,E,L,e,n),g={...l.edge,...i,id:i.id,points:E,start:i.start,end:i.end,x:y.x,y:y.y,width:n.width,height:n.height,labelStyle:l.edge.labelStyle,fromCluster:c.edge.fromCluster??l.edge.fromCluster??s.edge.fromCluster,toCluster:c.edge.toCluster??l.edge.toCluster??s.edge.toCluster};delete g.selfLoop,delete g.originalEdge,a.push({edge:g,start:g.start,end:g.end})}),a},"getEdgesToRender"),I=m(async({element:t,graph:e,diagramType:r,id:d,parentCluster:a,siteConfig:f})=>{const h=e.graph().rankdir;p.trace("Dir in recursive render - dir:",h);const{clusters:c,edgePaths:l,edgeLabels:s,nodes:i,rootGroups:o}=_(t,{edgePathsClass:"edgePaths"});e.nodes()?p.info("Recursive render XXX",e.nodes()):p.info("No nodes found for",e),e.edges().length>0&&p.info("Recursive edges",e.edge(e.edges()[0]));const n=q(r);await Promise.all(e.nodes().map(async function(y){const g=e.node(y);if(a!==void 0){const u=JSON.parse(JSON.stringify(a.clusterData));p.trace(`Setting data for parent cluster XXX
1
+ import{_ as m,ab as x,c as G,P as O,l as p,ac as A,ad as Y,ae as w,af as _,ag as H,ah as J,ai as D,aj as T,ak as z,a0 as X,W as R,U as F,$ as W,a1 as j}from"./index-DObGLuCI.js";import{l as U}from"./layout-DTdkd155.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./index-CyZxCTSq.js";import"./dayjs.min-u3zuoSR8.js";import"./fastdom-promised-Cw4_bL92.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./zipObject-C6Fl8RUH.js";import"./merge-B_wcPK4Y.js";import"./uniqueId-BVuTZY3F.js";import"./toNumber-B1wj8-wx.js";import"./_baseClone-ByJL1tkX.js";var C=m((t,e,r)=>Math.max(e,Math.min(r,t)),"clamp"),P=m((t="TB")=>{switch(t){case"BT":return"bottom";case"LR":return"right";case"RL":return"left";default:return"top"}},"getDefaultSelfLoopSide"),q=m(t=>t==="flowchart"||t==="flowchart-v2"||t==="stateDiagram"||t==="er"||t==="classDiagram","shouldMergeSelfLoopSegments"),$=["x","y","width","height","labelBBox","intersect","calcIntersect","diff","clusterNode"],K=m((t,e,r,d,a)=>{const f=[],h=new Set;if(r.forEach(({start:i,end:o})=>{i!==d&&h.add(i),o!==d&&h.add(o)}),h.forEach(i=>{const o=t.node(i);typeof o?.x=="number"&&typeof o?.y=="number"&&f.push(o)}),f.length===0&&r.forEach(({edge:i})=>{(i.points??[]).forEach(o=>{typeof o?.x=="number"&&typeof o?.y=="number"&&f.push(o)})}),f.length===0)return P(a);const c=f.reduce((i,o)=>({x:i.x+o.x/f.length,y:i.y+o.y/f.length}),{x:0,y:0}),l=c.x-e.x,s=c.y-e.y;return Math.abs(l)>Math.abs(s)?l>0?"right":"left":Math.abs(s)>0?s>0?"bottom":"top":P(a)},"getSelfLoopSide"),Q=m((t,e="top",r=0,d=0)=>{const a=t.x,f=t.y-r,h=t.width/2,c=t.height/2,l=Math.max(36,Math.min(100,t.width*.8)),s=C(Math.max(d,t.width*.35),36,l),i=C(Math.min(t.width,t.height)*.45,24,48);switch(e){case"bottom":{const o=f+c;return[{x:a-s/2,y:o},{x:a-s/2,y:o+i},{x:a+s/2,y:o+i},{x:a+s/2,y:o}]}case"right":{const o=a+h;return[{x:o,y:f-s/2},{x:o+i,y:f-s/2},{x:o+i,y:f+s/2},{x:o,y:f+s/2}]}case"left":{const o=a-h;return[{x:o,y:f-s/2},{x:o-i,y:f-s/2},{x:o-i,y:f+s/2},{x:o,y:f+s/2}]}default:{const o=f-c;return[{x:a-s/2,y:o},{x:a-s/2,y:o-i},{x:a+s/2,y:o-i},{x:a+s/2,y:o}]}}},"getSelfLoopPoints"),V=m((t,e,r="top",d=0,a={})=>{const h=t.x,c=t.y-d,l=a.width??0,s=a.height??0;switch(r){case"bottom":return{x:h,y:Math.max(...e.map(i=>i.y))+s/2+4};case"right":return{x:Math.max(...e.map(i=>i.x))+l/2+4,y:c};case"left":return{x:Math.min(...e.map(i=>i.x))-l/2-4,y:c};default:return{x:h,y:Math.min(...e.map(i=>i.y))-s/2-4}}},"getSelfLoopLabelPosition"),B=m((t,e=0,{mergeSelfLoops:r=!0}={})=>{const d=new Map,a=[],f=t.graph()?.rankdir;return t.edges().forEach(h=>{const c=t.edge(h);if(r&&c.selfLoop){const l=c.selfLoop.id;d.has(l)||d.set(l,[]),d.get(l).push({edge:c,start:h.v,end:h.w})}else a.push({edge:c,start:h.v,end:h.w})}),d.forEach(h=>{if(h.length!==3){h.forEach(u=>a.push(u));return}h.sort((u,b)=>u.edge.selfLoop.order-b.edge.selfLoop.order);const[c,l,s]=h,i=c.edge.originalEdge??l.edge.originalEdge??s.edge.originalEdge??l.edge,o=t.node(i.start);if(!o){h.forEach(u=>a.push(u));return}const n={width:l.edge.width,height:l.edge.height},L=K(t,o,h,i.start,f),E=Q(o,L,e,n.width??0),y=V(o,E,L,e,n),g={...l.edge,...i,id:i.id,points:E,start:i.start,end:i.end,x:y.x,y:y.y,width:n.width,height:n.height,labelStyle:l.edge.labelStyle,fromCluster:c.edge.fromCluster??l.edge.fromCluster??s.edge.fromCluster,toCluster:c.edge.toCluster??l.edge.toCluster??s.edge.toCluster};delete g.selfLoop,delete g.originalEdge,a.push({edge:g,start:g.start,end:g.end})}),a},"getEdgesToRender"),I=m(async({element:t,graph:e,diagramType:r,id:d,parentCluster:a,siteConfig:f})=>{const h=e.graph().rankdir;p.trace("Dir in recursive render - dir:",h);const{clusters:c,edgePaths:l,edgeLabels:s,nodes:i,rootGroups:o}=_(t,{edgePathsClass:"edgePaths"});e.nodes()?p.info("Recursive render XXX",e.nodes()):p.info("No nodes found for",e),e.edges().length>0&&p.info("Recursive edges",e.edge(e.edges()[0]));const n=q(r);await Promise.all(e.nodes().map(async function(y){const g=e.node(y);if(a!==void 0){const u=JSON.parse(JSON.stringify(a.clusterData));p.trace(`Setting data for parent cluster XXX
2
2
  Node.id = `,y,`
3
3
  data=`,u.height,`
4
4
  Parent cluster`,a.height),e.setNode(a.id,u),e.parent(y)||(p.trace("Setting parent",y,a.id),e.setParent(y,a.id,u))}if(p.info("(Insert) Node XXX"+y+": "+JSON.stringify(e.node(y))),g?.clusterNode){p.info("Cluster identified XBX",y,g.width,e.node(y));const{ranksep:u,nodesep:b}=e.graph();g.graph.setGraph({...g.graph.graph(),ranksep:u+25,nodesep:b});const S=await oe({element:i,graph:g.graph,diagramType:r,id:d,parentCluster:e.node(y),siteConfig:f}),N=S.elem;H(g,N),g.diff=S.diff||0,p.info("New compound node after recursive render XAX",y,"width",g.width,"height",g.height),J(N,g)}else e.children(y).length>0?(p.trace("Cluster - the non recursive path XBX",y,g.id,g,g.width,"Graph:",e),p.trace(D(g.id,e)),w.set(g.id,{id:D(g.id,e),node:g})):(p.trace("Node - the non recursive path XAX",y,i,e.node(y),h),await T(i,e.node(y),{config:f,dir:h}))})),await m(async()=>{const y=e.edges().map(async function(g){const u=e.edge(g.v,g.w,g.name);if(p.info("Edge "+g.v+" -> "+g.w+": "+JSON.stringify(g)),p.info("Edge "+g.v+" -> "+g.w+": ",g," ",JSON.stringify(e.edge(g))),p.info("Fix",w,"ids:",g.v,g.w,"Translating: ",w.get(g.v),w.get(g.w)),n&&u.selfLoop){if(u.selfLoop.order!==1)return;const b={...u.originalEdge,...u,id:u.selfLoop.id,startLabelLeft:u.originalEdge?.startLabelLeft??u.startLabelLeft,startLabelRight:u.originalEdge?.startLabelRight??u.startLabelRight,endLabelLeft:u.originalEdge?.endLabelLeft??u.endLabelLeft,endLabelRight:u.originalEdge?.endLabelRight??u.endLabelRight};await X(s,b),u.width=b.width,u.height=b.height,u.labelStyle=b.labelStyle;return}await X(s,u)});await Promise.all(y)},"processEdges")();const{subGraphTitleTotalMargin:E}=z(f);return{elem:o,graph:e,groups:{clusters:c,edgePaths:l,edgeLabels:s,nodes:i,rootGroups:o},diagramType:r,id:d,mergeSelfLoops:n,subGraphTitleTotalMargin:E}},"measureDagreGraph"),M=m(t=>{p.info("############################################# XXX"),p.info("### Layout ### XXX"),p.info("############################################# XXX"),U(t)},"runDagreGraphLayout"),Z=m((t,e,r)=>{const d=t.node(e);if(!d)return;const a={...d};return d?.clusterNode?a.y=(d.y??0)+r:t.children(e).length>0?a.height=(d.height??0)+r:a.y=(d.y??0)+r/2,a},"normalizeDagreNode"),v=m((t,e)=>{$.forEach(r=>{e[r]!==void 0&&(t[r]=e[r])})},"applyDagreNodeLayout"),ee=m((t,e,r,d)=>({...t,start:t.start??e,end:t.end??r,points:(t.points??[]).map(a=>({...a,y:typeof a.y=="number"?a.y+d:a.y}))}),"normalizeDagreEdge"),te=m((t,e)=>{const{graph:r,mergeSelfLoops:d,subGraphTitleTotalMargin:a=0}=e,f=new Map(t.nodes.map(c=>[c.id,c]));x(r).forEach(c=>{const l=Z(r,c,a);if(!l)return;v(r.node(c),l);const s=f.get(c);s&&v(s,l)});const h=a/2;return t.edges=B(r,h,{mergeSelfLoops:d}).map(({edge:c,start:l,end:s})=>ee(c,l,s,h)),t},"applyDagreLayoutResult"),re=m(async({elem:t,graph:e,groups:{clusters:r,edgePaths:d},diagramType:a,id:f,mergeSelfLoops:h,subGraphTitleTotalMargin:c})=>{let l=0;await Promise.all(x(e).map(async function(o){const n=e.node(o);if(p.info("Position XBX => "+o+": ("+n.x,","+n.y,") width: ",n.width," height: ",n.height),n?.clusterNode)n.y+=c,p.info("A tainted cluster node XBX1",o,n.id,n.width,n.height,n.x,n.y,e.parent(o)),w.get(n.id).node=n,R(n);else if(e.children(o).length>0){p.info("A pure cluster node XBX1",o,n.id,n.x,n.y,n.width,n.height,e.parent(o)),n.height+=c,e.node(n.parentId);const L=n?.padding/2||0,E=n?.labelBBox?.height||0,y=E-L||0;p.debug("OffsetY",y,"labelHeight",E,"halfPadding",L),await F(r,n),w.get(n.id).node=n}else{const L=e.node(n.parentId);n.y+=c/2,p.info("A regular node XBX1 - using the padding",n.id,"parent",n.parentId,n.width,n.height,n.x,n.y,"offsetY",n.offsetY,"parent",L,L?.offsetY,n),R(n)}}));const s=c/2;return B(e,s,{mergeSelfLoops:h}).forEach(function({edge:o,start:n,end:L}){p.info("Edge "+n+" -> "+L+": "+JSON.stringify(o),o),o.points.forEach(u=>u.y+=s);const E=e.node(n),y=e.node(L),g=W(d,o,w,a,E,y,f);j(o,g)}),e.nodes().forEach(function(o){const n=e.node(o);p.info(o,n.type,n.diff),n.isGroup&&(l=n.diff)}),p.warn("Returning from recursive render XAX",t,l),{elem:t,diff:l}},"paintDagreLayoutCore"),oe=m(async t=>{const e=await I(t);return M(e.graph),await re(e)},"renderDagreSubgraph"),k=m(t=>{const e=new O({multigraph:!0,compound:!0}).setGraph({rankdir:t.direction,nodesep:t.config?.nodeSpacing||t.nodeSpacing||t.config?.flowchart?.nodeSpacing,ranksep:t.config?.rankSpacing||t.rankSpacing||t.config?.flowchart?.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});return t.nodes.forEach(r=>{e.setNode(r.id,{...r}),r.parentId&&e.setParent(r.id,r.parentId)}),p.debug("Edges:",t.edges),t.edges.forEach(r=>{if(r.start===r.end){const d=r.start,a=d+"---"+d+"---1",f=d+"---"+d+"---2",h=e.node(d);e.setNode(a,{domId:a,id:a,parentId:h.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),e.setParent(a,h.parentId),e.setNode(f,{domId:f,id:f,parentId:h.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),e.setParent(f,h.parentId);const c=structuredClone(r),l=structuredClone(r),s=structuredClone(r),i=structuredClone(r);l.originalEdge=c,l.selfLoop={id:c.id,order:0},s.originalEdge=c,s.selfLoop={id:c.id,order:1},i.originalEdge=c,i.selfLoop={id:c.id,order:2},l.label="",l.arrowTypeEnd="none",l.endLabelLeft="",l.endLabelRight="",l.startLabelLeft="",l.id=d+"-cyclic-special-1",s.startLabelRight="",s.startLabelLeft="",s.endLabelLeft="",s.endLabelRight="",s.arrowTypeStart="none",s.arrowTypeEnd="none",s.id=d+"-cyclic-special-mid",i.label="",i.startLabelRight="",i.startLabelLeft="",i.arrowTypeStart="none",h.isGroup&&(l.fromCluster=d,i.toCluster=d),i.id=d+"-cyclic-special-2",i.arrowTypeStart="none",e.setEdge(d,a,l,d+"-cyclic-special-0"),e.setEdge(a,f,s,d+"-cyclic-special-1"),e.setEdge(f,d,i,d+"-cyclic-special-2")}else e.setEdge(r.start,r.end,{...r},r.id)}),A(e),{graph:e}},"prepareLayoutForDagre"),ae=m(async(t,{element:e,preparedLayout:r})=>{const d=r??k(t),a=G(),f=await I({element:e,graph:d.graph,diagramType:t.type,id:t.diagramId,parentCluster:void 0,siteConfig:a});return d.measuredLayout=f,f},"measureDagreLayout"),ne=m((t,e)=>{const r=e.preparedLayout?.measuredLayout;if(!r)throw new Error("runDagreLayoutCore requires measureDagreLayout to run first");return M(r.graph),te(t,r),r},"runDagreLayoutCore"),se=m((t,{measure:e})=>x(e.graph).map(r=>e.graph.node(r)).filter(Boolean),"getDagrePaintNodes"),ie=m((t,e,{measure:r})=>t?r.graph.node(t):void 0,"getDagreEdgeNode"),Ne=Y({prepareLayout:k,measureLayout:ae,runLayoutCore:ne,paintOptions:{clusterDb:w,getNodes:se,getEdgeNode:ie,skipNode:m((t,{measure:e})=>!e.graph.hasNode(t.id),"skipNode"),isCluster:m((t,{measure:e})=>e.graph.hasNode(t.id)&&(e.graph.children(t.id)??[]).length>0,"isCluster")}});export{te as applyDagreLayoutResult,B as getEdgesToRender,ae as measureDagreLayout,k as prepareLayoutForDagre,Ne as render,ne as runDagreLayoutCore};
@@ -1,4 +1,4 @@
1
- import{_ as m,ab as x,c as G,P as O,l as p,ac as A,ad as Y,ae as w,af as _,ag as H,ah as J,ai as D,aj as T,ak as z,a0 as X,W as R,U as F,$ as W,a1 as j}from"./index-s25RSqvt.js";import{l as U}from"./layout-DQIVAfpO.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./index-CyZxCTSq.js";import"./dayjs.min-u3zuoSR8.js";import"./fastdom-promised-Cw4_bL92.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./zipObject-C6Fl8RUH.js";import"./merge-B_wcPK4Y.js";import"./uniqueId-BVuTZY3F.js";import"./toNumber-B1wj8-wx.js";import"./_baseClone-ByJL1tkX.js";var C=m((t,e,r)=>Math.max(e,Math.min(r,t)),"clamp"),P=m((t="TB")=>{switch(t){case"BT":return"bottom";case"LR":return"right";case"RL":return"left";default:return"top"}},"getDefaultSelfLoopSide"),q=m(t=>t==="flowchart"||t==="flowchart-v2"||t==="stateDiagram"||t==="er"||t==="classDiagram","shouldMergeSelfLoopSegments"),$=["x","y","width","height","labelBBox","intersect","calcIntersect","diff","clusterNode"],K=m((t,e,r,d,a)=>{const f=[],h=new Set;if(r.forEach(({start:i,end:o})=>{i!==d&&h.add(i),o!==d&&h.add(o)}),h.forEach(i=>{const o=t.node(i);typeof o?.x=="number"&&typeof o?.y=="number"&&f.push(o)}),f.length===0&&r.forEach(({edge:i})=>{(i.points??[]).forEach(o=>{typeof o?.x=="number"&&typeof o?.y=="number"&&f.push(o)})}),f.length===0)return P(a);const c=f.reduce((i,o)=>({x:i.x+o.x/f.length,y:i.y+o.y/f.length}),{x:0,y:0}),l=c.x-e.x,s=c.y-e.y;return Math.abs(l)>Math.abs(s)?l>0?"right":"left":Math.abs(s)>0?s>0?"bottom":"top":P(a)},"getSelfLoopSide"),Q=m((t,e="top",r=0,d=0)=>{const a=t.x,f=t.y-r,h=t.width/2,c=t.height/2,l=Math.max(36,Math.min(100,t.width*.8)),s=C(Math.max(d,t.width*.35),36,l),i=C(Math.min(t.width,t.height)*.45,24,48);switch(e){case"bottom":{const o=f+c;return[{x:a-s/2,y:o},{x:a-s/2,y:o+i},{x:a+s/2,y:o+i},{x:a+s/2,y:o}]}case"right":{const o=a+h;return[{x:o,y:f-s/2},{x:o+i,y:f-s/2},{x:o+i,y:f+s/2},{x:o,y:f+s/2}]}case"left":{const o=a-h;return[{x:o,y:f-s/2},{x:o-i,y:f-s/2},{x:o-i,y:f+s/2},{x:o,y:f+s/2}]}default:{const o=f-c;return[{x:a-s/2,y:o},{x:a-s/2,y:o-i},{x:a+s/2,y:o-i},{x:a+s/2,y:o}]}}},"getSelfLoopPoints"),V=m((t,e,r="top",d=0,a={})=>{const h=t.x,c=t.y-d,l=a.width??0,s=a.height??0;switch(r){case"bottom":return{x:h,y:Math.max(...e.map(i=>i.y))+s/2+4};case"right":return{x:Math.max(...e.map(i=>i.x))+l/2+4,y:c};case"left":return{x:Math.min(...e.map(i=>i.x))-l/2-4,y:c};default:return{x:h,y:Math.min(...e.map(i=>i.y))-s/2-4}}},"getSelfLoopLabelPosition"),B=m((t,e=0,{mergeSelfLoops:r=!0}={})=>{const d=new Map,a=[],f=t.graph()?.rankdir;return t.edges().forEach(h=>{const c=t.edge(h);if(r&&c.selfLoop){const l=c.selfLoop.id;d.has(l)||d.set(l,[]),d.get(l).push({edge:c,start:h.v,end:h.w})}else a.push({edge:c,start:h.v,end:h.w})}),d.forEach(h=>{if(h.length!==3){h.forEach(u=>a.push(u));return}h.sort((u,b)=>u.edge.selfLoop.order-b.edge.selfLoop.order);const[c,l,s]=h,i=c.edge.originalEdge??l.edge.originalEdge??s.edge.originalEdge??l.edge,o=t.node(i.start);if(!o){h.forEach(u=>a.push(u));return}const n={width:l.edge.width,height:l.edge.height},L=K(t,o,h,i.start,f),E=Q(o,L,e,n.width??0),y=V(o,E,L,e,n),g={...l.edge,...i,id:i.id,points:E,start:i.start,end:i.end,x:y.x,y:y.y,width:n.width,height:n.height,labelStyle:l.edge.labelStyle,fromCluster:c.edge.fromCluster??l.edge.fromCluster??s.edge.fromCluster,toCluster:c.edge.toCluster??l.edge.toCluster??s.edge.toCluster};delete g.selfLoop,delete g.originalEdge,a.push({edge:g,start:g.start,end:g.end})}),a},"getEdgesToRender"),I=m(async({element:t,graph:e,diagramType:r,id:d,parentCluster:a,siteConfig:f})=>{const h=e.graph().rankdir;p.trace("Dir in recursive render - dir:",h);const{clusters:c,edgePaths:l,edgeLabels:s,nodes:i,rootGroups:o}=_(t,{edgePathsClass:"edgePaths"});e.nodes()?p.info("Recursive render XXX",e.nodes()):p.info("No nodes found for",e),e.edges().length>0&&p.info("Recursive edges",e.edge(e.edges()[0]));const n=q(r);await Promise.all(e.nodes().map(async function(y){const g=e.node(y);if(a!==void 0){const u=JSON.parse(JSON.stringify(a.clusterData));p.trace(`Setting data for parent cluster XXX
1
+ import{_ as m,ab as x,c as G,P as O,l as p,ac as A,ad as Y,ae as w,af as _,ag as H,ah as J,ai as D,aj as T,ak as z,a0 as X,W as R,U as F,$ as W,a1 as j}from"./index-Df2MkvAW.js";import{l as U}from"./layout-D_LOxL0l.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./index-CyZxCTSq.js";import"./dayjs.min-u3zuoSR8.js";import"./fastdom-promised-Cw4_bL92.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./zipObject-C6Fl8RUH.js";import"./merge-B_wcPK4Y.js";import"./uniqueId-BVuTZY3F.js";import"./toNumber-B1wj8-wx.js";import"./_baseClone-ByJL1tkX.js";var C=m((t,e,r)=>Math.max(e,Math.min(r,t)),"clamp"),P=m((t="TB")=>{switch(t){case"BT":return"bottom";case"LR":return"right";case"RL":return"left";default:return"top"}},"getDefaultSelfLoopSide"),q=m(t=>t==="flowchart"||t==="flowchart-v2"||t==="stateDiagram"||t==="er"||t==="classDiagram","shouldMergeSelfLoopSegments"),$=["x","y","width","height","labelBBox","intersect","calcIntersect","diff","clusterNode"],K=m((t,e,r,d,a)=>{const f=[],h=new Set;if(r.forEach(({start:i,end:o})=>{i!==d&&h.add(i),o!==d&&h.add(o)}),h.forEach(i=>{const o=t.node(i);typeof o?.x=="number"&&typeof o?.y=="number"&&f.push(o)}),f.length===0&&r.forEach(({edge:i})=>{(i.points??[]).forEach(o=>{typeof o?.x=="number"&&typeof o?.y=="number"&&f.push(o)})}),f.length===0)return P(a);const c=f.reduce((i,o)=>({x:i.x+o.x/f.length,y:i.y+o.y/f.length}),{x:0,y:0}),l=c.x-e.x,s=c.y-e.y;return Math.abs(l)>Math.abs(s)?l>0?"right":"left":Math.abs(s)>0?s>0?"bottom":"top":P(a)},"getSelfLoopSide"),Q=m((t,e="top",r=0,d=0)=>{const a=t.x,f=t.y-r,h=t.width/2,c=t.height/2,l=Math.max(36,Math.min(100,t.width*.8)),s=C(Math.max(d,t.width*.35),36,l),i=C(Math.min(t.width,t.height)*.45,24,48);switch(e){case"bottom":{const o=f+c;return[{x:a-s/2,y:o},{x:a-s/2,y:o+i},{x:a+s/2,y:o+i},{x:a+s/2,y:o}]}case"right":{const o=a+h;return[{x:o,y:f-s/2},{x:o+i,y:f-s/2},{x:o+i,y:f+s/2},{x:o,y:f+s/2}]}case"left":{const o=a-h;return[{x:o,y:f-s/2},{x:o-i,y:f-s/2},{x:o-i,y:f+s/2},{x:o,y:f+s/2}]}default:{const o=f-c;return[{x:a-s/2,y:o},{x:a-s/2,y:o-i},{x:a+s/2,y:o-i},{x:a+s/2,y:o}]}}},"getSelfLoopPoints"),V=m((t,e,r="top",d=0,a={})=>{const h=t.x,c=t.y-d,l=a.width??0,s=a.height??0;switch(r){case"bottom":return{x:h,y:Math.max(...e.map(i=>i.y))+s/2+4};case"right":return{x:Math.max(...e.map(i=>i.x))+l/2+4,y:c};case"left":return{x:Math.min(...e.map(i=>i.x))-l/2-4,y:c};default:return{x:h,y:Math.min(...e.map(i=>i.y))-s/2-4}}},"getSelfLoopLabelPosition"),B=m((t,e=0,{mergeSelfLoops:r=!0}={})=>{const d=new Map,a=[],f=t.graph()?.rankdir;return t.edges().forEach(h=>{const c=t.edge(h);if(r&&c.selfLoop){const l=c.selfLoop.id;d.has(l)||d.set(l,[]),d.get(l).push({edge:c,start:h.v,end:h.w})}else a.push({edge:c,start:h.v,end:h.w})}),d.forEach(h=>{if(h.length!==3){h.forEach(u=>a.push(u));return}h.sort((u,b)=>u.edge.selfLoop.order-b.edge.selfLoop.order);const[c,l,s]=h,i=c.edge.originalEdge??l.edge.originalEdge??s.edge.originalEdge??l.edge,o=t.node(i.start);if(!o){h.forEach(u=>a.push(u));return}const n={width:l.edge.width,height:l.edge.height},L=K(t,o,h,i.start,f),E=Q(o,L,e,n.width??0),y=V(o,E,L,e,n),g={...l.edge,...i,id:i.id,points:E,start:i.start,end:i.end,x:y.x,y:y.y,width:n.width,height:n.height,labelStyle:l.edge.labelStyle,fromCluster:c.edge.fromCluster??l.edge.fromCluster??s.edge.fromCluster,toCluster:c.edge.toCluster??l.edge.toCluster??s.edge.toCluster};delete g.selfLoop,delete g.originalEdge,a.push({edge:g,start:g.start,end:g.end})}),a},"getEdgesToRender"),I=m(async({element:t,graph:e,diagramType:r,id:d,parentCluster:a,siteConfig:f})=>{const h=e.graph().rankdir;p.trace("Dir in recursive render - dir:",h);const{clusters:c,edgePaths:l,edgeLabels:s,nodes:i,rootGroups:o}=_(t,{edgePathsClass:"edgePaths"});e.nodes()?p.info("Recursive render XXX",e.nodes()):p.info("No nodes found for",e),e.edges().length>0&&p.info("Recursive edges",e.edge(e.edges()[0]));const n=q(r);await Promise.all(e.nodes().map(async function(y){const g=e.node(y);if(a!==void 0){const u=JSON.parse(JSON.stringify(a.clusterData));p.trace(`Setting data for parent cluster XXX
2
2
  Node.id = `,y,`
3
3
  data=`,u.height,`
4
4
  Parent cluster`,a.height),e.setNode(a.id,u),e.parent(y)||(p.trace("Setting parent",y,a.id),e.setParent(y,a.id,u))}if(p.info("(Insert) Node XXX"+y+": "+JSON.stringify(e.node(y))),g?.clusterNode){p.info("Cluster identified XBX",y,g.width,e.node(y));const{ranksep:u,nodesep:b}=e.graph();g.graph.setGraph({...g.graph.graph(),ranksep:u+25,nodesep:b});const S=await oe({element:i,graph:g.graph,diagramType:r,id:d,parentCluster:e.node(y),siteConfig:f}),N=S.elem;H(g,N),g.diff=S.diff||0,p.info("New compound node after recursive render XAX",y,"width",g.width,"height",g.height),J(N,g)}else e.children(y).length>0?(p.trace("Cluster - the non recursive path XBX",y,g.id,g,g.width,"Graph:",e),p.trace(D(g.id,e)),w.set(g.id,{id:D(g.id,e),node:g})):(p.trace("Node - the non recursive path XAX",y,i,e.node(y),h),await T(i,e.node(y),{config:f,dir:h}))})),await m(async()=>{const y=e.edges().map(async function(g){const u=e.edge(g.v,g.w,g.name);if(p.info("Edge "+g.v+" -> "+g.w+": "+JSON.stringify(g)),p.info("Edge "+g.v+" -> "+g.w+": ",g," ",JSON.stringify(e.edge(g))),p.info("Fix",w,"ids:",g.v,g.w,"Translating: ",w.get(g.v),w.get(g.w)),n&&u.selfLoop){if(u.selfLoop.order!==1)return;const b={...u.originalEdge,...u,id:u.selfLoop.id,startLabelLeft:u.originalEdge?.startLabelLeft??u.startLabelLeft,startLabelRight:u.originalEdge?.startLabelRight??u.startLabelRight,endLabelLeft:u.originalEdge?.endLabelLeft??u.endLabelLeft,endLabelRight:u.originalEdge?.endLabelRight??u.endLabelRight};await X(s,b),u.width=b.width,u.height=b.height,u.labelStyle=b.labelStyle;return}await X(s,u)});await Promise.all(y)},"processEdges")();const{subGraphTitleTotalMargin:E}=z(f);return{elem:o,graph:e,groups:{clusters:c,edgePaths:l,edgeLabels:s,nodes:i,rootGroups:o},diagramType:r,id:d,mergeSelfLoops:n,subGraphTitleTotalMargin:E}},"measureDagreGraph"),M=m(t=>{p.info("############################################# XXX"),p.info("### Layout ### XXX"),p.info("############################################# XXX"),U(t)},"runDagreGraphLayout"),Z=m((t,e,r)=>{const d=t.node(e);if(!d)return;const a={...d};return d?.clusterNode?a.y=(d.y??0)+r:t.children(e).length>0?a.height=(d.height??0)+r:a.y=(d.y??0)+r/2,a},"normalizeDagreNode"),v=m((t,e)=>{$.forEach(r=>{e[r]!==void 0&&(t[r]=e[r])})},"applyDagreNodeLayout"),ee=m((t,e,r,d)=>({...t,start:t.start??e,end:t.end??r,points:(t.points??[]).map(a=>({...a,y:typeof a.y=="number"?a.y+d:a.y}))}),"normalizeDagreEdge"),te=m((t,e)=>{const{graph:r,mergeSelfLoops:d,subGraphTitleTotalMargin:a=0}=e,f=new Map(t.nodes.map(c=>[c.id,c]));x(r).forEach(c=>{const l=Z(r,c,a);if(!l)return;v(r.node(c),l);const s=f.get(c);s&&v(s,l)});const h=a/2;return t.edges=B(r,h,{mergeSelfLoops:d}).map(({edge:c,start:l,end:s})=>ee(c,l,s,h)),t},"applyDagreLayoutResult"),re=m(async({elem:t,graph:e,groups:{clusters:r,edgePaths:d},diagramType:a,id:f,mergeSelfLoops:h,subGraphTitleTotalMargin:c})=>{let l=0;await Promise.all(x(e).map(async function(o){const n=e.node(o);if(p.info("Position XBX => "+o+": ("+n.x,","+n.y,") width: ",n.width," height: ",n.height),n?.clusterNode)n.y+=c,p.info("A tainted cluster node XBX1",o,n.id,n.width,n.height,n.x,n.y,e.parent(o)),w.get(n.id).node=n,R(n);else if(e.children(o).length>0){p.info("A pure cluster node XBX1",o,n.id,n.x,n.y,n.width,n.height,e.parent(o)),n.height+=c,e.node(n.parentId);const L=n?.padding/2||0,E=n?.labelBBox?.height||0,y=E-L||0;p.debug("OffsetY",y,"labelHeight",E,"halfPadding",L),await F(r,n),w.get(n.id).node=n}else{const L=e.node(n.parentId);n.y+=c/2,p.info("A regular node XBX1 - using the padding",n.id,"parent",n.parentId,n.width,n.height,n.x,n.y,"offsetY",n.offsetY,"parent",L,L?.offsetY,n),R(n)}}));const s=c/2;return B(e,s,{mergeSelfLoops:h}).forEach(function({edge:o,start:n,end:L}){p.info("Edge "+n+" -> "+L+": "+JSON.stringify(o),o),o.points.forEach(u=>u.y+=s);const E=e.node(n),y=e.node(L),g=W(d,o,w,a,E,y,f);j(o,g)}),e.nodes().forEach(function(o){const n=e.node(o);p.info(o,n.type,n.diff),n.isGroup&&(l=n.diff)}),p.warn("Returning from recursive render XAX",t,l),{elem:t,diff:l}},"paintDagreLayoutCore"),oe=m(async t=>{const e=await I(t);return M(e.graph),await re(e)},"renderDagreSubgraph"),k=m(t=>{const e=new O({multigraph:!0,compound:!0}).setGraph({rankdir:t.direction,nodesep:t.config?.nodeSpacing||t.nodeSpacing||t.config?.flowchart?.nodeSpacing,ranksep:t.config?.rankSpacing||t.rankSpacing||t.config?.flowchart?.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});return t.nodes.forEach(r=>{e.setNode(r.id,{...r}),r.parentId&&e.setParent(r.id,r.parentId)}),p.debug("Edges:",t.edges),t.edges.forEach(r=>{if(r.start===r.end){const d=r.start,a=d+"---"+d+"---1",f=d+"---"+d+"---2",h=e.node(d);e.setNode(a,{domId:a,id:a,parentId:h.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),e.setParent(a,h.parentId),e.setNode(f,{domId:f,id:f,parentId:h.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),e.setParent(f,h.parentId);const c=structuredClone(r),l=structuredClone(r),s=structuredClone(r),i=structuredClone(r);l.originalEdge=c,l.selfLoop={id:c.id,order:0},s.originalEdge=c,s.selfLoop={id:c.id,order:1},i.originalEdge=c,i.selfLoop={id:c.id,order:2},l.label="",l.arrowTypeEnd="none",l.endLabelLeft="",l.endLabelRight="",l.startLabelLeft="",l.id=d+"-cyclic-special-1",s.startLabelRight="",s.startLabelLeft="",s.endLabelLeft="",s.endLabelRight="",s.arrowTypeStart="none",s.arrowTypeEnd="none",s.id=d+"-cyclic-special-mid",i.label="",i.startLabelRight="",i.startLabelLeft="",i.arrowTypeStart="none",h.isGroup&&(l.fromCluster=d,i.toCluster=d),i.id=d+"-cyclic-special-2",i.arrowTypeStart="none",e.setEdge(d,a,l,d+"-cyclic-special-0"),e.setEdge(a,f,s,d+"-cyclic-special-1"),e.setEdge(f,d,i,d+"-cyclic-special-2")}else e.setEdge(r.start,r.end,{...r},r.id)}),A(e),{graph:e}},"prepareLayoutForDagre"),ae=m(async(t,{element:e,preparedLayout:r})=>{const d=r??k(t),a=G(),f=await I({element:e,graph:d.graph,diagramType:t.type,id:t.diagramId,parentCluster:void 0,siteConfig:a});return d.measuredLayout=f,f},"measureDagreLayout"),ne=m((t,e)=>{const r=e.preparedLayout?.measuredLayout;if(!r)throw new Error("runDagreLayoutCore requires measureDagreLayout to run first");return M(r.graph),te(t,r),r},"runDagreLayoutCore"),se=m((t,{measure:e})=>x(e.graph).map(r=>e.graph.node(r)).filter(Boolean),"getDagrePaintNodes"),ie=m((t,e,{measure:r})=>t?r.graph.node(t):void 0,"getDagreEdgeNode"),Ne=Y({prepareLayout:k,measureLayout:ae,runLayoutCore:ne,paintOptions:{clusterDb:w,getNodes:se,getEdgeNode:ie,skipNode:m((t,{measure:e})=>!e.graph.hasNode(t.id),"skipNode"),isCluster:m((t,{measure:e})=>e.graph.hasNode(t.id)&&(e.graph.children(t.id)??[]).length>0,"isCluster")}});export{te as applyDagreLayoutResult,B as getEdgesToRender,ae as measureDagreLayout,k as prepareLayoutForDagre,Ne as render,ne as runDagreLayoutCore};
@@ -1,4 +1,4 @@
1
- import"./percentages-BXMCSKIN-BaaVroR_.js";import"../datalayer-app-main.js";import"./JupyterLexicalExtension-Du1Loz2o.js";import"./NotebookSkeleton-GSdyJDf_.js";import"./Avatar-DUPBQXVt.js";import"./url-DY3jeuF8.js";import"./isSymbol-BLtK9CV6.js";import"./toNumber-B1wj8-wx.js";import"./StrikethroughIcon-CbiEuPT-.js";import"./VideoIcon-C3wcjUxu.js";import"./ArrowUpIcon-y5enrVH9.js";import"./SortDescIcon-Qif6E10I.js";import"./PaintbrushIcon-CFBHU-3l.js";import"./PrismCss-c7kvMU60.js";import"./Output-CJVIj3Io.js";import"./index-BMY48-7N.js";import"./hoverbox-CStlKQWE.js";import"./index-CaEDkyBB.js";import"./index-CXSUknte.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-DXPB_0fo.js";import"./d3-color-Jd8hXty2.js";import"./dist-Frc5TvpU.js";import"./index-BaRoLDk0.js";import"./RestartIcon-DvpOf5Mf.js";import"./LexicalToolRegistry-BZUJ9wvF.js";import"./extends-CF3RwP-h.js";import"./index-BWeXDhSd.js";import"./index-DoBkwclg.js";var e={paste:"Einfügen",pasteAsPlaintext:"Als reinen Text einfügen",pasteCharts:"Diagramme einfügen",selectAll:"Alle auswählen",multiSelect:"Element zur Auswahl hinzufügen",moveCanvas:"Leinwand verschieben",cut:"Ausschneiden",copy:"Kopieren",copyAsPng:"In Zwischenablage kopieren (PNG)",copyAsSvg:"In Zwischenablage kopieren (SVG)",copyText:"In die Zwischenablage als Text kopieren",copySource:"Quelle in Zwischenablage kopieren",convertToCode:"In Code konvertieren",bringForward:"Nach vorne",sendToBack:"In den Hintergrund",bringToFront:"In den Vordergrund",sendBackward:"Nach hinten",delete:"Löschen",copyStyles:"Formatierung kopieren",pasteStyles:"Formatierung übernehmen",stroke:"Strich",background:"Hintergrund",fill:"Füllung",strokeWidth:"Strichstärke",strokeStyle:"Konturstil",strokeStyle_solid:"Durchgezogen",strokeStyle_dashed:"Gestrichelt",strokeStyle_dotted:"Gepunktet",sloppiness:"Sauberkeit",opacity:"Deckkraft",textAlign:"Textausrichtung",edges:"Kanten",sharp:"Scharf",round:"Rund",arrowheads:"Pfeilspitzen",arrowhead_none:"Keine",arrowhead_arrow:"Pfeil",arrowhead_bar:"Balken",arrowhead_circle:"Kreis",arrowhead_circle_outline:"Kreis (Umrandung)",arrowhead_triangle:"Dreieck",arrowhead_triangle_outline:"Dreieck (Umrandung)",arrowhead_diamond:"Raute",arrowhead_diamond_outline:"Raute (Umrandung)",fontSize:"Schriftgröße",fontFamily:"Schriftfamilie",addWatermark:'"Made with Excalidraw" hinzufügen',handDrawn:"Handgezeichnet",normal:"Normal",code:"Code",small:"Klein",medium:"Mittel",large:"Groß",veryLarge:"Sehr groß",solid:"Deckend",hachure:"Schraffiert",zigzag:"Zickzack",crossHatch:"Kreuzschraffiert",thin:"Dünn",bold:"Fett",left:"Links",center:"Zentriert",right:"Rechts",extraBold:"Extra Fett",architect:"Architekt",artist:"Künstler",cartoonist:"Karikaturist",fileTitle:"Dateiname",colorPicker:"Farbauswähler",canvasColors:"Auf Leinwand verwendet",canvasBackground:"Zeichenflächenhintergrund",drawingCanvas:"Leinwand",layers:"Ebenen",actions:"Aktionen",language:"Sprache",liveCollaboration:"Live-Zusammenarbeit...",duplicateSelection:"Duplizieren",untitled:"Unbenannt",name:"Name",yourName:"Dein Name",madeWithExcalidraw:"Made with Excalidraw",group:"Auswahl gruppieren",ungroup:"Gruppierung aufheben",collaborators:"Mitarbeitende",showGrid:"Raster anzeigen",addToLibrary:"Zur Bibliothek hinzufügen",removeFromLibrary:"Aus Bibliothek entfernen",libraryLoadingMessage:"Lade Bibliothek…",libraries:"Bibliotheken durchsuchen",loadingScene:"Lade Zeichnung…",align:"Ausrichten",alignTop:"Obere Kanten",alignBottom:"Untere Kanten",alignLeft:"Linke Kanten",alignRight:"Rechte Kanten",centerVertically:"Vertikal zentrieren",centerHorizontally:"Horizontal zentrieren",distributeHorizontally:"Horizontal verteilen",distributeVertically:"Vertikal verteilen",flipHorizontal:"Horizontal spiegeln",flipVertical:"Vertikal spiegeln",viewMode:"Ansichtsmodus",share:"Teilen",showStroke:"Auswahl für Strichfarbe anzeigen",showBackground:"Hintergrundfarbe auswählen",toggleTheme:"Design umschalten",personalLib:"Persönliche Bibliothek",excalidrawLib:"Excalidraw Bibliothek",decreaseFontSize:"Schriftgröße verkleinern",increaseFontSize:"Schrift vergrößern",unbindText:"Text lösen",bindText:"Text an Container binden",createContainerFromText:"Text in Container einbetten",link:{edit:"Link bearbeiten",editEmbed:"Link bearbeiten & einbetten",create:"Link erstellen",createEmbed:"Link erstellen & einbetten",label:"Link",labelEmbed:"Verlinken & einbetten",empty:"Kein Link festgelegt"},lineEditor:{edit:"Linie bearbeiten",exit:"Linieneditor verlassen"},elementLock:{lock:"Sperren",unlock:"Entsperren",lockAll:"Alle sperren",unlockAll:"Alle entsperren"},statusPublished:"Veröffentlicht",sidebarLock:"Seitenleiste offen lassen",selectAllElementsInFrame:"Alle Elemente im Rahmen auswählen",removeAllElementsFromFrame:"Alle Elemente aus dem Rahmen entfernen",eyeDropper:"Farbe von der Zeichenfläche auswählen",textToDiagram:"Text zu Diagramm",prompt:"Eingabe"},n={noItems:"Noch keine Elemente hinzugefügt...",hint_emptyLibrary:"Wähle ein Element auf der Zeichenfläche, um es hier hinzuzufügen. Oder installiere eine Bibliothek aus dem öffentlichen Verzeichnis.",hint_emptyPrivateLibrary:"Wähle ein Element von der Zeichenfläche, um es hier hinzuzufügen."},i={clearReset:"Zeichenfläche löschen & Hintergrundfarbe zurücksetzen",exportJSON:"In Datei exportieren",exportImage:"Exportiere Bild...",export:"Speichern als...",copyToClipboard:"In Zwischenablage kopieren",save:"In aktueller Datei speichern",saveAs:"Speichern unter",load:"Öffnen",getShareableLink:"Teilbaren Link erhalten",close:"Schließen",selectLanguage:"Sprache auswählen",scrollBackToContent:"Zurück zum Inhalt",zoomIn:"Vergrößern",zoomOut:"Verkleinern",resetZoom:"Zoom zurücksetzen",menu:"Menü",done:"Fertig",edit:"Bearbeiten",undo:"Rückgängig machen",redo:"Wiederholen",resetLibrary:"Bibliothek zurücksetzen",createNewRoom:"Neuen Raum erstellen",fullScreen:"Vollbildanzeige",darkMode:"Dunkles Design",lightMode:"Helles Design",zenMode:"Zen-Modus",objectsSnapMode:"Einrasten an Objekten",exitZenMode:"Zen-Modus verlassen",cancel:"Abbrechen",clear:"Löschen",remove:"Entfernen",embed:"Einbettung umschalten",publishLibrary:"Veröffentlichen",submit:"Absenden",confirm:"Bestätigen",embeddableInteractionButton:"Klicken, um zu interagieren"},r={clearReset:"Dies wird die ganze Zeichenfläche löschen. Bist du dir sicher?",couldNotCreateShareableLink:"Konnte keinen teilbaren Link erstellen.",couldNotCreateShareableLinkTooBig:"Konnte keinen teilbaren Link erstellen: Die Zeichnung ist zu groß",couldNotLoadInvalidFile:"Ungültige Datei konnte nicht geladen werden",importBackendFailed:"Import vom Server ist fehlgeschlagen.",cannotExportEmptyCanvas:"Leere Zeichenfläche kann nicht exportiert werden.",couldNotCopyToClipboard:"Kopieren in die Zwischenablage fehlgeschlagen.",decryptFailed:"Daten konnten nicht entschlüsselt werden.",uploadedSecurly:"Der Upload wurde mit Ende-zu-Ende-Verschlüsselung gespeichert. Weder Excalidraw noch Dritte können den Inhalt einsehen.",loadSceneOverridePrompt:"Das Laden einer externen Zeichnung ersetzt den vorhandenen Inhalt. Möchtest du fortfahren?",collabStopOverridePrompt:`Das Stoppen der Sitzung wird deine vorherige, lokal gespeicherte Zeichnung überschreiben. Bist du dir sicher?
1
+ import"./percentages-BXMCSKIN-_vjQ8CcA.js";import"../datalayer-app-main.js";import"./JupyterLexicalExtension-lz41mjjY.js";import"./NotebookSkeleton-GSdyJDf_.js";import"./Avatar-DUPBQXVt.js";import"./url-DY3jeuF8.js";import"./isSymbol-BLtK9CV6.js";import"./toNumber-B1wj8-wx.js";import"./StrikethroughIcon-CbiEuPT-.js";import"./VideoIcon-C3wcjUxu.js";import"./ArrowUpIcon-y5enrVH9.js";import"./SortDescIcon-Qif6E10I.js";import"./PaintbrushIcon-CFBHU-3l.js";import"./PrismCss-c7kvMU60.js";import"./Output-BfjIM99o.js";import"./index-i9IsP_xD.js";import"./hoverbox-CStlKQWE.js";import"./index--Rl4aMiU.js";import"./index-_yFHxlc9.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-DXPB_0fo.js";import"./d3-color-Jd8hXty2.js";import"./dist-Frc5TvpU.js";import"./index-BaRoLDk0.js";import"./RestartIcon-DvpOf5Mf.js";import"./LexicalToolRegistry-rXaW8uXA.js";import"./extends-CF3RwP-h.js";import"./index-BWeXDhSd.js";import"./index-DoBkwclg.js";var e={paste:"Einfügen",pasteAsPlaintext:"Als reinen Text einfügen",pasteCharts:"Diagramme einfügen",selectAll:"Alle auswählen",multiSelect:"Element zur Auswahl hinzufügen",moveCanvas:"Leinwand verschieben",cut:"Ausschneiden",copy:"Kopieren",copyAsPng:"In Zwischenablage kopieren (PNG)",copyAsSvg:"In Zwischenablage kopieren (SVG)",copyText:"In die Zwischenablage als Text kopieren",copySource:"Quelle in Zwischenablage kopieren",convertToCode:"In Code konvertieren",bringForward:"Nach vorne",sendToBack:"In den Hintergrund",bringToFront:"In den Vordergrund",sendBackward:"Nach hinten",delete:"Löschen",copyStyles:"Formatierung kopieren",pasteStyles:"Formatierung übernehmen",stroke:"Strich",background:"Hintergrund",fill:"Füllung",strokeWidth:"Strichstärke",strokeStyle:"Konturstil",strokeStyle_solid:"Durchgezogen",strokeStyle_dashed:"Gestrichelt",strokeStyle_dotted:"Gepunktet",sloppiness:"Sauberkeit",opacity:"Deckkraft",textAlign:"Textausrichtung",edges:"Kanten",sharp:"Scharf",round:"Rund",arrowheads:"Pfeilspitzen",arrowhead_none:"Keine",arrowhead_arrow:"Pfeil",arrowhead_bar:"Balken",arrowhead_circle:"Kreis",arrowhead_circle_outline:"Kreis (Umrandung)",arrowhead_triangle:"Dreieck",arrowhead_triangle_outline:"Dreieck (Umrandung)",arrowhead_diamond:"Raute",arrowhead_diamond_outline:"Raute (Umrandung)",fontSize:"Schriftgröße",fontFamily:"Schriftfamilie",addWatermark:'"Made with Excalidraw" hinzufügen',handDrawn:"Handgezeichnet",normal:"Normal",code:"Code",small:"Klein",medium:"Mittel",large:"Groß",veryLarge:"Sehr groß",solid:"Deckend",hachure:"Schraffiert",zigzag:"Zickzack",crossHatch:"Kreuzschraffiert",thin:"Dünn",bold:"Fett",left:"Links",center:"Zentriert",right:"Rechts",extraBold:"Extra Fett",architect:"Architekt",artist:"Künstler",cartoonist:"Karikaturist",fileTitle:"Dateiname",colorPicker:"Farbauswähler",canvasColors:"Auf Leinwand verwendet",canvasBackground:"Zeichenflächenhintergrund",drawingCanvas:"Leinwand",layers:"Ebenen",actions:"Aktionen",language:"Sprache",liveCollaboration:"Live-Zusammenarbeit...",duplicateSelection:"Duplizieren",untitled:"Unbenannt",name:"Name",yourName:"Dein Name",madeWithExcalidraw:"Made with Excalidraw",group:"Auswahl gruppieren",ungroup:"Gruppierung aufheben",collaborators:"Mitarbeitende",showGrid:"Raster anzeigen",addToLibrary:"Zur Bibliothek hinzufügen",removeFromLibrary:"Aus Bibliothek entfernen",libraryLoadingMessage:"Lade Bibliothek…",libraries:"Bibliotheken durchsuchen",loadingScene:"Lade Zeichnung…",align:"Ausrichten",alignTop:"Obere Kanten",alignBottom:"Untere Kanten",alignLeft:"Linke Kanten",alignRight:"Rechte Kanten",centerVertically:"Vertikal zentrieren",centerHorizontally:"Horizontal zentrieren",distributeHorizontally:"Horizontal verteilen",distributeVertically:"Vertikal verteilen",flipHorizontal:"Horizontal spiegeln",flipVertical:"Vertikal spiegeln",viewMode:"Ansichtsmodus",share:"Teilen",showStroke:"Auswahl für Strichfarbe anzeigen",showBackground:"Hintergrundfarbe auswählen",toggleTheme:"Design umschalten",personalLib:"Persönliche Bibliothek",excalidrawLib:"Excalidraw Bibliothek",decreaseFontSize:"Schriftgröße verkleinern",increaseFontSize:"Schrift vergrößern",unbindText:"Text lösen",bindText:"Text an Container binden",createContainerFromText:"Text in Container einbetten",link:{edit:"Link bearbeiten",editEmbed:"Link bearbeiten & einbetten",create:"Link erstellen",createEmbed:"Link erstellen & einbetten",label:"Link",labelEmbed:"Verlinken & einbetten",empty:"Kein Link festgelegt"},lineEditor:{edit:"Linie bearbeiten",exit:"Linieneditor verlassen"},elementLock:{lock:"Sperren",unlock:"Entsperren",lockAll:"Alle sperren",unlockAll:"Alle entsperren"},statusPublished:"Veröffentlicht",sidebarLock:"Seitenleiste offen lassen",selectAllElementsInFrame:"Alle Elemente im Rahmen auswählen",removeAllElementsFromFrame:"Alle Elemente aus dem Rahmen entfernen",eyeDropper:"Farbe von der Zeichenfläche auswählen",textToDiagram:"Text zu Diagramm",prompt:"Eingabe"},n={noItems:"Noch keine Elemente hinzugefügt...",hint_emptyLibrary:"Wähle ein Element auf der Zeichenfläche, um es hier hinzuzufügen. Oder installiere eine Bibliothek aus dem öffentlichen Verzeichnis.",hint_emptyPrivateLibrary:"Wähle ein Element von der Zeichenfläche, um es hier hinzuzufügen."},i={clearReset:"Zeichenfläche löschen & Hintergrundfarbe zurücksetzen",exportJSON:"In Datei exportieren",exportImage:"Exportiere Bild...",export:"Speichern als...",copyToClipboard:"In Zwischenablage kopieren",save:"In aktueller Datei speichern",saveAs:"Speichern unter",load:"Öffnen",getShareableLink:"Teilbaren Link erhalten",close:"Schließen",selectLanguage:"Sprache auswählen",scrollBackToContent:"Zurück zum Inhalt",zoomIn:"Vergrößern",zoomOut:"Verkleinern",resetZoom:"Zoom zurücksetzen",menu:"Menü",done:"Fertig",edit:"Bearbeiten",undo:"Rückgängig machen",redo:"Wiederholen",resetLibrary:"Bibliothek zurücksetzen",createNewRoom:"Neuen Raum erstellen",fullScreen:"Vollbildanzeige",darkMode:"Dunkles Design",lightMode:"Helles Design",zenMode:"Zen-Modus",objectsSnapMode:"Einrasten an Objekten",exitZenMode:"Zen-Modus verlassen",cancel:"Abbrechen",clear:"Löschen",remove:"Entfernen",embed:"Einbettung umschalten",publishLibrary:"Veröffentlichen",submit:"Absenden",confirm:"Bestätigen",embeddableInteractionButton:"Klicken, um zu interagieren"},r={clearReset:"Dies wird die ganze Zeichenfläche löschen. Bist du dir sicher?",couldNotCreateShareableLink:"Konnte keinen teilbaren Link erstellen.",couldNotCreateShareableLinkTooBig:"Konnte keinen teilbaren Link erstellen: Die Zeichnung ist zu groß",couldNotLoadInvalidFile:"Ungültige Datei konnte nicht geladen werden",importBackendFailed:"Import vom Server ist fehlgeschlagen.",cannotExportEmptyCanvas:"Leere Zeichenfläche kann nicht exportiert werden.",couldNotCopyToClipboard:"Kopieren in die Zwischenablage fehlgeschlagen.",decryptFailed:"Daten konnten nicht entschlüsselt werden.",uploadedSecurly:"Der Upload wurde mit Ende-zu-Ende-Verschlüsselung gespeichert. Weder Excalidraw noch Dritte können den Inhalt einsehen.",loadSceneOverridePrompt:"Das Laden einer externen Zeichnung ersetzt den vorhandenen Inhalt. Möchtest du fortfahren?",collabStopOverridePrompt:`Das Stoppen der Sitzung wird deine vorherige, lokal gespeicherte Zeichnung überschreiben. Bist du dir sicher?
2
2
 
3
3
  (Wenn du deine lokale Zeichnung behalten möchtest, schließe stattdessen den Browser-Tab.)`,errorAddingToLibrary:"Das Element konnte nicht zur Bibliothek hinzugefügt werden",errorRemovingFromLibrary:"Das Element konnte nicht aus der Bibliothek entfernt werden",confirmAddLibrary:"Dies fügt {{numShapes}} Form(en) zu deiner Bibliothek hinzu. Bist du dir sicher?",imageDoesNotContainScene:"Dieses Bild scheint keine Szenendaten zu enthalten. Hast Du das Einbetten der Szene während des Exports aktiviert?",cannotRestoreFromImage:"Die Zeichnung konnte aus dieser Bilddatei nicht wiederhergestellt werden",invalidSceneUrl:"Die Szene konnte nicht von der angegebenen URL importiert werden. Sie ist entweder fehlerhaft oder enthält keine gültigen Excalidraw JSON-Daten.",resetLibrary:"Dieses löscht deine Bibliothek. Bist du sicher?",removeItemsFromsLibrary:"{{count}} Element(e) aus der Bibliothek löschen?",invalidEncryptionKey:"Verschlüsselungsschlüssel muss 22 Zeichen lang sein. Die Live-Zusammenarbeit ist deaktiviert.",collabOfflineWarning:`Keine Internetverbindung verfügbar.
4
4
  Deine Änderungen werden nicht gespeichert!`},t={unsupportedFileType:"Nicht unterstützter Dateityp.",imageInsertError:"Das Bild konnte nicht eingefügt werden. Versuche es später erneut...",fileTooBig:"Die Datei ist zu groß. Die maximal zulässige Größe ist {{maxSize}}.",svgImageInsertError:"SVG-Bild konnte nicht eingefügt werden. Das SVG-Markup sieht ungültig aus.",failedToFetchImage:"Bild konnte nicht abgerufen werden.",invalidSVGString:"Ungültige SVG.",cannotResolveCollabServer:"Konnte keine Verbindung zum Collab-Server herstellen. Bitte lade die Seite neu und versuche es erneut.",importLibraryError:"Bibliothek konnte nicht geladen werden",collabSaveFailed:"Keine Speicherung in der Backend-Datenbank möglich. Wenn die Probleme weiterhin bestehen, solltest Du Deine Datei lokal speichern, um sicherzustellen, dass Du Deine Arbeit nicht verlierst.",collabSaveFailed_sizeExceeded:"Keine Speicherung in der Backend-Datenbank möglich, die Zeichenfläche scheint zu groß zu sein. Du solltest Deine Datei lokal speichern, um sicherzustellen, dass Du Deine Arbeit nicht verlierst.",imageToolNotSupported:"Bilder sind deaktiviert.",brave_measure_text_error:{line1:"Sieht so aus, als ob Du den Brave-Browser verwendest und die <bold>aggressive Blockierung von Fingerabdrücken</bold> aktiviert hast.",line2:"Dies könnte dazu führen, dass die <bold>Textelemente</bold> in Ihren Zeichnungen zerstört werden.",line3:"Wir empfehlen dringend, diese Einstellung zu deaktivieren. Dazu kannst Du <link>diesen Schritten</link> folgen.",line4:"Wenn die Deaktivierung dieser Einstellung die fehlerhafte Anzeige von Textelementen nicht behebt, öffne bitte ein <issueLink>Ticket</issueLink> auf unserem GitHub oder schreibe uns auf <discordLink>Discord</discordLink>"},libraryElementTypeError:{embeddable:"Einbettbare Elemente können der Bibliothek nicht hinzugefügt werden.",iframe:"IFrame-Elemente können nicht zur Bibliothek hinzugefügt werden.",image:"Unterstützung für das Hinzufügen von Bildern in die Bibliothek kommt bald!"},asyncPasteFailedOnRead:"Einfügen fehlgeschlagen (konnte aus der Zwischenablage des Systems nicht gelesen werden).",asyncPasteFailedOnParse:"Einfügen fehlgeschlagen.",copyToSystemClipboardFailed:"Kopieren in die Zwischenablage fehlgeschlagen."},a={selection:"Auswahl",image:"Bild einfügen",rectangle:"Rechteck",diamond:"Raute",ellipse:"Ellipse",arrow:"Pfeil",line:"Linie",freedraw:"Zeichnen",text:"Text",library:"Bibliothek",lock:"Ausgewähltes Werkzeug nach Zeichnen aktiv lassen",penMode:"Stift-Modus - Berührung verhindern",link:"Link für ausgewählte Form hinzufügen / aktualisieren",eraser:"Radierer",frame:"Rahmenwerkzeug",magicframe:"Wireframe zu Code",embeddable:"Web-Einbettung",laser:"Laserpointer",hand:"Hand (Schwenkwerkzeug)",extraTools:"Weitere Werkzeuge",mermaidToExcalidraw:"Mermaid zu Excalidraw",magicSettings:"KI-Einstellungen"},l={canvasActions:"Aktionen für Zeichenfläche",selectedShapeActions:"Aktionen für Auswahl",shapes:"Formen"},s={canvasPanning:"Um die Zeichenfläche zu verschieben, halte das Mausrad oder die Leertaste während des Ziehens, oder verwende das Hand-Werkzeug",linearElement:"Klicken für Linie mit mehreren Punkten, Ziehen für einzelne Linie",freeDraw:"Klicke und ziehe. Lass los, wenn du fertig bist",text:"Tipp: Du kannst auch Text hinzufügen, indem du mit dem Auswahlwerkzeug auf eine beliebige Stelle doppelklickst",embeddable:"Klicken und ziehen, um eine Webseiten-Einbettung zu erstellen",text_selected:"Doppelklicken oder Eingabetaste drücken, um Text zu bearbeiten",text_editing:"Drücke Escape oder CtrlOrCmd+Eingabetaste, um die Bearbeitung abzuschließen",linearElementMulti:"Zum Beenden auf den letzten Punkt klicken oder Escape oder Eingabe drücken",lockAngle:"Du kannst Winkel einschränken, indem du SHIFT gedrückt hältst",resize:"Du kannst die Proportionen einschränken, indem du SHIFT während der Größenänderung gedrückt hältst. Halte ALT gedrückt, um die Größe vom Zentrum aus zu ändern",resizeImage:"Du kannst die Größe frei ändern, indem du SHIFT gedrückt hältst; halte ALT, um die Größe vom Zentrum aus zu ändern",rotate:"Du kannst Winkel einschränken, indem du SHIFT während der Drehung gedrückt hältst",lineEditor_info:"CtrlOrCmd halten und Doppelklick oder CtrlOrCmd + Eingabe drücken, um Punkte zu bearbeiten",lineEditor_pointSelected:"Drücke Löschen, um Punkt(e) zu entfernen, CtrlOrCmd+D zum Duplizieren oder ziehe zum Verschieben",lineEditor_nothingSelected:`Wähle einen zu bearbeitenden Punkt (halte SHIFT gedrückt um mehrere Punkte auszuwählen),
@@ -1,4 +1,4 @@
1
- import{I as X}from"./chunk-2Q5K7J3B-BFUbUsBE.js";import{p as z}from"./chunk-JWPE2WC7-QIDUQRBr.js";import{o as O,b as G,s as Y,p as P,g as F,a as q,_ as g,A as N,l as A,D as Z,d as U,y as E,q as j,i as J,a3 as K,B as Q,a4 as ee}from"./mermaid.core-Dkoaa-_D.js";import{p as te}from"./cynefin-OW5HDTMX-BVK0_S--.js";import"../datalayer-app-main.js";import"./index-CyZxCTSq.js";import"./dayjs.min-u3zuoSR8.js";import"./fastdom-promised-Cw4_bL92.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";var D=/[─━│┃└┗├┣]/,L=/[└┗├┣]/,re=/[─━]/,T=/^[\s│┃]+$/,V=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,$=/^\s*%%/,ne=" ";function _(r){return r.some(t=>D.test(t))}g(_,"isBoxDrawingFormat");function M(r){for(const t of r){const e=L.exec(t);if(e?.index&&e.index>0)return e.index}return 4}g(M,"inferSegmentWidth");function S(r,t){return r.replace(/\bline\s+(\d+)\b/gi,(e,n)=>{const s=parseInt(n,10),i=t.get(s);return i?`line ${i}`:e})}g(S,"remapErrorLines");function R(r){const t=r.split(`
1
+ import{I as X}from"./chunk-2Q5K7J3B-CtmdieBX.js";import{p as z}from"./chunk-JWPE2WC7-Cq6Q947j.js";import{o as O,b as G,s as Y,p as P,g as F,a as q,_ as g,A as N,l as A,D as Z,d as U,y as E,q as j,i as J,a3 as K,B as Q,a4 as ee}from"./mermaid.core-Dd-D7tJ4.js";import{p as te}from"./cynefin-OW5HDTMX-BVK0_S--.js";import"../datalayer-app-main.js";import"./index-CyZxCTSq.js";import"./dayjs.min-u3zuoSR8.js";import"./fastdom-promised-Cw4_bL92.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";var D=/[─━│┃└┗├┣]/,L=/[└┗├┣]/,re=/[─━]/,T=/^[\s│┃]+$/,V=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,$=/^\s*%%/,ne=" ";function _(r){return r.some(t=>D.test(t))}g(_,"isBoxDrawingFormat");function M(r){for(const t of r){const e=L.exec(t);if(e?.index&&e.index>0)return e.index}return 4}g(M,"inferSegmentWidth");function S(r,t){return r.replace(/\bline\s+(\d+)\b/gi,(e,n)=>{const s=parseInt(n,10),i=t.get(s);return i?`line ${i}`:e})}g(S,"remapErrorLines");function R(r){const t=r.split(`
2
2
  `),e=new Map;let n=-1;for(const[p,c]of t.entries())if(c.trim()==="treeView-beta"){n=p;break}if(n===-1)return{text:r,lineMap:e};const s=[];for(let p=n+1;p<t.length;p++){const c=t[p];c.trim()===""||$.test(c)||V.test(c)||T.test(c)||s.push(c.replace(/\t/g," "))}if(!_(s))return{text:r,lineMap:e};const i=M(s),o=[];let a=0;for(let p=0;p<=n;p++)o.push(t[p]),a++,e.set(a,p+1);for(let p=n+1;p<t.length;p++){const c=t[p],d=c.trim(),h=p+1;if(d===""){o.push(c),a++,e.set(a,h);continue}if($.test(c)){o.push(c),a++,e.set(a,h);continue}if(V.test(c)){o.push(c),a++,e.set(a,h);continue}if(T.test(c))continue;const l=c.replace(/\t/g," "),m=L.exec(l);if(m?.index!==void 0){const f=m.index,w=Math.round(f/i)+1;let u=f+1;for(;u<l.length&&re.test(l[u]);)u++;for(;u<l.length&&l[u]===" ";)u++;const v=l.slice(u).trimEnd();if(!v)throw new Error(`Line ${h}: Empty node — expected a filename or directory name after the box-drawing prefix`);const W=ne.repeat(w);o.push(W+v),a++,e.set(a,h)}else{if(/^[\s─━│┃└┗├┣]+$/.test(l))continue;if(D.test(l))o.push(c),a++,e.set(a,h);else{if(/^\s+/.test(l))throw new Error(`Line ${h}: Unexpected indentation without box-drawing characters. In box-drawing format, use ├── or └── prefixes for indented nodes.`);o.push(c),a++,e.set(a,h)}}}return{text:o.join(`
3
3
  `),lineMap:e}}g(R,"preprocessBoxDrawing");var x=new X(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",nodeType:"directory",children:[]}]})),ie=g(()=>{x.reset(),j()},"clear"),oe=g(()=>x.records.stack[0],"getRoot"),se=g(()=>x.records.cnt,"getCount"),ae=Q.treeView,ce=g(()=>N(ae,E().treeView),"getConfig"),le=g((r,t,e,n,s,i)=>{for(;r<=x.records.stack[x.records.stack.length-1].level;)x.records.stack.pop();const o={id:x.records.cnt++,level:r,name:t,nodeType:e,icon:s,cssClass:n,description:i,children:[]};x.records.stack[x.records.stack.length-1].children.push(o),x.records.stack.push(o)},"addNode"),de={clear:ie,addNode:le,getRoot:oe,getCount:se,getConfig:ce,getAccTitle:q,getAccDescription:F,getDiagramTitle:P,setAccDescription:Y,setAccTitle:G,setDiagramTitle:O},I=de,he=g(r=>{z(r,I);for(const t of r.nodes){const e=typeof t.indent=="number"?t.indent:0;let n=t.name;const s=n.endsWith("/");s&&(n=n.slice(0,-1));const i=s?"directory":"file",o=t.classAnnotation||void 0,a=t.iconAnnotation,p=a!==void 0?a||"none":void 0,c=t.descAnnotation||void 0,d=c?J(c,E()):void 0;I.addNode(e,n,i,o,p,d)}},"populate"),pe={parse:g(async r=>{const{text:t,lineMap:e}=R(r);try{const n=await te("treeView",t);A.debug(n),he(n)}catch(n){throw e.size>0&&n instanceof Error&&(n.message=S(n.message,e)),n}},"parse")},b={prefix:"mermaid-treeview",height:24,width:24,icons:{folder:{body:'<path fill="currentColor" d="M10.59 4.59A2 2 0 0 0 9.17 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.17z"/>'},file:{body:'<path fill="currentColor" fill-rule="evenodd" d="M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.83a2 2 0 0 0-.59-1.42l-4.82-4.82A2 2 0 0 0 13.17 2H6Zm7.5 1.9l4.6 4.6h-3.6a1 1 0 0 1-1-1V3.9Z" clip-rule="evenodd"/>'}}};function H(r,t){const e=t?.filenameIcons?.[r];if(e)return e;const n=r.lastIndexOf(".");if(n>0){const s=r.substring(n).toLowerCase(),i=t?.extensionIcons;return i?.[s]??i?.[s.slice(1)]}}g(H,"detectIcon");function C(r,t){return r.includes(":")?r:r in b.icons||!t?`${b.prefix}:${r}`:`${t}:${r}`}g(C,"qualifyIcon");function B(r,t){if(r.icon!=="none"){if(r.icon)return C(r.icon,t.defaultIconPack);if(t.showIcons){if(r.nodeType==="file"){const e=H(r.name,t);if(e==="none")return;if(e)return C(e,t.defaultIconPack)}return`${b.prefix}:${r.nodeType==="directory"?"folder":"file"}`}}}g(B,"getNodeIcon");ee([{name:b.prefix,icons:b}]);var y=14,ge=4,fe=16,ue=g(async(r,t)=>{const e=[],n=g(i=>{const o=B(i,t);o&&e.push({icon:o,node:i}),i.children.forEach(n)},"collect");n(r);const s=await Promise.all(e.map(async({icon:i,node:o})=>({id:o.id,svg:await K(i,{height:y,width:y})})));return new Map(s.map(({id:i,svg:o})=>[i,o]))},"resolveNodeIcons"),me=g((r,t,e,n,s,i)=>{const o=n.append("g");let a="treeView-node-label";e.nodeType==="directory"&&(a+=" treeView-node-dir"),e.cssClass&&(a+=` ${e.cssClass}`);const p=y+ge,c=B(e,s),d=c!==void 0;c&&o.append("g").attr("class","treeView-node-icon").attr("transform",`translate(${r+s.paddingX}, ${t+s.paddingY})`).html(i.get(e.id)??"");const h=o.append("text").text(e.name).attr("dominant-baseline","middle").attr("class",a),{height:l,width:m}=h.node().getBBox(),f=l+s.paddingY*2,w=r+s.paddingX+(d?p:0);h.attr("x",w),h.attr("y",t+f/2);const u=w+m,v=m+s.paddingX*2+(d?p:0);return e.BBox={x:r,y:t,width:v,height:f},e.cssClass?.split(/\s+/).includes("highlight")&&o.insert("rect",":first-child").attr("x",r).attr("y",t+1).attr("width",0).attr("height",f-2).attr("rx",3).attr("class","treeView-highlight-bg"),{node:e,nodeGroup:o,labelRightEdge:u,centerY:t+f/2}},"positionLabel"),k=g((r,t,e,n,s,i)=>r.append("line").attr("x1",t).attr("y1",e).attr("x2",n).attr("y2",s).attr("stroke-width",i).attr("class","treeView-node-line"),"positionLine"),we=g((r,t,e,n)=>{let s=0,i=0;const o=[],a=g((d,h,l,m)=>{const f=m*(l.rowIndent+l.paddingX),w=me(f,s,h,d,l,n);o.push(w);const{height:u,width:v}=h.BBox;k(d,f-l.rowIndent,s+u/2,f,s+u/2,l.lineThickness),i=Math.max(i,f+v),s+=u},"drawNode"),p=g((d,h=0)=>{a(r,d,e,h),d.children.forEach(w=>{p(w,h+1)});const{x:l,y:m,height:f}=d.BBox;if(d.children.length){const{y:w,height:u}=d.children[d.children.length-1].BBox;k(r,l+e.paddingX,m+f,l+e.paddingX,w+u/2+e.lineThickness/2,e.lineThickness)}},"processNode");p(t);const c=o.filter(d=>d.node.description);if(c.length>0){const h=Math.max(...o.map(l=>l.labelRightEdge))+fe;for(const l of c){const f=l.nodeGroup.append("text").text(l.node.description).attr("dominant-baseline","middle").attr("class","treeView-node-description").attr("x",h).attr("y",l.centerY).node().getBBox();i=Math.max(i,h+f.width+e.paddingX)}}for(const d of o)if(d.node.cssClass?.split(/\s+/).includes("highlight")){const h=d.nodeGroup.select(".treeView-highlight-bg");if(!h.empty()){const l=i-d.node.BBox.x+8;h.attr("width",l),i=Math.max(i,d.node.BBox.x+l+2)}}return{totalHeight:s,totalWidth:i}},"drawTree"),xe=g(async(r,t,e,n)=>{A.debug(`Rendering treeView diagram
4
4
  `+r);const s=n.db,i=s.getRoot(),o=s.getConfig(),a=Z(t),p=a.append("g");p.attr("class","tree-view");const c=await ue(i,o),{totalHeight:d,totalWidth:h}=we(p,i,o,c);a.attr("viewBox",`-${o.lineThickness/2} 0 ${h} ${d}`),U(a,d,h,o.useMaxWidth)},"draw"),ve={draw:xe},be=ve,Ie={labelFontSize:"16px",labelColor:"black",lineColor:"black",iconColor:"#546e7a",descriptionColor:"#6a9955",highlightBg:"rgba(255, 193, 7, 0.15)",highlightStroke:"#ffc107"},Ce=g(({treeView:r})=>{const{labelFontSize:t,labelColor:e,lineColor:n,iconColor:s,descriptionColor:i,highlightBg:o,highlightStroke:a}=N(Ie,r);return`
@@ -1,4 +1,4 @@
1
- import{I as X}from"./chunk-2Q5K7J3B-DiqqlJZw.js";import{p as z}from"./chunk-JWPE2WC7-NvLQtuoq.js";import{o as O,b as G,s as Y,p as P,g as F,a as q,_ as g,A as N,l as A,D as Z,d as U,y as E,B as j,q as J,i as K,a3 as Q,a4 as ee}from"./index-s25RSqvt.js";import{p as te}from"./cynefin-OW5HDTMX-BBLugbYz.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./index-CyZxCTSq.js";import"./dayjs.min-u3zuoSR8.js";import"./fastdom-promised-Cw4_bL92.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";var D=/[─━│┃└┗├┣]/,L=/[└┗├┣]/,re=/[─━]/,T=/^[\s│┃]+$/,V=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,$=/^\s*%%/,ne=" ";function _(r){return r.some(t=>D.test(t))}g(_,"isBoxDrawingFormat");function M(r){for(const t of r){const e=L.exec(t);if(e?.index&&e.index>0)return e.index}return 4}g(M,"inferSegmentWidth");function S(r,t){return r.replace(/\bline\s+(\d+)\b/gi,(e,n)=>{const s=parseInt(n,10),i=t.get(s);return i?`line ${i}`:e})}g(S,"remapErrorLines");function R(r){const t=r.split(`
1
+ import{I as X}from"./chunk-2Q5K7J3B-CWx-QJ0-.js";import{p as z}from"./chunk-JWPE2WC7-Bf4pFlIJ.js";import{o as O,b as G,s as Y,p as P,g as F,a as q,_ as g,A as N,l as A,D as Z,d as U,y as E,B as j,q as J,i as K,a3 as Q,a4 as ee}from"./index-DObGLuCI.js";import{p as te}from"./cynefin-OW5HDTMX-BBLugbYz.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./index-CyZxCTSq.js";import"./dayjs.min-u3zuoSR8.js";import"./fastdom-promised-Cw4_bL92.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";var D=/[─━│┃└┗├┣]/,L=/[└┗├┣]/,re=/[─━]/,T=/^[\s│┃]+$/,V=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,$=/^\s*%%/,ne=" ";function _(r){return r.some(t=>D.test(t))}g(_,"isBoxDrawingFormat");function M(r){for(const t of r){const e=L.exec(t);if(e?.index&&e.index>0)return e.index}return 4}g(M,"inferSegmentWidth");function S(r,t){return r.replace(/\bline\s+(\d+)\b/gi,(e,n)=>{const s=parseInt(n,10),i=t.get(s);return i?`line ${i}`:e})}g(S,"remapErrorLines");function R(r){const t=r.split(`
2
2
  `),e=new Map;let n=-1;for(const[p,c]of t.entries())if(c.trim()==="treeView-beta"){n=p;break}if(n===-1)return{text:r,lineMap:e};const s=[];for(let p=n+1;p<t.length;p++){const c=t[p];c.trim()===""||$.test(c)||V.test(c)||T.test(c)||s.push(c.replace(/\t/g," "))}if(!_(s))return{text:r,lineMap:e};const i=M(s),o=[];let a=0;for(let p=0;p<=n;p++)o.push(t[p]),a++,e.set(a,p+1);for(let p=n+1;p<t.length;p++){const c=t[p],d=c.trim(),h=p+1;if(d===""){o.push(c),a++,e.set(a,h);continue}if($.test(c)){o.push(c),a++,e.set(a,h);continue}if(V.test(c)){o.push(c),a++,e.set(a,h);continue}if(T.test(c))continue;const l=c.replace(/\t/g," "),m=L.exec(l);if(m?.index!==void 0){const f=m.index,w=Math.round(f/i)+1;let u=f+1;for(;u<l.length&&re.test(l[u]);)u++;for(;u<l.length&&l[u]===" ";)u++;const v=l.slice(u).trimEnd();if(!v)throw new Error(`Line ${h}: Empty node — expected a filename or directory name after the box-drawing prefix`);const W=ne.repeat(w);o.push(W+v),a++,e.set(a,h)}else{if(/^[\s─━│┃└┗├┣]+$/.test(l))continue;if(D.test(l))o.push(c),a++,e.set(a,h);else{if(/^\s+/.test(l))throw new Error(`Line ${h}: Unexpected indentation without box-drawing characters. In box-drawing format, use ├── or └── prefixes for indented nodes.`);o.push(c),a++,e.set(a,h)}}}return{text:o.join(`
3
3
  `),lineMap:e}}g(R,"preprocessBoxDrawing");var x=new X(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",nodeType:"directory",children:[]}]})),ie=g(()=>{x.reset(),J()},"clear"),oe=g(()=>x.records.stack[0],"getRoot"),se=g(()=>x.records.cnt,"getCount"),ae=j.treeView,ce=g(()=>N(ae,E().treeView),"getConfig"),le=g((r,t,e,n,s,i)=>{for(;r<=x.records.stack[x.records.stack.length-1].level;)x.records.stack.pop();const o={id:x.records.cnt++,level:r,name:t,nodeType:e,icon:s,cssClass:n,description:i,children:[]};x.records.stack[x.records.stack.length-1].children.push(o),x.records.stack.push(o)},"addNode"),de={clear:ie,addNode:le,getRoot:oe,getCount:se,getConfig:ce,getAccTitle:q,getAccDescription:F,getDiagramTitle:P,setAccDescription:Y,setAccTitle:G,setDiagramTitle:O},I=de,he=g(r=>{z(r,I);for(const t of r.nodes){const e=typeof t.indent=="number"?t.indent:0;let n=t.name;const s=n.endsWith("/");s&&(n=n.slice(0,-1));const i=s?"directory":"file",o=t.classAnnotation||void 0,a=t.iconAnnotation,p=a!==void 0?a||"none":void 0,c=t.descAnnotation||void 0,d=c?K(c,E()):void 0;I.addNode(e,n,i,o,p,d)}},"populate"),pe={parse:g(async r=>{const{text:t,lineMap:e}=R(r);try{const n=await te("treeView",t);A.debug(n),he(n)}catch(n){throw e.size>0&&n instanceof Error&&(n.message=S(n.message,e)),n}},"parse")},b={prefix:"mermaid-treeview",height:24,width:24,icons:{folder:{body:'<path fill="currentColor" d="M10.59 4.59A2 2 0 0 0 9.17 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.17z"/>'},file:{body:'<path fill="currentColor" fill-rule="evenodd" d="M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.83a2 2 0 0 0-.59-1.42l-4.82-4.82A2 2 0 0 0 13.17 2H6Zm7.5 1.9l4.6 4.6h-3.6a1 1 0 0 1-1-1V3.9Z" clip-rule="evenodd"/>'}}};function H(r,t){const e=t?.filenameIcons?.[r];if(e)return e;const n=r.lastIndexOf(".");if(n>0){const s=r.substring(n).toLowerCase(),i=t?.extensionIcons;return i?.[s]??i?.[s.slice(1)]}}g(H,"detectIcon");function C(r,t){return r.includes(":")?r:r in b.icons||!t?`${b.prefix}:${r}`:`${t}:${r}`}g(C,"qualifyIcon");function B(r,t){if(r.icon!=="none"){if(r.icon)return C(r.icon,t.defaultIconPack);if(t.showIcons){if(r.nodeType==="file"){const e=H(r.name,t);if(e==="none")return;if(e)return C(e,t.defaultIconPack)}return`${b.prefix}:${r.nodeType==="directory"?"folder":"file"}`}}}g(B,"getNodeIcon");ee([{name:b.prefix,icons:b}]);var y=14,ge=4,fe=16,ue=g(async(r,t)=>{const e=[],n=g(i=>{const o=B(i,t);o&&e.push({icon:o,node:i}),i.children.forEach(n)},"collect");n(r);const s=await Promise.all(e.map(async({icon:i,node:o})=>({id:o.id,svg:await Q(i,{height:y,width:y})})));return new Map(s.map(({id:i,svg:o})=>[i,o]))},"resolveNodeIcons"),me=g((r,t,e,n,s,i)=>{const o=n.append("g");let a="treeView-node-label";e.nodeType==="directory"&&(a+=" treeView-node-dir"),e.cssClass&&(a+=` ${e.cssClass}`);const p=y+ge,c=B(e,s),d=c!==void 0;c&&o.append("g").attr("class","treeView-node-icon").attr("transform",`translate(${r+s.paddingX}, ${t+s.paddingY})`).html(i.get(e.id)??"");const h=o.append("text").text(e.name).attr("dominant-baseline","middle").attr("class",a),{height:l,width:m}=h.node().getBBox(),f=l+s.paddingY*2,w=r+s.paddingX+(d?p:0);h.attr("x",w),h.attr("y",t+f/2);const u=w+m,v=m+s.paddingX*2+(d?p:0);return e.BBox={x:r,y:t,width:v,height:f},e.cssClass?.split(/\s+/).includes("highlight")&&o.insert("rect",":first-child").attr("x",r).attr("y",t+1).attr("width",0).attr("height",f-2).attr("rx",3).attr("class","treeView-highlight-bg"),{node:e,nodeGroup:o,labelRightEdge:u,centerY:t+f/2}},"positionLabel"),k=g((r,t,e,n,s,i)=>r.append("line").attr("x1",t).attr("y1",e).attr("x2",n).attr("y2",s).attr("stroke-width",i).attr("class","treeView-node-line"),"positionLine"),we=g((r,t,e,n)=>{let s=0,i=0;const o=[],a=g((d,h,l,m)=>{const f=m*(l.rowIndent+l.paddingX),w=me(f,s,h,d,l,n);o.push(w);const{height:u,width:v}=h.BBox;k(d,f-l.rowIndent,s+u/2,f,s+u/2,l.lineThickness),i=Math.max(i,f+v),s+=u},"drawNode"),p=g((d,h=0)=>{a(r,d,e,h),d.children.forEach(w=>{p(w,h+1)});const{x:l,y:m,height:f}=d.BBox;if(d.children.length){const{y:w,height:u}=d.children[d.children.length-1].BBox;k(r,l+e.paddingX,m+f,l+e.paddingX,w+u/2+e.lineThickness/2,e.lineThickness)}},"processNode");p(t);const c=o.filter(d=>d.node.description);if(c.length>0){const h=Math.max(...o.map(l=>l.labelRightEdge))+fe;for(const l of c){const f=l.nodeGroup.append("text").text(l.node.description).attr("dominant-baseline","middle").attr("class","treeView-node-description").attr("x",h).attr("y",l.centerY).node().getBBox();i=Math.max(i,h+f.width+e.paddingX)}}for(const d of o)if(d.node.cssClass?.split(/\s+/).includes("highlight")){const h=d.nodeGroup.select(".treeView-highlight-bg");if(!h.empty()){const l=i-d.node.BBox.x+8;h.attr("width",l),i=Math.max(i,d.node.BBox.x+l+2)}}return{totalHeight:s,totalWidth:i}},"drawTree"),xe=g(async(r,t,e,n)=>{A.debug(`Rendering treeView diagram
4
4
  `+r);const s=n.db,i=s.getRoot(),o=s.getConfig(),a=Z(t),p=a.append("g");p.attr("class","tree-view");const c=await ue(i,o),{totalHeight:d,totalWidth:h}=we(p,i,o,c);a.attr("viewBox",`-${o.lineThickness/2} 0 ${h} ${d}`),U(a,d,h,o.useMaxWidth)},"draw"),ve={draw:xe},be=ve,Ie={labelFontSize:"16px",labelColor:"black",lineColor:"black",iconColor:"#546e7a",descriptionColor:"#6a9955",highlightBg:"rgba(255, 193, 7, 0.15)",highlightStroke:"#ffc107"},Ce=g(({treeView:r})=>{const{labelFontSize:t,labelColor:e,lineColor:n,iconColor:s,descriptionColor:i,highlightBg:o,highlightStroke:a}=N(Ie,r);return`
@@ -1,4 +1,4 @@
1
- import{I as X}from"./chunk-2Q5K7J3B-BX9u1bBi.js";import{p as z}from"./chunk-JWPE2WC7-BGdc9-bH.js";import{o as O,b as G,s as Y,p as P,g as F,a as q,_ as g,A as N,l as A,D as Z,d as U,y as E,B as j,q as J,i as K,a3 as Q,a4 as ee}from"./index-CLB4KPZs.js";import{p as te}from"./cynefin-OW5HDTMX-D8Lw5okC.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./index-CyZxCTSq.js";import"./dayjs.min-u3zuoSR8.js";import"./fastdom-promised-Cw4_bL92.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";var D=/[─━│┃└┗├┣]/,L=/[└┗├┣]/,re=/[─━]/,T=/^[\s│┃]+$/,V=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,$=/^\s*%%/,ne=" ";function _(r){return r.some(t=>D.test(t))}g(_,"isBoxDrawingFormat");function M(r){for(const t of r){const e=L.exec(t);if(e?.index&&e.index>0)return e.index}return 4}g(M,"inferSegmentWidth");function S(r,t){return r.replace(/\bline\s+(\d+)\b/gi,(e,n)=>{const s=parseInt(n,10),i=t.get(s);return i?`line ${i}`:e})}g(S,"remapErrorLines");function R(r){const t=r.split(`
1
+ import{I as X}from"./chunk-2Q5K7J3B-BkzWX8eg.js";import{p as z}from"./chunk-JWPE2WC7-BVXd-ICe.js";import{o as O,b as G,s as Y,p as P,g as F,a as q,_ as g,A as N,l as A,D as Z,d as U,y as E,B as j,q as J,i as K,a3 as Q,a4 as ee}from"./index-Df2MkvAW.js";import{p as te}from"./cynefin-OW5HDTMX-D8Lw5okC.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./index-CyZxCTSq.js";import"./dayjs.min-u3zuoSR8.js";import"./fastdom-promised-Cw4_bL92.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";var D=/[─━│┃└┗├┣]/,L=/[└┗├┣]/,re=/[─━]/,T=/^[\s│┃]+$/,V=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,$=/^\s*%%/,ne=" ";function _(r){return r.some(t=>D.test(t))}g(_,"isBoxDrawingFormat");function M(r){for(const t of r){const e=L.exec(t);if(e?.index&&e.index>0)return e.index}return 4}g(M,"inferSegmentWidth");function S(r,t){return r.replace(/\bline\s+(\d+)\b/gi,(e,n)=>{const s=parseInt(n,10),i=t.get(s);return i?`line ${i}`:e})}g(S,"remapErrorLines");function R(r){const t=r.split(`
2
2
  `),e=new Map;let n=-1;for(const[p,c]of t.entries())if(c.trim()==="treeView-beta"){n=p;break}if(n===-1)return{text:r,lineMap:e};const s=[];for(let p=n+1;p<t.length;p++){const c=t[p];c.trim()===""||$.test(c)||V.test(c)||T.test(c)||s.push(c.replace(/\t/g," "))}if(!_(s))return{text:r,lineMap:e};const i=M(s),o=[];let a=0;for(let p=0;p<=n;p++)o.push(t[p]),a++,e.set(a,p+1);for(let p=n+1;p<t.length;p++){const c=t[p],d=c.trim(),h=p+1;if(d===""){o.push(c),a++,e.set(a,h);continue}if($.test(c)){o.push(c),a++,e.set(a,h);continue}if(V.test(c)){o.push(c),a++,e.set(a,h);continue}if(T.test(c))continue;const l=c.replace(/\t/g," "),m=L.exec(l);if(m?.index!==void 0){const f=m.index,w=Math.round(f/i)+1;let u=f+1;for(;u<l.length&&re.test(l[u]);)u++;for(;u<l.length&&l[u]===" ";)u++;const v=l.slice(u).trimEnd();if(!v)throw new Error(`Line ${h}: Empty node — expected a filename or directory name after the box-drawing prefix`);const W=ne.repeat(w);o.push(W+v),a++,e.set(a,h)}else{if(/^[\s─━│┃└┗├┣]+$/.test(l))continue;if(D.test(l))o.push(c),a++,e.set(a,h);else{if(/^\s+/.test(l))throw new Error(`Line ${h}: Unexpected indentation without box-drawing characters. In box-drawing format, use ├── or └── prefixes for indented nodes.`);o.push(c),a++,e.set(a,h)}}}return{text:o.join(`
3
3
  `),lineMap:e}}g(R,"preprocessBoxDrawing");var x=new X(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",nodeType:"directory",children:[]}]})),ie=g(()=>{x.reset(),J()},"clear"),oe=g(()=>x.records.stack[0],"getRoot"),se=g(()=>x.records.cnt,"getCount"),ae=j.treeView,ce=g(()=>N(ae,E().treeView),"getConfig"),le=g((r,t,e,n,s,i)=>{for(;r<=x.records.stack[x.records.stack.length-1].level;)x.records.stack.pop();const o={id:x.records.cnt++,level:r,name:t,nodeType:e,icon:s,cssClass:n,description:i,children:[]};x.records.stack[x.records.stack.length-1].children.push(o),x.records.stack.push(o)},"addNode"),de={clear:ie,addNode:le,getRoot:oe,getCount:se,getConfig:ce,getAccTitle:q,getAccDescription:F,getDiagramTitle:P,setAccDescription:Y,setAccTitle:G,setDiagramTitle:O},I=de,he=g(r=>{z(r,I);for(const t of r.nodes){const e=typeof t.indent=="number"?t.indent:0;let n=t.name;const s=n.endsWith("/");s&&(n=n.slice(0,-1));const i=s?"directory":"file",o=t.classAnnotation||void 0,a=t.iconAnnotation,p=a!==void 0?a||"none":void 0,c=t.descAnnotation||void 0,d=c?K(c,E()):void 0;I.addNode(e,n,i,o,p,d)}},"populate"),pe={parse:g(async r=>{const{text:t,lineMap:e}=R(r);try{const n=await te("treeView",t);A.debug(n),he(n)}catch(n){throw e.size>0&&n instanceof Error&&(n.message=S(n.message,e)),n}},"parse")},b={prefix:"mermaid-treeview",height:24,width:24,icons:{folder:{body:'<path fill="currentColor" d="M10.59 4.59A2 2 0 0 0 9.17 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.17z"/>'},file:{body:'<path fill="currentColor" fill-rule="evenodd" d="M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.83a2 2 0 0 0-.59-1.42l-4.82-4.82A2 2 0 0 0 13.17 2H6Zm7.5 1.9l4.6 4.6h-3.6a1 1 0 0 1-1-1V3.9Z" clip-rule="evenodd"/>'}}};function H(r,t){const e=t?.filenameIcons?.[r];if(e)return e;const n=r.lastIndexOf(".");if(n>0){const s=r.substring(n).toLowerCase(),i=t?.extensionIcons;return i?.[s]??i?.[s.slice(1)]}}g(H,"detectIcon");function C(r,t){return r.includes(":")?r:r in b.icons||!t?`${b.prefix}:${r}`:`${t}:${r}`}g(C,"qualifyIcon");function B(r,t){if(r.icon!=="none"){if(r.icon)return C(r.icon,t.defaultIconPack);if(t.showIcons){if(r.nodeType==="file"){const e=H(r.name,t);if(e==="none")return;if(e)return C(e,t.defaultIconPack)}return`${b.prefix}:${r.nodeType==="directory"?"folder":"file"}`}}}g(B,"getNodeIcon");ee([{name:b.prefix,icons:b}]);var y=14,ge=4,fe=16,ue=g(async(r,t)=>{const e=[],n=g(i=>{const o=B(i,t);o&&e.push({icon:o,node:i}),i.children.forEach(n)},"collect");n(r);const s=await Promise.all(e.map(async({icon:i,node:o})=>({id:o.id,svg:await Q(i,{height:y,width:y})})));return new Map(s.map(({id:i,svg:o})=>[i,o]))},"resolveNodeIcons"),me=g((r,t,e,n,s,i)=>{const o=n.append("g");let a="treeView-node-label";e.nodeType==="directory"&&(a+=" treeView-node-dir"),e.cssClass&&(a+=` ${e.cssClass}`);const p=y+ge,c=B(e,s),d=c!==void 0;c&&o.append("g").attr("class","treeView-node-icon").attr("transform",`translate(${r+s.paddingX}, ${t+s.paddingY})`).html(i.get(e.id)??"");const h=o.append("text").text(e.name).attr("dominant-baseline","middle").attr("class",a),{height:l,width:m}=h.node().getBBox(),f=l+s.paddingY*2,w=r+s.paddingX+(d?p:0);h.attr("x",w),h.attr("y",t+f/2);const u=w+m,v=m+s.paddingX*2+(d?p:0);return e.BBox={x:r,y:t,width:v,height:f},e.cssClass?.split(/\s+/).includes("highlight")&&o.insert("rect",":first-child").attr("x",r).attr("y",t+1).attr("width",0).attr("height",f-2).attr("rx",3).attr("class","treeView-highlight-bg"),{node:e,nodeGroup:o,labelRightEdge:u,centerY:t+f/2}},"positionLabel"),k=g((r,t,e,n,s,i)=>r.append("line").attr("x1",t).attr("y1",e).attr("x2",n).attr("y2",s).attr("stroke-width",i).attr("class","treeView-node-line"),"positionLine"),we=g((r,t,e,n)=>{let s=0,i=0;const o=[],a=g((d,h,l,m)=>{const f=m*(l.rowIndent+l.paddingX),w=me(f,s,h,d,l,n);o.push(w);const{height:u,width:v}=h.BBox;k(d,f-l.rowIndent,s+u/2,f,s+u/2,l.lineThickness),i=Math.max(i,f+v),s+=u},"drawNode"),p=g((d,h=0)=>{a(r,d,e,h),d.children.forEach(w=>{p(w,h+1)});const{x:l,y:m,height:f}=d.BBox;if(d.children.length){const{y:w,height:u}=d.children[d.children.length-1].BBox;k(r,l+e.paddingX,m+f,l+e.paddingX,w+u/2+e.lineThickness/2,e.lineThickness)}},"processNode");p(t);const c=o.filter(d=>d.node.description);if(c.length>0){const h=Math.max(...o.map(l=>l.labelRightEdge))+fe;for(const l of c){const f=l.nodeGroup.append("text").text(l.node.description).attr("dominant-baseline","middle").attr("class","treeView-node-description").attr("x",h).attr("y",l.centerY).node().getBBox();i=Math.max(i,h+f.width+e.paddingX)}}for(const d of o)if(d.node.cssClass?.split(/\s+/).includes("highlight")){const h=d.nodeGroup.select(".treeView-highlight-bg");if(!h.empty()){const l=i-d.node.BBox.x+8;h.attr("width",l),i=Math.max(i,d.node.BBox.x+l+2)}}return{totalHeight:s,totalWidth:i}},"drawTree"),xe=g(async(r,t,e,n)=>{A.debug(`Rendering treeView diagram
4
4
  `+r);const s=n.db,i=s.getRoot(),o=s.getConfig(),a=Z(t),p=a.append("g");p.attr("class","tree-view");const c=await ue(i,o),{totalHeight:d,totalWidth:h}=we(p,i,o,c);a.attr("viewBox",`-${o.lineThickness/2} 0 ${h} ${d}`),U(a,d,h,o.useMaxWidth)},"draw"),ve={draw:xe},be=ve,Ie={labelFontSize:"16px",labelColor:"black",lineColor:"black",iconColor:"#546e7a",descriptionColor:"#6a9955",highlightBg:"rgba(255, 193, 7, 0.15)",highlightStroke:"#ffc107"},Ce=g(({treeView:r})=>{const{labelFontSize:t,labelColor:e,lineColor:n,iconColor:s,descriptionColor:i,highlightBg:o,highlightStroke:a}=N(Ie,r);return`
@@ -1,4 +1,4 @@
1
- import{p as I}from"./chunk-JWPE2WC7-NvLQtuoq.js";import{s as _,g as F,p as D,o as E,a as P,b as z,_ as c,D as G,q as B,A as w,B as W,y as C,l as b,F as V,d as H}from"./index-s25RSqvt.js";import{p as j}from"./cynefin-OW5HDTMX-BBLugbYz.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./index-CyZxCTSq.js";import"./dayjs.min-u3zuoSR8.js";import"./fastdom-promised-Cw4_bL92.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";var x={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},y=32,A={axes:[],curves:[],options:x},g=structuredClone(A),U=W.radar,X=c(()=>w({...U,...C().radar}),"getConfig"),M=c(()=>g.axes,"getAxes"),q=c(()=>g.curves,"getCurves"),K=c(()=>g.options,"getOptions"),N=c(a=>{g.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),Y=c(a=>{g.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:Z(t.entries)}))},"setCurves"),Z=c(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=M();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>s.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),J=c(a=>{const t=a.reduce((e,r)=>(e[r.name]=r,e),{});g.options={showLegend:t.showLegend?.value??x.showLegend,ticks:t.ticks?.value??x.ticks,max:t.max?.value??x.max,min:t.min?.value??x.min,graticule:t.graticule?.value??x.graticule},g.options.ticks>y&&(b.warn(`Radar diagram ticks (${g.options.ticks}) exceeds maximum allowed (${y}). Using ${y} instead.`),g.options.ticks=y)},"setOptions"),Q=c(()=>{B(),g=structuredClone(A)},"clear"),$={getAxes:M,getCurves:q,getOptions:K,setAxes:N,setCurves:Y,setOptions:J,getConfig:X,clear:Q,setAccTitle:z,getAccTitle:P,setDiagramTitle:E,getDiagramTitle:D,getAccDescription:F,setAccDescription:_},tt=c(a=>{I(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),et={parse:c(async a=>{const t=await j("radar",a);b.debug(t),tt(t)},"parse")},at=c((a,t,e,r)=>{const s=r.db,i=s.getAxes(),l=s.getCurves(),n=s.getOptions(),o=s.getConfig(),d=s.getDiagramTitle(),u=G(t),p=rt(u,o),m=n.max??Math.max(...l.map(f=>Math.max(...f.entries))),h=n.min,v=Math.min(o.width,o.height)/2;st(p,i,v,n.ticks,n.graticule),nt(p,i,v,o),L(p,i,l,h,m,n.graticule,o),k(p,l,n.showLegend,o),p.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),rt=c((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return H(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`).attr("overflow","visible"),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),st=c((a,t,e,r,s)=>{if(s==="circle")for(let i=0;i<r;i++){const l=e*(i+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(s==="polygon"){const i=t.length;for(let l=0;l<r;l++){const n=e*(l+1)/r,o=t.map((d,u)=>{const p=2*u*Math.PI/i-Math.PI/2,m=n*Math.cos(p),h=n*Math.sin(p);return`${m},${h}`}).join(" ");a.append("polygon").attr("points",o).attr("class","radarGraticule")}}},"drawGraticule"),nt=c((a,t,e,r)=>{const s=t.length;for(let i=0;i<s;i++){const l=t[i].label,n=2*i*Math.PI/s-Math.PI/2,o=Math.cos(n),d=Math.sin(n);a.append("line").attr("x1",0).attr("y1",0).attr("x2",e*r.axisScaleFactor*o).attr("y2",e*r.axisScaleFactor*d).attr("class","radarAxisLine");const u=o>.01?"start":o<-.01?"end":"middle",p=d>.01?"hanging":d<-.01?"auto":"central",m=4;a.append("text").text(l).attr("x",e*r.axisLabelFactor*o+m*o).attr("y",e*r.axisLabelFactor*d+m*d).attr("text-anchor",u).attr("dominant-baseline",p).attr("class","radarAxisLabel")}},"drawAxes");function L(a,t,e,r,s,i,l){const n=t.length,o=Math.min(l.width,l.height)/2;e.forEach((d,u)=>{if(d.entries.length!==n)return;const p=d.entries.map((m,h)=>{const v=2*Math.PI*h/n-Math.PI/2,f=T(m,r,s,o),O=f*Math.cos(v),R=f*Math.sin(v);return{x:O,y:R}});i==="circle"?a.append("path").attr("d",S(p,l.curveTension)).attr("class",`radarCurve-${u}`):i==="polygon"&&a.append("polygon").attr("points",p.map(m=>`${m.x},${m.y}`).join(" ")).attr("class",`radarCurve-${u}`)})}c(L,"drawCurves");function T(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}c(T,"relativeRadius");function S(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<e;s++){const i=a[(s-1+e)%e],l=a[s],n=a[(s+1)%e],o=a[(s+2)%e],d={x:l.x+(n.x-i.x)*t,y:l.y+(n.y-i.y)*t},u={x:n.x-(o.x-l.x)*t,y:n.y-(o.y-l.y)*t};r+=` C${d.x},${d.y} ${u.x},${u.y} ${n.x},${n.y}`}return`${r} Z`}c(S,"closedRoundCurve");function k(a,t,e,r){if(!e)return;const s=(r.width/2+r.marginRight)*3/4,i=-(r.height/2+r.marginTop)*3/4,l=20;t.forEach((n,o)=>{const d=a.append("g").attr("transform",`translate(${s}, ${i+o*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${o}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}c(k,"drawLegend");var ot={draw:at},it=c((a,t)=>{let e="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];e+=`
1
+ import{p as I}from"./chunk-JWPE2WC7-Bf4pFlIJ.js";import{s as _,g as F,p as D,o as E,a as P,b as z,_ as c,D as G,q as B,A as w,B as W,y as C,l as b,F as V,d as H}from"./index-DObGLuCI.js";import{p as j}from"./cynefin-OW5HDTMX-BBLugbYz.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./index-CyZxCTSq.js";import"./dayjs.min-u3zuoSR8.js";import"./fastdom-promised-Cw4_bL92.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";var x={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},y=32,A={axes:[],curves:[],options:x},g=structuredClone(A),U=W.radar,X=c(()=>w({...U,...C().radar}),"getConfig"),M=c(()=>g.axes,"getAxes"),q=c(()=>g.curves,"getCurves"),K=c(()=>g.options,"getOptions"),N=c(a=>{g.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),Y=c(a=>{g.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:Z(t.entries)}))},"setCurves"),Z=c(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=M();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>s.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),J=c(a=>{const t=a.reduce((e,r)=>(e[r.name]=r,e),{});g.options={showLegend:t.showLegend?.value??x.showLegend,ticks:t.ticks?.value??x.ticks,max:t.max?.value??x.max,min:t.min?.value??x.min,graticule:t.graticule?.value??x.graticule},g.options.ticks>y&&(b.warn(`Radar diagram ticks (${g.options.ticks}) exceeds maximum allowed (${y}). Using ${y} instead.`),g.options.ticks=y)},"setOptions"),Q=c(()=>{B(),g=structuredClone(A)},"clear"),$={getAxes:M,getCurves:q,getOptions:K,setAxes:N,setCurves:Y,setOptions:J,getConfig:X,clear:Q,setAccTitle:z,getAccTitle:P,setDiagramTitle:E,getDiagramTitle:D,getAccDescription:F,setAccDescription:_},tt=c(a=>{I(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),et={parse:c(async a=>{const t=await j("radar",a);b.debug(t),tt(t)},"parse")},at=c((a,t,e,r)=>{const s=r.db,i=s.getAxes(),l=s.getCurves(),n=s.getOptions(),o=s.getConfig(),d=s.getDiagramTitle(),u=G(t),p=rt(u,o),m=n.max??Math.max(...l.map(f=>Math.max(...f.entries))),h=n.min,v=Math.min(o.width,o.height)/2;st(p,i,v,n.ticks,n.graticule),nt(p,i,v,o),L(p,i,l,h,m,n.graticule,o),k(p,l,n.showLegend,o),p.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),rt=c((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return H(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`).attr("overflow","visible"),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),st=c((a,t,e,r,s)=>{if(s==="circle")for(let i=0;i<r;i++){const l=e*(i+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(s==="polygon"){const i=t.length;for(let l=0;l<r;l++){const n=e*(l+1)/r,o=t.map((d,u)=>{const p=2*u*Math.PI/i-Math.PI/2,m=n*Math.cos(p),h=n*Math.sin(p);return`${m},${h}`}).join(" ");a.append("polygon").attr("points",o).attr("class","radarGraticule")}}},"drawGraticule"),nt=c((a,t,e,r)=>{const s=t.length;for(let i=0;i<s;i++){const l=t[i].label,n=2*i*Math.PI/s-Math.PI/2,o=Math.cos(n),d=Math.sin(n);a.append("line").attr("x1",0).attr("y1",0).attr("x2",e*r.axisScaleFactor*o).attr("y2",e*r.axisScaleFactor*d).attr("class","radarAxisLine");const u=o>.01?"start":o<-.01?"end":"middle",p=d>.01?"hanging":d<-.01?"auto":"central",m=4;a.append("text").text(l).attr("x",e*r.axisLabelFactor*o+m*o).attr("y",e*r.axisLabelFactor*d+m*d).attr("text-anchor",u).attr("dominant-baseline",p).attr("class","radarAxisLabel")}},"drawAxes");function L(a,t,e,r,s,i,l){const n=t.length,o=Math.min(l.width,l.height)/2;e.forEach((d,u)=>{if(d.entries.length!==n)return;const p=d.entries.map((m,h)=>{const v=2*Math.PI*h/n-Math.PI/2,f=T(m,r,s,o),O=f*Math.cos(v),R=f*Math.sin(v);return{x:O,y:R}});i==="circle"?a.append("path").attr("d",S(p,l.curveTension)).attr("class",`radarCurve-${u}`):i==="polygon"&&a.append("polygon").attr("points",p.map(m=>`${m.x},${m.y}`).join(" ")).attr("class",`radarCurve-${u}`)})}c(L,"drawCurves");function T(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}c(T,"relativeRadius");function S(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<e;s++){const i=a[(s-1+e)%e],l=a[s],n=a[(s+1)%e],o=a[(s+2)%e],d={x:l.x+(n.x-i.x)*t,y:l.y+(n.y-i.y)*t},u={x:n.x-(o.x-l.x)*t,y:n.y-(o.y-l.y)*t};r+=` C${d.x},${d.y} ${u.x},${u.y} ${n.x},${n.y}`}return`${r} Z`}c(S,"closedRoundCurve");function k(a,t,e,r){if(!e)return;const s=(r.width/2+r.marginRight)*3/4,i=-(r.height/2+r.marginTop)*3/4,l=20;t.forEach((n,o)=>{const d=a.append("g").attr("transform",`translate(${s}, ${i+o*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${o}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}c(k,"drawLegend");var ot={draw:at},it=c((a,t)=>{let e="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];e+=`
2
2
  .radarCurve-${r} {
3
3
  color: ${s};
4
4
  fill: ${s};
@@ -1,4 +1,4 @@
1
- import{p as I}from"./chunk-JWPE2WC7-QIDUQRBr.js";import{s as _,g as F,p as D,o as E,a as P,b as z,_ as c,D as G,q as B,A as w,y as C,B as W,l as b,F as V,d as H}from"./mermaid.core-Dkoaa-_D.js";import{p as j}from"./cynefin-OW5HDTMX-BVK0_S--.js";import"../datalayer-app-main.js";import"./index-CyZxCTSq.js";import"./dayjs.min-u3zuoSR8.js";import"./fastdom-promised-Cw4_bL92.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";var x={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},y=32,A={axes:[],curves:[],options:x},g=structuredClone(A),U=W.radar,X=c(()=>w({...U,...C().radar}),"getConfig"),M=c(()=>g.axes,"getAxes"),q=c(()=>g.curves,"getCurves"),K=c(()=>g.options,"getOptions"),N=c(a=>{g.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),Y=c(a=>{g.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:Z(t.entries)}))},"setCurves"),Z=c(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=M();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>s.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),J=c(a=>{const t=a.reduce((e,r)=>(e[r.name]=r,e),{});g.options={showLegend:t.showLegend?.value??x.showLegend,ticks:t.ticks?.value??x.ticks,max:t.max?.value??x.max,min:t.min?.value??x.min,graticule:t.graticule?.value??x.graticule},g.options.ticks>y&&(b.warn(`Radar diagram ticks (${g.options.ticks}) exceeds maximum allowed (${y}). Using ${y} instead.`),g.options.ticks=y)},"setOptions"),Q=c(()=>{B(),g=structuredClone(A)},"clear"),$={getAxes:M,getCurves:q,getOptions:K,setAxes:N,setCurves:Y,setOptions:J,getConfig:X,clear:Q,setAccTitle:z,getAccTitle:P,setDiagramTitle:E,getDiagramTitle:D,getAccDescription:F,setAccDescription:_},tt=c(a=>{I(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),et={parse:c(async a=>{const t=await j("radar",a);b.debug(t),tt(t)},"parse")},at=c((a,t,e,r)=>{const s=r.db,i=s.getAxes(),l=s.getCurves(),n=s.getOptions(),o=s.getConfig(),d=s.getDiagramTitle(),u=G(t),p=rt(u,o),m=n.max??Math.max(...l.map(f=>Math.max(...f.entries))),h=n.min,v=Math.min(o.width,o.height)/2;st(p,i,v,n.ticks,n.graticule),nt(p,i,v,o),L(p,i,l,h,m,n.graticule,o),k(p,l,n.showLegend,o),p.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),rt=c((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return H(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`).attr("overflow","visible"),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),st=c((a,t,e,r,s)=>{if(s==="circle")for(let i=0;i<r;i++){const l=e*(i+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(s==="polygon"){const i=t.length;for(let l=0;l<r;l++){const n=e*(l+1)/r,o=t.map((d,u)=>{const p=2*u*Math.PI/i-Math.PI/2,m=n*Math.cos(p),h=n*Math.sin(p);return`${m},${h}`}).join(" ");a.append("polygon").attr("points",o).attr("class","radarGraticule")}}},"drawGraticule"),nt=c((a,t,e,r)=>{const s=t.length;for(let i=0;i<s;i++){const l=t[i].label,n=2*i*Math.PI/s-Math.PI/2,o=Math.cos(n),d=Math.sin(n);a.append("line").attr("x1",0).attr("y1",0).attr("x2",e*r.axisScaleFactor*o).attr("y2",e*r.axisScaleFactor*d).attr("class","radarAxisLine");const u=o>.01?"start":o<-.01?"end":"middle",p=d>.01?"hanging":d<-.01?"auto":"central",m=4;a.append("text").text(l).attr("x",e*r.axisLabelFactor*o+m*o).attr("y",e*r.axisLabelFactor*d+m*d).attr("text-anchor",u).attr("dominant-baseline",p).attr("class","radarAxisLabel")}},"drawAxes");function L(a,t,e,r,s,i,l){const n=t.length,o=Math.min(l.width,l.height)/2;e.forEach((d,u)=>{if(d.entries.length!==n)return;const p=d.entries.map((m,h)=>{const v=2*Math.PI*h/n-Math.PI/2,f=T(m,r,s,o),O=f*Math.cos(v),R=f*Math.sin(v);return{x:O,y:R}});i==="circle"?a.append("path").attr("d",S(p,l.curveTension)).attr("class",`radarCurve-${u}`):i==="polygon"&&a.append("polygon").attr("points",p.map(m=>`${m.x},${m.y}`).join(" ")).attr("class",`radarCurve-${u}`)})}c(L,"drawCurves");function T(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}c(T,"relativeRadius");function S(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<e;s++){const i=a[(s-1+e)%e],l=a[s],n=a[(s+1)%e],o=a[(s+2)%e],d={x:l.x+(n.x-i.x)*t,y:l.y+(n.y-i.y)*t},u={x:n.x-(o.x-l.x)*t,y:n.y-(o.y-l.y)*t};r+=` C${d.x},${d.y} ${u.x},${u.y} ${n.x},${n.y}`}return`${r} Z`}c(S,"closedRoundCurve");function k(a,t,e,r){if(!e)return;const s=(r.width/2+r.marginRight)*3/4,i=-(r.height/2+r.marginTop)*3/4,l=20;t.forEach((n,o)=>{const d=a.append("g").attr("transform",`translate(${s}, ${i+o*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${o}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}c(k,"drawLegend");var ot={draw:at},it=c((a,t)=>{let e="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];e+=`
1
+ import{p as I}from"./chunk-JWPE2WC7-Cq6Q947j.js";import{s as _,g as F,p as D,o as E,a as P,b as z,_ as c,D as G,q as B,A as w,y as C,B as W,l as b,F as V,d as H}from"./mermaid.core-Dd-D7tJ4.js";import{p as j}from"./cynefin-OW5HDTMX-BVK0_S--.js";import"../datalayer-app-main.js";import"./index-CyZxCTSq.js";import"./dayjs.min-u3zuoSR8.js";import"./fastdom-promised-Cw4_bL92.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";var x={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},y=32,A={axes:[],curves:[],options:x},g=structuredClone(A),U=W.radar,X=c(()=>w({...U,...C().radar}),"getConfig"),M=c(()=>g.axes,"getAxes"),q=c(()=>g.curves,"getCurves"),K=c(()=>g.options,"getOptions"),N=c(a=>{g.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),Y=c(a=>{g.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:Z(t.entries)}))},"setCurves"),Z=c(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=M();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>s.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),J=c(a=>{const t=a.reduce((e,r)=>(e[r.name]=r,e),{});g.options={showLegend:t.showLegend?.value??x.showLegend,ticks:t.ticks?.value??x.ticks,max:t.max?.value??x.max,min:t.min?.value??x.min,graticule:t.graticule?.value??x.graticule},g.options.ticks>y&&(b.warn(`Radar diagram ticks (${g.options.ticks}) exceeds maximum allowed (${y}). Using ${y} instead.`),g.options.ticks=y)},"setOptions"),Q=c(()=>{B(),g=structuredClone(A)},"clear"),$={getAxes:M,getCurves:q,getOptions:K,setAxes:N,setCurves:Y,setOptions:J,getConfig:X,clear:Q,setAccTitle:z,getAccTitle:P,setDiagramTitle:E,getDiagramTitle:D,getAccDescription:F,setAccDescription:_},tt=c(a=>{I(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),et={parse:c(async a=>{const t=await j("radar",a);b.debug(t),tt(t)},"parse")},at=c((a,t,e,r)=>{const s=r.db,i=s.getAxes(),l=s.getCurves(),n=s.getOptions(),o=s.getConfig(),d=s.getDiagramTitle(),u=G(t),p=rt(u,o),m=n.max??Math.max(...l.map(f=>Math.max(...f.entries))),h=n.min,v=Math.min(o.width,o.height)/2;st(p,i,v,n.ticks,n.graticule),nt(p,i,v,o),L(p,i,l,h,m,n.graticule,o),k(p,l,n.showLegend,o),p.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),rt=c((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return H(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`).attr("overflow","visible"),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),st=c((a,t,e,r,s)=>{if(s==="circle")for(let i=0;i<r;i++){const l=e*(i+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(s==="polygon"){const i=t.length;for(let l=0;l<r;l++){const n=e*(l+1)/r,o=t.map((d,u)=>{const p=2*u*Math.PI/i-Math.PI/2,m=n*Math.cos(p),h=n*Math.sin(p);return`${m},${h}`}).join(" ");a.append("polygon").attr("points",o).attr("class","radarGraticule")}}},"drawGraticule"),nt=c((a,t,e,r)=>{const s=t.length;for(let i=0;i<s;i++){const l=t[i].label,n=2*i*Math.PI/s-Math.PI/2,o=Math.cos(n),d=Math.sin(n);a.append("line").attr("x1",0).attr("y1",0).attr("x2",e*r.axisScaleFactor*o).attr("y2",e*r.axisScaleFactor*d).attr("class","radarAxisLine");const u=o>.01?"start":o<-.01?"end":"middle",p=d>.01?"hanging":d<-.01?"auto":"central",m=4;a.append("text").text(l).attr("x",e*r.axisLabelFactor*o+m*o).attr("y",e*r.axisLabelFactor*d+m*d).attr("text-anchor",u).attr("dominant-baseline",p).attr("class","radarAxisLabel")}},"drawAxes");function L(a,t,e,r,s,i,l){const n=t.length,o=Math.min(l.width,l.height)/2;e.forEach((d,u)=>{if(d.entries.length!==n)return;const p=d.entries.map((m,h)=>{const v=2*Math.PI*h/n-Math.PI/2,f=T(m,r,s,o),O=f*Math.cos(v),R=f*Math.sin(v);return{x:O,y:R}});i==="circle"?a.append("path").attr("d",S(p,l.curveTension)).attr("class",`radarCurve-${u}`):i==="polygon"&&a.append("polygon").attr("points",p.map(m=>`${m.x},${m.y}`).join(" ")).attr("class",`radarCurve-${u}`)})}c(L,"drawCurves");function T(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}c(T,"relativeRadius");function S(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<e;s++){const i=a[(s-1+e)%e],l=a[s],n=a[(s+1)%e],o=a[(s+2)%e],d={x:l.x+(n.x-i.x)*t,y:l.y+(n.y-i.y)*t},u={x:n.x-(o.x-l.x)*t,y:n.y-(o.y-l.y)*t};r+=` C${d.x},${d.y} ${u.x},${u.y} ${n.x},${n.y}`}return`${r} Z`}c(S,"closedRoundCurve");function k(a,t,e,r){if(!e)return;const s=(r.width/2+r.marginRight)*3/4,i=-(r.height/2+r.marginTop)*3/4,l=20;t.forEach((n,o)=>{const d=a.append("g").attr("transform",`translate(${s}, ${i+o*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${o}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}c(k,"drawLegend");var ot={draw:at},it=c((a,t)=>{let e="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];e+=`
2
2
  .radarCurve-${r} {
3
3
  color: ${s};
4
4
  fill: ${s};
@@ -1,4 +1,4 @@
1
- import{p as I}from"./chunk-JWPE2WC7-BGdc9-bH.js";import{s as _,g as F,p as D,o as E,a as P,b as z,_ as c,D as G,q as B,A as w,B as W,y as C,l as b,F as V,d as H}from"./index-CLB4KPZs.js";import{p as j}from"./cynefin-OW5HDTMX-D8Lw5okC.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./index-CyZxCTSq.js";import"./dayjs.min-u3zuoSR8.js";import"./fastdom-promised-Cw4_bL92.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";var x={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},y=32,A={axes:[],curves:[],options:x},g=structuredClone(A),U=W.radar,X=c(()=>w({...U,...C().radar}),"getConfig"),M=c(()=>g.axes,"getAxes"),q=c(()=>g.curves,"getCurves"),K=c(()=>g.options,"getOptions"),N=c(a=>{g.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),Y=c(a=>{g.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:Z(t.entries)}))},"setCurves"),Z=c(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=M();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>s.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),J=c(a=>{const t=a.reduce((e,r)=>(e[r.name]=r,e),{});g.options={showLegend:t.showLegend?.value??x.showLegend,ticks:t.ticks?.value??x.ticks,max:t.max?.value??x.max,min:t.min?.value??x.min,graticule:t.graticule?.value??x.graticule},g.options.ticks>y&&(b.warn(`Radar diagram ticks (${g.options.ticks}) exceeds maximum allowed (${y}). Using ${y} instead.`),g.options.ticks=y)},"setOptions"),Q=c(()=>{B(),g=structuredClone(A)},"clear"),$={getAxes:M,getCurves:q,getOptions:K,setAxes:N,setCurves:Y,setOptions:J,getConfig:X,clear:Q,setAccTitle:z,getAccTitle:P,setDiagramTitle:E,getDiagramTitle:D,getAccDescription:F,setAccDescription:_},tt=c(a=>{I(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),et={parse:c(async a=>{const t=await j("radar",a);b.debug(t),tt(t)},"parse")},at=c((a,t,e,r)=>{const s=r.db,i=s.getAxes(),l=s.getCurves(),n=s.getOptions(),o=s.getConfig(),d=s.getDiagramTitle(),u=G(t),p=rt(u,o),m=n.max??Math.max(...l.map(f=>Math.max(...f.entries))),h=n.min,v=Math.min(o.width,o.height)/2;st(p,i,v,n.ticks,n.graticule),nt(p,i,v,o),L(p,i,l,h,m,n.graticule,o),k(p,l,n.showLegend,o),p.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),rt=c((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return H(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`).attr("overflow","visible"),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),st=c((a,t,e,r,s)=>{if(s==="circle")for(let i=0;i<r;i++){const l=e*(i+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(s==="polygon"){const i=t.length;for(let l=0;l<r;l++){const n=e*(l+1)/r,o=t.map((d,u)=>{const p=2*u*Math.PI/i-Math.PI/2,m=n*Math.cos(p),h=n*Math.sin(p);return`${m},${h}`}).join(" ");a.append("polygon").attr("points",o).attr("class","radarGraticule")}}},"drawGraticule"),nt=c((a,t,e,r)=>{const s=t.length;for(let i=0;i<s;i++){const l=t[i].label,n=2*i*Math.PI/s-Math.PI/2,o=Math.cos(n),d=Math.sin(n);a.append("line").attr("x1",0).attr("y1",0).attr("x2",e*r.axisScaleFactor*o).attr("y2",e*r.axisScaleFactor*d).attr("class","radarAxisLine");const u=o>.01?"start":o<-.01?"end":"middle",p=d>.01?"hanging":d<-.01?"auto":"central",m=4;a.append("text").text(l).attr("x",e*r.axisLabelFactor*o+m*o).attr("y",e*r.axisLabelFactor*d+m*d).attr("text-anchor",u).attr("dominant-baseline",p).attr("class","radarAxisLabel")}},"drawAxes");function L(a,t,e,r,s,i,l){const n=t.length,o=Math.min(l.width,l.height)/2;e.forEach((d,u)=>{if(d.entries.length!==n)return;const p=d.entries.map((m,h)=>{const v=2*Math.PI*h/n-Math.PI/2,f=T(m,r,s,o),O=f*Math.cos(v),R=f*Math.sin(v);return{x:O,y:R}});i==="circle"?a.append("path").attr("d",S(p,l.curveTension)).attr("class",`radarCurve-${u}`):i==="polygon"&&a.append("polygon").attr("points",p.map(m=>`${m.x},${m.y}`).join(" ")).attr("class",`radarCurve-${u}`)})}c(L,"drawCurves");function T(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}c(T,"relativeRadius");function S(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<e;s++){const i=a[(s-1+e)%e],l=a[s],n=a[(s+1)%e],o=a[(s+2)%e],d={x:l.x+(n.x-i.x)*t,y:l.y+(n.y-i.y)*t},u={x:n.x-(o.x-l.x)*t,y:n.y-(o.y-l.y)*t};r+=` C${d.x},${d.y} ${u.x},${u.y} ${n.x},${n.y}`}return`${r} Z`}c(S,"closedRoundCurve");function k(a,t,e,r){if(!e)return;const s=(r.width/2+r.marginRight)*3/4,i=-(r.height/2+r.marginTop)*3/4,l=20;t.forEach((n,o)=>{const d=a.append("g").attr("transform",`translate(${s}, ${i+o*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${o}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}c(k,"drawLegend");var ot={draw:at},it=c((a,t)=>{let e="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];e+=`
1
+ import{p as I}from"./chunk-JWPE2WC7-BVXd-ICe.js";import{s as _,g as F,p as D,o as E,a as P,b as z,_ as c,D as G,q as B,A as w,B as W,y as C,l as b,F as V,d as H}from"./index-Df2MkvAW.js";import{p as j}from"./cynefin-OW5HDTMX-D8Lw5okC.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./index-CyZxCTSq.js";import"./dayjs.min-u3zuoSR8.js";import"./fastdom-promised-Cw4_bL92.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";var x={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},y=32,A={axes:[],curves:[],options:x},g=structuredClone(A),U=W.radar,X=c(()=>w({...U,...C().radar}),"getConfig"),M=c(()=>g.axes,"getAxes"),q=c(()=>g.curves,"getCurves"),K=c(()=>g.options,"getOptions"),N=c(a=>{g.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),Y=c(a=>{g.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:Z(t.entries)}))},"setCurves"),Z=c(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=M();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>s.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),J=c(a=>{const t=a.reduce((e,r)=>(e[r.name]=r,e),{});g.options={showLegend:t.showLegend?.value??x.showLegend,ticks:t.ticks?.value??x.ticks,max:t.max?.value??x.max,min:t.min?.value??x.min,graticule:t.graticule?.value??x.graticule},g.options.ticks>y&&(b.warn(`Radar diagram ticks (${g.options.ticks}) exceeds maximum allowed (${y}). Using ${y} instead.`),g.options.ticks=y)},"setOptions"),Q=c(()=>{B(),g=structuredClone(A)},"clear"),$={getAxes:M,getCurves:q,getOptions:K,setAxes:N,setCurves:Y,setOptions:J,getConfig:X,clear:Q,setAccTitle:z,getAccTitle:P,setDiagramTitle:E,getDiagramTitle:D,getAccDescription:F,setAccDescription:_},tt=c(a=>{I(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),et={parse:c(async a=>{const t=await j("radar",a);b.debug(t),tt(t)},"parse")},at=c((a,t,e,r)=>{const s=r.db,i=s.getAxes(),l=s.getCurves(),n=s.getOptions(),o=s.getConfig(),d=s.getDiagramTitle(),u=G(t),p=rt(u,o),m=n.max??Math.max(...l.map(f=>Math.max(...f.entries))),h=n.min,v=Math.min(o.width,o.height)/2;st(p,i,v,n.ticks,n.graticule),nt(p,i,v,o),L(p,i,l,h,m,n.graticule,o),k(p,l,n.showLegend,o),p.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),rt=c((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return H(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`).attr("overflow","visible"),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),st=c((a,t,e,r,s)=>{if(s==="circle")for(let i=0;i<r;i++){const l=e*(i+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(s==="polygon"){const i=t.length;for(let l=0;l<r;l++){const n=e*(l+1)/r,o=t.map((d,u)=>{const p=2*u*Math.PI/i-Math.PI/2,m=n*Math.cos(p),h=n*Math.sin(p);return`${m},${h}`}).join(" ");a.append("polygon").attr("points",o).attr("class","radarGraticule")}}},"drawGraticule"),nt=c((a,t,e,r)=>{const s=t.length;for(let i=0;i<s;i++){const l=t[i].label,n=2*i*Math.PI/s-Math.PI/2,o=Math.cos(n),d=Math.sin(n);a.append("line").attr("x1",0).attr("y1",0).attr("x2",e*r.axisScaleFactor*o).attr("y2",e*r.axisScaleFactor*d).attr("class","radarAxisLine");const u=o>.01?"start":o<-.01?"end":"middle",p=d>.01?"hanging":d<-.01?"auto":"central",m=4;a.append("text").text(l).attr("x",e*r.axisLabelFactor*o+m*o).attr("y",e*r.axisLabelFactor*d+m*d).attr("text-anchor",u).attr("dominant-baseline",p).attr("class","radarAxisLabel")}},"drawAxes");function L(a,t,e,r,s,i,l){const n=t.length,o=Math.min(l.width,l.height)/2;e.forEach((d,u)=>{if(d.entries.length!==n)return;const p=d.entries.map((m,h)=>{const v=2*Math.PI*h/n-Math.PI/2,f=T(m,r,s,o),O=f*Math.cos(v),R=f*Math.sin(v);return{x:O,y:R}});i==="circle"?a.append("path").attr("d",S(p,l.curveTension)).attr("class",`radarCurve-${u}`):i==="polygon"&&a.append("polygon").attr("points",p.map(m=>`${m.x},${m.y}`).join(" ")).attr("class",`radarCurve-${u}`)})}c(L,"drawCurves");function T(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}c(T,"relativeRadius");function S(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<e;s++){const i=a[(s-1+e)%e],l=a[s],n=a[(s+1)%e],o=a[(s+2)%e],d={x:l.x+(n.x-i.x)*t,y:l.y+(n.y-i.y)*t},u={x:n.x-(o.x-l.x)*t,y:n.y-(o.y-l.y)*t};r+=` C${d.x},${d.y} ${u.x},${u.y} ${n.x},${n.y}`}return`${r} Z`}c(S,"closedRoundCurve");function k(a,t,e,r){if(!e)return;const s=(r.width/2+r.marginRight)*3/4,i=-(r.height/2+r.marginTop)*3/4,l=20;t.forEach((n,o)=>{const d=a.append("g").attr("transform",`translate(${s}, ${i+o*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${o}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}c(k,"drawLegend");var ot={draw:at},it=c((a,t)=>{let e="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];e+=`
2
2
  .radarCurve-${r} {
3
3
  color: ${s};
4
4
  fill: ${s};
@@ -1,3 +1,3 @@
1
- import{p as re}from"./chunk-JWPE2WC7-QIDUQRBr.js";import{p as oe,o as se,s as de,g as le,a as ce,b as me,_ as o,l as g,c as T,z as ue,q as xe,A as fe,y as M,B as ge,i as y,w as P,a7 as he}from"./mermaid.core-Dkoaa-_D.js";import{p as pe,i as be}from"./cynefin-OW5HDTMX-BVK0_S--.js";import{s as ve}from"./index-CyZxCTSq.js";import"../datalayer-app-main.js";import"./fastdom-promised-Cw4_bL92.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./dayjs.min-u3zuoSR8.js";var $="position frame",D="frame positioned",S="position relation",N="relation positioned",we=o(function(e){g.debug("options str",e)},"setOptions"),ye=o(function(){return{}},"getOptions"),Pe=o(function(){C(),xe()},"clear");function C(){B={}}o(C,"reset");var Se=ge.eventmodeling,ke=o(()=>fe({...Se,...M().eventmodeling}),"getConfig"),B={};function O(){let e=Fe;const{ast:n}=B,t=E();if(!n)throw new Error("No data for EventModel");return n.frames.forEach((i,a)=>{const r=G(i,n.dataEntities,t);e=v(e,{$kind:$,index:a,frame:i,textProps:r});let d;K(i)?(g.debug("source frame",i.sourceFrames),d=n.frames.filter(l=>i.sourceFrames.some(c=>c.$refText===l.name)),d.forEach(l=>{e=v(e,{$kind:S,index:a,frame:i,sourceFrame:l})})):e=v(e,{$kind:S,index:a,frame:i})}),e={...e,sortedSwimlanesArray:A(e.swimlanes)},e}o(O,"getState");function I(e){B.ast=e}o(I,"setAst");var s={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function E(){return s}o(E,"getDiagramProps");var Fe={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function W(e){const n=e.split(".");if(n.length===2)return n[0]}o(W,"extractNamespace");function H(e){const n=e.split(".");return n.length===2?n[1]:e}o(H,"extractName");function U(e,n){if(!(!n||n.length===0))return Object.values(e).find(t=>t.namespace===n)}o(U,"findSwimlaneByNamespace");function b(e,n,t){return Math.max(n,...Object.keys(e).filter(i=>{const a=Number.parseInt(i);return a>n&&a<t}).map(i=>Number.parseInt(i)))+1}o(b,"findNextAvailableIndex");function _(e,n){const t=W(e.entityIdentifier),i=U(n,t);switch(e.modelEntityType){case"ui":case"pcr":case"processor":return i?{index:i.index,label:i.namespace||s.labelUiAutomation}:t?{index:b(n,0,100),label:s.labelUiAutomationPrefix+t}:{index:0,label:s.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":return i?{index:i.index,label:i.namespace||s.labelCommandReadModel}:t?{index:b(n,100,200),label:s.labelCommandReadModelPrefix+t}:{index:100,label:s.labelCommandReadModel};default:return i?{index:i.index,label:i.namespace||s.labelEvents}:t?{index:b(n,200,300),label:s.labelEventsPrefix+t}:{index:200,label:s.labelEvents}}}o(_,"calculateSwimlaneProps");function L(e){const{themeVariables:n}=M();switch(e.modelEntityType){case"ui":return{fill:n.emUiFill??"white",stroke:n.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:n.emProcessorFill??"#edb3f6",stroke:n.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:n.emReadModelFill??"#d3f1a2",stroke:n.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:n.emCommandFill??"#bcd6fe",stroke:n.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:n.emEventFill??"#ffb778",stroke:n.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}o(L,"calculateEntityVisualProps");function G(e,n,t){const i=M(),a=y(H(e.entityIdentifier)??"",i);let r;const d={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"<br/>"};let c=`<b>${P(a,t.textMaxWidth,d)}</b>`;if(e.dataInlineValue&&(r=e.dataInlineValue,r=r.substring(r.indexOf("{")+1),r=r.substring(0,r.lastIndexOf("}")-1),r=y(r,i),r=P(r,t.textMaxWidth,d),r=r.replaceAll(" ","&nbsp;")),e.dataReference){const p=n.find(w=>w.name===e.dataReference?.$refText);p&&(r=p.dataBlockValue,r=r.substring(r.indexOf(`{
1
+ import{p as re}from"./chunk-JWPE2WC7-Cq6Q947j.js";import{p as oe,o as se,s as de,g as le,a as ce,b as me,_ as o,l as g,c as T,z as ue,q as xe,A as fe,y as M,B as ge,i as y,w as P,a7 as he}from"./mermaid.core-Dd-D7tJ4.js";import{p as pe,i as be}from"./cynefin-OW5HDTMX-BVK0_S--.js";import{s as ve}from"./index-CyZxCTSq.js";import"../datalayer-app-main.js";import"./fastdom-promised-Cw4_bL92.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./dayjs.min-u3zuoSR8.js";var $="position frame",D="frame positioned",S="position relation",N="relation positioned",we=o(function(e){g.debug("options str",e)},"setOptions"),ye=o(function(){return{}},"getOptions"),Pe=o(function(){C(),xe()},"clear");function C(){B={}}o(C,"reset");var Se=ge.eventmodeling,ke=o(()=>fe({...Se,...M().eventmodeling}),"getConfig"),B={};function O(){let e=Fe;const{ast:n}=B,t=E();if(!n)throw new Error("No data for EventModel");return n.frames.forEach((i,a)=>{const r=G(i,n.dataEntities,t);e=v(e,{$kind:$,index:a,frame:i,textProps:r});let d;K(i)?(g.debug("source frame",i.sourceFrames),d=n.frames.filter(l=>i.sourceFrames.some(c=>c.$refText===l.name)),d.forEach(l=>{e=v(e,{$kind:S,index:a,frame:i,sourceFrame:l})})):e=v(e,{$kind:S,index:a,frame:i})}),e={...e,sortedSwimlanesArray:A(e.swimlanes)},e}o(O,"getState");function I(e){B.ast=e}o(I,"setAst");var s={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function E(){return s}o(E,"getDiagramProps");var Fe={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function W(e){const n=e.split(".");if(n.length===2)return n[0]}o(W,"extractNamespace");function H(e){const n=e.split(".");return n.length===2?n[1]:e}o(H,"extractName");function U(e,n){if(!(!n||n.length===0))return Object.values(e).find(t=>t.namespace===n)}o(U,"findSwimlaneByNamespace");function b(e,n,t){return Math.max(n,...Object.keys(e).filter(i=>{const a=Number.parseInt(i);return a>n&&a<t}).map(i=>Number.parseInt(i)))+1}o(b,"findNextAvailableIndex");function _(e,n){const t=W(e.entityIdentifier),i=U(n,t);switch(e.modelEntityType){case"ui":case"pcr":case"processor":return i?{index:i.index,label:i.namespace||s.labelUiAutomation}:t?{index:b(n,0,100),label:s.labelUiAutomationPrefix+t}:{index:0,label:s.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":return i?{index:i.index,label:i.namespace||s.labelCommandReadModel}:t?{index:b(n,100,200),label:s.labelCommandReadModelPrefix+t}:{index:100,label:s.labelCommandReadModel};default:return i?{index:i.index,label:i.namespace||s.labelEvents}:t?{index:b(n,200,300),label:s.labelEventsPrefix+t}:{index:200,label:s.labelEvents}}}o(_,"calculateSwimlaneProps");function L(e){const{themeVariables:n}=M();switch(e.modelEntityType){case"ui":return{fill:n.emUiFill??"white",stroke:n.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:n.emProcessorFill??"#edb3f6",stroke:n.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:n.emReadModelFill??"#d3f1a2",stroke:n.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:n.emCommandFill??"#bcd6fe",stroke:n.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:n.emEventFill??"#ffb778",stroke:n.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}o(L,"calculateEntityVisualProps");function G(e,n,t){const i=M(),a=y(H(e.entityIdentifier)??"",i);let r;const d={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"<br/>"};let c=`<b>${P(a,t.textMaxWidth,d)}</b>`;if(e.dataInlineValue&&(r=e.dataInlineValue,r=r.substring(r.indexOf("{")+1),r=r.substring(0,r.lastIndexOf("}")-1),r=y(r,i),r=P(r,t.textMaxWidth,d),r=r.replaceAll(" ","&nbsp;")),e.dataReference){const p=n.find(w=>w.name===e.dataReference?.$refText);p&&(r=p.dataBlockValue,r=r.substring(r.indexOf(`{
2
2
  `)+2),r=r.substring(0,r.lastIndexOf("}")-1),r=y(r,i),r=P(r,t.textMaxWidth,d),r=r.replaceAll(" ","&nbsp;"),r+="<br/>")}const m=r!==void 0;m&&(c+=`<br/><br/><code style="text-align: left; display: block;max-width:${t.textMaxWidth}px">${r}</code>`);const x={fontSize:d.fontSize,fontWeight:d.fontWeight,fontFamily:d.fontFamily},u=he(c,x),h=m?u.width/3:u.width,f={content:c,width:h,height:u.height};return g.debug(`[${e.name}] ${e.entityIdentifier} text`,f),f}o(G,"calculateTextProps");function V(e,n){const t=n,i=L(t.frame),a={width:t.textProps.width+2*s.boxTextPadding,height:t.textProps.height+2*s.boxTextPadding};return[{$kind:D,frame:t.frame,index:t.index,visual:i,dimension:a,textProps:t.textProps}]}o(V,"decidePositionFrame");function X(e,n,t){return n===void 0?s.contentStartX:n.index===e.index&&e.r?e.r+s.boxPadding:t===void 0?s.contentStartX:t.r-s.boxOverlap+s.boxPadding}o(X,"calculateX");function j(e,n){const t=[...e.map(i=>i.r),n];return Math.max(...t)}o(j,"calculateMaxRight");function A(e){return Object.values(e).sort((n,t)=>n.index-t.index)}o(A,"sortedSwimlanesArray");function Y(e,n){const t=n,i=_(t.frame,e.swimlanes);let a;i.index in e.swimlanes?a=e.swimlanes[i.index]:a={index:i.index,label:i.label,r:0,y:i.index*s.swimlaneMinHeight+s.swimlaneGap,height:s.swimlaneMinHeight,maxHeight:s.swimlaneMinHeight};const r=e.boxes.length>0?e.boxes[e.boxes.length-1]:void 0,d=e.previousSwimlaneNumber!==void 0?e.swimlanes[e.previousSwimlaneNumber]:void 0,l={width:Math.max(s.boxMinWidth,Math.min(s.boxMaxWidth,t.dimension.width))+2*s.boxPadding,height:Math.max(s.boxMinHeight,Math.min(s.boxMaxHeight,t.dimension.height))+2*s.boxPadding},c=X(a,d,r),m=c+l.width+s.boxPadding,x=j(Object.values(e.swimlanes),m);a.r=c+l.width,a.maxHeight=Math.max(a.maxHeight,l.height),a.height=Math.max(s.swimlaneMinHeight,a.maxHeight)+2*s.swimlanePadding;const u={x:c,y:s.swimlanePadding+a.y,r:m,dimension:l,leftSibling:!1,swimlane:a,visual:t.visual,text:t.textProps.content,frame:t.frame,index:t.index},h={...e,boxes:[...e.boxes,u],swimlanes:{...e.swimlanes,[`${a.index}`]:a},previousSwimlaneNumber:i.index,previousFrame:t.frame,maxR:x},f=A(h.swimlanes);f.length>0&&(f[0].y=0);for(let p=1;p<f.length;p++){const w=f[p],R=f[p-1];w.y=R.y+R.height+s.swimlaneGap}return h}o(Y,"evolveFramePositioned");function z(e,n){return e===0&&n.sourceFrames.length===0}o(z,"isFirstFrame");function K(e){return e.sourceFrames!==void 0&&e.sourceFrames!==null&&e.sourceFrames.length>0}o(K,"hasSourceFrame");function k(e,n){if(n!=null)return e.find(t=>t.frame.name===n.name)}o(k,"findBoxByFrame");function q(e,n,t){if(!(t<0))for(let i=t;i>=0;i--){const a=e[i];if(a.swimlane.index!==n)return a}}o(q,"findBoxByLineIndex");function J(e,n){const t=n;if(be(t.frame)||z(t.index,t.frame))return[];const i=k(e.boxes,t.frame);if(i===void 0)throw new Error(`Target box not found for frame ${t.frame.name}`);let a;return t.sourceFrame?a=k(e.boxes,t.sourceFrame):a=q(e.boxes,i.swimlane.index,t.index-1),a===void 0?[]:[{$kind:N,frame:t.frame,index:t.index,sourceBox:a,targetBox:i}]}o(J,"decidePositionRelation");function Q(e,n){const t=n,i={visual:{fill:"none",stroke:"#000"},source:{x:t.sourceBox.x,y:t.sourceBox.y},target:{x:t.targetBox.x,y:t.targetBox.y},sourceBox:t.sourceBox,targetBox:t.targetBox};return{...e,relations:[...e.relations,i]}}o(Q,"evolveRelationPositioned");var Me={[$]:V,[S]:J},Be={[D]:Y,[N]:Q};function Z(e,n){const t=Me[n.$kind];if(t==null)return[];const i=t(e,n);return g.debug("decided events",i),i}o(Z,"decide");function ee(e,n){const t=n.reduce((i,a)=>{const r=Be[a.$kind];return r==null?i:r(i,a)},e);return g.debug("evolve events",{state:e,newState:t,events:n}),t}o(ee,"evolve");function v(e,n){const t=Z(e,n);return ee(e,t)}o(v,"dispatch");var F={getConfig:ke,setOptions:we,getOptions:ye,clear:Pe,setAccTitle:me,getAccTitle:ce,getAccDescription:le,setAccDescription:de,setDiagramTitle:se,getDiagramTitle:oe,setAst:I,getDiagramProps:E,getState:O},Ee={parse:o(async e=>{const n=await pe("eventmodeling",e);g.debug(n),F.setAst(n),re(n,F)},"parse")},Ae=T(),Re=Ae?.eventmodeling;function te(e,n){return t=>{const i=t.swimlane.y+n.swimlanePadding,a=e.append("g").attr("class","em-box");a.append("rect").attr("x",t.x).attr("y",i).attr("rx","3").attr("width",t.dimension.width).attr("height",t.dimension.height).attr("stroke",t.visual.stroke).attr("fill",t.visual.fill),a.append("foreignObject").attr("x",t.x+n.boxPadding).attr("y",i+10).attr("width",t.dimension.width-2*n.boxPadding).attr("height",t.dimension.height-2*n.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(t.text)}}o(te,"renderD3Box");function ne(e,n){return e>n}o(ne,"dirUpwards");function ie(e,n,t,i){return a=>{const r=a.sourceBox.swimlane.y+n.swimlanePadding,d=a.targetBox.swimlane.y+n.swimlanePadding,l=ne(r,d),c=a.sourceBox.x+a.sourceBox.dimension.width*2/3,m=a.targetBox.x+a.targetBox.dimension.width/3;let x,u;g.debug(`rendering relation up=${l} for `,{sourceBox:a.sourceBox,targetBox:a.targetBox}),l?(x=r,u=d+a.targetBox.dimension.height):(x=r+a.sourceBox.dimension.height,u=d);const h=i.emRelationStroke??a.visual.stroke;e.append("path").attr("class","em-relation").attr("fill",a.visual.fill).attr("stroke",h).attr("stroke-width","1").attr("marker-end",`url(#${t})`).attr("d",`M${c} ${x} L${m} ${u}`)}}o(ie,"renderD3Relation");function ae(e,n,t,i){return a=>{const r=e.append("g").attr("class","em-swimlane"),d=i.emSwimlaneBackgroundOdd??"rgb(250,250,250)",l=i.emSwimlaneBackgroundStroke??"rgb(240,240,240)";r.append("rect").attr("x",0).attr("y",a.y).attr("rx","3").attr("width",n+t.swimlanePadding).attr("height",a.height).attr("fill",d).attr("stroke",l),r.append("text").attr("font-weight",t.swimlaneTextFontWeight).attr("x",30).attr("y",a.y+30).text(a.label)}}o(ae,"renderD3Swimlane");var Te=o(function(e,n,t,i){if(g.debug("in eventmodeling renderer",e+`
3
3
  `,"id:",n,t),!Re)throw new Error("EventModeling config not found");const a=i.db,{themeVariables:r,eventmodeling:d}=T(),l=ve(`[id="${n}"]`),c=a.getDiagramProps(),m=a.getState(),x=`em-arrowhead-${n}`,u=r.emArrowhead??"#000000";m.sortedSwimlanesArray.forEach(ae(l,m.maxR,c,r)),m.boxes.forEach(te(l,c)),m.relations.forEach(ie(l,c,x,r)),l.append("defs").append("marker").attr("id",x).attr("markerWidth","10").attr("markerHeight","7").attr("refX","10").attr("refY","3.5").attr("orient","auto").append("polygon").attr("points","0 0, 10 3.5, 0 7").attr("fill",u),ue(void 0,l,d?.padding??30,d?.useMaxWidth)},"draw"),$e={draw:Te},De=o(e=>"","getStyles"),Ne=De,je={parser:Ee,db:F,renderer:$e,styles:Ne};export{je as diagram};