@datalayer/agent-runtimes 1.6.69 → 1.6.72

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 (304) hide show
  1. package/dist-embed/assets/loro_wasm_bg-DaqV7kEP.wasm +0 -0
  2. package/dist-embed/chunks/{CollapsiblePlugin-C0AB_Bj4.js → CollapsiblePlugin-Cw8Q8IWz.js} +1 -1
  3. package/dist-embed/chunks/{DeckComponent-CcQt_npU.js → DeckComponent-CGTzTPwI.js} +2 -2
  4. package/dist-embed/chunks/{DocumentView-B5kRsgHA.js → DocumentView-BM7pVo1r.js} +1 -1
  5. package/dist-embed/chunks/{EphemeralDocument-D2DiF9bh.js → EphemeralDocument--_i7ghFX.js} +1 -1
  6. package/dist-embed/chunks/{ExcalidrawComponent-fCxGNKCa.js → ExcalidrawComponent-CGM8z5XO.js} +1 -1
  7. package/dist-embed/chunks/{ExcalidrawModal-DKUwcCya.js → ExcalidrawModal-4MXeDi6L.js} +1 -1
  8. package/dist-embed/chunks/{JupyterLexicalExtension-BUzQSBg9.js → JupyterLexicalExtension-BGj3tSI6.js} +21 -21
  9. package/dist-embed/chunks/{NotebookToolSurfaces-CThVCYgT.js → NotebookToolSurfaces-BcUESGXl.js} +1 -1
  10. package/dist-embed/chunks/{Output-B9M8NqG2.js → Output-DePHyrJp.js} +1 -1
  11. package/dist-embed/chunks/{YouTubePlugin-CI2DrYzS.js → YouTubePlugin-CasHY3Io.js} +1 -1
  12. package/dist-embed/chunks/{abnfDiagram-VCTEODGH-B9GjTWkr.js → abnfDiagram-VCTEODGH-BSmEjUJk.js} +1 -1
  13. package/dist-embed/chunks/{abnfDiagram-VCTEODGH-DJgwPoAm.js → abnfDiagram-VCTEODGH-Din4lNdn.js} +1 -1
  14. package/dist-embed/chunks/{abnfDiagram-VCTEODGH-7PVEMC7U.js → abnfDiagram-VCTEODGH-GnaR64st.js} +1 -1
  15. package/dist-embed/chunks/{ar-SA-G6X2FPQ2-wkzoJCis.js → ar-SA-G6X2FPQ2-DxZmaXSr.js} +1 -1
  16. package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-D8l5JMJr.js → architectureDiagram-5GKGNRK7-B0gp8U3r.js} +1 -1
  17. package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-BW58VD3k.js → architectureDiagram-5GKGNRK7-ByAYkSMW.js} +1 -1
  18. package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-DxpQoyfU.js → architectureDiagram-5GKGNRK7-Cy6c9GhS.js} +1 -1
  19. package/dist-embed/chunks/{az-AZ-76LH7QW2-8A2G5Xl3.js → az-AZ-76LH7QW2-D6_hI1qP.js} +1 -1
  20. package/dist-embed/chunks/{bg-BG-XCXSNQG7-STXgrxYv.js → bg-BG-XCXSNQG7-DD3spkPC.js} +1 -1
  21. package/dist-embed/chunks/{blockDiagram-868be97b-BKOxwODo.js → blockDiagram-868be97b-SJGV5uMV.js} +1 -1
  22. package/dist-embed/chunks/{blockDiagram-I7D4REHJ-q5W9Inr2.js → blockDiagram-I7D4REHJ-CJlW5z_T.js} +1 -1
  23. package/dist-embed/chunks/{blockDiagram-I7D4REHJ-CFwtuic_.js → blockDiagram-I7D4REHJ-Clrwi7_Q.js} +1 -1
  24. package/dist-embed/chunks/{blockDiagram-I7D4REHJ-DUgDAcLk.js → blockDiagram-I7D4REHJ-zXh6gZYF.js} +1 -1
  25. package/dist-embed/chunks/{bn-BD-2XOGV67Q-CPLocPzf.js → bn-BD-2XOGV67Q-H0zOOYPr.js} +1 -1
  26. package/dist-embed/chunks/{c4Diagram-3f4bdde3-Qkzgeu7M.js → c4Diagram-3f4bdde3-CXvPU5ga.js} +1 -1
  27. package/dist-embed/chunks/{c4Diagram-7LVT6UL2-CoN7P_Wn.js → c4Diagram-7LVT6UL2-BWQ9xHoN.js} +1 -1
  28. package/dist-embed/chunks/{c4Diagram-7LVT6UL2-B1WiCopu.js → c4Diagram-7LVT6UL2-CZvEIDdH.js} +1 -1
  29. package/dist-embed/chunks/{c4Diagram-7LVT6UL2-i6-qR7Jj.js → c4Diagram-7LVT6UL2-p14SIG7V.js} +1 -1
  30. package/dist-embed/chunks/{ca-ES-6MX7JW3Y-D02os1nv.js → ca-ES-6MX7JW3Y-DQlAuxYC.js} +1 -1
  31. package/dist-embed/chunks/{chunk-2Q5K7J3B-CQc6Ygno.js → chunk-2Q5K7J3B-BkzWX8eg.js} +1 -1
  32. package/dist-embed/chunks/{chunk-2Q5K7J3B-D4B9fHKh.js → chunk-2Q5K7J3B-CWx-QJ0-.js} +1 -1
  33. package/dist-embed/chunks/{chunk-2Q5K7J3B-D-8jYUeu.js → chunk-2Q5K7J3B-DXFGVRZV.js} +1 -1
  34. package/dist-embed/chunks/{chunk-5VM5RSS4-Di16-Nx2.js → chunk-5VM5RSS4-Ciba-ybC.js} +1 -1
  35. package/dist-embed/chunks/{chunk-5VM5RSS4-Czr6x1Cz.js → chunk-5VM5RSS4-DgSzeVg9.js} +1 -1
  36. package/dist-embed/chunks/{chunk-5VM5RSS4-hx-0JzDK.js → chunk-5VM5RSS4-O8p7luYq.js} +1 -1
  37. package/dist-embed/chunks/{chunk-F27PBJKO-Com1kf7o.js → chunk-F27PBJKO-Bo5boRfj.js} +1 -1
  38. package/dist-embed/chunks/{chunk-F27PBJKO-CwU1AhDh.js → chunk-F27PBJKO-BzBvJLmh.js} +1 -1
  39. package/dist-embed/chunks/{chunk-F27PBJKO-DHunCD1V.js → chunk-F27PBJKO-CZHz6AS9.js} +1 -1
  40. package/dist-embed/chunks/{chunk-IMKFNOWR-Dp2FeQer.js → chunk-IMKFNOWR-BJR6rkFo.js} +1 -1
  41. package/dist-embed/chunks/{chunk-IMKFNOWR-nKUPgIMh.js → chunk-IMKFNOWR-Csfu1kFU.js} +1 -1
  42. package/dist-embed/chunks/{chunk-IMKFNOWR-YY0LZ7sH.js → chunk-IMKFNOWR-DODKl-4z.js} +1 -1
  43. package/dist-embed/chunks/{chunk-JWPE2WC7-DbjVY_PP.js → chunk-JWPE2WC7-BVXd-ICe.js} +1 -1
  44. package/dist-embed/chunks/{chunk-JWPE2WC7-ExuCJCuM.js → chunk-JWPE2WC7-Bf4pFlIJ.js} +1 -1
  45. package/dist-embed/chunks/{chunk-JWPE2WC7-DnRzfMcA.js → chunk-JWPE2WC7-nWjEvJWR.js} +1 -1
  46. package/dist-embed/chunks/{chunk-POPQ4Y6H-BCGee997.js → chunk-POPQ4Y6H-DhNnPwZp.js} +1 -1
  47. package/dist-embed/chunks/{chunk-POPQ4Y6H-A9ubErdR.js → chunk-POPQ4Y6H-DsBRlZYP.js} +1 -1
  48. package/dist-embed/chunks/{chunk-POPQ4Y6H-C2JvWF2l.js → chunk-POPQ4Y6H-s1yt1ZtK.js} +1 -1
  49. package/dist-embed/chunks/{chunk-SVP7TREG-C3lpcsoi.js → chunk-SVP7TREG-4yrBA5Q8.js} +1 -1
  50. package/dist-embed/chunks/{chunk-SVP7TREG-B8Ktj5oZ.js → chunk-SVP7TREG-8oKVa2mm.js} +1 -1
  51. package/dist-embed/chunks/{chunk-SVP7TREG-BE6aCPtV.js → chunk-SVP7TREG-CsFEUe5B.js} +1 -1
  52. package/dist-embed/chunks/{chunk-TICWLB2K-DDLH-PY_.js → chunk-TICWLB2K-Br51vTwj.js} +1 -1
  53. package/dist-embed/chunks/{chunk-TICWLB2K-DsF5YXW8.js → chunk-TICWLB2K-CSCMv_QA.js} +1 -1
  54. package/dist-embed/chunks/{chunk-TICWLB2K-B41t7_ZH.js → chunk-TICWLB2K-InZQ5ZEH.js} +1 -1
  55. package/dist-embed/chunks/{chunk-XXDRQBXY-CrWRft2B.js → chunk-XXDRQBXY-B76itibr.js} +1 -1
  56. package/dist-embed/chunks/{chunk-XXDRQBXY-CL2NCW2M.js → chunk-XXDRQBXY-Y8pSpMzF.js} +1 -1
  57. package/dist-embed/chunks/{chunk-XXDRQBXY-WLyvY2FY.js → chunk-XXDRQBXY-sm2AIgJ5.js} +1 -1
  58. package/dist-embed/chunks/{classDiagram-ZZMXUADV-BboixpPJ.js → classDiagram-ZZMXUADV-BjEOw29S.js} +1 -1
  59. package/dist-embed/chunks/{classDiagram-ZZMXUADV-Bai0caPx.js → classDiagram-ZZMXUADV-CoxSb8Y6.js} +1 -1
  60. package/dist-embed/chunks/{classDiagram-ZZMXUADV-D8Y0xhOJ.js → classDiagram-ZZMXUADV-G9WI_1Zg.js} +1 -1
  61. package/dist-embed/chunks/{classDiagram-f62afe4f-DRLHRAsk.js → classDiagram-f62afe4f-C7V9AhQG.js} +1 -1
  62. package/dist-embed/chunks/{classDiagram-v2-604399ef-D5Ei8Rzt.js → classDiagram-v2-604399ef-D5fT6Dr7.js} +1 -1
  63. package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-BboixpPJ.js → classDiagram-v2-VYDZK3BY-BjEOw29S.js} +1 -1
  64. package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-Bai0caPx.js → classDiagram-v2-VYDZK3BY-CoxSb8Y6.js} +1 -1
  65. package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-D8Y0xhOJ.js → classDiagram-v2-VYDZK3BY-G9WI_1Zg.js} +1 -1
  66. package/dist-embed/chunks/{cose-bilkent-JH36ORCC-C3tGcmmE.js → cose-bilkent-JH36ORCC-3hKxz2TJ.js} +1 -1
  67. package/dist-embed/chunks/{cose-bilkent-JH36ORCC-B8MfWP5z.js → cose-bilkent-JH36ORCC-C73aLaB-.js} +1 -1
  68. package/dist-embed/chunks/{cose-bilkent-JH36ORCC-BTrzk8VB.js → cose-bilkent-JH36ORCC-DCtKiRmD.js} +1 -1
  69. package/dist-embed/chunks/{createText-aed3d8b3-BtTc5fFM.js → createText-aed3d8b3-BW8KnfYh.js} +1 -1
  70. package/dist-embed/chunks/{cs-CZ-2BRQDIVT-DWfsXoh1.js → cs-CZ-2BRQDIVT-DF0QlWYl.js} +1 -1
  71. package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-BIHs-uIN.js → cynefinDiagram-5FMLGOSQ-BSwaTAfL.js} +1 -1
  72. package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-y0sLtWDh.js → cynefinDiagram-5FMLGOSQ-DLyDkFEh.js} +1 -1
  73. package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-CAVA9RUT.js → cynefinDiagram-5FMLGOSQ-NWammrfO.js} +1 -1
  74. package/dist-embed/chunks/{d3-interpolate-BVJucgkN.js → d3-interpolate-DUiJmnH4.js} +1 -1
  75. package/dist-embed/chunks/{d3-scale-B-wnA6MO.js → d3-scale-CKQch2Pp.js} +1 -1
  76. package/dist-embed/chunks/{d3-scale-chromatic-BM1YEV1K.js → d3-scale-chromatic-CYKVeOb7.js} +1 -1
  77. package/dist-embed/chunks/{da-DK-5WZEPLOC-DzG_CHLt.js → da-DK-5WZEPLOC-DZpohvgg.js} +1 -1
  78. package/dist-embed/chunks/{dagre-GXQ25YYZ-CDlWKdpD.js → dagre-GXQ25YYZ-CPu-St26.js} +1 -1
  79. package/dist-embed/chunks/{dagre-GXQ25YYZ-DS6b7B-9.js → dagre-GXQ25YYZ-DTWZ8vY1.js} +1 -1
  80. package/dist-embed/chunks/{dagre-GXQ25YYZ-B0H87EXG.js → dagre-GXQ25YYZ-ZuXkHh9P.js} +1 -1
  81. package/dist-embed/chunks/{de-DE-XR44H4JA-Cp9k5PP7.js → de-DE-XR44H4JA-BcvwLNFI.js} +1 -1
  82. package/dist-embed/chunks/{diagram-S7CK7UJ4-drVMHAtR.js → diagram-S7CK7UJ4-ERKr1j6v.js} +1 -1
  83. package/dist-embed/chunks/{diagram-S7CK7UJ4-JYsynKKF.js → diagram-S7CK7UJ4-RBcSDktx.js} +1 -1
  84. package/dist-embed/chunks/{diagram-S7CK7UJ4-CvKuSlIh.js → diagram-S7CK7UJ4-ewBgYmRN.js} +1 -1
  85. package/dist-embed/chunks/{diagram-UQ7AKVKN-F5Jttmi1.js → diagram-UQ7AKVKN-B-f2Afei.js} +1 -1
  86. package/dist-embed/chunks/{diagram-UQ7AKVKN-Bk4G3y2x.js → diagram-UQ7AKVKN-BQVu3Qe-.js} +1 -1
  87. package/dist-embed/chunks/{diagram-UQ7AKVKN-CKcB931e.js → diagram-UQ7AKVKN-CGNA7gub.js} +1 -1
  88. package/dist-embed/chunks/{diagram-VSXAHHWV-E1aTqHE6.js → diagram-VSXAHHWV-CTQu2IBp.js} +1 -1
  89. package/dist-embed/chunks/{diagram-VSXAHHWV-oD67DEqs.js → diagram-VSXAHHWV-DRVoe_PH.js} +1 -1
  90. package/dist-embed/chunks/{diagram-VSXAHHWV-CBVEfP-1.js → diagram-VSXAHHWV-GkbP6NMy.js} +1 -1
  91. package/dist-embed/chunks/{diagram-VX7I27RA-Pm6ZWSmt.js → diagram-VX7I27RA-B_LkfTnq.js} +1 -1
  92. package/dist-embed/chunks/{diagram-VX7I27RA-CyWaO7T4.js → diagram-VX7I27RA-CaynSBjY.js} +1 -1
  93. package/dist-embed/chunks/{diagram-VX7I27RA-ibaX9uY_.js → diagram-VX7I27RA-DHwSWNj4.js} +1 -1
  94. package/dist-embed/chunks/{diagram-Z3DM3KII-CuT3xWy-.js → diagram-Z3DM3KII-BSrrfEXq.js} +1 -1
  95. package/dist-embed/chunks/{diagram-Z3DM3KII-B9KP0qR5.js → diagram-Z3DM3KII-BZ9tmKdd.js} +1 -1
  96. package/dist-embed/chunks/{diagram-Z3DM3KII-pL8q22K1.js → diagram-Z3DM3KII-D0Xt6xwn.js} +1 -1
  97. package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-CtXvxY4V.js → ebnfDiagram-PWID7BFC-CqUNJWps.js} +1 -1
  98. package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-D8bY1H8h.js → ebnfDiagram-PWID7BFC-DN2tb-X8.js} +1 -1
  99. package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-CSRgBRRN.js → ebnfDiagram-PWID7BFC-Dk5WVIim.js} +1 -1
  100. package/dist-embed/chunks/{edges-b2856ca0-uGZO77VR.js → edges-b2856ca0-C7Oyg_aM.js} +1 -1
  101. package/dist-embed/chunks/{el-GR-BZB4AONW-CmVPRUQo.js → el-GR-BZB4AONW-BFYxkU9G.js} +1 -1
  102. package/dist-embed/chunks/{erDiagram-5d81789a-D6cI7l5P.js → erDiagram-5d81789a-ow68WqFY.js} +1 -1
  103. package/dist-embed/chunks/{erDiagram-RLTQ6QDP-C2OGtFDg.js → erDiagram-RLTQ6QDP-BTXMcY7Y.js} +1 -1
  104. package/dist-embed/chunks/{erDiagram-RLTQ6QDP-CbHNzrJr.js → erDiagram-RLTQ6QDP-BsU1EeJN.js} +1 -1
  105. package/dist-embed/chunks/{erDiagram-RLTQ6QDP-CmySoB2u.js → erDiagram-RLTQ6QDP-Dk34WMaW.js} +1 -1
  106. package/dist-embed/chunks/{es-ES-U4NZUMDT-CKiieSH_.js → es-ES-U4NZUMDT-DfsrGpW8.js} +1 -1
  107. package/dist-embed/chunks/{eu-ES-A7QVB2H4-DbwSFr4X.js → eu-ES-A7QVB2H4-C4M9A--a.js} +1 -1
  108. package/dist-embed/chunks/{fa-IR-HGAKTJCU-Dq2snuU2.js → fa-IR-HGAKTJCU-Dz5YhtO5.js} +1 -1
  109. package/dist-embed/chunks/{fi-FI-Z5N7JZ37-DmOWUSOC.js → fi-FI-Z5N7JZ37-XjyQSB_d.js} +1 -1
  110. package/dist-embed/chunks/{flowDb-185abca5-u47zsz1a.js → flowDb-185abca5-Cs4mMxhw.js} +1 -1
  111. package/dist-embed/chunks/{flowDiagram-1629c991-DZ9rPZXj.js → flowDiagram-1629c991-CHvSNikI.js} +1 -1
  112. package/dist-embed/chunks/{flowDiagram-HODETNUW-DZ9zaLhW.js → flowDiagram-HODETNUW-DNjEQlAR.js} +1 -1
  113. package/dist-embed/chunks/{flowDiagram-HODETNUW-vg00NXJH.js → flowDiagram-HODETNUW-DP1PWdQF.js} +1 -1
  114. package/dist-embed/chunks/{flowDiagram-HODETNUW-CQFl-GMX.js → flowDiagram-HODETNUW-DXLXSKI7.js} +1 -1
  115. package/dist-embed/chunks/{flowDiagram-v2-1d953310-651L93TU.js → flowDiagram-v2-1d953310-eV94YCy9.js} +1 -1
  116. package/dist-embed/chunks/{flowchart-elk-definition-6df44142-C4tiH4LX.js → flowchart-elk-definition-6df44142-6xYb0NnW.js} +1 -1
  117. package/dist-embed/chunks/{fr-FR-RHASNOE6-ClRC3QA7.js → fr-FR-RHASNOE6-VH6OvmOI.js} +1 -1
  118. package/dist-embed/chunks/{ganttDiagram-3b0b3873-BEQeyh8j.js → ganttDiagram-3b0b3873-BplyF8AP.js} +1 -1
  119. package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-CH0_KopB.js → ganttDiagram-EL5Y4UJY-DmwhuzrV.js} +1 -1
  120. package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-B7gFmmSB.js → ganttDiagram-EL5Y4UJY-Qz5HuyzZ.js} +1 -1
  121. package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-DMm3VDQs.js → ganttDiagram-EL5Y4UJY-UWTfR8VF.js} +1 -1
  122. package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-8Ld_oV7w.js → gitGraphDiagram-WWUBYQGX-BUlSUrle.js} +1 -1
  123. package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-6YBQGkR1.js → gitGraphDiagram-WWUBYQGX-CF5nE-hV.js} +1 -1
  124. package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-zGcY3zMf.js → gitGraphDiagram-WWUBYQGX-kicEF2lX.js} +1 -1
  125. package/dist-embed/chunks/{gitGraphDiagram-f01e8bc2-MlMt_j8g.js → gitGraphDiagram-f01e8bc2-Bhx3RNmO.js} +1 -1
  126. package/dist-embed/chunks/{gl-ES-HMX3MZ6V-DdzTZhDF.js → gl-ES-HMX3MZ6V-DD5-fm7n.js} +1 -1
  127. package/dist-embed/chunks/{he-IL-6SHJWFNN-h8PcVBZI.js → he-IL-6SHJWFNN-CJ6dYqWM.js} +1 -1
  128. package/dist-embed/chunks/{hi-IN-IWLTKZ5I-Cr64SJMR.js → hi-IN-IWLTKZ5I-CGMlTAed.js} +1 -1
  129. package/dist-embed/chunks/{hu-HU-A5ZG7DT2-CIk9I5SD.js → hu-HU-A5ZG7DT2-B62Sv99K.js} +1 -1
  130. package/dist-embed/chunks/{id-ID-SAP4L64H-BI0RoTwG.js → id-ID-SAP4L64H-OcuSDAR-.js} +1 -1
  131. package/dist-embed/chunks/{index-9bae90f3-BTKQkhNB.js → index-9bae90f3-C-Eph-LM.js} +1 -1
  132. package/dist-embed/chunks/{index-DedU423o.js → index-Botot3k_.js} +1 -1
  133. package/dist-embed/chunks/{index--2Kz2vhr.js → index-DObGLuCI.js} +3 -3
  134. package/dist-embed/chunks/{index-Das_qYGD.js → index-Df2MkvAW.js} +3 -3
  135. package/dist-embed/chunks/{index-BeGvx7Sl.js → index-DjDXWGO2.js} +2 -2
  136. package/dist-embed/chunks/{infoDiagram-27XIBGKW-DG60Rjp7.js → infoDiagram-27XIBGKW-B4XVsJvC.js} +1 -1
  137. package/dist-embed/chunks/{infoDiagram-27XIBGKW-BxqvbVTq.js → infoDiagram-27XIBGKW-Cs7bZlH6.js} +1 -1
  138. package/dist-embed/chunks/{infoDiagram-27XIBGKW-D4QEx-lv.js → infoDiagram-27XIBGKW-DGlJ7Q80.js} +1 -1
  139. package/dist-embed/chunks/{infoDiagram-a29d40f1-DFNkxTx3.js → infoDiagram-a29d40f1-qBdv4q0h.js} +1 -1
  140. package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-DKZQg1nM.js → ishikawaDiagram-5VMMS53U-BB-Kv-Mj.js} +1 -1
  141. package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-EJLPyjm5.js → ishikawaDiagram-5VMMS53U-BIytcjnR.js} +1 -1
  142. package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-BJmxw87p.js → ishikawaDiagram-5VMMS53U-HBIqRNLh.js} +1 -1
  143. package/dist-embed/chunks/{it-IT-JPQ66NNP-BmtLkshr.js → it-IT-JPQ66NNP-1UkMde1K.js} +1 -1
  144. package/dist-embed/chunks/{ja-JP-DBVTYXUO-CHGYZwrL.js → ja-JP-DBVTYXUO-ZHmHs3WT.js} +1 -1
  145. package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-DrvEpRi1.js → journeyDiagram-3NMN7TZE-Bs6ObzT9.js} +1 -1
  146. package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-M2cPBt3x.js → journeyDiagram-3NMN7TZE-C3yCP95B.js} +1 -1
  147. package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-PtL6vLpD.js → journeyDiagram-3NMN7TZE-DEtcUVr2.js} +1 -1
  148. package/dist-embed/chunks/{journeyDiagram-95396277-BvrUMAoy.js → journeyDiagram-95396277-D89HQ4tg.js} +1 -1
  149. package/dist-embed/chunks/{kaa-6HZHGXH3-nPvVx0w3.js → kaa-6HZHGXH3-C57X5Q7d.js} +1 -1
  150. package/dist-embed/chunks/{kab-KAB-ZGHBKWFO-8D_1g1dO.js → kab-KAB-ZGHBKWFO-BUnQ_56J.js} +1 -1
  151. package/dist-embed/chunks/{kanban-definition-UXKFOSKX-BU0gbDDP.js → kanban-definition-UXKFOSKX-B9DSJpj9.js} +1 -1
  152. package/dist-embed/chunks/{kanban-definition-UXKFOSKX-D3plDGho.js → kanban-definition-UXKFOSKX-CWfihtP5.js} +1 -1
  153. package/dist-embed/chunks/{kanban-definition-UXKFOSKX-B4SUuj36.js → kanban-definition-UXKFOSKX-_mcHB773.js} +1 -1
  154. package/dist-embed/chunks/{kk-KZ-P5N5QNE5-Do6SvkVL.js → kk-KZ-P5N5QNE5-CBp9NICk.js} +1 -1
  155. package/dist-embed/chunks/{km-KH-HSX4SM5Z-BMJ3G21t.js → km-KH-HSX4SM5Z-MPn8eiKl.js} +1 -1
  156. package/dist-embed/chunks/{ko-KR-MTYHY66A-ChpsG9Xs.js → ko-KR-MTYHY66A-DqUfCjgF.js} +1 -1
  157. package/dist-embed/chunks/{ku-TR-6OUDTVRD-gp9htEdP.js → ku-TR-6OUDTVRD-BhyGSJkh.js} +1 -1
  158. package/dist-embed/chunks/{layout-BYpLKfOV.js → layout-DTdkd155.js} +1 -1
  159. package/dist-embed/chunks/{layout-Bakurf9B.js → layout-D_LOxL0l.js} +1 -1
  160. package/dist-embed/chunks/{layout-CrNv7hKB.js → layout-XFc4Od7Z.js} +1 -1
  161. package/dist-embed/chunks/{lib-BxINeYlh.js → lib-1k8qJMow.js} +1 -1
  162. package/dist-embed/chunks/{lib-DG8EYn4U.js → lib-5puVfbvR.js} +1 -1
  163. package/dist-embed/chunks/{lib-xBLxzb2n.js → lib-B0-V3yWM.js} +1 -1
  164. package/dist-embed/chunks/{lib-3uZWBPlY.js → lib-B5oYQnVZ.js} +1 -1
  165. package/dist-embed/chunks/{lib-BvYPNc73.js → lib-B8QeIpMg.js} +1 -1
  166. package/dist-embed/chunks/{lib-D0TfokqC.js → lib-BDCbvZ5k.js} +1 -1
  167. package/dist-embed/chunks/{lib-DPTXss3j.js → lib-BKRN5rY4.js} +1 -1
  168. package/dist-embed/chunks/{lib-BvqMzckl.js → lib-BuNapvTN.js} +1 -1
  169. package/dist-embed/chunks/{lib-DOHySEz9.js → lib-CDTJBLjs.js} +1 -1
  170. package/dist-embed/chunks/{lib-CEQko5Lb.js → lib-CJ1wJo-A.js} +1 -1
  171. package/dist-embed/chunks/{lib-DsKt7xJA.js → lib-D0_SMUcl.js} +1 -1
  172. package/dist-embed/chunks/{lib-CiVmfde5.js → lib-D8ZZk58r.js} +1 -1
  173. package/dist-embed/chunks/{lib-Cf2l8Zmf.js → lib-DGXPl5aF.js} +1 -1
  174. package/dist-embed/chunks/{lib-CyK2-X7d.js → lib-DLVOFtf2.js} +1 -1
  175. package/dist-embed/chunks/{lib-CO4OmVyp.js → lib-M0p61UIz.js} +1 -1
  176. package/dist-embed/chunks/{lib-C3ZlDgEi.js → lib-eUsLplee.js} +1 -1
  177. package/dist-embed/chunks/{lib-Dt1jfwNc.js → lib-qL5koKak.js} +1 -1
  178. package/dist-embed/chunks/{lib-DX4YNZSO.js → lib-r8emmCZN.js} +1 -1
  179. package/dist-embed/chunks/{lt-LT-XHIRWOB4-BbnVWzNi.js → lt-LT-XHIRWOB4-DnzpQbb1.js} +1 -1
  180. package/dist-embed/chunks/{lv-LV-5QDEKY6T-DavVCJnk.js → lv-LV-5QDEKY6T-CdDJ-bA0.js} +1 -1
  181. package/dist-embed/chunks/{mermaid.core-D27cfkqB.js → mermaid.core-KTB2Lxd3.js} +2 -2
  182. package/dist-embed/chunks/{mermaid.core-CiNB92Or.js → mermaid.core-gUuQZ3q0.js} +3 -3
  183. package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-C3NB-5T8.js → mindmap-definition-YA3MSWOX-CCpwK8vh.js} +1 -1
  184. package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-KsmhzYv2.js → mindmap-definition-YA3MSWOX-CmGscTNk.js} +1 -1
  185. package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-BQ-9Txgq.js → mindmap-definition-YA3MSWOX-Zy7pURli.js} +1 -1
  186. package/dist-embed/chunks/{mindmap-definition-e4c1d938-Dv1AzCGL.js → mindmap-definition-e4c1d938-Bx-OHtVA.js} +1 -1
  187. package/dist-embed/chunks/{mr-IN-CRQNXWMA-CQBQTd6I.js → mr-IN-CRQNXWMA-dch-5wWZ.js} +1 -1
  188. package/dist-embed/chunks/{my-MM-5M5IBNSE-Bx2p29ll.js → my-MM-5M5IBNSE-CpBgcBwB.js} +1 -1
  189. package/dist-embed/chunks/{nb-NO-T6EIAALU-VfeikTNz.js → nb-NO-T6EIAALU-COa2OyCA.js} +1 -1
  190. package/dist-embed/chunks/{nl-NL-IS3SIHDZ-BRC7UbJQ.js → nl-NL-IS3SIHDZ-CUds_bYU.js} +1 -1
  191. package/dist-embed/chunks/{nn-NO-6E72VCQL-Cd0ZpCDa.js → nn-NO-6E72VCQL-C7gst3vb.js} +1 -1
  192. package/dist-embed/chunks/{oc-FR-POXYY2M6-0ol5enP0.js → oc-FR-POXYY2M6-BPpFvRq9.js} +1 -1
  193. package/dist-embed/chunks/{pa-IN-N4M65BXN-D1pyAzHY.js → pa-IN-N4M65BXN-CFdnD-54.js} +1 -1
  194. package/dist-embed/chunks/{pegDiagram-XKGWAZYB-DhvaUzon.js → pegDiagram-XKGWAZYB-C1R8Kk6K.js} +1 -1
  195. package/dist-embed/chunks/{pegDiagram-XKGWAZYB-DJx7ItKD.js → pegDiagram-XKGWAZYB-CRdzWywN.js} +1 -1
  196. package/dist-embed/chunks/{pegDiagram-XKGWAZYB-Is1k6AS8.js → pegDiagram-XKGWAZYB-dwQNJiaW.js} +1 -1
  197. package/dist-embed/chunks/{percentages-BXMCSKIN-BBr7lX_m.js → percentages-BXMCSKIN-PE_Zr0z2.js} +5 -5
  198. package/dist-embed/chunks/{pieDiagram-E7YTZNPT-BT8R9d7U.js → pieDiagram-E7YTZNPT-CH60iHt1.js} +1 -1
  199. package/dist-embed/chunks/{pieDiagram-E7YTZNPT-BzkWlPJb.js → pieDiagram-E7YTZNPT-Cm-wzRi8.js} +1 -1
  200. package/dist-embed/chunks/{pieDiagram-E7YTZNPT-B47HW6cl.js → pieDiagram-E7YTZNPT-IN-ewUih.js} +1 -1
  201. package/dist-embed/chunks/{pieDiagram-c941bede-D0pTkwg6.js → pieDiagram-c941bede-CsV2p2ej.js} +1 -1
  202. package/dist-embed/chunks/{pl-PL-T2D74RX3-CiqrMl0R.js → pl-PL-T2D74RX3-DC0vXmC3.js} +1 -1
  203. package/dist-embed/chunks/{pt-BR-5N22H2LF-CuQdXsLl.js → pt-BR-5N22H2LF-BOMTxvy-.js} +1 -1
  204. package/dist-embed/chunks/{pt-PT-UZXXM6DQ-BBsDgmIm.js → pt-PT-UZXXM6DQ-BoKelgnz.js} +1 -1
  205. package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-DbDzHhaw.js → quadrantDiagram-AXDQQJYC-B1wf6Zth.js} +1 -1
  206. package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-DauoGYGG.js → quadrantDiagram-AXDQQJYC-B7W6MWBq.js} +1 -1
  207. package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-DCmsJOCD.js → quadrantDiagram-AXDQQJYC-mkOZIUHb.js} +1 -1
  208. package/dist-embed/chunks/{quadrantDiagram-cf8b8fe0-Cm1iY9r_.js → quadrantDiagram-cf8b8fe0-ZmcsdB3H.js} +1 -1
  209. package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-DoL_yVfQ.js → railroadDiagram-O6MQD6OU-B6nFyCFz.js} +1 -1
  210. package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-DSAOllON.js → railroadDiagram-O6MQD6OU-DEB7gRmX.js} +1 -1
  211. package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-Dn213fC_.js → railroadDiagram-O6MQD6OU-DrkBEH1z.js} +1 -1
  212. package/dist-embed/chunks/{requirementDiagram-53bda41b-DW2X-ZO4.js → requirementDiagram-53bda41b-B_LQ_xkB.js} +1 -1
  213. package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-DIgwhEbm.js → requirementDiagram-BXWQKSXE-C8d0kJ1A.js} +1 -1
  214. package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-Cc8Iq6BR.js → requirementDiagram-BXWQKSXE-S8WT8VJ1.js} +1 -1
  215. package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-CoTX8nXS.js → requirementDiagram-BXWQKSXE-fKcgNNOv.js} +1 -1
  216. package/dist-embed/chunks/{ro-RO-JPDTUUEW-G8eJF90m.js → ro-RO-JPDTUUEW-DUoE6b7w.js} +1 -1
  217. package/dist-embed/chunks/{ru-RU-B4JR7IUQ-D8RVoxZu.js → ru-RU-B4JR7IUQ-BvGrQ7oU.js} +1 -1
  218. package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-BzUs-oOr.js → sankeyDiagram-P5KCCOFB-C2LowYxA.js} +1 -1
  219. package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-CCetWmiF.js → sankeyDiagram-P5KCCOFB-eNBOyfBR.js} +1 -1
  220. package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-DX6zib8G.js → sankeyDiagram-P5KCCOFB-zVvXOpK2.js} +1 -1
  221. package/dist-embed/chunks/{sankeyDiagram-c3ef121a-VSTQbg15.js → sankeyDiagram-c3ef121a-CbZiQf68.js} +1 -1
  222. package/dist-embed/chunks/{sequenceDiagram-82a5b84f-C5Uckj83.js → sequenceDiagram-82a5b84f-E5IR2bYb.js} +1 -1
  223. package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-DkNNIHVx.js → sequenceDiagram-WJ2MYXX4-CYxIlDNg.js} +1 -1
  224. package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-DKnGwrF5.js → sequenceDiagram-WJ2MYXX4-C_2alFNp.js} +1 -1
  225. package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-BTjd1mnX.js → sequenceDiagram-WJ2MYXX4-fsR56p6L.js} +1 -1
  226. package/dist-embed/chunks/{si-LK-N5RQ5JYF-DwhcMDMh.js → si-LK-N5RQ5JYF-DSd6gBaB.js} +1 -1
  227. package/dist-embed/chunks/{sizeCapture-INFHLROL-BH7KTzzO.js → sizeCapture-INFHLROL-BCe0IiFV.js} +1 -1
  228. package/dist-embed/chunks/{sizeCapture-INFHLROL-BlzXuuhc.js → sizeCapture-INFHLROL-BVaNrAtp.js} +1 -1
  229. package/dist-embed/chunks/{sizeCapture-INFHLROL-D9tzDD8E.js → sizeCapture-INFHLROL-BsZaIjAU.js} +1 -1
  230. package/dist-embed/chunks/{sk-SK-C5VTKIMK-BvvWOSic.js → sk-SK-C5VTKIMK-CX5Daxph.js} +1 -1
  231. package/dist-embed/chunks/{sl-SI-NN7IZMDC-BXRTBNsU.js → sl-SI-NN7IZMDC-D5seNheP.js} +1 -1
  232. package/dist-embed/chunks/{stateDiagram-43e79a5f-DCH2ixUH.js → stateDiagram-43e79a5f-DpDccHEJ.js} +1 -1
  233. package/dist-embed/chunks/{stateDiagram-D77RDMKH-uWa_SXfw.js → stateDiagram-D77RDMKH-BUw_L8lD.js} +1 -1
  234. package/dist-embed/chunks/{stateDiagram-D77RDMKH-BJaK_Fes.js → stateDiagram-D77RDMKH-DosU0FIz.js} +1 -1
  235. package/dist-embed/chunks/{stateDiagram-D77RDMKH-DARGsEH1.js → stateDiagram-D77RDMKH-ul2eLf5Q.js} +1 -1
  236. package/dist-embed/chunks/{stateDiagram-v2-2041ed4f-BjpbynP5.js → stateDiagram-v2-2041ed4f-Tvcnabbb.js} +1 -1
  237. package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-cAkf425W.js → stateDiagram-v2-MP3YSRHH-Bf-2UYRk.js} +1 -1
  238. package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-BEW7rp4U.js → stateDiagram-v2-MP3YSRHH-D0rhfnrW.js} +1 -1
  239. package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-ekrmpl5j.js → stateDiagram-v2-MP3YSRHH-DeEmivLr.js} +1 -1
  240. package/dist-embed/chunks/{styles-455b33cd-v8spAk5u.js → styles-455b33cd-CqrAPL5i.js} +1 -1
  241. package/dist-embed/chunks/{styles-f932cba9-BAdLnlMf.js → styles-f932cba9-Dw1HY-mR.js} +1 -1
  242. package/dist-embed/chunks/{styles-fcc2142b-lJPxksnq.js → styles-fcc2142b-C27pEgaj.js} +1 -1
  243. package/dist-embed/chunks/{subset-shared.chunk-OJeRSAZ2.js → subset-shared.chunk-X0WjKx8m.js} +1 -1
  244. package/dist-embed/chunks/{subset-worker.chunk-8ITAD01m.js → subset-worker.chunk-B_UbRqFW.js} +1 -1
  245. package/dist-embed/chunks/{sv-SE-XGPEYMSR-tQuFv9ff.js → sv-SE-XGPEYMSR-C45sq5QB.js} +1 -1
  246. package/dist-embed/chunks/{svgDrawCommon-148a3cd9-q4FMXuf-.js → svgDrawCommon-148a3cd9-CUn_M4Ra.js} +1 -1
  247. package/dist-embed/chunks/{swimlanes-42K2YHIH-B75xo_lW.js → swimlanes-42K2YHIH-CIW2hU2l.js} +1 -1
  248. package/dist-embed/chunks/{swimlanes-42K2YHIH-DN4FbNv8.js → swimlanes-42K2YHIH-CzG-9Sou.js} +1 -1
  249. package/dist-embed/chunks/{swimlanes-42K2YHIH-k2y5-bh2.js → swimlanes-42K2YHIH-DOkKP2_2.js} +1 -1
  250. package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-BC3XrenE.js → swimlanesDiagram-VR7AAH4N-9yw92Xx_.js} +1 -1
  251. package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-BZt0zkSo.js → swimlanesDiagram-VR7AAH4N-BlFZ7eQS.js} +1 -1
  252. package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-Cg-6N4ep.js → swimlanesDiagram-VR7AAH4N-Cgj6azeO.js} +1 -1
  253. package/dist-embed/chunks/{ta-IN-2NMHFXQM-e7DnSDKG.js → ta-IN-2NMHFXQM-CoxPm9Ew.js} +1 -1
  254. package/dist-embed/chunks/{th-TH-HPSO5L25-C55q0THD.js → th-TH-HPSO5L25-Smv8dde_.js} +1 -1
  255. package/dist-embed/chunks/{timeline-definition-24CTP7MA-PuzLyHgX.js → timeline-definition-24CTP7MA-C9Ed6D0K.js} +1 -1
  256. package/dist-embed/chunks/{timeline-definition-24CTP7MA-DKJQthBG.js → timeline-definition-24CTP7MA-HSOgPjq4.js} +1 -1
  257. package/dist-embed/chunks/{timeline-definition-24CTP7MA-Cp-qOSF-.js → timeline-definition-24CTP7MA-kHlycslq.js} +1 -1
  258. package/dist-embed/chunks/{timeline-definition-7545f45a-CY9YEH2b.js → timeline-definition-7545f45a-CCyhwQdt.js} +1 -1
  259. package/dist-embed/chunks/{tr-TR-DEFEU3FU-CM7iPNh_.js → tr-TR-DEFEU3FU-DBMN0v-o.js} +1 -1
  260. package/dist-embed/chunks/{uk-UA-QMV73CPH-BmVujldO.js → uk-UA-QMV73CPH-DNvJwc9t.js} +1 -1
  261. package/dist-embed/chunks/{vennDiagram-4TSXK5OY-C_kdic2x.js → vennDiagram-4TSXK5OY-7gMUaOyw.js} +1 -1
  262. package/dist-embed/chunks/{vennDiagram-4TSXK5OY-BAluZQeU.js → vennDiagram-4TSXK5OY-CxvgI2f-.js} +1 -1
  263. package/dist-embed/chunks/{vennDiagram-4TSXK5OY-DYR1DAEq.js → vennDiagram-4TSXK5OY-Dt9fBhlj.js} +1 -1
  264. package/dist-embed/chunks/{vi-VN-M7AON7JQ-BlZNK_Ay.js → vi-VN-M7AON7JQ-D1mitKRR.js} +1 -1
  265. package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-Ov2ghJAS.js → wardleyDiagram-VM6X3IG4-6HRbbvDt.js} +1 -1
  266. package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-DTEzv0pe.js → wardleyDiagram-VM6X3IG4-AvAVDPLG.js} +1 -1
  267. package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-CZD7CzI5.js → wardleyDiagram-VM6X3IG4-Bbh5PYAM.js} +1 -1
  268. package/dist-embed/chunks/{xychartDiagram-3f383b91-BJzZxtGI.js → xychartDiagram-3f383b91-BVsOkv2G.js} +1 -1
  269. package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-DzHNLsYJ.js → xychartDiagram-S5SC5T6Z-DNoz1WpS.js} +1 -1
  270. package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-Cie8emsN.js → xychartDiagram-S5SC5T6Z-VWPR98LV.js} +1 -1
  271. package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-DApXg5ov.js → xychartDiagram-S5SC5T6Z-ZZD1fZ1L.js} +1 -1
  272. package/dist-embed/chunks/{zh-CN-LNUGB5OW-DQfIJ4rF.js → zh-CN-LNUGB5OW-DtmUhdIG.js} +1 -1
  273. package/dist-embed/chunks/{zh-HK-E62DVLB3-DIuCQjJ8.js → zh-HK-E62DVLB3-BKtdEVTQ.js} +1 -1
  274. package/dist-embed/chunks/{zh-TW-RAJ6MFWO-CLRAlPKM.js → zh-TW-RAJ6MFWO-BHnZRfWI.js} +1 -1
  275. package/dist-embed/datalayer-app-main.js +21 -20
  276. package/lib/addresses/AgentWebPage.d.ts +81 -0
  277. package/lib/addresses/AgentWebPage.js +109 -0
  278. package/lib/agent-web-main.d.ts +1 -0
  279. package/lib/agent-web-main.js +11 -0
  280. package/lib/apps/Application.d.ts +129 -0
  281. package/lib/apps/Application.js +244 -0
  282. package/lib/apps/apps/AppRenderer.d.ts +24 -2
  283. package/lib/apps/apps/AppRenderer.js +22 -8
  284. package/lib/apps/apps/appspec.d.ts +11 -1
  285. package/lib/apps/apps/appspec.js +36 -12
  286. package/lib/apps/embed/AppEmbed.d.ts +35 -2
  287. package/lib/apps/embed/AppEmbed.js +84 -14
  288. package/lib/apps/embed/element.d.ts +2 -9
  289. package/lib/apps/embed/element.js +41 -44
  290. package/lib/apps/embed/embedConfig.d.ts +7 -0
  291. package/lib/apps/embed/embedConfig.js +18 -0
  292. package/lib/apps/index.d.ts +2 -1
  293. package/lib/apps/index.js +3 -0
  294. package/lib/apps/plugins/browser-session/BrowserSessionButton.d.ts +6 -2
  295. package/lib/apps/plugins/browser-session/BrowserSessionButton.js +12 -8
  296. package/lib/apps/plugins/browser-session/browserSession.d.ts +5 -0
  297. package/lib/apps/plugins/browser-session/browserSession.js +5 -0
  298. package/lib/specs/agents/agents.js +3 -0
  299. package/lib/specs/apps.js +123 -8
  300. package/lib/specs/appspecSchema.js +14 -32
  301. package/lib/types/agentspecs.d.ts +8 -1
  302. package/package.json +1 -1
  303. package/scripts/codegen/generate_apps.py +10 -0
  304. package/dist-embed/assets/loro_wasm_bg-XW642dR7.wasm +0 -0
@@ -1 +1 @@
1
- import{r as C,Z as h,j as l,B as c,T as j,$ as I}from"../datalayer-app-main.js";import{O as v,a as T,C as k}from"./Output-B9M8NqG2.js";import"./index-QUGTBUbz.js";import"./hoverbox-CStlKQWE.js";import"./index-CzDD-mUF.js";import"./index-B9R5Oy-_.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-ZTQsAovp.js";import"./d3-color-Jd8hXty2.js";import"./dist-Frc5TvpU.js";import"./PaintbrushIcon-CFBHU-3l.js";import"./index-BaRoLDk0.js";import"./RestartIcon-DvpOf5Mf.js";const R=new Set(["insertCell","updateCell","runCell","datalayer_insertCell","datalayer_updateCell","datalayer_runCell"]),w=new Set(["executeCodeInNotebook","datalayer_executeCodeInNotebook","executeCodeInDocument","datalayer_executeCodeInDocument"]);function O(r){const e=r.result;if(e&&typeof e=="object")return e;if(typeof e=="string")try{const t=I(e);if(t&&typeof t=="object")return t}catch{}}function S(r){const e=r.args??{};if(typeof e.index=="number")return e.index;const t=O(r);if(t&&typeof t.index=="number")return t.index}function B(r,e){const t=S(e);return t===void 0?null:h.getState().notebooks.get(r)?.model?.cells?.get(t)??null}function L(r){const e=O(r)??{},t=[];for(const o of e.outputs??[]){const s=o.content;if(s&&typeof s=="object"){const d=s;if("output_type"in d){t.push(d);continue}if("data"in d||"text"in d||"ename"in d){t.push({output_type:o.type??"display_data",...d});continue}}t.push({output_type:"stream",name:"stdout",text:String(s??"")})}return t}const b=new WeakSet,M={insertCell:"inserted",updateCell:"updated",runCell:"ran",executeCodeInNotebook:"executed",executeCodeInDocument:"executed"};function H({documentId:r,context:e}){const{name:t,status:o,defaultUI:s}=e,d=t.replace(/^datalayer_/,""),i=C.useRef({id:null,model:null}),[,_]=C.useState(0);C.useEffect(()=>{if(!w.has(t)||o!=="executing"||i.current.id===e.toolCallId&&i.current.model)return;let u=!1,x;const g=()=>{if(u)return;const y=h.getState().notebooks.get(r)?.adapter?.lastExecuteOutputs??null;if(y&&!b.has(y)){_(E=>E+1);return}x=window.setTimeout(g,250)};return g(),()=>{u=!0,x!==void 0&&window.clearTimeout(x)}},[t,o,e.toolCallId,r]);let a=null,p=null,n=null,f;if(o==="executing"||o==="complete"||o==="error"){if(R.has(t))f=S(e),a=B(r,e);else if(w.has(t)){if(i.current.id!==e.toolCallId){const u=h.getState().notebooks.get(r)?.adapter?.lastExecuteOutputs??null;u&&!b.has(u)&&(i.current={id:e.toolCallId,model:u})}if(n=i.current.id===e.toolCallId?i.current.model:null,n&&o!=="executing"&&b.add(n),!n&&o==="complete"){const u=L(e);p=u.length>0?u:null}}}const m=a?.type==="code"?a.outputs:void 0;return l.jsxs(l.Fragment,{children:[s,n||p?l.jsxs(c,{mt:1,width:"100%",border:"1px solid",borderColor:"border.default",borderRadius:2,overflow:"hidden",bg:"canvas.default",children:[l.jsx(c,{px:2,py:1,bg:"canvas.subtle",borderBottom:"1px solid",borderColor:"border.muted",children:l.jsxs(j,{sx:{fontSize:0,color:"fg.muted"},children:["Output ·"," ",o==="executing"?"executing…":o==="error"?"stopped":"executed"]})}),l.jsx(c,{p:2,children:n?l.jsx(v,{id:`${e.toolCallId}-execute-outputs`,model:n,showControl:!1,showEditor:!1,autoRun:!1}):l.jsx(T,{cell:{cell_type:"code",outputs:p,metadata:{}}})})]}):null,a?l.jsxs(c,{mt:1,width:"100%",border:"1px solid",borderColor:"border.default",borderRadius:2,overflow:"hidden",bg:"canvas.default",children:[l.jsx(c,{px:2,py:1,bg:"canvas.subtle",borderBottom:"1px solid",borderColor:"border.muted",children:l.jsxs(j,{sx:{fontSize:0,color:"fg.muted"},children:[f!==void 0?`Cell ${f}`:"Cell"," · ",M[d]??d]})}),l.jsx(k,{readOnly:!0,type:a.type??"code",source:a.sharedModel.getSource(),outputs:[]}),m&&(o==="executing"||m.length>0)?l.jsx(c,{borderTop:"1px solid",borderColor:"border.muted",p:2,children:l.jsx(v,{id:`${e.toolCallId}-outputs`,model:m,showControl:!1,showEditor:!1,autoRun:!1})}):null]}):null]})}export{R as CELL_TOOLS,w as EXECUTE_TOOLS,H as NotebookToolSurfaces,O as decodedResult,H as default,L as executionOutputs,S as touchedCellIndex,B as touchedCellModel};
1
+ import{r as C,Z as h,j as l,B as c,T as j,$ as I}from"../datalayer-app-main.js";import{O as v,a as T,C as k}from"./Output-DePHyrJp.js";import"./index-QUGTBUbz.js";import"./hoverbox-CStlKQWE.js";import"./index-CzDD-mUF.js";import"./index-B9R5Oy-_.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-ZTQsAovp.js";import"./d3-color-Jd8hXty2.js";import"./dist-Frc5TvpU.js";import"./PaintbrushIcon-CFBHU-3l.js";import"./index-BaRoLDk0.js";import"./RestartIcon-DvpOf5Mf.js";const R=new Set(["insertCell","updateCell","runCell","datalayer_insertCell","datalayer_updateCell","datalayer_runCell"]),w=new Set(["executeCodeInNotebook","datalayer_executeCodeInNotebook","executeCodeInDocument","datalayer_executeCodeInDocument"]);function O(r){const e=r.result;if(e&&typeof e=="object")return e;if(typeof e=="string")try{const t=I(e);if(t&&typeof t=="object")return t}catch{}}function S(r){const e=r.args??{};if(typeof e.index=="number")return e.index;const t=O(r);if(t&&typeof t.index=="number")return t.index}function B(r,e){const t=S(e);return t===void 0?null:h.getState().notebooks.get(r)?.model?.cells?.get(t)??null}function L(r){const e=O(r)??{},t=[];for(const o of e.outputs??[]){const s=o.content;if(s&&typeof s=="object"){const d=s;if("output_type"in d){t.push(d);continue}if("data"in d||"text"in d||"ename"in d){t.push({output_type:o.type??"display_data",...d});continue}}t.push({output_type:"stream",name:"stdout",text:String(s??"")})}return t}const b=new WeakSet,M={insertCell:"inserted",updateCell:"updated",runCell:"ran",executeCodeInNotebook:"executed",executeCodeInDocument:"executed"};function H({documentId:r,context:e}){const{name:t,status:o,defaultUI:s}=e,d=t.replace(/^datalayer_/,""),i=C.useRef({id:null,model:null}),[,_]=C.useState(0);C.useEffect(()=>{if(!w.has(t)||o!=="executing"||i.current.id===e.toolCallId&&i.current.model)return;let u=!1,x;const g=()=>{if(u)return;const y=h.getState().notebooks.get(r)?.adapter?.lastExecuteOutputs??null;if(y&&!b.has(y)){_(E=>E+1);return}x=window.setTimeout(g,250)};return g(),()=>{u=!0,x!==void 0&&window.clearTimeout(x)}},[t,o,e.toolCallId,r]);let a=null,p=null,n=null,f;if(o==="executing"||o==="complete"||o==="error"){if(R.has(t))f=S(e),a=B(r,e);else if(w.has(t)){if(i.current.id!==e.toolCallId){const u=h.getState().notebooks.get(r)?.adapter?.lastExecuteOutputs??null;u&&!b.has(u)&&(i.current={id:e.toolCallId,model:u})}if(n=i.current.id===e.toolCallId?i.current.model:null,n&&o!=="executing"&&b.add(n),!n&&o==="complete"){const u=L(e);p=u.length>0?u:null}}}const m=a?.type==="code"?a.outputs:void 0;return l.jsxs(l.Fragment,{children:[s,n||p?l.jsxs(c,{mt:1,width:"100%",border:"1px solid",borderColor:"border.default",borderRadius:2,overflow:"hidden",bg:"canvas.default",children:[l.jsx(c,{px:2,py:1,bg:"canvas.subtle",borderBottom:"1px solid",borderColor:"border.muted",children:l.jsxs(j,{sx:{fontSize:0,color:"fg.muted"},children:["Output ·"," ",o==="executing"?"executing…":o==="error"?"stopped":"executed"]})}),l.jsx(c,{p:2,children:n?l.jsx(v,{id:`${e.toolCallId}-execute-outputs`,model:n,showControl:!1,showEditor:!1,autoRun:!1}):l.jsx(T,{cell:{cell_type:"code",outputs:p,metadata:{}}})})]}):null,a?l.jsxs(c,{mt:1,width:"100%",border:"1px solid",borderColor:"border.default",borderRadius:2,overflow:"hidden",bg:"canvas.default",children:[l.jsx(c,{px:2,py:1,bg:"canvas.subtle",borderBottom:"1px solid",borderColor:"border.muted",children:l.jsxs(j,{sx:{fontSize:0,color:"fg.muted"},children:[f!==void 0?`Cell ${f}`:"Cell"," · ",M[d]??d]})}),l.jsx(k,{readOnly:!0,type:a.type??"code",source:a.sharedModel.getSource(),outputs:[]}),m&&(o==="executing"||m.length>0)?l.jsx(c,{borderTop:"1px solid",borderColor:"border.muted",p:2,children:l.jsx(v,{id:`${e.toolCallId}-outputs`,model:m,showControl:!1,showEditor:!1,autoRun:!1})}):null]}):null]})}export{R as CELL_TOOLS,w as EXECUTE_TOOLS,H as NotebookToolSurfaces,O as decodedResult,H as default,L as executionOutputs,S as touchedCellIndex,B as touchedCellModel};
@@ -1,4 +1,4 @@
1
- import{j as jsxRuntimeExports,e9 as ActionMenu,I as IconButton,h1 as KebabHorizontalIcon,bl as ActionList,ki as StopIcon,r as reactExports,le as useJupyterReactStoreFromProps,kK as OutputAreaModel,lf as OutputArea,av as standardRendererFactories,gB as MessageLoop,aB as Widget,bh as PromiseDelegate,_ as __vitePreload,f3 as CodeCell,iK as MarkdownCell,kd as SessionContext,cs as find,eB as EditorThemeRegistry,ex as EditorLanguageRegistry,dL as CommandRegistry,lg as createStandaloneCell,iN as Cell$1,kA as CodeCellModel,kz as MarkdownCellModel,dC as ToolbarButton,fR as runIcon,lh as BoxPanel,kH as DEFAULT_VARIANT,kI as MarimoReactive,li as cellsStore,eC as EditorExtensionRegistry,eD as ybinding,kM as newUuid,lj as RawCell,ky as RawCellModel,lk as useCellsStore,B as Box,dv as StyledSpinner,ll as getPanel,lm as activateHover,kq as StateField,ln as showPanel,bN as EditorView,kE as Decoration,kD as StateEffect,kn as Facet,lo as combineConfig,lp as RangeSetBuilder,lq as crelt,lr as hoverTooltip,kF as WidgetType,ls as lineNumbers,lt as highlightActiveLineGutter,lu as highlightSpecialChars,lv as history,lw as foldGutter,lx as drawSelection,ly as dropCursor,c2 as EditorState,lz as indentOnInput,lA as syntaxHighlighting,lB as bracketMatching,lC as closeBrackets,lD as autocompletion,lE as rectangularSelection,lF as crosshairCursor,lG as highlightActiveLine,lH as highlightSelectionMatches,bZ as keymap,lI as closeBracketsKeymap,lJ as defaultKeymap,lK as searchKeymap,lL as historyKeymap,lM as foldKeymap,lN as completionKeymap,lO as defaultHighlightStyle,gb as useTheme,bx as Box$1,lP as ArrowRightIcon,lQ as useOutputsStore,bY as Prec,lR as Compartment,at as getDefaultExportFromCjs}from"../datalayer-app-main.js";import{q as Toolbar}from"./index-QUGTBUbz.js";import{j as WidgetRenderer,W as WIDGET_MIMETYPE,h as getMarked,i as createLatexTypesetter,C as CodeMirrorEditorFactory,a as CodeMirrorMimeTypeService,c as CompleterModel,b as Completer,P as ProviderReconciliator,f as KernelCompleterProvider,d as CompletionHandler,r as rendererFactory$1,g as rendererFactory$2}from"./index-CzDD-mUF.js";import{D as DOMWidgetModel,g as DOMWidgetView,h as JupyterLuminoPanelWidget,$,M as ManagerBase,R as RenderMimeRegistry,E as ErrorWidgetView,b as base,c as controls,i as createErrorWidgetModel,a as WIDGET_STATE_MIMETYPE,s as shims,e as semverExports,r as requireLoader,S as SemVerCache,J as JUPYTER_WIDGETS_VERSION,d as JUPYTER_CONTROLS_VERSION,L as Lumino}from"./index-B9R5Oy-_.js";import{python}from"./dist-Frc5TvpU.js";import{P as PaintbrushIcon}from"./PaintbrushIcon-CFBHU-3l.js";import{P as ProgressBar}from"./index-BaRoLDk0.js";import{F as ForwardRef}from"./RestartIcon-DvpOf5Mf.js";const KernelActionMenu=n=>{const{kernel:t,outputAdapter:o,onClearOutputs:r}=n;return jsxRuntimeExports.jsxs(ActionMenu,{children:[jsxRuntimeExports.jsx(ActionMenu.Anchor,{children:jsxRuntimeExports.jsx(IconButton,{"aria-labelledby":"",icon:KebabHorizontalIcon,variant:"invisible"})}),jsxRuntimeExports.jsx(ActionMenu.Overlay,{children:jsxRuntimeExports.jsxs(ActionList,{children:[jsxRuntimeExports.jsxs(ActionList.Item,{disabled:!t,onSelect:s=>{t&&t.interrupt().catch(a=>{console.error("[KernelActionMenu] Interrupt failed:",a)})},children:[jsxRuntimeExports.jsx(ActionList.LeadingVisual,{children:jsxRuntimeExports.jsx(StopIcon,{})}),"Interrupt kernel"]}),jsxRuntimeExports.jsxs(ActionList.Item,{disabled:!t,onSelect:s=>{t&&t.restart().catch(a=>{console.error("[KernelActionMenu] Restart failed:",a)})},children:[jsxRuntimeExports.jsx(ActionList.LeadingVisual,{children:jsxRuntimeExports.jsx(ForwardRef,{})}),"Restart kernel"]}),jsxRuntimeExports.jsxs(ActionList.Item,{variant:"danger",disabled:!1,onSelect:s=>{r?r():o&&o.clear()},children:[jsxRuntimeExports.jsx(ActionList.LeadingVisual,{children:jsxRuntimeExports.jsx(PaintbrushIcon,{})}),"Clear outputs"]})]})})]})},KernelProgressBar=()=>{const[n,t]=reactExports.useState(0);return reactExports.useEffect(()=>{const o=setInterval(()=>{t(r=>{let s=r+1;return s>100&&(s=0),s})},100);return()=>clearInterval(o)},[]),jsxRuntimeExports.jsx(ProgressBar,{progress:n,barSize:"small"})},useJupyter=n=>{const{jupyterConfig:t,kernel:o,kernelIsLoading:r,serviceManager:s}=useJupyterReactStoreFromProps(n??{});return{defaultKernel:o,jupyterServerUrl:t.jupyterServerUrl,kernel:o,kernelIsLoading:r,kernelManager:s?.kernels,lite:n?.lite,serverless:n?.serverless??!1,serverSettings:s?.serverSettings,serviceManager:s}},OUTPUT_WIDGET_VERSION="1.0.0";let OutputModel$1=class extends DOMWidgetModel{defaults(){return Object.assign(Object.assign({},super.defaults()),{_model_name:"OutputModel",_view_name:"OutputView",_model_module:"@jupyter-widgets/output",_view_module:"@jupyter-widgets/output",_model_module_version:OUTPUT_WIDGET_VERSION,_view_module_version:OUTPUT_WIDGET_VERSION})}},OutputView$1=class extends DOMWidgetView{};class OutputModel extends OutputModel$1{defaults(){return Object.assign(Object.assign({},super.defaults()),{msg_id:"",outputs:[]})}initialize(t,o){super.initialize(t,o),this._outputs=new OutputAreaModel({trusted:!0}),this.listenTo(this,"change:outputs",this.setOutputs),this.setOutputs()}get outputs(){return this._outputs}clear_output(t=!1){this._outputs.clear(t)}setOutputs(t,o,r){r&&r.newMessage||(this.clear_output(),this._outputs.fromJSON(JSON.parse(JSON.stringify(this.get("outputs")))))}}class OutputView extends OutputView$1{_createElement(t){return this.luminoWidget=new JupyterLuminoPanelWidget({view:this}),this.luminoWidget.node}_setElement(t){if(this.el||t!==this.luminoWidget.node)throw new Error("Cannot reset the DOM element.");this.el=this.luminoWidget.node,this.$el=$(this.luminoWidget.node)}render(){super.render(),this._outputView=new OutputArea({rendermime:this.model.widget_manager.renderMime,model:this.model.outputs}),this.luminoWidget.insertWidget(0,this._outputView),this.luminoWidget.addClass("jupyter-widgets"),this.luminoWidget.addClass("widget-output"),this.update()}remove(){return this._outputView.dispose(),super.remove()}}const outputWidgets=Object.freeze(Object.defineProperty({__proto__:null,OutputModel,OutputView},Symbol.toStringTag,{value:"Module"}));class HTMLManager extends ManagerBase{_viewList;constructor(t){super(),this.loader=t?.loader,this.renderMime=new RenderMimeRegistry({initialFactories:standardRendererFactories}),this.renderMime.addFactory({safe:!1,mimeTypes:[WIDGET_MIMETYPE],createRenderer:o=>new WidgetRenderer(o,this)},0),this._viewList=new Set,window.addEventListener("resize",()=>{this._viewList.forEach(o=>{MessageLoop.postMessage(o.luminoWidget,Widget.ResizeMessage.UnknownSize)})})}async display_view(t,o){let r;try{r=await t}catch(s){const a=`Could not create a view for ${t}`;console.error(a);const u=createErrorWidgetModel(s,a),h=new u;r=new ErrorWidgetView({model:h}),r.render()}Widget.attach(r.luminoWidget,o),this._viewList.add(r),r.once("remove",()=>{this._viewList.delete(r)})}filterExistingModelState(t){return super.filterExistingModelState(t)}_get_comm_info(){return Promise.resolve({})}_create_comm(t,o,r,s,a){return Promise.resolve({on_close:()=>{},on_msg:()=>{},close:()=>{}})}loadClass(t,o,r){return new Promise((s,a)=>{o==="@jupyter-widgets/base"?s(base):o==="@jupyter-widgets/controls"?s(controls):o==="@jupyter-widgets/output"?s(outputWidgets):this.loader!==void 0?s(this.loader(o,r)):a(`Could not load module ${o}@${r}`)}).then(s=>s[t]?s[t]:Promise.reject(`Class ${t} not found in module ${o}@${r}`))}renderMime;loader}class ClassicWidgetManager extends HTMLManager{_kernelConnection;_commRegistration;_onError;_registry;_ready=new PromiseDelegate;constructor(t){super(t),this.comm_target_name="jupyter.widget";const o=()=>{window.define("@jupyter-widgets/base",base),window.define("@jupyter-widgets/controls",controls),this._registry=new SemVerCache,this.register=this.register.bind(this),this.registerWithKernel=this.registerWithKernel.bind(this),this._getRegistry=this._getRegistry.bind(this),this._handleCommOpen=this._handleCommOpen.bind(this),this.register({name:"@jupyter-widgets/base",version:JUPYTER_WIDGETS_VERSION,exports:()=>__vitePreload(()=>import("./index-B9R5Oy-_.js").then(r=>r.b),[],import.meta.url)}),this.register({name:"@jupyter-widgets/controls",version:JUPYTER_CONTROLS_VERSION,exports:()=>__vitePreload(()=>import("./index-B9R5Oy-_.js").then(r=>r.c),[],import.meta.url)}),this._ready.resolve(!0)};if(window.require&&window.define)o();else{const r=document.createElement("script"),s=document.createElement("script");s.setAttribute("data-jupyter-widgets-cdn-only","true"),document.body.appendChild(s),r.src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js",document.body.appendChild(r),r.onload=()=>{o()},r.onerror=a=>{console.error("ClassicWidgetManager: Failed to load RequireJS",a),o()}}}get ready(){return this._ready}async _loadFromNotebook(t){const o=t.getMetadata("widgets");if(o&&o[WIDGET_STATE_MIMETYPE]){let r=o[WIDGET_STATE_MIMETYPE];r=this.filterExistingModelState(r),await this.set_state(r)}}registerWithKernel(t){if(this._kernelConnection=t,this.kernel=t,this._commRegistration&&this._commRegistration.dispose(),t){if(!this._registry){console.error("ClassicWidgetManager: Registry not initialized when registering with kernel.");return}this._commRegistration=t.registerCommTarget(this.comm_target_name,this._handleCommOpen)}else this.kernel=null}async _handleCommOpen(t,o){try{const r=new shims.services.Comm(t);await this.handle_comm_open(r,o)}catch(r){throw console.error("ClassicWidgetManager: Error in _handleCommOpen:",r),r}}_getRegistry(){return this._registry}get onError(){return this._onError}display_view(t,o){return Promise.resolve(t).then(r=>{Widget.attach(r.luminoWidget,o),r.on("remove",()=>{})})}async loadClass(t,o,r){(o==="@jupyter-widgets/base"||o==="@jupyter-widgets/controls")&&semverExports.valid(r)&&(r=`^${r}`);let s=this._getRegistry().getAllVersions(o);const a=r.split(".").length===2?r+".0":r;if(!s){const m=await requireLoader(o,a),w={name:o,version:a.replaceAll("^",""),exports:{...m}};if(this.register(w),s=this._getRegistry().getAllVersions(o),!s)throw new Error(`No version of module ${o} is registered`)}const u=this._getRegistry().get(o,a);if(!u){const m=Object.keys(s);throw new Error(`Module ${o}, version ${a} is not registered, however, ${m.join(",")} ${m.length>1?"are":"is"}`)}let h;typeof u=="function"?h=await u():h=await u;const b=h[t];if(!b)throw new Error(`Class ${t} not found in module ${o}`);return b}callbacks(t){const o=super.callbacks(t);return Object.assign({},o,{iopub:{output:r=>this._onError.emit(r)}})}_create_comm(t,o,r,s,a){const u=this._kernelConnection?.createComm(t,o);return(r||s)&&u?.open(r,s),Promise.resolve(new shims.services.Comm(u))}_get_comm_info(){return this._kernelConnection.requestCommInfo({target_name:this.comm_target_name}).then(t=>t.content.comms)}register(t){this._getRegistry().set(t.name,t.version,t.exports)}}const CSS_CLASS="jp-RenderedPlotly",MIME_TYPE="application/vnd.plotly.v1+json";class RenderedPlotly extends Widget{constructor(t){super(),this.addClass(CSS_CLASS),this._mimeType=t.mimeType,this._img_el=document.createElement("img"),this._img_el.className="plot-img",this.node.appendChild(this._img_el),this._img_el.addEventListener("mouseenter",o=>{this.createGraph(this._model)})}renderModel(t){if(this.hasGraphElement())return Promise.resolve();this._model=t;const o=t.data["image/png"];return o!=null?(this.updateImage(o),Promise.resolve()):this.createGraph(t)}hasGraphElement(){return this.node.querySelector(".plot-container")!==null}updateImage(t){this.hideGraph(),this._img_el.src="data:image/png;base64,"+t,this.showImage()}hideGraph(){const t=this.node.querySelector(".plot-container");t!=null&&(t.style.display="none")}showGraph(){const t=this.node.querySelector(".plot-container");t!=null&&(t.style.display="block")}hideImage(){const t=this.node.querySelector(".plot-img");t!=null&&(t.style.display="none")}showImage(){const t=this.node.querySelector(".plot-img");t!=null&&(t.style.display="block")}createGraph(t){const{data:o,layout:r,frames:s,config:a}=t.data[this._mimeType];return r.height||(r.height=360),(async()=>(RenderedPlotly.Plotly===null&&(RenderedPlotly.Plotly=await __vitePreload(()=>import("./index-DedU423o.js").then(h=>h.i),[],import.meta.url),RenderedPlotly._resolveLoadingPlotly()),RenderedPlotly.loadingPlotly))().then(()=>RenderedPlotly.Plotly.react(this.node,o,r,a)).then(h=>{this.showGraph(),this.hideImage(),this.update(),s&&RenderedPlotly.Plotly.addFrames(this.node,s),this.node.offsetWidth>0&&this.node.offsetHeight>0&&RenderedPlotly.Plotly.toImage(h,{format:"png",width:this.node.offsetWidth,height:this.node.offsetHeight}).then(b=>{const m=b.split(",")[1];t.data["image/png"]!==m&&t.setData({data:{...t.data,"image/png":m}})}),this.node.on("plotly_webglcontextlost",()=>{const b=t.data["image/png"];if(b!=null)return this.updateImage(b),Promise.resolve()})})}onAfterShow(t){this.update()}onResize(t){this.update()}onUpdateRequest(t){RenderedPlotly.Plotly&&this.isVisible&&this.hasGraphElement()&&RenderedPlotly.Plotly.redraw(this.node).then(()=>{RenderedPlotly.Plotly.Plots.resize(this.node)})}_mimeType;_img_el;_model;static Plotly=null;static _resolveLoadingPlotly;static loadingPlotly=new Promise(t=>{RenderedPlotly._resolveLoadingPlotly=t})}const rendererFactory={safe:!0,mimeTypes:[MIME_TYPE],defaultRank:10,createRenderer:n=>new RenderedPlotly(n)};async function execute(n,t,o,r,s,a=!1,u){let h=!0;s&&Array.isArray(s.tags)&&s.tags.indexOf("raises-exception")!==-1&&(h=!1);const m=r.execute(t,{model:o.model,stopOnError:h,suppressCodeExecutionErrors:a,onExecutionPhaseChanged:u})?.future;if(!m){console.warn(`execute: the kernel returned no execution for output ${n}; is it connected?`);return}return o._onIOPub=m.onIOPub,o._onExecuteReply=m.onReply,o.future=m,m.done}const cmdIds={invoke:"completer:invoke",select:"completer:select"},CellCommands=(n,t,o,r)=>{n.addCommand(cmdIds.invoke,{label:"Completer: Invoke",execute:()=>o.invoke()}),n.addCommand(cmdIds.select,{label:"Completer: Select",execute:()=>o.completer.selectActive()}),n.addCommand("run:cell",{execute:()=>{t instanceof CodeCell?r.execute():t instanceof MarkdownCell&&(t.rendered=!0)}}),n.addKeyBinding({selector:".jp-InputArea-editor.jp-mod-completer-enabled",keys:["Tab"],command:cmdIds.invoke}),n.addKeyBinding({selector:".jp-InputArea-editor",keys:["Shift Enter"],command:"run:cell"}),[{selector:".jp-InputArea-editor.jp-mod-completer-active",keys:["Enter"],command:cmdIds.select}].map(a=>n.addKeyBinding(a))};class CellAdapter{_id;_outputs;_cell;_kernel;_panel;_sessionContext;_variant;_type;_iPyWidgetsClassicManager;constructor(t){const{id:o,type:r,source:s,outputs:a,kernel:u,boxOptions:h,variant:b}=t;this._id=o,this._variant=b,this._outputs=a,this._kernel=u,this._type=r,this.setupCell(r,s,u,h)}setupCell(t="code",o,r,s){const a=r.sessionManager,u=r.kernelSpecManager,h=r?{id:r.id,shouldStart:!1,autoStartDefault:!1,shutdownOnDispose:!1}:{name:"python",shouldStart:!0,autoStartDefault:!0,shutdownOnDispose:!0};this._sessionContext=new SessionContext({name:r?.path,path:r?.path,sessionManager:a,specsManager:u,type:"python",kernelPreference:h}),this._sessionContext._initialize=async()=>{const l=this._sessionContext.sessionManager;await l.ready,await l.refreshRunning();const y=find(l.running(),A=>A.kernel?.id===this._kernel.id);if(y)try{const A=l.connectTo({model:y,kernelConnectionOptions:{handleComms:!0}});A.kernel&&!A.kernel.handleComms&&(A.kernel.handleComms=!0),this._sessionContext._handleNewSession(A)}catch(A){return this._sessionContext._handleSessionError(A),Promise.reject(A)}return await this._sessionContext._startIfNecessary()};const b=new EditorThemeRegistry;for(const l of EditorThemeRegistry.getDefaultThemes())b.addTheme(l);const m=()=>{const l=new EditorExtensionRegistry;for(const y of EditorExtensionRegistry.getDefaultExtensions({themes:b}))l.addExtension(y);return l.addExtension({name:"shared-model-binding",factory:y=>{const A=y.model.sharedModel;return EditorExtensionRegistry.createImmutableExtension(ybinding({ytext:A.ysource,undoManager:A.undoManager??void 0}))}}),l},w=new EditorLanguageRegistry;for(const l of EditorLanguageRegistry.getDefaultLanguages())w.addLanguage(l);w.addLanguage({name:"ipythongfm",mime:"text/x-ipythongfm",load:async()=>(await __vitePreload(()=>import("./dist-eeUvSSUK.js"),[],import.meta.url)).markdown({codeLanguages:y=>w.findBest(y)})});const E=new CodeMirrorMimeTypeService(w),R=new CommandRegistry;document.addEventListener("keydown",l=>{const y=document.activeElement;y&&y.closest(".dla-Jupyter-Cell")===this._cell.node&&R.processKeydownEvent(l)},!0);const k=new RenderMimeRegistry({initialFactories:standardRendererFactories,latexTypesetter:createLatexTypesetter(),markdownParser:getMarked(w)});this._iPyWidgetsClassicManager=new ClassicWidgetManager({loader:requireLoader}),k.addFactory({safe:!1,mimeTypes:[WIDGET_MIMETYPE],createRenderer:l=>new WidgetRenderer(l,this._iPyWidgetsClassicManager)},0);const q=new CodeMirrorEditorFactory({extensions:m(),languages:w}),_=createStandaloneCell({cell_type:t,source:o,outputs:this._outputs,metadata:{}}),S=new Cell$1.ContentFactory({editorFactory:q.newInlineEditor.bind(q)});if(t==="code"){const l=_;this._cell=new CodeCell({rendermime:k,model:new CodeCellModel({sharedModel:l}),contentFactory:S})}else if(t==="markdown"){const l=_;this._cell=new MarkdownCell({rendermime:k,model:new MarkdownCellModel({sharedModel:l}),contentFactory:S})}this._cell.addClass("dla-Jupyter-Cell"),this._cell.initializeState(),this._type==="markdown"&&(this._cell.rendered=!1);let D=!1,T=null;const O=async l=>{if(l&&(!D||T!==l.id))try{l.handleComms||(console.warn("Kernel connection does not handle Comms, enabling it",l.id),l.handleComms=!0),D=!0,T=l.id,await l.info,l.connectionStatus==="connected"?this._iPyWidgetsClassicManager?.registerWithKernel(l):console.log("Kernel disconnected while waiting for info, will retry on next connection...")}catch(y){console.error("Error getting kernel info or registering widget manager:",y),D=!1,T=null,setTimeout(()=>{l.connectionStatus==="connected"&&T!==l.id&&(this._iPyWidgetsClassicManager?.registerWithKernel(l),D=!0,T=l.id)},1e3)}else!l&&D&&(this._iPyWidgetsClassicManager?.registerWithKernel(null),D=!1,T=null)};this._sessionContext.kernelChanged.connect((l,y)=>{const A=y.newValue;D=!1,T=null,O(A)}),this._sessionContext.kernelChanged.connect(()=>{this._sessionContext.session?.kernel?.info.then(l=>{if(this._type==="code"){const y=l.language_info,A=E.getMimeTypeByLanguage(y);this._cell.model&&(this._cell.model.mimeType=A)}})}),this._sessionContext.ready.then(()=>{const l=this._sessionContext.session?.kernel;O(l||null)});const F=this._cell.editor,B=new CompleterModel,P=new Completer({editor:F,model:B}),I=1e3,j=new KernelCompleterProvider,H=new ProviderReconciliator({context:{widget:this._cell,editor:F,session:this._sessionContext.session},providers:[j],timeout:I}),G=new CompletionHandler({completer:P,reconciliator:H});this._sessionContext.ready.then(()=>{const l=new KernelCompleterProvider;G.reconciliator=new ProviderReconciliator({context:{widget:this._cell,editor:F,session:this._sessionContext.session},providers:[l],timeout:I})}),this._cell.ready.then(()=>{G.editor=this._cell&&this._cell.editor}),CellCommands(R,this._cell,G,this),P.hide(),P.addClass("jp-Completer-Cell"),Widget.attach(P,document.body);const i=new Toolbar;i.addItem("spacer",Toolbar.createSpacerItem());const p=new ToolbarButton({icon:runIcon,onClick:()=>{this._type==="code"?this.execute():this._type==="markdown"&&(this._cell.rendered=!0)},tooltip:"Run"});i.addItem("run",p),i.addItem("interrupt",Toolbar.createInterruptButton(this._sessionContext)),i.addItem("restart",Toolbar.createRestartButton(this._sessionContext)),i.addItem("status",Toolbar.createKernelStatusItem(this._sessionContext)),this._type==="code"&&(this._cell.outputsScrolled=!1),this._cell.activate(),this._panel=new BoxPanel,this._panel.direction="top-to-bottom",this._panel.spacing=0,s?.showToolbar!==!1&&this._panel.addWidget(i),this._panel.addWidget(this._cell),s?.showToolbar!==!1&&BoxPanel.setStretch(i,0),BoxPanel.setStretch(this._cell,1),window.addEventListener("resize",()=>{this._panel.update()}),this._panel.update()}get panel(){return this._panel}get cell(){return this._cell}get sessionContext(){return this._sessionContext}get kernel(){return this._kernel}get variant(){return this._variant??this._kernel?.variant??DEFAULT_VARIANT}execute=({react:t=!0}={})=>{this._type==="code"?(this._iPyWidgetsClassicManager?.registerWithKernel(this._kernel.connection),this._execute(this._cell,void 0,t)):this._type==="markdown"&&(this._cell.rendered=!0)};reactive(){const t=this._kernel?.connection;return this.variant==="marimo"&&t?MarimoReactive.for(t):void 0}async _execute(t,o,r=!0){cellsStore.getState().setIsExecuting(this._id,!0);const s=t.model,a=s.sharedModel.getSource();if(!a.trim()||!this.kernel)return s.sharedModel.transact(()=>{s.clearExecution()},!1),cellsStore.getState().setIsExecuting(this._id,!1),new Promise(()=>{});const u=this.reactive();u&&(u.bindRunner(this._id,()=>this._execute(t,void 0,!1)),(await u.register(this._id,a)).error&&u.unbindRunner(this._id));const h={cellId:s.sharedModel.getId()};o={...s.metadata,...o,...h};const{recordTiming:b}=o;s.sharedModel.transact(()=>{s.clearExecution(),t.outputHidden=!1},!1),t.setPrompt("*"),s.trusted=!0;let m;try{const w=execute(this._id,a,t.outputArea,this._kernel,o);if(b){const R=C=>{let k;switch(C.header.msg_type){case"status":k=`status.${C.content.execution_state}`;break;case"execute_input":k="execute_input";break;default:return!0}const q=C.header.date||new Date().toISOString(),_=Object.assign({},s.getMetadata("execution"));return _[`iopub.${k}`]=q,s.setMetadata("execution",_),!0};t.outputArea.future.registerMessageHook(R)}else s.deleteMetadata("execution");m=t.outputArea.future;const E=await w;if(s.executionCount=E.content.execution_count,b){const R=Object.assign({},s.getMetadata("execution")),C=E.metadata.started;C&&(R["shell.execute_reply.started"]=C);const k=E.header.date;R["shell.execute_reply"]=k||new Date().toISOString(),s.setMetadata("execution",R)}return cellsStore.getState().setIsExecuting(this._id,!1),u&&r&&!u.reacting&&E.content.status==="ok"&&await u.react(this._id),E}catch(w){if(cellsStore.getState().setIsExecuting(this._id,!1),m&&!t.isDisposed&&t.outputArea.future===m&&(t.setPrompt(""),b&&m.isDisposed)){const E=Object.assign({},s.getMetadata("execution"));E.execution_failed=new Date().toISOString(),s.setMetadata("execution",E)}throw w}}}const themes=new EditorThemeRegistry,editorExtensions=()=>{const n=new EditorExtensionRegistry;for(const t of EditorExtensionRegistry.getDefaultExtensions({themes}))n.addExtension(t);return n.addExtension({name:"shared-model-binding",factory:t=>{const o=t.model.sharedModel;return EditorExtensionRegistry.createImmutableExtension(ybinding({ytext:o.ysource,undoManager:o.undoManager??void 0}))}}),n},languages=new EditorLanguageRegistry;for(const n of EditorLanguageRegistry.getDefaultLanguages())languages.addLanguage(n);languages.addLanguage({name:"ipythongfm",mime:"text/x-ipythongfm",load:async()=>(await __vitePreload(()=>import("./dist-eeUvSSUK.js"),[],import.meta.url)).markdown({codeLanguages:t=>languages.findBest(t)})});const renderFactories=standardRendererFactories.concat(rendererFactory),rendermime=new RenderMimeRegistry({initialFactories:renderFactories,latexTypesetter:createLatexTypesetter(),markdownParser:getMarked(languages)}),factoryService=new CodeMirrorEditorFactory({extensions:editorExtensions(),languages}),InputViewer=n=>{const{cell:t,languageInfo:o}=n,r=t.id||newUuid();switch(t.cell_type){case"code":{const s=createStandaloneCell(t),a=new CodeCell({rendermime,model:new CodeCellModel({sharedModel:s}),contentFactory:new Cell$1.ContentFactory({editorFactory:factoryService.newInlineEditor.bind(factoryService)})}).initializeState();return o&&o.mimetype&&(a.model.mimeType=o.mimetype),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Lumino,{id:r,children:a})})}case"markdown":{const s=createStandaloneCell(t),a=new MarkdownCell({rendermime,showEditorForReadOnlyMarkdown:!1,model:new MarkdownCellModel({sharedModel:s}),contentFactory:new Cell$1.ContentFactory({editorFactory:factoryService.newInlineEditor.bind(factoryService)})}).initializeState();return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Lumino,{id:r,children:a})})}case"raw":{const s=createStandaloneCell(t),a=new RawCell({model:new RawCellModel({sharedModel:s}),contentFactory:new Cell$1.ContentFactory({editorFactory:factoryService.newInlineEditor.bind(factoryService)})});return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Lumino,{id:r,children:a})})}default:return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})}};class OutputViewerAdapter{_renderers;_outputArea;_rendermime;constructor(adaptPlotly,outputs){this._renderers=standardRendererFactories.filter(n=>n.mimeTypes[0]!=="text/javascript"),this._renderers.push(rendererFactory$1),this._renderers.push(rendererFactory$2),this._rendermime=new RenderMimeRegistry({initialFactories:this._renderers});const outputAreaModel=new OutputAreaModel({trusted:!0,values:outputs});if(this._outputArea=new OutputArea({model:outputAreaModel,rendermime:this._rendermime}),adaptPlotly&&outputs&&outputs[0]){const data=outputs[0].data,isPlotly=data["application/vnd.plotly.v1+json"];if(isPlotly){let script=this._outputArea.node.children[0].children[1].children[0].children[1].innerHTML;script=script.replaceAll(`
1
+ import{j as jsxRuntimeExports,e9 as ActionMenu,I as IconButton,h1 as KebabHorizontalIcon,bl as ActionList,ki as StopIcon,r as reactExports,le as useJupyterReactStoreFromProps,kK as OutputAreaModel,lf as OutputArea,av as standardRendererFactories,gB as MessageLoop,aB as Widget,bh as PromiseDelegate,_ as __vitePreload,f3 as CodeCell,iK as MarkdownCell,kd as SessionContext,cs as find,eB as EditorThemeRegistry,ex as EditorLanguageRegistry,dL as CommandRegistry,lg as createStandaloneCell,iN as Cell$1,kA as CodeCellModel,kz as MarkdownCellModel,dC as ToolbarButton,fR as runIcon,lh as BoxPanel,kH as DEFAULT_VARIANT,kI as MarimoReactive,li as cellsStore,eC as EditorExtensionRegistry,eD as ybinding,kM as newUuid,lj as RawCell,ky as RawCellModel,lk as useCellsStore,B as Box,dv as StyledSpinner,ll as getPanel,lm as activateHover,kq as StateField,ln as showPanel,bN as EditorView,kE as Decoration,kD as StateEffect,kn as Facet,lo as combineConfig,lp as RangeSetBuilder,lq as crelt,lr as hoverTooltip,kF as WidgetType,ls as lineNumbers,lt as highlightActiveLineGutter,lu as highlightSpecialChars,lv as history,lw as foldGutter,lx as drawSelection,ly as dropCursor,c2 as EditorState,lz as indentOnInput,lA as syntaxHighlighting,lB as bracketMatching,lC as closeBrackets,lD as autocompletion,lE as rectangularSelection,lF as crosshairCursor,lG as highlightActiveLine,lH as highlightSelectionMatches,bZ as keymap,lI as closeBracketsKeymap,lJ as defaultKeymap,lK as searchKeymap,lL as historyKeymap,lM as foldKeymap,lN as completionKeymap,lO as defaultHighlightStyle,gb as useTheme,bx as Box$1,lP as ArrowRightIcon,lQ as useOutputsStore,bY as Prec,lR as Compartment,at as getDefaultExportFromCjs}from"../datalayer-app-main.js";import{q as Toolbar}from"./index-QUGTBUbz.js";import{j as WidgetRenderer,W as WIDGET_MIMETYPE,h as getMarked,i as createLatexTypesetter,C as CodeMirrorEditorFactory,a as CodeMirrorMimeTypeService,c as CompleterModel,b as Completer,P as ProviderReconciliator,f as KernelCompleterProvider,d as CompletionHandler,r as rendererFactory$1,g as rendererFactory$2}from"./index-CzDD-mUF.js";import{D as DOMWidgetModel,g as DOMWidgetView,h as JupyterLuminoPanelWidget,$,M as ManagerBase,R as RenderMimeRegistry,E as ErrorWidgetView,b as base,c as controls,i as createErrorWidgetModel,a as WIDGET_STATE_MIMETYPE,s as shims,e as semverExports,r as requireLoader,S as SemVerCache,J as JUPYTER_WIDGETS_VERSION,d as JUPYTER_CONTROLS_VERSION,L as Lumino}from"./index-B9R5Oy-_.js";import{python}from"./dist-Frc5TvpU.js";import{P as PaintbrushIcon}from"./PaintbrushIcon-CFBHU-3l.js";import{P as ProgressBar}from"./index-BaRoLDk0.js";import{F as ForwardRef}from"./RestartIcon-DvpOf5Mf.js";const KernelActionMenu=n=>{const{kernel:t,outputAdapter:o,onClearOutputs:r}=n;return jsxRuntimeExports.jsxs(ActionMenu,{children:[jsxRuntimeExports.jsx(ActionMenu.Anchor,{children:jsxRuntimeExports.jsx(IconButton,{"aria-labelledby":"",icon:KebabHorizontalIcon,variant:"invisible"})}),jsxRuntimeExports.jsx(ActionMenu.Overlay,{children:jsxRuntimeExports.jsxs(ActionList,{children:[jsxRuntimeExports.jsxs(ActionList.Item,{disabled:!t,onSelect:s=>{t&&t.interrupt().catch(a=>{console.error("[KernelActionMenu] Interrupt failed:",a)})},children:[jsxRuntimeExports.jsx(ActionList.LeadingVisual,{children:jsxRuntimeExports.jsx(StopIcon,{})}),"Interrupt kernel"]}),jsxRuntimeExports.jsxs(ActionList.Item,{disabled:!t,onSelect:s=>{t&&t.restart().catch(a=>{console.error("[KernelActionMenu] Restart failed:",a)})},children:[jsxRuntimeExports.jsx(ActionList.LeadingVisual,{children:jsxRuntimeExports.jsx(ForwardRef,{})}),"Restart kernel"]}),jsxRuntimeExports.jsxs(ActionList.Item,{variant:"danger",disabled:!1,onSelect:s=>{r?r():o&&o.clear()},children:[jsxRuntimeExports.jsx(ActionList.LeadingVisual,{children:jsxRuntimeExports.jsx(PaintbrushIcon,{})}),"Clear outputs"]})]})})]})},KernelProgressBar=()=>{const[n,t]=reactExports.useState(0);return reactExports.useEffect(()=>{const o=setInterval(()=>{t(r=>{let s=r+1;return s>100&&(s=0),s})},100);return()=>clearInterval(o)},[]),jsxRuntimeExports.jsx(ProgressBar,{progress:n,barSize:"small"})},useJupyter=n=>{const{jupyterConfig:t,kernel:o,kernelIsLoading:r,serviceManager:s}=useJupyterReactStoreFromProps(n??{});return{defaultKernel:o,jupyterServerUrl:t.jupyterServerUrl,kernel:o,kernelIsLoading:r,kernelManager:s?.kernels,lite:n?.lite,serverless:n?.serverless??!1,serverSettings:s?.serverSettings,serviceManager:s}},OUTPUT_WIDGET_VERSION="1.0.0";let OutputModel$1=class extends DOMWidgetModel{defaults(){return Object.assign(Object.assign({},super.defaults()),{_model_name:"OutputModel",_view_name:"OutputView",_model_module:"@jupyter-widgets/output",_view_module:"@jupyter-widgets/output",_model_module_version:OUTPUT_WIDGET_VERSION,_view_module_version:OUTPUT_WIDGET_VERSION})}},OutputView$1=class extends DOMWidgetView{};class OutputModel extends OutputModel$1{defaults(){return Object.assign(Object.assign({},super.defaults()),{msg_id:"",outputs:[]})}initialize(t,o){super.initialize(t,o),this._outputs=new OutputAreaModel({trusted:!0}),this.listenTo(this,"change:outputs",this.setOutputs),this.setOutputs()}get outputs(){return this._outputs}clear_output(t=!1){this._outputs.clear(t)}setOutputs(t,o,r){r&&r.newMessage||(this.clear_output(),this._outputs.fromJSON(JSON.parse(JSON.stringify(this.get("outputs")))))}}class OutputView extends OutputView$1{_createElement(t){return this.luminoWidget=new JupyterLuminoPanelWidget({view:this}),this.luminoWidget.node}_setElement(t){if(this.el||t!==this.luminoWidget.node)throw new Error("Cannot reset the DOM element.");this.el=this.luminoWidget.node,this.$el=$(this.luminoWidget.node)}render(){super.render(),this._outputView=new OutputArea({rendermime:this.model.widget_manager.renderMime,model:this.model.outputs}),this.luminoWidget.insertWidget(0,this._outputView),this.luminoWidget.addClass("jupyter-widgets"),this.luminoWidget.addClass("widget-output"),this.update()}remove(){return this._outputView.dispose(),super.remove()}}const outputWidgets=Object.freeze(Object.defineProperty({__proto__:null,OutputModel,OutputView},Symbol.toStringTag,{value:"Module"}));class HTMLManager extends ManagerBase{_viewList;constructor(t){super(),this.loader=t?.loader,this.renderMime=new RenderMimeRegistry({initialFactories:standardRendererFactories}),this.renderMime.addFactory({safe:!1,mimeTypes:[WIDGET_MIMETYPE],createRenderer:o=>new WidgetRenderer(o,this)},0),this._viewList=new Set,window.addEventListener("resize",()=>{this._viewList.forEach(o=>{MessageLoop.postMessage(o.luminoWidget,Widget.ResizeMessage.UnknownSize)})})}async display_view(t,o){let r;try{r=await t}catch(s){const a=`Could not create a view for ${t}`;console.error(a);const u=createErrorWidgetModel(s,a),h=new u;r=new ErrorWidgetView({model:h}),r.render()}Widget.attach(r.luminoWidget,o),this._viewList.add(r),r.once("remove",()=>{this._viewList.delete(r)})}filterExistingModelState(t){return super.filterExistingModelState(t)}_get_comm_info(){return Promise.resolve({})}_create_comm(t,o,r,s,a){return Promise.resolve({on_close:()=>{},on_msg:()=>{},close:()=>{}})}loadClass(t,o,r){return new Promise((s,a)=>{o==="@jupyter-widgets/base"?s(base):o==="@jupyter-widgets/controls"?s(controls):o==="@jupyter-widgets/output"?s(outputWidgets):this.loader!==void 0?s(this.loader(o,r)):a(`Could not load module ${o}@${r}`)}).then(s=>s[t]?s[t]:Promise.reject(`Class ${t} not found in module ${o}@${r}`))}renderMime;loader}class ClassicWidgetManager extends HTMLManager{_kernelConnection;_commRegistration;_onError;_registry;_ready=new PromiseDelegate;constructor(t){super(t),this.comm_target_name="jupyter.widget";const o=()=>{window.define("@jupyter-widgets/base",base),window.define("@jupyter-widgets/controls",controls),this._registry=new SemVerCache,this.register=this.register.bind(this),this.registerWithKernel=this.registerWithKernel.bind(this),this._getRegistry=this._getRegistry.bind(this),this._handleCommOpen=this._handleCommOpen.bind(this),this.register({name:"@jupyter-widgets/base",version:JUPYTER_WIDGETS_VERSION,exports:()=>__vitePreload(()=>import("./index-B9R5Oy-_.js").then(r=>r.b),[],import.meta.url)}),this.register({name:"@jupyter-widgets/controls",version:JUPYTER_CONTROLS_VERSION,exports:()=>__vitePreload(()=>import("./index-B9R5Oy-_.js").then(r=>r.c),[],import.meta.url)}),this._ready.resolve(!0)};if(window.require&&window.define)o();else{const r=document.createElement("script"),s=document.createElement("script");s.setAttribute("data-jupyter-widgets-cdn-only","true"),document.body.appendChild(s),r.src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js",document.body.appendChild(r),r.onload=()=>{o()},r.onerror=a=>{console.error("ClassicWidgetManager: Failed to load RequireJS",a),o()}}}get ready(){return this._ready}async _loadFromNotebook(t){const o=t.getMetadata("widgets");if(o&&o[WIDGET_STATE_MIMETYPE]){let r=o[WIDGET_STATE_MIMETYPE];r=this.filterExistingModelState(r),await this.set_state(r)}}registerWithKernel(t){if(this._kernelConnection=t,this.kernel=t,this._commRegistration&&this._commRegistration.dispose(),t){if(!this._registry){console.error("ClassicWidgetManager: Registry not initialized when registering with kernel.");return}this._commRegistration=t.registerCommTarget(this.comm_target_name,this._handleCommOpen)}else this.kernel=null}async _handleCommOpen(t,o){try{const r=new shims.services.Comm(t);await this.handle_comm_open(r,o)}catch(r){throw console.error("ClassicWidgetManager: Error in _handleCommOpen:",r),r}}_getRegistry(){return this._registry}get onError(){return this._onError}display_view(t,o){return Promise.resolve(t).then(r=>{Widget.attach(r.luminoWidget,o),r.on("remove",()=>{})})}async loadClass(t,o,r){(o==="@jupyter-widgets/base"||o==="@jupyter-widgets/controls")&&semverExports.valid(r)&&(r=`^${r}`);let s=this._getRegistry().getAllVersions(o);const a=r.split(".").length===2?r+".0":r;if(!s){const m=await requireLoader(o,a),w={name:o,version:a.replaceAll("^",""),exports:{...m}};if(this.register(w),s=this._getRegistry().getAllVersions(o),!s)throw new Error(`No version of module ${o} is registered`)}const u=this._getRegistry().get(o,a);if(!u){const m=Object.keys(s);throw new Error(`Module ${o}, version ${a} is not registered, however, ${m.join(",")} ${m.length>1?"are":"is"}`)}let h;typeof u=="function"?h=await u():h=await u;const b=h[t];if(!b)throw new Error(`Class ${t} not found in module ${o}`);return b}callbacks(t){const o=super.callbacks(t);return Object.assign({},o,{iopub:{output:r=>this._onError.emit(r)}})}_create_comm(t,o,r,s,a){const u=this._kernelConnection?.createComm(t,o);return(r||s)&&u?.open(r,s),Promise.resolve(new shims.services.Comm(u))}_get_comm_info(){return this._kernelConnection.requestCommInfo({target_name:this.comm_target_name}).then(t=>t.content.comms)}register(t){this._getRegistry().set(t.name,t.version,t.exports)}}const CSS_CLASS="jp-RenderedPlotly",MIME_TYPE="application/vnd.plotly.v1+json";class RenderedPlotly extends Widget{constructor(t){super(),this.addClass(CSS_CLASS),this._mimeType=t.mimeType,this._img_el=document.createElement("img"),this._img_el.className="plot-img",this.node.appendChild(this._img_el),this._img_el.addEventListener("mouseenter",o=>{this.createGraph(this._model)})}renderModel(t){if(this.hasGraphElement())return Promise.resolve();this._model=t;const o=t.data["image/png"];return o!=null?(this.updateImage(o),Promise.resolve()):this.createGraph(t)}hasGraphElement(){return this.node.querySelector(".plot-container")!==null}updateImage(t){this.hideGraph(),this._img_el.src="data:image/png;base64,"+t,this.showImage()}hideGraph(){const t=this.node.querySelector(".plot-container");t!=null&&(t.style.display="none")}showGraph(){const t=this.node.querySelector(".plot-container");t!=null&&(t.style.display="block")}hideImage(){const t=this.node.querySelector(".plot-img");t!=null&&(t.style.display="none")}showImage(){const t=this.node.querySelector(".plot-img");t!=null&&(t.style.display="block")}createGraph(t){const{data:o,layout:r,frames:s,config:a}=t.data[this._mimeType];return r.height||(r.height=360),(async()=>(RenderedPlotly.Plotly===null&&(RenderedPlotly.Plotly=await __vitePreload(()=>import("./index-Botot3k_.js").then(h=>h.i),[],import.meta.url),RenderedPlotly._resolveLoadingPlotly()),RenderedPlotly.loadingPlotly))().then(()=>RenderedPlotly.Plotly.react(this.node,o,r,a)).then(h=>{this.showGraph(),this.hideImage(),this.update(),s&&RenderedPlotly.Plotly.addFrames(this.node,s),this.node.offsetWidth>0&&this.node.offsetHeight>0&&RenderedPlotly.Plotly.toImage(h,{format:"png",width:this.node.offsetWidth,height:this.node.offsetHeight}).then(b=>{const m=b.split(",")[1];t.data["image/png"]!==m&&t.setData({data:{...t.data,"image/png":m}})}),this.node.on("plotly_webglcontextlost",()=>{const b=t.data["image/png"];if(b!=null)return this.updateImage(b),Promise.resolve()})})}onAfterShow(t){this.update()}onResize(t){this.update()}onUpdateRequest(t){RenderedPlotly.Plotly&&this.isVisible&&this.hasGraphElement()&&RenderedPlotly.Plotly.redraw(this.node).then(()=>{RenderedPlotly.Plotly.Plots.resize(this.node)})}_mimeType;_img_el;_model;static Plotly=null;static _resolveLoadingPlotly;static loadingPlotly=new Promise(t=>{RenderedPlotly._resolveLoadingPlotly=t})}const rendererFactory={safe:!0,mimeTypes:[MIME_TYPE],defaultRank:10,createRenderer:n=>new RenderedPlotly(n)};async function execute(n,t,o,r,s,a=!1,u){let h=!0;s&&Array.isArray(s.tags)&&s.tags.indexOf("raises-exception")!==-1&&(h=!1);const m=r.execute(t,{model:o.model,stopOnError:h,suppressCodeExecutionErrors:a,onExecutionPhaseChanged:u})?.future;if(!m){console.warn(`execute: the kernel returned no execution for output ${n}; is it connected?`);return}return o._onIOPub=m.onIOPub,o._onExecuteReply=m.onReply,o.future=m,m.done}const cmdIds={invoke:"completer:invoke",select:"completer:select"},CellCommands=(n,t,o,r)=>{n.addCommand(cmdIds.invoke,{label:"Completer: Invoke",execute:()=>o.invoke()}),n.addCommand(cmdIds.select,{label:"Completer: Select",execute:()=>o.completer.selectActive()}),n.addCommand("run:cell",{execute:()=>{t instanceof CodeCell?r.execute():t instanceof MarkdownCell&&(t.rendered=!0)}}),n.addKeyBinding({selector:".jp-InputArea-editor.jp-mod-completer-enabled",keys:["Tab"],command:cmdIds.invoke}),n.addKeyBinding({selector:".jp-InputArea-editor",keys:["Shift Enter"],command:"run:cell"}),[{selector:".jp-InputArea-editor.jp-mod-completer-active",keys:["Enter"],command:cmdIds.select}].map(a=>n.addKeyBinding(a))};class CellAdapter{_id;_outputs;_cell;_kernel;_panel;_sessionContext;_variant;_type;_iPyWidgetsClassicManager;constructor(t){const{id:o,type:r,source:s,outputs:a,kernel:u,boxOptions:h,variant:b}=t;this._id=o,this._variant=b,this._outputs=a,this._kernel=u,this._type=r,this.setupCell(r,s,u,h)}setupCell(t="code",o,r,s){const a=r.sessionManager,u=r.kernelSpecManager,h=r?{id:r.id,shouldStart:!1,autoStartDefault:!1,shutdownOnDispose:!1}:{name:"python",shouldStart:!0,autoStartDefault:!0,shutdownOnDispose:!0};this._sessionContext=new SessionContext({name:r?.path,path:r?.path,sessionManager:a,specsManager:u,type:"python",kernelPreference:h}),this._sessionContext._initialize=async()=>{const l=this._sessionContext.sessionManager;await l.ready,await l.refreshRunning();const y=find(l.running(),A=>A.kernel?.id===this._kernel.id);if(y)try{const A=l.connectTo({model:y,kernelConnectionOptions:{handleComms:!0}});A.kernel&&!A.kernel.handleComms&&(A.kernel.handleComms=!0),this._sessionContext._handleNewSession(A)}catch(A){return this._sessionContext._handleSessionError(A),Promise.reject(A)}return await this._sessionContext._startIfNecessary()};const b=new EditorThemeRegistry;for(const l of EditorThemeRegistry.getDefaultThemes())b.addTheme(l);const m=()=>{const l=new EditorExtensionRegistry;for(const y of EditorExtensionRegistry.getDefaultExtensions({themes:b}))l.addExtension(y);return l.addExtension({name:"shared-model-binding",factory:y=>{const A=y.model.sharedModel;return EditorExtensionRegistry.createImmutableExtension(ybinding({ytext:A.ysource,undoManager:A.undoManager??void 0}))}}),l},w=new EditorLanguageRegistry;for(const l of EditorLanguageRegistry.getDefaultLanguages())w.addLanguage(l);w.addLanguage({name:"ipythongfm",mime:"text/x-ipythongfm",load:async()=>(await __vitePreload(()=>import("./dist-eeUvSSUK.js"),[],import.meta.url)).markdown({codeLanguages:y=>w.findBest(y)})});const E=new CodeMirrorMimeTypeService(w),R=new CommandRegistry;document.addEventListener("keydown",l=>{const y=document.activeElement;y&&y.closest(".dla-Jupyter-Cell")===this._cell.node&&R.processKeydownEvent(l)},!0);const k=new RenderMimeRegistry({initialFactories:standardRendererFactories,latexTypesetter:createLatexTypesetter(),markdownParser:getMarked(w)});this._iPyWidgetsClassicManager=new ClassicWidgetManager({loader:requireLoader}),k.addFactory({safe:!1,mimeTypes:[WIDGET_MIMETYPE],createRenderer:l=>new WidgetRenderer(l,this._iPyWidgetsClassicManager)},0);const q=new CodeMirrorEditorFactory({extensions:m(),languages:w}),_=createStandaloneCell({cell_type:t,source:o,outputs:this._outputs,metadata:{}}),S=new Cell$1.ContentFactory({editorFactory:q.newInlineEditor.bind(q)});if(t==="code"){const l=_;this._cell=new CodeCell({rendermime:k,model:new CodeCellModel({sharedModel:l}),contentFactory:S})}else if(t==="markdown"){const l=_;this._cell=new MarkdownCell({rendermime:k,model:new MarkdownCellModel({sharedModel:l}),contentFactory:S})}this._cell.addClass("dla-Jupyter-Cell"),this._cell.initializeState(),this._type==="markdown"&&(this._cell.rendered=!1);let D=!1,T=null;const O=async l=>{if(l&&(!D||T!==l.id))try{l.handleComms||(console.warn("Kernel connection does not handle Comms, enabling it",l.id),l.handleComms=!0),D=!0,T=l.id,await l.info,l.connectionStatus==="connected"?this._iPyWidgetsClassicManager?.registerWithKernel(l):console.log("Kernel disconnected while waiting for info, will retry on next connection...")}catch(y){console.error("Error getting kernel info or registering widget manager:",y),D=!1,T=null,setTimeout(()=>{l.connectionStatus==="connected"&&T!==l.id&&(this._iPyWidgetsClassicManager?.registerWithKernel(l),D=!0,T=l.id)},1e3)}else!l&&D&&(this._iPyWidgetsClassicManager?.registerWithKernel(null),D=!1,T=null)};this._sessionContext.kernelChanged.connect((l,y)=>{const A=y.newValue;D=!1,T=null,O(A)}),this._sessionContext.kernelChanged.connect(()=>{this._sessionContext.session?.kernel?.info.then(l=>{if(this._type==="code"){const y=l.language_info,A=E.getMimeTypeByLanguage(y);this._cell.model&&(this._cell.model.mimeType=A)}})}),this._sessionContext.ready.then(()=>{const l=this._sessionContext.session?.kernel;O(l||null)});const F=this._cell.editor,B=new CompleterModel,P=new Completer({editor:F,model:B}),I=1e3,j=new KernelCompleterProvider,H=new ProviderReconciliator({context:{widget:this._cell,editor:F,session:this._sessionContext.session},providers:[j],timeout:I}),G=new CompletionHandler({completer:P,reconciliator:H});this._sessionContext.ready.then(()=>{const l=new KernelCompleterProvider;G.reconciliator=new ProviderReconciliator({context:{widget:this._cell,editor:F,session:this._sessionContext.session},providers:[l],timeout:I})}),this._cell.ready.then(()=>{G.editor=this._cell&&this._cell.editor}),CellCommands(R,this._cell,G,this),P.hide(),P.addClass("jp-Completer-Cell"),Widget.attach(P,document.body);const i=new Toolbar;i.addItem("spacer",Toolbar.createSpacerItem());const p=new ToolbarButton({icon:runIcon,onClick:()=>{this._type==="code"?this.execute():this._type==="markdown"&&(this._cell.rendered=!0)},tooltip:"Run"});i.addItem("run",p),i.addItem("interrupt",Toolbar.createInterruptButton(this._sessionContext)),i.addItem("restart",Toolbar.createRestartButton(this._sessionContext)),i.addItem("status",Toolbar.createKernelStatusItem(this._sessionContext)),this._type==="code"&&(this._cell.outputsScrolled=!1),this._cell.activate(),this._panel=new BoxPanel,this._panel.direction="top-to-bottom",this._panel.spacing=0,s?.showToolbar!==!1&&this._panel.addWidget(i),this._panel.addWidget(this._cell),s?.showToolbar!==!1&&BoxPanel.setStretch(i,0),BoxPanel.setStretch(this._cell,1),window.addEventListener("resize",()=>{this._panel.update()}),this._panel.update()}get panel(){return this._panel}get cell(){return this._cell}get sessionContext(){return this._sessionContext}get kernel(){return this._kernel}get variant(){return this._variant??this._kernel?.variant??DEFAULT_VARIANT}execute=({react:t=!0}={})=>{this._type==="code"?(this._iPyWidgetsClassicManager?.registerWithKernel(this._kernel.connection),this._execute(this._cell,void 0,t)):this._type==="markdown"&&(this._cell.rendered=!0)};reactive(){const t=this._kernel?.connection;return this.variant==="marimo"&&t?MarimoReactive.for(t):void 0}async _execute(t,o,r=!0){cellsStore.getState().setIsExecuting(this._id,!0);const s=t.model,a=s.sharedModel.getSource();if(!a.trim()||!this.kernel)return s.sharedModel.transact(()=>{s.clearExecution()},!1),cellsStore.getState().setIsExecuting(this._id,!1),new Promise(()=>{});const u=this.reactive();u&&(u.bindRunner(this._id,()=>this._execute(t,void 0,!1)),(await u.register(this._id,a)).error&&u.unbindRunner(this._id));const h={cellId:s.sharedModel.getId()};o={...s.metadata,...o,...h};const{recordTiming:b}=o;s.sharedModel.transact(()=>{s.clearExecution(),t.outputHidden=!1},!1),t.setPrompt("*"),s.trusted=!0;let m;try{const w=execute(this._id,a,t.outputArea,this._kernel,o);if(b){const R=C=>{let k;switch(C.header.msg_type){case"status":k=`status.${C.content.execution_state}`;break;case"execute_input":k="execute_input";break;default:return!0}const q=C.header.date||new Date().toISOString(),_=Object.assign({},s.getMetadata("execution"));return _[`iopub.${k}`]=q,s.setMetadata("execution",_),!0};t.outputArea.future.registerMessageHook(R)}else s.deleteMetadata("execution");m=t.outputArea.future;const E=await w;if(s.executionCount=E.content.execution_count,b){const R=Object.assign({},s.getMetadata("execution")),C=E.metadata.started;C&&(R["shell.execute_reply.started"]=C);const k=E.header.date;R["shell.execute_reply"]=k||new Date().toISOString(),s.setMetadata("execution",R)}return cellsStore.getState().setIsExecuting(this._id,!1),u&&r&&!u.reacting&&E.content.status==="ok"&&await u.react(this._id),E}catch(w){if(cellsStore.getState().setIsExecuting(this._id,!1),m&&!t.isDisposed&&t.outputArea.future===m&&(t.setPrompt(""),b&&m.isDisposed)){const E=Object.assign({},s.getMetadata("execution"));E.execution_failed=new Date().toISOString(),s.setMetadata("execution",E)}throw w}}}const themes=new EditorThemeRegistry,editorExtensions=()=>{const n=new EditorExtensionRegistry;for(const t of EditorExtensionRegistry.getDefaultExtensions({themes}))n.addExtension(t);return n.addExtension({name:"shared-model-binding",factory:t=>{const o=t.model.sharedModel;return EditorExtensionRegistry.createImmutableExtension(ybinding({ytext:o.ysource,undoManager:o.undoManager??void 0}))}}),n},languages=new EditorLanguageRegistry;for(const n of EditorLanguageRegistry.getDefaultLanguages())languages.addLanguage(n);languages.addLanguage({name:"ipythongfm",mime:"text/x-ipythongfm",load:async()=>(await __vitePreload(()=>import("./dist-eeUvSSUK.js"),[],import.meta.url)).markdown({codeLanguages:t=>languages.findBest(t)})});const renderFactories=standardRendererFactories.concat(rendererFactory),rendermime=new RenderMimeRegistry({initialFactories:renderFactories,latexTypesetter:createLatexTypesetter(),markdownParser:getMarked(languages)}),factoryService=new CodeMirrorEditorFactory({extensions:editorExtensions(),languages}),InputViewer=n=>{const{cell:t,languageInfo:o}=n,r=t.id||newUuid();switch(t.cell_type){case"code":{const s=createStandaloneCell(t),a=new CodeCell({rendermime,model:new CodeCellModel({sharedModel:s}),contentFactory:new Cell$1.ContentFactory({editorFactory:factoryService.newInlineEditor.bind(factoryService)})}).initializeState();return o&&o.mimetype&&(a.model.mimeType=o.mimetype),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Lumino,{id:r,children:a})})}case"markdown":{const s=createStandaloneCell(t),a=new MarkdownCell({rendermime,showEditorForReadOnlyMarkdown:!1,model:new MarkdownCellModel({sharedModel:s}),contentFactory:new Cell$1.ContentFactory({editorFactory:factoryService.newInlineEditor.bind(factoryService)})}).initializeState();return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Lumino,{id:r,children:a})})}case"raw":{const s=createStandaloneCell(t),a=new RawCell({model:new RawCellModel({sharedModel:s}),contentFactory:new Cell$1.ContentFactory({editorFactory:factoryService.newInlineEditor.bind(factoryService)})});return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Lumino,{id:r,children:a})})}default:return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})}};class OutputViewerAdapter{_renderers;_outputArea;_rendermime;constructor(adaptPlotly,outputs){this._renderers=standardRendererFactories.filter(n=>n.mimeTypes[0]!=="text/javascript"),this._renderers.push(rendererFactory$1),this._renderers.push(rendererFactory$2),this._rendermime=new RenderMimeRegistry({initialFactories:this._renderers});const outputAreaModel=new OutputAreaModel({trusted:!0,values:outputs});if(this._outputArea=new OutputArea({model:outputAreaModel,rendermime:this._rendermime}),adaptPlotly&&outputs&&outputs[0]){const data=outputs[0].data,isPlotly=data["application/vnd.plotly.v1+json"];if(isPlotly){let script=this._outputArea.node.children[0].children[1].children[0].children[1].innerHTML;script=script.replaceAll(`
2
2
  ,`,`
3
3
  `),eval(script)}}}clearOutput(){this._outputArea.model.clear()}get outputArea(){return this._outputArea}}const OutputViewer=({cell:n,adaptPlotly:t=!1})=>{const o=n.outputs?n.outputs:void 0,r=new OutputViewerAdapter(t,o);return n.cell_type==="code"?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Lumino,{children:r.outputArea})}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})},Cell=({autoStart:n=!0,id:t,kernel:o,outputs:r=[],readOnly:s=!1,showToolbar:a=!0,source:u="",type:h="code",variant:b})=>{const[m]=reactExports.useState(t||newUuid()),[w,E]=reactExports.useState(),R=useCellsStore(),C=reactExports.useRef(!1),k=_=>{_.cell.model.contentChanged.connect((S,D)=>{R.setSource(m,S.sharedModel.getSource())}),_.cell instanceof CodeCell&&_.cell.outputArea.outputLengthChanged?.connect((S,D)=>{R.setOutputsCount(m,D)}),_.sessionContext.initialize().then(()=>{n&&_.cell.model&&_.execute()}),_.sessionContext.kernelChanged.connect(()=>{_.sessionContext.session?.kernel?.info.then(S=>{R.setKernelSessionAvailable(m,!0)})})};reactExports.useEffect(()=>{!w&&!C.current&&o&&(C.current=!0,o.ready.then(()=>{const _=new CellAdapter({id:m,type:h,source:u,outputs:r,kernel:o,boxOptions:{showToolbar:a},variant:b});E(_),R.setAdapter(m,_),R.setSource(m,u),k(_);const S=D=>{let T=D.target;for(;T&&!T.classList.contains("jp-MarkdownOutput");)T=T.parentElement;T&&T.classList.contains("jp-MarkdownOutput")&&(_.cell.rendered=!1)};return document.addEventListener("dblclick",S),()=>{document.removeEventListener("dblclick",S)}}))},[u,o]);const q=reactExports.useMemo(()=>({cell_type:h,source:u,metadata:{editable:!1,trusted:!0},...h==="code"?{outputs:r,execution_count:null}:{}}),[h,u,r]);return s?jsxRuntimeExports.jsxs(Box,{className:"dla-Jupyter-ReadOnlyCell",children:[jsxRuntimeExports.jsx(InputViewer,{cell:q}),h==="code"&&q.outputs?.length?jsxRuntimeExports.jsx(OutputViewer,{cell:q}):null]}):w?jsxRuntimeExports.jsx(Box,{sx:{"& .dla-Jupyter-Cell":{position:"relative !important",contain:"content !important"},"& .jp-Toolbar":{height:"auto !important",position:"relative"},"& .lm-BoxPanel":{position:"relative"},"& .jp-Cell":{position:"relative"},"& .jp-CodeCell":{height:"auto !important",position:"relative"},"& .jp-MarkdownCell":{height:"auto !important",minHeight:"65px",position:"relative"},"& .jp-Cell-outputArea":{paddingBottom:"2px"},"& .jp-CodeMirrorEditor":{cursor:"text !important"}},children:jsxRuntimeExports.jsx(Lumino,{children:w.panel})}):jsxRuntimeExports.jsx(Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",p:4},children:jsxRuntimeExports.jsx(StyledSpinner,{size:"medium"})})};class SelectedDiagnostic{constructor(t,o,r){this.from=t,this.to=o,this.diagnostic=r}}class LintState{constructor(t,o,r){this.diagnostics=t,this.panel=o,this.selected=r}static init(t,o,r){let s=r.facet(lintConfig).markerFilter;s&&(t=s(t,r));let a=t.slice().sort((C,k)=>C.from-k.from||C.to-k.to),u=new RangeSetBuilder,h=[],b=0,m=r.doc.iter(),w=0,E=r.doc.length;for(let C=0;;){let k=C==a.length?null:a[C];if(!k&&!h.length)break;let q,_;if(h.length)q=b,_=h.reduce((T,O)=>Math.min(T,O.to),k&&k.from>q?k.from:1e8);else{if(q=k.from,q>E)break;_=k.to,h.push(k),C++}for(;C<a.length;){let T=a[C];if(T.from==q&&(T.to>T.from||T.to==q))h.push(T),C++,_=Math.min(T.to,_);else{_=Math.min(T.from,_);break}}_=Math.min(_,E);let S=!1;if(h.some(T=>T.from==q&&(T.to==_||_==E))&&(S=q==_,!S&&_-q<10)){let T=q-(w+m.value.length);T>0&&(m.next(T),w=q);for(let O=q;;){if(O>=_){S=!0;break}if(!m.lineBreak&&w+m.value.length>O)break;O=w+m.value.length,w+=m.value.length,m.next()}}let D=maxSeverity(h);if(S)u.add(q,q,Decoration.widget({widget:new DiagnosticWidget(D),diagnostics:h.slice()}));else{let T=h.reduce((O,F)=>F.markClass?O+" "+F.markClass:O,"");u.add(q,_,Decoration.mark({class:"cm-lintRange cm-lintRange-"+D+T,diagnostics:h.slice(),inclusiveEnd:h.some(O=>O.to>_)}))}if(b=_,b==E)break;for(let T=0;T<h.length;T++)h[T].to<=b&&h.splice(T--,1)}let R=u.finish();return new LintState(R,o,findDiagnostic(R))}}function findDiagnostic(n,t=null,o=0){let r=null;return n.between(o,1e9,(s,a,{spec:u})=>{if(!(t&&u.diagnostics.indexOf(t)<0))if(!r)r=new SelectedDiagnostic(s,a,t||u.diagnostics[0]);else{if(u.diagnostics.indexOf(r.diagnostic)<0)return!1;r=new SelectedDiagnostic(r.from,a,r.diagnostic)}}),r}function hideTooltip(n,t){let o=t.pos,r=t.end||o,s=n.state.facet(lintConfig).hideOn(n,o,r);if(s!=null)return s;let a=n.startState.doc.lineAt(t.pos);return!!(n.effects.some(u=>u.is(setDiagnosticsEffect))||n.changes.touchesRange(a.from,Math.max(a.to,r)))}function maybeEnableLint(n,t){return n.field(lintState,!1)?t:t.concat(StateEffect.appendConfig.of(lintExtensions))}const setDiagnosticsEffect=StateEffect.define(),togglePanel=StateEffect.define(),movePanelSelection=StateEffect.define(),lintState=StateField.define({create(){return new LintState(Decoration.none,null,null)},update(n,t){if(t.docChanged&&n.diagnostics.size){let o=n.diagnostics.map(t.changes),r=null,s=n.panel;if(n.selected){let a=t.changes.mapPos(n.selected.from,1);r=findDiagnostic(o,n.selected.diagnostic,a)||findDiagnostic(o,null,a)}!o.size&&s&&t.state.facet(lintConfig).autoPanel&&(s=null),n=new LintState(o,s,r)}for(let o of t.effects)if(o.is(setDiagnosticsEffect)){let r=t.state.facet(lintConfig).autoPanel?o.value.length?LintPanel.open:null:n.panel;n=LintState.init(o.value,r,t.state)}else o.is(togglePanel)?n=new LintState(n.diagnostics,o.value?LintPanel.open:null,n.selected):o.is(movePanelSelection)&&(n=new LintState(n.diagnostics,n.panel,o.value));return n},provide:n=>[showPanel.from(n,t=>t.panel),EditorView.decorations.from(n,t=>t.diagnostics)]}),activeMark=Decoration.mark({class:"cm-lintRange cm-lintRange-active"});function lintTooltip(n,t,o){let{diagnostics:r}=n.state.field(lintState),s,a=-1,u=-1;r.between(t-(o<0?1:0),t+(o>0?1:0),(b,m,{spec:w})=>{if(t>=b&&t<=m&&(b==m||(t>b||o>0)&&(t<m||o<0)))return s=w.diagnostics,a=b,u=m,!1});let h=n.state.facet(lintConfig).tooltipFilter;return s&&h&&(s=h(s,n.state)),s?{pos:a,end:u,above:!0,create(){return{dom:diagnosticsTooltip(n,s)}}}:null}function diagnosticsTooltip(n,t){return crelt("ul",{class:"cm-tooltip-lint"},t.map(o=>renderDiagnostic(n,o,!1)))}const openLintPanel=n=>{let t=n.state.field(lintState,!1);(!t||!t.panel)&&n.dispatch({effects:maybeEnableLint(n.state,[togglePanel.of(!0)])});let o=getPanel(n,LintPanel.open);return o&&o.dom.querySelector(".cm-panel-lint ul").focus(),!0},closeLintPanel=n=>{let t=n.state.field(lintState,!1);return!t||!t.panel?!1:(n.dispatch({effects:togglePanel.of(!1)}),!0)},nextDiagnostic=n=>{let t=n.state.field(lintState,!1);if(!t)return!1;let o=n.state.selection.main,r=findDiagnostic(t.diagnostics,null,o.to+1);return!r&&(r=findDiagnostic(t.diagnostics,null,0),!r||r.from==o.from&&r.to==o.to)?!1:(n.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),activateHover(n,r.from,1,{tooltip:lintHover,until:s=>s.docChanged||s.newSelection.main.head<r.from||s.newSelection.main.head>r.to}),!0)},lintKeymap=[{key:"Mod-Shift-m",run:openLintPanel,preventDefault:!0},{key:"F8",run:nextDiagnostic}],lintConfig=Facet.define({combine(n){return{sources:n.map(t=>t.source).filter(t=>t!=null),...combineConfig(n.map(t=>t.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{delay:Math.max,markerFilter:combineFilter,tooltipFilter:combineFilter,needsRefresh:(t,o)=>t?o?r=>t(r)||o(r):t:o,hideOn:(t,o)=>t?o?(r,s,a)=>t(r,s,a)||o(r,s,a):t:o,autoPanel:(t,o)=>t||o})}}});function combineFilter(n,t){return n?t?(o,r)=>t(n(o,r),r):n:t}function assignKeys(n){let t=[];if(n)t:for(let{name:o}of n){for(let r=0;r<o.length;r++){let s=o[r];if(/[a-zA-Z]/.test(s)&&!t.some(a=>a.toLowerCase()==s.toLowerCase())){t.push(s);continue t}}t.push("")}return t}function renderDiagnostic(n,t,o){var r;let s=o?assignKeys(t.actions):[];return crelt("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},crelt("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage(n):t.message),(r=t.actions)===null||r===void 0?void 0:r.map((a,u)=>{let h=0,b=C=>{if(C.preventDefault(),h>Date.now()-100)return;let k=findDiagnostic(n.state.field(lintState).diagnostics,t);k&&a.apply(n,k.from,k.to),h=Date.now()},{name:m}=a,w=s[u]?m.indexOf(s[u]):-1,E=w<0?m:[m.slice(0,w),crelt("u",m.slice(w,w+1)),m.slice(w+1)],R=a.markClass?" "+a.markClass:"";return crelt("button",{type:"button",class:"cm-diagnosticAction"+R,onclick:b,onmousedown:b,"aria-label":` Action: ${m}${w<0?"":` (access key "${s[u]})"`}.`},E)}),t.source&&crelt("div",{class:"cm-diagnosticSource"},t.source))}class DiagnosticWidget extends WidgetType{constructor(t){super(),this.sev=t}eq(t){return t.sev==this.sev}toDOM(){return crelt("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}}class PanelItem{constructor(t,o){this.diagnostic=o,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=renderDiagnostic(t,o,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class LintPanel{constructor(t){this.view=t,this.items=[];let o=s=>{if(!(s.ctrlKey||s.altKey||s.metaKey)){if(s.keyCode==27)closeLintPanel(this.view),this.view.focus();else if(s.keyCode==38||s.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(s.keyCode==40||s.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(s.keyCode==36)this.moveSelection(0);else if(s.keyCode==35)this.moveSelection(this.items.length-1);else if(s.keyCode==13)this.view.focus();else if(s.keyCode>=65&&s.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:a}=this.items[this.selectedIndex],u=assignKeys(a.actions);for(let h=0;h<u.length;h++)if(u[h].toUpperCase().charCodeAt(0)==s.keyCode){let b=findDiagnostic(this.view.state.field(lintState).diagnostics,a);b&&a.actions[h].apply(t,b.from,b.to)}}else return;s.preventDefault()}},r=s=>{for(let a=0;a<this.items.length;a++)this.items[a].dom.contains(s.target)&&this.moveSelection(a)};this.list=crelt("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:o,onclick:r}),this.dom=crelt("div",{class:"cm-panel-lint"},this.list,crelt("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>closeLintPanel(this.view)},"×")),this.update()}get selectedIndex(){let t=this.view.state.field(lintState).selected;if(!t)return-1;for(let o=0;o<this.items.length;o++)if(this.items[o].diagnostic==t.diagnostic)return o;return-1}update(){let{diagnostics:t,selected:o}=this.view.state.field(lintState),r=0,s=!1,a=null,u=new Set;for(t.between(0,this.view.state.doc.length,(h,b,{spec:m})=>{for(let w of m.diagnostics){if(u.has(w))continue;u.add(w);let E=-1,R;for(let C=r;C<this.items.length;C++)if(this.items[C].diagnostic==w){E=C;break}E<0?(R=new PanelItem(this.view,w),this.items.splice(r,0,R),s=!0):(R=this.items[E],E>r&&(this.items.splice(r,E-r),s=!0)),o&&R.diagnostic==o.diagnostic?R.dom.hasAttribute("aria-selected")||(R.dom.setAttribute("aria-selected","true"),a=R):R.dom.hasAttribute("aria-selected")&&R.dom.removeAttribute("aria-selected"),r++}});r<this.items.length&&!(this.items.length==1&&this.items[0].diagnostic.from<0);)s=!0,this.items.pop();this.items.length==0&&(this.items.push(new PanelItem(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),s=!0),a?(this.list.setAttribute("aria-activedescendant",a.id),this.view.requestMeasure({key:this,read:()=>({sel:a.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:h,panel:b})=>{let m=b.height/this.list.offsetHeight;h.top<b.top?this.list.scrollTop-=(b.top-h.top)/m:h.bottom>b.bottom&&(this.list.scrollTop+=(h.bottom-b.bottom)/m)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),s&&this.sync()}sync(){let t=this.list.firstChild;function o(){let r=t;t=r.nextSibling,r.remove()}for(let r of this.items)if(r.dom.parentNode==this.list){for(;t!=r.dom;)o();t=r.dom.nextSibling}else this.list.insertBefore(r.dom,t);for(;t;)o()}moveSelection(t){if(this.selectedIndex<0)return;let o=this.view.state.field(lintState),r=findDiagnostic(o.diagnostics,this.items[t].diagnostic);r&&this.view.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:movePanelSelection.of(r)})}static open(t){return new LintPanel(t)}}function svg$2(n,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${t}>${encodeURIComponent(n)}</svg>')`}function underline(n){return svg$2(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${n}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}const baseTheme=EditorView.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:underline("#f11")},".cm-lintRange-warning":{backgroundImage:underline("orange")},".cm-lintRange-info":{backgroundImage:underline("#999")},".cm-lintRange-hint":{backgroundImage:underline("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}},"&dark .cm-lintRange-active":{backgroundColor:"#86714a80"},"&dark .cm-panel.cm-panel-lint ul":{"& [aria-selected]":{backgroundColor:"#2e343e"}}});function severityWeight(n){return n=="error"?4:n=="warning"?3:n=="info"?2:1}function maxSeverity(n){let t="hint",o=1;for(let r of n){let s=severityWeight(r.severity);s>o&&(o=s,t=r.severity)}return t}const lintHover=hoverTooltip(lintTooltip,{hideOn:hideTooltip}),lintExtensions=[lintState,EditorView.decorations.compute([lintState],n=>{let{selected:t,panel:o}=n.field(lintState);return!t||!o||t.from==t.to?Decoration.none:Decoration.set([activeMark.range(t.from,t.to)])}),lintHover,baseTheme],basicSetup=[lineNumbers(),highlightActiveLineGutter(),highlightSpecialChars(),history(),foldGutter(),drawSelection(),dropCursor(),EditorState.allowMultipleSelections.of(!0),indentOnInput(),syntaxHighlighting(defaultHighlightStyle,{fallback:!0}),bracketMatching(),closeBrackets(),autocompletion(),rectangularSelection(),crosshairCursor(),highlightActiveLine(),highlightSelectionMatches(),keymap.of([...closeBracketsKeymap,...defaultKeymap,...searchKeymap,...historyKeymap,...foldKeymap,...completionKeymap,...lintKeymap])],theme=EditorView.theme({"&":{fontSize:"9pt",border:"1px solid var(--borderColor-default, #d0d7de)",backgroundColor:"var(--bgColor-default, #ffffff)",color:"var(--fgColor-default, #1f2328)"},".cm-content":{fontFamily:"Menlo, Monaco, Lucida Console, monospace",minHeight:"10px",color:"var(--fgColor-default, #1f2328)",caretColor:"var(--fgColor-accent, #0969da)"},".cm-gutters":{minHeight:"10px",backgroundColor:"var(--bgColor-muted, #f6f8fa)",color:"var(--fgColor-muted, #656d76)",borderRight:"1px solid var(--borderColor-default, #d0d7de)"},".cm-lineNumbers .cm-gutterElement":{color:"var(--fgColor-muted, #656d76)"},".cm-activeLineGutter":{backgroundColor:"var(--bgColor-neutral-muted, rgba(175, 184, 193, 0.2))",color:"var(--fgColor-default, #1f2328)"},".cm-scroller":{overflow:"auto"}},{dark:!1}),codeMirrorTheme=[theme],CodeMirrorOutputToolbarMenu=n=>{const{executeCode:t,outputAdapter:o,editorView:r}=n;return jsxRuntimeExports.jsxs(ActionMenu,{children:[jsxRuntimeExports.jsx(ActionMenu.Anchor,{children:jsxRuntimeExports.jsx(IconButton,{"aria-labelledby":"",icon:KebabHorizontalIcon,variant:"invisible"})}),jsxRuntimeExports.jsx(ActionMenu.Overlay,{children:jsxRuntimeExports.jsxs(ActionList,{children:[jsxRuntimeExports.jsxs(ActionList.Item,{onSelect:s=>{s.preventDefault(),t(r)},children:[jsxRuntimeExports.jsx(ActionList.LeadingVisual,{children:jsxRuntimeExports.jsx(ArrowRightIcon,{})}),jsxRuntimeExports.jsx(ActionList.TrailingVisual,{children:"⇧ ↵"}),"Run code"]}),jsxRuntimeExports.jsxs(ActionList.Item,{onSelect:s=>{s.preventDefault(),o.interrupt()},children:[jsxRuntimeExports.jsx(ActionList.LeadingVisual,{children:jsxRuntimeExports.jsx(StopIcon,{})}),"Interrupt kernel"]}),jsxRuntimeExports.jsxs(ActionList.Item,{variant:"danger",onClick:s=>{s.preventDefault(),o.clear()},children:[jsxRuntimeExports.jsx(ActionList.LeadingVisual,{children:jsxRuntimeExports.jsx(PaintbrushIcon,{})}),"Clear outputs"]})]})})]})},KernelStatus=({color:n})=>jsxRuntimeExports.jsx(Box$1,{sx:{backgroundColor:n,width:"14px",height:"14px",borderRadius:3}}),CodeMirrorOutputToolbar=n=>{const{executeCode:t,editorView:o,kernel:r,codePre:s}=n,{theme:a}=useTheme(),u=reactExports.useMemo(()=>a?.colorSchemes.light.colors.success.muted,[]),h=reactExports.useMemo(()=>a?.colorSchemes.light.colors.severe.muted,[]),[b,m]=reactExports.useState("unknown");reactExports.useEffect(()=>{r&&r.ready.then(()=>{s&&t(o,s),m(r.connection.status),r.connection.statusChanged.connect((E,R)=>{m(R)})})},[r]);const w=E=>E==="idle"?u:h;return jsxRuntimeExports.jsxs(Box$1,{display:"flex",children:[jsxRuntimeExports.jsx(Box$1,{flexGrow:1}),jsxRuntimeExports.jsx(Box$1,{sx:{paddingTop:"6px"},children:jsxRuntimeExports.jsx(KernelStatus,{color:w(b)})}),jsxRuntimeExports.jsx(Box$1,{children:jsxRuntimeExports.jsx(CodeMirrorOutputToolbarMenu,{...n})})]})},CodeMirrorEditor=n=>{const{code:t,codePre:o,outputAdapter:r,autoRun:s,disableRun:a,sourceId:u,toolbarPosition:h,insertText:b,kernel:m}=n,w=useOutputsStore(),[E,R]=reactExports.useState(),C=reactExports.useRef(a),k=reactExports.useRef(r),q=reactExports.useRef(m),_=w.getDataset(u),S=w.getInput(u),D=reactExports.useRef(void 0);reactExports.useEffect(()=>{C.current=a},[a]),reactExports.useEffect(()=>{k.current=r},[r]),reactExports.useEffect(()=>{q.current=m,k.current&&(k.current.kernel=m)},[m]);const T=B=>{if(E&&B!==void 0){if(E.state.doc.toString()===B)return;E.dispatch({changes:{from:0,to:E.state.doc.length,insert:B}})}},O=B=>{E&&b&&E.dispatch({changes:{from:0,insert:b(B)}})},F=(B,P)=>{if(C.current)return alert("Code execution is disabled for this editor. There should be a button on the page to run this editor."),!0;const I=k.current;return q.current&&(I.kernel=q.current),P?I.execute(P):I.execute(B.state.doc.toString()),!0};return reactExports.useEffect(()=>{w.setInput(u,t);const B=new Compartment,P=EditorState.create({doc:t,extensions:[Prec.highest(keymap.of([{key:"Shift-Enter",run:j=>F(j),preventDefault:!0}])),EditorView.domEventHandlers({keydown:(j,H)=>j.shiftKey&&j.key==="Enter"?(j.preventDefault(),F(H)):!1}),basicSetup,B.of(python()),EditorView.lineWrapping,codeMirrorTheme,EditorView.updateListener.of(j=>{if(j.docChanged){const H=j.state.doc.toString();w.setInput(u,H)}})]}),I=new EditorView({state:P,parent:D.current});return R(I),s&&F(I),()=>{I.destroy()}},[t]),reactExports.useEffect(()=>{O(_)},[_]),reactExports.useEffect(()=>{T(S)},[S]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[m&&h==="up"&&jsxRuntimeExports.jsx(CodeMirrorOutputToolbar,{editorView:E,codePre:o,kernel:m,outputAdapter:r,executeCode:F}),jsxRuntimeExports.jsx("div",{ref:D}),m&&h==="middle"&&jsxRuntimeExports.jsx(CodeMirrorOutputToolbar,{editorView:E,codePre:o,kernel:m,outputAdapter:r,executeCode:F})]})},CodeMirrorDatalayerEditor=CodeMirrorEditor;class OutputAdapter{_id;_kernel;_renderers;_outputArea;_rendermime;_iPyWidgetsManager;_suppressCodeExecutionErrors;_variant;_lastCode="";constructor(id,kernel,outputs,outputAreaModel,suppressCodeExecutionErrors=!1,variant){this._id=id,this._kernel=kernel,this._variant=variant,this._suppressCodeExecutionErrors=suppressCodeExecutionErrors,this._renderers=standardRendererFactories.filter(n=>n.mimeTypes[0]!=="text/javascript"),this._renderers.push(rendererFactory$1),this._renderers.push(rendererFactory$2),this._rendermime=new RenderMimeRegistry({initialFactories:this._renderers}),this._iPyWidgetsManager=new ClassicWidgetManager({loader:requireLoader}),this._rendermime.addFactory({safe:!1,mimeTypes:[WIDGET_MIMETYPE],createRenderer:n=>new WidgetRenderer(n,this._iPyWidgetsManager)},0);const model=outputAreaModel??new OutputAreaModel({trusted:!0,values:outputs});if(this._outputArea=new OutputArea({model,rendermime:this._rendermime}),outputs&&outputs[0]){const data=outputs[0].data;if(data){const isPlotly=data["application/vnd.plotly.v1+json"];if(isPlotly){let script=this._outputArea.node.children[0].children[1].children[0].children[1].innerHTML;script=script.replaceAll(`
4
4
  ,`,`
@@ -1 +1 @@
1
- import{ab as o,r as t}from"../datalayer-app-main.js";import{h as e,i}from"./JupyterLexicalExtension-BUzQSBg9.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-B9M8NqG2.js";import"./index-QUGTBUbz.js";import"./hoverbox-CStlKQWE.js";import"./index-CzDD-mUF.js";import"./index-B9R5Oy-_.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-ZTQsAovp.js";import"./d3-color-Jd8hXty2.js";import"./dist-Frc5TvpU.js";import"./index-BaRoLDk0.js";import"./RestartIcon-DvpOf5Mf.js";import"./LexicalToolRegistry-CxKoI0Fi.js";const D=()=>{const[r]=o();return t.useEffect(()=>i(r),[r]),null};export{e as INSERT_YOUTUBE_COMMAND,D as YouTubePlugin,D as default};
1
+ import{ab as o,r as t}from"../datalayer-app-main.js";import{h as e,i}from"./JupyterLexicalExtension-BGj3tSI6.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-DePHyrJp.js";import"./index-QUGTBUbz.js";import"./hoverbox-CStlKQWE.js";import"./index-CzDD-mUF.js";import"./index-B9R5Oy-_.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-ZTQsAovp.js";import"./d3-color-Jd8hXty2.js";import"./dist-Frc5TvpU.js";import"./index-BaRoLDk0.js";import"./RestartIcon-DvpOf5Mf.js";import"./LexicalToolRegistry-CxKoI0Fi.js";const D=()=>{const[r]=o();return t.useEffect(()=>i(r),[r]),null};export{e as INSERT_YOUTUBE_COMMAND,D as YouTubePlugin,D as default};
@@ -1 +1 @@
1
- import{g as p,r as u,d as a}from"./chunk-SVP7TREG-BE6aCPtV.js";import{p as f}from"./chunk-JWPE2WC7-DbjVY_PP.js";import{_ as n,l as s}from"./index-Das_qYGD.js";import{M as c,b as d}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 v=d().RailroadAbnf.parser.LangiumParser,i=n(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=n(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=n(e=>{if(e.includes("*")){const[t,o]=e.split("*"),m=t?parseInt(t,10):0,l=o?parseInt(o,10):1/0;return{min:m,max:l}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=n(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:o}=b(e.repeat);return t===0&&o===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:o}},"transformElement"),A=n(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=n(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=n(e=>{f(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(P(r)))},"populateDb"),R={parse:n(e=>{a.clear(),s.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;s.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),s.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:a}},G={parser:R,db:a,renderer:u,styles:p};export{G as diagram};
1
+ import{g as p,r as u,d as a}from"./chunk-SVP7TREG-CsFEUe5B.js";import{p as f}from"./chunk-JWPE2WC7-BVXd-ICe.js";import{_ as n,l as s}from"./index-Df2MkvAW.js";import{M as c,b as d}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 v=d().RailroadAbnf.parser.LangiumParser,i=n(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=n(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=n(e=>{if(e.includes("*")){const[t,o]=e.split("*"),m=t?parseInt(t,10):0,l=o?parseInt(o,10):1/0;return{min:m,max:l}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=n(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:o}=b(e.repeat);return t===0&&o===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:o}},"transformElement"),A=n(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=n(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=n(e=>{f(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(P(r)))},"populateDb"),R={parse:n(e=>{a.clear(),s.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;s.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),s.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:a}},G={parser:R,db:a,renderer:u,styles:p};export{G as diagram};
@@ -1 +1 @@
1
- import{g as p,r as u,d as a}from"./chunk-SVP7TREG-C3lpcsoi.js";import{p as f}from"./chunk-JWPE2WC7-DnRzfMcA.js";import{_ as n,l as s}from"./mermaid.core-CiNB92Or.js";import{M as c,b as d}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 v=d().RailroadAbnf.parser.LangiumParser,i=n(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=n(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=n(e=>{if(e.includes("*")){const[t,o]=e.split("*"),m=t?parseInt(t,10):0,l=o?parseInt(o,10):1/0;return{min:m,max:l}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=n(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:o}=b(e.repeat);return t===0&&o===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:o}},"transformElement"),A=n(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=n(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=n(e=>{f(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(P(r)))},"populateDb"),R={parse:n(e=>{a.clear(),s.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;s.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),s.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:a}},$={parser:R,db:a,renderer:u,styles:p};export{$ as diagram};
1
+ import{g as p,r as u,d as a}from"./chunk-SVP7TREG-4yrBA5Q8.js";import{p as f}from"./chunk-JWPE2WC7-nWjEvJWR.js";import{_ as n,l as s}from"./mermaid.core-gUuQZ3q0.js";import{M as c,b as d}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 v=d().RailroadAbnf.parser.LangiumParser,i=n(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=n(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=n(e=>{if(e.includes("*")){const[t,o]=e.split("*"),m=t?parseInt(t,10):0,l=o?parseInt(o,10):1/0;return{min:m,max:l}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=n(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:o}=b(e.repeat);return t===0&&o===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:o}},"transformElement"),A=n(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=n(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=n(e=>{f(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(P(r)))},"populateDb"),R={parse:n(e=>{a.clear(),s.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;s.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),s.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:a}},$={parser:R,db:a,renderer:u,styles:p};export{$ as diagram};
@@ -1 +1 @@
1
- import{g as p,r as u,d as a}from"./chunk-SVP7TREG-B8Ktj5oZ.js";import{p as f}from"./chunk-JWPE2WC7-ExuCJCuM.js";import{_ as n,l as s}from"./index--2Kz2vhr.js";import{M as c,b as d}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 v=d().RailroadAbnf.parser.LangiumParser,i=n(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=n(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=n(e=>{if(e.includes("*")){const[t,o]=e.split("*"),m=t?parseInt(t,10):0,l=o?parseInt(o,10):1/0;return{min:m,max:l}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=n(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:o}=b(e.repeat);return t===0&&o===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:o}},"transformElement"),A=n(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=n(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=n(e=>{f(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(P(r)))},"populateDb"),R={parse:n(e=>{a.clear(),s.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;s.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),s.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:a}},G={parser:R,db:a,renderer:u,styles:p};export{G as diagram};
1
+ import{g as p,r as u,d as a}from"./chunk-SVP7TREG-8oKVa2mm.js";import{p as f}from"./chunk-JWPE2WC7-Bf4pFlIJ.js";import{_ as n,l as s}from"./index-DObGLuCI.js";import{M as c,b as d}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 v=d().RailroadAbnf.parser.LangiumParser,i=n(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=n(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=n(e=>{if(e.includes("*")){const[t,o]=e.split("*"),m=t?parseInt(t,10):0,l=o?parseInt(o,10):1/0;return{min:m,max:l}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=n(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:o}=b(e.repeat);return t===0&&o===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:o}},"transformElement"),A=n(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=n(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=n(e=>{f(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(P(r)))},"populateDb"),R={parse:n(e=>{a.clear(),s.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;s.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),s.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:a}},G={parser:R,db:a,renderer:u,styles:p};export{G as diagram};
@@ -1,4 +1,4 @@
1
- import"./percentages-BXMCSKIN-BBr7lX_m.js";import"../datalayer-app-main.js";import"./JupyterLexicalExtension-BUzQSBg9.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-B9M8NqG2.js";import"./index-QUGTBUbz.js";import"./hoverbox-CStlKQWE.js";import"./index-CzDD-mUF.js";import"./index-B9R5Oy-_.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-ZTQsAovp.js";import"./d3-color-Jd8hXty2.js";import"./dist-Frc5TvpU.js";import"./index-BaRoLDk0.js";import"./RestartIcon-DvpOf5Mf.js";import"./LexicalToolRegistry-CxKoI0Fi.js";import"./extends-CF3RwP-h.js";import"./index-BWeXDhSd.js";import"./index-DoBkwclg.js";var u={paste:"لصق",pasteAsPlaintext:"اللصق كنص عادي",pasteCharts:"لصق الرسوم البيانية",selectAll:"تحديد الكل",multiSelect:"إضافة عنصر للتحديد",moveCanvas:"نقل لوح الرسم",cut:"قص",copy:"نسخ",copyAsPng:"نسخ إلى الحافظة بصيغة PNG",copyAsSvg:"نسخ إلى الحافظة بصيغة SVG",copyText:"نسخ إلى الحافظة كنص",copySource:"",convertToCode:"",bringForward:"جلب للأمام",sendToBack:"أرسل للخلف",bringToFront:"أحضر للأمام",sendBackward:"أرسل للخلف",delete:"حذف",copyStyles:"نسخ الأنماط",pasteStyles:"لصق الأنماط",stroke:"الخط",background:"الخلفية",fill:"التعبئة",strokeWidth:"سُمك الخط",strokeStyle:"نمط الخط",strokeStyle_solid:"متصل",strokeStyle_dashed:"متقطع",strokeStyle_dotted:"منقط",sloppiness:"الإمالة",opacity:"الشفافية",textAlign:"محاذاة النص",edges:"الحواف",sharp:"حادة",round:"دائرية",arrowheads:"رؤوس الأسهم",arrowhead_none:"لا شيء",arrowhead_arrow:"سهم",arrowhead_bar:"شريط",arrowhead_circle:"",arrowhead_circle_outline:"",arrowhead_triangle:"مثلث",arrowhead_triangle_outline:"",arrowhead_diamond:"",arrowhead_diamond_outline:"",fontSize:"حجم الخط",fontFamily:"نوع الخط",addWatermark:'إضافة "مصنوعة بواسطة Excalidraw"',handDrawn:"رسم باليد",normal:"عادي",code:"رمز",small:"صغير",medium:"متوسط",large:"كبير",veryLarge:"كبير جدا",solid:"كامل",hachure:"خطوط",zigzag:"متعرج",crossHatch:"خطوط متقطعة",thin:"نحيف",bold:"داكن",left:"الـيسار",center:"وسط",right:"يمين",extraBold:"عريض",architect:"معماري",artist:"رسام",cartoonist:"كرتوني",fileTitle:"إسم الملف",colorPicker:"منتقي اللون",canvasColors:"تستخدم على القماش",canvasBackground:"خلفية اللوحة",drawingCanvas:"لوحة الرسم",layers:"الطبقات",actions:"الإجراءات",language:"اللغة",liveCollaboration:"التعاون المباشر...",duplicateSelection:"تكرار",untitled:"غير معنون",name:"الاسم",yourName:"اسمك",madeWithExcalidraw:"مصنوعة بواسطة Excalidraw",group:"تحديد مجموعة",ungroup:"إلغاء تحديد مجموعة",collaborators:"المتعاونون",showGrid:"إظهار الشبكة",addToLibrary:"أضف إلى المكتبة",removeFromLibrary:"حذف من المكتبة",libraryLoadingMessage:"جارٍ تحميل المكتبة…",libraries:"تصفح المكتبات",loadingScene:"جاري تحميل المشهد…",align:"محاذاة",alignTop:"محاذاة إلى اﻷعلى",alignBottom:"محاذاة إلى اﻷسفل",alignLeft:"محاذاة إلى اليسار",alignRight:"محاذاة إلى اليمين",centerVertically:"توسيط عمودي",centerHorizontally:"توسيط أفقي",distributeHorizontally:"التوزيع الأفقي",distributeVertically:"التوزيع عمودياً",flipHorizontal:"قلب عامودي",flipVertical:"قلب أفقي",viewMode:"نمط العرض",share:"مشاركة",showStroke:"إظهار منتقي لون الخط",showBackground:"إظهار منتقي لون الخلفية",toggleTheme:"غير النمط",personalLib:"المكتبة الشخصية",excalidrawLib:"مكتبتنا",decreaseFontSize:"تصغير حجم الخط",increaseFontSize:"تكبير حجم الخط",unbindText:"فك ربط النص",bindText:"ربط النص بالحاوية",createContainerFromText:"نص مغلف في حاوية",link:{edit:"تعديل الرابط",editEmbed:"تحرير الرابط وإدراجه",create:"إنشاء رابط",createEmbed:"إنشاء رابط و إدراجه",label:"رابط",labelEmbed:"رابط و إدراج",empty:"لم يتم تعيين رابط"},lineEditor:{edit:"تحرير السطر",exit:"الخروج من المُحرر"},elementLock:{lock:"قفل",unlock:"فتح",lockAll:"قفل الكل",unlockAll:"فتح الكل"},statusPublished:"نُشر",sidebarLock:"إبقاء الشريط الجانبي مفتوح",selectAllElementsInFrame:"تحديد جميع العناصر في الإطار",removeAllElementsFromFrame:"إزالة جميع العناصر من الإطار",eyeDropper:"اختيار اللون من القماش",textToDiagram:"",prompt:""},A={noItems:"لا توجد عناصر أضيفت بعد...",hint_emptyLibrary:"حدد عنصر على القماش لإضافته هنا، أو تثبيت مكتبة من المستودع العام أدناه.",hint_emptyPrivateLibrary:"حدد عنصر على القماش لإضافته هنا."},e={clearReset:"إعادة تعيين اللوحة",exportJSON:"صدر الملف",exportImage:"تصدير الصورة...",export:"حفظ إلى...",copyToClipboard:"نسخ إلى الحافظة",save:"احفظ للملف الحالي",saveAs:"حفظ كـ",load:"فتح",getShareableLink:"احصل على رابط المشاركة",close:"غلق",selectLanguage:"اختر اللغة",scrollBackToContent:"الرجوع إلى المحتوى",zoomIn:"تكبير",zoomOut:"تصغير",resetZoom:"إعادة تعيين الشاشة",menu:"القائمة",done:"تم",edit:"تعديل",undo:"تراجع",redo:"إعادة تنفيذ",resetLibrary:"إعادة ضبط المكتبة",createNewRoom:"إنشاء غرفة جديدة",fullScreen:"شاشة كاملة",darkMode:"الوضع المظلم",lightMode:"الوضع المضيء",zenMode:"وضع التأمل",objectsSnapMode:"التقط إلى العناصر",exitZenMode:"إلغاء الوضع الليلى",cancel:"إلغاء",clear:"مسح",remove:"إزالة",embed:"تبديل الإدراج",publishLibrary:"انشر",submit:"أرسل",confirm:"تأكيد",embeddableInteractionButton:"اضغط للتفاعل"},r={clearReset:"هذا سيُزيل كامل اللوحة. هل أنت متأكد؟",couldNotCreateShareableLink:"تعذر إنشاء رابطة المشاركة.",couldNotCreateShareableLinkTooBig:"تعذر إنشاء رابط قابل للمشاركة: المشهد كبير جدًا",couldNotLoadInvalidFile:"تعذر التحميل، الملف غير صالح",importBackendFailed:"فشل الاستيراد من الخادوم.",cannotExportEmptyCanvas:"لا يمكن تصدير لوحة فارغة.",couldNotCopyToClipboard:"تعذر النسخ إلى الحافظة.",decryptFailed:"تعذر فك تشفير البيانات.",uploadedSecurly:"تم تأمين التحميل بتشفير النهاية إلى النهاية، مما يعني أن خادوم Excalidraw والأطراف الثالثة لا يمكنها قراءة المحتوى.",loadSceneOverridePrompt:"تحميل الرسم الخارجي سيحل محل المحتوى الموجود لديك. هل ترغب في المتابعة؟",collabStopOverridePrompt:`إيقاف الجلسة سيؤدي إلى الكتابة فوق رسومك السابقة المخزنة داخليا. هل أنت متأكد؟
1
+ import"./percentages-BXMCSKIN-PE_Zr0z2.js";import"../datalayer-app-main.js";import"./JupyterLexicalExtension-BGj3tSI6.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-DePHyrJp.js";import"./index-QUGTBUbz.js";import"./hoverbox-CStlKQWE.js";import"./index-CzDD-mUF.js";import"./index-B9R5Oy-_.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-ZTQsAovp.js";import"./d3-color-Jd8hXty2.js";import"./dist-Frc5TvpU.js";import"./index-BaRoLDk0.js";import"./RestartIcon-DvpOf5Mf.js";import"./LexicalToolRegistry-CxKoI0Fi.js";import"./extends-CF3RwP-h.js";import"./index-BWeXDhSd.js";import"./index-DoBkwclg.js";var u={paste:"لصق",pasteAsPlaintext:"اللصق كنص عادي",pasteCharts:"لصق الرسوم البيانية",selectAll:"تحديد الكل",multiSelect:"إضافة عنصر للتحديد",moveCanvas:"نقل لوح الرسم",cut:"قص",copy:"نسخ",copyAsPng:"نسخ إلى الحافظة بصيغة PNG",copyAsSvg:"نسخ إلى الحافظة بصيغة SVG",copyText:"نسخ إلى الحافظة كنص",copySource:"",convertToCode:"",bringForward:"جلب للأمام",sendToBack:"أرسل للخلف",bringToFront:"أحضر للأمام",sendBackward:"أرسل للخلف",delete:"حذف",copyStyles:"نسخ الأنماط",pasteStyles:"لصق الأنماط",stroke:"الخط",background:"الخلفية",fill:"التعبئة",strokeWidth:"سُمك الخط",strokeStyle:"نمط الخط",strokeStyle_solid:"متصل",strokeStyle_dashed:"متقطع",strokeStyle_dotted:"منقط",sloppiness:"الإمالة",opacity:"الشفافية",textAlign:"محاذاة النص",edges:"الحواف",sharp:"حادة",round:"دائرية",arrowheads:"رؤوس الأسهم",arrowhead_none:"لا شيء",arrowhead_arrow:"سهم",arrowhead_bar:"شريط",arrowhead_circle:"",arrowhead_circle_outline:"",arrowhead_triangle:"مثلث",arrowhead_triangle_outline:"",arrowhead_diamond:"",arrowhead_diamond_outline:"",fontSize:"حجم الخط",fontFamily:"نوع الخط",addWatermark:'إضافة "مصنوعة بواسطة Excalidraw"',handDrawn:"رسم باليد",normal:"عادي",code:"رمز",small:"صغير",medium:"متوسط",large:"كبير",veryLarge:"كبير جدا",solid:"كامل",hachure:"خطوط",zigzag:"متعرج",crossHatch:"خطوط متقطعة",thin:"نحيف",bold:"داكن",left:"الـيسار",center:"وسط",right:"يمين",extraBold:"عريض",architect:"معماري",artist:"رسام",cartoonist:"كرتوني",fileTitle:"إسم الملف",colorPicker:"منتقي اللون",canvasColors:"تستخدم على القماش",canvasBackground:"خلفية اللوحة",drawingCanvas:"لوحة الرسم",layers:"الطبقات",actions:"الإجراءات",language:"اللغة",liveCollaboration:"التعاون المباشر...",duplicateSelection:"تكرار",untitled:"غير معنون",name:"الاسم",yourName:"اسمك",madeWithExcalidraw:"مصنوعة بواسطة Excalidraw",group:"تحديد مجموعة",ungroup:"إلغاء تحديد مجموعة",collaborators:"المتعاونون",showGrid:"إظهار الشبكة",addToLibrary:"أضف إلى المكتبة",removeFromLibrary:"حذف من المكتبة",libraryLoadingMessage:"جارٍ تحميل المكتبة…",libraries:"تصفح المكتبات",loadingScene:"جاري تحميل المشهد…",align:"محاذاة",alignTop:"محاذاة إلى اﻷعلى",alignBottom:"محاذاة إلى اﻷسفل",alignLeft:"محاذاة إلى اليسار",alignRight:"محاذاة إلى اليمين",centerVertically:"توسيط عمودي",centerHorizontally:"توسيط أفقي",distributeHorizontally:"التوزيع الأفقي",distributeVertically:"التوزيع عمودياً",flipHorizontal:"قلب عامودي",flipVertical:"قلب أفقي",viewMode:"نمط العرض",share:"مشاركة",showStroke:"إظهار منتقي لون الخط",showBackground:"إظهار منتقي لون الخلفية",toggleTheme:"غير النمط",personalLib:"المكتبة الشخصية",excalidrawLib:"مكتبتنا",decreaseFontSize:"تصغير حجم الخط",increaseFontSize:"تكبير حجم الخط",unbindText:"فك ربط النص",bindText:"ربط النص بالحاوية",createContainerFromText:"نص مغلف في حاوية",link:{edit:"تعديل الرابط",editEmbed:"تحرير الرابط وإدراجه",create:"إنشاء رابط",createEmbed:"إنشاء رابط و إدراجه",label:"رابط",labelEmbed:"رابط و إدراج",empty:"لم يتم تعيين رابط"},lineEditor:{edit:"تحرير السطر",exit:"الخروج من المُحرر"},elementLock:{lock:"قفل",unlock:"فتح",lockAll:"قفل الكل",unlockAll:"فتح الكل"},statusPublished:"نُشر",sidebarLock:"إبقاء الشريط الجانبي مفتوح",selectAllElementsInFrame:"تحديد جميع العناصر في الإطار",removeAllElementsFromFrame:"إزالة جميع العناصر من الإطار",eyeDropper:"اختيار اللون من القماش",textToDiagram:"",prompt:""},A={noItems:"لا توجد عناصر أضيفت بعد...",hint_emptyLibrary:"حدد عنصر على القماش لإضافته هنا، أو تثبيت مكتبة من المستودع العام أدناه.",hint_emptyPrivateLibrary:"حدد عنصر على القماش لإضافته هنا."},e={clearReset:"إعادة تعيين اللوحة",exportJSON:"صدر الملف",exportImage:"تصدير الصورة...",export:"حفظ إلى...",copyToClipboard:"نسخ إلى الحافظة",save:"احفظ للملف الحالي",saveAs:"حفظ كـ",load:"فتح",getShareableLink:"احصل على رابط المشاركة",close:"غلق",selectLanguage:"اختر اللغة",scrollBackToContent:"الرجوع إلى المحتوى",zoomIn:"تكبير",zoomOut:"تصغير",resetZoom:"إعادة تعيين الشاشة",menu:"القائمة",done:"تم",edit:"تعديل",undo:"تراجع",redo:"إعادة تنفيذ",resetLibrary:"إعادة ضبط المكتبة",createNewRoom:"إنشاء غرفة جديدة",fullScreen:"شاشة كاملة",darkMode:"الوضع المظلم",lightMode:"الوضع المضيء",zenMode:"وضع التأمل",objectsSnapMode:"التقط إلى العناصر",exitZenMode:"إلغاء الوضع الليلى",cancel:"إلغاء",clear:"مسح",remove:"إزالة",embed:"تبديل الإدراج",publishLibrary:"انشر",submit:"أرسل",confirm:"تأكيد",embeddableInteractionButton:"اضغط للتفاعل"},r={clearReset:"هذا سيُزيل كامل اللوحة. هل أنت متأكد؟",couldNotCreateShareableLink:"تعذر إنشاء رابطة المشاركة.",couldNotCreateShareableLinkTooBig:"تعذر إنشاء رابط قابل للمشاركة: المشهد كبير جدًا",couldNotLoadInvalidFile:"تعذر التحميل، الملف غير صالح",importBackendFailed:"فشل الاستيراد من الخادوم.",cannotExportEmptyCanvas:"لا يمكن تصدير لوحة فارغة.",couldNotCopyToClipboard:"تعذر النسخ إلى الحافظة.",decryptFailed:"تعذر فك تشفير البيانات.",uploadedSecurly:"تم تأمين التحميل بتشفير النهاية إلى النهاية، مما يعني أن خادوم Excalidraw والأطراف الثالثة لا يمكنها قراءة المحتوى.",loadSceneOverridePrompt:"تحميل الرسم الخارجي سيحل محل المحتوى الموجود لديك. هل ترغب في المتابعة؟",collabStopOverridePrompt:`إيقاف الجلسة سيؤدي إلى الكتابة فوق رسومك السابقة المخزنة داخليا. هل أنت متأكد؟
2
2
 
3
3
  (إذا كنت ترغب في الاحتفاظ برسمك المخزن داخليا، ببساطة أغلق علامة تبويب المتصفح بدلاً من ذلك.)`,errorAddingToLibrary:"تعذر إضافة العنصر للمكتبة",errorRemovingFromLibrary:"تعذر إزالة العنصر من المكتبة",confirmAddLibrary:"هذا سيضيف {{numShapes}} شكل إلى مكتبتك. هل أنت متأكد؟",imageDoesNotContainScene:"يبدو أن هذه الصورة لا تحتوي على أي بيانات مشهد. هل قمت بتمكين تضمين المشهد أثناء التصدير؟",cannotRestoreFromImage:"تعذر استعادة المشهد من ملف الصورة",invalidSceneUrl:"تعذر استيراد المشهد من عنوان URL المتوفر. إما أنها مشوهة، أو لا تحتوي على بيانات Excalidraw JSON صالحة.",resetLibrary:"هذا سوف يمسح مكتبتك. هل أنت متأكد؟",removeItemsFromsLibrary:"حذف {{count}} عنصر (عناصر) من المكتبة؟",invalidEncryptionKey:"مفتاح التشفير يجب أن يكون من 22 حرفاً. التعاون المباشر معطل.",collabOfflineWarning:`لا يوجد اتصال بالانترنت.
4
4
  لن يتم حفظ التغييرات التي قمت بها!`},o={unsupportedFileType:"نوع الملف غير مدعوم.",imageInsertError:"تعذر إدراج الصورة. حاول مرة أخرى لاحقاً...",fileTooBig:"الملف كبير جداً. الحد الأقصى المسموح به للحجم هو {{maxSize}}.",svgImageInsertError:"تعذر إدراج صورة SVG. يبدو أن ترميز SVG غير صحيح.",failedToFetchImage:"",invalidSVGString:"SVG غير صالح.",cannotResolveCollabServer:"تعذر الاتصال بخادم التعاون. الرجاء إعادة تحميل الصفحة والمحاولة مرة أخرى.",importLibraryError:"تعذر تحميل المكتبة",collabSaveFailed:"تعذر الحفظ في قاعدة البيانات. إذا استمرت المشاكل، يفضل أن تحفظ ملفك محليا كي لا تفقد عملك.",collabSaveFailed_sizeExceeded:"تعذر الحفظ في قاعدة البيانات، يبدو أن القماش كبير للغاية، يفضّل حفظ الملف محليا كي لا تفقد عملك.",imageToolNotSupported:"",brave_measure_text_error:{line1:"يبدو أنك تستخدم متصفح Brave مع إعداد <bold>حظر صارم لتتبع البصمة</bold>.",line2:"قد يؤدي هذا إلى كسر <bold>عناصر النص</bold> في الرسومات الخاصة بك.",line3:"من المستحسن إلغاء تفعيل هذا الإعداد. يمكنك اتباع <link>هذه الخطوات</link> لفعل ذلك.",line4:"إذا لم يصلح تعطيل هذا الإعداد طريقة عرض النصوص، الرجاء كتابة <issueLink>بلاغ</issueLink> على حسابنا في GitHub، أو راسلنا على <discordLink>Discord</discordLink>"},libraryElementTypeError:{embeddable:"لا يمكن إضافة العناصر القابلة للتضمين في المكتبة.",iframe:"",image:"سوف يتم دعم إضافة صور إلى المكتبة قريباً!"},asyncPasteFailedOnRead:"",asyncPasteFailedOnParse:"",copyToSystemClipboardFailed:""},t={selection:"تحديد",image:"إدراج صورة",rectangle:"مستطيل",diamond:"مضلع",ellipse:"دائرة",arrow:"سهم",line:"خط",freedraw:"رسم",text:"نص",library:"مكتبة",lock:"الحفاظ على أداة التحديد نشطة بعد الرسم",penMode:"وضع القلم - امنع اللمس",link:"إضافة/تحديث الرابط للشكل المحدد",eraser:"ممحاة",frame:"أداة الإطار",magicframe:"",embeddable:"تضمين ويب",laser:"مؤشر ليزر",hand:"يد (أداة الإزاحة)",extraTools:"المزيد من أﻷدوات",mermaidToExcalidraw:"",magicSettings:""},a={canvasActions:"إجراءات اللوحة",selectedShapeActions:"إجراءات الشكل المحدد",shapes:"الأشكال"},i={canvasPanning:"لتحريك القماش، اضغط على عجلة الفأرة أو مفتاح المسافة أثناء السحب، أو استخدم أداة اليد",linearElement:"انقر لبدء نقاط متعددة، اسحب لخط واحد",freeDraw:"انقر واسحب، افرج عند الانتهاء",text:"نصيحة: يمكنك أيضًا إضافة نص بالنقر المزدوج في أي مكان بأداة الاختيار",embeddable:"اضغط مع السحب لإنشاء موقع ويب مضمّن",text_selected:"انقر نقراً مزدوجاً أو اضغط ادخال لتعديل النص",text_editing:"اضغط على Esc أو (Ctrl أو Cmd) + Enter لإنهاء التعديل",linearElementMulti:"انقر فوق النقطة الأخيرة أو اضغط على Esc أو Enter للإنهاء",lockAngle:"يمكنك تقييد الزاوية بالضغط على SHIFT",resize:`يمكنك تقييد النسب بالضغط على SHIFT أثناء تغيير الحجم،
@@ -1,4 +1,4 @@
1
- import{p as he}from"./chunk-JWPE2WC7-DnRzfMcA.js";import{_ as l,D as fe,R as ge,l as K,b as ue,a as pe,o as me,p as ye,g as we,s as ke,q as xe,A as ve,y as $e,B as be,c as H,a5 as J,a3 as Y,i as Ee,r as Se,a4 as Ae,a6 as De}from"./mermaid.core-CiNB92Or.js";import{p as Te}from"./cynefin-OW5HDTMX-BVK0_S--.js";import{c as Q}from"./cytoscape.esm-By_5ytxT.js";import{f as Ie}from"./cytoscape-fcose-DEjGNOBW.js";import{s as Ce}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 q={L:"left",R:"right",T:"top",B:"bottom"},V={L:l(e=>`${e},${e/2} 0,${e} 0,0`,"L"),R:l(e=>`0,${e/2} ${e},0 ${e},${e}`,"R"),T:l(e=>`0,0 ${e},0 ${e/2},${e}`,"T"),B:l(e=>`${e/2},0 ${e},${e} 0,${e}`,"B")},j={L:l((e,t)=>e-t+2,"L"),R:l((e,t)=>e-2,"R"),T:l((e,t)=>e-t+2,"T"),B:l((e,t)=>e-2,"B")},Me=l(function(e){return M(e)?e==="L"?"R":"L":e==="T"?"B":"T"},"getOppositeArchitectureDirection"),W=l(function(e){const t=e;return t==="L"||t==="R"||t==="T"||t==="B"},"isArchitectureDirection"),M=l(function(e){const t=e;return t==="L"||t==="R"},"isArchitectureDirectionX"),z=l(function(e){const t=e;return t==="T"||t==="B"},"isArchitectureDirectionY"),O=l(function(e,t){const r=M(e)&&z(t),s=z(e)&&M(t);return r||s},"isArchitectureDirectionXY"),Be=l(function(e){const t=e[0],r=e[1],s=M(t)&&z(r),i=z(t)&&M(r);return s||i},"isArchitecturePairXY"),Le=l(function(e){return e!=="LL"&&e!=="RR"&&e!=="TT"&&e!=="BB"},"isValidArchitectureDirectionPair"),N=l(function(e,t){const r=`${e}${t}`;return Le(r)?r:void 0},"getArchitectureDirectionPair"),ze=l(function([e,t],r){const s=r[0],i=r[1];return M(s)?z(i)?[e+(s==="L"?-1:1),t+(i==="T"?1:-1)]:[e+(s==="L"?-1:1),t]:M(i)?[e+(i==="L"?1:-1),t+(s==="T"?1:-1)]:[e,t+(s==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),Fe=l(function(e){return e==="LT"||e==="TL"?[1,1]:e==="BL"||e==="LB"?[1,-1]:e==="BR"||e==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),Pe=l(function(e,t){return O(e,t)?"bend":M(e)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),Ge=l(function(e){return e.type==="service"},"isArchitectureService"),Re=l(function(e){return e.type==="junction"},"isArchitectureJunction"),U=l((e,t)=>{const[r,s]=[e,t].sort();return`${JSON.stringify(r)}-${JSON.stringify(s)}`},"architectureGroupAlignmentKey"),ee=l(e=>e.data(),"edgeData"),G=l(e=>e.data(),"nodeData"),je=be.architecture,te=class{constructor(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.elements=new Map,this.diagramId="",this.setAccTitle=ue,this.getAccTitle=pe,this.setDiagramTitle=me,this.getDiagramTitle=ye,this.getAccDescription=we,this.setAccDescription=ke,this.clear()}static{l(this,"ArchitectureDB")}setDiagramId(e){this.diagramId=e}getDiagramId(){return this.diagramId}clear(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.dataStructures=void 0,this.elements=new Map,this.diagramId="",xe()}addService({id:e,icon:t,in:r,title:s,iconText:i}){if(this.registeredIds.has(e))throw new Error(`The service id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(r!==void 0){if(e===r)throw new Error(`The service [${e}] cannot be placed within itself`);if(!this.registeredIds.has(r))throw new Error(`The service [${e}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds.get(r)==="node")throw new Error(`The service [${e}]'s parent is not a group`)}this.registeredIds.set(e,"node"),this.nodes.set(e,{id:e,type:"service",icon:t,iconText:i,title:s,edges:[],in:r})}getServices(){return[...this.nodes.values()].filter(Ge)}addJunction({id:e,in:t}){if(this.registeredIds.has(e))throw new Error(`The junction id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(t!==void 0){if(e===t)throw new Error(`The junction [${e}] cannot be placed within itself`);if(!this.registeredIds.has(t))throw new Error(`The junction [${e}]'s parent does not exist. Please make sure the parent is created before this junction`);if(this.registeredIds.get(t)==="node")throw new Error(`The junction [${e}]'s parent is not a group`)}this.registeredIds.set(e,"node"),this.nodes.set(e,{id:e,type:"junction",edges:[],in:t})}getJunctions(){return[...this.nodes.values()].filter(Re)}getNodes(){return[...this.nodes.values()]}getNode(e){return this.nodes.get(e)??null}addGroup({id:e,icon:t,in:r,title:s}){if(this.registeredIds.has(e))throw new Error(`The group id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(r!==void 0){if(e===r)throw new Error(`The group [${e}] cannot be placed within itself`);if(!this.registeredIds.has(r))throw new Error(`The group [${e}]'s parent does not exist. Please make sure the parent is created before this group`);if(this.registeredIds.get(r)==="node")throw new Error(`The group [${e}]'s parent is not a group`)}this.registeredIds.set(e,"group"),this.groups.set(e,{id:e,icon:t,title:s,in:r})}getGroups(){return[...this.groups.values()]}addEdge({lhsId:e,rhsId:t,lhsDir:r,rhsDir:s,lhsInto:i,rhsInto:f,lhsGroup:g,rhsGroup:d,title:h}){if(!W(r))throw new Error(`Invalid direction given for left hand side of edge ${e}--${t}. Expected (L,R,T,B) got ${String(r)}`);if(!W(s))throw new Error(`Invalid direction given for right hand side of edge ${e}--${t}. Expected (L,R,T,B) got ${String(s)}`);if(!this.nodes.has(e)&&!this.groups.has(e))throw new Error(`The left-hand id [${e}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(!this.nodes.has(t)&&!this.groups.has(t))throw new Error(`The right-hand id [${t}] does not yet exist. Please create the service/group before declaring an edge to it.`);const n=this.nodes.get(e).in,c=this.nodes.get(t).in;if(g&&n&&c&&n==c)throw new Error(`The left-hand id [${e}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(d&&n&&c&&n==c)throw new Error(`The right-hand id [${t}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);const a={lhsId:e,lhsDir:r,lhsInto:i,lhsGroup:g,rhsId:t,rhsDir:s,rhsInto:f,rhsGroup:d,title:h};this.edges.push(a);const o=this.nodes.get(e),u=this.nodes.get(t);o&&u&&(o.edges.push(this.edges[this.edges.length-1]),u.edges.push(this.edges[this.edges.length-1]))}getEdges(){return this.edges}addLayoutHint(e){if(e.members.length<2)throw new Error(`An align directive requires at least two members; got ${e.members.length}`);const t=new Set;e.members.forEach(r=>{if(this.registeredIds.get(r)!=="node")throw new Error(`align ${e.direction} references [${r}], which is not a service or junction`);if(t.has(r))throw new Error(`align ${e.direction} lists [${r}] more than once`);t.add(r)}),this.layoutHints.push(e)}getLayoutHints(){return this.layoutHints}getDataStructures(){if(this.dataStructures===void 0){const e=new Map,t=new Map;for(const[g,d]of this.nodes.entries()){const h=new Map;for(const n of d.edges){const c=this.getNode(n.lhsId)?.in,a=this.getNode(n.rhsId)?.in;if(c&&a&&c!==a){const o=Pe(n.lhsDir,n.rhsDir);o!=="bend"&&e.set(U(c,a),o)}if(n.lhsId===g){const o=N(n.lhsDir,n.rhsDir);o&&h.set(o,n.rhsId)}else{const o=N(n.rhsDir,n.lhsDir);o&&h.set(o,n.lhsId)}}t.set(g,h)}const r=new Set,s=new Set(t.keys()),i=l(g=>{const d=new Map([[g,[0,0]]]),h=[g];for(;h.length>0;){const n=h.shift();if(n){r.add(n),s.delete(n);const c=t.get(n);if(!c)throw new Error(`BFS error: adjacency list for id ${n} not found. Please report this as a bug.`);const a=d.get(n);if(!a)throw new Error(`BFS error: position for id ${n} not found in spatial map. Please report this as a bug.`);const[o,u]=a;c.forEach((y,m)=>{r.has(y)||(d.set(y,ze([o,u],m)),h.push(y))})}}return d},"BFS"),f=[];for(;s.size>0;){const g=s.values().next().value;f.push(i(g))}this.dataStructures={adjList:t,spatialMaps:f,groupAlignments:e}}return this.dataStructures}setElementForId(e,t){this.elements.set(e,t)}getElementById(e){return this.elements.get(e)}getConfig(){return ve({...je,...$e().architecture})}getConfigField(e){return this.getConfig()[e]}},Xe=l((e,t)=>{he(e,t),e.groups.map(r=>t.addGroup(r)),e.services.map(r=>t.addService({...r,type:"service"})),e.junctions.map(r=>t.addJunction({...r,type:"junction"})),e.edges.map(r=>t.addEdge(r)),e.alignments?.map(r=>t.addLayoutHint({direction:r.direction,members:[...r.members]}))},"populateDb"),re={parser:{yy:void 0},parse:l(async e=>{const t=await Te("architecture",e);K.debug(t);const r=re.parser?.yy;if(!(r instanceof te))throw new Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Xe(t,r)},"parse")},Ye=l(e=>`
1
+ import{p as he}from"./chunk-JWPE2WC7-nWjEvJWR.js";import{_ as l,D as fe,R as ge,l as K,b as ue,a as pe,o as me,p as ye,g as we,s as ke,q as xe,A as ve,y as $e,B as be,c as H,a5 as J,a3 as Y,i as Ee,r as Se,a4 as Ae,a6 as De}from"./mermaid.core-gUuQZ3q0.js";import{p as Te}from"./cynefin-OW5HDTMX-BVK0_S--.js";import{c as Q}from"./cytoscape.esm-By_5ytxT.js";import{f as Ie}from"./cytoscape-fcose-DEjGNOBW.js";import{s as Ce}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 q={L:"left",R:"right",T:"top",B:"bottom"},V={L:l(e=>`${e},${e/2} 0,${e} 0,0`,"L"),R:l(e=>`0,${e/2} ${e},0 ${e},${e}`,"R"),T:l(e=>`0,0 ${e},0 ${e/2},${e}`,"T"),B:l(e=>`${e/2},0 ${e},${e} 0,${e}`,"B")},j={L:l((e,t)=>e-t+2,"L"),R:l((e,t)=>e-2,"R"),T:l((e,t)=>e-t+2,"T"),B:l((e,t)=>e-2,"B")},Me=l(function(e){return M(e)?e==="L"?"R":"L":e==="T"?"B":"T"},"getOppositeArchitectureDirection"),W=l(function(e){const t=e;return t==="L"||t==="R"||t==="T"||t==="B"},"isArchitectureDirection"),M=l(function(e){const t=e;return t==="L"||t==="R"},"isArchitectureDirectionX"),z=l(function(e){const t=e;return t==="T"||t==="B"},"isArchitectureDirectionY"),O=l(function(e,t){const r=M(e)&&z(t),s=z(e)&&M(t);return r||s},"isArchitectureDirectionXY"),Be=l(function(e){const t=e[0],r=e[1],s=M(t)&&z(r),i=z(t)&&M(r);return s||i},"isArchitecturePairXY"),Le=l(function(e){return e!=="LL"&&e!=="RR"&&e!=="TT"&&e!=="BB"},"isValidArchitectureDirectionPair"),N=l(function(e,t){const r=`${e}${t}`;return Le(r)?r:void 0},"getArchitectureDirectionPair"),ze=l(function([e,t],r){const s=r[0],i=r[1];return M(s)?z(i)?[e+(s==="L"?-1:1),t+(i==="T"?1:-1)]:[e+(s==="L"?-1:1),t]:M(i)?[e+(i==="L"?1:-1),t+(s==="T"?1:-1)]:[e,t+(s==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),Fe=l(function(e){return e==="LT"||e==="TL"?[1,1]:e==="BL"||e==="LB"?[1,-1]:e==="BR"||e==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),Pe=l(function(e,t){return O(e,t)?"bend":M(e)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),Ge=l(function(e){return e.type==="service"},"isArchitectureService"),Re=l(function(e){return e.type==="junction"},"isArchitectureJunction"),U=l((e,t)=>{const[r,s]=[e,t].sort();return`${JSON.stringify(r)}-${JSON.stringify(s)}`},"architectureGroupAlignmentKey"),ee=l(e=>e.data(),"edgeData"),G=l(e=>e.data(),"nodeData"),je=be.architecture,te=class{constructor(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.elements=new Map,this.diagramId="",this.setAccTitle=ue,this.getAccTitle=pe,this.setDiagramTitle=me,this.getDiagramTitle=ye,this.getAccDescription=we,this.setAccDescription=ke,this.clear()}static{l(this,"ArchitectureDB")}setDiagramId(e){this.diagramId=e}getDiagramId(){return this.diagramId}clear(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.dataStructures=void 0,this.elements=new Map,this.diagramId="",xe()}addService({id:e,icon:t,in:r,title:s,iconText:i}){if(this.registeredIds.has(e))throw new Error(`The service id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(r!==void 0){if(e===r)throw new Error(`The service [${e}] cannot be placed within itself`);if(!this.registeredIds.has(r))throw new Error(`The service [${e}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds.get(r)==="node")throw new Error(`The service [${e}]'s parent is not a group`)}this.registeredIds.set(e,"node"),this.nodes.set(e,{id:e,type:"service",icon:t,iconText:i,title:s,edges:[],in:r})}getServices(){return[...this.nodes.values()].filter(Ge)}addJunction({id:e,in:t}){if(this.registeredIds.has(e))throw new Error(`The junction id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(t!==void 0){if(e===t)throw new Error(`The junction [${e}] cannot be placed within itself`);if(!this.registeredIds.has(t))throw new Error(`The junction [${e}]'s parent does not exist. Please make sure the parent is created before this junction`);if(this.registeredIds.get(t)==="node")throw new Error(`The junction [${e}]'s parent is not a group`)}this.registeredIds.set(e,"node"),this.nodes.set(e,{id:e,type:"junction",edges:[],in:t})}getJunctions(){return[...this.nodes.values()].filter(Re)}getNodes(){return[...this.nodes.values()]}getNode(e){return this.nodes.get(e)??null}addGroup({id:e,icon:t,in:r,title:s}){if(this.registeredIds.has(e))throw new Error(`The group id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(r!==void 0){if(e===r)throw new Error(`The group [${e}] cannot be placed within itself`);if(!this.registeredIds.has(r))throw new Error(`The group [${e}]'s parent does not exist. Please make sure the parent is created before this group`);if(this.registeredIds.get(r)==="node")throw new Error(`The group [${e}]'s parent is not a group`)}this.registeredIds.set(e,"group"),this.groups.set(e,{id:e,icon:t,title:s,in:r})}getGroups(){return[...this.groups.values()]}addEdge({lhsId:e,rhsId:t,lhsDir:r,rhsDir:s,lhsInto:i,rhsInto:f,lhsGroup:g,rhsGroup:d,title:h}){if(!W(r))throw new Error(`Invalid direction given for left hand side of edge ${e}--${t}. Expected (L,R,T,B) got ${String(r)}`);if(!W(s))throw new Error(`Invalid direction given for right hand side of edge ${e}--${t}. Expected (L,R,T,B) got ${String(s)}`);if(!this.nodes.has(e)&&!this.groups.has(e))throw new Error(`The left-hand id [${e}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(!this.nodes.has(t)&&!this.groups.has(t))throw new Error(`The right-hand id [${t}] does not yet exist. Please create the service/group before declaring an edge to it.`);const n=this.nodes.get(e).in,c=this.nodes.get(t).in;if(g&&n&&c&&n==c)throw new Error(`The left-hand id [${e}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(d&&n&&c&&n==c)throw new Error(`The right-hand id [${t}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);const a={lhsId:e,lhsDir:r,lhsInto:i,lhsGroup:g,rhsId:t,rhsDir:s,rhsInto:f,rhsGroup:d,title:h};this.edges.push(a);const o=this.nodes.get(e),u=this.nodes.get(t);o&&u&&(o.edges.push(this.edges[this.edges.length-1]),u.edges.push(this.edges[this.edges.length-1]))}getEdges(){return this.edges}addLayoutHint(e){if(e.members.length<2)throw new Error(`An align directive requires at least two members; got ${e.members.length}`);const t=new Set;e.members.forEach(r=>{if(this.registeredIds.get(r)!=="node")throw new Error(`align ${e.direction} references [${r}], which is not a service or junction`);if(t.has(r))throw new Error(`align ${e.direction} lists [${r}] more than once`);t.add(r)}),this.layoutHints.push(e)}getLayoutHints(){return this.layoutHints}getDataStructures(){if(this.dataStructures===void 0){const e=new Map,t=new Map;for(const[g,d]of this.nodes.entries()){const h=new Map;for(const n of d.edges){const c=this.getNode(n.lhsId)?.in,a=this.getNode(n.rhsId)?.in;if(c&&a&&c!==a){const o=Pe(n.lhsDir,n.rhsDir);o!=="bend"&&e.set(U(c,a),o)}if(n.lhsId===g){const o=N(n.lhsDir,n.rhsDir);o&&h.set(o,n.rhsId)}else{const o=N(n.rhsDir,n.lhsDir);o&&h.set(o,n.lhsId)}}t.set(g,h)}const r=new Set,s=new Set(t.keys()),i=l(g=>{const d=new Map([[g,[0,0]]]),h=[g];for(;h.length>0;){const n=h.shift();if(n){r.add(n),s.delete(n);const c=t.get(n);if(!c)throw new Error(`BFS error: adjacency list for id ${n} not found. Please report this as a bug.`);const a=d.get(n);if(!a)throw new Error(`BFS error: position for id ${n} not found in spatial map. Please report this as a bug.`);const[o,u]=a;c.forEach((y,m)=>{r.has(y)||(d.set(y,ze([o,u],m)),h.push(y))})}}return d},"BFS"),f=[];for(;s.size>0;){const g=s.values().next().value;f.push(i(g))}this.dataStructures={adjList:t,spatialMaps:f,groupAlignments:e}}return this.dataStructures}setElementForId(e,t){this.elements.set(e,t)}getElementById(e){return this.elements.get(e)}getConfig(){return ve({...je,...$e().architecture})}getConfigField(e){return this.getConfig()[e]}},Xe=l((e,t)=>{he(e,t),e.groups.map(r=>t.addGroup(r)),e.services.map(r=>t.addService({...r,type:"service"})),e.junctions.map(r=>t.addJunction({...r,type:"junction"})),e.edges.map(r=>t.addEdge(r)),e.alignments?.map(r=>t.addLayoutHint({direction:r.direction,members:[...r.members]}))},"populateDb"),re={parser:{yy:void 0},parse:l(async e=>{const t=await Te("architecture",e);K.debug(t);const r=re.parser?.yy;if(!(r instanceof te))throw new Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Xe(t,r)},"parse")},Ye=l(e=>`
2
2
  .edge {
3
3
  stroke-width: ${e.archEdgeWidth};
4
4
  stroke: ${e.archEdgeColor};
@@ -1,4 +1,4 @@
1
- import{p as he}from"./chunk-JWPE2WC7-ExuCJCuM.js";import{_ as l,D as fe,R as ge,l as K,b as ue,a as pe,o as me,p as ye,g as we,s as ke,q as xe,A as ve,B as $e,y as be,c as H,a5 as J,a3 as Y,i as Ee,r as Se,a4 as Ae,a6 as De}from"./index--2Kz2vhr.js";import{p as Te}from"./cynefin-OW5HDTMX-BBLugbYz.js";import{c as Q}from"./cytoscape.esm-By_5ytxT.js";import{f as Ie}from"./cytoscape-fcose-DEjGNOBW.js";import{s as Ce}from"./index-CyZxCTSq.js";import"./index-CJys1M3A.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 q={L:"left",R:"right",T:"top",B:"bottom"},V={L:l(e=>`${e},${e/2} 0,${e} 0,0`,"L"),R:l(e=>`0,${e/2} ${e},0 ${e},${e}`,"R"),T:l(e=>`0,0 ${e},0 ${e/2},${e}`,"T"),B:l(e=>`${e/2},0 ${e},${e} 0,${e}`,"B")},j={L:l((e,t)=>e-t+2,"L"),R:l((e,t)=>e-2,"R"),T:l((e,t)=>e-t+2,"T"),B:l((e,t)=>e-2,"B")},Me=l(function(e){return M(e)?e==="L"?"R":"L":e==="T"?"B":"T"},"getOppositeArchitectureDirection"),W=l(function(e){const t=e;return t==="L"||t==="R"||t==="T"||t==="B"},"isArchitectureDirection"),M=l(function(e){const t=e;return t==="L"||t==="R"},"isArchitectureDirectionX"),z=l(function(e){const t=e;return t==="T"||t==="B"},"isArchitectureDirectionY"),O=l(function(e,t){const r=M(e)&&z(t),s=z(e)&&M(t);return r||s},"isArchitectureDirectionXY"),Be=l(function(e){const t=e[0],r=e[1],s=M(t)&&z(r),i=z(t)&&M(r);return s||i},"isArchitecturePairXY"),Le=l(function(e){return e!=="LL"&&e!=="RR"&&e!=="TT"&&e!=="BB"},"isValidArchitectureDirectionPair"),N=l(function(e,t){const r=`${e}${t}`;return Le(r)?r:void 0},"getArchitectureDirectionPair"),ze=l(function([e,t],r){const s=r[0],i=r[1];return M(s)?z(i)?[e+(s==="L"?-1:1),t+(i==="T"?1:-1)]:[e+(s==="L"?-1:1),t]:M(i)?[e+(i==="L"?1:-1),t+(s==="T"?1:-1)]:[e,t+(s==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),Fe=l(function(e){return e==="LT"||e==="TL"?[1,1]:e==="BL"||e==="LB"?[1,-1]:e==="BR"||e==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),Pe=l(function(e,t){return O(e,t)?"bend":M(e)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),Ge=l(function(e){return e.type==="service"},"isArchitectureService"),Re=l(function(e){return e.type==="junction"},"isArchitectureJunction"),U=l((e,t)=>{const[r,s]=[e,t].sort();return`${JSON.stringify(r)}-${JSON.stringify(s)}`},"architectureGroupAlignmentKey"),ee=l(e=>e.data(),"edgeData"),G=l(e=>e.data(),"nodeData"),je=$e.architecture,te=class{constructor(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.elements=new Map,this.diagramId="",this.setAccTitle=ue,this.getAccTitle=pe,this.setDiagramTitle=me,this.getDiagramTitle=ye,this.getAccDescription=we,this.setAccDescription=ke,this.clear()}static{l(this,"ArchitectureDB")}setDiagramId(e){this.diagramId=e}getDiagramId(){return this.diagramId}clear(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.dataStructures=void 0,this.elements=new Map,this.diagramId="",xe()}addService({id:e,icon:t,in:r,title:s,iconText:i}){if(this.registeredIds.has(e))throw new Error(`The service id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(r!==void 0){if(e===r)throw new Error(`The service [${e}] cannot be placed within itself`);if(!this.registeredIds.has(r))throw new Error(`The service [${e}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds.get(r)==="node")throw new Error(`The service [${e}]'s parent is not a group`)}this.registeredIds.set(e,"node"),this.nodes.set(e,{id:e,type:"service",icon:t,iconText:i,title:s,edges:[],in:r})}getServices(){return[...this.nodes.values()].filter(Ge)}addJunction({id:e,in:t}){if(this.registeredIds.has(e))throw new Error(`The junction id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(t!==void 0){if(e===t)throw new Error(`The junction [${e}] cannot be placed within itself`);if(!this.registeredIds.has(t))throw new Error(`The junction [${e}]'s parent does not exist. Please make sure the parent is created before this junction`);if(this.registeredIds.get(t)==="node")throw new Error(`The junction [${e}]'s parent is not a group`)}this.registeredIds.set(e,"node"),this.nodes.set(e,{id:e,type:"junction",edges:[],in:t})}getJunctions(){return[...this.nodes.values()].filter(Re)}getNodes(){return[...this.nodes.values()]}getNode(e){return this.nodes.get(e)??null}addGroup({id:e,icon:t,in:r,title:s}){if(this.registeredIds.has(e))throw new Error(`The group id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(r!==void 0){if(e===r)throw new Error(`The group [${e}] cannot be placed within itself`);if(!this.registeredIds.has(r))throw new Error(`The group [${e}]'s parent does not exist. Please make sure the parent is created before this group`);if(this.registeredIds.get(r)==="node")throw new Error(`The group [${e}]'s parent is not a group`)}this.registeredIds.set(e,"group"),this.groups.set(e,{id:e,icon:t,title:s,in:r})}getGroups(){return[...this.groups.values()]}addEdge({lhsId:e,rhsId:t,lhsDir:r,rhsDir:s,lhsInto:i,rhsInto:f,lhsGroup:g,rhsGroup:d,title:h}){if(!W(r))throw new Error(`Invalid direction given for left hand side of edge ${e}--${t}. Expected (L,R,T,B) got ${String(r)}`);if(!W(s))throw new Error(`Invalid direction given for right hand side of edge ${e}--${t}. Expected (L,R,T,B) got ${String(s)}`);if(!this.nodes.has(e)&&!this.groups.has(e))throw new Error(`The left-hand id [${e}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(!this.nodes.has(t)&&!this.groups.has(t))throw new Error(`The right-hand id [${t}] does not yet exist. Please create the service/group before declaring an edge to it.`);const n=this.nodes.get(e).in,c=this.nodes.get(t).in;if(g&&n&&c&&n==c)throw new Error(`The left-hand id [${e}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(d&&n&&c&&n==c)throw new Error(`The right-hand id [${t}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);const a={lhsId:e,lhsDir:r,lhsInto:i,lhsGroup:g,rhsId:t,rhsDir:s,rhsInto:f,rhsGroup:d,title:h};this.edges.push(a);const o=this.nodes.get(e),u=this.nodes.get(t);o&&u&&(o.edges.push(this.edges[this.edges.length-1]),u.edges.push(this.edges[this.edges.length-1]))}getEdges(){return this.edges}addLayoutHint(e){if(e.members.length<2)throw new Error(`An align directive requires at least two members; got ${e.members.length}`);const t=new Set;e.members.forEach(r=>{if(this.registeredIds.get(r)!=="node")throw new Error(`align ${e.direction} references [${r}], which is not a service or junction`);if(t.has(r))throw new Error(`align ${e.direction} lists [${r}] more than once`);t.add(r)}),this.layoutHints.push(e)}getLayoutHints(){return this.layoutHints}getDataStructures(){if(this.dataStructures===void 0){const e=new Map,t=new Map;for(const[g,d]of this.nodes.entries()){const h=new Map;for(const n of d.edges){const c=this.getNode(n.lhsId)?.in,a=this.getNode(n.rhsId)?.in;if(c&&a&&c!==a){const o=Pe(n.lhsDir,n.rhsDir);o!=="bend"&&e.set(U(c,a),o)}if(n.lhsId===g){const o=N(n.lhsDir,n.rhsDir);o&&h.set(o,n.rhsId)}else{const o=N(n.rhsDir,n.lhsDir);o&&h.set(o,n.lhsId)}}t.set(g,h)}const r=new Set,s=new Set(t.keys()),i=l(g=>{const d=new Map([[g,[0,0]]]),h=[g];for(;h.length>0;){const n=h.shift();if(n){r.add(n),s.delete(n);const c=t.get(n);if(!c)throw new Error(`BFS error: adjacency list for id ${n} not found. Please report this as a bug.`);const a=d.get(n);if(!a)throw new Error(`BFS error: position for id ${n} not found in spatial map. Please report this as a bug.`);const[o,u]=a;c.forEach((y,m)=>{r.has(y)||(d.set(y,ze([o,u],m)),h.push(y))})}}return d},"BFS"),f=[];for(;s.size>0;){const g=s.values().next().value;f.push(i(g))}this.dataStructures={adjList:t,spatialMaps:f,groupAlignments:e}}return this.dataStructures}setElementForId(e,t){this.elements.set(e,t)}getElementById(e){return this.elements.get(e)}getConfig(){return ve({...je,...be().architecture})}getConfigField(e){return this.getConfig()[e]}},Xe=l((e,t)=>{he(e,t),e.groups.map(r=>t.addGroup(r)),e.services.map(r=>t.addService({...r,type:"service"})),e.junctions.map(r=>t.addJunction({...r,type:"junction"})),e.edges.map(r=>t.addEdge(r)),e.alignments?.map(r=>t.addLayoutHint({direction:r.direction,members:[...r.members]}))},"populateDb"),re={parser:{yy:void 0},parse:l(async e=>{const t=await Te("architecture",e);K.debug(t);const r=re.parser?.yy;if(!(r instanceof te))throw new Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Xe(t,r)},"parse")},Ye=l(e=>`
1
+ import{p as he}from"./chunk-JWPE2WC7-Bf4pFlIJ.js";import{_ as l,D as fe,R as ge,l as K,b as ue,a as pe,o as me,p as ye,g as we,s as ke,q as xe,A as ve,B as $e,y as be,c as H,a5 as J,a3 as Y,i as Ee,r as Se,a4 as Ae,a6 as De}from"./index-DObGLuCI.js";import{p as Te}from"./cynefin-OW5HDTMX-BBLugbYz.js";import{c as Q}from"./cytoscape.esm-By_5ytxT.js";import{f as Ie}from"./cytoscape-fcose-DEjGNOBW.js";import{s as Ce}from"./index-CyZxCTSq.js";import"./index-CJys1M3A.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 q={L:"left",R:"right",T:"top",B:"bottom"},V={L:l(e=>`${e},${e/2} 0,${e} 0,0`,"L"),R:l(e=>`0,${e/2} ${e},0 ${e},${e}`,"R"),T:l(e=>`0,0 ${e},0 ${e/2},${e}`,"T"),B:l(e=>`${e/2},0 ${e},${e} 0,${e}`,"B")},j={L:l((e,t)=>e-t+2,"L"),R:l((e,t)=>e-2,"R"),T:l((e,t)=>e-t+2,"T"),B:l((e,t)=>e-2,"B")},Me=l(function(e){return M(e)?e==="L"?"R":"L":e==="T"?"B":"T"},"getOppositeArchitectureDirection"),W=l(function(e){const t=e;return t==="L"||t==="R"||t==="T"||t==="B"},"isArchitectureDirection"),M=l(function(e){const t=e;return t==="L"||t==="R"},"isArchitectureDirectionX"),z=l(function(e){const t=e;return t==="T"||t==="B"},"isArchitectureDirectionY"),O=l(function(e,t){const r=M(e)&&z(t),s=z(e)&&M(t);return r||s},"isArchitectureDirectionXY"),Be=l(function(e){const t=e[0],r=e[1],s=M(t)&&z(r),i=z(t)&&M(r);return s||i},"isArchitecturePairXY"),Le=l(function(e){return e!=="LL"&&e!=="RR"&&e!=="TT"&&e!=="BB"},"isValidArchitectureDirectionPair"),N=l(function(e,t){const r=`${e}${t}`;return Le(r)?r:void 0},"getArchitectureDirectionPair"),ze=l(function([e,t],r){const s=r[0],i=r[1];return M(s)?z(i)?[e+(s==="L"?-1:1),t+(i==="T"?1:-1)]:[e+(s==="L"?-1:1),t]:M(i)?[e+(i==="L"?1:-1),t+(s==="T"?1:-1)]:[e,t+(s==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),Fe=l(function(e){return e==="LT"||e==="TL"?[1,1]:e==="BL"||e==="LB"?[1,-1]:e==="BR"||e==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),Pe=l(function(e,t){return O(e,t)?"bend":M(e)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),Ge=l(function(e){return e.type==="service"},"isArchitectureService"),Re=l(function(e){return e.type==="junction"},"isArchitectureJunction"),U=l((e,t)=>{const[r,s]=[e,t].sort();return`${JSON.stringify(r)}-${JSON.stringify(s)}`},"architectureGroupAlignmentKey"),ee=l(e=>e.data(),"edgeData"),G=l(e=>e.data(),"nodeData"),je=$e.architecture,te=class{constructor(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.elements=new Map,this.diagramId="",this.setAccTitle=ue,this.getAccTitle=pe,this.setDiagramTitle=me,this.getDiagramTitle=ye,this.getAccDescription=we,this.setAccDescription=ke,this.clear()}static{l(this,"ArchitectureDB")}setDiagramId(e){this.diagramId=e}getDiagramId(){return this.diagramId}clear(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.dataStructures=void 0,this.elements=new Map,this.diagramId="",xe()}addService({id:e,icon:t,in:r,title:s,iconText:i}){if(this.registeredIds.has(e))throw new Error(`The service id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(r!==void 0){if(e===r)throw new Error(`The service [${e}] cannot be placed within itself`);if(!this.registeredIds.has(r))throw new Error(`The service [${e}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds.get(r)==="node")throw new Error(`The service [${e}]'s parent is not a group`)}this.registeredIds.set(e,"node"),this.nodes.set(e,{id:e,type:"service",icon:t,iconText:i,title:s,edges:[],in:r})}getServices(){return[...this.nodes.values()].filter(Ge)}addJunction({id:e,in:t}){if(this.registeredIds.has(e))throw new Error(`The junction id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(t!==void 0){if(e===t)throw new Error(`The junction [${e}] cannot be placed within itself`);if(!this.registeredIds.has(t))throw new Error(`The junction [${e}]'s parent does not exist. Please make sure the parent is created before this junction`);if(this.registeredIds.get(t)==="node")throw new Error(`The junction [${e}]'s parent is not a group`)}this.registeredIds.set(e,"node"),this.nodes.set(e,{id:e,type:"junction",edges:[],in:t})}getJunctions(){return[...this.nodes.values()].filter(Re)}getNodes(){return[...this.nodes.values()]}getNode(e){return this.nodes.get(e)??null}addGroup({id:e,icon:t,in:r,title:s}){if(this.registeredIds.has(e))throw new Error(`The group id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(r!==void 0){if(e===r)throw new Error(`The group [${e}] cannot be placed within itself`);if(!this.registeredIds.has(r))throw new Error(`The group [${e}]'s parent does not exist. Please make sure the parent is created before this group`);if(this.registeredIds.get(r)==="node")throw new Error(`The group [${e}]'s parent is not a group`)}this.registeredIds.set(e,"group"),this.groups.set(e,{id:e,icon:t,title:s,in:r})}getGroups(){return[...this.groups.values()]}addEdge({lhsId:e,rhsId:t,lhsDir:r,rhsDir:s,lhsInto:i,rhsInto:f,lhsGroup:g,rhsGroup:d,title:h}){if(!W(r))throw new Error(`Invalid direction given for left hand side of edge ${e}--${t}. Expected (L,R,T,B) got ${String(r)}`);if(!W(s))throw new Error(`Invalid direction given for right hand side of edge ${e}--${t}. Expected (L,R,T,B) got ${String(s)}`);if(!this.nodes.has(e)&&!this.groups.has(e))throw new Error(`The left-hand id [${e}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(!this.nodes.has(t)&&!this.groups.has(t))throw new Error(`The right-hand id [${t}] does not yet exist. Please create the service/group before declaring an edge to it.`);const n=this.nodes.get(e).in,c=this.nodes.get(t).in;if(g&&n&&c&&n==c)throw new Error(`The left-hand id [${e}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(d&&n&&c&&n==c)throw new Error(`The right-hand id [${t}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);const a={lhsId:e,lhsDir:r,lhsInto:i,lhsGroup:g,rhsId:t,rhsDir:s,rhsInto:f,rhsGroup:d,title:h};this.edges.push(a);const o=this.nodes.get(e),u=this.nodes.get(t);o&&u&&(o.edges.push(this.edges[this.edges.length-1]),u.edges.push(this.edges[this.edges.length-1]))}getEdges(){return this.edges}addLayoutHint(e){if(e.members.length<2)throw new Error(`An align directive requires at least two members; got ${e.members.length}`);const t=new Set;e.members.forEach(r=>{if(this.registeredIds.get(r)!=="node")throw new Error(`align ${e.direction} references [${r}], which is not a service or junction`);if(t.has(r))throw new Error(`align ${e.direction} lists [${r}] more than once`);t.add(r)}),this.layoutHints.push(e)}getLayoutHints(){return this.layoutHints}getDataStructures(){if(this.dataStructures===void 0){const e=new Map,t=new Map;for(const[g,d]of this.nodes.entries()){const h=new Map;for(const n of d.edges){const c=this.getNode(n.lhsId)?.in,a=this.getNode(n.rhsId)?.in;if(c&&a&&c!==a){const o=Pe(n.lhsDir,n.rhsDir);o!=="bend"&&e.set(U(c,a),o)}if(n.lhsId===g){const o=N(n.lhsDir,n.rhsDir);o&&h.set(o,n.rhsId)}else{const o=N(n.rhsDir,n.lhsDir);o&&h.set(o,n.lhsId)}}t.set(g,h)}const r=new Set,s=new Set(t.keys()),i=l(g=>{const d=new Map([[g,[0,0]]]),h=[g];for(;h.length>0;){const n=h.shift();if(n){r.add(n),s.delete(n);const c=t.get(n);if(!c)throw new Error(`BFS error: adjacency list for id ${n} not found. Please report this as a bug.`);const a=d.get(n);if(!a)throw new Error(`BFS error: position for id ${n} not found in spatial map. Please report this as a bug.`);const[o,u]=a;c.forEach((y,m)=>{r.has(y)||(d.set(y,ze([o,u],m)),h.push(y))})}}return d},"BFS"),f=[];for(;s.size>0;){const g=s.values().next().value;f.push(i(g))}this.dataStructures={adjList:t,spatialMaps:f,groupAlignments:e}}return this.dataStructures}setElementForId(e,t){this.elements.set(e,t)}getElementById(e){return this.elements.get(e)}getConfig(){return ve({...je,...be().architecture})}getConfigField(e){return this.getConfig()[e]}},Xe=l((e,t)=>{he(e,t),e.groups.map(r=>t.addGroup(r)),e.services.map(r=>t.addService({...r,type:"service"})),e.junctions.map(r=>t.addJunction({...r,type:"junction"})),e.edges.map(r=>t.addEdge(r)),e.alignments?.map(r=>t.addLayoutHint({direction:r.direction,members:[...r.members]}))},"populateDb"),re={parser:{yy:void 0},parse:l(async e=>{const t=await Te("architecture",e);K.debug(t);const r=re.parser?.yy;if(!(r instanceof te))throw new Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Xe(t,r)},"parse")},Ye=l(e=>`
2
2
  .edge {
3
3
  stroke-width: ${e.archEdgeWidth};
4
4
  stroke: ${e.archEdgeColor};
@@ -1,4 +1,4 @@
1
- import{p as he}from"./chunk-JWPE2WC7-DbjVY_PP.js";import{_ as l,D as fe,R as ge,l as K,b as ue,a as pe,o as me,p as ye,g as we,s as ke,q as xe,A as ve,B as $e,y as be,c as H,a5 as J,a3 as Y,i as Ee,r as Se,a4 as Ae,a6 as De}from"./index-Das_qYGD.js";import{p as Te}from"./cynefin-OW5HDTMX-D8Lw5okC.js";import{c as Q}from"./cytoscape.esm-By_5ytxT.js";import{f as Ie}from"./cytoscape-fcose-DEjGNOBW.js";import{s as Ce}from"./index-CyZxCTSq.js";import"./index-CJys1M3A.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 q={L:"left",R:"right",T:"top",B:"bottom"},V={L:l(e=>`${e},${e/2} 0,${e} 0,0`,"L"),R:l(e=>`0,${e/2} ${e},0 ${e},${e}`,"R"),T:l(e=>`0,0 ${e},0 ${e/2},${e}`,"T"),B:l(e=>`${e/2},0 ${e},${e} 0,${e}`,"B")},j={L:l((e,t)=>e-t+2,"L"),R:l((e,t)=>e-2,"R"),T:l((e,t)=>e-t+2,"T"),B:l((e,t)=>e-2,"B")},Me=l(function(e){return M(e)?e==="L"?"R":"L":e==="T"?"B":"T"},"getOppositeArchitectureDirection"),W=l(function(e){const t=e;return t==="L"||t==="R"||t==="T"||t==="B"},"isArchitectureDirection"),M=l(function(e){const t=e;return t==="L"||t==="R"},"isArchitectureDirectionX"),z=l(function(e){const t=e;return t==="T"||t==="B"},"isArchitectureDirectionY"),O=l(function(e,t){const r=M(e)&&z(t),s=z(e)&&M(t);return r||s},"isArchitectureDirectionXY"),Be=l(function(e){const t=e[0],r=e[1],s=M(t)&&z(r),i=z(t)&&M(r);return s||i},"isArchitecturePairXY"),Le=l(function(e){return e!=="LL"&&e!=="RR"&&e!=="TT"&&e!=="BB"},"isValidArchitectureDirectionPair"),N=l(function(e,t){const r=`${e}${t}`;return Le(r)?r:void 0},"getArchitectureDirectionPair"),ze=l(function([e,t],r){const s=r[0],i=r[1];return M(s)?z(i)?[e+(s==="L"?-1:1),t+(i==="T"?1:-1)]:[e+(s==="L"?-1:1),t]:M(i)?[e+(i==="L"?1:-1),t+(s==="T"?1:-1)]:[e,t+(s==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),Fe=l(function(e){return e==="LT"||e==="TL"?[1,1]:e==="BL"||e==="LB"?[1,-1]:e==="BR"||e==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),Pe=l(function(e,t){return O(e,t)?"bend":M(e)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),Ge=l(function(e){return e.type==="service"},"isArchitectureService"),Re=l(function(e){return e.type==="junction"},"isArchitectureJunction"),U=l((e,t)=>{const[r,s]=[e,t].sort();return`${JSON.stringify(r)}-${JSON.stringify(s)}`},"architectureGroupAlignmentKey"),ee=l(e=>e.data(),"edgeData"),G=l(e=>e.data(),"nodeData"),je=$e.architecture,te=class{constructor(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.elements=new Map,this.diagramId="",this.setAccTitle=ue,this.getAccTitle=pe,this.setDiagramTitle=me,this.getDiagramTitle=ye,this.getAccDescription=we,this.setAccDescription=ke,this.clear()}static{l(this,"ArchitectureDB")}setDiagramId(e){this.diagramId=e}getDiagramId(){return this.diagramId}clear(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.dataStructures=void 0,this.elements=new Map,this.diagramId="",xe()}addService({id:e,icon:t,in:r,title:s,iconText:i}){if(this.registeredIds.has(e))throw new Error(`The service id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(r!==void 0){if(e===r)throw new Error(`The service [${e}] cannot be placed within itself`);if(!this.registeredIds.has(r))throw new Error(`The service [${e}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds.get(r)==="node")throw new Error(`The service [${e}]'s parent is not a group`)}this.registeredIds.set(e,"node"),this.nodes.set(e,{id:e,type:"service",icon:t,iconText:i,title:s,edges:[],in:r})}getServices(){return[...this.nodes.values()].filter(Ge)}addJunction({id:e,in:t}){if(this.registeredIds.has(e))throw new Error(`The junction id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(t!==void 0){if(e===t)throw new Error(`The junction [${e}] cannot be placed within itself`);if(!this.registeredIds.has(t))throw new Error(`The junction [${e}]'s parent does not exist. Please make sure the parent is created before this junction`);if(this.registeredIds.get(t)==="node")throw new Error(`The junction [${e}]'s parent is not a group`)}this.registeredIds.set(e,"node"),this.nodes.set(e,{id:e,type:"junction",edges:[],in:t})}getJunctions(){return[...this.nodes.values()].filter(Re)}getNodes(){return[...this.nodes.values()]}getNode(e){return this.nodes.get(e)??null}addGroup({id:e,icon:t,in:r,title:s}){if(this.registeredIds.has(e))throw new Error(`The group id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(r!==void 0){if(e===r)throw new Error(`The group [${e}] cannot be placed within itself`);if(!this.registeredIds.has(r))throw new Error(`The group [${e}]'s parent does not exist. Please make sure the parent is created before this group`);if(this.registeredIds.get(r)==="node")throw new Error(`The group [${e}]'s parent is not a group`)}this.registeredIds.set(e,"group"),this.groups.set(e,{id:e,icon:t,title:s,in:r})}getGroups(){return[...this.groups.values()]}addEdge({lhsId:e,rhsId:t,lhsDir:r,rhsDir:s,lhsInto:i,rhsInto:f,lhsGroup:g,rhsGroup:d,title:h}){if(!W(r))throw new Error(`Invalid direction given for left hand side of edge ${e}--${t}. Expected (L,R,T,B) got ${String(r)}`);if(!W(s))throw new Error(`Invalid direction given for right hand side of edge ${e}--${t}. Expected (L,R,T,B) got ${String(s)}`);if(!this.nodes.has(e)&&!this.groups.has(e))throw new Error(`The left-hand id [${e}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(!this.nodes.has(t)&&!this.groups.has(t))throw new Error(`The right-hand id [${t}] does not yet exist. Please create the service/group before declaring an edge to it.`);const n=this.nodes.get(e).in,c=this.nodes.get(t).in;if(g&&n&&c&&n==c)throw new Error(`The left-hand id [${e}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(d&&n&&c&&n==c)throw new Error(`The right-hand id [${t}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);const a={lhsId:e,lhsDir:r,lhsInto:i,lhsGroup:g,rhsId:t,rhsDir:s,rhsInto:f,rhsGroup:d,title:h};this.edges.push(a);const o=this.nodes.get(e),u=this.nodes.get(t);o&&u&&(o.edges.push(this.edges[this.edges.length-1]),u.edges.push(this.edges[this.edges.length-1]))}getEdges(){return this.edges}addLayoutHint(e){if(e.members.length<2)throw new Error(`An align directive requires at least two members; got ${e.members.length}`);const t=new Set;e.members.forEach(r=>{if(this.registeredIds.get(r)!=="node")throw new Error(`align ${e.direction} references [${r}], which is not a service or junction`);if(t.has(r))throw new Error(`align ${e.direction} lists [${r}] more than once`);t.add(r)}),this.layoutHints.push(e)}getLayoutHints(){return this.layoutHints}getDataStructures(){if(this.dataStructures===void 0){const e=new Map,t=new Map;for(const[g,d]of this.nodes.entries()){const h=new Map;for(const n of d.edges){const c=this.getNode(n.lhsId)?.in,a=this.getNode(n.rhsId)?.in;if(c&&a&&c!==a){const o=Pe(n.lhsDir,n.rhsDir);o!=="bend"&&e.set(U(c,a),o)}if(n.lhsId===g){const o=N(n.lhsDir,n.rhsDir);o&&h.set(o,n.rhsId)}else{const o=N(n.rhsDir,n.lhsDir);o&&h.set(o,n.lhsId)}}t.set(g,h)}const r=new Set,s=new Set(t.keys()),i=l(g=>{const d=new Map([[g,[0,0]]]),h=[g];for(;h.length>0;){const n=h.shift();if(n){r.add(n),s.delete(n);const c=t.get(n);if(!c)throw new Error(`BFS error: adjacency list for id ${n} not found. Please report this as a bug.`);const a=d.get(n);if(!a)throw new Error(`BFS error: position for id ${n} not found in spatial map. Please report this as a bug.`);const[o,u]=a;c.forEach((y,m)=>{r.has(y)||(d.set(y,ze([o,u],m)),h.push(y))})}}return d},"BFS"),f=[];for(;s.size>0;){const g=s.values().next().value;f.push(i(g))}this.dataStructures={adjList:t,spatialMaps:f,groupAlignments:e}}return this.dataStructures}setElementForId(e,t){this.elements.set(e,t)}getElementById(e){return this.elements.get(e)}getConfig(){return ve({...je,...be().architecture})}getConfigField(e){return this.getConfig()[e]}},Xe=l((e,t)=>{he(e,t),e.groups.map(r=>t.addGroup(r)),e.services.map(r=>t.addService({...r,type:"service"})),e.junctions.map(r=>t.addJunction({...r,type:"junction"})),e.edges.map(r=>t.addEdge(r)),e.alignments?.map(r=>t.addLayoutHint({direction:r.direction,members:[...r.members]}))},"populateDb"),re={parser:{yy:void 0},parse:l(async e=>{const t=await Te("architecture",e);K.debug(t);const r=re.parser?.yy;if(!(r instanceof te))throw new Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Xe(t,r)},"parse")},Ye=l(e=>`
1
+ import{p as he}from"./chunk-JWPE2WC7-BVXd-ICe.js";import{_ as l,D as fe,R as ge,l as K,b as ue,a as pe,o as me,p as ye,g as we,s as ke,q as xe,A as ve,B as $e,y as be,c as H,a5 as J,a3 as Y,i as Ee,r as Se,a4 as Ae,a6 as De}from"./index-Df2MkvAW.js";import{p as Te}from"./cynefin-OW5HDTMX-D8Lw5okC.js";import{c as Q}from"./cytoscape.esm-By_5ytxT.js";import{f as Ie}from"./cytoscape-fcose-DEjGNOBW.js";import{s as Ce}from"./index-CyZxCTSq.js";import"./index-CJys1M3A.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 q={L:"left",R:"right",T:"top",B:"bottom"},V={L:l(e=>`${e},${e/2} 0,${e} 0,0`,"L"),R:l(e=>`0,${e/2} ${e},0 ${e},${e}`,"R"),T:l(e=>`0,0 ${e},0 ${e/2},${e}`,"T"),B:l(e=>`${e/2},0 ${e},${e} 0,${e}`,"B")},j={L:l((e,t)=>e-t+2,"L"),R:l((e,t)=>e-2,"R"),T:l((e,t)=>e-t+2,"T"),B:l((e,t)=>e-2,"B")},Me=l(function(e){return M(e)?e==="L"?"R":"L":e==="T"?"B":"T"},"getOppositeArchitectureDirection"),W=l(function(e){const t=e;return t==="L"||t==="R"||t==="T"||t==="B"},"isArchitectureDirection"),M=l(function(e){const t=e;return t==="L"||t==="R"},"isArchitectureDirectionX"),z=l(function(e){const t=e;return t==="T"||t==="B"},"isArchitectureDirectionY"),O=l(function(e,t){const r=M(e)&&z(t),s=z(e)&&M(t);return r||s},"isArchitectureDirectionXY"),Be=l(function(e){const t=e[0],r=e[1],s=M(t)&&z(r),i=z(t)&&M(r);return s||i},"isArchitecturePairXY"),Le=l(function(e){return e!=="LL"&&e!=="RR"&&e!=="TT"&&e!=="BB"},"isValidArchitectureDirectionPair"),N=l(function(e,t){const r=`${e}${t}`;return Le(r)?r:void 0},"getArchitectureDirectionPair"),ze=l(function([e,t],r){const s=r[0],i=r[1];return M(s)?z(i)?[e+(s==="L"?-1:1),t+(i==="T"?1:-1)]:[e+(s==="L"?-1:1),t]:M(i)?[e+(i==="L"?1:-1),t+(s==="T"?1:-1)]:[e,t+(s==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),Fe=l(function(e){return e==="LT"||e==="TL"?[1,1]:e==="BL"||e==="LB"?[1,-1]:e==="BR"||e==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),Pe=l(function(e,t){return O(e,t)?"bend":M(e)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),Ge=l(function(e){return e.type==="service"},"isArchitectureService"),Re=l(function(e){return e.type==="junction"},"isArchitectureJunction"),U=l((e,t)=>{const[r,s]=[e,t].sort();return`${JSON.stringify(r)}-${JSON.stringify(s)}`},"architectureGroupAlignmentKey"),ee=l(e=>e.data(),"edgeData"),G=l(e=>e.data(),"nodeData"),je=$e.architecture,te=class{constructor(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.elements=new Map,this.diagramId="",this.setAccTitle=ue,this.getAccTitle=pe,this.setDiagramTitle=me,this.getDiagramTitle=ye,this.getAccDescription=we,this.setAccDescription=ke,this.clear()}static{l(this,"ArchitectureDB")}setDiagramId(e){this.diagramId=e}getDiagramId(){return this.diagramId}clear(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.dataStructures=void 0,this.elements=new Map,this.diagramId="",xe()}addService({id:e,icon:t,in:r,title:s,iconText:i}){if(this.registeredIds.has(e))throw new Error(`The service id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(r!==void 0){if(e===r)throw new Error(`The service [${e}] cannot be placed within itself`);if(!this.registeredIds.has(r))throw new Error(`The service [${e}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds.get(r)==="node")throw new Error(`The service [${e}]'s parent is not a group`)}this.registeredIds.set(e,"node"),this.nodes.set(e,{id:e,type:"service",icon:t,iconText:i,title:s,edges:[],in:r})}getServices(){return[...this.nodes.values()].filter(Ge)}addJunction({id:e,in:t}){if(this.registeredIds.has(e))throw new Error(`The junction id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(t!==void 0){if(e===t)throw new Error(`The junction [${e}] cannot be placed within itself`);if(!this.registeredIds.has(t))throw new Error(`The junction [${e}]'s parent does not exist. Please make sure the parent is created before this junction`);if(this.registeredIds.get(t)==="node")throw new Error(`The junction [${e}]'s parent is not a group`)}this.registeredIds.set(e,"node"),this.nodes.set(e,{id:e,type:"junction",edges:[],in:t})}getJunctions(){return[...this.nodes.values()].filter(Re)}getNodes(){return[...this.nodes.values()]}getNode(e){return this.nodes.get(e)??null}addGroup({id:e,icon:t,in:r,title:s}){if(this.registeredIds.has(e))throw new Error(`The group id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(r!==void 0){if(e===r)throw new Error(`The group [${e}] cannot be placed within itself`);if(!this.registeredIds.has(r))throw new Error(`The group [${e}]'s parent does not exist. Please make sure the parent is created before this group`);if(this.registeredIds.get(r)==="node")throw new Error(`The group [${e}]'s parent is not a group`)}this.registeredIds.set(e,"group"),this.groups.set(e,{id:e,icon:t,title:s,in:r})}getGroups(){return[...this.groups.values()]}addEdge({lhsId:e,rhsId:t,lhsDir:r,rhsDir:s,lhsInto:i,rhsInto:f,lhsGroup:g,rhsGroup:d,title:h}){if(!W(r))throw new Error(`Invalid direction given for left hand side of edge ${e}--${t}. Expected (L,R,T,B) got ${String(r)}`);if(!W(s))throw new Error(`Invalid direction given for right hand side of edge ${e}--${t}. Expected (L,R,T,B) got ${String(s)}`);if(!this.nodes.has(e)&&!this.groups.has(e))throw new Error(`The left-hand id [${e}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(!this.nodes.has(t)&&!this.groups.has(t))throw new Error(`The right-hand id [${t}] does not yet exist. Please create the service/group before declaring an edge to it.`);const n=this.nodes.get(e).in,c=this.nodes.get(t).in;if(g&&n&&c&&n==c)throw new Error(`The left-hand id [${e}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(d&&n&&c&&n==c)throw new Error(`The right-hand id [${t}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);const a={lhsId:e,lhsDir:r,lhsInto:i,lhsGroup:g,rhsId:t,rhsDir:s,rhsInto:f,rhsGroup:d,title:h};this.edges.push(a);const o=this.nodes.get(e),u=this.nodes.get(t);o&&u&&(o.edges.push(this.edges[this.edges.length-1]),u.edges.push(this.edges[this.edges.length-1]))}getEdges(){return this.edges}addLayoutHint(e){if(e.members.length<2)throw new Error(`An align directive requires at least two members; got ${e.members.length}`);const t=new Set;e.members.forEach(r=>{if(this.registeredIds.get(r)!=="node")throw new Error(`align ${e.direction} references [${r}], which is not a service or junction`);if(t.has(r))throw new Error(`align ${e.direction} lists [${r}] more than once`);t.add(r)}),this.layoutHints.push(e)}getLayoutHints(){return this.layoutHints}getDataStructures(){if(this.dataStructures===void 0){const e=new Map,t=new Map;for(const[g,d]of this.nodes.entries()){const h=new Map;for(const n of d.edges){const c=this.getNode(n.lhsId)?.in,a=this.getNode(n.rhsId)?.in;if(c&&a&&c!==a){const o=Pe(n.lhsDir,n.rhsDir);o!=="bend"&&e.set(U(c,a),o)}if(n.lhsId===g){const o=N(n.lhsDir,n.rhsDir);o&&h.set(o,n.rhsId)}else{const o=N(n.rhsDir,n.lhsDir);o&&h.set(o,n.lhsId)}}t.set(g,h)}const r=new Set,s=new Set(t.keys()),i=l(g=>{const d=new Map([[g,[0,0]]]),h=[g];for(;h.length>0;){const n=h.shift();if(n){r.add(n),s.delete(n);const c=t.get(n);if(!c)throw new Error(`BFS error: adjacency list for id ${n} not found. Please report this as a bug.`);const a=d.get(n);if(!a)throw new Error(`BFS error: position for id ${n} not found in spatial map. Please report this as a bug.`);const[o,u]=a;c.forEach((y,m)=>{r.has(y)||(d.set(y,ze([o,u],m)),h.push(y))})}}return d},"BFS"),f=[];for(;s.size>0;){const g=s.values().next().value;f.push(i(g))}this.dataStructures={adjList:t,spatialMaps:f,groupAlignments:e}}return this.dataStructures}setElementForId(e,t){this.elements.set(e,t)}getElementById(e){return this.elements.get(e)}getConfig(){return ve({...je,...be().architecture})}getConfigField(e){return this.getConfig()[e]}},Xe=l((e,t)=>{he(e,t),e.groups.map(r=>t.addGroup(r)),e.services.map(r=>t.addService({...r,type:"service"})),e.junctions.map(r=>t.addJunction({...r,type:"junction"})),e.edges.map(r=>t.addEdge(r)),e.alignments?.map(r=>t.addLayoutHint({direction:r.direction,members:[...r.members]}))},"populateDb"),re={parser:{yy:void 0},parse:l(async e=>{const t=await Te("architecture",e);K.debug(t);const r=re.parser?.yy;if(!(r instanceof te))throw new Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Xe(t,r)},"parse")},Ye=l(e=>`
2
2
  .edge {
3
3
  stroke-width: ${e.archEdgeWidth};
4
4
  stroke: ${e.archEdgeColor};
@@ -1 +1 @@
1
- import"./percentages-BXMCSKIN-BBr7lX_m.js";import"../datalayer-app-main.js";import"./JupyterLexicalExtension-BUzQSBg9.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-B9M8NqG2.js";import"./index-QUGTBUbz.js";import"./hoverbox-CStlKQWE.js";import"./index-CzDD-mUF.js";import"./index-B9R5Oy-_.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-ZTQsAovp.js";import"./d3-color-Jd8hXty2.js";import"./dist-Frc5TvpU.js";import"./index-BaRoLDk0.js";import"./RestartIcon-DvpOf5Mf.js";import"./LexicalToolRegistry-CxKoI0Fi.js";import"./extends-CF3RwP-h.js";import"./index-BWeXDhSd.js";import"./index-DoBkwclg.js";var e={paste:"Yapışdır",pasteAsPlaintext:"Düz mətn kimi yapışdırın",pasteCharts:"Diaqramları yapışdırın",selectAll:"Hamısını seç",multiSelect:"Seçimə element əlavə edin",moveCanvas:"Kanvası köçürün",cut:"Kəs",copy:"Kopyala",copyAsPng:"PNG olaraq panoya kopyala",copyAsSvg:"SVG olaraq panoya kopyala",copyText:"Mətn olaraq panoya kopyala",copySource:"",convertToCode:"",bringForward:"Önə daşı",sendToBack:"Geriyə göndərin",bringToFront:"Önə gətirin",sendBackward:"Geriyə göndərin",delete:"Sil",copyStyles:"Stilləri kopyalayın",pasteStyles:"Stilləri yapışdırın",stroke:"Strok rəngi",background:"Arxa fon",fill:"Doldur",strokeWidth:"Strok eni",strokeStyle:"Strok stili",strokeStyle_solid:"Solid",strokeStyle_dashed:"Kəsik",strokeStyle_dotted:"Nöqtəli",sloppiness:"Səliqəsizlik",opacity:"Şəffaflıq",textAlign:"Mətni uyğunlaşdır",edges:"Kənarlar",sharp:"Kəskin",round:"Dəyirmi",arrowheads:"Ox ucları",arrowhead_none:"Heç biri",arrowhead_arrow:"Ox",arrowhead_bar:"Çubuq",arrowhead_circle:"",arrowhead_circle_outline:"",arrowhead_triangle:"Üçbucaq",arrowhead_triangle_outline:"",arrowhead_diamond:"",arrowhead_diamond_outline:"",fontSize:"Şrift ölçüsü",fontFamily:"Şrift qrupu",addWatermark:'"Made with Excalidraw" əlavə et',handDrawn:"Əllə çəkilmiş",normal:"Normal",code:"Kod",small:"Kiçik",medium:"Orta",large:"Böyük",veryLarge:"Çox böyük",solid:"Solid",hachure:"Ştrix",zigzag:"Ziqzaq",crossHatch:"Çarpaz dəlik",thin:"İncə",bold:"Qalın",left:"Sol",center:"Mərkəz",right:"Sağ",extraBold:"Ekstra qalın",architect:"Memar",artist:"Rəssam",cartoonist:"Karikaturaçı",fileTitle:"Fayl adı",colorPicker:"Rəng seçən",canvasColors:"Kanvas üzərində istifadə olunur",canvasBackground:"Kanvas arxa fonu",drawingCanvas:"Kanvas çəkmək",layers:"Qatlar",actions:"Hərəkətlər",language:"Dil",liveCollaboration:"Canlı əməkdaşlıq...",duplicateSelection:"Dublikat",untitled:"Başlıqsız",name:"Ad",yourName:"Adınız",madeWithExcalidraw:"Excalidraw ilə hazırlanmışdır",group:"Qrup şəklində seçim",ungroup:"Qrupsuz seçim",collaborators:"",showGrid:"",addToLibrary:"",removeFromLibrary:"",libraryLoadingMessage:"",libraries:"",loadingScene:"",align:"",alignTop:"",alignBottom:"",alignLeft:"",alignRight:"",centerVertically:"",centerHorizontally:"",distributeHorizontally:"",distributeVertically:"",flipHorizontal:"",flipVertical:"",viewMode:"",share:"",showStroke:"",showBackground:"",toggleTheme:"",personalLib:"",excalidrawLib:"",decreaseFontSize:"",increaseFontSize:"",unbindText:"",bindText:"",createContainerFromText:"",link:{edit:"",editEmbed:"",create:"",createEmbed:"",label:"",labelEmbed:"",empty:""},lineEditor:{edit:"",exit:""},elementLock:{lock:"",unlock:"",lockAll:"",unlockAll:""},statusPublished:"",sidebarLock:"",selectAllElementsInFrame:"",removeAllElementsFromFrame:"",eyeDropper:"",textToDiagram:"",prompt:""},a={noItems:"",hint_emptyLibrary:"",hint_emptyPrivateLibrary:""},r={clearReset:"",exportJSON:"",exportImage:"",export:"",copyToClipboard:"",save:"",saveAs:"",load:"",getShareableLink:"",close:"",selectLanguage:"",scrollBackToContent:"",zoomIn:"",zoomOut:"",resetZoom:"",menu:"",done:"",edit:"",undo:"",redo:"",resetLibrary:"",createNewRoom:"",fullScreen:"",darkMode:"",lightMode:"",zenMode:"",objectsSnapMode:"",exitZenMode:"",cancel:"",clear:"",remove:"",embed:"",publishLibrary:"",submit:"",confirm:"",embeddableInteractionButton:""},o={clearReset:"",couldNotCreateShareableLink:"",couldNotCreateShareableLinkTooBig:"",couldNotLoadInvalidFile:"",importBackendFailed:"",cannotExportEmptyCanvas:"",couldNotCopyToClipboard:"",decryptFailed:"",uploadedSecurly:"",loadSceneOverridePrompt:"",collabStopOverridePrompt:"",errorAddingToLibrary:"",errorRemovingFromLibrary:"",confirmAddLibrary:"",imageDoesNotContainScene:"",cannotRestoreFromImage:"",invalidSceneUrl:"",resetLibrary:"",removeItemsFromsLibrary:"",invalidEncryptionKey:"",collabOfflineWarning:""},t={unsupportedFileType:"",imageInsertError:"",fileTooBig:"",svgImageInsertError:"",failedToFetchImage:"",invalidSVGString:"",cannotResolveCollabServer:"",importLibraryError:"",collabSaveFailed:"",collabSaveFailed_sizeExceeded:"",imageToolNotSupported:"",brave_measure_text_error:{line1:"",line2:"",line3:"",line4:""},libraryElementTypeError:{embeddable:"",iframe:"",image:""},asyncPasteFailedOnRead:"",asyncPasteFailedOnParse:"",copyToSystemClipboardFailed:""},i={selection:"",image:"",rectangle:"",diamond:"",ellipse:"",arrow:"",line:"",freedraw:"",text:"",library:"",lock:"",penMode:"",link:"",eraser:"",frame:"",magicframe:"",embeddable:"",laser:"",hand:"",extraTools:"",mermaidToExcalidraw:"",magicSettings:""},l={canvasActions:"",selectedShapeActions:"",shapes:""},n={canvasPanning:"",linearElement:"",freeDraw:"",text:"",embeddable:"",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:"",canvasTooBig:"",canvasTooBigTip:""},d={headingMain:"",clearCanvasMessage:"",clearCanvasCaveat:"",trackedToSentry:"",openIssueMessage:"",sceneContent:""},u={desc_intro:"",desc_privacy:"",button_startSession:"",button_stopSession:"",desc_inProgressIntro:"",desc_shareLink:"",desc_exitSession:"",shareTitle:""},c={title:""},m={disk_title:"",disk_details:"",disk_button:"",link_title:"",link_details:"",link_button:"",excalidrawplus_description:"",excalidrawplus_button:"",excalidrawplus_exportError:""},p={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:""},g={title:""},b={title:"",itemName:"",authorName:"",githubUsername:"",twitterUsername:"",libraryName:"",libraryDesc:"",website:"",placeholder:{authorName:"",libraryName:"",libraryDesc:"",githubHandle:"",twitterHandle:"",website:""},errors:{required:"",website:""},noteDescription:"",noteGuidelines:"",noteLicense:"",noteItems:"",atleastOneLibItem:"",republishWarning:""},y={title:"",content:""},x={resetLibrary:"",removeItemsFromLib:""},h={header:"",label:{withBackground:"",onlySelected:"",darkMode:"",embedScene:"",scale:"",padding:""},tooltip:{embedScene:""},title:{exportToPng:"",exportToSvg:"",copyPngToClipboard:""},button:{exportToPng:"",exportToSvg:"",copyPngToClipboard:""}},k={tooltip:"",link:""},S={angle:"",element:"",elements:"",height:"",scene:"",selected:"",storage:"",title:"",total:"",version:"",versionCopy:"",versionNotAvailable:"",width:""},v={addedToLibrary:"",copyStyles:"",copyToClipboard:"",copyToClipboardAsPng:"",fileSaved:"",fileSavedToFilename:"",canvas:"",selection:"",pasteAsSingleElement:"",unableToEmbed:"",unrecognizedLinkFormat:""},F={transparent:"",black:"",white:"",red:"",pink:"",grape:"",violet:"",gray:"",blue:"",cyan:"",teal:"",green:"",yellow:"",orange:"",bronze:""},w={app:{center_heading:"",center_heading_plus:"",menuHint:""},defaults:{menuHint:"",center_heading:"",toolbarHint:"",helpHint:""}},E={mostUsedCustomColors:"",colors:"",shades:"",hexCode:"",noShades:""},T={action:{exportToImage:{title:"",button:"",description:""},saveToDisk:{title:"",button:"",description:""},excalidrawPlus:{title:"",button:"",description:""}},modal:{loadFromFile:{title:"",button:"",description:""},shareableLink:{title:"",button:"",description:""}}},_={title:"",button:"",description:"",syntax:"",preview:""},re={labels:e,library:a,buttons:r,alerts:o,errors:t,toolBar:i,headings:l,hints:n,canvasError:s,errorSplash:d,roomDialog:u,errorDialog:c,exportDialog:m,helpDialog:p,clearCanvasDialog:g,publishDialog:b,publishSuccessDialog:y,confirmDialog:x,imageExportDialog:h,encrypted:k,stats:S,toast:v,colors:F,welcomeScreen:w,colorPicker:E,overwriteConfirm:T,mermaid:_};export{o as alerts,r as buttons,s as canvasError,g as clearCanvasDialog,E as colorPicker,F as colors,x as confirmDialog,re as default,k as encrypted,c as errorDialog,d as errorSplash,t as errors,m as exportDialog,l as headings,p as helpDialog,n as hints,h as imageExportDialog,e as labels,a as library,_ as mermaid,T as overwriteConfirm,b as publishDialog,y as publishSuccessDialog,u as roomDialog,S as stats,v as toast,i as toolBar,w as welcomeScreen};
1
+ import"./percentages-BXMCSKIN-PE_Zr0z2.js";import"../datalayer-app-main.js";import"./JupyterLexicalExtension-BGj3tSI6.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-DePHyrJp.js";import"./index-QUGTBUbz.js";import"./hoverbox-CStlKQWE.js";import"./index-CzDD-mUF.js";import"./index-B9R5Oy-_.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-ZTQsAovp.js";import"./d3-color-Jd8hXty2.js";import"./dist-Frc5TvpU.js";import"./index-BaRoLDk0.js";import"./RestartIcon-DvpOf5Mf.js";import"./LexicalToolRegistry-CxKoI0Fi.js";import"./extends-CF3RwP-h.js";import"./index-BWeXDhSd.js";import"./index-DoBkwclg.js";var e={paste:"Yapışdır",pasteAsPlaintext:"Düz mətn kimi yapışdırın",pasteCharts:"Diaqramları yapışdırın",selectAll:"Hamısını seç",multiSelect:"Seçimə element əlavə edin",moveCanvas:"Kanvası köçürün",cut:"Kəs",copy:"Kopyala",copyAsPng:"PNG olaraq panoya kopyala",copyAsSvg:"SVG olaraq panoya kopyala",copyText:"Mətn olaraq panoya kopyala",copySource:"",convertToCode:"",bringForward:"Önə daşı",sendToBack:"Geriyə göndərin",bringToFront:"Önə gətirin",sendBackward:"Geriyə göndərin",delete:"Sil",copyStyles:"Stilləri kopyalayın",pasteStyles:"Stilləri yapışdırın",stroke:"Strok rəngi",background:"Arxa fon",fill:"Doldur",strokeWidth:"Strok eni",strokeStyle:"Strok stili",strokeStyle_solid:"Solid",strokeStyle_dashed:"Kəsik",strokeStyle_dotted:"Nöqtəli",sloppiness:"Səliqəsizlik",opacity:"Şəffaflıq",textAlign:"Mətni uyğunlaşdır",edges:"Kənarlar",sharp:"Kəskin",round:"Dəyirmi",arrowheads:"Ox ucları",arrowhead_none:"Heç biri",arrowhead_arrow:"Ox",arrowhead_bar:"Çubuq",arrowhead_circle:"",arrowhead_circle_outline:"",arrowhead_triangle:"Üçbucaq",arrowhead_triangle_outline:"",arrowhead_diamond:"",arrowhead_diamond_outline:"",fontSize:"Şrift ölçüsü",fontFamily:"Şrift qrupu",addWatermark:'"Made with Excalidraw" əlavə et',handDrawn:"Əllə çəkilmiş",normal:"Normal",code:"Kod",small:"Kiçik",medium:"Orta",large:"Böyük",veryLarge:"Çox böyük",solid:"Solid",hachure:"Ştrix",zigzag:"Ziqzaq",crossHatch:"Çarpaz dəlik",thin:"İncə",bold:"Qalın",left:"Sol",center:"Mərkəz",right:"Sağ",extraBold:"Ekstra qalın",architect:"Memar",artist:"Rəssam",cartoonist:"Karikaturaçı",fileTitle:"Fayl adı",colorPicker:"Rəng seçən",canvasColors:"Kanvas üzərində istifadə olunur",canvasBackground:"Kanvas arxa fonu",drawingCanvas:"Kanvas çəkmək",layers:"Qatlar",actions:"Hərəkətlər",language:"Dil",liveCollaboration:"Canlı əməkdaşlıq...",duplicateSelection:"Dublikat",untitled:"Başlıqsız",name:"Ad",yourName:"Adınız",madeWithExcalidraw:"Excalidraw ilə hazırlanmışdır",group:"Qrup şəklində seçim",ungroup:"Qrupsuz seçim",collaborators:"",showGrid:"",addToLibrary:"",removeFromLibrary:"",libraryLoadingMessage:"",libraries:"",loadingScene:"",align:"",alignTop:"",alignBottom:"",alignLeft:"",alignRight:"",centerVertically:"",centerHorizontally:"",distributeHorizontally:"",distributeVertically:"",flipHorizontal:"",flipVertical:"",viewMode:"",share:"",showStroke:"",showBackground:"",toggleTheme:"",personalLib:"",excalidrawLib:"",decreaseFontSize:"",increaseFontSize:"",unbindText:"",bindText:"",createContainerFromText:"",link:{edit:"",editEmbed:"",create:"",createEmbed:"",label:"",labelEmbed:"",empty:""},lineEditor:{edit:"",exit:""},elementLock:{lock:"",unlock:"",lockAll:"",unlockAll:""},statusPublished:"",sidebarLock:"",selectAllElementsInFrame:"",removeAllElementsFromFrame:"",eyeDropper:"",textToDiagram:"",prompt:""},a={noItems:"",hint_emptyLibrary:"",hint_emptyPrivateLibrary:""},r={clearReset:"",exportJSON:"",exportImage:"",export:"",copyToClipboard:"",save:"",saveAs:"",load:"",getShareableLink:"",close:"",selectLanguage:"",scrollBackToContent:"",zoomIn:"",zoomOut:"",resetZoom:"",menu:"",done:"",edit:"",undo:"",redo:"",resetLibrary:"",createNewRoom:"",fullScreen:"",darkMode:"",lightMode:"",zenMode:"",objectsSnapMode:"",exitZenMode:"",cancel:"",clear:"",remove:"",embed:"",publishLibrary:"",submit:"",confirm:"",embeddableInteractionButton:""},o={clearReset:"",couldNotCreateShareableLink:"",couldNotCreateShareableLinkTooBig:"",couldNotLoadInvalidFile:"",importBackendFailed:"",cannotExportEmptyCanvas:"",couldNotCopyToClipboard:"",decryptFailed:"",uploadedSecurly:"",loadSceneOverridePrompt:"",collabStopOverridePrompt:"",errorAddingToLibrary:"",errorRemovingFromLibrary:"",confirmAddLibrary:"",imageDoesNotContainScene:"",cannotRestoreFromImage:"",invalidSceneUrl:"",resetLibrary:"",removeItemsFromsLibrary:"",invalidEncryptionKey:"",collabOfflineWarning:""},t={unsupportedFileType:"",imageInsertError:"",fileTooBig:"",svgImageInsertError:"",failedToFetchImage:"",invalidSVGString:"",cannotResolveCollabServer:"",importLibraryError:"",collabSaveFailed:"",collabSaveFailed_sizeExceeded:"",imageToolNotSupported:"",brave_measure_text_error:{line1:"",line2:"",line3:"",line4:""},libraryElementTypeError:{embeddable:"",iframe:"",image:""},asyncPasteFailedOnRead:"",asyncPasteFailedOnParse:"",copyToSystemClipboardFailed:""},i={selection:"",image:"",rectangle:"",diamond:"",ellipse:"",arrow:"",line:"",freedraw:"",text:"",library:"",lock:"",penMode:"",link:"",eraser:"",frame:"",magicframe:"",embeddable:"",laser:"",hand:"",extraTools:"",mermaidToExcalidraw:"",magicSettings:""},l={canvasActions:"",selectedShapeActions:"",shapes:""},n={canvasPanning:"",linearElement:"",freeDraw:"",text:"",embeddable:"",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:"",canvasTooBig:"",canvasTooBigTip:""},d={headingMain:"",clearCanvasMessage:"",clearCanvasCaveat:"",trackedToSentry:"",openIssueMessage:"",sceneContent:""},u={desc_intro:"",desc_privacy:"",button_startSession:"",button_stopSession:"",desc_inProgressIntro:"",desc_shareLink:"",desc_exitSession:"",shareTitle:""},c={title:""},m={disk_title:"",disk_details:"",disk_button:"",link_title:"",link_details:"",link_button:"",excalidrawplus_description:"",excalidrawplus_button:"",excalidrawplus_exportError:""},p={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:""},g={title:""},b={title:"",itemName:"",authorName:"",githubUsername:"",twitterUsername:"",libraryName:"",libraryDesc:"",website:"",placeholder:{authorName:"",libraryName:"",libraryDesc:"",githubHandle:"",twitterHandle:"",website:""},errors:{required:"",website:""},noteDescription:"",noteGuidelines:"",noteLicense:"",noteItems:"",atleastOneLibItem:"",republishWarning:""},y={title:"",content:""},x={resetLibrary:"",removeItemsFromLib:""},h={header:"",label:{withBackground:"",onlySelected:"",darkMode:"",embedScene:"",scale:"",padding:""},tooltip:{embedScene:""},title:{exportToPng:"",exportToSvg:"",copyPngToClipboard:""},button:{exportToPng:"",exportToSvg:"",copyPngToClipboard:""}},k={tooltip:"",link:""},S={angle:"",element:"",elements:"",height:"",scene:"",selected:"",storage:"",title:"",total:"",version:"",versionCopy:"",versionNotAvailable:"",width:""},v={addedToLibrary:"",copyStyles:"",copyToClipboard:"",copyToClipboardAsPng:"",fileSaved:"",fileSavedToFilename:"",canvas:"",selection:"",pasteAsSingleElement:"",unableToEmbed:"",unrecognizedLinkFormat:""},F={transparent:"",black:"",white:"",red:"",pink:"",grape:"",violet:"",gray:"",blue:"",cyan:"",teal:"",green:"",yellow:"",orange:"",bronze:""},w={app:{center_heading:"",center_heading_plus:"",menuHint:""},defaults:{menuHint:"",center_heading:"",toolbarHint:"",helpHint:""}},E={mostUsedCustomColors:"",colors:"",shades:"",hexCode:"",noShades:""},T={action:{exportToImage:{title:"",button:"",description:""},saveToDisk:{title:"",button:"",description:""},excalidrawPlus:{title:"",button:"",description:""}},modal:{loadFromFile:{title:"",button:"",description:""},shareableLink:{title:"",button:"",description:""}}},_={title:"",button:"",description:"",syntax:"",preview:""},re={labels:e,library:a,buttons:r,alerts:o,errors:t,toolBar:i,headings:l,hints:n,canvasError:s,errorSplash:d,roomDialog:u,errorDialog:c,exportDialog:m,helpDialog:p,clearCanvasDialog:g,publishDialog:b,publishSuccessDialog:y,confirmDialog:x,imageExportDialog:h,encrypted:k,stats:S,toast:v,colors:F,welcomeScreen:w,colorPicker:E,overwriteConfirm:T,mermaid:_};export{o as alerts,r as buttons,s as canvasError,g as clearCanvasDialog,E as colorPicker,F as colors,x as confirmDialog,re as default,k as encrypted,c as errorDialog,d as errorSplash,t as errors,m as exportDialog,l as headings,p as helpDialog,n as hints,h as imageExportDialog,e as labels,a as library,_ as mermaid,T as overwriteConfirm,b as publishDialog,y as publishSuccessDialog,u as roomDialog,S as stats,v as toast,i as toolBar,w as welcomeScreen};