@marimo-team/frontend 0.24.1-dev3 → 0.24.1-dev31

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 (590) hide show
  1. package/dist/assets/{CellStatus-B_dBNTJO.js → CellStatus-DdKYN88d.js} +1 -1
  2. package/dist/assets/{ConnectedDataExplorerComponent-DLvmqIcV.js → ConnectedDataExplorerComponent-CbTaTBJ8.js} +1 -1
  3. package/dist/assets/{JsonOutput-C5g_bqiZ.js → JsonOutput-htT793Wj.js} +7 -7
  4. package/dist/assets/LazyAnyLanguageCodeMirror-Bx0i_n8B.js +2 -0
  5. package/dist/assets/{MarimoErrorOutput-Cb0evuEp.js → MarimoErrorOutput-Db7coyFA.js} +7 -7
  6. package/dist/assets/{RenderHTML-BoN8Qu7U.js → RenderHTML-Cu5JtYZJ.js} +1 -1
  7. package/dist/assets/{RunButton-C3V3v58F.js → RunButton-BOnl_Dk8.js} +1 -1
  8. package/dist/assets/{abnfDiagram-N423BO3Z-BBbWbiyb.js → abnfDiagram-N423BO3Z-BhqlQxDe.js} +1 -1
  9. package/dist/assets/{add-cell-with-ai--yrESuLb.js → add-cell-with-ai-Chy4ITIT.js} +12 -12
  10. package/dist/assets/add-connection-dialog-DGYhyXo6.js +181 -0
  11. package/dist/assets/{agent-panel-i9R2vDC5.js → agent-panel--Nt4UmNj.js} +6 -6
  12. package/dist/assets/{ai-model-dropdown-Wvw4ot3v.js → ai-model-dropdown-BUCPZ0ND.js} +4 -4
  13. package/dist/assets/{any-language-editor-B92E_2Sy.js → any-language-editor-CV_jRt2A.js} +1 -1
  14. package/dist/assets/apl-sEsRK68R.js +1 -0
  15. package/dist/assets/app-config-button-BOxbrv3L.js +1 -0
  16. package/dist/assets/architecture-TIHT7OUA-CkB6_TwN.js +1 -0
  17. package/dist/assets/{architectureDiagram-T3A2C74G-DoGbg0qs.js → architectureDiagram-T3A2C74G-D_0znduP.js} +1 -1
  18. package/dist/assets/asciiarmor-CwCv7Lne.js +1 -0
  19. package/dist/assets/asn1-CuzWg-fh.js +1 -0
  20. package/dist/assets/{blob-XD7AvCQ1.js → blob-BVQSODqn.js} +1 -1
  21. package/dist/assets/{blockDiagram-VBNYF7ZC-Fapk5G8q.js → blockDiagram-VBNYF7ZC-DhnQkFJt.js} +1 -1
  22. package/dist/assets/brainfuck-CnnfS_cI.js +1 -0
  23. package/dist/assets/{c4Diagram-5PPSVZJV-DHpoGw8m.js → c4Diagram-5PPSVZJV-DAZWLixJ.js} +1 -1
  24. package/dist/assets/{cell-editor-CrWparei.js → cell-editor-DgOfL9Xv.js} +15 -15
  25. package/dist/assets/cell-link-Bx8FWjns.js +1 -0
  26. package/dist/assets/{cells-BvgwUKB9.js → cells-Biwqg0z6.js} +80 -80
  27. package/dist/assets/channel-97-i68Z5.js +1 -0
  28. package/dist/assets/{chat-display-CvI32cPI.js → chat-display-B2qUbgnh.js} +1 -1
  29. package/dist/assets/{chat-panel-nbCWEZX-.js → chat-panel-gxL2S-HQ.js} +2 -2
  30. package/dist/assets/{chat-ui-BmrjRgsi.js → chat-ui-BhnwgDpa.js} +1 -1
  31. package/dist/assets/{chunk-2GRJ4B5K-B92Uwj7z.js → chunk-2GRJ4B5K-BJlW2T7a.js} +1 -1
  32. package/dist/assets/{chunk-2Q5K7J3B-CjxRf8HM.js → chunk-2Q5K7J3B-BKHkc-hn.js} +1 -1
  33. package/dist/assets/{chunk-3NCLNEKW-D7adDEkj.js → chunk-3NCLNEKW-DYppyU2y.js} +1 -1
  34. package/dist/assets/{chunk-4I5QYGJK-Cce-HuZg.js → chunk-4I5QYGJK-o2gGFKEO.js} +1 -1
  35. package/dist/assets/{chunk-5FCAYU7R-BJ04i5uO.js → chunk-5FCAYU7R-B4Jz9Jv5.js} +1 -1
  36. package/dist/assets/{chunk-5FQGJX7Z-B4N_BMo6.js → chunk-5FQGJX7Z-BIDn9QG0.js} +2 -2
  37. package/dist/assets/{chunk-5HE753X5-DRFzJ7WN.js → chunk-5HE753X5-DySWu3WO.js} +1 -1
  38. package/dist/assets/{chunk-5JV3BV7I-BEi9dboc.js → chunk-5JV3BV7I-EFAb-cXP.js} +1 -1
  39. package/dist/assets/{chunk-5RXB4S5H-B63Jmiyu.js → chunk-5RXB4S5H-Bsyeqyau.js} +1 -1
  40. package/dist/assets/{chunk-5TONJI2A-C5JJwzzL.js → chunk-5TONJI2A-BtGpymP5.js} +1 -1
  41. package/dist/assets/{chunk-5VM5RSS4-CQG8Gkf2.js → chunk-5VM5RSS4-De48wE7I.js} +1 -1
  42. package/dist/assets/{chunk-6Q2QTUOP-CjNw1snm.js → chunk-6Q2QTUOP-UhOQcBq_.js} +1 -1
  43. package/dist/assets/{chunk-7BUUIJ7U-DFO0zbY5.js → chunk-7BUUIJ7U-VPkRElaC.js} +1 -1
  44. package/dist/assets/{chunk-7Z6QIM7H-BahVaiTb.js → chunk-7Z6QIM7H-CSiw9nlS.js} +1 -1
  45. package/dist/assets/{chunk-BIQX33UG-B1y9dy0P.js → chunk-BIQX33UG-Clm0kIyq.js} +1 -1
  46. package/dist/assets/{chunk-CQNSW5MT-BOOyLCfW.js → chunk-CQNSW5MT-CxPDGEiS.js} +1 -1
  47. package/dist/assets/{chunk-CYSBUYHQ-DAWZpY6r.js → chunk-CYSBUYHQ-Cx6JgR38.js} +1 -1
  48. package/dist/assets/{chunk-EMLP6XTP-Bj2I2iEi.js → chunk-EMLP6XTP-DrNgCa2u.js} +1 -1
  49. package/dist/assets/{chunk-GF5L2VYU-BA39vN3k.js → chunk-GF5L2VYU-B88HnHN4.js} +1 -1
  50. package/dist/assets/{chunk-I66GZJ75-CgJN5WrL.js → chunk-I66GZJ75-BWcitPjS.js} +3 -3
  51. package/dist/assets/{chunk-J7OUQ5F2-DK5phbYO.js → chunk-J7OUQ5F2-DuBXnQXx.js} +2 -2
  52. package/dist/assets/{chunk-JG7HCLWE-BEfUAeKb.js → chunk-JG7HCLWE-D4-rg2bS.js} +1 -1
  53. package/dist/assets/{chunk-JQJVKLGR-vTeSeIY7.js → chunk-JQJVKLGR-L5fl0mYk.js} +1 -1
  54. package/dist/assets/{chunk-JWPE2WC7-C-mBVSJi.js → chunk-JWPE2WC7-CIIO5B1k.js} +1 -1
  55. package/dist/assets/{chunk-KBJHAD2P-BKxl1MSu.js → chunk-KBJHAD2P-MvrqGNli.js} +1 -1
  56. package/dist/assets/{chunk-MOZMSUNE-C-RMDvp_.js → chunk-MOZMSUNE-t37mHxNa.js} +1 -1
  57. package/dist/assets/{chunk-NSK5VX7P-bxC5WUDr.js → chunk-NSK5VX7P-B_lLBcNS.js} +1 -1
  58. package/dist/assets/{chunk-OSBZ3O6U-DEYDoDYT.js → chunk-OSBZ3O6U-3f38erx3.js} +1 -1
  59. package/dist/assets/{chunk-QBLGF6JB-CBncH5PS.js → chunk-QBLGF6JB-CHob4JDY.js} +1 -1
  60. package/dist/assets/{chunk-QR6OTTB3-gGVLoYpg.js → chunk-QR6OTTB3-Xk5It1Th.js} +1 -1
  61. package/dist/assets/{chunk-R7FJI6CG-DWxNgy5y.js → chunk-R7FJI6CG-ClJ6eR5G.js} +1 -1
  62. package/dist/assets/{chunk-RYQCIY6F-DkXJx61e.js → chunk-RYQCIY6F-CZjjwaqg.js} +1 -1
  63. package/dist/assets/{chunk-U6XO7XAA-DWWxQ-OA.js → chunk-U6XO7XAA-Ct1fe-tp.js} +1 -1
  64. package/dist/assets/{chunk-UBXNYLIW-elhI8GOz.js → chunk-UBXNYLIW-XbwBj9py.js} +1 -1
  65. package/dist/assets/{chunk-W5SLKNZC-D_QNHYYQ.js → chunk-W5SLKNZC-DBMPI1Hf.js} +1 -1
  66. package/dist/assets/{chunk-WRU74C26-BU1GwH6E.js → chunk-WRU74C26-HbDQnuwB.js} +1 -1
  67. package/dist/assets/{chunk-XXDRQBXY-D_KNH1wc.js → chunk-XXDRQBXY-DyGGngH3.js} +1 -1
  68. package/dist/assets/{chunk-YOTPTUD7-Nm5N45o4.js → chunk-YOTPTUD7-CC6lxUuz.js} +1 -1
  69. package/dist/assets/{chunk-ZIRB5QZD-DKs4kfC7.js → chunk-ZIRB5QZD-Giz-iAOC.js} +1 -1
  70. package/dist/assets/classDiagram-JCYQIIEL-Bi4N77rq.js +1 -0
  71. package/dist/assets/classDiagram-v2-OCEON4UE-DDmVp-9r.js +1 -0
  72. package/dist/assets/{clike-BAN6KopO.js → clike-tfWZyYoN.js} +1 -1
  73. package/dist/assets/clojure-Bninbb7T.js +1 -0
  74. package/dist/assets/cmake-BpuaQxBS.js +1 -0
  75. package/dist/assets/cobol-GPJ0dHQG.js +1 -0
  76. package/dist/assets/{code-block-37QAKDTI-DYj4t0uu.js → code-block-37QAKDTI-CxkZZ2yu.js} +1 -1
  77. package/dist/assets/coffeescript-D7gQHdB-.js +1 -0
  78. package/dist/assets/{column-preview-DMqGohE5.js → column-preview-BaRqZ9P8.js} +1 -1
  79. package/dist/assets/{command-palette-DCAiZSda.js → command-palette-Cbie8JV9.js} +1 -1
  80. package/dist/assets/{common-Dx_4ekWj.js → common-sBRwGAKy.js} +1 -1
  81. package/dist/assets/commonlisp-Cr4KGe18.js +1 -0
  82. package/dist/assets/{components-CozWCL5N.js → components-CGGSwziZ.js} +1 -1
  83. package/dist/assets/components-DsJAWbBR.js +1 -0
  84. package/dist/assets/{cose-bilkent-JH36ORCC-BItWxPmu.js → cose-bilkent-JH36ORCC-Bgowgmmd.js} +1 -1
  85. package/dist/assets/crystal-CsTMAwME.js +1 -0
  86. package/dist/assets/{css-DWLxGm3Z.js → css-COZ77Eal.js} +1 -1
  87. package/dist/assets/cynefin-VYW2F7L2-mNpr4SbP.js +1 -0
  88. package/dist/assets/{cynefinDiagram-MW4NZA55-xRolnN9H.js → cynefinDiagram-MW4NZA55-BjhYqu92.js} +1 -1
  89. package/dist/assets/cypher-CY21sZiF.js +1 -0
  90. package/dist/assets/d-CURHSrpr.js +1 -0
  91. package/dist/assets/{dagre-VZM6K2ZE--7CAsOPi.js → dagre-VZM6K2ZE-BEuyIkT6.js} +1 -1
  92. package/dist/assets/{data-grid-overlay-editor-CP2bSduR.js → data-grid-overlay-editor-BQUij2ly.js} +1 -1
  93. package/dist/assets/data-source-discovery-DCNYJylO.js +1 -0
  94. package/dist/assets/{datasource-Le540Ng6.js → datasource-DxCwZdAq.js} +2 -2
  95. package/dist/assets/dependency-graph-panel-CLOQ_RvL.js +5 -0
  96. package/dist/assets/{diagram-7IWD3JNH-B55VSdpL.js → diagram-7IWD3JNH-Bs3lgu-c.js} +1 -1
  97. package/dist/assets/{diagram-B4RE2ZJO-BDn7ASqI.js → diagram-B4RE2ZJO-Dth7brNz.js} +1 -1
  98. package/dist/assets/{diagram-LBJQPF4R-B51MZG2V.js → diagram-LBJQPF4R-BTVLtL0d.js} +1 -1
  99. package/dist/assets/{diagram-Q27KOJAE-Cwk0Mlin.js → diagram-Q27KOJAE-CP204u9a.js} +1 -1
  100. package/dist/assets/{diagram-UB23O5K3-BdYFaMnx.js → diagram-UB23O5K3-ClHQzHar.js} +1 -1
  101. package/dist/assets/diff-oDNdZgsT.js +1 -0
  102. package/dist/assets/dist-2VJQDijP.js +1 -0
  103. package/dist/assets/{dist-etjVl5BO.js → dist-BB2m_pT9.js} +1 -1
  104. package/dist/assets/{dist-CAHB5I2V.js → dist-BIoV7ItK.js} +1 -1
  105. package/dist/assets/{dist-D5yi7Y8o.js → dist-BKZjRJh7.js} +1 -1
  106. package/dist/assets/dist-BSndAsl2.js +1 -0
  107. package/dist/assets/{dist-CF4ci481.js → dist-BrBdlR-1.js} +1 -1
  108. package/dist/assets/dist-CULUasdr.js +1 -0
  109. package/dist/assets/{dist-CG7o1Txo.js → dist-CgdeWOxv.js} +1 -1
  110. package/dist/assets/{dist-x-uwJAB2.js → dist-D7Pn6TvC.js} +1 -1
  111. package/dist/assets/{dist-Ci0ANOWc.js → dist-DoCsyl8V.js} +1 -1
  112. package/dist/assets/{dist-BhAom09b.js → dist-Q_HuxBl8.js} +1 -1
  113. package/dist/assets/{dist-UMYZc9Uw.js → dist-URSEPeIQ.js} +1 -1
  114. package/dist/assets/dist-e3TiiDdA.js +1 -0
  115. package/dist/assets/{dist-0tTkix79.js → dist-gKSpDGw2.js} +1 -1
  116. package/dist/assets/{dist-5AUFDACg.js → dist-ziD6OB9m.js} +1 -1
  117. package/dist/assets/{dockerfile-vQlfzaHL.js → dockerfile-L84t-MVG.js} +1 -1
  118. package/dist/assets/{documentation-panel-RJNMjUK6.js → documentation-panel-D9w8PAT9.js} +1 -1
  119. package/dist/assets/{download-B8NwKEtr.js → download-CfUkZlw7.js} +1 -1
  120. package/dist/assets/dtd-Cy2_BeYL.js +1 -0
  121. package/dist/assets/dylan-Crd9Fb_0.js +1 -0
  122. package/dist/assets/{ebnfDiagram-BXEA7PRR-BeNZBLGl.js → ebnfDiagram-BXEA7PRR-D5itfLTD.js} +1 -1
  123. package/dist/assets/ecl-CfCmFoo0.js +1 -0
  124. package/dist/assets/{edit-page-CvL5WAqs.js → edit-page-DKAg2YW9.js} +6 -6
  125. package/dist/assets/eiffel-gIaoJqnl.js +1 -0
  126. package/dist/assets/elm-BFWuf0zw.js +1 -0
  127. package/dist/assets/{erDiagram-JOGREHBK-Md316MnW.js → erDiagram-JOGREHBK-8nttFkHX.js} +1 -1
  128. package/dist/assets/erlang-o_h5GHv6.js +1 -0
  129. package/dist/assets/{error-entries-yYB8PZoo.js → error-entries-DpvSrZSw.js} +3 -3
  130. package/dist/assets/{error-panel-Dr928gBs.js → error-panel-uRl1_l47.js} +1 -1
  131. package/dist/assets/{esm-CpCa6w8Q.js → esm-B7G79VOo.js} +1 -1
  132. package/dist/assets/eventmodeling-45OFAUF4-CmCnqr0B.js +1 -0
  133. package/dist/assets/factor-DhP48x0i.js +1 -0
  134. package/dist/assets/{factor-D96xahcJ.js → factor-aNENtHLj.js} +1 -1
  135. package/dist/assets/file-explorer-panel-DwA9Lprz.js +37 -0
  136. package/dist/assets/{file-icons-D39zbjsS.js → file-icons-DpREEjwW.js} +1 -1
  137. package/dist/assets/{file-name-input-BLH5fTEA.js → file-name-input-C7AQKuoU.js} +1 -1
  138. package/dist/assets/{floating-outline-UPrDtFZF.js → floating-outline-4I6DvqaR.js} +1 -1
  139. package/dist/assets/flowDiagram-UKHOOZJN-BBKoHcjJ.js +1 -0
  140. package/dist/assets/{focus-BArgHYf8.js → focus-CeTtpVjV.js} +1 -1
  141. package/dist/assets/{form-BvzcNsxB.js → form-B10bgcbQ.js} +1 -1
  142. package/dist/assets/{form-BN1AKD58.js → form-Cj9BLARR.js} +1 -1
  143. package/dist/assets/forth-B9culvwH.js +1 -0
  144. package/dist/assets/fortran-P9CMHntW.js +1 -0
  145. package/dist/assets/{ganttDiagram-PKOTCBZU-ZWAQtEyO.js → ganttDiagram-PKOTCBZU-lYZ3LZM4.js} +1 -1
  146. package/dist/assets/gas-aBeBIUA2.js +1 -0
  147. package/dist/assets/gherkin-BKojMN6Q.js +1 -0
  148. package/dist/assets/gitGraph-TEB2WS4Q-lhsXnAif.js +1 -0
  149. package/dist/assets/{gitGraphDiagram-DS77QQ5N-BLejYVyQ.js → gitGraphDiagram-DS77QQ5N-BMWEqU01.js} +1 -1
  150. package/dist/assets/{glide-data-editor-BNZxtmKn.js → glide-data-editor-Bo6hLXbn.js} +6 -6
  151. package/dist/assets/groovy-CePAd7wh.js +1 -0
  152. package/dist/assets/haskell-QHmsrbZx.js +1 -0
  153. package/dist/assets/haxe-CQV_8vKL.js +1 -0
  154. package/dist/assets/{home-page-DcO0NzuV.js → home-page-BNJihtii.js} +2 -2
  155. package/dist/assets/{html-to-image-DKEUbBwc.js → html-to-image-ChfBVn8-.js} +1 -1
  156. package/dist/assets/idl-Dd8N44Cm.js +1 -0
  157. package/dist/assets/index-CxZ6uZaz.css +2 -0
  158. package/dist/assets/index-DemYxG9z.js +38 -0
  159. package/dist/assets/info-DKCQHKI2-C7T8UDyU.js +1 -0
  160. package/dist/assets/infoDiagram-6WML65LV-DF1s-6Vl.js +2 -0
  161. package/dist/assets/{ishikawaDiagram-WSZJBQD7-DsUyhPdP.js → ishikawaDiagram-WSZJBQD7-DaG24pVU.js} +1 -1
  162. package/dist/assets/javascript-DSNeo7JU.js +1 -0
  163. package/dist/assets/{journeyDiagram-NVQOT4AX-Dtytysty.js → journeyDiagram-NVQOT4AX-Bjv5KPQN.js} +1 -1
  164. package/dist/assets/julia-noK_uk9P.js +1 -0
  165. package/dist/assets/{kanban-definition-27J2QSJJ-CtSUWi1q.js → kanban-definition-27J2QSJJ-3QfkEp5c.js} +1 -1
  166. package/dist/assets/katex-D7rQd2tt.js +1 -0
  167. package/dist/assets/{layout-C5In1pVG.js → layout-YPBtS2D6.js} +5 -5
  168. package/dist/assets/livescript-YKkeujLh.js +1 -0
  169. package/dist/assets/{logs-panel-DItocggZ.js → logs-panel-ClE58_4G.js} +1 -1
  170. package/dist/assets/{loro_wasm_bg-Cei5H7n0.js → loro_wasm_bg-Bhj1szFH.js} +1 -1
  171. package/dist/assets/lua-fLqC1mOj.js +1 -0
  172. package/dist/assets/{markdown-renderer-D7RLn6TA.js → markdown-renderer-BOS4jZLt.js} +3 -3
  173. package/dist/assets/mathematica-BEqGrvB0.js +1 -0
  174. package/dist/assets/mbox-9uehSvC8.js +1 -0
  175. package/dist/assets/{mermaid-4DMBBIKO-oaGD2RAq.js → mermaid-4DMBBIKO-VnWrwEGQ.js} +1 -1
  176. package/dist/assets/{mermaid-D7qPJTl5.js → mermaid-DrH-G40O.js} +3 -3
  177. package/dist/assets/{mermaid-parser.core-C1pvq6V4.js → mermaid-parser.core-7L0n-40M.js} +2 -2
  178. package/dist/assets/{mhchem-ByBXJmVs.js → mhchem-jUQ3W9QS.js} +1 -1
  179. package/dist/assets/{mindmap-definition-FAOFIHXS-BdiofJNg.js → mindmap-definition-FAOFIHXS-BI-5PR09.js} +1 -1
  180. package/dist/assets/mirc-BTX_WxCv.js +1 -0
  181. package/dist/assets/mllike-LThTvO6F.js +1 -0
  182. package/dist/assets/modelica-ClexNQK-.js +1 -0
  183. package/dist/assets/mscgen-Cr-Z_Sdd.js +1 -0
  184. package/dist/assets/mumps-G_BfPdvs.js +1 -0
  185. package/dist/assets/{name-cell-input-jausH-CL.js → name-cell-input-UMsLssMV.js} +1 -1
  186. package/dist/assets/nsis-CBRC0JIr.js +1 -0
  187. package/dist/assets/{nsis-gzbsJ5t0.js → nsis-CNBWu0HQ.js} +1 -1
  188. package/dist/assets/ntriples-DrvRq09t.js +1 -0
  189. package/dist/assets/{number-overlay-editor-CrwfeUrx.js → number-overlay-editor-C-zZ00cy.js} +1 -1
  190. package/dist/assets/octave-BiPC57kS.js +1 -0
  191. package/dist/assets/{outline-panel-C_pASL6b.js → outline-panel-DweKocZK.js} +1 -1
  192. package/dist/assets/oz-DacpSh-q.js +1 -0
  193. package/dist/assets/{packages-panel-DTqur75g.js → packages-panel-Cbw5J5QD.js} +1 -1
  194. package/dist/assets/packet-7NZHBO7P-CJZ85ye7.js +1 -0
  195. package/dist/assets/panel-accordion-state-CgvX-ElJ.js +1 -0
  196. package/dist/assets/panels-DRv39UwA.js +4 -0
  197. package/dist/assets/pascal-BQpBPSms.js +1 -0
  198. package/dist/assets/{pegDiagram-VL7TDLO6-CUhl_uoo.js → pegDiagram-VL7TDLO6-Dr2AgOs7.js} +1 -1
  199. package/dist/assets/perl-BhMGfluR.js +1 -0
  200. package/dist/assets/pie-RZYD4A2V-DowYgF53.js +1 -0
  201. package/dist/assets/{pieDiagram-7S7Q4E2Y-BUJuppkz.js → pieDiagram-7S7Q4E2Y-CrBge38F.js} +1 -1
  202. package/dist/assets/pig-lTm9qLoi.js +1 -0
  203. package/dist/assets/powershell-3wPcC3I5.js +1 -0
  204. package/dist/assets/{process-output-ClE9lj2U.js → process-output-BMxr8Z3g.js} +1 -1
  205. package/dist/assets/properties-CfDlOPua.js +1 -0
  206. package/dist/assets/protobuf-DqtB_3Ds.js +1 -0
  207. package/dist/assets/pug-BendPilS.js +1 -0
  208. package/dist/assets/{pug-CfBtO6QD.js → pug-IDpseMj2.js} +1 -1
  209. package/dist/assets/puppet-CS4oS8k4.js +1 -0
  210. package/dist/assets/python-DwXz2aVG.js +1 -0
  211. package/dist/assets/q-CAmiN8ZZ.js +1 -0
  212. package/dist/assets/{quadrantDiagram-CIZ2JOQS-D1kqQfB1.js → quadrantDiagram-CIZ2JOQS-BE2ggXL5.js} +1 -1
  213. package/dist/assets/r-BVrS7OVn.js +1 -0
  214. package/dist/assets/radar-I7S5WNFK-CTSSWmoj.js +1 -0
  215. package/dist/assets/{radio-group-CSwRGU0A.js → radio-group-YNmbPL7y.js} +1 -1
  216. package/dist/assets/railroad-3IZDKUUU-B7NYUsSF.js +1 -0
  217. package/dist/assets/railroad-abnf-AHOZXSZD-YHDI2QY9.js +1 -0
  218. package/dist/assets/railroad-ebnf-EBAXGLYW-C63c8OB7.js +1 -0
  219. package/dist/assets/railroad-peg-LSFZ7HO6-Cjglh51C.js +1 -0
  220. package/dist/assets/{railroadDiagram-AXF67PYL-A0Qm-6po.js → railroadDiagram-AXF67PYL-DCQRdlxt.js} +1 -1
  221. package/dist/assets/{readonly-code-display-kRUXu5aJ.js → readonly-code-display-N9tCXdCz.js} +1 -1
  222. package/dist/assets/{readonly-python-code-BCOkadQf.js → readonly-python-code-BHrAhtGV.js} +1 -1
  223. package/dist/assets/{requirementDiagram-LRYGKXZP-Cq2ghiHc.js → requirementDiagram-LRYGKXZP-DwT1P9SV.js} +1 -1
  224. package/dist/assets/{reveal-component-DpjFw5UY.js → reveal-component-Cl6cd65E.js} +2 -2
  225. package/dist/assets/rpm-CdnUar42.js +1 -0
  226. package/dist/assets/ruby-BCel59B2.js +1 -0
  227. package/dist/assets/{run-page-BXPaOWqZ.js → run-page-Phwq7OJt.js} +1 -1
  228. package/dist/assets/{sankeyDiagram-W5VNT64P-RT9P6FJq.js → sankeyDiagram-W5VNT64P-DI3BRqfo.js} +1 -1
  229. package/dist/assets/sas-BmzKenFt.js +1 -0
  230. package/dist/assets/scheme-DkHD_m5P.js +1 -0
  231. package/dist/assets/{scratchpad-panel-GyB5PjiV.js → scratchpad-panel-CvihhlAP.js} +1 -1
  232. package/dist/assets/{sequenceDiagram-SI44F4Z6-Dk9UNsG3.js → sequenceDiagram-SI44F4Z6-BBkZRxiN.js} +1 -1
  233. package/dist/assets/session-panel-BmQ0PDHO.js +1 -0
  234. package/dist/assets/shell-BoNNN3zm.js +1 -0
  235. package/dist/assets/sieve-BXXK8f92.js +1 -0
  236. package/dist/assets/{sizeCapture-X5ZJPWSS-ce6Hf1Mn.js → sizeCapture-X5ZJPWSS-BwnqWK01.js} +1 -1
  237. package/dist/assets/{skeleton-CHVfqr51.js → skeleton-BsZq3Vmq.js} +1 -1
  238. package/dist/assets/smalltalk-BOqQhpHI.js +1 -0
  239. package/dist/assets/{snippets-panel-V4x4wLMQ.js → snippets-panel-cYP0GMUf.js} +1 -1
  240. package/dist/assets/sparql-edyZVkfL.js +1 -0
  241. package/dist/assets/spec-C_psFYbu.js +1 -0
  242. package/dist/assets/{src-Be2gSjc_.js → src-BydIU0H9.js} +1 -1
  243. package/dist/assets/{state-m2zUPztG.js → state-DJon00Ew.js} +1 -1
  244. package/dist/assets/{state-C7arWhwL.js → state-Dc5AjWPq.js} +2 -2
  245. package/dist/assets/{stateDiagram-OKZ733FA-b4p2-xPQ.js → stateDiagram-OKZ733FA-CKgejYo0.js} +1 -1
  246. package/dist/assets/stateDiagram-v2-UEYNNEHI-DGOHmIHi.js +1 -0
  247. package/dist/assets/stylus-D7JxHbZj.js +1 -0
  248. package/dist/assets/swift-BVf4glc7.js +1 -0
  249. package/dist/assets/{swimlanes-SLNWSIFB-BU8BFEOR.js → swimlanes-SLNWSIFB-CaRk1UjW.js} +2 -2
  250. package/dist/assets/swimlanesDiagram-ULZ7WXOC-B3waQOQb.js +8 -0
  251. package/dist/assets/tcl-Dj0fCfAi.js +1 -0
  252. package/dist/assets/textile-C2t_E40o.js +1 -0
  253. package/dist/assets/{timeline-definition-Z64GVDOM-D1kTYo17.js → timeline-definition-Z64GVDOM-eczfm7Uw.js} +1 -1
  254. package/dist/assets/toml-DaFUQW6l.js +1 -0
  255. package/dist/assets/{tracing-Cmwuiwj9.js → tracing-dGSNt8Nm.js} +1 -1
  256. package/dist/assets/{tracing-panel-CCXeYfOu.js → tracing-panel-CQCgx3e4.js} +2 -2
  257. package/dist/assets/{tree-actions-QMLf8Qhz.js → tree-actions-pW_UgP3m.js} +1 -1
  258. package/dist/assets/treeView-QDETBFTQ-CSvxEE7M.js +1 -0
  259. package/dist/assets/treemap-6X3UGDF4-CmweKwGi.js +1 -0
  260. package/dist/assets/troff-CYzkeKir.js +1 -0
  261. package/dist/assets/ttcn-CXYORWfg.js +1 -0
  262. package/dist/assets/ttcn-cfg-CaYX34bx.js +1 -0
  263. package/dist/assets/turtle-5bfs3D9s.js +1 -0
  264. package/dist/assets/{useCellActionButton-D8qyXNKv.js → useCellActionButton-De17Z9R3.js} +1 -1
  265. package/dist/assets/{useDeleteCell-Ctnxl8AT.js → useDeleteCell-BgFMPTmg.js} +1 -1
  266. package/dist/assets/{useDependencyPanelTab-CYSEZi6j.js → useDependencyPanelTab-w8VLtsK3.js} +1 -1
  267. package/dist/assets/{useNotebookActions-CxMrxNFT.js → useNotebookActions-BI53NQV3.js} +4 -4
  268. package/dist/assets/{useRunCells-DjQN3XYP.js → useRunCells-CAfRBo7h.js} +1 -1
  269. package/dist/assets/{useSplitCell-BG8Zd4lw.js → useSplitCell-N8Ohs-Pp.js} +1 -1
  270. package/dist/assets/{utils-Y4n-X10o.js → utils-Bp3MLwWq.js} +1 -1
  271. package/dist/assets/vb-CXQ5pSkV.js +1 -0
  272. package/dist/assets/vbscript-BZP_4BaN.js +1 -0
  273. package/dist/assets/{vega-component-1VoQOWvU.js → vega-component-DpKA6PEU.js} +1 -1
  274. package/dist/assets/{vega-embed-container-CH1lX0V6.js → vega-embed-container-D0V0wn9T.js} +1 -1
  275. package/dist/assets/velocity-BbHSi60j.js +1 -0
  276. package/dist/assets/{vennDiagram-T6HMQDX7-BhQR7L7x.js → vennDiagram-T6HMQDX7-BKrC4vk_.js} +1 -1
  277. package/dist/assets/verilog-Bw8NaRo-.js +1 -0
  278. package/dist/assets/vhdl-CkM1aKBX.js +1 -0
  279. package/dist/assets/wardley-OPB4EBWU-DKu5fTFq.js +1 -0
  280. package/dist/assets/{wardleyDiagram-T6FBY63Y-C6iZTOEK.js → wardleyDiagram-T6FBY63Y-BsBjXAQS.js} +1 -1
  281. package/dist/assets/webidl-C8MAcuKq.js +1 -0
  282. package/dist/assets/xquery-a81J2h4S.js +1 -0
  283. package/dist/assets/{xychartDiagram-ELKLHX3M-Hl9zZZJW.js → xychartDiagram-ELKLHX3M-i4ykddaR.js} +1 -1
  284. package/dist/assets/yacas-CjV2u_g7.js +1 -0
  285. package/dist/assets/z80-C0uVpBhe.js +1 -0
  286. package/dist/index.html +28 -28
  287. package/package.json +1 -1
  288. package/src/components/app-config/optional-features.test.ts +78 -0
  289. package/src/components/app-config/optional-features.tsx +33 -6
  290. package/src/components/data-table/__tests__/column_formatting.test.ts +7 -0
  291. package/src/components/data-table/charts/__tests__/schemas.test.ts +17 -2
  292. package/src/components/data-table/charts/chart-spec/types.ts +2 -0
  293. package/src/components/data-table/column-formatting/feature.ts +1 -0
  294. package/src/components/data-table/column-formatting/types.ts +1 -0
  295. package/src/components/data-table/column-summary/chart-spec-model.tsx +1 -0
  296. package/src/components/data-table/column-summary/column-summary.tsx +1 -0
  297. package/src/components/data-table/columns.tsx +4 -3
  298. package/src/components/datasets/__tests__/icons.test.ts +10 -2
  299. package/src/components/datasets/icons.tsx +4 -0
  300. package/src/components/datasources/__tests__/components.test.tsx +14 -1
  301. package/src/components/datasources/datasources.tsx +2 -40
  302. package/src/components/editor/chrome/panels/components.tsx +35 -0
  303. package/src/components/editor/chrome/panels/file-explorer-panel.tsx +10 -0
  304. package/src/components/editor/chrome/panels/session-panel.tsx +12 -4
  305. package/src/components/editor/connections/__tests__/quick-add-data-sources.test.tsx +2 -0
  306. package/src/components/editor/connections/add-connection-dialog.tsx +5 -1
  307. package/src/components/editor/connections/quick-add-data-sources.tsx +11 -7
  308. package/src/components/editor/connections/storage/__tests__/__snapshots__/as-code.test.ts.snap +43 -0
  309. package/src/components/editor/connections/storage/__tests__/as-code.test.ts +127 -0
  310. package/src/components/editor/connections/storage/add-storage-form.tsx +11 -1
  311. package/src/components/editor/connections/storage/as-code.ts +30 -1
  312. package/src/components/editor/connections/storage/schemas.ts +63 -0
  313. package/src/core/codemirror/code-lens/__tests__/popover.test.ts +13 -0
  314. package/src/core/codemirror/code-lens/popover.tsx +11 -5
  315. package/src/core/codemirror/language/languages/sql/__tests__/renderers.test.tsx +15 -4
  316. package/src/core/codemirror/language/languages/sql/renderers.tsx +1 -0
  317. package/src/core/datasets/__tests__/data-source-discovery.test.ts +277 -0
  318. package/src/core/datasets/data-source-connections.ts +36 -0
  319. package/src/core/datasets/data-source-discovery.ts +92 -0
  320. package/src/core/kernel/messages.ts +1 -0
  321. package/src/core/websocket/useMarimoKernelConnection.tsx +11 -3
  322. package/src/hooks/useDataSourceDiscovery.ts +50 -9
  323. package/src/plugins/impl/MatrixPlugin.tsx +256 -35
  324. package/src/plugins/impl/__tests__/DataEditorPlugin.test.ts +13 -1
  325. package/src/plugins/impl/__tests__/MatrixPlugin.test.tsx +540 -3
  326. package/src/plugins/impl/data-editor/glide-data-editor.tsx +1 -0
  327. package/src/plugins/impl/data-editor/glide-utils.ts +1 -0
  328. package/src/plugins/impl/data-frames/__tests__/schema.test.ts +9 -1
  329. package/src/plugins/impl/data-frames/utils/__tests__/operators.test.ts +8 -0
  330. package/src/plugins/impl/data-frames/utils/operators.ts +1 -1
  331. package/src/plugins/impl/matplotlib/__tests__/matplotlib-renderer.test.ts +184 -24
  332. package/src/plugins/impl/matplotlib/matplotlib-renderer.ts +40 -7
  333. package/src/plugins/impl/vega/__tests__/vega.test.ts +22 -4
  334. package/src/plugins/impl/vega/utils.ts +3 -0
  335. package/dist/assets/LazyAnyLanguageCodeMirror-DUvRReKp.js +0 -2
  336. package/dist/assets/add-connection-dialog-DHyonb9T.js +0 -178
  337. package/dist/assets/apl-B-7blH-b.js +0 -1
  338. package/dist/assets/app-config-button-DnmQED8O.js +0 -1
  339. package/dist/assets/architecture-TIHT7OUA-YhortkiJ.js +0 -1
  340. package/dist/assets/asciiarmor-D3K8amZ9.js +0 -1
  341. package/dist/assets/asn1-UGGn98tp.js +0 -1
  342. package/dist/assets/brainfuck-B4y4U3tg.js +0 -1
  343. package/dist/assets/cell-link-WDIIwzUn.js +0 -1
  344. package/dist/assets/channel-B8YARzTa.js +0 -1
  345. package/dist/assets/classDiagram-JCYQIIEL-CjNLIEON.js +0 -1
  346. package/dist/assets/classDiagram-v2-OCEON4UE-DB1cPPS3.js +0 -1
  347. package/dist/assets/clojure-BAZ-ejkG.js +0 -1
  348. package/dist/assets/cmake-jWn0xN9y.js +0 -1
  349. package/dist/assets/cobol-XqY9jaWP.js +0 -1
  350. package/dist/assets/coffeescript-DI1jfZHX.js +0 -1
  351. package/dist/assets/commonlisp-UKb01OlU.js +0 -1
  352. package/dist/assets/components-DVs9Yu7X.js +0 -1
  353. package/dist/assets/crystal-DOvjTBWA.js +0 -1
  354. package/dist/assets/cynefin-VYW2F7L2-Dob7zmDv.js +0 -1
  355. package/dist/assets/cypher-CLDhu2ae.js +0 -1
  356. package/dist/assets/d-C0ecUZk9.js +0 -1
  357. package/dist/assets/dependency-graph-panel-BsdBM_AS.js +0 -5
  358. package/dist/assets/diff-657cCCVc.js +0 -1
  359. package/dist/assets/dist-BbNJKBqf.js +0 -1
  360. package/dist/assets/dist-CJU3fYUR.js +0 -1
  361. package/dist/assets/dist-ClAayqDs.js +0 -1
  362. package/dist/assets/dist-Dk7PW1P8.js +0 -1
  363. package/dist/assets/dtd-DSiK7Qgi.js +0 -1
  364. package/dist/assets/dylan-07d5-7Q9.js +0 -1
  365. package/dist/assets/ecl-CSTUHiwq.js +0 -1
  366. package/dist/assets/eiffel-DR99GcsM.js +0 -1
  367. package/dist/assets/elm-Cmh0iW6J.js +0 -1
  368. package/dist/assets/erlang-CS9Yc6UC.js +0 -1
  369. package/dist/assets/eventmodeling-45OFAUF4-Dfz56MmV.js +0 -1
  370. package/dist/assets/factor-DjB27Lcf.js +0 -1
  371. package/dist/assets/file-explorer-panel-Brf39GIG.js +0 -37
  372. package/dist/assets/flowDiagram-UKHOOZJN-DuIOw7R3.js +0 -1
  373. package/dist/assets/forth-UwTUu7NY.js +0 -1
  374. package/dist/assets/fortran-cptiB4gJ.js +0 -1
  375. package/dist/assets/gas-ajMbd9Us.js +0 -1
  376. package/dist/assets/gherkin-ClYkalzE.js +0 -1
  377. package/dist/assets/gitGraph-TEB2WS4Q-DHatMnz3.js +0 -1
  378. package/dist/assets/groovy-BY-gt7AW.js +0 -1
  379. package/dist/assets/haskell-D1BeJ7SR.js +0 -1
  380. package/dist/assets/haxe-QOq5WFXx.js +0 -1
  381. package/dist/assets/idl-3-UcEGx7.js +0 -1
  382. package/dist/assets/index-CXJA6BU5.js +0 -38
  383. package/dist/assets/index-WoaGtlKd.css +0 -2
  384. package/dist/assets/info-DKCQHKI2-DL5sXjlh.js +0 -1
  385. package/dist/assets/infoDiagram-6WML65LV-w0LSkwW5.js +0 -2
  386. package/dist/assets/javascript-CorD44JN.js +0 -1
  387. package/dist/assets/julia-BYqTtTAl.js +0 -1
  388. package/dist/assets/katex-DWt0esek.js +0 -1
  389. package/dist/assets/livescript-qYgfNnNE.js +0 -1
  390. package/dist/assets/lua-BCqCjdfz.js +0 -1
  391. package/dist/assets/mathematica-XKwMfn0d.js +0 -1
  392. package/dist/assets/mbox-BnkeOnif.js +0 -1
  393. package/dist/assets/mirc-ipoElhai.js +0 -1
  394. package/dist/assets/mllike-DmouQ5Dp.js +0 -1
  395. package/dist/assets/modelica-BtmmVsUf.js +0 -1
  396. package/dist/assets/mscgen-BHZmHZgz.js +0 -1
  397. package/dist/assets/mumps-oKfoFTl_.js +0 -1
  398. package/dist/assets/nsis-DDOPnuAW.js +0 -1
  399. package/dist/assets/ntriples-Dsyl_sOF.js +0 -1
  400. package/dist/assets/octave-CI5RGMPa.js +0 -1
  401. package/dist/assets/oz-D01pKAWx.js +0 -1
  402. package/dist/assets/packet-7NZHBO7P-Btbo_lPa.js +0 -1
  403. package/dist/assets/panel-accordion-state-DaMmC7UV.js +0 -1
  404. package/dist/assets/panels-B2LHXcJf.js +0 -4
  405. package/dist/assets/pascal-DGXfnIFD.js +0 -1
  406. package/dist/assets/perl-gZ7qIkF-.js +0 -1
  407. package/dist/assets/pie-RZYD4A2V-DHlhKt-c.js +0 -1
  408. package/dist/assets/pig-Cb90ayl-.js +0 -1
  409. package/dist/assets/powershell-_YxddSL3.js +0 -1
  410. package/dist/assets/properties-sU50dmvt.js +0 -1
  411. package/dist/assets/protobuf-DFdF-yfo.js +0 -1
  412. package/dist/assets/pug-DwUB-C24.js +0 -1
  413. package/dist/assets/puppet-DtKzwiZ6.js +0 -1
  414. package/dist/assets/python-BMLOKYmk.js +0 -1
  415. package/dist/assets/q-BF1zXMdP.js +0 -1
  416. package/dist/assets/r-BQiKhVSI.js +0 -1
  417. package/dist/assets/radar-I7S5WNFK-DZTiwd45.js +0 -1
  418. package/dist/assets/railroad-3IZDKUUU-DxAKHi3X.js +0 -1
  419. package/dist/assets/railroad-abnf-AHOZXSZD-DgPW-bTs.js +0 -1
  420. package/dist/assets/railroad-ebnf-EBAXGLYW-6hsaKhfa.js +0 -1
  421. package/dist/assets/railroad-peg-LSFZ7HO6-Sj3gnwID.js +0 -1
  422. package/dist/assets/rpm-v7UTuaHo.js +0 -1
  423. package/dist/assets/ruby-Cw43FpG3.js +0 -1
  424. package/dist/assets/sas-BIKscqlp.js +0 -1
  425. package/dist/assets/scheme-CGic3hSV.js +0 -1
  426. package/dist/assets/session-panel-CidCOM4_.js +0 -1
  427. package/dist/assets/shell-DAh545tm.js +0 -1
  428. package/dist/assets/sieve-bGkng63-.js +0 -1
  429. package/dist/assets/smalltalk-fIw53lm8.js +0 -1
  430. package/dist/assets/sparql-CHbJrAY_.js +0 -1
  431. package/dist/assets/spec-NeCHOv2Z.js +0 -1
  432. package/dist/assets/stateDiagram-v2-UEYNNEHI-DVggkZEP.js +0 -1
  433. package/dist/assets/stylus-3Q5WfXqT.js +0 -1
  434. package/dist/assets/swift-MKxc2knl.js +0 -1
  435. package/dist/assets/swimlanesDiagram-ULZ7WXOC-Dl8Izbnv.js +0 -8
  436. package/dist/assets/tcl-D3fKhQc_.js +0 -1
  437. package/dist/assets/textile-Bi_LEJQ3.js +0 -1
  438. package/dist/assets/toml-Dt-PBqwt.js +0 -1
  439. package/dist/assets/treeView-QDETBFTQ-DI-AuAry.js +0 -1
  440. package/dist/assets/treemap-6X3UGDF4-BikstUU5.js +0 -1
  441. package/dist/assets/troff-BSU-rxoD.js +0 -1
  442. package/dist/assets/ttcn-BmLjonVM.js +0 -1
  443. package/dist/assets/ttcn-cfg-TPTcP0Eh.js +0 -1
  444. package/dist/assets/turtle-HafmShQq.js +0 -1
  445. package/dist/assets/vb-CUif5uGR.js +0 -1
  446. package/dist/assets/vbscript-DWVPFl59.js +0 -1
  447. package/dist/assets/velocity-BJl8UzB4.js +0 -1
  448. package/dist/assets/verilog-B4LUPYXy.js +0 -1
  449. package/dist/assets/vhdl-C91h3ipk.js +0 -1
  450. package/dist/assets/wardley-OPB4EBWU-CeBjkYYY.js +0 -1
  451. package/dist/assets/webidl-DOay1zbU.js +0 -1
  452. package/dist/assets/xquery-Cez7jD_4.js +0 -1
  453. package/dist/assets/yacas-CSQEXB_S.js +0 -1
  454. package/dist/assets/z80-CJbYj7Wr.js +0 -1
  455. package/src/hooks/__tests__/useDataSourceDiscovery.test.ts +0 -80
  456. /package/dist/assets/{ImageComparisonComponent-BcnwhFjf.js → ImageComparisonComponent-f3_KuPvA.js} +0 -0
  457. /package/dist/assets/{Inputs-DrAa-p6i.js → Inputs-S6F4fq1S.js} +0 -0
  458. /package/dist/assets/{Plot-93LEWfvh.js → Plot-BKmsCw4V.js} +0 -0
  459. /package/dist/assets/{apl-CPlG1HX3.js → apl-HjCOpvY9.js} +0 -0
  460. /package/dist/assets/{asciiarmor-DV_pcocJ.js → asciiarmor-CZUdQ8YG.js} +0 -0
  461. /package/dist/assets/{asn1-DPxWcGvG.js → asn1-D9fbSxQp.js} +0 -0
  462. /package/dist/assets/{asterisk-1BK_fEUT.js → asterisk-GbGHf9GU.js} +0 -0
  463. /package/dist/assets/{brainfuck-CGDdBVNO.js → brainfuck-DoACnXtY.js} +0 -0
  464. /package/dist/assets/{chunk-KEIR6QF5-Dy1GNnFZ.js → chunk-KEIR6QF5-DALP8ow3.js} +0 -0
  465. /package/dist/assets/{chunk-Y2CYZVJY-Ci6ix4_L.js → chunk-Y2CYZVJY-BLNiTciS.js} +0 -0
  466. /package/dist/assets/{clear-button-D_bGby_-.js → clear-button-ChZ5WLVn.js} +0 -0
  467. /package/dist/assets/{click-outside-container-Ble4snjv.js → click-outside-container-B_JD95Fi.js} +0 -0
  468. /package/dist/assets/{clike-D91DrsBh.js → clike-BvT_OTqG.js} +0 -0
  469. /package/dist/assets/{clojure-B0eb_-2q.js → clojure-DObunWgq.js} +0 -0
  470. /package/dist/assets/{cmake-COzUvjiS.js → cmake-Bn1dmbG8.js} +0 -0
  471. /package/dist/assets/{cobol-DW4FSnmb.js → cobol-CJ0xj-s7.js} +0 -0
  472. /package/dist/assets/{coffeescript-CommR2mv.js → coffeescript-DSHpWjh8.js} +0 -0
  473. /package/dist/assets/{common-keywords-CL5lDC0w.js → common-keywords-DpBQRN1C.js} +0 -0
  474. /package/dist/assets/{commonlisp-FR_N9RJL.js → commonlisp-C8BmLRoV.js} +0 -0
  475. /package/dist/assets/{crystal-CAN7bz25.js → crystal-Ca8nJT--.js} +0 -0
  476. /package/dist/assets/{css-DmLg8a0m.js → css-CY56PGqI.js} +0 -0
  477. /package/dist/assets/{cypher-BzSJn05x.js → cypher-DkMgpwTD.js} +0 -0
  478. /package/dist/assets/{cytoscape.esm-DMX0DoYf.js → cytoscape.esm-ohuTJsWI.js} +0 -0
  479. /package/dist/assets/{d-UpmnByGo.js → d-De6gURe0.js} +0 -0
  480. /package/dist/assets/{diff-DRpitNo9.js → diff-D9jknSNL.js} +0 -0
  481. /package/dist/assets/{dist-CjgCY_Ws.js → dist-B8OryoSI.js} +0 -0
  482. /package/dist/assets/{dist-DcguuZEe.js → dist-B_Q1ayL4.js} +0 -0
  483. /package/dist/assets/{dist-BY5C0xw-.js → dist-BdgY02GB.js} +0 -0
  484. /package/dist/assets/{dist-5zzK1Bpl.js → dist-BpyRMlx3.js} +0 -0
  485. /package/dist/assets/{dist-Bp45OWJJ.js → dist-BvDn6jZn.js} +0 -0
  486. /package/dist/assets/{dist-CSEj3YUH.js → dist-C1_zNuc7.js} +0 -0
  487. /package/dist/assets/{dist-CYcHr3tv.js → dist-C3M1h1bY.js} +0 -0
  488. /package/dist/assets/{dist-iZqQ8eEZ.js → dist-CiELQ2ik.js} +0 -0
  489. /package/dist/assets/{dist-Op2xySIC.js → dist-CnESRnx2.js} +0 -0
  490. /package/dist/assets/{dist-SgSQKL07.js → dist-Cnb7x5X_.js} +0 -0
  491. /package/dist/assets/{dist-CqO2FBHV.js → dist-CtsSPT78.js} +0 -0
  492. /package/dist/assets/{dist-BQMAD-re.js → dist-DDuxOj5E.js} +0 -0
  493. /package/dist/assets/{dist-C3YC038-.js → dist-DXl-iyI_.js} +0 -0
  494. /package/dist/assets/{dist-VHnyClcl.js → dist-DcwGajoh.js} +0 -0
  495. /package/dist/assets/{dist-ChJa98Av.js → dist-M9OI1ywz.js} +0 -0
  496. /package/dist/assets/{dist-BTX2QySO.js → dist-oc6kOhWh.js} +0 -0
  497. /package/dist/assets/{dist-AhQW5KN1.js → dist-rcsCwDst.js} +0 -0
  498. /package/dist/assets/{dtd-CQV9N2ok.js → dtd-B5FJ4BXV.js} +0 -0
  499. /package/dist/assets/{duckdb-keywords-CKBoTxEb.js → duckdb-keywords-DrrKcwLz.js} +0 -0
  500. /package/dist/assets/{dylan-Bp98yT5y.js → dylan-zZheNs86.js} +0 -0
  501. /package/dist/assets/{ebnf-CviyCkP7.js → ebnf-DuKzoTsP.js} +0 -0
  502. /package/dist/assets/{ecl-BgtQ3zu5.js → ecl-BcK76Ow3.js} +0 -0
  503. /package/dist/assets/{eiffel-Cu14O7Gi.js → eiffel-KaaY88la.js} +0 -0
  504. /package/dist/assets/{elm-Dp1dn40k.js → elm-B7-LHWcm.js} +0 -0
  505. /package/dist/assets/{erlang-DdogJjdp.js → erlang-DaphDTvj.js} +0 -0
  506. /package/dist/assets/{esm-DbAcs2Px.js → esm-BKF5e2-i.js} +0 -0
  507. /package/dist/assets/{fcl-DjfeL5F6.js → fcl-DopXl_Cb.js} +0 -0
  508. /package/dist/assets/{forth-Dd0r86IP.js → forth-BKlt87ew.js} +0 -0
  509. /package/dist/assets/{fortran-4qvtlW4z.js → fortran-DDZOpuZf.js} +0 -0
  510. /package/dist/assets/{gallery-page-CtBVFIhS.js → gallery-page-4_c4sSjL.js} +0 -0
  511. /package/dist/assets/{gas-DqwqZHXy.js → gas-CDn7Y-Gk.js} +0 -0
  512. /package/dist/assets/{gherkin-DMxJEDh5.js → gherkin-eZ5FXLoA.js} +0 -0
  513. /package/dist/assets/{github-6F3RzPv3.js → github-CE-ZvKrv.js} +0 -0
  514. /package/dist/assets/{groovy-DA_MxBua.js → groovy-BwhPb7Fz.js} +0 -0
  515. /package/dist/assets/{haskell-B_hi8VEK.js → haskell-Dnk7SiND.js} +0 -0
  516. /package/dist/assets/{haxe-D-I6YeRN.js → haxe-lllox-eQ.js} +0 -0
  517. /package/dist/assets/{http-VleqgIZJ.js → http-BxcKXOao.js} +0 -0
  518. /package/dist/assets/{idl-CteRrHSs.js → idl-DgcPYEkx.js} +0 -0
  519. /package/dist/assets/{javascript-Cq9DsvSW.js → javascript-COkX3Xca.js} +0 -0
  520. /package/dist/assets/{julia-bHGj6eLp.js → julia-D-oyKrif.js} +0 -0
  521. /package/dist/assets/{katex-B9FkzyvX.js → katex-DX0AbnS9.js} +0 -0
  522. /package/dist/assets/{kiosk-mode-B8UhlOLw.js → kiosk-mode-CNguD0K4.js} +0 -0
  523. /package/dist/assets/{links-STGde2qx.js → links-CWv16njv.js} +0 -0
  524. /package/dist/assets/{livescript-C72YlTeO.js → livescript-D_iKnN6P.js} +0 -0
  525. /package/dist/assets/{loro_wasm_bg-DIEeF9jI.js → loro_wasm_bg-wiZiHqmd.js} +0 -0
  526. /package/dist/assets/{lua-DAtJrHXr.js → lua-DvA1dcWk.js} +0 -0
  527. /package/dist/assets/{marimo-icons-CW8-Txe-.js → marimo-icons-BT3Q9hP-.js} +0 -0
  528. /package/dist/assets/{mathematica-DGp7b8Lx.js → mathematica-BsU_wLgp.js} +0 -0
  529. /package/dist/assets/{mbox-C35KjfEV.js → mbox-C0XhbFpn.js} +0 -0
  530. /package/dist/assets/{mirc-BRCHEPv1.js → mirc-CHTyPhxQ.js} +0 -0
  531. /package/dist/assets/{mllike-D7ajla-U.js → mllike-CUPiTPoj.js} +0 -0
  532. /package/dist/assets/{modelica-0RGVL4ie.js → modelica-CY01YUSk.js} +0 -0
  533. /package/dist/assets/{mscgen-C7Ohs4Tl.js → mscgen-DrdJ4BfA.js} +0 -0
  534. /package/dist/assets/{mumps-Cgag5Xef.js → mumps-oDd7O1nq.js} +0 -0
  535. /package/dist/assets/{nginx-D7OKXoUe.js → nginx-BFZZWp0k.js} +0 -0
  536. /package/dist/assets/{node-sql-parser-DE2GpgS7.js → node-sql-parser-BAQ3SN57.js} +0 -0
  537. /package/dist/assets/{ntriples-oQv5c69K.js → ntriples-Kz6Omt8T.js} +0 -0
  538. /package/dist/assets/{octave-BMTXs4lo.js → octave-D4G4nAd-.js} +0 -0
  539. /package/dist/assets/{oz-CuHYwo8r.js → oz-BMPClN8a.js} +0 -0
  540. /package/dist/assets/{pascal-eFKoVV2p.js → pascal-PjzHq8gx.js} +0 -0
  541. /package/dist/assets/{perl-B1OqOW8w.js → perl-BJehkHc4.js} +0 -0
  542. /package/dist/assets/{pig-gIrBDx27.js → pig-BErUKXIE.js} +0 -0
  543. /package/dist/assets/{powershell-3fQF2XND.js → powershell-C9VPAjfT.js} +0 -0
  544. /package/dist/assets/{properties-D4HHpZmU.js → properties-C9_sS9KX.js} +0 -0
  545. /package/dist/assets/{protobuf-DFSTKR0L.js → protobuf-CTL_9hGv.js} +0 -0
  546. /package/dist/assets/{puppet-BAISgXk9.js → puppet-DiwkFvYr.js} +0 -0
  547. /package/dist/assets/{python-mPctBCbA.js → python-B6qWXHOF.js} +0 -0
  548. /package/dist/assets/{q-CYeV5Dbb.js → q-DK2HS4ce.js} +0 -0
  549. /package/dist/assets/{r-Ds4UrjIV.js → r-DaU8ID7q.js} +0 -0
  550. /package/dist/assets/{rough.esm-CR3HSVpq.js → rough.esm-DsKVbNkz.js} +0 -0
  551. /package/dist/assets/{rpm-DV5-r6dM.js → rpm-B1zWd_-L.js} +0 -0
  552. /package/dist/assets/{ruby-B9qrycrI.js → ruby-e8Zeo08a.js} +0 -0
  553. /package/dist/assets/{runs-B8nVipXz.js → runs-0Fl_whti.js} +0 -0
  554. /package/dist/assets/{sas-Cd7L1ZOe.js → sas-CtNe7N_s.js} +0 -0
  555. /package/dist/assets/{scheme-L6Kva-Kc.js → scheme-D7VUNgy0.js} +0 -0
  556. /package/dist/assets/{secrets-panel-CVQIJOsr.js → secrets-panel-C51QhQhQ.js} +0 -0
  557. /package/dist/assets/{shell-Ck42V1Kn.js → shell-95QiTNIY.js} +0 -0
  558. /package/dist/assets/{sieve-DfSJcUfS.js → sieve-4wk3Woa7.js} +0 -0
  559. /package/dist/assets/{simple-mode-CfoR0Lvg.js → simple-mode-C1B3ue4E.js} +0 -0
  560. /package/dist/assets/{smalltalk-CT418Iph.js → smalltalk-BFPyGpl7.js} +0 -0
  561. /package/dist/assets/{solr-CDPrSrj5.js → solr-BCnpA4mK.js} +0 -0
  562. /package/dist/assets/{sparql-BlJ_cLEt.js → sparql-BMyoR-t0.js} +0 -0
  563. /package/dist/assets/{spreadsheet-BsJYzkOI.js → spreadsheet-C39QEIvH.js} +0 -0
  564. /package/dist/assets/{sql-F2Gt8FSJ.js → sql-CE9Btgz4.js} +0 -0
  565. /package/dist/assets/{stylus-92qIiGm1.js → stylus-BbMWgEUg.js} +0 -0
  566. /package/dist/assets/{swift-gZzicbJu.js → swift-BCakwsWN.js} +0 -0
  567. /package/dist/assets/{swiper-component-LOm8fzBm.js → swiper-component-DpFUDvyR.js} +0 -0
  568. /package/dist/assets/{tcl-CtgoBYkk.js → tcl-Dupz7YXC.js} +0 -0
  569. /package/dist/assets/{terminal-Bo6pnmSU.js → terminal-RAduwztq.js} +0 -0
  570. /package/dist/assets/{textile-Du3RzJ2D.js → textile-CMQNVB0J.js} +0 -0
  571. /package/dist/assets/{tiddlywiki-BiVbsin5.js → tiddlywiki-CIp8hgce.js} +0 -0
  572. /package/dist/assets/{tiki-BjQr6gnj.js → tiki-C22wqq7_.js} +0 -0
  573. /package/dist/assets/{toml-HcF44TVB.js → toml-CDlujHqn.js} +0 -0
  574. /package/dist/assets/{troff-xbwT4huN.js → troff-Dxr_rPl0.js} +0 -0
  575. /package/dist/assets/{ttcn-cfg-jWDg1i50.js → ttcn-cfg-_MoagO29.js} +0 -0
  576. /package/dist/assets/{ttcn-phKysj_0.js → ttcn-iRE0hZ1i.js} +0 -0
  577. /package/dist/assets/{turtle-CPC48wcy.js → turtle-C00vzWJK.js} +0 -0
  578. /package/dist/assets/{types-C7hjolXC.js → types-l38AsXoI.js} +0 -0
  579. /package/dist/assets/{useInterval-CTStcSBb.js → useInterval-WeprorQN.js} +0 -0
  580. /package/dist/assets/{vb-BTubZ2rB.js → vb-CkVClY4-.js} +0 -0
  581. /package/dist/assets/{vbscript-B52mDFWM.js → vbscript-BAyqwxih.js} +0 -0
  582. /package/dist/assets/{velocity-BO3M1iFD.js → velocity-DizPkX9R.js} +0 -0
  583. /package/dist/assets/{verilog-CBz90JJu.js → verilog-BHLL_Z-1.js} +0 -0
  584. /package/dist/assets/{vhdl-CeQ1lGlV.js → vhdl-kw8S8KSM.js} +0 -0
  585. /package/dist/assets/{web-vitals-BaWpTOd5.js → web-vitals-DEQqQ7mh.js} +0 -0
  586. /package/dist/assets/{webidl-CRtF5pmu.js → webidl-BArrMnhe.js} +0 -0
  587. /package/dist/assets/{ws-CNqquaud.js → ws-B3l5rS71.js} +0 -0
  588. /package/dist/assets/{xquery-CFnbrHav.js → xquery-BVt_izxN.js} +0 -0
  589. /package/dist/assets/{yacas-KIC_JO6M.js → yacas-BFgb66eo.js} +0 -0
  590. /package/dist/assets/{z80-kGpw5_me.js → z80-CLywz-dK.js} +0 -0
@@ -1 +1 @@
1
- import{o as P}from"./chunk-C4rtOYze.js";import{p as U,u as T}from"./useEvent-GCVIknuR.js";import{t as $}from"./react-C60yClUi.js";import{E as D,Qi as F,b as W,h as q}from"./cells-BvgwUKB9.js";import"./react-dom-Ba2zmJWD.js";import{t as E}from"./compiler-runtime-DnimoHo0.js";import{C as M}from"./utils-C8Yt16Y7.js";import{n as z}from"./constants-DifUxsbZ.js";import{N as Q,l as A,m as V,v as G}from"./config-DFK5eCC3.js";import"./readonly-python-code-BCOkadQf.js";import{t as H}from"./cn-DCUzRj2J.js";import{t as J}from"./jsx-runtime-3wZU7vFS.js";import"./fullscreen-CrevbcR_.js";import"./popover-B96fOqfH.js";import{F as K,Lt as X}from"./JsonOutput-C5g_bqiZ.js";import{n as Y}from"./download-B8NwKEtr.js";import{n as Z,t as R}from"./button-W__YVea9.js";import"./dist-CeF1Em5L.js";import"./cjs-DCKmcMBz.js";import"./useNonce-C2dwX-sI.js";import{r as ee}from"./requests-B9zEd_sW.js";import"./layout-C5In1pVG.js";import{t as te}from"./arrow-left-bDqa4sSj.js";import"./markdown-renderer-D7RLn6TA.js";import{t as re}from"./copy-DlR5UiIE.js";import{d as se,i as oe,l as ae,n as ie,r as O,t as ne,u as me}from"./panels-B2LHXcJf.js";import{t as le}from"./spinner-Cj3eM5bt.js";import"./dist-BPoMypmC.js";import"./dist-5bwTcyKs.js";import"./dist-BVNaV53g.js";import"./dist-BrqkjqDe.js";import"./dist-Bm9PT5P9.js";import{t as ce}from"./use-toast-DjpWVza6.js";import{t as de}from"./session-D-SddyN0.js";import"./purify.es-Bwm8T4QC.js";import"./dates-CZTDC2tF.js";import{n as pe}from"./copy-HCSOwOwk.js";import{a as he,c as fe,l as xe,n as be,r as je,t as ue}from"./dialog-WU4x2UpK.js";import{t as ge}from"./share-c5Zh8BM8.js";import"./tooltip-BUmTS76K.js";import"./vega-loader.browser-DLY285WP.js";import"./defaultLocale-CGJY8D9C.js";import"./defaultLocale-DzliDDTm.js";import{a as ye}from"./cell-link-WDIIwzUn.js";import"./chunk-5FQGJX7Z-B4N_BMo6.js";import"./html-to-image-DKEUbBwc.js";import{n as ke,t as _e}from"./react-resizable-panels.browser.esm-CLaR27oP.js";import"./esm-RBKN8Dn2.js";import"./name-cell-input-jausH-CL.js";import{n as Ne,t as ve}from"./marimo-icons-CW8-Txe-.js";import"./ws-CNqquaud.js";import"./dist-iZqQ8eEZ.js";import"./dist-CqO2FBHV.js";import"./dist-5zzK1Bpl.js";import"./dist-SgSQKL07.js";import"./dist-DcguuZEe.js";import"./dist-Op2xySIC.js";import"./dist-ChJa98Av.js";import"./dist-VHnyClcl.js";import"./dist-C3YC038-.js";import"./esm-CpCa6w8Q.js";var we=E(),Se=P($(),1),t=P(J(),1),Ce=U(o=>o(q)||!V(o(G).state));const ze=o=>{let e=(0,we.c)(22),{appConfig:s}=o,{setCells:r}=D(),{sendComponentValues:l}=ee(),a;e[0]===l?a=e[1]:(a=()=>(O.INSTANCE.start(l),Re),e[0]=l,e[1]=a);let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=[],e[2]=i):i=e[2],(0,Se.useEffect)(a,i);let c;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=de(),e[3]=c):c=e[3];let g;e[4]===r?g=e[5]:(g={autoInstantiate:!0,setCells:r,sessionId:c},e[4]=r,e[5]=g);let{connection:j,reconnect:k}=ie(g),u=T(W),d;e:{if(typeof window>"u"){d=null;break e}let b,m;if(e[6]===Symbol.for("react.memo_cache_sentinel")){if(m=new URL(window.location.href),!m.searchParams.has("file")){d=null;break e}m.searchParams.delete("file"),b=m.searchParams.toString(),e[6]=b,e[7]=m,e[8]=d}else b=e[6],m=e[7],d=e[8];let y=b;d=y?`${m.pathname}?${y}`:m.pathname}let _=d,p;e[9]===Symbol.for("react.memo_cache_sentinel")?(p=_&&(0,t.jsx)("div",{className:"flex items-center px-6 pt-4 sm:-mt-8",children:(0,t.jsxs)("a",{href:_,"aria-label":"Back to gallery",className:H(Z({variant:"text",size:"sm"}),"gap-2 px-0 text-muted-foreground hover:text-foreground"),children:[(0,t.jsx)(te,{className:"size-4","aria-hidden":!0}),(0,t.jsx)("span",{children:"Back"})]})}),e[9]=p):p=e[9];let h;e[10]===j?h=e[11]:(h=(0,t.jsx)(se,{connection:j,className:"sm:pt-8",children:p}),e[10]=j,e[11]=h);let f;e[12]===Symbol.for("react.memo_cache_sentinel")?(f=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(le,{className:"mx-auto"}),(0,t.jsx)("p",{className:"text-center text-sm text-muted-foreground mt-2",children:"Connecting..."})]}),e[12]=f):f=e[12];let n;e[13]===s?n=e[14]:(n=(0,t.jsx)(me,{requires:Ce,delay:2e3,fallback:f,children:(0,t.jsx)(oe,{appConfig:s,mode:"read"})}),e[13]=s,e[14]=n);let x;return e[15]!==s.width||e[16]!==j||e[17]!==u||e[18]!==k||e[19]!==h||e[20]!==n?(x=(0,t.jsxs)(ae,{connection:j,isRunning:u,width:s.width,onReconnect:k,children:[h,n]}),e[15]=s.width,e[16]=j,e[17]=u,e[18]=k,e[19]=h,e[20]=n,e[21]=x):x=e[21],x};function Re(){O.INSTANCE.stop()}var B=E();const Ee=()=>{let o=(0,B.c)(3),e=T(F);if(!A()||!e)return null;let s;o[0]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsxs)("span",{children:["Static"," ",(0,t.jsx)("a",{href:z.githubPage,target:"_blank",className:"text-(--sky-11) font-medium underline",children:"marimo"})," ","notebook - Run or edit for full interactivity"]}),o[0]=s):s=o[0];let r;return o[1]===e?r=o[2]:(r=(0,t.jsxs)("div",{className:"px-4 py-2 bg-(--sky-2) border-b border-(--sky-7) text-(--sky-11) flex justify-between items-center gap-4 print:hidden text-sm","data-testid":"static-notebook-banner",children:[s,(0,t.jsx)("span",{className:"shrink-0",children:(0,t.jsx)(Ie,{code:e})})]}),o[1]=e,o[2]=r),r};var Ie=o=>{var I;let e=(0,B.c)(36),{code:s}=o,r=ye()||"notebook.py",l=r.lastIndexOf("/");l!==-1&&(r=r.slice(l+1));let[a]=M(),i=((I=a.sharing)==null?void 0:I.molab)!==!1,c=window.location.href,g;e[0]===s?g=e[1]:(g=ge({code:s,baseUrl:`${z.molab}/new`}),e[0]=s,e[1]=g);let j=g,k;e[2]===Symbol.for("react.memo_cache_sentinel")?(k=(0,t.jsx)(xe,{asChild:!0,children:(0,t.jsx)(R,{"data-testid":"static-notebook-dialog-trigger",variant:"outline",size:"xs",children:"Run or Edit"})}),e[2]=k):k=e[2];let u;e[3]===r?u=e[4]:(u=(0,t.jsx)(fe,{children:r}),e[3]=r,e[4]=u);let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsxs)("p",{children:["This is a static"," ",(0,t.jsx)("a",{href:z.githubPage,target:"_blank",className:"text-(--sky-11) hover:underline font-medium",children:"marimo"})," ","notebook. To run interactively:"]}),e[5]=d):d=e[5];let _;e[6]===Symbol.for("react.memo_cache_sentinel")?(_=(0,t.jsx)("br",{}),e[6]=_):_=e[6];let p;e[7]===r?p=e[8]:(p=(0,t.jsx)("div",{className:"rounded-lg p-3 border bg-(--sky-2) border-(--sky-7)",children:(0,t.jsxs)("div",{className:"font-mono text-(--sky-11) leading-relaxed",children:["pip install marimo",_,"marimo edit ",r]})}),e[7]=r,e[8]=p);let h;e[9]===Symbol.for("react.memo_cache_sentinel")?(h=!c.endsWith(".html")&&(0,t.jsxs)("div",{className:"rounded-lg p-3 border bg-(--sky-2) border-(--sky-7)",children:[(0,t.jsx)("div",{className:"text-sm text-(--sky-12) mb-1",children:"Or run directly from URL:"}),(0,t.jsxs)("div",{className:"font-mono text-(--sky-11) break-all",children:["marimo edit ",window.location.href]})]}),e[9]=h):h=e[9];let f;e[10]!==i||e[11]!==j?(f=i&&(0,t.jsxs)("div",{className:"pt-3 border-t flex gap-2 items-center",children:[(0,t.jsx)(R,{asChild:!0,variant:"outline",size:"xs",className:"shrink-0",children:(0,t.jsxs)("a",{href:j,target:"_blank",rel:"noopener noreferrer",children:[(0,t.jsx)(Ne,{size:12,strokeWidth:1.5,className:"mr-1.5 mt-px text-(--grass-11)"}),"Open in molab"]})}),(0,t.jsxs)("p",{className:"text-sm text-(--sky-12)",children:["Run this notebook in"," ",(0,t.jsx)("span",{className:"font-semibold",children:"molab"}),", marimo's cloud-hosted notebook platform."]})]}),e[10]=i,e[11]=j,e[12]=f):f=e[12];let n;e[13]!==p||e[14]!==f?(n=(0,t.jsxs)(je,{className:"pt-3 text-left space-y-3",children:[d,p,h,f]}),e[13]=p,e[14]=f,e[15]=n):n=e[15];let x;e[16]!==u||e[17]!==n?(x=(0,t.jsxs)(he,{children:[u,n]}),e[16]=u,e[17]=n,e[18]=x):x=e[18];let b;e[19]===s?b=e[20]:(b=async()=>{await pe(s),ce({title:"Copied to clipboard"})},e[19]=s,e[20]=b);let m;e[21]===Symbol.for("react.memo_cache_sentinel")?(m=(0,t.jsx)(re,{className:"w-3 h-3 mr-2"}),e[21]=m):m=e[21];let y;e[22]===b?y=e[23]:(y=(0,t.jsxs)(R,{"data-testid":"copy-static-notebook-dialog-button",variant:"outline",size:"sm",onClick:b,children:[m,"Copy code"]}),e[22]=b,e[23]=y);let N;e[24]!==s||e[25]!==r?(N=()=>{Y(new Blob([s],{type:"text/plain"}),r)},e[24]=s,e[25]=r,e[26]=N):N=e[26];let S;e[27]===Symbol.for("react.memo_cache_sentinel")?(S=(0,t.jsx)(X,{className:"w-3 h-3 mr-2"}),e[27]=S):S=e[27];let v;e[28]===N?v=e[29]:(v=(0,t.jsxs)(R,{"data-testid":"download-static-notebook-dialog-button",variant:"outline",size:"sm",onClick:N,children:[S,"Download"]}),e[28]=N,e[29]=v);let w;e[30]!==y||e[31]!==v?(w=(0,t.jsxs)("div",{className:"flex gap-3 pt-2",children:[y,v]}),e[30]=y,e[31]=v,e[32]=w):w=e[32];let C;return e[33]!==x||e[34]!==w?(C=(0,t.jsxs)(ue,{children:[k,(0,t.jsxs)(be,{children:[x,w]})]}),e[33]=x,e[34]=w,e[35]=C):C=e[35],C},L=E(),Pe=Q()||A(),Te=o=>{let e=(0,L.c)(9),s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)(Ee,{}),e[0]=s):s=e[0];let r;e[1]===o.appConfig?r=e[2]:(r=(0,t.jsx)(ze,{appConfig:o.appConfig}),e[1]=o.appConfig,e[2]=r);let l;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=Pe&&(0,t.jsx)(Ae,{}),e[3]=l):l=e[3];let a;e[4]===r?a=e[5]:(a=(0,t.jsxs)(_e,{children:[s,r,l]}),e[4]=r,e[5]=a);let i;e[6]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)(K,{}),e[6]=i):i=e[6];let c;return e[7]===a?c=e[8]:(c=(0,t.jsx)(ne,{children:(0,t.jsxs)(ke,{direction:"horizontal",autoSaveId:"marimo:chrome:v1:run1",children:[a,i]})}),e[7]=a,e[8]=c),c},Ae=()=>{let o=(0,L.c)(1),e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("div",{className:"fixed bottom-0 right-0 z-50 print:hidden","data-testid":"watermark",children:(0,t.jsxs)("a",{href:z.githubPage,target:"_blank",className:"text-sm text-(--grass-11) font-bold tracking-wide transition-colors bg-(--grass-4) hover:bg-(--grass-5) border-t border-l border-(--grass-8) px-3 py-1 rounded-tl-md flex items-center gap-2",children:[(0,t.jsx)("span",{children:"made with marimo"}),(0,t.jsx)(ve,{className:"h-4 w-auto"})]})}),o[0]=e):e=o[0],e},Oe=Te;export{Oe as default};
1
+ import{o as P}from"./chunk-C4rtOYze.js";import{p as L,u as T}from"./useEvent-GCVIknuR.js";import{t as U}from"./react-C60yClUi.js";import{$i as D,E as F,b as W,h as q}from"./cells-Biwqg0z6.js";import"./react-dom-Ba2zmJWD.js";import{t as E}from"./compiler-runtime-DnimoHo0.js";import{C as M}from"./utils-C8Yt16Y7.js";import{n as z}from"./constants-DifUxsbZ.js";import{N as V,l as A,m as G,v as H}from"./config-DFK5eCC3.js";import"./readonly-python-code-BHrAhtGV.js";import{t as J}from"./cn-DCUzRj2J.js";import{t as K}from"./jsx-runtime-3wZU7vFS.js";import"./fullscreen-CrevbcR_.js";import"./popover-B96fOqfH.js";import{F as Q,Lt as X}from"./JsonOutput-htT793Wj.js";import{n as Y}from"./download-CfUkZlw7.js";import{n as Z,t as R}from"./button-W__YVea9.js";import"./dist-CeF1Em5L.js";import"./cjs-DCKmcMBz.js";import"./useNonce-C2dwX-sI.js";import{r as ee}from"./requests-B9zEd_sW.js";import"./layout-YPBtS2D6.js";import{t as te}from"./arrow-left-bDqa4sSj.js";import"./markdown-renderer-BOS4jZLt.js";import{t as re}from"./copy-DlR5UiIE.js";import{d as se,i as oe,l as ae,n as ie,r as O,t as ne,u as me}from"./panels-DRv39UwA.js";import{t as le}from"./spinner-Cj3eM5bt.js";import"./dist-BPoMypmC.js";import"./dist-5bwTcyKs.js";import"./dist-BVNaV53g.js";import"./dist-BrqkjqDe.js";import"./dist-Bm9PT5P9.js";import{t as ce}from"./use-toast-DjpWVza6.js";import{t as de}from"./session-D-SddyN0.js";import"./purify.es-Bwm8T4QC.js";import"./dates-CZTDC2tF.js";import{n as pe}from"./copy-HCSOwOwk.js";import{a as he,c as fe,l as xe,n as be,r as je,t as ue}from"./dialog-WU4x2UpK.js";import{t as ge}from"./share-c5Zh8BM8.js";import"./tooltip-BUmTS76K.js";import"./vega-loader.browser-DLY285WP.js";import"./defaultLocale-CGJY8D9C.js";import"./defaultLocale-DzliDDTm.js";import{a as ye}from"./cell-link-Bx8FWjns.js";import"./chunk-5FQGJX7Z-BIDn9QG0.js";import"./html-to-image-ChfBVn8-.js";import{n as ke,t as _e}from"./react-resizable-panels.browser.esm-CLaR27oP.js";import"./esm-RBKN8Dn2.js";import"./name-cell-input-UMsLssMV.js";import{n as Ne,t as ve}from"./marimo-icons-BT3Q9hP-.js";import"./ws-B3l5rS71.js";import"./dist-CiELQ2ik.js";import"./dist-CtsSPT78.js";import"./dist-BpyRMlx3.js";import"./dist-Cnb7x5X_.js";import"./dist-B_Q1ayL4.js";import"./dist-CnESRnx2.js";import"./dist-M9OI1ywz.js";import"./dist-DcwGajoh.js";import"./dist-DXl-iyI_.js";import"./esm-B7G79VOo.js";var we=E(),Se=P(U(),1),t=P(K(),1),Ce=L(o=>o(q)||!G(o(H).state));const ze=o=>{let e=(0,we.c)(22),{appConfig:s}=o,{setCells:r}=F(),{sendComponentValues:l}=ee(),a;e[0]===l?a=e[1]:(a=()=>(O.INSTANCE.start(l),Re),e[0]=l,e[1]=a);let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=[],e[2]=i):i=e[2],(0,Se.useEffect)(a,i);let c;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=de(),e[3]=c):c=e[3];let g;e[4]===r?g=e[5]:(g={autoInstantiate:!0,setCells:r,sessionId:c},e[4]=r,e[5]=g);let{connection:j,reconnect:k}=ie(g),u=T(W),d;e:{if(typeof window>"u"){d=null;break e}let b,m;if(e[6]===Symbol.for("react.memo_cache_sentinel")){if(m=new URL(window.location.href),!m.searchParams.has("file")){d=null;break e}m.searchParams.delete("file"),b=m.searchParams.toString(),e[6]=b,e[7]=m,e[8]=d}else b=e[6],m=e[7],d=e[8];let y=b;d=y?`${m.pathname}?${y}`:m.pathname}let _=d,p;e[9]===Symbol.for("react.memo_cache_sentinel")?(p=_&&(0,t.jsx)("div",{className:"flex items-center px-6 pt-4 sm:-mt-8",children:(0,t.jsxs)("a",{href:_,"aria-label":"Back to gallery",className:J(Z({variant:"text",size:"sm"}),"gap-2 px-0 text-muted-foreground hover:text-foreground"),children:[(0,t.jsx)(te,{className:"size-4","aria-hidden":!0}),(0,t.jsx)("span",{children:"Back"})]})}),e[9]=p):p=e[9];let h;e[10]===j?h=e[11]:(h=(0,t.jsx)(se,{connection:j,className:"sm:pt-8",children:p}),e[10]=j,e[11]=h);let f;e[12]===Symbol.for("react.memo_cache_sentinel")?(f=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(le,{className:"mx-auto"}),(0,t.jsx)("p",{className:"text-center text-sm text-muted-foreground mt-2",children:"Connecting..."})]}),e[12]=f):f=e[12];let n;e[13]===s?n=e[14]:(n=(0,t.jsx)(me,{requires:Ce,delay:2e3,fallback:f,children:(0,t.jsx)(oe,{appConfig:s,mode:"read"})}),e[13]=s,e[14]=n);let x;return e[15]!==s.width||e[16]!==j||e[17]!==u||e[18]!==k||e[19]!==h||e[20]!==n?(x=(0,t.jsxs)(ae,{connection:j,isRunning:u,width:s.width,onReconnect:k,children:[h,n]}),e[15]=s.width,e[16]=j,e[17]=u,e[18]=k,e[19]=h,e[20]=n,e[21]=x):x=e[21],x};function Re(){O.INSTANCE.stop()}var $=E();const Ee=()=>{let o=(0,$.c)(3),e=T(D);if(!A()||!e)return null;let s;o[0]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsxs)("span",{children:["Static"," ",(0,t.jsx)("a",{href:z.githubPage,target:"_blank",className:"text-(--sky-11) font-medium underline",children:"marimo"})," ","notebook - Run or edit for full interactivity"]}),o[0]=s):s=o[0];let r;return o[1]===e?r=o[2]:(r=(0,t.jsxs)("div",{className:"px-4 py-2 bg-(--sky-2) border-b border-(--sky-7) text-(--sky-11) flex justify-between items-center gap-4 print:hidden text-sm","data-testid":"static-notebook-banner",children:[s,(0,t.jsx)("span",{className:"shrink-0",children:(0,t.jsx)(Ie,{code:e})})]}),o[1]=e,o[2]=r),r};var Ie=o=>{var I;let e=(0,$.c)(36),{code:s}=o,r=ye()||"notebook.py",l=r.lastIndexOf("/");l!==-1&&(r=r.slice(l+1));let[a]=M(),i=((I=a.sharing)==null?void 0:I.molab)!==!1,c=window.location.href,g;e[0]===s?g=e[1]:(g=ge({code:s,baseUrl:`${z.molab}/new`}),e[0]=s,e[1]=g);let j=g,k;e[2]===Symbol.for("react.memo_cache_sentinel")?(k=(0,t.jsx)(xe,{asChild:!0,children:(0,t.jsx)(R,{"data-testid":"static-notebook-dialog-trigger",variant:"outline",size:"xs",children:"Run or Edit"})}),e[2]=k):k=e[2];let u;e[3]===r?u=e[4]:(u=(0,t.jsx)(fe,{children:r}),e[3]=r,e[4]=u);let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsxs)("p",{children:["This is a static"," ",(0,t.jsx)("a",{href:z.githubPage,target:"_blank",className:"text-(--sky-11) hover:underline font-medium",children:"marimo"})," ","notebook. To run interactively:"]}),e[5]=d):d=e[5];let _;e[6]===Symbol.for("react.memo_cache_sentinel")?(_=(0,t.jsx)("br",{}),e[6]=_):_=e[6];let p;e[7]===r?p=e[8]:(p=(0,t.jsx)("div",{className:"rounded-lg p-3 border bg-(--sky-2) border-(--sky-7)",children:(0,t.jsxs)("div",{className:"font-mono text-(--sky-11) leading-relaxed",children:["pip install marimo",_,"marimo edit ",r]})}),e[7]=r,e[8]=p);let h;e[9]===Symbol.for("react.memo_cache_sentinel")?(h=!c.endsWith(".html")&&(0,t.jsxs)("div",{className:"rounded-lg p-3 border bg-(--sky-2) border-(--sky-7)",children:[(0,t.jsx)("div",{className:"text-sm text-(--sky-12) mb-1",children:"Or run directly from URL:"}),(0,t.jsxs)("div",{className:"font-mono text-(--sky-11) break-all",children:["marimo edit ",window.location.href]})]}),e[9]=h):h=e[9];let f;e[10]!==i||e[11]!==j?(f=i&&(0,t.jsxs)("div",{className:"pt-3 border-t flex gap-2 items-center",children:[(0,t.jsx)(R,{asChild:!0,variant:"outline",size:"xs",className:"shrink-0",children:(0,t.jsxs)("a",{href:j,target:"_blank",rel:"noopener noreferrer",children:[(0,t.jsx)(Ne,{size:12,strokeWidth:1.5,className:"mr-1.5 mt-px text-(--grass-11)"}),"Open in molab"]})}),(0,t.jsxs)("p",{className:"text-sm text-(--sky-12)",children:["Run this notebook in"," ",(0,t.jsx)("span",{className:"font-semibold",children:"molab"}),", marimo's cloud-hosted notebook platform."]})]}),e[10]=i,e[11]=j,e[12]=f):f=e[12];let n;e[13]!==p||e[14]!==f?(n=(0,t.jsxs)(je,{className:"pt-3 text-left space-y-3",children:[d,p,h,f]}),e[13]=p,e[14]=f,e[15]=n):n=e[15];let x;e[16]!==u||e[17]!==n?(x=(0,t.jsxs)(he,{children:[u,n]}),e[16]=u,e[17]=n,e[18]=x):x=e[18];let b;e[19]===s?b=e[20]:(b=async()=>{await pe(s),ce({title:"Copied to clipboard"})},e[19]=s,e[20]=b);let m;e[21]===Symbol.for("react.memo_cache_sentinel")?(m=(0,t.jsx)(re,{className:"w-3 h-3 mr-2"}),e[21]=m):m=e[21];let y;e[22]===b?y=e[23]:(y=(0,t.jsxs)(R,{"data-testid":"copy-static-notebook-dialog-button",variant:"outline",size:"sm",onClick:b,children:[m,"Copy code"]}),e[22]=b,e[23]=y);let N;e[24]!==s||e[25]!==r?(N=()=>{Y(new Blob([s],{type:"text/plain"}),r)},e[24]=s,e[25]=r,e[26]=N):N=e[26];let S;e[27]===Symbol.for("react.memo_cache_sentinel")?(S=(0,t.jsx)(X,{className:"w-3 h-3 mr-2"}),e[27]=S):S=e[27];let v;e[28]===N?v=e[29]:(v=(0,t.jsxs)(R,{"data-testid":"download-static-notebook-dialog-button",variant:"outline",size:"sm",onClick:N,children:[S,"Download"]}),e[28]=N,e[29]=v);let w;e[30]!==y||e[31]!==v?(w=(0,t.jsxs)("div",{className:"flex gap-3 pt-2",children:[y,v]}),e[30]=y,e[31]=v,e[32]=w):w=e[32];let C;return e[33]!==x||e[34]!==w?(C=(0,t.jsxs)(ue,{children:[k,(0,t.jsxs)(be,{children:[x,w]})]}),e[33]=x,e[34]=w,e[35]=C):C=e[35],C},B=E(),Pe=V()||A(),Te=o=>{let e=(0,B.c)(9),s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)(Ee,{}),e[0]=s):s=e[0];let r;e[1]===o.appConfig?r=e[2]:(r=(0,t.jsx)(ze,{appConfig:o.appConfig}),e[1]=o.appConfig,e[2]=r);let l;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=Pe&&(0,t.jsx)(Ae,{}),e[3]=l):l=e[3];let a;e[4]===r?a=e[5]:(a=(0,t.jsxs)(_e,{children:[s,r,l]}),e[4]=r,e[5]=a);let i;e[6]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)(Q,{}),e[6]=i):i=e[6];let c;return e[7]===a?c=e[8]:(c=(0,t.jsx)(ne,{children:(0,t.jsxs)(ke,{direction:"horizontal",autoSaveId:"marimo:chrome:v1:run1",children:[a,i]})}),e[7]=a,e[8]=c),c},Ae=()=>{let o=(0,B.c)(1),e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("div",{className:"fixed bottom-0 right-0 z-50 print:hidden","data-testid":"watermark",children:(0,t.jsxs)("a",{href:z.githubPage,target:"_blank",className:"text-sm text-(--grass-11) font-bold tracking-wide transition-colors bg-(--grass-4) hover:bg-(--grass-5) border-t border-l border-(--grass-8) px-3 py-1 rounded-tl-md flex items-center gap-2",children:[(0,t.jsx)("span",{children:"made with marimo"}),(0,t.jsx)(ve,{className:"h-4 w-auto"})]})}),o[0]=e):e=o[0],e},Oe=Te;export{Oe as default};
@@ -1,4 +1,4 @@
1
- var G,R,O;import"./purify.es-Bwm8T4QC.js";import{n as xt}from"./ordinal-CSom89lg.js";import{t as kt}from"./colors-kpBuzuIX.js";import{u as tt}from"./src-DRYM6eUR.js";import{n as p}from"./chunk-Y2CYZVJY-Ci6ix4_L.js";import"./src-Be2gSjc_.js";import{H as bt,J as vt,K as Lt,U as wt,a as Et,d as At,s as St,v as Mt,w as It,x as et,y as Pt}from"./chunk-I66GZJ75-CgJN5WrL.js";var Nt=kt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function ht(t,r){let o;if(r===void 0)for(let a of t)a!=null&&(o<a||o===void 0&&a>=a)&&(o=a);else{let a=-1;for(let h of t)(h=r(h,++a,t))!=null&&(o<h||o===void 0&&h>=h)&&(o=h)}return o}function ct(t,r){let o;if(r===void 0)for(let a of t)a!=null&&(o>a||o===void 0&&a>=a)&&(o=a);else{let a=-1;for(let h of t)(h=r(h,++a,t))!=null&&(o>h||o===void 0&&h>=h)&&(o=h)}return o}function nt(t,r){let o=0;if(r===void 0)for(let a of t)(a=+a)&&(o+=a);else{let a=-1;for(let h of t)(h=+r(h,++a,t))&&(o+=h)}return o}function $t(t){return t.target.depth}function Ct(t){return t.depth}function Ot(t,r){return r-1-t.height}function ut(t,r){return t.sourceLinks.length?t.depth:r-1}function Tt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?ct(t.sourceLinks,$t)-1:0}function K(t){return function(){return t}}function ft(t,r){return Q(t.source,r.source)||t.index-r.index}function yt(t,r){return Q(t.target,r.target)||t.index-r.index}function Q(t,r){return t.y0-r.y0}function it(t){return t.value}function Dt(t){return t.index}function jt(t){return t.nodes}function zt(t){return t.links}function dt(t,r){let o=t.get(r);if(!o)throw Error("missing: "+r);return o}function gt({nodes:t}){for(let r of t){let o=r.y0,a=o;for(let h of r.sourceLinks)h.y0=o+h.width/2,o+=h.width;for(let h of r.targetLinks)h.y1=a+h.width/2,a+=h.width}}function Ft(){let t=0,r=0,o=1,a=1,h=24,f=8,n,y=Dt,c=ut,d,_,g=jt,A=zt,v=6;function x(){let i={nodes:g.apply(null,arguments),links:A.apply(null,arguments)};return P(i),M(i),T(i),C(i),S(i),gt(i),i}x.update=function(i){return gt(i),i},x.nodeId=function(i){return arguments.length?(y=typeof i=="function"?i:K(i),x):y},x.nodeAlign=function(i){return arguments.length?(c=typeof i=="function"?i:K(i),x):c},x.nodeSort=function(i){return arguments.length?(d=i,x):d},x.nodeWidth=function(i){return arguments.length?(h=+i,x):h},x.nodePadding=function(i){return arguments.length?(f=n=+i,x):f},x.nodes=function(i){return arguments.length?(g=typeof i=="function"?i:K(i),x):g},x.links=function(i){return arguments.length?(A=typeof i=="function"?i:K(i),x):A},x.linkSort=function(i){return arguments.length?(_=i,x):_},x.size=function(i){return arguments.length?(t=r=0,o=+i[0],a=+i[1],x):[o-t,a-r]},x.extent=function(i){return arguments.length?(t=+i[0][0],o=+i[1][0],r=+i[0][1],a=+i[1][1],x):[[t,r],[o,a]]},x.iterations=function(i){return arguments.length?(v=+i,x):v};function P({nodes:i,links:u}){for(let[s,l]of i.entries())l.index=s,l.sourceLinks=[],l.targetLinks=[];let e=new Map(i.map((s,l)=>[y(s,l,i),s]));for(let[s,l]of u.entries()){l.index=s;let{source:m,target:b}=l;typeof m!="object"&&(m=l.source=dt(e,m)),typeof b!="object"&&(b=l.target=dt(e,b)),m.sourceLinks.push(l),b.targetLinks.push(l)}if(_!=null)for(let{sourceLinks:s,targetLinks:l}of i)s.sort(_),l.sort(_)}function M({nodes:i}){for(let u of i)u.value=u.fixedValue===void 0?Math.max(nt(u.sourceLinks,it),nt(u.targetLinks,it)):u.fixedValue}function T({nodes:i}){let u=i.length,e=new Set(i),s=new Set,l=0;for(;e.size;){for(let m of e){m.depth=l;for(let{target:b}of m.sourceLinks)s.add(b)}if(++l>u)throw Error("circular link");e=s,s=new Set}}function C({nodes:i}){let u=i.length,e=new Set(i),s=new Set,l=0;for(;e.size;){for(let m of e){m.height=l;for(let{source:b}of m.targetLinks)s.add(b)}if(++l>u)throw Error("circular link");e=s,s=new Set}}function N({nodes:i}){let u=ht(i,l=>l.depth)+1,e=(o-t-h)/(u-1),s=Array(u);for(let l of i){let m=Math.max(0,Math.min(u-1,Math.floor(c.call(null,l,u))));l.layer=m,l.x0=t+m*e,l.x1=l.x0+h,s[m]?s[m].push(l):s[m]=[l]}if(d)for(let l of s)l.sort(d);return s}function k(i){let u=ct(i,e=>(a-r-(e.length-1)*n)/nt(e,it));for(let e of i){let s=r;for(let l of e){l.y0=s,l.y1=s+l.value*u,s=l.y1+n;for(let m of l.sourceLinks)m.width=m.value*u}s=(a-s+n)/(e.length+1);for(let l=0;l<e.length;++l){let m=e[l];m.y0+=s*(l+1),m.y1+=s*(l+1)}F(e)}}function S(i){let u=N(i);n=Math.min(f,(a-r)/(ht(u,e=>e.length)-1)),k(u);for(let e=0;e<v;++e){let s=.99**e,l=Math.max(1-s,(e+1)/v);j(u,s,l),D(u,s,l)}}function D(i,u,e){for(let s=1,l=i.length;s<l;++s){let m=i[s];for(let b of m){let w=0,B=0;for(let{source:X,value:q}of b.targetLinks){let at=q*(b.layer-X.layer);w+=I(X,b)*at,B+=at}if(!(B>0))continue;let V=(w/B-b.y0)*u;b.y0+=V,b.y1+=V,L(b)}d===void 0&&m.sort(Q),W(m,e)}}function j(i,u,e){for(let s=i.length-2;s>=0;--s){let l=i[s];for(let m of l){let b=0,w=0;for(let{target:V,value:X}of m.sourceLinks){let q=X*(V.layer-m.layer);b+=E(m,V)*q,w+=q}if(!(w>0))continue;let B=(b/w-m.y0)*u;m.y0+=B,m.y1+=B,L(m)}d===void 0&&l.sort(Q),W(l,e)}}function W(i,u){let e=i.length>>1,s=i[e];z(i,s.y0-n,e-1,u),$(i,s.y1+n,e+1,u),z(i,a,i.length-1,u),$(i,r,0,u)}function $(i,u,e,s){for(;e<i.length;++e){let l=i[e],m=(u-l.y0)*s;m>1e-6&&(l.y0+=m,l.y1+=m),u=l.y1+n}}function z(i,u,e,s){for(;e>=0;--e){let l=i[e],m=(l.y1-u)*s;m>1e-6&&(l.y0-=m,l.y1-=m),u=l.y0-n}}function L({sourceLinks:i,targetLinks:u}){if(_===void 0){for(let{source:{sourceLinks:e}}of u)e.sort(yt);for(let{target:{targetLinks:e}}of i)e.sort(ft)}}function F(i){if(_===void 0)for(let{sourceLinks:u,targetLinks:e}of i)u.sort(yt),e.sort(ft)}function I(i,u){let e=i.y0-(i.sourceLinks.length-1)*n/2;for(let{target:s,width:l}of i.sourceLinks){if(s===u)break;e+=l+n}for(let{source:s,width:l}of u.targetLinks){if(s===i)break;e-=l}return e}function E(i,u){let e=u.y0-(u.targetLinks.length-1)*n/2;for(let{source:s,width:l}of u.targetLinks){if(s===i)break;e+=l+n}for(let{target:s,width:l}of i.sourceLinks){if(s===u)break;e-=l}return e}return x}var rt=Math.PI,st=2*rt,U=1e-6,Ut=st-U;function ot(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function pt(){return new ot}ot.prototype=pt.prototype={constructor:ot,moveTo:function(t,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+r)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,r){this._+="L"+(this._x1=+t)+","+(this._y1=+r)},quadraticCurveTo:function(t,r,o,a){this._+="Q"+ +t+","+ +r+","+(this._x1=+o)+","+(this._y1=+a)},bezierCurveTo:function(t,r,o,a,h,f){this._+="C"+ +t+","+ +r+","+ +o+","+ +a+","+(this._x1=+h)+","+(this._y1=+f)},arcTo:function(t,r,o,a,h){t=+t,r=+r,o=+o,a=+a,h=+h;var f=this._x1,n=this._y1,y=o-t,c=a-r,d=f-t,_=n-r,g=d*d+_*_;if(h<0)throw Error("negative radius: "+h);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=r);else if(g>U)if(!(Math.abs(_*y-c*d)>U)||!h)this._+="L"+(this._x1=t)+","+(this._y1=r);else{var A=o-f,v=a-n,x=y*y+c*c,P=A*A+v*v,M=Math.sqrt(x),T=Math.sqrt(g),C=h*Math.tan((rt-Math.acos((x+g-P)/(2*M*T)))/2),N=C/T,k=C/M;Math.abs(N-1)>U&&(this._+="L"+(t+N*d)+","+(r+N*_)),this._+="A"+h+","+h+",0,0,"+ +(_*A>d*v)+","+(this._x1=t+k*y)+","+(this._y1=r+k*c)}},arc:function(t,r,o,a,h,f){t=+t,r=+r,o=+o,f=!!f;var n=o*Math.cos(a),y=o*Math.sin(a),c=t+n,d=r+y,_=1^f,g=f?a-h:h-a;if(o<0)throw Error("negative radius: "+o);this._x1===null?this._+="M"+c+","+d:(Math.abs(this._x1-c)>U||Math.abs(this._y1-d)>U)&&(this._+="L"+c+","+d),o&&(g<0&&(g=g%st+st),g>Ut?this._+="A"+o+","+o+",0,1,"+_+","+(t-n)+","+(r-y)+"A"+o+","+o+",0,1,"+_+","+(this._x1=c)+","+(this._y1=d):g>U&&(this._+="A"+o+","+o+",0,"+ +(g>=rt)+","+_+","+(this._x1=t+o*Math.cos(h))+","+(this._y1=r+o*Math.sin(h))))},rect:function(t,r,o,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+r)+"h"+ +o+"v"+ +a+"h"+-o+"Z"},toString:function(){return this._}};var Wt=pt;function mt(t){return function(){return t}}function Bt(t){return t[0]}function Gt(t){return t[1]}var Rt=Array.prototype.slice;function Vt(t){return t.source}function Xt(t){return t.target}function qt(t){var r=Vt,o=Xt,a=Bt,h=Gt,f=null;function n(){var y,c=Rt.call(arguments),d=r.apply(this,c),_=o.apply(this,c);if(f||(f=y=Wt()),t(f,+a.apply(this,(c[0]=d,c)),+h.apply(this,c),+a.apply(this,(c[0]=_,c)),+h.apply(this,c)),y)return f=null,y+""||null}return n.source=function(y){return arguments.length?(r=y,n):r},n.target=function(y){return arguments.length?(o=y,n):o},n.x=function(y){return arguments.length?(a=typeof y=="function"?y:mt(+y),n):a},n.y=function(y){return arguments.length?(h=typeof y=="function"?y:mt(+y),n):h},n.context=function(y){return arguments.length?(f=y??null,n):f},n}function Kt(t,r,o,a,h){t.moveTo(r,o),t.bezierCurveTo(r=(r+a)/2,o,r,h,a,h)}function Qt(){return qt(Kt)}function Yt(t){return[t.source.x1,t.y0]}function Ht(t){return[t.target.x0,t.y1]}function Zt(){return Qt().source(Yt).target(Ht)}var lt=(function(){var t=p(function(n,y,c,d){for(c||(c={}),d=n.length;d--;c[n[d]]=y);return c},"o"),r=[1,9],o=[1,10],a=[1,5,10,12],h={trace:p(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:p(function(n,y,c,d,_,g,A){var v=g.length-1;switch(_){case 7:let x=d.findOrCreateNode(g[v-4].trim().replaceAll('""','"')),P=d.findOrCreateNode(g[v-2].trim().replaceAll('""','"')),M=parseFloat(g[v].trim());d.addLink(x,P,M);break;case 8:case 9:case 11:this.$=g[v];break;case 10:this.$=g[v-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:r,20:o},{1:[2,6],7:11,10:[1,12]},t(o,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(o,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:r,20:o},{15:18,16:7,17:8,18:r,20:o},{18:[1,19]},t(o,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:r,20:o},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:p(function(n,y){if(y.recoverable)this.trace(n);else{var c=Error(n);throw c.hash=y,c}},"parseError"),parse:p(function(n){var y=this,c=[0],d=[],_=[null],g=[],A=this.table,v="",x=0,P=0,M=0,T=2,C=1,N=g.slice.call(arguments,1),k=Object.create(this.lexer),S={yy:{}};for(var D in this.yy)Object.prototype.hasOwnProperty.call(this.yy,D)&&(S.yy[D]=this.yy[D]);k.setInput(n,S.yy),S.yy.lexer=k,S.yy.parser=this,k.yylloc===void 0&&(k.yylloc={});var j=k.yylloc;g.push(j);var W=k.options&&k.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function $(w){c.length-=2*w,_.length-=w,g.length-=w}p($,"popStack");function z(){var w=d.pop()||k.lex()||C;return typeof w!="number"&&(w instanceof Array&&(d=w,w=d.pop()),w=y.symbols_[w]||w),w}p(z,"lex");for(var L,F,I,E,i,u={},e,s,l,m;;){if(I=c[c.length-1],this.defaultActions[I]?E=this.defaultActions[I]:(L??(L=z()),E=A[I]&&A[I][L]),E===void 0||!E.length||!E[0]){var b="";for(e in m=[],A[I])this.terminals_[e]&&e>T&&m.push("'"+this.terminals_[e]+"'");b=k.showPosition?"Parse error on line "+(x+1)+`:
1
+ var G,R,O;import"./purify.es-Bwm8T4QC.js";import{n as xt}from"./ordinal-CSom89lg.js";import{t as kt}from"./colors-kpBuzuIX.js";import{u as tt}from"./src-DRYM6eUR.js";import{n as p}from"./chunk-Y2CYZVJY-BLNiTciS.js";import"./src-BydIU0H9.js";import{H as bt,J as vt,K as Lt,U as wt,a as Et,d as At,s as St,v as Mt,w as It,x as et,y as Pt}from"./chunk-I66GZJ75-BWcitPjS.js";var Nt=kt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function ht(t,r){let o;if(r===void 0)for(let a of t)a!=null&&(o<a||o===void 0&&a>=a)&&(o=a);else{let a=-1;for(let h of t)(h=r(h,++a,t))!=null&&(o<h||o===void 0&&h>=h)&&(o=h)}return o}function ct(t,r){let o;if(r===void 0)for(let a of t)a!=null&&(o>a||o===void 0&&a>=a)&&(o=a);else{let a=-1;for(let h of t)(h=r(h,++a,t))!=null&&(o>h||o===void 0&&h>=h)&&(o=h)}return o}function nt(t,r){let o=0;if(r===void 0)for(let a of t)(a=+a)&&(o+=a);else{let a=-1;for(let h of t)(h=+r(h,++a,t))&&(o+=h)}return o}function $t(t){return t.target.depth}function Ct(t){return t.depth}function Ot(t,r){return r-1-t.height}function ut(t,r){return t.sourceLinks.length?t.depth:r-1}function Tt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?ct(t.sourceLinks,$t)-1:0}function K(t){return function(){return t}}function ft(t,r){return Q(t.source,r.source)||t.index-r.index}function yt(t,r){return Q(t.target,r.target)||t.index-r.index}function Q(t,r){return t.y0-r.y0}function it(t){return t.value}function Dt(t){return t.index}function jt(t){return t.nodes}function zt(t){return t.links}function dt(t,r){let o=t.get(r);if(!o)throw Error("missing: "+r);return o}function gt({nodes:t}){for(let r of t){let o=r.y0,a=o;for(let h of r.sourceLinks)h.y0=o+h.width/2,o+=h.width;for(let h of r.targetLinks)h.y1=a+h.width/2,a+=h.width}}function Ft(){let t=0,r=0,o=1,a=1,h=24,f=8,n,y=Dt,c=ut,d,_,g=jt,A=zt,v=6;function x(){let i={nodes:g.apply(null,arguments),links:A.apply(null,arguments)};return P(i),M(i),T(i),C(i),S(i),gt(i),i}x.update=function(i){return gt(i),i},x.nodeId=function(i){return arguments.length?(y=typeof i=="function"?i:K(i),x):y},x.nodeAlign=function(i){return arguments.length?(c=typeof i=="function"?i:K(i),x):c},x.nodeSort=function(i){return arguments.length?(d=i,x):d},x.nodeWidth=function(i){return arguments.length?(h=+i,x):h},x.nodePadding=function(i){return arguments.length?(f=n=+i,x):f},x.nodes=function(i){return arguments.length?(g=typeof i=="function"?i:K(i),x):g},x.links=function(i){return arguments.length?(A=typeof i=="function"?i:K(i),x):A},x.linkSort=function(i){return arguments.length?(_=i,x):_},x.size=function(i){return arguments.length?(t=r=0,o=+i[0],a=+i[1],x):[o-t,a-r]},x.extent=function(i){return arguments.length?(t=+i[0][0],o=+i[1][0],r=+i[0][1],a=+i[1][1],x):[[t,r],[o,a]]},x.iterations=function(i){return arguments.length?(v=+i,x):v};function P({nodes:i,links:u}){for(let[s,l]of i.entries())l.index=s,l.sourceLinks=[],l.targetLinks=[];let e=new Map(i.map((s,l)=>[y(s,l,i),s]));for(let[s,l]of u.entries()){l.index=s;let{source:m,target:b}=l;typeof m!="object"&&(m=l.source=dt(e,m)),typeof b!="object"&&(b=l.target=dt(e,b)),m.sourceLinks.push(l),b.targetLinks.push(l)}if(_!=null)for(let{sourceLinks:s,targetLinks:l}of i)s.sort(_),l.sort(_)}function M({nodes:i}){for(let u of i)u.value=u.fixedValue===void 0?Math.max(nt(u.sourceLinks,it),nt(u.targetLinks,it)):u.fixedValue}function T({nodes:i}){let u=i.length,e=new Set(i),s=new Set,l=0;for(;e.size;){for(let m of e){m.depth=l;for(let{target:b}of m.sourceLinks)s.add(b)}if(++l>u)throw Error("circular link");e=s,s=new Set}}function C({nodes:i}){let u=i.length,e=new Set(i),s=new Set,l=0;for(;e.size;){for(let m of e){m.height=l;for(let{source:b}of m.targetLinks)s.add(b)}if(++l>u)throw Error("circular link");e=s,s=new Set}}function N({nodes:i}){let u=ht(i,l=>l.depth)+1,e=(o-t-h)/(u-1),s=Array(u);for(let l of i){let m=Math.max(0,Math.min(u-1,Math.floor(c.call(null,l,u))));l.layer=m,l.x0=t+m*e,l.x1=l.x0+h,s[m]?s[m].push(l):s[m]=[l]}if(d)for(let l of s)l.sort(d);return s}function k(i){let u=ct(i,e=>(a-r-(e.length-1)*n)/nt(e,it));for(let e of i){let s=r;for(let l of e){l.y0=s,l.y1=s+l.value*u,s=l.y1+n;for(let m of l.sourceLinks)m.width=m.value*u}s=(a-s+n)/(e.length+1);for(let l=0;l<e.length;++l){let m=e[l];m.y0+=s*(l+1),m.y1+=s*(l+1)}F(e)}}function S(i){let u=N(i);n=Math.min(f,(a-r)/(ht(u,e=>e.length)-1)),k(u);for(let e=0;e<v;++e){let s=.99**e,l=Math.max(1-s,(e+1)/v);j(u,s,l),D(u,s,l)}}function D(i,u,e){for(let s=1,l=i.length;s<l;++s){let m=i[s];for(let b of m){let w=0,B=0;for(let{source:X,value:q}of b.targetLinks){let at=q*(b.layer-X.layer);w+=I(X,b)*at,B+=at}if(!(B>0))continue;let V=(w/B-b.y0)*u;b.y0+=V,b.y1+=V,L(b)}d===void 0&&m.sort(Q),W(m,e)}}function j(i,u,e){for(let s=i.length-2;s>=0;--s){let l=i[s];for(let m of l){let b=0,w=0;for(let{target:V,value:X}of m.sourceLinks){let q=X*(V.layer-m.layer);b+=E(m,V)*q,w+=q}if(!(w>0))continue;let B=(b/w-m.y0)*u;m.y0+=B,m.y1+=B,L(m)}d===void 0&&l.sort(Q),W(l,e)}}function W(i,u){let e=i.length>>1,s=i[e];z(i,s.y0-n,e-1,u),$(i,s.y1+n,e+1,u),z(i,a,i.length-1,u),$(i,r,0,u)}function $(i,u,e,s){for(;e<i.length;++e){let l=i[e],m=(u-l.y0)*s;m>1e-6&&(l.y0+=m,l.y1+=m),u=l.y1+n}}function z(i,u,e,s){for(;e>=0;--e){let l=i[e],m=(l.y1-u)*s;m>1e-6&&(l.y0-=m,l.y1-=m),u=l.y0-n}}function L({sourceLinks:i,targetLinks:u}){if(_===void 0){for(let{source:{sourceLinks:e}}of u)e.sort(yt);for(let{target:{targetLinks:e}}of i)e.sort(ft)}}function F(i){if(_===void 0)for(let{sourceLinks:u,targetLinks:e}of i)u.sort(yt),e.sort(ft)}function I(i,u){let e=i.y0-(i.sourceLinks.length-1)*n/2;for(let{target:s,width:l}of i.sourceLinks){if(s===u)break;e+=l+n}for(let{source:s,width:l}of u.targetLinks){if(s===i)break;e-=l}return e}function E(i,u){let e=u.y0-(u.targetLinks.length-1)*n/2;for(let{source:s,width:l}of u.targetLinks){if(s===i)break;e+=l+n}for(let{target:s,width:l}of i.sourceLinks){if(s===u)break;e-=l}return e}return x}var rt=Math.PI,st=2*rt,U=1e-6,Ut=st-U;function ot(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function pt(){return new ot}ot.prototype=pt.prototype={constructor:ot,moveTo:function(t,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+r)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,r){this._+="L"+(this._x1=+t)+","+(this._y1=+r)},quadraticCurveTo:function(t,r,o,a){this._+="Q"+ +t+","+ +r+","+(this._x1=+o)+","+(this._y1=+a)},bezierCurveTo:function(t,r,o,a,h,f){this._+="C"+ +t+","+ +r+","+ +o+","+ +a+","+(this._x1=+h)+","+(this._y1=+f)},arcTo:function(t,r,o,a,h){t=+t,r=+r,o=+o,a=+a,h=+h;var f=this._x1,n=this._y1,y=o-t,c=a-r,d=f-t,_=n-r,g=d*d+_*_;if(h<0)throw Error("negative radius: "+h);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=r);else if(g>U)if(!(Math.abs(_*y-c*d)>U)||!h)this._+="L"+(this._x1=t)+","+(this._y1=r);else{var A=o-f,v=a-n,x=y*y+c*c,P=A*A+v*v,M=Math.sqrt(x),T=Math.sqrt(g),C=h*Math.tan((rt-Math.acos((x+g-P)/(2*M*T)))/2),N=C/T,k=C/M;Math.abs(N-1)>U&&(this._+="L"+(t+N*d)+","+(r+N*_)),this._+="A"+h+","+h+",0,0,"+ +(_*A>d*v)+","+(this._x1=t+k*y)+","+(this._y1=r+k*c)}},arc:function(t,r,o,a,h,f){t=+t,r=+r,o=+o,f=!!f;var n=o*Math.cos(a),y=o*Math.sin(a),c=t+n,d=r+y,_=1^f,g=f?a-h:h-a;if(o<0)throw Error("negative radius: "+o);this._x1===null?this._+="M"+c+","+d:(Math.abs(this._x1-c)>U||Math.abs(this._y1-d)>U)&&(this._+="L"+c+","+d),o&&(g<0&&(g=g%st+st),g>Ut?this._+="A"+o+","+o+",0,1,"+_+","+(t-n)+","+(r-y)+"A"+o+","+o+",0,1,"+_+","+(this._x1=c)+","+(this._y1=d):g>U&&(this._+="A"+o+","+o+",0,"+ +(g>=rt)+","+_+","+(this._x1=t+o*Math.cos(h))+","+(this._y1=r+o*Math.sin(h))))},rect:function(t,r,o,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+r)+"h"+ +o+"v"+ +a+"h"+-o+"Z"},toString:function(){return this._}};var Wt=pt;function mt(t){return function(){return t}}function Bt(t){return t[0]}function Gt(t){return t[1]}var Rt=Array.prototype.slice;function Vt(t){return t.source}function Xt(t){return t.target}function qt(t){var r=Vt,o=Xt,a=Bt,h=Gt,f=null;function n(){var y,c=Rt.call(arguments),d=r.apply(this,c),_=o.apply(this,c);if(f||(f=y=Wt()),t(f,+a.apply(this,(c[0]=d,c)),+h.apply(this,c),+a.apply(this,(c[0]=_,c)),+h.apply(this,c)),y)return f=null,y+""||null}return n.source=function(y){return arguments.length?(r=y,n):r},n.target=function(y){return arguments.length?(o=y,n):o},n.x=function(y){return arguments.length?(a=typeof y=="function"?y:mt(+y),n):a},n.y=function(y){return arguments.length?(h=typeof y=="function"?y:mt(+y),n):h},n.context=function(y){return arguments.length?(f=y??null,n):f},n}function Kt(t,r,o,a,h){t.moveTo(r,o),t.bezierCurveTo(r=(r+a)/2,o,r,h,a,h)}function Qt(){return qt(Kt)}function Yt(t){return[t.source.x1,t.y0]}function Ht(t){return[t.target.x0,t.y1]}function Zt(){return Qt().source(Yt).target(Ht)}var lt=(function(){var t=p(function(n,y,c,d){for(c||(c={}),d=n.length;d--;c[n[d]]=y);return c},"o"),r=[1,9],o=[1,10],a=[1,5,10,12],h={trace:p(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:p(function(n,y,c,d,_,g,A){var v=g.length-1;switch(_){case 7:let x=d.findOrCreateNode(g[v-4].trim().replaceAll('""','"')),P=d.findOrCreateNode(g[v-2].trim().replaceAll('""','"')),M=parseFloat(g[v].trim());d.addLink(x,P,M);break;case 8:case 9:case 11:this.$=g[v];break;case 10:this.$=g[v-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:r,20:o},{1:[2,6],7:11,10:[1,12]},t(o,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(o,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:r,20:o},{15:18,16:7,17:8,18:r,20:o},{18:[1,19]},t(o,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:r,20:o},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:p(function(n,y){if(y.recoverable)this.trace(n);else{var c=Error(n);throw c.hash=y,c}},"parseError"),parse:p(function(n){var y=this,c=[0],d=[],_=[null],g=[],A=this.table,v="",x=0,P=0,M=0,T=2,C=1,N=g.slice.call(arguments,1),k=Object.create(this.lexer),S={yy:{}};for(var D in this.yy)Object.prototype.hasOwnProperty.call(this.yy,D)&&(S.yy[D]=this.yy[D]);k.setInput(n,S.yy),S.yy.lexer=k,S.yy.parser=this,k.yylloc===void 0&&(k.yylloc={});var j=k.yylloc;g.push(j);var W=k.options&&k.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function $(w){c.length-=2*w,_.length-=w,g.length-=w}p($,"popStack");function z(){var w=d.pop()||k.lex()||C;return typeof w!="number"&&(w instanceof Array&&(d=w,w=d.pop()),w=y.symbols_[w]||w),w}p(z,"lex");for(var L,F,I,E,i,u={},e,s,l,m;;){if(I=c[c.length-1],this.defaultActions[I]?E=this.defaultActions[I]:(L??(L=z()),E=A[I]&&A[I][L]),E===void 0||!E.length||!E[0]){var b="";for(e in m=[],A[I])this.terminals_[e]&&e>T&&m.push("'"+this.terminals_[e]+"'");b=k.showPosition?"Parse error on line "+(x+1)+`:
2
2
  `+k.showPosition()+`
3
3
  Expecting `+m.join(", ")+", got '"+(this.terminals_[L]||L)+"'":"Parse error on line "+(x+1)+": Unexpected "+(L==C?"end of input":"'"+(this.terminals_[L]||L)+"'"),this.parseError(b,{text:k.match,token:this.terminals_[L]||L,line:k.yylineno,loc:j,expected:m})}if(E[0]instanceof Array&&E.length>1)throw Error("Parse Error: multiple actions possible at state: "+I+", token: "+L);switch(E[0]){case 1:c.push(L),_.push(k.yytext),g.push(k.yylloc),c.push(E[1]),L=null,F?(L=F,F=null):(P=k.yyleng,v=k.yytext,x=k.yylineno,j=k.yylloc,M>0&&M--);break;case 2:if(s=this.productions_[E[1]][1],u.$=_[_.length-s],u._$={first_line:g[g.length-(s||1)].first_line,last_line:g[g.length-1].last_line,first_column:g[g.length-(s||1)].first_column,last_column:g[g.length-1].last_column},W&&(u._$.range=[g[g.length-(s||1)].range[0],g[g.length-1].range[1]]),i=this.performAction.apply(u,[v,P,x,S.yy,E[1],_,g].concat(N)),i!==void 0)return i;s&&(c=c.slice(0,-1*s*2),_=_.slice(0,-1*s),g=g.slice(0,-1*s)),c.push(this.productions_[E[1]][0]),_.push(u.$),g.push(u._$),l=A[c[c.length-2]][c[c.length-1]],c.push(l);break;case 3:return!0}}return!0},"parse")};h.lexer=(function(){return{EOF:1,parseError:p(function(n,y){if(this.yy.parser)this.yy.parser.parseError(n,y);else throw Error(n)},"parseError"),setInput:p(function(n,y){return this.yy=y||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:p(function(){var n=this._input[0];return this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n,n.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:p(function(n){var y=n.length,c=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-y),this.offset-=y;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var _=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-y},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-y]),this.yyleng=this.yytext.length,this},"unput"),more:p(function(){return this._more=!0,this},"more"),reject:p(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:p(function(n){this.unput(this.match.slice(n))},"less"),pastInput:p(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:p(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:p(function(){var n=this.pastInput(),y=Array(n.length+1).join("-");return n+this.upcomingInput()+`
@@ -0,0 +1 @@
1
+ import{t as s}from"./sas-CtNe7N_s.js";export{s as sas};
@@ -0,0 +1 @@
1
+ import{t as e}from"./scheme-D7VUNgy0.js";export{e as scheme};
@@ -1 +1 @@
1
- import{o as ae}from"./chunk-C4rtOYze.js";import{d as be,l as ye,n as V,p as oe,u as we}from"./useEvent-GCVIknuR.js";import{t as Ne}from"./react-C60yClUi.js";import{E as ke,F as ze,Kn as Ce,fa as Se,ia as Oe,pa as n,__tla as Ae}from"./cells-BvgwUKB9.js";import"./react-dom-Ba2zmJWD.js";import{t as se}from"./compiler-runtime-DnimoHo0.js";import{_ as ie}from"./useEventListener-DpNnLPuE.js";import{C as Ie}from"./utils-C8Yt16Y7.js";import{t as Ee}from"./constants-DifUxsbZ.js";import"./readonly-python-code-BCOkadQf.js";import{t as le}from"./cn-DCUzRj2J.js";import{t as Le}from"./jsx-runtime-3wZU7vFS.js";import"./fullscreen-CrevbcR_.js";import"./popover-B96fOqfH.js";import{n as Me,__tla as Pe}from"./JsonOutput-C5g_bqiZ.js";import"./download-B8NwKEtr.js";import{t as z}from"./tooltip-C9LWGQ7Y.js";import{t as C}from"./button-W__YVea9.js";import"./dist-CeF1Em5L.js";import"./cjs-DCKmcMBz.js";import"./useNonce-C2dwX-sI.js";import{r as Re}from"./requests-B9zEd_sW.js";import{t as me}from"./createLucideIcon-B8oVfJNp.js";import{d as De,__tla as He}from"./layout-C5In1pVG.js";import{n as Ve,t as qe,__tla as Te}from"./LazyAnyLanguageCodeMirror-DUvRReKp.js";import{__tla as Fe}from"./markdown-renderer-D7RLn6TA.js";import{u as Ge}from"./toDate-QOk09NqD.js";import"./add-cell-with-ai--yrESuLb.js";import{t as Ke,__tla as Ue}from"./cell-editor-CrWparei.js";import{t as Be}from"./spinner-Cj3eM5bt.js";import{i as Je}from"./useDeleteCell-Ctnxl8AT.js";import"./dist-BPoMypmC.js";import"./dist-5bwTcyKs.js";import"./dist-BVNaV53g.js";import"./dist-BrqkjqDe.js";import"./dist-Bm9PT5P9.js";import"./session-D-SddyN0.js";import{r as Qe}from"./useTheme-CwCyrmDf.js";import"./purify.es-Bwm8T4QC.js";import"./dates-CZTDC2tF.js";import"./tooltip-BUmTS76K.js";import"./vega-loader.browser-DLY285WP.js";import"./defaultLocale-CGJY8D9C.js";import"./defaultLocale-DzliDDTm.js";import{__tla as We}from"./chunk-5FQGJX7Z-B4N_BMo6.js";import"./html-to-image-DKEUbBwc.js";import{o as Xe}from"./focus-BArgHYf8.js";import{n as Ye,r as Ze,t as ne}from"./react-resizable-panels.browser.esm-CLaR27oP.js";import{a as $e}from"./renderShortcut-C6HKXhBl.js";import"./esm-RBKN8Dn2.js";import"./name-cell-input-jausH-CL.js";import{n as et,r as tt}from"./panel-context-CkhpgwrR.js";import{__tla as rt}from"./loro_wasm_bg-DIEeF9jI.js";import"./ws-CNqquaud.js";import"./Inputs-DrAa-p6i.js";import"./dist-iZqQ8eEZ.js";import"./dist-CqO2FBHV.js";import"./dist-5zzK1Bpl.js";import"./dist-SgSQKL07.js";import"./dist-DcguuZEe.js";import"./dist-Op2xySIC.js";import"./dist-ChJa98Av.js";import"./dist-VHnyClcl.js";import"./dist-C3YC038-.js";import"./esm-CpCa6w8Q.js";import{t as at}from"./kiosk-mode-B8UhlOLw.js";let ce,ot=Promise.all([(()=>{try{return Ae}catch{}})(),(()=>{try{return Pe}catch{}})(),(()=>{try{return He}catch{}})(),(()=>{try{return Te}catch{}})(),(()=>{try{return Fe}catch{}})(),(()=>{try{return Ue}catch{}})(),(()=>{try{return We}catch{}})(),(()=>{try{return rt}catch{}})()]).then(async()=>{var de=me("eraser",[["path",{d:"M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21",key:"g5wo59"}],["path",{d:"m5.082 11.09 8.828 8.828",key:"1wx5vj"}]]),pe=me("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]),he=se(),q=ae(Ne(),1),ue=15;const T=Oe("marimo:scratchpadHistory:v1",[],Ce),fe=oe(!1),xe=oe(null,(e,s,i)=>{if(i=i.trim(),!i)return;let m=e(T);s(T,[i,...m.filter(c=>c!==i)].slice(0,ue))});var t=ae(Le(),1),_e={hide_code:!1,disabled:!1};const ve=()=>{var re;let e=(0,he.c)(60),s=ze(),[i]=Ie(),{theme:m}=Qe(),c=(0,q.useRef)(null),F=Xe(),{createNewCell:G,updateCellCode:d}=ke(),{sendRunScratchpad:p}=Re(),S=et(),K=tt(),l=s.cellRuntime[n],U=l==null?void 0:l.output,O=l==null?void 0:l.status,B=l==null?void 0:l.consoleOutputs,r=((re=s.cellData.__scratch__)==null?void 0:re.code)??"",J=be(xe),[o,h]=ye(fe),u=we(T),A;e[0]!==J||e[1]!==r||e[2]!==p?(A=()=>{p({code:r}),J(r)},e[0]=J,e[1]=r,e[2]=p,e[3]=A):A=e[3];let f=V(A),I;e[4]!==r||e[5]!==G||e[6]!==F?(I=()=>{r.trim()&&G({code:r,before:!1,cellId:F??"__end__"})},e[4]=r,e[5]=G,e[6]=F,e[7]=I):I=e[7];let Q=V(I),E;e[8]!==p||e[9]!==d?(E=()=>{d({cellId:n,code:"",formattingChange:!1}),p({code:""});let a=c.current;a&&a.dispatch({changes:{from:0,to:a.state.doc.length,insert:""}})},e[8]=p,e[9]=d,e[10]=E):E=e[10];let W=V(E),L;e[11]!==h||e[12]!==d?(L=a=>{h(!1),d({cellId:n,code:a,formattingChange:!1});let k=c.current;k&&k.dispatch({changes:{from:0,to:k.state.doc.length,insert:a}})},e[11]=h,e[12]=d,e[13]=L):L=e[13];let X=V(L),[Y,ge]=(0,q.useState)(),M;e[14]!==X||e[15]!==u||e[16]!==o||e[17]!==m?(M=()=>o?(0,t.jsx)("div",{className:"absolute inset-0 z-100 bg-background p-3 border-none overflow-auto",children:(0,t.jsx)("div",{className:"overflow-auto flex flex-col gap-3",children:u.map((a,k)=>(0,t.jsx)("div",{className:"border rounded-md hover:shadow-sm cursor-pointer hover:border-input overflow-hidden",onClick:()=>X(a),children:(0,t.jsx)(q.Suspense,{children:(0,t.jsx)(qe,{language:"python",theme:m,basicSetup:{highlightActiveLine:!1,highlightActiveLineGutter:!1},value:a.trim(),editable:!1,readOnly:!0})})},k))})}):null,e[14]=X,e[15]=u,e[16]=o,e[17]=m,e[18]=M):M=e[18];let Z=M,P;e[19]!==W||e[20]!==Q||e[21]!==f||e[22]!==u.length||e[23]!==o||e[24]!==h||e[25]!==O?(P=()=>(0,t.jsxs)("div",{className:"flex items-center shrink-0 border-b",children:[(0,t.jsx)(z,{content:$e("cell.run"),children:(0,t.jsx)(C,{"data-testid":"scratchpad-run-button",onClick:f,disabled:o,variant:"text",size:"xs",children:(0,t.jsx)(Je,{color:"var(--grass-11)",size:16})})}),(0,t.jsx)(z,{content:"Clear code and outputs",children:(0,t.jsx)(C,{disabled:o,size:"xs",variant:"text",onClick:W,children:(0,t.jsx)(de,{size:16})})}),(0,t.jsx)(at,{children:(0,t.jsx)(z,{content:"Insert code",children:(0,t.jsx)(C,{disabled:o,size:"xs",variant:"text",onClick:Q,children:(0,t.jsx)(Ve,{size:16})})})}),(O==="running"||O==="queued")&&(0,t.jsx)(Be,{className:"inline",size:"small"}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsx)(z,{content:"Toggle history",children:(0,t.jsx)(C,{size:"xs",variant:"text",className:le(o&&"bg-(--sky-3) rounded-none"),onClick:()=>h(!o),disabled:u.length===0,children:(0,t.jsx)(pe,{size:16})})}),(0,t.jsx)(z,{content:(0,t.jsx)("span",{className:"block max-w-prose",children:"Use this scratchpad to experiment with code without restrictions on variable names. Variables defined here aren't saved to notebook memory, and the code is not saved in the notebook file."}),children:(0,t.jsx)(C,{size:"xs",variant:"text",children:(0,t.jsx)(Ge,{size:16})})})]}),e[19]=W,e[20]=Q,e[21]=f,e[22]=u.length,e[23]=o,e[24]=h,e[25]=O,e[26]=P):P=e[26];let $=P,je=S==="vertical",R;e[27]===Symbol.for("react.memo_cache_sentinel")?(R=Se.create(n),e[27]=R):R=e[27];let x;e[28]===$?x=e[29]:(x=$(),e[28]=$,e[29]=x);let D;e[30]===Symbol.for("react.memo_cache_sentinel")?(D=a=>{c.current=a},e[30]=D):D=e[30];let _;e[31]!==r||e[32]!==f||e[33]!==Y||e[34]!==m||e[35]!==i?(_=(0,t.jsx)("div",{className:"flex-1 overflow-auto",children:(0,t.jsx)(Ke,{theme:m,showPlaceholder:!1,id:n,code:r,config:_e,status:"idle",serializedEditorState:null,runCell:f,userConfig:i,editorViewRef:c,setEditorView:D,hidden:!1,showHiddenCode:ie.NOOP,languageAdapter:Y,setLanguageAdapter:ge})}),e[31]=r,e[32]=f,e[33]=Y,e[34]=m,e[35]=i,e[36]=_):_=e[36];let v;e[37]===Z?v=e[38]:(v=Z(),e[37]=Z,e[38]=v);let g;e[39]!==v||e[40]!==x||e[41]!==_?(g=(0,t.jsx)(ne,{defaultSize:40,minSize:20,maxSize:70,children:(0,t.jsxs)("div",{className:"h-full flex flex-col overflow-hidden relative",children:[x,_,v]})}),e[39]=v,e[40]=x,e[41]=_,e[42]=g):g=e[42];let ee=je?"h-1":"w-1",j;e[43]===ee?j=e[44]:(j=le("bg-border hover:bg-primary/50 transition-colors",ee),e[43]=ee,e[44]=j);let b;e[45]===j?b=e[46]:(b=(0,t.jsx)(Ze,{className:j}),e[45]=j,e[46]=b);let y;e[47]===U?y=e[48]:(y=(0,t.jsx)("div",{className:"flex-1 overflow-auto",children:(0,t.jsx)(Me,{allowExpand:!1,output:U,className:Ee.outputArea,cellId:n,stale:!1,loading:!1})}),e[47]=U,e[48]=y);let w;e[49]===B?w=e[50]:(w=(0,t.jsx)("div",{className:"overflow-auto shrink-0 max-h-[50%]",children:(0,t.jsx)(De,{consoleOutputs:B,className:"overflow-auto",stale:!1,interrupted:!1,cellName:"_",onSubmitDebugger:ie.NOOP,cellId:n,debuggerActive:!1})}),e[49]=B,e[50]=w);let N;e[51]!==y||e[52]!==w?(N=(0,t.jsx)(ne,{defaultSize:60,minSize:20,children:(0,t.jsxs)("div",{className:"h-full flex flex-col divide-y overflow-hidden",children:[y,w]})}),e[51]=y,e[52]=w,e[53]=N):N=e[53];let H;return e[54]!==S||e[55]!==K||e[56]!==g||e[57]!==b||e[58]!==N?(H=(0,t.jsx)("div",{className:"flex flex-col h-full overflow-hidden",id:R,children:(0,t.jsxs)(Ye,{direction:S,className:"h-full",children:[g,b,N]},K)}),e[54]=S,e[55]=K,e[56]=g,e[57]=b,e[58]=N,e[59]=H):H=e[59],H};let te;te=se(),ce=()=>{let e=(0,te.c)(1),s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)(ve,{}),e[0]=s):s=e[0],s}});export{ot as __tla,ce as default};
1
+ import{o as ae}from"./chunk-C4rtOYze.js";import{d as be,l as ye,n as V,p as oe,u as we}from"./useEvent-GCVIknuR.js";import{t as Ne}from"./react-C60yClUi.js";import{E as ke,F as ze,Kn as Ce,aa as Se,ma as n,pa as Oe,__tla as Ae}from"./cells-Biwqg0z6.js";import"./react-dom-Ba2zmJWD.js";import{t as se}from"./compiler-runtime-DnimoHo0.js";import{_ as ie}from"./useEventListener-DpNnLPuE.js";import{C as Ie}from"./utils-C8Yt16Y7.js";import{t as Ee}from"./constants-DifUxsbZ.js";import"./readonly-python-code-BHrAhtGV.js";import{t as le}from"./cn-DCUzRj2J.js";import{t as Le}from"./jsx-runtime-3wZU7vFS.js";import"./fullscreen-CrevbcR_.js";import"./popover-B96fOqfH.js";import{n as Me,__tla as Pe}from"./JsonOutput-htT793Wj.js";import"./download-CfUkZlw7.js";import{t as z}from"./tooltip-C9LWGQ7Y.js";import{t as C}from"./button-W__YVea9.js";import"./dist-CeF1Em5L.js";import"./cjs-DCKmcMBz.js";import"./useNonce-C2dwX-sI.js";import{r as Re}from"./requests-B9zEd_sW.js";import{t as me}from"./createLucideIcon-B8oVfJNp.js";import{d as De,__tla as He}from"./layout-YPBtS2D6.js";import{n as Ve,t as qe,__tla as Te}from"./LazyAnyLanguageCodeMirror-Bx0i_n8B.js";import{__tla as Fe}from"./markdown-renderer-BOS4jZLt.js";import{u as Ge}from"./toDate-QOk09NqD.js";import"./add-cell-with-ai-Chy4ITIT.js";import{t as Ke,__tla as Ue}from"./cell-editor-DgOfL9Xv.js";import{t as Be}from"./spinner-Cj3eM5bt.js";import{i as Je}from"./useDeleteCell-BgFMPTmg.js";import"./dist-BPoMypmC.js";import"./dist-5bwTcyKs.js";import"./dist-BVNaV53g.js";import"./dist-BrqkjqDe.js";import"./dist-Bm9PT5P9.js";import"./session-D-SddyN0.js";import{r as Qe}from"./useTheme-CwCyrmDf.js";import"./purify.es-Bwm8T4QC.js";import"./dates-CZTDC2tF.js";import"./tooltip-BUmTS76K.js";import"./vega-loader.browser-DLY285WP.js";import"./defaultLocale-CGJY8D9C.js";import"./defaultLocale-DzliDDTm.js";import{__tla as We}from"./chunk-5FQGJX7Z-BIDn9QG0.js";import"./html-to-image-ChfBVn8-.js";import{o as Xe}from"./focus-CeTtpVjV.js";import{n as Ye,r as Ze,t as ne}from"./react-resizable-panels.browser.esm-CLaR27oP.js";import{a as $e}from"./renderShortcut-C6HKXhBl.js";import"./esm-RBKN8Dn2.js";import"./name-cell-input-UMsLssMV.js";import{n as et,r as tt}from"./panel-context-CkhpgwrR.js";import{__tla as rt}from"./loro_wasm_bg-wiZiHqmd.js";import"./ws-B3l5rS71.js";import"./Inputs-S6F4fq1S.js";import"./dist-CiELQ2ik.js";import"./dist-CtsSPT78.js";import"./dist-BpyRMlx3.js";import"./dist-Cnb7x5X_.js";import"./dist-B_Q1ayL4.js";import"./dist-CnESRnx2.js";import"./dist-M9OI1ywz.js";import"./dist-DcwGajoh.js";import"./dist-DXl-iyI_.js";import"./esm-B7G79VOo.js";import{t as at}from"./kiosk-mode-CNguD0K4.js";let ce,ot=Promise.all([(()=>{try{return Ae}catch{}})(),(()=>{try{return Pe}catch{}})(),(()=>{try{return He}catch{}})(),(()=>{try{return Te}catch{}})(),(()=>{try{return Fe}catch{}})(),(()=>{try{return Ue}catch{}})(),(()=>{try{return We}catch{}})(),(()=>{try{return rt}catch{}})()]).then(async()=>{var de=me("eraser",[["path",{d:"M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21",key:"g5wo59"}],["path",{d:"m5.082 11.09 8.828 8.828",key:"1wx5vj"}]]),pe=me("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]),he=se(),q=ae(Ne(),1),ue=15;const T=Se("marimo:scratchpadHistory:v1",[],Ce),fe=oe(!1),xe=oe(null,(e,s,i)=>{if(i=i.trim(),!i)return;let m=e(T);s(T,[i,...m.filter(c=>c!==i)].slice(0,ue))});var t=ae(Le(),1),_e={hide_code:!1,disabled:!1};const ve=()=>{var re;let e=(0,he.c)(60),s=ze(),[i]=Ie(),{theme:m}=Qe(),c=(0,q.useRef)(null),F=Xe(),{createNewCell:G,updateCellCode:d}=ke(),{sendRunScratchpad:p}=Re(),S=et(),K=tt(),l=s.cellRuntime[n],U=l==null?void 0:l.output,O=l==null?void 0:l.status,B=l==null?void 0:l.consoleOutputs,r=((re=s.cellData.__scratch__)==null?void 0:re.code)??"",J=be(xe),[o,h]=ye(fe),u=we(T),A;e[0]!==J||e[1]!==r||e[2]!==p?(A=()=>{p({code:r}),J(r)},e[0]=J,e[1]=r,e[2]=p,e[3]=A):A=e[3];let f=V(A),I;e[4]!==r||e[5]!==G||e[6]!==F?(I=()=>{r.trim()&&G({code:r,before:!1,cellId:F??"__end__"})},e[4]=r,e[5]=G,e[6]=F,e[7]=I):I=e[7];let Q=V(I),E;e[8]!==p||e[9]!==d?(E=()=>{d({cellId:n,code:"",formattingChange:!1}),p({code:""});let a=c.current;a&&a.dispatch({changes:{from:0,to:a.state.doc.length,insert:""}})},e[8]=p,e[9]=d,e[10]=E):E=e[10];let W=V(E),L;e[11]!==h||e[12]!==d?(L=a=>{h(!1),d({cellId:n,code:a,formattingChange:!1});let k=c.current;k&&k.dispatch({changes:{from:0,to:k.state.doc.length,insert:a}})},e[11]=h,e[12]=d,e[13]=L):L=e[13];let X=V(L),[Y,ge]=(0,q.useState)(),M;e[14]!==X||e[15]!==u||e[16]!==o||e[17]!==m?(M=()=>o?(0,t.jsx)("div",{className:"absolute inset-0 z-100 bg-background p-3 border-none overflow-auto",children:(0,t.jsx)("div",{className:"overflow-auto flex flex-col gap-3",children:u.map((a,k)=>(0,t.jsx)("div",{className:"border rounded-md hover:shadow-sm cursor-pointer hover:border-input overflow-hidden",onClick:()=>X(a),children:(0,t.jsx)(q.Suspense,{children:(0,t.jsx)(qe,{language:"python",theme:m,basicSetup:{highlightActiveLine:!1,highlightActiveLineGutter:!1},value:a.trim(),editable:!1,readOnly:!0})})},k))})}):null,e[14]=X,e[15]=u,e[16]=o,e[17]=m,e[18]=M):M=e[18];let Z=M,P;e[19]!==W||e[20]!==Q||e[21]!==f||e[22]!==u.length||e[23]!==o||e[24]!==h||e[25]!==O?(P=()=>(0,t.jsxs)("div",{className:"flex items-center shrink-0 border-b",children:[(0,t.jsx)(z,{content:$e("cell.run"),children:(0,t.jsx)(C,{"data-testid":"scratchpad-run-button",onClick:f,disabled:o,variant:"text",size:"xs",children:(0,t.jsx)(Je,{color:"var(--grass-11)",size:16})})}),(0,t.jsx)(z,{content:"Clear code and outputs",children:(0,t.jsx)(C,{disabled:o,size:"xs",variant:"text",onClick:W,children:(0,t.jsx)(de,{size:16})})}),(0,t.jsx)(at,{children:(0,t.jsx)(z,{content:"Insert code",children:(0,t.jsx)(C,{disabled:o,size:"xs",variant:"text",onClick:Q,children:(0,t.jsx)(Ve,{size:16})})})}),(O==="running"||O==="queued")&&(0,t.jsx)(Be,{className:"inline",size:"small"}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsx)(z,{content:"Toggle history",children:(0,t.jsx)(C,{size:"xs",variant:"text",className:le(o&&"bg-(--sky-3) rounded-none"),onClick:()=>h(!o),disabled:u.length===0,children:(0,t.jsx)(pe,{size:16})})}),(0,t.jsx)(z,{content:(0,t.jsx)("span",{className:"block max-w-prose",children:"Use this scratchpad to experiment with code without restrictions on variable names. Variables defined here aren't saved to notebook memory, and the code is not saved in the notebook file."}),children:(0,t.jsx)(C,{size:"xs",variant:"text",children:(0,t.jsx)(Ge,{size:16})})})]}),e[19]=W,e[20]=Q,e[21]=f,e[22]=u.length,e[23]=o,e[24]=h,e[25]=O,e[26]=P):P=e[26];let $=P,je=S==="vertical",R;e[27]===Symbol.for("react.memo_cache_sentinel")?(R=Oe.create(n),e[27]=R):R=e[27];let x;e[28]===$?x=e[29]:(x=$(),e[28]=$,e[29]=x);let D;e[30]===Symbol.for("react.memo_cache_sentinel")?(D=a=>{c.current=a},e[30]=D):D=e[30];let _;e[31]!==r||e[32]!==f||e[33]!==Y||e[34]!==m||e[35]!==i?(_=(0,t.jsx)("div",{className:"flex-1 overflow-auto",children:(0,t.jsx)(Ke,{theme:m,showPlaceholder:!1,id:n,code:r,config:_e,status:"idle",serializedEditorState:null,runCell:f,userConfig:i,editorViewRef:c,setEditorView:D,hidden:!1,showHiddenCode:ie.NOOP,languageAdapter:Y,setLanguageAdapter:ge})}),e[31]=r,e[32]=f,e[33]=Y,e[34]=m,e[35]=i,e[36]=_):_=e[36];let v;e[37]===Z?v=e[38]:(v=Z(),e[37]=Z,e[38]=v);let g;e[39]!==v||e[40]!==x||e[41]!==_?(g=(0,t.jsx)(ne,{defaultSize:40,minSize:20,maxSize:70,children:(0,t.jsxs)("div",{className:"h-full flex flex-col overflow-hidden relative",children:[x,_,v]})}),e[39]=v,e[40]=x,e[41]=_,e[42]=g):g=e[42];let ee=je?"h-1":"w-1",j;e[43]===ee?j=e[44]:(j=le("bg-border hover:bg-primary/50 transition-colors",ee),e[43]=ee,e[44]=j);let b;e[45]===j?b=e[46]:(b=(0,t.jsx)(Ze,{className:j}),e[45]=j,e[46]=b);let y;e[47]===U?y=e[48]:(y=(0,t.jsx)("div",{className:"flex-1 overflow-auto",children:(0,t.jsx)(Me,{allowExpand:!1,output:U,className:Ee.outputArea,cellId:n,stale:!1,loading:!1})}),e[47]=U,e[48]=y);let w;e[49]===B?w=e[50]:(w=(0,t.jsx)("div",{className:"overflow-auto shrink-0 max-h-[50%]",children:(0,t.jsx)(De,{consoleOutputs:B,className:"overflow-auto",stale:!1,interrupted:!1,cellName:"_",onSubmitDebugger:ie.NOOP,cellId:n,debuggerActive:!1})}),e[49]=B,e[50]=w);let N;e[51]!==y||e[52]!==w?(N=(0,t.jsx)(ne,{defaultSize:60,minSize:20,children:(0,t.jsxs)("div",{className:"h-full flex flex-col divide-y overflow-hidden",children:[y,w]})}),e[51]=y,e[52]=w,e[53]=N):N=e[53];let H;return e[54]!==S||e[55]!==K||e[56]!==g||e[57]!==b||e[58]!==N?(H=(0,t.jsx)("div",{className:"flex flex-col h-full overflow-hidden",id:R,children:(0,t.jsxs)(Ye,{direction:S,className:"h-full",children:[g,b,N]},K)}),e[54]=S,e[55]=K,e[56]=g,e[57]=b,e[58]=N,e[59]=H):H=e[59],H};let te;te=se(),ce=()=>{let e=(0,te.c)(1),s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)(ve,{}),e[0]=s):s=e[0],s}});export{ot as __tla,ce as default};
@@ -1,4 +1,4 @@
1
- var Rt;import"./purify.es-Bwm8T4QC.js";import{_ as X,m as Ce}from"./chunk-NSK5VX7P-bxC5WUDr.js";import{u as Zt}from"./src-DRYM6eUR.js";import{n as y}from"./chunk-Y2CYZVJY-Ci6ix4_L.js";import{t as st}from"./src-Be2gSjc_.js";import{A as J,F as Me,G as ea,H as aa,K as ra,O as sa,U as ve,a as ia,b as Yt,c as oa,i as wt,r as na,s as P,v as ca,w as la,x as Q,y as da,z as $t}from"./chunk-I66GZJ75-CgJN5WrL.js";import{n as ha,t as pa}from"./chunk-ZIRB5QZD-DKs4kfC7.js";import{t as Ta}from"./dist-BY5C0xw-.js";import{a as Ea,c as Qt,i as te,n as ga,r as ee,s as ht}from"./chunk-2GRJ4B5K-B92Uwj7z.js";import{t as ua}from"./chunk-2Q5K7J3B-CjxRf8HM.js";var Be=Ta(),ae=(function(){var e=y(function(N,v,C,x){for(C||(C={}),x=N.length;x--;C[N[x]]=v);return C},"o"),t=[1,2],r=[1,3],a=[1,4],i=[2,4],o=[1,9],s=[1,11],n=[1,12],E=[1,14],d=[1,15],p=[1,17],_=[1,18],g=[1,19],I=[1,25],T=[1,26],u=[1,27],O=[1,28],b=[1,29],f=[1,30],L=[1,31],S=[1,32],w=[1,33],D=[1,34],M=[1,35],Y=[1,36],z=[1,37],W=[1,38],q=[1,39],j=[1,40],Z=[1,42],tt=[1,43],H=[1,44],it=[1,45],et=[1,46],$=[1,47],k=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],Lt=[1,74],Dt=[1,80],R=[1,81],A=[1,82],at=[1,83],rt=[1,84],V=[1,85],Nt=[1,86],oe=[1,87],ne=[1,88],ce=[1,89],le=[1,90],de=[1,91],he=[1,92],pe=[1,93],Te=[1,94],Ee=[1,95],ge=[1,96],ue=[1,97],ye=[1,98],Oe=[1,99],_e=[1,100],be=[1,101],xe=[1,102],me=[1,103],Ie=[1,104],fe=[1,105],Re=[2,78],St=[4,5,17,51,53,54],kt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],Le=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],Ht=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],Ne=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],zt=[5,52],F=[70,71,72,73],nt=[1,151],Ut={trace:y(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:y(function(N,v,C,x,U,c,Pt){var h=c.length-1;switch(U){case 3:return x.apply(c[h]),c[h];case 4:case 10:this.$=[];break;case 5:case 11:c[h-1].push(c[h]),this.$=c[h-1];break;case 6:case 7:case 12:case 13:this.$=c[h];break;case 8:case 9:case 14:this.$=[];break;case 16:c[h].type="createParticipant",this.$=c[h];break;case 17:c[h-1].unshift({type:"boxStart",boxData:x.parseBoxData(c[h-2])}),c[h-1].push({type:"boxEnd",boxText:c[h-2]}),this.$=c[h-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(c[h-2]),sequenceIndexStep:Number(c[h-1]),sequenceVisible:!0,signalType:x.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(c[h-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:x.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:x.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:x.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:x.LINETYPE.ACTIVE_START,actor:c[h-1].actor};break;case 24:this.$={type:"activeEnd",signalType:x.LINETYPE.ACTIVE_END,actor:c[h-1].actor};break;case 30:x.setDiagramTitle(c[h].substring(6)),this.$=c[h].substring(6);break;case 31:x.setDiagramTitle(c[h].substring(7)),this.$=c[h].substring(7);break;case 32:this.$=c[h].trim(),x.setAccTitle(this.$);break;case 33:case 34:this.$=c[h].trim(),x.setAccDescription(this.$);break;case 35:c[h-1].unshift({type:"loopStart",loopText:x.parseMessage(c[h-2]),signalType:x.LINETYPE.LOOP_START}),c[h-1].push({type:"loopEnd",loopText:c[h-2],signalType:x.LINETYPE.LOOP_END}),this.$=c[h-1];break;case 36:c[h-1].unshift({type:"rectStart",color:x.parseMessage(c[h-2]),signalType:x.LINETYPE.RECT_START}),c[h-1].push({type:"rectEnd",color:x.parseMessage(c[h-2]),signalType:x.LINETYPE.RECT_END}),this.$=c[h-1];break;case 37:c[h-1].unshift({type:"optStart",optText:x.parseMessage(c[h-2]),signalType:x.LINETYPE.OPT_START}),c[h-1].push({type:"optEnd",optText:x.parseMessage(c[h-2]),signalType:x.LINETYPE.OPT_END}),this.$=c[h-1];break;case 38:c[h-1].unshift({type:"altStart",altText:x.parseMessage(c[h-2]),signalType:x.LINETYPE.ALT_START}),c[h-1].push({type:"altEnd",signalType:x.LINETYPE.ALT_END}),this.$=c[h-1];break;case 39:c[h-1].unshift({type:"parStart",parText:x.parseMessage(c[h-2]),signalType:x.LINETYPE.PAR_START}),c[h-1].push({type:"parEnd",signalType:x.LINETYPE.PAR_END}),this.$=c[h-1];break;case 40:c[h-1].unshift({type:"parStart",parText:x.parseMessage(c[h-2]),signalType:x.LINETYPE.PAR_OVER_START}),c[h-1].push({type:"parEnd",signalType:x.LINETYPE.PAR_END}),this.$=c[h-1];break;case 41:c[h-1].unshift({type:"criticalStart",criticalText:x.parseMessage(c[h-2]),signalType:x.LINETYPE.CRITICAL_START}),c[h-1].push({type:"criticalEnd",signalType:x.LINETYPE.CRITICAL_END}),this.$=c[h-1];break;case 42:c[h-1].unshift({type:"breakStart",breakText:x.parseMessage(c[h-2]),signalType:x.LINETYPE.BREAK_START}),c[h-1].push({type:"breakEnd",optText:x.parseMessage(c[h-2]),signalType:x.LINETYPE.BREAK_END}),this.$=c[h-1];break;case 44:this.$=c[h-3].concat([{type:"option",optionText:x.parseMessage(c[h-1]),signalType:x.LINETYPE.CRITICAL_OPTION},c[h]]);break;case 46:this.$=c[h-3].concat([{type:"and",parText:x.parseMessage(c[h-1]),signalType:x.LINETYPE.PAR_AND},c[h]]);break;case 48:this.$=c[h-3].concat([{type:"else",altText:x.parseMessage(c[h-1]),signalType:x.LINETYPE.ALT_ELSE},c[h]]);break;case 49:c[h-3].draw="participant",c[h-3].type="addParticipant",c[h-3].description=x.parseMessage(c[h-1]),this.$=c[h-3];break;case 50:c[h-1].draw="participant",c[h-1].type="addParticipant",this.$=c[h-1];break;case 51:c[h-3].draw="actor",c[h-3].type="addParticipant",c[h-3].description=x.parseMessage(c[h-1]),this.$=c[h-3];break;case 52:case 57:c[h-1].draw="actor",c[h-1].type="addParticipant",this.$=c[h-1];break;case 53:c[h-1].type="destroyParticipant",this.$=c[h-1];break;case 54:c[h-3].draw="participant",c[h-3].type="addParticipant",c[h-3].description=x.parseMessage(c[h-1]),this.$=c[h-3];break;case 55:c[h-1].draw="participant",c[h-1].type="addParticipant",this.$=c[h-1];break;case 56:c[h-3].draw="actor",c[h-3].type="addParticipant",c[h-3].description=x.parseMessage(c[h-1]),this.$=c[h-3];break;case 58:this.$=[c[h-1],{type:"addNote",placement:c[h-2],actor:c[h-1].actor,text:c[h]}];break;case 59:c[h-2]=[].concat(c[h-1],c[h-1]).slice(0,2),c[h-2][0]=c[h-2][0].actor,c[h-2][1]=c[h-2][1].actor,this.$=[c[h-1],{type:"addNote",placement:x.PLACEMENT.OVER,actor:c[h-2].slice(0,2),text:c[h]}];break;case 60:this.$=[c[h-1],{type:"addLinks",actor:c[h-1].actor,text:c[h]}];break;case 61:this.$=[c[h-1],{type:"addALink",actor:c[h-1].actor,text:c[h]}];break;case 62:this.$=[c[h-1],{type:"addProperties",actor:c[h-1].actor,text:c[h]}];break;case 63:this.$=[c[h-1],{type:"addDetails",actor:c[h-1].actor,text:c[h]}];break;case 66:this.$=[c[h-2],c[h]];break;case 67:this.$=c[h];break;case 68:this.$=x.PLACEMENT.LEFTOF;break;case 69:this.$=x.PLACEMENT.RIGHTOF;break;case 70:this.$=[c[h-4],c[h-1],{type:"addMessage",from:c[h-4].actor,to:c[h-1].actor,signalType:c[h-3],msg:c[h],activate:!0},{type:"activeStart",signalType:x.LINETYPE.ACTIVE_START,actor:c[h-1].actor}];break;case 71:this.$=[c[h-4],c[h-1],{type:"addMessage",from:c[h-4].actor,to:c[h-1].actor,signalType:c[h-3],msg:c[h]},{type:"activeEnd",signalType:x.LINETYPE.ACTIVE_END,actor:c[h-4].actor}];break;case 72:this.$=[c[h-4],c[h-1],{type:"addMessage",from:c[h-4].actor,to:c[h-1].actor,signalType:c[h-3],msg:c[h],activate:!0,centralConnection:x.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:x.LINETYPE.CENTRAL_CONNECTION,actor:c[h-1].actor}];break;case 73:this.$=[c[h-4],c[h-1],{type:"addMessage",from:c[h-4].actor,to:c[h-1].actor,signalType:c[h-2],msg:c[h],activate:!1,centralConnection:x.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:x.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:c[h-4].actor}];break;case 74:this.$=[c[h-5],c[h-1],{type:"addMessage",from:c[h-5].actor,to:c[h-1].actor,signalType:c[h-3],msg:c[h],activate:!0,centralConnection:x.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:x.LINETYPE.CENTRAL_CONNECTION,actor:c[h-1].actor},{type:"centralConnectionReverse",signalType:x.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:c[h-5].actor}];break;case 75:this.$=[c[h-3],c[h-1],{type:"addMessage",from:c[h-3].actor,to:c[h-1].actor,signalType:c[h-2],msg:c[h]}];break;case 76:this.$={type:"addParticipant",actor:c[h-1],config:c[h]};break;case 77:this.$=c[h-1].trim();break;case 78:this.$={type:"addParticipant",actor:c[h]};break;case 79:this.$=x.LINETYPE.SOLID_OPEN;break;case 80:this.$=x.LINETYPE.DOTTED_OPEN;break;case 81:this.$=x.LINETYPE.SOLID;break;case 82:this.$=x.LINETYPE.SOLID_TOP;break;case 83:this.$=x.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=x.LINETYPE.STICK_TOP;break;case 85:this.$=x.LINETYPE.STICK_BOTTOM;break;case 86:this.$=x.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=x.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=x.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=x.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=x.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=x.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=x.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=x.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=x.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=x.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=x.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=x.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=x.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=x.LINETYPE.DOTTED;break;case 100:this.$=x.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=x.LINETYPE.SOLID_CROSS;break;case 102:this.$=x.LINETYPE.DOTTED_CROSS;break;case 103:this.$=x.LINETYPE.SOLID_POINT;break;case 104:this.$=x.LINETYPE.DOTTED_POINT;break;case 105:this.$=x.parseMessage(c[h].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:r,6:a},{1:[3]},{3:5,4:t,5:r,6:a},{3:6,4:t,5:r,6:a},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:s,8:8,9:10,10:n,13:13,14:E,15:d,18:16,19:p,22:_,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:I,31:T,32:u,34:O,36:b,37:f,38:L,39:S,40:w,42:D,44:M,45:Y,47:z,51:W,53:q,54:j,56:Z,61:tt,62:H,63:it,64:et,73:$},e(k,[2,5]),{9:48,13:13,14:E,15:d,18:16,19:p,22:_,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:I,31:T,32:u,34:O,36:b,37:f,38:L,39:S,40:w,42:D,44:M,45:Y,47:z,51:W,53:q,54:j,56:Z,61:tt,62:H,63:it,64:et,73:$},e(k,[2,7]),e(k,[2,8]),e(k,[2,9]),e(k,[2,15]),{13:49,51:W,53:q,54:j},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:$},{23:56,73:$},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},e(k,[2,30]),e(k,[2,31]),{33:[1,62]},{35:[1,63]},e(k,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:Lt},{23:75,55:76,73:Lt},{23:77,73:$},{69:78,72:[1,79],78:Dt,79:R,80:A,81:at,82:rt,83:V,84:Nt,85:oe,86:ne,87:ce,88:le,89:de,90:he,91:pe,92:Te,93:Ee,94:ge,95:ue,96:ye,97:Oe,98:_e,99:be,100:xe,101:me,102:Ie,103:fe},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:$},{23:111,73:$},{23:112,73:$},{23:113,73:$},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],Re),e(k,[2,6]),e(k,[2,16]),e(St,[2,10],{11:114}),e(k,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},e(k,[2,22]),{5:[1,118]},{5:[1,119]},e(k,[2,25]),e(k,[2,26]),e(k,[2,27]),e(k,[2,28]),e(k,[2,29]),e(k,[2,32]),e(k,[2,33]),e(kt,i,{7:120}),e(kt,i,{7:121}),e(kt,i,{7:122}),e(Le,i,{41:123,7:124}),e(Ht,i,{43:125,7:126}),e(Ht,i,{7:126,43:127}),e(Ne,i,{46:128,7:129}),e(kt,i,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},e(zt,Re,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:$},{69:146,78:Dt,79:R,80:A,81:at,82:rt,83:V,84:Nt,85:oe,86:ne,87:ce,88:le,89:de,90:he,91:pe,92:Te,93:Ee,94:ge,95:ue,96:ye,97:Oe,98:_e,99:be,100:xe,101:me,102:Ie,103:fe},e(F,[2,79]),e(F,[2,80]),e(F,[2,81]),e(F,[2,82]),e(F,[2,83]),e(F,[2,84]),e(F,[2,85]),e(F,[2,86]),e(F,[2,87]),e(F,[2,88]),e(F,[2,89]),e(F,[2,90]),e(F,[2,91]),e(F,[2,92]),e(F,[2,93]),e(F,[2,94]),e(F,[2,95]),e(F,[2,96]),e(F,[2,97]),e(F,[2,98]),e(F,[2,99]),e(F,[2,100]),e(F,[2,101]),e(F,[2,102]),e(F,[2,103]),e(F,[2,104]),{23:147,73:$},{23:149,60:148,73:$},{73:[2,68]},{73:[2,69]},{58:150,104:nt},{58:152,104:nt},{58:153,104:nt},{58:154,104:nt},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:W,53:q,54:j},{5:[1,160]},e(k,[2,20]),e(k,[2,21]),e(k,[2,23]),e(k,[2,24]),{4:o,5:s,8:8,9:10,10:n,13:13,14:E,15:d,17:[1,161],18:16,19:p,22:_,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:I,31:T,32:u,34:O,36:b,37:f,38:L,39:S,40:w,42:D,44:M,45:Y,47:z,51:W,53:q,54:j,56:Z,61:tt,62:H,63:it,64:et,73:$},{4:o,5:s,8:8,9:10,10:n,13:13,14:E,15:d,17:[1,162],18:16,19:p,22:_,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:I,31:T,32:u,34:O,36:b,37:f,38:L,39:S,40:w,42:D,44:M,45:Y,47:z,51:W,53:q,54:j,56:Z,61:tt,62:H,63:it,64:et,73:$},{4:o,5:s,8:8,9:10,10:n,13:13,14:E,15:d,17:[1,163],18:16,19:p,22:_,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:I,31:T,32:u,34:O,36:b,37:f,38:L,39:S,40:w,42:D,44:M,45:Y,47:z,51:W,53:q,54:j,56:Z,61:tt,62:H,63:it,64:et,73:$},{17:[1,164]},{4:o,5:s,8:8,9:10,10:n,13:13,14:E,15:d,17:[2,47],18:16,19:p,22:_,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:I,31:T,32:u,34:O,36:b,37:f,38:L,39:S,40:w,42:D,44:M,45:Y,47:z,50:[1,165],51:W,53:q,54:j,56:Z,61:tt,62:H,63:it,64:et,73:$},{17:[1,166]},{4:o,5:s,8:8,9:10,10:n,13:13,14:E,15:d,17:[2,45],18:16,19:p,22:_,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:I,31:T,32:u,34:O,36:b,37:f,38:L,39:S,40:w,42:D,44:M,45:Y,47:z,49:[1,167],51:W,53:q,54:j,56:Z,61:tt,62:H,63:it,64:et,73:$},{17:[1,168]},{17:[1,169]},{4:o,5:s,8:8,9:10,10:n,13:13,14:E,15:d,17:[2,43],18:16,19:p,22:_,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:I,31:T,32:u,34:O,36:b,37:f,38:L,39:S,40:w,42:D,44:M,45:Y,47:z,48:[1,170],51:W,53:q,54:j,56:Z,61:tt,62:H,63:it,64:et,73:$},{4:o,5:s,8:8,9:10,10:n,13:13,14:E,15:d,17:[1,171],18:16,19:p,22:_,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:I,31:T,32:u,34:O,36:b,37:f,38:L,39:S,40:w,42:D,44:M,45:Y,47:z,51:W,53:q,54:j,56:Z,61:tt,62:H,63:it,64:et,73:$},{16:[1,172]},e(k,[2,50]),{16:[1,173]},e(k,[2,55]),e(zt,[2,76]),{76:[1,174]},{16:[1,175]},e(k,[2,52]),{16:[1,176]},e(k,[2,57]),e(k,[2,53]),{23:177,73:$},{23:178,73:$},{23:179,73:$},{58:180,104:nt},{23:181,72:[1,182],73:$},{58:183,104:nt},{58:184,104:nt},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(k,[2,17]),e(St,[2,11]),{13:186,51:W,53:q,54:j},e(St,[2,13]),e(St,[2,14]),e(k,[2,19]),e(k,[2,35]),e(k,[2,36]),e(k,[2,37]),e(k,[2,38]),{16:[1,187]},e(k,[2,39]),{16:[1,188]},e(k,[2,40]),e(k,[2,41]),{16:[1,189]},e(k,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:nt},{58:196,104:nt},{58:197,104:nt},{5:[2,75]},{58:198,104:nt},{23:199,73:$},{5:[2,58]},{5:[2,59]},{23:200,73:$},e(St,[2,12]),e(Le,i,{7:124,41:201}),e(Ht,i,{7:126,43:202}),e(Ne,i,{7:129,46:203}),e(k,[2,49]),e(k,[2,54]),e(zt,[2,77]),e(k,[2,51]),e(k,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:nt},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:y(function(N,v){if(v.recoverable)this.trace(N);else{var C=Error(N);throw C.hash=v,C}},"parseError"),parse:y(function(N){var v=this,C=[0],x=[],U=[null],c=[],Pt=this.table,h="",Mt=0,Se=0,Pe=0,Je=2,we=1,Ze=c.slice.call(arguments,1),G=Object.create(this.lexer),yt={yy:{}};for(var jt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,jt)&&(yt.yy[jt]=this.yy[jt]);G.setInput(N,yt.yy),yt.yy.lexer=G,yt.yy.parser=this,G.yylloc===void 0&&(G.yylloc={});var Gt=G.yylloc;c.push(Gt);var Qe=G.options&&G.options.ranges;typeof yt.yy.parseError=="function"?this.parseError=yt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ta(lt){C.length-=2*lt,U.length-=lt,c.length-=lt}y(ta,"popStack");function Ae(){var lt=x.pop()||G.lex()||we;return typeof lt!="number"&&(lt instanceof Array&&(x=lt,lt=x.pop()),lt=v.symbols_[lt]||lt),lt}y(Ae,"lex");for(var ot,Xt,Ot,ct,Jt,mt={},vt,pt,De,Bt;;){if(Ot=C[C.length-1],this.defaultActions[Ot]?ct=this.defaultActions[Ot]:(ot??(ot=Ae()),ct=Pt[Ot]&&Pt[Ot][ot]),ct===void 0||!ct.length||!ct[0]){var ke="";for(vt in Bt=[],Pt[Ot])this.terminals_[vt]&&vt>Je&&Bt.push("'"+this.terminals_[vt]+"'");ke=G.showPosition?"Parse error on line "+(Mt+1)+`:
1
+ var Rt;import"./purify.es-Bwm8T4QC.js";import{_ as X,m as Ce}from"./chunk-NSK5VX7P-B_lLBcNS.js";import{u as Zt}from"./src-DRYM6eUR.js";import{n as y}from"./chunk-Y2CYZVJY-BLNiTciS.js";import{t as st}from"./src-BydIU0H9.js";import{A as J,F as Me,G as ea,H as aa,K as ra,O as sa,U as ve,a as ia,b as Yt,c as oa,i as wt,r as na,s as P,v as ca,w as la,x as Q,y as da,z as $t}from"./chunk-I66GZJ75-BWcitPjS.js";import{n as ha,t as pa}from"./chunk-ZIRB5QZD-Giz-iAOC.js";import{t as Ta}from"./dist-BdgY02GB.js";import{a as Ea,c as Qt,i as te,n as ga,r as ee,s as ht}from"./chunk-2GRJ4B5K-BJlW2T7a.js";import{t as ua}from"./chunk-2Q5K7J3B-BKHkc-hn.js";var Be=Ta(),ae=(function(){var e=y(function(N,v,C,x){for(C||(C={}),x=N.length;x--;C[N[x]]=v);return C},"o"),t=[1,2],r=[1,3],a=[1,4],i=[2,4],o=[1,9],s=[1,11],n=[1,12],E=[1,14],d=[1,15],p=[1,17],_=[1,18],g=[1,19],I=[1,25],T=[1,26],u=[1,27],O=[1,28],b=[1,29],f=[1,30],L=[1,31],S=[1,32],w=[1,33],D=[1,34],M=[1,35],Y=[1,36],z=[1,37],W=[1,38],q=[1,39],j=[1,40],Z=[1,42],tt=[1,43],H=[1,44],it=[1,45],et=[1,46],$=[1,47],k=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],Lt=[1,74],Dt=[1,80],R=[1,81],A=[1,82],at=[1,83],rt=[1,84],V=[1,85],Nt=[1,86],oe=[1,87],ne=[1,88],ce=[1,89],le=[1,90],de=[1,91],he=[1,92],pe=[1,93],Te=[1,94],Ee=[1,95],ge=[1,96],ue=[1,97],ye=[1,98],Oe=[1,99],_e=[1,100],be=[1,101],xe=[1,102],me=[1,103],Ie=[1,104],fe=[1,105],Re=[2,78],St=[4,5,17,51,53,54],kt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],Le=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],Ht=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],Ne=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],zt=[5,52],F=[70,71,72,73],nt=[1,151],Ut={trace:y(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:y(function(N,v,C,x,U,c,Pt){var h=c.length-1;switch(U){case 3:return x.apply(c[h]),c[h];case 4:case 10:this.$=[];break;case 5:case 11:c[h-1].push(c[h]),this.$=c[h-1];break;case 6:case 7:case 12:case 13:this.$=c[h];break;case 8:case 9:case 14:this.$=[];break;case 16:c[h].type="createParticipant",this.$=c[h];break;case 17:c[h-1].unshift({type:"boxStart",boxData:x.parseBoxData(c[h-2])}),c[h-1].push({type:"boxEnd",boxText:c[h-2]}),this.$=c[h-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(c[h-2]),sequenceIndexStep:Number(c[h-1]),sequenceVisible:!0,signalType:x.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(c[h-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:x.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:x.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:x.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:x.LINETYPE.ACTIVE_START,actor:c[h-1].actor};break;case 24:this.$={type:"activeEnd",signalType:x.LINETYPE.ACTIVE_END,actor:c[h-1].actor};break;case 30:x.setDiagramTitle(c[h].substring(6)),this.$=c[h].substring(6);break;case 31:x.setDiagramTitle(c[h].substring(7)),this.$=c[h].substring(7);break;case 32:this.$=c[h].trim(),x.setAccTitle(this.$);break;case 33:case 34:this.$=c[h].trim(),x.setAccDescription(this.$);break;case 35:c[h-1].unshift({type:"loopStart",loopText:x.parseMessage(c[h-2]),signalType:x.LINETYPE.LOOP_START}),c[h-1].push({type:"loopEnd",loopText:c[h-2],signalType:x.LINETYPE.LOOP_END}),this.$=c[h-1];break;case 36:c[h-1].unshift({type:"rectStart",color:x.parseMessage(c[h-2]),signalType:x.LINETYPE.RECT_START}),c[h-1].push({type:"rectEnd",color:x.parseMessage(c[h-2]),signalType:x.LINETYPE.RECT_END}),this.$=c[h-1];break;case 37:c[h-1].unshift({type:"optStart",optText:x.parseMessage(c[h-2]),signalType:x.LINETYPE.OPT_START}),c[h-1].push({type:"optEnd",optText:x.parseMessage(c[h-2]),signalType:x.LINETYPE.OPT_END}),this.$=c[h-1];break;case 38:c[h-1].unshift({type:"altStart",altText:x.parseMessage(c[h-2]),signalType:x.LINETYPE.ALT_START}),c[h-1].push({type:"altEnd",signalType:x.LINETYPE.ALT_END}),this.$=c[h-1];break;case 39:c[h-1].unshift({type:"parStart",parText:x.parseMessage(c[h-2]),signalType:x.LINETYPE.PAR_START}),c[h-1].push({type:"parEnd",signalType:x.LINETYPE.PAR_END}),this.$=c[h-1];break;case 40:c[h-1].unshift({type:"parStart",parText:x.parseMessage(c[h-2]),signalType:x.LINETYPE.PAR_OVER_START}),c[h-1].push({type:"parEnd",signalType:x.LINETYPE.PAR_END}),this.$=c[h-1];break;case 41:c[h-1].unshift({type:"criticalStart",criticalText:x.parseMessage(c[h-2]),signalType:x.LINETYPE.CRITICAL_START}),c[h-1].push({type:"criticalEnd",signalType:x.LINETYPE.CRITICAL_END}),this.$=c[h-1];break;case 42:c[h-1].unshift({type:"breakStart",breakText:x.parseMessage(c[h-2]),signalType:x.LINETYPE.BREAK_START}),c[h-1].push({type:"breakEnd",optText:x.parseMessage(c[h-2]),signalType:x.LINETYPE.BREAK_END}),this.$=c[h-1];break;case 44:this.$=c[h-3].concat([{type:"option",optionText:x.parseMessage(c[h-1]),signalType:x.LINETYPE.CRITICAL_OPTION},c[h]]);break;case 46:this.$=c[h-3].concat([{type:"and",parText:x.parseMessage(c[h-1]),signalType:x.LINETYPE.PAR_AND},c[h]]);break;case 48:this.$=c[h-3].concat([{type:"else",altText:x.parseMessage(c[h-1]),signalType:x.LINETYPE.ALT_ELSE},c[h]]);break;case 49:c[h-3].draw="participant",c[h-3].type="addParticipant",c[h-3].description=x.parseMessage(c[h-1]),this.$=c[h-3];break;case 50:c[h-1].draw="participant",c[h-1].type="addParticipant",this.$=c[h-1];break;case 51:c[h-3].draw="actor",c[h-3].type="addParticipant",c[h-3].description=x.parseMessage(c[h-1]),this.$=c[h-3];break;case 52:case 57:c[h-1].draw="actor",c[h-1].type="addParticipant",this.$=c[h-1];break;case 53:c[h-1].type="destroyParticipant",this.$=c[h-1];break;case 54:c[h-3].draw="participant",c[h-3].type="addParticipant",c[h-3].description=x.parseMessage(c[h-1]),this.$=c[h-3];break;case 55:c[h-1].draw="participant",c[h-1].type="addParticipant",this.$=c[h-1];break;case 56:c[h-3].draw="actor",c[h-3].type="addParticipant",c[h-3].description=x.parseMessage(c[h-1]),this.$=c[h-3];break;case 58:this.$=[c[h-1],{type:"addNote",placement:c[h-2],actor:c[h-1].actor,text:c[h]}];break;case 59:c[h-2]=[].concat(c[h-1],c[h-1]).slice(0,2),c[h-2][0]=c[h-2][0].actor,c[h-2][1]=c[h-2][1].actor,this.$=[c[h-1],{type:"addNote",placement:x.PLACEMENT.OVER,actor:c[h-2].slice(0,2),text:c[h]}];break;case 60:this.$=[c[h-1],{type:"addLinks",actor:c[h-1].actor,text:c[h]}];break;case 61:this.$=[c[h-1],{type:"addALink",actor:c[h-1].actor,text:c[h]}];break;case 62:this.$=[c[h-1],{type:"addProperties",actor:c[h-1].actor,text:c[h]}];break;case 63:this.$=[c[h-1],{type:"addDetails",actor:c[h-1].actor,text:c[h]}];break;case 66:this.$=[c[h-2],c[h]];break;case 67:this.$=c[h];break;case 68:this.$=x.PLACEMENT.LEFTOF;break;case 69:this.$=x.PLACEMENT.RIGHTOF;break;case 70:this.$=[c[h-4],c[h-1],{type:"addMessage",from:c[h-4].actor,to:c[h-1].actor,signalType:c[h-3],msg:c[h],activate:!0},{type:"activeStart",signalType:x.LINETYPE.ACTIVE_START,actor:c[h-1].actor}];break;case 71:this.$=[c[h-4],c[h-1],{type:"addMessage",from:c[h-4].actor,to:c[h-1].actor,signalType:c[h-3],msg:c[h]},{type:"activeEnd",signalType:x.LINETYPE.ACTIVE_END,actor:c[h-4].actor}];break;case 72:this.$=[c[h-4],c[h-1],{type:"addMessage",from:c[h-4].actor,to:c[h-1].actor,signalType:c[h-3],msg:c[h],activate:!0,centralConnection:x.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:x.LINETYPE.CENTRAL_CONNECTION,actor:c[h-1].actor}];break;case 73:this.$=[c[h-4],c[h-1],{type:"addMessage",from:c[h-4].actor,to:c[h-1].actor,signalType:c[h-2],msg:c[h],activate:!1,centralConnection:x.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:x.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:c[h-4].actor}];break;case 74:this.$=[c[h-5],c[h-1],{type:"addMessage",from:c[h-5].actor,to:c[h-1].actor,signalType:c[h-3],msg:c[h],activate:!0,centralConnection:x.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:x.LINETYPE.CENTRAL_CONNECTION,actor:c[h-1].actor},{type:"centralConnectionReverse",signalType:x.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:c[h-5].actor}];break;case 75:this.$=[c[h-3],c[h-1],{type:"addMessage",from:c[h-3].actor,to:c[h-1].actor,signalType:c[h-2],msg:c[h]}];break;case 76:this.$={type:"addParticipant",actor:c[h-1],config:c[h]};break;case 77:this.$=c[h-1].trim();break;case 78:this.$={type:"addParticipant",actor:c[h]};break;case 79:this.$=x.LINETYPE.SOLID_OPEN;break;case 80:this.$=x.LINETYPE.DOTTED_OPEN;break;case 81:this.$=x.LINETYPE.SOLID;break;case 82:this.$=x.LINETYPE.SOLID_TOP;break;case 83:this.$=x.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=x.LINETYPE.STICK_TOP;break;case 85:this.$=x.LINETYPE.STICK_BOTTOM;break;case 86:this.$=x.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=x.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=x.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=x.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=x.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=x.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=x.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=x.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=x.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=x.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=x.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=x.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=x.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=x.LINETYPE.DOTTED;break;case 100:this.$=x.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=x.LINETYPE.SOLID_CROSS;break;case 102:this.$=x.LINETYPE.DOTTED_CROSS;break;case 103:this.$=x.LINETYPE.SOLID_POINT;break;case 104:this.$=x.LINETYPE.DOTTED_POINT;break;case 105:this.$=x.parseMessage(c[h].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:r,6:a},{1:[3]},{3:5,4:t,5:r,6:a},{3:6,4:t,5:r,6:a},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:s,8:8,9:10,10:n,13:13,14:E,15:d,18:16,19:p,22:_,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:I,31:T,32:u,34:O,36:b,37:f,38:L,39:S,40:w,42:D,44:M,45:Y,47:z,51:W,53:q,54:j,56:Z,61:tt,62:H,63:it,64:et,73:$},e(k,[2,5]),{9:48,13:13,14:E,15:d,18:16,19:p,22:_,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:I,31:T,32:u,34:O,36:b,37:f,38:L,39:S,40:w,42:D,44:M,45:Y,47:z,51:W,53:q,54:j,56:Z,61:tt,62:H,63:it,64:et,73:$},e(k,[2,7]),e(k,[2,8]),e(k,[2,9]),e(k,[2,15]),{13:49,51:W,53:q,54:j},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:$},{23:56,73:$},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},e(k,[2,30]),e(k,[2,31]),{33:[1,62]},{35:[1,63]},e(k,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:Lt},{23:75,55:76,73:Lt},{23:77,73:$},{69:78,72:[1,79],78:Dt,79:R,80:A,81:at,82:rt,83:V,84:Nt,85:oe,86:ne,87:ce,88:le,89:de,90:he,91:pe,92:Te,93:Ee,94:ge,95:ue,96:ye,97:Oe,98:_e,99:be,100:xe,101:me,102:Ie,103:fe},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:$},{23:111,73:$},{23:112,73:$},{23:113,73:$},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],Re),e(k,[2,6]),e(k,[2,16]),e(St,[2,10],{11:114}),e(k,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},e(k,[2,22]),{5:[1,118]},{5:[1,119]},e(k,[2,25]),e(k,[2,26]),e(k,[2,27]),e(k,[2,28]),e(k,[2,29]),e(k,[2,32]),e(k,[2,33]),e(kt,i,{7:120}),e(kt,i,{7:121}),e(kt,i,{7:122}),e(Le,i,{41:123,7:124}),e(Ht,i,{43:125,7:126}),e(Ht,i,{7:126,43:127}),e(Ne,i,{46:128,7:129}),e(kt,i,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},e(zt,Re,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:$},{69:146,78:Dt,79:R,80:A,81:at,82:rt,83:V,84:Nt,85:oe,86:ne,87:ce,88:le,89:de,90:he,91:pe,92:Te,93:Ee,94:ge,95:ue,96:ye,97:Oe,98:_e,99:be,100:xe,101:me,102:Ie,103:fe},e(F,[2,79]),e(F,[2,80]),e(F,[2,81]),e(F,[2,82]),e(F,[2,83]),e(F,[2,84]),e(F,[2,85]),e(F,[2,86]),e(F,[2,87]),e(F,[2,88]),e(F,[2,89]),e(F,[2,90]),e(F,[2,91]),e(F,[2,92]),e(F,[2,93]),e(F,[2,94]),e(F,[2,95]),e(F,[2,96]),e(F,[2,97]),e(F,[2,98]),e(F,[2,99]),e(F,[2,100]),e(F,[2,101]),e(F,[2,102]),e(F,[2,103]),e(F,[2,104]),{23:147,73:$},{23:149,60:148,73:$},{73:[2,68]},{73:[2,69]},{58:150,104:nt},{58:152,104:nt},{58:153,104:nt},{58:154,104:nt},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:W,53:q,54:j},{5:[1,160]},e(k,[2,20]),e(k,[2,21]),e(k,[2,23]),e(k,[2,24]),{4:o,5:s,8:8,9:10,10:n,13:13,14:E,15:d,17:[1,161],18:16,19:p,22:_,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:I,31:T,32:u,34:O,36:b,37:f,38:L,39:S,40:w,42:D,44:M,45:Y,47:z,51:W,53:q,54:j,56:Z,61:tt,62:H,63:it,64:et,73:$},{4:o,5:s,8:8,9:10,10:n,13:13,14:E,15:d,17:[1,162],18:16,19:p,22:_,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:I,31:T,32:u,34:O,36:b,37:f,38:L,39:S,40:w,42:D,44:M,45:Y,47:z,51:W,53:q,54:j,56:Z,61:tt,62:H,63:it,64:et,73:$},{4:o,5:s,8:8,9:10,10:n,13:13,14:E,15:d,17:[1,163],18:16,19:p,22:_,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:I,31:T,32:u,34:O,36:b,37:f,38:L,39:S,40:w,42:D,44:M,45:Y,47:z,51:W,53:q,54:j,56:Z,61:tt,62:H,63:it,64:et,73:$},{17:[1,164]},{4:o,5:s,8:8,9:10,10:n,13:13,14:E,15:d,17:[2,47],18:16,19:p,22:_,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:I,31:T,32:u,34:O,36:b,37:f,38:L,39:S,40:w,42:D,44:M,45:Y,47:z,50:[1,165],51:W,53:q,54:j,56:Z,61:tt,62:H,63:it,64:et,73:$},{17:[1,166]},{4:o,5:s,8:8,9:10,10:n,13:13,14:E,15:d,17:[2,45],18:16,19:p,22:_,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:I,31:T,32:u,34:O,36:b,37:f,38:L,39:S,40:w,42:D,44:M,45:Y,47:z,49:[1,167],51:W,53:q,54:j,56:Z,61:tt,62:H,63:it,64:et,73:$},{17:[1,168]},{17:[1,169]},{4:o,5:s,8:8,9:10,10:n,13:13,14:E,15:d,17:[2,43],18:16,19:p,22:_,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:I,31:T,32:u,34:O,36:b,37:f,38:L,39:S,40:w,42:D,44:M,45:Y,47:z,48:[1,170],51:W,53:q,54:j,56:Z,61:tt,62:H,63:it,64:et,73:$},{4:o,5:s,8:8,9:10,10:n,13:13,14:E,15:d,17:[1,171],18:16,19:p,22:_,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:I,31:T,32:u,34:O,36:b,37:f,38:L,39:S,40:w,42:D,44:M,45:Y,47:z,51:W,53:q,54:j,56:Z,61:tt,62:H,63:it,64:et,73:$},{16:[1,172]},e(k,[2,50]),{16:[1,173]},e(k,[2,55]),e(zt,[2,76]),{76:[1,174]},{16:[1,175]},e(k,[2,52]),{16:[1,176]},e(k,[2,57]),e(k,[2,53]),{23:177,73:$},{23:178,73:$},{23:179,73:$},{58:180,104:nt},{23:181,72:[1,182],73:$},{58:183,104:nt},{58:184,104:nt},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(k,[2,17]),e(St,[2,11]),{13:186,51:W,53:q,54:j},e(St,[2,13]),e(St,[2,14]),e(k,[2,19]),e(k,[2,35]),e(k,[2,36]),e(k,[2,37]),e(k,[2,38]),{16:[1,187]},e(k,[2,39]),{16:[1,188]},e(k,[2,40]),e(k,[2,41]),{16:[1,189]},e(k,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:nt},{58:196,104:nt},{58:197,104:nt},{5:[2,75]},{58:198,104:nt},{23:199,73:$},{5:[2,58]},{5:[2,59]},{23:200,73:$},e(St,[2,12]),e(Le,i,{7:124,41:201}),e(Ht,i,{7:126,43:202}),e(Ne,i,{7:129,46:203}),e(k,[2,49]),e(k,[2,54]),e(zt,[2,77]),e(k,[2,51]),e(k,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:nt},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:y(function(N,v){if(v.recoverable)this.trace(N);else{var C=Error(N);throw C.hash=v,C}},"parseError"),parse:y(function(N){var v=this,C=[0],x=[],U=[null],c=[],Pt=this.table,h="",Mt=0,Se=0,Pe=0,Je=2,we=1,Ze=c.slice.call(arguments,1),G=Object.create(this.lexer),yt={yy:{}};for(var jt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,jt)&&(yt.yy[jt]=this.yy[jt]);G.setInput(N,yt.yy),yt.yy.lexer=G,yt.yy.parser=this,G.yylloc===void 0&&(G.yylloc={});var Gt=G.yylloc;c.push(Gt);var Qe=G.options&&G.options.ranges;typeof yt.yy.parseError=="function"?this.parseError=yt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ta(lt){C.length-=2*lt,U.length-=lt,c.length-=lt}y(ta,"popStack");function Ae(){var lt=x.pop()||G.lex()||we;return typeof lt!="number"&&(lt instanceof Array&&(x=lt,lt=x.pop()),lt=v.symbols_[lt]||lt),lt}y(Ae,"lex");for(var ot,Xt,Ot,ct,Jt,mt={},vt,pt,De,Bt;;){if(Ot=C[C.length-1],this.defaultActions[Ot]?ct=this.defaultActions[Ot]:(ot??(ot=Ae()),ct=Pt[Ot]&&Pt[Ot][ot]),ct===void 0||!ct.length||!ct[0]){var ke="";for(vt in Bt=[],Pt[Ot])this.terminals_[vt]&&vt>Je&&Bt.push("'"+this.terminals_[vt]+"'");ke=G.showPosition?"Parse error on line "+(Mt+1)+`:
2
2
  `+G.showPosition()+`
3
3
  Expecting `+Bt.join(", ")+", got '"+(this.terminals_[ot]||ot)+"'":"Parse error on line "+(Mt+1)+": Unexpected "+(ot==we?"end of input":"'"+(this.terminals_[ot]||ot)+"'"),this.parseError(ke,{text:G.match,token:this.terminals_[ot]||ot,line:G.yylineno,loc:Gt,expected:Bt})}if(ct[0]instanceof Array&&ct.length>1)throw Error("Parse Error: multiple actions possible at state: "+Ot+", token: "+ot);switch(ct[0]){case 1:C.push(ot),U.push(G.yytext),c.push(G.yylloc),C.push(ct[1]),ot=null,Xt?(ot=Xt,Xt=null):(Se=G.yyleng,h=G.yytext,Mt=G.yylineno,Gt=G.yylloc,Pe>0&&Pe--);break;case 2:if(pt=this.productions_[ct[1]][1],mt.$=U[U.length-pt],mt._$={first_line:c[c.length-(pt||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(pt||1)].first_column,last_column:c[c.length-1].last_column},Qe&&(mt._$.range=[c[c.length-(pt||1)].range[0],c[c.length-1].range[1]]),Jt=this.performAction.apply(mt,[h,Se,Mt,yt.yy,ct[1],U,c].concat(Ze)),Jt!==void 0)return Jt;pt&&(C=C.slice(0,-1*pt*2),U=U.slice(0,-1*pt),c=c.slice(0,-1*pt)),C.push(this.productions_[ct[1]][0]),U.push(mt.$),c.push(mt._$),De=Pt[C[C.length-2]][C[C.length-1]],C.push(De);break;case 3:return!0}}return!0},"parse")};Ut.lexer=(function(){return{EOF:1,parseError:y(function(N,v){if(this.yy.parser)this.yy.parser.parseError(N,v);else throw Error(N)},"parseError"),setInput:y(function(N,v){return this.yy=v||this.yy||{},this._input=N,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:y(function(){var N=this._input[0];return this.yytext+=N,this.yyleng++,this.offset++,this.match+=N,this.matched+=N,N.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),N},"input"),unput:y(function(N){var v=N.length,C=N.split(/(?:\r\n?|\n)/g);this._input=N+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-v),this.offset-=v;var x=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),C.length-1&&(this.yylineno-=C.length-1);var U=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:C?(C.length===x.length?this.yylloc.first_column:0)+x[x.length-C.length].length-C[0].length:this.yylloc.first_column-v},this.options.ranges&&(this.yylloc.range=[U[0],U[0]+this.yyleng-v]),this.yyleng=this.yytext.length,this},"unput"),more:y(function(){return this._more=!0,this},"more"),reject:y(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:y(function(N){this.unput(this.match.slice(N))},"less"),pastInput:y(function(){var N=this.matched.substr(0,this.matched.length-this.match.length);return(N.length>20?"...":"")+N.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:y(function(){var N=this.match;return N.length<20&&(N+=this._input.substr(0,20-N.length)),(N.substr(0,20)+(N.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:y(function(){var N=this.pastInput(),v=Array(N.length+1).join("-");return N+this.upcomingInput()+`
@@ -0,0 +1 @@
1
+ import{o as ge}from"./chunk-C4rtOYze.js";import{d as je,l as ye,p as Ke,u as J}from"./useEvent-GCVIknuR.js";import{t as We}from"./react-C60yClUi.js";import{Bt as Xe,Ct as Je,Dr as Ye,E as Qe,Fr as Ze,Kn as ea,N as aa,Rr as ta,Rt as sa,Tr as la,Xr as ve,Yn as na,aa as ra,ci as oe,d as oa,di as ca,ei as ce,fi as ia,hi as ma,i as da,ii as ha,j as ua,jt as xa,mi as pa,ni as Ne,oi as ie,pi as we,pn as fa,qn as ba,ri as ga,si as Se,ti as _e,ui as ja,wr as ya,zr as me,zt as va}from"./cells-Biwqg0z6.js";import"./react-dom-Ba2zmJWD.js";import{t as Ce}from"./compiler-runtime-DnimoHo0.js";import{c as Na}from"./utils-C8Yt16Y7.js";import{t as wa}from"./ErrorBoundary-B392qglD.js";import{t as Y}from"./cn-DCUzRj2J.js";import{t as Sa}from"./jsx-runtime-3wZU7vFS.js";import"./fullscreen-CrevbcR_.js";import{r as _a}from"./config-DjP9S1hr.js";import"./popover-B96fOqfH.js";import{_ as Ie,at as Ca,d as Ia,g as de,h as he,it as Ta,m as se,nt as Te,ot as ka,p as ke,rt as Pa,tt as ue}from"./JsonOutput-htT793Wj.js";import"./download-CfUkZlw7.js";import{r as Pe}from"./radio-group-YNmbPL7y.js";import{t as xe}from"./tooltip-C9LWGQ7Y.js";import{r as Fa,t as le}from"./button-W__YVea9.js";import"./dist-CeF1Em5L.js";import{l as ne}from"./arrays-UzzAzxsG.js";import"./cjs-DCKmcMBz.js";import"./useNonce-C2dwX-sI.js";import{i as Ra}from"./strings-DmKKoXrM.js";import{r as $a}from"./requests-B9zEd_sW.js";import{t as Da}from"./createLucideIcon-B8oVfJNp.js";import{t as Va}from"./x-4y-nyVDU.js";import{a as qa,r as Ba}from"./tree-actions-pW_UgP3m.js";import"./markdown-renderer-BOS4jZLt.js";import{t as Fe}from"./plus-r1QITpsJ.js";import{a as Ea}from"./input-BN98e517.js";import{n as La,o as Oa}from"./column-preview-BaRqZ9P8.js";import{t as Ma}from"./workflow-CAJ8rXSh.js";import"./dist-BPoMypmC.js";import"./dist-5bwTcyKs.js";import"./dist-BVNaV53g.js";import"./dist-BrqkjqDe.js";import"./dist-Bm9PT5P9.js";import"./session-D-SddyN0.js";import"./purify.es-Bwm8T4QC.js";import"./dates-CZTDC2tF.js";import{t as za}from"./copy-icon-Cn8LzPNx.js";import{t as Aa}from"./context-BJMN4ll3.js";import"./tooltip-BUmTS76K.js";import"./vega-loader.browser-DLY285WP.js";import"./defaultLocale-CGJY8D9C.js";import"./defaultLocale-DzliDDTm.js";import{t as Re}from"./cell-link-Bx8FWjns.js";import"./chunk-5FQGJX7Z-BIDn9QG0.js";import{r as Ua}from"./html-to-image-ChfBVn8-.js";import{o as Ga}from"./focus-CeTtpVjV.js";import{n as pe}from"./useAsyncData-BcvSvTUt.js";import{a as Ha,i as Ka,n as Wa,o as $e,r as Xa,t as Ja}from"./table-xPvP31p3.js";import"./react-resizable-panels.browser.esm-CLaR27oP.js";import{a as Ya,f as Qa,o as re,t as Za}from"./command-D5LtSvbN.js";import{n as et}from"./icons-BwSNDWAP.js";import{t as at}from"./useDeepCompareMemoize-CbFVGT0j.js";import{t as tt}from"./empty-state-CBq3j1LH.js";import{n as st,t as lt}from"./common-sBRwGAKy.js";import{a as nt,i as De,n as Ve,o as rt,r as qe,t as ot}from"./components-DsJAWbBR.js";import{r as ct,t as Be}from"./add-connection-dialog-DGYhyXo6.js";import{r as it}from"./panel-accordion-state-CgvX-ElJ.js";var mt=Da("square-equal",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 10h10",key:"1101jm"}],["path",{d:"M7 14h10",key:"1mhdw3"}]]),U=Ce(),F=ge(We(),1),s=ge(Sa(),1),fe=1;function Ee(a){return 1.75+a*fe}function dt(a){return 3+a*fe}function Le(a){return 3.25+a*fe}var A={engineEmpty:.75,engine:.75,database:1,tableLoading:2.75,tableSchemaless:2,columnLocal:1.25,columnPreview:2.5};function O(a){return{paddingLeft:`${a}rem`}}var ht=Ke(a=>{let e=a(Ne),t=a(na),l=a(da);return ne(e,n=>{if(!n.variable_name)return-1;let m=Object.values(t).find(u=>u.name===n.variable_name);if(!m)return 0;let r=l.inOrderIds.indexOf(m.declaredBy[0]);return r===-1?0:r})});const ut=ra("marimo:datasources:hideEmpty",!1,ea,{getOnInit:!0});function Oe(a){let e=!1,t=[];for(let l of a){if(!oe(l)||!ie(l)){t.push(l);continue}let n=l.child_schemas??[],m=Oe(n);if(l.tables.length===0&&m.length===0){e=!0;continue}if(m===n){t.push(l);continue}e=!0,t.push({...l,child_schemas:m})}return e?t:a}function xt(a){let e=!1,t=[];for(let l of a){if(Se(l)&&l.schemas.length===0){e=!0;continue}if(l.schemas.length===0){t.push(l);continue}let n=Oe(l.schemas);if(n.length===0){e=!0;continue}if(n===l.schemas){t.push(l);continue}e=!0,t.push({...l,schemas:n})}return e?t:a}const pt=()=>{let a=(0,U.c)(40),[e,t]=F.useState(""),[l,n]=ye(ut),m=je(_e),r=J(ht),u=J(ve),o;e:{if(!l){o=u;break e}let x,w;a[0]===u?(x=a[1],w=a[2]):(x=!1,w=u.map(C=>{let T=xt(C.databases);return T===C.databases?C:(x=!0,{...C,databases:T})}),a[0]=u,a[1]=x,a[2]=w),o=x?w:u}let p=o;if(r.length===0&&p.length===0){let x;return a[3]===Symbol.for("react.memo_cache_sentinel")?(x=(0,s.jsx)(tt,{title:"No tables found",description:"Any datasets/dataframes in the global scope will be shown here.",action:(0,s.jsx)(Be,{children:(0,s.jsxs)(le,{variant:"outline",size:"sm",children:["Add database or catalog",(0,s.jsx)(Fe,{className:"h-4 w-4 ml-2"})]})}),icon:(0,s.jsx)(me,{})}),a[3]=x):x=a[3],x}let h=!!e.trim(),c;a[4]===m?c=a[5]:(c=x=>{m(x.length>0),t(x)},a[4]=m,a[5]=c);let i;a[6]!==e||a[7]!==c?(i=(0,s.jsx)(Ya,{placeholder:"Search tables...",className:"h-6 m-1",value:e,onValueChange:c,rootClassName:"flex-1 border-r border-b-0"}),a[6]=e,a[7]=c,a[8]=i):i=a[8];let f;a[9]===h?f=a[10]:(f=h&&(0,s.jsx)("button",{type:"button",className:"float-right border-b px-2 m-0 h-full hover:bg-accent hover:text-accent-foreground",onClick:()=>t(""),children:(0,s.jsx)(Va,{className:"h-4 w-4"})}),a[9]=h,a[10]=f);let I=!l,b;a[11]!==l||a[12]!==n?(b=()=>n(!l),a[11]=l,a[12]=n,a[13]=b):b=a[13];let y;a[14]!==I||a[15]!==b?(y=(0,s.jsx)(qa,{"data-testid":"datasources-hide-empty-button",isVisible:I,onToggle:b,showTooltip:"Show empty schemas and databases",hideTooltip:"Hide empty schemas and databases",size:"sm",className:"px-2 rounded-none focus-visible:outline-hidden"}),a[14]=I,a[15]=b,a[16]=y):y=a[16];let v;a[17]===Symbol.for("react.memo_cache_sentinel")?(v=(0,s.jsx)(Be,{children:(0,s.jsx)(le,{variant:"ghost",size:"sm",className:"px-2 rounded-none focus-visible:outline-hidden",children:(0,s.jsx)(Fe,{className:"h-4 w-4"})})}),a[17]=v):v=a[17];let g;a[18]!==i||a[19]!==f||a[20]!==y?(g=(0,s.jsxs)("div",{className:"flex items-center w-full border-b",children:[i,f,y,v]}),a[18]=i,a[19]=f,a[20]=y,a[21]=g):g=a[21];let j;if(a[22]!==p||a[23]!==e){let x;a[25]===e?x=a[26]:(x=w=>(0,s.jsx)(ft,{connection:w,hasChildren:w.databases.length>0,children:w.databases.map(C=>(0,s.jsx)(bt,{connection:w,database:C,searchValue:e},C.name))},w.name),a[25]=e,a[26]=x),j=p.map(x),a[22]=p,a[23]=e,a[24]=j}else j=a[24];let S;a[27]!==p.length||a[28]!==r.length?(S=p.length>0&&r.length>0&&(0,s.jsxs)(ke,{className:"pr-2",style:O(A.engine),children:[(0,s.jsx)(et,{className:"h-4 w-4 text-muted-foreground"}),(0,s.jsx)("span",{className:"text-xs",children:"Python"})]}),a[27]=p.length,a[28]=r.length,a[29]=S):S=a[29];let d;a[30]!==e||a[31]!==r?(d=r.length>0&&(0,s.jsx)(be,{tables:r,searchValue:e}),a[30]=e,a[31]=r,a[32]=d):d=a[32];let N;a[33]!==S||a[34]!==d||a[35]!==j?(N=(0,s.jsxs)(Qa,{className:"flex flex-col",children:[j,S,d]}),a[33]=S,a[34]=d,a[35]=j,a[36]=N):N=a[36];let _;return a[37]!==N||a[38]!==g?(_=(0,s.jsxs)(Za,{className:"border-b bg-background rounded-none h-full pb-10 overflow-auto outline-hidden",shouldFilter:!1,children:[g,N]}),a[37]=N,a[38]=g,a[39]=_):_=a[39],_};var ft=a=>{let e=(0,U.c)(26),{connection:t,children:l,hasChildren:n}=a,m=t.name===ma,r=m?"In-Memory":t.name,{previewDataSourceConnection:u}=$a(),o;e[0]!==t.name||e[1]!==u?(o=async()=>{await u({engine:t.name})},e[0]=t.name,e[1]=u,e[2]=o):o=e[2];let p=o,h;e[3]===Symbol.for("react.memo_cache_sentinel")?(h=O(A.engine),e[3]=h):h=e[3];let c;e[4]===t.dialect?c=e[5]:(c=(0,s.jsx)(Je,{className:"h-4 w-4 text-muted-foreground",name:t.dialect}),e[4]=t.dialect,e[5]=c);let i;e[6]===t.dialect?i=e[7]:(i=ya(t.dialect),e[6]=t.dialect,e[7]=i);let f;e[8]===i?f=e[9]:(f=(0,s.jsx)("span",{className:"text-xs",children:i}),e[8]=i,e[9]=f);let I=r,b;e[10]===I?b=e[11]:(b=(0,s.jsxs)("span",{className:"text-xs text-muted-foreground",children:["(",(0,s.jsx)(rt,{variableName:I}),")"]}),e[10]=I,e[11]=b);let y;e[12]!==p||e[13]!==m?(y=!m&&(0,s.jsx)(Ba,{onClick:p,tooltip:"Refresh connection",className:"ml-auto h-4 p-0",iconClassName:"h-3.5 w-3.5"}),e[12]=p,e[13]=m,e[14]=y):y=e[14];let v;e[15]!==c||e[16]!==f||e[17]!==b||e[18]!==y?(v=(0,s.jsxs)(ke,{className:"pr-2",style:h,children:[c,f,b,y]}),e[15]=c,e[16]=f,e[17]=b,e[18]=y,e[19]=v):v=e[19];let g;e[20]!==l||e[21]!==n?(g=n?l:(0,s.jsx)(se,{content:"No databases available",style:O(A.engineEmpty)}),e[20]=l,e[21]=n,e[22]=g):g=e[22];let j;return e[23]!==g||e[24]!==v?(j=(0,s.jsxs)(s.Fragment,{children:[v,g]}),e[23]=g,e[24]=v,e[25]=j):j=e[25],j},Me=F.createContext(null);function ze(){let a=F.useContext(Me);if(a==null)throw Error("useDataSourceTree must be used within a DataSourceTreeContext.Provider");return a}function Ae(a,{schema:e,schemaPath:t}){return{engine:a.engineName,database:a.databaseName,schema:e,schemaPath:t,defaultSchema:a.defaultSchema,defaultDatabase:a.defaultDatabase,dialect:a.dialect}}var bt=a=>{let e=(0,U.c)(21),{connection:t,database:l,searchValue:n}=a,m;e[0]!==t.default_database||e[1]!==t.default_schema||e[2]!==t.dialect||e[3]!==t.name||e[4]!==l.name||e[5]!==n?(m={engineName:t.name,databaseName:l.name,dialect:t.dialect,defaultSchema:t.default_schema,defaultDatabase:t.default_database,searchValue:n},e[0]=t.default_database,e[1]=t.default_schema,e[2]=t.dialect,e[3]=t.name,e[4]=l.name,e[5]=n,e[6]=m):m=e[6];let r=m,u=t.name,o=l.schemas,p;e[7]===l?p=e[8]:(p=Se(l),e[7]=l,e[8]=p);let h;e[9]===Symbol.for("react.memo_cache_sentinel")?(h=[],e[9]=h):h=e[9];let c;e[10]!==l.schemas||e[11]!==p?(c=(0,s.jsx)(Ue,{schemas:o,schemasResolved:p,schemaPath:h,depth:0}),e[10]=l.schemas,e[11]=p,e[12]=c):c=e[12];let i;e[13]!==c||e[14]!==r?(i=(0,s.jsx)(Me.Provider,{value:r,children:c}),e[13]=c,e[14]=r,e[15]=i):i=e[15];let f;return e[16]!==t.name||e[17]!==l||e[18]!==n||e[19]!==i?(f=(0,s.jsx)(gt,{engineName:u,database:l,searchValue:n,children:i}),e[16]=t.name,e[17]=l,e[18]=n,e[19]=i,e[20]=f):f=e[20],f},gt=a=>{let e=(0,U.c)(29),{searchValue:t,engineName:l,database:n,children:m}=a,r;e[0]!==n||e[1]!==t?(r=ia(n,t),e[0]=n,e[1]=t,e[2]=r):r=e[2];let u=r,[o,p]=F.useState(u),[h,c]=F.useState(!1),[i,f]=F.useState(t),[I,b]=F.useState(u);(i!==t||I!==u)&&(f(t),b(u),p(u));let y;e[3]===Symbol.for("react.memo_cache_sentinel")?(y=O(A.database),e[3]=y):y=e[3];let v;e[4]!==o||e[5]!==h?(v=()=>{p(!o),c(!h)},e[4]=o,e[5]=h,e[6]=v):v=e[6];let g=`${l}:${n.name}`,j;e[7]===o?j=e[8]:(j=(0,s.jsx)(Ie,{isExpanded:o}),e[7]=o,e[8]=j);let S=h&&o?"text-foreground":"text-muted-foreground",d;e[9]===S?d=e[10]:(d=Y("h-4 w-4",S),e[9]=S,e[10]=d);let N;e[11]===d?N=e[12]:(N=(0,s.jsx)(me,{className:d}),e[11]=d,e[12]=N);let _=h&&o&&"font-semibold",x;e[13]===_?x=e[14]:(x=Y(_),e[13]=_,e[14]=x);let w;e[15]===n.name?w=e[16]:(w=n.name===""?(0,s.jsx)("i",{children:"Not connected"}):n.name,e[15]=n.name,e[16]=w);let C;e[17]!==x||e[18]!==w?(C=(0,s.jsx)("span",{className:x,children:w}),e[17]=x,e[18]=w,e[19]=C):C=e[19];let T;e[20]!==C||e[21]!==v||e[22]!==g||e[23]!==j||e[24]!==N?(T=(0,s.jsxs)(re,{className:"text-sm flex flex-row gap-1 items-center cursor-pointer rounded-none",style:y,onSelect:v,value:g,children:[j,N,C]}),e[20]=C,e[21]=v,e[22]=g,e[23]=j,e[24]=N,e[25]=T):T=e[25];let k=o&&m,P;return e[26]!==T||e[27]!==k?(P=(0,s.jsxs)(s.Fragment,{children:[T,k]}),e[26]=T,e[27]=k,e[28]=P):P=e[28],P},Ue=a=>{let{schemas:e,schemasResolved:t,depth:l}=a,n=ze(),{engineName:m,databaseName:r,searchValue:u}=n,{addSchemaList:o}=ce(),p=at(a.schemaPath),[h,c]=F.useState(!1),{isPending:i,error:f}=pe(async()=>{if(!t&&m){c(!0);try{o({schemas:(await sa.request({engine:m,database:r,schemaPath:p})).schemas??[],sqlSchemaContext:{engine:m,database:r,schemaPath:p}})}finally{c(!1)}}},[t,m,r,p]),I=O(Ee(l));return i||h?(0,s.jsx)(de,{message:"Loading schemas...",style:I}):f?(0,s.jsx)(he,{error:f,style:I}):e.length===0?(0,s.jsx)(se,{content:"No schemas available",style:I}):(0,s.jsx)(s.Fragment,{children:e.map(b=>ja(b.name)?(0,s.jsx)(be,{tables:b.tables,tablesResolved:oe(b),searchValue:u,sqlTableContext:Ae(n,{schema:b.name,schemaPath:p})},b.name):(0,s.jsx)(jt,{schema:b,schemaPath:[...p,b.name],depth:l},b.name))})},jt=a=>{let e=(0,U.c)(39),{schema:t,schemaPath:l,depth:n}=a,m=ze(),{databaseName:r,searchValue:u}=m,o;e[0]!==t||e[1]!==u?(o=ca(t,u),e[0]=t,e[1]=u,e[2]=o):o=e[2];let p=o,[h,c]=F.useState(p),[i,f]=F.useState(!1),[I,b]=F.useState(u),[y,v]=F.useState(p),g=`${r}:${l.join(".")}`,j;e[3]===t.child_schemas?j=e[4]:(j=t.child_schemas??[],e[3]=t.child_schemas,e[4]=j);let S=j;(I!==u||y!==p)&&(b(u),v(p),c(p));let d;e[5]===n?d=e[6]:(d=O(Ee(n)),e[5]=n,e[6]=d);let N;e[7]!==h||e[8]!==i?(N=()=>{c(!h),f(!i)},e[7]=h,e[8]=i,e[9]=N):N=e[9];let _;e[10]===h?_=e[11]:(_=(0,s.jsx)(Ie,{isExpanded:h}),e[10]=h,e[11]=_);let x=i&&h&&"text-foreground",w;e[12]===x?w=e[13]:(w=Y("h-4 w-4 text-muted-foreground",x),e[12]=x,e[13]=w);let C;e[14]===w?C=e[15]:(C=(0,s.jsx)(Ze,{className:w}),e[14]=w,e[15]=C);let T=i&&h&&"font-semibold",k;e[16]===T?k=e[17]:(k=Y(T),e[16]=T,e[17]=k);let P;e[18]!==t.name||e[19]!==k?(P=(0,s.jsx)("span",{className:k,children:t.name}),e[18]=t.name,e[19]=k,e[20]=P):P=e[20];let $;e[21]!==P||e[22]!==d||e[23]!==N||e[24]!==_||e[25]!==C||e[26]!==g?($=(0,s.jsxs)(re,{className:"text-sm flex flex-row gap-1 items-center cursor-pointer rounded-none",style:d,onSelect:N,value:g,children:[_,C,P]}),e[21]=P,e[22]=d,e[23]=N,e[24]=_,e[25]=C,e[26]=g,e[27]=$):$=e[27];let D;e[28]!==S||e[29]!==n||e[30]!==h||e[31]!==t||e[32]!==l||e[33]!==u||e[34]!==m?(D=h&&(0,s.jsxs)(s.Fragment,{children:[(S.length>0||!ie(t))&&(0,s.jsx)(Ue,{schemas:S,schemasResolved:ie(t),schemaPath:l,depth:n+1}),(0,s.jsx)(be,{tables:t.tables,tablesResolved:oe(t),searchValue:u,tableIndentRem:dt(n),columnIndentRem:Le(n),sqlTableContext:Ae(m,{schema:t.name,schemaPath:l})})]}),e[28]=S,e[29]=n,e[30]=h,e[31]=t,e[32]=l,e[33]=u,e[34]=m,e[35]=D):D=e[35];let R;return e[36]!==$||e[37]!==D?(R=(0,s.jsxs)(s.Fragment,{children:[$,D]}),e[36]=$,e[37]=D,e[38]=R):R=e[38],R},be=a=>{let e=(0,U.c)(31),{tables:t,sqlTableContext:l,searchValue:n,tablesResolved:m,tableIndentRem:r,columnIndentRem:u}=a,o=m===void 0?!0:m,{addTableList:p}=ce(),[h,c]=F.useState(!1),i;e[0]!==p||e[1]!==l||e[2]!==o?(i=async()=>{if(!o&&l){c(!0);let{engine:d,database:N,schema:_,schemaPath:x}=l,w=await Xe.request({engine:d,database:N,schema:_,schemaPath:x??[]});if(!(w!=null&&w.tables))throw c(!1),Error("No tables available");p({tables:w.tables,sqlTableContext:l}),c(!1)}},e[0]=p,e[1]=l,e[2]=o,e[3]=i):i=e[3];let f;e[4]!==l||e[5]!==o?(f=[o,l],e[4]=l,e[5]=o,e[6]=f):f=e[6];let{isPending:I,error:b}=pe(i,f),y=r??A.tableLoading,v;e[7]===y?v=e[8]:(v=O(y),e[7]=y,e[8]=v);let g=v;if(I||h){let d;return e[9]===g?d=e[10]:(d=(0,s.jsx)(de,{message:"Loading tables...",style:g}),e[9]=g,e[10]=d),d}if(b){let d;return e[11]!==b||e[12]!==g?(d=(0,s.jsx)(he,{error:b,style:g}),e[11]=b,e[12]=g,e[13]=d):d=e[13],d}if(t.length===0){let d;return e[14]===g?d=e[15]:(d=(0,s.jsx)(se,{content:"No tables found",style:g}),e[14]=g,e[15]=d),d}let j;if(e[16]!==u||e[17]!==n||e[18]!==l||e[19]!==r||e[20]!==t){let d;e[22]===n?d=e[23]:(d=x=>n?x.name.toLowerCase().includes(n.toLowerCase()):!0,e[22]=n,e[23]=d);let N=t.filter(d),_;e[24]!==u||e[25]!==n||e[26]!==l||e[27]!==r?(_=x=>(0,s.jsx)(yt,{table:x,sqlTableContext:l,isSearching:!!n,tableIndentRem:r,columnIndentRem:u},x.name),e[24]=u,e[25]=n,e[26]=l,e[27]=r,e[28]=_):_=e[28],j=N.map(_),e[16]=u,e[17]=n,e[18]=l,e[19]=r,e[20]=t,e[21]=j}else j=e[21];let S;return e[29]===j?S=e[30]:(S=(0,s.jsx)(s.Fragment,{children:j}),e[29]=j,e[30]=S),S},yt=a=>{let e=(0,U.c)(69),{table:t,sqlTableContext:l,isSearching:n,tableIndentRem:m,columnIndentRem:r}=a,{addTable:u}=ce(),[o,p]=F.useState(!1),h=t.columns.length>0,c;e[0]!==u||e[1]!==o||e[2]!==l||e[3]!==t.name||e[4]!==h?(c=async()=>{if(o&&!h&&l){let{engine:E,database:ee,schema:ae,schemaPath:He}=l,te=await va.request({engine:E,database:ee,schema:ae,tableName:t.name,schemaPath:He??[]});if(!(te!=null&&te.table))throw Error("No table details available");u({table:te.table,sqlTableContext:l})}},e[0]=u,e[1]=o,e[2]=l,e[3]=t.name,e[4]=h,e[5]=c):c=e[5];let i;e[6]!==o||e[7]!==h?(i=[o,h],e[6]=o,e[7]=h,e[8]=i):i=e[8];let{isFetching:f,isPending:I,error:b}=pe(c,i),y=J(Na),v=Ga(),{createNewCell:g}=Qe(),j=Pe(),S;e[9]!==j||e[10]!==y||e[11]!==g||e[12]!==v||e[13]!==l||e[14]!==t?(S=()=>{Ua({autoInstantiate:y,createNewCell:g,fromCellId:v}),j((()=>{if(t.source_type==="catalog"){let E=l!=null&&l.database?[l.database,...l.schemaPath??[],t.name].join("."):t.name;return`${t.engine}.load_table("${E}")`}if(l)return we({table:t,columnName:"*",sqlTableContext:l});switch(t.source_type){case"local":return`mo.ui.table(${t.name})`;case"duckdb":case"connection":return we({table:t,columnName:"*",sqlTableContext:l});default:return Ra(t.source_type),""}})())},e[9]=j,e[10]=y,e[11]=g,e[12]=v,e[13]=l,e[14]=t,e[15]=S):S=e[15];let d=S,N;e[16]!==t.num_columns||e[17]!==t.num_rows?(N=()=>{let E=[];return t.num_rows!=null&&E.push(`${t.num_rows} rows`),t.num_columns!=null&&E.push(`${t.num_columns} columns`),E.length===0?null:(0,s.jsx)("div",{className:"flex flex-row gap-2 items-center pl-6 group-hover:hidden",children:(0,s.jsx)("span",{className:"text-xs text-muted-foreground",children:E.join(", ")})})},e[16]=t.num_columns,e[17]=t.num_rows,e[18]=N):N=e[18];let _=N,x;e[19]!==r||e[20]!==b||e[21]!==f||e[22]!==I||e[23]!==l||e[24]!==t?(x=()=>{let E=O(r??A.tableLoading);if(I||f)return(0,s.jsx)(de,{message:"Loading columns...",style:E});if(b)return(0,s.jsx)(he,{error:b,style:E});let ee=t.columns;return ee.length===0?(0,s.jsx)(se,{content:"No columns found",style:E}):ee.map(ae=>(0,s.jsx)(vt,{table:t,column:ae,sqlTableContext:l,columnIndentRem:r},ae.name))},e[19]=r,e[20]=b,e[21]=f,e[22]=I,e[23]=l,e[24]=t,e[25]=x):x=e[25];let w=x,C;e[26]!==o||e[27]!==n||e[28]!==t.source_type||e[29]!==t.type?(C=()=>{if(t.source_type!=="local")return(0,s.jsx)(t.type==="table"?Ye:ta,{className:"h-3 w-3",strokeWidth:o||n?2.5:void 0})},e[26]=o,e[27]=n,e[28]=t.source_type,e[29]=t.type,e[30]=C):C=e[30];let T=C,k;e[31]!==l||e[32]!==t.name?(k=pa(l,t.name),e[31]=l,e[32]=t.name,e[33]=k):k=e[33];let P=k,$=m??(l?A.tableSchemaless:0),D=(o||n)&&"font-semibold",R;e[34]===D?R=e[35]:(R=Y("rounded-none group h-8 cursor-pointer",D),e[34]=D,e[35]=R);let V;e[36]===$?V=e[37]:(V=O($),e[36]=$,e[37]=V);let q;e[38]===o?q=e[39]:(q=()=>p(!o),e[38]=o,e[39]=q);let L;e[40]===T?L=e[41]:(L=T(),e[40]=T,e[41]=L);let M;e[42]===t.name?M=e[43]:(M=(0,s.jsx)("span",{className:"text-sm",children:t.name}),e[42]=t.name,e[43]=M);let z;e[44]!==L||e[45]!==M?(z=(0,s.jsxs)("div",{className:"flex gap-2 items-center flex-1 pl-1",children:[L,M]}),e[44]=L,e[45]=M,e[46]=z):z=e[46];let B;e[47]===_?B=e[48]:(B=_(),e[47]=_,e[48]=B);let H;e[49]===d?H=e[50]:(H=Fa.stopPropagation(()=>d()),e[49]=d,e[50]=H);let Q;e[51]===Symbol.for("react.memo_cache_sentinel")?(Q=(0,s.jsx)(Oa,{className:"h-3 w-3"}),e[51]=Q):Q=e[51];let K;e[52]===H?K=e[53]:(K=(0,s.jsx)(xe,{content:"Add table to notebook",delayDuration:400,children:(0,s.jsx)(le,{className:"group-hover:inline-flex hidden",variant:"text",size:"icon",onClick:H,children:Q})}),e[52]=H,e[53]=K);let W;e[54]!==o||e[55]!==V||e[56]!==q||e[57]!==z||e[58]!==B||e[59]!==K||e[60]!==R||e[61]!==P?(W=(0,s.jsxs)(re,{className:R,style:V,value:P,"aria-selected":o,forceMount:!0,onSelect:q,children:[z,B,K]}),e[54]=o,e[55]=V,e[56]=q,e[57]=z,e[58]=B,e[59]=K,e[60]=R,e[61]=P,e[62]=W):W=e[62];let X;e[63]!==o||e[64]!==w?(X=o&&w(),e[63]=o,e[64]=w,e[65]=X):X=e[65];let Z;return e[66]!==W||e[67]!==X?(Z=(0,s.jsxs)(s.Fragment,{children:[W,X]}),e[66]=W,e[67]=X,e[68]=Z):Z=e[68],Z},vt=a=>{var M,z;let e=(0,U.c)(51),{table:t,column:l,sqlTableContext:n,columnIndentRem:m}=a,[r,u]=F.useState(!1),o=J(_e),p=je(ga);o&&r&&u(!1),p(r?B=>new Set([...B,`${t.name}:${l.name}`]):B=>(B.delete(`${t.name}:${l.name}`),new Set(B)));let h=Pe(),{columnsPreviews:c}=ha(),i;e[0]!==l.name||e[1]!==t.primary_keys?(i=((M=t.primary_keys)==null?void 0:M.includes(l.name))||!1,e[0]=l.name,e[1]=t.primary_keys,e[2]=i):i=e[2];let f=i,I;e[3]!==l.name||e[4]!==t.indexes?(I=((z=t.indexes)==null?void 0:z.includes(l.name))||!1,e[3]=l.name,e[4]=t.indexes,e[5]=I):I=e[5];let b=I,y;e[6]===h?y=e[7]:(y=B=>{h(B)},e[6]=h,e[7]=y);let v=y,g=Nt,j=r?"font-semibold":"",S;e[8]!==l.name||e[9]!==j?(S=(0,s.jsx)("span",{className:j,children:l.name}),e[8]=l.name,e[9]=j,e[10]=S):S=e[10];let d=S,N=`${t.name}.${l.name}`,_=`${t.name}.${l.name}`,x;e[11]===r?x=e[12]:(x=()=>u(!r),e[11]=r,e[12]=x);let w;e[13]!==m||e[14]!==n?(w=m??(n?Le(0):A.columnLocal),e[13]=m,e[14]=n,e[15]=w):w=e[15];let C;e[16]===w?C=e[17]:(C=O(w),e[16]=w,e[17]=C);let T;e[18]!==l.type||e[19]!==d?(T=(0,s.jsx)(Ia,{columnName:d,dataType:l.type}),e[18]=l.type,e[19]=d,e[20]=T):T=e[20];let k;e[21]===f?k=e[22]:(k=f&&g({tooltipContent:"Primary key",content:"PK"}),e[21]=f,e[22]=k);let P;e[23]===b?P=e[24]:(P=b&&g({tooltipContent:"Indexed",content:"IDX"}),e[23]=b,e[24]=P);let $;e[25]!==C||e[26]!==T||e[27]!==k||e[28]!==P?($=(0,s.jsxs)("div",{className:"flex flex-row gap-2 items-center flex-1",style:C,children:[T,k,P]}),e[25]=C,e[26]=T,e[27]=k,e[28]=P,e[29]=$):$=e[29];let D;e[30]===l.name?D=e[31]:(D=(0,s.jsx)(xe,{content:"Copy column name",delayDuration:400,children:(0,s.jsx)(le,{variant:"text",size:"icon",className:"group-hover:opacity-100 opacity-0 hover:bg-muted text-muted-foreground hover:text-foreground",children:(0,s.jsx)(za,{tooltip:!1,value:l.name,className:"h-3 w-3"})})}),e[30]=l.name,e[31]=D);let R;e[32]===l.external_type?R=e[33]:(R=(0,s.jsx)("span",{className:"text-xs text-muted-foreground",children:l.external_type}),e[32]=l.external_type,e[33]=R);let V;e[34]!==$||e[35]!==D||e[36]!==R||e[37]!==N||e[38]!==_||e[39]!==x?(V=(0,s.jsxs)(re,{className:"rounded-none py-1 group cursor-pointer",value:_,onSelect:x,children:[$,D,R]},N),e[34]=$,e[35]=D,e[36]=R,e[37]=N,e[38]=_,e[39]=x,e[40]=V):V=e[40];let q;e[41]!==l||e[42]!==c||e[43]!==v||e[44]!==r||e[45]!==n||e[46]!==t?(q=r&&(0,s.jsx)("div",{className:"pr-2 py-2 bg-(--slate-1) shadow-inner border-b",style:O(A.columnPreview),children:(0,s.jsx)(wa,{children:(0,s.jsx)(La,{table:t,column:l,onAddColumnChart:v,preview:c.get(n?`${n.database}.${n.schema}.${t.name}:${l.name}`:`${t.name}:${l.name}`),sqlTableContext:n})})}),e[41]=l,e[42]=c,e[43]=v,e[44]=r,e[45]=n,e[46]=t,e[47]=q):q=e[47];let L;return e[48]!==V||e[49]!==q?(L=(0,s.jsxs)(s.Fragment,{children:[V,q]}),e[48]=V,e[49]=q,e[50]=L):L=e[50],L};function Nt(a){let{tooltipContent:e,content:t}=a;return(0,s.jsx)(xe,{content:e,delayDuration:100,children:(0,s.jsx)("span",{className:"text-xs text-black bg-gray-100 dark:invert rounded px-1",children:t})})}function Ds(a){return a}var G={name:"name",type:"type-value",defs:"defs-refs"},wt=[{id:G.name,accessorFn:a=>[a.name,a.declaredBy],enableSorting:!0,sortingFn:"alphanumeric",header:({column:a})=>(0,s.jsx)(ue,{header:"Name",column:a}),cell:({getValue:a})=>{let[e,t]=a();return(0,s.jsx)(lt,{name:e,declaredBy:t})}},{id:G.type,accessorFn:a=>[a.dataType,a.value],enableSorting:!0,sortingFn:"alphanumeric",header:({column:a})=>(0,s.jsx)(ue,{header:(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("span",{children:"Type"}),(0,s.jsx)("span",{children:"Value"})]}),column:a}),cell:({getValue:a})=>{let[e,t]=a();return(0,s.jsxs)("div",{className:"max-w-[150px]",children:[(0,s.jsx)("div",{className:"text-ellipsis overflow-hidden whitespace-nowrap text-muted-foreground font-mono text-xs",children:e}),(0,s.jsx)("div",{className:"text-ellipsis overflow-hidden whitespace-nowrap",title:t??"",children:t})]})}},{id:G.defs,accessorFn:a=>[a.declaredBy,a.usedBy,a.name,a.declaredByNames,a.usedByNames],enableSorting:!0,sortingFn:"basic",header:({column:a})=>(0,s.jsx)(ue,{header:(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("span",{children:"Declared By"}),(0,s.jsx)("span",{children:"Used By"})]}),column:a}),cell:({getValue:a})=>{let[e,t,l]=a(),n=m=>{let r=oa(m);r&&fa(r,l)};return(0,s.jsxs)("div",{className:"flex flex-col gap-1 py-1",children:[(0,s.jsxs)("div",{className:"flex flex-row overflow-auto gap-2 items-center",children:[(0,s.jsx)("span",{title:"Declared by",children:(0,s.jsx)(mt,{className:"w-3.5 h-3.5 text-muted-foreground"})}),e.length===1?(0,s.jsx)(Re,{variant:"focus",cellId:e[0],skipScroll:!0,onClick:()=>n(e[0])}):(0,s.jsx)("div",{className:"text-destructive flex flex-row gap-2",children:e.slice(0,3).map((m,r)=>(0,s.jsxs)("span",{className:"flex",children:[(0,s.jsx)(Re,{variant:"focus",cellId:m,skipScroll:!0,className:"whitespace-nowrap text-destructive",onClick:()=>n(m)},m),r<e.length-1&&", "]},m))})]}),(0,s.jsxs)("div",{className:"flex flex-row overflow-auto gap-2 items-baseline",children:[(0,s.jsx)("span",{title:"Used by",children:(0,s.jsx)(Ma,{className:"w-3.5 h-3.5 text-muted-foreground"})}),(0,s.jsx)(st,{maxCount:3,cellIds:t,skipScroll:!0,onClick:n})]})]})}}];function St({variables:a,sort:e,cellIdToIndex:t}){e||(e={id:G.defs,desc:!1});let l=[];switch(e.id){case G.name:l=ne(a,n=>n.name);break;case G.type:l=ne(a,n=>n.dataType);break;case G.defs:l=ne(a,n=>t.get(n.declaredBy[0]));break}return e.desc?l.toReversed():l}const Ge=(0,F.memo)(({className:a,cellIds:e,variables:t})=>{let[l,n]=F.useState([]),[m,r]=F.useState(""),u=aa(),{locale:o}=Aa(),p=(0,F.useMemo)(()=>{let c=i=>{let f=u[i];return xa(f)?`cell-${e.indexOf(i)}`:f??`cell-${e.indexOf(i)}`};return Object.values(t).map(i=>({...i,declaredByNames:i.declaredBy.map(c),usedByNames:i.usedBy.map(c)}))},[t,u,e]),h=Pa({data:(0,F.useMemo)(()=>{let c=new Map;return e.forEach((i,f)=>c.set(i,f)),St({variables:p,sort:l[0],cellIdToIndex:c})},[p,l,e]),columns:wt,getCoreRowModel:Ta(),onGlobalFilterChange:r,getFilteredRowModel:Ca(),enableFilters:!0,enableGlobalFilter:!0,enableColumnPinning:!1,getColumnCanGlobalFilter(c){return c.columnDef.enableGlobalFilter??!0},globalFilterFn:"auto",manualSorting:!0,locale:o,onSortingChange:n,getSortedRowModel:ka(),state:{sorting:l,globalFilter:m}});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Ea,{className:"w-full",placeholder:"Search",value:m,onChange:c=>r(c.target.value)}),(0,s.jsxs)(Ja,{className:Y("w-full text-sm flex-1 border-separate border-spacing-0",a),children:[(0,s.jsx)(Ha,{children:(0,s.jsx)($e,{className:"whitespace-nowrap text-xs",children:h.getFlatHeaders().map(c=>(0,s.jsx)(Ka,{className:"sticky top-0 bg-background border-b",children:Te(c.column.columnDef.header,c.getContext())},c.id))})}),(0,s.jsx)(Wa,{children:h.getRowModel().rows.map(c=>(0,s.jsx)($e,{className:"hover:bg-accent",children:c.getVisibleCells().map(i=>(0,s.jsx)(Xa,{className:"border-b",children:Te(i.column.columnDef.cell,i.getContext())},i.id))},c.id))})]})]})});Ge.displayName="VariableTable";var _t=Ce(),Ct=()=>{let a=(0,_t.c)(28),e=ba(),t=ua(),l=J(Ne),n=J(ve),m=ct("database"),[r,u]=ye(it),o=l.length+n.length,p;a[0]!==o||a[1]!==r.hasUserInteracted||a[2]!==r.openSections?(p=!r.hasUserInteracted&&o>0?[...new Set([...r.openSections,"datasources"])]:r.openSections,a[0]=o,a[1]=r.hasUserInteracted,a[2]=r.openSections,a[3]=p):p=a[3];let h=p,c;a[4]===u?c=a[5]:(c=x=>{u({openSections:x,hasUserInteracted:!0})},a[4]=u,a[5]=c);let i=c,f=!h.includes("datasources")&&o>0,I=m.length>0,b;a[6]===Symbol.for("react.memo_cache_sentinel")?(b=(0,s.jsx)(me,{className:"w-4 h-4"}),a[6]=b):b=a[6];let y;a[7]!==o||a[8]!==f?(y=f&&(0,s.jsx)(nt,{children:o}),a[7]=o,a[8]=f,a[9]=y):y=a[9];let v;a[10]!==m.length||a[11]!==I?(v=I&&(0,s.jsx)(ot,{count:m.length,type:"database"}),a[10]=m.length,a[11]=I,a[12]=v):v=a[12];let g;a[13]!==y||a[14]!==v?(g=(0,s.jsxs)(De,{children:[b,"Data sources",y,v]}),a[13]=y,a[14]=v,a[15]=g):g=a[15];let j;a[16]===Symbol.for("react.memo_cache_sentinel")?(j=(0,s.jsx)(Ve,{children:(0,s.jsx)(pt,{})}),a[16]=j):j=a[16];let S;a[17]===g?S=a[18]:(S=(0,s.jsxs)(qe,{value:"datasources",children:[g,j]}),a[17]=g,a[18]=S);let d;a[19]===Symbol.for("react.memo_cache_sentinel")?(d=(0,s.jsxs)(De,{children:[(0,s.jsx)(la,{className:"w-4 h-4"}),"Variables"]}),a[19]=d):d=a[19];let N;a[20]!==t||a[21]!==e?(N=(0,s.jsxs)(qe,{value:"variables",lastItem:!0,children:[d,(0,s.jsx)(Ve,{children:Object.keys(e).length===0?(0,s.jsx)("div",{className:"px-3 py-4 text-sm text-muted-foreground",children:"No variables defined"}):(0,s.jsx)(Ge,{cellIds:t.inOrderIds,variables:e})})]}),a[20]=t,a[21]=e,a[22]=N):N=a[22];let _;return a[23]!==i||a[24]!==h||a[25]!==S||a[26]!==N?(_=(0,s.jsxs)(_a,{type:"multiple",value:h,onValueChange:i,className:"flex flex-col h-full overflow-auto",children:[S,N]}),a[23]=i,a[24]=h,a[25]=S,a[26]=N,a[27]=_):_=a[27],_};export{Ct as default};
@@ -0,0 +1 @@
1
+ import{t as e}from"./shell-95QiTNIY.js";export{e as shell};
@@ -0,0 +1 @@
1
+ import{t as e}from"./sieve-4wk3Woa7.js";export{e as sieve};
@@ -1 +1 @@
1
- import{n as r}from"./chunk-Y2CYZVJY-Ci6ix4_L.js";var m=1;function a(){if(!(typeof globalThis>"u"))return globalThis}r(a,"getCaptureGlobal");function c(){var i;return!!((i=a())!=null&&i.mermaidCaptureSizes)}r(c,"shouldCaptureSizes");function d(){return typeof location>"u"?"browser-dev":`${location.pathname}${location.search}`}r(d,"capturedFromLocation");function s(i,o){var u;let e=a();if(!e)return;let t=o.node(),l=((u=(t&&"ownerSVGElement"in t?t.ownerSVGElement:null)??t)==null?void 0:u.id)??"(unknown)";e.mermaidCapturedSizes??(e.mermaidCapturedSizes=[]);let n={svgId:l,sizes:i};e.mermaidCapturedSizes.push(n),e.mermaidLastCapturedSizes=n}r(s,"emitCapturedSizes");function p(i,o){let e=[];for(let t of o.nodes)t.isGroup||e.push({id:t.id,width:t.width??0,height:t.height??0});e.length!==0&&s({metadata:{captureVersion:m,capturedAt:new Date().toISOString(),capturedFrom:d()},nodes:e},i)}r(p,"captureNodeSizes");export{p as captureNodeSizes};
1
+ import{n as r}from"./chunk-Y2CYZVJY-BLNiTciS.js";var m=1;function a(){if(!(typeof globalThis>"u"))return globalThis}r(a,"getCaptureGlobal");function c(){var i;return!!((i=a())!=null&&i.mermaidCaptureSizes)}r(c,"shouldCaptureSizes");function d(){return typeof location>"u"?"browser-dev":`${location.pathname}${location.search}`}r(d,"capturedFromLocation");function s(i,o){var u;let e=a();if(!e)return;let t=o.node(),l=((u=(t&&"ownerSVGElement"in t?t.ownerSVGElement:null)??t)==null?void 0:u.id)??"(unknown)";e.mermaidCapturedSizes??(e.mermaidCapturedSizes=[]);let n={svgId:l,sizes:i};e.mermaidCapturedSizes.push(n),e.mermaidLastCapturedSizes=n}r(s,"emitCapturedSizes");function p(i,o){let e=[];for(let t of o.nodes)t.isGroup||e.push({id:t.id,width:t.width??0,height:t.height??0});e.length!==0&&s({metadata:{captureVersion:m,capturedAt:new Date().toISOString(),capturedFrom:d()},nodes:e},i)}r(p,"captureNodeSizes");export{p as captureNodeSizes};
@@ -1 +1 @@
1
- var A=Object.defineProperty;var N=(t,e,r)=>e in t?A(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var b=(t,e,r)=>N(t,typeof e!="symbol"?e+"":e,r);import{o as T}from"./chunk-C4rtOYze.js";import{u as I}from"./useEvent-GCVIknuR.js";import{a as V}from"./cells-BvgwUKB9.js";import{t as M}from"./compiler-runtime-DnimoHo0.js";import{g as k}from"./useEventListener-DpNnLPuE.js";import{t as E}from"./objects-CrbstYTV.js";import{o as P}from"./utils-C8Yt16Y7.js";import{T as _,v as z}from"./config-DFK5eCC3.js";import{t as D}from"./cn-DCUzRj2J.js";import{t as $}from"./jsx-runtime-3wZU7vFS.js";import{s as B,u as H}from"./download-B8NwKEtr.js";import{r as L}from"./requests-B9zEd_sW.js";import{P as R}from"./layout-C5In1pVG.js";import{t as Y}from"./Deferred-CP7vq682.js";import{t as q}from"./use-toast-DjpWVza6.js";import{t as x}from"./useInterval-CTStcSBb.js";var G=class{constructor(){b(this,"capturedInputs",new Map);b(this,"inFlight",new Map)}cancelEntry(t){t.controller.abort(),t.deferred.status==="pending"&&t.deferred.resolve(void 0)}needsCapture(t,e){if(this.capturedInputs.get(t)===e)return!1;let r=this.inFlight.get(t);return!(r&&r.inputValue===e)}waitForInFlight(t,e){let r=this.inFlight.get(t);return r&&r.inputValue===e?r.deferred.promise:null}startCapture(t,e){let r=this.inFlight.get(t);r&&this.cancelEntry(r);let a=new AbortController,i=new Y,s={controller:a,inputValue:e,deferred:i};return this.inFlight.set(t,s),{signal:a.signal,markCaptured:p=>{this.inFlight.get(t)===s&&(i.resolve(p),this.capturedInputs.set(t,e),this.inFlight.delete(t))},markFailed:()=>{this.inFlight.get(t)===s&&(i.resolve(void 0),this.inFlight.delete(t))}}}prune(t){for(let e of this.capturedInputs.keys())t.has(e)||this.capturedInputs.delete(e);for(let[e,r]of this.inFlight)t.has(e)||(this.cancelEntry(r),this.inFlight.delete(e))}get isCapturing(){return this.inFlight.size>0}abort(){for(let t of this.inFlight.values())this.cancelEntry(t);this.inFlight.clear()}reset(){this.abort(),this.capturedInputs.clear()}},J=M(),S=5e3;function K(){let t=(0,J.c)(14),e=I(P),{state:r}=I(z),a=e.auto_download.includes("markdown"),i=e.auto_download.includes("html"),s=e.auto_download.includes("ipynb"),p=r===_.OPEN,m=!a||!p,d=!i||!p,c=!s||!p,{autoExportAsHTML:l,autoExportAsIPYNB:o,autoExportAsMarkdown:n,updateCellOutputs:u}=L(),h=O(),f;t[0]===n?f=t[1]:(f=async()=>{await n({download:!1})},t[0]=n,t[1]=f);let g;t[2]===m?g=t[3]:(g={delayMs:S,whenVisible:!0,disabled:m},t[2]=m,t[3]=g),x(f,g);let w;t[4]===l?w=t[5]:(w=async()=>{await l({download:!1,includeCode:!0,files:R.INSTANCE.filenames()})},t[4]=l,t[5]=w);let v;t[6]===d?v=t[7]:(v={delayMs:S,whenVisible:!0,disabled:d},t[6]=d,t[7]=v),x(w,v);let F;t[8]!==o||t[9]!==h||t[10]!==u?(F=async()=>{await j({takeScreenshots:()=>h({progress:H.indeterminate()}),updateCellOutputs:u}),await o({download:!1})},t[8]=o,t[9]=h,t[10]=u,t[11]=F):F=t[11];let y;t[12]===c?y=t[13]:(y={delayMs:S,whenVisible:!0,disabled:c,skipIfRunning:!0},t[12]=c,t[13]=y),x(F,y)}var Q=new Set(["text/html","application/vnd.vegalite.v5+json","application/vnd.vega.v5+json","application/vnd.vegalite.v6+json","application/vnd.vega.v6+json"]);const C=new G;function O(){let t=I(V);return async e=>{var d,c;let{progress:r}=e,a=new Set(E.keys(t));C.prune(a);let i=[],s=[];for(let[l,o]of E.entries(t)){let n=(d=o.output)==null?void 0:d.data;if((c=o.output)!=null&&c.mimetype&&Q.has(o.output.mimetype)&&n)if(C.needsCapture(l,n))i.push([l,n]);else{let u=C.waitForInFlight(l,n);u&&s.push({cellId:l,promise:u})}}if(i.length===0&&s.length===0)return{};i.length>0&&r.addTotal(i.length);let p={};for(let[l,o]of i){let n=C.startCapture(l,o);try{let u=await B(l);if(n.signal.aborted)continue;if(!u){k.error(`Failed to capture screenshot for cell ${l}`),n.markFailed();continue}let h=["image/png",u];p[l]=h,n.markCaptured(h)}catch(u){k.error(`Error screenshotting cell ${l}:`,u),n.markFailed()}finally{r.increment(1)}}let m=await Promise.allSettled(s.map(({promise:l})=>l));for(let[l,{cellId:o}]of s.entries()){let n=m[l];n.status==="fulfilled"&&n.value&&(p[o]=n.value)}return p}}async function j(t){let{takeScreenshots:e,updateCellOutputs:r}=t;try{let a=await e();E.size(a)>0&&await r({cellIdsToOutput:a})}catch(a){k.error("Error updating cell outputs with screenshots:",a),q({title:"Failed to capture cell outputs",description:"Some outputs may be missing from the export. Continuing.",variant:"danger"})}}var U=M(),W=T($(),1),X=t=>{let e=(0,U.c)(8),r,a;e[0]===t?(r=e[1],a=e[2]):({className:r,...a}=t,e[0]=t,e[1]=r,e[2]=a);let i;e[3]===r?i=e[4]:(i=D("animate-pulse rounded-md bg-muted",r),e[3]=r,e[4]=i);let s;return e[5]!==a||e[6]!==i?(s=(0,W.jsx)("div",{className:i,...a}),e[5]=a,e[6]=i,e[7]=s):s=e[7],s};export{O as i,j as n,K as r,X as t};
1
+ var A=Object.defineProperty;var N=(t,e,r)=>e in t?A(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var b=(t,e,r)=>N(t,typeof e!="symbol"?e+"":e,r);import{o as T}from"./chunk-C4rtOYze.js";import{u as I}from"./useEvent-GCVIknuR.js";import{a as V}from"./cells-Biwqg0z6.js";import{t as M}from"./compiler-runtime-DnimoHo0.js";import{g as k}from"./useEventListener-DpNnLPuE.js";import{t as E}from"./objects-CrbstYTV.js";import{o as P}from"./utils-C8Yt16Y7.js";import{T as _,v as z}from"./config-DFK5eCC3.js";import{t as D}from"./cn-DCUzRj2J.js";import{t as $}from"./jsx-runtime-3wZU7vFS.js";import{s as B,u as H}from"./download-CfUkZlw7.js";import{r as L}from"./requests-B9zEd_sW.js";import{P as R}from"./layout-YPBtS2D6.js";import{t as Y}from"./Deferred-CP7vq682.js";import{t as q}from"./use-toast-DjpWVza6.js";import{t as x}from"./useInterval-WeprorQN.js";var G=class{constructor(){b(this,"capturedInputs",new Map);b(this,"inFlight",new Map)}cancelEntry(t){t.controller.abort(),t.deferred.status==="pending"&&t.deferred.resolve(void 0)}needsCapture(t,e){if(this.capturedInputs.get(t)===e)return!1;let r=this.inFlight.get(t);return!(r&&r.inputValue===e)}waitForInFlight(t,e){let r=this.inFlight.get(t);return r&&r.inputValue===e?r.deferred.promise:null}startCapture(t,e){let r=this.inFlight.get(t);r&&this.cancelEntry(r);let a=new AbortController,i=new Y,s={controller:a,inputValue:e,deferred:i};return this.inFlight.set(t,s),{signal:a.signal,markCaptured:p=>{this.inFlight.get(t)===s&&(i.resolve(p),this.capturedInputs.set(t,e),this.inFlight.delete(t))},markFailed:()=>{this.inFlight.get(t)===s&&(i.resolve(void 0),this.inFlight.delete(t))}}}prune(t){for(let e of this.capturedInputs.keys())t.has(e)||this.capturedInputs.delete(e);for(let[e,r]of this.inFlight)t.has(e)||(this.cancelEntry(r),this.inFlight.delete(e))}get isCapturing(){return this.inFlight.size>0}abort(){for(let t of this.inFlight.values())this.cancelEntry(t);this.inFlight.clear()}reset(){this.abort(),this.capturedInputs.clear()}},J=M(),S=5e3;function K(){let t=(0,J.c)(14),e=I(P),{state:r}=I(z),a=e.auto_download.includes("markdown"),i=e.auto_download.includes("html"),s=e.auto_download.includes("ipynb"),p=r===_.OPEN,m=!a||!p,d=!i||!p,c=!s||!p,{autoExportAsHTML:l,autoExportAsIPYNB:o,autoExportAsMarkdown:n,updateCellOutputs:u}=L(),h=O(),f;t[0]===n?f=t[1]:(f=async()=>{await n({download:!1})},t[0]=n,t[1]=f);let g;t[2]===m?g=t[3]:(g={delayMs:S,whenVisible:!0,disabled:m},t[2]=m,t[3]=g),x(f,g);let w;t[4]===l?w=t[5]:(w=async()=>{await l({download:!1,includeCode:!0,files:R.INSTANCE.filenames()})},t[4]=l,t[5]=w);let v;t[6]===d?v=t[7]:(v={delayMs:S,whenVisible:!0,disabled:d},t[6]=d,t[7]=v),x(w,v);let F;t[8]!==o||t[9]!==h||t[10]!==u?(F=async()=>{await j({takeScreenshots:()=>h({progress:H.indeterminate()}),updateCellOutputs:u}),await o({download:!1})},t[8]=o,t[9]=h,t[10]=u,t[11]=F):F=t[11];let y;t[12]===c?y=t[13]:(y={delayMs:S,whenVisible:!0,disabled:c,skipIfRunning:!0},t[12]=c,t[13]=y),x(F,y)}var Q=new Set(["text/html","application/vnd.vegalite.v5+json","application/vnd.vega.v5+json","application/vnd.vegalite.v6+json","application/vnd.vega.v6+json"]);const C=new G;function O(){let t=I(V);return async e=>{var d,c;let{progress:r}=e,a=new Set(E.keys(t));C.prune(a);let i=[],s=[];for(let[l,o]of E.entries(t)){let n=(d=o.output)==null?void 0:d.data;if((c=o.output)!=null&&c.mimetype&&Q.has(o.output.mimetype)&&n)if(C.needsCapture(l,n))i.push([l,n]);else{let u=C.waitForInFlight(l,n);u&&s.push({cellId:l,promise:u})}}if(i.length===0&&s.length===0)return{};i.length>0&&r.addTotal(i.length);let p={};for(let[l,o]of i){let n=C.startCapture(l,o);try{let u=await B(l);if(n.signal.aborted)continue;if(!u){k.error(`Failed to capture screenshot for cell ${l}`),n.markFailed();continue}let h=["image/png",u];p[l]=h,n.markCaptured(h)}catch(u){k.error(`Error screenshotting cell ${l}:`,u),n.markFailed()}finally{r.increment(1)}}let m=await Promise.allSettled(s.map(({promise:l})=>l));for(let[l,{cellId:o}]of s.entries()){let n=m[l];n.status==="fulfilled"&&n.value&&(p[o]=n.value)}return p}}async function j(t){let{takeScreenshots:e,updateCellOutputs:r}=t;try{let a=await e();E.size(a)>0&&await r({cellIdsToOutput:a})}catch(a){k.error("Error updating cell outputs with screenshots:",a),q({title:"Failed to capture cell outputs",description:"Some outputs may be missing from the export. Continuing.",variant:"danger"})}}var U=M(),W=T($(),1),X=t=>{let e=(0,U.c)(8),r,a;e[0]===t?(r=e[1],a=e[2]):({className:r,...a}=t,e[0]=t,e[1]=r,e[2]=a);let i;e[3]===r?i=e[4]:(i=D("animate-pulse rounded-md bg-muted",r),e[3]=r,e[4]=i);let s;return e[5]!==a||e[6]!==i?(s=(0,W.jsx)("div",{className:i,...a}),e[5]=a,e[6]=i,e[7]=s):s=e[7],s};export{O as i,j as n,K as r,X as t};
@@ -0,0 +1 @@
1
+ import{t as a}from"./smalltalk-BFPyGpl7.js";export{a as smalltalk};
@@ -1 +1 @@
1
- import{o as I}from"./chunk-C4rtOYze.js";import"./useEvent-GCVIknuR.js";import{t as D}from"./react-C60yClUi.js";import{E as F}from"./cells-BvgwUKB9.js";import"./react-dom-Ba2zmJWD.js";import{t as $}from"./compiler-runtime-DnimoHo0.js";import{n as G}from"./useEventListener-DpNnLPuE.js";import{n as R}from"./constants-DifUxsbZ.js";import{t as T}from"./cn-DCUzRj2J.js";import{t as W}from"./jsx-runtime-3wZU7vFS.js";import"./fullscreen-CrevbcR_.js";import{t as A}from"./tooltip-C9LWGQ7Y.js";import{t as w}from"./button-W__YVea9.js";import{st as B}from"./dist-CeF1Em5L.js";import"./cjs-DCKmcMBz.js";import"./useNonce-C2dwX-sI.js";import{r as J}from"./requests-B9zEd_sW.js";import{n as E,t as K}from"./LazyAnyLanguageCodeMirror-DUvRReKp.js";import{t as L}from"./x-4y-nyVDU.js";import{t as U}from"./spinner-Cj3eM5bt.js";import{t as V}from"./plus-r1QITpsJ.js";import"./dist-BPoMypmC.js";import"./dist-5bwTcyKs.js";import"./dist-BVNaV53g.js";import"./dist-BrqkjqDe.js";import"./dist-Bm9PT5P9.js";import"./session-D-SddyN0.js";import{r as X}from"./useTheme-CwCyrmDf.js";import"./purify.es-Bwm8T4QC.js";import{t as Y}from"./RenderHTML-BoN8Qu7U.js";import{a as Z,c as Q,i as ee,n as te,r as se}from"./dialog-WU4x2UpK.js";import{n as re}from"./ImperativeModal-Dxj31V4A.js";import{n as le}from"./error-banner-d0-XOKtd.js";import{o as oe}from"./focus-BArgHYf8.js";import{n as ie}from"./useAsyncData-BcvSvTUt.js";import{n as ae,r as ne,t as M}from"./react-resizable-panels.browser.esm-CLaR27oP.js";import{a as me,f as ce,o as de,r as pe,t as fe}from"./command-D5LtSvbN.js";import{t as he}from"./empty-state-CBq3j1LH.js";import{n as xe,r as ue}from"./panel-context-CkhpgwrR.js";import{t as je}from"./readonly-code-display-kRUXu5aJ.js";import{t as H}from"./kiosk-mode-B8UhlOLw.js";var O=$(),C=I(D(),1),s=I(W(),1),be=G;const ve=t=>{let e=(0,O.c)(6),{children:r}=t,{openModal:i,closeModal:o}=re(),l;e[0]!==o||e[1]!==i?(l=()=>i((0,s.jsx)(Ne,{onClose:o})),e[0]=o,e[1]=i,e[2]=l):l=e[2];let a;return e[3]!==r||e[4]!==l?(a=(0,s.jsx)(be,{onClick:l,children:r}),e[3]=r,e[4]=l,e[5]=a):a=e[5],a};var Ne=t=>{let e=(0,O.c)(4),{onClose:r}=t,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)(Q,{children:"Contribute a Snippet"}),e[0]=i):i=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=(0,s.jsxs)(Z,{children:[i,(0,s.jsxs)(se,{children:["Have a useful snippet you want to share with the community? Make a pull request"," ",(0,s.jsx)("a",{href:R.githubPage,target:"_blank",className:"underline",children:"on GitHub"}),"."]})]}),e[1]=o):o=e[1];let l;return e[2]===r?l=e[3]:(l=(0,s.jsxs)(te,{className:"max-w-md",children:[o,(0,s.jsx)(ee,{children:(0,s.jsx)(w,{"data-testid":"snippet-close-button",variant:"default",onClick:r,children:"Close"})})]}),e[2]=r,e[3]=l),l},k=$(),_e=[B.lineWrapping],ge=()=>{let t=(0,k.c)(24),{readSnippets:e}=J(),[r,i]=C.useState(),o=xe(),l=ue(),a;t[0]===e?a=t[1]:(a=()=>e(),t[0]=e,t[1]=a);let c;t[2]===Symbol.for("react.memo_cache_sentinel")?(c=[],t[2]=c):c=t[2];let{data:N,error:j,isPending:g}=ie(a,c);if(j){let m;return t[3]===j?m=t[4]:(m=(0,s.jsx)(le,{error:j}),t[3]=j,t[4]=m),m}if(g||!N){let m;return t[5]===Symbol.for("react.memo_cache_sentinel")?(m=(0,s.jsx)(U,{size:"medium",centered:!0}),t[5]=m):m=t[5],m}let _=o==="vertical",b;t[6]===Symbol.for("react.memo_cache_sentinel")?(b=(0,s.jsx)(me,{placeholder:"Search snippets...",className:"h-6 m-1",rootClassName:"flex-1 border-r"}),t[6]=b):b=t[6];let f,h;t[7]===Symbol.for("react.memo_cache_sentinel")?(f=(0,s.jsxs)("div",{className:"flex items-center w-full border-b",children:[b,(0,s.jsx)(ve,{children:(0,s.jsx)("button",{className:"float-right px-2 m-0 h-full hover:bg-accent hover:text-accent-foreground",children:(0,s.jsx)(V,{className:"h-4 w-4"})})})]}),h=(0,s.jsx)(pe,{children:"No results"}),t[7]=f,t[8]=h):(f=t[7],h=t[8]);let v;t[9]===Symbol.for("react.memo_cache_sentinel")?(v=m=>i(m),t[9]=v):v=t[9];let d;t[10]===N.snippets?d=t[11]:(d=(0,s.jsx)(M,{defaultSize:40,minSize:20,maxSize:70,children:(0,s.jsxs)(fe,{className:"h-full rounded-none",children:[f,h,(0,s.jsx)(we,{onSelect:v,snippets:N.snippets})]})}),t[10]=N.snippets,t[11]=d);let u=_?"h-1":"w-1",p;t[12]===u?p=t[13]:(p=T("bg-border hover:bg-primary/50 transition-colors",u),t[12]=u,t[13]=p);let x;t[14]===p?x=t[15]:(x=(0,s.jsx)(ne,{className:p}),t[14]=p,t[15]=x);let n;t[16]===r?n=t[17]:(n=(0,s.jsx)(M,{defaultSize:60,minSize:20,children:(0,s.jsx)(C.Suspense,{children:(0,s.jsx)("div",{className:"h-full snippet-viewer flex flex-col overflow-hidden",children:r?(0,s.jsx)(Se,{snippet:r,onClose:()=>i(void 0)},r.title):(0,s.jsx)(he,{title:"",description:"Click on a snippet to view its content."})})})}),t[16]=r,t[17]=n);let S;return t[18]!==o||t[19]!==l||t[20]!==n||t[21]!==d||t[22]!==x?(S=(0,s.jsx)("div",{className:"flex-1 overflow-hidden h-full",children:(0,s.jsxs)(ae,{direction:o,className:"h-full",children:[d,x,n]},l)}),t[18]=o,t[19]=l,t[20]=n,t[21]=d,t[22]=x,t[23]=S):S=t[23],S},Se=t=>{let e=(0,k.c)(33),{snippet:r,onClose:i}=t,{theme:o}=X(),{createNewCell:l}=F(),a=oe(),c;e[0]!==l||e[1]!==a||e[2]!==r.sections?(c=()=>{for(let n of r.sections.toReversed())n.code&&l({code:n.code,before:!1,cellId:a??"__end__",skipIfCodeExists:!0})},e[0]=l,e[1]=a,e[2]=r.sections,e[3]=c):c=e[3];let N=c,j;e[4]!==l||e[5]!==a?(j=n=>{l({code:n,before:!1,cellId:a??"__end__"})},e[4]=l,e[5]=a,e[6]=j):j=e[6];let g=j,_;e[7]===r.title?_=e[8]:(_=(0,s.jsx)("span",{children:r.title}),e[7]=r.title,e[8]=_);let b;e[9]===Symbol.for("react.memo_cache_sentinel")?(b=(0,s.jsx)(L,{className:"h-4 w-4"}),e[9]=b):b=e[9];let f;e[10]===i?f=e[11]:(f=(0,s.jsx)(w,{size:"sm",variant:"ghost",onClick:i,className:"h-6 w-6 p-0 hover:bg-muted-foreground/10",children:b}),e[10]=i,e[11]=f);let h;e[12]!==_||e[13]!==f?(h=(0,s.jsxs)("div",{className:"text-sm font-semibold bg-muted border-y px-2 py-1 flex justify-between items-center",children:[_,f]}),e[12]=_,e[13]=f,e[14]=h):h=e[14];let v;e[15]===Symbol.for("react.memo_cache_sentinel")?(v=(0,s.jsx)(E,{className:"ml-2 h-4 w-4"}),e[15]=v):v=e[15];let d;e[16]===N?d=e[17]:(d=(0,s.jsx)("div",{className:"flex justify-end",children:(0,s.jsx)(H,{children:(0,s.jsxs)(w,{className:"float-right",size:"xs",variant:"outline",onClick:N,children:["Insert snippet",v]})})}),e[16]=N,e[17]=d);let u;if(e[18]!==g||e[19]!==r.sections||e[20]!==r.title||e[21]!==o){let n;e[23]!==g||e[24]!==r.title||e[25]!==o?(n=S=>{let{code:m,html:z,id:y}=S;if(z)return(0,s.jsx)("div",{children:Y({html:z})},`${r.title}-${y}`);if(!m)return null;let{language:P,code:q}=je(m);return(0,s.jsxs)("div",{className:"relative hover-actions-parent pr-2",children:[(0,s.jsx)(H,{children:(0,s.jsx)(A,{content:"Insert snippet",children:(0,s.jsx)(w,{className:"absolute -top-2 -right-1 z-10 hover-action px-2 bg-background",size:"sm",variant:"outline",onClick:()=>{g(m)},children:(0,s.jsx)(E,{className:"h-5 w-5"})})})}),(0,s.jsx)(C.Suspense,{children:(0,s.jsx)(K,{theme:o==="dark"?"dark":"light",language:P,className:"cm border rounded overflow-hidden",extensions:_e,value:q,readOnly:!0},`${r.title}-${y}`)})]},`${r.title}-${y}`)},e[23]=g,e[24]=r.title,e[25]=o,e[26]=n):n=e[26],u=r.sections.map(n),e[18]=g,e[19]=r.sections,e[20]=r.title,e[21]=o,e[22]=u}else u=e[22];let p;e[27]!==d||e[28]!==u?(p=(0,s.jsxs)("div",{className:"px-2 py-2 space-y-4 overflow-auto flex-1",children:[d,u]}),e[27]=d,e[28]=u,e[29]=p):p=e[29];let x;return e[30]!==p||e[31]!==h?(x=(0,s.jsxs)(s.Fragment,{children:[h,p]}),e[30]=p,e[31]=h,e[32]=x):x=e[32],x},we=t=>{let e=(0,k.c)(7),{snippets:r,onSelect:i}=t,o;if(e[0]!==i||e[1]!==r){let a;e[3]===i?a=e[4]:(a=c=>(0,s.jsx)(de,{className:"rounded-none",onSelect:()=>i(c),children:(0,s.jsx)("div",{className:"flex flex-row gap-2 items-center",children:(0,s.jsx)("span",{className:"mt-1 text-accent-foreground",children:c.title})})},c.title),e[3]=i,e[4]=a),o=r.map(a),e[0]=i,e[1]=r,e[2]=o}else o=e[2];let l;return e[5]===o?l=e[6]:(l=(0,s.jsx)(ce,{className:"flex flex-col overflow-auto",children:o}),e[5]=o,e[6]=l),l};export{ge as default};
1
+ import{o as I}from"./chunk-C4rtOYze.js";import"./useEvent-GCVIknuR.js";import{t as D}from"./react-C60yClUi.js";import{E as F}from"./cells-Biwqg0z6.js";import"./react-dom-Ba2zmJWD.js";import{t as $}from"./compiler-runtime-DnimoHo0.js";import{n as G}from"./useEventListener-DpNnLPuE.js";import{n as R}from"./constants-DifUxsbZ.js";import{t as T}from"./cn-DCUzRj2J.js";import{t as W}from"./jsx-runtime-3wZU7vFS.js";import"./fullscreen-CrevbcR_.js";import{t as A}from"./tooltip-C9LWGQ7Y.js";import{t as w}from"./button-W__YVea9.js";import{st as B}from"./dist-CeF1Em5L.js";import"./cjs-DCKmcMBz.js";import"./useNonce-C2dwX-sI.js";import{r as J}from"./requests-B9zEd_sW.js";import{n as E,t as K}from"./LazyAnyLanguageCodeMirror-Bx0i_n8B.js";import{t as L}from"./x-4y-nyVDU.js";import{t as U}from"./spinner-Cj3eM5bt.js";import{t as V}from"./plus-r1QITpsJ.js";import"./dist-BPoMypmC.js";import"./dist-5bwTcyKs.js";import"./dist-BVNaV53g.js";import"./dist-BrqkjqDe.js";import"./dist-Bm9PT5P9.js";import"./session-D-SddyN0.js";import{r as X}from"./useTheme-CwCyrmDf.js";import"./purify.es-Bwm8T4QC.js";import{t as Y}from"./RenderHTML-Cu5JtYZJ.js";import{a as Z,c as Q,i as ee,n as te,r as se}from"./dialog-WU4x2UpK.js";import{n as re}from"./ImperativeModal-Dxj31V4A.js";import{n as le}from"./error-banner-d0-XOKtd.js";import{o as oe}from"./focus-CeTtpVjV.js";import{n as ie}from"./useAsyncData-BcvSvTUt.js";import{n as ae,r as ne,t as M}from"./react-resizable-panels.browser.esm-CLaR27oP.js";import{a as me,f as ce,o as de,r as pe,t as fe}from"./command-D5LtSvbN.js";import{t as he}from"./empty-state-CBq3j1LH.js";import{n as xe,r as ue}from"./panel-context-CkhpgwrR.js";import{t as je}from"./readonly-code-display-N9tCXdCz.js";import{t as H}from"./kiosk-mode-CNguD0K4.js";var O=$(),C=I(D(),1),s=I(W(),1),be=G;const ve=t=>{let e=(0,O.c)(6),{children:r}=t,{openModal:i,closeModal:o}=re(),l;e[0]!==o||e[1]!==i?(l=()=>i((0,s.jsx)(Ne,{onClose:o})),e[0]=o,e[1]=i,e[2]=l):l=e[2];let a;return e[3]!==r||e[4]!==l?(a=(0,s.jsx)(be,{onClick:l,children:r}),e[3]=r,e[4]=l,e[5]=a):a=e[5],a};var Ne=t=>{let e=(0,O.c)(4),{onClose:r}=t,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)(Q,{children:"Contribute a Snippet"}),e[0]=i):i=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=(0,s.jsxs)(Z,{children:[i,(0,s.jsxs)(se,{children:["Have a useful snippet you want to share with the community? Make a pull request"," ",(0,s.jsx)("a",{href:R.githubPage,target:"_blank",className:"underline",children:"on GitHub"}),"."]})]}),e[1]=o):o=e[1];let l;return e[2]===r?l=e[3]:(l=(0,s.jsxs)(te,{className:"max-w-md",children:[o,(0,s.jsx)(ee,{children:(0,s.jsx)(w,{"data-testid":"snippet-close-button",variant:"default",onClick:r,children:"Close"})})]}),e[2]=r,e[3]=l),l},k=$(),_e=[B.lineWrapping],ge=()=>{let t=(0,k.c)(24),{readSnippets:e}=J(),[r,i]=C.useState(),o=xe(),l=ue(),a;t[0]===e?a=t[1]:(a=()=>e(),t[0]=e,t[1]=a);let c;t[2]===Symbol.for("react.memo_cache_sentinel")?(c=[],t[2]=c):c=t[2];let{data:N,error:j,isPending:g}=ie(a,c);if(j){let m;return t[3]===j?m=t[4]:(m=(0,s.jsx)(le,{error:j}),t[3]=j,t[4]=m),m}if(g||!N){let m;return t[5]===Symbol.for("react.memo_cache_sentinel")?(m=(0,s.jsx)(U,{size:"medium",centered:!0}),t[5]=m):m=t[5],m}let _=o==="vertical",b;t[6]===Symbol.for("react.memo_cache_sentinel")?(b=(0,s.jsx)(me,{placeholder:"Search snippets...",className:"h-6 m-1",rootClassName:"flex-1 border-r"}),t[6]=b):b=t[6];let f,h;t[7]===Symbol.for("react.memo_cache_sentinel")?(f=(0,s.jsxs)("div",{className:"flex items-center w-full border-b",children:[b,(0,s.jsx)(ve,{children:(0,s.jsx)("button",{className:"float-right px-2 m-0 h-full hover:bg-accent hover:text-accent-foreground",children:(0,s.jsx)(V,{className:"h-4 w-4"})})})]}),h=(0,s.jsx)(pe,{children:"No results"}),t[7]=f,t[8]=h):(f=t[7],h=t[8]);let v;t[9]===Symbol.for("react.memo_cache_sentinel")?(v=m=>i(m),t[9]=v):v=t[9];let d;t[10]===N.snippets?d=t[11]:(d=(0,s.jsx)(M,{defaultSize:40,minSize:20,maxSize:70,children:(0,s.jsxs)(fe,{className:"h-full rounded-none",children:[f,h,(0,s.jsx)(we,{onSelect:v,snippets:N.snippets})]})}),t[10]=N.snippets,t[11]=d);let u=_?"h-1":"w-1",p;t[12]===u?p=t[13]:(p=T("bg-border hover:bg-primary/50 transition-colors",u),t[12]=u,t[13]=p);let x;t[14]===p?x=t[15]:(x=(0,s.jsx)(ne,{className:p}),t[14]=p,t[15]=x);let n;t[16]===r?n=t[17]:(n=(0,s.jsx)(M,{defaultSize:60,minSize:20,children:(0,s.jsx)(C.Suspense,{children:(0,s.jsx)("div",{className:"h-full snippet-viewer flex flex-col overflow-hidden",children:r?(0,s.jsx)(Se,{snippet:r,onClose:()=>i(void 0)},r.title):(0,s.jsx)(he,{title:"",description:"Click on a snippet to view its content."})})})}),t[16]=r,t[17]=n);let S;return t[18]!==o||t[19]!==l||t[20]!==n||t[21]!==d||t[22]!==x?(S=(0,s.jsx)("div",{className:"flex-1 overflow-hidden h-full",children:(0,s.jsxs)(ae,{direction:o,className:"h-full",children:[d,x,n]},l)}),t[18]=o,t[19]=l,t[20]=n,t[21]=d,t[22]=x,t[23]=S):S=t[23],S},Se=t=>{let e=(0,k.c)(33),{snippet:r,onClose:i}=t,{theme:o}=X(),{createNewCell:l}=F(),a=oe(),c;e[0]!==l||e[1]!==a||e[2]!==r.sections?(c=()=>{for(let n of r.sections.toReversed())n.code&&l({code:n.code,before:!1,cellId:a??"__end__",skipIfCodeExists:!0})},e[0]=l,e[1]=a,e[2]=r.sections,e[3]=c):c=e[3];let N=c,j;e[4]!==l||e[5]!==a?(j=n=>{l({code:n,before:!1,cellId:a??"__end__"})},e[4]=l,e[5]=a,e[6]=j):j=e[6];let g=j,_;e[7]===r.title?_=e[8]:(_=(0,s.jsx)("span",{children:r.title}),e[7]=r.title,e[8]=_);let b;e[9]===Symbol.for("react.memo_cache_sentinel")?(b=(0,s.jsx)(L,{className:"h-4 w-4"}),e[9]=b):b=e[9];let f;e[10]===i?f=e[11]:(f=(0,s.jsx)(w,{size:"sm",variant:"ghost",onClick:i,className:"h-6 w-6 p-0 hover:bg-muted-foreground/10",children:b}),e[10]=i,e[11]=f);let h;e[12]!==_||e[13]!==f?(h=(0,s.jsxs)("div",{className:"text-sm font-semibold bg-muted border-y px-2 py-1 flex justify-between items-center",children:[_,f]}),e[12]=_,e[13]=f,e[14]=h):h=e[14];let v;e[15]===Symbol.for("react.memo_cache_sentinel")?(v=(0,s.jsx)(E,{className:"ml-2 h-4 w-4"}),e[15]=v):v=e[15];let d;e[16]===N?d=e[17]:(d=(0,s.jsx)("div",{className:"flex justify-end",children:(0,s.jsx)(H,{children:(0,s.jsxs)(w,{className:"float-right",size:"xs",variant:"outline",onClick:N,children:["Insert snippet",v]})})}),e[16]=N,e[17]=d);let u;if(e[18]!==g||e[19]!==r.sections||e[20]!==r.title||e[21]!==o){let n;e[23]!==g||e[24]!==r.title||e[25]!==o?(n=S=>{let{code:m,html:z,id:y}=S;if(z)return(0,s.jsx)("div",{children:Y({html:z})},`${r.title}-${y}`);if(!m)return null;let{language:P,code:q}=je(m);return(0,s.jsxs)("div",{className:"relative hover-actions-parent pr-2",children:[(0,s.jsx)(H,{children:(0,s.jsx)(A,{content:"Insert snippet",children:(0,s.jsx)(w,{className:"absolute -top-2 -right-1 z-10 hover-action px-2 bg-background",size:"sm",variant:"outline",onClick:()=>{g(m)},children:(0,s.jsx)(E,{className:"h-5 w-5"})})})}),(0,s.jsx)(C.Suspense,{children:(0,s.jsx)(K,{theme:o==="dark"?"dark":"light",language:P,className:"cm border rounded overflow-hidden",extensions:_e,value:q,readOnly:!0},`${r.title}-${y}`)})]},`${r.title}-${y}`)},e[23]=g,e[24]=r.title,e[25]=o,e[26]=n):n=e[26],u=r.sections.map(n),e[18]=g,e[19]=r.sections,e[20]=r.title,e[21]=o,e[22]=u}else u=e[22];let p;e[27]!==d||e[28]!==u?(p=(0,s.jsxs)("div",{className:"px-2 py-2 space-y-4 overflow-auto flex-1",children:[d,u]}),e[27]=d,e[28]=u,e[29]=p):p=e[29];let x;return e[30]!==p||e[31]!==h?(x=(0,s.jsxs)(s.Fragment,{children:[h,p]}),e[30]=p,e[31]=h,e[32]=x):x=e[32],x},we=t=>{let e=(0,k.c)(7),{snippets:r,onSelect:i}=t,o;if(e[0]!==i||e[1]!==r){let a;e[3]===i?a=e[4]:(a=c=>(0,s.jsx)(de,{className:"rounded-none",onSelect:()=>i(c),children:(0,s.jsx)("div",{className:"flex flex-row gap-2 items-center",children:(0,s.jsx)("span",{className:"mt-1 text-accent-foreground",children:c.title})})},c.title),e[3]=i,e[4]=a),o=r.map(a),e[0]=i,e[1]=r,e[2]=o}else o=e[2];let l;return e[5]===o?l=e[6]:(l=(0,s.jsx)(ce,{className:"flex flex-col overflow-auto",children:o}),e[5]=o,e[6]=l),l};export{ge as default};
@@ -0,0 +1 @@
1
+ import{t as r}from"./sparql-BMyoR-t0.js";export{r as sparql};
@@ -0,0 +1 @@
1
+ import{i as I}from"./strings-DmKKoXrM.js";import{t as p}from"./createLucideIcon-B8oVfJNp.js";import{a as J}from"./useLifecycle-DDwuYzlC.js";import{t as R}from"./chart-no-axes-column-eb23KpAk.js";import{r as Z,t as ee}from"./table-FVnUU4--.js";import{t as te}from"./square-function-ypIvDL4C.js";var ae=p("align-center-vertical",[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"M8 10H4a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h4",key:"14d6g8"}],["path",{d:"M16 10h4a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-4",key:"1e2lrw"}],["path",{d:"M8 20H7a2 2 0 0 1-2-2v-2c0-1.1.9-2 2-2h1",key:"1fkdwx"}],["path",{d:"M16 14h1a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-1",key:"1euafb"}]]),ne=p("arrow-down-to-line",[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]]),re=p("arrow-up-to-line",[["path",{d:"M5 3h14",key:"7usisc"}],["path",{d:"m18 13-6-6-6 6",key:"1kf1n9"}],["path",{d:"M12 7v14",key:"1akyts"}]]),ie=p("baseline",[["path",{d:"M4 20h16",key:"14thso"}],["path",{d:"m6 16 6-12 6 12",key:"1b4byz"}],["path",{d:"M8 12h8",key:"1wcyev"}]]),le=p("chart-area",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 11.207a.5.5 0 0 1 .146-.353l2-2a.5.5 0 0 1 .708 0l3.292 3.292a.5.5 0 0 0 .708 0l4.292-4.292a.5.5 0 0 1 .854.353V16a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1z",key:"q0gr47"}]]),P=p("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]),oe=p("chart-line",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]]),se=p("chart-no-axes-column-increasing",[["path",{d:"M5 21v-6",key:"1hz6c0"}],["path",{d:"M12 21V9",key:"uvy0l4"}],["path",{d:"M19 21V3",key:"11j9sm"}]]),ce=p("chart-scatter",[["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}],["circle",{cx:"18.5",cy:"5.5",r:".5",fill:"currentColor",key:"lysivs"}],["circle",{cx:"11.5",cy:"11.5",r:".5",fill:"currentColor",key:"byv1b8"}],["circle",{cx:"7.5",cy:"16.5",r:".5",fill:"currentColor",key:"nkw3mc"}],["circle",{cx:"17.5",cy:"14.5",r:".5",fill:"currentColor",key:"1gjh6j"}],["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}]]),ue=p("ruler-dimension-line",[["path",{d:"M10 15v-3",key:"1pjskw"}],["path",{d:"M14 15v-3",key:"1o1mqj"}],["path",{d:"M18 15v-3",key:"cws6he"}],["path",{d:"M2 8V4",key:"3jv1jz"}],["path",{d:"M22 6H2",key:"1iqbfk"}],["path",{d:"M22 8V4",key:"16f4ou"}],["path",{d:"M6 15v-3",key:"1ij1qe"}],["rect",{x:"2",y:"12",width:"20",height:"8",rx:"2",key:"1tqiko"}]]),de=p("sigma",[["path",{d:"M18 7V5a1 1 0 0 0-1-1H6.5a.5.5 0 0 0-.4.8l4.5 6a2 2 0 0 1 0 2.4l-4.5 6a.5.5 0 0 0 .4.8H17a1 1 0 0 0 1-1v-2",key:"wuwx1p"}]]);function v(e){return e&&e.replaceAll(".","\\.").replaceAll("[","\\[").replaceAll("]","\\]").replaceAll(":","\\:")}const fe="__count__",Y="default",me="yearmonthdate",ye=6,ge="",pe={line:oe,bar:se,pie:Z,scatter:ce,heatmap:ee,area:le},U="mean",he={none:te,count:J,sum:de,mean:ie,median:ae,min:ne,max:re,distinct:J,valid:J,stdev:R,stdevp:R,variance:P,variancep:P,bin:ue},be={none:"No aggregation",count:"Count of records",sum:"Sum of values",mean:"Mean of values",median:"Median of values",min:"Minimum value",max:"Maximum value",distinct:"Count of distinct records",valid:"Count non-null records",stdev:"Standard deviation",stdevp:"Standard deviation of population",variance:"Variance",variancep:"Variance of population",bin:"Group values into bins"},ke=[Y,"accent","category10","category20","category20b","category20c","dark2","paired","pastel1","pastel2","set1","set2","set3","tableau10","tableau20","blues","greens","greys","oranges","purples","reds","bluegreen","bluepurple","goldgreen","goldorange","goldred","greenblue","orangered","purplebluegreen","purplered","redpurple","yellowgreenblue","yelloworangered","blueorange","brownbluegreen","purplegreen","pinkyellowgreen","purpleorange","redblue","redgrey","redyellowblue","redyellowgreen","spectral","rainbow","sinebow"],ve={number:"Continuous numerical scale",string:"Discrete categorical scale (inputs treated as strings)",temporal:"Continuous temporal scale"},xe={year:["Year","2025"],quarter:["Quarter","Q1 2025"],month:["Month","Jan 2025"],week:["Week","Jan 01, 2025"],day:["Day","Jan 01, 2025"],hours:["Hour","Jan 01, 2025 12:00"],minutes:["Minute","Jan 01, 2025 12:34"],seconds:["Second","Jan 01, 2025 12:34:56"],milliseconds:["Millisecond","Jan 01, 2025 12:34:56.789"],date:["Date","Jan 01, 2025"],dayofyear:["Day of Year","Day 1 of 2025"],yearmonth:["Year Month","Jan 2025"],yearmonthdate:["Year Month Date","Jan 01, 2025"],monthdate:["Month Date","Jan 01"]},Me=["number","string","temporal"],O=["year","quarter","month","date","week","day","dayofyear","hours","minutes","seconds","milliseconds"],X=["yearmonth","yearmonthdate","monthdate"],L=[...O,...X];[...L];const we=["ascending","descending"],q="none",Ce="bin",Ae=[q,"bin","count","sum","mean","median","min","max","distinct","valid","stdev","stdevp","variance","variancep"],N=[q,"count","distinct","valid"],y={LINE:"line",BAR:"bar",PIE:"pie",SCATTER:"scatter",HEATMAP:"heatmap",AREA:"area"},Ee=Object.values(y),Te=["X","Y","Color",q];function B(e){switch(e){case"number":case"integer":return"quantitative";case"string":case"boolean":case"geometry":case"unknown":return"nominal";case"date":case"datetime":case"time":case"temporal":return"temporal";default:return I(e),"nominal"}}function _e(e){switch(e){case"number":case"integer":return"number";case"string":case"boolean":case"geometry":case"unknown":return"string";case"date":case"datetime":case"time":return"temporal";default:return I(e),"string"}}function Q(e){switch(e){case y.PIE:return"arc";case y.SCATTER:return"point";case y.HEATMAP:return"rect";default:return e}}function j(e,t,a,i){if(e===y.HEATMAP)return a!=null&&a.maxbins?{maxbins:a==null?void 0:a.maxbins}:void 0;if(t!=="number")return;if(!(a!=null&&a.binned))return i;let n={};return a.step!==void 0&&(n.step=a.step),a.maxbins!==void 0&&(n.maxbins=a.maxbins),Object.keys(n).length===0?!0:n}function G(e){var i,n;let t=(i=e.color)==null?void 0:i.range;if(t!=null&&t.length)return{range:t};let a=(n=e.color)==null?void 0:n.scheme;if(a&&a!=="default")return{scheme:a}}function De(e,t){var o,c,u,f,h,s,g,k,b;if(e===y.PIE)return;let a;if(m((c=(o=t.general)==null?void 0:o.colorByColumn)==null?void 0:c.field))a=(u=t.general)==null?void 0:u.colorByColumn;else if(m((f=t.color)==null?void 0:f.field))switch((h=t.color)==null?void 0:h.field){case"X":a=(s=t.general)==null?void 0:s.xColumn;break;case"Y":a=(g=t.general)==null?void 0:g.yColumn;break;case"Color":a=(k=t.general)==null?void 0:k.colorByColumn;break;default:return}else return;if(!a||!m(a.field)||a.field==="none")return;if(a.field==="__count__")return{aggregate:"count",type:"quantitative"};let i=(b=t.color)==null?void 0:b.bin,n=a.selectedDataType||"string",r=a==null?void 0:a.aggregate;return{field:v(a.field),type:B(n),scale:G(t),aggregate:W(r,n),bin:j(e,n,i)}}function Ve(e,t){var a,i,n,r,o;if(!((a=t.general)!=null&&a.stacking||!m((n=(i=t.general)==null?void 0:i.colorByColumn)==null?void 0:n.field)||e!==y.BAR))return{field:v((o=(r=t.general)==null?void 0:r.colorByColumn)==null?void 0:o.field)}}function W(e,t,a){if(t!=="temporal"&&!(e==="none"||e==="bin"))return e?t==="string"?N.includes(e)?e:void 0:e:a||void 0}function qe(e){switch(e){case"integer":return",.0f";case"number":return",.2f";default:return}}function $(e){var u,f,h,s,g,k,b,M,w,C,_,D,V,A,E,T;let{formValues:t,xEncoding:a,yEncoding:i,colorByEncoding:n}=e;if(!t.tooltips)return;function r(l,x,d){if("aggregate"in l&&l.aggregate==="count"&&!m(l.field))return{aggregate:"count"};if(l&&"field"in l&&m(l.field))return l.timeUnit&&!d&&(d=l.field),{field:l.field,aggregate:l.aggregate,timeUnit:l.timeUnit,format:qe(x),title:d,bin:l.bin}}if(t.tooltips.auto){let l=[],x=r(a,((f=(u=t.general)==null?void 0:u.xColumn)==null?void 0:f.type)||"string",(h=t.xAxis)==null?void 0:h.label);x&&l.push(x);let d=r(i,((g=(s=t.general)==null?void 0:s.yColumn)==null?void 0:g.type)||"string",(k=t.yAxis)==null?void 0:k.label);d&&l.push(d);let z=r(n||{},((M=(b=t.general)==null?void 0:b.colorByColumn)==null?void 0:M.type)||"string");return z&&l.push(z),l}let o=t.tooltips.fields??[],c=[];for(let l of o){if("field"in a&&m(a.field)&&a.field===l.field){let d=r(a,((C=(w=t.general)==null?void 0:w.xColumn)==null?void 0:C.type)||"string",(_=t.xAxis)==null?void 0:_.label);d&&c.push(d);continue}if("field"in i&&m(i.field)&&i.field===l.field){let d=r(i,((V=(D=t.general)==null?void 0:D.yColumn)==null?void 0:V.type)||"string",(A=t.yAxis)==null?void 0:A.label);d&&c.push(d);continue}if(n&&"field"in n&&m(n.field)&&n.field===l.field){let d=r(n,((T=(E=t.general)==null?void 0:E.colorByColumn)==null?void 0:T.type)||"string");d&&c.push(d);continue}let x={field:v(l.field)};c.push(x)}return c}function Be(e,t,a,i,n){var A,E,T,l;let{xColumn:r,yColumn:o,colorByColumn:c,horizontal:u,stacking:f,title:h,facet:s}=t.general??{};if(e===y.PIE)return He(t,a,i,n);if(!m(r==null?void 0:r.field))return"X-axis column is required";if(!m(o==null?void 0:o.field))return"Y-axis column is required";let g=S(r,(A=t.xAxis)==null?void 0:A.bin,H((E=t.xAxis)==null?void 0:E.label),c!=null&&c.field&&u?f:void 0,e),k=U;(o==null?void 0:o.selectedDataType)==="string"&&(k="count");let b=S(o,(T=t.yAxis)==null?void 0:T.bin,H((l=t.yAxis)==null?void 0:l.label),c!=null&&c.field&&!u?f:void 0,e,k),M=s!=null&&s.row.field?F(s.row,e):void 0,w=s!=null&&s.column.field?F(s.column,e):void 0,C=De(e,t),_=K(e,t,a,i,n,h),D={x:u?b:g,y:u?g:b,xOffset:Ve(e,t),color:C,tooltip:$({formValues:t,xEncoding:g,yEncoding:b,colorByEncoding:C}),...M&&{row:M},...w&&{column:w}},V=Se(s==null?void 0:s.column,s==null?void 0:s.row);return{..._,mark:{type:Q(e)},encoding:D,...V}}function je(e,t){return{...e,data:{values:t}}}function S(e,t,a,i,n,r){let o=e.selectedDataType||"string";return e.field==="__count__"?{aggregate:"count",type:"quantitative",bin:j(n,o,t),title:a==="__count__"?void 0:a,stack:i}:{field:v(e.field),type:B(e.selectedDataType||"unknown"),bin:j(n,o,t),title:a,stack:i,aggregate:W(e.aggregate,o,r),sort:e.sort,timeUnit:Je(e)}}function F(e,t){let a=j(t,e.selectedDataType||"string",{maxbins:e.maxbins,binned:e.binned},{maxbins:6});return{field:v(e.field),sort:e.sort,timeUnit:Pe(e),type:B(e.selectedDataType||"unknown"),bin:a}}function He(e,t,a,i){var f,h,s,g;let{yColumn:n,colorByColumn:r,title:o}=e.general??{};if(!m(r==null?void 0:r.field))return"Color by column is required";if(!m(n==null?void 0:n.field))return"Size by column is required";let c=S(n,(f=e.xAxis)==null?void 0:f.bin,H((h=e.xAxis)==null?void 0:h.label),void 0,y.PIE),u={field:v(r.field),type:B(r.selectedDataType||"unknown"),scale:G(e),title:H((s=e.yAxis)==null?void 0:s.label)};return{...K(y.PIE,e,t,a,i,o),mark:{type:Q(y.PIE),innerRadius:(g=e.style)==null?void 0:g.innerRadius},encoding:{theta:c,color:u,tooltip:$({formValues:e,xEncoding:c,yEncoding:c,colorByEncoding:u})}}}function K(e,t,a,i,n,r){var c,u,f;let o=((c=t.style)==null?void 0:c.gridLines)??!1;return e===y.SCATTER&&(o=!0),{$schema:"https://vega.github.io/schema/vega-lite/v6.json",background:a==="dark"?"dark":"white",title:r,data:{values:[]},height:((u=t.yAxis)==null?void 0:u.height)??n,width:((f=t.xAxis)==null?void 0:f.width)??i,config:{axis:{grid:o}}}}function m(e){return e!==void 0&&e.trim()!==""}function H(e){let t=e==null?void 0:e.trim();return t===""?void 0:t}function Je(e){if(e.selectedDataType==="temporal")return e.timeUnit??"yearmonthdate"}function Pe(e){if(e.selectedDataType==="temporal")return e.timeUnit??"yearmonthdate"}function Se(e,t){let a={};return(e==null?void 0:e.linkXAxis)===!1&&(a.x="independent"),(t==null?void 0:t.linkYAxis)===!1&&(a.y="independent"),Object.keys(a).length>0?{resolve:{axis:a}}:void 0}export{P as A,Y as C,ve as D,ge as E,xe as O,U as S,me as T,be as _,Ae as a,ke as b,Te as c,q as d,Me as f,L as g,N as h,_e as i,v as k,X as l,we as m,Be as n,Ce as o,O as p,m as r,Ee as s,je as t,y as u,he as v,ye as w,fe as x,pe as y};
@@ -1 +1 @@
1
- import{o as nt,t as rt}from"./chunk-C4rtOYze.js";import{n as S}from"./chunk-Y2CYZVJY-Ci6ix4_L.js";var Q=rt(((f,y)=>{(function(H,O){typeof f=="object"&&y!==void 0?y.exports=O():typeof define=="function"&&define.amd?define(O):(H=typeof globalThis<"u"?globalThis:H||self).dayjs=O()})(f,(function(){var H=1e3,O=6e4,z=36e5,j="millisecond",Y="second",A="minute",k="hour",M="day",N="week",p="month",V="quarter",w="year",L="date",G="Invalid Date",K=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,X=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,tt={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(s){var n=["th","st","nd","rd"],t=s%100;return"["+s+(n[(t-20)%10]||n[t]||n[0])+"]"}},U=function(s,n,t){var r=String(s);return!r||r.length>=n?s:""+Array(n+1-r.length).join(t)+s},et={s:U,z:function(s){var n=-s.utcOffset(),t=Math.abs(n),r=Math.floor(t/60),e=t%60;return(n<=0?"+":"-")+U(r,2,"0")+":"+U(e,2,"0")},m:function s(n,t){if(n.date()<t.date())return-s(t,n);var r=12*(t.year()-n.year())+(t.month()-n.month()),e=n.clone().add(r,p),i=t-e<0,o=n.clone().add(r+(i?-1:1),p);return+(-(r+(t-e)/(i?e-o:o-e))||0)},a:function(s){return s<0?Math.ceil(s)||0:Math.floor(s)},p:function(s){return{M:p,y:w,w:N,d:M,D:L,h:k,m:A,s:Y,ms:j,Q:V}[s]||String(s||"").toLowerCase().replace(/s$/,"")},u:function(s){return s===void 0}},W="en",_={};_[W]=tt;var q="$isDayjsObject",J=function(s){return s instanceof F||!(!s||!s[q])},E=function s(n,t,r){var e;if(!n)return W;if(typeof n=="string"){var i=n.toLowerCase();_[i]&&(e=i),t&&(_[i]=t,e=i);var o=n.split("-");if(!e&&o.length>1)return s(o[0])}else{var u=n.name;_[u]=n,e=u}return!r&&e&&(W=e),e||!r&&W},l=function(s,n){if(J(s))return s.clone();var t=typeof n=="object"?n:{};return t.date=s,t.args=arguments,new F(t)},a=et;a.l=E,a.i=J,a.w=function(s,n){return l(s,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var F=(function(){function s(t){this.$L=E(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[q]=!0}var n=s.prototype;return n.parse=function(t){this.$d=(function(r){var e=r.date,i=r.utc;if(e===null)return new Date(NaN);if(a.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var o=e.match(K);if(o){var u=o[2]-1||0,c=(o[7]||"0").substring(0,3);return i?new Date(Date.UTC(o[1],u,o[3]||1,o[4]||0,o[5]||0,o[6]||0,c)):new Date(o[1],u,o[3]||1,o[4]||0,o[5]||0,o[6]||0,c)}}return new Date(e)})(t),this.init()},n.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},n.$utils=function(){return a},n.isValid=function(){return this.$d.toString()!==G},n.isSame=function(t,r){var e=l(t);return this.startOf(r)<=e&&e<=this.endOf(r)},n.isAfter=function(t,r){return l(t)<this.startOf(r)},n.isBefore=function(t,r){return this.endOf(r)<l(t)},n.$g=function(t,r,e){return a.u(t)?this[r]:this.set(e,t)},n.unix=function(){return Math.floor(this.valueOf()/1e3)},n.valueOf=function(){return this.$d.getTime()},n.startOf=function(t,r){var e=this,i=!!a.u(r)||r,o=a.p(t),u=function(x,$){var D=a.w(e.$u?Date.UTC(e.$y,$,x):new Date(e.$y,$,x),e);return i?D:D.endOf(M)},c=function(x,$){return a.w(e.toDate()[x].apply(e.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice($)),e)},d=this.$W,h=this.$M,m=this.$D,C="set"+(this.$u?"UTC":"");switch(o){case w:return i?u(1,0):u(31,11);case p:return i?u(1,h):u(0,h+1);case N:var T=this.$locale().weekStart||0,R=(d<T?d+7:d)-T;return u(i?m-R:m+(6-R),h);case M:case L:return c(C+"Hours",0);case k:return c(C+"Minutes",1);case A:return c(C+"Seconds",2);case Y:return c(C+"Milliseconds",3);default:return this.clone()}},n.endOf=function(t){return this.startOf(t,!1)},n.$set=function(t,r){var e,i=a.p(t),o="set"+(this.$u?"UTC":""),u=(e={},e[M]=o+"Date",e[L]=o+"Date",e[p]=o+"Month",e[w]=o+"FullYear",e[k]=o+"Hours",e[A]=o+"Minutes",e[Y]=o+"Seconds",e[j]=o+"Milliseconds",e)[i],c=i===M?this.$D+(r-this.$W):r;if(i===p||i===w){var d=this.clone().set(L,1);d.$d[u](c),d.init(),this.$d=d.set(L,Math.min(this.$D,d.daysInMonth())).$d}else u&&this.$d[u](c);return this.init(),this},n.set=function(t,r){return this.clone().$set(t,r)},n.get=function(t){return this[a.p(t)]()},n.add=function(t,r){var e,i=this;t=Number(t);var o=a.p(r),u=function(h){var m=l(i);return a.w(m.date(m.date()+Math.round(h*t)),i)};if(o===p)return this.set(p,this.$M+t);if(o===w)return this.set(w,this.$y+t);if(o===M)return u(1);if(o===N)return u(7);var c=(e={},e[A]=O,e[k]=z,e[Y]=H,e)[o]||1,d=this.$d.getTime()+t*c;return a.w(d,this)},n.subtract=function(t,r){return this.add(-1*t,r)},n.format=function(t){var r=this,e=this.$locale();if(!this.isValid())return e.invalidDate||G;var i=t||"YYYY-MM-DDTHH:mm:ssZ",o=a.z(this),u=this.$H,c=this.$m,d=this.$M,h=e.weekdays,m=e.months,C=e.meridiem,T=function($,D,B,I){return $&&($[D]||$(r,i))||B[D].slice(0,I)},R=function($){return a.s(u%12||12,$,"0")},x=C||function($,D,B){var I=$<12?"AM":"PM";return B?I.toLowerCase():I};return i.replace(X,(function($,D){return D||(function(B){switch(B){case"YY":return String(r.$y).slice(-2);case"YYYY":return a.s(r.$y,4,"0");case"M":return d+1;case"MM":return a.s(d+1,2,"0");case"MMM":return T(e.monthsShort,d,m,3);case"MMMM":return T(m,d);case"D":return r.$D;case"DD":return a.s(r.$D,2,"0");case"d":return String(r.$W);case"dd":return T(e.weekdaysMin,r.$W,h,2);case"ddd":return T(e.weekdaysShort,r.$W,h,3);case"dddd":return h[r.$W];case"H":return String(u);case"HH":return a.s(u,2,"0");case"h":return R(1);case"hh":return R(2);case"a":return x(u,c,!0);case"A":return x(u,c,!1);case"m":return String(c);case"mm":return a.s(c,2,"0");case"s":return String(r.$s);case"ss":return a.s(r.$s,2,"0");case"SSS":return a.s(r.$ms,3,"0");case"Z":return o}return null})($)||o.replace(":","")}))},n.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},n.diff=function(t,r,e){var i,o=this,u=a.p(r),c=l(t),d=(c.utcOffset()-this.utcOffset())*O,h=this-c,m=function(){return a.m(o,c)};switch(u){case w:i=m()/12;break;case p:i=m();break;case V:i=m()/3;break;case N:i=(h-d)/6048e5;break;case M:i=(h-d)/864e5;break;case k:i=h/z;break;case A:i=h/O;break;case Y:i=h/H;break;default:i=h}return e?i:a.a(i)},n.daysInMonth=function(){return this.endOf(p).$D},n.$locale=function(){return _[this.$L]},n.locale=function(t,r){if(!t)return this.$L;var e=this.clone(),i=E(t,r,!0);return i&&(e.$L=i),e},n.clone=function(){return a.w(this.$d,this)},n.toDate=function(){return new Date(this.valueOf())},n.toJSON=function(){return this.isValid()?this.toISOString():null},n.toISOString=function(){return this.$d.toISOString()},n.toString=function(){return this.$d.toUTCString()},s})(),P=F.prototype;return l.prototype=P,[["$ms",j],["$s",Y],["$m",A],["$H",k],["$W",M],["$M",p],["$y",w],["$D",L]].forEach((function(s){P[s[1]]=function(n){return this.$g(n,s[0],s[1])}})),l.extend=function(s,n){return s.$i||(s.$i=(s(n,F,l),!0)),l},l.locale=E,l.isDayjs=J,l.unix=function(s){return l(1e3*s)},l.en=_[W],l.Ls=_,l.p={},l}))})),st=nt(Q(),1),v={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},g={trace:S((...f)=>{},"trace"),debug:S((...f)=>{},"debug"),info:S((...f)=>{},"info"),warn:S((...f)=>{},"warn"),error:S((...f)=>{},"error"),fatal:S((...f)=>{},"fatal")},it=S(function(f="fatal"){let y=v.fatal;typeof f=="string"?f.toLowerCase()in v&&(y=v[f]):typeof f=="number"&&(y=f),g.trace=()=>{},g.debug=()=>{},g.info=()=>{},g.warn=()=>{},g.error=()=>{},g.fatal=()=>{},y<=v.fatal&&(g.fatal=console.error?console.error.bind(console,b("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",b("FATAL"))),y<=v.error&&(g.error=console.error?console.error.bind(console,b("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",b("ERROR"))),y<=v.warn&&(g.warn=console.warn?console.warn.bind(console,b("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",b("WARN"))),y<=v.info&&(g.info=console.info?console.info.bind(console,b("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",b("INFO"))),y<=v.debug&&(g.debug=console.debug?console.debug.bind(console,b("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",b("DEBUG"))),y<=v.trace&&(g.trace=console.debug?console.debug.bind(console,b("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",b("TRACE")))},"setLogLevel"),b=S(f=>`%c${(0,st.default)().format("ss.SSS")} : ${f} : `,"format"),{abs:ut,max:ct,min:ft}=Math;["w","e"].map(Z),["n","s"].map(Z),["n","w","e","s","nw","ne","sw","se"].map(Z);function Z(f){return{type:f}}export{it as n,Q as r,g as t};
1
+ import{o as nt,t as rt}from"./chunk-C4rtOYze.js";import{n as S}from"./chunk-Y2CYZVJY-BLNiTciS.js";var Q=rt(((f,y)=>{(function(H,O){typeof f=="object"&&y!==void 0?y.exports=O():typeof define=="function"&&define.amd?define(O):(H=typeof globalThis<"u"?globalThis:H||self).dayjs=O()})(f,(function(){var H=1e3,O=6e4,z=36e5,j="millisecond",Y="second",A="minute",k="hour",M="day",N="week",p="month",V="quarter",w="year",L="date",G="Invalid Date",K=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,X=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,tt={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(s){var n=["th","st","nd","rd"],t=s%100;return"["+s+(n[(t-20)%10]||n[t]||n[0])+"]"}},U=function(s,n,t){var r=String(s);return!r||r.length>=n?s:""+Array(n+1-r.length).join(t)+s},et={s:U,z:function(s){var n=-s.utcOffset(),t=Math.abs(n),r=Math.floor(t/60),e=t%60;return(n<=0?"+":"-")+U(r,2,"0")+":"+U(e,2,"0")},m:function s(n,t){if(n.date()<t.date())return-s(t,n);var r=12*(t.year()-n.year())+(t.month()-n.month()),e=n.clone().add(r,p),i=t-e<0,o=n.clone().add(r+(i?-1:1),p);return+(-(r+(t-e)/(i?e-o:o-e))||0)},a:function(s){return s<0?Math.ceil(s)||0:Math.floor(s)},p:function(s){return{M:p,y:w,w:N,d:M,D:L,h:k,m:A,s:Y,ms:j,Q:V}[s]||String(s||"").toLowerCase().replace(/s$/,"")},u:function(s){return s===void 0}},W="en",_={};_[W]=tt;var q="$isDayjsObject",J=function(s){return s instanceof F||!(!s||!s[q])},E=function s(n,t,r){var e;if(!n)return W;if(typeof n=="string"){var i=n.toLowerCase();_[i]&&(e=i),t&&(_[i]=t,e=i);var o=n.split("-");if(!e&&o.length>1)return s(o[0])}else{var u=n.name;_[u]=n,e=u}return!r&&e&&(W=e),e||!r&&W},l=function(s,n){if(J(s))return s.clone();var t=typeof n=="object"?n:{};return t.date=s,t.args=arguments,new F(t)},a=et;a.l=E,a.i=J,a.w=function(s,n){return l(s,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var F=(function(){function s(t){this.$L=E(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[q]=!0}var n=s.prototype;return n.parse=function(t){this.$d=(function(r){var e=r.date,i=r.utc;if(e===null)return new Date(NaN);if(a.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var o=e.match(K);if(o){var u=o[2]-1||0,c=(o[7]||"0").substring(0,3);return i?new Date(Date.UTC(o[1],u,o[3]||1,o[4]||0,o[5]||0,o[6]||0,c)):new Date(o[1],u,o[3]||1,o[4]||0,o[5]||0,o[6]||0,c)}}return new Date(e)})(t),this.init()},n.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},n.$utils=function(){return a},n.isValid=function(){return this.$d.toString()!==G},n.isSame=function(t,r){var e=l(t);return this.startOf(r)<=e&&e<=this.endOf(r)},n.isAfter=function(t,r){return l(t)<this.startOf(r)},n.isBefore=function(t,r){return this.endOf(r)<l(t)},n.$g=function(t,r,e){return a.u(t)?this[r]:this.set(e,t)},n.unix=function(){return Math.floor(this.valueOf()/1e3)},n.valueOf=function(){return this.$d.getTime()},n.startOf=function(t,r){var e=this,i=!!a.u(r)||r,o=a.p(t),u=function(x,$){var D=a.w(e.$u?Date.UTC(e.$y,$,x):new Date(e.$y,$,x),e);return i?D:D.endOf(M)},c=function(x,$){return a.w(e.toDate()[x].apply(e.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice($)),e)},d=this.$W,h=this.$M,m=this.$D,C="set"+(this.$u?"UTC":"");switch(o){case w:return i?u(1,0):u(31,11);case p:return i?u(1,h):u(0,h+1);case N:var T=this.$locale().weekStart||0,R=(d<T?d+7:d)-T;return u(i?m-R:m+(6-R),h);case M:case L:return c(C+"Hours",0);case k:return c(C+"Minutes",1);case A:return c(C+"Seconds",2);case Y:return c(C+"Milliseconds",3);default:return this.clone()}},n.endOf=function(t){return this.startOf(t,!1)},n.$set=function(t,r){var e,i=a.p(t),o="set"+(this.$u?"UTC":""),u=(e={},e[M]=o+"Date",e[L]=o+"Date",e[p]=o+"Month",e[w]=o+"FullYear",e[k]=o+"Hours",e[A]=o+"Minutes",e[Y]=o+"Seconds",e[j]=o+"Milliseconds",e)[i],c=i===M?this.$D+(r-this.$W):r;if(i===p||i===w){var d=this.clone().set(L,1);d.$d[u](c),d.init(),this.$d=d.set(L,Math.min(this.$D,d.daysInMonth())).$d}else u&&this.$d[u](c);return this.init(),this},n.set=function(t,r){return this.clone().$set(t,r)},n.get=function(t){return this[a.p(t)]()},n.add=function(t,r){var e,i=this;t=Number(t);var o=a.p(r),u=function(h){var m=l(i);return a.w(m.date(m.date()+Math.round(h*t)),i)};if(o===p)return this.set(p,this.$M+t);if(o===w)return this.set(w,this.$y+t);if(o===M)return u(1);if(o===N)return u(7);var c=(e={},e[A]=O,e[k]=z,e[Y]=H,e)[o]||1,d=this.$d.getTime()+t*c;return a.w(d,this)},n.subtract=function(t,r){return this.add(-1*t,r)},n.format=function(t){var r=this,e=this.$locale();if(!this.isValid())return e.invalidDate||G;var i=t||"YYYY-MM-DDTHH:mm:ssZ",o=a.z(this),u=this.$H,c=this.$m,d=this.$M,h=e.weekdays,m=e.months,C=e.meridiem,T=function($,D,B,I){return $&&($[D]||$(r,i))||B[D].slice(0,I)},R=function($){return a.s(u%12||12,$,"0")},x=C||function($,D,B){var I=$<12?"AM":"PM";return B?I.toLowerCase():I};return i.replace(X,(function($,D){return D||(function(B){switch(B){case"YY":return String(r.$y).slice(-2);case"YYYY":return a.s(r.$y,4,"0");case"M":return d+1;case"MM":return a.s(d+1,2,"0");case"MMM":return T(e.monthsShort,d,m,3);case"MMMM":return T(m,d);case"D":return r.$D;case"DD":return a.s(r.$D,2,"0");case"d":return String(r.$W);case"dd":return T(e.weekdaysMin,r.$W,h,2);case"ddd":return T(e.weekdaysShort,r.$W,h,3);case"dddd":return h[r.$W];case"H":return String(u);case"HH":return a.s(u,2,"0");case"h":return R(1);case"hh":return R(2);case"a":return x(u,c,!0);case"A":return x(u,c,!1);case"m":return String(c);case"mm":return a.s(c,2,"0");case"s":return String(r.$s);case"ss":return a.s(r.$s,2,"0");case"SSS":return a.s(r.$ms,3,"0");case"Z":return o}return null})($)||o.replace(":","")}))},n.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},n.diff=function(t,r,e){var i,o=this,u=a.p(r),c=l(t),d=(c.utcOffset()-this.utcOffset())*O,h=this-c,m=function(){return a.m(o,c)};switch(u){case w:i=m()/12;break;case p:i=m();break;case V:i=m()/3;break;case N:i=(h-d)/6048e5;break;case M:i=(h-d)/864e5;break;case k:i=h/z;break;case A:i=h/O;break;case Y:i=h/H;break;default:i=h}return e?i:a.a(i)},n.daysInMonth=function(){return this.endOf(p).$D},n.$locale=function(){return _[this.$L]},n.locale=function(t,r){if(!t)return this.$L;var e=this.clone(),i=E(t,r,!0);return i&&(e.$L=i),e},n.clone=function(){return a.w(this.$d,this)},n.toDate=function(){return new Date(this.valueOf())},n.toJSON=function(){return this.isValid()?this.toISOString():null},n.toISOString=function(){return this.$d.toISOString()},n.toString=function(){return this.$d.toUTCString()},s})(),P=F.prototype;return l.prototype=P,[["$ms",j],["$s",Y],["$m",A],["$H",k],["$W",M],["$M",p],["$y",w],["$D",L]].forEach((function(s){P[s[1]]=function(n){return this.$g(n,s[0],s[1])}})),l.extend=function(s,n){return s.$i||(s.$i=(s(n,F,l),!0)),l},l.locale=E,l.isDayjs=J,l.unix=function(s){return l(1e3*s)},l.en=_[W],l.Ls=_,l.p={},l}))})),st=nt(Q(),1),v={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},g={trace:S((...f)=>{},"trace"),debug:S((...f)=>{},"debug"),info:S((...f)=>{},"info"),warn:S((...f)=>{},"warn"),error:S((...f)=>{},"error"),fatal:S((...f)=>{},"fatal")},it=S(function(f="fatal"){let y=v.fatal;typeof f=="string"?f.toLowerCase()in v&&(y=v[f]):typeof f=="number"&&(y=f),g.trace=()=>{},g.debug=()=>{},g.info=()=>{},g.warn=()=>{},g.error=()=>{},g.fatal=()=>{},y<=v.fatal&&(g.fatal=console.error?console.error.bind(console,b("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",b("FATAL"))),y<=v.error&&(g.error=console.error?console.error.bind(console,b("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",b("ERROR"))),y<=v.warn&&(g.warn=console.warn?console.warn.bind(console,b("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",b("WARN"))),y<=v.info&&(g.info=console.info?console.info.bind(console,b("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",b("INFO"))),y<=v.debug&&(g.debug=console.debug?console.debug.bind(console,b("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",b("DEBUG"))),y<=v.trace&&(g.trace=console.debug?console.debug.bind(console,b("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",b("TRACE")))},"setLogLevel"),b=S(f=>`%c${(0,st.default)().format("ss.SSS")} : ${f} : `,"format"),{abs:ut,max:ct,min:ft}=Math;["w","e"].map(Z),["n","s"].map(Z),["n","w","e","s","nw","ne","sw","se"].map(Z);function Z(f){return{type:f}}export{it as n,Q as r,g as t};
@@ -1 +1 @@
1
- import{p as i}from"./useEvent-GCVIknuR.js";import{Gn as h,Kn as c,ia as r}from"./cells-BvgwUKB9.js";import{d as m}from"./arrays-UzzAzxsG.js";var d="marimo:ai:chatState:v5";const u=i(null),v=i(null),f=r("marimo:ai:chatOptions",{webSearch:!1},c),p=r("marimo:ai:includeOtherCells",!0,c);function C(a){let t=new Map;for(let[s,e]of a.entries()){if(e.messages.length===0)continue;let l=m(e.messages,o=>o.id);t.set(s,{...e,messages:l})}return t}const n=r(d,{chats:new Map,activeChatId:null},h({toSerializable:a=>({chats:[...C(a.chats).entries()],activeChatId:a.activeChatId}),fromSerializable:a=>({chats:new Map(a.chats),activeChatId:a.activeChatId})})),I=i(a=>{let t=a(n);return t.activeChatId?t.chats.get(t.activeChatId):null},(a,t,s)=>{t(n,e=>({...e,activeChatId:s}))});export{p as a,n as i,u as n,v as o,f as r,I as t};
1
+ import{p as i}from"./useEvent-GCVIknuR.js";import{Gn as h,Kn as c,aa as r}from"./cells-Biwqg0z6.js";import{d as m}from"./arrays-UzzAzxsG.js";var d="marimo:ai:chatState:v5";const u=i(null),v=i(null),f=r("marimo:ai:chatOptions",{webSearch:!1},c),p=r("marimo:ai:includeOtherCells",!0,c);function C(a){let t=new Map;for(let[s,e]of a.entries()){if(e.messages.length===0)continue;let l=m(e.messages,o=>o.id);t.set(s,{...e,messages:l})}return t}const n=r(d,{chats:new Map,activeChatId:null},h({toSerializable:a=>({chats:[...C(a.chats).entries()],activeChatId:a.activeChatId}),fromSerializable:a=>({chats:new Map(a.chats),activeChatId:a.activeChatId})})),I=i(a=>{let t=a(n);return t.activeChatId?t.chats.get(t.activeChatId):null},(a,t,s)=>{t(n,e=>({...e,activeChatId:s}))});export{p as a,n as i,u as n,v as o,f as r,I as t};