@datalayer/agent-runtimes 1.5.102 → 1.5.106

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 (438) hide show
  1. package/dist-embed/chunks/AgentInspector-CuvRXcQ7.js +1 -0
  2. package/dist-embed/chunks/{AgentInspectorDialog-Cf8jT6kR.js → AgentInspectorDialog-CXZGyBXE.js} +1 -1
  3. package/dist-embed/chunks/{CellSidebarExtension-9Xkl4nS1.js → CellSidebarExtension-BMT21AEe.js} +16 -16
  4. package/dist-embed/chunks/{DeckComponent-LPAk473I.js → DeckComponent-CDcvO2c7.js} +2 -2
  5. package/dist-embed/chunks/{DocumentView-CSX_hWLV.js → DocumentView-Bd505ec3.js} +1 -1
  6. package/dist-embed/chunks/EphemeralDocument-Cb738Fb7.js +1 -0
  7. package/dist-embed/chunks/{EphemeralNotebook-C3e2FrSq.js → EphemeralNotebook-ayRs87hn.js} +1 -1
  8. package/dist-embed/chunks/ExcalidrawComponent-zLN6lMMh.js +1 -0
  9. package/dist-embed/chunks/ExcalidrawModal-DmayKvhz.js +1 -0
  10. package/dist-embed/chunks/{JupyterLexicalExtension-Cq2BuRs0.js → JupyterLexicalExtension-DS8J9r_J.js} +5 -5
  11. package/dist-embed/chunks/{KernelVariables-BmWOn-n_.js → KernelVariables-JJah7mez.js} +1 -1
  12. package/dist-embed/chunks/NotebookToolSurfaces-Sjfasvqp.js +1 -0
  13. package/dist-embed/chunks/{NotebookView-yvVgAED6.js → NotebookView-BF9IDoeS.js} +1 -1
  14. package/dist-embed/chunks/{Output-DF1wzbCD.js → Output-UPeDwjyI.js} +1 -1
  15. package/dist-embed/chunks/{SandboxDetailsDialog-Bue8qhTm.js → SandboxDetailsDialog-BbFzOjmh.js} +1 -1
  16. package/dist-embed/chunks/WidgetVariableView-D4QMzgOL.js +1 -0
  17. package/dist-embed/chunks/{YouTubePlugin-aO-jWjdh.js → YouTubePlugin-C7CGtLzz.js} +1 -1
  18. package/dist-embed/chunks/abnfDiagram-VCTEODGH-B71U5XYF.js +1 -0
  19. package/dist-embed/chunks/abnfDiagram-VCTEODGH-Bc-fKn8l.js +1 -0
  20. package/dist-embed/chunks/abnfDiagram-VCTEODGH-HXaofwo9.js +1 -0
  21. package/dist-embed/chunks/advancedFormat-CshdkaWz.js +1 -0
  22. package/dist-embed/chunks/{ar-SA-G6X2FPQ2-DZ6ta9d0.js → ar-SA-G6X2FPQ2-CCIrNclv.js} +1 -1
  23. package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-CFyAMJIx.js → architectureDiagram-5GKGNRK7-BQB0U0rT.js} +2 -2
  24. package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-BbVwTk8b.js → architectureDiagram-5GKGNRK7-C2AE1F2T.js} +2 -2
  25. package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-DeCj6zMe.js → architectureDiagram-5GKGNRK7-CjuFI4z9.js} +2 -2
  26. package/dist-embed/chunks/az-AZ-76LH7QW2-CSTNZhVp.js +1 -0
  27. package/dist-embed/chunks/{bg-BG-XCXSNQG7-B7QcVEVY.js → bg-BG-XCXSNQG7-DsDH3Vku.js} +1 -1
  28. package/dist-embed/chunks/{blockDiagram-868be97b-CfRaagn_.js → blockDiagram-868be97b-B68KiGkE.js} +3 -3
  29. package/dist-embed/chunks/{blockDiagram-I7D4REHJ-BjRmv4QH.js → blockDiagram-I7D4REHJ-4XoG2wPO.js} +2 -2
  30. package/dist-embed/chunks/{blockDiagram-I7D4REHJ-SufaJtAi.js → blockDiagram-I7D4REHJ-BGPlI9Uq.js} +2 -2
  31. package/dist-embed/chunks/{blockDiagram-I7D4REHJ-kguVnun5.js → blockDiagram-I7D4REHJ-Cd5dHGkJ.js} +2 -2
  32. package/dist-embed/chunks/{bn-BD-2XOGV67Q-TxN1ubr7.js → bn-BD-2XOGV67Q-CGa5jk8k.js} +1 -1
  33. package/dist-embed/chunks/{c4Diagram-3f4bdde3-FyOk3LSs.js → c4Diagram-3f4bdde3-BuW3MIkw.js} +2 -2
  34. package/dist-embed/chunks/{c4Diagram-7LVT6UL2-SgQrn2PO.js → c4Diagram-7LVT6UL2-DCfGVCNK.js} +2 -2
  35. package/dist-embed/chunks/{c4Diagram-7LVT6UL2-Cf2_xw9_.js → c4Diagram-7LVT6UL2-DgPxihhe.js} +2 -2
  36. package/dist-embed/chunks/{c4Diagram-7LVT6UL2-D3Vjz3Z8.js → c4Diagram-7LVT6UL2-SYqo_8ln.js} +2 -2
  37. package/dist-embed/chunks/{ca-ES-6MX7JW3Y-Dqf9cvaK.js → ca-ES-6MX7JW3Y-DPni6_r-.js} +1 -1
  38. package/dist-embed/chunks/channel-BkDTnYd-.js +1 -0
  39. package/dist-embed/chunks/{chunk-2Q5K7J3B-BJrhmygH.js → chunk-2Q5K7J3B-C6_NDlXz.js} +1 -1
  40. package/dist-embed/chunks/{chunk-2Q5K7J3B-DuPgZFdB.js → chunk-2Q5K7J3B-CXYPY0Ns.js} +1 -1
  41. package/dist-embed/chunks/{chunk-2Q5K7J3B-DBdUm--2.js → chunk-2Q5K7J3B-DAZwxp62.js} +1 -1
  42. package/dist-embed/chunks/{chunk-5VM5RSS4-C1Bpa3VF.js → chunk-5VM5RSS4-BE7Xw1qR.js} +1 -1
  43. package/dist-embed/chunks/{chunk-5VM5RSS4-B-UBqvd2.js → chunk-5VM5RSS4-CkLbaiHB.js} +1 -1
  44. package/dist-embed/chunks/{chunk-5VM5RSS4-nQugzoqo.js → chunk-5VM5RSS4-lyh9Xnd2.js} +1 -1
  45. package/dist-embed/chunks/{chunk-F27PBJKO-D3zJwrkg.js → chunk-F27PBJKO-C3nbzFWn.js} +1 -1
  46. package/dist-embed/chunks/{chunk-F27PBJKO-DYiXXgT1.js → chunk-F27PBJKO-Db7_X2ml.js} +1 -1
  47. package/dist-embed/chunks/{chunk-F27PBJKO-MI-KHY-9.js → chunk-F27PBJKO-DgaijeLE.js} +1 -1
  48. package/dist-embed/chunks/{chunk-IMKFNOWR-i4q8sDDB.js → chunk-IMKFNOWR-C0voe75K.js} +1 -1
  49. package/dist-embed/chunks/{chunk-IMKFNOWR-BbylDqs_.js → chunk-IMKFNOWR-CGh3mc7U.js} +1 -1
  50. package/dist-embed/chunks/{chunk-IMKFNOWR-DJk_fAZn.js → chunk-IMKFNOWR-wq8-ajoP.js} +1 -1
  51. package/dist-embed/chunks/{chunk-JWPE2WC7-BSzyfwPR.js → chunk-JWPE2WC7-BnJZ2J3A.js} +1 -1
  52. package/dist-embed/chunks/{chunk-JWPE2WC7-8ggfUh7n.js → chunk-JWPE2WC7-C7Vh66mu.js} +1 -1
  53. package/dist-embed/chunks/{chunk-JWPE2WC7-D1PH2kGj.js → chunk-JWPE2WC7-IsI16_x9.js} +1 -1
  54. package/dist-embed/chunks/{chunk-POPQ4Y6H-DhZnEisk.js → chunk-POPQ4Y6H-C74YP19P.js} +1 -1
  55. package/dist-embed/chunks/{chunk-POPQ4Y6H-pegurE5S.js → chunk-POPQ4Y6H-Jfdu8NYy.js} +1 -1
  56. package/dist-embed/chunks/{chunk-POPQ4Y6H-CKubmyGa.js → chunk-POPQ4Y6H-igzMuKdy.js} +1 -1
  57. package/dist-embed/chunks/{chunk-SVP7TREG-BF112NUO.js → chunk-SVP7TREG-BRTUczs-.js} +1 -1
  58. package/dist-embed/chunks/{chunk-SVP7TREG-D5yRz6xm.js → chunk-SVP7TREG-D5GVP8mx.js} +1 -1
  59. package/dist-embed/chunks/{chunk-SVP7TREG-CoZRhamu.js → chunk-SVP7TREG-V_21qG9f.js} +1 -1
  60. package/dist-embed/chunks/{chunk-TICWLB2K-XF3ekUig.js → chunk-TICWLB2K-C64kdJiT.js} +1 -1
  61. package/dist-embed/chunks/{chunk-TICWLB2K-v9-jDBp6.js → chunk-TICWLB2K-COF4m2Q-.js} +1 -1
  62. package/dist-embed/chunks/{chunk-TICWLB2K-Bs5ffYyR.js → chunk-TICWLB2K-CmvMmjES.js} +1 -1
  63. package/dist-embed/chunks/{chunk-XXDRQBXY-D_FJqGi2.js → chunk-XXDRQBXY-CfGL0WH9.js} +1 -1
  64. package/dist-embed/chunks/{chunk-XXDRQBXY-l6VvHymR.js → chunk-XXDRQBXY-ClqYjHLS.js} +1 -1
  65. package/dist-embed/chunks/{chunk-XXDRQBXY-D9b9c_ic.js → chunk-XXDRQBXY-p7YSmJfy.js} +1 -1
  66. package/dist-embed/chunks/classDiagram-ZZMXUADV-2HYBPww6.js +1 -0
  67. package/dist-embed/chunks/classDiagram-ZZMXUADV-BLOgen3q.js +1 -0
  68. package/dist-embed/chunks/classDiagram-ZZMXUADV-DanFMb8A.js +1 -0
  69. package/dist-embed/chunks/classDiagram-f62afe4f-CNTk_RA5.js +2 -0
  70. package/dist-embed/chunks/classDiagram-v2-604399ef-BPXwuOhe.js +2 -0
  71. package/dist-embed/chunks/classDiagram-v2-VYDZK3BY-2HYBPww6.js +1 -0
  72. package/dist-embed/chunks/classDiagram-v2-VYDZK3BY-BLOgen3q.js +1 -0
  73. package/dist-embed/chunks/classDiagram-v2-VYDZK3BY-DanFMb8A.js +1 -0
  74. package/dist-embed/chunks/cose-bilkent-JH36ORCC-BMDoRbpo.js +1 -0
  75. package/dist-embed/chunks/cose-bilkent-JH36ORCC-C2S2DIKI.js +1 -0
  76. package/dist-embed/chunks/cose-bilkent-JH36ORCC-DSHzx2BI.js +1 -0
  77. package/dist-embed/chunks/{createText-aed3d8b3-Dw977TwJ.js → createText-aed3d8b3-BxsX7KcT.js} +1 -1
  78. package/dist-embed/chunks/{cs-CZ-2BRQDIVT-CwlCWt4T.js → cs-CZ-2BRQDIVT-C2VJoA4e.js} +1 -1
  79. package/dist-embed/chunks/cynefinDiagram-5FMLGOSQ-CXpjlIcM.js +62 -0
  80. package/dist-embed/chunks/cynefinDiagram-5FMLGOSQ-DNkIHI2P.js +62 -0
  81. package/dist-embed/chunks/cynefinDiagram-5FMLGOSQ-Und8rlmR.js +62 -0
  82. package/dist-embed/chunks/d3-color-Jd8hXty2.js +1 -0
  83. package/dist-embed/chunks/d3-hierarchy-Cx6senVY.js +1 -0
  84. package/dist-embed/chunks/d3-interpolate-BVJucgkN.js +1 -0
  85. package/dist-embed/chunks/d3-scale-B-wnA6MO.js +1 -0
  86. package/dist-embed/chunks/d3-scale-chromatic-BM1YEV1K.js +1 -0
  87. package/dist-embed/chunks/{da-DK-5WZEPLOC-BYQLzbDz.js → da-DK-5WZEPLOC-B-8uCnDZ.js} +1 -1
  88. package/dist-embed/chunks/{dagre-GXQ25YYZ-Bj78I_3y.js → dagre-GXQ25YYZ-B8HVheVA.js} +2 -2
  89. package/dist-embed/chunks/{dagre-GXQ25YYZ-BvxZGlAG.js → dagre-GXQ25YYZ-BLRf1T-i.js} +2 -2
  90. package/dist-embed/chunks/{dagre-GXQ25YYZ-BiceTC0E.js → dagre-GXQ25YYZ-DOA3t5IT.js} +2 -2
  91. package/dist-embed/chunks/dayjs.min-u3zuoSR8.js +1 -0
  92. package/dist-embed/chunks/{de-DE-XR44H4JA-CdWGWxSf.js → de-DE-XR44H4JA-mVAvUgBj.js} +1 -1
  93. package/dist-embed/chunks/{diagram-S7CK7UJ4-Cmb9Ykqm.js → diagram-S7CK7UJ4-D9c-d1DT.js} +2 -2
  94. package/dist-embed/chunks/{diagram-S7CK7UJ4-DMHeQr8F.js → diagram-S7CK7UJ4-DwDc_czt.js} +2 -2
  95. package/dist-embed/chunks/{diagram-S7CK7UJ4-a4FArSaJ.js → diagram-S7CK7UJ4-NIp8rRdr.js} +2 -2
  96. package/dist-embed/chunks/diagram-UQ7AKVKN-CZK18sap.js +41 -0
  97. package/dist-embed/chunks/diagram-UQ7AKVKN-DhMlTIH1.js +41 -0
  98. package/dist-embed/chunks/diagram-UQ7AKVKN-DtYHVrIv.js +41 -0
  99. package/dist-embed/chunks/{diagram-VSXAHHWV-D3lurhxI.js → diagram-VSXAHHWV-BbVAIuUE.js} +2 -2
  100. package/dist-embed/chunks/{diagram-VSXAHHWV-BsxdgIBU.js → diagram-VSXAHHWV-CClL-qVb.js} +2 -2
  101. package/dist-embed/chunks/{diagram-VSXAHHWV-BzwWsSpj.js → diagram-VSXAHHWV-CVuj7Wwr.js} +2 -2
  102. package/dist-embed/chunks/diagram-VX7I27RA-CHGaftMB.js +24 -0
  103. package/dist-embed/chunks/diagram-VX7I27RA-DUtes5TO.js +24 -0
  104. package/dist-embed/chunks/diagram-VX7I27RA-W9zdS7er.js +24 -0
  105. package/dist-embed/chunks/diagram-Z3DM3KII-CcvMwZF5.js +24 -0
  106. package/dist-embed/chunks/diagram-Z3DM3KII-JLzwAzwv.js +24 -0
  107. package/dist-embed/chunks/diagram-Z3DM3KII-nooaP3A_.js +24 -0
  108. package/dist-embed/chunks/ebnfDiagram-PWID7BFC-DwaCwxtV.js +1 -0
  109. package/dist-embed/chunks/ebnfDiagram-PWID7BFC-QUuH7KoJ.js +1 -0
  110. package/dist-embed/chunks/ebnfDiagram-PWID7BFC-paF78xx4.js +1 -0
  111. package/dist-embed/chunks/edges-b2856ca0-Cw6uMsAp.js +4 -0
  112. package/dist-embed/chunks/{el-GR-BZB4AONW-TO3tEZdB.js → el-GR-BZB4AONW-BdoQC7zI.js} +1 -1
  113. package/dist-embed/chunks/{erDiagram-5d81789a-D3blvZNR.js → erDiagram-5d81789a-DvA05QFt.js} +3 -3
  114. package/dist-embed/chunks/{erDiagram-RLTQ6QDP-HUP46o_S.js → erDiagram-RLTQ6QDP-B8yauwFZ.js} +5 -5
  115. package/dist-embed/chunks/{erDiagram-RLTQ6QDP-BvRjMgFJ.js → erDiagram-RLTQ6QDP-Bl7uSMrm.js} +5 -5
  116. package/dist-embed/chunks/{erDiagram-RLTQ6QDP-pCbnjfMk.js → erDiagram-RLTQ6QDP-DZBeHxcW.js} +5 -5
  117. package/dist-embed/chunks/{es-ES-U4NZUMDT-BKZIANpq.js → es-ES-U4NZUMDT-mSL14Hu6.js} +1 -1
  118. package/dist-embed/chunks/{eu-ES-A7QVB2H4-vz5ecl6y.js → eu-ES-A7QVB2H4-i8MVUvvA.js} +1 -1
  119. package/dist-embed/chunks/{fa-IR-HGAKTJCU-Dmmoro5p.js → fa-IR-HGAKTJCU-BfG5w5pm.js} +1 -1
  120. package/dist-embed/chunks/{fi-FI-Z5N7JZ37-4bWurBmp.js → fi-FI-Z5N7JZ37-CxjOtOw5.js} +1 -1
  121. package/dist-embed/chunks/{flowDb-185abca5-DzeO696Q.js → flowDb-185abca5-CZQPmzTd.js} +1 -1
  122. package/dist-embed/chunks/{flowDiagram-1629c991-BCS_QkN2.js → flowDiagram-1629c991-DVkQIanX.js} +3 -3
  123. package/dist-embed/chunks/{flowDiagram-HODETNUW-C7KqgwLg.js → flowDiagram-HODETNUW-B051mCrB.js} +3 -3
  124. package/dist-embed/chunks/{flowDiagram-HODETNUW-CObZVANE.js → flowDiagram-HODETNUW-CIxGkvY2.js} +3 -3
  125. package/dist-embed/chunks/{flowDiagram-HODETNUW-7NyW99NE.js → flowDiagram-HODETNUW-nx8wz3GE.js} +3 -3
  126. package/dist-embed/chunks/flowDiagram-v2-1d953310-BajQh2l6.js +1 -0
  127. package/dist-embed/chunks/{flowchart-elk-definition-6df44142-72x8aEiK.js → flowchart-elk-definition-6df44142-DVsdecvJ.js} +2 -2
  128. package/dist-embed/chunks/{fr-FR-RHASNOE6-QYoMYddl.js → fr-FR-RHASNOE6-Dx18-mdk.js} +1 -1
  129. package/dist-embed/chunks/{ganttDiagram-3b0b3873-BsGIi6q0.js → ganttDiagram-3b0b3873-B_Ze5xJT.js} +4 -4
  130. package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-Cm2jOWpZ.js → ganttDiagram-EL5Y4UJY-BNa2jv7L.js} +3 -3
  131. package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-Bmj6A7sI.js → ganttDiagram-EL5Y4UJY-DWOvMpi_.js} +3 -3
  132. package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-QZMrDtOa.js → ganttDiagram-EL5Y4UJY-Ix5W25h0.js} +3 -3
  133. package/dist-embed/chunks/gitGraphDiagram-WWUBYQGX-CY0V5PYj.js +106 -0
  134. package/dist-embed/chunks/gitGraphDiagram-WWUBYQGX-CieNMLLD.js +106 -0
  135. package/dist-embed/chunks/gitGraphDiagram-WWUBYQGX-DtTUInJx.js +106 -0
  136. package/dist-embed/chunks/{gitGraphDiagram-f01e8bc2-C5glz__6.js → gitGraphDiagram-f01e8bc2-B7CTdpxh.js} +2 -2
  137. package/dist-embed/chunks/{gl-ES-HMX3MZ6V-CuWi9MKI.js → gl-ES-HMX3MZ6V-D0gZC3Qs.js} +1 -1
  138. package/dist-embed/chunks/{he-IL-6SHJWFNN-CZ7rDY29.js → he-IL-6SHJWFNN-BpsgumHA.js} +1 -1
  139. package/dist-embed/chunks/{hi-IN-IWLTKZ5I-BOtn2GYM.js → hi-IN-IWLTKZ5I-1U7gawIv.js} +1 -1
  140. package/dist-embed/chunks/{hu-HU-A5ZG7DT2-Da2fd7BW.js → hu-HU-A5ZG7DT2-zY5nzegx.js} +1 -1
  141. package/dist-embed/chunks/{id-ID-SAP4L64H-DygGPsGR.js → id-ID-SAP4L64H-p8kr2CI9.js} +1 -1
  142. package/dist-embed/chunks/{index-CDGGINfN.js → index-4SXYvuYi.js} +1 -1
  143. package/dist-embed/chunks/{index-9bae90f3-C6Xh0qGL.js → index-9bae90f3-_IqcZYff.js} +1 -1
  144. package/dist-embed/chunks/{index-B6ISkj2i.js → index-B9_Wb9MN.js} +1 -1
  145. package/dist-embed/chunks/index-BWTYs63X.js +1 -0
  146. package/dist-embed/chunks/{index-DIoOWi0w.js → index-BbLfaxiL.js} +2 -2
  147. package/dist-embed/chunks/{index-CMna4RvT.js → index-BeDw56-P.js} +1 -1
  148. package/dist-embed/chunks/{index-DUtVEK_h.js → index-Bi_Lrakd.js} +55 -55
  149. package/dist-embed/chunks/index-BqnIBWZ9.js +35 -0
  150. package/dist-embed/chunks/index-C0jxnCf_.js +1 -0
  151. package/dist-embed/chunks/{index-Gy_uosvT.js → index-C6p1fI_l.js} +1 -1
  152. package/dist-embed/chunks/{index-e62XL6B3.js → index-C7Y6qb5P.js} +41 -41
  153. package/dist-embed/chunks/index-CCwTAE5t.js +1 -0
  154. package/dist-embed/chunks/index-CEoN6Igz.js +1 -0
  155. package/dist-embed/chunks/index-CGywzy5S.js +2 -0
  156. package/dist-embed/chunks/index-CslfR-ws.js +1 -0
  157. package/dist-embed/chunks/index-D1WP6gqy.js +2 -0
  158. package/dist-embed/chunks/{index-BeA4XI1t.js → index-DTxyD1Cg.js} +1 -1
  159. package/dist-embed/chunks/index-Da0hjuSR.js +1 -0
  160. package/dist-embed/chunks/{index-ErZ9_T3y.js → index-DjEoMYXa.js} +12 -12
  161. package/dist-embed/chunks/{index-CF9HUHN8.js → index-Dy9evYbM.js} +1 -1
  162. package/dist-embed/chunks/index-Dz7T8mqj.js +6 -0
  163. package/dist-embed/chunks/index-LJsqLy5q.js +1 -0
  164. package/dist-embed/chunks/{index-B40K_78l.js → index-MIDt7IxB.js} +1 -1
  165. package/dist-embed/chunks/{index-DrXZebZS.js → index-VedUjmyH.js} +1 -1
  166. package/dist-embed/chunks/{index-fi_KzQoZ.js → index-lC26z37v.js} +1 -1
  167. package/dist-embed/chunks/index-n0wY5AOk.js +17 -0
  168. package/dist-embed/chunks/index-x4xjV1QS.js +1 -0
  169. package/dist-embed/chunks/infoDiagram-27XIBGKW-CjrU5YxR.js +2 -0
  170. package/dist-embed/chunks/infoDiagram-27XIBGKW-CygK1B8s.js +2 -0
  171. package/dist-embed/chunks/infoDiagram-27XIBGKW-y2jlnC74.js +2 -0
  172. package/dist-embed/chunks/{infoDiagram-a29d40f1-C84ltR9z.js → infoDiagram-a29d40f1-CxLYanuc.js} +2 -2
  173. package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-19vfXaSu.js → ishikawaDiagram-5VMMS53U-B4bKsqAA.js} +2 -2
  174. package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-BKwHxl_c.js → ishikawaDiagram-5VMMS53U-B_r8LPoh.js} +6 -6
  175. package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-DxmD4pNL.js → ishikawaDiagram-5VMMS53U-D3Gs1zXZ.js} +6 -6
  176. package/dist-embed/chunks/{it-IT-JPQ66NNP-C61ct2vR.js → it-IT-JPQ66NNP-CxNntye1.js} +1 -1
  177. package/dist-embed/chunks/{ja-JP-DBVTYXUO-DsuHLQzd.js → ja-JP-DBVTYXUO-D2eNPUzJ.js} +1 -1
  178. package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-BtJM0rtE.js → journeyDiagram-3NMN7TZE-CPKVw4E2.js} +2 -2
  179. package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-CRrrfAmB.js → journeyDiagram-3NMN7TZE-CdSVPmSP.js} +2 -2
  180. package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-D8vrwew7.js → journeyDiagram-3NMN7TZE-D5N9LfNb.js} +2 -2
  181. package/dist-embed/chunks/{journeyDiagram-95396277-91Yn8aB5.js → journeyDiagram-95396277-maRimpb1.js} +2 -2
  182. package/dist-embed/chunks/kaa-6HZHGXH3-B9Jduu1i.js +1 -0
  183. package/dist-embed/chunks/{kab-KAB-ZGHBKWFO-lymWJChw.js → kab-KAB-ZGHBKWFO-D80S5Hke.js} +1 -1
  184. package/dist-embed/chunks/{kanban-definition-UXKFOSKX-BI3EeL_e.js → kanban-definition-UXKFOSKX-6OQwjjDA.js} +2 -2
  185. package/dist-embed/chunks/{kanban-definition-UXKFOSKX-BD4YKCh4.js → kanban-definition-UXKFOSKX-9X8AwfWh.js} +2 -2
  186. package/dist-embed/chunks/{kanban-definition-UXKFOSKX-DFA9oGiU.js → kanban-definition-UXKFOSKX-DNrz6elS.js} +2 -2
  187. package/dist-embed/chunks/kk-KZ-P5N5QNE5-dttniW7L.js +1 -0
  188. package/dist-embed/chunks/{km-KH-HSX4SM5Z-C__pm6qQ.js → km-KH-HSX4SM5Z-CwFUU4KI.js} +1 -1
  189. package/dist-embed/chunks/{ko-KR-MTYHY66A-D5yQS5Y4.js → ko-KR-MTYHY66A-6qkv_Dp9.js} +1 -1
  190. package/dist-embed/chunks/{ku-TR-6OUDTVRD-OIGj43yE.js → ku-TR-6OUDTVRD-C4Mq1URI.js} +1 -1
  191. package/dist-embed/chunks/{layout-C3jdOWbU.js → layout-Br9qZ7AW.js} +1 -1
  192. package/dist-embed/chunks/{layout-DWmuzni9.js → layout-CA7S7W88.js} +1 -1
  193. package/dist-embed/chunks/{layout-Dj_zgK51.js → layout-DvZ5NRsQ.js} +1 -1
  194. package/dist-embed/chunks/{lt-LT-XHIRWOB4-UGZ71aBo.js → lt-LT-XHIRWOB4-Cxuhrxpe.js} +1 -1
  195. package/dist-embed/chunks/{lv-LV-5QDEKY6T-LRIHo0NC.js → lv-LV-5QDEKY6T-2nfUsrY3.js} +1 -1
  196. package/dist-embed/chunks/{mermaid.core-DIIwHAlX.js → mermaid.core-CCCzTT5Y.js} +14 -14
  197. package/dist-embed/chunks/{mermaid.core-DF6jaPnW.js → mermaid.core-DRZOVBT3.js} +11 -11
  198. package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-D6u4H_xO.js → mindmap-definition-YA3MSWOX-BjThuhS8.js} +4 -4
  199. package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-fBVFRUCw.js → mindmap-definition-YA3MSWOX-DFMy0Zmf.js} +4 -4
  200. package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-3bvIJFMV.js → mindmap-definition-YA3MSWOX-H2yRQ6u8.js} +4 -4
  201. package/dist-embed/chunks/{mindmap-definition-e4c1d938-DbYGQCf5.js → mindmap-definition-e4c1d938-vjhx3bcZ.js} +4 -4
  202. package/dist-embed/chunks/{mr-IN-CRQNXWMA-BXO8TJMv.js → mr-IN-CRQNXWMA-HC9cqgFo.js} +1 -1
  203. package/dist-embed/chunks/my-MM-5M5IBNSE-0zP3tJ-6.js +1 -0
  204. package/dist-embed/chunks/{nb-NO-T6EIAALU-UnDxFcwr.js → nb-NO-T6EIAALU-B7KA5H1w.js} +1 -1
  205. package/dist-embed/chunks/{nl-NL-IS3SIHDZ-CdTeVF3c.js → nl-NL-IS3SIHDZ-BqrheHUd.js} +1 -1
  206. package/dist-embed/chunks/{nn-NO-6E72VCQL-nLVDeuAb.js → nn-NO-6E72VCQL-DjkBZa_a.js} +1 -1
  207. package/dist-embed/chunks/{oc-FR-POXYY2M6-CGDfJA5K.js → oc-FR-POXYY2M6-Cu_3WEeT.js} +1 -1
  208. package/dist-embed/chunks/{pa-IN-N4M65BXN-h3gZ9Ic4.js → pa-IN-N4M65BXN-5JMtBjML.js} +1 -1
  209. package/dist-embed/chunks/pegDiagram-XKGWAZYB-1AWuvKdx.js +1 -0
  210. package/dist-embed/chunks/pegDiagram-XKGWAZYB-BAhw3noh.js +1 -0
  211. package/dist-embed/chunks/pegDiagram-XKGWAZYB-CO2oVfmH.js +1 -0
  212. package/dist-embed/chunks/{percentages-BXMCSKIN-BQMwWCQD.js → percentages-BXMCSKIN-BIq0kwQL.js} +5 -5
  213. package/dist-embed/chunks/pieDiagram-E7YTZNPT-8ObvGarl.js +39 -0
  214. package/dist-embed/chunks/pieDiagram-E7YTZNPT-BGXX7TE5.js +39 -0
  215. package/dist-embed/chunks/pieDiagram-E7YTZNPT-uyUfJur0.js +39 -0
  216. package/dist-embed/chunks/{pieDiagram-c941bede-Cj4FBN3j.js → pieDiagram-c941bede-CiwJwky_.js} +5 -5
  217. package/dist-embed/chunks/{pl-PL-T2D74RX3-D83IXMGV.js → pl-PL-T2D74RX3--llsK5eC.js} +1 -1
  218. package/dist-embed/chunks/{pt-BR-5N22H2LF-C-tCCB23.js → pt-BR-5N22H2LF-Bakh_msU.js} +1 -1
  219. package/dist-embed/chunks/{pt-PT-UZXXM6DQ-BfalAAyJ.js → pt-PT-UZXXM6DQ-OxrpUCfx.js} +1 -1
  220. package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-Be4yYxRi.js → quadrantDiagram-AXDQQJYC-CRV4o4qb.js} +4 -4
  221. package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-DWfnlrHL.js → quadrantDiagram-AXDQQJYC-CRh_0GTn.js} +4 -4
  222. package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-299UcZFW.js → quadrantDiagram-AXDQQJYC-MaByZiV4.js} +2 -2
  223. package/dist-embed/chunks/{quadrantDiagram-cf8b8fe0-qh1uZ5v_.js → quadrantDiagram-cf8b8fe0-Wunt4_d5.js} +2 -2
  224. package/dist-embed/chunks/railroadDiagram-O6MQD6OU-CCaje6VF.js +1 -0
  225. package/dist-embed/chunks/railroadDiagram-O6MQD6OU-Dqphwk0Z.js +1 -0
  226. package/dist-embed/chunks/railroadDiagram-O6MQD6OU-JQKf7O31.js +1 -0
  227. package/dist-embed/chunks/{renderer-VW8Zgoi-.js → renderer-DX-Dx5-F.js} +1 -1
  228. package/dist-embed/chunks/{requirementDiagram-53bda41b-C_KZy5Fe.js → requirementDiagram-53bda41b-TCOAg1rM.js} +2 -2
  229. package/dist-embed/chunks/requirementDiagram-BXWQKSXE-Bm0upXLv.js +84 -0
  230. package/dist-embed/chunks/requirementDiagram-BXWQKSXE-C2uapxGA.js +84 -0
  231. package/dist-embed/chunks/requirementDiagram-BXWQKSXE-DJxuQg-7.js +84 -0
  232. package/dist-embed/chunks/{ro-RO-JPDTUUEW-BE1v-gpB.js → ro-RO-JPDTUUEW-uuey0xG_.js} +1 -1
  233. package/dist-embed/chunks/{ru-RU-B4JR7IUQ-CVNYAGNj.js → ru-RU-B4JR7IUQ-DqFdpWv9.js} +1 -1
  234. package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-BWZcxo3B.js → sankeyDiagram-P5KCCOFB-CLZzsFhP.js} +6 -6
  235. package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-CatGDvVZ.js → sankeyDiagram-P5KCCOFB-D_ovN9Nw.js} +6 -6
  236. package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-2w9aAGeM.js → sankeyDiagram-P5KCCOFB-SUZr8YYS.js} +6 -6
  237. package/dist-embed/chunks/{sankeyDiagram-c3ef121a-B6bWzn2q.js → sankeyDiagram-c3ef121a-_iCn_Xqv.js} +2 -2
  238. package/dist-embed/chunks/{sequenceDiagram-82a5b84f-CaIr2bxU.js → sequenceDiagram-82a5b84f-CZ9YH4d5.js} +2 -2
  239. package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-B67pBo6k.js → sequenceDiagram-WJ2MYXX4-BKNAKMB-.js} +2 -2
  240. package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-DlhUecfS.js → sequenceDiagram-WJ2MYXX4-BiNzit2i.js} +2 -2
  241. package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-CBRqz17v.js → sequenceDiagram-WJ2MYXX4-CxJBbJNf.js} +2 -2
  242. package/dist-embed/chunks/si-LK-N5RQ5JYF-CvENlHMe.js +1 -0
  243. package/dist-embed/chunks/sizeCapture-INFHLROL-CfXgq7GH.js +1 -0
  244. package/dist-embed/chunks/sizeCapture-INFHLROL-DdEoxy_h.js +1 -0
  245. package/dist-embed/chunks/sizeCapture-INFHLROL-DzGAMY7V.js +1 -0
  246. package/dist-embed/chunks/{sk-SK-C5VTKIMK-CnlsIkzl.js → sk-SK-C5VTKIMK-kO7aKifc.js} +1 -1
  247. package/dist-embed/chunks/{sl-SI-NN7IZMDC-BUxNatf_.js → sl-SI-NN7IZMDC-BSfu_xTu.js} +1 -1
  248. package/dist-embed/chunks/stateDiagram-43e79a5f-BD1qBXVh.js +1 -0
  249. package/dist-embed/chunks/stateDiagram-D77RDMKH-BdFfP6-j.js +1 -0
  250. package/dist-embed/chunks/stateDiagram-D77RDMKH-C6Rh7O9V.js +1 -0
  251. package/dist-embed/chunks/stateDiagram-D77RDMKH-CZM-t-r5.js +1 -0
  252. package/dist-embed/chunks/stateDiagram-v2-2041ed4f-CKbh55dE.js +1 -0
  253. package/dist-embed/chunks/stateDiagram-v2-MP3YSRHH-BHkGSAh9.js +1 -0
  254. package/dist-embed/chunks/stateDiagram-v2-MP3YSRHH-CBRXg201.js +1 -0
  255. package/dist-embed/chunks/stateDiagram-v2-MP3YSRHH-CtwsmZKB.js +1 -0
  256. package/dist-embed/chunks/{styles-455b33cd-DTnW81zt.js → styles-455b33cd-IAZJyrtZ.js} +1 -1
  257. package/dist-embed/chunks/styles-f932cba9-CulCjJgD.js +116 -0
  258. package/dist-embed/chunks/{styles-fcc2142b-DS8IKMau.js → styles-fcc2142b-B41TEwDB.js} +1 -1
  259. package/dist-embed/chunks/{subset-shared.chunk-CTwDOb0-.js → subset-shared.chunk-BerOLB9H.js} +1 -1
  260. package/dist-embed/chunks/subset-worker.chunk-Yn1lZtLj.js +1 -0
  261. package/dist-embed/chunks/{sv-SE-XGPEYMSR-cyuprKcs.js → sv-SE-XGPEYMSR-CwWdagrq.js} +1 -1
  262. package/dist-embed/chunks/{svgDrawCommon-148a3cd9-BxghTVdH.js → svgDrawCommon-148a3cd9-BFE-Fru-.js} +1 -1
  263. package/dist-embed/chunks/swimlanes-42K2YHIH-B4ynl1fF.js +1 -0
  264. package/dist-embed/chunks/swimlanes-42K2YHIH-C3Ob3hRX.js +1 -0
  265. package/dist-embed/chunks/swimlanes-42K2YHIH-C4SGzTvJ.js +1 -0
  266. package/dist-embed/chunks/swimlanesDiagram-VR7AAH4N-BXjgQ3GL.js +8 -0
  267. package/dist-embed/chunks/swimlanesDiagram-VR7AAH4N-C7a6omGx.js +8 -0
  268. package/dist-embed/chunks/swimlanesDiagram-VR7AAH4N-Clkyphbe.js +8 -0
  269. package/dist-embed/chunks/{ta-IN-2NMHFXQM-Byh0RKP5.js → ta-IN-2NMHFXQM-re3EiMgT.js} +1 -1
  270. package/dist-embed/chunks/th-TH-HPSO5L25-DtD0NaIp.js +2 -0
  271. package/dist-embed/chunks/{timeline-definition-24CTP7MA-D_rwkEbI.js → timeline-definition-24CTP7MA-BNDeFofK.js} +2 -2
  272. package/dist-embed/chunks/{timeline-definition-24CTP7MA-CbdMtllQ.js → timeline-definition-24CTP7MA-Cq0llA9E.js} +2 -2
  273. package/dist-embed/chunks/{timeline-definition-24CTP7MA-4T6yq6Xl.js → timeline-definition-24CTP7MA-meb3YGxd.js} +2 -2
  274. package/dist-embed/chunks/{timeline-definition-7545f45a-BV1QYS8b.js → timeline-definition-7545f45a-_IXtAyNt.js} +2 -2
  275. package/dist-embed/chunks/{tr-TR-DEFEU3FU-CnqB5qYp.js → tr-TR-DEFEU3FU-C7nWPcvx.js} +1 -1
  276. package/dist-embed/chunks/{uk-UA-QMV73CPH-T0hbDiAg.js → uk-UA-QMV73CPH-BXHaS8be.js} +1 -1
  277. package/dist-embed/chunks/{venn.esm-6w9J1Bn7.js → venn.esm-DcgGHut9.js} +2 -2
  278. package/dist-embed/chunks/{vennDiagram-4TSXK5OY-Bvimw16k.js → vennDiagram-4TSXK5OY-5vXx1zIe.js} +4 -4
  279. package/dist-embed/chunks/{vennDiagram-4TSXK5OY-CBXnZEfU.js → vennDiagram-4TSXK5OY-B_43mUqs.js} +4 -4
  280. package/dist-embed/chunks/{vennDiagram-4TSXK5OY-CYAyZJWP.js → vennDiagram-4TSXK5OY-cdkeJjkW.js} +4 -4
  281. package/dist-embed/chunks/{vi-VN-M7AON7JQ-BbVJrx8R.js → vi-VN-M7AON7JQ-D29vQQkQ.js} +1 -1
  282. package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-B9iqutw0.js → wardleyDiagram-VM6X3IG4-1VXLU7d1.js} +2 -2
  283. package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-k_2iCVDr.js → wardleyDiagram-VM6X3IG4-CDIFTq28.js} +2 -2
  284. package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-CkqyRdUt.js → wardleyDiagram-VM6X3IG4-xAtWwDfd.js} +2 -2
  285. package/dist-embed/chunks/{xychartDiagram-3f383b91-L3ZS62LU.js → xychartDiagram-3f383b91-BuaB0j8f.js} +5 -5
  286. package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z--E3rc8E6.js → xychartDiagram-S5SC5T6Z-BL2yRZOy.js} +2 -2
  287. package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-COkEQpnW.js → xychartDiagram-S5SC5T6Z-BUZxSIAO.js} +2 -2
  288. package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-DufzH9GE.js → xychartDiagram-S5SC5T6Z-CHRdLn8n.js} +2 -2
  289. package/dist-embed/chunks/{zh-CN-LNUGB5OW-B2XCvd4u.js → zh-CN-LNUGB5OW-hmUIulf5.js} +1 -1
  290. package/dist-embed/chunks/zh-HK-E62DVLB3-Bew_EKh4.js +1 -0
  291. package/dist-embed/chunks/{zh-TW-RAJ6MFWO-fBqMZFIZ.js → zh-TW-RAJ6MFWO-GAr_9KYn.js} +1 -1
  292. package/dist-embed/datalayer-app-main.js +28 -27
  293. package/lib/apps/core/canvasParts.d.ts +1 -1
  294. package/lib/apps/plugins/canvas-parts/index.d.ts +9 -1
  295. package/lib/apps/plugins/canvas-parts/index.js +42 -0
  296. package/lib/battles/index.d.ts +1 -0
  297. package/lib/battles/index.js +5 -0
  298. package/lib/battles/verdict.d.ts +76 -0
  299. package/lib/battles/verdict.js +122 -0
  300. package/lib/chat/assistant/SpeechBalloon.js +2 -2
  301. package/lib/components/code-sandboxes/CodeSandboxEnvironmentSelect.d.ts +7 -8
  302. package/lib/components/code-sandboxes/CodeSandboxEnvironmentSelect.js +133 -27
  303. package/lib/components/code-sandboxes/CodeSandboxPicker.js +3 -0
  304. package/lib/components/code-sandboxes/codeSandboxEnvironments.d.ts +3 -2
  305. package/lib/components/code-sandboxes/codeSandboxEnvironments.js +3 -2
  306. package/lib/index.d.ts +1 -1
  307. package/lib/models/Environment.d.ts +8 -0
  308. package/lib/models/environments.generated.d.ts +9 -1
  309. package/lib/models/environments.generated.js +1 -1
  310. package/lib/specs/battles.d.ts +17 -0
  311. package/lib/specs/battles.js +144 -0
  312. package/lib/specs/guards.d.ts +11 -3
  313. package/lib/specs/guards.js +67 -636
  314. package/lib/specs/index.d.ts +1 -1
  315. package/lib/specs/index.js +1 -1
  316. package/lib/specs/ops.js +23 -701
  317. package/lib/specs/tracks.d.ts +2 -0
  318. package/lib/specs/tracks.js +70 -0
  319. package/lib/types/agentspecs.d.ts +59 -9
  320. package/lib/types/guardrails.d.ts +62 -94
  321. package/package.json +2 -2
  322. package/scripts/codegen/generate_agents.py +0 -1
  323. package/scripts/codegen/generate_ops.py +82 -26
  324. package/dist-embed/chunks/AgentInspector-CgyzKeHG.js +0 -1
  325. package/dist-embed/chunks/EphemeralDocument-BqDLSVvb.js +0 -1
  326. package/dist-embed/chunks/ExcalidrawComponent-DIz2Hp3F.js +0 -1
  327. package/dist-embed/chunks/ExcalidrawModal-Bz4nrIlA.js +0 -1
  328. package/dist-embed/chunks/NotebookToolSurfaces-Ch-7Pk_I.js +0 -1
  329. package/dist-embed/chunks/Tableau10-B-NsZVaP.js +0 -1
  330. package/dist-embed/chunks/WidgetVariableView-BEQqawKT.js +0 -1
  331. package/dist-embed/chunks/abnfDiagram-VCTEODGH-Cviduj-e.js +0 -1
  332. package/dist-embed/chunks/abnfDiagram-VCTEODGH-DRYUPXKp.js +0 -1
  333. package/dist-embed/chunks/abnfDiagram-VCTEODGH-uQbfcTeh.js +0 -1
  334. package/dist-embed/chunks/advancedFormat-Cytc7Lc-.js +0 -1
  335. package/dist-embed/chunks/arc-CvuHsKVP.js +0 -1
  336. package/dist-embed/chunks/array-BKyUJesY.js +0 -1
  337. package/dist-embed/chunks/az-AZ-76LH7QW2-By3wlF01.js +0 -1
  338. package/dist-embed/chunks/band-dPffDWoQ.js +0 -1
  339. package/dist-embed/chunks/channel-DSSC-Z6W.js +0 -1
  340. package/dist-embed/chunks/classDiagram-ZZMXUADV-2t4a-wcA.js +0 -1
  341. package/dist-embed/chunks/classDiagram-ZZMXUADV-9WVRK_2x.js +0 -1
  342. package/dist-embed/chunks/classDiagram-ZZMXUADV-Dh5wgyac.js +0 -1
  343. package/dist-embed/chunks/classDiagram-f62afe4f-CaiUEXWA.js +0 -2
  344. package/dist-embed/chunks/classDiagram-v2-604399ef-CZz_cEb3.js +0 -2
  345. package/dist-embed/chunks/classDiagram-v2-VYDZK3BY-2t4a-wcA.js +0 -1
  346. package/dist-embed/chunks/classDiagram-v2-VYDZK3BY-9WVRK_2x.js +0 -1
  347. package/dist-embed/chunks/classDiagram-v2-VYDZK3BY-Dh5wgyac.js +0 -1
  348. package/dist-embed/chunks/color-CG7_7V2-.js +0 -1
  349. package/dist-embed/chunks/cose-bilkent-JH36ORCC-CYdr15Qb.js +0 -1
  350. package/dist-embed/chunks/cose-bilkent-JH36ORCC-D7xkFMi4.js +0 -1
  351. package/dist-embed/chunks/cose-bilkent-JH36ORCC-DyL8-f5N.js +0 -1
  352. package/dist-embed/chunks/cynefinDiagram-5FMLGOSQ-B-cEXnFH.js +0 -62
  353. package/dist-embed/chunks/cynefinDiagram-5FMLGOSQ-DkFOdRYH.js +0 -62
  354. package/dist-embed/chunks/cynefinDiagram-5FMLGOSQ-wHBoNo7j.js +0 -62
  355. package/dist-embed/chunks/defaultLocale-5voVPcsN.js +0 -1
  356. package/dist-embed/chunks/diagram-UQ7AKVKN-2cPTLkSD.js +0 -41
  357. package/dist-embed/chunks/diagram-UQ7AKVKN-CSMVfm7b.js +0 -41
  358. package/dist-embed/chunks/diagram-UQ7AKVKN-C_jt0u6D.js +0 -41
  359. package/dist-embed/chunks/diagram-VX7I27RA-BJ2YQn5K.js +0 -24
  360. package/dist-embed/chunks/diagram-VX7I27RA-DA1J99rY.js +0 -24
  361. package/dist-embed/chunks/diagram-VX7I27RA-Dm3pOzxq.js +0 -24
  362. package/dist-embed/chunks/diagram-Z3DM3KII-C5sZC4ig.js +0 -24
  363. package/dist-embed/chunks/diagram-Z3DM3KII-CVmSZjIo.js +0 -24
  364. package/dist-embed/chunks/diagram-Z3DM3KII-DVQwJUFe.js +0 -24
  365. package/dist-embed/chunks/ebnfDiagram-PWID7BFC-DwtRvYrD.js +0 -1
  366. package/dist-embed/chunks/ebnfDiagram-PWID7BFC-Qmmh9DWc.js +0 -1
  367. package/dist-embed/chunks/ebnfDiagram-PWID7BFC-YwFzQxr5.js +0 -1
  368. package/dist-embed/chunks/edges-b2856ca0-Cn0ZKu5E.js +0 -4
  369. package/dist-embed/chunks/flowDiagram-v2-1d953310-5ThB3y9b.js +0 -1
  370. package/dist-embed/chunks/gitGraphDiagram-WWUBYQGX-1XlTL5m_.js +0 -106
  371. package/dist-embed/chunks/gitGraphDiagram-WWUBYQGX-APR1d-tc.js +0 -106
  372. package/dist-embed/chunks/gitGraphDiagram-WWUBYQGX-BAP8EKLt.js +0 -106
  373. package/dist-embed/chunks/hcl-DhKDpa4Z.js +0 -1
  374. package/dist-embed/chunks/index-BF1314TG.js +0 -1
  375. package/dist-embed/chunks/index-BYQPOTc8.js +0 -1
  376. package/dist-embed/chunks/index-Ben6aEe6.js +0 -1
  377. package/dist-embed/chunks/index-CFSUTqDN.js +0 -1
  378. package/dist-embed/chunks/index-CvYzv8kf.js +0 -1
  379. package/dist-embed/chunks/index-D4a8E78-.js +0 -34
  380. package/dist-embed/chunks/index-D7tggxpZ.js +0 -1
  381. package/dist-embed/chunks/index-D99YJ2MP.js +0 -1
  382. package/dist-embed/chunks/index-DDgcbci7.js +0 -17
  383. package/dist-embed/chunks/index-DOI3H9VM.js +0 -2
  384. package/dist-embed/chunks/index-DcQTeOGT.js +0 -2
  385. package/dist-embed/chunks/index-DqGFpucN.js +0 -6
  386. package/dist-embed/chunks/index-Dw3RE4d5.js +0 -1
  387. package/dist-embed/chunks/index-MUnyaGR7.js +0 -1
  388. package/dist-embed/chunks/index-atSsKceW.js +0 -1
  389. package/dist-embed/chunks/infoDiagram-27XIBGKW-BRFvlR5E.js +0 -2
  390. package/dist-embed/chunks/infoDiagram-27XIBGKW-D2VjYulT.js +0 -2
  391. package/dist-embed/chunks/infoDiagram-27XIBGKW-mC-wx4e9.js +0 -2
  392. package/dist-embed/chunks/init-Gi6I4Gst.js +0 -1
  393. package/dist-embed/chunks/kaa-6HZHGXH3-DXk4Goog.js +0 -1
  394. package/dist-embed/chunks/kk-KZ-P5N5QNE5-BVNL23_r.js +0 -1
  395. package/dist-embed/chunks/line-DT6NiYhi.js +0 -1
  396. package/dist-embed/chunks/linear-BpNYqLzz.js +0 -1
  397. package/dist-embed/chunks/my-MM-5M5IBNSE-CRUW8B_2.js +0 -1
  398. package/dist-embed/chunks/ordinal-Cboi1Yqb.js +0 -1
  399. package/dist-embed/chunks/path-CbwjOpE9.js +0 -1
  400. package/dist-embed/chunks/pegDiagram-XKGWAZYB-CtWh5AAX.js +0 -1
  401. package/dist-embed/chunks/pegDiagram-XKGWAZYB-D0zyGRR2.js +0 -1
  402. package/dist-embed/chunks/pegDiagram-XKGWAZYB-fy3EphLc.js +0 -1
  403. package/dist-embed/chunks/pie-BU9ZrLAC.js +0 -1
  404. package/dist-embed/chunks/pieDiagram-E7YTZNPT-BsWWB93l.js +0 -39
  405. package/dist-embed/chunks/pieDiagram-E7YTZNPT-CArVdetR.js +0 -39
  406. package/dist-embed/chunks/pieDiagram-E7YTZNPT-DNxhxWw6.js +0 -39
  407. package/dist-embed/chunks/railroadDiagram-O6MQD6OU-C9HR2VRW.js +0 -1
  408. package/dist-embed/chunks/railroadDiagram-O6MQD6OU-COJ52k8E.js +0 -1
  409. package/dist-embed/chunks/railroadDiagram-O6MQD6OU-DPlEOlHJ.js +0 -1
  410. package/dist-embed/chunks/requirementDiagram-BXWQKSXE-2dtqnxe5.js +0 -84
  411. package/dist-embed/chunks/requirementDiagram-BXWQKSXE-BSUw2gn-.js +0 -84
  412. package/dist-embed/chunks/requirementDiagram-BXWQKSXE-BxFFoRpi.js +0 -84
  413. package/dist-embed/chunks/round-BfLWjAu-.js +0 -1
  414. package/dist-embed/chunks/si-LK-N5RQ5JYF-DUuCNsO5.js +0 -1
  415. package/dist-embed/chunks/sizeCapture-INFHLROL-BEjCofob.js +0 -1
  416. package/dist-embed/chunks/sizeCapture-INFHLROL-DMtgrDCy.js +0 -1
  417. package/dist-embed/chunks/sizeCapture-INFHLROL-fPkZXPlY.js +0 -1
  418. package/dist-embed/chunks/stateDiagram-43e79a5f-C9c4jD1w.js +0 -1
  419. package/dist-embed/chunks/stateDiagram-D77RDMKH-BwBOxQvl.js +0 -1
  420. package/dist-embed/chunks/stateDiagram-D77RDMKH-C3hsuLFV.js +0 -1
  421. package/dist-embed/chunks/stateDiagram-D77RDMKH-dWsBlue-.js +0 -1
  422. package/dist-embed/chunks/stateDiagram-v2-2041ed4f-CcvTvP8J.js +0 -1
  423. package/dist-embed/chunks/stateDiagram-v2-MP3YSRHH-BynTEikt.js +0 -1
  424. package/dist-embed/chunks/stateDiagram-v2-MP3YSRHH-CRNCbzUu.js +0 -1
  425. package/dist-embed/chunks/stateDiagram-v2-MP3YSRHH-yYUm25Cg.js +0 -1
  426. package/dist-embed/chunks/styles-f932cba9-DvbsLPZ9.js +0 -116
  427. package/dist-embed/chunks/subset-worker.chunk-CY8G1DYa.js +0 -1
  428. package/dist-embed/chunks/swimlanes-42K2YHIH-CGEWUgMO.js +0 -1
  429. package/dist-embed/chunks/swimlanes-42K2YHIH-DY5rybP3.js +0 -1
  430. package/dist-embed/chunks/swimlanes-42K2YHIH-DiRx3T6S.js +0 -1
  431. package/dist-embed/chunks/swimlanesDiagram-VR7AAH4N-BmSxUdGr.js +0 -8
  432. package/dist-embed/chunks/swimlanesDiagram-VR7AAH4N-BmTIqylO.js +0 -8
  433. package/dist-embed/chunks/swimlanesDiagram-VR7AAH4N-Dmom79F0.js +0 -8
  434. package/dist-embed/chunks/th-TH-HPSO5L25-C8zeMDt2.js +0 -2
  435. package/dist-embed/chunks/zh-HK-E62DVLB3-D8xk7wby.js +0 -1
  436. package/lib/specs/guardrails.d.ts +0 -22
  437. package/lib/specs/guardrails.js +0 -391
  438. package/scripts/codegen/generate_guardrails.py +0 -475
@@ -1,4 +1,4 @@
1
- import{co as Z,J as M,cl as ee,ck as W,aD as B,a9 as K,eH as pe,aC as j,dt as he,eI as me,cn as fe,aE as R,aF as C,cs as Q,eJ as ge,aK as _e,aA as ve,dG as ye,eK as be,aJ as we,r as X,eL as xe,eM as Ce}from"../datalayer-app-main.js";import{T as te,g as Se,b as ne,f as oe}from"./index-CXEjqez2.js";import{I as ie}from"./tokens-Dyd4wiX6.js";import{a as re,b as H,c as V,I as A}from"./tokens-Nkg3e_k9.js";import{I as ae}from"./tokens-DY_UrMLq.js";import{g as se,h as ke,m as Te,c as G,D as z,n as Re}from"./index-DIoOWi0w.js";import"./hoverbox-CStlKQWE.js";import"./Output-DF1wzbCD.js";import"./index-DK_juJTN.js";import"./index-D4a8E78-.js";import"./color-CG7_7V2-.js";import"./isEqual-DjmHhd-b.js";import"./defaultLocale-5voVPcsN.js";import"./index-BrUAt6vF.js";import"./KebabHorizontalIcon-D6AY8pIS.js";import"./PaintbrushIcon-CFBHU-3l.js";import"./index-DYBgss-E.js";import"./RestartIcon-Ca6_HoK0.js";import"./CellSidebarExtension-9Xkl4nS1.js";import"./NotebookSkeleton-D-wj2esi.js";import"./Avatar-DvWrRG_3.js";import"./renderer-VW8Zgoi-.js";import"./SquareIcon-Dy3l3VdH.js";import"./FileDirectoryOpenFillIcon-jGhuRcP3.js";import"./url-C6fJII94.js";/* empty css *//* empty css */import"./index-Dro44tIm.js";/* empty css */import"./index-DsG9xhMj.js";/* empty css */import"./index-CNU-WVhQ.js";import"./index--OLIX362.js";import"./index-DYGslHkf.js";import"./index-BSRVX3UN.js";import"./index-BH2OX5l8.js";import"./index-C3vDfO5_.js";import"./index-Ko8lxXFd.js";import"./index-CB9u17_J.js";import"./index-BUVtc_FV.js";import"./ArrowLeftIcon-sX3iNMG1.js";import"./SkubbleIcon-tlg17jBG.js";import"./usePrimerThemeBridge-DyX4EYyN.js";import"./index-DS7lfBW6.js";import"./KernelVariables-BmWOn-n_.js";import"./index-C0d-d3s4.js";import"./SortAscIcon-CmH04s3F.js";import"./SortDescIcon-Qif6E10I.js";import"./NotebookToolbar-C6VvAn4V.js";import"./RepoPushIcon-BtXQRhLa.js";import"./Toolbar-CalSw9_B.js";import"./sessions-Dlwi03ae.js";import"./tokens-CBhRbpQP.js";import"./drivecontents-D1HzL7Fi.js";import"./kernel-BmfZmtIo.js";function We(i){return M.createElement(te,{source:i.name,title:i.fullPath})}class N extends Z{constructor(e){super(new N.Model(e.docManager)),this.node.title=this.model.path}render(){return M.createElement(We,{fullPath:this.model.path,name:this.model.name})}}(function(i){class e extends ee{constructor(n){super(),this._onTitleChange=a=>{const s=this._getAllState();this._name=a.label,this._triggerChange(s,this._getAllState())},this._onPathChange=(a,s)=>{const c=this._getAllState();this._path=s,this._name=W.PathExt.basename(s),this._triggerChange(c,this._getAllState())},this._path="",this._name="",this._widget=null,this._docManager=n}get path(){return this._path}get name(){return this._name}get widget(){return this._widget}set widget(n){const a=this._widget;if(a!==null){const c=this._docManager.contextForWidget(a);c?c.pathChanged.disconnect(this._onPathChange):a.title.changed.disconnect(this._onTitleChange)}const s=this._getAllState();if(this._widget=n,this._widget===null)this._path="",this._name="";else{const c=this._docManager.contextForWidget(this._widget);c?(this._path=c.path,this._name=W.PathExt.basename(c.path),c.pathChanged.connect(this._onPathChange)):(this._path="",this._name=this._widget.title.label,this._widget.title.changed.connect(this._onTitleChange))}this._triggerChange(s,this._getAllState())}_getAllState(){return[this._path,this._name]}_triggerChange(n,a){(n[0]!==a[0]||n[1]!==a[1])&&this.stateChanged.emit(void 0)}}i.Model=e})(N||(N={}));function De(i){return M.createElement(te,{source:i.fileStatus})}const Fe=2e3;class O extends Z{constructor(e){super(new O.Model(e.docManager));const n=(e.translator||B).load("jupyterlab");this._statusMap={completed:n.__("Saving completed"),started:n.__("Saving started"),failed:n.__("Saving failed")}}render(){return this.model===null||this.model.status===null?null:M.createElement(De,{fileStatus:this._statusMap[this.model.status]})}}(function(i){class e extends ee{constructor(n){super(),this._onStatusChange=(a,s)=>{this._status=s,this._status==="completed"?(setTimeout(()=>{this._status=null,this.stateChanged.emit(void 0)},Fe),this.stateChanged.emit(void 0)):this.stateChanged.emit(void 0)},this._status=null,this._widget=null,this._status=null,this.widget=null,this._docManager=n}get status(){return this._status}get widget(){return this._widget}set widget(n){var a,s;const c=this._widget;if(c!==null){const p=this._docManager.contextForWidget(c);p?p.saveState.disconnect(this._onStatusChange):!((a=this._widget.content)===null||a===void 0)&&a.saveStateChanged&&this._widget.content.saveStateChanged.disconnect(this._onStatusChange)}if(this._widget=n,this._widget===null)this._status=null;else{const p=this._docManager.contextForWidget(this._widget);p?p.saveState.connect(this._onStatusChange):!((s=this._widget.content)===null||s===void 0)&&s.saveStateChanged&&this._widget.content.saveStateChanged.connect(this._onStatusChange)}}}i.Model=e})(O||(O={}));class Be{constructor(e){this._recentsChanged=new K(this),this._recents={opened:[],closed:[]},this._isDisposed=!1,this._maxRecentsLength=10,this._saveDebouncer=new pe(this._save.bind(this),500),this._stateDB=e.stateDB,this._contentsManager=e.contents,this.updateRootDir(),this._loadRecents().catch(t=>{console.error(`Failed to load recent list from state:
1
+ import{co as Z,J as M,cl as ee,ck as W,aD as B,a9 as K,eH as pe,aC as j,dt as he,eI as me,cn as fe,aE as R,aF as C,cs as Q,eJ as ge,aK as _e,aA as ve,dG as ye,eK as be,aJ as we,r as X,eL as xe,eM as Ce}from"../datalayer-app-main.js";import{T as te,g as Se,b as ne,f as oe}from"./index-CXEjqez2.js";import{I as ie}from"./tokens-Dyd4wiX6.js";import{a as re,b as H,c as V,I as A}from"./tokens-Nkg3e_k9.js";import{I as ae}from"./tokens-DY_UrMLq.js";import{g as se,h as ke,m as Te,c as G,D as z,n as Re}from"./index-BbLfaxiL.js";import"./hoverbox-CStlKQWE.js";import"./Output-UPeDwjyI.js";import"./index-DK_juJTN.js";import"./index-BqnIBWZ9.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-DjmHhd-b.js";import"./d3-color-Jd8hXty2.js";import"./index-BrUAt6vF.js";import"./KebabHorizontalIcon-D6AY8pIS.js";import"./PaintbrushIcon-CFBHU-3l.js";import"./index-DYBgss-E.js";import"./RestartIcon-Ca6_HoK0.js";import"./CellSidebarExtension-BMT21AEe.js";import"./NotebookSkeleton-D-wj2esi.js";import"./Avatar-DvWrRG_3.js";import"./renderer-DX-Dx5-F.js";import"./SquareIcon-Dy3l3VdH.js";import"./FileDirectoryOpenFillIcon-jGhuRcP3.js";import"./url-C6fJII94.js";/* empty css *//* empty css */import"./index-Dro44tIm.js";/* empty css */import"./index-DsG9xhMj.js";/* empty css */import"./index-CNU-WVhQ.js";import"./index--OLIX362.js";import"./index-DYGslHkf.js";import"./index-BSRVX3UN.js";import"./index-BH2OX5l8.js";import"./index-C3vDfO5_.js";import"./index-Ko8lxXFd.js";import"./index-CB9u17_J.js";import"./index-BUVtc_FV.js";import"./ArrowLeftIcon-sX3iNMG1.js";import"./SkubbleIcon-tlg17jBG.js";import"./usePrimerThemeBridge-DyX4EYyN.js";import"./index-DS7lfBW6.js";import"./KernelVariables-JJah7mez.js";import"./index-C0d-d3s4.js";import"./SortAscIcon-CmH04s3F.js";import"./SortDescIcon-Qif6E10I.js";import"./NotebookToolbar-C6VvAn4V.js";import"./RepoPushIcon-BtXQRhLa.js";import"./Toolbar-CalSw9_B.js";import"./sessions-Dlwi03ae.js";import"./tokens-CBhRbpQP.js";import"./drivecontents-D1HzL7Fi.js";import"./kernel-BmfZmtIo.js";function We(i){return M.createElement(te,{source:i.name,title:i.fullPath})}class N extends Z{constructor(e){super(new N.Model(e.docManager)),this.node.title=this.model.path}render(){return M.createElement(We,{fullPath:this.model.path,name:this.model.name})}}(function(i){class e extends ee{constructor(n){super(),this._onTitleChange=a=>{const s=this._getAllState();this._name=a.label,this._triggerChange(s,this._getAllState())},this._onPathChange=(a,s)=>{const c=this._getAllState();this._path=s,this._name=W.PathExt.basename(s),this._triggerChange(c,this._getAllState())},this._path="",this._name="",this._widget=null,this._docManager=n}get path(){return this._path}get name(){return this._name}get widget(){return this._widget}set widget(n){const a=this._widget;if(a!==null){const c=this._docManager.contextForWidget(a);c?c.pathChanged.disconnect(this._onPathChange):a.title.changed.disconnect(this._onTitleChange)}const s=this._getAllState();if(this._widget=n,this._widget===null)this._path="",this._name="";else{const c=this._docManager.contextForWidget(this._widget);c?(this._path=c.path,this._name=W.PathExt.basename(c.path),c.pathChanged.connect(this._onPathChange)):(this._path="",this._name=this._widget.title.label,this._widget.title.changed.connect(this._onTitleChange))}this._triggerChange(s,this._getAllState())}_getAllState(){return[this._path,this._name]}_triggerChange(n,a){(n[0]!==a[0]||n[1]!==a[1])&&this.stateChanged.emit(void 0)}}i.Model=e})(N||(N={}));function De(i){return M.createElement(te,{source:i.fileStatus})}const Fe=2e3;class O extends Z{constructor(e){super(new O.Model(e.docManager));const n=(e.translator||B).load("jupyterlab");this._statusMap={completed:n.__("Saving completed"),started:n.__("Saving started"),failed:n.__("Saving failed")}}render(){return this.model===null||this.model.status===null?null:M.createElement(De,{fileStatus:this._statusMap[this.model.status]})}}(function(i){class e extends ee{constructor(n){super(),this._onStatusChange=(a,s)=>{this._status=s,this._status==="completed"?(setTimeout(()=>{this._status=null,this.stateChanged.emit(void 0)},Fe),this.stateChanged.emit(void 0)):this.stateChanged.emit(void 0)},this._status=null,this._widget=null,this._status=null,this.widget=null,this._docManager=n}get status(){return this._status}get widget(){return this._widget}set widget(n){var a,s;const c=this._widget;if(c!==null){const p=this._docManager.contextForWidget(c);p?p.saveState.disconnect(this._onStatusChange):!((a=this._widget.content)===null||a===void 0)&&a.saveStateChanged&&this._widget.content.saveStateChanged.disconnect(this._onStatusChange)}if(this._widget=n,this._widget===null)this._status=null;else{const p=this._docManager.contextForWidget(this._widget);p?p.saveState.connect(this._onStatusChange):!((s=this._widget.content)===null||s===void 0)&&s.saveStateChanged&&this._widget.content.saveStateChanged.connect(this._onStatusChange)}}}i.Model=e})(O||(O={}));class Be{constructor(e){this._recentsChanged=new K(this),this._recents={opened:[],closed:[]},this._isDisposed=!1,this._maxRecentsLength=10,this._saveDebouncer=new pe(this._save.bind(this),500),this._stateDB=e.stateDB,this._contentsManager=e.contents,this.updateRootDir(),this._loadRecents().catch(t=>{console.error(`Failed to load recent list from state:
2
2
  ${t}`)})}get isDisposed(){return this._isDisposed}get recentlyOpened(){return(this._recents.opened||[]).filter(t=>t.root===this._serverRoot)}get recentlyClosed(){return(this._recents.closed||[]).filter(t=>t.root===this._serverRoot)}get changed(){return this._recentsChanged}get maximalRecentsLength(){return this._maxRecentsLength}set maximalRecentsLength(e){this._maxRecentsLength=Math.round(Math.max(1,e));let t=!1;for(const n of["opened","closed"])this._recents[n].length>this._maxRecentsLength&&(this._recents[n].length=this._maxRecentsLength,t=!0);t&&this._recentsChanged.emit(void 0)}dispose(){this.isDisposed||(this._isDisposed=!0,K.clearData(this),this._saveDebouncer.dispose())}addRecent(e,t){const n={...e,root:this._serverRoot},a=this._recents[t],s=a.findIndex(c=>c.path===e.path);s>=0&&a.splice(s,1),a.unshift(n),this._setRecents(a,t),this._recentsChanged.emit(void 0)}clearRecents(){this._setRecents([],"opened"),this._setRecents([],"closed"),this._recentsChanged.emit(void 0)}removeRecent(e,t){this._removeRecent(e.path,[t])}async validate(e){const t=await this._isValid(e);return t||this._removeRecent(e.path),t}updateRootDir(){this._serverRoot=W.PageConfig.getOption("serverRoot")}_removeRecent(e,t=["opened","closed"]){let n=!1;for(const a of t){const s=this._recents[a],c=s.filter(p=>e!==p.path);s.length!==c.length&&(this._setRecents(c,a),n=!0)}n&&this._recentsChanged.emit(void 0)}async _isValid(e){var t;try{await this._contentsManager.get(e.path,{content:!1})}catch(n){if(((t=n.response)===null||t===void 0?void 0:t.status)===404)return!1}return!0}_setRecents(e,t){this._recents[t]=e.slice(0,this.maximalRecentsLength).sort((n,a)=>n.root===a.root?0:n.root!==this._serverRoot?1:-1),this._saveDebouncer.invoke().catch(console.warn)}async _loadRecents(){const e=await this._stateDB.fetch(U.stateDBKey)||{opened:[],closed:[]},t=[...e.opened,...e.closed],n=new Set(await this._getInvalidPaths(t));for(const a of["opened","closed"])this._setRecents(e[a].filter(s=>!n.has(s.path)),a);this._recentsChanged.emit(void 0)}async _getInvalidPaths(e){return(await Promise.all(e.map(async n=>await this._isValid(n)?null:n.path))).filter(n=>typeof n=="string")}async _save(){try{await this._stateDB.save(U.stateDBKey,this._recents)}catch(e){console.log("Saving recents failed",e)}}}var U;(function(i){i.stateDBKey="docmanager:recents"})(U||(U={}));var J;(function(i){i.clearRecents="docmanager:clear-recents"})(J||(J={}));var L;(function(i){i.recentsManager="@jupyterlab/docmanager-extension:recents",i.reopenClosed="@jupyterlab/docmanager-extension:reopen-recently-closed",i.mainPlugin="@jupyterlab/docmanager-extension:plugin"})(L||(L={}));const je={id:L.recentsManager,description:"Provides a manager of recently opened and closed documents.",autoStart:!0,requires:[he.IStateDB],optional:[ae,j],provides:re,activate:(i,e,t,n)=>{const{serviceManager:a}=i,s=(n??B).load("jupyterlab"),c=new Be({stateDB:e,contents:a.contents}),p=m=>{c.maximalRecentsLength=m.get("maxNumberRecents").composite};return t&&Promise.all([i.restored,t.load(L.mainPlugin)]).then(([m,r])=>{r.changed.connect(p),p(r)}),i.commands.addCommand(J.clearRecents,{execute:()=>{c.clearRecents()},isEnabled:()=>c.recentlyOpened.length!=0||c.recentlyClosed.length!=0,label:s.__("Clear Recent Documents"),caption:s.__("Clear the list of recently opened items."),describedBy:{args:{type:"object",properties:{}}}}),c}};var h;(function(i){i.clone="docmanager:clone",i.deleteFile="docmanager:delete-file",i.newUntitled="docmanager:new-untitled",i.open="docmanager:open",i.openBrowserTab="docmanager:open-browser-tab",i.reload="docmanager:reload",i.rename="docmanager:rename",i.del="docmanager:delete",i.duplicate="docmanager:duplicate",i.restoreCheckpoint="docmanager:restore-checkpoint",i.save="docmanager:save",i.saveAll="docmanager:save-all",i.saveAs="docmanager:save-as",i.download="docmanager:download",i.toggleAutosave="docmanager:toggle-autosave",i.showInFileBrowser="docmanager:show-in-file-browser"})(h||(h={}));const F="@jupyterlab/docmanager-extension:plugin",Ae={id:"@jupyterlab/docmanager-extension:opener",description:"Provides the widget opener.",autoStart:!0,provides:V,activate:i=>{const{shell:e}=i;return new class{constructor(){this._opened=new K(this)}open(t,n){var a;t.id||(t.id=`document-manager-${++$.id}`),t.title.dataset={type:"document-title",...t.title.dataset},t.isAttached||e.add(t,"main",n||{}),(!((a=n?.activate)!==null&&a!==void 0)||a)&&e.activateById(t.id),this._opened.emit(t)}get opened(){return this._opened}}}},Pe={id:"@jupyterlab/docmanager-extension:contexts",description:"Adds the handling of opened documents dirty state.",autoStart:!0,requires:[A,V],optional:[se],activate:(i,e,t,n)=>{const a=new WeakSet;t.opened.connect((s,c)=>{const p=e.contextForWidget(c);p&&!a.has(p)&&(n&&Ve(n,p),a.add(p))})}},Ee={id:"@jupyterlab/docmanager-extension:manager",description:"Provides the document manager.",provides:A,requires:[V],optional:[j,se,Se,ke.IInfo,re,Te,H],activate:(i,e,t,n,a,s,c,p,m)=>{var r;const{serviceManager:d,docRegistry:u}=i,_=t??B,g=a??new me({translator:_}),y=m??new z({translator:_}),x=i.restored.then(()=>{});return new Re({registry:u,manager:d,opener:e,when:x,setBusy:(r=n&&(()=>n.setBusy()))!==null&&r!==void 0?r:void 0,sessionDialogs:g,translator:_??B,isConnectedCallback:()=>s?s.isConnected:!0,recentsManager:c??void 0,urlResolverFactory:p??void 0,docManagerDialogs:y})}},Ie={id:F,description:"Adds commands and settings to the document manager.",autoStart:!0,requires:[A,V,ae],optional:[j,ne,G,H],activate:(i,e,t,n,a,s,c,p)=>{a=a??B;const m=a.load("jupyterlab"),r=i.docRegistry;Le(i,e,t,n,a,c,s,p);const d=u=>{const _=u.get("autosave").composite;e.autosave=_===!0||_===!1?_:!0,i.commands.notifyCommandChanged(h.toggleAutosave);const g=u.get("confirmClosingDocument").composite;e.confirmClosingDocument=g??!0;const y=u.get("autosaveInterval").composite;e.autosaveInterval=y||120;const x=u.get("lastModifiedCheckMargin").composite;e.lastModifiedCheckMargin=x||500;const w=u.get("renameUntitledFileOnSave").composite;e.renameUntitledFileOnSave=w??!0;const D=u.get("defaultViewers").composite,o={};Object.keys(D).forEach(l=>{if(!r.getFileType(l)){console.warn(`File Type ${l} not found`);return}r.getWidgetFactory(D[l])||console.warn(`Document viewer ${D[l]} not found`),o[l]=D[l]});for(const l of r.fileTypes())try{r.setDefaultWidgetFactory(l.name,o[l.name])}catch{console.warn(`Failed to set default viewer ${o[l.name]} for file type ${l.name}`)}};Promise.all([n.load(F),i.restored]).then(([u])=>{u.changed.connect(d),d(u);const _=(g,y)=>{["autosave","autosaveInterval","confirmClosingDocument","lastModifiedCheckMargin","renameUntitledFileOnSave"].includes(y.name)&&u.get(y.name).composite!==y.newValue&&u.set(y.name,y.newValue).catch(x=>{console.error(`Failed to set the setting '${y.name}':
3
3
  ${x}`)})};e.stateChanged.connect(_)}).catch(u=>{console.error(u.message)}),n.transform(F,{fetch:u=>{const _=Array.from(r.fileTypes()).map(w=>w.name).join(`
4
4
  `),g=Array.from(r.widgetFactories()).map(w=>w.name).join(`
@@ -0,0 +1,6 @@
1
+ import{as as xn}from"../datalayer-app-main.js";import{r as bn}from"./dayjs.min-u3zuoSR8.js";var vn=bn();const Ei=xn(vn),ot={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const n=t/255;return t>.03928?Math.pow((n+.055)/1.055,2.4):n/12.92},hue2rgb:(t,n,e)=>(e<0&&(e+=1),e>1&&(e-=1),e<1/6?t+(n-t)*6*e:e<1/2?n:e<2/3?t+(n-t)*(2/3-e)*6:t),hsl2rgb:({h:t,s:n,l:e},i)=>{if(!n)return e*2.55;t/=360,n/=100,e/=100;const s=e<.5?e*(1+n):e+n-e*n,o=2*e-s;switch(i){case"r":return ot.hue2rgb(o,s,t+1/3)*255;case"g":return ot.hue2rgb(o,s,t)*255;case"b":return ot.hue2rgb(o,s,t-1/3)*255}},rgb2hsl:({r:t,g:n,b:e},i)=>{t/=255,n/=255,e/=255;const s=Math.max(t,n,e),o=Math.min(t,n,e),a=(s+o)/2;if(i==="l")return a*100;if(s===o)return 0;const r=s-o,h=a>.5?r/(2-s-o):r/(s+o);if(i==="s")return h*100;switch(s){case t:return((n-e)/r+(n<e?6:0))*60;case n:return((e-t)/r+2)*60;case e:return((t-n)/r+4)*60;default:return-1}}},wn={clamp:(t,n,e)=>n>e?Math.min(n,Math.max(e,t)):Math.min(e,Math.max(n,t)),round:t=>Math.round(t*1e10)/1e10},kn={dec2hex:t=>{const n=Math.round(t).toString(16);return n.length>1?n:`0${n}`}},p={channel:ot,lang:wn,unit:kn},I={};for(let t=0;t<=255;t++)I[t]=p.unit.dec2hex(t);const T={ALL:0,RGB:1,HSL:2};class An{constructor(){this.type=T.ALL}get(){return this.type}set(n){if(this.type&&this.type!==n)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=n}reset(){this.type=T.ALL}is(n){return this.type===n}}class $n{constructor(n,e){this.color=e,this.changed=!1,this.data=n,this.type=new An}set(n,e){return this.color=e,this.changed=!1,this.data=n,this.type.type=T.ALL,this}_ensureHSL(){const n=this.data,{h:e,s:i,l:s}=n;e===void 0&&(n.h=p.channel.rgb2hsl(n,"h")),i===void 0&&(n.s=p.channel.rgb2hsl(n,"s")),s===void 0&&(n.l=p.channel.rgb2hsl(n,"l"))}_ensureRGB(){const n=this.data,{r:e,g:i,b:s}=n;e===void 0&&(n.r=p.channel.hsl2rgb(n,"r")),i===void 0&&(n.g=p.channel.hsl2rgb(n,"g")),s===void 0&&(n.b=p.channel.hsl2rgb(n,"b"))}get r(){const n=this.data,e=n.r;return!this.type.is(T.HSL)&&e!==void 0?e:(this._ensureHSL(),p.channel.hsl2rgb(n,"r"))}get g(){const n=this.data,e=n.g;return!this.type.is(T.HSL)&&e!==void 0?e:(this._ensureHSL(),p.channel.hsl2rgb(n,"g"))}get b(){const n=this.data,e=n.b;return!this.type.is(T.HSL)&&e!==void 0?e:(this._ensureHSL(),p.channel.hsl2rgb(n,"b"))}get h(){const n=this.data,e=n.h;return!this.type.is(T.RGB)&&e!==void 0?e:(this._ensureRGB(),p.channel.rgb2hsl(n,"h"))}get s(){const n=this.data,e=n.s;return!this.type.is(T.RGB)&&e!==void 0?e:(this._ensureRGB(),p.channel.rgb2hsl(n,"s"))}get l(){const n=this.data,e=n.l;return!this.type.is(T.RGB)&&e!==void 0?e:(this._ensureRGB(),p.channel.rgb2hsl(n,"l"))}get a(){return this.data.a}set r(n){this.type.set(T.RGB),this.changed=!0,this.data.r=n}set g(n){this.type.set(T.RGB),this.changed=!0,this.data.g=n}set b(n){this.type.set(T.RGB),this.changed=!0,this.data.b=n}set h(n){this.type.set(T.HSL),this.changed=!0,this.data.h=n}set s(n){this.type.set(T.HSL),this.changed=!0,this.data.s=n}set l(n){this.type.set(T.HSL),this.changed=!0,this.data.l=n}set a(n){this.changed=!0,this.data.a=n}}const ft=new $n({r:0,g:0,b:0,a:0},"transparent"),Z={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const n=t.match(Z.re);if(!n)return;const e=n[1],i=parseInt(e,16),s=e.length,o=s%4===0,a=s>4,r=a?1:17,h=a?8:4,c=o?0:-1,l=a?255:15;return ft.set({r:(i>>h*(c+3)&l)*r,g:(i>>h*(c+2)&l)*r,b:(i>>h*(c+1)&l)*r,a:o?(i&l)*r/255:1},t)},stringify:t=>{const{r:n,g:e,b:i,a:s}=t;return s<1?`#${I[Math.round(n)]}${I[Math.round(e)]}${I[Math.round(i)]}${I[Math.round(s*255)]}`:`#${I[Math.round(n)]}${I[Math.round(e)]}${I[Math.round(i)]}`}},U={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const n=t.match(U.hueRe);if(n){const[,e,i]=n;switch(i){case"grad":return p.channel.clamp.h(parseFloat(e)*.9);case"rad":return p.channel.clamp.h(parseFloat(e)*180/Math.PI);case"turn":return p.channel.clamp.h(parseFloat(e)*360)}}return p.channel.clamp.h(parseFloat(t))},parse:t=>{const n=t.charCodeAt(0);if(n!==104&&n!==72)return;const e=t.match(U.re);if(!e)return;const[,i,s,o,a,r]=e;return ft.set({h:U._hue2deg(i),s:p.channel.clamp.s(parseFloat(s)),l:p.channel.clamp.l(parseFloat(o)),a:a?p.channel.clamp.a(r?parseFloat(a)/100:parseFloat(a)):1},t)},stringify:t=>{const{h:n,s:e,l:i,a:s}=t;return s<1?`hsla(${p.lang.round(n)}, ${p.lang.round(e)}%, ${p.lang.round(i)}%, ${s})`:`hsl(${p.lang.round(n)}, ${p.lang.round(e)}%, ${p.lang.round(i)}%)`}},W={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const n=W.colors[t];if(n)return Z.parse(n)},stringify:t=>{const n=Z.stringify(t);for(const e in W.colors)if(W.colors[e]===n)return e}},Q={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{const n=t.charCodeAt(0);if(n!==114&&n!==82)return;const e=t.match(Q.re);if(!e)return;const[,i,s,o,a,r,h,c,l]=e;return ft.set({r:p.channel.clamp.r(s?parseFloat(i)*2.55:parseFloat(i)),g:p.channel.clamp.g(a?parseFloat(o)*2.55:parseFloat(o)),b:p.channel.clamp.b(h?parseFloat(r)*2.55:parseFloat(r)),a:c?p.channel.clamp.a(l?parseFloat(c)/100:parseFloat(c)):1},t)},stringify:t=>{const{r:n,g:e,b:i,a:s}=t;return s<1?`rgba(${p.lang.round(n)}, ${p.lang.round(e)}, ${p.lang.round(i)}, ${p.lang.round(s)})`:`rgb(${p.lang.round(n)}, ${p.lang.round(e)}, ${p.lang.round(i)})`}},F={format:{keyword:W,hex:Z,rgb:Q,rgba:Q,hsl:U,hsla:U},parse:t=>{if(typeof t!="string")return t;const n=Z.parse(t)||Q.parse(t)||U.parse(t)||W.parse(t);if(n)return n;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(T.HSL)||t.data.r===void 0?U.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?Q.stringify(t):Z.stringify(t)},Dt=(t,n)=>{const e=F.parse(t);for(const i in n)e[i]=p.channel.clamp[i](n[i]);return F.stringify(e)},Sn=(t,n,e=0,i=1)=>{if(typeof t!="number")return Dt(t,{a:n});const s=ft.set({r:p.channel.clamp.r(t),g:p.channel.clamp.g(n),b:p.channel.clamp.b(e),a:p.channel.clamp.a(i)});return F.stringify(s)},Tn=t=>{const{r:n,g:e,b:i}=F.parse(t),s=.2126*p.channel.toLinear(n)+.7152*p.channel.toLinear(e)+.0722*p.channel.toLinear(i);return p.lang.round(s)},Nn=t=>Tn(t)>=.5,Ci=t=>!Nn(t),Ot=(t,n,e)=>{const i=F.parse(t),s=i[n],o=p.channel.clamp[n](s+e);return s!==o&&(i[n]=o),F.stringify(i)},Ri=(t,n)=>Ot(t,"l",n),Li=(t,n)=>Ot(t,"l",-n),Pi=(t,n)=>{const e=F.parse(t),i={};for(const s in n)n[s]&&(i[s]=e[s]+n[s]);return Dt(t,i)},Mn=(t,n,e=50)=>{const{r:i,g:s,b:o,a}=F.parse(t),{r,g:h,b:c,a:l}=F.parse(n),f=e/100,u=f*2-1,_=a-l,g=((u*_===-1?u:(u+_)/(1+u*_))+1)/2,A=1-g,m=i*g+r*A,v=s*g+h*A,w=o*g+c*A,b=a*f+l*(1-f);return Sn(m,v,w,b)},Fi=(t,n=100)=>{const e=F.parse(t);return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,Mn(e,t,n)};var At="http://www.w3.org/1999/xhtml",Lt={svg:"http://www.w3.org/2000/svg",xhtml:At,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Gt(t){var n=t+="",e=n.indexOf(":");return e>=0&&(n=t.slice(0,e))!=="xmlns"&&(t=t.slice(e+1)),Lt.hasOwnProperty(n)?{space:Lt[n],local:t}:t}function En(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===At&&n.documentElement.namespaceURI===At?n.createElement(t):n.createElementNS(e,t)}}function Cn(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Vt(t){var n=Gt(t);return(n.local?Cn:En)(n)}function Rn(){}function Ut(t){return t==null?Rn:function(){return this.querySelector(t)}}function Ln(t){typeof t!="function"&&(t=Ut(t));for(var n=this._groups,e=n.length,i=new Array(e),s=0;s<e;++s)for(var o=n[s],a=o.length,r=i[s]=new Array(a),h,c,l=0;l<a;++l)(h=o[l])&&(c=t.call(h,h.__data__,l,o))&&("__data__"in h&&(c.__data__=h.__data__),r[l]=c);return new E(i,this._parents)}function Xt(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Pn(){return[]}function Fn(t){return t==null?Pn:function(){return this.querySelectorAll(t)}}function qn(t){return function(){return Xt(t.apply(this,arguments))}}function Bn(t){typeof t=="function"?t=qn(t):t=Fn(t);for(var n=this._groups,e=n.length,i=[],s=[],o=0;o<e;++o)for(var a=n[o],r=a.length,h,c=0;c<r;++c)(h=a[c])&&(i.push(t.call(h,h.__data__,c,a)),s.push(h));return new E(i,s)}function Hn(t){return function(){return this.matches(t)}}function Yt(t){return function(n){return n.matches(t)}}var zn=Array.prototype.find;function In(t){return function(){return zn.call(this.children,t)}}function Dn(){return this.firstElementChild}function On(t){return this.select(t==null?Dn:In(typeof t=="function"?t:Yt(t)))}var Gn=Array.prototype.filter;function Vn(){return Array.from(this.children)}function Un(t){return function(){return Gn.call(this.children,t)}}function Xn(t){return this.selectAll(t==null?Vn:Un(typeof t=="function"?t:Yt(t)))}function Yn(t){typeof t!="function"&&(t=Hn(t));for(var n=this._groups,e=n.length,i=new Array(e),s=0;s<e;++s)for(var o=n[s],a=o.length,r=i[s]=[],h,c=0;c<a;++c)(h=o[c])&&t.call(h,h.__data__,c,o)&&r.push(h);return new E(i,this._parents)}function Kt(t){return new Array(t.length)}function Kn(){return new E(this._enter||this._groups.map(Kt),this._parents)}function ht(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}ht.prototype={constructor:ht,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function Zn(t){return function(){return t}}function Qn(t,n,e,i,s,o){for(var a=0,r,h=n.length,c=o.length;a<c;++a)(r=n[a])?(r.__data__=o[a],i[a]=r):e[a]=new ht(t,o[a]);for(;a<h;++a)(r=n[a])&&(s[a]=r)}function Jn(t,n,e,i,s,o,a){var r,h,c=new Map,l=n.length,f=o.length,u=new Array(l),_;for(r=0;r<l;++r)(h=n[r])&&(u[r]=_=a.call(h,h.__data__,r,n)+"",c.has(_)?s[r]=h:c.set(_,h));for(r=0;r<f;++r)_=a.call(t,o[r],r,o)+"",(h=c.get(_))?(i[r]=h,h.__data__=o[r],c.delete(_)):e[r]=new ht(t,o[r]);for(r=0;r<l;++r)(h=n[r])&&c.get(u[r])===h&&(s[r]=h)}function Wn(t){return t.__data__}function jn(t,n){if(!arguments.length)return Array.from(this,Wn);var e=n?Jn:Qn,i=this._parents,s=this._groups;typeof t!="function"&&(t=Zn(t));for(var o=s.length,a=new Array(o),r=new Array(o),h=new Array(o),c=0;c<o;++c){var l=i[c],f=s[c],u=f.length,_=te(t.call(l,l&&l.__data__,c,i)),y=_.length,g=r[c]=new Array(y),A=a[c]=new Array(y),m=h[c]=new Array(u);e(l,f,g,A,m,_,n);for(var v=0,w=0,b,$;v<y;++v)if(b=g[v]){for(v>=w&&(w=v+1);!($=A[w])&&++w<y;);b._next=$||null}}return a=new E(a,i),a._enter=r,a._exit=h,a}function te(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function ne(){return new E(this._exit||this._groups.map(Kt),this._parents)}function ee(t,n,e){var i=this.enter(),s=this,o=this.exit();return typeof t=="function"?(i=t(i),i&&(i=i.selection())):i=i.append(t+""),n!=null&&(s=n(s),s&&(s=s.selection())),e==null?o.remove():e(o),i&&s?i.merge(s).order():s}function ie(t){for(var n=t.selection?t.selection():t,e=this._groups,i=n._groups,s=e.length,o=i.length,a=Math.min(s,o),r=new Array(s),h=0;h<a;++h)for(var c=e[h],l=i[h],f=c.length,u=r[h]=new Array(f),_,y=0;y<f;++y)(_=c[y]||l[y])&&(u[y]=_);for(;h<s;++h)r[h]=e[h];return new E(r,this._parents)}function se(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var i=t[n],s=i.length-1,o=i[s],a;--s>=0;)(a=i[s])&&(o&&a.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(a,o),o=a);return this}function re(t){t||(t=oe);function n(f,u){return f&&u?t(f.__data__,u.__data__):!f-!u}for(var e=this._groups,i=e.length,s=new Array(i),o=0;o<i;++o){for(var a=e[o],r=a.length,h=s[o]=new Array(r),c,l=0;l<r;++l)(c=a[l])&&(h[l]=c);h.sort(n)}return new E(s,this._parents).order()}function oe(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function ae(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function he(){return Array.from(this)}function ce(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var i=t[n],s=0,o=i.length;s<o;++s){var a=i[s];if(a)return a}return null}function le(){let t=0;for(const n of this)++t;return t}function ue(){return!this.node()}function _e(t){for(var n=this._groups,e=0,i=n.length;e<i;++e)for(var s=n[e],o=0,a=s.length,r;o<a;++o)(r=s[o])&&t.call(r,r.__data__,o,s);return this}function fe(t){return function(){this.removeAttribute(t)}}function pe(t){return function(){this.removeAttributeNS(t.space,t.local)}}function de(t,n){return function(){this.setAttribute(t,n)}}function ye(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function ge(t,n){return function(){var e=n.apply(this,arguments);e==null?this.removeAttribute(t):this.setAttribute(t,e)}}function me(t,n){return function(){var e=n.apply(this,arguments);e==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function xe(t,n){var e=Gt(t);if(arguments.length<2){var i=this.node();return e.local?i.getAttributeNS(e.space,e.local):i.getAttribute(e)}return this.each((n==null?e.local?pe:fe:typeof n=="function"?e.local?me:ge:e.local?ye:de)(e,n))}function Zt(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function be(t){return function(){this.style.removeProperty(t)}}function ve(t,n,e){return function(){this.style.setProperty(t,n,e)}}function we(t,n,e){return function(){var i=n.apply(this,arguments);i==null?this.style.removeProperty(t):this.style.setProperty(t,i,e)}}function ke(t,n,e){return arguments.length>1?this.each((n==null?be:typeof n=="function"?we:ve)(t,n,e??"")):Ae(this.node(),t)}function Ae(t,n){return t.style.getPropertyValue(n)||Zt(t).getComputedStyle(t,null).getPropertyValue(n)}function $e(t){return function(){delete this[t]}}function Se(t,n){return function(){this[t]=n}}function Te(t,n){return function(){var e=n.apply(this,arguments);e==null?delete this[t]:this[t]=e}}function Ne(t,n){return arguments.length>1?this.each((n==null?$e:typeof n=="function"?Te:Se)(t,n)):this.node()[t]}function Qt(t){return t.trim().split(/^|\s+/)}function St(t){return t.classList||new Jt(t)}function Jt(t){this._node=t,this._names=Qt(t.getAttribute("class")||"")}Jt.prototype={add:function(t){var n=this._names.indexOf(t);n<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Wt(t,n){for(var e=St(t),i=-1,s=n.length;++i<s;)e.add(n[i])}function jt(t,n){for(var e=St(t),i=-1,s=n.length;++i<s;)e.remove(n[i])}function Me(t){return function(){Wt(this,t)}}function Ee(t){return function(){jt(this,t)}}function Ce(t,n){return function(){(n.apply(this,arguments)?Wt:jt)(this,t)}}function Re(t,n){var e=Qt(t+"");if(arguments.length<2){for(var i=St(this.node()),s=-1,o=e.length;++s<o;)if(!i.contains(e[s]))return!1;return!0}return this.each((typeof n=="function"?Ce:n?Me:Ee)(e,n))}function Le(){this.textContent=""}function Pe(t){return function(){this.textContent=t}}function Fe(t){return function(){var n=t.apply(this,arguments);this.textContent=n??""}}function qe(t){return arguments.length?this.each(t==null?Le:(typeof t=="function"?Fe:Pe)(t)):this.node().textContent}function Be(){this.innerHTML=""}function He(t){return function(){this.innerHTML=t}}function ze(t){return function(){var n=t.apply(this,arguments);this.innerHTML=n??""}}function Ie(t){return arguments.length?this.each(t==null?Be:(typeof t=="function"?ze:He)(t)):this.node().innerHTML}function De(){this.nextSibling&&this.parentNode.appendChild(this)}function Oe(){return this.each(De)}function Ge(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ve(){return this.each(Ge)}function Ue(t){var n=typeof t=="function"?t:Vt(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function Xe(){return null}function Ye(t,n){var e=typeof t=="function"?t:Vt(t),i=n==null?Xe:typeof n=="function"?n:Ut(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),i.apply(this,arguments)||null)})}function Ke(){var t=this.parentNode;t&&t.removeChild(this)}function Ze(){return this.each(Ke)}function Qe(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Je(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function We(t){return this.select(t?Je:Qe)}function je(t){return arguments.length?this.property("__data__",t):this.node().__data__}function ti(t){return function(n){t.call(this,n,this.__data__)}}function ni(t){return t.trim().split(/^|\s+/).map(function(n){var e="",i=n.indexOf(".");return i>=0&&(e=n.slice(i+1),n=n.slice(0,i)),{type:n,name:e}})}function ei(t){return function(){var n=this.__on;if(n){for(var e=0,i=-1,s=n.length,o;e<s;++e)o=n[e],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):n[++i]=o;++i?n.length=i:delete this.__on}}}function ii(t,n,e){return function(){var i=this.__on,s,o=ti(n);if(i){for(var a=0,r=i.length;a<r;++a)if((s=i[a]).type===t.type&&s.name===t.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=o,s.options=e),s.value=n;return}}this.addEventListener(t.type,o,e),s={type:t.type,name:t.name,value:n,listener:o,options:e},i?i.push(s):this.__on=[s]}}function si(t,n,e){var i=ni(t+""),s,o=i.length,a;if(arguments.length<2){var r=this.node().__on;if(r){for(var h=0,c=r.length,l;h<c;++h)for(s=0,l=r[h];s<o;++s)if((a=i[s]).type===l.type&&a.name===l.name)return l.value}return}for(r=n?ii:ei,s=0;s<o;++s)this.each(r(i[s],n,e));return this}function tn(t,n,e){var i=Zt(t),s=i.CustomEvent;typeof s=="function"?s=new s(n,e):(s=i.document.createEvent("Event"),e?(s.initEvent(n,e.bubbles,e.cancelable),s.detail=e.detail):s.initEvent(n,!1,!1)),t.dispatchEvent(s)}function ri(t,n){return function(){return tn(this,t,n)}}function oi(t,n){return function(){return tn(this,t,n.apply(this,arguments))}}function ai(t,n){return this.each((typeof n=="function"?oi:ri)(t,n))}function*hi(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var i=t[n],s=0,o=i.length,a;s<o;++s)(a=i[s])&&(yield a)}var nn=[null];function E(t,n){this._groups=t,this._parents=n}function ci(){return this}E.prototype={constructor:E,select:Ln,selectAll:Bn,selectChild:On,selectChildren:Xn,filter:Yn,data:jn,enter:Kn,exit:ne,join:ee,merge:ie,selection:ci,order:se,sort:re,call:ae,nodes:he,node:ce,size:le,empty:ue,each:_e,attr:xe,style:ke,property:Ne,classed:Re,text:qe,html:Ie,raise:Oe,lower:Ve,append:Ue,insert:Ye,remove:Ze,clone:We,datum:je,on:si,dispatch:ai,[Symbol.iterator]:hi};function qi(t){return typeof t=="string"?new E([[document.querySelector(t)]],[document.documentElement]):new E([[t]],nn)}var li=0;function Pt(){this._="@"+(++li).toString(36)}Pt.prototype={constructor:Pt,get:function(t){for(var n=this._;!(n in t);)if(!(t=t.parentNode))return;return t[n]},set:function(t,n){return t[this._]=n},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};function Bi(t){return typeof t=="string"?new E([document.querySelectorAll(t)],[document.documentElement]):new E([Xt(t)],nn)}const J=Math.PI,$t=2*J,V=1e-6,ui=$t-V;function en(t){this._+=t[0];for(let n=1,e=t.length;n<e;++n)this._+=arguments[n]+t[n]}function _i(t){let n=Math.floor(t);if(!(n>=0))throw new Error(`invalid digits: ${t}`);if(n>15)return en;const e=10**n;return function(i){this._+=i[0];for(let s=1,o=i.length;s<o;++s)this._+=Math.round(arguments[s]*e)/e+i[s]}}function sn(t,n,e,i){return t===e&&n===i}function fi(t){const n=Math.floor(t);if(!(n<=15))return sn;const e=10**n,i=function(s){return Math.round(s*e)};return function(s,o,a,r){return i(s)===i(a)&&i(o)===i(r)}}class pi{constructor(n){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=n==null?en:_i(n),this._equal=n==null?sn:fi(n)}moveTo(n,e){this._append`M${this._x0=this._x1=+n},${this._y0=this._y1=+e}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(n,e){this._append`L${this._x1=+n},${this._y1=+e}`}quadraticCurveTo(n,e,i,s){this._append`Q${+n},${+e},${this._x1=+i},${this._y1=+s}`}bezierCurveTo(n,e,i,s,o,a){this._append`C${+n},${+e},${+i},${+s},${this._x1=+o},${this._y1=+a}`}arcTo(n,e,i,s,o){if(n=+n,e=+e,i=+i,s=+s,o=+o,o<0)throw new Error(`negative radius: ${o}`);let a=this._x1,r=this._y1,h=i-n,c=s-e,l=a-n,f=r-e,u=l*l+f*f;if(this._x1===null)this._append`M${this._x1=n},${this._y1=e}`;else if(u>V)if(!(Math.abs(f*h-c*l)>V)||!o)this._append`L${this._x1=n},${this._y1=e}`;else{let _=i-a,y=s-r,g=h*h+c*c,A=_*_+y*y,m=Math.sqrt(g),v=Math.sqrt(u),w=o*Math.tan((J-Math.acos((g+u-A)/(2*m*v)))/2),b=w/v,$=w/m;Math.abs(b-1)>V&&this._append`L${n+b*l},${e+b*f}`,this._append`A${o},${o},0,0,${+(f*_>l*y)},${this._x1=n+$*h},${this._y1=e+$*c}`}}arc(n,e,i,s,o,a){if(n=+n,e=+e,i=+i,a=!!a,i<0)throw new Error(`negative radius: ${i}`);let r=i*Math.cos(s),h=i*Math.sin(s),c=n+r,l=e+h,f=1^a,u=a?s-o:o-s;if(this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>V||Math.abs(this._y1-l)>V)&&this._append`L${c},${l}`,!!i){if(u<0&&(u=u%$t+$t),u>ui)this._append`A${i},${i},0,1,${f},${n-r},${e-h}A${i},${i},0,1,${f},${this._x1=c},${this._y1=l}`;else if(u>V){const _=n+i*Math.cos(o),y=e+i*Math.sin(o);if(u>=J&&this._equal(c,l,_,y)){u/=2;let g=s+u;this._append`A${i},${i},0,${+(u>=J)},${f},${n+i*Math.cos(g)},${e+i*Math.sin(g)}`}this._append`A${i},${i},0,${+(u>=J)},${f},${this._x1=_},${this._y1=y}`}}}rect(n,e,i,s){this._append`M${this._x0=this._x1=+n},${this._y0=this._y1=+e}h${i=+i}v${+s}h${-i}Z`}toString(){return this._}}function k(t){return function(){return t}}const Ft=Math.abs,S=Math.atan2,G=Math.cos,di=Math.max,wt=Math.min,P=Math.sin,K=Math.sqrt,N=1e-12,j=Math.PI,ct=j/2,at=2*j;function yi(t){return t>1?0:t<-1?j:Math.acos(t)}function qt(t){return t>=1?ct:t<=-1?-ct:Math.asin(t)}function rn(t){let n=3;return t.digits=function(e){if(!arguments.length)return n;if(e==null)n=null;else{const i=Math.floor(e);if(!(i>=0))throw new RangeError(`invalid digits: ${e}`);n=i}return t},()=>new pi(n)}function gi(t){return t.innerRadius}function mi(t){return t.outerRadius}function xi(t){return t.startAngle}function bi(t){return t.endAngle}function vi(t){return t&&t.padAngle}function wi(t,n,e,i,s,o,a,r){var h=e-t,c=i-n,l=a-s,f=r-o,u=f*h-l*c;if(!(u*u<N))return u=(l*(n-o)-f*(t-s))/u,[t+u*h,n+u*c]}function rt(t,n,e,i,s,o,a){var r=t-e,h=n-i,c=(a?o:-o)/K(r*r+h*h),l=c*h,f=-c*r,u=t+l,_=n+f,y=e+l,g=i+f,A=(u+y)/2,m=(_+g)/2,v=y-u,w=g-_,b=v*v+w*w,$=s-o,M=u*g-y*_,B=(w<0?-1:1)*K(di(0,$*$*b-M*M)),H=(M*w-v*B)/b,z=(-M*v-w*B)/b,L=(M*w+v*B)/b,C=(-M*v+w*B)/b,R=H-A,d=z-m,x=L-A,O=C-m;return R*R+d*d>x*x+O*O&&(H=L,z=C),{cx:H,cy:z,x01:-l,y01:-f,x11:H*(s/$-1),y11:z*(s/$-1)}}function Hi(){var t=gi,n=mi,e=k(0),i=null,s=xi,o=bi,a=vi,r=null,h=rn(c);function c(){var l,f,u=+t.apply(this,arguments),_=+n.apply(this,arguments),y=s.apply(this,arguments)-ct,g=o.apply(this,arguments)-ct,A=Ft(g-y),m=g>y;if(r||(r=l=h()),_<u&&(f=_,_=u,u=f),!(_>N))r.moveTo(0,0);else if(A>at-N)r.moveTo(_*G(y),_*P(y)),r.arc(0,0,_,y,g,!m),u>N&&(r.moveTo(u*G(g),u*P(g)),r.arc(0,0,u,g,y,m));else{var v=y,w=g,b=y,$=g,M=A,B=A,H=a.apply(this,arguments)/2,z=H>N&&(i?+i.apply(this,arguments):K(u*u+_*_)),L=wt(Ft(_-u)/2,+e.apply(this,arguments)),C=L,R=L,d,x;if(z>N){var O=qt(z/u*P(H)),tt=qt(z/_*P(H));(M-=O*2)>N?(O*=m?1:-1,b+=O,$-=O):(M=0,b=$=(y+g)/2),(B-=tt*2)>N?(tt*=m?1:-1,v+=tt,w-=tt):(B=0,v=w=(y+g)/2)}var X=_*G(v),Y=_*P(v),nt=u*G($),et=u*P($);if(L>N){var it=_*G(w),st=_*P(w),yt=u*G(b),gt=u*P(b),q;if(A<j)if(q=wi(X,Y,yt,gt,it,st,nt,et)){var mt=X-q[0],xt=Y-q[1],bt=it-q[0],vt=st-q[1],Ct=1/P(yi((mt*bt+xt*vt)/(K(mt*mt+xt*xt)*K(bt*bt+vt*vt)))/2),Rt=K(q[0]*q[0]+q[1]*q[1]);C=wt(L,(u-Rt)/(Ct-1)),R=wt(L,(_-Rt)/(Ct+1))}else C=R=0}B>N?R>N?(d=rt(yt,gt,X,Y,_,R,m),x=rt(it,st,nt,et,_,R,m),r.moveTo(d.cx+d.x01,d.cy+d.y01),R<L?r.arc(d.cx,d.cy,R,S(d.y01,d.x01),S(x.y01,x.x01),!m):(r.arc(d.cx,d.cy,R,S(d.y01,d.x01),S(d.y11,d.x11),!m),r.arc(0,0,_,S(d.cy+d.y11,d.cx+d.x11),S(x.cy+x.y11,x.cx+x.x11),!m),r.arc(x.cx,x.cy,R,S(x.y11,x.x11),S(x.y01,x.x01),!m))):(r.moveTo(X,Y),r.arc(0,0,_,v,w,!m)):r.moveTo(X,Y),!(u>N)||!(M>N)?r.lineTo(nt,et):C>N?(d=rt(nt,et,it,st,u,-C,m),x=rt(X,Y,yt,gt,u,-C,m),r.lineTo(d.cx+d.x01,d.cy+d.y01),C<L?r.arc(d.cx,d.cy,C,S(d.y01,d.x01),S(x.y01,x.x01),!m):(r.arc(d.cx,d.cy,C,S(d.y01,d.x01),S(d.y11,d.x11),!m),r.arc(0,0,u,S(d.cy+d.y11,d.cx+d.x11),S(x.cy+x.y11,x.cx+x.x11),m),r.arc(x.cx,x.cy,C,S(x.y11,x.x11),S(x.y01,x.x01),!m))):r.arc(0,0,u,$,b,m)}if(r.closePath(),l)return r=null,l+""||null}return c.centroid=function(){var l=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,f=(+s.apply(this,arguments)+ +o.apply(this,arguments))/2-j/2;return[G(f)*l,P(f)*l]},c.innerRadius=function(l){return arguments.length?(t=typeof l=="function"?l:k(+l),c):t},c.outerRadius=function(l){return arguments.length?(n=typeof l=="function"?l:k(+l),c):n},c.cornerRadius=function(l){return arguments.length?(e=typeof l=="function"?l:k(+l),c):e},c.padRadius=function(l){return arguments.length?(i=l==null?null:typeof l=="function"?l:k(+l),c):i},c.startAngle=function(l){return arguments.length?(s=typeof l=="function"?l:k(+l),c):s},c.endAngle=function(l){return arguments.length?(o=typeof l=="function"?l:k(+l),c):o},c.padAngle=function(l){return arguments.length?(a=typeof l=="function"?l:k(+l),c):a},c.context=function(l){return arguments.length?(r=l??null,c):r},c}function on(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function an(t){this._context=t}an.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n);break}}};function ki(t){return new an(t)}function Ai(t){return t[0]}function $i(t){return t[1]}function zi(t,n){var e=k(!0),i=null,s=ki,o=null,a=rn(r);t=typeof t=="function"?t:t===void 0?Ai:k(t),n=typeof n=="function"?n:n===void 0?$i:k(n);function r(h){var c,l=(h=on(h)).length,f,u=!1,_;for(i==null&&(o=s(_=a())),c=0;c<=l;++c)!(c<l&&e(f=h[c],c,h))===u&&((u=!u)?o.lineStart():o.lineEnd()),u&&o.point(+t(f,c,h),+n(f,c,h));if(_)return o=null,_+""||null}return r.x=function(h){return arguments.length?(t=typeof h=="function"?h:k(+h),r):t},r.y=function(h){return arguments.length?(n=typeof h=="function"?h:k(+h),r):n},r.defined=function(h){return arguments.length?(e=typeof h=="function"?h:k(!!h),r):e},r.curve=function(h){return arguments.length?(s=h,i!=null&&(o=s(i)),r):s},r.context=function(h){return arguments.length?(h==null?i=o=null:o=s(i=h),r):i},r}function Si(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function Ti(t){return t}function Ii(){var t=Ti,n=Si,e=null,i=k(0),s=k(at),o=k(0);function a(r){var h,c=(r=on(r)).length,l,f,u=0,_=new Array(c),y=new Array(c),g=+i.apply(this,arguments),A=Math.min(at,Math.max(-at,s.apply(this,arguments)-g)),m,v=Math.min(Math.abs(A)/c,o.apply(this,arguments)),w=v*(A<0?-1:1),b;for(h=0;h<c;++h)(b=y[_[h]=h]=+t(r[h],h,r))>0&&(u+=b);for(n!=null?_.sort(function($,M){return n(y[$],y[M])}):e!=null&&_.sort(function($,M){return e(r[$],r[M])}),h=0,f=u?(A-c*w)/u:0;h<c;++h,g=m)l=_[h],b=y[l],m=g+(b>0?b*f:0)+w,y[l]={data:r[l],index:h,value:b,startAngle:g,endAngle:m,padAngle:v};return y}return a.value=function(r){return arguments.length?(t=typeof r=="function"?r:k(+r),a):t},a.sortValues=function(r){return arguments.length?(n=r,e=null,a):n},a.sort=function(r){return arguments.length?(e=r,n=null,a):e},a.startAngle=function(r){return arguments.length?(i=typeof r=="function"?r:k(+r),a):i},a.endAngle=function(r){return arguments.length?(s=typeof r=="function"?r:k(+r),a):s},a.padAngle=function(r){return arguments.length?(o=typeof r=="function"?r:k(+r),a):o},a}class hn{constructor(n,e){this._context=n,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(n,e){switch(n=+n,e=+e,this._point){case 0:{this._point=1,this._line?this._context.lineTo(n,e):this._context.moveTo(n,e);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+n)/2,this._y0,this._x0,e,n,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,n,this._y0,n,e);break}}this._x0=n,this._y0=e}}function Di(t){return new hn(t,!0)}function Oi(t){return new hn(t,!1)}function D(){}function lt(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function pt(t){this._context=t}pt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:lt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:lt(this,t,n);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};function Gi(t){return new pt(t)}function cn(t){this._context=t}cn.prototype={areaStart:D,areaEnd:D,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:lt(this,t,n);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};function Vi(t){return new cn(t)}function ln(t){this._context=t}ln.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(e,i):this._context.moveTo(e,i);break;case 3:this._point=4;default:lt(this,t,n);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};function Ui(t){return new ln(t)}function un(t,n){this._basis=new pt(t),this._beta=n}un.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var i=t[0],s=n[0],o=t[e]-i,a=n[e]-s,r=-1,h;++r<=e;)h=r/e,this._basis.point(this._beta*t[r]+(1-this._beta)*(i+h*o),this._beta*n[r]+(1-this._beta)*(s+h*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};var Xi=(function t(n){function e(i){return n===1?new pt(i):new un(i,n)}return e.beta=function(i){return t(+i)},e})(.85);function ut(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function Tt(t,n){this._context=t,this._k=(1-n)/6}Tt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:ut(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:ut(this,t,n);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Yi=(function t(n){function e(i){return new Tt(i,n)}return e.tension=function(i){return t(+i)},e})(0);function Nt(t,n){this._context=t,this._k=(1-n)/6}Nt.prototype={areaStart:D,areaEnd:D,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:ut(this,t,n);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Ki=(function t(n){function e(i){return new Nt(i,n)}return e.tension=function(i){return t(+i)},e})(0);function Mt(t,n){this._context=t,this._k=(1-n)/6}Mt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ut(this,t,n);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Zi=(function t(n){function e(i){return new Mt(i,n)}return e.tension=function(i){return t(+i)},e})(0);function Et(t,n,e){var i=t._x1,s=t._y1,o=t._x2,a=t._y2;if(t._l01_a>N){var r=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,h=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*r-t._x0*t._l12_2a+t._x2*t._l01_2a)/h,s=(s*r-t._y0*t._l12_2a+t._y2*t._l01_2a)/h}if(t._l23_a>N){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*c+t._x1*t._l23_2a-n*t._l12_2a)/l,a=(a*c+t._y1*t._l23_2a-e*t._l12_2a)/l}t._context.bezierCurveTo(i,s,o,a,t._x2,t._y2)}function _n(t,n){this._context=t,this._alpha=n}_n.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,i=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:Et(this,t,n);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Qi=(function t(n){function e(i){return n?new _n(i,n):new Tt(i,0)}return e.alpha=function(i){return t(+i)},e})(.5);function fn(t,n){this._context=t,this._alpha=n}fn.prototype={areaStart:D,areaEnd:D,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,i=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Et(this,t,n);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Ji=(function t(n){function e(i){return n?new fn(i,n):new Nt(i,0)}return e.alpha=function(i){return t(+i)},e})(.5);function pn(t,n){this._context=t,this._alpha=n}pn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,i=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Et(this,t,n);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Wi=(function t(n){function e(i){return n?new pn(i,n):new Mt(i,0)}return e.alpha=function(i){return t(+i)},e})(.5);function dn(t){this._context=t}dn.prototype={areaStart:D,areaEnd:D,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,n){t=+t,n=+n,this._point?this._context.lineTo(t,n):(this._point=1,this._context.moveTo(t,n))}};function ji(t){return new dn(t)}function Bt(t){return t<0?-1:1}function Ht(t,n,e){var i=t._x1-t._x0,s=n-t._x1,o=(t._y1-t._y0)/(i||s<0&&-0),a=(e-t._y1)/(s||i<0&&-0),r=(o*s+a*i)/(i+s);return(Bt(o)+Bt(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(r))||0}function zt(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function kt(t,n,e){var i=t._x0,s=t._y0,o=t._x1,a=t._y1,r=(o-i)/3;t._context.bezierCurveTo(i+r,s+r*n,o-r,a-r*e,o,a)}function _t(t){this._context=t}_t.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:kt(this,this._t0,zt(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){var e=NaN;if(t=+t,n=+n,!(t===this._x1&&n===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,kt(this,zt(this,e=Ht(this,t,n)),e);break;default:kt(this,this._t0,e=Ht(this,t,n));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=e}}};function yn(t){this._context=new gn(t)}(yn.prototype=Object.create(_t.prototype)).point=function(t,n){_t.prototype.point.call(this,n,t)};function gn(t){this._context=t}gn.prototype={moveTo:function(t,n){this._context.moveTo(n,t)},closePath:function(){this._context.closePath()},lineTo:function(t,n){this._context.lineTo(n,t)},bezierCurveTo:function(t,n,e,i,s,o){this._context.bezierCurveTo(n,t,i,e,o,s)}};function ts(t){return new _t(t)}function ns(t){return new yn(t)}function mn(t){this._context=t}mn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,n=this._y,e=t.length;if(e)if(this._line?this._context.lineTo(t[0],n[0]):this._context.moveTo(t[0],n[0]),e===2)this._context.lineTo(t[1],n[1]);else for(var i=It(t),s=It(n),o=0,a=1;a<e;++o,++a)this._context.bezierCurveTo(i[0][o],s[0][o],i[1][o],s[1][o],t[a],n[a]);(this._line||this._line!==0&&e===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,n){this._x.push(+t),this._y.push(+n)}};function It(t){var n,e=t.length-1,i,s=new Array(e),o=new Array(e),a=new Array(e);for(s[0]=0,o[0]=2,a[0]=t[0]+2*t[1],n=1;n<e-1;++n)s[n]=1,o[n]=4,a[n]=4*t[n]+2*t[n+1];for(s[e-1]=2,o[e-1]=7,a[e-1]=8*t[e-1]+t[e],n=1;n<e;++n)i=s[n]/o[n-1],o[n]-=i,a[n]-=i*a[n-1];for(s[e-1]=a[e-1]/o[e-1],n=e-2;n>=0;--n)s[n]=(a[n]-s[n+1])/o[n];for(o[e-1]=(t[e]+s[e-1])/2,n=0;n<e-1;++n)o[n]=2*t[n+1]-s[n+1];return[s,o]}function es(t){return new mn(t)}function dt(t,n){this._context=t,this._t=n}dt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}break}}this._x=t,this._y=n}};function is(t){return new dt(t,.5)}function ss(t){return new dt(t,0)}function rs(t){return new dt(t,1)}function os(t){for(var n=[],e=1;e<arguments.length;e++)n[e-1]=arguments[e];var i=Array.from(typeof t=="string"?[t]:t);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var s=i.reduce(function(r,h){var c=h.match(/\n([\t ]+|(?!\s).)/g);return c?r.concat(c.map(function(l){var f,u;return(u=(f=l.match(/[\t ]/g))===null||f===void 0?void 0:f.length)!==null&&u!==void 0?u:0})):r},[]);if(s.length){var o=new RegExp(`
2
+ [ ]{`.concat(Math.min.apply(Math,s),"}"),"g");i=i.map(function(r){return r.replace(o,`
3
+ `)})}i[0]=i[0].replace(/^\r?\n/,"");var a=i[0];return n.forEach(function(r,h){var c=a.match(/(?:^|\n)( *)$/),l=c?c[1]:"",f=r;typeof r=="string"&&r.includes(`
4
+ `)&&(f=String(r).split(`
5
+ `).map(function(u,_){return _===0?u:"".concat(l).concat(u)}).join(`
6
+ `)),a+=f+i[h+1]}),a}export{Oi as A,Di as B,F as C,Ui as D,Vi as E,Pi as F,Fi as G,Ot as H,Bi as I,p as U,Hi as a,Gi as b,Ri as c,Ei as d,Li as e,os as f,ss as g,rs as h,Ci as i,is as j,ts as k,zi as l,ns as m,es as n,ji as o,Ii as p,ki as q,Sn as r,qi as s,Qi as t,Wi as u,Ji as v,Yi as w,Zi as x,Ki as y,Xi as z};
@@ -0,0 +1 @@
1
+ import{aa as t,r as i}from"../datalayer-app-main.js";import{I as l,r}from"./JupyterLexicalExtension-DS8J9r_J.js";import{$ as k,a as q,b as v,c as w,d as y,e as z,C as F,f as G,g as H}from"./JupyterLexicalExtension-DS8J9r_J.js";import"./NotebookSkeleton-D-wj2esi.js";import"./Avatar-DvWrRG_3.js";import"./url-C6fJII94.js";import"./isSymbol-BLtK9CV6.js";import"./toNumber-B1wj8-wx.js";import"./StrikethroughIcon-CbiEuPT-.js";import"./VideoIcon-C3wcjUxu.js";import"./LinkIcon-BtBG9K47.js";import"./Toolbar-CalSw9_B.js";import"./KebabHorizontalIcon-D6AY8pIS.js";import"./ArrowUpIcon-y5enrVH9.js";import"./SortDescIcon-Qif6E10I.js";import"./PaintbrushIcon-CFBHU-3l.js";import"./PrismCss-DQMhvzcI.js";import"./Output-UPeDwjyI.js";import"./index-CXEjqez2.js";import"./hoverbox-CStlKQWE.js";import"./index-DK_juJTN.js";import"./index-BqnIBWZ9.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-DjmHhd-b.js";import"./d3-color-Jd8hXty2.js";import"./index-BrUAt6vF.js";import"./index-DYBgss-E.js";import"./RestartIcon-Ca6_HoK0.js";import"./LexicalToolRegistry-Cx7dBNnA.js";function R(){const[o]=t();return i.useEffect(()=>r(o),[o]),null}export{k as $createCollapsibleContainerNode,q as $createCollapsibleContentNode,v as $createCollapsibleTitleNode,w as $isCollapsibleContainerNode,y as $isCollapsibleContentNode,z as $isCollapsibleTitleNode,F as CollapsibleContainerNode,G as CollapsibleContentNode,R as CollapsiblePlugin,H as CollapsibleTitleNode,l as INSERT_COLLAPSIBLE_COMMAND,R as default};
@@ -1,4 +1,4 @@
1
- import{d as V}from"./LexicalToolRegistry-Cx7dBNnA.js";import{D as Yl,a as Gl,b as Zl,e as Kl,c as Ql,g as ec,i as tc,f as nc,l as sc,h as oc,j as rc,k as ic,m as ac,n as lc,r as cc,o as uc,p as dc,q as pc,s as fc,t as mc,v as gc,w as hc,x as bc,y as yc,z as xc,u as Ec}from"./LexicalToolRegistry-Cx7dBNnA.js";import{_ as qt,E as Mn,G as Dn,H as Bn,K as me,M as Wt,O as ot,P as rt,Q as jn,R as Un,S as Xt,U as Fn,V as Jt,W as zn,X as Hn,Y as Vt,Z as Yt,a0 as qn,a1 as Wn,a2 as Xn,a3 as Jn,C as Gt,a4 as Vn,a5 as Zt,a6 as Yn,a7 as Gn,a8 as Ce,a9 as Q,aa as Kt,ab as it,ac as xe,ad as at,ae as Re,af as Zn,ag as Be,ah as Ve,ai as lt,aj as Kn,ak as Ye,al as Qn,am as es,an as ts,ao as Ge,ap as Qt,aq as en,ar as tn,as as Ie,at as ns,au as ss,av as nn,aw as os,ax as Pe,$ as rs,b as is,a as as,c as ls,ay as sn,az as Y,aA as cs,aB as us,aC as Ze,aD as ds,aE as ps,aF as fs,aG as ms,aH as ct,aI as gs,aJ as hs,aK as bs,aL as ys,aM as xs,aN as Es,aO as Oe,aP as Ke,aQ as bt,aR as yt,aS as Ts,aT as Cs,aU as vs,aV as ws,aW as Ss,aX as Ls,aY as _s,aZ as ks,a_ as As,x as on,a$ as Ns,b0 as $s,b1 as Rs,b2 as Is,b3 as Ps,b4 as Os,b5 as Fe,b6 as Ms,b7 as Ds,b8 as Bs,b9 as js,ba as Us,bb as rn,bc as an,bd as ln,be as cn,j as Fs,T as zs,L as Hs,w as qs,k as Ws,l as Xs,D as Js,m as Vs,n as Ys,o as Gs,p as Zs,t as Ks,bf as Qs,s as eo,F as to,u as no,v as so,bg as oo,bh as ro}from"./JupyterLexicalExtension-Cq2BuRs0.js";import{bi as Cc,bj as vc,bk as wc,bl as Sc,bm as Lc,bn as _c,bo as kc,bp as Ac,bq as Nc,br as $c,bs as Rc,bt as Ic,bu as Pc,bv as Oc,d as Mc,e as Dc,bw as Bc,bx as jc,B as Uc,by as Fc,A as zc,bz as Hc,bA as qc,bB as Wc,bC as Xc,bD as Jc,bE as Vc,bF as Yc,bG as Gc,bH as Zc,bI as Kc,bJ as Qc,bK as eu,bL as tu,bM as nu,bN as su,bO as ou,bP as ru,f as iu,bQ as au,g as lu,bR as cu,bS as uu,bT as du,bU as pu,bV as fu,q as mu,bW as gu,bX as hu,bY as bu,bZ as yu,b_ as xu,b$ as Eu,c0 as Tu,c1 as Cu,c2 as vu,c3 as wu,c4 as Su,c5 as Lu,c6 as _u,c7 as ku,c8 as Au,c9 as Nu,ca as $u,cb as Ru,cc as Iu,cd as Pu,ce as Ou,cf as Mu,cg as Du,ch as Bu,ci as ju,cj as Uu,I as Fu,ck as zu,cl as Hu,cm as qu,cn as Wu,co as Xu,cp as Ju,cq as Vu,cr as Yu,cs as Gu,ct as Zu,cu as Ku,cv as Qu,h as ed,z as td,cw as nd,cx as sd,cy as od,cz as rd,cA as id,cB as ad,cC as ld,cD as cd,cE as ud,cF as dd,cG as pd,J as fd,cH as md,cI as gd,cJ as hd,cK as bd,cL as yd,cM as xd,cN as Ed,cO as Td,cP as Cd,cQ as vd,cR as wd,cS as Sd,cT as Ld,cU as _d,cV as kd,cW as Ad,cX as Nd,cY as $d,cZ as Rd,c_ as Id,c$ as Pd,d0 as Od,d1 as Md,d2 as Dd,d3 as Bd,d4 as jd,d5 as Ud,d6 as Fd,d7 as zd,d8 as Hd,d9 as qd,da as Wd,db as Xd,dc as Jd,dd as Vd,de as Yd,df as Gd,dg as Zd,dh as Kd,di as Qd,dj as ep,dk as tp,dl as np,dm as sp,dn as op,dp as rp,dq as ip,dr as ap,ds as lp,dt as cp,du as up,dv as dp,dw as pp,dx as fp,dy as mp,dz as gp,dA as hp,dB as bp,dC as yp,dD as xp,dE as Ep,dF as Tp,dG as Cp,dH as vp,dI as wp,dJ as Sp,dK as Lp,dL as _p,dM as kp,dN as Ap,dO as Np,dP as $p,dQ as Rp,dR as Ip,dS as Pp,dT as Op,dU as Mp,dV as Dp,dW as Bp,dX as jp,dY as Up,dZ as Fp,d_ as zp,d$ as Hp,e0 as qp,e1 as Wp,e2 as Xp,e3 as Jp,e4 as Vp,e5 as Yp,e6 as Gp,e7 as Zp,e8 as Kp,e9 as Qp,ea as ef,eb as tf,ec as nf,ed as sf,ee as of,ef as rf,eg as af,eh as lf,ei as cf,ej as uf,ek as df,el as pf,em as ff,en as mf,eo as gf,ep as hf,eq as bf,er as yf,es as xf,et as Ef,eu as Tf,ev as Cf,ew as vf,ex as wf,ey as Sf,ez as Lf,eA as _f,eB as kf,eC as Af,eD as Nf,eE as $f,eF as Rf,eG as If,eH as Pf,eI as Of,eJ as Mf,eK as Df,eL as Bf,eM as jf,eN as Uf,eO as Ff,eP as zf,eQ as Hf,eR as qf,eS as Wf,eT as Xf,eU as Jf,eV as Vf,eW as Yf,eX as Gf,r as Zf,eY as Kf,eZ as Qf,e_ as em,e$ as tm,i as nm,f0 as sm,f1 as om,f2 as rm,f3 as im,f4 as am,f5 as lm,f6 as cm,f7 as um,f8 as dm,f9 as pm,fa as fm,fb as mm,fc as gm,fd as hm,fe as bm,ff as ym,fg as xm,fh as Em,fi as Tm,fj as Cm,fk as vm,fl as wm,fm as Sm,fn as Lm,fo as _m,fp as km,fq as Am,fr as Nm,fs as $m,ft as Rm,fu as Im,fv as Pm}from"./JupyterLexicalExtension-Cq2BuRs0.js";import{lO as io,r as m,j as h,aW as ao,aQ as lo,B as co,a_ as ee,lP as U,lQ as ae,lR as un,lS as fe,lT as z,lU as uo,lV as po,lW as fo,lX as mo,lY as j,aZ as ce,lZ as Ee,l_ as ut,l$ as go,m0 as ho,m1 as bo,m2 as yo,m3 as dn,m4 as xo,m5 as Eo,m6 as To,m7 as Co,m8 as vo,m9 as wo,aY as So,aa as M,cc as ve,ma as Lo,mb as se,mc as X,md as ye,me as _o,mf as ko,mg as Ao,cd as No,mh as le,cf as pn,mi as fn,mj as mn,bz as gn,mk as pe,ml as $o,mm as Ro,bE as ie,dk as Io,I as Le,f2 as hn,z as Po,y as Oo,ch as Mo,V as Do,mn as Bo,mo as jo,cg as ze,mp as Uo,mq as xt,e4 as Fo,fi as zo,T as Ho,mr as Et,ms as qo,mt as Wo,mu as Xo,mv as Tt,mw as Jo,mx as Vo,aR as Yo,aS as Go,aM as Zo,aX as Ko}from"../datalayer-app-main.js";import{CollapsiblePlugin as Mm}from"./index-D99YJ2MP.js";import{u as Qo,N as Ct}from"./usePrimerThemeBridge-DyX4EYyN.js";import{u as er}from"./Output-DF1wzbCD.js";import{T as tr}from"./ThemeContext-D9ztCaU3.js";import{a as Bm,u as jm}from"./ThemeContext-D9ztCaU3.js";import{YouTubePlugin as Fm}from"./YouTubePlugin-aO-jWjdh.js";import"./NotebookSkeleton-D-wj2esi.js";import"./Avatar-DvWrRG_3.js";import"./url-C6fJII94.js";import"./isSymbol-BLtK9CV6.js";import"./toNumber-B1wj8-wx.js";import"./StrikethroughIcon-CbiEuPT-.js";import"./VideoIcon-C3wcjUxu.js";import"./LinkIcon-BtBG9K47.js";import"./Toolbar-CalSw9_B.js";import"./KebabHorizontalIcon-D6AY8pIS.js";import"./ArrowUpIcon-y5enrVH9.js";import"./SortDescIcon-Qif6E10I.js";import"./PaintbrushIcon-CFBHU-3l.js";import"./PrismCss-DQMhvzcI.js";import"./index-CXEjqez2.js";import"./hoverbox-CStlKQWE.js";import"./index-DK_juJTN.js";import"./index-D4a8E78-.js";import"./color-CG7_7V2-.js";import"./isEqual-DjmHhd-b.js";import"./defaultLocale-5voVPcsN.js";import"./index-BrUAt6vF.js";import"./index-DYBgss-E.js";import"./RestartIcon-Ca6_HoK0.js";class nr{registry;_debug;constructor(t,n=!1){this.registry=t,this._debug=n}calculateIndent(t){const n=this.registry.getConfigOrDefault(t.language),s=this.getLeadingWhitespaceCount(t.currentLine);let o=s,r=!1,i=!1,l;for(const a of n.indentTriggers)if(this.matchesIndentRule(t.currentLine,a)){o=s+a.indentAmount,r=!0,l=a.name;break}if(!r){for(const a of n.dedentTriggers)if(this.matchesDedentRule(t.currentLine,a)){i=!0,l=a.name;break}}if(n.customRules){for(const a of n.customRules)if(a.condition(t.currentLine,t)){o=a.apply(o,t);break}}return o=Math.max(0,o),{spaces:o,shouldIndent:r,shouldDedent:i,triggeredRule:l}}getTabString(t){const n=this.registry.getConfigOrDefault(t);return n.useTabs?" ":" ".repeat(n.tabSize)}getTabSize(t){return this.registry.getConfigOrDefault(t).tabSize}calculateOutdent(t,n){const s=this.registry.getConfigOrDefault(n),o=t-s.tabSize;return Math.max(0,o)}getLeadingWhitespaceCount(t){const n=t.match(/^[\t ]*/);if(!n)return 0;const s=n[0];let o=0;for(const r of s)r===" "?o+=4:o+=1;return o}getLeadingWhitespace(t){const n=t.match(/^[\t ]*/);return n?n[0]:""}matchesIndentRule(t,n){switch(n.context){case"line-end":return n.pattern.test(t);case"line-start":return n.pattern.test(t);case"anywhere":return n.pattern.test(t);default:return!1}}matchesDedentRule(t,n){switch(n.context){case"line-start":return n.pattern.test(t);case"anywhere":return n.pattern.test(t);default:return!1}}normalizeIndentation(t,n){const s=this.registry.getConfigOrDefault(n);if(s.useTabs){const o=this.getLeadingWhitespace(t),r=o.length,i=Math.floor(r/s.tabSize),l=r%s.tabSize;return" ".repeat(i)+" ".repeat(l)+t.substring(o.length)}else{const o=this.getLeadingWhitespace(t);return o.replace(/\t/g," ".repeat(s.tabSize)).concat(t.substring(o.length))}}}const sr={language:"python",tabSize:4,useTabs:!1,indentTriggers:[{name:"colon-indent",pattern:/:\s*(#.*)?$/,context:"line-end",indentAmount:4},{name:"continuation-backslash",pattern:/\\\s*(#.*)?$/,context:"line-end",indentAmount:4},{name:"open-bracket",pattern:/[[({]\s*$/,context:"line-end",indentAmount:4}],dedentTriggers:[{name:"flow-control-keywords",pattern:/^\s*(return|break|continue|pass)(\s|$)/,context:"line-start",dedentAmount:4},{name:"raise-keyword",pattern:/^\s*raise(\s|$)/,context:"line-start",dedentAmount:4}],customRules:[{name:"close-bracket-dedent",condition:e=>/^\s*[\])}]/.test(e),apply:e=>Math.max(0,e-4)}]},bn={language:"javascript",tabSize:2,useTabs:!1,indentTriggers:[{name:"open-brace",pattern:/\{\s*(\/\/.*)?$/,context:"line-end",indentAmount:2},{name:"open-bracket",pattern:/\[\s*(\/\/.*)?$/,context:"line-end",indentAmount:2},{name:"open-paren",pattern:/\(\s*(\/\/.*)?$/,context:"line-end",indentAmount:2},{name:"arrow-function",pattern:/=>\s*(\/\/.*)?$/,context:"line-end",indentAmount:2},{name:"ternary-operator",pattern:/\?\s*(\/\/.*)?$/,context:"line-end",indentAmount:2}],dedentTriggers:[{name:"return-statement",pattern:/^\s*return(\s|;)/,context:"line-start",dedentAmount:2},{name:"break-continue",pattern:/^\s*(break|continue)(\s|;)/,context:"line-start",dedentAmount:2},{name:"throw-statement",pattern:/^\s*throw(\s|;)/,context:"line-start",dedentAmount:2}],customRules:[{name:"close-brace-dedent",condition:e=>/^\s*}/.test(e),apply:e=>Math.max(0,e-2)},{name:"close-bracket-dedent",condition:e=>/^\s*\]/.test(e),apply:e=>Math.max(0,e-2)},{name:"close-paren-dedent",condition:e=>/^\s*\)/.test(e),apply:e=>Math.max(0,e-2)},{name:"case-label",condition:e=>/^\s*(case\s+.*:|default:)/.test(e),apply:(e,t)=>e}]},or={...bn,language:"typescript"};class rr{configs;options;constructor(t={}){this.configs=new Map,this.options={defaultLanguage:"python",fallbackTabSize:4,debug:!1,...t},this.registerDefaultLanguages(),t.customConfigs&&t.customConfigs.forEach(n=>this.registerLanguage(n))}registerDefaultLanguages(){this.registerLanguage(sr),this.registerLanguage(bn),this.registerLanguage(or),this.registerAlias("py","python"),this.registerAlias("js","javascript"),this.registerAlias("ts","typescript"),this.registerAlias("jsx","javascript"),this.registerAlias("tsx","typescript")}registerLanguage(t){if(this.configs.has(t.language)){this.options.debug&&console.warn(`[LanguageIndentRegistry] Language '${t.language}' already registered. Use updateConfig() to modify.`);return}this.configs.set(t.language,t)}registerAlias(t,n){const s=this.configs.get(n);s&&this.configs.set(t,s)}getConfig(t){if(!t)return this.getConfig(this.options.defaultLanguage);const n=t.toLowerCase().trim();return this.configs.get(n)}getConfigOrDefault(t){const n=this.getConfig(t);if(n)return n;const s=this.getConfig(this.options.defaultLanguage);return s?(this.options.debug&&console.warn(`[LanguageIndentRegistry] Language '${t}' not found, using default: ${this.options.defaultLanguage}`),s):(this.options.debug&&console.error(`[LanguageIndentRegistry] No config found for '${t}' and default '${this.options.defaultLanguage}' missing!`),this.createFallbackConfig(t||"unknown"))}createFallbackConfig(t){return{language:t,tabSize:this.options.fallbackTabSize||4,useTabs:this.options.preserveTabs||!1,indentTriggers:[],dedentTriggers:[]}}hasLanguage(t){if(!t)return!1;const n=t.toLowerCase().trim();return this.configs.has(n)}updateConfig(t,n){const s=t.toLowerCase().trim(),o=this.configs.get(s);if(!o)return this.options.debug&&console.warn(`[LanguageIndentRegistry] Cannot update '${t}' - not registered`),!1;const r={...o,...n,language:o.language};return this.configs.set(s,r),!0}getRegisteredLanguages(){return Array.from(this.configs.keys())}clear(){this.configs.clear()}reset(){this.clear(),this.registerDefaultLanguages()}}const ir="[Deleted Comment]",Qe=e=>e.uid===e.thread_uid,yn=e=>e.anchor?.mark_id??e.uid,ar=(e,t)=>e.created_at!==t.created_at?e.created_at<t.created_at?-1:1:e.uid<t.uid?-1:e.uid>t.uid?1:0,He=(e,t)=>e!==void 0&&e.updated_at>t.updated_at?e:t,vt=e=>{const{uid:t,handle:n,name:s,agent_uid:o}=e.author;return t?{kind:"user",uid:t,handle:n??null,name:s??null,...o?{agentUid:o}:{}}:Bn(s||n)},lr=e=>({type:"comment",id:e.uid,author:Dn(vt(e)),authorPrincipal:vt(e),content:e.deleted?ir:e.body,deleted:e.deleted,...e.mentions&&e.mentions.length>0?{mentions:e.mentions}:{},timeStamp:Date.parse(e.created_at)});function cr(e){const t=[...e].sort(ar),n=new Map;for(const s of t)Qe(s)||n.set(s.thread_uid,[...n.get(s.thread_uid)??[],s]);return t.filter(s=>Qe(s)&&!s.deleted&&s.status==="open").map(s=>({type:"thread",id:yn(s),quote:s.quote??"",assignee:s.assignee??null,comments:[s,...n.get(s.uid)??[]].map(lr)}))}const wt=e=>e&&e.length>0?{mentions:e}:{};class pl{searchPeople;assignThread;_editor;_backend;_options;_listeners=new Set;_heardDuringReads=new Set;_records=new Map;_comments=[];constructor(t,n,s={}){this._editor=t,this._backend=n,this._options=s;const{searchPeople:o,assign:r}=n;o&&(this.searchPeople=i=>o.call(n,i).catch(l=>{throw this._options.onError?.(l),l})),r&&(this.assignThread=(i,l)=>this._write(()=>r.call(n,this._threadRecord(i).uid,l?.uid??null)))}connect(){const t=this._backend.subscribe({comment:n=>this._heard(n),ready:()=>{this.refresh()}});return this.refresh(),t}async refresh(){const t=new Map;this._heardDuringReads.add(t);try{const n=await this._backend.list(),s=new Map(n.map(o=>[o.uid,o]));for(const[o,r]of t)s.set(o,He(s.get(o),r));this._records=s,this._changed()}catch(n){this._options.onError?.(n)}finally{this._heardDuringReads.delete(t)}}getComments(){return this._comments}addComment(t,n){if(t.type==="thread"){const s=t.id,o=t.comments[0];this._write(()=>this._backend.create({body:o?.content??"",anchor:{mark_id:s},quote:t.quote,...wt(o?.mentions)}),()=>this._unmark(s))}else n!==void 0?this._write(()=>this._backend.create({body:t.content,thread_uid:this._threadRecord(n).uid,...wt(t.mentions)})):this._options.onError?.(new Error("A comment is written in a thread."))}deleteComment(t){this._write(()=>this._backend.delete(t.id))}deleteThread(t){this._write(()=>this._backend.delete(this._threadRecord(t).uid))}resolveThread(t){this._write(()=>this._backend.resolve(this._threadRecord(t).uid))}registerOnChange(t){return this._listeners.add(t),()=>{this._listeners.delete(t)}}_write(t,n){Promise.resolve().then(t).then(s=>this._heard(s),s=>{n?.(),this._options.onError?.(s)})}_threadRecord(t){for(const n of this._records.values())if(Qe(n)&&yn(n)===t.id)return n;throw new Error(`The thread ${t.id} is not one the store read.`)}_heard(t){for(const n of this._heardDuringReads)n.set(t.uid,He(n.get(t.uid),t));this._records.set(t.uid,He(this._records.get(t.uid),t)),this._changed()}_changed(){this._comments=cr(this._records.values());for(const t of this._listeners)t()}_unmark(t){this._editor.update(()=>{for(const{node:n}of io())qt(n)&&n.getIDs().includes(t)&&(n.deleteID(t),n.getIDs().length===0&&Mn(n))})}}const dt=m.createContext(void 0);function ur(){const e=m.useContext(dt);if(!e)throw new Error("useContext must be inside a Provider with a value");return e}const dr=dt.Provider,fl=dt.Consumer,ml=({children:e})=>{const[t,n]=m.useState();return h.jsx(dr,{value:{editor:t,setEditor:n},children:e})};function gl(e){const{useStore:t,children:n}=e,{colorMode:s,resolvedMode:o,themeConfig:r,themeBackground:i,lexicalTheme:l}=Qo(t);return h.jsx(ao,{colorMode:s,theme:r.primerTheme,themeStyles:r.themeStyles,children:h.jsx(lo,{colormode:o,backgroundColor:i,useBaseStyles:!1,children:h.jsx(co,{sx:{"& .editor-shell":{backgroundColor:i,borderRadius:2},"& .editor-container":{backgroundColor:i},"& .editor-inner":{backgroundColor:i},"& .editor-input":{backgroundColor:i},'& [role="toolbar"][aria-label="Editor toolbar"]':{backgroundColor:i}},children:h.jsx(tr.Provider,{value:{theme:l},children:n})})})})}const pr={"\\":"\\textbackslash{}","{":"\\{","}":"\\}",$:"\\$","&":"\\&","#":"\\#","^":"\\^{}",_:"\\_","%":"\\%","~":"\\~{}"};function K(e){return e.replace(/[\\{}$&#^_%~]/g,t=>pr[t]??t)}function pt(e,t,n="{",s="}"){let o=0;for(let r=t;r<e.length;r++){const i=e[r];if(i==="\\"){r++;continue}if(i===n)o++;else if(i===s&&(o--,o===0))return r}return-1}function W(e,t){let n=t;for(;n<e.length&&(e[n]===" "||e[n]===`
1
+ import{d as V}from"./LexicalToolRegistry-Cx7dBNnA.js";import{D as Yl,a as Gl,b as Zl,e as Kl,c as Ql,g as ec,i as tc,f as nc,l as sc,h as oc,j as rc,k as ic,m as ac,n as lc,r as cc,o as uc,p as dc,q as pc,s as fc,t as mc,v as gc,w as hc,x as bc,y as yc,z as xc,u as Ec}from"./LexicalToolRegistry-Cx7dBNnA.js";import{_ as qt,E as Mn,G as Dn,H as Bn,K as me,M as Wt,O as ot,P as rt,Q as jn,R as Un,S as Xt,U as Fn,V as Jt,W as zn,X as Hn,Y as Vt,Z as Yt,a0 as qn,a1 as Wn,a2 as Xn,a3 as Jn,C as Gt,a4 as Vn,a5 as Zt,a6 as Yn,a7 as Gn,a8 as Ce,a9 as Q,aa as Kt,ab as it,ac as xe,ad as at,ae as Re,af as Zn,ag as Be,ah as Ve,ai as lt,aj as Kn,ak as Ye,al as Qn,am as es,an as ts,ao as Ge,ap as Qt,aq as en,ar as tn,as as Ie,at as ns,au as ss,av as nn,aw as os,ax as Pe,$ as rs,b as is,a as as,c as ls,ay as sn,az as Y,aA as cs,aB as us,aC as Ze,aD as ds,aE as ps,aF as fs,aG as ms,aH as ct,aI as gs,aJ as hs,aK as bs,aL as ys,aM as xs,aN as Es,aO as Oe,aP as Ke,aQ as bt,aR as yt,aS as Ts,aT as Cs,aU as vs,aV as ws,aW as Ss,aX as Ls,aY as _s,aZ as ks,a_ as As,x as on,a$ as Ns,b0 as $s,b1 as Rs,b2 as Is,b3 as Ps,b4 as Os,b5 as Fe,b6 as Ms,b7 as Ds,b8 as Bs,b9 as js,ba as Us,bb as rn,bc as an,bd as ln,be as cn,j as Fs,T as zs,L as Hs,w as qs,k as Ws,l as Xs,D as Js,m as Vs,n as Ys,o as Gs,p as Zs,t as Ks,bf as Qs,s as eo,F as to,u as no,v as so,bg as oo,bh as ro}from"./JupyterLexicalExtension-DS8J9r_J.js";import{bi as Cc,bj as vc,bk as wc,bl as Sc,bm as Lc,bn as _c,bo as kc,bp as Ac,bq as Nc,br as $c,bs as Rc,bt as Ic,bu as Pc,bv as Oc,d as Mc,e as Dc,bw as Bc,bx as jc,B as Uc,by as Fc,A as zc,bz as Hc,bA as qc,bB as Wc,bC as Xc,bD as Jc,bE as Vc,bF as Yc,bG as Gc,bH as Zc,bI as Kc,bJ as Qc,bK as eu,bL as tu,bM as nu,bN as su,bO as ou,bP as ru,f as iu,bQ as au,g as lu,bR as cu,bS as uu,bT as du,bU as pu,bV as fu,q as mu,bW as gu,bX as hu,bY as bu,bZ as yu,b_ as xu,b$ as Eu,c0 as Tu,c1 as Cu,c2 as vu,c3 as wu,c4 as Su,c5 as Lu,c6 as _u,c7 as ku,c8 as Au,c9 as Nu,ca as $u,cb as Ru,cc as Iu,cd as Pu,ce as Ou,cf as Mu,cg as Du,ch as Bu,ci as ju,cj as Uu,I as Fu,ck as zu,cl as Hu,cm as qu,cn as Wu,co as Xu,cp as Ju,cq as Vu,cr as Yu,cs as Gu,ct as Zu,cu as Ku,cv as Qu,h as ed,z as td,cw as nd,cx as sd,cy as od,cz as rd,cA as id,cB as ad,cC as ld,cD as cd,cE as ud,cF as dd,cG as pd,J as fd,cH as md,cI as gd,cJ as hd,cK as bd,cL as yd,cM as xd,cN as Ed,cO as Td,cP as Cd,cQ as vd,cR as wd,cS as Sd,cT as Ld,cU as _d,cV as kd,cW as Ad,cX as Nd,cY as $d,cZ as Rd,c_ as Id,c$ as Pd,d0 as Od,d1 as Md,d2 as Dd,d3 as Bd,d4 as jd,d5 as Ud,d6 as Fd,d7 as zd,d8 as Hd,d9 as qd,da as Wd,db as Xd,dc as Jd,dd as Vd,de as Yd,df as Gd,dg as Zd,dh as Kd,di as Qd,dj as ep,dk as tp,dl as np,dm as sp,dn as op,dp as rp,dq as ip,dr as ap,ds as lp,dt as cp,du as up,dv as dp,dw as pp,dx as fp,dy as mp,dz as gp,dA as hp,dB as bp,dC as yp,dD as xp,dE as Ep,dF as Tp,dG as Cp,dH as vp,dI as wp,dJ as Sp,dK as Lp,dL as _p,dM as kp,dN as Ap,dO as Np,dP as $p,dQ as Rp,dR as Ip,dS as Pp,dT as Op,dU as Mp,dV as Dp,dW as Bp,dX as jp,dY as Up,dZ as Fp,d_ as zp,d$ as Hp,e0 as qp,e1 as Wp,e2 as Xp,e3 as Jp,e4 as Vp,e5 as Yp,e6 as Gp,e7 as Zp,e8 as Kp,e9 as Qp,ea as ef,eb as tf,ec as nf,ed as sf,ee as of,ef as rf,eg as af,eh as lf,ei as cf,ej as uf,ek as df,el as pf,em as ff,en as mf,eo as gf,ep as hf,eq as bf,er as yf,es as xf,et as Ef,eu as Tf,ev as Cf,ew as vf,ex as wf,ey as Sf,ez as Lf,eA as _f,eB as kf,eC as Af,eD as Nf,eE as $f,eF as Rf,eG as If,eH as Pf,eI as Of,eJ as Mf,eK as Df,eL as Bf,eM as jf,eN as Uf,eO as Ff,eP as zf,eQ as Hf,eR as qf,eS as Wf,eT as Xf,eU as Jf,eV as Vf,eW as Yf,eX as Gf,r as Zf,eY as Kf,eZ as Qf,e_ as em,e$ as tm,i as nm,f0 as sm,f1 as om,f2 as rm,f3 as im,f4 as am,f5 as lm,f6 as cm,f7 as um,f8 as dm,f9 as pm,fa as fm,fb as mm,fc as gm,fd as hm,fe as bm,ff as ym,fg as xm,fh as Em,fi as Tm,fj as Cm,fk as vm,fl as wm,fm as Sm,fn as Lm,fo as _m,fp as km,fq as Am,fr as Nm,fs as $m,ft as Rm,fu as Im,fv as Pm}from"./JupyterLexicalExtension-DS8J9r_J.js";import{lO as io,r as m,j as h,aW as ao,aQ as lo,B as co,a_ as ee,lP as U,lQ as ae,lR as un,lS as fe,lT as z,lU as uo,lV as po,lW as fo,lX as mo,lY as j,aZ as ce,lZ as Ee,l_ as ut,l$ as go,m0 as ho,m1 as bo,m2 as yo,m3 as dn,m4 as xo,m5 as Eo,m6 as To,m7 as Co,m8 as vo,m9 as wo,aY as So,aa as M,cc as ve,ma as Lo,mb as se,mc as X,md as ye,me as _o,mf as ko,mg as Ao,cd as No,mh as le,cf as pn,mi as fn,mj as mn,bz as gn,mk as pe,ml as $o,mm as Ro,bE as ie,dk as Io,I as Le,f2 as hn,z as Po,y as Oo,ch as Mo,V as Do,mn as Bo,mo as jo,cg as ze,mp as Uo,mq as xt,e4 as Fo,fi as zo,T as Ho,mr as Et,ms as qo,mt as Wo,mu as Xo,mv as Tt,mw as Jo,mx as Vo,aR as Yo,aS as Go,aM as Zo,aX as Ko}from"../datalayer-app-main.js";import{CollapsiblePlugin as Mm}from"./index-LJsqLy5q.js";import{u as Qo,N as Ct}from"./usePrimerThemeBridge-DyX4EYyN.js";import{u as er}from"./Output-UPeDwjyI.js";import{T as tr}from"./ThemeContext-D9ztCaU3.js";import{a as Bm,u as jm}from"./ThemeContext-D9ztCaU3.js";import{YouTubePlugin as Fm}from"./YouTubePlugin-C7CGtLzz.js";import"./NotebookSkeleton-D-wj2esi.js";import"./Avatar-DvWrRG_3.js";import"./url-C6fJII94.js";import"./isSymbol-BLtK9CV6.js";import"./toNumber-B1wj8-wx.js";import"./StrikethroughIcon-CbiEuPT-.js";import"./VideoIcon-C3wcjUxu.js";import"./LinkIcon-BtBG9K47.js";import"./Toolbar-CalSw9_B.js";import"./KebabHorizontalIcon-D6AY8pIS.js";import"./ArrowUpIcon-y5enrVH9.js";import"./SortDescIcon-Qif6E10I.js";import"./PaintbrushIcon-CFBHU-3l.js";import"./PrismCss-DQMhvzcI.js";import"./index-CXEjqez2.js";import"./hoverbox-CStlKQWE.js";import"./index-DK_juJTN.js";import"./index-BqnIBWZ9.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-DjmHhd-b.js";import"./d3-color-Jd8hXty2.js";import"./index-BrUAt6vF.js";import"./index-DYBgss-E.js";import"./RestartIcon-Ca6_HoK0.js";class nr{registry;_debug;constructor(t,n=!1){this.registry=t,this._debug=n}calculateIndent(t){const n=this.registry.getConfigOrDefault(t.language),s=this.getLeadingWhitespaceCount(t.currentLine);let o=s,r=!1,i=!1,l;for(const a of n.indentTriggers)if(this.matchesIndentRule(t.currentLine,a)){o=s+a.indentAmount,r=!0,l=a.name;break}if(!r){for(const a of n.dedentTriggers)if(this.matchesDedentRule(t.currentLine,a)){i=!0,l=a.name;break}}if(n.customRules){for(const a of n.customRules)if(a.condition(t.currentLine,t)){o=a.apply(o,t);break}}return o=Math.max(0,o),{spaces:o,shouldIndent:r,shouldDedent:i,triggeredRule:l}}getTabString(t){const n=this.registry.getConfigOrDefault(t);return n.useTabs?" ":" ".repeat(n.tabSize)}getTabSize(t){return this.registry.getConfigOrDefault(t).tabSize}calculateOutdent(t,n){const s=this.registry.getConfigOrDefault(n),o=t-s.tabSize;return Math.max(0,o)}getLeadingWhitespaceCount(t){const n=t.match(/^[\t ]*/);if(!n)return 0;const s=n[0];let o=0;for(const r of s)r===" "?o+=4:o+=1;return o}getLeadingWhitespace(t){const n=t.match(/^[\t ]*/);return n?n[0]:""}matchesIndentRule(t,n){switch(n.context){case"line-end":return n.pattern.test(t);case"line-start":return n.pattern.test(t);case"anywhere":return n.pattern.test(t);default:return!1}}matchesDedentRule(t,n){switch(n.context){case"line-start":return n.pattern.test(t);case"anywhere":return n.pattern.test(t);default:return!1}}normalizeIndentation(t,n){const s=this.registry.getConfigOrDefault(n);if(s.useTabs){const o=this.getLeadingWhitespace(t),r=o.length,i=Math.floor(r/s.tabSize),l=r%s.tabSize;return" ".repeat(i)+" ".repeat(l)+t.substring(o.length)}else{const o=this.getLeadingWhitespace(t);return o.replace(/\t/g," ".repeat(s.tabSize)).concat(t.substring(o.length))}}}const sr={language:"python",tabSize:4,useTabs:!1,indentTriggers:[{name:"colon-indent",pattern:/:\s*(#.*)?$/,context:"line-end",indentAmount:4},{name:"continuation-backslash",pattern:/\\\s*(#.*)?$/,context:"line-end",indentAmount:4},{name:"open-bracket",pattern:/[[({]\s*$/,context:"line-end",indentAmount:4}],dedentTriggers:[{name:"flow-control-keywords",pattern:/^\s*(return|break|continue|pass)(\s|$)/,context:"line-start",dedentAmount:4},{name:"raise-keyword",pattern:/^\s*raise(\s|$)/,context:"line-start",dedentAmount:4}],customRules:[{name:"close-bracket-dedent",condition:e=>/^\s*[\])}]/.test(e),apply:e=>Math.max(0,e-4)}]},bn={language:"javascript",tabSize:2,useTabs:!1,indentTriggers:[{name:"open-brace",pattern:/\{\s*(\/\/.*)?$/,context:"line-end",indentAmount:2},{name:"open-bracket",pattern:/\[\s*(\/\/.*)?$/,context:"line-end",indentAmount:2},{name:"open-paren",pattern:/\(\s*(\/\/.*)?$/,context:"line-end",indentAmount:2},{name:"arrow-function",pattern:/=>\s*(\/\/.*)?$/,context:"line-end",indentAmount:2},{name:"ternary-operator",pattern:/\?\s*(\/\/.*)?$/,context:"line-end",indentAmount:2}],dedentTriggers:[{name:"return-statement",pattern:/^\s*return(\s|;)/,context:"line-start",dedentAmount:2},{name:"break-continue",pattern:/^\s*(break|continue)(\s|;)/,context:"line-start",dedentAmount:2},{name:"throw-statement",pattern:/^\s*throw(\s|;)/,context:"line-start",dedentAmount:2}],customRules:[{name:"close-brace-dedent",condition:e=>/^\s*}/.test(e),apply:e=>Math.max(0,e-2)},{name:"close-bracket-dedent",condition:e=>/^\s*\]/.test(e),apply:e=>Math.max(0,e-2)},{name:"close-paren-dedent",condition:e=>/^\s*\)/.test(e),apply:e=>Math.max(0,e-2)},{name:"case-label",condition:e=>/^\s*(case\s+.*:|default:)/.test(e),apply:(e,t)=>e}]},or={...bn,language:"typescript"};class rr{configs;options;constructor(t={}){this.configs=new Map,this.options={defaultLanguage:"python",fallbackTabSize:4,debug:!1,...t},this.registerDefaultLanguages(),t.customConfigs&&t.customConfigs.forEach(n=>this.registerLanguage(n))}registerDefaultLanguages(){this.registerLanguage(sr),this.registerLanguage(bn),this.registerLanguage(or),this.registerAlias("py","python"),this.registerAlias("js","javascript"),this.registerAlias("ts","typescript"),this.registerAlias("jsx","javascript"),this.registerAlias("tsx","typescript")}registerLanguage(t){if(this.configs.has(t.language)){this.options.debug&&console.warn(`[LanguageIndentRegistry] Language '${t.language}' already registered. Use updateConfig() to modify.`);return}this.configs.set(t.language,t)}registerAlias(t,n){const s=this.configs.get(n);s&&this.configs.set(t,s)}getConfig(t){if(!t)return this.getConfig(this.options.defaultLanguage);const n=t.toLowerCase().trim();return this.configs.get(n)}getConfigOrDefault(t){const n=this.getConfig(t);if(n)return n;const s=this.getConfig(this.options.defaultLanguage);return s?(this.options.debug&&console.warn(`[LanguageIndentRegistry] Language '${t}' not found, using default: ${this.options.defaultLanguage}`),s):(this.options.debug&&console.error(`[LanguageIndentRegistry] No config found for '${t}' and default '${this.options.defaultLanguage}' missing!`),this.createFallbackConfig(t||"unknown"))}createFallbackConfig(t){return{language:t,tabSize:this.options.fallbackTabSize||4,useTabs:this.options.preserveTabs||!1,indentTriggers:[],dedentTriggers:[]}}hasLanguage(t){if(!t)return!1;const n=t.toLowerCase().trim();return this.configs.has(n)}updateConfig(t,n){const s=t.toLowerCase().trim(),o=this.configs.get(s);if(!o)return this.options.debug&&console.warn(`[LanguageIndentRegistry] Cannot update '${t}' - not registered`),!1;const r={...o,...n,language:o.language};return this.configs.set(s,r),!0}getRegisteredLanguages(){return Array.from(this.configs.keys())}clear(){this.configs.clear()}reset(){this.clear(),this.registerDefaultLanguages()}}const ir="[Deleted Comment]",Qe=e=>e.uid===e.thread_uid,yn=e=>e.anchor?.mark_id??e.uid,ar=(e,t)=>e.created_at!==t.created_at?e.created_at<t.created_at?-1:1:e.uid<t.uid?-1:e.uid>t.uid?1:0,He=(e,t)=>e!==void 0&&e.updated_at>t.updated_at?e:t,vt=e=>{const{uid:t,handle:n,name:s,agent_uid:o}=e.author;return t?{kind:"user",uid:t,handle:n??null,name:s??null,...o?{agentUid:o}:{}}:Bn(s||n)},lr=e=>({type:"comment",id:e.uid,author:Dn(vt(e)),authorPrincipal:vt(e),content:e.deleted?ir:e.body,deleted:e.deleted,...e.mentions&&e.mentions.length>0?{mentions:e.mentions}:{},timeStamp:Date.parse(e.created_at)});function cr(e){const t=[...e].sort(ar),n=new Map;for(const s of t)Qe(s)||n.set(s.thread_uid,[...n.get(s.thread_uid)??[],s]);return t.filter(s=>Qe(s)&&!s.deleted&&s.status==="open").map(s=>({type:"thread",id:yn(s),quote:s.quote??"",assignee:s.assignee??null,comments:[s,...n.get(s.uid)??[]].map(lr)}))}const wt=e=>e&&e.length>0?{mentions:e}:{};class pl{searchPeople;assignThread;_editor;_backend;_options;_listeners=new Set;_heardDuringReads=new Set;_records=new Map;_comments=[];constructor(t,n,s={}){this._editor=t,this._backend=n,this._options=s;const{searchPeople:o,assign:r}=n;o&&(this.searchPeople=i=>o.call(n,i).catch(l=>{throw this._options.onError?.(l),l})),r&&(this.assignThread=(i,l)=>this._write(()=>r.call(n,this._threadRecord(i).uid,l?.uid??null)))}connect(){const t=this._backend.subscribe({comment:n=>this._heard(n),ready:()=>{this.refresh()}});return this.refresh(),t}async refresh(){const t=new Map;this._heardDuringReads.add(t);try{const n=await this._backend.list(),s=new Map(n.map(o=>[o.uid,o]));for(const[o,r]of t)s.set(o,He(s.get(o),r));this._records=s,this._changed()}catch(n){this._options.onError?.(n)}finally{this._heardDuringReads.delete(t)}}getComments(){return this._comments}addComment(t,n){if(t.type==="thread"){const s=t.id,o=t.comments[0];this._write(()=>this._backend.create({body:o?.content??"",anchor:{mark_id:s},quote:t.quote,...wt(o?.mentions)}),()=>this._unmark(s))}else n!==void 0?this._write(()=>this._backend.create({body:t.content,thread_uid:this._threadRecord(n).uid,...wt(t.mentions)})):this._options.onError?.(new Error("A comment is written in a thread."))}deleteComment(t){this._write(()=>this._backend.delete(t.id))}deleteThread(t){this._write(()=>this._backend.delete(this._threadRecord(t).uid))}resolveThread(t){this._write(()=>this._backend.resolve(this._threadRecord(t).uid))}registerOnChange(t){return this._listeners.add(t),()=>{this._listeners.delete(t)}}_write(t,n){Promise.resolve().then(t).then(s=>this._heard(s),s=>{n?.(),this._options.onError?.(s)})}_threadRecord(t){for(const n of this._records.values())if(Qe(n)&&yn(n)===t.id)return n;throw new Error(`The thread ${t.id} is not one the store read.`)}_heard(t){for(const n of this._heardDuringReads)n.set(t.uid,He(n.get(t.uid),t));this._records.set(t.uid,He(this._records.get(t.uid),t)),this._changed()}_changed(){this._comments=cr(this._records.values());for(const t of this._listeners)t()}_unmark(t){this._editor.update(()=>{for(const{node:n}of io())qt(n)&&n.getIDs().includes(t)&&(n.deleteID(t),n.getIDs().length===0&&Mn(n))})}}const dt=m.createContext(void 0);function ur(){const e=m.useContext(dt);if(!e)throw new Error("useContext must be inside a Provider with a value");return e}const dr=dt.Provider,fl=dt.Consumer,ml=({children:e})=>{const[t,n]=m.useState();return h.jsx(dr,{value:{editor:t,setEditor:n},children:e})};function gl(e){const{useStore:t,children:n}=e,{colorMode:s,resolvedMode:o,themeConfig:r,themeBackground:i,lexicalTheme:l}=Qo(t);return h.jsx(ao,{colorMode:s,theme:r.primerTheme,themeStyles:r.themeStyles,children:h.jsx(lo,{colormode:o,backgroundColor:i,useBaseStyles:!1,children:h.jsx(co,{sx:{"& .editor-shell":{backgroundColor:i,borderRadius:2},"& .editor-container":{backgroundColor:i},"& .editor-inner":{backgroundColor:i},"& .editor-input":{backgroundColor:i},'& [role="toolbar"][aria-label="Editor toolbar"]':{backgroundColor:i}},children:h.jsx(tr.Provider,{value:{theme:l},children:n})})})})}const pr={"\\":"\\textbackslash{}","{":"\\{","}":"\\}",$:"\\$","&":"\\&","#":"\\#","^":"\\^{}",_:"\\_","%":"\\%","~":"\\~{}"};function K(e){return e.replace(/[\\{}$&#^_%~]/g,t=>pr[t]??t)}function pt(e,t,n="{",s="}"){let o=0;for(let r=t;r<e.length;r++){const i=e[r];if(i==="\\"){r++;continue}if(i===n)o++;else if(i===s&&(o--,o===0))return r}return-1}function W(e,t){let n=t;for(;n<e.length&&(e[n]===" "||e[n]===`
2
2
  `);)n++;if(e[n]!=="{")return null;const s=pt(e,n);return s===-1?null:{value:e.slice(n+1,s),end:s+1}}function ne(e,t){let n=t;for(;n<e.length&&e[n]===" ";)n++;if(e[n]!=="[")return null;const s=pt(e,n,"[","]");return s===-1?null:{value:e.slice(n+1,s),end:s+1}}function xn(e){return e.split(`
3
3
  `).map(t=>{for(let n=0;n<t.length;n++){if(t[n]==="\\"){n++;continue}if(t[n]==="%")return t.slice(0,n)}return t}).join(`
4
4
  `)}function En(e,t){if(!e)return null;const n=new RegExp(`(?:^|,)\\s*${t}\\s*=\\s*([^,]+)`).exec(e);return n?n[1].trim():null}function oe(e,t,n){const s=[];let o=t;for(let r=0;r<n;r++){const i=W(e,o);if(!i)break;s.push(i.value),o=i.end}return{values:s,end:o}}function fr(e){const t=e.indexOf("\\begin{document}");if(t===-1)return{body:e,preamble:""};const n=t+16,s=e.lastIndexOf("\\end{document}");return{body:s===-1?e.slice(n):e.slice(n,s),preamble:e.slice(0,t)}}function Tn(e){return e.charAt(0).toUpperCase()+e.slice(1)}const mr=new Set(["book","report","memoir","scrbook","scrreprt","amsbook","thesis","mitthesis","phdthesis","bookest"]);function Cn(e,t){return mr.has((e??"").toLowerCase())||t!==void 0&&/(?<!\\)\\chapter\b/.test(t)}const gr={h1:"section",h2:"subsection",h3:"subsubsection",h4:"paragraph",h5:"subparagraph",h6:"subparagraph"},hr={h1:"chapter",h2:"section",h3:"subsection",h4:"subsubsection",h5:"paragraph",h6:"subparagraph"},br={part:"h1",chapter:"h1",section:"h1",subsection:"h2",subsubsection:"h3",paragraph:"h4",subparagraph:"h5"},yr={part:"h1",chapter:"h1",section:"h2",subsection:"h3",subsubsection:"h4",paragraph:"h5",subparagraph:"h6"};function xr(e){return e?{js:"JavaScript",javascript:"JavaScript",ts:"TypeScript",typescript:"TypeScript",py:"Python",python:"Python",sh:"bash",bash:"bash",r:"R",sql:"SQL",c:"C",cpp:"C++",java:"Java",html:"HTML",xml:"XML",json:"JSON",markdown:"Markdown",md:"Markdown"}[e.toLowerCase()]??e:null}function ft(e){return e.replace(/^\n/,"").replace(/\n[ \t]*$/,"")}function Er(e){if(uo(e))return St(e.text);if(po(e)||fo(e)){const t=e.data["text/plain"];return t===void 0?null:St(t)}return mo(e)?e.traceback.join(`
@@ -1,4 +1,4 @@
1
- import{a9 as D,aA as L,aD as w,eB as W,r as M,J as I,aC as T,eC as k,eD as V,eE as K,eF as G,dH as $,eG as z}from"../datalayer-app-main.js";import{K as j,b as F,c as U,P as J,d as X,I as E,e as B,f as Q}from"./index-DK_juJTN.js";import{a as Y}from"./tokens-BYcJtuKD.js";import{I as q}from"./tokens-DY_UrMLq.js";import{I as H}from"./CellSidebarExtension-9Xkl4nS1.js";import"./hoverbox-CStlKQWE.js";import"./NotebookSkeleton-D-wj2esi.js";import"./Avatar-DvWrRG_3.js";import"./index-D4a8E78-.js";import"./color-CG7_7V2-.js";import"./isEqual-DjmHhd-b.js";import"./defaultLocale-5voVPcsN.js";import"./renderer-VW8Zgoi-.js";import"./SquareIcon-Dy3l3VdH.js";const A="CompletionProvider:context";class Z{constructor(){this.identifier=A,this.rank=500,this.renderer=null}async isApplicable(t){return!0}fetch(t,e){const n=e.editor;return n?new Promise(i=>{i(R.contextHint(n))}):Promise.reject("No editor")}}var R;(function(l){function t(n){const i=n.getTokenAtCursor(),r=e(i,n).filter(c=>c.type).map(c=>c.value),m=new Set(r),u=new Array;return m.forEach(c=>u.push({label:c})),{start:i.offset,end:i.offset+i.value.length,items:u}}l.contextHint=t;function e(n,i){return i.getTokens().filter(r=>r.value.indexOf(n.value)===0&&r.value!==n.value)}})(R||(R={}));class ee{constructor(){this._activeProviders=new Set([j,A]),this._inlineCompleterSettings=H.defaultSettings,this._providers=new Map,this._inlineProviders=new Map,this._panelHandlers=new Map,this._mostRecentContext=new Map,this._activeProvidersChanged=new D(this),this._selected=new D(this),this._inlineCompleterFactory=null}get activeProvidersChanged(){return this._activeProvidersChanged}get selected(){return this._selected}setTimeout(t){this._timeout=t}setShowDocumentationPanel(t){this._panelHandlers.forEach(e=>e.completer.showDocsPanel=t),this._showDoc=t}setSuppressIfInlineCompleterActive(t){this._panelHandlers.forEach(e=>e.completer.suppressIfInlineCompleterActive=t),this._suppressIfInlineCompleterActive=t}setContinuousHinting(t){this._panelHandlers.forEach(e=>e.autoCompletion=t),this._autoCompletion=t}registerProvider(t){const e=t.identifier;this._providers.has(e)?console.warn(`Completion provider with identifier ${e} is already registered`):(this._providers.set(e,t),this._panelHandlers.forEach((n,i)=>{this.updateCompleter(this._mostRecentContext.get(i))}))}registerInlineProvider(t){const e=t.identifier;this._inlineProviders.has(e)?console.warn(`Completion provider with identifier ${e} is already registered`):(this._inlineProviders.set(e,t),this._panelHandlers.forEach((n,i)=>{this.updateCompleter(this._mostRecentContext.get(i))}))}getProviders(){return this._providers}activateProvider(t){this._activeProviders=new Set([]),t.forEach(e=>{this._providers.has(e)&&this._activeProviders.add(e)}),this._activeProviders.size===0&&(this._activeProviders.add(j),this._activeProviders.add(A)),this._activeProvidersChanged.emit()}async updateCompleter(t){var e,n;const{widget:i,editor:o,sanitizer:r}=t,m=i.id,u=this._panelHandlers.get(m),c=[...this._activeProviders][0],a=this._providers.get(c);let _=(e=a?.renderer)!==null&&e!==void 0?e:F.getDefaultRenderer(r);const s=a?.modelFactory;let d;s?d=await s.call(a,t):d=new U,this._mostRecentContext.set(i.id,t);const f={model:d,editor:o,renderer:_,sanitizer:r,showDoc:this._showDoc};if(u){const h=u.completer;(n=h.model)===null||n===void 0||n.dispose(),h.model=f.model,h.renderer=f.renderer,h.showDocsPanel=f.showDoc,h.suppressIfInlineCompleterActive=this._suppressIfInlineCompleterActive,u.autoCompletion=this._autoCompletion,o&&(u.editor=o,u.reconciliator=await this.generateReconciliator(t))}else{const h=await this._generateHandler(t,f);this._panelHandlers.set(i.id,h),h.completer.selected.connect((p,g)=>this._selected.emit({insertText:g})),i.disposed.connect(p=>{this.disposeHandler(p.id,h),this._mostRecentContext.delete(m)})}}invoke(t){const e=this._panelHandlers.get(t);e&&e.invoke()}select(t){const e=this._panelHandlers.get(t);e&&e.completer.selectActive()}setInlineCompleterFactory(t){this._inlineCompleterFactory=t,this._panelHandlers.forEach((e,n)=>{this.updateCompleter(this._mostRecentContext.get(n))}),!this.inline&&(this.inline={invoke:e=>{const n=this._panelHandlers.get(e);n&&n.inlineCompleter&&n.invokeInline()},isActive:e=>{const n=this._panelHandlers.get(e);return n&&n.inlineCompleter?n.inlineCompleter.isActive:!1},cycle:(e,n)=>{const i=this._panelHandlers.get(e);i&&i.inlineCompleter&&i.inlineCompleter.cycle(n)},accept:e=>{const n=this._panelHandlers.get(e);n&&n.inlineCompleter&&n.inlineCompleter.accept()},configure:e=>{this._inlineCompleterSettings=e;for(const[n,i]of this._inlineProviders.entries())i.configure&&i.configure(e.providers[n]);this._panelHandlers.forEach((n,i)=>{n.inlineCompleter&&n.inlineCompleter.configure(e),this.updateCompleter(this._mostRecentContext.get(i))})}})}get inlineProviders(){return[...this._inlineProviders.values()]}async generateReconciliator(t){const e=[];for(const[o,r]of Object.entries(this._inlineCompleterSettings.providers))r.enabled===!0&&e.push(o);const n=[...this._inlineProviders.values()].filter(o=>e.includes(o.identifier)),i=[];for(const o of this._activeProviders){const r=this._providers.get(o);r&&i.push(r)}return new J({context:t,providers:i,inlineProviders:n,inlineProvidersSettings:this._inlineCompleterSettings.providers,timeout:this._timeout})}disposeHandler(t,e){var n,i,o,r;(n=e.completer.model)===null||n===void 0||n.dispose(),e.completer.dispose(),(o=(i=e.inlineCompleter)===null||i===void 0?void 0:i.model)===null||o===void 0||o.dispose(),(r=e.inlineCompleter)===null||r===void 0||r.dispose(),e.dispose(),this._panelHandlers.delete(t)}async _generateHandler(t,e){const n=new F(e),i=this._inlineCompleterFactory?this._inlineCompleterFactory.factory({...e,model:new H.Model}):void 0;n.hide(),L.attach(n,document.body),i&&(L.attach(i,document.body),i.hide(),i.configure(this._inlineCompleterSettings));const o=await this.generateReconciliator(t),r=new X({completer:n,inlineCompleter:i,reconciliator:o});return r.editor=t.editor,r}}class te{constructor(t){this.options=t,this.identifier="@jupyterlab/inline-completer:history",this._maxSuggestions=100;const e=t.translator||w;this._trans=e.load("jupyterlab")}get name(){return this._trans.__("History")}get icon(){return W}get schema(){return{properties:{maxSuggestions:{title:this._trans.__("Maximum number of suggestions"),description:this._trans.__("The maximum number of suggestions to retrieve from history."),type:"number"}},default:{enabled:!1,maxSuggestions:100}}}configure(t){var e;this._maxSuggestions=(e=t.maxSuggestions)!==null&&e!==void 0?e:100}async fetch(t,e,n){var i;const o=(i=e.session)===null||i===void 0?void 0:i.kernel;if(!o)throw new Error("No kernel for completion request.");const m=t.text.slice(0,t.offset).split(`
1
+ import{a9 as D,aA as L,aD as w,eB as W,r as M,J as I,aC as T,eC as k,eD as V,eE as K,eF as G,dH as $,eG as z}from"../datalayer-app-main.js";import{K as j,b as F,c as U,P as J,d as X,I as E,e as B,f as Q}from"./index-DK_juJTN.js";import{a as Y}from"./tokens-BYcJtuKD.js";import{I as q}from"./tokens-DY_UrMLq.js";import{I as H}from"./CellSidebarExtension-BMT21AEe.js";import"./hoverbox-CStlKQWE.js";import"./NotebookSkeleton-D-wj2esi.js";import"./Avatar-DvWrRG_3.js";import"./index-BqnIBWZ9.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-DjmHhd-b.js";import"./d3-color-Jd8hXty2.js";import"./renderer-DX-Dx5-F.js";import"./SquareIcon-Dy3l3VdH.js";const A="CompletionProvider:context";class Z{constructor(){this.identifier=A,this.rank=500,this.renderer=null}async isApplicable(t){return!0}fetch(t,e){const n=e.editor;return n?new Promise(i=>{i(R.contextHint(n))}):Promise.reject("No editor")}}var R;(function(l){function t(n){const i=n.getTokenAtCursor(),r=e(i,n).filter(c=>c.type).map(c=>c.value),m=new Set(r),u=new Array;return m.forEach(c=>u.push({label:c})),{start:i.offset,end:i.offset+i.value.length,items:u}}l.contextHint=t;function e(n,i){return i.getTokens().filter(r=>r.value.indexOf(n.value)===0&&r.value!==n.value)}})(R||(R={}));class ee{constructor(){this._activeProviders=new Set([j,A]),this._inlineCompleterSettings=H.defaultSettings,this._providers=new Map,this._inlineProviders=new Map,this._panelHandlers=new Map,this._mostRecentContext=new Map,this._activeProvidersChanged=new D(this),this._selected=new D(this),this._inlineCompleterFactory=null}get activeProvidersChanged(){return this._activeProvidersChanged}get selected(){return this._selected}setTimeout(t){this._timeout=t}setShowDocumentationPanel(t){this._panelHandlers.forEach(e=>e.completer.showDocsPanel=t),this._showDoc=t}setSuppressIfInlineCompleterActive(t){this._panelHandlers.forEach(e=>e.completer.suppressIfInlineCompleterActive=t),this._suppressIfInlineCompleterActive=t}setContinuousHinting(t){this._panelHandlers.forEach(e=>e.autoCompletion=t),this._autoCompletion=t}registerProvider(t){const e=t.identifier;this._providers.has(e)?console.warn(`Completion provider with identifier ${e} is already registered`):(this._providers.set(e,t),this._panelHandlers.forEach((n,i)=>{this.updateCompleter(this._mostRecentContext.get(i))}))}registerInlineProvider(t){const e=t.identifier;this._inlineProviders.has(e)?console.warn(`Completion provider with identifier ${e} is already registered`):(this._inlineProviders.set(e,t),this._panelHandlers.forEach((n,i)=>{this.updateCompleter(this._mostRecentContext.get(i))}))}getProviders(){return this._providers}activateProvider(t){this._activeProviders=new Set([]),t.forEach(e=>{this._providers.has(e)&&this._activeProviders.add(e)}),this._activeProviders.size===0&&(this._activeProviders.add(j),this._activeProviders.add(A)),this._activeProvidersChanged.emit()}async updateCompleter(t){var e,n;const{widget:i,editor:o,sanitizer:r}=t,m=i.id,u=this._panelHandlers.get(m),c=[...this._activeProviders][0],a=this._providers.get(c);let _=(e=a?.renderer)!==null&&e!==void 0?e:F.getDefaultRenderer(r);const s=a?.modelFactory;let d;s?d=await s.call(a,t):d=new U,this._mostRecentContext.set(i.id,t);const f={model:d,editor:o,renderer:_,sanitizer:r,showDoc:this._showDoc};if(u){const h=u.completer;(n=h.model)===null||n===void 0||n.dispose(),h.model=f.model,h.renderer=f.renderer,h.showDocsPanel=f.showDoc,h.suppressIfInlineCompleterActive=this._suppressIfInlineCompleterActive,u.autoCompletion=this._autoCompletion,o&&(u.editor=o,u.reconciliator=await this.generateReconciliator(t))}else{const h=await this._generateHandler(t,f);this._panelHandlers.set(i.id,h),h.completer.selected.connect((p,g)=>this._selected.emit({insertText:g})),i.disposed.connect(p=>{this.disposeHandler(p.id,h),this._mostRecentContext.delete(m)})}}invoke(t){const e=this._panelHandlers.get(t);e&&e.invoke()}select(t){const e=this._panelHandlers.get(t);e&&e.completer.selectActive()}setInlineCompleterFactory(t){this._inlineCompleterFactory=t,this._panelHandlers.forEach((e,n)=>{this.updateCompleter(this._mostRecentContext.get(n))}),!this.inline&&(this.inline={invoke:e=>{const n=this._panelHandlers.get(e);n&&n.inlineCompleter&&n.invokeInline()},isActive:e=>{const n=this._panelHandlers.get(e);return n&&n.inlineCompleter?n.inlineCompleter.isActive:!1},cycle:(e,n)=>{const i=this._panelHandlers.get(e);i&&i.inlineCompleter&&i.inlineCompleter.cycle(n)},accept:e=>{const n=this._panelHandlers.get(e);n&&n.inlineCompleter&&n.inlineCompleter.accept()},configure:e=>{this._inlineCompleterSettings=e;for(const[n,i]of this._inlineProviders.entries())i.configure&&i.configure(e.providers[n]);this._panelHandlers.forEach((n,i)=>{n.inlineCompleter&&n.inlineCompleter.configure(e),this.updateCompleter(this._mostRecentContext.get(i))})}})}get inlineProviders(){return[...this._inlineProviders.values()]}async generateReconciliator(t){const e=[];for(const[o,r]of Object.entries(this._inlineCompleterSettings.providers))r.enabled===!0&&e.push(o);const n=[...this._inlineProviders.values()].filter(o=>e.includes(o.identifier)),i=[];for(const o of this._activeProviders){const r=this._providers.get(o);r&&i.push(r)}return new J({context:t,providers:i,inlineProviders:n,inlineProvidersSettings:this._inlineCompleterSettings.providers,timeout:this._timeout})}disposeHandler(t,e){var n,i,o,r;(n=e.completer.model)===null||n===void 0||n.dispose(),e.completer.dispose(),(o=(i=e.inlineCompleter)===null||i===void 0?void 0:i.model)===null||o===void 0||o.dispose(),(r=e.inlineCompleter)===null||r===void 0||r.dispose(),e.dispose(),this._panelHandlers.delete(t)}async _generateHandler(t,e){const n=new F(e),i=this._inlineCompleterFactory?this._inlineCompleterFactory.factory({...e,model:new H.Model}):void 0;n.hide(),L.attach(n,document.body),i&&(L.attach(i,document.body),i.hide(),i.configure(this._inlineCompleterSettings));const o=await this.generateReconciliator(t),r=new X({completer:n,inlineCompleter:i,reconciliator:o});return r.editor=t.editor,r}}class te{constructor(t){this.options=t,this.identifier="@jupyterlab/inline-completer:history",this._maxSuggestions=100;const e=t.translator||w;this._trans=e.load("jupyterlab")}get name(){return this._trans.__("History")}get icon(){return W}get schema(){return{properties:{maxSuggestions:{title:this._trans.__("Maximum number of suggestions"),description:this._trans.__("The maximum number of suggestions to retrieve from history."),type:"number"}},default:{enabled:!1,maxSuggestions:100}}}configure(t){var e;this._maxSuggestions=(e=t.maxSuggestions)!==null&&e!==void 0?e:100}async fetch(t,e,n){var i;const o=(i=e.session)===null||i===void 0?void 0:i.kernel;if(!o)throw new Error("No kernel for completion request.");const m=t.text.slice(0,t.offset).split(`
2
2
  `).slice(-1)[0],u=t.text.slice(t.offset).split(`
3
3
  `)[0];let c;const a=[];if(m===""){c={output:!1,raw:!0,hist_access_type:"tail",n:this._maxSuggestions};const _=await o.requestHistory(c);if(_.content.status==="ok"){let s=_.content.history;const d=new Map;for(const p of s.reverse()){const g=p[2];d.set(g,(d.get(g)||0)+1)}const h=Array.from(d.entries()).sort((p,g)=>p[1]>g[1]?-1:p[1]<g[1]?1:0);for(const p of h)a.push({insertText:p[0]})}}else{c={output:!1,raw:!0,hist_access_type:"search",pattern:O(m)+"*"+(u?O(u)+"*":""),unique:!0,n:this._maxSuggestions};const _=await o.requestHistory(c);if(_.content.status==="ok")for(const s of _.content.history){const d=s[2].split(`
4
4
  `);for(let f=0;f<d.length;f++){const h=d[f];if(h.startsWith(m)){let p=h.slice(m.length);f+1<d.length&&(p+=`
@@ -1,4 +1,4 @@
1
- import{aE as N,aF as R,aD as S,aw as pe,a9 as me,ck as C,ay as Q,bg as ee,aC as I,aI as ge,ds as fe,aG as be,dt as ve,r as k,cs as Z,aK as ye,cx as O,cn as q,du as he,dv as _e,aA as we,dw as xe,dx as U}from"../datalayer-app-main.js";import{I as Te,S as Be}from"./index-CMhceBby.js";import{I as V}from"./tokens-DY_UrMLq.js";import{I as Pe,b as te,d as Ee,M as X}from"./index-CXEjqez2.js";import{I as je}from"./treepathupdater-DiwXSt-s.js";import{d as Me,e as K,J as H,c as J,f as oe,g as ie,h as $,i as Ce,L as ne,j as Le}from"./index-DIoOWi0w.js";import{R as Ae}from"./menu-Ntu8pEH0.js";import"./hoverbox-CStlKQWE.js";import"./Output-DF1wzbCD.js";import"./index-DK_juJTN.js";import"./index-D4a8E78-.js";import"./color-CG7_7V2-.js";import"./isEqual-DjmHhd-b.js";import"./defaultLocale-5voVPcsN.js";import"./index-BrUAt6vF.js";import"./KebabHorizontalIcon-D6AY8pIS.js";import"./PaintbrushIcon-CFBHU-3l.js";import"./index-DYBgss-E.js";import"./RestartIcon-Ca6_HoK0.js";import"./CellSidebarExtension-9Xkl4nS1.js";import"./NotebookSkeleton-D-wj2esi.js";import"./Avatar-DvWrRG_3.js";import"./renderer-VW8Zgoi-.js";import"./SquareIcon-Dy3l3VdH.js";import"./FileDirectoryOpenFillIcon-jGhuRcP3.js";import"./url-C6fJII94.js";/* empty css *//* empty css */import"./index-Dro44tIm.js";/* empty css */import"./index-DsG9xhMj.js";/* empty css */import"./index-CNU-WVhQ.js";import"./index--OLIX362.js";import"./index-DYGslHkf.js";import"./index-BSRVX3UN.js";import"./index-BH2OX5l8.js";import"./index-C3vDfO5_.js";import"./index-Ko8lxXFd.js";import"./index-CB9u17_J.js";import"./index-BUVtc_FV.js";import"./ArrowLeftIcon-sX3iNMG1.js";import"./SkubbleIcon-tlg17jBG.js";import"./usePrimerThemeBridge-DyX4EYyN.js";import"./index-DS7lfBW6.js";import"./KernelVariables-BmWOn-n_.js";import"./index-C0d-d3s4.js";import"./SortAscIcon-CmH04s3F.js";import"./SortDescIcon-Qif6E10I.js";import"./NotebookToolbar-C6VvAn4V.js";import"./RepoPushIcon-BtXQRhLa.js";import"./Toolbar-CalSw9_B.js";import"./sessions-Dlwi03ae.js";import"./tokens-CBhRbpQP.js";import"./drivecontents-D1HzL7Fi.js";import"./kernel-BmfZmtIo.js";const Ie=async function(i,m,d){d=d||S;const t=d.load("jupyterlab"),u=t.__("Server Connection Error"),r=t.__(`A connection to the Jupyter server could not be established.
1
+ import{aE as N,aF as R,aD as S,aw as pe,a9 as me,ck as C,ay as Q,bg as ee,aC as I,aI as ge,ds as fe,aG as be,dt as ve,r as k,cs as Z,aK as ye,cx as O,cn as q,du as he,dv as _e,aA as we,dw as xe,dx as U}from"../datalayer-app-main.js";import{I as Te,S as Be}from"./index-CMhceBby.js";import{I as V}from"./tokens-DY_UrMLq.js";import{I as Pe,b as te,d as Ee,M as X}from"./index-CXEjqez2.js";import{I as je}from"./treepathupdater-DiwXSt-s.js";import{d as Me,e as K,J as H,c as J,f as oe,g as ie,h as $,i as Ce,L as ne,j as Le}from"./index-BbLfaxiL.js";import{R as Ae}from"./menu-Ntu8pEH0.js";import"./hoverbox-CStlKQWE.js";import"./Output-UPeDwjyI.js";import"./index-DK_juJTN.js";import"./index-BqnIBWZ9.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-DjmHhd-b.js";import"./d3-color-Jd8hXty2.js";import"./index-BrUAt6vF.js";import"./KebabHorizontalIcon-D6AY8pIS.js";import"./PaintbrushIcon-CFBHU-3l.js";import"./index-DYBgss-E.js";import"./RestartIcon-Ca6_HoK0.js";import"./CellSidebarExtension-BMT21AEe.js";import"./NotebookSkeleton-D-wj2esi.js";import"./Avatar-DvWrRG_3.js";import"./renderer-DX-Dx5-F.js";import"./SquareIcon-Dy3l3VdH.js";import"./FileDirectoryOpenFillIcon-jGhuRcP3.js";import"./url-C6fJII94.js";/* empty css *//* empty css */import"./index-Dro44tIm.js";/* empty css */import"./index-DsG9xhMj.js";/* empty css */import"./index-CNU-WVhQ.js";import"./index--OLIX362.js";import"./index-DYGslHkf.js";import"./index-BSRVX3UN.js";import"./index-BH2OX5l8.js";import"./index-C3vDfO5_.js";import"./index-Ko8lxXFd.js";import"./index-CB9u17_J.js";import"./index-BUVtc_FV.js";import"./ArrowLeftIcon-sX3iNMG1.js";import"./SkubbleIcon-tlg17jBG.js";import"./usePrimerThemeBridge-DyX4EYyN.js";import"./index-DS7lfBW6.js";import"./KernelVariables-JJah7mez.js";import"./index-C0d-d3s4.js";import"./SortAscIcon-CmH04s3F.js";import"./SortDescIcon-Qif6E10I.js";import"./NotebookToolbar-C6VvAn4V.js";import"./RepoPushIcon-BtXQRhLa.js";import"./Toolbar-CalSw9_B.js";import"./sessions-Dlwi03ae.js";import"./tokens-CBhRbpQP.js";import"./drivecontents-D1HzL7Fi.js";import"./kernel-BmfZmtIo.js";const Ie=async function(i,m,d){d=d||S;const t=d.load("jupyterlab"),u=t.__("Server Connection Error"),r=t.__(`A connection to the Jupyter server could not be established.
2
2
  JupyterLab will continue trying to reconnect.
3
3
  Check your network connection or Jupyter server configuration.
4
4
  `);if(!F.displayConnectionLost)return;if(F.serverConnectionLost){await F.serverConnectionLost;return}const n=N({title:u,body:r,checkbox:{label:t.__("Do not show this message again in this session."),caption:t.__("If checked, you will not see a dialog informing you about an issue with server connection in this session.")},buttons:[R.cancelButton({label:t.__("Close")})]}).then(f=>{f.isChecked&&(F.displayConnectionLost=!1)}).catch(f=>{console.error("An error occurred while showing the dialog: ",f)}).finally(()=>{F.serverConnectionLost=void 0});F.serverConnectionLost=n};var F;(function(i){i.displayConnectionLost=!0})(F||(F={}));class Re{constructor(m){this.stop=new pe("@jupyterlab/application:Router#stop"),this._routed=new me(this),this._rules=new Map,this.base=m.base,this.commands=m.commands}get current(){var m,d;const{base:t}=this,u=C.URLExt.parse(window.location.href),{search:r,hash:n}=u,f=(d=(m=u.pathname)===null||m===void 0?void 0:m.replace(t,"/"))!==null&&d!==void 0?d:"",a=f+r+n;return{hash:n,path:f,request:a,search:r}}get routed(){return this._routed}navigate(m,d={}){const{base:t}=this,{history:u}=window,{hard:r}=d,n=document.location.href,f=m&&m.indexOf(t)===0?m:C.URLExt.join(t,m);if(f===n)return r?this.reload():void 0;if(u.pushState({},"",f),r)return this.reload();d.skipRouting||requestAnimationFrame(()=>{this.route()})}register(m){var d;const{command:t,pattern:u}=m,r=(d=m.rank)!==null&&d!==void 0?d:100,n=this._rules;return n.set(u,{command:t,rank:r}),new Q(()=>{n.delete(u)})}reload(){window.location.reload()}route(){const{commands:m,current:d,stop:t}=this,{request:u}=d,r=this._routed,n=this._rules,f=[];n.forEach((b,p)=>{u?.match(p)&&f.push(b)});const a=f.sort((b,p)=>p.rank-b.rank),w=new ee,h=async()=>{if(!a.length){r.emit(d),w.resolve(void 0);return}const{command:b}=a.pop();try{const p=this.current.request;await m.execute(b,d)===t&&(a.length=0,console.debug(`Routing ${p} was short-circuited by ${b}`))}catch(p){console.warn(`Routing ${u} to ${b} failed`,p)}h()};return h(),w.promise}}const We="TopBar",re={id:"@jupyterlab/application-extension:top-bar",description:"Adds a toolbar to the top area (next to the main menu bar).",autoStart:!0,requires:[V,Pe],optional:[I],activate:(i,m,d,t)=>{const u=(t??S).load("jupyterlab"),r=new ge;r.id="jp-top-bar",r.node.setAttribute("aria-label",u.__("Topbar toolbar")),fe(r,be(d,m,We,re.id,t??S),r),i.shell.add(r,"top",{rank:900})}},G=100;var l;(function(i){i.activateNextTab="application:activate-next-tab",i.activatePreviousTab="application:activate-previous-tab",i.activateNextTabBar="application:activate-next-tab-bar",i.activatePreviousTabBar="application:activate-previous-tab-bar",i.close="application:close",i.closeOtherTabs="application:close-other-tabs",i.closeRightTabs="application:close-right-tabs",i.closeAll="application:close-all",i.setActivityBarPosition="application:set-activity-bar-position",i.moveWidget="application:move-widget",i.setMode="application:set-mode",i.showPropertyPanel="property-inspector:show-panel",i.resetLayout="application:reset-layout",i.toggleContextMenu="application:toggle-context-menu",i.toggleHeader="application:toggle-header",i.toggleMode="application:toggle-mode",i.toggleLeftArea="application:toggle-left-area",i.toggleRightArea="application:toggle-right-area",i.toggleDownArea="application:toggle-down-area",i.toggleSideTabBar="application:toggle-side-tabbar",i.toggleSidebarWidget="application:toggle-sidebar-widget",i.togglePresentationMode="application:toggle-presentation-mode",i.toggleFullscreenMode="application:toggle-fullscreen-mode",i.tree="router:tree",i.switchSidebar="sidebar:switch",i.splitTab="application:split-tab",i.zoomInWidget="application:zoom-in-widget",i.zoomOutWidget="application:zoom-out-widget",i.resetWidgetZoom="application:reset-widget-zoom"})(l||(l={}));const ke=.5,qe=3,Fe={id:"@jupyterlab/application-extension:commands",description:"Adds commands related to the shell.",autoStart:!0,requires:[I,V],optional:[J,te],activate:(i,m,d,t,u)=>{var r;const{commands:n,shell:f}=i,a=m.load("jupyterlab"),w=a.__("Main Area");n.addCommand(Ce.contextMenu,{label:a.__("Shift+Right Click for Browser Menu"),describedBy:{args:{type:"object",properties:{}}},isEnabled:()=>!1,execute:()=>{}});const h=o=>{var e;if(t)for(const s of["main","left","right","down"]){const v=O(t.widgets(s),E=>E.id===o);if(v)return v}return(e=O(f.widgets("main"),s=>s.id===o))!==null&&e!==void 0?e:null},b=()=>{const o=v=>!!v.dataset.id,e=i.contextMenuHitTest(o);if(!e)return f.currentWidget;const s=e.dataset.id;return s?h(s):null},p=o=>{o.forEach(e=>e.close())},c=(o,e)=>{if(o.type==="tab-area")return o.widgets.includes(e)?o:null;if(o.type==="split-area")for(const s of o.children){const v=c(s,e);if(v)return v}return null},g=o=>{var e;const s=t?.saveLayout(),v=s?.mainArea;if(!v||C.PageConfig.getOption("mode")!=="multiple-document")return null;const E=(e=v.dock)===null||e===void 0?void 0:e.main;return E?c(E,o):null},_=o=>{const{id:e}=o,s=g(o),v=s?s.widgets||[]:[],E=v.findIndex(A=>A.id===e);return E<0?[]:v.slice(E+1)},M=o=>{let e;if(o!="left"&&o!="right")throw Error(`Unsupported sidebar: ${o}`);if(o==="left")e=document.querySelector(".lm-TabBar-tab.lm-mod-current");else{const v=document.querySelectorAll(".lm-TabBar-tab.lm-mod-current");e=v[v.length-1]}const s=e?.getAttribute("data-id");return s?s?.toString():""},W=()=>{var o;return(o=f.currentWidget)!==null&&o!==void 0?o:null};function z(o){const e=y(o);e&&e.style.removeProperty("zoom")}function y(o){const e=o.node;let s=e.querySelector(".jp-zoom-target");return s||(e.classList.add("jp-zoom-target"),e)}function x(o,e){const s=y(o);if(!s)return;const v=Number(s.style.zoom||1),E=Math.min(qe,Math.max(ke,v+e));s.style.zoom=String(E)}function T(o){o&&o.focus()}if(n.addCommand(l.close,{label:()=>a.__("Close Tab"),describedBy:{args:{type:"object",properties:{}}},isEnabled:()=>{const o=b();return!!o&&o.title.closable},execute:()=>{const o=b();o&&o.close()}}),n.addCommand(l.closeOtherTabs,{label:()=>a.__("Close All Other Tabs"),describedBy:{args:{type:"object",properties:{}}},isEnabled:()=>ye(f.widgets("main"),(o,e)=>e===1),execute:()=>{const o=b();if(!o)return;const{id:e}=o;for(const s of f.widgets("main"))s.id!==e&&s.close()}}),n.addCommand(l.closeRightTabs,{label:()=>a.__("Close Tabs to Right"),describedBy:{args:{type:"object",properties:{}}},isEnabled:()=>!!b()&&_(b()).length>0,execute:()=>{const o=b();o&&p(_(o))}}),n.addCommand(l.zoomInWidget,{label:a.__("Zoom In Active Widget"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{const o=W();o&&x(o,.1)}}),n.addCommand(l.zoomOutWidget,{label:a.__("Zoom Out Active Widget"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{const o=W();o&&x(o,-.1)}}),n.addCommand(l.resetWidgetZoom,{label:a.__("Reset Widget Zoom"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{const o=W();o&&z(o)}}),(r=f.currentChanged)===null||r===void 0||r.connect(()=>{[l.close,l.closeOtherTabs,l.closeRightTabs].forEach(o=>n.notifyCommandChanged(o))}),t){n.addCommand(l.activateNextTab,{label:a.__("Activate Next Tab"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{t.activateNextTab()}}),n.addCommand(l.activatePreviousTab,{label:a.__("Activate Previous Tab"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{t.activatePreviousTab()}}),n.addCommand(l.activateNextTabBar,{label:a.__("Activate Next Tab Bar"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{t.activateNextTabBar()}}),n.addCommand(l.activatePreviousTabBar,{label:a.__("Activate Previous Tab Bar"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{t.activatePreviousTabBar()}}),n.addCommand(l.closeAll,{label:a.__("Close All Tabs"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{t.closeAll()}}),n.addCommand(l.toggleHeader,{label:a.__("Show Header"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{t.mode==="single-document"&&t.toggleTopInSimpleModeVisibility()},isToggled:()=>t.isTopInSimpleModeVisible(),isVisible:()=>t.mode==="single-document"}),n.addCommand(l.toggleLeftArea,{label:a.__("Show Left Sidebar"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{t.leftCollapsed?t.expandLeft():(t.collapseLeft(),t.currentWidget&&t.activateById(t.currentWidget.id))},isToggled:()=>!t.leftCollapsed,isEnabled:()=>!t.isEmpty("left")}),n.addCommand(l.toggleRightArea,{label:a.__("Show Right Sidebar"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{t.rightCollapsed?t.expandRight():(t.collapseRight(),t.currentWidget&&t.activateById(t.currentWidget.id))},isToggled:()=>!t.rightCollapsed,isEnabled:()=>!t.isEmpty("right")}),n.addCommand(l.toggleDownArea,{label:a.__("Show Down Area"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{t.downCollapsed?t.expandDown():(t.collapseDown(),t.currentWidget&&t.activateById(t.currentWidget.id))},isToggled:()=>!t.downCollapsed,isEnabled:()=>!t.isEmpty("down")}),n.addCommand(l.toggleSidebarWidget,{label:e=>e===void 0||e.side===void 0||e.index===void 0?a.__("Toggle Sidebar Element"):e.side==="right"?a.__("Toggle Element %1 in Right Sidebar",parseInt(e.index,10)+1):a.__("Toggle Element %1 in Left Sidebar",parseInt(e.index,10)+1),describedBy:{args:{type:"object",properties:{side:{type:"string",enum:["left","right"],description:a.__("The sidebar side")},index:{type:["string","number"],description:a.__("The index of the sidebar widget")}},required:["side","index"]}},execute:e=>{const s=parseInt(e.index,10);if(e.side!="left"&&e.side!="right")throw Error(`Unsupported sidebar: ${e.side}`);const v=Array.from(t.widgets(e.side));if(s>=v.length)return;const E=v[s].id,A=document.querySelector("[data-id='"+E+"']");M(e.side)===E?(e.side=="left"&&(t.collapseLeft(),T(A)),e.side=="right"&&(t.collapseRight(),T(A))):(t.activateById(E),T(A))}}),n.addCommand(l.toggleSideTabBar,{label:e=>e.side==="right"?a.__("Show Right Activity Bar"):a.__("Show Left Activity Bar"),describedBy:{args:{type:"object",properties:{side:{type:"string",enum:["left","right"],description:a.__("The sidebar side")}},required:["side"]}},execute:e=>{e.side==="right"?t.toggleSideTabBarVisibility("right"):t.toggleSideTabBarVisibility("left")},isToggled:e=>e.side==="right"?t.isSideTabBarVisible("right"):t.isSideTabBarVisible("left"),isEnabled:e=>e.side==="right"?!t.isEmpty("right"):!t.isEmpty("left")}),n.addCommand(l.togglePresentationMode,{label:()=>a.__("Presentation Mode"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{t.presentationMode=!t.presentationMode},isToggled:()=>t.presentationMode,isVisible:()=>!0}),n.addCommand(l.toggleFullscreenMode,{label:a.__("Fullscreen Mode"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{document.fullscreenElement===null||document.fullscreenElement===void 0?document.documentElement.requestFullscreen().catch(e=>{console.error("Failed to enter fullscreen mode.",e)}):document.fullscreenElement!==null&&document.exitFullscreen().catch(e=>{console.error("Failed to exit fullscreen mode.",e)})},isToggled:()=>document.fullscreenElement!==null}),n.addCommand(l.setMode,{label:e=>e.mode?a.__("Set %1 mode.",e.mode):a.__("Set the layout `mode`."),caption:a.__('The layout `mode` can be "single-document" or "multiple-document".'),describedBy:{args:{type:"object",properties:{mode:{type:"string",enum:["single-document","multiple-document"],description:a.__("The layout mode")}},required:["mode"]}},isVisible:e=>{const s=e.mode;return s==="single-document"||s==="multiple-document"},execute:e=>{const s=e.mode;if(s==="single-document"||s==="multiple-document"){t.mode=s;return}throw new Error(`Unsupported application shell mode: ${s}`)}}),n.addCommand(l.toggleMode,{label:a.__("Simple Interface"),describedBy:{args:{type:"object",properties:{}}},isToggled:()=>t.mode==="single-document",execute:()=>{const e=t.mode==="multiple-document"?{mode:"single-document"}:{mode:"multiple-document"};return n.execute(l.setMode,e)}}),n.addCommand(l.resetLayout,{label:a.__("Reset Default Layout"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{t.presentationMode&&n.execute(l.togglePresentationMode).catch(e=>{console.error("Failed to undo presentation mode.",e)}),(document.fullscreenElement!==null||document.fullscreenElement!==void 0)&&n.execute(l.toggleFullscreenMode).catch(e=>{console.error("Failed to exit fullscreen mode.",e)}),t.mode==="single-document"&&!t.isTopInSimpleModeVisible()&&n.execute(l.toggleHeader).catch(e=>{console.error("Failed to display title header.",e)}),["left","right"].forEach(e=>{!t.isSideTabBarVisible(e)&&!t.isEmpty(e)&&n.execute(l.toggleSideTabBar,{side:e}).catch(s=>{console.error(`Failed to show ${e} activity bar.`,s)})})}});const o=()=>{var e;const s=A=>A.classList.contains("lm-TabBar-tab")&&!!A.dataset.id,v=i.contextMenuHitTest(s);if(!v)return null;const E=v.dataset.id;return E&&(e=O(t.widgets("main"),A=>A.id===E))!==null&&e!==void 0?e:null};n.addCommand(l.splitTab,{label:e=>{const s=e?.direction;return s?{left:a.__("Left"),right:a.__("Right"),top:a.__("Up"),bottom:a.__("Down")}[s]:a.__("Split Tab")},caption:a.__("Split the current tab"),describedBy:{args:{type:"object",properties:{direction:{type:"string",enum:["left","right","top","bottom"],description:a.__("The direction to split the tab")},id:{type:"string",description:a.__("The widget ID to split. Defaults to the context menu target.")}},required:["direction"]}},isEnabled:()=>{const e=o();if(!e||!(t instanceof ne))return!1;const s=t.getMainAreaTabBar(e);return s?s.titles.length>1:!1},execute:e=>{const s=e?.direction;let v=e?.id?O(t.widgets("main"),E=>E.id===e?.id):null;v||(v=o()),v&&s&&t.moveTab(v,s)}})}u&&([l.activateNextTab,l.activatePreviousTab,l.activateNextTabBar,l.activatePreviousTabBar,l.close,l.closeAll,l.closeOtherTabs,l.closeRightTabs,l.toggleHeader,l.toggleLeftArea,l.toggleRightArea,l.toggleDownArea,l.togglePresentationMode,l.toggleFullscreenMode,l.toggleMode,l.resetLayout,l.zoomInWidget,l.zoomOutWidget,l.resetWidgetZoom].forEach(o=>u.addItem({command:o,category:w})),["right","left"].forEach(o=>{u.addItem({command:l.toggleSideTabBar,category:w,args:{side:o}})}));function L(o){const e=o.target;if(!e)return null;const s=e.closest(".lm-Widget");if(!s)return null;for(const v of f.widgets("main"))if(v.node.contains(s))return v;return null}let B=!1,P="side";d.load("@jupyterlab/application-extension:shell").then(o=>{B=o.get("zoomOnWheel").composite,P=o.get("activityBarPosition").composite,o.changed.connect(()=>{B=o.get("zoomOnWheel").composite;const e=o.get("activityBarPosition").composite;e!==P&&(P=e,n.notifyCommandChanged(l.setActivityBarPosition))}),n.addCommand(l.setActivityBarPosition,{label:e=>{const s=e.position,v=s==="side"?a.__("Side"):s==="top"?a.__("Top"):s==="bottom"?a.__("Bottom"):"";return v?e.isPalette?a.__("Activity Bar Position: %1",v):v:a.__("Set Activity Bar Position")},caption:a.__("Position of the side activity bars (side, top, or bottom)."),describedBy:{args:{type:"object",properties:{position:{type:"string",oneOf:[{const:"side",title:a.__("Side")},{const:"top",title:a.__("Top")},{const:"bottom",title:a.__("Bottom")}],description:a.__("The activity bar position")},isPalette:{type:"boolean",description:a.__("Whether the command is being called from the palette")}},required:["position"]}},isToggled:e=>e.position===P,execute:e=>{const s=e.position;if(s!=="side"&&s!=="top"&&s!=="bottom")throw new Error(`Unsupported activity bar position: ${s}`);return o.set("activityBarPosition",s)}}),u&&["side","top","bottom"].forEach(e=>{u.addItem({command:l.setActivityBarPosition,category:w,args:{position:e,isPalette:!0}})})}).catch(o=>{console.error("Failed to load shell settings.",o)});let j=!1;window.addEventListener("keydown",o=>{o.key==="Control"&&(j=!0)}),window.addEventListener("keyup",o=>{o.key==="Control"&&(j=!1)}),window.addEventListener("blur",()=>{j=!1}),window.addEventListener("wheel",o=>{if(!B||!o.ctrlKey||!j)return;const e=L(o);if(!e)return;o.preventDefault();const s=o.deltaY<0?.1:-.1;x(e,s)},{passive:!1,capture:!0})}},ae={id:"@jupyterlab/application-extension:main",description:"Initializes the application and provides the URL tree path handler.",requires:[K,Ee,I,H.ITreeResolver],optional:[Me],provides:je,activate:(i,m,d,t,u,r)=>{const n=t.load("jupyterlab");if(!(i instanceof $))throw new Error(`${ae.id} must be activated in JupyterLab.`);let f="",a="";function w(c){u.paths.then(()=>{if(a=c,!f){const g=C.PageConfig.getUrl({treePath:c}),_=C.URLExt.parse(g).pathname;m.navigate(_,{skipRouting:!0}),C.PageConfig.setOption("treePath",c)}})}const h=d.name;if(console.debug(`Starting application in workspace: "${h}"`),i.registerPluginErrors.length!==0){const c=k.createElement("pre",null,i.registerPluginErrors.map(g=>g.message).join(`
@@ -0,0 +1,17 @@
1
+ import{a9 as R,aF as N,aA as O,fN as M,r as n,dH as w,cn as b,fO as q,eF as F,fP as H,fQ as J,az as U,fR as k,eb as x,dP as W,fS as z,fT as $,cu as Q,J as P,aC as V,es as G,aD as Y,dx as X,du as Z}from"../datalayer-app-main.js";import{H as tt}from"./htmlselect-BvyxGqtc.js";import{o as et}from"./index-BbLfaxiL.js";import{a as st}from"./tokens-BYcJtuKD.js";import{I as ot}from"./tokens-DY_UrMLq.js";import"./Output-UPeDwjyI.js";import"./index-CXEjqez2.js";import"./hoverbox-CStlKQWE.js";import"./index-DK_juJTN.js";import"./index-BqnIBWZ9.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-DjmHhd-b.js";import"./d3-color-Jd8hXty2.js";import"./index-BrUAt6vF.js";import"./KebabHorizontalIcon-D6AY8pIS.js";import"./PaintbrushIcon-CFBHU-3l.js";import"./index-DYBgss-E.js";import"./RestartIcon-Ca6_HoK0.js";import"./CellSidebarExtension-BMT21AEe.js";import"./NotebookSkeleton-D-wj2esi.js";import"./Avatar-DvWrRG_3.js";import"./renderer-DX-Dx5-F.js";import"./SquareIcon-Dy3l3VdH.js";import"./FileDirectoryOpenFillIcon-jGhuRcP3.js";import"./url-C6fJII94.js";/* empty css *//* empty css */import"./index-Dro44tIm.js";/* empty css */import"./index-DsG9xhMj.js";/* empty css */import"./index-CNU-WVhQ.js";import"./index--OLIX362.js";import"./index-DYGslHkf.js";import"./index-BSRVX3UN.js";import"./index-BH2OX5l8.js";import"./index-C3vDfO5_.js";import"./index-Ko8lxXFd.js";import"./index-CB9u17_J.js";import"./index-BUVtc_FV.js";import"./ArrowLeftIcon-sX3iNMG1.js";import"./SkubbleIcon-tlg17jBG.js";import"./usePrimerThemeBridge-DyX4EYyN.js";import"./index-DS7lfBW6.js";import"./KernelVariables-JJah7mez.js";import"./index-C0d-d3s4.js";import"./SortAscIcon-CmH04s3F.js";import"./SortDescIcon-Qif6E10I.js";import"./NotebookToolbar-C6VvAn4V.js";import"./RepoPushIcon-BtXQRhLa.js";import"./Toolbar-CalSw9_B.js";import"./sessions-Dlwi03ae.js";import"./tokens-CBhRbpQP.js";import"./drivecontents-D1HzL7Fi.js";import"./kernel-BmfZmtIo.js";class it{constructor(e){this.reset=()=>{this._shortcut={id:"new shortcut",command:"",keybindings:[],selector:"body",category:"",args:{}},this._changed.emit()},this.addKeybinding=async(t,o)=>{this._shortcut.keybindings.push({keys:o,isDefault:!1}),this._changed.emit()},this.replaceKeybinding=async(t,o,s)=>{if(s=s.filter(i=>i!==""),!s.length)return this.deleteKeybinding(t,o);const r=this._shortcut.keybindings.findIndex(i=>i.keys===o.keys);r>-1?this._shortcut.keybindings[r]={keys:s,isDefault:!1}:this.addKeybinding(t,s),this._changed.emit()},this.deleteKeybinding=async(t,o)=>{const s=this._shortcut.keybindings.findIndex(r=>r.keys===o.keys);s>-1&&(this._shortcut.keybindings.splice(s,1),this._changed.emit())},this.resetKeybindings=async t=>{this._shortcut={...this._shortcut,keybindings:[]},this._changed.emit()},this.setCustomOptions=async(t,o)=>(this._shortcut={...this._shortcut,selector:o.selector,args:o.args},this._changed.emit(),!0),this.updateCommand=(t,o)=>{this._shortcut={...this._shortcut,command:t,category:o},this._changed.emit()},this._changed=new R(this),this._shortcut={id:"new shortcut",command:"",keybindings:[],selector:"body",category:"",args:{}},this.findConflictsFor=e.findConflictsFor,this.showSelectors=e.showSelectors,this.external=e.external}get shortcut(){return this._shortcut}get changed(){return this._changed}}class rt extends N{constructor(e){const{shortcut:t,translator:o,editorFactory:s}=e,r=o.load("jupyterlab"),i=new nt(t,o,s,()=>this._checkValidation(),e.readOnly),a=[];e.readOnly?a.push(N.cancelButton({label:r.__("OK")})):(a.push(N.cancelButton({label:r.__("Cancel")})),a.push(N.okButton({label:r.__("Apply")}))),super({title:e.readOnly?r.__("Shortcut Options"):r.__("Custom Shortcut Options"),body:i,buttons:a})}_evtKeydown(e){if(e.key==="Enter"){const t=this.node.querySelector(".jp-JSONEditor"),o=document.activeElement;if(t instanceof HTMLElement&&o instanceof HTMLElement&&t.contains(o)){e.stopPropagation();return}}super._evtKeydown(e)}}class nt extends O{constructor(e,t,o,s,r){var i,a;super();const c=t.load("jupyterlab");this.addClass("jp-Shortcuts-CustomOptionsDialogBody");const g=document.createElement("div");g.className="jp-Shortcuts-CustomOptionDialog-container";const p=document.createElement("label");p.textContent=c.__("Selector:"),p.className="jp-Dialog-label",this._selectorInput=document.createElement("input"),this._selectorInput.type="text",this._selectorInput.disabled=r??!1,this._selectorInput.value=e.selector,this._selectorInput.className="jp-mod-styled",g.appendChild(p),g.appendChild(this._selectorInput);const f=document.createElement("label");if(f.textContent=c.__("Arguments:"),f.className="jp-Dialog-label",g.appendChild(f),r){const d=document.createElement("pre");d.textContent=JSON.stringify((i=e.args)!==null&&i!==void 0?i:{},void 0,2),g.appendChild(d)}else this._editorWidget=new at((a=e.args)!==null&&a!==void 0?a:{},o,s),g.appendChild(this._editorWidget.node);this.node.appendChild(g)}getValue(){var e,t;const o=(t=(e=this._editorWidget)===null||e===void 0?void 0:e.getJSON())!==null&&t!==void 0?t:"{}";let s;try{s=JSON.parse(o)}catch(r){console.error(`Invalid JSON in arguments: ${r instanceof Error?r.message:String(r)}`),s={}}return{selector:this._selectorInput.value,args:s}}dispose(){var e;(e=this._editorWidget)===null||e===void 0||e.dispose(),super.dispose()}}class at extends O{constructor(e,t,o){super(),this._validateJSON=()=>{try{const a=this._editor.model.sharedModel.getSource();JSON.parse(a),this.node.classList.remove("jp-mod-error")}catch{this.node.classList.add("jp-mod-error")}this._checkValidation()},this.addClass("jp-JSONEditor"),this._checkValidation=o;const s=document.createElement("div");s.className="jp-JSONEditor-host";const r=new M.Model({mimeType:"application/json"}),i=JSON.stringify(e,null,2);r.sharedModel.setSource(i),this._editor=t({host:s,model:r,config:{readOnly:!1}}),this.node.appendChild(s),this._editor.model.sharedModel.changed.connect(this._validateJSON,this)}getJSON(){return this._editor.model.sharedModel.getSource()}dispose(){this._editor.model.sharedModel.changed.disconnect(this._validateJSON,this),this._editor.dispose(),super.dispose()}}const D="jp-Shortcuts-ConflictContainer";class A extends n.Component{constructor(e){super(e),this.handleSubmit=async()=>{this._isReplacingExistingKeybinding?this.state.selected?this.props.toggleInput():await this._updateShortcut():(await this._updateShortcut(),this.props.toggleInput())},this._updateShortcut=async()=>{const t=[...this.state.keys,this.state.currentChain];this.setState({keys:t}),this.props.keybinding?await this.props.replaceKeybinding(this.props.shortcut,this.props.keybinding,t):await this.props.addKeybinding(this.props.shortcut,t)},this._handleOverwrite=async(t,o)=>{const s=o.map(w.normalizeKeystroke);for(const r of t){const i=r.keybindings.filter(a=>b.deepEqual(a.keys,s)||s.some(c=>b.deepEqual(a.keys,[c])))[0];if(!i){console.error(`Conflicting binding could not be found for ${r} using keys ${o}`);continue}await this.props.deleteKeybinding(r,i)}await this._updateShortcut()},this.parseChaining=(t,o,s,r,i)=>{let a=q.keyForKeydownEvent(t.nativeEvent);const c=["Shift","Control","Alt","Meta","Ctrl","Accel"];if(t.key==="Backspace")s="",o="",r=[],i="",this.setState({value:o,userInput:s,keys:r,currentChain:i});else if(t.key!=="CapsLock"){const g=s.substr(s.lastIndexOf(" ")+1,s.length).trim();c.lastIndexOf(g)===-1&&g!=""?(s=s+",",r.push(i),i="",t.ctrlKey&&t.key!="Control"&&(s=(s+" Ctrl").trim(),i=(i+" Ctrl").trim()),t.metaKey&&t.key!="Meta"&&(s=(s+" Accel").trim(),i=(i+" Accel").trim()),t.altKey&&t.key!="Alt"&&(s=(s+" Alt").trim(),i=(i+" Alt").trim()),t.shiftKey&&t.key!="Shift"&&(s=(s+" Shift").trim(),i=(i+" Shift").trim()),c.lastIndexOf(t.key)===-1?(s=(s+" "+a).trim(),i=(i+" "+a).trim()):t.key==="Meta"?(s=(s+" Accel").trim(),i=(i+" Accel").trim()):t.key==="Control"?(s=(s+" Ctrl").trim(),i=(i+" Ctrl").trim()):t.key==="Shift"?(s=(s+" Shift").trim(),i=(i+" Shift").trim()):t.key==="Alt"?(s=(s+" Alt").trim(),i=(i+" Alt").trim()):(s=(s+" "+t.key).trim(),i=(i+" "+t.key).trim())):t.key==="Control"?(s=(s+" Ctrl").trim(),i=(i+" Ctrl").trim()):t.key==="Meta"?(s=(s+" Accel").trim(),i=(i+" Accel").trim()):t.key==="Shift"?(s=(s+" Shift").trim(),i=(i+" Shift").trim()):t.key==="Alt"?(s=(s+" Alt").trim(),i=(i+" Alt").trim()):(s=(s+" "+a).trim(),i=(i+" "+a).trim())}return this.setState({keys:r,currentChain:i}),[s,r,i]},this.checkNonFunctional=()=>{const t=["Ctrl","Alt","Accel","Shift"],o=this.state.currentChain.split(" "),s=o[o.length-1];return this.setState({isFunctional:t.indexOf(s)===-1}),t.indexOf(s)!==-1},this.checkShortcutAvailability=(t,o,s)=>{const r=this.props.findConflictsFor([...o,s],this.props.shortcut.selector),i=t===""||r.length===0;return!i&&r.length===1&&r[0].id===this.props.shortcut.id&&this._isReplacingExistingKeybinding?(this.setState({isAvailable:!0}),[]):(this.setState({isAvailable:i}),r)},this.handleInput=t=>{t.preventDefault(),this.setState({selected:!1});const o=this.parseChaining(t,this.state.value,this.state.userInput,this.state.keys,this.state.currentChain),s=o[0],r=o[1],i=o[2],a=this.props.toSymbols(s);let c=this.checkShortcutAvailability(s,r,i);this.setState({value:a,userInput:s,keys:r,currentChain:i},()=>{this.checkNonFunctional(),this._emitConflicts(c)})},this._handleBlur=t=>{var o,s;!((o=this._ref.current)===null||o===void 0)&&o.contains(t.relatedTarget)||!((s=t.relatedTarget)===null||s===void 0)&&s.closest(`.${D}`)||this.props.toggleInput()},this._ref=n.createRef(),this.state={value:this.props.placeholder,userInput:"",isAvailable:!0,isFunctional:this._isReplacingExistingKeybinding,keys:[],currentChain:"",selected:!0}}get _isReplacingExistingKeybinding(){return!!this.props.keybinding}_emitConflicts(e){const t=[...this.state.keys,this.state.currentChain];this.props.displayConflicts({conflictsWith:e,keys:this.state.keys,overwrite:async()=>{this.setState({isAvailable:!0}),await this._handleOverwrite(e,t),this.props.toggleInput()},cancel:()=>{this.props.toggleInput()}})}render(){const e=this.props.translator.load("jupyterlab");let t="jp-Shortcuts-Input";return this.state.isAvailable||(t+=" jp-mod-unavailable-Input"),n.createElement("div",{className:this.props.displayInput?this._isReplacingExistingKeybinding?"jp-Shortcuts-InputBox":"jp-Shortcuts-InputBox jp-Shortcuts-InputBoxNew":"jp-mod-hidden",ref:this._ref,onBlur:this._handleBlur},n.createElement("div",{tabIndex:0,className:t,onKeyDown:this.handleInput,ref:o=>o&&o.focus(),"data-lm-suppress-shortcuts":"true"},n.createElement("p",{className:this.state.selected&&this._isReplacingExistingKeybinding?"jp-Shortcuts-InputText jp-mod-selected-InputText":this.state.value===""?"jp-Shortcuts-InputText jp-mod-waiting-InputText":"jp-Shortcuts-InputText"},this.state.value===""?e.__("press keys"):this.state.value)),n.createElement("button",{className:this.state.isFunctional?this.state.isAvailable?"jp-Shortcuts-Submit":"jp-Shortcuts-Submit jp-mod-conflict-Submit":"jp-Shortcuts-Submit jp-mod-defunc-Submit",disabled:!this.state.isAvailable||!this.state.isFunctional,onClick:this.handleSubmit,tabIndex:0},this.state.isAvailable?n.createElement(F.react,null):n.createElement(H.react,null)))}}var C;(function(l){l.editBinding="shortcuts:edit-keybinding",l.addBinding="shortcuts:add-keybinding",l.deleteBinding="shortcuts:delete-keybinding",l.toggleSelectors="shortcuts:toggle-selectors",l.resetAll="shortcuts:reset-all"})(C||(C={}));var E;(function(l){l[l.Label=0]="Label",l[l.Category=1]="Category",l[l.Split=2]="Split",l[l.Default=3]="Default"})(E||(E={}));class j extends Map{constructor(e){var t,o,s,r;super();const{settings:i,commandRegistry:a,allCommands:c}=e;if(c)for(const g of a.listCommands()){const p={command:g,selector:"body"},f=this._computeTargetId(p),d=p.command.split(":"),m=(t=a.label(p.command,p.args))!==null&&t!==void 0?t:d.length>1?d[1]:void 0,u=d[0],y={...p,id:f,keybindings:[],category:u,label:m,args:{}};this.set(f,y)}else if(i){const g=(o=i.user.shortcuts)!==null&&o!==void 0?o:[],p=new Set(g.map(this._computeKeybindingId.bind(this))),f=(s=i.composite.shortcuts)!==null&&s!==void 0?s:[],d=i.default("shortcuts").map(m=>this._computeTargetId(m));for(const m of f){const u=this._computeTargetId(m),y=this._computeKeybindingId(m),h={keys:w.normalizeKeys(m),isDefault:!p.has(y),...m.preventDefault===void 0?{}:{preventDefault:m.preventDefault}},S=this.get(u);if(S)S.keybindings.push(h);else{const _=m.command.split(":"),K=(r=a.label(m.command,m.args))!==null&&r!==void 0?r:_.length>1?_[1]:void 0,B=_[0];this.set(u,{id:u,selector:m.selector,command:m.command,category:B,label:K,args:m.args,keybindings:[h],userDefined:!d.includes(u)})}}}}findConflictsFor(e,t){const o=new lt({registry:this}),s=e.map(w.normalizeKeystroke);let r=o.findConflicts(s,t);if(r.length!==0)return r;for(const i of s)if(r=o.findConflicts([i],t),r.length!==0)return r;return[]}_computeTargetId(e){var t;return e.command+"_"+e.selector+"_"+JSON.stringify((t=e.args)!==null&&t!==void 0?t:{})}_computeKeybindingId(e){var t;return[e.command,e.selector,JSON.stringify((t=e.args)!==null&&t!==void 0?t:{}),w.normalizeKeys(e).join(" ")].join("_")}}class lt{constructor(e){var t;const o=new Map;for(const s of e.registry.values())for(const r of s.keybindings){const i=this._keybindingHash(r.keys,s.selector),a=(t=o.get(i))!==null&&t!==void 0?t:[];a.push(s),o.set(i,a)}this._keybindingsMap=o}findConflicts(e,t){var o;const s=this._keybindingHash(e,t);return(o=this._keybindingsMap.get(s))!==null&&o!==void 0?o:[]}_keybindingHash(e,t){return e.join(" ")+"_"+t}}(function(l){function e(s){return s.replace(/\s+/g,"").toLowerCase()}function t(s,r){var i;const a=s.category.toLowerCase(),c=((i=s.label)!==null&&i!==void 0?i:"").toLowerCase(),g=`${a} ${c}`;let p=1/0,f=null;const d=/\b\w/g;for(;;){const S=d.exec(g);if(!S)break;const _=J.matchSumOfDeltas(g,r,S.index);if(!_)break;_&&_.score<=p&&(p=_.score,f=_.indices)}if(!f||p===1/0)return null;const m=a.length+1,u=U.lowerBound(f,m,(S,_)=>S-_),y=f.slice(0,u),h=f.slice(u);for(let S=0,_=h.length;S<_;++S)h[S]-=m;return y.length===0?{matchType:E.Label,categoryIndices:null,labelIndices:h,score:p,item:s}:h.length===0?{matchType:E.Category,categoryIndices:y,labelIndices:null,score:p,item:s}:{matchType:E.Split,categoryIndices:y,labelIndices:h,score:p,item:s}}function o(s,r){r=e(r);let i=[];for(const a of s.values()){if(!r){i.push({matchType:E.Default,categoryIndices:null,labelIndices:null,score:0,item:a});continue}let c=t(a,r);c&&i.push(c)}return i}l.matchItems=o})(j||(j={}));const ct={Ctrl:"⌃",Alt:"⌥",Shift:"⇧",Accel:"⌘",Cmd:"⌘"};class L extends n.Component{constructor(e){super(e),this.toggleInputNew=()=>{this.setState({displayNewInput:!this.state.displayNewInput,conflicts:new Map})},this.toSymbols=t=>k.IS_MAC?t.split(" ").map(o=>{var s;return(s=ct[o])!==null&&s!==void 0?s:o}).join(" "):t.split(" ").map(o=>o==="Accel"?"Ctrl":o).join(" "),this._trans=this.props.external.translator.load("jupyterlab"),this.state={displayNewInput:!1,displayReplaceInput:Object.freeze({}),conflicts:new Map}}componentDidMount(){this.props.external.actionRequested.connect(this._onActionRequested,this)}componentWillUnmount(){this.props.external.actionRequested.disconnect(this._onActionRequested,this)}async _onActionRequested(e,t){if(!("shortcutId"in t&&t.shortcutId!==this.props.shortcut.id)){if(t.request==="add-keybinding")return this.toggleInputNew();if(t.request==="edit-keybinding"&&this.toggleInputReplaceMethod(t.keybinding),t.request==="delete-keybinding"){const o=this.props.shortcut,s=o.keybindings[t.keybinding];this.props.deleteKeybinding(o,s).catch(console.error)}}}getCategoryCell(){return n.createElement("div",{className:"jp-Shortcuts-Cell"},this.props.shortcut.category)}getLabelCell(){var e;if(this.props.newShortcutUtils){const t=this._getFilteredCommands();return n.createElement("div",{className:"jp-Shortcuts-Cell"},n.createElement(tt,{value:this.props.shortcut.command,options:[{value:"",label:this._trans.__("Select a command")},...t.map(o=>({value:o.command,label:`${o.category}: ${o.label}`}))],onChange:o=>{var s,r,i;const a=t.find(c=>c.command===o.target.value);(s=this.props.newShortcutUtils)===null||s===void 0||s.updateCommand((r=a?.command)!==null&&r!==void 0?r:"",(i=a?.category)!==null&&i!==void 0?i:"")}}))}else return n.createElement("div",{className:"jp-Shortcuts-Cell"},n.createElement("div",{className:"jp-label"},(e=this.props.shortcut.label)!==null&&e!==void 0?e:this._trans.__("(Command label missing)")))}getResetShortCutLink(){return n.createElement("a",{className:"jp-Shortcuts-Reset",onClick:()=>this.props.resetKeybindings(this.props.shortcut)},this.props.shortcut.userDefined?this._trans.__("Delete"):this._trans.__("Reset"))}getSourceCell(){var e;const t=this.props.shortcut.keybindings.every(r=>r.isDefault),o=this.props.shortcut.userDefined||!!this.props.newShortcutUtils,s=o?this._trans.__("Custom options"):this._trans.__("Show options");return n.createElement("div",{className:"jp-Shortcuts-Cell"},!this.props.newShortcutUtils&&n.createElement("div",{className:"jp-Shortcuts-SourceCell"},t?this._trans.__("Default"):this._trans.__("Custom")),t?"":this.getResetShortCutLink(),this.props.external.editorFactory&&n.createElement(x,{className:"jp-mod-styled jp-mod-reject jp-Shortcuts-CustomOptions",onClick:async()=>{if(!this.props.external.editorFactory){console.error("Cannot build the custom options form");return}const i=await new rt({shortcut:this.props.shortcut,translator:this.props.external.translator,editorFactory:this.props.external.editorFactory,readOnly:!o}).launch();i.button.accept&&o&&i.value&&await this.props.setCustomOptions(this.props.shortcut,i.value)},title:s,"aria-label":s,appearance:"neutral"},o?n.createElement(W.react,{tag:null}):n.createElement(z.react,{tag:null})),!!this.props.newShortcutUtils&&n.createElement(n.Fragment,null,n.createElement(x,{className:"jp-mod-styled jp-mod-accept jp-Shortcuts-SaveNew",onClick:(e=this.props.newShortcutUtils)===null||e===void 0?void 0:e.saveShortcut,title:this._trans.__("Save shortcut"),"aria-label":this._trans.__("Save shortcut"),appearance:"neutral",disabled:!this.props.shortcut.command||!this.props.shortcut.keybindings.length||this.props.shortcut.keybindings.every(r=>!r.keys||r.keys.length===0)},n.createElement(F.react,{tag:null}))))}getOptionalSelectorCell(){return this.props.showSelectors?n.createElement("div",{className:"jp-Shortcuts-Cell"},n.createElement("div",{className:"jp-selector"},this.props.shortcut.selector)):null}getClassNameForShortCuts(e){const t=["jp-Shortcuts-ShortcutCell"];switch(e.length){case 1:t.push("jp-Shortcuts-SingleCell");break;case 0:t.push("jp-Shortcuts-EmptyCell");break}return t.join(" ")}toggleInputReplaceMethod(e){const t=this.state.displayReplaceInput[e];this.setState({displayReplaceInput:{...this.state.displayReplaceInput,[e]:!t},conflicts:new Map})}getDisplayReplaceInput(e){return this.state.displayReplaceInput[e]}getOrDisplayIfNeeded(e){const t=["jp-Shortcuts-Or"];return(e||this.state.displayNewInput)&&t.push("jp-Shortcuts-Or-Forced"),n.createElement("div",{className:t.join(" ")},this._trans.__("or"))}getShortCutAsInput(e,t){return n.createElement(A,{addKeybinding:this.props.addKeybinding,replaceKeybinding:this.props.replaceKeybinding,deleteKeybinding:this.props.deleteKeybinding,findConflictsFor:this.props.findConflictsFor,toggleInput:()=>this.toggleInputReplaceMethod(t),shortcut:this.props.shortcut,keybinding:e,displayConflicts:o=>{const s=new Map(this.state.conflicts);s.set(e,o),this.setState({conflicts:s})},toSymbols:this.toSymbols,displayInput:this.getDisplayReplaceInput(t),placeholder:this.toSymbols(e.keys.join(", ")),translator:this.props.external.translator})}getShortCutForDisplayOnly(e){return e.keys.map((t,o)=>n.createElement("div",{className:"jp-Shortcuts-ShortcutKeysContainer",key:o},n.createElement("div",{className:"jp-Shortcuts-ShortcutKeys"},this.toSymbols(t).split(" ").map((s,r,i)=>n.createElement(n.Fragment,{key:`${o}-${s}-${r}`},n.createElement("span",{className:"jp-ContextualShortcut-Key"},s),r+1<i.length?" + ":null))),o+1<e.keys.length?n.createElement("div",{className:"jp-Shortcuts-Comma"},","):null))}isLocationBeingEdited(e){return this.state.displayReplaceInput[e]}getDivForKey(e,t,o){return n.createElement("div",{className:"jp-Shortcuts-ShortcutContainer",key:this.props.shortcut.id+"_"+e,"data-keybinding":e,"data-shortcut":this.props.shortcut.id,onClick:()=>this.toggleInputReplaceMethod(e)},this.isLocationBeingEdited(e)?this.getShortCutAsInput(t,e):this.getShortCutForDisplayOnly(t),!(e===this._nonEmptyBindings.length-1&&Object.values(this.state.displayReplaceInput).some(Boolean))&&this.getOrDisplayIfNeeded(e<this._nonEmptyBindings.length-1))}getAddLink(){return n.createElement("a",{className:this.state.displayNewInput?"":"jp-Shortcuts-Plus",onClick:()=>{this.toggleInputNew()}},this._trans.__("Add"))}getInputBoxWhenToggled(){return this.state.displayNewInput?n.createElement(A,{addKeybinding:this.props.addKeybinding,replaceKeybinding:this.props.replaceKeybinding,deleteKeybinding:this.props.deleteKeybinding,findConflictsFor:this.props.findConflictsFor,toggleInput:this.toggleInputNew,shortcut:this.props.shortcut,displayConflicts:e=>{const t=new Map(this.state.conflicts);t.set(null,e),this.setState({conflicts:t})},toSymbols:this.toSymbols,displayInput:this.state.displayNewInput,placeholder:"",translator:this.props.external.translator}):n.createElement("div",null)}getShortCutsCell(e){return n.createElement("div",{className:"jp-Shortcuts-Cell"},n.createElement("div",{className:this.getClassNameForShortCuts(e)},e.map((t,o)=>this.getDivForKey(o,t,e)),e.length>=1&&!this.state.displayNewInput&&!Object.values(this.state.displayReplaceInput).some(Boolean)&&this.getAddLink(),e.length===0&&!this.state.displayNewInput&&this.getAddLink(),this.getInputBoxWhenToggled()))}getConflicts(){const e=[...this.state.conflicts.values()].filter(t=>t.conflictsWith.length!==0);return e.length===0?n.createElement(n.Fragment,null):n.createElement("div",{className:"jp-Shortcuts-Row jp-Shortcuts-RowWithConflict"},n.createElement("div",{className:D},e.map(t=>{const o=t.keys.join(" ")+"_"+t.conflictsWith.map(s=>s.id).join("");return n.createElement("div",{className:"jp-Shortcuts-Conflict",key:o},n.createElement("div",{className:"jp-Shortcuts-ErrorMessage"},this._trans.__("Shortcut already in use by %1. Overwrite it?",t.conflictsWith.map(s=>{var r;return(r=s.label)!==null&&r!==void 0?r:s.command}).join(", "))),n.createElement("div",{className:"jp-Shortcuts-ErrorButton"},n.createElement("button",{className:"jp-Button jp-mod-reject jp-mod-styled",onClick:()=>{this._clearConflict(t),t.cancel()}},this._trans.__("Cancel")),n.createElement("button",{className:"jp-Button jp-mod-warn jp-mod-styled",onClick:()=>{this._clearConflict(t),t.overwrite()}},this._trans.__("Overwrite"))))})))}_clearConflict(e){const t=new Map,o=this._conflictId(e);for(const[s,r]of this.state.conflicts.entries())this._conflictId(r)!==o&&t.set(s,r);this.setState({conflicts:t})}_conflictId(e){return e.keys.join(" ")+"_"+e.conflictsWith.map(t=>t.id).join("")}_getFilteredCommands(){var e,t;const o=new j({commandRegistry:this.props.external.commandRegistry,allCommands:!0}),s=j.matchItems(o,(t=(e=this.props.newShortcutUtils)===null||e===void 0?void 0:e.searchQuery)!==null&&t!==void 0?t:"").map(r=>r.item).filter(r=>!r.command.startsWith("__internal:"));return s.sort((r,i)=>{var a,c;const g=r.category,p=i.category,f=g.localeCompare(p);if(f)return f;{const d=(a=r.label)!==null&&a!==void 0?a:"",m=(c=i.label)!==null&&c!==void 0?c:"";return d.localeCompare(m)}}),s}get _nonEmptyBindings(){return this.props.shortcut.keybindings.filter(e=>e.keys.filter(t=>t!="").length!==0)}render(){return n.createElement(n.Fragment,null,n.createElement("div",{className:`jp-Shortcuts-Row${this.props.newShortcutUtils?" jp-Shortcuts-Row-newShortcut":""}`,"data-shortcut":this.props.shortcut.id},this.getCategoryCell(),this.getLabelCell(),this.getShortCutsCell(this._nonEmptyBindings),this.getSourceCell(),this.getOptionalSelectorCell()),this.getConflicts())}}const dt=115;class ht extends n.Component{render(){return n.createElement("div",{className:"jp-Shortcuts-ShortcutListContainer",style:{height:`${this.props.height-dt}px`},id:"shortcutListContainer"},n.createElement("div",{className:"jp-Shortcuts-ShortcutList"},this.props.shortcuts.map(e=>n.createElement(L,{key:e.id,addKeybinding:this.props.addKeybinding,replaceKeybinding:this.props.replaceKeybinding,deleteKeybinding:this.props.deleteKeybinding,resetKeybindings:this.props.resetKeybindings,findConflictsFor:this.props.findConflictsFor,setCustomOptions:this.props.setCustomOptions,shortcut:e,showSelectors:this.props.showSelectors,external:this.props.external}))))}}class ut extends n.Component{render(){return n.createElement("div",{className:this.props.title.toLowerCase()===this.props.active?"jp-Shortcuts-Header jp-Shortcuts-CurrentHeader":"jp-Shortcuts-Header",onClick:()=>this.props.updateSort(this.props.columnId)},this.props.title,n.createElement($.react,{className:"jp-Shortcuts-SortButton jp-ShortcutTitleItem-sortButton"}))}}function pt(l){const e=l.translator.load("jupyterlab");return n.createElement("div",{className:"jp-Shortcuts-AdvancedOptions"},n.createElement("a",{className:"jp-Shortcuts-AdvancedOptionsLink",onClick:()=>l.toggleSelectors()},l.showSelectors?e.__("Hide Selectors"):e.__("Show Selectors")),n.createElement("a",{className:"jp-Shortcuts-AdvancedOptionsLink",onClick:()=>l.resetShortcuts()},e.__("Reset All")),n.createElement(x,{className:"jp-mod-styled jp-mod-accept jp-Shortcuts-AdvancedOptionsButton",onClick:l.toggleAddCommandRow,title:e.__("Tool for adding shortcuts"),"aria-label":e.__("Tool for adding shortcuts")},n.createElement(Q.react,{tag:"span",elementSize:"xlarge",elementPosition:"center"})))}class mt extends n.Component{constructor(e){super(e)}getShortCutTitleItem(e,t){return n.createElement("div",{className:"jp-Shortcuts-Cell"},n.createElement(ut,{title:e,updateSort:this.props.updateSort,active:this.props.currentSort,columnId:t}))}render(){const e=this.props.translator.load("jupyterlab");return n.createElement("div",{className:"jp-Shortcuts-Top"},n.createElement("div",{className:"jp-Shortcuts-TopNav"},n.createElement(et,{"aria-label":e.__("Search shortcuts"),updateFilter:(t,o)=>this.props.updateSearchQuery(o??""),placeholder:e.__("Search…"),useFuzzyFilter:!1}),n.createElement(pt,{toggleSelectors:this.props.toggleSelectors,showSelectors:this.props.showSelectors,resetShortcuts:this.props.resetShortcuts,toggleAddCommandRow:this.props.toggleAddCommandRow,translator:this.props.translator})),n.createElement("div",{className:"jp-Shortcuts-HeaderRowContainer"},n.createElement("div",{className:"jp-Shortcuts-HeaderRow"},this.getShortCutTitleItem(e.__("Category"),"category"),this.getShortCutTitleItem(e.__("Command"),"command"),n.createElement("div",{className:"jp-Shortcuts-Cell"},n.createElement("div",{className:"title-div"},e.__("Shortcut"))),this.getShortCutTitleItem(e.__("Source"),"source"),this.props.showSelectors&&this.getShortCutTitleItem(e.__("Selectors"),"selector"))))}}class gt extends n.Component{constructor(e){super(e),this.updateSearchQuery=t=>{this.setState({searchQuery:t},()=>{const o=this.state.shortcutRegistry;this.setState({filteredShortcutList:this._searchFilterShortcuts(o)},()=>{this.sortShortcuts()})})},this.resetShortcuts=async()=>{await(await this.props.external.getSettings()).set("shortcuts",[]),await this._refreshShortcutList()},this.resetKeybindings=async t=>{await this._setKeybinding(t,[])},this.replaceKeybinding=async(t,o,s)=>this._setKeybinding(t,s,o),this.deleteKeybinding=async(t,o)=>{await this._setKeybinding(t,[],o)},this.addKeybinding=async(t,o)=>{await this._setKeybinding(t,o)},this.setCustomOptions=async(t,o)=>{var s;const r=await this.props.external.getSettings(),i=(s=r.user.shortcuts)!==null&&s!==void 0?s:[],a=i.filter(c=>{var g,p;return c.command===t.command&&c.selector===t.selector&&b.deepEqual((g=c.args)!==null&&g!==void 0?g:{},(p=t.args)!==null&&p!==void 0?p:{})});return a.length?(a.forEach(c=>{c.selector=o.selector,c.args=o.args}),await r.set("shortcuts",i),await this._refreshShortcutList(),!0):(console.error("Error writing the custom options: target not found"),!1)},this.toggleSelectors=()=>{this.setState({showSelectors:!this.state.showSelectors})},this.toggleAddCommandRow=async()=>{this.setState({showAddCommand:!this.state.showAddCommand})},this.updateSort=t=>{t!==this.state.currentSort&&this.setState({currentSort:t},this.sortShortcuts)},this.saveNewShortcut=async()=>{const t={...this.state.newShortcut,args:void 0};for(let s of t.keybindings)await this.addKeybinding(t,s.keys);await this.setCustomOptions(t,{selector:t.selector,args:this.state.newShortcut.args})&&(this._newShortcutItem.reset(),this.toggleAddCommandRow())},this._newShortcutItem=new it({showSelectors:!1,findConflictsFor:(t,o)=>this.state.shortcutRegistry?this.state.shortcutRegistry.findConflictsFor(t,o):(console.error("Cannot search for keybinding conflicts at this time: registry is not ready"),[]),external:this.props.external}),this.state={shortcutRegistry:null,filteredShortcutList:new Array,shortcutsFetched:!1,searchQuery:"",showSelectors:!1,currentSort:"category",showAddCommand:!1,newShortcut:this._newShortcutItem.shortcut},this._newShortcutItem.changed.connect(()=>{this.setState({newShortcut:{...this._newShortcutItem.shortcut}})})}componentDidMount(){this.props.external.actionRequested.connect(this._onActionRequested,this),this._refreshShortcutList()}componentWillUnmount(){this.props.external.actionRequested.disconnect(this._onActionRequested,this)}async _onActionRequested(e,t){if(t.request==="toggle-selectors")return this.toggleSelectors();t.request==="reset-all"&&await this.resetShortcuts()}async _refreshShortcutList(){const e=await this.props.external.getSettings(),t=new j({commandRegistry:this.props.external.commandRegistry,settings:e});this.setState({shortcutRegistry:t,filteredShortcutList:this._searchFilterShortcuts(t),shortcutsFetched:!0},()=>{this.sortShortcuts()})}_searchFilterShortcuts(e){return e?j.matchItems(e,this.state.searchQuery).map(o=>o.item):[]}async _setKeybinding(e,t,o){var s,r,i,a,c;t.length===1&&t[0]==""&&(t=[]);const g=t.map(w.normalizeKeystroke),p=await this.props.external.getSettings(),f=(s=p.user.shortcuts)!==null&&s!==void 0?s:[],d=[];let m=!1;for(let u of f)if(u.command===e.command&&u.selector===e.selector&&b.deepEqual((r=u.args)!==null&&r!==void 0?r:{},(i=e.args)!==null&&i!==void 0?i:{})&&o&&b.deepEqual(o.keys,w.normalizeKeys(u))){const y=o.isDefault&&b.deepEqual(o.keys,g);t.length!==0&&!y&&d.push(this._setShortcutKeys(u,t)),m=!0}else{if(u.command===e.command&&u.selector===e.selector&&b.deepEqual((a=u.args)!==null&&a!==void 0?a:{},(c=e.args)!==null&&c!==void 0?c:{})&&!o&&t.length===0)continue;d.push(u)}if(!m){const u=!o||!b.deepEqual(o.keys,g);o&&o.isDefault&&u&&d.push(this._shortcutFromTarget(e,o.keys,{disabled:!0,preventDefault:o.preventDefault})),t.length!==0&&u&&d.push(this._shortcutFromTarget(e,t,{preventDefault:o?.preventDefault}))}await p.set("shortcuts",d),await this._refreshShortcutList()}_setShortcutKeys(e,t){const o=this._platformKeys(e);return{...e,[o]:t}}_shortcutFromTarget(e,t,o={}){const s={command:e.command,selector:e.selector,keys:t};return e.args&&!b.deepEqual(e.args,{})&&(s.args=e.args),o.disabled&&(s.disabled=!0),o.preventDefault!==void 0&&(s.preventDefault=o.preventDefault),s}_platformKeys(e){return k.IS_WIN&&e.winKeys?"winKeys":k.IS_MAC&&e.macKeys?"macKeys":!k.IS_WIN&&!k.IS_MAC&&e.linuxKeys?"linuxKeys":"keys"}sortShortcuts(){const e=this.state.filteredShortcutList;let t=this.state.currentSort;t==="command"&&(t="label");const o=s=>{var r;return t==="source"?s.keybindings.every(i=>i.isDefault)?"default":"other":(r=s[t])!==null&&r!==void 0?r:""};e.sort((s,r)=>{var i,a;const c=o(s),g=o(r),p=c.localeCompare(g);if(p)return p;{const f=(i=s.label)!==null&&i!==void 0?i:"",d=(a=r.label)!==null&&a!==void 0?a:"";return f.localeCompare(d)}}),this.setState({filteredShortcutList:e})}render(){return this.state.shortcutsFetched?n.createElement("div",{className:"jp-Shortcuts-ShortcutUI",id:"jp-shortcutui"},n.createElement(mt,{updateSearchQuery:this.updateSearchQuery,resetShortcuts:this.resetShortcuts,toggleSelectors:this.toggleSelectors,showSelectors:this.state.showSelectors,updateSort:this.updateSort,currentSort:this.state.currentSort,toggleAddCommandRow:this.toggleAddCommandRow,width:this.props.width,translator:this.props.external.translator}),this.state.showAddCommand&&n.createElement(L,{...this._newShortcutItem,shortcut:this.state.newShortcut,newShortcutUtils:{searchQuery:this.state.searchQuery,updateCommand:this._newShortcutItem.updateCommand,saveShortcut:this.saveNewShortcut}}),n.createElement(ht,{shortcuts:this.state.filteredShortcutList,resetKeybindings:this.resetKeybindings,addKeybinding:this.addKeybinding,replaceKeybinding:this.replaceKeybinding,deleteKeybinding:this.deleteKeybinding,setCustomOptions:this.setCustomOptions,showSelectors:this.state.showSelectors,findConflictsFor:(e,t)=>this.state.shortcutRegistry?this.state.shortcutRegistry.findConflictsFor(e,t):(console.error("Cannot search for keybinding conflicts at this time: registry is not ready"),[]),height:this.props.height,external:this.props.external})):null}}const yt=l=>P.createElement(gt,{external:l.external,height:1e3,width:1e3}),T="@jupyterlab/shortcuts-extension:shortcuts";function ft(l,e,t,o,s){return{translator:t,getSettings:()=>l.load(T,!0),commandRegistry:e.commands,actionRequested:o,editorFactory:s}}const v={id:T,description:"Adds the keyboard shortcuts editor.",requires:[ot],optional:[V,st,G],activate:async(l,e,t,o,s)=>{const r=t??Y,i=r.load("jupyterlab"),{commands:a}=l;let c,g,p={};if(o){const d=new R({}),m=h=>h.dataset.shortcut!==void 0;l.commands.addCommand(C.editBinding,{label:i.__("Edit Keybinding"),caption:i.__("Edit existing keybinding"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{const h=l.contextMenuHitTest(m),S=h?.dataset.keybinding,_=h?.dataset.shortcut;if(!_||!S)return console.log("Missing shortcut id/keybinding information");d.emit({request:"edit-keybinding",keybinding:parseInt(S,10),shortcutId:_})}}),l.commands.addCommand(C.deleteBinding,{label:i.__("Delete Keybinding"),caption:i.__("Delete chosen keybinding"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{const h=l.contextMenuHitTest(m),S=h?.dataset.keybinding,_=h?.dataset.shortcut;if(!_||!S)return console.log("Missing shortcut id/keybinding information");d.emit({request:"delete-keybinding",keybinding:parseInt(S,10),shortcutId:_})}}),l.commands.addCommand(C.addBinding,{label:i.__("Add Keybinding"),caption:i.__("Add new keybinding for existing shortcut target"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{const h=l.contextMenuHitTest(m),S=h?.dataset.shortcut;if(!S)return console.log("Missing shortcut id to add keybinding to");d.emit({request:"add-keybinding",shortcutId:S})}}),a.addCommand(C.toggleSelectors,{label:i.__("Toggle Selectors"),caption:i.__("Toggle command selectors"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{d.emit({request:"toggle-selectors"})}}),a.addCommand(C.resetAll,{label:i.__("Reset All"),caption:i.__("Reset all shortcuts"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{d.emit({request:"reset-all"})}});const u=s?h=>s.factoryService.newInlineEditor(h):void 0,y={fieldRenderer:h=>yt({external:ft(e,l,r,d,u),...h})};o.addRenderer(`${v.id}.shortcuts`,y)}function f(d){const m=l.commands.listCommands().join(`
2
+ `);g||(g=b.deepCopy(d.properties.shortcuts.default)),p={},d.properties.shortcuts.default=Object.keys(e.plugins).map(u=>{const y=e.plugins[u].schema["jupyter.lab.shortcuts"]||[];return p[u]=y,y}).concat([g]).reduce((u,y)=>k.IS_MAC?u.concat(y):u.concat(y.filter(h=>!h.keys.some(S=>{const{cmd:_}=w.parseKeystroke(S);return _}))),[]).sort((u,y)=>u.command.localeCompare(y.command)),d.properties.shortcuts.description=i.__(`Note: To disable a system default shortcut,
3
+ copy it to User Preferences and add the
4
+ "disabled" key, for example:
5
+ {
6
+ "command": "application:activate-next-tab",
7
+ "keys": [
8
+ "Ctrl Shift ]"
9
+ ],
10
+ "selector": "body",
11
+ "disabled": true
12
+ }
13
+
14
+ List of commands followed by keyboard shortcuts:
15
+ %1
16
+
17
+ List of keyboard shortcuts:`,m)}e.pluginChanged.connect(async(d,m)=>{if(m!==v.id){const u=p[m],y=e.plugins[m].schema["jupyter.lab.shortcuts"]||[];if(u===void 0||!b.deepEqual(u,y)){c=null;const h=e.plugins[v.id].schema;h.properties.shortcuts.default=g,await e.load(v.id,!0)}}}),e.transform(v.id,{compose:d=>{var m,u,y,h;c||(c=b.deepCopy(d.schema),f(c));const S=(y=(u=(m=c.properties)===null||m===void 0?void 0:m.shortcuts)===null||u===void 0?void 0:u.default)!==null&&y!==void 0?y:[],_={shortcuts:(h=d.data.user.shortcuts)!==null&&h!==void 0?h:[]},K={shortcuts:X.reconcileShortcuts(S,_.shortcuts)};return d.data={composite:K,user:_},d},fetch:d=>(c||(c=b.deepCopy(d.schema),f(c)),{data:d.data,id:d.id,raw:d.raw,schema:c,version:d.version})});try{c=null;const d=await e.load(v.id);I.loadShortcuts(a,d.composite),d.changed.connect(()=>{I.loadShortcuts(a,d.composite)})}catch(d){console.error(`Loading ${v.id} failed.`,d)}},autoStart:!0};var I;(function(l){let e;function t(s,r){var i;const a=(i=r?.shortcuts)!==null&&i!==void 0?i:[];e&&e.dispose(),e=a.reduce((c,g)=>{const p=o(g);return p&&c.add(s.addKeyBinding(p)),c},new Z)}l.loadShortcuts=t;function o(s){if(!s||typeof s!="object")return;const{isArray:r}=Array;return"command"in s&&"keys"in s&&"selector"in s&&r(s.keys)?s:void 0}})(I||(I={}));export{v as default};
@@ -0,0 +1 @@
1
+ import{cl as E,ay as I,az as j,co as N,aD as x,r as d,cp as L,cq as w,cr as A,aA as D,cs as R,ct as M,aC as O,cu as P,cv as T,cw as U,cx as W}from"../datalayer-app-main.js";import{I as q}from"./tokens-D1WVYIDT.js";import{c as z}from"./index-BbLfaxiL.js";import{b as F}from"./index-CXEjqez2.js";import{I as H}from"./tokens-DbNnxPrX.js";import"./Output-UPeDwjyI.js";import"./index-DK_juJTN.js";import"./hoverbox-CStlKQWE.js";import"./index-BqnIBWZ9.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-DjmHhd-b.js";import"./d3-color-Jd8hXty2.js";import"./index-BrUAt6vF.js";import"./KebabHorizontalIcon-D6AY8pIS.js";import"./PaintbrushIcon-CFBHU-3l.js";import"./index-DYBgss-E.js";import"./RestartIcon-Ca6_HoK0.js";import"./CellSidebarExtension-BMT21AEe.js";import"./NotebookSkeleton-D-wj2esi.js";import"./Avatar-DvWrRG_3.js";import"./renderer-DX-Dx5-F.js";import"./SquareIcon-Dy3l3VdH.js";import"./FileDirectoryOpenFillIcon-jGhuRcP3.js";import"./url-C6fJII94.js";/* empty css *//* empty css */import"./index-Dro44tIm.js";/* empty css */import"./index-DsG9xhMj.js";/* empty css */import"./index-CNU-WVhQ.js";import"./index--OLIX362.js";import"./index-DYGslHkf.js";import"./index-BSRVX3UN.js";import"./index-BH2OX5l8.js";import"./index-C3vDfO5_.js";import"./index-Ko8lxXFd.js";import"./index-CB9u17_J.js";import"./index-BUVtc_FV.js";import"./ArrowLeftIcon-sX3iNMG1.js";import"./SkubbleIcon-tlg17jBG.js";import"./usePrimerThemeBridge-DyX4EYyN.js";import"./index-DS7lfBW6.js";import"./KernelVariables-JJah7mez.js";import"./index-C0d-d3s4.js";import"./SortAscIcon-CmH04s3F.js";import"./SortDescIcon-Qif6E10I.js";import"./NotebookToolbar-C6VvAn4V.js";import"./RepoPushIcon-BtXQRhLa.js";import"./Toolbar-CalSw9_B.js";import"./sessions-Dlwi03ae.js";import"./tokens-CBhRbpQP.js";import"./drivecontents-D1HzL7Fi.js";import"./kernel-BmfZmtIo.js";const K="jp-Launcher";class V extends E{constructor(){super(...arguments),this.itemsList=[]}add(r){const e=k.createItem(r);return this.itemsList.push(e),this.stateChanged.emit(void 0),new I(()=>{j.removeFirstOf(this.itemsList,e),this.stateChanged.emit(void 0)})}items(){return this.itemsList[Symbol.iterator]()}}class $ extends N{constructor(r){super(r.model),this._pending=!1,this._cwd="",this._cwd=r.cwd,this.translator=r.translator||x,this._trans=this.translator.load("jupyterlab"),this._callback=r.callback,this._commands=r.commands,this.addClass(K)}get cwd(){return this._cwd}set cwd(r){this._cwd=r,this.update()}get pending(){return this._pending}set pending(r){this._pending=r}render(){if(!this.model)return null;const r=[this._trans.__("Notebook"),this._trans.__("Console")],e=Object.create(null);for(const t of this.model.items()){const a=t.category||this._trans.__("Other");a in e||(e[a]=[]),e[a].push(t)}for(const t in e)e[t]=e[t].sort((a,n)=>k.sortCmp(a,n,this._cwd,this._commands));const p=[];let o;const u={[this._trans.__("Notebook")]:0,[this._trans.__("Console")]:20,[this._trans.__("Other")]:100};return Object.keys(e).sort((t,a)=>{const n=h=>{var _,g;const i=(_=e[h])!==null&&_!==void 0?_:[],f=(g=u[h])!==null&&g!==void 0?g:1/0;return Math.min(...i.map(y=>{var v;return(v=y.categoryRank)!==null&&v!==void 0?v:f}))},c=n(t),s=n(a);return c!==s?c-s:t.localeCompare(a)}).forEach(t=>{if(!e[t])return;const a=e[t][0],n={...a.args,cwd:this.cwd},c=r.indexOf(t)>-1,s=this._commands.iconClass(a.command,n),h=this._commands.icon(a.command,n);t in e&&(o=d.createElement("div",{className:"jp-Launcher-section",key:t},d.createElement("div",{className:"jp-Launcher-sectionHeader"},d.createElement(L.resolveReact,{icon:h,iconClass:w(s,"jp-Icon-cover"),stylesheet:"launcherSection","aria-hidden":"true"}),d.createElement("h2",{className:"jp-Launcher-sectionTitle"},t)),d.createElement("div",{className:"jp-Launcher-cardContainer"},Array.from(A(e[t],_=>G(c,_,this,this._commands,this._trans,this._callback))))),p.push(o))}),d.createElement("div",{className:"jp-Launcher-body jp-zoom-target"},d.createElement("div",{className:"jp-Launcher-content"},d.createElement("div",{className:"jp-Launcher-cwd"},d.createElement("h3",null,this.cwd)),p))}}function G(m,r,e,p,o,u){const l=r.command,t={...r.args,cwd:e.cwd},a=p.caption(l,t),n=p.label(l,t),c=m?n:a||n,s=()=>{e.pending!==!0&&(e.pending=!0,p.execute(l,{...r.args,cwd:e.cwd}).then(i=>{e.pending=!1,i instanceof D&&u(i)}).catch(i=>{console.error(i),e.pending=!1,R(o._p("Error","Launcher Error"),i)}))},h=i=>{(i.key==="Enter"||i.key===" "||i.key==="Spacebar")&&(i.preventDefault(),s())},_=p.iconClass(l,t),g=p.icon(l,t);return d.createElement("div",{className:"jp-LauncherCard",title:c,role:"button",onClick:s,onKeyDown:h,tabIndex:0,"data-category":r.category||o.__("Other"),key:k.keyProperty.get(r)},d.createElement("div",{className:"jp-LauncherCard-icon"},m?r.kernelIconUrl?d.createElement("img",{src:r.kernelIconUrl,className:"jp-Launcher-kernelIcon",alt:c}):d.createElement("div",{className:"jp-LauncherCard-noKernelIcon"},n[0].toUpperCase()):d.createElement(L.resolveReact,{icon:g,iconClass:w(_,"jp-Icon-cover"),stylesheet:"launcherCard"})),d.createElement("div",{className:"jp-LauncherCard-label",title:c},d.createElement("p",null,n)))}var k;(function(m){let r=0;m.keyProperty=new M({name:"key",create:()=>r++});function e(o){return{...o,category:o.category||"",rank:o.rank!==void 0?o.rank:1/0}}m.createItem=e;function p(o,u,l,t){const a=o.rank,n=u.rank;if(a!==n&&a!==void 0&&n!==void 0)return a<n?-1:1;const c=t.label(o.command,{...o.args,cwd:l}),s=t.label(u.command,{...u.args,cwd:l});return c.localeCompare(s)}m.sortCmp=p})(k||(k={}));var C;(function(m){m.create="launcher:create"})(C||(C={}));const Qe={activate:J,id:"@jupyterlab/launcher-extension:plugin",description:"Provides the launcher tab service.",requires:[O],optional:[z,F,H],provides:q,autoStart:!0};function J(m,r,e,p,o){const{commands:u,shell:l}=m,t=r.load("jupyterlab"),a=new V;return u.addCommand(C.create,{label:t.__("New Launcher"),icon:n=>n.toolbar?P:void 0,describedBy:{args:{type:"object",properties:{cwd:{type:"string",description:t.__("The current working directory")},toolbar:{type:"boolean",description:t.__("Whether the command is executed from a toolbar")},activate:{type:"boolean",description:t.__("Whether to activate the widget")},ref:{type:"string",description:t.__("The reference widget id")}}}},execute:n=>{var c,s;const h=(s=(c=n.cwd)!==null&&c!==void 0?c:o?.model.path)!==null&&s!==void 0?s:"",_=`launcher-${b.id++}`,g=y=>{W(l.widgets("main"),v=>v===y)&&(l.add(y,"main",{ref:_}),i.dispose())},i=new $({model:a,cwd:h,callback:g,commands:u,translator:r});i.model=a,i.title.icon=T,i.title.label=t.__("Launcher");const f=new U({content:i});if(f.title.closable=!!Array.from(l.widgets("main")).length,f.id=_,l.add(f,"main",{activate:n.activate,ref:n.ref}),e&&e.layoutModified.connect(()=>{f.title.closable=Array.from(e.widgets("main")).length>1},f),o){const y=v=>{i.cwd=v.path};o.model.pathChanged.connect(y),i.disposed.connect(()=>{o.model.pathChanged.disconnect(y)})}return f}}),e&&Promise.all([m.restored,o?.model.restored]).then(()=>{function n(){e.isEmpty("main")&&u.execute(C.create)}e.layoutModified.connect(()=>{n()})}),p&&p.addItem({command:C.create,category:t.__("Launcher")}),e&&(e.addButtonEnabled=!0,e.addRequested.connect((n,c)=>{var s;const h=((s=c.currentTitle)===null||s===void 0?void 0:s.owner.id)||c.titles[c.titles.length-1].owner.id;return u.execute(C.create,{ref:h})})),a}var b;(function(m){m.id=0})(b||(b={}));export{Qe as default};
@@ -0,0 +1,2 @@
1
+ import{_ as a,l as o,D as s,d as p}from"./index-DjEoMYXa.js";import{p as n}from"./cynefin-OW5HDTMX-D8Lw5okC.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./index-Dz7T8mqj.js";import"./dayjs.min-u3zuoSR8.js";import"./fastdom-promised-ihiknY5F.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";var m={parse:a(async r=>{const t=await n("info",r);o.debug(t)},"parse")},g={version:"11.17.2"},d=a(()=>g.version,"getVersion"),v={getVersion:d},c=a((r,t,i)=>{o.debug(`rendering info diagram
2
+ `+r);const e=s(t);p(e,100,400,!0),e.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${i}`)},"draw"),l={draw:c},V={parser:m,db:v,renderer:l};export{V as diagram};
@@ -0,0 +1,2 @@
1
+ import{_ as a,l as o,D as s,d as p}from"./index-C7Y6qb5P.js";import{p as n}from"./cynefin-OW5HDTMX-BBLugbYz.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./index-Dz7T8mqj.js";import"./dayjs.min-u3zuoSR8.js";import"./fastdom-promised-ihiknY5F.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";var m={parse:a(async r=>{const t=await n("info",r);o.debug(t)},"parse")},g={version:"11.17.2"},d=a(()=>g.version,"getVersion"),v={getVersion:d},c=a((r,t,i)=>{o.debug(`rendering info diagram
2
+ `+r);const e=s(t);p(e,100,400,!0),e.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${i}`)},"draw"),l={draw:c},V={parser:m,db:v,renderer:l};export{V as diagram};
@@ -0,0 +1,2 @@
1
+ import{_ as a,l as o,D as s,d as n}from"./mermaid.core-DRZOVBT3.js";import{p}from"./cynefin-OW5HDTMX-BVK0_S--.js";import"../datalayer-app-main.js";import"./index-Dz7T8mqj.js";import"./dayjs.min-u3zuoSR8.js";import"./fastdom-promised-ihiknY5F.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";var m={parse:a(async r=>{const t=await p("info",r);o.debug(t)},"parse")},g={version:"11.17.2"},d=a(()=>g.version,"getVersion"),v={getVersion:d},c=a((r,t,i)=>{o.debug(`rendering info diagram
2
+ `+r);const e=s(t);n(e,100,400,!0),e.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${i}`)},"draw"),l={draw:c},F={parser:m,db:v,renderer:l};export{F as diagram};
@@ -1,7 +1,7 @@
1
- import{l as Y,y as D,d as M}from"./mermaid.core-DIIwHAlX.js";import"./index-DqGFpucN.js";import"./index-DoBkwclg.js";import"../datalayer-app-main.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./merge-B_wcPK4Y.js";import"./Middleware-BiLBmIq0.js";import"./color-CG7_7V2-.js";import"./index-atSsKceW.js";var O=(function(){var a=function(u,t,e,i){for(e=e||{},i=u.length;i--;e[u[i]]=t);return e},f=[6,9,10],_={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,i,s,r,n,d){switch(n.length-1,r){case 1:return s;case 4:break;case 6:s.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},a(f,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},a(f,[2,3]),a(f,[2,4]),a(f,[2,5]),a(f,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(e.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=e,i}},parse:function(t){var e=this,i=[0],s=[],r=[null],n=[],d=this.table,P="",v=0,L=0,N=2,T=1,R=n.slice.call(arguments,1),o=Object.create(this.lexer),p={yy:{}};for(var E in this.yy)Object.prototype.hasOwnProperty.call(this.yy,E)&&(p.yy[E]=this.yy[E]);o.setInput(t,p.yy),p.yy.lexer=o,p.yy.parser=this,typeof o.yylloc>"u"&&(o.yylloc={});var I=o.yylloc;n.push(I);var z=o.options&&o.options.ranges;typeof p.yy.parseError=="function"?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function U(){var y;return y=s.pop()||o.lex()||T,typeof y!="number"&&(y instanceof Array&&(s=y,y=s.pop()),y=e.symbols_[y]||y),y}for(var l,g,h,w,m={},b,c,F,S;;){if(g=i[i.length-1],this.defaultActions[g]?h=this.defaultActions[g]:((l===null||typeof l>"u")&&(l=U()),h=d[g]&&d[g][l]),typeof h>"u"||!h.length||!h[0]){var A="";S=[];for(b in d[g])this.terminals_[b]&&b>N&&S.push("'"+this.terminals_[b]+"'");o.showPosition?A="Parse error on line "+(v+1)+`:
1
+ import{l as Y,y as D,d as M}from"./mermaid.core-CCCzTT5Y.js";import"./index-Dz7T8mqj.js";import"./index-DoBkwclg.js";import"../datalayer-app-main.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./merge-B_wcPK4Y.js";import"./Middleware-BiLBmIq0.js";import"./dayjs.min-u3zuoSR8.js";var O=(function(){var a=function(u,t,e,i){for(e=e||{},i=u.length;i--;e[u[i]]=t);return e},f=[6,9,10],_={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,i,s,r,n,d){switch(n.length-1,r){case 1:return s;case 4:break;case 6:s.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},a(f,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},a(f,[2,3]),a(f,[2,4]),a(f,[2,5]),a(f,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(e.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=e,i}},parse:function(t){var e=this,i=[0],s=[],r=[null],n=[],d=this.table,P="",v=0,L=0,N=2,T=1,R=n.slice.call(arguments,1),o=Object.create(this.lexer),p={yy:{}};for(var E in this.yy)Object.prototype.hasOwnProperty.call(this.yy,E)&&(p.yy[E]=this.yy[E]);o.setInput(t,p.yy),p.yy.lexer=o,p.yy.parser=this,typeof o.yylloc>"u"&&(o.yylloc={});var I=o.yylloc;n.push(I);var z=o.options&&o.options.ranges;typeof p.yy.parseError=="function"?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function U(){var y;return y=s.pop()||o.lex()||T,typeof y!="number"&&(y instanceof Array&&(s=y,y=s.pop()),y=e.symbols_[y]||y),y}for(var l,g,h,w,m={},b,c,F,S;;){if(g=i[i.length-1],this.defaultActions[g]?h=this.defaultActions[g]:((l===null||typeof l>"u")&&(l=U()),h=d[g]&&d[g][l]),typeof h>"u"||!h.length||!h[0]){var A="";S=[];for(b in d[g])this.terminals_[b]&&b>N&&S.push("'"+this.terminals_[b]+"'");o.showPosition?A="Parse error on line "+(v+1)+`:
2
2
  `+o.showPosition()+`
3
3
  Expecting `+S.join(", ")+", got '"+(this.terminals_[l]||l)+"'":A="Parse error on line "+(v+1)+": Unexpected "+(l==T?"end of input":"'"+(this.terminals_[l]||l)+"'"),this.parseError(A,{text:o.match,token:this.terminals_[l]||l,line:o.yylineno,loc:I,expected:S})}if(h[0]instanceof Array&&h.length>1)throw new Error("Parse Error: multiple actions possible at state: "+g+", token: "+l);switch(h[0]){case 1:i.push(l),r.push(o.yytext),n.push(o.yylloc),i.push(h[1]),l=null,L=o.yyleng,P=o.yytext,v=o.yylineno,I=o.yylloc;break;case 2:if(c=this.productions_[h[1]][1],m.$=r[r.length-c],m._$={first_line:n[n.length-(c||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(c||1)].first_column,last_column:n[n.length-1].last_column},z&&(m._$.range=[n[n.length-(c||1)].range[0],n[n.length-1].range[1]]),w=this.performAction.apply(m,[P,L,v,p.yy,h[1],r,n].concat(R)),typeof w<"u")return w;c&&(i=i.slice(0,-1*c*2),r=r.slice(0,-1*c),n=n.slice(0,-1*c)),i.push(this.productions_[h[1]][0]),r.push(m.$),n.push(m._$),F=d[i[i.length-2]][i[i.length-1]],i.push(F);break;case 3:return!0}}return!0}},k=(function(){var u={EOF:1,parseError:function(e,i){if(this.yy.parser)this.yy.parser.parseError(e,i);else throw new Error(e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);return e?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===s.length?this.yylloc.first_column:0)+s[s.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
5
5
  `+e+"^"},test_match:function(t,e){var i,s,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),s=t[0].match(/(?:\r\n?|\n).*/g),s&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var n in r)this[n]=r[n];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,e,i,s;this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),n=0;n<r.length;n++)if(i=this._input.match(this.rules[r[n]]),i&&(!e||i[0].length>e[0].length)){if(e=i,s=n,this.options.backtrack_lexer){if(t=this.test_match(i,r[n]),t!==!1)return t;if(this._backtrack){e=!1;continue}else return!1}else if(!this.options.flex)break}return e?(t=this.test_match(e,r[s]),t!==!1?t:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
6
  `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,i,s,r){switch(s){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};return u})();_.lexer=k;function x(){this.yy={}}return x.prototype=_,_.Parser=x,new x})();O.parser=O;const B=O,j={info:!1};let $=j.info;const V=a=>{$=a},X=()=>$,q=()=>{$=j.info},C={clear:q,setInfo:V,getInfo:X},G=(a,f,_)=>{Y.debug(`rendering info diagram
7
- `+a);const k=D(f);M(k,100,400,!0),k.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${_}`)},H={draw:G},rt={parser:B,db:C,renderer:H};export{rt as diagram};
7
+ `+a);const k=D(f);M(k,100,400,!0),k.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${_}`)},H={draw:G},st={parser:B,db:C,renderer:H};export{st as diagram};