@datalayer/agent-runtimes 1.3.99 → 1.3.101

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 (292) hide show
  1. package/dist-embed/chunks/{AgentDetails-DDIhoGCr.js → AgentDetails-CO9iM59C.js} +8 -8
  2. package/dist-embed/chunks/{AgentDetailsDialog-DQfL7V4R.js → AgentDetailsDialog-DmD6xm6k.js} +1 -1
  3. package/dist-embed/chunks/{AgentInspector-DaMCROPs.js → AgentInspector-kDMuvh45.js} +1 -1
  4. package/dist-embed/chunks/{AgentInspectorDialog-zGMiFR5z.js → AgentInspectorDialog-fT96Pb4Z.js} +1 -1
  5. package/dist-embed/chunks/Avatar-Dqz3ZWjZ.js +1 -0
  6. package/dist-embed/chunks/{CellSidebarExtension-DAzWlyRN.js → CellSidebarExtension-B-vao30u.js} +1 -1
  7. package/dist-embed/chunks/ChatView-CubqJum2.js +288 -0
  8. package/dist-embed/chunks/{ContextPie-D1eAig1P.js → ContextPie-ltoJ11q_.js} +1 -1
  9. package/dist-embed/chunks/DatalayerAgentBridge-BmJbZ2Lk.js +1 -0
  10. package/dist-embed/chunks/{DeckComponent-lNZXX0qi.js → DeckComponent-Fp6Vw8vN.js} +2 -2
  11. package/dist-embed/chunks/{DocumentView-BKzeMFBq.js → DocumentView-DKUbyyJg.js} +1 -1
  12. package/dist-embed/chunks/{EphemeralDocument-DKtocZ3W.js → EphemeralDocument-CgYPEfGC.js} +1 -1
  13. package/dist-embed/chunks/{EphemeralNotebook-oX8GrXS3.js → EphemeralNotebook-DvDbCKnr.js} +2 -2
  14. package/dist-embed/chunks/{ExcalidrawComponent-B8nrxRST.js → ExcalidrawComponent-BehqBpwC.js} +1 -1
  15. package/dist-embed/chunks/{ExcalidrawModal--K0C_WUL.js → ExcalidrawModal-B2sXbVJB.js} +1 -1
  16. package/dist-embed/chunks/{Flash-DTBPQ4yb.js → Flash-DdFxPtBI.js} +1 -1
  17. package/dist-embed/chunks/{JupyterLexicalExtension-CSMNnVr9.js → JupyterLexicalExtension-CUsjvchq.js} +9 -9
  18. package/dist-embed/chunks/{KernelVariables-D4s9Q5Ng.js → KernelVariables-BUmOt4yF.js} +2 -2
  19. package/dist-embed/chunks/{LexicalToolRegistry-_DH2qwSU.js → LexicalToolRegistry-DoZIM1lF.js} +1 -1
  20. package/dist-embed/chunks/{NotebookSkeleton-BTs2pK7B.js → NotebookSkeleton-D9WNoiWD.js} +1 -1
  21. package/dist-embed/chunks/{NotebookToolbar-B3BFk-WV.js → NotebookToolbar-C2_ZC9Ej.js} +1 -1
  22. package/dist-embed/chunks/{NotebookView-Dl-icjhk.js → NotebookView-BActuABH.js} +1 -1
  23. package/dist-embed/chunks/{SandboxDetailsDialog-22wdG0V-.js → SandboxDetailsDialog-C0afmOA7.js} +1 -1
  24. package/dist-embed/chunks/{SchemaForm-8b_dpfFK.js → SchemaForm-B351kd79.js} +1 -1
  25. package/dist-embed/chunks/{Toolbar-5oT8y_0g.js → Toolbar-B6ROXJ-2.js} +1 -1
  26. package/dist-embed/chunks/{YouTubePlugin-B6pgdGkU.js → YouTubePlugin-CqA-IwCx.js} +1 -1
  27. package/dist-embed/chunks/{abnfDiagram-VCTEODGH-CCRPX817.js → abnfDiagram-VCTEODGH-B2rXJzIG.js} +1 -1
  28. package/dist-embed/chunks/{abnfDiagram-VCTEODGH-Cc9J0KVQ.js → abnfDiagram-VCTEODGH-Celh8uSB.js} +1 -1
  29. package/dist-embed/chunks/{advancedFormat-IOT0HLTV.js → advancedFormat-9fBUVkZ9.js} +1 -1
  30. package/dist-embed/chunks/{ar-SA-G6X2FPQ2-DMIAxeqR.js → ar-SA-G6X2FPQ2-DhQlC4AZ.js} +1 -1
  31. package/dist-embed/chunks/{arc-CN-j54V6.js → arc-BcTWnMdT.js} +1 -1
  32. package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-BN7cGeVb.js → architectureDiagram-5GKGNRK7-B1nGp-ab.js} +1 -1
  33. package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-De77ckgV.js → architectureDiagram-5GKGNRK7-BtvjVASE.js} +1 -1
  34. package/dist-embed/chunks/{az-AZ-76LH7QW2-DMFqBzG7.js → az-AZ-76LH7QW2-CDvJeI6H.js} +1 -1
  35. package/dist-embed/chunks/{bg-BG-XCXSNQG7-DM9S3yhg.js → bg-BG-XCXSNQG7-B_2t7dwS.js} +1 -1
  36. package/dist-embed/chunks/{blockDiagram-868be97b-CoipBJ9g.js → blockDiagram-868be97b-Ctqgl81i.js} +1 -1
  37. package/dist-embed/chunks/{blockDiagram-I7D4REHJ-CYPYbqjz.js → blockDiagram-I7D4REHJ-B8cdJr95.js} +1 -1
  38. package/dist-embed/chunks/{blockDiagram-I7D4REHJ-Cs7aaFQh.js → blockDiagram-I7D4REHJ-BW7qedxT.js} +1 -1
  39. package/dist-embed/chunks/{bn-BD-2XOGV67Q-CK8aWMNS.js → bn-BD-2XOGV67Q-B7nTDj-4.js} +1 -1
  40. package/dist-embed/chunks/{c4Diagram-3f4bdde3-UwJoyMng.js → c4Diagram-3f4bdde3-0ruvDNdG.js} +1 -1
  41. package/dist-embed/chunks/{c4Diagram-7LVT6UL2-C0lopX7r.js → c4Diagram-7LVT6UL2-D_oBILZn.js} +1 -1
  42. package/dist-embed/chunks/{c4Diagram-7LVT6UL2-DjTuau65.js → c4Diagram-7LVT6UL2-ujGlIhtL.js} +1 -1
  43. package/dist-embed/chunks/{ca-ES-6MX7JW3Y-HslrBDJw.js → ca-ES-6MX7JW3Y-llJD_i9l.js} +1 -1
  44. package/dist-embed/chunks/channel-o04upGuP.js +1 -0
  45. package/dist-embed/chunks/{chunk-2Q5K7J3B-D4cqUYAT.js → chunk-2Q5K7J3B-CwLcj_PJ.js} +1 -1
  46. package/dist-embed/chunks/{chunk-2Q5K7J3B-BVMKDBY8.js → chunk-2Q5K7J3B-DcyPc2RX.js} +1 -1
  47. package/dist-embed/chunks/{chunk-5VM5RSS4-Xhg_BVSp.js → chunk-5VM5RSS4-BkRs7Fna.js} +1 -1
  48. package/dist-embed/chunks/{chunk-5VM5RSS4-CzKuJynz.js → chunk-5VM5RSS4-DMPUDDnV.js} +1 -1
  49. package/dist-embed/chunks/{chunk-F27PBJKO-Bt1Q0fHq.js → chunk-F27PBJKO-BzMwl8_q.js} +1 -1
  50. package/dist-embed/chunks/{chunk-F27PBJKO-BUIdY_4T.js → chunk-F27PBJKO-pG1_v10O.js} +1 -1
  51. package/dist-embed/chunks/{chunk-IMKFNOWR-DpgCTHeS.js → chunk-IMKFNOWR-Bf_-T_nx.js} +1 -1
  52. package/dist-embed/chunks/{chunk-IMKFNOWR-Cy5BRScb.js → chunk-IMKFNOWR-DJta09Af.js} +1 -1
  53. package/dist-embed/chunks/{chunk-JWPE2WC7-D3HcIpVU.js → chunk-JWPE2WC7-DC1wY1Ne.js} +1 -1
  54. package/dist-embed/chunks/{chunk-JWPE2WC7-Diz0u535.js → chunk-JWPE2WC7-SVeaXwdX.js} +1 -1
  55. package/dist-embed/chunks/{chunk-POPQ4Y6H-TbpwubqF.js → chunk-POPQ4Y6H-BHtANfps.js} +1 -1
  56. package/dist-embed/chunks/{chunk-POPQ4Y6H-CkAsArUm.js → chunk-POPQ4Y6H-Cl1LQa-a.js} +1 -1
  57. package/dist-embed/chunks/{chunk-SVP7TREG-_yTXReWy.js → chunk-SVP7TREG-0GCrhixv.js} +1 -1
  58. package/dist-embed/chunks/{chunk-SVP7TREG-Cw20-h7G.js → chunk-SVP7TREG-2ZP0qWw_.js} +1 -1
  59. package/dist-embed/chunks/{chunk-TICWLB2K-BPo6s9dS.js → chunk-TICWLB2K-BcegNV27.js} +1 -1
  60. package/dist-embed/chunks/{chunk-TICWLB2K-Df9jMrfB.js → chunk-TICWLB2K-CZYEMhEE.js} +1 -1
  61. package/dist-embed/chunks/{chunk-XXDRQBXY-CizfVebu.js → chunk-XXDRQBXY-DlOeT6YV.js} +1 -1
  62. package/dist-embed/chunks/{chunk-XXDRQBXY-CQCJr_te.js → chunk-XXDRQBXY-NxzmpYaR.js} +1 -1
  63. package/dist-embed/chunks/classDiagram-ZZMXUADV-BXZxncqO.js +1 -0
  64. package/dist-embed/chunks/classDiagram-ZZMXUADV-DnNeD34Z.js +1 -0
  65. package/dist-embed/chunks/{classDiagram-f62afe4f-BPLoDclf.js → classDiagram-f62afe4f-BD1_NCwH.js} +1 -1
  66. package/dist-embed/chunks/{classDiagram-v2-604399ef-ByLL4G6w.js → classDiagram-v2-604399ef-CxmFuhFb.js} +1 -1
  67. package/dist-embed/chunks/classDiagram-v2-VYDZK3BY-BXZxncqO.js +1 -0
  68. package/dist-embed/chunks/classDiagram-v2-VYDZK3BY-DnNeD34Z.js +1 -0
  69. package/dist-embed/chunks/{code-block-IT6T5CEO-CZdOZWWc.js → code-block-IT6T5CEO-U73VXKeS.js} +1 -1
  70. package/dist-embed/chunks/{component-CCqdcSgN.js → component-COjBgUMr.js} +1 -1
  71. package/dist-embed/chunks/{cose-bilkent-JH36ORCC-D1KcELJ6.js → cose-bilkent-JH36ORCC-71p0f-kJ.js} +1 -1
  72. package/dist-embed/chunks/{cose-bilkent-JH36ORCC-DI7Z4av-.js → cose-bilkent-JH36ORCC-B-Oq7xUI.js} +1 -1
  73. package/dist-embed/chunks/{createText-aed3d8b3-qEBV_LAF.js → createText-aed3d8b3-CmAg0yKd.js} +1 -1
  74. package/dist-embed/chunks/{cs-CZ-2BRQDIVT-D2WZgYFZ.js → cs-CZ-2BRQDIVT-Cm_uiYT0.js} +1 -1
  75. package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-D_YG7HzO.js → cynefinDiagram-5FMLGOSQ-BdKZ7Rf2.js} +1 -1
  76. package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-zmfGD2O2.js → cynefinDiagram-5FMLGOSQ-NbSU35d_.js} +1 -1
  77. package/dist-embed/chunks/{da-DK-5WZEPLOC-BZhZmwgX.js → da-DK-5WZEPLOC-B0lo6-wZ.js} +1 -1
  78. package/dist-embed/chunks/{dagre-GXQ25YYZ-BcPCMol6.js → dagre-GXQ25YYZ-C2NoVPqt.js} +1 -1
  79. package/dist-embed/chunks/{dagre-GXQ25YYZ-B-pyqr-3.js → dagre-GXQ25YYZ-Cq55WvUn.js} +1 -1
  80. package/dist-embed/chunks/{de-DE-XR44H4JA-CltJ8MP6.js → de-DE-XR44H4JA-DZrN-mJo.js} +1 -1
  81. package/dist-embed/chunks/{diagram-S7CK7UJ4-BmnkJuMF.js → diagram-S7CK7UJ4-CF7XYPSL.js} +1 -1
  82. package/dist-embed/chunks/{diagram-S7CK7UJ4-hhBlnYjW.js → diagram-S7CK7UJ4-Cq78dPrF.js} +1 -1
  83. package/dist-embed/chunks/{diagram-UQ7AKVKN-DPb8MAV_.js → diagram-UQ7AKVKN-BAi-uDI4.js} +1 -1
  84. package/dist-embed/chunks/{diagram-UQ7AKVKN-BN1Xspl9.js → diagram-UQ7AKVKN-DlMLGIyl.js} +1 -1
  85. package/dist-embed/chunks/{diagram-VSXAHHWV-TMd-7Wmo.js → diagram-VSXAHHWV-DRNadpAk.js} +1 -1
  86. package/dist-embed/chunks/{diagram-VSXAHHWV-H5G6hU8P.js → diagram-VSXAHHWV-jJir7z_u.js} +1 -1
  87. package/dist-embed/chunks/{diagram-VX7I27RA-BrkFbK0K.js → diagram-VX7I27RA-BR-L0h0N.js} +1 -1
  88. package/dist-embed/chunks/{diagram-VX7I27RA-DiYNlqCO.js → diagram-VX7I27RA-D_LZ7ttC.js} +1 -1
  89. package/dist-embed/chunks/{diagram-Z3DM3KII-DdG_O5h6.js → diagram-Z3DM3KII-CDeXGbsG.js} +1 -1
  90. package/dist-embed/chunks/{diagram-Z3DM3KII-D1vqz5Ew.js → diagram-Z3DM3KII-CwrX0YEI.js} +1 -1
  91. package/dist-embed/chunks/{document-zcF1SUIy.js → document-B3yvxR3p.js} +1 -1
  92. package/dist-embed/chunks/{drivecontents-Ckcp2ERS.js → drivecontents-BHpoQXqz.js} +1 -1
  93. package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-PMrBUO9H.js → ebnfDiagram-PWID7BFC-DJ-S4zNP.js} +1 -1
  94. package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-DMXmlTDY.js → ebnfDiagram-PWID7BFC-DktGPWnR.js} +1 -1
  95. package/dist-embed/chunks/{edges-b2856ca0-zod3pf5J.js → edges-b2856ca0-Dl_I1_Tl.js} +1 -1
  96. package/dist-embed/chunks/{el-GR-BZB4AONW-C70uQp6T.js → el-GR-BZB4AONW-C4D5ZbOc.js} +1 -1
  97. package/dist-embed/chunks/{erDiagram-5d81789a-D4Y_ua8V.js → erDiagram-5d81789a-Xh6XZPYE.js} +1 -1
  98. package/dist-embed/chunks/{erDiagram-RLTQ6QDP-COpQ5gec.js → erDiagram-RLTQ6QDP-CvKed34U.js} +1 -1
  99. package/dist-embed/chunks/{erDiagram-RLTQ6QDP-CZNZ_893.js → erDiagram-RLTQ6QDP-Dn5o1zp3.js} +1 -1
  100. package/dist-embed/chunks/{es-ES-U4NZUMDT-Bsjo8e08.js → es-ES-U4NZUMDT-D1yiS-ZI.js} +1 -1
  101. package/dist-embed/chunks/{eu-ES-A7QVB2H4-SVPEle78.js → eu-ES-A7QVB2H4-Zm3lJsL6.js} +1 -1
  102. package/dist-embed/chunks/{fa-IR-HGAKTJCU-CpgfdtSo.js → fa-IR-HGAKTJCU-Dhv2lg_O.js} +1 -1
  103. package/dist-embed/chunks/{fi-FI-Z5N7JZ37-0AIruYqI.js → fi-FI-Z5N7JZ37-QeFFEfyg.js} +1 -1
  104. package/dist-embed/chunks/{flowDb-185abca5-8a6sWoVq.js → flowDb-185abca5-DCi2LSG3.js} +1 -1
  105. package/dist-embed/chunks/{flowDiagram-1629c991-CCbNUYZl.js → flowDiagram-1629c991-1AzvuCps.js} +1 -1
  106. package/dist-embed/chunks/{flowDiagram-HODETNUW-lJ2Z3vFv.js → flowDiagram-HODETNUW-BjiuBN9U.js} +1 -1
  107. package/dist-embed/chunks/{flowDiagram-HODETNUW-CMUxuQ7T.js → flowDiagram-HODETNUW-BoOyNxJY.js} +1 -1
  108. package/dist-embed/chunks/{flowDiagram-v2-1d953310-CEF2SgZr.js → flowDiagram-v2-1d953310-DNyM8Btq.js} +1 -1
  109. package/dist-embed/chunks/{flowchart-elk-definition-6df44142-RHeVm2Vk.js → flowchart-elk-definition-6df44142-DucxAUTE.js} +1 -1
  110. package/dist-embed/chunks/{fr-FR-RHASNOE6-Pv7-mObZ.js → fr-FR-RHASNOE6-DjbRpOS6.js} +1 -1
  111. package/dist-embed/chunks/{ganttDiagram-3b0b3873-wEiuIWcM.js → ganttDiagram-3b0b3873-DLJCN1HW.js} +1 -1
  112. package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-BYMiax7v.js → ganttDiagram-EL5Y4UJY-D3bfGcnP.js} +1 -1
  113. package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-B5WlwMpk.js → ganttDiagram-EL5Y4UJY-us782PXd.js} +1 -1
  114. package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-DYJQ-SIg.js → gitGraphDiagram-WWUBYQGX-BCKtisB_.js} +1 -1
  115. package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-D8fVmtc9.js → gitGraphDiagram-WWUBYQGX-DpOwi5a_.js} +1 -1
  116. package/dist-embed/chunks/{gitGraphDiagram-f01e8bc2-DxDYtdab.js → gitGraphDiagram-f01e8bc2-B5VZrDor.js} +1 -1
  117. package/dist-embed/chunks/{gl-ES-HMX3MZ6V-CvVsi7_e.js → gl-ES-HMX3MZ6V-C-ev9dqC.js} +1 -1
  118. package/dist-embed/chunks/{hcl-BZsx9glM.js → hcl-hwLh11hJ.js} +1 -1
  119. package/dist-embed/chunks/{he-IL-6SHJWFNN-DR-LBFsb.js → he-IL-6SHJWFNN-DHoNpuA6.js} +1 -1
  120. package/dist-embed/chunks/{hi-IN-IWLTKZ5I-C-7x_jFk.js → hi-IN-IWLTKZ5I-JZJZPoWj.js} +1 -1
  121. package/dist-embed/chunks/{hu-HU-A5ZG7DT2-IRN8uyau.js → hu-HU-A5ZG7DT2-RzCikyBW.js} +1 -1
  122. package/dist-embed/chunks/{id-ID-SAP4L64H-B4acvKcJ.js → id-ID-SAP4L64H-Bn08nS9B.js} +1 -1
  123. package/dist-embed/chunks/{index-CzyPyDL7.js → index-1Ekpl0uC.js} +1 -1
  124. package/dist-embed/chunks/{index-9bae90f3-Byqvc_1J.js → index-9bae90f3-CqVDusDd.js} +1 -1
  125. package/dist-embed/chunks/{index-O05b1yOc.js → index-B1Egld01.js} +1 -1
  126. package/dist-embed/chunks/{index-CkcSokt2.js → index-B2dtLxcg.js} +1 -1
  127. package/dist-embed/chunks/{index-DrTOPxp7.js → index-B5MiaXUV.js} +1 -1
  128. package/dist-embed/chunks/{index-CML3IxdI.js → index-BOvsLtXe.js} +1 -1
  129. package/dist-embed/chunks/{index-C8PIFg_G.js → index-BUbwVG__.js} +4 -4
  130. package/dist-embed/chunks/{index-4cAPvEvs.js → index-BVAnvfbh.js} +1 -1
  131. package/dist-embed/chunks/{index-CBqbd-wN.js → index-BYofH50G.js} +1 -1
  132. package/dist-embed/chunks/{index-BvCNoy7C.js → index-Ba-Kv3yV.js} +1 -1
  133. package/dist-embed/chunks/{index-CFLgmNxm.js → index-BbsUSk_Q.js} +5 -5
  134. package/dist-embed/chunks/{index-DSqW3D0Y.js → index-Bs1pVq7E.js} +1 -1
  135. package/dist-embed/chunks/{index-CkHVrFkx.js → index-BtjXlYA2.js} +1 -1
  136. package/dist-embed/chunks/{index-qS3zZ9pt.js → index-C0iUgNwj.js} +2 -2
  137. package/dist-embed/chunks/{index-BNamX66v.js → index-C5xKtdLU.js} +13 -13
  138. package/dist-embed/chunks/{index-B3E7bXYK.js → index-CGscJbrF.js} +1 -1
  139. package/dist-embed/chunks/{index-CGSmsddM.js → index-Cjx6uk6z.js} +1 -1
  140. package/dist-embed/chunks/{index-DPibz6KG.js → index-CqKV027P.js} +1 -1
  141. package/dist-embed/chunks/{index-Dm4AUkEh.js → index-Cqur_rhw.js} +4 -4
  142. package/dist-embed/chunks/{index-CNx_s591.js → index-D7rnWGLu.js} +2 -2
  143. package/dist-embed/chunks/{index-qoRa7lfq.js → index-DCX_IqLg.js} +1 -1
  144. package/dist-embed/chunks/{index-BY3dr_Yb.js → index-DHVYKZ44.js} +6 -6
  145. package/dist-embed/chunks/{index-Begrz6qi.js → index-DIHzcHI1.js} +1 -1
  146. package/dist-embed/chunks/{index-NHZX5LFG.js → index-DJomc4za.js} +2 -2
  147. package/dist-embed/chunks/{index-DecCuztE.js → index-DLk6Znxv.js} +1 -1
  148. package/dist-embed/chunks/{index-BnowXurk.js → index-DYt0uAs-.js} +1 -1
  149. package/dist-embed/chunks/{index-kuItYEfY.js → index-DeYQGrTz.js} +8 -8
  150. package/dist-embed/chunks/{index-CDSBIJbt.js → index-DgnVcOqG.js} +1 -1
  151. package/dist-embed/chunks/{index-REv48H9T.js → index-DkY_OIbM.js} +1 -1
  152. package/dist-embed/chunks/{index-CaurkNaJ.js → index-DsX9nIHt.js} +1 -1
  153. package/dist-embed/chunks/{index-DKPjJ48t.js → index-DtYYe0Cw.js} +5 -5
  154. package/dist-embed/chunks/{index-CwFAduNg.js → index-aX9x7qni.js} +1 -1
  155. package/dist-embed/chunks/{index-74YA-L1Q.js → index-hib7vWC6.js} +1 -1
  156. package/dist-embed/chunks/{index-DYk4SAGn.js → index-p2ZGnxJX.js} +1 -1
  157. package/dist-embed/chunks/{index-CxSZtb0e.js → index-qzUKNibz.js} +1 -1
  158. package/dist-embed/chunks/{index-5Jo-nwZH.js → index-zr-b1Ds3.js} +1 -1
  159. package/dist-embed/chunks/{index.esm-DOzsYAbC.js → index.esm-CJLAKtMR.js} +1 -1
  160. package/dist-embed/chunks/{index.esm-BpcXmnkv.js → index.esm-DlPZAW-m.js} +1 -1
  161. package/dist-embed/chunks/{infoDiagram-27XIBGKW-CV8wJO56.js → infoDiagram-27XIBGKW-CB1VZqVi.js} +1 -1
  162. package/dist-embed/chunks/{infoDiagram-27XIBGKW-DNSrv0V4.js → infoDiagram-27XIBGKW-s9Lynuxa.js} +1 -1
  163. package/dist-embed/chunks/{infoDiagram-a29d40f1-E8D341jS.js → infoDiagram-a29d40f1-BSyalhIZ.js} +1 -1
  164. package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-BRfv59pP.js → ishikawaDiagram-5VMMS53U-BnyB2Q-F.js} +1 -1
  165. package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-DmZ-PvsF.js → ishikawaDiagram-5VMMS53U-D-b9zU7V.js} +1 -1
  166. package/dist-embed/chunks/{it-IT-JPQ66NNP-qA6LaRji.js → it-IT-JPQ66NNP-C2vJMuKM.js} +1 -1
  167. package/dist-embed/chunks/{ja-JP-DBVTYXUO-CHmLHAsr.js → ja-JP-DBVTYXUO-C8KOKQt9.js} +1 -1
  168. package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-3jE8sGmW.js → journeyDiagram-3NMN7TZE-CZXsMFjb.js} +1 -1
  169. package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-itNV2GBs.js → journeyDiagram-3NMN7TZE-Cv3HlmqD.js} +1 -1
  170. package/dist-embed/chunks/{journeyDiagram-95396277-Ba7ZL7z3.js → journeyDiagram-95396277-DnkmTBAP.js} +1 -1
  171. package/dist-embed/chunks/{kaa-6HZHGXH3-CLJsweAJ.js → kaa-6HZHGXH3-CvxJbmMB.js} +1 -1
  172. package/dist-embed/chunks/{kab-KAB-ZGHBKWFO-C5IJJXMt.js → kab-KAB-ZGHBKWFO-CQJhf9Nn.js} +1 -1
  173. package/dist-embed/chunks/{kanban-definition-UXKFOSKX-DraK1j1A.js → kanban-definition-UXKFOSKX-CZ0olp9z.js} +1 -1
  174. package/dist-embed/chunks/{kanban-definition-UXKFOSKX-DLigKnGA.js → kanban-definition-UXKFOSKX-LX8xxzUZ.js} +1 -1
  175. package/dist-embed/chunks/{kk-KZ-P5N5QNE5-CCaxEdfw.js → kk-KZ-P5N5QNE5-Dl6YC0GH.js} +1 -1
  176. package/dist-embed/chunks/{km-KH-HSX4SM5Z-My_ugj4j.js → km-KH-HSX4SM5Z-QYB-tJ4i.js} +1 -1
  177. package/dist-embed/chunks/{ko-KR-MTYHY66A-CHP-oWuX.js → ko-KR-MTYHY66A-D6yzBqJ5.js} +1 -1
  178. package/dist-embed/chunks/{ku-TR-6OUDTVRD-C52g9k3M.js → ku-TR-6OUDTVRD-C43l2362.js} +1 -1
  179. package/dist-embed/chunks/{layout-Dj1wRfbG.js → layout-DC1dN5QV.js} +1 -1
  180. package/dist-embed/chunks/{layout-DNotAWCv.js → layout-DfHqq7Y7.js} +1 -1
  181. package/dist-embed/chunks/{lexicalHooks-kxLGr2aO.js → lexicalHooks-PS_v7JyS.js} +1 -1
  182. package/dist-embed/chunks/{line-DuKLYeqR.js → line-BLnKxlFS.js} +1 -1
  183. package/dist-embed/chunks/{linear-Dg-Vn5Yx.js → linear-bDTv5gmU.js} +1 -1
  184. package/dist-embed/chunks/{lt-LT-XHIRWOB4-DcGTTOch.js → lt-LT-XHIRWOB4-BG1v5NwF.js} +1 -1
  185. package/dist-embed/chunks/{lv-LV-5QDEKY6T-Duj8GAiu.js → lv-LV-5QDEKY6T-CAwm1y_0.js} +1 -1
  186. package/dist-embed/chunks/{mermaid.core-C0gANONu.js → mermaid.core-BS7AlRW2.js} +3 -3
  187. package/dist-embed/chunks/{mermaid.core-BjUO4_Ly.js → mermaid.core-CLv-vCjs.js} +5 -5
  188. package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-x4oa4R6v.js → mindmap-definition-YA3MSWOX-BUr4hM7e.js} +1 -1
  189. package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-qCMgaWWi.js → mindmap-definition-YA3MSWOX-CwwLX5oJ.js} +1 -1
  190. package/dist-embed/chunks/{mindmap-definition-e4c1d938-Dy5nnqlt.js → mindmap-definition-e4c1d938-B4xy2oKe.js} +1 -1
  191. package/dist-embed/chunks/{model-D8diDS02.js → model-D7a10Ag0.js} +1 -1
  192. package/dist-embed/chunks/{mr-IN-CRQNXWMA-Cm1jPr2r.js → mr-IN-CRQNXWMA-DSk6q1fp.js} +1 -1
  193. package/dist-embed/chunks/{my-MM-5M5IBNSE-CfTzX-Wc.js → my-MM-5M5IBNSE-BRiKXulk.js} +1 -1
  194. package/dist-embed/chunks/{nb-NO-T6EIAALU-DdPxuBWB.js → nb-NO-T6EIAALU-CCDnctVd.js} +1 -1
  195. package/dist-embed/chunks/{nl-NL-IS3SIHDZ-eOHjxC9z.js → nl-NL-IS3SIHDZ-DwStD_Ch.js} +1 -1
  196. package/dist-embed/chunks/{nn-NO-6E72VCQL-DjAv0k1C.js → nn-NO-6E72VCQL-DNcfjETk.js} +1 -1
  197. package/dist-embed/chunks/{oc-FR-POXYY2M6-C0T2Uif7.js → oc-FR-POXYY2M6-BOjjS12P.js} +1 -1
  198. package/dist-embed/chunks/{pa-IN-N4M65BXN-BpX0p08b.js → pa-IN-N4M65BXN-B4y5cv2_.js} +1 -1
  199. package/dist-embed/chunks/{pegDiagram-XKGWAZYB-5jUoEdYP.js → pegDiagram-XKGWAZYB-CVtSqLfc.js} +1 -1
  200. package/dist-embed/chunks/{pegDiagram-XKGWAZYB-Smos5ynL.js → pegDiagram-XKGWAZYB-pdjxeh5M.js} +1 -1
  201. package/dist-embed/chunks/{percentages-BXMCSKIN-CmsGG1KO.js → percentages-BXMCSKIN-BpahO1D1.js} +6 -6
  202. package/dist-embed/chunks/{pica-DvcVbjys.js → pica-CyDhZ1sv.js} +1 -1
  203. package/dist-embed/chunks/{pie-CrFPIYc9.js → pie-CktNGOxo.js} +1 -1
  204. package/dist-embed/chunks/{pieDiagram-E7YTZNPT-D0vDTcE9.js → pieDiagram-E7YTZNPT-D2I7Fwff.js} +1 -1
  205. package/dist-embed/chunks/{pieDiagram-E7YTZNPT-COPe6fPR.js → pieDiagram-E7YTZNPT-JUXSTYxs.js} +1 -1
  206. package/dist-embed/chunks/{pieDiagram-c941bede-65qxkgxB.js → pieDiagram-c941bede-DWhYbfLm.js} +1 -1
  207. package/dist-embed/chunks/{pl-PL-T2D74RX3-ZCXWl-vX.js → pl-PL-T2D74RX3-CfuLoYHB.js} +1 -1
  208. package/dist-embed/chunks/{plugin-Ba5UScsV.js → plugin-DZPXm2dP.js} +1 -1
  209. package/dist-embed/chunks/{pt-BR-5N22H2LF-ClSeRSTv.js → pt-BR-5N22H2LF-Fk60PfdA.js} +1 -1
  210. package/dist-embed/chunks/{pt-PT-UZXXM6DQ-aI3iyXEY.js → pt-PT-UZXXM6DQ-SNAgJ5Vr.js} +1 -1
  211. package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-BoEDNaHO.js → quadrantDiagram-AXDQQJYC-Cw8ysOVS.js} +1 -1
  212. package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-DvWSIFQv.js → quadrantDiagram-AXDQQJYC-zTpXZRnN.js} +1 -1
  213. package/dist-embed/chunks/{quadrantDiagram-cf8b8fe0-DiapetF0.js → quadrantDiagram-cf8b8fe0-DH_dNEld.js} +1 -1
  214. package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-LnW8lyjW.js → railroadDiagram-O6MQD6OU-CoMzy1dm.js} +1 -1
  215. package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-XyeFPUFA.js → railroadDiagram-O6MQD6OU-DrPiQVOZ.js} +1 -1
  216. package/dist-embed/chunks/{requirementDiagram-53bda41b-NVu0cGYm.js → requirementDiagram-53bda41b-C7A0I5GT.js} +1 -1
  217. package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-wRDyhjvw.js → requirementDiagram-BXWQKSXE-B9trBsts.js} +1 -1
  218. package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-CtpxXHY5.js → requirementDiagram-BXWQKSXE-BLQtV6jv.js} +1 -1
  219. package/dist-embed/chunks/{ro-RO-JPDTUUEW--yP8WH1q.js → ro-RO-JPDTUUEW-YkxpKkWn.js} +1 -1
  220. package/dist-embed/chunks/{round-BYqUt1IP.js → round-DymJ-a3G.js} +1 -1
  221. package/dist-embed/chunks/{ru-RU-B4JR7IUQ-S6Dpc8ej.js → ru-RU-B4JR7IUQ-CaI1rtvc.js} +1 -1
  222. package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-CWsU1zz9.js → sankeyDiagram-P5KCCOFB-Cvxdoq6D.js} +1 -1
  223. package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-CkYpEh5o.js → sankeyDiagram-P5KCCOFB-Dwkp-ggM.js} +1 -1
  224. package/dist-embed/chunks/{sankeyDiagram-c3ef121a-D9xzSD-8.js → sankeyDiagram-c3ef121a-DeaFXwir.js} +1 -1
  225. package/dist-embed/chunks/{sequenceDiagram-82a5b84f-DDCEPqNh.js → sequenceDiagram-82a5b84f-fDhOBU7A.js} +1 -1
  226. package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-CafPjz3k.js → sequenceDiagram-WJ2MYXX4-Bj9ikwM4.js} +1 -1
  227. package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-D-ytwLdK.js → sequenceDiagram-WJ2MYXX4-Bp1oVZMs.js} +1 -1
  228. package/dist-embed/chunks/{sessions-BeSpcqDy.js → sessions-ZDYLkdi_.js} +2 -2
  229. package/dist-embed/chunks/{si-LK-N5RQ5JYF-Bh0-Jjfq.js → si-LK-N5RQ5JYF-CQz29xmh.js} +1 -1
  230. package/dist-embed/chunks/{sizeCapture-INFHLROL-FMWRuKPu.js → sizeCapture-INFHLROL-CMlzK5MC.js} +1 -1
  231. package/dist-embed/chunks/{sizeCapture-INFHLROL-5RviLAUl.js → sizeCapture-INFHLROL-ohpYHAcp.js} +1 -1
  232. package/dist-embed/chunks/{sk-SK-C5VTKIMK-TXk80Xbq.js → sk-SK-C5VTKIMK-CZg7PVzd.js} +1 -1
  233. package/dist-embed/chunks/{sl-SI-NN7IZMDC-DSdu_b8Y.js → sl-SI-NN7IZMDC-D-EjMWyZ.js} +1 -1
  234. package/dist-embed/chunks/{stateDiagram-43e79a5f-Bd0gJvTB.js → stateDiagram-43e79a5f-BFR_IH5W.js} +1 -1
  235. package/dist-embed/chunks/{stateDiagram-D77RDMKH-CsoLoQdw.js → stateDiagram-D77RDMKH-DpOxo9yl.js} +1 -1
  236. package/dist-embed/chunks/{stateDiagram-D77RDMKH-anfAB1CI.js → stateDiagram-D77RDMKH-zWegA-O8.js} +1 -1
  237. package/dist-embed/chunks/{stateDiagram-v2-2041ed4f-Db6Ltf2q.js → stateDiagram-v2-2041ed4f-8TkUHVMG.js} +1 -1
  238. package/dist-embed/chunks/stateDiagram-v2-MP3YSRHH-BZAMPWr5.js +1 -0
  239. package/dist-embed/chunks/stateDiagram-v2-MP3YSRHH-DrTAroDB.js +1 -0
  240. package/dist-embed/chunks/{styles-455b33cd-DjZhq6rj.js → styles-455b33cd-Befvug13.js} +1 -1
  241. package/dist-embed/chunks/{styles-f932cba9-s39yhAcA.js → styles-f932cba9-eBHnVQaE.js} +1 -1
  242. package/dist-embed/chunks/{styles-fcc2142b-QdZsB9tg.js → styles-fcc2142b-BsjaKqGS.js} +1 -1
  243. package/dist-embed/chunks/{subset-shared.chunk-B1SUTh3f.js → subset-shared.chunk-BIvvzzX2.js} +1 -1
  244. package/dist-embed/chunks/{subset-worker.chunk-B24w3nw0.js → subset-worker.chunk-DGgI6iRY.js} +1 -1
  245. package/dist-embed/chunks/{sv-SE-XGPEYMSR-CT10IJuV.js → sv-SE-XGPEYMSR-D8CsNMON.js} +1 -1
  246. package/dist-embed/chunks/{svgDrawCommon-148a3cd9-B38JgGfg.js → svgDrawCommon-148a3cd9-BxzL4r3S.js} +1 -1
  247. package/dist-embed/chunks/{swimlanes-42K2YHIH-CPp_dpjU.js → swimlanes-42K2YHIH-B28jcYJ_.js} +1 -1
  248. package/dist-embed/chunks/{swimlanes-42K2YHIH-DHlC5c8j.js → swimlanes-42K2YHIH-BZP55aw9.js} +1 -1
  249. package/dist-embed/chunks/swimlanesDiagram-VR7AAH4N-BIQqrjYQ.js +8 -0
  250. package/dist-embed/chunks/swimlanesDiagram-VR7AAH4N-hQM0t42-.js +8 -0
  251. package/dist-embed/chunks/{ta-IN-2NMHFXQM-HSbClJ74.js → ta-IN-2NMHFXQM-CvuxKO7t.js} +1 -1
  252. package/dist-embed/chunks/{th-TH-HPSO5L25-B2hciv_c.js → th-TH-HPSO5L25-NgQJigwq.js} +1 -1
  253. package/dist-embed/chunks/{timeline-definition-24CTP7MA-CKyPT4PB.js → timeline-definition-24CTP7MA-CficHg2r.js} +1 -1
  254. package/dist-embed/chunks/{timeline-definition-24CTP7MA-D9gzYUYy.js → timeline-definition-24CTP7MA-De_e-NOu.js} +1 -1
  255. package/dist-embed/chunks/{timeline-definition-7545f45a-BWnp7J60.js → timeline-definition-7545f45a-DqfcISSR.js} +1 -1
  256. package/dist-embed/chunks/{tokens-C8cD27Uo.js → tokens-B5KQP74f.js} +1 -1
  257. package/dist-embed/chunks/{tr-TR-DEFEU3FU-BWwXpAYZ.js → tr-TR-DEFEU3FU-eu9-qLmi.js} +1 -1
  258. package/dist-embed/chunks/{uk-UA-QMV73CPH-Dj7E5VqN.js → uk-UA-QMV73CPH-CbjmuLVL.js} +1 -1
  259. package/dist-embed/chunks/{venn.esm-DCEZyyO1.js → venn.esm-QMuJZ7sT.js} +1 -1
  260. package/dist-embed/chunks/{vennDiagram-4TSXK5OY-bbhu-7hk.js → vennDiagram-4TSXK5OY-DIL1dW8w.js} +1 -1
  261. package/dist-embed/chunks/{vennDiagram-4TSXK5OY-F_ETYUiw.js → vennDiagram-4TSXK5OY-DmLAzLnR.js} +1 -1
  262. package/dist-embed/chunks/{vi-VN-M7AON7JQ-PsrEnccg.js → vi-VN-M7AON7JQ-u84yOuJ-.js} +1 -1
  263. package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-DOvpFGv3.js → wardleyDiagram-VM6X3IG4-Cb_52SC-.js} +1 -1
  264. package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-3pZGhbDZ.js → wardleyDiagram-VM6X3IG4-DfZqkrsZ.js} +1 -1
  265. package/dist-embed/chunks/{xychartDiagram-3f383b91-DZLtCOMM.js → xychartDiagram-3f383b91-DGvBSaRz.js} +1 -1
  266. package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-CFYS5J-K.js → xychartDiagram-S5SC5T6Z-6OM1k4o6.js} +1 -1
  267. package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-DSYuijxd.js → xychartDiagram-S5SC5T6Z-xYHAmg9u.js} +1 -1
  268. package/dist-embed/chunks/{zh-CN-LNUGB5OW-BaQu8uAz.js → zh-CN-LNUGB5OW-ojkSgl-t.js} +1 -1
  269. package/dist-embed/chunks/{zh-HK-E62DVLB3-BidFwl7n.js → zh-HK-E62DVLB3-C6M89-Da.js} +1 -1
  270. package/dist-embed/chunks/{zh-TW-RAJ6MFWO-Bm6PhMc5.js → zh-TW-RAJ6MFWO-BaTtFORh.js} +1 -1
  271. package/dist-embed/datalayer-app-main.js +19 -19
  272. package/lib/apps/apps/AppRenderer.d.ts +12 -0
  273. package/lib/apps/apps/AppRenderer.js +38 -5
  274. package/lib/apps/apps/visitorToken.d.ts +29 -0
  275. package/lib/apps/apps/visitorToken.js +57 -0
  276. package/lib/apps/plugins/agents/DatalayerAgentBridge.js +71 -2
  277. package/lib/apps/plugins/agents/switchable.js +3 -2
  278. package/lib/apps/plugins/chat/ChatView.js +11 -1
  279. package/package.json +1 -1
  280. package/scripts/record-scene-checks.py +80 -20
  281. package/dist-embed/chunks/Avatar-VyZWLCFE.js +0 -1
  282. package/dist-embed/chunks/ChatView-Bqiq0mvd.js +0 -288
  283. package/dist-embed/chunks/DatalayerAgentBridge-BhxfUyb7.js +0 -1
  284. package/dist-embed/chunks/channel-gqCIn1TE.js +0 -1
  285. package/dist-embed/chunks/classDiagram-ZZMXUADV-BmkR_bZ0.js +0 -1
  286. package/dist-embed/chunks/classDiagram-ZZMXUADV-Db5VIrmE.js +0 -1
  287. package/dist-embed/chunks/classDiagram-v2-VYDZK3BY-BmkR_bZ0.js +0 -1
  288. package/dist-embed/chunks/classDiagram-v2-VYDZK3BY-Db5VIrmE.js +0 -1
  289. package/dist-embed/chunks/stateDiagram-v2-MP3YSRHH-CHSJtozR.js +0 -1
  290. package/dist-embed/chunks/stateDiagram-v2-MP3YSRHH-Grhw6_l4.js +0 -1
  291. package/dist-embed/chunks/swimlanesDiagram-VR7AAH4N-DA8nqWDf.js +0 -8
  292. package/dist-embed/chunks/swimlanesDiagram-VR7AAH4N-PPX_kI6A.js +0 -8
@@ -1,4 +1,4 @@
1
- import{j as n,B as i,r as p,T as _,L as Y,_ as le,cK as ce,cL as ue,I as fe,cM as pe,cN as me,bm as he,cO as xe,cP as _e}from"../datalayer-app-main.js";import{F as Q}from"./Flash-DTBPQ4yb.js";const ge=["scalar","string","sequence","mapping","set","ndarray","dataframe","series","figure","widget","module","function","class","object"],J=1e4,N="__DL_KERNEL_VARIABLES__",ye=`def __dl_kernel_variables(__dl_name=None, __dl_modules=False):
1
+ import{j as n,B as i,r as p,T as _,L as U,_ as le,cL as ce,cM as ue,I as fe,cN as pe,cO as me,bm as he,cP as xe,cQ as _e}from"../datalayer-app-main.js";import{F as Y}from"./Flash-DdFxPtBI.js";const ge=["scalar","string","sequence","mapping","set","ndarray","dataframe","series","figure","widget","module","function","class","object"],J=1e4,N="__DL_KERNEL_VARIABLES__",ye=`def __dl_kernel_variables(__dl_name=None, __dl_modules=False):
2
2
  import io as _io
3
3
  import json as _json
4
4
  import sys as _sys
@@ -196,4 +196,4 @@ try:
196
196
  __dl_kernel_variables(${t}, ${s})
197
197
  finally:
198
198
  del __dl_kernel_variables
199
- `}const V=new Map([["python",{code:be}]]);function Ce(e,t){const s=e.toLowerCase();return V.set(s,t),()=>{V.get(s)===t&&V.delete(s)}}function O(e){if(!e)return;const t=e.toLowerCase();return V.get(t)??V.get(t.replace(/[0-9.]+$/,""))}function Z(e){return O(e)!==void 0}class b extends Error{constructor(t){super(t),this.name="KernelVariablesError"}}function X(e){const{stdout:t,error:s}=e,r=t.lastIndexOf(N),a=r>0?t.lastIndexOf(N,r-1):-1;if(a<0||r<=a)throw new b(s?`The kernel could not list its variables: ${s}`:"The kernel did not say what its variables are.");const l=t.slice(a+N.length,r);let c;try{c=JSON.parse(l)}catch{throw new b("The kernel answered with something that is not JSON.")}if(!c||typeof c!="object"||Array.isArray(c))throw new b("The kernel answered with no variables.");const u=c;if(typeof u.error=="string")throw new b(u.error);return u}const k=e=>typeof e=="string"?e:void 0,M=e=>typeof e=="number"&&Number.isFinite(e)?e:void 0;function ee(e){if(!e||typeof e!="object")return;const t=e,s=k(t.name);if(!s)return;const r=ge.includes(t.kind)?t.kind:"object",a={name:s,type:k(t.type)??"object",kind:r,preview:k(t.preview)??""},l=k(t.module);l&&(a.module=l);const c=M(t.size);c!==void 0&&(a.size=c),Array.isArray(t.shape)&&t.shape.every(m=>M(m)!==void 0)&&(a.shape=t.shape);const u=M(t.length);u!==void 0&&(a.length=u);const f=k(t.dtype);f&&(a.dtype=f);const o=k(t.model_id);return o&&(a.modelId=o),a}function je(e){const t=X(e);if(!Array.isArray(t.variables))throw new b("The kernel answered with no variables.");return t.variables.map(ee).filter(s=>s!==void 0)}function ke(e){const s=X(e).variable,r=ee(s);if(!s||!r)throw new b("The kernel did not describe the variable.");const a=s.data&&typeof s.data=="object"&&!Array.isArray(s.data)?s.data:{};return{...r,repr:k(s.repr)??"",truncated:s.truncated===!0,data:a}}async function ve(e,t={}){const s=O(t.language??"python");if(!s)throw new b(`Variables are listed for Python kernels, not ${t.language}.`);return je(await e(s.code({modules:t.modules})))}async function Se(e,t,s={}){const r=O(s.language??"python");if(!r)throw new b(`Variables are listed for Python kernels, not ${s.language}.`);return ke(await e(r.code({name:t})))}function S(e){if(e===void 0)return"";const t=["B","KB","MB","GB","TB"];let s=e,r=0;for(;s>=1024&&r<t.length-1;)s/=1024,r+=1;return r===0?`${s} ${t[r]}`:`${s.toFixed(s<10?1:0)} ${t[r]}`}function C(e){const{kind:t,shape:s,length:r,dtype:a}=e;if(t==="dataframe"&&s?.length===2)return`${s[0]} rows × ${s[1]} cols`;if(t==="series"&&s?.length)return`${s[0]} rows${a?` · ${a}`:""}`;if(t==="ndarray"&&s){const l=s.length?s.join(" × "):"scalar";return a?`${l} · ${a}`:l}return r!==void 0?t==="mapping"?`${r} ${r===1?"key":"keys"}`:t==="string"?`${r} ${r===1?"char":"chars"}`:`${r} ${r===1?"item":"items"}`:""}async function $e(e,t,s){const r=e.requestExecute({code:t,silent:!0,store_history:!1,stop_on_error:!1,allow_stdin:!1},!0);s?.(r.msg.header.msg_id);const a=[];let l;r.onIOPub=u=>{const f=u.header.msg_type;if(f==="stream"){const o=u.content;o.name==="stdout"&&a.push(o.text)}else if(f==="error"){const o=u.content;l=`${o.ename}: ${o.evalue}`}};const c=await r.done;if(!l&&c?.content?.status==="error"){const u=c.content;l=`${u.ename}: ${u.evalue}`}return{stdout:a.join(""),error:l}}function ze(e,t){return s=>$e(e,s,t)}const Ee=p.lazy(()=>le(()=>import("./WidgetVariableView-BGLegjCU.js"),[],import.meta.url)),W={fontFamily:"mono",fontSize:0,whiteSpace:"pre-wrap",wordBreak:"break-word"};function E({variable:e}){return n.jsxs(i,{children:[n.jsx(i,{as:"pre","data-kernel-variable-repr":"",sx:{...W,m:0,p:2,maxHeight:240,overflow:"auto",bg:"canvas.inset",color:"fg.default",border:"1px solid",borderColor:"border.default",borderRadius:2},children:e.repr}),e.truncated&&n.jsxs(_,{as:"p",sx:{fontSize:0,color:"fg.muted",m:0,mt:1},children:["Cut at ",e.repr.length.toLocaleString()," characters."]})]})}function w({facts:e}){return n.jsx(i,{as:"dl",sx:{display:"grid",gridTemplateColumns:"max-content 1fr",columnGap:3,rowGap:1,m:0,fontSize:1},children:e.filter(([,t])=>t).map(([t,s])=>n.jsxs(i,{sx:{display:"contents"},children:[n.jsx(i,{as:"dt",sx:{color:"fg.muted"},children:t}),n.jsx(i,{as:"dd",sx:{m:0,...W,fontSize:1},children:s})]},t))})}function P({columns:e,index:t,rows:s,caption:r}){const a={px:2,py:1,borderBottom:"1px solid",borderColor:"border.muted",textAlign:"left",whiteSpace:"nowrap",fontFamily:"mono",fontSize:0};return n.jsx(i,{sx:{overflow:"auto",maxHeight:280,border:"1px solid",borderColor:"border.default",borderRadius:2},children:n.jsxs(i,{as:"table","data-kernel-variable-table":"",sx:{borderCollapse:"collapse",width:"100%",color:"fg.default"},children:[r&&n.jsx(i,{as:"caption",sx:{textAlign:"left",p:2,fontSize:0,color:"fg.muted"},children:r}),n.jsx("thead",{children:n.jsxs(i,{as:"tr",sx:{bg:"canvas.subtle"},children:[t&&n.jsx(i,{as:"th",sx:a}),e.map((l,c)=>n.jsx(i,{as:"th",sx:{...a,fontWeight:"bold"},children:l},`${l}-${c}`))]})}),n.jsx("tbody",{children:s.map((l,c)=>n.jsxs("tr",{children:[t&&n.jsx(i,{as:"th",sx:{...a,color:"fg.muted"},children:t[c]}),l.map((u,f)=>n.jsx(i,{as:"td",sx:a,children:u},f))]},c))})]})})}const y=e=>Array.isArray(e)?e.map(t=>String(t)):[],Ne=[{id:"scalar",matches:e=>e.kind==="scalar"||e.kind==="string",render:({variable:e})=>n.jsxs(i,{sx:{display:"flex",flexDirection:"column",gap:2},children:[n.jsx(w,{facts:[["Type",e.type],["Length",e.length?.toLocaleString()],["Size",S(e.size)]]}),n.jsx(E,{variable:e})]})},{id:"collection",matches:e=>e.kind==="sequence"||e.kind==="set"||e.kind==="mapping",render:({variable:e})=>{const t=Array.isArray(e.data.items)?e.data.items:[],s=e.kind==="mapping";return n.jsxs(i,{sx:{display:"flex",flexDirection:"column",gap:2},children:[n.jsx(w,{facts:[["Type",e.type],["Length",C(e)],["Size",S(e.size)]]}),t.length>0&&n.jsx(P,{caption:e.length!==void 0&&e.length>t.length?`The first ${t.length} of ${e.length.toLocaleString()}`:void 0,columns:s?["Key","Value"]:["Item"],index:s?void 0:t.map((r,a)=>String(a)),rows:t.map(r=>s?y(r):[String(r)])})]})}},{id:"ndarray",matches:e=>e.kind==="ndarray",render:({variable:e})=>n.jsxs(i,{sx:{display:"flex",flexDirection:"column",gap:2},children:[n.jsx(w,{facts:[["Shape",e.shape?`(${e.shape.join(", ")})`:""],["Dtype",e.dtype],["Size",S(e.size)]]}),n.jsx(E,{variable:e})]})},{id:"dataframe",matches:e=>e.kind==="dataframe",render:({variable:e})=>{const t=y(e.data.columns),s=y(e.data.dtypes),r=Array.isArray(e.data.rows)?e.data.rows.map(y):[];return n.jsxs(i,{sx:{display:"flex",flexDirection:"column",gap:2},children:[n.jsx(w,{facts:[["Shape",C(e)],["Size",S(e.size)]]}),t.length>0?n.jsx(P,{caption:`head(${r.length})`,columns:t.map((a,l)=>s[l]?`${a} · ${s[l]}`:a),index:y(e.data.index),rows:r}):n.jsx(E,{variable:e})]})}},{id:"series",matches:e=>e.kind==="series",render:({variable:e})=>{const t=y(e.data.values);return n.jsxs(i,{sx:{display:"flex",flexDirection:"column",gap:2},children:[n.jsx(w,{facts:[["Name",e.data.name],["Length",C(e)],["Size",S(e.size)]]}),n.jsx(P,{caption:`head(${t.length})`,columns:[String(e.data.name??e.name)],index:y(e.data.index),rows:t.map(s=>[s])})]})}},{id:"figure",matches:e=>e.kind==="figure",render:({variable:e})=>typeof e.data.png=="string"?n.jsx(i,{as:"img",alt:`The figure ${e.name}`,src:`data:image/png;base64,${e.data.png}`,sx:{maxWidth:"100%",bg:"white",borderRadius:2}}):n.jsx(E,{variable:e})},{id:"widget",matches:e=>e.kind==="widget",summary:e=>e.preview?`value: ${e.preview}`:e.type,render:({variable:e,connection:t})=>n.jsxs(i,{sx:{display:"flex",flexDirection:"column",gap:2},children:[n.jsx(w,{facts:[["Widget",e.type],["Value",e.preview],["Description",e.data.description]]}),t&&e.modelId?n.jsx(p.Suspense,{fallback:n.jsx(_,{sx:{fontSize:1,color:"fg.muted"},children:"Loading the widget…"}),children:n.jsx(Ee,{connection:t,modelId:e.modelId})}):n.jsx(_,{as:"p",sx:{m:0,fontSize:1,color:"fg.muted"},children:"The widget is drawn live where the page talks to its kernel."})]})},{id:"callable",matches:e=>e.kind==="function"||e.kind==="class"||e.kind==="module",summary:e=>e.kind==="module"?`module ${e.preview}`:`${e.kind} ${e.preview}`,render:({variable:e})=>n.jsxs(i,{sx:{display:"flex",flexDirection:"column",gap:2},children:[e.kind!=="module"&&n.jsxs(i,{sx:{...W,fontSize:1},children:[e.kind==="class"?"class ":"def ",e.preview,e.data.signature??""]}),e.kind==="class"&&y(e.data.bases).length>0&&n.jsx(i,{sx:{display:"flex",gap:1,flexWrap:"wrap"},children:y(e.data.bases).map(t=>n.jsx(Y,{variant:"secondary",children:t},t))}),n.jsx(w,{facts:[["Module",e.kind==="module"?e.preview:void 0],["File",e.data.file]]}),typeof e.data.doc=="string"&&e.data.doc&&n.jsx(_,{as:"p",sx:{m:0,fontSize:1,whiteSpace:"pre-wrap"},children:e.data.doc})]})}],U={id:"repr",matches:()=>!0,render:({variable:e})=>n.jsxs(i,{sx:{display:"flex",flexDirection:"column",gap:2},children:[n.jsx(w,{facts:[["Type",e.module&&e.module!=="builtins"?`${e.module}.${e.type}`:e.type],["Size",S(e.size)]]}),n.jsx(E,{variable:e})]})};class Ve{_registered=[];register(t){return this._registered.unshift(t),()=>{this._registered=this._registered.filter(s=>s!==t)}}list(){return[...this._registered,...Ne,U]}resolve(t,s=[]){return[...s,...this.list()].find(r=>r.matches(t))??U}}const te=new Ve;function v({children:e,busy:t=!1,...s}){return n.jsxs(i,{...s,sx:{display:"flex",alignItems:"center",gap:2,p:3,color:"fg.muted",fontSize:1},children:[t&&n.jsx(_e,{size:"small"}),n.jsx(_,{children:e})]})}function Te(e,t,s,r,a){const[l,c]=p.useState({state:"none"});return p.useEffect(()=>{let u=!1;const f=o=>!u&&c(o);return s?(f(Z(r)?{state:"ready",execute:s,language:r}:{state:"unsupported",language:r}),()=>{u=!0}):!e&&!t?(f({state:"none"}),()=>{u=!0}):(f({state:"starting"}),(async()=>{e&&await e.ready;const o=t??e?.connection??null;if(!o){f({state:"none"});return}const x=(await o.info)?.language_info?.name??"";f(Z(x)?{state:"ready",execute:ze(o,g=>a.add(g)),language:x,connection:o}:{state:"unsupported",language:x||"an unknown language"})})().catch(()=>f({state:"none"})),()=>{u=!0})},[e,t,s,r,a]),l}function Ie({variable:e,connection:t,execute:s,language:r,renderers:a,version:l}){const[c,u]=p.useState(),[f,o]=p.useState();if(p.useEffect(()=>{let x=!1;return o(void 0),Se(s,e.name,{language:r}).then(g=>!x&&u(g)).catch(g=>!x&&o(g instanceof Error?g.message:String(g))),()=>{x=!0}},[s,e.name,r,l]),f)return n.jsx(Q,{variant:"danger",sx:{fontSize:1},children:f});if(!c)return n.jsx(v,{busy:!0,children:"Reading the variable…"});const m=te.resolve(c,a);return n.jsx(i,{"data-kernel-variable-details":c.name,"data-renderer":m.id,children:m.render({variable:c,connection:t})})}const Re=({kernel:e,connection:t,execute:s,language:r="python",autoRefresh:a=!0,showModules:l=!1,renderers:c=[],maxHeight:u=480})=>{const f=p.useMemo(()=>new Set,[]),o=Te(e,t,s,r,f),[m,x]=p.useState(),[g,G]=p.useState(!1),[T,q]=p.useState(),[R,ne]=p.useState(""),[I,se]=p.useState(l),[re,K]=p.useState(),[ae,ie]=p.useState(0),F=p.useRef(void 0),$=p.useCallback(async()=>{if(o.state==="ready"){G(!0);try{const d=await ve(o.execute,{language:o.language,modules:I});x(d),q(void 0),ie(h=>h+1)}catch(d){q(d instanceof Error?d.message:String(d))}finally{G(!1)}}},[o,I]);p.useEffect(()=>{x(void 0),K(void 0),$()},[$]),p.useEffect(()=>{const d=o.state==="ready"?o.connection:void 0;if(!d||!a)return;const h=()=>{clearTimeout(F.current),F.current=setTimeout(()=>{$()},250)},A=(oe,j)=>{if(j.header.msg_type!=="status")return;const de=j.content.execution_state,D=j.parent_header;de==="idle"&&D?.msg_type==="execute_request"&&D.msg_id&&!f.has(D.msg_id)&&h()};let z=!1;const H=(oe,j)=>{j==="restarting"||j==="autorestarting"?(z=!0,x([]),K(void 0)):j==="idle"&&z&&(z=!1,h())};return d.iopubMessage.connect(A),d.statusChanged.connect(H),()=>{clearTimeout(F.current),d.iopubMessage.disconnect(A),d.statusChanged.disconnect(H)}},[o,a,$,f]);const L=p.useMemo(()=>{const d=R.trim().toLowerCase();return(m??[]).filter(h=>!d||h.name.toLowerCase().includes(d)||h.type.toLowerCase().includes(d))},[m,R]);if(o.state==="none")return n.jsx(v,{"data-kernel-variables":"none",children:"No kernel: its variables are listed once there is one."});if(o.state==="starting")return n.jsx(v,{busy:!0,"data-kernel-variables":"starting",children:"The kernel is starting…"});if(o.state==="unsupported")return n.jsx(v,{"data-kernel-variables":"unsupported",children:`Variables are listed for Python kernels; this one runs ${o.language}.`});const B=o;return n.jsxs(i,{"data-kernel-variables":"ready",sx:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[n.jsxs(i,{sx:{display:"flex",alignItems:"center",gap:2},children:[n.jsx(ce,{"aria-label":"Filter the variables",placeholder:"Filter by name or type",leadingVisual:ue,value:R,onChange:d=>ne(d.target.value),size:"small",sx:{flex:1,minWidth:0}}),n.jsx(fe,{icon:pe,"aria-label":"Refresh the variables",size:"small",disabled:g,onClick:()=>{$()},"data-kernel-variables-refresh":""})]}),n.jsxs(i,{sx:{display:"flex",alignItems:"center",gap:2},children:[n.jsx(_,{id:"kernel-variables-modules",sx:{fontSize:0,color:"fg.muted",flex:1},children:m?`${L.length} of ${m.length} variable${m.length===1?"":"s"}`:""}),n.jsx(_,{sx:{fontSize:0,color:"fg.muted"},children:"Modules"}),n.jsx(me,{size:"small","aria-labelledby":"kernel-variables-modules",checked:I,onClick:()=>se(!I),statusLabelPosition:"end"})]}),T&&n.jsx(Q,{variant:"danger",sx:{fontSize:1},children:T}),!m&&!T&&n.jsx(v,{busy:!0,children:"Listing the variables…"}),m&&m.length===0&&!T&&n.jsx(v,{"data-kernel-variables":"empty",children:"No variables yet: define some by running code."}),L.length>0&&n.jsx(i,{as:"ul",sx:{listStyle:"none",m:0,p:0,maxHeight:u,overflow:"auto",border:"1px solid",borderColor:"border.default",borderRadius:2},children:L.map(d=>{const h=re===d.name,A=te.resolve(d,c),z=C(d);return n.jsxs(i,{as:"li","data-kernel-variable":d.name,sx:{borderBottom:"1px solid",borderColor:"border.muted","&:last-child":{borderBottom:"none"}},children:[n.jsxs(i,{as:"button",type:"button","aria-expanded":h,onClick:()=>K(h?void 0:d.name),sx:{display:"grid",gridTemplateColumns:"auto minmax(0, 1fr) auto",columnGap:2,alignItems:"baseline",width:"100%",textAlign:"left",px:2,py:1,border:"none",bg:h?"canvas.subtle":"transparent",color:"fg.default",cursor:"pointer","&:hover":{bg:"canvas.subtle"}},children:[n.jsx(i,{sx:{color:"fg.muted",alignSelf:"center"},children:h?n.jsx(he,{size:12}):n.jsx(xe,{size:12})}),n.jsxs(i,{sx:{minWidth:0},children:[n.jsx(_,{sx:{fontFamily:"mono",fontSize:1,fontWeight:"bold"},children:d.name}),n.jsx(_,{as:"div",sx:{fontFamily:"mono",fontSize:0,color:"fg.muted",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:A.summary?.(d)??d.preview})]}),n.jsxs(i,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-end",gap:1},children:[n.jsx(Y,{variant:"secondary",size:"small",children:d.type}),n.jsx(_,{sx:{fontSize:0,color:"fg.muted"},children:z||S(d.size)})]})]}),h&&n.jsx(i,{sx:{px:3,pb:3,pt:1},children:n.jsx(Ie,{variable:d,connection:B.connection,execute:B.execute,language:B.language,renderers:c,version:ae})})]},d.name)})}),m&&m.length>0&&L.length===0&&n.jsx(v,{children:"No variable matches the filter."})]})};export{Re as K,ye as P,N as a,J as b,Ve as c,E as d,$e as e,P as f,b as g,U as h,S as i,Se as j,we as k,ze as l,C as m,te as n,O as o,X as p,ve as q,ke as r,je as s,be as t,Ce as u,Z as v,ee as w};
199
+ `}const V=new Map([["python",{code:be}]]);function Ce(e,t){const s=e.toLowerCase();return V.set(s,t),()=>{V.get(s)===t&&V.delete(s)}}function O(e){if(!e)return;const t=e.toLowerCase();return V.get(t)??V.get(t.replace(/[0-9.]+$/,""))}function Z(e){return O(e)!==void 0}class b extends Error{constructor(t){super(t),this.name="KernelVariablesError"}}function X(e){const{stdout:t,error:s}=e,r=t.lastIndexOf(N),a=r>0?t.lastIndexOf(N,r-1):-1;if(a<0||r<=a)throw new b(s?`The kernel could not list its variables: ${s}`:"The kernel did not say what its variables are.");const l=t.slice(a+N.length,r);let c;try{c=JSON.parse(l)}catch{throw new b("The kernel answered with something that is not JSON.")}if(!c||typeof c!="object"||Array.isArray(c))throw new b("The kernel answered with no variables.");const u=c;if(typeof u.error=="string")throw new b(u.error);return u}const k=e=>typeof e=="string"?e:void 0,M=e=>typeof e=="number"&&Number.isFinite(e)?e:void 0;function ee(e){if(!e||typeof e!="object")return;const t=e,s=k(t.name);if(!s)return;const r=ge.includes(t.kind)?t.kind:"object",a={name:s,type:k(t.type)??"object",kind:r,preview:k(t.preview)??""},l=k(t.module);l&&(a.module=l);const c=M(t.size);c!==void 0&&(a.size=c),Array.isArray(t.shape)&&t.shape.every(m=>M(m)!==void 0)&&(a.shape=t.shape);const u=M(t.length);u!==void 0&&(a.length=u);const f=k(t.dtype);f&&(a.dtype=f);const o=k(t.model_id);return o&&(a.modelId=o),a}function je(e){const t=X(e);if(!Array.isArray(t.variables))throw new b("The kernel answered with no variables.");return t.variables.map(ee).filter(s=>s!==void 0)}function ke(e){const s=X(e).variable,r=ee(s);if(!s||!r)throw new b("The kernel did not describe the variable.");const a=s.data&&typeof s.data=="object"&&!Array.isArray(s.data)?s.data:{};return{...r,repr:k(s.repr)??"",truncated:s.truncated===!0,data:a}}async function ve(e,t={}){const s=O(t.language??"python");if(!s)throw new b(`Variables are listed for Python kernels, not ${t.language}.`);return je(await e(s.code({modules:t.modules})))}async function Se(e,t,s={}){const r=O(s.language??"python");if(!r)throw new b(`Variables are listed for Python kernels, not ${s.language}.`);return ke(await e(r.code({name:t})))}function S(e){if(e===void 0)return"";const t=["B","KB","MB","GB","TB"];let s=e,r=0;for(;s>=1024&&r<t.length-1;)s/=1024,r+=1;return r===0?`${s} ${t[r]}`:`${s.toFixed(s<10?1:0)} ${t[r]}`}function C(e){const{kind:t,shape:s,length:r,dtype:a}=e;if(t==="dataframe"&&s?.length===2)return`${s[0]} rows × ${s[1]} cols`;if(t==="series"&&s?.length)return`${s[0]} rows${a?` · ${a}`:""}`;if(t==="ndarray"&&s){const l=s.length?s.join(" × "):"scalar";return a?`${l} · ${a}`:l}return r!==void 0?t==="mapping"?`${r} ${r===1?"key":"keys"}`:t==="string"?`${r} ${r===1?"char":"chars"}`:`${r} ${r===1?"item":"items"}`:""}async function $e(e,t,s){const r=e.requestExecute({code:t,silent:!0,store_history:!1,stop_on_error:!1,allow_stdin:!1},!0);s?.(r.msg.header.msg_id);const a=[];let l;r.onIOPub=u=>{const f=u.header.msg_type;if(f==="stream"){const o=u.content;o.name==="stdout"&&a.push(o.text)}else if(f==="error"){const o=u.content;l=`${o.ename}: ${o.evalue}`}};const c=await r.done;if(!l&&c?.content?.status==="error"){const u=c.content;l=`${u.ename}: ${u.evalue}`}return{stdout:a.join(""),error:l}}function ze(e,t){return s=>$e(e,s,t)}const Ee=p.lazy(()=>le(()=>import("./WidgetVariableView-BGLegjCU.js"),[],import.meta.url)),W={fontFamily:"mono",fontSize:0,whiteSpace:"pre-wrap",wordBreak:"break-word"};function E({variable:e}){return n.jsxs(i,{children:[n.jsx(i,{as:"pre","data-kernel-variable-repr":"",sx:{...W,m:0,p:2,maxHeight:240,overflow:"auto",bg:"canvas.inset",color:"fg.default",border:"1px solid",borderColor:"border.default",borderRadius:2},children:e.repr}),e.truncated&&n.jsxs(_,{as:"p",sx:{fontSize:0,color:"fg.muted",m:0,mt:1},children:["Cut at ",e.repr.length.toLocaleString()," characters."]})]})}function w({facts:e}){return n.jsx(i,{as:"dl",sx:{display:"grid",gridTemplateColumns:"max-content 1fr",columnGap:3,rowGap:1,m:0,fontSize:1},children:e.filter(([,t])=>t).map(([t,s])=>n.jsxs(i,{sx:{display:"contents"},children:[n.jsx(i,{as:"dt",sx:{color:"fg.muted"},children:t}),n.jsx(i,{as:"dd",sx:{m:0,...W,fontSize:1},children:s})]},t))})}function P({columns:e,index:t,rows:s,caption:r}){const a={px:2,py:1,borderBottom:"1px solid",borderColor:"border.muted",textAlign:"left",whiteSpace:"nowrap",fontFamily:"mono",fontSize:0};return n.jsx(i,{sx:{overflow:"auto",maxHeight:280,border:"1px solid",borderColor:"border.default",borderRadius:2},children:n.jsxs(i,{as:"table","data-kernel-variable-table":"",sx:{borderCollapse:"collapse",width:"100%",color:"fg.default"},children:[r&&n.jsx(i,{as:"caption",sx:{textAlign:"left",p:2,fontSize:0,color:"fg.muted"},children:r}),n.jsx("thead",{children:n.jsxs(i,{as:"tr",sx:{bg:"canvas.subtle"},children:[t&&n.jsx(i,{as:"th",sx:a}),e.map((l,c)=>n.jsx(i,{as:"th",sx:{...a,fontWeight:"bold"},children:l},`${l}-${c}`))]})}),n.jsx("tbody",{children:s.map((l,c)=>n.jsxs("tr",{children:[t&&n.jsx(i,{as:"th",sx:{...a,color:"fg.muted"},children:t[c]}),l.map((u,f)=>n.jsx(i,{as:"td",sx:a,children:u},f))]},c))})]})})}const y=e=>Array.isArray(e)?e.map(t=>String(t)):[],Ne=[{id:"scalar",matches:e=>e.kind==="scalar"||e.kind==="string",render:({variable:e})=>n.jsxs(i,{sx:{display:"flex",flexDirection:"column",gap:2},children:[n.jsx(w,{facts:[["Type",e.type],["Length",e.length?.toLocaleString()],["Size",S(e.size)]]}),n.jsx(E,{variable:e})]})},{id:"collection",matches:e=>e.kind==="sequence"||e.kind==="set"||e.kind==="mapping",render:({variable:e})=>{const t=Array.isArray(e.data.items)?e.data.items:[],s=e.kind==="mapping";return n.jsxs(i,{sx:{display:"flex",flexDirection:"column",gap:2},children:[n.jsx(w,{facts:[["Type",e.type],["Length",C(e)],["Size",S(e.size)]]}),t.length>0&&n.jsx(P,{caption:e.length!==void 0&&e.length>t.length?`The first ${t.length} of ${e.length.toLocaleString()}`:void 0,columns:s?["Key","Value"]:["Item"],index:s?void 0:t.map((r,a)=>String(a)),rows:t.map(r=>s?y(r):[String(r)])})]})}},{id:"ndarray",matches:e=>e.kind==="ndarray",render:({variable:e})=>n.jsxs(i,{sx:{display:"flex",flexDirection:"column",gap:2},children:[n.jsx(w,{facts:[["Shape",e.shape?`(${e.shape.join(", ")})`:""],["Dtype",e.dtype],["Size",S(e.size)]]}),n.jsx(E,{variable:e})]})},{id:"dataframe",matches:e=>e.kind==="dataframe",render:({variable:e})=>{const t=y(e.data.columns),s=y(e.data.dtypes),r=Array.isArray(e.data.rows)?e.data.rows.map(y):[];return n.jsxs(i,{sx:{display:"flex",flexDirection:"column",gap:2},children:[n.jsx(w,{facts:[["Shape",C(e)],["Size",S(e.size)]]}),t.length>0?n.jsx(P,{caption:`head(${r.length})`,columns:t.map((a,l)=>s[l]?`${a} · ${s[l]}`:a),index:y(e.data.index),rows:r}):n.jsx(E,{variable:e})]})}},{id:"series",matches:e=>e.kind==="series",render:({variable:e})=>{const t=y(e.data.values);return n.jsxs(i,{sx:{display:"flex",flexDirection:"column",gap:2},children:[n.jsx(w,{facts:[["Name",e.data.name],["Length",C(e)],["Size",S(e.size)]]}),n.jsx(P,{caption:`head(${t.length})`,columns:[String(e.data.name??e.name)],index:y(e.data.index),rows:t.map(s=>[s])})]})}},{id:"figure",matches:e=>e.kind==="figure",render:({variable:e})=>typeof e.data.png=="string"?n.jsx(i,{as:"img",alt:`The figure ${e.name}`,src:`data:image/png;base64,${e.data.png}`,sx:{maxWidth:"100%",bg:"white",borderRadius:2}}):n.jsx(E,{variable:e})},{id:"widget",matches:e=>e.kind==="widget",summary:e=>e.preview?`value: ${e.preview}`:e.type,render:({variable:e,connection:t})=>n.jsxs(i,{sx:{display:"flex",flexDirection:"column",gap:2},children:[n.jsx(w,{facts:[["Widget",e.type],["Value",e.preview],["Description",e.data.description]]}),t&&e.modelId?n.jsx(p.Suspense,{fallback:n.jsx(_,{sx:{fontSize:1,color:"fg.muted"},children:"Loading the widget…"}),children:n.jsx(Ee,{connection:t,modelId:e.modelId})}):n.jsx(_,{as:"p",sx:{m:0,fontSize:1,color:"fg.muted"},children:"The widget is drawn live where the page talks to its kernel."})]})},{id:"callable",matches:e=>e.kind==="function"||e.kind==="class"||e.kind==="module",summary:e=>e.kind==="module"?`module ${e.preview}`:`${e.kind} ${e.preview}`,render:({variable:e})=>n.jsxs(i,{sx:{display:"flex",flexDirection:"column",gap:2},children:[e.kind!=="module"&&n.jsxs(i,{sx:{...W,fontSize:1},children:[e.kind==="class"?"class ":"def ",e.preview,e.data.signature??""]}),e.kind==="class"&&y(e.data.bases).length>0&&n.jsx(i,{sx:{display:"flex",gap:1,flexWrap:"wrap"},children:y(e.data.bases).map(t=>n.jsx(U,{variant:"secondary",children:t},t))}),n.jsx(w,{facts:[["Module",e.kind==="module"?e.preview:void 0],["File",e.data.file]]}),typeof e.data.doc=="string"&&e.data.doc&&n.jsx(_,{as:"p",sx:{m:0,fontSize:1,whiteSpace:"pre-wrap"},children:e.data.doc})]})}],Q={id:"repr",matches:()=>!0,render:({variable:e})=>n.jsxs(i,{sx:{display:"flex",flexDirection:"column",gap:2},children:[n.jsx(w,{facts:[["Type",e.module&&e.module!=="builtins"?`${e.module}.${e.type}`:e.type],["Size",S(e.size)]]}),n.jsx(E,{variable:e})]})};class Ve{_registered=[];register(t){return this._registered.unshift(t),()=>{this._registered=this._registered.filter(s=>s!==t)}}list(){return[...this._registered,...Ne,Q]}resolve(t,s=[]){return[...s,...this.list()].find(r=>r.matches(t))??Q}}const te=new Ve;function v({children:e,busy:t=!1,...s}){return n.jsxs(i,{...s,sx:{display:"flex",alignItems:"center",gap:2,p:3,color:"fg.muted",fontSize:1},children:[t&&n.jsx(_e,{size:"small"}),n.jsx(_,{children:e})]})}function Te(e,t,s,r,a){const[l,c]=p.useState({state:"none"});return p.useEffect(()=>{let u=!1;const f=o=>!u&&c(o);return s?(f(Z(r)?{state:"ready",execute:s,language:r}:{state:"unsupported",language:r}),()=>{u=!0}):!e&&!t?(f({state:"none"}),()=>{u=!0}):(f({state:"starting"}),(async()=>{e&&await e.ready;const o=t??e?.connection??null;if(!o){f({state:"none"});return}const x=(await o.info)?.language_info?.name??"";f(Z(x)?{state:"ready",execute:ze(o,g=>a.add(g)),language:x,connection:o}:{state:"unsupported",language:x||"an unknown language"})})().catch(()=>f({state:"none"})),()=>{u=!0})},[e,t,s,r,a]),l}function Ie({variable:e,connection:t,execute:s,language:r,renderers:a,version:l}){const[c,u]=p.useState(),[f,o]=p.useState();if(p.useEffect(()=>{let x=!1;return o(void 0),Se(s,e.name,{language:r}).then(g=>!x&&u(g)).catch(g=>!x&&o(g instanceof Error?g.message:String(g))),()=>{x=!0}},[s,e.name,r,l]),f)return n.jsx(Y,{variant:"danger",sx:{fontSize:1},children:f});if(!c)return n.jsx(v,{busy:!0,children:"Reading the variable…"});const m=te.resolve(c,a);return n.jsx(i,{"data-kernel-variable-details":c.name,"data-renderer":m.id,children:m.render({variable:c,connection:t})})}const Re=({kernel:e,connection:t,execute:s,language:r="python",autoRefresh:a=!0,showModules:l=!1,renderers:c=[],maxHeight:u=480})=>{const f=p.useMemo(()=>new Set,[]),o=Te(e,t,s,r,f),[m,x]=p.useState(),[g,G]=p.useState(!1),[T,q]=p.useState(),[R,ne]=p.useState(""),[I,se]=p.useState(l),[re,K]=p.useState(),[ae,ie]=p.useState(0),F=p.useRef(void 0),$=p.useCallback(async()=>{if(o.state==="ready"){G(!0);try{const d=await ve(o.execute,{language:o.language,modules:I});x(d),q(void 0),ie(h=>h+1)}catch(d){q(d instanceof Error?d.message:String(d))}finally{G(!1)}}},[o,I]);p.useEffect(()=>{x(void 0),K(void 0),$()},[$]),p.useEffect(()=>{const d=o.state==="ready"?o.connection:void 0;if(!d||!a)return;const h=()=>{clearTimeout(F.current),F.current=setTimeout(()=>{$()},250)},A=(oe,j)=>{if(j.header.msg_type!=="status")return;const de=j.content.execution_state,D=j.parent_header;de==="idle"&&D?.msg_type==="execute_request"&&D.msg_id&&!f.has(D.msg_id)&&h()};let z=!1;const H=(oe,j)=>{j==="restarting"||j==="autorestarting"?(z=!0,x([]),K(void 0)):j==="idle"&&z&&(z=!1,h())};return d.iopubMessage.connect(A),d.statusChanged.connect(H),()=>{clearTimeout(F.current),d.iopubMessage.disconnect(A),d.statusChanged.disconnect(H)}},[o,a,$,f]);const L=p.useMemo(()=>{const d=R.trim().toLowerCase();return(m??[]).filter(h=>!d||h.name.toLowerCase().includes(d)||h.type.toLowerCase().includes(d))},[m,R]);if(o.state==="none")return n.jsx(v,{"data-kernel-variables":"none",children:"No kernel: its variables are listed once there is one."});if(o.state==="starting")return n.jsx(v,{busy:!0,"data-kernel-variables":"starting",children:"The kernel is starting…"});if(o.state==="unsupported")return n.jsx(v,{"data-kernel-variables":"unsupported",children:`Variables are listed for Python kernels; this one runs ${o.language}.`});const B=o;return n.jsxs(i,{"data-kernel-variables":"ready",sx:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[n.jsxs(i,{sx:{display:"flex",alignItems:"center",gap:2},children:[n.jsx(ce,{"aria-label":"Filter the variables",placeholder:"Filter by name or type",leadingVisual:ue,value:R,onChange:d=>ne(d.target.value),size:"small",sx:{flex:1,minWidth:0}}),n.jsx(fe,{icon:pe,"aria-label":"Refresh the variables",size:"small",disabled:g,onClick:()=>{$()},"data-kernel-variables-refresh":""})]}),n.jsxs(i,{sx:{display:"flex",alignItems:"center",gap:2},children:[n.jsx(_,{id:"kernel-variables-modules",sx:{fontSize:0,color:"fg.muted",flex:1},children:m?`${L.length} of ${m.length} variable${m.length===1?"":"s"}`:""}),n.jsx(_,{sx:{fontSize:0,color:"fg.muted"},children:"Modules"}),n.jsx(me,{size:"small","aria-labelledby":"kernel-variables-modules",checked:I,onClick:()=>se(!I),statusLabelPosition:"end"})]}),T&&n.jsx(Y,{variant:"danger",sx:{fontSize:1},children:T}),!m&&!T&&n.jsx(v,{busy:!0,children:"Listing the variables…"}),m&&m.length===0&&!T&&n.jsx(v,{"data-kernel-variables":"empty",children:"No variables yet: define some by running code."}),L.length>0&&n.jsx(i,{as:"ul",sx:{listStyle:"none",m:0,p:0,maxHeight:u,overflow:"auto",border:"1px solid",borderColor:"border.default",borderRadius:2},children:L.map(d=>{const h=re===d.name,A=te.resolve(d,c),z=C(d);return n.jsxs(i,{as:"li","data-kernel-variable":d.name,sx:{borderBottom:"1px solid",borderColor:"border.muted","&:last-child":{borderBottom:"none"}},children:[n.jsxs(i,{as:"button",type:"button","aria-expanded":h,onClick:()=>K(h?void 0:d.name),sx:{display:"grid",gridTemplateColumns:"auto minmax(0, 1fr) auto",columnGap:2,alignItems:"baseline",width:"100%",textAlign:"left",px:2,py:1,border:"none",bg:h?"canvas.subtle":"transparent",color:"fg.default",cursor:"pointer","&:hover":{bg:"canvas.subtle"}},children:[n.jsx(i,{sx:{color:"fg.muted",alignSelf:"center"},children:h?n.jsx(he,{size:12}):n.jsx(xe,{size:12})}),n.jsxs(i,{sx:{minWidth:0},children:[n.jsx(_,{sx:{fontFamily:"mono",fontSize:1,fontWeight:"bold"},children:d.name}),n.jsx(_,{as:"div",sx:{fontFamily:"mono",fontSize:0,color:"fg.muted",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:A.summary?.(d)??d.preview})]}),n.jsxs(i,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-end",gap:1},children:[n.jsx(U,{variant:"secondary",size:"small",children:d.type}),n.jsx(_,{sx:{fontSize:0,color:"fg.muted"},children:z||S(d.size)})]})]}),h&&n.jsx(i,{sx:{px:3,pb:3,pt:1},children:n.jsx(Ie,{variable:d,connection:B.connection,execute:B.execute,language:B.language,renderers:c,version:ae})})]},d.name)})}),m&&m.length>0&&L.length===0&&n.jsx(v,{children:"No variable matches the filter."})]})};export{Re as K,ye as P,N as a,J as b,Ve as c,E as d,$e as e,P as f,b as g,Q as h,S as i,Se as j,we as k,ze as l,C as m,te as n,O as o,X as p,ve as q,ke as r,je as s,be as t,Ce as u,Z as v,ee as w};
@@ -1,4 +1,4 @@
1
- import{eq as K,_ as Y,er as I,k9 as m,ka as B,kb as A,kc as u,kd as v,ke as f,kf as z,kg as X,kh as E,ki as y,kj as b,r as V}from"../datalayer-app-main.js";let x;function Q(){return x===void 0&&(x=typeof window<"u"&&new URLSearchParams(window.location.search).get("debug")==="true"),x}function p(...t){Q()&&console.log(...t)}const g=K((t,o)=>({lexicals:new Map,pluginTools:new Map,setLexicals:e=>t(()=>({lexicals:e})),selectLexical:e=>o().lexicals.get(e),selectLexicalAdapter:e=>o().lexicals.get(e)?.adapter,registerPluginTools:(e,a)=>{const r=new Map(o().pluginTools),l=new Map(r.get(e)??[]);l.set(a.name,a),r.set(e,l),t(()=>({pluginTools:r}))},unregisterPluginTools:(e,a)=>{const r=o().pluginTools.get(e);if(!r?.has(a))return;const l=new Map(o().pluginTools),s=new Map(r);s.delete(a),s.size===0?l.delete(e):l.set(e,s),t(()=>({pluginTools:l}))},selectPluginTools:e=>[...o().pluginTools.get(e)?.values()??[]].sort((a,r)=>a.name.localeCompare(r.name)),selectPluginToolsKey:e=>[...o().pluginTools.get(e)?.keys()??[]].sort().join(","),selectPluginToolHandler:(e,a)=>{for(const r of o().pluginTools.get(e)?.values()??[]){const l=r.handlers[a];if(l)return l}},insertBlock:async(e,a,r,l,s)=>{const n=typeof e=="object"?e:{id:e,type:a,source:r,metadata:l,afterId:s},i=o().lexicals.get(n.id)?.adapter;if(!i)throw new Error(`Lexical document ${n.id} not found`);const c={block_id:"",block_type:n.type,source:n.source,metadata:n.metadata},d=await i.insertBlock(c,n.afterId);if(!d.success)throw new Error(d.error||"Failed to insert block");return d},updateBlock:async(e,a,r,l,s)=>{const n=typeof e=="object"?e:{id:e,blockId:a,type:r,source:l,metadata:s},i=o().lexicals.get(n.id)?.adapter;if(!i)throw new Error(`Lexical document ${n.id} not found`);const c=await i.getBlockById(n.blockId);if(!c)throw new Error(`Block ${n.blockId} not found`);const d={...c,block_type:n.type??c.block_type,source:n.source??c.source,metadata:{...c.metadata,...n.metadata}},h=await i.updateBlock(n.blockId,d);if(!h.success)throw new Error(h.error||"Failed to update block")},deleteBlock:async(e,a)=>{const r=typeof e=="object"?e:{id:e,blockId:a},l=o().lexicals.get(r.id)?.adapter;if(!l)throw new Error(`Lexical document ${r.id} not found`);const s=await l.deleteBlock([r.blockId]);if(!s.success)throw new Error(s.error||"Failed to delete block")},deleteBlocks:async(e,a)=>{const r=typeof e=="object"?e:{id:e,blockIds:a},l=o().lexicals.get(r.id)?.adapter;if(!l)throw new Error(`Lexical document ${r.id} not found`);const s=Array.isArray(r.blockIds)?r.blockIds:[r.blockIds],n=await l.deleteBlock(s);if(!n.success)throw new Error(n.error||"Failed to delete block");return n},readBlock:async(e,a)=>{const r=typeof e=="object"?e:{id:e,blockId:a},l=o().lexicals.get(r.id)?.adapter;if(!l)throw new Error(`Lexical document ${r.id} not found`);return await l.getBlockById(r.blockId)},readAllBlocks:async(e,a)=>{const r=typeof e=="object"?e:{id:e,format:a||"brief"},l=o().lexicals.get(r.id)?.adapter;if(!l)throw new Error(`Lexical document ${r.id} not found`);return await l.getBlocks(r.format||"brief")},runBlock:async(e,a)=>{const r=typeof e=="object"?e:{id:e,blockId:a};return await o().lexicals.get(r.id)?.adapter?.runBlock(r.blockId)??{success:!1,error:"Adapter not found"}},runAllBlocks:async e=>{const a=typeof e=="object"?e:{id:e};return await o().lexicals.get(a.id)?.adapter?.runAllBlocks()??{success:!1,error:"Adapter not found"}},executeCode:async(e,a,r,l,s)=>{const n=typeof e=="object"?e:{id:e,code:a,storeHistory:r,silent:l,stopOnError:s};return await o().lexicals.get(n.id)?.adapter?.executeCode(n.code,n.storeHistory,n.silent,n.stopOnError)??{success:!1,error:"Adapter not found"}},clearAllOutputs:async e=>{const a=typeof e=="object"?e:{id:e},r=o().lexicals.get(a.id)?.adapter;return r?await r.clearAllOutputs():{success:!1,error:"Adapter not found"}},restartKernel:async e=>{const a=typeof e=="object"?e:{id:e},r=o().lexicals.get(a.id)?.adapter;return r?await r.restartKernel():{success:!1,error:"Adapter not found"}},getBlockCount:async e=>(await o().readAllBlocks(e)).length,listAvailableBlocks:async e=>{p("[LexicalState] 🔍 listAvailableBlocks CALLED with:",{id:e});const a=typeof e=="object"?e:{id:e};p("[LexicalState] 📦 Processed params:",a);const r=o().lexicals.get(a.id)?.adapter;if(!r){const{listAvailableBlocksOperation:s}=await Y(async()=>{const{listAvailableBlocksOperation:i}=await Promise.resolve().then(()=>fe);return{listAvailableBlocksOperation:i}},void 0,import.meta.url);return await s.execute({type:"all"},{documentId:"static",executor:null})}return await r.listAvailableBlocks()},reset:()=>t({lexicals:new Map,pluginTools:new Map})}));function he(t){return I(g,t)}const D=m({afterId:u().describe("Position to insert block: 'TOP' for beginning, 'BOTTOM' for end, or a specific block ID"),type:u().min(1).describe("Block type (e.g., 'paragraph', 'heading', 'code', 'jupyter-cell', 'table', 'collapsible', 'list-item')"),source:u().describe("Block source content"),metadata:B(t=>{if(!(t===""||t===null)){if(typeof t=="string")try{const o=JSON.parse(t);return typeof o=="object"&&!Array.isArray(o)?o:void 0}catch{return}if(!(typeof t!="object"||Array.isArray(t)))return t}},A(u(),v()).optional().describe('Optional block metadata (aligned with Jupyter format). CRITICAL: To insert blocks INSIDE a collapsible, set metadata.collapsible to the RETURNED BLOCK ID from inserting the collapsible container (a specific ID like "6", NOT position markers like "TOP" or "BOTTOM"). Example: {collapsible: "6"} inserts block inside collapsible with ID "6". Position markers (TOP/BOTTOM) are ONLY for the afterId parameter, never for metadata.collapsible.'))}),Z={name:"datalayer_insertBlock",displayName:"Insert Lexical Block",toolReferenceName:"insertBlock",description:"Insert blocks into Lexical documents (.dlex files). IMPORTANT: Lexical documents support EXECUTABLE JUPYTER CELLS - use type='jupyter-cell' to insert Python/R/Julia code cells that can be executed via kernel (just like .ipynb notebooks). Other block types: paragraph, heading, code (non-executable syntax highlighting), quote, list, table, collapsible, equation, image, youtube, horizontalrule. CRITICAL: DO NOT use markdown syntax in source field. Heading blocks use PLAIN TEXT (no # symbols) - specify tag metadata (h1-h6) instead. Inline formatting like **bold** or *italic* is automatically converted. ALWAYS call listAvailableBlocks FIRST to see block types and required metadata format. When inserting MULTIPLE blocks sequentially (e.g., creating a document outline with heading + paragraph + code), ALWAYS use afterId: 'BOTTOM' for each insertion to append blocks in order. For single insertions, call readAllBlocks first to see document structure. Position blocks using afterId: 'TOP' (beginning), 'BOTTOM' (end - REQUIRED for sequential inserts), or a specific block_id value from readAllBlocks. To insert blocks INSIDE a collapsible: 1) First insert collapsible (type='collapsible'), which returns a blockId, 2) Then insert nested blocks with metadata.collapsible set to that RETURNED BLOCK ID (NOT 'TOP' or 'BOTTOM'). Example: result = insertBlock({type: 'collapsible', source: 'Section', afterId: 'BOTTOM'}); insertBlock({type: 'paragraph', source: 'text', metadata: {collapsible: result.blockId}, afterId: 'BOTTOM'}). DO NOT use position markers (TOP/BOTTOM) as collapsible IDs - they are only for afterId positioning. Works on active .lexical/.dlex file.",parameters:f(D),operation:"insertBlock",config:{confirmationMessage:t=>`Insert ${t.type} block ${t.afterId==="TOP"?"at beginning":t.afterId==="BOTTOM"?"at end":`after block ${t.afterId}`}?
1
+ import{er as K,_ as Y,es as I,kb as m,kc as B,kd as A,ke as u,kf as v,kg as f,kh as z,ki as X,kj as E,kk as y,kl as b,r as V}from"../datalayer-app-main.js";let x;function Q(){return x===void 0&&(x=typeof window<"u"&&new URLSearchParams(window.location.search).get("debug")==="true"),x}function p(...t){Q()&&console.log(...t)}const g=K((t,o)=>({lexicals:new Map,pluginTools:new Map,setLexicals:e=>t(()=>({lexicals:e})),selectLexical:e=>o().lexicals.get(e),selectLexicalAdapter:e=>o().lexicals.get(e)?.adapter,registerPluginTools:(e,a)=>{const r=new Map(o().pluginTools),l=new Map(r.get(e)??[]);l.set(a.name,a),r.set(e,l),t(()=>({pluginTools:r}))},unregisterPluginTools:(e,a)=>{const r=o().pluginTools.get(e);if(!r?.has(a))return;const l=new Map(o().pluginTools),s=new Map(r);s.delete(a),s.size===0?l.delete(e):l.set(e,s),t(()=>({pluginTools:l}))},selectPluginTools:e=>[...o().pluginTools.get(e)?.values()??[]].sort((a,r)=>a.name.localeCompare(r.name)),selectPluginToolsKey:e=>[...o().pluginTools.get(e)?.keys()??[]].sort().join(","),selectPluginToolHandler:(e,a)=>{for(const r of o().pluginTools.get(e)?.values()??[]){const l=r.handlers[a];if(l)return l}},insertBlock:async(e,a,r,l,s)=>{const n=typeof e=="object"?e:{id:e,type:a,source:r,metadata:l,afterId:s},i=o().lexicals.get(n.id)?.adapter;if(!i)throw new Error(`Lexical document ${n.id} not found`);const c={block_id:"",block_type:n.type,source:n.source,metadata:n.metadata},d=await i.insertBlock(c,n.afterId);if(!d.success)throw new Error(d.error||"Failed to insert block");return d},updateBlock:async(e,a,r,l,s)=>{const n=typeof e=="object"?e:{id:e,blockId:a,type:r,source:l,metadata:s},i=o().lexicals.get(n.id)?.adapter;if(!i)throw new Error(`Lexical document ${n.id} not found`);const c=await i.getBlockById(n.blockId);if(!c)throw new Error(`Block ${n.blockId} not found`);const d={...c,block_type:n.type??c.block_type,source:n.source??c.source,metadata:{...c.metadata,...n.metadata}},h=await i.updateBlock(n.blockId,d);if(!h.success)throw new Error(h.error||"Failed to update block")},deleteBlock:async(e,a)=>{const r=typeof e=="object"?e:{id:e,blockId:a},l=o().lexicals.get(r.id)?.adapter;if(!l)throw new Error(`Lexical document ${r.id} not found`);const s=await l.deleteBlock([r.blockId]);if(!s.success)throw new Error(s.error||"Failed to delete block")},deleteBlocks:async(e,a)=>{const r=typeof e=="object"?e:{id:e,blockIds:a},l=o().lexicals.get(r.id)?.adapter;if(!l)throw new Error(`Lexical document ${r.id} not found`);const s=Array.isArray(r.blockIds)?r.blockIds:[r.blockIds],n=await l.deleteBlock(s);if(!n.success)throw new Error(n.error||"Failed to delete block");return n},readBlock:async(e,a)=>{const r=typeof e=="object"?e:{id:e,blockId:a},l=o().lexicals.get(r.id)?.adapter;if(!l)throw new Error(`Lexical document ${r.id} not found`);return await l.getBlockById(r.blockId)},readAllBlocks:async(e,a)=>{const r=typeof e=="object"?e:{id:e,format:a||"brief"},l=o().lexicals.get(r.id)?.adapter;if(!l)throw new Error(`Lexical document ${r.id} not found`);return await l.getBlocks(r.format||"brief")},runBlock:async(e,a)=>{const r=typeof e=="object"?e:{id:e,blockId:a};return await o().lexicals.get(r.id)?.adapter?.runBlock(r.blockId)??{success:!1,error:"Adapter not found"}},runAllBlocks:async e=>{const a=typeof e=="object"?e:{id:e};return await o().lexicals.get(a.id)?.adapter?.runAllBlocks()??{success:!1,error:"Adapter not found"}},executeCode:async(e,a,r,l,s)=>{const n=typeof e=="object"?e:{id:e,code:a,storeHistory:r,silent:l,stopOnError:s};return await o().lexicals.get(n.id)?.adapter?.executeCode(n.code,n.storeHistory,n.silent,n.stopOnError)??{success:!1,error:"Adapter not found"}},clearAllOutputs:async e=>{const a=typeof e=="object"?e:{id:e},r=o().lexicals.get(a.id)?.adapter;return r?await r.clearAllOutputs():{success:!1,error:"Adapter not found"}},restartKernel:async e=>{const a=typeof e=="object"?e:{id:e},r=o().lexicals.get(a.id)?.adapter;return r?await r.restartKernel():{success:!1,error:"Adapter not found"}},getBlockCount:async e=>(await o().readAllBlocks(e)).length,listAvailableBlocks:async e=>{p("[LexicalState] 🔍 listAvailableBlocks CALLED with:",{id:e});const a=typeof e=="object"?e:{id:e};p("[LexicalState] 📦 Processed params:",a);const r=o().lexicals.get(a.id)?.adapter;if(!r){const{listAvailableBlocksOperation:s}=await Y(async()=>{const{listAvailableBlocksOperation:i}=await Promise.resolve().then(()=>fe);return{listAvailableBlocksOperation:i}},void 0,import.meta.url);return await s.execute({type:"all"},{documentId:"static",executor:null})}return await r.listAvailableBlocks()},reset:()=>t({lexicals:new Map,pluginTools:new Map})}));function he(t){return I(g,t)}const D=m({afterId:u().describe("Position to insert block: 'TOP' for beginning, 'BOTTOM' for end, or a specific block ID"),type:u().min(1).describe("Block type (e.g., 'paragraph', 'heading', 'code', 'jupyter-cell', 'table', 'collapsible', 'list-item')"),source:u().describe("Block source content"),metadata:B(t=>{if(!(t===""||t===null)){if(typeof t=="string")try{const o=JSON.parse(t);return typeof o=="object"&&!Array.isArray(o)?o:void 0}catch{return}if(!(typeof t!="object"||Array.isArray(t)))return t}},A(u(),v()).optional().describe('Optional block metadata (aligned with Jupyter format). CRITICAL: To insert blocks INSIDE a collapsible, set metadata.collapsible to the RETURNED BLOCK ID from inserting the collapsible container (a specific ID like "6", NOT position markers like "TOP" or "BOTTOM"). Example: {collapsible: "6"} inserts block inside collapsible with ID "6". Position markers (TOP/BOTTOM) are ONLY for the afterId parameter, never for metadata.collapsible.'))}),Z={name:"datalayer_insertBlock",displayName:"Insert Lexical Block",toolReferenceName:"insertBlock",description:"Insert blocks into Lexical documents (.dlex files). IMPORTANT: Lexical documents support EXECUTABLE JUPYTER CELLS - use type='jupyter-cell' to insert Python/R/Julia code cells that can be executed via kernel (just like .ipynb notebooks). Other block types: paragraph, heading, code (non-executable syntax highlighting), quote, list, table, collapsible, equation, image, youtube, horizontalrule. CRITICAL: DO NOT use markdown syntax in source field. Heading blocks use PLAIN TEXT (no # symbols) - specify tag metadata (h1-h6) instead. Inline formatting like **bold** or *italic* is automatically converted. ALWAYS call listAvailableBlocks FIRST to see block types and required metadata format. When inserting MULTIPLE blocks sequentially (e.g., creating a document outline with heading + paragraph + code), ALWAYS use afterId: 'BOTTOM' for each insertion to append blocks in order. For single insertions, call readAllBlocks first to see document structure. Position blocks using afterId: 'TOP' (beginning), 'BOTTOM' (end - REQUIRED for sequential inserts), or a specific block_id value from readAllBlocks. To insert blocks INSIDE a collapsible: 1) First insert collapsible (type='collapsible'), which returns a blockId, 2) Then insert nested blocks with metadata.collapsible set to that RETURNED BLOCK ID (NOT 'TOP' or 'BOTTOM'). Example: result = insertBlock({type: 'collapsible', source: 'Section', afterId: 'BOTTOM'}); insertBlock({type: 'paragraph', source: 'text', metadata: {collapsible: result.blockId}, afterId: 'BOTTOM'}). DO NOT use position markers (TOP/BOTTOM) as collapsible IDs - they are only for afterId positioning. Works on active .lexical/.dlex file.",parameters:f(D),operation:"insertBlock",config:{confirmationMessage:t=>`Insert ${t.type} block ${t.afterId==="TOP"?"at beginning":t.afterId==="BOTTOM"?"at end":`after block ${t.afterId}`}?
2
2
 
3
3
  ${t.source}`,invocationMessage:t=>`Inserting ${t.type} block into lexical document`,requiresConfirmation:!0,canBeReferencedInPrompt:!0,priority:"high"},tags:["lexical","insert","block","edit"]},O=m({id:u().min(1).describe("Block ID to update"),type:u().min(1).optional().describe("New block type (e.g., 'paragraph', 'heading', 'code', 'list-item')"),source:u().optional().describe("New block source content"),metadata:B(t=>{if(!(t===""||t===null)){if(typeof t=="string")try{const o=JSON.parse(t);return typeof o=="object"&&!Array.isArray(o)?o:void 0}catch{return}if(!(typeof t!="object"||Array.isArray(t)))return t}},A(u(),v()).optional().describe("New block metadata (aligned with Jupyter format)"))}),G={name:"datalayer_updateBlock",displayName:"Update Lexical Block",toolReferenceName:"updateBlock",description:"Update an existing block in the currently open Lexical document. CRITICAL: DO NOT use markdown syntax (like # for headings) in source field - use plain text and specify block type/metadata instead. Inline formatting like **bold** or *italic* is automatically converted. Use listAvailableBlocks to get available block types. Can modify block type, source content, and/or metadata. Requires id from readAllBlocks. At least one of type, source, or metadata must be provided. Metadata is merged with existing metadata. Works on active .lexical file.",parameters:f(O),operation:"updateBlock",config:{confirmationMessage:t=>{const o=[];return t.type&&o.push(`type to ${t.type}`),t.source&&o.push("source"),t.metadata&&o.push("metadata"),`Update block ${t.id} (${o.join(", ")})?`},invocationMessage:t=>`Updating block ${t.id}`,requiresConfirmation:!0,canBeReferencedInPrompt:!0,priority:"high"},tags:["lexical","update","edit","block","modify"]},P=m({ids:z(u().min(1)).min(1).describe("Array of block IDs to delete")}),ee={name:"datalayer_deleteBlocks",displayName:"Delete Lexical Block(s)",toolReferenceName:"deleteBlocks",description:"Delete one or more blocks from the currently open Lexical document by block_id. Pass array of block IDs to delete. WORKFLOW: 1) Call readAllBlocks to get block_id values, 2) Pass block_id array to delete. Validates all IDs exist before deletion. This permanently removes blocks and changes appear immediately. Works on active .lexical file.",parameters:f(P),operation:"deleteBlocks",config:{confirmationMessage:t=>{const o=t.ids.length;return o===1?`Delete block ${t.ids[0]}? This action cannot be undone.`:`Delete ${o} blocks (${t.ids.join(", ")})? This action cannot be undone.`},invocationMessage:t=>{const o=t.ids.length;return o===1?`Deleting block ${t.ids[0]} from lexical document`:`Deleting ${o} blocks from lexical document`},requiresConfirmation:!0,canBeReferencedInPrompt:!0,priority:"high"},tags:["lexical","delete","block","edit"]},C=m({id:u().min(1).describe("Block ID to read")}),te={name:"datalayer_readBlock",displayName:"Read Lexical Block",toolReferenceName:"readBlock",description:"Read a single block from the currently open Lexical document by its block_id. Use listAvailableBlocks to get available block types. Returns the block with: block_id, block_type (e.g. 'heading', 'paragraph', 'jupyter-cell'), source (content as string), metadata (properties like level, language). Use block_id values from readAllBlocks. Works on active .lexical file.",parameters:f(C),operation:"readBlock",config:{confirmationMessage:t=>`Read block ${t.id} from the lexical document?`,invocationMessage:t=>`Reading block ${t.id} from lexical document`,requiresConfirmation:!1,canBeReferencedInPrompt:!0,priority:"medium"},tags:["lexical","read","block","single"]},R=m({format:X(["brief","detailed"]).default("brief").optional()}),oe={name:"datalayer_readAllBlocks",displayName:"Read All Lexical Blocks",toolReferenceName:"readAllBlocks",description:"Read all blocks from the currently open Lexical document. Use listAvailableBlocks to get available block types. Supports two response formats: 'brief' (default, ~1,100 tokens) returns block_id, block_type, and 40-char content preview for structure queries; 'detailed' (~20,000 tokens) returns full content with source, metadata, and properties. Use brief when you need to see document structure, count blocks, or quickly scan content. Use detailed when you need to read full content. Brief format preview shows: lists as comma-separated items, code/jupyter-cell as first line, horizontalrule as empty string. Returns array of blocks with: block_id (stable identifier for insertion), block_type (e.g. 'heading', 'paragraph', 'jupyter-cell'), preview (brief only), and optionally source/metadata (detailed only). CRITICAL: Use the block_id values from this result for insertBlock's afterId parameter. Works on active .lexical file.",parameters:f(R),operation:"readAllBlocks",config:{confirmationMessage:()=>"Read all blocks from the lexical document?",invocationMessage:()=>"Reading all blocks from lexical document",requiresConfirmation:!1,canBeReferencedInPrompt:!0,priority:"medium"},tags:["lexical","read","blocks","all"]},L=m({id:u().min(1).describe("Executable block ID to run"),timeoutSeconds:E().positive().optional().describe("Execution timeout in seconds. If omitted, no timeout is enforced (normal Jupyter behavior)."),stream:y().optional().describe("Enable streaming progress updates (default: false)"),progressInterval:E().positive().optional().describe("Progress update interval in seconds when stream=true (default: 5)")}),ae={name:"datalayer_runBlock",displayName:"Run Lexical Block",toolReferenceName:"runBlock",description:"Execute a single block in the currently open Lexical document by block_id. WORKFLOW: 1) Call readAllBlocks to get block_id values, 2) Pass block_id to execute. Validates block exists before execution. Only works on executable blocks (jupyter-cell or code blocks with executable: true). Optional timeout (timeoutSeconds) and streaming (stream, progressInterval) parameters available. Triggers execution and returns immediately. Use readBlock after execution to check results. Works on active .lexical file.",parameters:f(L),operation:"runBlock",config:{confirmationMessage:t=>`Run block ${t.id}?`,invocationMessage:t=>`Running block ${t.id}`,requiresConfirmation:!0,canBeReferencedInPrompt:!0,priority:"high"},tags:["lexical","run","execute","block","jupyter"]},M=m({}),re={name:"datalayer_runAllBlocks",displayName:"Run All Lexical Blocks",toolReferenceName:"runAllBlocks",description:"Execute all executable blocks in the currently open Lexical document in sequence. Only runs executable blocks (jupyter-cell or code blocks with executable: true). Non-executable blocks are skipped. Triggers execution and returns immediately with count of blocks executed. Use readAllBlocks after execution to check results. Works on active .lexical file.",parameters:f(M),operation:"runAllBlocks",config:{confirmationMessage:()=>"Run all executable blocks in the lexical document?",invocationMessage:()=>"Running all executable blocks in lexical document",requiresConfirmation:!0,canBeReferencedInPrompt:!0,priority:"high"},tags:["lexical","run","execute","blocks","all","jupyter"]},N=m({type:B(t=>t==null||t===""?"all":t,u().default("all").describe('Block type to filter (e.g., "youtube", "table", "paragraph") or "all" to return all available blocks. Default: "all".'))}),le={name:"datalayer_listAvailableBlocks",displayName:"List Available Lexical Blocks",toolReferenceName:"listAvailableBlocks",description:"Discover available block types for the currently open Lexical document. Available blocks: paragraph, heading, quote, code, list, horizontalrule, jupyter-cell (executable), equation, image, youtube (video embed), table (data table), collapsible (expandable section). Returns detailed schema including required/optional metadata for each block type. Set type parameter to specific block type (e.g., 'youtube', 'table') or 'all' (default) for all blocks. Use this BEFORE calling insertBlock to see exact type names and required metadata format.",parameters:f(N),operation:"listAvailableBlocks",config:{confirmationMessage:t=>t.type&&t.type!=="all"?`List details for '${t.type}' block type?`:"List all available block types?",invocationMessage:t=>t.type&&t.type!=="all"?`Listing '${t.type}' block type details`:"Listing all available block types",requiresConfirmation:!1,canBeReferencedInPrompt:!0,priority:"low"},tags:["lexical","schema","discovery","blocks"]},q=m({code:u().min(1).describe("Code to execute in the kernel"),storeHistory:y().optional().default(!1).describe("Whether to store execution in kernel history"),silent:y().optional().default(!0).describe("Whether to suppress output"),stopOnError:y().optional().default(!0).describe("Whether to stop execution on error")}),se={name:"datalayer_executeCodeInDocument",displayName:"Execute Code in Document Kernel",toolReferenceName:"executeCodeInDocument",description:"Execute code directly in the document kernel without creating blocks. Runs code and returns execution results immediately. Useful for quick computations, variable inspection, or running commands that should not appear in the document. Works on the active kernel for the currently open .lexical file.",parameters:f(q),operation:"executeCodeInDocument",config:{confirmationMessage:t=>`Execute code: ${t.code.substring(0,50)}${t.code.length>50?"...":""}?`,invocationMessage:()=>"Executing code in kernel",requiresConfirmation:!1,canBeReferencedInPrompt:!0,priority:"high"},tags:["lexical","kernel","execute","code","inspection"]},ne={name:"insertBlock",async execute(t,o){const e=b(D,t,"insertBlock"),{afterId:a,type:r,source:l,metadata:s}=e,{documentId:n}=o;if(!n)throw new Error("Document ID is required for insertBlock operation. Ensure the tool execution context includes a valid documentId.");const i=r==="jupyter-cell"&&(!s||Object.keys(s).length===0)?{language:"python"}:s;if(!o.executor)throw new Error("Executor is required for insertBlock operation. This should be provided by the platform (DefaultExecutor, BridgeExecutor, etc.)");try{const c=await o.executor.execute(this.name,{type:r,source:l,metadata:i,afterId:a}),d=a==="TOP"?`Block of type '${r}' inserted at the beginning of the document`:a==="BOTTOM"?`Block of type '${r}' inserted at the end of the document`:`Block of type '${r}' inserted after block '${a}'`;return{success:!0,blockId:c?.blockId,message:d}}catch(c){const d=c instanceof Error?c.message:String(c);throw new Error(`Failed to insert block: ${d}`,{cause:c})}}},ie={name:"updateBlock",async execute(t,o){const e=b(O,t,"updateBlock"),{id:a,type:r,source:l,metadata:s}=e,{documentId:n}=o;if(r===void 0&&l===void 0&&s===void 0)throw new Error("At least one of type, source, or metadata must be provided for updateBlock operation.");if(!n)throw new Error("Document ID is required for updateBlock operation. Ensure the tool execution context includes a valid documentId.");if(!o.executor)throw new Error("Executor is required for updateBlock operation. This should be provided by the platform (DefaultExecutor, BridgeExecutor, etc.)");try{await o.executor.execute(this.name,{blockId:a,type:r,source:l,metadata:s});const i=[r!==void 0&&"type",l!==void 0&&"source",s!==void 0&&"metadata"].filter(Boolean).join(", "),c=`Block '${a}' updated successfully (${i})`;return{success:!0,id:a,message:c}}catch(i){const c=i instanceof Error?i.message:String(i);throw new Error(`Failed to update block: ${c}`,{cause:i})}}},ce={name:"deleteBlocks",async execute(t,o){const e=b(P,t,"deleteBlocks"),{ids:a}=e,{documentId:r}=o;if(!r)throw new Error("Document ID is required for deleteBlocks operation. Ensure the tool execution context includes a valid documentId.");if(!o.executor)throw new Error("Executor is required for deleteBlocks operation. This should be provided by the platform (DefaultExecutor, BridgeExecutor, etc.)");try{const l=await o.executor.execute("deleteBlocks",{blockIds:a});if(!l||!l.deletedBlocks)throw new Error("Adapter did not return expected result structure");const s=l.deletedBlocks.map(n=>`Deleted block with ID '${n.id}'`).join(`
4
4
  `);return{success:!0,deletedBlocks:l.deletedBlocks,message:s||`Deleted ${l.deletedBlocks.length} block(s)`}}catch(l){const s=l instanceof Error?l.message:String(l);throw new Error(`Failed to delete block(s): ${s}`,{cause:l})}}},w={name:"readAllBlocks",async execute(t,o){const e=b(R,t||{},"readAllBlocks"),{format:a="brief"}=e,{documentId:r}=o;if(!r)throw new Error("Document ID is required for readAllBlocks operation. Ensure the tool execution context includes a valid documentId.");if(!o.executor)throw new Error("Executor is required for readAllBlocks operation. This should be provided by the platform (DefaultExecutor, BridgeExecutor, etc.)");try{const l=await o.executor.execute(this.name,{format:a});return{success:!0,blocks:l,blockCount:l.length}}catch(l){const s=l instanceof Error?l.message:String(l);throw new Error(`Failed to read all blocks: ${s}`,{cause:l})}}},de={name:"readBlock",async execute(t,o){const e=b(C,t,"readBlock"),{id:a}=e,{documentId:r}=o;if(!r)throw new Error("Document ID is required for readBlock operation. Ensure the tool execution context includes a valid documentId.");if(!o.executor)throw new Error("Executor is required for readBlock operation. This should be provided by the platform (DefaultExecutor, BridgeExecutor, etc.)");try{const l=await w.execute({},o);if(!l.success||!l.blocks)throw new Error("Failed to read blocks for bounds validation");const s=l.blocks.length;return l.blocks.some(c=>c.block_id===a)?{success:!0,block:await o.executor.execute(this.name,{blockId:a})}:{success:!1,error:`Block ID '${a}' not found. Document has ${s} block${s!==1?"s":""}.`}}catch(l){const s=l instanceof Error?l.message:String(l);throw new Error(`Failed to read block: ${s}`,{cause:l})}}},ue={name:"runBlock",async execute(t,o){const{id:e,timeoutSeconds:a,stream:r=!1,progressInterval:l=5}=b(L,t,this.name),{documentId:s}=o;if(!s)return{success:!1,error:"Document ID is required for this operation."};if(!o.executor)throw new Error("Executor is required for runBlock operation. This should be provided by the platform (DefaultExecutor, BridgeExecutor, etc.)");const n=Date.now();try{const i=await w.execute({},o);if(!i.success||!i.blocks)throw new Error("Failed to read blocks for bounds validation");if(!i.blocks.some(k=>k.block_id===e)){const k=i.blocks.length;return{success:!1,error:`Block ID '${e}' not found. The document has ${k} block${k!==1?"s":""}.`}}let d;if(a!==void 0){const k=new Promise((be,J)=>{setTimeout(()=>{J(new Error(`TIMEOUT_ERROR: Block execution exceeded ${a} seconds`))},a*1e3)}),H=o.executor.execute(this.name,{blockId:e,timeoutSeconds:a,stream:r,progressInterval:l});d=await Promise.race([H,k])}else d=await o.executor.execute(this.name,{blockId:e,stream:r,progressInterval:l});const h=(Date.now()-n)/1e3,U=d?.execution_count??null,F=d?.outputs??[],W=d?.message||`Block executed in ${h.toFixed(2)}s`;return{success:!0,id:e,execution_count:U,outputs:F,elapsed_time:h,message:W}}catch(i){const c=(Date.now()-n)/1e3,d=i instanceof Error?i.message:String(i);if(d.includes("TIMEOUT_ERROR"))return{success:!1,timeout:!0,id:e,elapsed_time:c,error:`Execution timed out after ${a} seconds`};throw new Error(`Failed to run block: ${d}`,{cause:i})}}},pe={name:"runAllBlocks",async execute(t,o){b(M,t||{},"runAllBlocks");const{documentId:e}=o;if(!e)throw new Error("Document ID is required for runAllBlocks operation. Ensure the tool execution context includes a valid documentId.");if(!o.executor)throw new Error("Executor is required for runAllBlocks operation. This should be provided by the platform (DefaultExecutor, BridgeExecutor, etc.)");try{return{success:!0,executedCount:await o.executor.execute(this.name,{})}}catch(a){const r=a instanceof Error?a.message:String(a);throw new Error(`Failed to run all blocks: ${r}`,{cause:a})}}},me=[{type:"paragraph",displayName:"Paragraph",description:"A regular paragraph block for text content. Use plain text in source field - do NOT include markdown syntax.",canContainChildren:!0,example:{type:"paragraph",source:"This is a regular paragraph with text."}},{type:"heading",displayName:"Heading",description:"A semantic HTML heading block (NOT markdown). Use plain text in source field - do NOT include markdown syntax like # or ##. Specify heading level (h1-h6) via the tag property.",requiredProperties:["tag"],optionalProperties:{tag:{type:"string",description:"Heading level: h1 (largest) to h6 (smallest). Use h1 for main titles, h2 for sections, h3 for subsections.",enum:["h1","h2","h3","h4","h5","h6"],default:"h2"}},canContainChildren:!0,example:{type:"heading",source:"Introduction",metadata:{tag:"h1"}}},{type:"quote",displayName:"Blockquote",description:"A blockquote for highlighting quoted text",canContainChildren:!0,example:{type:"quote",source:"To be or not to be, that is the question."}},{type:"list",displayName:"List",description:"A list container supporting bullet or numbered items. Provide items as newline-separated text in the source field - each line becomes a separate list item automatically.",optionalProperties:{listType:{type:"string",description:"Type of list: bullet or number",enum:["bullet","number"],default:"bullet"},start:{type:"number",description:"Starting number for numbered lists",default:1}},canContainChildren:!0,example:{type:"list",source:`Apple
@@ -1 +1 @@
1
- import{be as E,cC as z,cD as $,bh as R,j as a,dr as m,az as T,aA as O,r as B,ds as I,B as r,dt as M,du as y}from"../datalayer-app-main.js";import{D as W}from"./Avatar-VyZWLCFE.js";var _={SkeletonAvatar:"prc-SkeletonAvatar-SkeletonAvatar-inefu"};function C(t){const e=E.c(31);let s,l,o,n,g;e[0]!==t?({size:g,square:o,className:s,style:n,...l}=t,e[0]=t,e[1]=s,e[2]=l,e[3]=o,e[4]=n,e[5]=g):(s=e[1],l=e[2],o=e[3],n=e[4],g=e[5]);const x=g===void 0?W:g;let j;e[6]!==x?(j=z(x),e[6]=x,e[7]=j):j=e[7];const S=j;let d,i,u,c,h,p,f;if(e[8]!==s||e[9]!==S||e[10]!==l||e[11]!==x||e[12]!==o||e[13]!==n){const k={};if(S)for(const[L,w]of Object.entries(x))k[`--avatarSize-${L}`]=`${w}px`;else k["--avatarSize-regular"]=`${x}px`;d=m,e[21]!==s?(i=$(s,_.SkeletonAvatar),e[21]=s,e[22]=i):i=e[22],u=l,c="SkeletonAvatar",h=S?"":void 0,p=o?"":void 0,f=R(n,k),e[8]=s,e[9]=S,e[10]=l,e[11]=x,e[12]=o,e[13]=n,e[14]=d,e[15]=i,e[16]=u,e[17]=c,e[18]=h,e[19]=p,e[20]=f}else d=e[14],i=e[15],u=e[16],c=e[17],h=e[18],p=e[19],f=e[20];let b;return e[23]!==d||e[24]!==i||e[25]!==u||e[26]!==c||e[27]!==h||e[28]!==p||e[29]!==f?(b=a.jsx(d,{className:i,...u,"data-component":c,"data-responsive":h,"data-square":p,style:f}),e[23]=d,e[24]=i,e[25]=u,e[26]=c,e[27]=h,e[28]=p,e[29]=f,e[30]=b):b=e[30],b}const N=["glow","blaze","surge","gold","pop","flame","spark"];function A(t="datalayer",e="dark"){const s=I(t,e);return N.map(l=>s[l])}function v(t){let e=5381;for(let s=0;s<t.length;s+=1)e=(e<<5)+e+t.charCodeAt(s)|0;return Math.abs(e)}function J(t,e="datalayer",s="dark"){const l=A(e,s);return l[v(t)%l.length]}function D(){const{theme:t,colorMode:e}=T(),s=O(),l=e==="auto"?s:e;return B.useMemo(()=>A(t,l),[t,l])}function Q(t){const e=D();return e[v(t)%e.length]}function V(t,e){const s=/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(t.trim());if(!s)return t;const l=s[1].length===3?s[1].split("").map(n=>n+n).join(""):s[1],o=parseInt(l,16);return`rgba(${o>>16&255}, ${o>>8&255}, ${o&255}, ${e})`}const H="--skeletonLoader-bgColor";function q(t){return V(t.textLight,t.isLight?.1:.18)}function F({label:t,children:e,sx:s}){const l=M(),o={[H]:q(l)};return a.jsx(r,{role:"status","aria-label":t,"aria-busy":"true",sx:s,style:o,children:a.jsx(r,{"aria-hidden":"true",sx:{display:"grid",gap:3},children:e})})}function P(){return a.jsxs(r,{sx:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:3,p:3,borderBottom:"1px solid",borderColor:"border.muted"},children:[a.jsxs(r,{sx:{flex:1,minWidth:0,maxWidth:520,display:"grid",gap:2},children:[a.jsx(y,{size:"titleMedium",lines:1,maxWidth:"18rem"}),a.jsx(y,{size:"bodySmall",lines:1,maxWidth:"11rem"})]}),a.jsxs(r,{sx:{display:"flex",alignItems:"center",gap:2,flexShrink:0},children:[a.jsx(C,{size:24}),a.jsx(C,{size:24}),a.jsx(m,{width:"72px",height:"28px"})]})]})}function U({lines:t=3,output:e}){return a.jsxs(r,{sx:{display:"grid",gap:2},children:[a.jsxs(r,{sx:{display:"flex",gap:3,alignItems:"flex-start"},children:[a.jsx(m,{width:"44px",height:"20px"}),a.jsx(r,{sx:{flex:1,minWidth:0},children:a.jsx(m,{width:"100%",height:`${t*20+16}px`})})]}),e?a.jsxs(r,{sx:{display:"flex",gap:3,alignItems:"flex-start"},children:[a.jsx(r,{sx:{width:44,flexShrink:0}}),a.jsx(r,{sx:{flex:1,minWidth:0},children:a.jsx(m,{width:"82%",height:"64px"})})]}):null]})}const K=[{lines:2},{lines:4,output:!0},{lines:3},{lines:2,output:!0}];function X({label:t="Loading the notebook",header:e=!1,cells:s=K,maxWidth:l=980}={}){return a.jsxs(F,{label:t,sx:{flex:1,minHeight:0,width:"100%",overflow:"hidden"},children:[e?a.jsx(P,{}):null,a.jsx(r,{sx:{px:4,py:e?0:4,pb:4,display:"grid",gap:4,maxWidth:l,mx:"auto",width:"100%"},children:s.map((o,n)=>a.jsx(U,{lines:o.lines,output:o.output},n))})]})}export{U as C,P as E,X as N,C as S,H as a,F as b,J as c,A as d,D as e,v as f,q as s,Q as u,V as w};
1
+ import{be as E,cD as z,cE as $,bh as R,j as a,ds as m,az as T,aA as O,r as B,dt as I,B as r,du as M,dv as y}from"../datalayer-app-main.js";import{D as W}from"./Avatar-Dqz3ZWjZ.js";var _={SkeletonAvatar:"prc-SkeletonAvatar-SkeletonAvatar-inefu"};function A(t){const e=E.c(31);let s,l,o,n,g;e[0]!==t?({size:g,square:o,className:s,style:n,...l}=t,e[0]=t,e[1]=s,e[2]=l,e[3]=o,e[4]=n,e[5]=g):(s=e[1],l=e[2],o=e[3],n=e[4],g=e[5]);const x=g===void 0?W:g;let j;e[6]!==x?(j=z(x),e[6]=x,e[7]=j):j=e[7];const S=j;let d,i,u,c,h,p,f;if(e[8]!==s||e[9]!==S||e[10]!==l||e[11]!==x||e[12]!==o||e[13]!==n){const k={};if(S)for(const[L,w]of Object.entries(x))k[`--avatarSize-${L}`]=`${w}px`;else k["--avatarSize-regular"]=`${x}px`;d=m,e[21]!==s?(i=$(s,_.SkeletonAvatar),e[21]=s,e[22]=i):i=e[22],u=l,c="SkeletonAvatar",h=S?"":void 0,p=o?"":void 0,f=R(n,k),e[8]=s,e[9]=S,e[10]=l,e[11]=x,e[12]=o,e[13]=n,e[14]=d,e[15]=i,e[16]=u,e[17]=c,e[18]=h,e[19]=p,e[20]=f}else d=e[14],i=e[15],u=e[16],c=e[17],h=e[18],p=e[19],f=e[20];let b;return e[23]!==d||e[24]!==i||e[25]!==u||e[26]!==c||e[27]!==h||e[28]!==p||e[29]!==f?(b=a.jsx(d,{className:i,...u,"data-component":c,"data-responsive":h,"data-square":p,style:f}),e[23]=d,e[24]=i,e[25]=u,e[26]=c,e[27]=h,e[28]=p,e[29]=f,e[30]=b):b=e[30],b}const N=["glow","blaze","surge","gold","pop","flame","spark"];function C(t="datalayer",e="dark"){const s=I(t,e);return N.map(l=>s[l])}function v(t){let e=5381;for(let s=0;s<t.length;s+=1)e=(e<<5)+e+t.charCodeAt(s)|0;return Math.abs(e)}function J(t,e="datalayer",s="dark"){const l=C(e,s);return l[v(t)%l.length]}function D(){const{theme:t,colorMode:e}=T(),s=O(),l=e==="auto"?s:e;return B.useMemo(()=>C(t,l),[t,l])}function Q(t){const e=D();return e[v(t)%e.length]}function V(t,e){const s=/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(t.trim());if(!s)return t;const l=s[1].length===3?s[1].split("").map(n=>n+n).join(""):s[1],o=parseInt(l,16);return`rgba(${o>>16&255}, ${o>>8&255}, ${o&255}, ${e})`}const H="--skeletonLoader-bgColor";function q(t){return V(t.textLight,t.isLight?.1:.18)}function F({label:t,children:e,sx:s}){const l=M(),o={[H]:q(l)};return a.jsx(r,{role:"status","aria-label":t,"aria-busy":"true",sx:s,style:o,children:a.jsx(r,{"aria-hidden":"true",sx:{display:"grid",gap:3},children:e})})}function P(){return a.jsxs(r,{sx:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:3,p:3,borderBottom:"1px solid",borderColor:"border.muted"},children:[a.jsxs(r,{sx:{flex:1,minWidth:0,maxWidth:520,display:"grid",gap:2},children:[a.jsx(y,{size:"titleMedium",lines:1,maxWidth:"18rem"}),a.jsx(y,{size:"bodySmall",lines:1,maxWidth:"11rem"})]}),a.jsxs(r,{sx:{display:"flex",alignItems:"center",gap:2,flexShrink:0},children:[a.jsx(A,{size:24}),a.jsx(A,{size:24}),a.jsx(m,{width:"72px",height:"28px"})]})]})}function U({lines:t=3,output:e}){return a.jsxs(r,{sx:{display:"grid",gap:2},children:[a.jsxs(r,{sx:{display:"flex",gap:3,alignItems:"flex-start"},children:[a.jsx(m,{width:"44px",height:"20px"}),a.jsx(r,{sx:{flex:1,minWidth:0},children:a.jsx(m,{width:"100%",height:`${t*20+16}px`})})]}),e?a.jsxs(r,{sx:{display:"flex",gap:3,alignItems:"flex-start"},children:[a.jsx(r,{sx:{width:44,flexShrink:0}}),a.jsx(r,{sx:{flex:1,minWidth:0},children:a.jsx(m,{width:"82%",height:"64px"})})]}):null]})}const K=[{lines:2},{lines:4,output:!0},{lines:3},{lines:2,output:!0}];function X({label:t="Loading the notebook",header:e=!1,cells:s=K,maxWidth:l=980}={}){return a.jsxs(F,{label:t,sx:{flex:1,minHeight:0,width:"100%",overflow:"hidden"},children:[e?a.jsx(P,{}):null,a.jsx(r,{sx:{px:4,py:e?0:4,pb:4,display:"grid",gap:4,maxWidth:l,mx:"auto",width:"100%"},children:s.map((o,n)=>a.jsx(U,{lines:o.lines,output:o.output},n))})]})}export{U as C,P as E,X as N,A as S,H as a,F as b,J as c,C as d,D as e,v as f,q as s,Q as u,V as w};
@@ -1 +1 @@
1
- import{r as c,j as k,u as y,P as m,i as I,k as T,m as v,n as u}from"../datalayer-app-main.js";import{R as C,I as w,M as d}from"./RepoPushIcon-Cm8g9NuL.js";import{T as S}from"./Toolbar-5oT8y_0g.js";const n={save:"notebook-save",run:"notebook-run",runAll:"notebook-run-all",interrupt:"notebook-interrupt",delete:"notebook-delete",insert:"notebook-insert",cellType:"notebook-cell-type"},r={save:100,run:200,runAll:210,interrupt:220,delete:300,insert:400,cellType:410};function L(e){const t=y(),[o,l]=c.useState("code"),s=t.selectKernelStatus(e),i=s==="busy",a=s==="idle";return c.useMemo(()=>[{key:n.save,type:"button",order:r.save,group:"file",ariaLabel:"Save notebook",title:"Save notebook (⌘S)",icon:C,onClick:()=>t.save({id:e,date:new Date})},{key:"notebook-divider-file",type:"divider",order:r.save+1},{key:n.run,type:"button",order:r.run,group:"run",ariaLabel:"Run cell",title:"Run cell (⇧↵)",icon:m,disabled:!a,onClick:()=>t.run(e)},{key:n.runAll,type:"button",order:r.runAll,group:"run",ariaLabel:"Run all cells",title:"Run all cells",icon:w,disabled:!a,onClick:()=>t.runAll(e)},{key:n.interrupt,type:"button",order:r.interrupt,group:"run",ariaLabel:"Interrupt kernel",title:"Interrupt kernel (⌘I)",icon:I,disabled:!i,onClick:()=>t.interrupt(e)},{key:"notebook-divider-run",type:"divider",order:r.interrupt+1},{key:n.delete,type:"button",order:r.delete,group:"cell",ariaLabel:"Delete cell",title:"Delete cell",icon:T,onClick:()=>t.delete(e)},{key:n.insert,type:"button",order:r.insert,group:"cell",ariaLabel:`Insert ${o} cell below`,title:`Insert ${o} cell below`,icon:v,onClick:()=>t.insertBelow(e,o)},{key:n.cellType,type:"dropdown",order:r.cellType,group:"cell",ariaLabel:"Cell type to insert",title:"Cell type to insert",icon:o==="code"?u:d,label:o==="code"?"Code":"Markdown",minWidth:76,options:[{key:"code",label:"Code",icon:u,isActive:o==="code",onClick:()=>l("code")},{key:"markdown",label:"Markdown",icon:d,isActive:o==="markdown",onClick:()=>l("markdown")}]}],[o,i,a,e,t])}const f=e=>{const{notebookId:t,extraItems:o,hiddenItems:l,ariaLabel:s="Notebook toolbar"}=e,i=L(t),a=c.useMemo(()=>{if(!l?.length)return i;const p=new Set(l);return i.filter(b=>!p.has(b.key))},[i,l]);return k.jsx(S,{items:a,extraItems:o,ariaLabel:s})};export{r as N,f as a,n as b,L as u};
1
+ import{r as c,j as k,u as y,P as m,i as I,k as T,m as v,n as u}from"../datalayer-app-main.js";import{R as C,I as w,M as d}from"./RepoPushIcon-Cm8g9NuL.js";import{T as S}from"./Toolbar-B6ROXJ-2.js";const n={save:"notebook-save",run:"notebook-run",runAll:"notebook-run-all",interrupt:"notebook-interrupt",delete:"notebook-delete",insert:"notebook-insert",cellType:"notebook-cell-type"},r={save:100,run:200,runAll:210,interrupt:220,delete:300,insert:400,cellType:410};function L(e){const t=y(),[o,l]=c.useState("code"),s=t.selectKernelStatus(e),i=s==="busy",a=s==="idle";return c.useMemo(()=>[{key:n.save,type:"button",order:r.save,group:"file",ariaLabel:"Save notebook",title:"Save notebook (⌘S)",icon:C,onClick:()=>t.save({id:e,date:new Date})},{key:"notebook-divider-file",type:"divider",order:r.save+1},{key:n.run,type:"button",order:r.run,group:"run",ariaLabel:"Run cell",title:"Run cell (⇧↵)",icon:m,disabled:!a,onClick:()=>t.run(e)},{key:n.runAll,type:"button",order:r.runAll,group:"run",ariaLabel:"Run all cells",title:"Run all cells",icon:w,disabled:!a,onClick:()=>t.runAll(e)},{key:n.interrupt,type:"button",order:r.interrupt,group:"run",ariaLabel:"Interrupt kernel",title:"Interrupt kernel (⌘I)",icon:I,disabled:!i,onClick:()=>t.interrupt(e)},{key:"notebook-divider-run",type:"divider",order:r.interrupt+1},{key:n.delete,type:"button",order:r.delete,group:"cell",ariaLabel:"Delete cell",title:"Delete cell",icon:T,onClick:()=>t.delete(e)},{key:n.insert,type:"button",order:r.insert,group:"cell",ariaLabel:`Insert ${o} cell below`,title:`Insert ${o} cell below`,icon:v,onClick:()=>t.insertBelow(e,o)},{key:n.cellType,type:"dropdown",order:r.cellType,group:"cell",ariaLabel:"Cell type to insert",title:"Cell type to insert",icon:o==="code"?u:d,label:o==="code"?"Code":"Markdown",minWidth:76,options:[{key:"code",label:"Code",icon:u,isActive:o==="code",onClick:()=>l("code")},{key:"markdown",label:"Markdown",icon:d,isActive:o==="markdown",onClick:()=>l("markdown")}]}],[o,i,a,e,t])}const f=e=>{const{notebookId:t,extraItems:o,hiddenItems:l,ariaLabel:s="Notebook toolbar"}=e,i=L(t),a=c.useMemo(()=>{if(!l?.length)return i;const p=new Set(l);return i.filter(b=>!p.has(b.key))},[i,l]);return k.jsx(S,{items:a,extraItems:o,ariaLabel:s})};export{r as N,f as a,n as b,L as u};
@@ -1,2 +1,2 @@
1
- import{p as b,q as h,y as f,r as n,j as i,B as d,T as x,J as k,K as j,O as v}from"../datalayer-app-main.js";import{EphemeralNotebook as I}from"./EphemeralNotebook-oX8GrXS3.js";import{u as y,o as T,a as E}from"./openingNotebook-Dz1CMX0P.js";import"./useProgressTask-DDbgXluG.js";import"./NotebookToolbar-B3BFk-WV.js";import"./RepoPushIcon-Cm8g9NuL.js";import"./Toolbar-5oT8y_0g.js";import"./CellSidebarExtension-DAzWlyRN.js";import"./NotebookSkeleton-BTs2pK7B.js";import"./Avatar-VyZWLCFE.js";import"./renderer-jz0zn1Az.js";import"./SquareIcon-e3ygcjpv.js";function q({workspace:p}){const r=b(),e=h(r.snapshot),u=p.surfaceId,l=y(v,j,{workspace:p,editorId:u}),t=f(k)[0]?.value,s=n.useMemo(()=>t?t.notebook():T(),[t]),c=n.useMemo(()=>t?t.prime!==void 0?t.prime:s.cells.filter(o=>o.cell_type==="code").map(o=>Array.isArray(o.source)?o.source.join(""):o.source).join(`
1
+ import{p as b,q as h,y as f,r as n,j as i,B as d,T as x,J as k,K as j,O as v}from"../datalayer-app-main.js";import{EphemeralNotebook as I}from"./EphemeralNotebook-DvDbCKnr.js";import{u as y,o as T,a as E}from"./openingNotebook-Dz1CMX0P.js";import"./useProgressTask-DDbgXluG.js";import"./NotebookToolbar-C2_ZC9Ej.js";import"./RepoPushIcon-Cm8g9NuL.js";import"./Toolbar-B6ROXJ-2.js";import"./CellSidebarExtension-B-vao30u.js";import"./NotebookSkeleton-D9WNoiWD.js";import"./Avatar-Dqz3ZWjZ.js";import"./renderer-jz0zn1Az.js";import"./SquareIcon-e3ygcjpv.js";function q({workspace:p}){const r=b(),e=h(r.snapshot),u=p.surfaceId,l=y(v,j,{workspace:p,editorId:u}),t=f(k)[0]?.value,s=n.useMemo(()=>t?t.notebook():T(),[t]),c=n.useMemo(()=>t?t.prime!==void 0?t.prime:s.cells.filter(o=>o.cell_type==="code").map(o=>Array.isArray(o.source)?o.source.join(""):o.source).join(`
2
2
  `):E(),[t,s]),m=n.useRef(null);if(n.useEffect(()=>{const o=e.kernelId;e.state!=="running"||!o||m.current!==o&&(m.current=o,r.execute(c).catch(g=>{console.warn("[loop] could not prime the opening cell",g)}))},[r,e.state,e.kernelId,c]),e.state!=="running")return i.jsx(d,{height:"100%",display:"flex",alignItems:"center",justifyContent:"center",color:"fg.muted",fontSize:1,px:4,textAlign:"center",children:i.jsx(x,{children:"The notebook needs a running sandbox. Open the Sandbox view to see what it is doing."})});const a=r.getServiceManager()??void 0;return i.jsx(d,{sx:{height:"100%",minHeight:0,"& .jp-NotebookPanel":{height:"100% !important",minHeight:0},"& .dla-Box-Notebook":{display:"flex",flexDirection:"column",minHeight:0}},children:i.jsx(I,{nbformat:s,inheritTheme:!0,notebookId:u,serviceManager:a,kernelId:a?e.kernelId:void 0,showToolbar:l.present,toolbarExtraItems:l.items,runtimeOverride:!a&&e.jupyterUrl?{baseUrl:e.jupyterUrl,token:e.jupyterToken}:void 0})})}export{q as default};
@@ -1,4 +1,4 @@
1
- import{r as p,l as _,s as S,b as L,d as A,t as P,j as n,T as x,B as c,c as b,D as B,S as K,H as O,N as U,L as N,e as T,I as z,C as R,f as $}from"../datalayer-app-main.js";import{e as F,K as H}from"./KernelVariables-D4s9Q5Ng.js";import"./Flash-DTBPQ4yb.js";function D({status:e}){const s=e==="running"||e==="idle"?"success":e==="busy"||e==="starting"?"attention":e==="error"||e==="dead"?"danger":"secondary";return n.jsx(N,{variant:s,size:"small","data-sandbox-status":e,children:e})}function Y({url:e}){const[s,l]=p.useState(!1);return n.jsxs(c,{display:"flex",alignItems:"center",gap:1,minWidth:0,children:[n.jsx(T,{href:e,target:"_blank",rel:"noreferrer",sx:{fontFamily:"mono",fontSize:0,wordBreak:"break-all"},children:e}),n.jsx(z,{icon:s?R:$,"aria-label":"Copy the URL",size:"small",variant:"invisible",onClick:()=>{navigator.clipboard?.writeText(e).then(()=>{l(!0),setTimeout(()=>l(!1),1500)})}})]})}function E(e){if(e===void 0||e==="")return;const s=typeof e=="number"?new Date(e<1e12?e*1e3:e):new Date(e);return Number.isNaN(s.getTime())?void 0:s.toLocaleString()}const h="__DL_PYODIDE__",M=`def __dl_pyodide():
1
+ import{r as p,l as _,s as S,b as L,d as A,t as P,j as n,T as x,B as c,c as b,D as B,S as K,H as O,N as U,L as N,e as T,I as z,C as R,f as $}from"../datalayer-app-main.js";import{e as F,K as H}from"./KernelVariables-BUmOt4yF.js";import"./Flash-DdFxPtBI.js";function D({status:e}){const s=e==="running"||e==="idle"?"success":e==="busy"||e==="starting"?"attention":e==="error"||e==="dead"?"danger":"secondary";return n.jsx(N,{variant:s,size:"small","data-sandbox-status":e,children:e})}function Y({url:e}){const[s,l]=p.useState(!1);return n.jsxs(c,{display:"flex",alignItems:"center",gap:1,minWidth:0,children:[n.jsx(T,{href:e,target:"_blank",rel:"noreferrer",sx:{fontFamily:"mono",fontSize:0,wordBreak:"break-all"},children:e}),n.jsx(z,{icon:s?R:$,"aria-label":"Copy the URL",size:"small",variant:"invisible",onClick:()=>{navigator.clipboard?.writeText(e).then(()=>{l(!0),setTimeout(()=>l(!1),1500)})}})]})}function E(e){if(e===void 0||e==="")return;const s=typeof e=="number"?new Date(e<1e12?e*1e3:e):new Date(e);return Number.isNaN(s.getTime())?void 0:s.toLocaleString()}const h="__DL_PYODIDE__",M=`def __dl_pyodide():
2
2
  import json, sys
3
3
  facts = {'python': sys.version.split()[0], 'packages': []}
4
4
  try:
@@ -1 +1 @@
1
- import{jZ as ne,j_ as se,j$ as ae,be as ie,v as O,k0 as oe,j as t,k1 as le,k2 as de,g2 as F,k3 as K,fy as ce,r as E,bp as T,eK as ue,I as ee,m as pe,cK as te,T as H,k as he,f as me,c as re,k4 as Z,k5 as xe,k6 as fe,fD as ye,k7 as J,g4 as ge,k8 as be,B as je,cN as Ce}from"../datalayer-app-main.js";import{F as Te,T as D,a as Y,g as A,b as Se,e as Q,d as L,f as Fe,h as ke,t as Be,i as ve,c as we,j as Ae,A as Ie,s as De,k as Le,o as G,l as We,m as Oe,n as v,u as Re,p as Ve,r as _e,q as Ee,v as $e}from"./index-BnowXurk.js";import{F as qe}from"./Flash-DTBPQ4yb.js";import{A as Ge,a as Pe}from"./ArrowUpIcon-BUCpIXDR.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./uniqueId-BVuTZY3F.js";import"./toNumber-B1wj8-wx.js";import"./_baseClone-ByJL1tkX.js";import"./merge-B_wcPK4Y.js";const Me=r=>{const e=ie.c(24);let n,s,a,l;e[0]!==r?({children:n,disabled:s,onChange:a,...l}=r,e[0]=r,e[1]=n,e[2]=s,e[3]=a,e[4]=l):(n=e[1],s=e[2],a=e[3],l=e[4]);let m;if(e[5]!==n){const y=O.Children.toArray(n).filter(Ne).map(Ue).flat();m=O.Children.toArray(y).filter(ze).map(Ke).filter(Boolean),e[5]=n,e[6]=m}else m=e[6];const u=m,[d,c]=oe(u);let x;e[7]!==d||e[8]!==c?(x=y=>{const{value:b,checked:j}=y.currentTarget;if(j){c([...d.current||[],b]);return}c((d.current||[]).filter(S=>S!==b))},e[7]=d,e[8]=c,e[9]=x):x=e[9];const i=x;let o;e[10]!==a||e[11]!==d||e[12]!==i?(o=y=>{a&&(i(y),a(d.current||[],y))},e[10]=a,e[11]=d,e[12]=i,e[13]=o):o=e[13];let h;e[14]!==s||e[15]!==o?(h={disabled:s,onChange:o},e[14]=s,e[15]=o,e[16]=h):h=e[16];let p;e[17]!==n||e[18]!==s||e[19]!==l?(p=t.jsx(le,{disabled:s,...l,children:n}),e[17]=n,e[18]=s,e[19]=l,e[20]=p):p=e[20];let f;return e[21]!==h||e[22]!==p?(f=t.jsx(de.Provider,{value:h,children:p}),e[21]=h,e[22]=p,e[23]=f):f=e[23],f};var X=Object.assign(Me,{Caption:ae,Label:se,Validation:ne});function Ne(r){return O.isValidElement(r)&&r.type===F}function Ue(r){return O.isValidElement(r)?r.props.children:[]}function ze(r){return O.isValidElement(r)&&r.type===K}function Ke(r){return O.isValidElement(r)&&(r.props.checked||r.props.defaultChecked)&&r.props.value}const He=({name:r="slider",id:e="slider",min:n=0,max:s=10,value:a=5,label:l="label",step:m=1,markers:u=!1,displayValue:d=!0,disabled:c=!1,orientation:x="horizontal",width:i="200px",onChange:o})=>{const{colorMode:h}=ce(),p=s<n?n:n+(s-n)/2,[f,y]=E.useState(p);E.useEffect(()=>{y(a??p)},[a,p]);const b=S=>{const g=Number(S.target.value);y(g),o(g)},j={width:i,...x==="vertical"?{transform:"rotate(-90deg)"}:{},colorScheme:h=="day"?"light":"dark",accentColor:"var(--fgColor-accent)"};return t.jsxs(T,{display:"flex",alignItems:"center",children:[t.jsx("input",{type:"range",id:e,name:r,min:n,max:s,value:f,step:m??"any",list:"slider-markers",style:j,onChange:b,disabled:c}),u&&m&&t.jsx("datalist",{id:"slider-markers",children:Array.from({length:Math.floor((s-n)/m)+1},(S,g)=>n+g*m).map(S=>t.jsx("option",{value:S},`slider-marker-${S}`))}),l&&t.jsx(F.Label,{htmlFor:e,sx:{ml:2},children:l}),d&&x==="horizontal"&&t.jsx(ue,{sx:{ml:2},children:f})]})};function Ye(r){return E.forwardRef(({fields:e,widgets:n,templates:s,...a},l)=>(e={...r?.fields,...e},n={...r?.widgets,...n},s={...r?.templates,...s,ButtonTemplates:{...r?.templates?.ButtonTemplates,...s?.ButtonTemplates}},t.jsx(Te,{...r,...a,fields:e,widgets:n,templates:s,ref:l})))}function Ze({uiSchema:r,registry:e,...n}){const{translateString:s}=e;return t.jsx(ee,{variant:"default",size:"small",icon:pe,"aria-label":s(D.AddItemButton),...n})}function Je(r){const{children:e,disabled:n,hasToolbar:s,hasMoveDown:a,hasMoveUp:l,hasRemove:m,index:u,onDropIndexClick:d,onReorderClick:c,readonly:x,uiSchema:i,registry:o}=r,{MoveDownButton:h,MoveUpButton:p,RemoveButton:f}=o.templates.ButtonTemplates,y={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold",minWidth:0};return t.jsxs(T,{sx:{display:"flex",width:"100%",flexFlow:"row wrap"},alignItems:"center",children:[t.jsx(T,{sx:{flexBasis:0,flexGrow:1,maxWidth:"100%"},style:{overflow:"auto"},children:t.jsx(T,{mb:2,p:2,sx:{borderWidth:1,borderStyle:"solid",borderColor:"border.default",borderRadius:2},children:e})}),s&&t.jsxs(T,{p:1,children:[(l||a)&&t.jsx(p,{style:y,disabled:n||x||!l,onClick:c(u,u-1),uiSchema:i,registry:o}),(l||a)&&t.jsx(h,{style:y,disabled:n||x||!a,onClick:c(u,u+1),uiSchema:i,registry:o}),m&&t.jsx(f,{style:y,disabled:n||x,onClick:d(u),uiSchema:i,registry:o})]})]})}function Qe(r){const{canAdd:e,disabled:n,idSchema:s,uiSchema:a,items:l,onAddClick:m,readonly:u,registry:d,required:c,schema:x,title:i}=r,o=Y(a),h=A("ArrayFieldDescriptionTemplate",d,o),p=A("ArrayFieldItemTemplate",d,o),f=A("ArrayFieldTitleTemplate",d,o),{ButtonTemplates:{AddButton:y}}=d.templates;return t.jsxs(T,{p:3,sx:{display:"flex",width:"100%",flexFlow:"row wrap",borderWidth:1,borderStyle:"solid",borderColor:"border.default",borderRadius:2},children:[t.jsx(f,{idSchema:s,title:o.title||i,schema:x,uiSchema:a,required:c,registry:d}),t.jsx(h,{idSchema:s,description:o.description||x.description,schema:x,uiSchema:a,registry:d}),t.jsxs(T,{sx:{display:"flex",width:"100%",flexFlow:"row wrap"},children:[l&&l.map(({key:b,...j})=>t.jsx(p,{...j},b)),e&&t.jsx(T,{sx:{display:"flex",width:"100%",flexFlow:"row wrap"},justifyContent:"flex-end",children:t.jsx(T,{sx:{flexBasis:0,flexGrow:1,maxWidth:"100%"},children:t.jsx(T,{mt:2,children:t.jsx(y,{className:"array-item-add",onClick:m,disabled:n||u,uiSchema:a,registry:d})})})})]},`array-item-list-${s.$id}`)]})}function Xe(r){const{id:e,placeholder:n,required:s,readonly:a,disabled:l,type:m,label:u,value:d,onChange:c,onBlur:x,onFocus:i,autofocus:o,options:h,schema:p,uiSchema:f,rawErrors:y=[],formContext:b,registry:j,hideLabel:S,hideError:g,...C}=r,w=Se(p,m,h),{step:I,min:R,max:V,...M}=w,$={...Array.isArray(p.examples)?{list:Q(e)}:void 0,...M,...I!==void 0?{step:I}:void 0,...R!==void 0?{min:R}:void 0,...V!==void 0?{max:V}:void 0},N=({target:{value:k}})=>c(k===""?h.emptyValue:k),U=({target:{value:k}})=>x(e,k),z=({target:{value:k}})=>i(e,k),{schemaUtils:q}=j,B=q.getDisplayLabel(p,f);return t.jsxs(t.Fragment,{children:[t.jsx(F.Label,{visuallyHidden:!B,htmlFor:e,children:u||p.title}),t.jsx(te,{id:e,name:e,placeholder:n,autoFocus:o,required:s,disabled:l||a,...$,value:d||d===0?d:"",validationStatus:y.length>0?"error":void 0,onChange:N,onBlur:U,onFocus:z,block:!0,...C,"aria-describedby":L(e,!!p.examples)}),Array.isArray(p.examples)&&t.jsx("datalist",{id:Q(e),children:p.examples.concat(p.default&&!p.examples.includes(p.default)?[p.default]:[]).map(k=>t.jsx("option",{value:k},k))})]})}function et(r){const{id:e,description:n}=r;return n?t.jsx(H,{id:e,as:"p",mt:1,children:n}):null}function tt({errors:r,registry:e}){const{translateString:n}=e;return t.jsx(T,{mb:3,sx:{borderWidth:1,borderStyle:"solid",borderColor:"border.default",borderRadius:2},children:t.jsxs(T,{p:3,children:[t.jsx(T,{as:"h3",sx:{fontSize:3,fontWeight:"semibold",m:0},children:n(D.ErrorsLabel)}),t.jsx(t.Fragment,{children:r.map((s,a)=>t.jsx(qe,{variant:"danger",sx:{marginTop:2},children:s.stack},a))})]})})}function P({color:r,title:e,icon:n,...s}){return r||(r="invisible"),t.jsx(ee,{variant:r,size:"small",icon:n,onClick:a=>a.preventDefault(),onSubmit:a=>a.preventDefault(),"aria-label":e,...s})}function rt(r){const{registry:{translateString:e}}=r;return t.jsx(P,{title:e(D.CopyButton),...r,icon:me})}function nt(r){const{registry:{translateString:e}}=r;return t.jsx(P,{title:e(D.MoveDownButton),...r,icon:Pe})}function st(r){const{registry:{translateString:e}}=r;return t.jsx(P,{title:e(D.MoveUpButton),...r,icon:Ge})}function at(r){const{iconType:e,...n}=r,{registry:{translateString:s}}=n;return t.jsx(P,{title:s(D.RemoveButton),...n,icon:he})}function it(r){const{errors:e=[],idSchema:n}=r;if(e.length===0)return null;const s=Fe(n);return t.jsx("div",{id:s,children:e.map((a,l)=>t.jsxs(H,{as:"p",mb:1,sx:{fontSize:"12px",display:"block",color:"danger.fg"},children:["•"," "+a]},l))})}function ot(r){const{idSchema:e,help:n}=r;if(!n)return null;const s=ke(e);return t.jsx(F.Caption,{id:s,children:n})}function lt(r){const{id:e,children:n,classNames:s,style:a,disabled:l,displayLabel:m,hidden:u,label:d,onDropPropertyClick:c,onKeyChange:x,readonly:i,required:o,rawErrors:h=[],errors:p,help:f,rawDescription:y,schema:b,uiSchema:j,registry:S}=r,g=Y(j),C=A("WrapIfAdditionalTemplate",S,g);return u?t.jsx("div",{style:{display:"none"},children:n}):t.jsx(C,{classNames:s,style:a,disabled:l,id:e,label:d,onDropPropertyClick:c,onKeyChange:x,readonly:i,required:o,schema:b,uiSchema:j,registry:S,children:t.jsxs(F,{required:o,children:[t.jsx(F.Label,{visuallyHidden:!0}),n,m&&y?t.jsx(F.Caption,{id:e,children:y}):null,p,f]})})}function dt(r){const{description:e,title:n,properties:s,required:a,disabled:l,readonly:m,uiSchema:u,idSchema:d,schema:c,formData:x,onAddClick:i,registry:o}=r,h=Y(u),p=A("TitleFieldTemplate",o,h),f=A("DescriptionFieldTemplate",o,h),{ButtonTemplates:{AddButton:y}}=o.templates;return t.jsxs(t.Fragment,{children:[(h.title||n)&&t.jsx(p,{id:Be(d),title:n,required:a,schema:c,uiSchema:u,registry:o}),(h.description||e)&&t.jsx(f,{id:ve(d),description:h.description||e,schema:c,uiSchema:u,registry:o}),t.jsxs(T,{sx:{display:"flex",width:"100%",flexDirection:"column",flexFlow:"row wrap"},style:{marginTop:"10px"},children:[s.map((b,j)=>b.hidden?b.content:t.jsx(T,{sx:{flexBasis:"100%",flexGrow:0,maxWidth:"100%"},mb:1,children:b.content},j)),we(c,u,x)&&t.jsx(T,{sx:{display:"flex",width:"100%",flexFlow:"row wrap"},justifyContent:"flex-end",children:t.jsx(T,{sx:{flexBasis:0,flexGrow:1,maxWidth:"100%"},children:t.jsx(y,{className:"object-property-expand",onClick:b=>{b.preventDefault(),i(c)()},disabled:l||m,uiSchema:u,registry:o})})})]})]})}function ct({uiSchema:r}){const{submitText:e,norender:n,props:s={}}=Ae(r);return n?null:t.jsx(T,{marginTop:2,children:t.jsx(re,{type:"submit",variant:"primary",...s,children:e})})}function ut({id:r,title:e}){return t.jsx(T,{id:r,my:2,children:t.jsx(T,{as:"h5",sx:{fontSize:1,fontWeight:"semibold",m:0,borderBottom:"1px solid",borderColor:"border.default",paddingBottom:1},children:e})})}function pt(r){const{children:e,classNames:n,style:s,disabled:a,id:l,label:m,onDropPropertyClick:u,onKeyChange:d,readonly:c,required:x,schema:i,uiSchema:o,registry:h}=r,{templates:p,translateString:f}=h,{RemoveButton:y}=p.ButtonTemplates,b=f(D.KeyLabel,[m]),j=Ie in i,S={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"};if(!j)return t.jsx("div",{className:n,style:s,children:e});const g=({target:C})=>d(C.value);return t.jsxs(T,{sx:{display:"flex",width:"100%",flexFlow:"row wrap"},alignItems:"center",className:n,style:s,children:[t.jsx(T,{pr:2,sx:{flexBasis:0,flexGrow:1,maxWidth:"100%"},children:t.jsxs(F,{id:`${l}-key`,required:x,children:[t.jsx(F.Label,{children:b}),t.jsx(te,{defaultValue:m,disabled:a||c,name:`${l}-key`,onBlur:c?void 0:g,type:"text",block:!0})]})}),t.jsx(T,{pr:2,sx:{flexBasis:0,flexGrow:1,maxWidth:"100%"},children:e}),t.jsx(T,{children:t.jsx(y,{iconType:"default",style:S,disabled:a||c,onClick:u(m),uiSchema:o,registry:h})})]},`${l}-key`)}function ht(){return{ArrayFieldItemTemplate:Je,ArrayFieldTemplate:Qe,BaseInputTemplate:Xe,ButtonTemplates:{AddButton:Ze,CopyButton:rt,MoveDownButton:nt,MoveUpButton:st,RemoveButton:at,SubmitButton:ct},DescriptionFieldTemplate:et,ErrorListTemplate:tt,FieldErrorTemplate:it,FieldHelpTemplate:ot,FieldTemplate:lt,ObjectFieldTemplate:dt,TitleFieldTemplate:ut,WrapIfAdditionalTemplate:pt}}function mt(r){const{schema:e,id:n,value:s,disabled:a,readonly:l,label:m,autofocus:u,onChange:d,onBlur:c,onFocus:x}=r,i=De(e),o=({target:{checked:f}})=>d(f),h=({target:{value:f}})=>c(n,f),p=({target:{value:f}})=>x(n,f);return t.jsxs(F,{id:n,children:[t.jsx(K,{checked:typeof s>"u"?!1:!!s,required:i,disabled:a||l,autoFocus:u,onChange:o,onBlur:h,onFocus:p,"aria-describedby":L(n)}),t.jsx(F.Label,{children:m||""})]})}function xt({schema:r,label:e,id:n,disabled:s,options:a,value:l,autofocus:m,readonly:u,required:d,onChange:c,onBlur:x,onFocus:i}){const{enumOptions:o,enumDisabled:h,inline:p,emptyValue:f}=a,y=Array.isArray(l)?l:[l],b=g=>({target:{checked:C}})=>{c(C?We(g,y,o):Oe(g,y,o))},j=({target:{value:g}})=>x(n,v(g,o,f)),S=({target:{value:g}})=>i(n,v(g,o,f));return t.jsxs(X,{required:d,children:[t.jsx(X.Label,{children:e||r.title}),Array.isArray(o)&&o.map((g,C)=>{const w=Le(g.value,y),I=Array.isArray(h)&&h.indexOf(g.value)!==-1;return t.jsxs(F,{id:G(n,C),children:[t.jsx(K,{checked:w,disabled:s||I||u,autoFocus:m&&C===0,onChange:b(C),onBlur:j,onFocus:S,"aria-describedby":L(n)}),t.jsx(F.Label,{children:g.label})]},G(n,C))})]})}function ft(r){const{options:e,registry:n}=r,s=A("BaseInputTemplate",n,e);return t.jsx(s,{type:"date",InputLabelProps:{shrink:!0},...r})}function yt(r){const{options:e,registry:n}=r,s=A("BaseInputTemplate",n,e),a=Re(r.value),l=m=>{r.onChange(Ve(m))};return t.jsx(s,{type:"datetime-local",...r,value:a,onChange:l})}function gt({id:r,schema:e,options:n,value:s,required:a,disabled:l,readonly:m,label:u,onChange:d,onBlur:c,onFocus:x}){const{enumOptions:i,enumDisabled:o,emptyValue:h}=n,p=({target:{value:b}})=>d(v(b,i,h)),f=({target:{value:b}})=>c(r,v(b,i,h)),y=({target:{value:b}})=>x(r,v(b,i,h));return t.jsxs(Z,{name:r,required:a,children:[t.jsx(Z.Label,{children:u||e.title}),t.jsx(t.Fragment,{children:Array.isArray(i)&&i.map((b,j)=>{const S=Array.isArray(o)&&o.indexOf(b.value)!==-1;return t.jsxs(F,{id:G(r,j),children:[t.jsx(xe,{value:String(j),onChange:p,onBlur:f,onFocus:y,"aria-describedby":L(r),disabled:l||S||m},j),t.jsx(F.Label,{children:b.label})]},G(r,j))})})]})}function bt(r){const{value:e,readonly:n,disabled:s,options:a,schema:l,onChange:m,label:u,id:d}=r,c={value:e,label:u,id:d,name:d,..._e(l)},x=i=>{m(i??a.emptyValue)};return t.jsxs(t.Fragment,{children:[t.jsx(F.Label,{htmlFor:d,children:u||l.title}),t.jsx(He,{disabled:s||n,onChange:x,...c,"aria-describedby":L(d)})]})}function jt({schema:r,id:e,options:n,label:s,required:a,disabled:l,placeholder:m,readonly:u,value:d,multiple:c,autofocus:x,onChange:i,onBlur:o,onFocus:h,rawErrors:p=[],registry:f,uiSchema:y,hideError:b,formContext:j,...S}){const{enumOptions:g,enumDisabled:C,emptyValue:w}=n,[I,R]=E.useState(!1);c=typeof c>"u"?!1:!!c;const V=c?[]:"",M=typeof d>"u"||c&&d.length<1||!c&&d===V,$=g?.map(({value:B,label:k},W)=>{const _=Array.isArray(C)&&C.indexOf(B)!==-1;return{text:k,id:W,disabled:_}}),N=({target:{value:B}})=>i(v(B,g,w)),U=({target:{value:B}})=>o(e,v(B,g,w)),z=({target:{value:B}})=>h(e,v(B,g,w)),q=Ee(d,g,c);return t.jsxs(F,{id:e,required:a,children:[t.jsx(F.Label,{visuallyHidden:!(s||r.title),htmlFor:e,children:s||r.title}),c&&Array.isArray(g)?t.jsx(fe,{placeholderText:(s||r.title)??"",renderAnchor:({children:B,"aria-labelledby":k,...W})=>t.jsx(re,{trailingAction:ye,"aria-labelledby":` ${k}`,...W,onClick:_=>{R(!I),_.preventDefault()},children:B||`Select ${s||r.title}`}),open:I,onOpenChange:R,items:$??[],selected:($??[]).filter((B,k)=>q?.includes(String(k))),onSelectedChange:B=>{i(v(B.map(k=>k.id),g,w))},onFilterChange:()=>null,overlayProps:{width:"small"}}):t.jsx(J,{name:e,value:M?V:q,disabled:l||u,autoFocus:x,placeholder:s||r.title,validationStatus:p.length>0?"error":void 0,onChange:N,onBlur:U,onFocus:z,defaultValue:void 0,...S,"aria-describedby":L(e),children:Array.isArray(g)&&g.map(({value:B,label:k},W)=>{const _=Array.isArray(C)&&C.indexOf(B)!==-1;return t.jsx(J.Option,{value:String(W),disabled:_,children:k},W)})})]})}function Ct({id:r,placeholder:e,value:n,label:s,disabled:a,autofocus:l,readonly:m,onBlur:u,onFocus:d,onChange:c,options:x,schema:i,uiSchema:o,required:h,rawErrors:p=[],registry:f}){const{schemaUtils:y}=f,b=y.getDisplayLabel(i,o)&&(!!s||!!i.title),j=({target:{value:C}})=>c(C===""?x.emptyValue:C),S=({target:{value:C}})=>u(r,C),g=({target:{value:C}})=>d(r,C);return t.jsxs(t.Fragment,{children:[t.jsx(F.Label,{visuallyHidden:!b,htmlFor:r,children:s||i.title}),t.jsx(ge,{id:r,name:r,value:n??"",placeholder:e,autoFocus:l,required:h,disabled:a||m,validationStatus:p.length>0?"error":void 0,onChange:j,onBlur:S,onFocus:g,block:!0,"aria-describedby":L(r)})]})}function Tt(){return{CheckboxWidget:mt,CheckboxesWidget:xt,DateWidget:ft,DateTimeWidget:yt,RadioWidget:gt,RangeWidget:bt,SelectWidget:jt,TextareaWidget:Ct}}function St(){return{templates:ht(),widgets:Tt()}}function Ft(){return Ye(St())}const kt=Ft();function Bt({id:r,value:e,label:n,disabled:s,readonly:a,onChange:l}){return t.jsxs(je,{display:"flex",flexDirection:"column",gap:1,children:[t.jsx(H,{as:"span",id:`${r}-label`,sx:{fontWeight:"semibold"},children:n}),t.jsx(Ce,{size:"small","aria-labelledby":`${r}-label`,checked:!!e,disabled:s||a,onClick:()=>l(!e)})]})}function vt({id:r,value:e,label:n,disabled:s,readonly:a,placeholder:l,onChange:m}){const u=Array.isArray(e)?e.map(String):[],[d,c]=E.useState(""),x=()=>{const i=d.trim();i&&!u.includes(i)&&m([...u,i]),c("")};return t.jsxs(F,{id:r,disabled:s||a,children:[t.jsx(F.Label,{children:n}),t.jsx(be,{block:!0,placeholder:l,tokens:u.map((i,o)=>({id:o,text:i})),value:d,onChange:i=>c(i.target.value.replace(",","")),onKeyDown:i=>{(i.key==="Enter"||i.key===",")&&(i.preventDefault(),x())},onBlur:x,onTokenRemove:i=>{m(u.filter((o,h)=>h!==i))}})]})}const wt={switch:Bt,tags:vt};function qt(r){return t.jsx(kt,{...r,widgets:wt,validator:$e})}export{qt as default};
1
+ import{j$ as ne,k0 as se,k1 as ae,be as ie,v as W,k2 as oe,j as t,k3 as le,k4 as de,fO as F,k5 as H,fz as ce,r as E,bp as T,eL as ue,I as ee,m as pe,cL as te,T as K,k as he,f as me,c as re,k6 as Y,k7 as xe,k8 as fe,fE as ye,k9 as J,fQ as ge,ka as be,B as je,cO as Ce}from"../datalayer-app-main.js";import{F as Te,T as D,a as Q,g as A,b as Se,e as X,d as L,f as Fe,h as ke,t as Be,i as ve,c as we,j as Ae,A as Ie,s as De,k as Le,o as G,l as Oe,m as We,n as v,u as Re,p as Ve,r as _e,q as Ee,v as $e}from"./index-DYt0uAs-.js";import{F as qe}from"./Flash-DdFxPtBI.js";import{A as Ge,a as Pe}from"./ArrowUpIcon-BUCpIXDR.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./uniqueId-BVuTZY3F.js";import"./toNumber-B1wj8-wx.js";import"./_baseClone-ByJL1tkX.js";import"./merge-B_wcPK4Y.js";const Me=r=>{const e=ie.c(24);let n,s,a,l;e[0]!==r?({children:n,disabled:s,onChange:a,...l}=r,e[0]=r,e[1]=n,e[2]=s,e[3]=a,e[4]=l):(n=e[1],s=e[2],a=e[3],l=e[4]);let m;if(e[5]!==n){const y=W.Children.toArray(n).filter(ze).map(Ne).flat();m=W.Children.toArray(y).filter(Ue).map(He).filter(Boolean),e[5]=n,e[6]=m}else m=e[6];const u=m,[d,c]=oe(u);let x;e[7]!==d||e[8]!==c?(x=y=>{const{value:b,checked:j}=y.currentTarget;if(j){c([...d.current||[],b]);return}c((d.current||[]).filter(S=>S!==b))},e[7]=d,e[8]=c,e[9]=x):x=e[9];const i=x;let o;e[10]!==a||e[11]!==d||e[12]!==i?(o=y=>{a&&(i(y),a(d.current||[],y))},e[10]=a,e[11]=d,e[12]=i,e[13]=o):o=e[13];let h;e[14]!==s||e[15]!==o?(h={disabled:s,onChange:o},e[14]=s,e[15]=o,e[16]=h):h=e[16];let p;e[17]!==n||e[18]!==s||e[19]!==l?(p=t.jsx(le,{disabled:s,...l,children:n}),e[17]=n,e[18]=s,e[19]=l,e[20]=p):p=e[20];let f;return e[21]!==h||e[22]!==p?(f=t.jsx(de.Provider,{value:h,children:p}),e[21]=h,e[22]=p,e[23]=f):f=e[23],f};var Z=Object.assign(Me,{Caption:ae,Label:se,Validation:ne});function ze(r){return W.isValidElement(r)&&r.type===F}function Ne(r){return W.isValidElement(r)?r.props.children:[]}function Ue(r){return W.isValidElement(r)&&r.type===H}function He(r){return W.isValidElement(r)&&(r.props.checked||r.props.defaultChecked)&&r.props.value}const Ke=({name:r="slider",id:e="slider",min:n=0,max:s=10,value:a=5,label:l="label",step:m=1,markers:u=!1,displayValue:d=!0,disabled:c=!1,orientation:x="horizontal",width:i="200px",onChange:o})=>{const{colorMode:h}=ce(),p=s<n?n:n+(s-n)/2,[f,y]=E.useState(p);E.useEffect(()=>{y(a??p)},[a,p]);const b=S=>{const g=Number(S.target.value);y(g),o(g)},j={width:i,...x==="vertical"?{transform:"rotate(-90deg)"}:{},colorScheme:h=="day"?"light":"dark",accentColor:"var(--fgColor-accent)"};return t.jsxs(T,{display:"flex",alignItems:"center",children:[t.jsx("input",{type:"range",id:e,name:r,min:n,max:s,value:f,step:m??"any",list:"slider-markers",style:j,onChange:b,disabled:c}),u&&m&&t.jsx("datalist",{id:"slider-markers",children:Array.from({length:Math.floor((s-n)/m)+1},(S,g)=>n+g*m).map(S=>t.jsx("option",{value:S},`slider-marker-${S}`))}),l&&t.jsx(F.Label,{htmlFor:e,sx:{ml:2},children:l}),d&&x==="horizontal"&&t.jsx(ue,{sx:{ml:2},children:f})]})};function Qe(r){return E.forwardRef(({fields:e,widgets:n,templates:s,...a},l)=>(e={...r?.fields,...e},n={...r?.widgets,...n},s={...r?.templates,...s,ButtonTemplates:{...r?.templates?.ButtonTemplates,...s?.ButtonTemplates}},t.jsx(Te,{...r,...a,fields:e,widgets:n,templates:s,ref:l})))}function Ye({uiSchema:r,registry:e,...n}){const{translateString:s}=e;return t.jsx(ee,{variant:"default",size:"small",icon:pe,"aria-label":s(D.AddItemButton),...n})}function Je(r){const{children:e,disabled:n,hasToolbar:s,hasMoveDown:a,hasMoveUp:l,hasRemove:m,index:u,onDropIndexClick:d,onReorderClick:c,readonly:x,uiSchema:i,registry:o}=r,{MoveDownButton:h,MoveUpButton:p,RemoveButton:f}=o.templates.ButtonTemplates,y={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold",minWidth:0};return t.jsxs(T,{sx:{display:"flex",width:"100%",flexFlow:"row wrap"},alignItems:"center",children:[t.jsx(T,{sx:{flexBasis:0,flexGrow:1,maxWidth:"100%"},style:{overflow:"auto"},children:t.jsx(T,{mb:2,p:2,sx:{borderWidth:1,borderStyle:"solid",borderColor:"border.default",borderRadius:2},children:e})}),s&&t.jsxs(T,{p:1,children:[(l||a)&&t.jsx(p,{style:y,disabled:n||x||!l,onClick:c(u,u-1),uiSchema:i,registry:o}),(l||a)&&t.jsx(h,{style:y,disabled:n||x||!a,onClick:c(u,u+1),uiSchema:i,registry:o}),m&&t.jsx(f,{style:y,disabled:n||x,onClick:d(u),uiSchema:i,registry:o})]})]})}function Xe(r){const{canAdd:e,disabled:n,idSchema:s,uiSchema:a,items:l,onAddClick:m,readonly:u,registry:d,required:c,schema:x,title:i}=r,o=Q(a),h=A("ArrayFieldDescriptionTemplate",d,o),p=A("ArrayFieldItemTemplate",d,o),f=A("ArrayFieldTitleTemplate",d,o),{ButtonTemplates:{AddButton:y}}=d.templates;return t.jsxs(T,{p:3,sx:{display:"flex",width:"100%",flexFlow:"row wrap",borderWidth:1,borderStyle:"solid",borderColor:"border.default",borderRadius:2},children:[t.jsx(f,{idSchema:s,title:o.title||i,schema:x,uiSchema:a,required:c,registry:d}),t.jsx(h,{idSchema:s,description:o.description||x.description,schema:x,uiSchema:a,registry:d}),t.jsxs(T,{sx:{display:"flex",width:"100%",flexFlow:"row wrap"},children:[l&&l.map(({key:b,...j})=>t.jsx(p,{...j},b)),e&&t.jsx(T,{sx:{display:"flex",width:"100%",flexFlow:"row wrap"},justifyContent:"flex-end",children:t.jsx(T,{sx:{flexBasis:0,flexGrow:1,maxWidth:"100%"},children:t.jsx(T,{mt:2,children:t.jsx(y,{className:"array-item-add",onClick:m,disabled:n||u,uiSchema:a,registry:d})})})})]},`array-item-list-${s.$id}`)]})}function Ze(r){const{id:e,placeholder:n,required:s,readonly:a,disabled:l,type:m,label:u,value:d,onChange:c,onBlur:x,onFocus:i,autofocus:o,options:h,schema:p,uiSchema:f,rawErrors:y=[],formContext:b,registry:j,hideLabel:S,hideError:g,...C}=r,w=Se(p,m,h),{step:I,min:R,max:V,...M}=w,$={...Array.isArray(p.examples)?{list:X(e)}:void 0,...M,...I!==void 0?{step:I}:void 0,...R!==void 0?{min:R}:void 0,...V!==void 0?{max:V}:void 0},z=({target:{value:k}})=>c(k===""?h.emptyValue:k),N=({target:{value:k}})=>x(e,k),U=({target:{value:k}})=>i(e,k),{schemaUtils:q}=j,B=q.getDisplayLabel(p,f);return t.jsxs(t.Fragment,{children:[t.jsx(F.Label,{visuallyHidden:!B,htmlFor:e,children:u||p.title}),t.jsx(te,{id:e,name:e,placeholder:n,autoFocus:o,required:s,disabled:l||a,...$,value:d||d===0?d:"",validationStatus:y.length>0?"error":void 0,onChange:z,onBlur:N,onFocus:U,block:!0,...C,"aria-describedby":L(e,!!p.examples)}),Array.isArray(p.examples)&&t.jsx("datalist",{id:X(e),children:p.examples.concat(p.default&&!p.examples.includes(p.default)?[p.default]:[]).map(k=>t.jsx("option",{value:k},k))})]})}function et(r){const{id:e,description:n}=r;return n?t.jsx(K,{id:e,as:"p",mt:1,children:n}):null}function tt({errors:r,registry:e}){const{translateString:n}=e;return t.jsx(T,{mb:3,sx:{borderWidth:1,borderStyle:"solid",borderColor:"border.default",borderRadius:2},children:t.jsxs(T,{p:3,children:[t.jsx(T,{as:"h3",sx:{fontSize:3,fontWeight:"semibold",m:0},children:n(D.ErrorsLabel)}),t.jsx(t.Fragment,{children:r.map((s,a)=>t.jsx(qe,{variant:"danger",sx:{marginTop:2},children:s.stack},a))})]})})}function P({color:r,title:e,icon:n,...s}){return r||(r="invisible"),t.jsx(ee,{variant:r,size:"small",icon:n,onClick:a=>a.preventDefault(),onSubmit:a=>a.preventDefault(),"aria-label":e,...s})}function rt(r){const{registry:{translateString:e}}=r;return t.jsx(P,{title:e(D.CopyButton),...r,icon:me})}function nt(r){const{registry:{translateString:e}}=r;return t.jsx(P,{title:e(D.MoveDownButton),...r,icon:Pe})}function st(r){const{registry:{translateString:e}}=r;return t.jsx(P,{title:e(D.MoveUpButton),...r,icon:Ge})}function at(r){const{iconType:e,...n}=r,{registry:{translateString:s}}=n;return t.jsx(P,{title:s(D.RemoveButton),...n,icon:he})}function it(r){const{errors:e=[],idSchema:n}=r;if(e.length===0)return null;const s=Fe(n);return t.jsx("div",{id:s,children:e.map((a,l)=>t.jsxs(K,{as:"p",mb:1,sx:{fontSize:"12px",display:"block",color:"danger.fg"},children:["•"," "+a]},l))})}function ot(r){const{idSchema:e,help:n}=r;if(!n)return null;const s=ke(e);return t.jsx(F.Caption,{id:s,children:n})}function lt(r){const{id:e,children:n,classNames:s,style:a,disabled:l,displayLabel:m,hidden:u,label:d,onDropPropertyClick:c,onKeyChange:x,readonly:i,required:o,rawErrors:h=[],errors:p,help:f,rawDescription:y,schema:b,uiSchema:j,registry:S}=r,g=Q(j),C=A("WrapIfAdditionalTemplate",S,g);return u?t.jsx("div",{style:{display:"none"},children:n}):t.jsx(C,{classNames:s,style:a,disabled:l,id:e,label:d,onDropPropertyClick:c,onKeyChange:x,readonly:i,required:o,schema:b,uiSchema:j,registry:S,children:t.jsxs(F,{required:o,children:[t.jsx(F.Label,{visuallyHidden:!0}),n,m&&y?t.jsx(F.Caption,{id:e,children:y}):null,p,f]})})}function dt(r){const{description:e,title:n,properties:s,required:a,disabled:l,readonly:m,uiSchema:u,idSchema:d,schema:c,formData:x,onAddClick:i,registry:o}=r,h=Q(u),p=A("TitleFieldTemplate",o,h),f=A("DescriptionFieldTemplate",o,h),{ButtonTemplates:{AddButton:y}}=o.templates;return t.jsxs(t.Fragment,{children:[(h.title||n)&&t.jsx(p,{id:Be(d),title:n,required:a,schema:c,uiSchema:u,registry:o}),(h.description||e)&&t.jsx(f,{id:ve(d),description:h.description||e,schema:c,uiSchema:u,registry:o}),t.jsxs(T,{sx:{display:"flex",width:"100%",flexDirection:"column",flexFlow:"row wrap"},style:{marginTop:"10px"},children:[s.map((b,j)=>b.hidden?b.content:t.jsx(T,{sx:{flexBasis:"100%",flexGrow:0,maxWidth:"100%"},mb:1,children:b.content},j)),we(c,u,x)&&t.jsx(T,{sx:{display:"flex",width:"100%",flexFlow:"row wrap"},justifyContent:"flex-end",children:t.jsx(T,{sx:{flexBasis:0,flexGrow:1,maxWidth:"100%"},children:t.jsx(y,{className:"object-property-expand",onClick:b=>{b.preventDefault(),i(c)()},disabled:l||m,uiSchema:u,registry:o})})})]})]})}function ct({uiSchema:r}){const{submitText:e,norender:n,props:s={}}=Ae(r);return n?null:t.jsx(T,{marginTop:2,children:t.jsx(re,{type:"submit",variant:"primary",...s,children:e})})}function ut({id:r,title:e}){return t.jsx(T,{id:r,my:2,children:t.jsx(T,{as:"h5",sx:{fontSize:1,fontWeight:"semibold",m:0,borderBottom:"1px solid",borderColor:"border.default",paddingBottom:1},children:e})})}function pt(r){const{children:e,classNames:n,style:s,disabled:a,id:l,label:m,onDropPropertyClick:u,onKeyChange:d,readonly:c,required:x,schema:i,uiSchema:o,registry:h}=r,{templates:p,translateString:f}=h,{RemoveButton:y}=p.ButtonTemplates,b=f(D.KeyLabel,[m]),j=Ie in i,S={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"};if(!j)return t.jsx("div",{className:n,style:s,children:e});const g=({target:C})=>d(C.value);return t.jsxs(T,{sx:{display:"flex",width:"100%",flexFlow:"row wrap"},alignItems:"center",className:n,style:s,children:[t.jsx(T,{pr:2,sx:{flexBasis:0,flexGrow:1,maxWidth:"100%"},children:t.jsxs(F,{id:`${l}-key`,required:x,children:[t.jsx(F.Label,{children:b}),t.jsx(te,{defaultValue:m,disabled:a||c,name:`${l}-key`,onBlur:c?void 0:g,type:"text",block:!0})]})}),t.jsx(T,{pr:2,sx:{flexBasis:0,flexGrow:1,maxWidth:"100%"},children:e}),t.jsx(T,{children:t.jsx(y,{iconType:"default",style:S,disabled:a||c,onClick:u(m),uiSchema:o,registry:h})})]},`${l}-key`)}function ht(){return{ArrayFieldItemTemplate:Je,ArrayFieldTemplate:Xe,BaseInputTemplate:Ze,ButtonTemplates:{AddButton:Ye,CopyButton:rt,MoveDownButton:nt,MoveUpButton:st,RemoveButton:at,SubmitButton:ct},DescriptionFieldTemplate:et,ErrorListTemplate:tt,FieldErrorTemplate:it,FieldHelpTemplate:ot,FieldTemplate:lt,ObjectFieldTemplate:dt,TitleFieldTemplate:ut,WrapIfAdditionalTemplate:pt}}function mt(r){const{schema:e,id:n,value:s,disabled:a,readonly:l,label:m,autofocus:u,onChange:d,onBlur:c,onFocus:x}=r,i=De(e),o=({target:{checked:f}})=>d(f),h=({target:{value:f}})=>c(n,f),p=({target:{value:f}})=>x(n,f);return t.jsxs(F,{id:n,children:[t.jsx(H,{checked:typeof s>"u"?!1:!!s,required:i,disabled:a||l,autoFocus:u,onChange:o,onBlur:h,onFocus:p,"aria-describedby":L(n)}),t.jsx(F.Label,{children:m||""})]})}function xt({schema:r,label:e,id:n,disabled:s,options:a,value:l,autofocus:m,readonly:u,required:d,onChange:c,onBlur:x,onFocus:i}){const{enumOptions:o,enumDisabled:h,inline:p,emptyValue:f}=a,y=Array.isArray(l)?l:[l],b=g=>({target:{checked:C}})=>{c(C?Oe(g,y,o):We(g,y,o))},j=({target:{value:g}})=>x(n,v(g,o,f)),S=({target:{value:g}})=>i(n,v(g,o,f));return t.jsxs(Z,{required:d,children:[t.jsx(Z.Label,{children:e||r.title}),Array.isArray(o)&&o.map((g,C)=>{const w=Le(g.value,y),I=Array.isArray(h)&&h.indexOf(g.value)!==-1;return t.jsxs(F,{id:G(n,C),children:[t.jsx(H,{checked:w,disabled:s||I||u,autoFocus:m&&C===0,onChange:b(C),onBlur:j,onFocus:S,"aria-describedby":L(n)}),t.jsx(F.Label,{children:g.label})]},G(n,C))})]})}function ft(r){const{options:e,registry:n}=r,s=A("BaseInputTemplate",n,e);return t.jsx(s,{type:"date",InputLabelProps:{shrink:!0},...r})}function yt(r){const{options:e,registry:n}=r,s=A("BaseInputTemplate",n,e),a=Re(r.value),l=m=>{r.onChange(Ve(m))};return t.jsx(s,{type:"datetime-local",...r,value:a,onChange:l})}function gt({id:r,schema:e,options:n,value:s,required:a,disabled:l,readonly:m,label:u,onChange:d,onBlur:c,onFocus:x}){const{enumOptions:i,enumDisabled:o,emptyValue:h}=n,p=({target:{value:b}})=>d(v(b,i,h)),f=({target:{value:b}})=>c(r,v(b,i,h)),y=({target:{value:b}})=>x(r,v(b,i,h));return t.jsxs(Y,{name:r,required:a,children:[t.jsx(Y.Label,{children:u||e.title}),t.jsx(t.Fragment,{children:Array.isArray(i)&&i.map((b,j)=>{const S=Array.isArray(o)&&o.indexOf(b.value)!==-1;return t.jsxs(F,{id:G(r,j),children:[t.jsx(xe,{value:String(j),onChange:p,onBlur:f,onFocus:y,"aria-describedby":L(r),disabled:l||S||m},j),t.jsx(F.Label,{children:b.label})]},G(r,j))})})]})}function bt(r){const{value:e,readonly:n,disabled:s,options:a,schema:l,onChange:m,label:u,id:d}=r,c={value:e,label:u,id:d,name:d,..._e(l)},x=i=>{m(i??a.emptyValue)};return t.jsxs(t.Fragment,{children:[t.jsx(F.Label,{htmlFor:d,children:u||l.title}),t.jsx(Ke,{disabled:s||n,onChange:x,...c,"aria-describedby":L(d)})]})}function jt({schema:r,id:e,options:n,label:s,required:a,disabled:l,placeholder:m,readonly:u,value:d,multiple:c,autofocus:x,onChange:i,onBlur:o,onFocus:h,rawErrors:p=[],registry:f,uiSchema:y,hideError:b,formContext:j,...S}){const{enumOptions:g,enumDisabled:C,emptyValue:w}=n,[I,R]=E.useState(!1);c=typeof c>"u"?!1:!!c;const V=c?[]:"",M=typeof d>"u"||c&&d.length<1||!c&&d===V,$=g?.map(({value:B,label:k},O)=>{const _=Array.isArray(C)&&C.indexOf(B)!==-1;return{text:k,id:O,disabled:_}}),z=({target:{value:B}})=>i(v(B,g,w)),N=({target:{value:B}})=>o(e,v(B,g,w)),U=({target:{value:B}})=>h(e,v(B,g,w)),q=Ee(d,g,c);return t.jsxs(F,{id:e,required:a,children:[t.jsx(F.Label,{visuallyHidden:!(s||r.title),htmlFor:e,children:s||r.title}),c&&Array.isArray(g)?t.jsx(fe,{placeholderText:(s||r.title)??"",renderAnchor:({children:B,"aria-labelledby":k,...O})=>t.jsx(re,{trailingAction:ye,"aria-labelledby":` ${k}`,...O,onClick:_=>{R(!I),_.preventDefault()},children:B||`Select ${s||r.title}`}),open:I,onOpenChange:R,items:$??[],selected:($??[]).filter((B,k)=>q?.includes(String(k))),onSelectedChange:B=>{i(v(B.map(k=>k.id),g,w))},onFilterChange:()=>null,overlayProps:{width:"small"}}):t.jsx(J,{name:e,value:M?V:q,disabled:l||u,autoFocus:x,placeholder:s||r.title,validationStatus:p.length>0?"error":void 0,onChange:z,onBlur:N,onFocus:U,defaultValue:void 0,...S,"aria-describedby":L(e),children:Array.isArray(g)&&g.map(({value:B,label:k},O)=>{const _=Array.isArray(C)&&C.indexOf(B)!==-1;return t.jsx(J.Option,{value:String(O),disabled:_,children:k},O)})})]})}function Ct({id:r,placeholder:e,value:n,label:s,disabled:a,autofocus:l,readonly:m,onBlur:u,onFocus:d,onChange:c,options:x,schema:i,uiSchema:o,required:h,rawErrors:p=[],registry:f}){const{schemaUtils:y}=f,b=y.getDisplayLabel(i,o)&&(!!s||!!i.title),j=({target:{value:C}})=>c(C===""?x.emptyValue:C),S=({target:{value:C}})=>u(r,C),g=({target:{value:C}})=>d(r,C);return t.jsxs(t.Fragment,{children:[t.jsx(F.Label,{visuallyHidden:!b,htmlFor:r,children:s||i.title}),t.jsx(ge,{id:r,name:r,value:n??"",placeholder:e,autoFocus:l,required:h,disabled:a||m,validationStatus:p.length>0?"error":void 0,onChange:j,onBlur:S,onFocus:g,block:!0,"aria-describedby":L(r)})]})}function Tt(){return{CheckboxWidget:mt,CheckboxesWidget:xt,DateWidget:ft,DateTimeWidget:yt,RadioWidget:gt,RangeWidget:bt,SelectWidget:jt,TextareaWidget:Ct}}function St(){return{templates:ht(),widgets:Tt()}}function Ft(){return Qe(St())}const kt=Ft();function Bt({id:r,value:e,label:n,disabled:s,readonly:a,onChange:l}){return t.jsxs(je,{display:"flex",flexDirection:"column",gap:1,children:[t.jsx(K,{as:"span",id:`${r}-label`,sx:{fontWeight:"semibold"},children:n}),t.jsx(Ce,{size:"small","aria-labelledby":`${r}-label`,checked:!!e,disabled:s||a,onClick:()=>l(!e)})]})}function vt({id:r,value:e,label:n,disabled:s,readonly:a,placeholder:l,onChange:m}){const u=Array.isArray(e)?e.map(String):[],[d,c]=E.useState(""),x=()=>{const i=d.trim();i&&!u.includes(i)&&m([...u,i]),c("")};return t.jsxs(F,{id:r,disabled:s||a,children:[t.jsx(F.Label,{children:n}),t.jsx(be,{block:!0,placeholder:l,tokens:u.map((i,o)=>({id:o,text:i})),value:d,onChange:i=>c(i.target.value.replace(",","")),onKeyDown:i=>{(i.key==="Enter"||i.key===",")&&(i.preventDefault(),x())},onBlur:x,onTokenRemove:i=>{m(u.filter((o,h)=>h!==i))}})]})}const wt={switch:Bt,tags:vt};function qt(r){return t.jsx(kt,{...r,widgets:wt,validator:$e})}export{qt as default};
@@ -1 +1 @@
1
- import{r as s,j as e,dv as B,dw as C,bd as L,B as v,T as A,I as D,dx as H}from"../datalayer-app-main.js";function V({item:l,size:a="medium",showLabel:m=!1}){const{ariaLabel:g,title:d,icon:i,label:t,isActive:r,onClick:b,disabled:x}=l;let c=null;if(i)if(s.isValidElement(i))c=i;else{const j=i;c=e.jsx(j,{size:16})}else t&&(c=e.jsx("span",{style:{fontSize:12,fontWeight:600,lineHeight:1},children:t}));const y=a==="small"?28:32,u=m&&!!g,[o,w]=s.useState(!1),z=o&&!x,S=e.jsxs("button",{type:"button","aria-label":g,"aria-disabled":x||void 0,onMouseDown:j=>j.preventDefault(),onClick:x?void 0:b,style:{display:"inline-flex",alignItems:"center",justifyContent:u?"flex-start":"center",gap:u?6:0,width:u?void 0:y,minWidth:y,height:y,padding:u?"0 8px":0,margin:0,border:"none",borderRadius:6,cursor:x?"not-allowed":"pointer",background:z?"var(--bgColor-neutral-muted, rgba(175,184,193,0.2))":r?"var(--bgColor-accent-muted, rgba(9,105,218,0.1))":"transparent",color:z?"var(--fgColor-default, #1f2328)":r?"var(--fgColor-accent, #0969da)":"var(--fgColor-muted, #656d76)",opacity:x?.5:1,lineHeight:1,fontSize:a==="small"?12:14,fontFamily:"inherit",whiteSpace:"nowrap"},onMouseEnter:()=>w(!0),onMouseLeave:()=>w(!1),children:[c,u&&e.jsx("span",{children:g})]});return d?e.jsx(B,{text:d,direction:"s",children:S}):S}function F(l){if(!l)return null;if(s.isValidElement(l))return l;const a=l;return e.jsx(a,{size:16})}function $(l){return l.some(a=>!!a.icon)}function G({item:l,size:a="medium"}){const{ariaLabel:m,icon:g,label:d,minWidth:i,options:t,disabled:r}=l,[b,x]=s.useState(!1),c=s.useMemo(()=>!d&&t.some(o=>o.isActive),[d,t]),y=s.useMemo(()=>$(t),[t]),u=a==="small"?28:32;return e.jsxs(C,{open:b,onOpenChange:x,children:[e.jsx(C.Anchor,{children:e.jsxs("button",{type:"button","aria-label":m,title:m,disabled:r,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:4,minWidth:u,height:u,padding:d?"0 8px":0,margin:0,border:"none",borderRadius:6,cursor:r?"not-allowed":"pointer",background:c||b?"var(--bgColor-neutral-muted, rgba(175,184,193,0.2))":"transparent",color:c||b?"var(--fgColor-default, #1f2328)":"var(--fgColor-muted, #656d76)",opacity:r?.5:1,fontSize:a==="small"?12:14,fontWeight:"normal",fontFamily:"inherit",lineHeight:1},onMouseEnter:o=>{r||(o.currentTarget.style.background="var(--bgColor-neutral-muted, rgba(175,184,193,0.2))",o.currentTarget.style.color="var(--fgColor-default, #1f2328)")},onMouseLeave:o=>{o.currentTarget.style.background=c||b?"var(--bgColor-neutral-muted, rgba(175,184,193,0.2))":"transparent",o.currentTarget.style.color=c||b?"var(--fgColor-default, #1f2328)":"var(--fgColor-muted, #656d76)"},children:[F(g),d&&e.jsx("span",{style:{display:"inline-block",minWidth:i||void 0,textAlign:"left"},children:d})]})}),e.jsx(C.Overlay,{width:"auto",children:e.jsx(L,{children:t.map(o=>e.jsxs(L.Item,{onSelect:o.onClick,disabled:o.disabled,active:o.isActive,children:[y&&e.jsx(L.LeadingVisual,{children:o.icon?F(o.icon):e.jsx(v,{sx:{width:16}})}),e.jsxs(v,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",gap:3},children:[e.jsx(A,{children:o.label}),o.shortcut&&e.jsx(A,{sx:{color:"fg.subtle",fontSize:0,fontFamily:"mono"},children:o.shortcut})]})]},o.key))})})]})}function _({orientation:l="vertical"}){return e.jsx(v,{sx:{...l==="vertical"?{width:"1px",height:"20px",mx:1}:{height:"1px",width:"100%",my:1},bg:"border.muted",flexShrink:0}})}function O({items:l,disabled:a,size:m="medium",showLabel:g=!1,direction:d="row"}){const i=[...l].filter(t=>!t.hidden).sort((t,r)=>(t.order??100)-(r.order??100));return e.jsx(e.Fragment,{children:i.map(t=>{const r=a||t.disabled;switch(t.type){case"button":return e.jsx(s.Fragment,{children:e.jsx(V,{item:{...t,disabled:r},size:m,showLabel:g})},t.key);case"dropdown":return e.jsx(s.Fragment,{children:e.jsx(G,{item:{...t,disabled:r},size:m})},t.key);case"divider":return e.jsx(s.Fragment,{children:e.jsx(_,{orientation:d==="column"?"horizontal":"vertical"})},t.key);case"spacer":return e.jsx(v,{sx:{flex:"1 1 auto",minWidth:8}},t.key);case"custom":return e.jsx(s.Fragment,{children:t.render()},t.key);default:return null}})})}const I=2,q=32;function N({items:l,extraItems:a,className:m,disabled:g,ariaLabel:d="Editor toolbar",overflow:i=!0}){const t=s.useMemo(()=>{if(!a?.length)return l;const n=new Map(a.map(h=>[h.key,h]));return[...l.map(h=>{const R=n.get(h.key);return R?(n.delete(h.key),{...h,...R}):h}),...a.filter(h=>n.has(h.key))]},[l,a]),r=s.useMemo(()=>[...t].filter(n=>!n.hidden).sort((n,f)=>(n.order??100)-(f.order??100)),[t]),b=s.useRef(null),x=s.useRef(null),c=s.useRef(new Map),[y,u]=s.useState(r.length),o=s.useMemo(()=>r.map(n=>n.key).join("\0"),[r]),w=s.useCallback(()=>{const n=b.current,f=x.current;if(!n||!f)return;r.forEach(p=>{const E=f.querySelector(`[data-toolbar-key="${CSS.escape(p.key)}"]`);E&&c.current.set(p.key,E.getBoundingClientRect().width)});const h=getComputedStyle(n),R=n.parentElement,M=Math.max(n.clientWidth,R?.clientWidth??0)-parseFloat(h.paddingLeft||"0")-parseFloat(h.paddingRight||"0");if(M<=0)return;const T=r.map(p=>p.type==="spacer"?0:c.current.get(p.key)??0);let W=0,k=0;for(let p=0;p<T.length;p+=1){const E=W+T[p]+(p?I:0);if(E>M)break;W=E,k+=1}if(k<T.length)for(;k>0&&W+I+q>M;)W-=T[k-1]+(k>1?I:0),k-=1;u(k)},[r]);s.useLayoutEffect(()=>{if(!i){u(r.length);return}u(r.length)},[o,i,r.length]),s.useLayoutEffect(()=>{if(!i)return;w();const n=b.current;if(!n||typeof ResizeObserver>"u")return;const f=new ResizeObserver(()=>w());return f.observe(n),n.parentElement&&f.observe(n.parentElement),()=>f.disconnect()},[w,i]);const z=i?r.slice(0,y):r,S=i?r.slice(y):[],j=S.filter((n,f)=>n.type!=="divider"||f>0&&f<S.length-1);return e.jsxs(v,{ref:b,className:m,role:"toolbar","aria-label":d,sx:{display:"flex",alignItems:"center",flexWrap:"nowrap",overflow:"hidden",width:"100%",boxSizing:"border-box",minWidth:0,gap:`${I}px`,px:2,py:1,bg:"canvas.default",borderBottom:"1px solid",borderColor:"border.default",position:"sticky",top:0,zIndex:1},children:[e.jsx(v,{ref:x,sx:{display:"flex",alignItems:"center",flexWrap:"nowrap",gap:`${I}px`,minWidth:0,flex:"1 1 auto","& > *":{flexShrink:0}},children:z.map(n=>e.jsx(v,{"data-toolbar-key":n.key,sx:{display:"inline-flex",alignItems:"center",flex:n.type==="spacer"?"1 1 auto":"0 0 auto",minWidth:0},children:e.jsx(O,{items:[n],disabled:g,size:"medium"})},n.key))}),j.length>0&&e.jsxs(C,{children:[e.jsx(C.Anchor,{children:e.jsx(D,{icon:H,"aria-label":j.length===1?"1 more toolbar item":`${j.length} more toolbar items`,variant:"invisible",size:"small"})}),e.jsx(C.Overlay,{width:"auto",children:e.jsx(v,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:1,p:2},children:e.jsx(O,{items:j,disabled:g,size:"medium",showLabel:!0,direction:"column"})})})]})]})}export{N as T,O as a};
1
+ import{r as s,j as e,dw as B,dx as C,bd as L,B as v,T as A,I as D,dy as H}from"../datalayer-app-main.js";function V({item:l,size:a="medium",showLabel:m=!1}){const{ariaLabel:g,title:d,icon:i,label:t,isActive:r,onClick:b,disabled:x}=l;let c=null;if(i)if(s.isValidElement(i))c=i;else{const j=i;c=e.jsx(j,{size:16})}else t&&(c=e.jsx("span",{style:{fontSize:12,fontWeight:600,lineHeight:1},children:t}));const y=a==="small"?28:32,u=m&&!!g,[o,w]=s.useState(!1),z=o&&!x,S=e.jsxs("button",{type:"button","aria-label":g,"aria-disabled":x||void 0,onMouseDown:j=>j.preventDefault(),onClick:x?void 0:b,style:{display:"inline-flex",alignItems:"center",justifyContent:u?"flex-start":"center",gap:u?6:0,width:u?void 0:y,minWidth:y,height:y,padding:u?"0 8px":0,margin:0,border:"none",borderRadius:6,cursor:x?"not-allowed":"pointer",background:z?"var(--bgColor-neutral-muted, rgba(175,184,193,0.2))":r?"var(--bgColor-accent-muted, rgba(9,105,218,0.1))":"transparent",color:z?"var(--fgColor-default, #1f2328)":r?"var(--fgColor-accent, #0969da)":"var(--fgColor-muted, #656d76)",opacity:x?.5:1,lineHeight:1,fontSize:a==="small"?12:14,fontFamily:"inherit",whiteSpace:"nowrap"},onMouseEnter:()=>w(!0),onMouseLeave:()=>w(!1),children:[c,u&&e.jsx("span",{children:g})]});return d?e.jsx(B,{text:d,direction:"s",children:S}):S}function F(l){if(!l)return null;if(s.isValidElement(l))return l;const a=l;return e.jsx(a,{size:16})}function $(l){return l.some(a=>!!a.icon)}function G({item:l,size:a="medium"}){const{ariaLabel:m,icon:g,label:d,minWidth:i,options:t,disabled:r}=l,[b,x]=s.useState(!1),c=s.useMemo(()=>!d&&t.some(o=>o.isActive),[d,t]),y=s.useMemo(()=>$(t),[t]),u=a==="small"?28:32;return e.jsxs(C,{open:b,onOpenChange:x,children:[e.jsx(C.Anchor,{children:e.jsxs("button",{type:"button","aria-label":m,title:m,disabled:r,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:4,minWidth:u,height:u,padding:d?"0 8px":0,margin:0,border:"none",borderRadius:6,cursor:r?"not-allowed":"pointer",background:c||b?"var(--bgColor-neutral-muted, rgba(175,184,193,0.2))":"transparent",color:c||b?"var(--fgColor-default, #1f2328)":"var(--fgColor-muted, #656d76)",opacity:r?.5:1,fontSize:a==="small"?12:14,fontWeight:"normal",fontFamily:"inherit",lineHeight:1},onMouseEnter:o=>{r||(o.currentTarget.style.background="var(--bgColor-neutral-muted, rgba(175,184,193,0.2))",o.currentTarget.style.color="var(--fgColor-default, #1f2328)")},onMouseLeave:o=>{o.currentTarget.style.background=c||b?"var(--bgColor-neutral-muted, rgba(175,184,193,0.2))":"transparent",o.currentTarget.style.color=c||b?"var(--fgColor-default, #1f2328)":"var(--fgColor-muted, #656d76)"},children:[F(g),d&&e.jsx("span",{style:{display:"inline-block",minWidth:i||void 0,textAlign:"left"},children:d})]})}),e.jsx(C.Overlay,{width:"auto",children:e.jsx(L,{children:t.map(o=>e.jsxs(L.Item,{onSelect:o.onClick,disabled:o.disabled,active:o.isActive,children:[y&&e.jsx(L.LeadingVisual,{children:o.icon?F(o.icon):e.jsx(v,{sx:{width:16}})}),e.jsxs(v,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",gap:3},children:[e.jsx(A,{children:o.label}),o.shortcut&&e.jsx(A,{sx:{color:"fg.subtle",fontSize:0,fontFamily:"mono"},children:o.shortcut})]})]},o.key))})})]})}function _({orientation:l="vertical"}){return e.jsx(v,{sx:{...l==="vertical"?{width:"1px",height:"20px",mx:1}:{height:"1px",width:"100%",my:1},bg:"border.muted",flexShrink:0}})}function O({items:l,disabled:a,size:m="medium",showLabel:g=!1,direction:d="row"}){const i=[...l].filter(t=>!t.hidden).sort((t,r)=>(t.order??100)-(r.order??100));return e.jsx(e.Fragment,{children:i.map(t=>{const r=a||t.disabled;switch(t.type){case"button":return e.jsx(s.Fragment,{children:e.jsx(V,{item:{...t,disabled:r},size:m,showLabel:g})},t.key);case"dropdown":return e.jsx(s.Fragment,{children:e.jsx(G,{item:{...t,disabled:r},size:m})},t.key);case"divider":return e.jsx(s.Fragment,{children:e.jsx(_,{orientation:d==="column"?"horizontal":"vertical"})},t.key);case"spacer":return e.jsx(v,{sx:{flex:"1 1 auto",minWidth:8}},t.key);case"custom":return e.jsx(s.Fragment,{children:t.render()},t.key);default:return null}})})}const I=2,q=32;function N({items:l,extraItems:a,className:m,disabled:g,ariaLabel:d="Editor toolbar",overflow:i=!0}){const t=s.useMemo(()=>{if(!a?.length)return l;const n=new Map(a.map(h=>[h.key,h]));return[...l.map(h=>{const R=n.get(h.key);return R?(n.delete(h.key),{...h,...R}):h}),...a.filter(h=>n.has(h.key))]},[l,a]),r=s.useMemo(()=>[...t].filter(n=>!n.hidden).sort((n,f)=>(n.order??100)-(f.order??100)),[t]),b=s.useRef(null),x=s.useRef(null),c=s.useRef(new Map),[y,u]=s.useState(r.length),o=s.useMemo(()=>r.map(n=>n.key).join("\0"),[r]),w=s.useCallback(()=>{const n=b.current,f=x.current;if(!n||!f)return;r.forEach(p=>{const E=f.querySelector(`[data-toolbar-key="${CSS.escape(p.key)}"]`);E&&c.current.set(p.key,E.getBoundingClientRect().width)});const h=getComputedStyle(n),R=n.parentElement,M=Math.max(n.clientWidth,R?.clientWidth??0)-parseFloat(h.paddingLeft||"0")-parseFloat(h.paddingRight||"0");if(M<=0)return;const T=r.map(p=>p.type==="spacer"?0:c.current.get(p.key)??0);let W=0,k=0;for(let p=0;p<T.length;p+=1){const E=W+T[p]+(p?I:0);if(E>M)break;W=E,k+=1}if(k<T.length)for(;k>0&&W+I+q>M;)W-=T[k-1]+(k>1?I:0),k-=1;u(k)},[r]);s.useLayoutEffect(()=>{if(!i){u(r.length);return}u(r.length)},[o,i,r.length]),s.useLayoutEffect(()=>{if(!i)return;w();const n=b.current;if(!n||typeof ResizeObserver>"u")return;const f=new ResizeObserver(()=>w());return f.observe(n),n.parentElement&&f.observe(n.parentElement),()=>f.disconnect()},[w,i]);const z=i?r.slice(0,y):r,S=i?r.slice(y):[],j=S.filter((n,f)=>n.type!=="divider"||f>0&&f<S.length-1);return e.jsxs(v,{ref:b,className:m,role:"toolbar","aria-label":d,sx:{display:"flex",alignItems:"center",flexWrap:"nowrap",overflow:"hidden",width:"100%",boxSizing:"border-box",minWidth:0,gap:`${I}px`,px:2,py:1,bg:"canvas.default",borderBottom:"1px solid",borderColor:"border.default",position:"sticky",top:0,zIndex:1},children:[e.jsx(v,{ref:x,sx:{display:"flex",alignItems:"center",flexWrap:"nowrap",gap:`${I}px`,minWidth:0,flex:"1 1 auto","& > *":{flexShrink:0}},children:z.map(n=>e.jsx(v,{"data-toolbar-key":n.key,sx:{display:"inline-flex",alignItems:"center",flex:n.type==="spacer"?"1 1 auto":"0 0 auto",minWidth:0},children:e.jsx(O,{items:[n],disabled:g,size:"medium"})},n.key))}),j.length>0&&e.jsxs(C,{children:[e.jsx(C.Anchor,{children:e.jsx(D,{icon:H,"aria-label":j.length===1?"1 more toolbar item":`${j.length} more toolbar items`,variant:"invisible",size:"small"})}),e.jsx(C.Overlay,{width:"auto",children:e.jsx(v,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:1,p:2},children:e.jsx(O,{items:j,disabled:g,size:"medium",showLabel:!0,direction:"column"})})})]})]})}export{N as T,O as a};
@@ -1 +1 @@
1
- import{G as o,r as t}from"../datalayer-app-main.js";import{h as e,i}from"./JupyterLexicalExtension-CSMNnVr9.js";import"./NotebookSkeleton-BTs2pK7B.js";import"./Avatar-VyZWLCFE.js";import"./url-DEeTWrO-.js";import"./isSymbol-BLtK9CV6.js";import"./toNumber-B1wj8-wx.js";import"./VideoIcon-BjP_LDa4.js";import"./LinkIcon-DUI0jw25.js";import"./Toolbar-5oT8y_0g.js";import"./ArrowUpIcon-BUCpIXDR.js";import"./SortDescIcon-CS4EzHeS.js";import"./PrismCss-u5utqjht.js";import"./LexicalToolRegistry-_DH2qwSU.js";const g=()=>{const[r]=o();return t.useEffect(()=>i(r),[r]),null};export{e as INSERT_YOUTUBE_COMMAND,g as YouTubePlugin,g as default};
1
+ import{G as o,r as t}from"../datalayer-app-main.js";import{h as e,i}from"./JupyterLexicalExtension-CUsjvchq.js";import"./NotebookSkeleton-D9WNoiWD.js";import"./Avatar-Dqz3ZWjZ.js";import"./url-DEeTWrO-.js";import"./isSymbol-BLtK9CV6.js";import"./toNumber-B1wj8-wx.js";import"./VideoIcon-BjP_LDa4.js";import"./LinkIcon-DUI0jw25.js";import"./Toolbar-B6ROXJ-2.js";import"./ArrowUpIcon-BUCpIXDR.js";import"./SortDescIcon-CS4EzHeS.js";import"./PrismCss-u5utqjht.js";import"./LexicalToolRegistry-DoZIM1lF.js";const g=()=>{const[r]=o();return t.useEffect(()=>i(r),[r]),null};export{e as INSERT_YOUTUBE_COMMAND,g as YouTubePlugin,g as default};
@@ -1 +1 @@
1
- import{g as l,r as u,d as a}from"./chunk-SVP7TREG-Cw20-h7G.js";import{p as f}from"./chunk-JWPE2WC7-Diz0u535.js";import{_ as n,l as s}from"./mermaid.core-BjUO4_Ly.js";import"./index-CkHVrFkx.js";import{M as c,b as d}from"./cynefin-OW5HDTMX-BVK0_S--.js";import"../datalayer-app-main.js";import"./fastdom-promised-BVkcNAgN.js";import"./line-DuKLYeqR.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./index-DYk4SAGn.js";var v=d().RailroadAbnf.parser.LangiumParser,i=n(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=n(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=n(e=>{if(e.includes("*")){const[t,o]=e.split("*"),m=t?parseInt(t,10):0,p=o?parseInt(o,10):1/0;return{min:m,max:p}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=n(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:o}=b(e.repeat);return t===0&&o===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:o}},"transformElement"),A=n(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=n(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=n(e=>{f(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(P(r)))},"populateDb"),R={parse:n(e=>{a.clear(),s.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;s.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),s.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:a}},q={parser:R,db:a,renderer:u,styles:l};export{q as diagram};
1
+ import{g as l,r as u,d as a}from"./chunk-SVP7TREG-2ZP0qWw_.js";import{p as f}from"./chunk-JWPE2WC7-SVeaXwdX.js";import{_ as n,l as s}from"./mermaid.core-CLv-vCjs.js";import"./index-BtjXlYA2.js";import{M as c,b as d}from"./cynefin-OW5HDTMX-BVK0_S--.js";import"../datalayer-app-main.js";import"./fastdom-promised-BVkcNAgN.js";import"./line-BLnKxlFS.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./index-p2ZGnxJX.js";var v=d().RailroadAbnf.parser.LangiumParser,i=n(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=n(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=n(e=>{if(e.includes("*")){const[t,o]=e.split("*"),m=t?parseInt(t,10):0,p=o?parseInt(o,10):1/0;return{min:m,max:p}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=n(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:o}=b(e.repeat);return t===0&&o===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:o}},"transformElement"),A=n(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=n(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=n(e=>{f(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(P(r)))},"populateDb"),R={parse:n(e=>{a.clear(),s.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;s.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),s.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:a}},q={parser:R,db:a,renderer:u,styles:l};export{q as diagram};
@@ -1 +1 @@
1
- import{g as l,r as u,d as a}from"./chunk-SVP7TREG-_yTXReWy.js";import{p as f}from"./chunk-JWPE2WC7-D3HcIpVU.js";import{_ as n,l as s}from"./index-DKPjJ48t.js";import"./index-CkHVrFkx.js";import{M as c,b as d}from"./cynefin-OW5HDTMX-D8Lw5okC.js";import"../datalayer-app-main.js";import"./fastdom-promised-BVkcNAgN.js";import"./line-DuKLYeqR.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./index-DYk4SAGn.js";var v=d().RailroadAbnf.parser.LangiumParser,i=n(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=n(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=n(e=>{if(e.includes("*")){const[t,o]=e.split("*"),m=t?parseInt(t,10):0,p=o?parseInt(o,10):1/0;return{min:m,max:p}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=n(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:o}=b(e.repeat);return t===0&&o===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:o}},"transformElement"),A=n(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=n(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=n(e=>{f(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(P(r)))},"populateDb"),R={parse:n(e=>{a.clear(),s.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;s.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),s.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:a}},q={parser:R,db:a,renderer:u,styles:l};export{q as diagram};
1
+ import{g as l,r as u,d as a}from"./chunk-SVP7TREG-0GCrhixv.js";import{p as f}from"./chunk-JWPE2WC7-DC1wY1Ne.js";import{_ as n,l as s}from"./index-DtYYe0Cw.js";import"./index-BtjXlYA2.js";import{M as c,b as d}from"./cynefin-OW5HDTMX-D8Lw5okC.js";import"../datalayer-app-main.js";import"./fastdom-promised-BVkcNAgN.js";import"./line-BLnKxlFS.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./index-p2ZGnxJX.js";var v=d().RailroadAbnf.parser.LangiumParser,i=n(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=n(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=n(e=>{if(e.includes("*")){const[t,o]=e.split("*"),m=t?parseInt(t,10):0,p=o?parseInt(o,10):1/0;return{min:m,max:p}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=n(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:o}=b(e.repeat);return t===0&&o===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:o}},"transformElement"),A=n(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=n(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=n(e=>{f(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(P(r)))},"populateDb"),R={parse:n(e=>{a.clear(),s.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;s.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),s.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:a}},q={parser:R,db:a,renderer:u,styles:l};export{q as diagram};
@@ -1 +1 @@
1
- import{b as gt,t as qe,c as ht,a as yt}from"./linear-Dg-Vn5Yx.js";import{i as Mt}from"./init-Gi6I4Gst.js";import{a6 as ze}from"../datalayer-app-main.js";function nr(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let s of e)(s=t(s,++r,e))!=null&&(n<s||n===void 0&&s>=s)&&(n=s)}return n}function rr(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let s of e)(s=t(s,++r,e))!=null&&(n>s||n===void 0&&s>=s)&&(n=s)}return n}function Tt(e){return e}var Me=1,We=2,$e=3,ye=4,Re=1e-6;function dt(e){return"translate("+e+",0)"}function pt(e){return"translate(0,"+e+")"}function vt(e){return t=>+e(t)}function Dt(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function Ct(){return!this.__axis}function ut(e,t){var n=[],r=null,s=null,u=6,a=6,m=3,M=typeof window<"u"&&window.devicePixelRatio>1?0:.5,c=e===Me||e===ye?-1:1,f=e===ye||e===We?"x":"y",U=e===Me||e===$e?dt:pt;function y(g){var N=r??(t.ticks?t.ticks.apply(t,n):t.domain()),V=s??(t.tickFormat?t.tickFormat.apply(t,n):Tt),h=Math.max(u,0)+m,d=t.range(),w=+d[0]+M,p=+d[d.length-1]+M,k=(t.bandwidth?Dt:vt)(t.copy(),M),S=g.selection?g.selection():g,l=S.selectAll(".domain").data([null]),D=S.selectAll(".tick").data(N,t).order(),W=D.exit(),$=D.enter().append("g").attr("class","tick"),I=D.select("line"),z=D.select("text");l=l.merge(l.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),D=D.merge($),I=I.merge($.append("line").attr("stroke","currentColor").attr(f+"2",c*u)),z=z.merge($.append("text").attr("fill","currentColor").attr(f,c*h).attr("dy",e===Me?"0em":e===$e?"0.71em":"0.32em")),g!==S&&(l=l.transition(g),D=D.transition(g),I=I.transition(g),z=z.transition(g),W=W.transition(g).attr("opacity",Re).attr("transform",function(x){return isFinite(x=k(x))?U(x+M):this.getAttribute("transform")}),$.attr("opacity",Re).attr("transform",function(x){var H=this.parentNode.__axis;return U((H&&isFinite(H=H(x))?H:k(x))+M)})),W.remove(),l.attr("d",e===ye||e===We?a?"M"+c*a+","+w+"H"+M+"V"+p+"H"+c*a:"M"+M+","+w+"V"+p:a?"M"+w+","+c*a+"V"+M+"H"+p+"V"+c*a:"M"+w+","+M+"H"+p),D.attr("opacity",1).attr("transform",function(x){return U(k(x)+M)}),I.attr(f+"2",c*u),z.attr(f,c*h).text(V),S.filter(Ct).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===We?"start":e===ye?"end":"middle"),S.each(function(){this.__axis=k})}return y.scale=function(g){return arguments.length?(t=g,y):t},y.ticks=function(){return n=Array.from(arguments),y},y.tickArguments=function(g){return arguments.length?(n=g==null?[]:Array.from(g),y):n.slice()},y.tickValues=function(g){return arguments.length?(r=g==null?null:Array.from(g),y):r&&r.slice()},y.tickFormat=function(g){return arguments.length?(s=g,y):s},y.tickSize=function(g){return arguments.length?(u=a=+g,y):u},y.tickSizeInner=function(g){return arguments.length?(u=+g,y):u},y.tickSizeOuter=function(g){return arguments.length?(a=+g,y):a},y.tickPadding=function(g){return arguments.length?(m=+g,y):m},y.offset=function(g){return arguments.length?(M=+g,y):M},y}function or(e){return ut(Me,e)}function ur(e){return ut($e,e)}function Ut(e,t){e=e.slice();var n=0,r=e.length-1,s=e[n],u=e[r],a;return u<s&&(a=n,n=r,r=a,a=s,s=u,u=a),e[n]=t.floor(s),e[r]=t.ceil(u),e}const He=new Date,Le=new Date;function F(e,t,n,r){function s(u){return e(u=arguments.length===0?new Date:new Date(+u)),u}return s.floor=u=>(e(u=new Date(+u)),u),s.ceil=u=>(e(u=new Date(u-1)),t(u,1),e(u),u),s.round=u=>{const a=s(u),m=s.ceil(u);return u-a<m-u?a:m},s.offset=(u,a)=>(t(u=new Date(+u),a==null?1:Math.floor(a)),u),s.range=(u,a,m)=>{const M=[];if(u=s.ceil(u),m=m==null?1:Math.floor(m),!(u<a)||!(m>0))return M;let c;do M.push(c=new Date(+u)),t(u,m),e(u);while(c<u&&u<a);return M},s.filter=u=>F(a=>{if(a>=a)for(;e(a),!u(a);)a.setTime(a-1)},(a,m)=>{if(a>=a)if(m<0)for(;++m<=0;)for(;t(a,-1),!u(a););else for(;--m>=0;)for(;t(a,1),!u(a););}),n&&(s.count=(u,a)=>(He.setTime(+u),Le.setTime(+a),e(He),e(Le),Math.floor(n(He,Le))),s.every=u=>(u=Math.floor(u),!isFinite(u)||!(u>0)?null:u>1?s.filter(r?a=>r(a)%u===0:a=>s.count(0,a)%u===0):s)),s}const ve=F(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ve.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?F(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):ve);ve.range;const X=1e3,P=X*60,E=P*60,j=E*24,Ie=j*7,_e=j*30,be=j*365,ie=F(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*X)},(e,t)=>(t-e)/X,e=>e.getUTCSeconds());ie.range;const Ne=F(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*X)},(e,t)=>{e.setTime(+e+t*P)},(e,t)=>(t-e)/P,e=>e.getMinutes());Ne.range;const wt=F(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*P)},(e,t)=>(t-e)/P,e=>e.getUTCMinutes());wt.range;const Ze=F(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*X-e.getMinutes()*P)},(e,t)=>{e.setTime(+e+t*E)},(e,t)=>(t-e)/E,e=>e.getHours());Ze.range;const Yt=F(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*E)},(e,t)=>(t-e)/E,e=>e.getUTCHours());Yt.range;const he=F(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*P)/j,e=>e.getDate()-1);he.range;const Pe=F(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/j,e=>e.getUTCDate()-1);Pe.range;const kt=F(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/j,e=>Math.floor(e/j));kt.range;function ee(e){return F(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*P)/Ie)}const Ue=ee(0),De=ee(1),xt=ee(2),St=ee(3),se=ee(4),Ft=ee(5),Wt=ee(6);Ue.range;De.range;xt.range;St.range;se.range;Ft.range;Wt.range;function te(e){return F(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/Ie)}const at=te(0),Ce=te(1),Ht=te(2),Lt=te(3),ce=te(4),bt=te(5),At=te(6);at.range;Ce.range;Ht.range;Lt.range;ce.range;bt.range;At.range;const Ve=F(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Ve.range;const Ot=F(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Ot.range;const J=F(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());J.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:F(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});J.range;const K=F(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());K.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:F(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});K.range;function $t(e,t,n,r,s,u){const a=[[ie,1,X],[ie,5,5*X],[ie,15,15*X],[ie,30,30*X],[u,1,P],[u,5,5*P],[u,15,15*P],[u,30,30*P],[s,1,E],[s,3,3*E],[s,6,6*E],[s,12,12*E],[r,1,j],[r,2,2*j],[n,1,Ie],[t,1,_e],[t,3,3*_e],[e,1,be]];function m(c,f,U){const y=f<c;y&&([c,f]=[f,c]);const g=U&&typeof U.range=="function"?U:M(c,f,U),N=g?g.range(c,+f+1):[];return y?N.reverse():N}function M(c,f,U){const y=Math.abs(f-c)/U,g=gt(([,,h])=>h).right(a,y);if(g===a.length)return e.every(qe(c/be,f/be,U));if(g===0)return ve.every(Math.max(qe(c,f,U),1));const[N,V]=a[y/a[g-1][2]<a[g][2]/y?g-1:g];return N.every(V)}return[m,M]}const[zt,It]=$t(J,Ve,Ue,he,Ze,Ne);function Ae(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Oe(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function le(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Nt(e){var t=e.dateTime,n=e.date,r=e.time,s=e.periods,u=e.days,a=e.shortDays,m=e.months,M=e.shortMonths,c=me(s),f=ge(s),U=me(u),y=ge(u),g=me(a),N=ge(a),V=me(m),h=ge(m),d=me(M),w=ge(M),p={a:ne,A:B,b:G,B:re,c:null,d:Je,e:Je,f:cn,g:pn,G:Dn,H:un,I:an,j:sn,L:it,m:fn,M:ln,p:Z,q:fe,Q:et,s:tt,S:mn,u:gn,U:hn,V:yn,w:Mn,W:Tn,x:null,X:null,y:dn,Y:vn,Z:Cn,"%":Ke},k={a:oe,A:we,b:Ye,B:ke,c:null,d:Be,e:Be,f:kn,g:$n,G:In,H:Un,I:wn,j:Yn,L:ct,m:xn,M:Sn,p:xe,q:Se,Q:et,s:tt,S:Fn,u:Wn,U:Hn,V:Ln,w:bn,W:An,x:null,X:null,y:On,Y:zn,Z:Nn,"%":Ke},S={a:I,A:z,b:x,B:H,c:R,d:Ee,e:Ee,f:tn,g:Xe,G:Ge,H:je,I:je,j:Jt,L:en,m:jt,M:Bt,p:$,q:Et,Q:rn,s:on,S:Kt,u:Rt,U:_t,V:Qt,w:qt,W:Gt,x:_,X:Q,y:Xe,Y:Ge,Z:Xt,"%":nn};p.x=l(n,p),p.X=l(r,p),p.c=l(t,p),k.x=l(n,k),k.X=l(r,k),k.c=l(t,k);function l(i,T){return function(v){var o=[],L=-1,Y=0,b=i.length,O,q,ue;for(v instanceof Date||(v=new Date(+v));++L<b;)i.charCodeAt(L)===37&&(o.push(i.slice(Y,L)),(q=Qe[O=i.charAt(++L)])!=null?O=i.charAt(++L):q=O==="e"?" ":"0",(ue=T[O])&&(O=ue(v,q)),o.push(O),Y=L+1);return o.push(i.slice(Y,L)),o.join("")}}function D(i,T){return function(v){var o=le(1900,void 0,1),L=W(o,i,v+="",0),Y,b;if(L!=v.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(o.s*1e3+("L"in o?o.L:0));if(T&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+o.p*12),o.m===void 0&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(Y=Oe(le(o.y,0,1)),b=Y.getUTCDay(),Y=b>4||b===0?Ce.ceil(Y):Ce(Y),Y=Pe.offset(Y,(o.V-1)*7),o.y=Y.getUTCFullYear(),o.m=Y.getUTCMonth(),o.d=Y.getUTCDate()+(o.w+6)%7):(Y=Ae(le(o.y,0,1)),b=Y.getDay(),Y=b>4||b===0?De.ceil(Y):De(Y),Y=he.offset(Y,(o.V-1)*7),o.y=Y.getFullYear(),o.m=Y.getMonth(),o.d=Y.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),b="Z"in o?Oe(le(o.y,0,1)).getUTCDay():Ae(le(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+o.W*7-(b+5)%7:o.w+o.U*7-(b+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Oe(o)):Ae(o)}}function W(i,T,v,o){for(var L=0,Y=T.length,b=v.length,O,q;L<Y;){if(o>=b)return-1;if(O=T.charCodeAt(L++),O===37){if(O=T.charAt(L++),q=S[O in Qe?T.charAt(L++):O],!q||(o=q(i,v,o))<0)return-1}else if(O!=v.charCodeAt(o++))return-1}return o}function $(i,T,v){var o=c.exec(T.slice(v));return o?(i.p=f.get(o[0].toLowerCase()),v+o[0].length):-1}function I(i,T,v){var o=g.exec(T.slice(v));return o?(i.w=N.get(o[0].toLowerCase()),v+o[0].length):-1}function z(i,T,v){var o=U.exec(T.slice(v));return o?(i.w=y.get(o[0].toLowerCase()),v+o[0].length):-1}function x(i,T,v){var o=d.exec(T.slice(v));return o?(i.m=w.get(o[0].toLowerCase()),v+o[0].length):-1}function H(i,T,v){var o=V.exec(T.slice(v));return o?(i.m=h.get(o[0].toLowerCase()),v+o[0].length):-1}function R(i,T,v){return W(i,t,T,v)}function _(i,T,v){return W(i,n,T,v)}function Q(i,T,v){return W(i,r,T,v)}function ne(i){return a[i.getDay()]}function B(i){return u[i.getDay()]}function G(i){return M[i.getMonth()]}function re(i){return m[i.getMonth()]}function Z(i){return s[+(i.getHours()>=12)]}function fe(i){return 1+~~(i.getMonth()/3)}function oe(i){return a[i.getUTCDay()]}function we(i){return u[i.getUTCDay()]}function Ye(i){return M[i.getUTCMonth()]}function ke(i){return m[i.getUTCMonth()]}function xe(i){return s[+(i.getUTCHours()>=12)]}function Se(i){return 1+~~(i.getUTCMonth()/3)}return{format:function(i){var T=l(i+="",p);return T.toString=function(){return i},T},parse:function(i){var T=D(i+="",!1);return T.toString=function(){return i},T},utcFormat:function(i){var T=l(i+="",k);return T.toString=function(){return i},T},utcParse:function(i){var T=D(i+="",!0);return T.toString=function(){return i},T}}}var Qe={"-":"",_:" ",0:"0"},A=/^\s*\d+/,Zt=/^%/,Pt=/[\\^$*+?|[\]().{}]/g;function C(e,t,n){var r=e<0?"-":"",s=(r?-e:e)+"",u=s.length;return r+(u<n?new Array(n-u+1).join(t)+s:s)}function Vt(e){return e.replace(Pt,"\\$&")}function me(e){return new RegExp("^(?:"+e.map(Vt).join("|")+")","i")}function ge(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function qt(e,t,n){var r=A.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Rt(e,t,n){var r=A.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function _t(e,t,n){var r=A.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Qt(e,t,n){var r=A.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Gt(e,t,n){var r=A.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Ge(e,t,n){var r=A.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Xe(e,t,n){var r=A.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Xt(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Et(e,t,n){var r=A.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function jt(e,t,n){var r=A.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Ee(e,t,n){var r=A.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Jt(e,t,n){var r=A.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function je(e,t,n){var r=A.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Bt(e,t,n){var r=A.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Kt(e,t,n){var r=A.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function en(e,t,n){var r=A.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function tn(e,t,n){var r=A.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function nn(e,t,n){var r=Zt.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function rn(e,t,n){var r=A.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function on(e,t,n){var r=A.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Je(e,t){return C(e.getDate(),t,2)}function un(e,t){return C(e.getHours(),t,2)}function an(e,t){return C(e.getHours()%12||12,t,2)}function sn(e,t){return C(1+he.count(J(e),e),t,3)}function it(e,t){return C(e.getMilliseconds(),t,3)}function cn(e,t){return it(e,t)+"000"}function fn(e,t){return C(e.getMonth()+1,t,2)}function ln(e,t){return C(e.getMinutes(),t,2)}function mn(e,t){return C(e.getSeconds(),t,2)}function gn(e){var t=e.getDay();return t===0?7:t}function hn(e,t){return C(Ue.count(J(e)-1,e),t,2)}function st(e){var t=e.getDay();return t>=4||t===0?se(e):se.ceil(e)}function yn(e,t){return e=st(e),C(se.count(J(e),e)+(J(e).getDay()===4),t,2)}function Mn(e){return e.getDay()}function Tn(e,t){return C(De.count(J(e)-1,e),t,2)}function dn(e,t){return C(e.getFullYear()%100,t,2)}function pn(e,t){return e=st(e),C(e.getFullYear()%100,t,2)}function vn(e,t){return C(e.getFullYear()%1e4,t,4)}function Dn(e,t){var n=e.getDay();return e=n>=4||n===0?se(e):se.ceil(e),C(e.getFullYear()%1e4,t,4)}function Cn(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+C(t/60|0,"0",2)+C(t%60,"0",2)}function Be(e,t){return C(e.getUTCDate(),t,2)}function Un(e,t){return C(e.getUTCHours(),t,2)}function wn(e,t){return C(e.getUTCHours()%12||12,t,2)}function Yn(e,t){return C(1+Pe.count(K(e),e),t,3)}function ct(e,t){return C(e.getUTCMilliseconds(),t,3)}function kn(e,t){return ct(e,t)+"000"}function xn(e,t){return C(e.getUTCMonth()+1,t,2)}function Sn(e,t){return C(e.getUTCMinutes(),t,2)}function Fn(e,t){return C(e.getUTCSeconds(),t,2)}function Wn(e){var t=e.getUTCDay();return t===0?7:t}function Hn(e,t){return C(at.count(K(e)-1,e),t,2)}function ft(e){var t=e.getUTCDay();return t>=4||t===0?ce(e):ce.ceil(e)}function Ln(e,t){return e=ft(e),C(ce.count(K(e),e)+(K(e).getUTCDay()===4),t,2)}function bn(e){return e.getUTCDay()}function An(e,t){return C(Ce.count(K(e)-1,e),t,2)}function On(e,t){return C(e.getUTCFullYear()%100,t,2)}function $n(e,t){return e=ft(e),C(e.getUTCFullYear()%100,t,2)}function zn(e,t){return C(e.getUTCFullYear()%1e4,t,4)}function In(e,t){var n=e.getUTCDay();return e=n>=4||n===0?ce(e):ce.ceil(e),C(e.getUTCFullYear()%1e4,t,4)}function Nn(){return"+0000"}function Ke(){return"%"}function et(e){return+e}function tt(e){return Math.floor(+e/1e3)}var ae,lt;Zn({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Zn(e){return ae=Nt(e),lt=ae.format,ae.parse,ae.utcFormat,ae.utcParse,ae}function Pn(e){return new Date(e)}function Vn(e){return e instanceof Date?+e:+new Date(+e)}function mt(e,t,n,r,s,u,a,m,M,c){var f=ht(),U=f.invert,y=f.domain,g=c(".%L"),N=c(":%S"),V=c("%I:%M"),h=c("%I %p"),d=c("%a %d"),w=c("%b %d"),p=c("%B"),k=c("%Y");function S(l){return(M(l)<l?g:m(l)<l?N:a(l)<l?V:u(l)<l?h:r(l)<l?s(l)<l?d:w:n(l)<l?p:k)(l)}return f.invert=function(l){return new Date(U(l))},f.domain=function(l){return arguments.length?y(Array.from(l,Vn)):y().map(Pn)},f.ticks=function(l){var D=y();return e(D[0],D[D.length-1],l??10)},f.tickFormat=function(l,D){return D==null?S:c(D)},f.nice=function(l){var D=y();return(!l||typeof l.range!="function")&&(l=t(D[0],D[D.length-1],l??10)),l?y(Ut(D,l)):f},f.copy=function(){return yt(f,mt(e,t,n,r,s,u,a,m,M,c))},f}function ar(){return Mt.apply(mt(zt,It,J,Ve,Ue,he,Ze,Ne,ie,lt).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var Te={exports:{}},qn=Te.exports,nt;function Rn(){return nt||(nt=1,(function(e,t){(function(n,r){e.exports=r()})(qn,(function(){var n="day";return function(r,s,u){var a=function(c){return c.add(4-c.isoWeekday(),n)},m=s.prototype;m.isoWeekYear=function(){return a(this).year()},m.isoWeek=function(c){if(!this.$utils().u(c))return this.add(7*(c-this.isoWeek()),n);var f,U,y,g,N=a(this),V=(f=this.isoWeekYear(),U=this.$u,y=(U?u.utc:u)().year(f).startOf("year"),g=4-y.isoWeekday(),y.isoWeekday()>4&&(g+=7),y.add(g,n));return N.diff(V,"week")+1},m.isoWeekday=function(c){return this.$utils().u(c)?this.day()||7:this.day(this.day()%7?c:c-7)};var M=m.startOf;m.startOf=function(c,f){var U=this.$utils(),y=!!U.u(f)||f;return U.p(c)==="isoweek"?y?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):M.bind(this)(c,f)}}}))})(Te)),Te.exports}var _n=Rn();const ir=ze(_n);var de={exports:{}},Qn=de.exports,rt;function Gn(){return rt||(rt=1,(function(e,t){(function(n,r){e.exports=r()})(Qn,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,s=/\d/,u=/\d\d/,a=/\d\d?/,m=/\d*[^-_:/,()\s\d]+/,M={},c=function(h){return(h=+h)+(h>68?1900:2e3)},f=function(h){return function(d){this[h]=+d}},U=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=(function(d){if(!d||d==="Z")return 0;var w=d.match(/([+-]|\d\d)/g),p=60*w[1]+(+w[2]||0);return p===0?0:w[0]==="+"?-p:p})(h)}],y=function(h){var d=M[h];return d&&(d.indexOf?d:d.s.concat(d.f))},g=function(h,d){var w,p=M.meridiem;if(p){for(var k=1;k<=24;k+=1)if(h.indexOf(p(k,0,d))>-1){w=k>12;break}}else w=h===(d?"pm":"PM");return w},N={A:[m,function(h){this.afternoon=g(h,!1)}],a:[m,function(h){this.afternoon=g(h,!0)}],Q:[s,function(h){this.month=3*(h-1)+1}],S:[s,function(h){this.milliseconds=100*+h}],SS:[u,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[a,f("seconds")],ss:[a,f("seconds")],m:[a,f("minutes")],mm:[a,f("minutes")],H:[a,f("hours")],h:[a,f("hours")],HH:[a,f("hours")],hh:[a,f("hours")],D:[a,f("day")],DD:[u,f("day")],Do:[m,function(h){var d=M.ordinal,w=h.match(/\d+/);if(this.day=w[0],d)for(var p=1;p<=31;p+=1)d(p).replace(/\[|\]/g,"")===h&&(this.day=p)}],w:[a,f("week")],ww:[u,f("week")],M:[a,f("month")],MM:[u,f("month")],MMM:[m,function(h){var d=y("months"),w=(y("monthsShort")||d.map((function(p){return p.slice(0,3)}))).indexOf(h)+1;if(w<1)throw new Error;this.month=w%12||w}],MMMM:[m,function(h){var d=y("months").indexOf(h)+1;if(d<1)throw new Error;this.month=d%12||d}],Y:[/[+-]?\d+/,f("year")],YY:[u,function(h){this.year=c(h)}],YYYY:[/\d{4}/,f("year")],Z:U,ZZ:U};function V(h){var d,w;d=h,w=M&&M.formats;for(var p=(h=d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(I,z,x){var H=x&&x.toUpperCase();return z||w[x]||n[x]||w[H].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(R,_,Q){return _||Q.slice(1)}))}))).match(r),k=p.length,S=0;S<k;S+=1){var l=p[S],D=N[l],W=D&&D[0],$=D&&D[1];p[S]=$?{regex:W,parser:$}:l.replace(/^\[|\]$/g,"")}return function(I){for(var z={},x=0,H=0;x<k;x+=1){var R=p[x];if(typeof R=="string")H+=R.length;else{var _=R.regex,Q=R.parser,ne=I.slice(H),B=_.exec(ne)[0];Q.call(z,B),I=I.replace(B,"")}}return(function(G){var re=G.afternoon;if(re!==void 0){var Z=G.hours;re?Z<12&&(G.hours+=12):Z===12&&(G.hours=0),delete G.afternoon}})(z),z}}return function(h,d,w){w.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(c=h.parseTwoDigitYear);var p=d.prototype,k=p.parse;p.parse=function(S){var l=S.date,D=S.utc,W=S.args;this.$u=D;var $=W[1];if(typeof $=="string"){var I=W[2]===!0,z=W[3]===!0,x=I||z,H=W[2];z&&(H=W[2]),M=this.$locale(),!I&&H&&(M=w.Ls[H]),this.$d=(function(ne,B,G,re){try{if(["x","X"].indexOf(B)>-1)return new Date((B==="X"?1e3:1)*ne);var Z=V(B)(ne),fe=Z.year,oe=Z.month,we=Z.day,Ye=Z.hours,ke=Z.minutes,xe=Z.seconds,Se=Z.milliseconds,i=Z.zone,T=Z.week,v=new Date,o=we||(fe||oe?1:v.getDate()),L=fe||v.getFullYear(),Y=0;fe&&!oe||(Y=oe>0?oe-1:v.getMonth());var b,O=Ye||0,q=ke||0,ue=xe||0,Fe=Se||0;return i?new Date(Date.UTC(L,Y,o,O,q,ue,Fe+60*i.offset*1e3)):G?new Date(Date.UTC(L,Y,o,O,q,ue,Fe)):(b=new Date(L,Y,o,O,q,ue,Fe),T&&(b=re(b).week(T).toDate()),b)}catch{return new Date("")}})(l,$,D,w),this.init(),H&&H!==!0&&(this.$L=this.locale(H).$L),x&&l!=this.format($)&&(this.$d=new Date("")),M={}}else if($ instanceof Array)for(var R=$.length,_=1;_<=R;_+=1){W[1]=$[_-1];var Q=w.apply(this,W);if(Q.isValid()){this.$d=Q.$d,this.$L=Q.$L,this.init();break}_===R&&(this.$d=new Date(""))}else k.call(this,S)}}}))})(de)),de.exports}var Xn=Gn();const sr=ze(Xn);var pe={exports:{}},En=pe.exports,ot;function jn(){return ot||(ot=1,(function(e,t){(function(n,r){e.exports=r()})(En,(function(){return function(n,r){var s=r.prototype,u=s.format;s.format=function(a){var m=this,M=this.$locale();if(!this.isValid())return u.bind(this)(a);var c=this.$utils(),f=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(U){switch(U){case"Q":return Math.ceil((m.$M+1)/3);case"Do":return M.ordinal(m.$D);case"gggg":return m.weekYear();case"GGGG":return m.isoWeekYear();case"wo":return M.ordinal(m.week(),"W");case"w":case"ww":return c.s(m.week(),U==="w"?1:2,"0");case"W":case"WW":return c.s(m.isoWeek(),U==="W"?1:2,"0");case"k":case"kk":return c.s(String(m.$H===0?24:m.$H),U==="k"?1:2,"0");case"X":return Math.floor(m.$d.getTime()/1e3);case"x":return m.$d.getTime();case"z":return"["+m.offsetName()+"]";case"zzz":return"["+m.offsetName("long")+"]";default:return U}}));return u.bind(this)(f)}}}))})(pe)),pe.exports}var Jn=jn();const cr=ze(Jn);export{nr as a,ur as b,lt as c,Ve as d,Ue as e,Wt as f,Ft as g,se as h,St as i,xt as j,De as k,he as l,rr as m,Ze as n,Ne as o,ve as p,or as q,ir as r,ie as s,ar as t,sr as u,cr as v};
1
+ import{b as gt,t as qe,c as ht,a as yt}from"./linear-bDTv5gmU.js";import{i as Mt}from"./init-Gi6I4Gst.js";import{a6 as ze}from"../datalayer-app-main.js";function nr(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let s of e)(s=t(s,++r,e))!=null&&(n<s||n===void 0&&s>=s)&&(n=s)}return n}function rr(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let s of e)(s=t(s,++r,e))!=null&&(n>s||n===void 0&&s>=s)&&(n=s)}return n}function Tt(e){return e}var Me=1,We=2,$e=3,ye=4,Re=1e-6;function dt(e){return"translate("+e+",0)"}function pt(e){return"translate(0,"+e+")"}function vt(e){return t=>+e(t)}function Dt(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function Ct(){return!this.__axis}function ut(e,t){var n=[],r=null,s=null,u=6,a=6,m=3,M=typeof window<"u"&&window.devicePixelRatio>1?0:.5,c=e===Me||e===ye?-1:1,f=e===ye||e===We?"x":"y",U=e===Me||e===$e?dt:pt;function y(g){var N=r??(t.ticks?t.ticks.apply(t,n):t.domain()),V=s??(t.tickFormat?t.tickFormat.apply(t,n):Tt),h=Math.max(u,0)+m,d=t.range(),w=+d[0]+M,p=+d[d.length-1]+M,k=(t.bandwidth?Dt:vt)(t.copy(),M),S=g.selection?g.selection():g,l=S.selectAll(".domain").data([null]),D=S.selectAll(".tick").data(N,t).order(),W=D.exit(),$=D.enter().append("g").attr("class","tick"),I=D.select("line"),z=D.select("text");l=l.merge(l.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),D=D.merge($),I=I.merge($.append("line").attr("stroke","currentColor").attr(f+"2",c*u)),z=z.merge($.append("text").attr("fill","currentColor").attr(f,c*h).attr("dy",e===Me?"0em":e===$e?"0.71em":"0.32em")),g!==S&&(l=l.transition(g),D=D.transition(g),I=I.transition(g),z=z.transition(g),W=W.transition(g).attr("opacity",Re).attr("transform",function(x){return isFinite(x=k(x))?U(x+M):this.getAttribute("transform")}),$.attr("opacity",Re).attr("transform",function(x){var H=this.parentNode.__axis;return U((H&&isFinite(H=H(x))?H:k(x))+M)})),W.remove(),l.attr("d",e===ye||e===We?a?"M"+c*a+","+w+"H"+M+"V"+p+"H"+c*a:"M"+M+","+w+"V"+p:a?"M"+w+","+c*a+"V"+M+"H"+p+"V"+c*a:"M"+w+","+M+"H"+p),D.attr("opacity",1).attr("transform",function(x){return U(k(x)+M)}),I.attr(f+"2",c*u),z.attr(f,c*h).text(V),S.filter(Ct).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===We?"start":e===ye?"end":"middle"),S.each(function(){this.__axis=k})}return y.scale=function(g){return arguments.length?(t=g,y):t},y.ticks=function(){return n=Array.from(arguments),y},y.tickArguments=function(g){return arguments.length?(n=g==null?[]:Array.from(g),y):n.slice()},y.tickValues=function(g){return arguments.length?(r=g==null?null:Array.from(g),y):r&&r.slice()},y.tickFormat=function(g){return arguments.length?(s=g,y):s},y.tickSize=function(g){return arguments.length?(u=a=+g,y):u},y.tickSizeInner=function(g){return arguments.length?(u=+g,y):u},y.tickSizeOuter=function(g){return arguments.length?(a=+g,y):a},y.tickPadding=function(g){return arguments.length?(m=+g,y):m},y.offset=function(g){return arguments.length?(M=+g,y):M},y}function or(e){return ut(Me,e)}function ur(e){return ut($e,e)}function Ut(e,t){e=e.slice();var n=0,r=e.length-1,s=e[n],u=e[r],a;return u<s&&(a=n,n=r,r=a,a=s,s=u,u=a),e[n]=t.floor(s),e[r]=t.ceil(u),e}const He=new Date,Le=new Date;function F(e,t,n,r){function s(u){return e(u=arguments.length===0?new Date:new Date(+u)),u}return s.floor=u=>(e(u=new Date(+u)),u),s.ceil=u=>(e(u=new Date(u-1)),t(u,1),e(u),u),s.round=u=>{const a=s(u),m=s.ceil(u);return u-a<m-u?a:m},s.offset=(u,a)=>(t(u=new Date(+u),a==null?1:Math.floor(a)),u),s.range=(u,a,m)=>{const M=[];if(u=s.ceil(u),m=m==null?1:Math.floor(m),!(u<a)||!(m>0))return M;let c;do M.push(c=new Date(+u)),t(u,m),e(u);while(c<u&&u<a);return M},s.filter=u=>F(a=>{if(a>=a)for(;e(a),!u(a);)a.setTime(a-1)},(a,m)=>{if(a>=a)if(m<0)for(;++m<=0;)for(;t(a,-1),!u(a););else for(;--m>=0;)for(;t(a,1),!u(a););}),n&&(s.count=(u,a)=>(He.setTime(+u),Le.setTime(+a),e(He),e(Le),Math.floor(n(He,Le))),s.every=u=>(u=Math.floor(u),!isFinite(u)||!(u>0)?null:u>1?s.filter(r?a=>r(a)%u===0:a=>s.count(0,a)%u===0):s)),s}const ve=F(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ve.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?F(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):ve);ve.range;const X=1e3,P=X*60,E=P*60,j=E*24,Ie=j*7,_e=j*30,be=j*365,ie=F(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*X)},(e,t)=>(t-e)/X,e=>e.getUTCSeconds());ie.range;const Ne=F(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*X)},(e,t)=>{e.setTime(+e+t*P)},(e,t)=>(t-e)/P,e=>e.getMinutes());Ne.range;const wt=F(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*P)},(e,t)=>(t-e)/P,e=>e.getUTCMinutes());wt.range;const Ze=F(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*X-e.getMinutes()*P)},(e,t)=>{e.setTime(+e+t*E)},(e,t)=>(t-e)/E,e=>e.getHours());Ze.range;const Yt=F(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*E)},(e,t)=>(t-e)/E,e=>e.getUTCHours());Yt.range;const he=F(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*P)/j,e=>e.getDate()-1);he.range;const Pe=F(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/j,e=>e.getUTCDate()-1);Pe.range;const kt=F(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/j,e=>Math.floor(e/j));kt.range;function ee(e){return F(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*P)/Ie)}const Ue=ee(0),De=ee(1),xt=ee(2),St=ee(3),se=ee(4),Ft=ee(5),Wt=ee(6);Ue.range;De.range;xt.range;St.range;se.range;Ft.range;Wt.range;function te(e){return F(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/Ie)}const at=te(0),Ce=te(1),Ht=te(2),Lt=te(3),ce=te(4),bt=te(5),At=te(6);at.range;Ce.range;Ht.range;Lt.range;ce.range;bt.range;At.range;const Ve=F(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Ve.range;const Ot=F(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Ot.range;const J=F(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());J.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:F(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});J.range;const K=F(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());K.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:F(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});K.range;function $t(e,t,n,r,s,u){const a=[[ie,1,X],[ie,5,5*X],[ie,15,15*X],[ie,30,30*X],[u,1,P],[u,5,5*P],[u,15,15*P],[u,30,30*P],[s,1,E],[s,3,3*E],[s,6,6*E],[s,12,12*E],[r,1,j],[r,2,2*j],[n,1,Ie],[t,1,_e],[t,3,3*_e],[e,1,be]];function m(c,f,U){const y=f<c;y&&([c,f]=[f,c]);const g=U&&typeof U.range=="function"?U:M(c,f,U),N=g?g.range(c,+f+1):[];return y?N.reverse():N}function M(c,f,U){const y=Math.abs(f-c)/U,g=gt(([,,h])=>h).right(a,y);if(g===a.length)return e.every(qe(c/be,f/be,U));if(g===0)return ve.every(Math.max(qe(c,f,U),1));const[N,V]=a[y/a[g-1][2]<a[g][2]/y?g-1:g];return N.every(V)}return[m,M]}const[zt,It]=$t(J,Ve,Ue,he,Ze,Ne);function Ae(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Oe(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function le(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Nt(e){var t=e.dateTime,n=e.date,r=e.time,s=e.periods,u=e.days,a=e.shortDays,m=e.months,M=e.shortMonths,c=me(s),f=ge(s),U=me(u),y=ge(u),g=me(a),N=ge(a),V=me(m),h=ge(m),d=me(M),w=ge(M),p={a:ne,A:B,b:G,B:re,c:null,d:Je,e:Je,f:cn,g:pn,G:Dn,H:un,I:an,j:sn,L:it,m:fn,M:ln,p:Z,q:fe,Q:et,s:tt,S:mn,u:gn,U:hn,V:yn,w:Mn,W:Tn,x:null,X:null,y:dn,Y:vn,Z:Cn,"%":Ke},k={a:oe,A:we,b:Ye,B:ke,c:null,d:Be,e:Be,f:kn,g:$n,G:In,H:Un,I:wn,j:Yn,L:ct,m:xn,M:Sn,p:xe,q:Se,Q:et,s:tt,S:Fn,u:Wn,U:Hn,V:Ln,w:bn,W:An,x:null,X:null,y:On,Y:zn,Z:Nn,"%":Ke},S={a:I,A:z,b:x,B:H,c:R,d:Ee,e:Ee,f:tn,g:Xe,G:Ge,H:je,I:je,j:Jt,L:en,m:jt,M:Bt,p:$,q:Et,Q:rn,s:on,S:Kt,u:Rt,U:_t,V:Qt,w:qt,W:Gt,x:_,X:Q,y:Xe,Y:Ge,Z:Xt,"%":nn};p.x=l(n,p),p.X=l(r,p),p.c=l(t,p),k.x=l(n,k),k.X=l(r,k),k.c=l(t,k);function l(i,T){return function(v){var o=[],L=-1,Y=0,b=i.length,O,q,ue;for(v instanceof Date||(v=new Date(+v));++L<b;)i.charCodeAt(L)===37&&(o.push(i.slice(Y,L)),(q=Qe[O=i.charAt(++L)])!=null?O=i.charAt(++L):q=O==="e"?" ":"0",(ue=T[O])&&(O=ue(v,q)),o.push(O),Y=L+1);return o.push(i.slice(Y,L)),o.join("")}}function D(i,T){return function(v){var o=le(1900,void 0,1),L=W(o,i,v+="",0),Y,b;if(L!=v.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(o.s*1e3+("L"in o?o.L:0));if(T&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+o.p*12),o.m===void 0&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(Y=Oe(le(o.y,0,1)),b=Y.getUTCDay(),Y=b>4||b===0?Ce.ceil(Y):Ce(Y),Y=Pe.offset(Y,(o.V-1)*7),o.y=Y.getUTCFullYear(),o.m=Y.getUTCMonth(),o.d=Y.getUTCDate()+(o.w+6)%7):(Y=Ae(le(o.y,0,1)),b=Y.getDay(),Y=b>4||b===0?De.ceil(Y):De(Y),Y=he.offset(Y,(o.V-1)*7),o.y=Y.getFullYear(),o.m=Y.getMonth(),o.d=Y.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),b="Z"in o?Oe(le(o.y,0,1)).getUTCDay():Ae(le(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+o.W*7-(b+5)%7:o.w+o.U*7-(b+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Oe(o)):Ae(o)}}function W(i,T,v,o){for(var L=0,Y=T.length,b=v.length,O,q;L<Y;){if(o>=b)return-1;if(O=T.charCodeAt(L++),O===37){if(O=T.charAt(L++),q=S[O in Qe?T.charAt(L++):O],!q||(o=q(i,v,o))<0)return-1}else if(O!=v.charCodeAt(o++))return-1}return o}function $(i,T,v){var o=c.exec(T.slice(v));return o?(i.p=f.get(o[0].toLowerCase()),v+o[0].length):-1}function I(i,T,v){var o=g.exec(T.slice(v));return o?(i.w=N.get(o[0].toLowerCase()),v+o[0].length):-1}function z(i,T,v){var o=U.exec(T.slice(v));return o?(i.w=y.get(o[0].toLowerCase()),v+o[0].length):-1}function x(i,T,v){var o=d.exec(T.slice(v));return o?(i.m=w.get(o[0].toLowerCase()),v+o[0].length):-1}function H(i,T,v){var o=V.exec(T.slice(v));return o?(i.m=h.get(o[0].toLowerCase()),v+o[0].length):-1}function R(i,T,v){return W(i,t,T,v)}function _(i,T,v){return W(i,n,T,v)}function Q(i,T,v){return W(i,r,T,v)}function ne(i){return a[i.getDay()]}function B(i){return u[i.getDay()]}function G(i){return M[i.getMonth()]}function re(i){return m[i.getMonth()]}function Z(i){return s[+(i.getHours()>=12)]}function fe(i){return 1+~~(i.getMonth()/3)}function oe(i){return a[i.getUTCDay()]}function we(i){return u[i.getUTCDay()]}function Ye(i){return M[i.getUTCMonth()]}function ke(i){return m[i.getUTCMonth()]}function xe(i){return s[+(i.getUTCHours()>=12)]}function Se(i){return 1+~~(i.getUTCMonth()/3)}return{format:function(i){var T=l(i+="",p);return T.toString=function(){return i},T},parse:function(i){var T=D(i+="",!1);return T.toString=function(){return i},T},utcFormat:function(i){var T=l(i+="",k);return T.toString=function(){return i},T},utcParse:function(i){var T=D(i+="",!0);return T.toString=function(){return i},T}}}var Qe={"-":"",_:" ",0:"0"},A=/^\s*\d+/,Zt=/^%/,Pt=/[\\^$*+?|[\]().{}]/g;function C(e,t,n){var r=e<0?"-":"",s=(r?-e:e)+"",u=s.length;return r+(u<n?new Array(n-u+1).join(t)+s:s)}function Vt(e){return e.replace(Pt,"\\$&")}function me(e){return new RegExp("^(?:"+e.map(Vt).join("|")+")","i")}function ge(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function qt(e,t,n){var r=A.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Rt(e,t,n){var r=A.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function _t(e,t,n){var r=A.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Qt(e,t,n){var r=A.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Gt(e,t,n){var r=A.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Ge(e,t,n){var r=A.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Xe(e,t,n){var r=A.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Xt(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Et(e,t,n){var r=A.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function jt(e,t,n){var r=A.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Ee(e,t,n){var r=A.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Jt(e,t,n){var r=A.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function je(e,t,n){var r=A.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Bt(e,t,n){var r=A.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Kt(e,t,n){var r=A.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function en(e,t,n){var r=A.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function tn(e,t,n){var r=A.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function nn(e,t,n){var r=Zt.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function rn(e,t,n){var r=A.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function on(e,t,n){var r=A.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Je(e,t){return C(e.getDate(),t,2)}function un(e,t){return C(e.getHours(),t,2)}function an(e,t){return C(e.getHours()%12||12,t,2)}function sn(e,t){return C(1+he.count(J(e),e),t,3)}function it(e,t){return C(e.getMilliseconds(),t,3)}function cn(e,t){return it(e,t)+"000"}function fn(e,t){return C(e.getMonth()+1,t,2)}function ln(e,t){return C(e.getMinutes(),t,2)}function mn(e,t){return C(e.getSeconds(),t,2)}function gn(e){var t=e.getDay();return t===0?7:t}function hn(e,t){return C(Ue.count(J(e)-1,e),t,2)}function st(e){var t=e.getDay();return t>=4||t===0?se(e):se.ceil(e)}function yn(e,t){return e=st(e),C(se.count(J(e),e)+(J(e).getDay()===4),t,2)}function Mn(e){return e.getDay()}function Tn(e,t){return C(De.count(J(e)-1,e),t,2)}function dn(e,t){return C(e.getFullYear()%100,t,2)}function pn(e,t){return e=st(e),C(e.getFullYear()%100,t,2)}function vn(e,t){return C(e.getFullYear()%1e4,t,4)}function Dn(e,t){var n=e.getDay();return e=n>=4||n===0?se(e):se.ceil(e),C(e.getFullYear()%1e4,t,4)}function Cn(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+C(t/60|0,"0",2)+C(t%60,"0",2)}function Be(e,t){return C(e.getUTCDate(),t,2)}function Un(e,t){return C(e.getUTCHours(),t,2)}function wn(e,t){return C(e.getUTCHours()%12||12,t,2)}function Yn(e,t){return C(1+Pe.count(K(e),e),t,3)}function ct(e,t){return C(e.getUTCMilliseconds(),t,3)}function kn(e,t){return ct(e,t)+"000"}function xn(e,t){return C(e.getUTCMonth()+1,t,2)}function Sn(e,t){return C(e.getUTCMinutes(),t,2)}function Fn(e,t){return C(e.getUTCSeconds(),t,2)}function Wn(e){var t=e.getUTCDay();return t===0?7:t}function Hn(e,t){return C(at.count(K(e)-1,e),t,2)}function ft(e){var t=e.getUTCDay();return t>=4||t===0?ce(e):ce.ceil(e)}function Ln(e,t){return e=ft(e),C(ce.count(K(e),e)+(K(e).getUTCDay()===4),t,2)}function bn(e){return e.getUTCDay()}function An(e,t){return C(Ce.count(K(e)-1,e),t,2)}function On(e,t){return C(e.getUTCFullYear()%100,t,2)}function $n(e,t){return e=ft(e),C(e.getUTCFullYear()%100,t,2)}function zn(e,t){return C(e.getUTCFullYear()%1e4,t,4)}function In(e,t){var n=e.getUTCDay();return e=n>=4||n===0?ce(e):ce.ceil(e),C(e.getUTCFullYear()%1e4,t,4)}function Nn(){return"+0000"}function Ke(){return"%"}function et(e){return+e}function tt(e){return Math.floor(+e/1e3)}var ae,lt;Zn({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Zn(e){return ae=Nt(e),lt=ae.format,ae.parse,ae.utcFormat,ae.utcParse,ae}function Pn(e){return new Date(e)}function Vn(e){return e instanceof Date?+e:+new Date(+e)}function mt(e,t,n,r,s,u,a,m,M,c){var f=ht(),U=f.invert,y=f.domain,g=c(".%L"),N=c(":%S"),V=c("%I:%M"),h=c("%I %p"),d=c("%a %d"),w=c("%b %d"),p=c("%B"),k=c("%Y");function S(l){return(M(l)<l?g:m(l)<l?N:a(l)<l?V:u(l)<l?h:r(l)<l?s(l)<l?d:w:n(l)<l?p:k)(l)}return f.invert=function(l){return new Date(U(l))},f.domain=function(l){return arguments.length?y(Array.from(l,Vn)):y().map(Pn)},f.ticks=function(l){var D=y();return e(D[0],D[D.length-1],l??10)},f.tickFormat=function(l,D){return D==null?S:c(D)},f.nice=function(l){var D=y();return(!l||typeof l.range!="function")&&(l=t(D[0],D[D.length-1],l??10)),l?y(Ut(D,l)):f},f.copy=function(){return yt(f,mt(e,t,n,r,s,u,a,m,M,c))},f}function ar(){return Mt.apply(mt(zt,It,J,Ve,Ue,he,Ze,Ne,ie,lt).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var Te={exports:{}},qn=Te.exports,nt;function Rn(){return nt||(nt=1,(function(e,t){(function(n,r){e.exports=r()})(qn,(function(){var n="day";return function(r,s,u){var a=function(c){return c.add(4-c.isoWeekday(),n)},m=s.prototype;m.isoWeekYear=function(){return a(this).year()},m.isoWeek=function(c){if(!this.$utils().u(c))return this.add(7*(c-this.isoWeek()),n);var f,U,y,g,N=a(this),V=(f=this.isoWeekYear(),U=this.$u,y=(U?u.utc:u)().year(f).startOf("year"),g=4-y.isoWeekday(),y.isoWeekday()>4&&(g+=7),y.add(g,n));return N.diff(V,"week")+1},m.isoWeekday=function(c){return this.$utils().u(c)?this.day()||7:this.day(this.day()%7?c:c-7)};var M=m.startOf;m.startOf=function(c,f){var U=this.$utils(),y=!!U.u(f)||f;return U.p(c)==="isoweek"?y?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):M.bind(this)(c,f)}}}))})(Te)),Te.exports}var _n=Rn();const ir=ze(_n);var de={exports:{}},Qn=de.exports,rt;function Gn(){return rt||(rt=1,(function(e,t){(function(n,r){e.exports=r()})(Qn,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,s=/\d/,u=/\d\d/,a=/\d\d?/,m=/\d*[^-_:/,()\s\d]+/,M={},c=function(h){return(h=+h)+(h>68?1900:2e3)},f=function(h){return function(d){this[h]=+d}},U=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=(function(d){if(!d||d==="Z")return 0;var w=d.match(/([+-]|\d\d)/g),p=60*w[1]+(+w[2]||0);return p===0?0:w[0]==="+"?-p:p})(h)}],y=function(h){var d=M[h];return d&&(d.indexOf?d:d.s.concat(d.f))},g=function(h,d){var w,p=M.meridiem;if(p){for(var k=1;k<=24;k+=1)if(h.indexOf(p(k,0,d))>-1){w=k>12;break}}else w=h===(d?"pm":"PM");return w},N={A:[m,function(h){this.afternoon=g(h,!1)}],a:[m,function(h){this.afternoon=g(h,!0)}],Q:[s,function(h){this.month=3*(h-1)+1}],S:[s,function(h){this.milliseconds=100*+h}],SS:[u,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[a,f("seconds")],ss:[a,f("seconds")],m:[a,f("minutes")],mm:[a,f("minutes")],H:[a,f("hours")],h:[a,f("hours")],HH:[a,f("hours")],hh:[a,f("hours")],D:[a,f("day")],DD:[u,f("day")],Do:[m,function(h){var d=M.ordinal,w=h.match(/\d+/);if(this.day=w[0],d)for(var p=1;p<=31;p+=1)d(p).replace(/\[|\]/g,"")===h&&(this.day=p)}],w:[a,f("week")],ww:[u,f("week")],M:[a,f("month")],MM:[u,f("month")],MMM:[m,function(h){var d=y("months"),w=(y("monthsShort")||d.map((function(p){return p.slice(0,3)}))).indexOf(h)+1;if(w<1)throw new Error;this.month=w%12||w}],MMMM:[m,function(h){var d=y("months").indexOf(h)+1;if(d<1)throw new Error;this.month=d%12||d}],Y:[/[+-]?\d+/,f("year")],YY:[u,function(h){this.year=c(h)}],YYYY:[/\d{4}/,f("year")],Z:U,ZZ:U};function V(h){var d,w;d=h,w=M&&M.formats;for(var p=(h=d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(I,z,x){var H=x&&x.toUpperCase();return z||w[x]||n[x]||w[H].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(R,_,Q){return _||Q.slice(1)}))}))).match(r),k=p.length,S=0;S<k;S+=1){var l=p[S],D=N[l],W=D&&D[0],$=D&&D[1];p[S]=$?{regex:W,parser:$}:l.replace(/^\[|\]$/g,"")}return function(I){for(var z={},x=0,H=0;x<k;x+=1){var R=p[x];if(typeof R=="string")H+=R.length;else{var _=R.regex,Q=R.parser,ne=I.slice(H),B=_.exec(ne)[0];Q.call(z,B),I=I.replace(B,"")}}return(function(G){var re=G.afternoon;if(re!==void 0){var Z=G.hours;re?Z<12&&(G.hours+=12):Z===12&&(G.hours=0),delete G.afternoon}})(z),z}}return function(h,d,w){w.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(c=h.parseTwoDigitYear);var p=d.prototype,k=p.parse;p.parse=function(S){var l=S.date,D=S.utc,W=S.args;this.$u=D;var $=W[1];if(typeof $=="string"){var I=W[2]===!0,z=W[3]===!0,x=I||z,H=W[2];z&&(H=W[2]),M=this.$locale(),!I&&H&&(M=w.Ls[H]),this.$d=(function(ne,B,G,re){try{if(["x","X"].indexOf(B)>-1)return new Date((B==="X"?1e3:1)*ne);var Z=V(B)(ne),fe=Z.year,oe=Z.month,we=Z.day,Ye=Z.hours,ke=Z.minutes,xe=Z.seconds,Se=Z.milliseconds,i=Z.zone,T=Z.week,v=new Date,o=we||(fe||oe?1:v.getDate()),L=fe||v.getFullYear(),Y=0;fe&&!oe||(Y=oe>0?oe-1:v.getMonth());var b,O=Ye||0,q=ke||0,ue=xe||0,Fe=Se||0;return i?new Date(Date.UTC(L,Y,o,O,q,ue,Fe+60*i.offset*1e3)):G?new Date(Date.UTC(L,Y,o,O,q,ue,Fe)):(b=new Date(L,Y,o,O,q,ue,Fe),T&&(b=re(b).week(T).toDate()),b)}catch{return new Date("")}})(l,$,D,w),this.init(),H&&H!==!0&&(this.$L=this.locale(H).$L),x&&l!=this.format($)&&(this.$d=new Date("")),M={}}else if($ instanceof Array)for(var R=$.length,_=1;_<=R;_+=1){W[1]=$[_-1];var Q=w.apply(this,W);if(Q.isValid()){this.$d=Q.$d,this.$L=Q.$L,this.init();break}_===R&&(this.$d=new Date(""))}else k.call(this,S)}}}))})(de)),de.exports}var Xn=Gn();const sr=ze(Xn);var pe={exports:{}},En=pe.exports,ot;function jn(){return ot||(ot=1,(function(e,t){(function(n,r){e.exports=r()})(En,(function(){return function(n,r){var s=r.prototype,u=s.format;s.format=function(a){var m=this,M=this.$locale();if(!this.isValid())return u.bind(this)(a);var c=this.$utils(),f=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(U){switch(U){case"Q":return Math.ceil((m.$M+1)/3);case"Do":return M.ordinal(m.$D);case"gggg":return m.weekYear();case"GGGG":return m.isoWeekYear();case"wo":return M.ordinal(m.week(),"W");case"w":case"ww":return c.s(m.week(),U==="w"?1:2,"0");case"W":case"WW":return c.s(m.isoWeek(),U==="W"?1:2,"0");case"k":case"kk":return c.s(String(m.$H===0?24:m.$H),U==="k"?1:2,"0");case"X":return Math.floor(m.$d.getTime()/1e3);case"x":return m.$d.getTime();case"z":return"["+m.offsetName()+"]";case"zzz":return"["+m.offsetName("long")+"]";default:return U}}));return u.bind(this)(f)}}}))})(pe)),pe.exports}var Jn=jn();const cr=ze(Jn);export{nr as a,ur as b,lt as c,Ve as d,Ue as e,Wt as f,Ft as g,se as h,St as i,xt as j,De as k,he as l,rr as m,Ze as n,Ne as o,ve as p,or as q,ir as r,ie as s,ar as t,sr as u,cr as v};