@marimo-team/frontend 0.23.14-dev6 → 0.23.14-dev7

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 (637) hide show
  1. package/dist/assets/{CellStatus-D3EKlB21.js → CellStatus-BT8TMjJf.js} +1 -1
  2. package/dist/assets/{ConnectedDataExplorerComponent-swQQzg5v.js → ConnectedDataExplorerComponent-CPK3MAGu.js} +1 -1
  3. package/dist/assets/{DeferredRequestRegistry-EP9ZArpv.js → DeferredRequestRegistry-RuL7NV1n.js} +1 -1
  4. package/dist/assets/{ImperativeModal-MQnbMIO2.js → ImperativeModal-B62Q6S9l.js} +1 -1
  5. package/dist/assets/{JsonOutput-BfDKMXVF.js → JsonOutput-BkFXuRpB.js} +13 -13
  6. package/dist/assets/LazyAnyLanguageCodeMirror-BsVlAJyX.js +2 -0
  7. package/dist/assets/MarimoErrorOutput-DhPWAkt7.js +12 -0
  8. package/dist/assets/{RSPContexts-CXueMbRb.js → RSPContexts-VzcTZjG1.js} +1 -1
  9. package/dist/assets/{RenderHTML-FBKVQ49x.js → RenderHTML-CfDAJrQ1.js} +1 -1
  10. package/dist/assets/{RunButton-BRhOWu7V.js → RunButton-BTIcs3L6.js} +1 -1
  11. package/dist/assets/{add-cell-with-ai-nJKSBAPb.js → add-cell-with-ai-DlXcXBkH.js} +9 -9
  12. package/dist/assets/{add-connection-dialog-CMK4qx7X.js → add-connection-dialog-CyoxEDp-.js} +1 -1
  13. package/dist/assets/agent-panel-B_qDQv8F.js +287 -0
  14. package/dist/assets/ai-model-dropdown-Btglrejh.js +5 -0
  15. package/dist/assets/{any-language-editor-ChWsxHdv.js → any-language-editor-DDxRKC6m.js} +1 -1
  16. package/dist/assets/apl-Chr9VNQb.js +1 -0
  17. package/dist/assets/{app-config-button-DP_s193w.js → app-config-button-DeX5gOlx.js} +1 -1
  18. package/dist/assets/{arc-CWuN1tfc.js → arc-CTRjCaaq.js} +1 -1
  19. package/dist/assets/{architecture-7HQA4BMR-nhc3_5WR.js → architecture-7HQA4BMR-DljvQDeQ.js} +1 -1
  20. package/dist/assets/{architectureDiagram-VXUJARFQ-BTCyBm7a.js → architectureDiagram-VXUJARFQ-BzaOHnYF.js} +1 -1
  21. package/dist/assets/asciiarmor-DzJGO3cy.js +1 -0
  22. package/dist/assets/asn1-Blkd-UVm.js +1 -0
  23. package/dist/assets/{blockDiagram-VD42YOAC-mvbUAzY4.js → blockDiagram-VD42YOAC-BSpIbX3f.js} +1 -1
  24. package/dist/assets/brainfuck-BeRVF6bt.js +1 -0
  25. package/dist/assets/{c4Diagram-YG6GDRKO-qKF4yNR5.js → c4Diagram-YG6GDRKO-zpESnYoT.js} +1 -1
  26. package/dist/assets/{cache-panel-Ds3GhmDF.js → cache-panel-BlIrcwlT.js} +1 -1
  27. package/dist/assets/{cell-editor-Dc80BOci.js → cell-editor-s9cOHGdF.js} +9 -9
  28. package/dist/assets/{cell-link-CaBSvNu3.js → cell-link-DO4acQD0.js} +1 -1
  29. package/dist/assets/{cells-DZEvA3zb.js → cells-B7YKR2ed.js} +44 -44
  30. package/dist/assets/channel-Dc6EzpN1.js +1 -0
  31. package/dist/assets/chat-display-Bll28RgB.js +1 -0
  32. package/dist/assets/chat-panel-ThseXdhs.js +3 -0
  33. package/dist/assets/{chat-ui-D5NiPbFP.js → chat-ui-DkcOfHcC.js} +1 -1
  34. package/dist/assets/{chunk-4BX2VUAB-Ca6WzYTr.js → chunk-4BX2VUAB-Dg4heQa6.js} +1 -1
  35. package/dist/assets/chunk-55IACEB6-DwfSZW8J.js +1 -0
  36. package/dist/assets/{chunk-5FQGJX7Z-C6VN0dQj.js → chunk-5FQGJX7Z-DcW-_LxK.js} +3 -3
  37. package/dist/assets/{chunk-ABZYJK2D-DntHwfwl.js → chunk-ABZYJK2D-B-yriO93.js} +3 -3
  38. package/dist/assets/{chunk-ATLVNIR6-CZy1WXhH.js → chunk-ATLVNIR6-CATEdUsI.js} +1 -1
  39. package/dist/assets/{chunk-B4BG7PRW-CifnFMMD.js → chunk-B4BG7PRW-tMC-dXvv.js} +1 -1
  40. package/dist/assets/{chunk-CVBHYZKI-C-NWvPQL.js → chunk-CVBHYZKI-BX0N_ipT.js} +1 -1
  41. package/dist/assets/{chunk-DI55MBZ5-BKMnvFi2.js → chunk-DI55MBZ5-RdSDpuir.js} +1 -1
  42. package/dist/assets/{chunk-EXTU4WIE-CYseDwky.js → chunk-EXTU4WIE-FS4Kb2Ql.js} +1 -1
  43. package/dist/assets/{chunk-FMBD7UC4-DlnzxSkO.js → chunk-FMBD7UC4-DBAmwXnH.js} +1 -1
  44. package/dist/assets/{chunk-HN2XXSSU-Bcaj5fRB.js → chunk-HN2XXSSU-ujlBpRMF.js} +1 -1
  45. package/dist/assets/{chunk-JA3XYJ7Z-Bj396ovX.js → chunk-JA3XYJ7Z-BC4z3QJN.js} +1 -1
  46. package/dist/assets/{chunk-JZLCHNYA-QttzWzFq.js → chunk-JZLCHNYA-BS06EXEs.js} +1 -1
  47. package/dist/assets/{chunk-MI3HLSF2-DqzZqBCh.js → chunk-MI3HLSF2-D9JXkg6-.js} +1 -1
  48. package/dist/assets/{chunk-N4CR4FBY-DgrFkHXi.js → chunk-N4CR4FBY-sFNBk2qj.js} +2 -2
  49. package/dist/assets/{chunk-QN33PNHL-shgGaZ1X.js → chunk-QN33PNHL-CaxJ41FN.js} +1 -1
  50. package/dist/assets/{chunk-QXUST7PY-EJQ74OiC.js → chunk-QXUST7PY-BGAG3yNG.js} +1 -1
  51. package/dist/assets/{chunk-QZHKN3VN-BAnb9AKF.js → chunk-QZHKN3VN-DNJQmmTY.js} +1 -1
  52. package/dist/assets/{chunk-S3R3BYOJ-DHLCcICg.js → chunk-S3R3BYOJ-BPuj-dI4.js} +1 -1
  53. package/dist/assets/{chunk-TZMSLE5B-BgJLE0Za.js → chunk-TZMSLE5B-BWxINAhr.js} +1 -1
  54. package/dist/assets/classDiagram-2ON5EDUG-A9VH2ZvK.js +1 -0
  55. package/dist/assets/classDiagram-v2-WZHVMYZB-BbiRaNB_.js +1 -0
  56. package/dist/assets/{clike-bdcjLdZ4.js → clike-BhFoDDUF.js} +1 -1
  57. package/dist/assets/clojure-D3LWk-SC.js +1 -0
  58. package/dist/assets/cmake-238GeNbi.js +1 -0
  59. package/dist/assets/cobol-CZP4RjnO.js +1 -0
  60. package/dist/assets/{code-block-37QAKDTI--cy-8SOv.js → code-block-37QAKDTI-BCJE7Shx.js} +1 -1
  61. package/dist/assets/coffeescript-B7XjCOaF.js +1 -0
  62. package/dist/assets/{column-preview-CtFTSUj4.js → column-preview-DNzfBI3q.js} +1 -1
  63. package/dist/assets/{command-CsbsBLBw.js → command-DRHbYHUP.js} +1 -1
  64. package/dist/assets/command-palette-D5bwfa36.js +1 -0
  65. package/dist/assets/{common-DbLcwSDP.js → common-DDyT57dI.js} +1 -1
  66. package/dist/assets/commonlisp-DKNhPgyy.js +1 -0
  67. package/dist/assets/components-CCxUdXt3.js +1 -0
  68. package/dist/assets/{config-BE150fVL.js → config-3clPIEB9.js} +1 -1
  69. package/dist/assets/config-DMNo9K-z.js +1 -0
  70. package/dist/assets/{context-DE_5rdOV.js → context-C2Ie4tn_.js} +1 -1
  71. package/dist/assets/{copy-icon-BCIGtBo0.js → copy-icon-EHMT-qlr.js} +1 -1
  72. package/dist/assets/{cose-bilkent-S5V4N54A-DhxFsKpJ.js → cose-bilkent-S5V4N54A-Cjkn-03D.js} +1 -1
  73. package/dist/assets/crystal-DmwO_0_4.js +1 -0
  74. package/dist/assets/{css-ACAb8MRM.js → css-b-BDNvIM.js} +1 -1
  75. package/dist/assets/cypher-Bld-ecrK.js +1 -0
  76. package/dist/assets/d-D0LlbZRM.js +1 -0
  77. package/dist/assets/{dagre-6UL2VRFP-B6hk_Bns.js → dagre-6UL2VRFP-CEUvYTNq.js} +1 -1
  78. package/dist/assets/{data-grid-overlay-editor-CTUPMnar.js → data-grid-overlay-editor-DcJUwxxA.js} +1 -1
  79. package/dist/assets/datasource-C-Uv-baE.js +3 -0
  80. package/dist/assets/{dates-CnrjjcMO.js → dates-D8uxHHPL.js} +1 -1
  81. package/dist/assets/{dependency-graph-panel-BMAOsCZ-.js → dependency-graph-panel-DOCY2alr.js} +4 -4
  82. package/dist/assets/{diagram-PSM6KHXK-mo2Enmtf.js → diagram-PSM6KHXK-BRMqKZ3Y.js} +1 -1
  83. package/dist/assets/{diagram-QEK2KX5R-BmkxV10c.js → diagram-QEK2KX5R-D-44zwne.js} +1 -1
  84. package/dist/assets/{diagram-S2PKOQOG-FgQ9g-FW.js → diagram-S2PKOQOG-DK107xzi.js} +1 -1
  85. package/dist/assets/diff-BhkLDFRp.js +1 -0
  86. package/dist/assets/{dist-Ds-fJX2L.js → dist-BGm7LoFj.js} +1 -1
  87. package/dist/assets/dist-BKUbUFYs.js +1 -0
  88. package/dist/assets/{dist-DU6-XN1L.js → dist-BP6Oj7vU.js} +1 -1
  89. package/dist/assets/{dist-CBFremCY.js → dist-BTohsDew.js} +1 -1
  90. package/dist/assets/{dist-Cq98Ix9k.js → dist-BbGE6FVk.js} +1 -1
  91. package/dist/assets/{dist-x6-QAnMg.js → dist-BnV7Zv4J.js} +1 -1
  92. package/dist/assets/dist-BqW5KzD0.js +1 -0
  93. package/dist/assets/{dist-CPAr7_4H.js → dist-C4-ruy-b.js} +1 -1
  94. package/dist/assets/{dist-D5K8Ux-X.js → dist-CF7wJiFo.js} +1 -1
  95. package/dist/assets/{dist-CKjd2mnC.js → dist-CIQQgRzz.js} +1 -1
  96. package/dist/assets/dist-CIlJuwTK.js +1 -0
  97. package/dist/assets/{dist-CmjkyMZS.js → dist-CKCDTgIC.js} +1 -1
  98. package/dist/assets/dist-CR5yl751.js +1 -0
  99. package/dist/assets/dist-CUoPT-12.js +1 -0
  100. package/dist/assets/{dist-HMS3mTUK.js → dist-CWf9ows7.js} +1 -1
  101. package/dist/assets/dist-CcVb-ahb.js +1 -0
  102. package/dist/assets/{dist-CKZJyGZk.js → dist-CncFhr17.js} +1 -1
  103. package/dist/assets/{dist-D6TmDEVn.js → dist-Cr2Z8vBa.js} +1 -1
  104. package/dist/assets/dist-CrExO-X4.js +1 -0
  105. package/dist/assets/{dist-DZJfnBKu.js → dist-CruUwJkI.js} +1 -1
  106. package/dist/assets/{dist-B3BjoKW1.js → dist-Cuy9Ob0Q.js} +1 -1
  107. package/dist/assets/{dist-Bj9Iedc0.js → dist-D-2yWcX9.js} +1 -1
  108. package/dist/assets/dist-DJZFvU6Z.js +1 -0
  109. package/dist/assets/{dist-DHMtQYxT.js → dist-DblYTes5.js} +1 -1
  110. package/dist/assets/{dist-d_9Qt_7_.js → dist-DkYp4RmM.js} +1 -1
  111. package/dist/assets/dist-KRVJJ-dD.js +1 -0
  112. package/dist/assets/{dist-BK1JMang.js → dist-Qjp1OoCV.js} +1 -1
  113. package/dist/assets/{dist-CwSi3e6S.js → dist-XexmIjM8.js} +1 -1
  114. package/dist/assets/dist-azqjLiVY.js +1 -0
  115. package/dist/assets/{dist-BygSqKXd.js → dist-hvL02v1Z.js} +1 -1
  116. package/dist/assets/{dockerfile-BSMbgQQl.js → dockerfile-F2QaEmLo.js} +1 -1
  117. package/dist/assets/{documentation-panel-CtvI61ug.js → documentation-panel-DtZhWfdL.js} +1 -1
  118. package/dist/assets/{download-DlMo0yoI.js → download-DiInTgPW.js} +4 -4
  119. package/dist/assets/dtd-CjtwvVlM.js +1 -0
  120. package/dist/assets/dylan-D750ej-H.js +1 -0
  121. package/dist/assets/ecl-ChePjOI6.js +1 -0
  122. package/dist/assets/{edit-page-neW4rs_q.js → edit-page-aHoWe_ZD.js} +6 -6
  123. package/dist/assets/eiffel-MZyxske9.js +1 -0
  124. package/dist/assets/elm-gXtxhfT4.js +1 -0
  125. package/dist/assets/{erDiagram-Q2GNP2WA-DZx9RiLu.js → erDiagram-Q2GNP2WA-Cs21rwzF.js} +1 -1
  126. package/dist/assets/erlang-CEe3KwR2.js +1 -0
  127. package/dist/assets/{error-banner-C4DZksWV.js → error-banner-BSQVN46J.js} +1 -1
  128. package/dist/assets/{error-panel-Czh-8YVF.js → error-panel-DNOuz0b6.js} +1 -1
  129. package/dist/assets/{es-Cy7KBUrF.js → es-EItoYvXh.js} +1 -1
  130. package/dist/assets/{esm-BqXnk7X6.js → esm-B_l4S2x_.js} +1 -1
  131. package/dist/assets/{esm-DSv-aO_T.js → esm-X3Tr2pur.js} +1 -1
  132. package/dist/assets/factor-Cf6jeuFE.js +1 -0
  133. package/dist/assets/{factor-C-_cRSDM.js → factor-D7Lm0c37.js} +1 -1
  134. package/dist/assets/{field-CA9HCE2Y.js → field-DlNY-dDH.js} +1 -1
  135. package/dist/assets/{file-explorer-panel-BBIZ5Upt.js → file-explorer-panel-BlOQcL43.js} +3 -3
  136. package/dist/assets/{file-icons-C_azZLwC.js → file-icons-vH3s-ZLt.js} +1 -1
  137. package/dist/assets/{file-name-input-BxTNV58f.js → file-name-input-B6h96HOr.js} +1 -1
  138. package/dist/assets/{fileToBase64-Doh9J-g6.js → fileToBase64-BSOFR3RV.js} +1 -1
  139. package/dist/assets/{floating-outline-DWk90U4M.js → floating-outline-DHsNGe6F.js} +1 -1
  140. package/dist/assets/{flowDiagram-NV44I4VS-BaCfA1PD.js → flowDiagram-NV44I4VS-DenT4mQj.js} +1 -1
  141. package/dist/assets/{focus-DHgSYMb6.js → focus-M6_Axyyu.js} +1 -1
  142. package/dist/assets/{form-ClQGrP6i.js → form-ChOi66u2.js} +1 -1
  143. package/dist/assets/{formats-Dkhsq416.js → formats-ZGU43GQU.js} +1 -1
  144. package/dist/assets/{formatting-Bjzx5J8_.js → formatting-DhA_x3cD.js} +1 -1
  145. package/dist/assets/forth-cDDgSP9p.js +1 -0
  146. package/dist/assets/fortran-C8vMa5zJ.js +1 -0
  147. package/dist/assets/{gallery-page-Cwx-CV9Q.js → gallery-page-Bn_fmsuf.js} +1 -1
  148. package/dist/assets/{ganttDiagram-JELNMOA3-D76yMCwq.js → ganttDiagram-JELNMOA3-DhLVgBRa.js} +1 -1
  149. package/dist/assets/gas-Df167mJ4.js +1 -0
  150. package/dist/assets/gherkin-8tk6kFf5.js +1 -0
  151. package/dist/assets/{gitGraph-G5XIXVHT-Dnx1sMxx.js → gitGraph-G5XIXVHT-alvKgR_6.js} +1 -1
  152. package/dist/assets/{gitGraphDiagram-V2S2FVAM-xaQk-fkD.js → gitGraphDiagram-V2S2FVAM-CaLy1ghU.js} +1 -1
  153. package/dist/assets/{glide-data-editor-DtDJGBDZ.js → glide-data-editor-DieDRYCU.js} +4 -4
  154. package/dist/assets/{globals-BDWM3c_z.js → globals-Bx8Km3LH.js} +1 -1
  155. package/dist/assets/groovy-JuojAv0H.js +1 -0
  156. package/dist/assets/haskell-Bpjctb1r.js +1 -0
  157. package/dist/assets/hat-glasses-DlK0E4SX.js +1 -0
  158. package/dist/assets/haxe-DJHguewM.js +1 -0
  159. package/dist/assets/{home-page-CJTghues.js → home-page-Dd_LvpzP.js} +1 -1
  160. package/dist/assets/{hooks-B_YOAMxc.js → hooks-QlMczg0I.js} +1 -1
  161. package/dist/assets/{html-to-image-DY_stEj0.js → html-to-image-C_aIFrkD.js} +2 -2
  162. package/dist/assets/idl-feOWH07C.js +1 -0
  163. package/dist/assets/{index-a3SXFqw7.js → index-BWxVNMl8.js} +7 -7
  164. package/dist/assets/{info-VBDWY6EO-CbXmB3-Z.js → info-VBDWY6EO-UTGHU79q.js} +1 -1
  165. package/dist/assets/infoDiagram-HS3SLOUP-BNlTRowz.js +2 -0
  166. package/dist/assets/{input-b2KTOk0X.js → input-DB2LiTiQ.js} +1 -1
  167. package/dist/assets/javascript-BekfVgKQ.js +1 -0
  168. package/dist/assets/{journeyDiagram-XKPGCS4Q-9j5RE995.js → journeyDiagram-XKPGCS4Q-C6bWCP1E.js} +1 -1
  169. package/dist/assets/julia-DG-ah68k.js +1 -0
  170. package/dist/assets/{kanban-definition-3W4ZIXB7-KTZNPjVQ.js → kanban-definition-3W4ZIXB7-DhhNzrDn.js} +1 -1
  171. package/dist/assets/katex-BGtenqy0.js +1 -0
  172. package/dist/assets/{kiosk-mode-BqSHurAE.js → kiosk-mode-DzVyPYQb.js} +1 -1
  173. package/dist/assets/{layout-CPdBwJdJ.js → layout-BI4PmskA.js} +4 -4
  174. package/dist/assets/{line-x4bpd_8D.js → line-BtYBewh-.js} +1 -1
  175. package/dist/assets/{linear-BWk6x-Bf.js → linear-HSKpWh7o.js} +1 -1
  176. package/dist/assets/{links-BL4SaTJe.js → links-Bof3pNQU.js} +1 -1
  177. package/dist/assets/livescript-B2wfFY5r.js +1 -0
  178. package/dist/assets/{logs-panel-Z4miZLI5.js → logs-panel-WBLhqVkp.js} +1 -1
  179. package/dist/assets/{loro_wasm_bg-CtNTubKN.js → loro_wasm_bg-B9rbCmxT.js} +1 -1
  180. package/dist/assets/lua-CDP4_ezR.js +1 -0
  181. package/dist/assets/{markdown-renderer-duAFwqLF.js → markdown-renderer-CKrylIiR.js} +3 -3
  182. package/dist/assets/mathematica-BElcKLBW.js +1 -0
  183. package/dist/assets/mbox-DlwO5A6s.js +1 -0
  184. package/dist/assets/{mermaid-4DMBBIKO-1vt0_Bql.js → mermaid-4DMBBIKO-DHhkolAx.js} +1 -1
  185. package/dist/assets/{mermaid-BC06IzvM.js → mermaid-CTy-neNU.js} +3 -3
  186. package/dist/assets/{mermaid-parser.core-UC5-TA69.js → mermaid-parser.core-D1juWnVV.js} +2 -2
  187. package/dist/assets/{mhchem-8N2oE3tb.js → mhchem-DYFmc51f.js} +1 -1
  188. package/dist/assets/{mindmap-definition-VGOIOE7T-DwhzT05K.js → mindmap-definition-VGOIOE7T-DrvmAuTR.js} +1 -1
  189. package/dist/assets/mirc-D6l20mh4.js +1 -0
  190. package/dist/assets/mllike-fwkzyrZt.js +1 -0
  191. package/dist/assets/modelica-DAnB6nmO.js +1 -0
  192. package/dist/assets/mscgen-Cs4VQ67l.js +1 -0
  193. package/dist/assets/mumps-Dt8k0EUU.js +1 -0
  194. package/dist/assets/{name-cell-input-DulIaCIY.js → name-cell-input-DEi5F7_C.js} +1 -1
  195. package/dist/assets/nsis-C1g8DTeO.js +1 -0
  196. package/dist/assets/{nsis-BGZ5EB-j.js → nsis-C5Oj2cBc.js} +1 -1
  197. package/dist/assets/ntriples-DTMBUZ7F.js +1 -0
  198. package/dist/assets/{number-overlay-editor-DU72uJyj.js → number-overlay-editor-BNjcKmLy.js} +1 -1
  199. package/dist/assets/octave-BwfNaTxP.js +1 -0
  200. package/dist/assets/{ordinal-CIZb_ice.js → ordinal-DwWQqd-e.js} +1 -1
  201. package/dist/assets/{outline-panel-BHR36Fu3.js → outline-panel-CJESf04f.js} +1 -1
  202. package/dist/assets/oz-6BWZLab7.js +1 -0
  203. package/dist/assets/{packages-panel-wvuNuaJ7.js → packages-panel-e9Ouyai7.js} +1 -1
  204. package/dist/assets/{packet-DYOGHKS2-BVjyuzEL.js → packet-DYOGHKS2-Bk4m0Yky.js} +1 -1
  205. package/dist/assets/{pair-with-agent-modal-BONZmBdh.js → pair-with-agent-modal-Q9Od23Rh.js} +1 -1
  206. package/dist/assets/{panels-CUvqvTcK.js → panels-Yk8bwccB.js} +1 -1
  207. package/dist/assets/pascal-64fygDAy.js +1 -0
  208. package/dist/assets/{pathUtils-ANiMIEDI.js → pathUtils-BXCjaLHB.js} +1 -1
  209. package/dist/assets/perl-CC5X3ewy.js +1 -0
  210. package/dist/assets/{pie-VRWISCQL-Bg3Krblt.js → pie-VRWISCQL-BH6BYH7k.js} +1 -1
  211. package/dist/assets/{pieDiagram-ADFJNKIX-Ddohs4pt.js → pieDiagram-ADFJNKIX-DTXuGc2V.js} +1 -1
  212. package/dist/assets/pig-DP6pbekb.js +1 -0
  213. package/dist/assets/powershell-WtGE4kBw.js +1 -0
  214. package/dist/assets/{precisionRound-CCOoIlcP.js → precisionRound-BOmLQIKI.js} +1 -1
  215. package/dist/assets/{process-output-CNAM-uaM.js → process-output-Ddc2OA4L.js} +1 -1
  216. package/dist/assets/properties-CRoDUVbK.js +1 -0
  217. package/dist/assets/protobuf-BS6gEp_x.js +1 -0
  218. package/dist/assets/{pug-CYW0agOo.js → pug-CzQlD5xP.js} +1 -1
  219. package/dist/assets/pug-STAEJHPq.js +1 -0
  220. package/dist/assets/puppet-BV74Hcdf.js +1 -0
  221. package/dist/assets/python-4yue3pyq.js +1 -0
  222. package/dist/assets/q-SorAikmF.js +1 -0
  223. package/dist/assets/{quadrantDiagram-AYHSOK5B-DXHmstFN.js → quadrantDiagram-AYHSOK5B-CK0jUhwV.js} +1 -1
  224. package/dist/assets/r-Dc7847Lm.js +1 -0
  225. package/dist/assets/{radar-ZZBFDIW7-B7ZZ_Eh4.js → radar-ZZBFDIW7-CfegKZj0.js} +1 -1
  226. package/dist/assets/{radio-group-C03SYtE4.js → radio-group-CGYJUACh.js} +1 -1
  227. package/dist/assets/{react-vega-IsGFjh4e.js → react-vega-9vyn19ym.js} +1 -1
  228. package/dist/assets/react-vega-CpYoOIw9.js +1 -0
  229. package/dist/assets/{readonly-python-code-Buc6Cpxg.js → readonly-python-code--4cKIEDx.js} +1 -1
  230. package/dist/assets/{renderShortcut-CKbqJyj4.js → renderShortcut-LpVarhnQ.js} +1 -1
  231. package/dist/assets/{request-registry-unC7eRnq.js → request-registry-K6vbazWs.js} +1 -1
  232. package/dist/assets/{requirementDiagram-UZGBJVZJ-FZxRqc8c.js → requirementDiagram-UZGBJVZJ-DG38oyvw.js} +1 -1
  233. package/dist/assets/{reveal-component-DKV09ndk.js → reveal-component-LXEzPXS-.js} +3 -3
  234. package/dist/assets/rpm-C2rCOQ1Z.js +1 -0
  235. package/dist/assets/ruby-DNrqAMg4.js +1 -0
  236. package/dist/assets/{run-page-x5Gp_vjo.js → run-page-BgMXI7Jt.js} +1 -1
  237. package/dist/assets/{sankeyDiagram-TZEHDZUN-BVzsFJnF.js → sankeyDiagram-TZEHDZUN-Cd7_NFq5.js} +1 -1
  238. package/dist/assets/sas-BKYzR5_z.js +1 -0
  239. package/dist/assets/scheme-as2FasXy.js +1 -0
  240. package/dist/assets/scratchpad-panel-bls2Sib7.js +1 -0
  241. package/dist/assets/{secrets-panel-BUtOtnIM.js → secrets-panel-COMUo7PI.js} +1 -1
  242. package/dist/assets/{sequenceDiagram-WL72ISMW-DdzNFBtb.js → sequenceDiagram-WL72ISMW-CWr987NA.js} +1 -1
  243. package/dist/assets/session-panel-B2Pswr7K.js +1 -0
  244. package/dist/assets/{share-vrPro738.js → share-DQjChRJG.js} +1 -1
  245. package/dist/assets/shell-Bf8Q5ES6.js +1 -0
  246. package/dist/assets/sieve-D515TmZq.js +1 -0
  247. package/dist/assets/smalltalk-DYzx-8Vf.js +1 -0
  248. package/dist/assets/{snippets-panel-Br8drXb6.js → snippets-panel-mvC03mlx.js} +1 -1
  249. package/dist/assets/sparql-6VnDrYOs.js +1 -0
  250. package/dist/assets/{spec-BzxoPflZ.js → spec-CDgWI0fT.js} +1 -1
  251. package/dist/assets/{src-CyeQdfB6.js → src-CvyFXpBy.js} +1 -1
  252. package/dist/assets/{state-RnIztwr-.js → state-DjrxAf9W.js} +1 -1
  253. package/dist/assets/{state-WA3j91X9.js → state-MC8-jN2e.js} +1 -1
  254. package/dist/assets/{state-CV4SpBvo.js → state-Q6rkV07m.js} +2 -2
  255. package/dist/assets/state-RefguD27.js +1 -0
  256. package/dist/assets/{stateDiagram-FKZM4ZOC-DCOZ5EVk.js → stateDiagram-FKZM4ZOC-BpTv_tx4.js} +1 -1
  257. package/dist/assets/stateDiagram-v2-4FDKWEC3-DS3lRH0h.js +1 -0
  258. package/dist/assets/{step-D7xg1Moj.js → step-vPM7ouyU.js} +1 -1
  259. package/dist/assets/stex-BBWVYm-R.js +1 -0
  260. package/dist/assets/stylus-DUyoKY_7.js +1 -0
  261. package/dist/assets/swift-CXFwyL-K.js +1 -0
  262. package/dist/assets/{swiper-component-B3QJ6Yx5.js → swiper-component-1EtQU4BG.js} +1 -1
  263. package/dist/assets/{switch-DHhZkGEv.js → switch-DvDNxcZP.js} +1 -1
  264. package/dist/assets/tcl-DbyqErhh.js +1 -0
  265. package/dist/assets/{terminal-C0JxB62q.js → terminal-xHf6SFNC.js} +1 -1
  266. package/dist/assets/{textarea-BaOwN3Me.js → textarea-BYXnNYSr.js} +1 -1
  267. package/dist/assets/textile-8fxKT1uq.js +1 -0
  268. package/dist/assets/{time-BsAzPDU3.js → time-C7q-M_gT.js} +1 -1
  269. package/dist/assets/{timeline-definition-IT6M3QCI-BJT2fHGH.js → timeline-definition-IT6M3QCI-Cp331KPt.js} +1 -1
  270. package/dist/assets/toml-BpCjWJNE.js +1 -0
  271. package/dist/assets/{tracing-DAzqwOSy.js → tracing-DRF9vr86.js} +1 -1
  272. package/dist/assets/tracing-panel-DSEex5R-.js +2 -0
  273. package/dist/assets/{tree-actions-CNIHKi7f.js → tree-actions-CRyQHv6h.js} +1 -1
  274. package/dist/assets/{treemap-GDKQZRPO-DKc3HfJq.js → treemap-GDKQZRPO-goW30S_N.js} +1 -1
  275. package/dist/assets/troff-BhJs9Lif.js +1 -0
  276. package/dist/assets/ttcn-BVPxY_nX.js +1 -0
  277. package/dist/assets/ttcn-cfg-B4sCU0gH.js +1 -0
  278. package/dist/assets/turtle-D4EQx9sx.js +1 -0
  279. package/dist/assets/{useBoolean-48bgGoSa.js → useBoolean-BMzj74q1.js} +1 -1
  280. package/dist/assets/{useCellActionButton-CSYE6DW0.js → useCellActionButton-BjcJ6BLJ.js} +1 -1
  281. package/dist/assets/{useDateFormatter-CANi6nSX.js → useDateFormatter-CAlTJ8HV.js} +1 -1
  282. package/dist/assets/{useDeleteCell-DeJTCYjE.js → useDeleteCell-CXhTb-Wb.js} +1 -1
  283. package/dist/assets/{useDependencyPanelTab-HcfMBFHT.js → useDependencyPanelTab-KYGByius.js} +1 -1
  284. package/dist/assets/{useInstallPackage-DEHK-C20.js → useInstallPackage-C1Dd0aIZ.js} +1 -1
  285. package/dist/assets/{useNotebookActions-C1Ba1Deq.js → useNotebookActions-CL7ZID9s.js} +1 -1
  286. package/dist/assets/{useNumberFormatter-DCM-63YT.js → useNumberFormatter-CuxZh3Bq.js} +1 -1
  287. package/dist/assets/{usePress-mjvipKvz.js → usePress-BSFUeqnS.js} +1 -1
  288. package/dist/assets/useRunCells-BQPsvZjd.js +1 -0
  289. package/dist/assets/{useSplitCell-DIWUZzri.js → useSplitCell-xGqWTYfJ.js} +1 -1
  290. package/dist/assets/{utils-BIlJBJIu.js → utils-DPvpQ891.js} +1 -1
  291. package/dist/assets/vb-D-5BLYdM.js +1 -0
  292. package/dist/assets/vbscript-DOZuVfk8.js +1 -0
  293. package/dist/assets/{vega-component-wGZOy7qv.js → vega-component-CSuDG35y.js} +1 -1
  294. package/dist/assets/{vega-loader.browser-BJ9oKrvH.js → vega-loader.browser-CZV6_g2i.js} +1 -1
  295. package/dist/assets/velocity-BPduikoO.js +1 -0
  296. package/dist/assets/verilog-D9S6puFO.js +1 -0
  297. package/dist/assets/vhdl-YYXNXz0X.js +1 -0
  298. package/dist/assets/webidl-Ct7ps8LR.js +1 -0
  299. package/dist/assets/{write-secret-modal-qfcjtCvk.js → write-secret-modal-K2n79wHj.js} +1 -1
  300. package/dist/assets/xquery-9kDflInd.js +1 -0
  301. package/dist/assets/{xychartDiagram-PRI3JC2R-BtC1koqJ.js → xychartDiagram-PRI3JC2R-BOmaIn_W.js} +1 -1
  302. package/dist/assets/yacas-u934AJft.js +1 -0
  303. package/dist/assets/z80-BQ7XtT4U.js +1 -0
  304. package/dist/index.html +114 -113
  305. package/package.json +1 -1
  306. package/src/components/chat/acp/agent-panel.tsx +35 -1
  307. package/src/components/chat/chat-panel.tsx +68 -29
  308. package/src/components/editor/chrome/wrapper/__tests__/useOpenAiAssistant.test.ts +36 -0
  309. package/src/components/editor/chrome/wrapper/useAiPanel.ts +3 -1
  310. package/src/components/editor/chrome/wrapper/useOpenAiAssistant.ts +88 -0
  311. package/src/components/editor/errors/__tests__/auto-fix.test.ts +119 -0
  312. package/src/components/editor/errors/auto-fix.tsx +108 -34
  313. package/src/components/editor/errors/fix-mode.ts +1 -1
  314. package/src/components/editor/output/MarimoTracebackOutput.tsx +10 -1
  315. package/src/components/editor/output/__tests__/traceback.test.tsx +14 -6
  316. package/src/core/ai/config.ts +2 -2
  317. package/src/core/ai/state.ts +11 -0
  318. package/src/core/codemirror/utils.ts +15 -0
  319. package/dist/assets/LazyAnyLanguageCodeMirror-CUQODgGJ.js +0 -2
  320. package/dist/assets/MarimoErrorOutput-C9ti-mu4.js +0 -7
  321. package/dist/assets/agent-panel-B1Sy_w9H.js +0 -287
  322. package/dist/assets/ai-model-dropdown-Brz68_s8.js +0 -5
  323. package/dist/assets/apl-EAxnZS_5.js +0 -1
  324. package/dist/assets/asciiarmor-zxnaShQE.js +0 -1
  325. package/dist/assets/asn1-7i28Os5R.js +0 -1
  326. package/dist/assets/brainfuck-BZegPsXK.js +0 -1
  327. package/dist/assets/channel-Bvgym58O.js +0 -1
  328. package/dist/assets/chat-display-C2X2R6le.js +0 -1
  329. package/dist/assets/chat-panel-Mb3VYb6T.js +0 -3
  330. package/dist/assets/chunk-55IACEB6-BZgGh8Op.js +0 -1
  331. package/dist/assets/classDiagram-2ON5EDUG-DrqS8d9F.js +0 -1
  332. package/dist/assets/classDiagram-v2-WZHVMYZB-DchP-T46.js +0 -1
  333. package/dist/assets/clojure-VUVi7fTV.js +0 -1
  334. package/dist/assets/cmake-DZJIDbjY.js +0 -1
  335. package/dist/assets/cobol-klCRwlLm.js +0 -1
  336. package/dist/assets/coffeescript-C9foD9ub.js +0 -1
  337. package/dist/assets/command-palette-RBwjW3re.js +0 -1
  338. package/dist/assets/commonlisp-tHxoA35J.js +0 -1
  339. package/dist/assets/components-o-HZCs8Y.js +0 -1
  340. package/dist/assets/crystal-CQ11GdrX.js +0 -1
  341. package/dist/assets/cypher-CJ0Uzw29.js +0 -1
  342. package/dist/assets/d-DP0SUIt1.js +0 -1
  343. package/dist/assets/datasource-C4XU40Hp.js +0 -3
  344. package/dist/assets/diff-CNs8MB38.js +0 -1
  345. package/dist/assets/dist-B1NchzZ7.js +0 -1
  346. package/dist/assets/dist-Bc19bAck.js +0 -1
  347. package/dist/assets/dist-CEw-wfki.js +0 -1
  348. package/dist/assets/dist-CGfx7GOn.js +0 -1
  349. package/dist/assets/dist-CKlHe_tO.js +0 -1
  350. package/dist/assets/dist-CT0mmv1i.js +0 -1
  351. package/dist/assets/dist-D2gd6Etb.js +0 -1
  352. package/dist/assets/dist-D_FHXQyQ.js +0 -1
  353. package/dist/assets/dist-DpFA7p7J.js +0 -1
  354. package/dist/assets/dist-znptp4sC.js +0 -1
  355. package/dist/assets/dtd-BsD0uJw0.js +0 -1
  356. package/dist/assets/dylan-DbrGP1IP.js +0 -1
  357. package/dist/assets/ecl-C0rZlhHw.js +0 -1
  358. package/dist/assets/eiffel-2ZX-OpSJ.js +0 -1
  359. package/dist/assets/elm-CbOSKldD.js +0 -1
  360. package/dist/assets/erlang-BWiOgHIX.js +0 -1
  361. package/dist/assets/factor-CUwFIMOP.js +0 -1
  362. package/dist/assets/forth-BEQA4QQL.js +0 -1
  363. package/dist/assets/fortran-DoPpOZgG.js +0 -1
  364. package/dist/assets/gas-BYovsvOE.js +0 -1
  365. package/dist/assets/gherkin-CFiRc1Pf.js +0 -1
  366. package/dist/assets/groovy-DJNH7evt.js +0 -1
  367. package/dist/assets/haskell-duZvcePm.js +0 -1
  368. package/dist/assets/haxe-B2l95qvB.js +0 -1
  369. package/dist/assets/idl-CZ_xwU8I.js +0 -1
  370. package/dist/assets/infoDiagram-HS3SLOUP-CaCHYq-C.js +0 -2
  371. package/dist/assets/javascript-CF5KGSAj.js +0 -1
  372. package/dist/assets/julia-BQlq5iZn.js +0 -1
  373. package/dist/assets/katex-CzQ1KdW3.js +0 -1
  374. package/dist/assets/livescript-sRMenfqS.js +0 -1
  375. package/dist/assets/lua-a56ITumN.js +0 -1
  376. package/dist/assets/mathematica-B3m4jXeH.js +0 -1
  377. package/dist/assets/mbox-BtL7aO2I.js +0 -1
  378. package/dist/assets/mirc-S27kuZ31.js +0 -1
  379. package/dist/assets/mllike-B3kx3KeF.js +0 -1
  380. package/dist/assets/modelica-DgbW4dSi.js +0 -1
  381. package/dist/assets/mscgen-BIa_4d-0.js +0 -1
  382. package/dist/assets/multi-map-9ogswH46.js +0 -1
  383. package/dist/assets/mumps-4fnELyHs.js +0 -1
  384. package/dist/assets/nsis-BfGyMssE.js +0 -1
  385. package/dist/assets/ntriples-DeY1n_tC.js +0 -1
  386. package/dist/assets/octave-7Qn21jzx.js +0 -1
  387. package/dist/assets/oz-CiPFl3Ni.js +0 -1
  388. package/dist/assets/pascal-BH9yQLzw.js +0 -1
  389. package/dist/assets/perl-DfMCx2i2.js +0 -1
  390. package/dist/assets/pig-D9CNebQN.js +0 -1
  391. package/dist/assets/powershell-Dss0bU9F.js +0 -1
  392. package/dist/assets/properties-CHADYQUL.js +0 -1
  393. package/dist/assets/protobuf-DFN-V4SD.js +0 -1
  394. package/dist/assets/pug-DOI9FnEk.js +0 -1
  395. package/dist/assets/puppet-BV0HAkDS.js +0 -1
  396. package/dist/assets/python-C83Db0-4.js +0 -1
  397. package/dist/assets/q-D84S4YaJ.js +0 -1
  398. package/dist/assets/r-jmqrRzXv.js +0 -1
  399. package/dist/assets/react-vega-DrvGjEhj.js +0 -1
  400. package/dist/assets/rpm-DUjG0xRk.js +0 -1
  401. package/dist/assets/ruby-SP4FIzir.js +0 -1
  402. package/dist/assets/sas-BxaPz2EX.js +0 -1
  403. package/dist/assets/scheme-HBseLApj.js +0 -1
  404. package/dist/assets/scratchpad-panel-DaT9P31r.js +0 -1
  405. package/dist/assets/session-panel-am6zkzg4.js +0 -1
  406. package/dist/assets/shell-w8ATY_lQ.js +0 -1
  407. package/dist/assets/sieve-Dyq0LGDO.js +0 -1
  408. package/dist/assets/smalltalk-D7mAtumc.js +0 -1
  409. package/dist/assets/sparql-DAeEYE_u.js +0 -1
  410. package/dist/assets/state-CvarlPeY.js +0 -1
  411. package/dist/assets/stateDiagram-v2-4FDKWEC3-D_uhE9WV.js +0 -1
  412. package/dist/assets/stex-CruVQx-P.js +0 -1
  413. package/dist/assets/stylus-Cw3Ugan7.js +0 -1
  414. package/dist/assets/swift-CPsNOBsX.js +0 -1
  415. package/dist/assets/tcl-BfWyQdZa.js +0 -1
  416. package/dist/assets/textile-BKgaSzSN.js +0 -1
  417. package/dist/assets/toml-BSOdv04W.js +0 -1
  418. package/dist/assets/tracing-panel-DDISd3Mx.js +0 -2
  419. package/dist/assets/troff-C0hD9kig.js +0 -1
  420. package/dist/assets/ttcn-DEqPxhoh.js +0 -1
  421. package/dist/assets/ttcn-cfg-B-7jSlUe.js +0 -1
  422. package/dist/assets/turtle-BTtgFsu8.js +0 -1
  423. package/dist/assets/useRunCells-CK2uMzyx.js +0 -1
  424. package/dist/assets/vb-DfRPk_ji.js +0 -1
  425. package/dist/assets/vbscript-C8D4uv5N.js +0 -1
  426. package/dist/assets/velocity-DxKr2FFC.js +0 -1
  427. package/dist/assets/verilog-CxVhamiH.js +0 -1
  428. package/dist/assets/vhdl-B-IpBNOA.js +0 -1
  429. package/dist/assets/webidl-CBjKmBwO.js +0 -1
  430. package/dist/assets/xquery-ABGCbLv0.js +0 -1
  431. package/dist/assets/yacas-Ckyxh7oh.js +0 -1
  432. package/dist/assets/z80-Dr5sQweg.js +0 -1
  433. /package/dist/assets/{Deferred-CfyqLOPG.js → Deferred-BMfCOLaw.js} +0 -0
  434. /package/dist/assets/{ImageComparisonComponent-DUteU6lJ.js → ImageComparisonComponent-DzDQ-fB3.js} +0 -0
  435. /package/dist/assets/{Inputs-CqgPhOqy.js → Inputs-SmI80aJQ.js} +0 -0
  436. /package/dist/assets/{Plot-COUNpGh-.js → Plot-BIdakfet.js} +0 -0
  437. /package/dist/assets/{SSRProvider-DrpctNAg.js → SSRProvider-DX2edArU.js} +0 -0
  438. /package/dist/assets/{alert-Bjh7v4lb.js → alert-1y_DnRWn.js} +0 -0
  439. /package/dist/assets/{apl-Byte72fT.js → apl-C1zdcQvI.js} +0 -0
  440. /package/dist/assets/{array-CC7vZNGO.js → array-9XpbrfQ5.js} +0 -0
  441. /package/dist/assets/{asciiarmor-BU-VnG1Y.js → asciiarmor-B--OGpM1.js} +0 -0
  442. /package/dist/assets/{asn1-hTvH3S4T.js → asn1-D2UnMTL5.js} +0 -0
  443. /package/dist/assets/{asterisk-DIMri3P4.js → asterisk-Dykb_Qas.js} +0 -0
  444. /package/dist/assets/{azure-B42ls0Ui.js → azure-DBVzcmvx.js} +0 -0
  445. /package/dist/assets/{badge-CFAaMy0O.js → badge-6yGCqY1Z.js} +0 -0
  446. /package/dist/assets/{blob-dGUJ3Bw8.js → blob-BiK5xmlC.js} +0 -0
  447. /package/dist/assets/{brainfuck-C-q1Rv8J.js → brainfuck-DrjMyC8V.js} +0 -0
  448. /package/dist/assets/{bundle.esm-BULc9l6b.js → bundle.esm-D544r2Sr.js} +0 -0
  449. /package/dist/assets/{card-DrIItWkf.js → card-s1ZaQ9ub.js} +0 -0
  450. /package/dist/assets/{chunk-4F5CHEZ2-ZukvbAbU.js → chunk-4F5CHEZ2-DbI0qf2O.js} +0 -0
  451. /package/dist/assets/{chunk-B2363JML-C0KdctWE.js → chunk-B2363JML-CfyMMqBA.js} +0 -0
  452. /package/dist/assets/{chunk-DR5Q36YT-OB6tC_dd.js → chunk-DR5Q36YT-DOSR70sR.js} +0 -0
  453. /package/dist/assets/{chunk-FRFDVMJY-XeKi-Rrx.js → chunk-FRFDVMJY-BtfMQArq.js} +0 -0
  454. /package/dist/assets/{chunk-PL6DKKU2-bcJTxSg-.js → chunk-PL6DKKU2-B4f42Ygg.js} +0 -0
  455. /package/dist/assets/{chunk-SJTYNZTY-BMwRl5Zp.js → chunk-SJTYNZTY-Bry6rjvq.js} +0 -0
  456. /package/dist/assets/{chunk-TQ3KTPDO-DDBnt8HI.js → chunk-TQ3KTPDO-DCNP-V-Z.js} +0 -0
  457. /package/dist/assets/{chunk-UMXZTB3W-BaNEnfkg.js → chunk-UMXZTB3W-Df715oKn.js} +0 -0
  458. /package/dist/assets/{clear-button-BOt9sHaK.js → clear-button-DhIdI0ng.js} +0 -0
  459. /package/dist/assets/{click-outside-container-BNVqwewc.js → click-outside-container-gHk0jCel.js} +0 -0
  460. /package/dist/assets/{clike-BE-9Ct_H.js → clike-CCdVFz-6.js} +0 -0
  461. /package/dist/assets/{clojure-Co-TLeNo.js → clojure-BjmTMymc.js} +0 -0
  462. /package/dist/assets/{cmake-B-Nm_Opd.js → cmake-CgqRscDS.js} +0 -0
  463. /package/dist/assets/{cobol-BGdihAZT.js → cobol-DZNhVUeB.js} +0 -0
  464. /package/dist/assets/{coffeescript-BUZXkMUO.js → coffeescript-Qp7k0WHA.js} +0 -0
  465. /package/dist/assets/{colors-BG8Z91CW.js → colors-D952IYju.js} +0 -0
  466. /package/dist/assets/{common-keywords-15xBKau4.js → common-keywords-sop6vXJR.js} +0 -0
  467. /package/dist/assets/{commonlisp-CFkPbxvX.js → commonlisp-De6q7_JS.js} +0 -0
  468. /package/dist/assets/{copy-CyasABTK.js → copy-D8MtpXgN.js} +0 -0
  469. /package/dist/assets/{crystal-CqfqDl34.js → crystal-BGXRJSF-.js} +0 -0
  470. /package/dist/assets/{css-DPEtZWJi.js → css-CNKF6pC6.js} +0 -0
  471. /package/dist/assets/{cypher-B0t8FJvU.js → cypher-BUDAQ7Fk.js} +0 -0
  472. /package/dist/assets/{cytoscape.esm-DT8iy6p1.js → cytoscape.esm-BncNfFt_.js} +0 -0
  473. /package/dist/assets/{d-DRa_XRSB.js → d-BIAtzqpc.js} +0 -0
  474. /package/dist/assets/{defaultLocale-CGfP-Ye3.js → defaultLocale-DK1MWd7f.js} +0 -0
  475. /package/dist/assets/{defaultLocale-CuYNS33t.js → defaultLocale-OkOxlkkM.js} +0 -0
  476. /package/dist/assets/{dialog-Dr_Y1zNi.js → dialog-DkJmIrsG.js} +0 -0
  477. /package/dist/assets/{diff-GLneonpD.js → diff-aadYO3ro.js} +0 -0
  478. /package/dist/assets/{dist-BBXQ3ARp.js → dist-BXnBIECY.js} +0 -0
  479. /package/dist/assets/{dist-BXRWfNwi.js → dist-BjCIGEdQ.js} +0 -0
  480. /package/dist/assets/{dist-DnIl7RU-.js → dist-BtrqKtvn.js} +0 -0
  481. /package/dist/assets/{dist-CkHYcq4S.js → dist-C6zQ57IZ.js} +0 -0
  482. /package/dist/assets/{dist-D-o1OXc9.js → dist-CNKFZCiw.js} +0 -0
  483. /package/dist/assets/{dist-BzGK1_vc.js → dist-Ci66nyHs.js} +0 -0
  484. /package/dist/assets/{dist-DQlrXcW2.js → dist-DU8gTNy9.js} +0 -0
  485. /package/dist/assets/{dist-B_4mXtvJ.js → dist-DgBuTUso.js} +0 -0
  486. /package/dist/assets/{dist-DoxplNOD.js → dist-DlREAgj1.js} +0 -0
  487. /package/dist/assets/{dist-BRRMCoI_.js → dist-RW5SS83Z.js} +0 -0
  488. /package/dist/assets/{dist-BM-OLiKa.js → dist-UghNT0W0.js} +0 -0
  489. /package/dist/assets/{dist-BZhJ1bTM.js → dist-ZjSH4Z6x.js} +0 -0
  490. /package/dist/assets/{dist-npZrjkCf.js → dist-qGjvyIZU.js} +0 -0
  491. /package/dist/assets/{dtd-uVrZNVF0.js → dtd-uNeIl1u0.js} +0 -0
  492. /package/dist/assets/{duckdb-keywords-CYQ5DEZJ.js → duckdb-keywords-CEWQs1NJ.js} +0 -0
  493. /package/dist/assets/{dylan-DkNeA4FZ.js → dylan-CrZBaY0F.js} +0 -0
  494. /package/dist/assets/{ebnf-XMH6KY7E.js → ebnf-BoS8ZFT2.js} +0 -0
  495. /package/dist/assets/{ecl-CldUgvc9.js → ecl-ByTsrrt6.js} +0 -0
  496. /package/dist/assets/{eiffel-CoMDRbRL.js → eiffel-DRhIEZQi.js} +0 -0
  497. /package/dist/assets/{elm-Cb5XC6ev.js → elm-BBPeNBgT.js} +0 -0
  498. /package/dist/assets/{emotion-is-prop-valid.esm-DiQGBfwj.js → emotion-is-prop-valid.esm-CK2zY6a8.js} +0 -0
  499. /package/dist/assets/{empty-state-vKu4k0Y4.js → empty-state-QmmE2oN4.js} +0 -0
  500. /package/dist/assets/{en-US-DZwIjHwu.js → en-US-BXNio91F.js} +0 -0
  501. /package/dist/assets/{erlang-8H3fTZ3L.js → erlang-EMEOk6kj.js} +0 -0
  502. /package/dist/assets/{errors-48KFPvCp.js → errors-9jMmWHd9.js} +0 -0
  503. /package/dist/assets/{esm-1wf4HygE.js → esm-BLlysR8g.js} +0 -0
  504. /package/dist/assets/{events-BRbNg7Li.js → events-XR_LpvHc.js} +0 -0
  505. /package/dist/assets/{extends-2LbFKIQQ.js → extends-CeSFM22p.js} +0 -0
  506. /package/dist/assets/{fcl-DyFJAgkq.js → fcl-JwfU5Rr4.js} +0 -0
  507. /package/dist/assets/{forth-B8kC4npz.js → forth-BdKkHzwH.js} +0 -0
  508. /package/dist/assets/{fortran-CNWGEL3c.js → fortran-DxGNM9Kj.js} +0 -0
  509. /package/dist/assets/{gas-DnZQNTHK.js → gas-hf-H6Zc4.js} +0 -0
  510. /package/dist/assets/{gherkin-JfGcGvci.js → gherkin-D1O_VlrS.js} +0 -0
  511. /package/dist/assets/{github-BQ8If5nZ.js → github-DghuZBnj.js} +0 -0
  512. /package/dist/assets/{groovy-D0FWiAVm.js → groovy-Budmgm6I.js} +0 -0
  513. /package/dist/assets/{haskell-wUB3uX-G.js → haskell-CDrggYs0.js} +0 -0
  514. /package/dist/assets/{haxe-g0JY6eL-.js → haxe-CPnBkTzf.js} +0 -0
  515. /package/dist/assets/{house-DkdBWh44.js → house-DHu4JLi3.js} +0 -0
  516. /package/dist/assets/{http-ySzAzH5W.js → http-BSf7msSy.js} +0 -0
  517. /package/dist/assets/{icons-D3YFXNmD.js → icons-avFV3lBF.js} +0 -0
  518. /package/dist/assets/{idl-CV2cLkPc.js → idl-BTZd0S94.js} +0 -0
  519. /package/dist/assets/{image-jhXeQEgs.js → image-BzUcK6ho.js} +0 -0
  520. /package/dist/assets/{init-DsZRk2YA.js → init-DZ5TV86b.js} +0 -0
  521. /package/dist/assets/{isValid-Cgon0fXK.js → isValid-DKyiOp4U.js} +0 -0
  522. /package/dist/assets/{javascript-CT6okXEZ.js → javascript-Czx24F5X.js} +0 -0
  523. /package/dist/assets/{julia-CKC48ufo.js → julia-OeEN0FvJ.js} +0 -0
  524. /package/dist/assets/{katex-BE4UDS50.js → katex-CUvM6AOy.js} +0 -0
  525. /package/dist/assets/{kbd-BCXa3Ocm.js → kbd-UVzWBHfi.js} +0 -0
  526. /package/dist/assets/{link-My4Pey3q.js → link-e5mRDDOC.js} +0 -0
  527. /package/dist/assets/{links-DK7te6sJ.js → links-CCkJpphF.js} +0 -0
  528. /package/dist/assets/{livescript-C43pZ6Ue.js → livescript-DLmsZIyI.js} +0 -0
  529. /package/dist/assets/{loro_wasm_bg-CXnd80ne.js → loro_wasm_bg-BFCm9sQd.js} +0 -0
  530. /package/dist/assets/{lua-Cs2mb10K.js → lua-BM3BXoTQ.js} +0 -0
  531. /package/dist/assets/{marimo-icons-CbdeMmbB.js → marimo-icons-DuRILrB8.js} +0 -0
  532. /package/dist/assets/{math-B-ZqhQTL.js → math-BkqINfbU.js} +0 -0
  533. /package/dist/assets/{mathematica-B5FMK3ma.js → mathematica-BbPQ8-Rw.js} +0 -0
  534. /package/dist/assets/{mbox-36Zrn5Bd.js → mbox-D2_16jOO.js} +0 -0
  535. /package/dist/assets/{message-circle-D_YIPPZo.js → message-circle-RkIzfQEi.js} +0 -0
  536. /package/dist/assets/{micromark-factory-space-P--XWZhg.js → micromark-factory-space-BUQpMdx2.js} +0 -0
  537. /package/dist/assets/{mirc-BKTAABSX.js → mirc-CzS_wutP.js} +0 -0
  538. /package/dist/assets/{mllike-DbuClUqc.js → mllike-D9b50pH5.js} +0 -0
  539. /package/dist/assets/{modelica-CKRvBm7N.js → modelica-C8E83p8w.js} +0 -0
  540. /package/dist/assets/{mscgen-B4BRgnCi.js → mscgen-Dk-3wFOB.js} +0 -0
  541. /package/dist/assets/{multi-icon-CGXdgpE4.js → multi-icon-CTvmuLdL.js} +0 -0
  542. /package/dist/assets/{mumps-BFiMcyFV.js → mumps-BRQASZoy.js} +0 -0
  543. /package/dist/assets/{nginx-Cz_XvoTm.js → nginx-CNcs7tVC.js} +0 -0
  544. /package/dist/assets/{node-sql-parser-BtkrI4pN.js → node-sql-parser-BkK4FGDp.js} +0 -0
  545. /package/dist/assets/{ntriples-QQAkJYAR.js → ntriples-D6VU4eew.js} +0 -0
  546. /package/dist/assets/{numbers-BKZTJMZ6.js → numbers-_ry1Nlla.js} +0 -0
  547. /package/dist/assets/{objectWithoutPropertiesLoose-Msf1n32r.js → objectWithoutPropertiesLoose-BkUn3I0-.js} +0 -0
  548. /package/dist/assets/{octave-DsTphmGZ.js → octave-xff1drIF.js} +0 -0
  549. /package/dist/assets/{oz-CD9rr5Iz.js → oz-CRz8coQc.js} +0 -0
  550. /package/dist/assets/{package-BoMcg6sy.js → package-BTIV9-Dk.js} +0 -0
  551. /package/dist/assets/{panel-context-RKllh8pM.js → panel-context-DC1vAeB3.js} +0 -0
  552. /package/dist/assets/{pascal-DdHEIlJE.js → pascal-DZhgfws7.js} +0 -0
  553. /package/dist/assets/{path-DvTahePH.js → path-MXGY7b8Y.js} +0 -0
  554. /package/dist/assets/{paths-kNeJ8nbe.js → paths-DhuNSnZ_.js} +0 -0
  555. /package/dist/assets/{perl-DHPJBQ1u.js → perl-BKXEkch3.js} +0 -0
  556. /package/dist/assets/{pig-Yz7ERgca.js → pig-rvFhLOOE.js} +0 -0
  557. /package/dist/assets/{plus-CExKUszm.js → plus-ZXRHY1up.js} +0 -0
  558. /package/dist/assets/{powershell-CHPZ_bsU.js → powershell-Db7zgjV-.js} +0 -0
  559. /package/dist/assets/{preload-helper-y72bE5iF.js → preload-helper-BW0IMuFq.js} +0 -0
  560. /package/dist/assets/{prop-types-D_pYuT11.js → prop-types-B6Y2e__V.js} +0 -0
  561. /package/dist/assets/{properties-CI9nc7K4.js → properties-BF6anRzc.js} +0 -0
  562. /package/dist/assets/{protobuf-BYSIv2pY.js → protobuf-De4giNfG.js} +0 -0
  563. /package/dist/assets/{puppet-CEpLafZX.js → puppet-CMgcPW4L.js} +0 -0
  564. /package/dist/assets/{purify.es-DdxMtdqK.js → purify.es-DfJp_of2.js} +0 -0
  565. /package/dist/assets/{python-BndVuwG1.js → python-DOZzlkV_.js} +0 -0
  566. /package/dist/assets/{q-L_cetpiW.js → q-8XMigH-s.js} +0 -0
  567. /package/dist/assets/{r-Dd37AKWk.js → r-BuEncdBJ.js} +0 -0
  568. /package/dist/assets/{range-ClqUI25v.js → range-DNqFcYmr.js} +0 -0
  569. /package/dist/assets/{react-icons.esm-C2u-_EAQ.js → react-icons.esm-DCqqMD4w.js} +0 -0
  570. /package/dist/assets/{react-resizable-panels.browser.esm-CgWOEYeG.js → react-resizable-panels.browser.esm-Ce2ksurd.js} +0 -0
  571. /package/dist/assets/{refresh-ccw-CUkO1Vlo.js → refresh-ccw-Bee7JLOl.js} +0 -0
  572. /package/dist/assets/{refresh-cw-DcEasnos.js → refresh-cw-C9FftltI.js} +0 -0
  573. /package/dist/assets/{requests-Bm3bohzL.js → requests-DqJEWJ-Q.js} +0 -0
  574. /package/dist/assets/{rotate-ccw-CBXqO1Fd.js → rotate-ccw-ZsOWbQCw.js} +0 -0
  575. /package/dist/assets/{rpm-CHrvhtlN.js → rpm-DnfrioeJ.js} +0 -0
  576. /package/dist/assets/{ruby-BPOowfX6.js → ruby-C9f8lbWZ.js} +0 -0
  577. /package/dist/assets/{runs-Edg4TRSI.js → runs-BR6uJHTx.js} +0 -0
  578. /package/dist/assets/{sas-BsEFSvEP.js → sas-TQvbwzLU.js} +0 -0
  579. /package/dist/assets/{save-CGxzAyve.js → save-BNNMzGly.js} +0 -0
  580. /package/dist/assets/{scheme-B42INBu7.js → scheme-DCJ8_Fy0.js} +0 -0
  581. /package/dist/assets/{semaphore-FlZezxaf.js → semaphore-X3ApuO41.js} +0 -0
  582. /package/dist/assets/{session-B6_8umQX.js → session-CsT5Gg9j.js} +0 -0
  583. /package/dist/assets/{settings-Cn43l_vx.js → settings-1WkYMLdR.js} +0 -0
  584. /package/dist/assets/{shell-BPea12OI.js → shell-D8pt0LM7.js} +0 -0
  585. /package/dist/assets/{sieve-C-yPcLw5.js → sieve-DGXZ82l_.js} +0 -0
  586. /package/dist/assets/{simple-mode-CFlvn0Mm.js → simple-mode-B3UD3n_i.js} +0 -0
  587. /package/dist/assets/{smalltalk-e7OO1ATb.js → smalltalk-DyRmt5Ka.js} +0 -0
  588. /package/dist/assets/{solr-BAO4N63o.js → solr-B928KjNx.js} +0 -0
  589. /package/dist/assets/{sparkles-DctOjjEz.js → sparkles-COaEc8Qn.js} +0 -0
  590. /package/dist/assets/{sparql-B4I2Ledx.js → sparql-CLILkzHY.js} +0 -0
  591. /package/dist/assets/{spinner-DTBVbtl-.js → spinner-BbI9qk88.js} +0 -0
  592. /package/dist/assets/{spreadsheet-DWqd5foV.js → spreadsheet-CAG48M_e.js} +0 -0
  593. /package/dist/assets/{sql-RBdzBYsM.js → sql-nk70rjN1.js} +0 -0
  594. /package/dist/assets/{square-DPWHdF_-.js → square-35tXIgiR.js} +0 -0
  595. /package/dist/assets/{square-function-CPbVtjKW.js → square-function-Dx0pKHko.js} +0 -0
  596. /package/dist/assets/{src-BnrQkOKh.js → src-BRLtyMKi.js} +0 -0
  597. /package/dist/assets/{stex-C6JeW1YI.js → stex-0ac7Aukl.js} +0 -0
  598. /package/dist/assets/{stylus-CBRbZwhN.js → stylus-BCmjnwMM.js} +0 -0
  599. /package/dist/assets/{swift-B2hnU7ha.js → swift-BkcVjmPv.js} +0 -0
  600. /package/dist/assets/{table-Fk_msRcD.js → table-CnW850Wt.js} +0 -0
  601. /package/dist/assets/{tcl-BtyamtaZ.js → tcl-B3wbfJh2.js} +0 -0
  602. /package/dist/assets/{textile-M9mhyNE9.js → textile-D12VShq0.js} +0 -0
  603. /package/dist/assets/{tiddlywiki-BsHUDwie.js → tiddlywiki-BiHxc-2_.js} +0 -0
  604. /package/dist/assets/{tiki-ZqBe4Kjv.js → tiki-Cwip62d7.js} +0 -0
  605. /package/dist/assets/{timer-BgiWPhV9.js → timer-B6DpdVnC.js} +0 -0
  606. /package/dist/assets/{toml-YxyxhyRy.js → toml-XXoBgyAV.js} +0 -0
  607. /package/dist/assets/{trash-2-CjPoUZCP.js → trash-2-CqTUwVuU.js} +0 -0
  608. /package/dist/assets/{trash-Icq8_IVf.js → trash-BW_KaFjz.js} +0 -0
  609. /package/dist/assets/{treemap-DeGcO9km.js → treemap-BY_mNGmB.js} +0 -0
  610. /package/dist/assets/{triangle-alert-CV7pqa1o.js → triangle-alert-D8Ft17xk.js} +0 -0
  611. /package/dist/assets/{troff-C7xpi05X.js → troff-D9lX0BP4.js} +0 -0
  612. /package/dist/assets/{ttcn-D3YytrJU.js → ttcn-DQ5upjvU.js} +0 -0
  613. /package/dist/assets/{ttcn-cfg-DlZ5vA9E.js → ttcn-cfg-pqnJIxH9.js} +0 -0
  614. /package/dist/assets/{turtle-BSHvAsUe.js → turtle-BUVCUZMx.js} +0 -0
  615. /package/dist/assets/{types-a-yURniQ.js → types-BLEgJ92v.js} +0 -0
  616. /package/dist/assets/{types-xF5uWODg.js → types-BnrgJ4Gh.js} +0 -0
  617. /package/dist/assets/{use-toast-BH8bU9Xf.js → use-toast-kCNiuc-_.js} +0 -0
  618. /package/dist/assets/{useAsyncData-CT1LpOBD.js → useAsyncData-DAQcLiyE.js} +0 -0
  619. /package/dist/assets/{useDebounce-BlBSYv0n.js → useDebounce-CpLI2dsc.js} +0 -0
  620. /package/dist/assets/{useDeepCompareMemoize-zUHU--0D.js → useDeepCompareMemoize-CWcgQCbT.js} +0 -0
  621. /package/dist/assets/{useHotkey-C-blZ3Z8.js → useHotkey-CJo8iX8v.js} +0 -0
  622. /package/dist/assets/{useIframeCapabilities-DuGyzPVb.js → useIframeCapabilities-B0dNZiKK.js} +0 -0
  623. /package/dist/assets/{useInterval-BvJQmQqd.js → useInterval-DeSrhhRN.js} +0 -0
  624. /package/dist/assets/{useTheme-CWoNQwFz.js → useTheme-D_ZbTTJw.js} +0 -0
  625. /package/dist/assets/{uuid-BukULOeS.js → uuid-ClFZlR7U.js} +0 -0
  626. /package/dist/assets/{vb-DdkIDLlO.js → vb-CgKmZtlp.js} +0 -0
  627. /package/dist/assets/{vbscript-DhYGmk_p.js → vbscript-mB-oVfPH.js} +0 -0
  628. /package/dist/assets/{velocity-DAXJNEw4.js → velocity-CrvX3BFT.js} +0 -0
  629. /package/dist/assets/{verilog-jmuT_L3b.js → verilog-C0Wzs7-f.js} +0 -0
  630. /package/dist/assets/{vhdl-DcVQ97RU.js → vhdl-s8UGv0A3.js} +0 -0
  631. /package/dist/assets/{web-vitals-xkV-JBVF.js → web-vitals-V-8mt_c9.js} +0 -0
  632. /package/dist/assets/{webidl-B-YB_4OQ.js → webidl-GTmlnawS.js} +0 -0
  633. /package/dist/assets/{workflow-ClrYl5m7.js → workflow-f8flhcJ1.js} +0 -0
  634. /package/dist/assets/{ws-BnE9sl8z.js → ws-DSN-Rmiu.js} +0 -0
  635. /package/dist/assets/{xquery-DOmY3Oe8.js → xquery-Bq3_mXJv.js} +0 -0
  636. /package/dist/assets/{yacas-pL3kJRXV.js → yacas-B1P8UzPS.js} +0 -0
  637. /package/dist/assets/{z80-VwVuI_MT.js → z80-C8FzIVqi.js} +0 -0
@@ -0,0 +1 @@
1
+ import{s as ae}from"./chunk-LvLJmgfZ.js";import{d as be,l as ye,n as V,p as oe,u as we}from"./useEvent-D91BmmQi.js";import{t as Ne}from"./react-Bj1aDYRI.js";import{D as ke,Gi as ze,I as Ce,Ki as m,Li as Se,Ln as Ie,__tla as Oe}from"./cells-B7YKR2ed.js";import"./react-dom-CSu739Rf.js";import{t as ie}from"./compiler-runtime-B3qBwwSJ.js";import{v as se}from"./useEventListener-BakX-tnw.js";import{x as Ae}from"./utils-Dev6I_Kv.js";import{t as Le}from"./constants-B9JJ72XE.js";import{t as le}from"./cn-X2M2usMq.js";import{t as Me}from"./jsx-runtime-PbYoItBR.js";import"./fullscreen-BXI8V5i6.js";import"./popover-DMNO6Poc.js";import{n as Pe,__tla as De}from"./JsonOutput-BkFXuRpB.js";import"./download-DiInTgPW.js";import{t as z}from"./tooltip-CgQpRVyN.js";import{t as C}from"./button-BF7GSjhW.js";import"./dist-Dez1I5M9.js";import"./cjs-DXo9vDEJ.js";import"./main-DmhaVp6Y.js";import"./useNonce-0SWz6w4W.js";import{r as Ee}from"./requests-KshNNAOp.js";import{t as ne}from"./createLucideIcon-BTp1tQDO.js";import{f as Re,__tla as He}from"./layout-BI4PmskA.js";import{n as Ve,t as qe,__tla as Ge}from"./LazyAnyLanguageCodeMirror-BsVlAJyX.js";import{__tla as Te}from"./markdown-renderer-CKrylIiR.js";import{u as Ke}from"./toDate-DCE7d2fN.js";import{t as Ue,__tla as Be}from"./cell-editor-s9cOHGdF.js";import{t as Fe}from"./spinner-BbI9qk88.js";import{i as Je}from"./useDeleteCell-CXhTb-Wb.js";import"./dist-DblYTes5.js";import"./dist-D-2yWcX9.js";import"./dist-CNKFZCiw.js";import"./dist-ZjSH4Z6x.js";import"./dist-BtrqKtvn.js";import"./session-CsT5Gg9j.js";import{r as Qe}from"./useTheme-D_ZbTTJw.js";import"./purify.es-DfJp_of2.js";import"./dates-D8uxHHPL.js";import"./utils-DPvpQ891.js";import"./vega-loader.browser-CZV6_g2i.js";import"./defaultLocale-OkOxlkkM.js";import"./defaultLocale-DK1MWd7f.js";import{__tla as We}from"./chunk-5FQGJX7Z-DcW-_LxK.js";import"./html-to-image-C_aIFrkD.js";import{o as Xe}from"./focus-M6_Axyyu.js";import{n as Ye,r as Ze,t as me}from"./react-resizable-panels.browser.esm-Ce2ksurd.js";import{a as $e}from"./renderShortcut-LpVarhnQ.js";import"./esm-X3Tr2pur.js";import"./name-cell-input-DEi5F7_C.js";import{n as et,r as tt}from"./panel-context-DC1vAeB3.js";import{__tla as rt}from"./loro_wasm_bg-BFCm9sQd.js";import"./ws-DSN-Rmiu.js";import"./Inputs-SmI80aJQ.js";import"./dist-DU8gTNy9.js";import"./dist-DgBuTUso.js";import"./dist-RW5SS83Z.js";import"./dist-Ci66nyHs.js";import"./dist-DkYp4RmM.js";import"./dist-DlREAgj1.js";import"./dist-BbGE6FVk.js";import"./dist-qGjvyIZU.js";import"./dist-C6zQ57IZ.js";import"./esm-B_l4S2x_.js";import{t as at}from"./kiosk-mode-DzVyPYQb.js";let ce,ot=Promise.all([(()=>{try{return Oe}catch{}})(),(()=>{try{return De}catch{}})(),(()=>{try{return He}catch{}})(),(()=>{try{return Ge}catch{}})(),(()=>{try{return Te}catch{}})(),(()=>{try{return Be}catch{}})(),(()=>{try{return We}catch{}})(),(()=>{try{return rt}catch{}})()]).then(async()=>{var de=ne("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"}]]),he=ne("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"}]]),pe=ie(),q=ae(Ne(),1),ue=15;const G=Se("marimo:scratchpadHistory:v1",[],Ie),fe=oe(!1),xe=oe(null,(e,i,s)=>{if(s=s.trim(),!s)return;let n=e(G);i(G,[s,...n.filter(c=>c!==s)].slice(0,ue))});var t=ae(Me(),1),_e={hide_code:!1,disabled:!1};const ve=()=>{var re;let e=(0,pe.c)(60),i=Ce(),[s]=Ae(),{theme:n}=Qe(),c=(0,q.useRef)(null),T=Xe(),{createNewCell:K,updateCellCode:d}=ke(),{sendRunScratchpad:h}=Ee(),S=et(),U=tt(),l=i.cellRuntime[m],B=l==null?void 0:l.output,I=l==null?void 0:l.status,F=l==null?void 0:l.consoleOutputs,r=((re=i.cellData.__scratch__)==null?void 0:re.code)??"",J=be(xe),[o,p]=ye(fe),u=we(G),O;e[0]!==J||e[1]!==r||e[2]!==h?(O=()=>{h({code:r}),J(r)},e[0]=J,e[1]=r,e[2]=h,e[3]=O):O=e[3];let f=V(O),A;e[4]!==r||e[5]!==K||e[6]!==T?(A=()=>{r.trim()&&K({code:r,before:!1,cellId:T??"__end__"})},e[4]=r,e[5]=K,e[6]=T,e[7]=A):A=e[7];let Q=V(A),L;e[8]!==h||e[9]!==d?(L=()=>{d({cellId:m,code:"",formattingChange:!1}),h({code:""});let a=c.current;a&&a.dispatch({changes:{from:0,to:a.state.doc.length,insert:""}})},e[8]=h,e[9]=d,e[10]=L):L=e[10];let W=V(L),M;e[11]!==p||e[12]!==d?(M=a=>{p(!1),d({cellId:m,code:a,formattingChange:!1});let k=c.current;k&&k.dispatch({changes:{from:0,to:k.state.doc.length,insert:a}})},e[11]=p,e[12]=d,e[13]=M):M=e[13];let X=V(M),[Y,ge]=(0,q.useState)(),P;e[14]!==X||e[15]!==u||e[16]!==o||e[17]!==n?(P=()=>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:n,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]=n,e[18]=P):P=e[18];let Z=P,D;e[19]!==W||e[20]!==Q||e[21]!==f||e[22]!==u.length||e[23]!==o||e[24]!==p||e[25]!==I?(D=()=>(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})})})}),(I==="running"||I==="queued")&&(0,t.jsx)(Fe,{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:()=>p(!o),disabled:u.length===0,children:(0,t.jsx)(he,{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)(Ke,{size:16})})})]}),e[19]=W,e[20]=Q,e[21]=f,e[22]=u.length,e[23]=o,e[24]=p,e[25]=I,e[26]=D):D=e[26];let $=D,je=S==="vertical",E;e[27]===Symbol.for("react.memo_cache_sentinel")?(E=ze.create(m),e[27]=E):E=e[27];let x;e[28]===$?x=e[29]:(x=$(),e[28]=$,e[29]=x);let R;e[30]===Symbol.for("react.memo_cache_sentinel")?(R=a=>{c.current=a},e[30]=R):R=e[30];let _;e[31]!==r||e[32]!==f||e[33]!==Y||e[34]!==n||e[35]!==s?(_=(0,t.jsx)("div",{className:"flex-1 overflow-auto",children:(0,t.jsx)(Ue,{theme:n,showPlaceholder:!1,id:m,code:r,config:_e,status:"idle",serializedEditorState:null,runCell:f,userConfig:s,editorViewRef:c,setEditorView:R,hidden:!1,showHiddenCode:se.NOOP,languageAdapter:Y,setLanguageAdapter:ge})}),e[31]=r,e[32]=f,e[33]=Y,e[34]=n,e[35]=s,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)(me,{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]===B?y=e[48]:(y=(0,t.jsx)("div",{className:"flex-1 overflow-auto",children:(0,t.jsx)(Pe,{allowExpand:!1,output:B,className:Le.outputArea,cellId:m,stale:!1,loading:!1})}),e[47]=B,e[48]=y);let w;e[49]===F?w=e[50]:(w=(0,t.jsx)("div",{className:"overflow-auto shrink-0 max-h-[50%]",children:(0,t.jsx)(Re,{consoleOutputs:F,className:"overflow-auto",stale:!1,interrupted:!1,cellName:"_",onSubmitDebugger:se.NOOP,cellId:m,debuggerActive:!1})}),e[49]=F,e[50]=w);let N;e[51]!==y||e[52]!==w?(N=(0,t.jsx)(me,{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]!==U||e[56]!==g||e[57]!==b||e[58]!==N?(H=(0,t.jsx)("div",{className:"flex flex-col h-full overflow-hidden",id:E,children:(0,t.jsxs)(Ye,{direction:S,className:"h-full",children:[g,b,N]},U)}),e[54]=S,e[55]=U,e[56]=g,e[57]=b,e[58]=N,e[59]=H):H=e[59],H};let te;te=ie(),ce=()=>{let e=(0,te.c)(1),i;return e[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)(ve,{}),e[0]=i):i=e[0],i}});export{ot as __tla,ce as default};
@@ -1 +1 @@
1
- import{s as g}from"./chunk-LvLJmgfZ.js";import"./useEvent-D91BmmQi.js";import{t as k}from"./react-Bj1aDYRI.js";import"./react-dom-CSu739Rf.js";import{t as $}from"./compiler-runtime-B3qBwwSJ.js";import{t as M}from"./cn-X2M2usMq.js";import{t as E}from"./jsx-runtime-PbYoItBR.js";import"./fullscreen-BXI8V5i6.js";import{t as L}from"./check-DQmqoJgr.js";import{t as A}from"./copy-IBNGDypD.js";import{n as D}from"./DeferredRequestRegistry-EP9ZArpv.js";import{t as P}from"./spinner-DTBVbtl-.js";import{t as T}from"./plus-CExKUszm.js";import{t as V}from"./badge-CFAaMy0O.js";import{t as q}from"./use-toast-BH8bU9Xf.js";import{n as B}from"./copy-CyasABTK.js";import{n as F}from"./ImperativeModal-MQnbMIO2.js";import{n as I}from"./error-banner-C4DZksWV.js";import{n as O}from"./useAsyncData-CT1LpOBD.js";import{a as R,i as S,n as G,o as w,r as _,t as H}from"./table-Fk_msRcD.js";import{n as J,r as K,t as C}from"./react-resizable-panels.browser.esm-CgWOEYeG.js";import{t as Q}from"./empty-state-vKu4k0Y4.js";import{t as U}from"./request-registry-unC7eRnq.js";import{n as W,t as X}from"./write-secret-modal-qfcjtCvk.js";var z=$(),Y=g(k(),1),r=g(E(),1),Z=()=>{let e=(0,z.c)(27),{openModal:t,closeModal:n}=F(),l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=[],e[0]=l):l=e[0];let{data:s,isPending:x,error:f,refetch:m}=O(re,l);if(x){let o;return e[1]===Symbol.for("react.memo_cache_sentinel")?(o=(0,r.jsx)(P,{size:"medium",centered:!0}),e[1]=o):o=e[1],o}if(f){let o;return e[2]===f?o=e[3]:(o=(0,r.jsx)(I,{error:f}),e[2]=f,e[3]=o),o}let c;e[4]===s?c=e[5]:(c=s.filter(te).map(oe),e[4]=s,e[5]=c);let i=c;if(s.length===0){let o;return e[6]===Symbol.for("react.memo_cache_sentinel")?(o=(0,r.jsx)(Q,{title:"No environment variables",description:"No environment variables are available in this notebook.",icon:(0,r.jsx)(D,{})}),e[6]=o):o=e[6],o}let a;e[7]!==n||e[8]!==t||e[9]!==i||e[10]!==m?(a=()=>t((0,r.jsx)(X,{providerNames:i,onSuccess:()=>{m(),n()},onClose:n})),e[7]=n,e[8]=t,e[9]=i,e[10]=m,e[11]=a):a=e[11];let b;e[12]===Symbol.for("react.memo_cache_sentinel")?(b=(0,r.jsx)(T,{className:"h-4 w-4"}),e[12]=b):b=e[12];let d;e[13]===a?d=e[14]:(d=(0,r.jsx)("div",{className:"flex justify-start h-8 border-b",children:(0,r.jsx)("button",{type:"button",className:"border-r px-2 m-0 h-full hover:bg-accent hover:text-accent-foreground",onClick:a,children:b})}),e[13]=a,e[14]=d);let j;e[15]===Symbol.for("react.memo_cache_sentinel")?(j=(0,r.jsx)(R,{children:(0,r.jsxs)(w,{children:[(0,r.jsx)(S,{children:"Environment Variable"}),(0,r.jsx)(S,{children:"Source"}),(0,r.jsx)(S,{})]})}),e[15]=j):j=e[15];let p;e[16]===s?p=e[17]:(p=s.map(se),e[16]=s,e[17]=p);let h;e[18]===p?h=e[19]:(h=(0,r.jsxs)(H,{className:"overflow-auto flex-1 mb-16",children:[j,(0,r.jsx)(G,{children:p})]}),e[18]=p,e[19]=h);let u;e[20]!==d||e[21]!==h?(u=(0,r.jsx)(C,{defaultSize:50,minSize:30,maxSize:80,children:(0,r.jsxs)("div",{className:"flex flex-col h-full",children:[d,h]})}),e[20]=d,e[21]=h,e[22]=u):u=e[22];let v;e[23]===Symbol.for("react.memo_cache_sentinel")?(v=(0,r.jsx)(K,{className:"w-1 bg-border hover:bg-primary/50 transition-colors"}),e[23]=v):v=e[23];let y;e[24]===Symbol.for("react.memo_cache_sentinel")?(y=(0,r.jsx)(C,{defaultSize:50,children:(0,r.jsx)("div",{})}),e[24]=y):y=e[24];let N;return e[25]===u?N=e[26]:(N=(0,r.jsxs)(J,{direction:"horizontal",className:"h-full",children:[u,v,y]}),e[25]=u,e[26]=N),N},ee=e=>{let t=(0,z.c)(9),{className:n,ariaLabel:l,onCopy:s}=e,[x,f]=Y.useState(!1),m;t[0]===s?m=t[1]:(m=()=>{s(),f(!0),setTimeout(()=>f(!1),1e3)},t[0]=s,t[1]=m);let c=m,i;t[2]===x?i=t[3]:(i=x?(0,r.jsx)(L,{className:"w-3 h-3 text-green-700 rounded"}):(0,r.jsx)(A,{className:"w-3 h-3 hover:bg-muted rounded"}),t[2]=x,t[3]=i);let a;return t[4]!==l||t[5]!==n||t[6]!==c||t[7]!==i?(a=(0,r.jsx)("button",{type:"button",className:n,onClick:c,"aria-label":l,children:i}),t[4]=l,t[5]=n,t[6]=c,t[7]=i,t[8]=a):a=t[8],a};async function re(){return W((await U.request({})).secrets)}function te(e){return e.provider!=="env"}function oe(e){return e.name}function se(e){return e.keys.map(t=>(0,r.jsxs)(w,{className:"group",children:[(0,r.jsx)(_,{children:t}),(0,r.jsx)(_,{children:e.provider!=="env"&&(0,r.jsx)(V,{variant:"outline",className:"select-none",children:e.name})}),(0,r.jsx)(_,{children:(0,r.jsx)(ee,{ariaLabel:`Copy ${t}`,onCopy:async()=>{await B(`os.environ["${t}"]`),q({title:"Copied to clipboard",description:`os.environ["${t}"] has been copied to your clipboard.`})},className:M("float-right px-2 h-full text-xs text-muted-foreground hover:text-foreground","invisible group-hover:visible")})})]},`${e.name}-${t}`))}export{Z as default};
1
+ import{s as g}from"./chunk-LvLJmgfZ.js";import"./useEvent-D91BmmQi.js";import{t as k}from"./react-Bj1aDYRI.js";import"./react-dom-CSu739Rf.js";import{t as $}from"./compiler-runtime-B3qBwwSJ.js";import{t as M}from"./cn-X2M2usMq.js";import{t as E}from"./jsx-runtime-PbYoItBR.js";import"./fullscreen-BXI8V5i6.js";import{t as L}from"./check-DQmqoJgr.js";import{t as A}from"./copy-IBNGDypD.js";import{n as D}from"./DeferredRequestRegistry-RuL7NV1n.js";import{t as P}from"./spinner-BbI9qk88.js";import{t as T}from"./plus-ZXRHY1up.js";import{t as V}from"./badge-6yGCqY1Z.js";import{t as q}from"./use-toast-kCNiuc-_.js";import{n as B}from"./copy-D8MtpXgN.js";import{n as F}from"./ImperativeModal-B62Q6S9l.js";import{n as I}from"./error-banner-BSQVN46J.js";import{n as O}from"./useAsyncData-DAQcLiyE.js";import{a as R,i as S,n as G,o as w,r as _,t as H}from"./table-CnW850Wt.js";import{n as J,r as K,t as C}from"./react-resizable-panels.browser.esm-Ce2ksurd.js";import{t as Q}from"./empty-state-QmmE2oN4.js";import{t as U}from"./request-registry-K6vbazWs.js";import{n as W,t as X}from"./write-secret-modal-K2n79wHj.js";var z=$(),Y=g(k(),1),r=g(E(),1),Z=()=>{let e=(0,z.c)(27),{openModal:t,closeModal:n}=F(),l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=[],e[0]=l):l=e[0];let{data:s,isPending:x,error:f,refetch:m}=O(re,l);if(x){let o;return e[1]===Symbol.for("react.memo_cache_sentinel")?(o=(0,r.jsx)(P,{size:"medium",centered:!0}),e[1]=o):o=e[1],o}if(f){let o;return e[2]===f?o=e[3]:(o=(0,r.jsx)(I,{error:f}),e[2]=f,e[3]=o),o}let c;e[4]===s?c=e[5]:(c=s.filter(te).map(oe),e[4]=s,e[5]=c);let i=c;if(s.length===0){let o;return e[6]===Symbol.for("react.memo_cache_sentinel")?(o=(0,r.jsx)(Q,{title:"No environment variables",description:"No environment variables are available in this notebook.",icon:(0,r.jsx)(D,{})}),e[6]=o):o=e[6],o}let a;e[7]!==n||e[8]!==t||e[9]!==i||e[10]!==m?(a=()=>t((0,r.jsx)(X,{providerNames:i,onSuccess:()=>{m(),n()},onClose:n})),e[7]=n,e[8]=t,e[9]=i,e[10]=m,e[11]=a):a=e[11];let b;e[12]===Symbol.for("react.memo_cache_sentinel")?(b=(0,r.jsx)(T,{className:"h-4 w-4"}),e[12]=b):b=e[12];let d;e[13]===a?d=e[14]:(d=(0,r.jsx)("div",{className:"flex justify-start h-8 border-b",children:(0,r.jsx)("button",{type:"button",className:"border-r px-2 m-0 h-full hover:bg-accent hover:text-accent-foreground",onClick:a,children:b})}),e[13]=a,e[14]=d);let j;e[15]===Symbol.for("react.memo_cache_sentinel")?(j=(0,r.jsx)(R,{children:(0,r.jsxs)(w,{children:[(0,r.jsx)(S,{children:"Environment Variable"}),(0,r.jsx)(S,{children:"Source"}),(0,r.jsx)(S,{})]})}),e[15]=j):j=e[15];let p;e[16]===s?p=e[17]:(p=s.map(se),e[16]=s,e[17]=p);let h;e[18]===p?h=e[19]:(h=(0,r.jsxs)(H,{className:"overflow-auto flex-1 mb-16",children:[j,(0,r.jsx)(G,{children:p})]}),e[18]=p,e[19]=h);let u;e[20]!==d||e[21]!==h?(u=(0,r.jsx)(C,{defaultSize:50,minSize:30,maxSize:80,children:(0,r.jsxs)("div",{className:"flex flex-col h-full",children:[d,h]})}),e[20]=d,e[21]=h,e[22]=u):u=e[22];let v;e[23]===Symbol.for("react.memo_cache_sentinel")?(v=(0,r.jsx)(K,{className:"w-1 bg-border hover:bg-primary/50 transition-colors"}),e[23]=v):v=e[23];let y;e[24]===Symbol.for("react.memo_cache_sentinel")?(y=(0,r.jsx)(C,{defaultSize:50,children:(0,r.jsx)("div",{})}),e[24]=y):y=e[24];let N;return e[25]===u?N=e[26]:(N=(0,r.jsxs)(J,{direction:"horizontal",className:"h-full",children:[u,v,y]}),e[25]=u,e[26]=N),N},ee=e=>{let t=(0,z.c)(9),{className:n,ariaLabel:l,onCopy:s}=e,[x,f]=Y.useState(!1),m;t[0]===s?m=t[1]:(m=()=>{s(),f(!0),setTimeout(()=>f(!1),1e3)},t[0]=s,t[1]=m);let c=m,i;t[2]===x?i=t[3]:(i=x?(0,r.jsx)(L,{className:"w-3 h-3 text-green-700 rounded"}):(0,r.jsx)(A,{className:"w-3 h-3 hover:bg-muted rounded"}),t[2]=x,t[3]=i);let a;return t[4]!==l||t[5]!==n||t[6]!==c||t[7]!==i?(a=(0,r.jsx)("button",{type:"button",className:n,onClick:c,"aria-label":l,children:i}),t[4]=l,t[5]=n,t[6]=c,t[7]=i,t[8]=a):a=t[8],a};async function re(){return W((await U.request({})).secrets)}function te(e){return e.provider!=="env"}function oe(e){return e.name}function se(e){return e.keys.map(t=>(0,r.jsxs)(w,{className:"group",children:[(0,r.jsx)(_,{children:t}),(0,r.jsx)(_,{children:e.provider!=="env"&&(0,r.jsx)(V,{variant:"outline",className:"select-none",children:e.name})}),(0,r.jsx)(_,{children:(0,r.jsx)(ee,{ariaLabel:`Copy ${t}`,onCopy:async()=>{await B(`os.environ["${t}"]`),q({title:"Copied to clipboard",description:`os.environ["${t}"] has been copied to your clipboard.`})},className:M("float-right px-2 h-full text-xs text-muted-foreground hover:text-foreground","invisible group-hover:visible")})})]},`${e.name}-${t}`))}export{Z as default};
@@ -1,4 +1,4 @@
1
- var wt;import"./purify.es-DdxMtdqK.js";import{u as Wt}from"./src-CyeQdfB6.js";import{g as F,p as re}from"./chunk-S3R3BYOJ-DHLCcICg.js";import{n as x,r as G}from"./src-BnrQkOKh.js";import{B as se,C as we,E as Ie,H as Le,I as Nt,N as ie,O as q,U as ke,_ as Pe,a as _e,b as et,c as Ae,i as Lt,r as ve,s as L,v as Ne,y as qt,z as Me}from"./chunk-ABZYJK2D-DntHwfwl.js";import{n as Oe,t as Se}from"./chunk-MI3HLSF2-DqzZqBCh.js";import{t as De}from"./dist-BXRWfNwi.js";import{i as $e,n as zt,o as ct,r as Ht,s as Ut,t as Re}from"./chunk-TZMSLE5B-BgJLE0Za.js";import{t as Ce}from"./chunk-QZHKN3VN-BAnb9AKF.js";var oe=De(),jt=(function(){var e=x(function(I,A,_,f){for(_||(_={}),f=I.length;f--;_[I[f]]=A);return _},"o"),t=[1,2],o=[1,3],a=[1,4],s=[2,4],i=[1,9],c=[1,11],p=[1,13],n=[1,14],r=[1,16],d=[1,17],m=[1,18],u=[1,24],y=[1,25],E=[1,26],w=[1,27],P=[1,28],O=[1,29],N=[1,30],S=[1,31],$=[1,32],Y=[1,33],U=[1,34],X=[1,35],at=[1,36],z=[1,37],H=[1,38],W=[1,39],R=[1,41],J=[1,42],j=[1,43],Z=[1,44],rt=[1,45],D=[1,46],T=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,55,60,61,62,63,71],k=[2,71],K=[4,5,16,50,52,53],Q=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],M=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,55,60,61,62,63,71],Rt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,55,60,61,62,63,71],Xt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,55,60,61,62,63,71],nt=[69,70,71],lt=[1,127],Ct={trace:x(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,actor_with_config:54,note:55,placement:56,text2:57,over:58,actor_pair:59,links:60,link:61,properties:62,details:63,spaceList:64,",":65,left_of:66,right_of:67,signaltype:68,"+":69,"-":70,ACTOR:71,config_object:72,CONFIG_START:73,CONFIG_CONTENT:74,CONFIG_END:75,SOLID_OPEN_ARROW:76,DOTTED_OPEN_ARROW:77,SOLID_ARROW:78,BIDIRECTIONAL_SOLID_ARROW:79,DOTTED_ARROW:80,BIDIRECTIONAL_DOTTED_ARROW:81,SOLID_CROSS:82,DOTTED_CROSS:83,SOLID_POINT:84,DOTTED_POINT:85,TXT:86,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",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",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",55:"note",58:"over",60:"links",61:"link",62:"properties",63:"details",65:",",66:"left_of",67:"right_of",69:"+",70:"-",71:"ACTOR",73:"CONFIG_START",74:"CONFIG_CONTENT",75:"CONFIG_END",76:"SOLID_OPEN_ARROW",77:"DOTTED_OPEN_ARROW",78:"SOLID_ARROW",79:"BIDIRECTIONAL_SOLID_ARROW",80:"DOTTED_ARROW",81:"BIDIRECTIONAL_DOTTED_ARROW",82:"SOLID_CROSS",83:"DOTTED_CROSS",84:"SOLID_POINT",85:"DOTTED_POINT",86:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,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],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[64,2],[64,1],[59,3],[59,1],[56,1],[56,1],[17,5],[17,5],[17,4],[54,2],[72,3],[22,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[57,1]],performAction:x(function(I,A,_,f,C,h,It){var g=h.length-1;switch(C){case 3:return f.apply(h[g]),h[g];case 4:case 9:this.$=[];break;case 5:case 10:h[g-1].push(h[g]),this.$=h[g-1];break;case 6:case 7:case 11:case 12:this.$=h[g];break;case 8:case 13:this.$=[];break;case 15:h[g].type="createParticipant",this.$=h[g];break;case 16:h[g-1].unshift({type:"boxStart",boxData:f.parseBoxData(h[g-2])}),h[g-1].push({type:"boxEnd",boxText:h[g-2]}),this.$=h[g-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(h[g-2]),sequenceIndexStep:Number(h[g-1]),sequenceVisible:!0,signalType:f.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(h[g-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:f.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:f.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:f.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:f.LINETYPE.ACTIVE_START,actor:h[g-1].actor};break;case 23:this.$={type:"activeEnd",signalType:f.LINETYPE.ACTIVE_END,actor:h[g-1].actor};break;case 29:f.setDiagramTitle(h[g].substring(6)),this.$=h[g].substring(6);break;case 30:f.setDiagramTitle(h[g].substring(7)),this.$=h[g].substring(7);break;case 31:this.$=h[g].trim(),f.setAccTitle(this.$);break;case 32:case 33:this.$=h[g].trim(),f.setAccDescription(this.$);break;case 34:h[g-1].unshift({type:"loopStart",loopText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.LOOP_START}),h[g-1].push({type:"loopEnd",loopText:h[g-2],signalType:f.LINETYPE.LOOP_END}),this.$=h[g-1];break;case 35:h[g-1].unshift({type:"rectStart",color:f.parseMessage(h[g-2]),signalType:f.LINETYPE.RECT_START}),h[g-1].push({type:"rectEnd",color:f.parseMessage(h[g-2]),signalType:f.LINETYPE.RECT_END}),this.$=h[g-1];break;case 36:h[g-1].unshift({type:"optStart",optText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.OPT_START}),h[g-1].push({type:"optEnd",optText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.OPT_END}),this.$=h[g-1];break;case 37:h[g-1].unshift({type:"altStart",altText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.ALT_START}),h[g-1].push({type:"altEnd",signalType:f.LINETYPE.ALT_END}),this.$=h[g-1];break;case 38:h[g-1].unshift({type:"parStart",parText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.PAR_START}),h[g-1].push({type:"parEnd",signalType:f.LINETYPE.PAR_END}),this.$=h[g-1];break;case 39:h[g-1].unshift({type:"parStart",parText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.PAR_OVER_START}),h[g-1].push({type:"parEnd",signalType:f.LINETYPE.PAR_END}),this.$=h[g-1];break;case 40:h[g-1].unshift({type:"criticalStart",criticalText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.CRITICAL_START}),h[g-1].push({type:"criticalEnd",signalType:f.LINETYPE.CRITICAL_END}),this.$=h[g-1];break;case 41:h[g-1].unshift({type:"breakStart",breakText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.BREAK_START}),h[g-1].push({type:"breakEnd",optText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.BREAK_END}),this.$=h[g-1];break;case 43:this.$=h[g-3].concat([{type:"option",optionText:f.parseMessage(h[g-1]),signalType:f.LINETYPE.CRITICAL_OPTION},h[g]]);break;case 45:this.$=h[g-3].concat([{type:"and",parText:f.parseMessage(h[g-1]),signalType:f.LINETYPE.PAR_AND},h[g]]);break;case 47:this.$=h[g-3].concat([{type:"else",altText:f.parseMessage(h[g-1]),signalType:f.LINETYPE.ALT_ELSE},h[g]]);break;case 48:h[g-3].draw="participant",h[g-3].type="addParticipant",h[g-3].description=f.parseMessage(h[g-1]),this.$=h[g-3];break;case 49:h[g-1].draw="participant",h[g-1].type="addParticipant",this.$=h[g-1];break;case 50:h[g-3].draw="actor",h[g-3].type="addParticipant",h[g-3].description=f.parseMessage(h[g-1]),this.$=h[g-3];break;case 51:h[g-1].draw="actor",h[g-1].type="addParticipant",this.$=h[g-1];break;case 52:h[g-1].type="destroyParticipant",this.$=h[g-1];break;case 53:h[g-1].draw="participant",h[g-1].type="addParticipant",this.$=h[g-1];break;case 54:this.$=[h[g-1],{type:"addNote",placement:h[g-2],actor:h[g-1].actor,text:h[g]}];break;case 55:h[g-2]=[].concat(h[g-1],h[g-1]).slice(0,2),h[g-2][0]=h[g-2][0].actor,h[g-2][1]=h[g-2][1].actor,this.$=[h[g-1],{type:"addNote",placement:f.PLACEMENT.OVER,actor:h[g-2].slice(0,2),text:h[g]}];break;case 56:this.$=[h[g-1],{type:"addLinks",actor:h[g-1].actor,text:h[g]}];break;case 57:this.$=[h[g-1],{type:"addALink",actor:h[g-1].actor,text:h[g]}];break;case 58:this.$=[h[g-1],{type:"addProperties",actor:h[g-1].actor,text:h[g]}];break;case 59:this.$=[h[g-1],{type:"addDetails",actor:h[g-1].actor,text:h[g]}];break;case 62:this.$=[h[g-2],h[g]];break;case 63:this.$=h[g];break;case 64:this.$=f.PLACEMENT.LEFTOF;break;case 65:this.$=f.PLACEMENT.RIGHTOF;break;case 66:this.$=[h[g-4],h[g-1],{type:"addMessage",from:h[g-4].actor,to:h[g-1].actor,signalType:h[g-3],msg:h[g],activate:!0},{type:"activeStart",signalType:f.LINETYPE.ACTIVE_START,actor:h[g-1].actor}];break;case 67:this.$=[h[g-4],h[g-1],{type:"addMessage",from:h[g-4].actor,to:h[g-1].actor,signalType:h[g-3],msg:h[g]},{type:"activeEnd",signalType:f.LINETYPE.ACTIVE_END,actor:h[g-4].actor}];break;case 68:this.$=[h[g-3],h[g-1],{type:"addMessage",from:h[g-3].actor,to:h[g-1].actor,signalType:h[g-2],msg:h[g]}];break;case 69:this.$={type:"addParticipant",actor:h[g-1],config:h[g]};break;case 70:this.$=h[g-1].trim();break;case 71:this.$={type:"addParticipant",actor:h[g]};break;case 72:this.$=f.LINETYPE.SOLID_OPEN;break;case 73:this.$=f.LINETYPE.DOTTED_OPEN;break;case 74:this.$=f.LINETYPE.SOLID;break;case 75:this.$=f.LINETYPE.BIDIRECTIONAL_SOLID;break;case 76:this.$=f.LINETYPE.DOTTED;break;case 77:this.$=f.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 78:this.$=f.LINETYPE.SOLID_CROSS;break;case 79:this.$=f.LINETYPE.DOTTED_CROSS;break;case 80:this.$=f.LINETYPE.SOLID_POINT;break;case 81:this.$=f.LINETYPE.DOTTED_POINT;break;case 82:this.$=f.parseMessage(h[g].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:o,6:a},{1:[3]},{3:5,4:t,5:o,6:a},{3:6,4:t,5:o,6:a},e([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],s,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:i,5:c,8:8,9:10,12:12,13:p,14:n,17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},e(T,[2,5]),{9:47,12:12,13:p,14:n,17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},e(T,[2,7]),e(T,[2,8]),e(T,[2,14]),{12:48,50:z,52:H,53:W},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,71:D},{22:55,71:D},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},e(T,[2,29]),e(T,[2,30]),{32:[1,61]},{34:[1,62]},e(T,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,54:72,71:[1,73]},{22:74,71:D},{22:75,71:D},{68:76,76:[1,77],77:[1,78],78:[1,79],79:[1,80],80:[1,81],81:[1,82],82:[1,83],83:[1,84],84:[1,85],85:[1,86]},{56:87,58:[1,88],66:[1,89],67:[1,90]},{22:91,71:D},{22:92,71:D},{22:93,71:D},{22:94,71:D},e([5,51,65,76,77,78,79,80,81,82,83,84,85,86],k),e(T,[2,6]),e(T,[2,15]),e(K,[2,9],{10:95}),e(T,[2,17]),{5:[1,97],19:[1,96]},{5:[1,98]},e(T,[2,21]),{5:[1,99]},{5:[1,100]},e(T,[2,24]),e(T,[2,25]),e(T,[2,26]),e(T,[2,27]),e(T,[2,28]),e(T,[2,31]),e(T,[2,32]),e(Q,s,{7:101}),e(Q,s,{7:102}),e(Q,s,{7:103}),e(M,s,{40:104,7:105}),e(Rt,s,{42:106,7:107}),e(Rt,s,{7:107,42:108}),e(Xt,s,{45:109,7:110}),e(Q,s,{7:111}),{5:[1,113],51:[1,112]},{5:[1,114]},e([5,51],k,{72:115,73:[1,116]}),{5:[1,118],51:[1,117]},{5:[1,119]},{22:122,69:[1,120],70:[1,121],71:D},e(nt,[2,72]),e(nt,[2,73]),e(nt,[2,74]),e(nt,[2,75]),e(nt,[2,76]),e(nt,[2,77]),e(nt,[2,78]),e(nt,[2,79]),e(nt,[2,80]),e(nt,[2,81]),{22:123,71:D},{22:125,59:124,71:D},{71:[2,64]},{71:[2,65]},{57:126,86:lt},{57:128,86:lt},{57:129,86:lt},{57:130,86:lt},{4:[1,133],5:[1,135],11:132,12:134,16:[1,131],50:z,52:H,53:W},{5:[1,136]},e(T,[2,19]),e(T,[2,20]),e(T,[2,22]),e(T,[2,23]),{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[1,137],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[1,138],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[1,139],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{16:[1,140]},{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[2,46],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,49:[1,141],50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{16:[1,142]},{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[2,44],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,48:[1,143],50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{16:[1,144]},{16:[1,145]},{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[2,42],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,47:[1,146],50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[1,147],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{15:[1,148]},e(T,[2,49]),e(T,[2,53]),{5:[2,69]},{74:[1,149]},{15:[1,150]},e(T,[2,51]),e(T,[2,52]),{22:151,71:D},{22:152,71:D},{57:153,86:lt},{57:154,86:lt},{57:155,86:lt},{65:[1,156],86:[2,63]},{5:[2,56]},{5:[2,82]},{5:[2,57]},{5:[2,58]},{5:[2,59]},e(T,[2,16]),e(K,[2,10]),{12:157,50:z,52:H,53:W},e(K,[2,12]),e(K,[2,13]),e(T,[2,18]),e(T,[2,34]),e(T,[2,35]),e(T,[2,36]),e(T,[2,37]),{15:[1,158]},e(T,[2,38]),{15:[1,159]},e(T,[2,39]),e(T,[2,40]),{15:[1,160]},e(T,[2,41]),{5:[1,161]},{75:[1,162]},{5:[1,163]},{57:164,86:lt},{57:165,86:lt},{5:[2,68]},{5:[2,54]},{5:[2,55]},{22:166,71:D},e(K,[2,11]),e(M,s,{7:105,40:167}),e(Rt,s,{7:107,42:168}),e(Xt,s,{7:110,45:169}),e(T,[2,48]),{5:[2,70]},e(T,[2,50]),{5:[2,66]},{5:[2,67]},{86:[2,62]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],89:[2,64],90:[2,65],115:[2,69],126:[2,56],127:[2,82],128:[2,57],129:[2,58],130:[2,59],153:[2,68],154:[2,54],155:[2,55],162:[2,70],164:[2,66],165:[2,67],166:[2,62],167:[2,47],168:[2,45],169:[2,43]},parseError:x(function(I,A){if(A.recoverable)this.trace(I);else{var _=Error(I);throw _.hash=A,_}},"parseError"),parse:x(function(I){var A=this,_=[0],f=[],C=[null],h=[],It=this.table,g="",_t=0,Jt=0,Zt=0,be=2,Qt=1,Te=h.slice.call(arguments,1),V=Object.create(this.lexer),xt={yy:{}};for(var Bt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Bt)&&(xt.yy[Bt]=this.yy[Bt]);V.setInput(I,xt.yy),xt.yy.lexer=V,xt.yy.parser=this,V.yylloc===void 0&&(V.yylloc={});var Yt=V.yylloc;h.push(Yt);var fe=V.options&&V.options.ranges;typeof xt.yy.parseError=="function"?this.parseError=xt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ee(it){_.length-=2*it,C.length-=it,h.length-=it}x(Ee,"popStack");function te(){var it=f.pop()||V.lex()||Qt;return typeof it!="number"&&(it instanceof Array&&(f=it,it=f.pop()),it=A.symbols_[it]||it),it}x(te,"lex");for(var tt,Vt,yt,st,Ft,Tt={},At,dt,ee,vt;;){if(yt=_[_.length-1],this.defaultActions[yt]?st=this.defaultActions[yt]:(tt??(tt=te()),st=It[yt]&&It[yt][tt]),st===void 0||!st.length||!st[0]){var ae="";for(At in vt=[],It[yt])this.terminals_[At]&&At>be&&vt.push("'"+this.terminals_[At]+"'");ae=V.showPosition?"Parse error on line "+(_t+1)+`:
1
+ var wt;import"./purify.es-DfJp_of2.js";import{u as Wt}from"./src-CvyFXpBy.js";import{g as F,p as re}from"./chunk-S3R3BYOJ-BPuj-dI4.js";import{n as x,r as G}from"./src-BRLtyMKi.js";import{B as se,C as we,E as Ie,H as Le,I as Nt,N as ie,O as q,U as ke,_ as Pe,a as _e,b as et,c as Ae,i as Lt,r as ve,s as L,v as Ne,y as qt,z as Me}from"./chunk-ABZYJK2D-B-yriO93.js";import{n as Oe,t as Se}from"./chunk-MI3HLSF2-D9JXkg6-.js";import{t as De}from"./dist-BjCIGEdQ.js";import{i as $e,n as zt,o as ct,r as Ht,s as Ut,t as Re}from"./chunk-TZMSLE5B-BWxINAhr.js";import{t as Ce}from"./chunk-QZHKN3VN-DNJQmmTY.js";var oe=De(),jt=(function(){var e=x(function(I,A,_,f){for(_||(_={}),f=I.length;f--;_[I[f]]=A);return _},"o"),t=[1,2],o=[1,3],a=[1,4],s=[2,4],i=[1,9],c=[1,11],p=[1,13],n=[1,14],r=[1,16],d=[1,17],m=[1,18],u=[1,24],y=[1,25],E=[1,26],w=[1,27],P=[1,28],O=[1,29],N=[1,30],S=[1,31],$=[1,32],Y=[1,33],U=[1,34],X=[1,35],at=[1,36],z=[1,37],H=[1,38],W=[1,39],R=[1,41],J=[1,42],j=[1,43],Z=[1,44],rt=[1,45],D=[1,46],T=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,55,60,61,62,63,71],k=[2,71],K=[4,5,16,50,52,53],Q=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],M=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,55,60,61,62,63,71],Rt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,55,60,61,62,63,71],Xt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,55,60,61,62,63,71],nt=[69,70,71],lt=[1,127],Ct={trace:x(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,actor_with_config:54,note:55,placement:56,text2:57,over:58,actor_pair:59,links:60,link:61,properties:62,details:63,spaceList:64,",":65,left_of:66,right_of:67,signaltype:68,"+":69,"-":70,ACTOR:71,config_object:72,CONFIG_START:73,CONFIG_CONTENT:74,CONFIG_END:75,SOLID_OPEN_ARROW:76,DOTTED_OPEN_ARROW:77,SOLID_ARROW:78,BIDIRECTIONAL_SOLID_ARROW:79,DOTTED_ARROW:80,BIDIRECTIONAL_DOTTED_ARROW:81,SOLID_CROSS:82,DOTTED_CROSS:83,SOLID_POINT:84,DOTTED_POINT:85,TXT:86,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",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",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",55:"note",58:"over",60:"links",61:"link",62:"properties",63:"details",65:",",66:"left_of",67:"right_of",69:"+",70:"-",71:"ACTOR",73:"CONFIG_START",74:"CONFIG_CONTENT",75:"CONFIG_END",76:"SOLID_OPEN_ARROW",77:"DOTTED_OPEN_ARROW",78:"SOLID_ARROW",79:"BIDIRECTIONAL_SOLID_ARROW",80:"DOTTED_ARROW",81:"BIDIRECTIONAL_DOTTED_ARROW",82:"SOLID_CROSS",83:"DOTTED_CROSS",84:"SOLID_POINT",85:"DOTTED_POINT",86:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,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],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[64,2],[64,1],[59,3],[59,1],[56,1],[56,1],[17,5],[17,5],[17,4],[54,2],[72,3],[22,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[57,1]],performAction:x(function(I,A,_,f,C,h,It){var g=h.length-1;switch(C){case 3:return f.apply(h[g]),h[g];case 4:case 9:this.$=[];break;case 5:case 10:h[g-1].push(h[g]),this.$=h[g-1];break;case 6:case 7:case 11:case 12:this.$=h[g];break;case 8:case 13:this.$=[];break;case 15:h[g].type="createParticipant",this.$=h[g];break;case 16:h[g-1].unshift({type:"boxStart",boxData:f.parseBoxData(h[g-2])}),h[g-1].push({type:"boxEnd",boxText:h[g-2]}),this.$=h[g-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(h[g-2]),sequenceIndexStep:Number(h[g-1]),sequenceVisible:!0,signalType:f.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(h[g-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:f.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:f.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:f.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:f.LINETYPE.ACTIVE_START,actor:h[g-1].actor};break;case 23:this.$={type:"activeEnd",signalType:f.LINETYPE.ACTIVE_END,actor:h[g-1].actor};break;case 29:f.setDiagramTitle(h[g].substring(6)),this.$=h[g].substring(6);break;case 30:f.setDiagramTitle(h[g].substring(7)),this.$=h[g].substring(7);break;case 31:this.$=h[g].trim(),f.setAccTitle(this.$);break;case 32:case 33:this.$=h[g].trim(),f.setAccDescription(this.$);break;case 34:h[g-1].unshift({type:"loopStart",loopText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.LOOP_START}),h[g-1].push({type:"loopEnd",loopText:h[g-2],signalType:f.LINETYPE.LOOP_END}),this.$=h[g-1];break;case 35:h[g-1].unshift({type:"rectStart",color:f.parseMessage(h[g-2]),signalType:f.LINETYPE.RECT_START}),h[g-1].push({type:"rectEnd",color:f.parseMessage(h[g-2]),signalType:f.LINETYPE.RECT_END}),this.$=h[g-1];break;case 36:h[g-1].unshift({type:"optStart",optText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.OPT_START}),h[g-1].push({type:"optEnd",optText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.OPT_END}),this.$=h[g-1];break;case 37:h[g-1].unshift({type:"altStart",altText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.ALT_START}),h[g-1].push({type:"altEnd",signalType:f.LINETYPE.ALT_END}),this.$=h[g-1];break;case 38:h[g-1].unshift({type:"parStart",parText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.PAR_START}),h[g-1].push({type:"parEnd",signalType:f.LINETYPE.PAR_END}),this.$=h[g-1];break;case 39:h[g-1].unshift({type:"parStart",parText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.PAR_OVER_START}),h[g-1].push({type:"parEnd",signalType:f.LINETYPE.PAR_END}),this.$=h[g-1];break;case 40:h[g-1].unshift({type:"criticalStart",criticalText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.CRITICAL_START}),h[g-1].push({type:"criticalEnd",signalType:f.LINETYPE.CRITICAL_END}),this.$=h[g-1];break;case 41:h[g-1].unshift({type:"breakStart",breakText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.BREAK_START}),h[g-1].push({type:"breakEnd",optText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.BREAK_END}),this.$=h[g-1];break;case 43:this.$=h[g-3].concat([{type:"option",optionText:f.parseMessage(h[g-1]),signalType:f.LINETYPE.CRITICAL_OPTION},h[g]]);break;case 45:this.$=h[g-3].concat([{type:"and",parText:f.parseMessage(h[g-1]),signalType:f.LINETYPE.PAR_AND},h[g]]);break;case 47:this.$=h[g-3].concat([{type:"else",altText:f.parseMessage(h[g-1]),signalType:f.LINETYPE.ALT_ELSE},h[g]]);break;case 48:h[g-3].draw="participant",h[g-3].type="addParticipant",h[g-3].description=f.parseMessage(h[g-1]),this.$=h[g-3];break;case 49:h[g-1].draw="participant",h[g-1].type="addParticipant",this.$=h[g-1];break;case 50:h[g-3].draw="actor",h[g-3].type="addParticipant",h[g-3].description=f.parseMessage(h[g-1]),this.$=h[g-3];break;case 51:h[g-1].draw="actor",h[g-1].type="addParticipant",this.$=h[g-1];break;case 52:h[g-1].type="destroyParticipant",this.$=h[g-1];break;case 53:h[g-1].draw="participant",h[g-1].type="addParticipant",this.$=h[g-1];break;case 54:this.$=[h[g-1],{type:"addNote",placement:h[g-2],actor:h[g-1].actor,text:h[g]}];break;case 55:h[g-2]=[].concat(h[g-1],h[g-1]).slice(0,2),h[g-2][0]=h[g-2][0].actor,h[g-2][1]=h[g-2][1].actor,this.$=[h[g-1],{type:"addNote",placement:f.PLACEMENT.OVER,actor:h[g-2].slice(0,2),text:h[g]}];break;case 56:this.$=[h[g-1],{type:"addLinks",actor:h[g-1].actor,text:h[g]}];break;case 57:this.$=[h[g-1],{type:"addALink",actor:h[g-1].actor,text:h[g]}];break;case 58:this.$=[h[g-1],{type:"addProperties",actor:h[g-1].actor,text:h[g]}];break;case 59:this.$=[h[g-1],{type:"addDetails",actor:h[g-1].actor,text:h[g]}];break;case 62:this.$=[h[g-2],h[g]];break;case 63:this.$=h[g];break;case 64:this.$=f.PLACEMENT.LEFTOF;break;case 65:this.$=f.PLACEMENT.RIGHTOF;break;case 66:this.$=[h[g-4],h[g-1],{type:"addMessage",from:h[g-4].actor,to:h[g-1].actor,signalType:h[g-3],msg:h[g],activate:!0},{type:"activeStart",signalType:f.LINETYPE.ACTIVE_START,actor:h[g-1].actor}];break;case 67:this.$=[h[g-4],h[g-1],{type:"addMessage",from:h[g-4].actor,to:h[g-1].actor,signalType:h[g-3],msg:h[g]},{type:"activeEnd",signalType:f.LINETYPE.ACTIVE_END,actor:h[g-4].actor}];break;case 68:this.$=[h[g-3],h[g-1],{type:"addMessage",from:h[g-3].actor,to:h[g-1].actor,signalType:h[g-2],msg:h[g]}];break;case 69:this.$={type:"addParticipant",actor:h[g-1],config:h[g]};break;case 70:this.$=h[g-1].trim();break;case 71:this.$={type:"addParticipant",actor:h[g]};break;case 72:this.$=f.LINETYPE.SOLID_OPEN;break;case 73:this.$=f.LINETYPE.DOTTED_OPEN;break;case 74:this.$=f.LINETYPE.SOLID;break;case 75:this.$=f.LINETYPE.BIDIRECTIONAL_SOLID;break;case 76:this.$=f.LINETYPE.DOTTED;break;case 77:this.$=f.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 78:this.$=f.LINETYPE.SOLID_CROSS;break;case 79:this.$=f.LINETYPE.DOTTED_CROSS;break;case 80:this.$=f.LINETYPE.SOLID_POINT;break;case 81:this.$=f.LINETYPE.DOTTED_POINT;break;case 82:this.$=f.parseMessage(h[g].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:o,6:a},{1:[3]},{3:5,4:t,5:o,6:a},{3:6,4:t,5:o,6:a},e([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],s,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:i,5:c,8:8,9:10,12:12,13:p,14:n,17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},e(T,[2,5]),{9:47,12:12,13:p,14:n,17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},e(T,[2,7]),e(T,[2,8]),e(T,[2,14]),{12:48,50:z,52:H,53:W},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,71:D},{22:55,71:D},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},e(T,[2,29]),e(T,[2,30]),{32:[1,61]},{34:[1,62]},e(T,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,54:72,71:[1,73]},{22:74,71:D},{22:75,71:D},{68:76,76:[1,77],77:[1,78],78:[1,79],79:[1,80],80:[1,81],81:[1,82],82:[1,83],83:[1,84],84:[1,85],85:[1,86]},{56:87,58:[1,88],66:[1,89],67:[1,90]},{22:91,71:D},{22:92,71:D},{22:93,71:D},{22:94,71:D},e([5,51,65,76,77,78,79,80,81,82,83,84,85,86],k),e(T,[2,6]),e(T,[2,15]),e(K,[2,9],{10:95}),e(T,[2,17]),{5:[1,97],19:[1,96]},{5:[1,98]},e(T,[2,21]),{5:[1,99]},{5:[1,100]},e(T,[2,24]),e(T,[2,25]),e(T,[2,26]),e(T,[2,27]),e(T,[2,28]),e(T,[2,31]),e(T,[2,32]),e(Q,s,{7:101}),e(Q,s,{7:102}),e(Q,s,{7:103}),e(M,s,{40:104,7:105}),e(Rt,s,{42:106,7:107}),e(Rt,s,{7:107,42:108}),e(Xt,s,{45:109,7:110}),e(Q,s,{7:111}),{5:[1,113],51:[1,112]},{5:[1,114]},e([5,51],k,{72:115,73:[1,116]}),{5:[1,118],51:[1,117]},{5:[1,119]},{22:122,69:[1,120],70:[1,121],71:D},e(nt,[2,72]),e(nt,[2,73]),e(nt,[2,74]),e(nt,[2,75]),e(nt,[2,76]),e(nt,[2,77]),e(nt,[2,78]),e(nt,[2,79]),e(nt,[2,80]),e(nt,[2,81]),{22:123,71:D},{22:125,59:124,71:D},{71:[2,64]},{71:[2,65]},{57:126,86:lt},{57:128,86:lt},{57:129,86:lt},{57:130,86:lt},{4:[1,133],5:[1,135],11:132,12:134,16:[1,131],50:z,52:H,53:W},{5:[1,136]},e(T,[2,19]),e(T,[2,20]),e(T,[2,22]),e(T,[2,23]),{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[1,137],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[1,138],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[1,139],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{16:[1,140]},{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[2,46],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,49:[1,141],50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{16:[1,142]},{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[2,44],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,48:[1,143],50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{16:[1,144]},{16:[1,145]},{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[2,42],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,47:[1,146],50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[1,147],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{15:[1,148]},e(T,[2,49]),e(T,[2,53]),{5:[2,69]},{74:[1,149]},{15:[1,150]},e(T,[2,51]),e(T,[2,52]),{22:151,71:D},{22:152,71:D},{57:153,86:lt},{57:154,86:lt},{57:155,86:lt},{65:[1,156],86:[2,63]},{5:[2,56]},{5:[2,82]},{5:[2,57]},{5:[2,58]},{5:[2,59]},e(T,[2,16]),e(K,[2,10]),{12:157,50:z,52:H,53:W},e(K,[2,12]),e(K,[2,13]),e(T,[2,18]),e(T,[2,34]),e(T,[2,35]),e(T,[2,36]),e(T,[2,37]),{15:[1,158]},e(T,[2,38]),{15:[1,159]},e(T,[2,39]),e(T,[2,40]),{15:[1,160]},e(T,[2,41]),{5:[1,161]},{75:[1,162]},{5:[1,163]},{57:164,86:lt},{57:165,86:lt},{5:[2,68]},{5:[2,54]},{5:[2,55]},{22:166,71:D},e(K,[2,11]),e(M,s,{7:105,40:167}),e(Rt,s,{7:107,42:168}),e(Xt,s,{7:110,45:169}),e(T,[2,48]),{5:[2,70]},e(T,[2,50]),{5:[2,66]},{5:[2,67]},{86:[2,62]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],89:[2,64],90:[2,65],115:[2,69],126:[2,56],127:[2,82],128:[2,57],129:[2,58],130:[2,59],153:[2,68],154:[2,54],155:[2,55],162:[2,70],164:[2,66],165:[2,67],166:[2,62],167:[2,47],168:[2,45],169:[2,43]},parseError:x(function(I,A){if(A.recoverable)this.trace(I);else{var _=Error(I);throw _.hash=A,_}},"parseError"),parse:x(function(I){var A=this,_=[0],f=[],C=[null],h=[],It=this.table,g="",_t=0,Jt=0,Zt=0,be=2,Qt=1,Te=h.slice.call(arguments,1),V=Object.create(this.lexer),xt={yy:{}};for(var Bt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Bt)&&(xt.yy[Bt]=this.yy[Bt]);V.setInput(I,xt.yy),xt.yy.lexer=V,xt.yy.parser=this,V.yylloc===void 0&&(V.yylloc={});var Yt=V.yylloc;h.push(Yt);var fe=V.options&&V.options.ranges;typeof xt.yy.parseError=="function"?this.parseError=xt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ee(it){_.length-=2*it,C.length-=it,h.length-=it}x(Ee,"popStack");function te(){var it=f.pop()||V.lex()||Qt;return typeof it!="number"&&(it instanceof Array&&(f=it,it=f.pop()),it=A.symbols_[it]||it),it}x(te,"lex");for(var tt,Vt,yt,st,Ft,Tt={},At,dt,ee,vt;;){if(yt=_[_.length-1],this.defaultActions[yt]?st=this.defaultActions[yt]:(tt??(tt=te()),st=It[yt]&&It[yt][tt]),st===void 0||!st.length||!st[0]){var ae="";for(At in vt=[],It[yt])this.terminals_[At]&&At>be&&vt.push("'"+this.terminals_[At]+"'");ae=V.showPosition?"Parse error on line "+(_t+1)+`:
2
2
  `+V.showPosition()+`
3
3
  Expecting `+vt.join(", ")+", got '"+(this.terminals_[tt]||tt)+"'":"Parse error on line "+(_t+1)+": Unexpected "+(tt==Qt?"end of input":"'"+(this.terminals_[tt]||tt)+"'"),this.parseError(ae,{text:V.match,token:this.terminals_[tt]||tt,line:V.yylineno,loc:Yt,expected:vt})}if(st[0]instanceof Array&&st.length>1)throw Error("Parse Error: multiple actions possible at state: "+yt+", token: "+tt);switch(st[0]){case 1:_.push(tt),C.push(V.yytext),h.push(V.yylloc),_.push(st[1]),tt=null,Vt?(tt=Vt,Vt=null):(Jt=V.yyleng,g=V.yytext,_t=V.yylineno,Yt=V.yylloc,Zt>0&&Zt--);break;case 2:if(dt=this.productions_[st[1]][1],Tt.$=C[C.length-dt],Tt._$={first_line:h[h.length-(dt||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(dt||1)].first_column,last_column:h[h.length-1].last_column},fe&&(Tt._$.range=[h[h.length-(dt||1)].range[0],h[h.length-1].range[1]]),Ft=this.performAction.apply(Tt,[g,Jt,_t,xt.yy,st[1],C,h].concat(Te)),Ft!==void 0)return Ft;dt&&(_=_.slice(0,-1*dt*2),C=C.slice(0,-1*dt),h=h.slice(0,-1*dt)),_.push(this.productions_[st[1]][0]),C.push(Tt.$),h.push(Tt._$),ee=It[_[_.length-2]][_[_.length-1]],_.push(ee);break;case 3:return!0}}return!0},"parse")};Ct.lexer=(function(){return{EOF:1,parseError:x(function(I,A){if(this.yy.parser)this.yy.parser.parseError(I,A);else throw Error(I)},"parseError"),setInput:x(function(I,A){return this.yy=A||this.yy||{},this._input=I,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:x(function(){var I=this._input[0];return this.yytext+=I,this.yyleng++,this.offset++,this.match+=I,this.matched+=I,I.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),I},"input"),unput:x(function(I){var A=I.length,_=I.split(/(?:\r\n?|\n)/g);this._input=I+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-A),this.offset-=A;var f=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),_.length-1&&(this.yylineno-=_.length-1);var C=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:_?(_.length===f.length?this.yylloc.first_column:0)+f[f.length-_.length].length-_[0].length:this.yylloc.first_column-A},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-A]),this.yyleng=this.yytext.length,this},"unput"),more:x(function(){return this._more=!0,this},"more"),reject:x(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:x(function(I){this.unput(this.match.slice(I))},"less"),pastInput:x(function(){var I=this.matched.substr(0,this.matched.length-this.match.length);return(I.length>20?"...":"")+I.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:x(function(){var I=this.match;return I.length<20&&(I+=this._input.substr(0,20-I.length)),(I.substr(0,20)+(I.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:x(function(){var I=this.pastInput(),A=Array(I.length+1).join("-");return I+this.upcomingInput()+`
@@ -0,0 +1 @@
1
+ import{s as ge}from"./chunk-LvLJmgfZ.js";import{d as je,l as ye,p as ve,u as W}from"./useEvent-D91BmmQi.js";import{t as Xe}from"./react-Bj1aDYRI.js";import{Bn as Ye,D as Ze,Fr as oe,Gr as ea,Gt as aa,Hr as Ne,Ir as we,Jr as Se,Kr as ta,Kt as sa,Li as _e,Ln as Ce,Lr as Ie,M as la,Mr as na,P as ra,Qr as ke,Rn as oa,Rr as ca,Ur as ce,Vr as me,Yr as ma,Zr as ia,_r as da,a as ha,br as ua,cr as xa,f as pa,jt as fa,qr as ba,qt as ga,sr as ja,ur as ya,xr as ie,yn as va,zr as Na,zt as wa}from"./cells-B7YKR2ed.js";import"./react-dom-CSu739Rf.js";import{t as Pe}from"./compiler-runtime-B3qBwwSJ.js";import{c as Sa}from"./utils-Dev6I_Kv.js";import{t as _a}from"./ErrorBoundary-Bo313Z9X.js";import{t as X}from"./cn-X2M2usMq.js";import{t as Ca}from"./jsx-runtime-PbYoItBR.js";import"./fullscreen-BXI8V5i6.js";import{r as Ia}from"./config-DMNo9K-z.js";import"./popover-DMNO6Poc.js";import{$ as Te,Q as de,et as ka,f as Fe,g as $e,h as he,m as ue,nt as Pa,p as le,rt as Ta,tt as Fa,u as $a}from"./JsonOutput-BkFXuRpB.js";import"./download-DiInTgPW.js";import{r as Re}from"./radio-group-CGYJUACh.js";import{t as xe}from"./tooltip-CgQpRVyN.js";import{r as Ra,t as ne}from"./button-BF7GSjhW.js";import"./dist-Dez1I5M9.js";import{u as Y}from"./arrays-DWxvyYxP.js";import"./cjs-DXo9vDEJ.js";import"./main-DmhaVp6Y.js";import"./useNonce-0SWz6w4W.js";import{i as Da}from"./strings-DvZlHYnD.js";import{r as Va}from"./requests-KshNNAOp.js";import{t as qa}from"./createLucideIcon-BTp1tQDO.js";import{t as La}from"./x-9vLEgLY6.js";import{a as Ma,r as Ba}from"./tree-actions-CRyQHv6h.js";import"./markdown-renderer-CKrylIiR.js";import{t as De}from"./add-connection-dialog-CyoxEDp-.js";import{t as Ve}from"./plus-ZXRHY1up.js";import{a as Ea}from"./input-DB2LiTiQ.js";import{n as Oa,o as Ua}from"./column-preview-DNzfBI3q.js";import{t as za}from"./workflow-f8flhcJ1.js";import"./dist-DblYTes5.js";import"./dist-D-2yWcX9.js";import"./dist-CNKFZCiw.js";import"./dist-ZjSH4Z6x.js";import"./dist-BtrqKtvn.js";import"./session-CsT5Gg9j.js";import"./purify.es-DfJp_of2.js";import"./dates-D8uxHHPL.js";import{t as Aa}from"./copy-icon-EHMT-qlr.js";import{t as Ga}from"./context-C2Ie4tn_.js";import"./utils-DPvpQ891.js";import"./vega-loader.browser-CZV6_g2i.js";import"./defaultLocale-OkOxlkkM.js";import"./defaultLocale-DK1MWd7f.js";import{t as qe}from"./cell-link-DO4acQD0.js";import"./chunk-5FQGJX7Z-DcW-_LxK.js";import{r as Ha}from"./html-to-image-C_aIFrkD.js";import{o as Ka}from"./focus-M6_Axyyu.js";import{n as pe}from"./useAsyncData-DAQcLiyE.js";import{a as Ja,i as Qa,n as Wa,o as Le,r as Xa,t as Ya}from"./table-CnW850Wt.js";import"./react-resizable-panels.browser.esm-Ce2ksurd.js";import{a as Za,f as et,o as re,t as at}from"./command-DRHbYHUP.js";import{n as tt}from"./icons-avFV3lBF.js";import{t as st}from"./useDeepCompareMemoize-CWcgQCbT.js";import{t as lt}from"./empty-state-QmmE2oN4.js";import{n as nt,t as rt}from"./common-DDyT57dI.js";import{a as ot,i as ct,n as Me,r as Be,t as Ee}from"./components-CCxUdXt3.js";var mt=qa("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"}]]),A=Pe(),F=ge(Xe(),1),s=ge(Ca(),1),fe=1;function Oe(a){return 1.75+a*fe}function it(a){return 3+a*fe}function Ue(a){return 3.25+a*fe}var z={engineEmpty:.75,engine:.75,database:1,tableLoading:2.75,tableSchemaless:2,columnLocal:1.25,columnPreview:2.5};function E(a){return{paddingLeft:`${a}rem`}}var dt=ve(a=>{let e=a(Ie),t=a(Ye),l=a(ha);return Y(e,n=>{if(!n.variable_name)return-1;let i=Object.values(t).find(d=>d.name===n.variable_name);if(!i)return 0;let c=l.inOrderIds.indexOf(i.declaredBy[0]);return c===-1?0:c})});const ht=_e("marimo:datasources:hideEmpty",!1,Ce,{getOnInit:!0});function ze(a){let e=!1,t=[];for(let l of a){if(!ce(l)||!me(l)){t.push(l);continue}let n=l.child_schemas??[],i=ze(n);if(l.tables.length===0&&i.length===0){e=!0;continue}if(i===n){t.push(l);continue}e=!0,t.push({...l,child_schemas:i})}return e?t:a}function ut(a){let e=!1,t=[];for(let l of a){if(Ne(l)&&l.schemas.length===0){e=!0;continue}if(l.schemas.length===0){t.push(l);continue}let n=ze(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 Ae=ve(a=>{let e=new Map(a(na));for(let t of ke){let l=e.get(t);l&&(l.databases.length===0&&e.delete(t),l.databases.length===1&&l.databases[0].name==="memory"&&l.databases[0].schemas.length===0&&e.delete(t))}return Y([...e.values()],t=>ke.has(t.name)?1:0)}),xt=()=>{let a=(0,A.c)(40),[e,t]=F.useState(""),[l,n]=ye(ht),i=je(we),c=W(dt),d=W(Ae),r;e:{if(!l){r=d;break e}let f,v;a[0]===d?(f=a[1],v=a[2]):(f=!1,v=d.map(C=>{let k=ut(C.databases);return k===C.databases?C:(f=!0,{...C,databases:k})}),a[0]=d,a[1]=f,a[2]=v),r=f?v:d}let x=r;if(c.length===0&&x.length===0){let f;return a[3]===Symbol.for("react.memo_cache_sentinel")?(f=(0,s.jsx)(lt,{title:"No tables found",description:"Any datasets/dataframes in the global scope will be shown here.",action:(0,s.jsx)(De,{children:(0,s.jsxs)(ne,{variant:"outline",size:"sm",children:["Add database or catalog",(0,s.jsx)(Ve,{className:"h-4 w-4 ml-2"})]})}),icon:(0,s.jsx)(ie,{})}),a[3]=f):f=a[3],f}let h=!!e.trim(),m;a[4]===i?m=a[5]:(m=f=>{i(f.length>0),t(f)},a[4]=i,a[5]=m);let o;a[6]!==e||a[7]!==m?(o=(0,s.jsx)(Za,{placeholder:"Search tables...",className:"h-6 m-1",value:e,onValueChange:m,rootClassName:"flex-1 border-r border-b-0"}),a[6]=e,a[7]=m,a[8]=o):o=a[8];let p;a[9]===h?p=a[10]:(p=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)(La,{className:"h-4 w-4"})}),a[9]=h,a[10]=p);let S=!l,b;a[11]!==l||a[12]!==n?(b=()=>n(!l),a[11]=l,a[12]=n,a[13]=b):b=a[13];let N;a[14]!==S||a[15]!==b?(N=(0,s.jsx)(Ma,{"data-testid":"datasources-hide-empty-button",isVisible:S,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]=S,a[15]=b,a[16]=N):N=a[16];let y;a[17]===Symbol.for("react.memo_cache_sentinel")?(y=(0,s.jsx)(De,{children:(0,s.jsx)(ne,{variant:"ghost",size:"sm",className:"px-2 rounded-none focus-visible:outline-hidden",children:(0,s.jsx)(Ve,{className:"h-4 w-4"})})}),a[17]=y):y=a[17];let j;a[18]!==o||a[19]!==p||a[20]!==N?(j=(0,s.jsxs)("div",{className:"flex items-center w-full border-b",children:[o,p,N,y]}),a[18]=o,a[19]=p,a[20]=N,a[21]=j):j=a[21];let g;if(a[22]!==x||a[23]!==e){let f;a[25]===e?f=a[26]:(f=v=>(0,s.jsx)(pt,{connection:v,hasChildren:v.databases.length>0,children:v.databases.map(C=>(0,s.jsx)(ft,{connection:v,database:C,searchValue:e},C.name))},v.name),a[25]=e,a[26]=f),g=x.map(f),a[22]=x,a[23]=e,a[24]=g}else g=a[24];let w;a[27]!==x.length||a[28]!==c.length?(w=x.length>0&&c.length>0&&(0,s.jsxs)(Fe,{className:"pr-2",style:E(z.engine),children:[(0,s.jsx)(tt,{className:"h-4 w-4 text-muted-foreground"}),(0,s.jsx)("span",{className:"text-xs",children:"Python"})]}),a[27]=x.length,a[28]=c.length,a[29]=w):w=a[29];let u;a[30]!==e||a[31]!==c?(u=c.length>0&&(0,s.jsx)(be,{tables:c,searchValue:e}),a[30]=e,a[31]=c,a[32]=u):u=a[32];let _;a[33]!==w||a[34]!==u||a[35]!==g?(_=(0,s.jsxs)(et,{className:"flex flex-col",children:[g,w,u]}),a[33]=w,a[34]=u,a[35]=g,a[36]=_):_=a[36];let I;return a[37]!==_||a[38]!==j?(I=(0,s.jsxs)(at,{className:"border-b bg-background rounded-none h-full pb-10 overflow-auto outline-hidden",shouldFilter:!1,children:[j,_]}),a[37]=_,a[38]=j,a[39]=I):I=a[39],I};var pt=a=>{let e=(0,A.c)(26),{connection:t,children:l,hasChildren:n}=a,i=t.name===ia,c=i?"In-Memory":t.name,{previewDataSourceConnection:d}=Va(),r;e[0]!==t.name||e[1]!==d?(r=async()=>{await d({engine:t.name})},e[0]=t.name,e[1]=d,e[2]=r):r=e[2];let x=r,h;e[3]===Symbol.for("react.memo_cache_sentinel")?(h=E(z.engine),e[3]=h):h=e[3];let m;e[4]===t.dialect?m=e[5]:(m=(0,s.jsx)(fa,{className:"h-4 w-4 text-muted-foreground",name:t.dialect}),e[4]=t.dialect,e[5]=m);let o;e[6]===t.dialect?o=e[7]:(o=ja(t.dialect),e[6]=t.dialect,e[7]=o);let p;e[8]===o?p=e[9]:(p=(0,s.jsx)("span",{className:"text-xs",children:o}),e[8]=o,e[9]=p);let S=c,b;e[10]===S?b=e[11]:(b=(0,s.jsxs)("span",{className:"text-xs text-muted-foreground",children:["(",(0,s.jsx)(ot,{variableName:S}),")"]}),e[10]=S,e[11]=b);let N;e[12]!==x||e[13]!==i?(N=!i&&(0,s.jsx)(Ba,{onClick:x,tooltip:"Refresh connection",className:"ml-auto h-4 p-0",iconClassName:"h-3.5 w-3.5"}),e[12]=x,e[13]=i,e[14]=N):N=e[14];let y;e[15]!==m||e[16]!==p||e[17]!==b||e[18]!==N?(y=(0,s.jsxs)(Fe,{className:"pr-2",style:h,children:[m,p,b,N]}),e[15]=m,e[16]=p,e[17]=b,e[18]=N,e[19]=y):y=e[19];let j;e[20]!==l||e[21]!==n?(j=n?l:(0,s.jsx)(le,{content:"No databases available",style:E(z.engineEmpty)}),e[20]=l,e[21]=n,e[22]=j):j=e[22];let g;return e[23]!==j||e[24]!==y?(g=(0,s.jsxs)(s.Fragment,{children:[y,j]}),e[23]=j,e[24]=y,e[25]=g):g=e[25],g},Ge=F.createContext(null);function He(){let a=F.useContext(Ge);if(a==null)throw Error("useDataSourceTree must be used within a DataSourceTreeContext.Provider");return a}function Ke(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 ft=a=>{let e=(0,A.c)(21),{connection:t,database:l,searchValue:n}=a,i;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?(i={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]=i):i=e[6];let c=i,d=t.name,r=l.schemas,x;e[7]===l?x=e[8]:(x=Ne(l),e[7]=l,e[8]=x);let h;e[9]===Symbol.for("react.memo_cache_sentinel")?(h=[],e[9]=h):h=e[9];let m;e[10]!==l.schemas||e[11]!==x?(m=(0,s.jsx)(Je,{schemas:r,schemasResolved:x,schemaPath:h,depth:0}),e[10]=l.schemas,e[11]=x,e[12]=m):m=e[12];let o;e[13]!==m||e[14]!==c?(o=(0,s.jsx)(Ge.Provider,{value:c,children:m}),e[13]=m,e[14]=c,e[15]=o):o=e[15];let p;return e[16]!==t.name||e[17]!==l||e[18]!==n||e[19]!==o?(p=(0,s.jsx)(bt,{engineName:d,database:l,searchValue:n,children:o}),e[16]=t.name,e[17]=l,e[18]=n,e[19]=o,e[20]=p):p=e[20],p},bt=a=>{let e=(0,A.c)(29),{searchValue:t,engineName:l,database:n,children:i}=a,c;e[0]!==n||e[1]!==t?(c=ba(n,t),e[0]=n,e[1]=t,e[2]=c):c=e[2];let d=c,[r,x]=F.useState(d),[h,m]=F.useState(!1),[o,p]=F.useState(t),[S,b]=F.useState(d);(o!==t||S!==d)&&(p(t),b(d),x(d));let N;e[3]===Symbol.for("react.memo_cache_sentinel")?(N=E(z.database),e[3]=N):N=e[3];let y;e[4]!==r||e[5]!==h?(y=()=>{x(!r),m(!h)},e[4]=r,e[5]=h,e[6]=y):y=e[6];let j=`${l}:${n.name}`,g;e[7]===r?g=e[8]:(g=(0,s.jsx)($e,{isExpanded:r}),e[7]=r,e[8]=g);let w=h&&r?"text-foreground":"text-muted-foreground",u;e[9]===w?u=e[10]:(u=X("h-4 w-4",w),e[9]=w,e[10]=u);let _;e[11]===u?_=e[12]:(_=(0,s.jsx)(ie,{className:u}),e[11]=u,e[12]=_);let I=h&&r&&"font-semibold",f;e[13]===I?f=e[14]:(f=X(I),e[13]=I,e[14]=f);let v;e[15]===n.name?v=e[16]:(v=n.name===""?(0,s.jsx)("i",{children:"Not connected"}):n.name,e[15]=n.name,e[16]=v);let C;e[17]!==f||e[18]!==v?(C=(0,s.jsx)("span",{className:f,children:v}),e[17]=f,e[18]=v,e[19]=C):C=e[19];let k;e[20]!==C||e[21]!==y||e[22]!==j||e[23]!==g||e[24]!==_?(k=(0,s.jsxs)(re,{className:"text-sm flex flex-row gap-1 items-center cursor-pointer rounded-none",style:N,onSelect:y,value:j,children:[g,_,C]}),e[20]=C,e[21]=y,e[22]=j,e[23]=g,e[24]=_,e[25]=k):k=e[25];let P=r&&i,T;return e[26]!==k||e[27]!==P?(T=(0,s.jsxs)(s.Fragment,{children:[k,P]}),e[26]=k,e[27]=P,e[28]=T):T=e[28],T},Je=a=>{let{schemas:e,schemasResolved:t,depth:l}=a,n=He(),{engineName:i,databaseName:c,searchValue:d}=n,{addSchemaList:r}=oe(),x=st(a.schemaPath),[h,m]=F.useState(!1),{isPending:o,error:p}=pe(async()=>{if(!t&&i){m(!0);try{r({schemas:(await aa.request({engine:i,database:c,schemaPath:x})).schemas??[],sqlSchemaContext:{engine:i,database:c,schemaPath:x}})}finally{m(!1)}}},[t,i,c,x]),S=E(Oe(l));return o||h?(0,s.jsx)(he,{message:"Loading schemas...",style:S}):p?(0,s.jsx)(ue,{error:p,style:S}):e.length===0?(0,s.jsx)(le,{content:"No schemas available",style:S}):(0,s.jsx)(s.Fragment,{children:e.map(b=>ea(b.name)?(0,s.jsx)(be,{tables:b.tables,tablesResolved:ce(b),searchValue:d,sqlTableContext:Ke(n,{schema:b.name,schemaPath:x})},b.name):(0,s.jsx)(gt,{schema:b,schemaPath:[...x,b.name],depth:l},b.name))})},gt=a=>{let e=(0,A.c)(39),{schema:t,schemaPath:l,depth:n}=a,i=He(),{databaseName:c,searchValue:d}=i,r;e[0]!==t||e[1]!==d?(r=ta(t,d),e[0]=t,e[1]=d,e[2]=r):r=e[2];let x=r,[h,m]=F.useState(x),[o,p]=F.useState(!1),[S,b]=F.useState(d),[N,y]=F.useState(x),j=`${c}:${l.join(".")}`,g;e[3]===t.child_schemas?g=e[4]:(g=t.child_schemas??[],e[3]=t.child_schemas,e[4]=g);let w=g;(S!==d||N!==x)&&(b(d),y(x),m(x));let u;e[5]===n?u=e[6]:(u=E(Oe(n)),e[5]=n,e[6]=u);let _;e[7]!==h||e[8]!==o?(_=()=>{m(!h),p(!o)},e[7]=h,e[8]=o,e[9]=_):_=e[9];let I;e[10]===h?I=e[11]:(I=(0,s.jsx)($e,{isExpanded:h}),e[10]=h,e[11]=I);let f=o&&h&&"text-foreground",v;e[12]===f?v=e[13]:(v=X("h-4 w-4 text-muted-foreground",f),e[12]=f,e[13]=v);let C;e[14]===v?C=e[15]:(C=(0,s.jsx)(da,{className:v}),e[14]=v,e[15]=C);let k=o&&h&&"font-semibold",P;e[16]===k?P=e[17]:(P=X(k),e[16]=k,e[17]=P);let T;e[18]!==t.name||e[19]!==P?(T=(0,s.jsx)("span",{className:P,children:t.name}),e[18]=t.name,e[19]=P,e[20]=T):T=e[20];let R;e[21]!==T||e[22]!==u||e[23]!==_||e[24]!==I||e[25]!==C||e[26]!==j?(R=(0,s.jsxs)(re,{className:"text-sm flex flex-row gap-1 items-center cursor-pointer rounded-none",style:u,onSelect:_,value:j,children:[I,C,T]}),e[21]=T,e[22]=u,e[23]=_,e[24]=I,e[25]=C,e[26]=j,e[27]=R):R=e[27];let D;e[28]!==w||e[29]!==n||e[30]!==h||e[31]!==t||e[32]!==l||e[33]!==d||e[34]!==i?(D=h&&(0,s.jsxs)(s.Fragment,{children:[(w.length>0||!me(t))&&(0,s.jsx)(Je,{schemas:w,schemasResolved:me(t),schemaPath:l,depth:n+1}),(0,s.jsx)(be,{tables:t.tables,tablesResolved:ce(t),searchValue:d,tableIndentRem:it(n),columnIndentRem:Ue(n),sqlTableContext:Ke(i,{schema:t.name,schemaPath:l})})]}),e[28]=w,e[29]=n,e[30]=h,e[31]=t,e[32]=l,e[33]=d,e[34]=i,e[35]=D):D=e[35];let $;return e[36]!==R||e[37]!==D?($=(0,s.jsxs)(s.Fragment,{children:[R,D]}),e[36]=R,e[37]=D,e[38]=$):$=e[38],$},be=a=>{let e=(0,A.c)(31),{tables:t,sqlTableContext:l,searchValue:n,tablesResolved:i,tableIndentRem:c,columnIndentRem:d}=a,r=i===void 0?!0:i,{addTableList:x}=oe(),[h,m]=F.useState(!1),o;e[0]!==x||e[1]!==l||e[2]!==r?(o=async()=>{if(!r&&l){m(!0);let{engine:u,database:_,schema:I,schemaPath:f}=l,v=await ga.request({engine:u,database:_,schema:I,schemaPath:f??[]});if(!(v!=null&&v.tables))throw m(!1),Error("No tables available");x({tables:v.tables,sqlTableContext:l}),m(!1)}},e[0]=x,e[1]=l,e[2]=r,e[3]=o):o=e[3];let p;e[4]!==l||e[5]!==r?(p=[r,l],e[4]=l,e[5]=r,e[6]=p):p=e[6];let{isPending:S,error:b}=pe(o,p),N=c??z.tableLoading,y;e[7]===N?y=e[8]:(y=E(N),e[7]=N,e[8]=y);let j=y;if(S||h){let u;return e[9]===j?u=e[10]:(u=(0,s.jsx)(he,{message:"Loading tables...",style:j}),e[9]=j,e[10]=u),u}if(b){let u;return e[11]!==b||e[12]!==j?(u=(0,s.jsx)(ue,{error:b,style:j}),e[11]=b,e[12]=j,e[13]=u):u=e[13],u}if(t.length===0){let u;return e[14]===j?u=e[15]:(u=(0,s.jsx)(le,{content:"No tables found",style:j}),e[14]=j,e[15]=u),u}let g;if(e[16]!==d||e[17]!==n||e[18]!==l||e[19]!==c||e[20]!==t){let u;e[22]===n?u=e[23]:(u=f=>n?f.name.toLowerCase().includes(n.toLowerCase()):!0,e[22]=n,e[23]=u);let _=t.filter(u),I;e[24]!==d||e[25]!==n||e[26]!==l||e[27]!==c?(I=f=>(0,s.jsx)(jt,{table:f,sqlTableContext:l,isSearching:!!n,tableIndentRem:c,columnIndentRem:d},f.name),e[24]=d,e[25]=n,e[26]=l,e[27]=c,e[28]=I):I=e[28],g=_.map(I),e[16]=d,e[17]=n,e[18]=l,e[19]=c,e[20]=t,e[21]=g}else g=e[21];let w;return e[29]===g?w=e[30]:(w=(0,s.jsx)(s.Fragment,{children:g}),e[29]=g,e[30]=w),w},jt=a=>{let e=(0,A.c)(69),{table:t,sqlTableContext:l,isSearching:n,tableIndentRem:i,columnIndentRem:c}=a,{addTable:d}=oe(),[r,x]=F.useState(!1),h=t.columns.length>0,m;e[0]!==d||e[1]!==r||e[2]!==l||e[3]!==t.name||e[4]!==h?(m=async()=>{if(r&&!h&&l){let{engine:M,database:ae,schema:te,schemaPath:We}=l,se=await sa.request({engine:M,database:ae,schema:te,tableName:t.name,schemaPath:We??[]});if(!(se!=null&&se.table))throw Error("No table details available");d({table:se.table,sqlTableContext:l})}},e[0]=d,e[1]=r,e[2]=l,e[3]=t.name,e[4]=h,e[5]=m):m=e[5];let o;e[6]!==r||e[7]!==h?(o=[r,h],e[6]=r,e[7]=h,e[8]=o):o=e[8];let{isFetching:p,isPending:S,error:b}=pe(m,o),N=W(Sa),y=Ka(),{createNewCell:j}=Ze(),g=Re(),w;e[9]!==g||e[10]!==N||e[11]!==j||e[12]!==y||e[13]!==l||e[14]!==t?(w=()=>{Ha({autoInstantiate:N,createNewCell:j,fromCellId:y}),g((()=>{if(t.source_type==="catalog"){let M=l!=null&&l.database?[l.database,...l.schemaPath??[],t.name].join("."):t.name;return`${t.engine}.load_table("${M}")`}if(l)return Se({table:t,columnName:"*",sqlTableContext:l});switch(t.source_type){case"local":return`mo.ui.table(${t.name})`;case"duckdb":case"connection":return Se({table:t,columnName:"*",sqlTableContext:l});default:return Da(t.source_type),""}})())},e[9]=g,e[10]=N,e[11]=j,e[12]=y,e[13]=l,e[14]=t,e[15]=w):w=e[15];let u=w,_;e[16]!==t.num_columns||e[17]!==t.num_rows?(_=()=>{let M=[];return t.num_rows!=null&&M.push(`${t.num_rows} rows`),t.num_columns!=null&&M.push(`${t.num_columns} columns`),M.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:M.join(", ")})})},e[16]=t.num_columns,e[17]=t.num_rows,e[18]=_):_=e[18];let I=_,f;e[19]!==c||e[20]!==b||e[21]!==p||e[22]!==S||e[23]!==l||e[24]!==t?(f=()=>{let M=E(c??z.tableLoading);if(S||p)return(0,s.jsx)(he,{message:"Loading columns...",style:M});if(b)return(0,s.jsx)(ue,{error:b,style:M});let ae=t.columns;return ae.length===0?(0,s.jsx)(le,{content:"No columns found",style:M}):ae.map(te=>(0,s.jsx)(yt,{table:t,column:te,sqlTableContext:l,columnIndentRem:c},te.name))},e[19]=c,e[20]=b,e[21]=p,e[22]=S,e[23]=l,e[24]=t,e[25]=f):f=e[25];let v=f,C;e[26]!==r||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"?ya:ua,{className:"h-3 w-3",strokeWidth:r||n?2.5:void 0})},e[26]=r,e[27]=n,e[28]=t.source_type,e[29]=t.type,e[30]=C):C=e[30];let k=C,P;e[31]!==l||e[32]!==t.name?(P=ma(l,t.name),e[31]=l,e[32]=t.name,e[33]=P):P=e[33];let T=P,R=i??(l?z.tableSchemaless:0),D=(r||n)&&"font-semibold",$;e[34]===D?$=e[35]:($=X("rounded-none group h-8 cursor-pointer",D),e[34]=D,e[35]=$);let V;e[36]===R?V=e[37]:(V=E(R),e[36]=R,e[37]=V);let q;e[38]===r?q=e[39]:(q=()=>x(!r),e[38]=r,e[39]=q);let B;e[40]===k?B=e[41]:(B=k(),e[40]=k,e[41]=B);let O;e[42]===t.name?O=e[43]:(O=(0,s.jsx)("span",{className:"text-sm",children:t.name}),e[42]=t.name,e[43]=O);let U;e[44]!==B||e[45]!==O?(U=(0,s.jsxs)("div",{className:"flex gap-2 items-center flex-1 pl-1",children:[B,O]}),e[44]=B,e[45]=O,e[46]=U):U=e[46];let L;e[47]===I?L=e[48]:(L=I(),e[47]=I,e[48]=L);let H;e[49]===u?H=e[50]:(H=Ra.stopPropagation(()=>u()),e[49]=u,e[50]=H);let Z;e[51]===Symbol.for("react.memo_cache_sentinel")?(Z=(0,s.jsx)(Ua,{className:"h-3 w-3"}),e[51]=Z):Z=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)(ne,{className:"group-hover:inline-flex hidden",variant:"text",size:"icon",onClick:H,children:Z})}),e[52]=H,e[53]=K);let J;e[54]!==r||e[55]!==V||e[56]!==q||e[57]!==U||e[58]!==L||e[59]!==K||e[60]!==$||e[61]!==T?(J=(0,s.jsxs)(re,{className:$,style:V,value:T,"aria-selected":r,forceMount:!0,onSelect:q,children:[U,L,K]}),e[54]=r,e[55]=V,e[56]=q,e[57]=U,e[58]=L,e[59]=K,e[60]=$,e[61]=T,e[62]=J):J=e[62];let Q;e[63]!==r||e[64]!==v?(Q=r&&v(),e[63]=r,e[64]=v,e[65]=Q):Q=e[65];let ee;return e[66]!==J||e[67]!==Q?(ee=(0,s.jsxs)(s.Fragment,{children:[J,Q]}),e[66]=J,e[67]=Q,e[68]=ee):ee=e[68],ee},yt=a=>{var O,U;let e=(0,A.c)(51),{table:t,column:l,sqlTableContext:n,columnIndentRem:i}=a,[c,d]=F.useState(!1),r=W(we),x=je(ca);r&&c&&d(!1),x(c?L=>new Set([...L,`${t.name}:${l.name}`]):L=>(L.delete(`${t.name}:${l.name}`),new Set(L)));let h=Re(),{columnsPreviews:m}=Na(),o;e[0]!==l.name||e[1]!==t.primary_keys?(o=((O=t.primary_keys)==null?void 0:O.includes(l.name))||!1,e[0]=l.name,e[1]=t.primary_keys,e[2]=o):o=e[2];let p=o,S;e[3]!==l.name||e[4]!==t.indexes?(S=((U=t.indexes)==null?void 0:U.includes(l.name))||!1,e[3]=l.name,e[4]=t.indexes,e[5]=S):S=e[5];let b=S,N;e[6]===h?N=e[7]:(N=L=>{h(L)},e[6]=h,e[7]=N);let y=N,j=vt,g=c?"font-semibold":"",w;e[8]!==l.name||e[9]!==g?(w=(0,s.jsx)("span",{className:g,children:l.name}),e[8]=l.name,e[9]=g,e[10]=w):w=e[10];let u=w,_=`${t.name}.${l.name}`,I=`${t.name}.${l.name}`,f;e[11]===c?f=e[12]:(f=()=>d(!c),e[11]=c,e[12]=f);let v;e[13]!==i||e[14]!==n?(v=i??(n?Ue(0):z.columnLocal),e[13]=i,e[14]=n,e[15]=v):v=e[15];let C;e[16]===v?C=e[17]:(C=E(v),e[16]=v,e[17]=C);let k;e[18]!==l.type||e[19]!==u?(k=(0,s.jsx)($a,{columnName:u,dataType:l.type}),e[18]=l.type,e[19]=u,e[20]=k):k=e[20];let P;e[21]===p?P=e[22]:(P=p&&j({tooltipContent:"Primary key",content:"PK"}),e[21]=p,e[22]=P);let T;e[23]===b?T=e[24]:(T=b&&j({tooltipContent:"Indexed",content:"IDX"}),e[23]=b,e[24]=T);let R;e[25]!==C||e[26]!==k||e[27]!==P||e[28]!==T?(R=(0,s.jsxs)("div",{className:"flex flex-row gap-2 items-center flex-1",style:C,children:[k,P,T]}),e[25]=C,e[26]=k,e[27]=P,e[28]=T,e[29]=R):R=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)(ne,{variant:"text",size:"icon",className:"group-hover:opacity-100 opacity-0 hover:bg-muted text-muted-foreground hover:text-foreground",children:(0,s.jsx)(Aa,{tooltip:!1,value:l.name,className:"h-3 w-3"})})}),e[30]=l.name,e[31]=D);let $;e[32]===l.external_type?$=e[33]:($=(0,s.jsx)("span",{className:"text-xs text-muted-foreground",children:l.external_type}),e[32]=l.external_type,e[33]=$);let V;e[34]!==R||e[35]!==D||e[36]!==$||e[37]!==_||e[38]!==I||e[39]!==f?(V=(0,s.jsxs)(re,{className:"rounded-none py-1 group cursor-pointer",value:I,onSelect:f,children:[R,D,$]},_),e[34]=R,e[35]=D,e[36]=$,e[37]=_,e[38]=I,e[39]=f,e[40]=V):V=e[40];let q;e[41]!==l||e[42]!==m||e[43]!==y||e[44]!==c||e[45]!==n||e[46]!==t?(q=c&&(0,s.jsx)("div",{className:"pr-2 py-2 bg-(--slate-1) shadow-inner border-b",style:E(z.columnPreview),children:(0,s.jsx)(_a,{children:(0,s.jsx)(Oa,{table:t,column:l,onAddColumnChart:y,preview:m.get(n?`${n.database}.${n.schema}.${t.name}:${l.name}`:`${t.name}:${l.name}`),sqlTableContext:n})})}),e[41]=l,e[42]=m,e[43]=y,e[44]=c,e[45]=n,e[46]=t,e[47]=q):q=e[47];let B;return e[48]!==V||e[49]!==q?(B=(0,s.jsxs)(s.Fragment,{children:[V,q]}),e[48]=V,e[49]=q,e[50]=B):B=e[50],B};function vt(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 Vs(a){return a}var G={name:"name",type:"type-value",defs:"defs-refs"},Nt=[{id:G.name,accessorFn:a=>[a.name,a.declaredBy],enableSorting:!0,sortingFn:"alphanumeric",header:({column:a})=>(0,s.jsx)(de,{header:"Name",column:a}),cell:({getValue:a})=>{let[e,t]=a();return(0,s.jsx)(rt,{name:e,declaredBy:t})}},{id:G.type,accessorFn:a=>[a.dataType,a.value],enableSorting:!0,sortingFn:"alphanumeric",header:({column:a})=>(0,s.jsx)(de,{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)(de,{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=i=>{let c=pa(i);c&&va(c,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)(qe,{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((i,c)=>(0,s.jsxs)("span",{className:"flex",children:[(0,s.jsx)(qe,{variant:"focus",cellId:i,skipScroll:!0,className:"whitespace-nowrap text-destructive",onClick:()=>n(i)},i),c<e.length-1&&", "]},i))})]}),(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)(za,{className:"w-3.5 h-3.5 text-muted-foreground"})}),(0,s.jsx)(nt,{maxCount:3,cellIds:t,skipScroll:!0,onClick:n})]})]})}}];function wt({variables:a,sort:e,cellIdToIndex:t}){e||(e={id:G.defs,desc:!1});let l=[];switch(e.id){case G.name:l=Y(a,n=>n.name);break;case G.type:l=Y(a,n=>n.dataType);break;case G.defs:l=Y(a,n=>t.get(n.declaredBy[0]));break}return e.desc?l.toReversed():l}const Qe=(0,F.memo)(({className:a,cellIds:e,variables:t})=>{let[l,n]=F.useState([]),[i,c]=F.useState(""),d=ra(),{locale:r}=Ga(),x=(0,F.useMemo)(()=>{let m=o=>{let p=d[o];return wa(p)?`cell-${e.indexOf(o)}`:p??`cell-${e.indexOf(o)}`};return Object.values(t).map(o=>({...o,declaredByNames:o.declaredBy.map(m),usedByNames:o.usedBy.map(m)}))},[t,d,e]),h=ka({data:(0,F.useMemo)(()=>{let m=new Map;return e.forEach((o,p)=>m.set(o,p)),wt({variables:x,sort:l[0],cellIdToIndex:m})},[x,l,e]),columns:Nt,getCoreRowModel:Fa(),onGlobalFilterChange:c,getFilteredRowModel:Pa(),enableFilters:!0,enableGlobalFilter:!0,enableColumnPinning:!1,getColumnCanGlobalFilter(m){return m.columnDef.enableGlobalFilter??!0},globalFilterFn:"auto",manualSorting:!0,locale:r,onSortingChange:n,getSortedRowModel:Ta(),state:{sorting:l,globalFilter:i}});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Ea,{className:"w-full",placeholder:"Search",value:i,onChange:m=>c(m.target.value)}),(0,s.jsxs)(Ya,{className:X("w-full text-sm flex-1 border-separate border-spacing-0",a),children:[(0,s.jsx)(Ja,{children:(0,s.jsx)(Le,{className:"whitespace-nowrap text-xs",children:h.getFlatHeaders().map(m=>(0,s.jsx)(Qa,{className:"sticky top-0 bg-background border-b",children:Te(m.column.columnDef.header,m.getContext())},m.id))})}),(0,s.jsx)(Wa,{children:h.getRowModel().rows.map(m=>(0,s.jsx)(Le,{className:"hover:bg-accent",children:m.getVisibleCells().map(o=>(0,s.jsx)(Xa,{className:"border-b",children:Te(o.column.columnDef.cell,o.getContext())},o.id))},m.id))})]})]})});Qe.displayName="VariableTable";var St=Pe(),_t=_e("marimo:session-panel:state",{openSections:["variables"],hasUserInteracted:!1},Ce),Ct=()=>{let a=(0,St.c)(24),e=oa(),t=la(),l=W(Ie),n=W(Ae),[i,c]=ye(_t),d=l.length+n.length,r;a[0]!==d||a[1]!==i.hasUserInteracted||a[2]!==i.openSections?(r=!i.hasUserInteracted&&d>0?[...new Set([...i.openSections,"datasources"])]:i.openSections,a[0]=d,a[1]=i.hasUserInteracted,a[2]=i.openSections,a[3]=r):r=a[3];let x=r,h;a[4]===c?h=a[5]:(h=u=>{c({openSections:u,hasUserInteracted:!0})},a[4]=c,a[5]=h);let m=h,o=!x.includes("datasources")&&d>0,p;a[6]===Symbol.for("react.memo_cache_sentinel")?(p=(0,s.jsx)(ie,{className:"w-4 h-4"}),a[6]=p):p=a[6];let S;a[7]!==d||a[8]!==o?(S=o&&(0,s.jsx)(ct,{children:d}),a[7]=d,a[8]=o,a[9]=S):S=a[9];let b;a[10]===S?b=a[11]:(b=(0,s.jsxs)(Be,{children:[p,"Data sources",S]}),a[10]=S,a[11]=b);let N;a[12]===Symbol.for("react.memo_cache_sentinel")?(N=(0,s.jsx)(Ee,{children:(0,s.jsx)(xt,{})}),a[12]=N):N=a[12];let y;a[13]===b?y=a[14]:(y=(0,s.jsxs)(Me,{value:"datasources",children:[b,N]}),a[13]=b,a[14]=y);let j;a[15]===Symbol.for("react.memo_cache_sentinel")?(j=(0,s.jsxs)(Be,{children:[(0,s.jsx)(xa,{className:"w-4 h-4"}),"Variables"]}),a[15]=j):j=a[15];let g;a[16]!==t||a[17]!==e?(g=(0,s.jsxs)(Me,{value:"variables",lastItem:!0,children:[j,(0,s.jsx)(Ee,{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)(Qe,{cellIds:t.inOrderIds,variables:e})})]}),a[16]=t,a[17]=e,a[18]=g):g=a[18];let w;return a[19]!==m||a[20]!==x||a[21]!==y||a[22]!==g?(w=(0,s.jsxs)(Ia,{type:"multiple",value:x,onValueChange:m,className:"flex flex-col h-full overflow-auto",children:[y,g]}),a[19]=m,a[20]=x,a[21]=y,a[22]=g,a[23]=w):w=a[23],w};export{Ct as default};
@@ -1 +1 @@
1
- import{t as O}from"./chunk-LvLJmgfZ.js";import{_ as j}from"./useEventListener-BakX-tnw.js";import{t as T}from"./use-toast-BH8bU9Xf.js";function k(){try{window.location.reload()}catch(w){j.error("Failed to reload page",w),T({title:"Failed to reload page",description:"Please refresh the page manually."})}}var F=O(((w,y)=>{var C=(function(){var g=String.fromCharCode,x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",U="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",b={};function _(r,e){if(!b[r]){b[r]={};for(var a=0;a<r.length;a++)b[r][r.charAt(a)]=a}return b[r][e]}var d={compressToBase64:function(r){if(r==null)return"";var e=d._compress(r,6,function(a){return x.charAt(a)});switch(e.length%4){default:case 0:return e;case 1:return e+"===";case 2:return e+"==";case 3:return e+"="}},decompressFromBase64:function(r){return r==null?"":r==""?null:d._decompress(r.length,32,function(e){return _(x,r.charAt(e))})},compressToUTF16:function(r){return r==null?"":d._compress(r,15,function(e){return g(e+32)})+" "},decompressFromUTF16:function(r){return r==null?"":r==""?null:d._decompress(r.length,16384,function(e){return r.charCodeAt(e)-32})},compressToUint8Array:function(r){for(var e=d.compress(r),a=new Uint8Array(e.length*2),n=0,s=e.length;n<s;n++){var f=e.charCodeAt(n);a[n*2]=f>>>8,a[n*2+1]=f%256}return a},decompressFromUint8Array:function(r){if(r==null)return d.decompress(r);for(var e=Array(r.length/2),a=0,n=e.length;a<n;a++)e[a]=r[a*2]*256+r[a*2+1];var s=[];return e.forEach(function(f){s.push(g(f))}),d.decompress(s.join(""))},compressToEncodedURIComponent:function(r){return r==null?"":d._compress(r,6,function(e){return U.charAt(e)})},decompressFromEncodedURIComponent:function(r){return r==null?"":r==""?null:(r=r.replace(/ /g,"+"),d._decompress(r.length,32,function(e){return _(U,r.charAt(e))}))},compress:function(r){return d._compress(r,16,function(e){return g(e)})},_compress:function(r,e,a){if(r==null)return"";var n,s,f={},v={},m="",A="",p="",h=2,l=3,c=2,u=[],o=0,i=0,t;for(t=0;t<r.length;t+=1)if(m=r.charAt(t),Object.prototype.hasOwnProperty.call(f,m)||(f[m]=l++,v[m]=!0),A=p+m,Object.prototype.hasOwnProperty.call(f,A))p=A;else{if(Object.prototype.hasOwnProperty.call(v,p)){if(p.charCodeAt(0)<256){for(n=0;n<c;n++)o<<=1,i==e-1?(i=0,u.push(a(o)),o=0):i++;for(s=p.charCodeAt(0),n=0;n<8;n++)o=o<<1|s&1,i==e-1?(i=0,u.push(a(o)),o=0):i++,s>>=1}else{for(s=1,n=0;n<c;n++)o=o<<1|s,i==e-1?(i=0,u.push(a(o)),o=0):i++,s=0;for(s=p.charCodeAt(0),n=0;n<16;n++)o=o<<1|s&1,i==e-1?(i=0,u.push(a(o)),o=0):i++,s>>=1}h--,h==0&&(h=2**c,c++),delete v[p]}else for(s=f[p],n=0;n<c;n++)o=o<<1|s&1,i==e-1?(i=0,u.push(a(o)),o=0):i++,s>>=1;h--,h==0&&(h=2**c,c++),f[A]=l++,p=String(m)}if(p!==""){if(Object.prototype.hasOwnProperty.call(v,p)){if(p.charCodeAt(0)<256){for(n=0;n<c;n++)o<<=1,i==e-1?(i=0,u.push(a(o)),o=0):i++;for(s=p.charCodeAt(0),n=0;n<8;n++)o=o<<1|s&1,i==e-1?(i=0,u.push(a(o)),o=0):i++,s>>=1}else{for(s=1,n=0;n<c;n++)o=o<<1|s,i==e-1?(i=0,u.push(a(o)),o=0):i++,s=0;for(s=p.charCodeAt(0),n=0;n<16;n++)o=o<<1|s&1,i==e-1?(i=0,u.push(a(o)),o=0):i++,s>>=1}h--,h==0&&(h=2**c,c++),delete v[p]}else for(s=f[p],n=0;n<c;n++)o=o<<1|s&1,i==e-1?(i=0,u.push(a(o)),o=0):i++,s>>=1;h--,h==0&&(h=2**c,c++)}for(s=2,n=0;n<c;n++)o=o<<1|s&1,i==e-1?(i=0,u.push(a(o)),o=0):i++,s>>=1;for(;;)if(o<<=1,i==e-1){u.push(a(o));break}else i++;return u.join("")},decompress:function(r){return r==null?"":r==""?null:d._decompress(r.length,32768,function(e){return r.charCodeAt(e)})},_decompress:function(r,e,a){var n=[],s=4,f=4,v=3,m="",A=[],p,h,l,c,u,o,i,t={val:a(0),position:e,index:1};for(p=0;p<3;p+=1)n[p]=p;for(l=0,u=2**2,o=1;o!=u;)c=t.val&t.position,t.position>>=1,t.position==0&&(t.position=e,t.val=a(t.index++)),l|=(c>0?1:0)*o,o<<=1;switch(l){case 0:for(l=0,u=2**8,o=1;o!=u;)c=t.val&t.position,t.position>>=1,t.position==0&&(t.position=e,t.val=a(t.index++)),l|=(c>0?1:0)*o,o<<=1;i=g(l);break;case 1:for(l=0,u=2**16,o=1;o!=u;)c=t.val&t.position,t.position>>=1,t.position==0&&(t.position=e,t.val=a(t.index++)),l|=(c>0?1:0)*o,o<<=1;i=g(l);break;case 2:return""}for(n[3]=i,h=i,A.push(i);;){if(t.index>r)return"";for(l=0,u=2**v,o=1;o!=u;)c=t.val&t.position,t.position>>=1,t.position==0&&(t.position=e,t.val=a(t.index++)),l|=(c>0?1:0)*o,o<<=1;switch(i=l){case 0:for(l=0,u=2**8,o=1;o!=u;)c=t.val&t.position,t.position>>=1,t.position==0&&(t.position=e,t.val=a(t.index++)),l|=(c>0?1:0)*o,o<<=1;n[f++]=g(l),i=f-1,s--;break;case 1:for(l=0,u=2**16,o=1;o!=u;)c=t.val&t.position,t.position>>=1,t.position==0&&(t.position=e,t.val=a(t.index++)),l|=(c>0?1:0)*o,o<<=1;n[f++]=g(l),i=f-1,s--;break;case 2:return A.join("")}if(s==0&&(s=2**v,v++),n[i])m=n[i];else if(i===f)m=h+h.charAt(0);else return null;A.push(m),n[f++]=h+m.charAt(0),s--,h=m,s==0&&(s=2**v,v++)}}};return d})();typeof define=="function"&&define.amd?define(function(){return C}):y!==void 0&&y!=null?y.exports=C:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return C})})),P=F();function E(w){let{code:y,baseUrl:C="https://marimo.app"}=w,g=new URL(C);return y&&(g.hash=`#code/${(0,P.compressToEncodedURIComponent)(y)}`),g.href}export{F as n,k as r,E as t};
1
+ import{t as O}from"./chunk-LvLJmgfZ.js";import{_ as j}from"./useEventListener-BakX-tnw.js";import{t as T}from"./use-toast-kCNiuc-_.js";function k(){try{window.location.reload()}catch(w){j.error("Failed to reload page",w),T({title:"Failed to reload page",description:"Please refresh the page manually."})}}var F=O(((w,y)=>{var C=(function(){var g=String.fromCharCode,x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",U="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",b={};function _(r,e){if(!b[r]){b[r]={};for(var a=0;a<r.length;a++)b[r][r.charAt(a)]=a}return b[r][e]}var d={compressToBase64:function(r){if(r==null)return"";var e=d._compress(r,6,function(a){return x.charAt(a)});switch(e.length%4){default:case 0:return e;case 1:return e+"===";case 2:return e+"==";case 3:return e+"="}},decompressFromBase64:function(r){return r==null?"":r==""?null:d._decompress(r.length,32,function(e){return _(x,r.charAt(e))})},compressToUTF16:function(r){return r==null?"":d._compress(r,15,function(e){return g(e+32)})+" "},decompressFromUTF16:function(r){return r==null?"":r==""?null:d._decompress(r.length,16384,function(e){return r.charCodeAt(e)-32})},compressToUint8Array:function(r){for(var e=d.compress(r),a=new Uint8Array(e.length*2),n=0,s=e.length;n<s;n++){var f=e.charCodeAt(n);a[n*2]=f>>>8,a[n*2+1]=f%256}return a},decompressFromUint8Array:function(r){if(r==null)return d.decompress(r);for(var e=Array(r.length/2),a=0,n=e.length;a<n;a++)e[a]=r[a*2]*256+r[a*2+1];var s=[];return e.forEach(function(f){s.push(g(f))}),d.decompress(s.join(""))},compressToEncodedURIComponent:function(r){return r==null?"":d._compress(r,6,function(e){return U.charAt(e)})},decompressFromEncodedURIComponent:function(r){return r==null?"":r==""?null:(r=r.replace(/ /g,"+"),d._decompress(r.length,32,function(e){return _(U,r.charAt(e))}))},compress:function(r){return d._compress(r,16,function(e){return g(e)})},_compress:function(r,e,a){if(r==null)return"";var n,s,f={},v={},m="",A="",p="",h=2,l=3,c=2,u=[],o=0,i=0,t;for(t=0;t<r.length;t+=1)if(m=r.charAt(t),Object.prototype.hasOwnProperty.call(f,m)||(f[m]=l++,v[m]=!0),A=p+m,Object.prototype.hasOwnProperty.call(f,A))p=A;else{if(Object.prototype.hasOwnProperty.call(v,p)){if(p.charCodeAt(0)<256){for(n=0;n<c;n++)o<<=1,i==e-1?(i=0,u.push(a(o)),o=0):i++;for(s=p.charCodeAt(0),n=0;n<8;n++)o=o<<1|s&1,i==e-1?(i=0,u.push(a(o)),o=0):i++,s>>=1}else{for(s=1,n=0;n<c;n++)o=o<<1|s,i==e-1?(i=0,u.push(a(o)),o=0):i++,s=0;for(s=p.charCodeAt(0),n=0;n<16;n++)o=o<<1|s&1,i==e-1?(i=0,u.push(a(o)),o=0):i++,s>>=1}h--,h==0&&(h=2**c,c++),delete v[p]}else for(s=f[p],n=0;n<c;n++)o=o<<1|s&1,i==e-1?(i=0,u.push(a(o)),o=0):i++,s>>=1;h--,h==0&&(h=2**c,c++),f[A]=l++,p=String(m)}if(p!==""){if(Object.prototype.hasOwnProperty.call(v,p)){if(p.charCodeAt(0)<256){for(n=0;n<c;n++)o<<=1,i==e-1?(i=0,u.push(a(o)),o=0):i++;for(s=p.charCodeAt(0),n=0;n<8;n++)o=o<<1|s&1,i==e-1?(i=0,u.push(a(o)),o=0):i++,s>>=1}else{for(s=1,n=0;n<c;n++)o=o<<1|s,i==e-1?(i=0,u.push(a(o)),o=0):i++,s=0;for(s=p.charCodeAt(0),n=0;n<16;n++)o=o<<1|s&1,i==e-1?(i=0,u.push(a(o)),o=0):i++,s>>=1}h--,h==0&&(h=2**c,c++),delete v[p]}else for(s=f[p],n=0;n<c;n++)o=o<<1|s&1,i==e-1?(i=0,u.push(a(o)),o=0):i++,s>>=1;h--,h==0&&(h=2**c,c++)}for(s=2,n=0;n<c;n++)o=o<<1|s&1,i==e-1?(i=0,u.push(a(o)),o=0):i++,s>>=1;for(;;)if(o<<=1,i==e-1){u.push(a(o));break}else i++;return u.join("")},decompress:function(r){return r==null?"":r==""?null:d._decompress(r.length,32768,function(e){return r.charCodeAt(e)})},_decompress:function(r,e,a){var n=[],s=4,f=4,v=3,m="",A=[],p,h,l,c,u,o,i,t={val:a(0),position:e,index:1};for(p=0;p<3;p+=1)n[p]=p;for(l=0,u=2**2,o=1;o!=u;)c=t.val&t.position,t.position>>=1,t.position==0&&(t.position=e,t.val=a(t.index++)),l|=(c>0?1:0)*o,o<<=1;switch(l){case 0:for(l=0,u=2**8,o=1;o!=u;)c=t.val&t.position,t.position>>=1,t.position==0&&(t.position=e,t.val=a(t.index++)),l|=(c>0?1:0)*o,o<<=1;i=g(l);break;case 1:for(l=0,u=2**16,o=1;o!=u;)c=t.val&t.position,t.position>>=1,t.position==0&&(t.position=e,t.val=a(t.index++)),l|=(c>0?1:0)*o,o<<=1;i=g(l);break;case 2:return""}for(n[3]=i,h=i,A.push(i);;){if(t.index>r)return"";for(l=0,u=2**v,o=1;o!=u;)c=t.val&t.position,t.position>>=1,t.position==0&&(t.position=e,t.val=a(t.index++)),l|=(c>0?1:0)*o,o<<=1;switch(i=l){case 0:for(l=0,u=2**8,o=1;o!=u;)c=t.val&t.position,t.position>>=1,t.position==0&&(t.position=e,t.val=a(t.index++)),l|=(c>0?1:0)*o,o<<=1;n[f++]=g(l),i=f-1,s--;break;case 1:for(l=0,u=2**16,o=1;o!=u;)c=t.val&t.position,t.position>>=1,t.position==0&&(t.position=e,t.val=a(t.index++)),l|=(c>0?1:0)*o,o<<=1;n[f++]=g(l),i=f-1,s--;break;case 2:return A.join("")}if(s==0&&(s=2**v,v++),n[i])m=n[i];else if(i===f)m=h+h.charAt(0);else return null;A.push(m),n[f++]=h+m.charAt(0),s--,h=m,s==0&&(s=2**v,v++)}}};return d})();typeof define=="function"&&define.amd?define(function(){return C}):y!==void 0&&y!=null?y.exports=C:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return C})})),P=F();function E(w){let{code:y,baseUrl:C="https://marimo.app"}=w,g=new URL(C);return y&&(g.hash=`#code/${(0,P.compressToEncodedURIComponent)(y)}`),g.href}export{F as n,k as r,E as t};
@@ -0,0 +1 @@
1
+ import{t as e}from"./shell-D8pt0LM7.js";export{e as shell};
@@ -0,0 +1 @@
1
+ import{t as e}from"./sieve-DGXZ82l_.js";export{e as sieve};
@@ -0,0 +1 @@
1
+ import{t as a}from"./smalltalk-DyRmt5Ka.js";export{a as smalltalk};
@@ -1 +1 @@
1
- import{s as I}from"./chunk-LvLJmgfZ.js";import"./useEvent-D91BmmQi.js";import{t as D}from"./react-Bj1aDYRI.js";import{D as F,Xn as G}from"./cells-DZEvA3zb.js";import"./react-dom-CSu739Rf.js";import{t as $}from"./compiler-runtime-B3qBwwSJ.js";import{n as R}from"./useEventListener-BakX-tnw.js";import{n as W}from"./constants-B9JJ72XE.js";import{t as X}from"./cn-X2M2usMq.js";import{t as A}from"./jsx-runtime-PbYoItBR.js";import"./fullscreen-BXI8V5i6.js";import{t as B}from"./tooltip-CgQpRVyN.js";import{t as w}from"./button-BF7GSjhW.js";import{st as J}from"./dist-Dez1I5M9.js";import"./cjs-DXo9vDEJ.js";import"./main-DmhaVp6Y.js";import"./useNonce-0SWz6w4W.js";import{r as K}from"./requests-KshNNAOp.js";import{n as M,t as L}from"./LazyAnyLanguageCodeMirror-CUQODgGJ.js";import{t as Q}from"./x-9vLEgLY6.js";import{t as U}from"./spinner-DTBVbtl-.js";import{t as V}from"./plus-CExKUszm.js";import"./dist-DHMtQYxT.js";import"./dist-Bj9Iedc0.js";import"./dist-D-o1OXc9.js";import"./dist-BZhJ1bTM.js";import"./dist-DnIl7RU-.js";import"./session-B6_8umQX.js";import{r as Y}from"./useTheme-CWoNQwFz.js";import"./purify.es-DdxMtdqK.js";import{t as Z}from"./RenderHTML-FBKVQ49x.js";import{a as ee,c as te,i as se,n as re,r as le}from"./dialog-Dr_Y1zNi.js";import{n as oe}from"./ImperativeModal-MQnbMIO2.js";import{n as ie}from"./error-banner-C4DZksWV.js";import{o as ae}from"./focus-DHgSYMb6.js";import{n as ne}from"./useAsyncData-CT1LpOBD.js";import{n as me,r as ce,t as q}from"./react-resizable-panels.browser.esm-CgWOEYeG.js";import{a as de,f as pe,o as fe,r as he,t as xe}from"./command-CsbsBLBw.js";import{t as ue}from"./empty-state-vKu4k0Y4.js";import{n as je,r as ve}from"./panel-context-RKllh8pM.js";import{t as E}from"./kiosk-mode-BqSHurAE.js";var H=$(),C=I(D(),1),s=I(A(),1),be=R;const ge=t=>{let e=(0,H.c)(6),{children:r}=t,{openModal:i,closeModal:o}=oe(),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,H.c)(4),{onClose:r}=t,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)(te,{children:"Contribute a Snippet"}),e[0]=i):i=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=(0,s.jsxs)(ee,{children:[i,(0,s.jsxs)(le,{children:["Have a useful snippet you want to share with the community? Make a pull request"," ",(0,s.jsx)("a",{href:W.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)(re,{className:"max-w-md",children:[o,(0,s.jsx)(se,{children:(0,s.jsx)(w,{"data-testid":"snippet-close-button",variant:"default",onClick:r,children:"Close"})})]}),e[2]=r,e[3]=l),l},O=new G;function _e(t){if(O.isSupported(t)){let{code:e}=O.transformIn(t);return{language:"sql",value:e}}return{language:"python",value:t}}var k=$(),Se=[J.lineWrapping],we=()=>{let t=(0,k.c)(24),{readSnippets:e}=K(),[r,i]=C.useState(),o=je(),l=ve(),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:g,error:j,isPending:_}=ne(a,c);if(j){let m;return t[3]===j?m=t[4]:(m=(0,s.jsx)(ie,{error:j}),t[3]=j,t[4]=m),m}if(_||!g){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 N=o==="vertical",v;t[6]===Symbol.for("react.memo_cache_sentinel")?(v=(0,s.jsx)(de,{placeholder:"Search snippets...",className:"h-6 m-1",rootClassName:"flex-1 border-r"}),t[6]=v):v=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:[v,(0,s.jsx)(ge,{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)(he,{children:"No results"}),t[7]=f,t[8]=h):(f=t[7],h=t[8]);let b;t[9]===Symbol.for("react.memo_cache_sentinel")?(b=m=>i(m),t[9]=b):b=t[9];let d;t[10]===g.snippets?d=t[11]:(d=(0,s.jsx)(q,{defaultSize:40,minSize:20,maxSize:70,children:(0,s.jsxs)(xe,{className:"h-full rounded-none",children:[f,h,(0,s.jsx)(Ce,{onSelect:b,snippets:g.snippets})]})}),t[10]=g.snippets,t[11]=d);let u=N?"h-1":"w-1",p;t[12]===u?p=t[13]:(p=X("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)(ce,{className:p}),t[14]=p,t[15]=x);let n;t[16]===r?n=t[17]:(n=(0,s.jsx)(q,{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)(ye,{snippet:r,onClose:()=>i(void 0)},r.title):(0,s.jsx)(ue,{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)(me,{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},ye=t=>{let e=(0,k.c)(33),{snippet:r,onClose:i}=t,{theme:o}=Y(),{createNewCell:l}=F(),a=ae(),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 g=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 _=j,N;e[7]===r.title?N=e[8]:(N=(0,s.jsx)("span",{children:r.title}),e[7]=r.title,e[8]=N);let v;e[9]===Symbol.for("react.memo_cache_sentinel")?(v=(0,s.jsx)(Q,{className:"h-4 w-4"}),e[9]=v):v=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:v}),e[10]=i,e[11]=f);let h;e[12]!==N||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:[N,f]}),e[12]=N,e[13]=f,e[14]=h):h=e[14];let b;e[15]===Symbol.for("react.memo_cache_sentinel")?(b=(0,s.jsx)(M,{className:"ml-2 h-4 w-4"}),e[15]=b):b=e[15];let d;e[16]===g?d=e[17]:(d=(0,s.jsx)("div",{className:"flex justify-end",children:(0,s.jsx)(E,{children:(0,s.jsxs)(w,{className:"float-right",size:"xs",variant:"outline",onClick:g,children:["Insert snippet",b]})})}),e[16]=g,e[17]=d);let u;if(e[18]!==_||e[19]!==r.sections||e[20]!==r.title||e[21]!==o){let n;e[23]!==_||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:Z({html:z})},`${r.title}-${y}`);if(!m)return null;let{language:P,value:T}=_e(m);return(0,s.jsxs)("div",{className:"relative hover-actions-parent pr-2",children:[(0,s.jsx)(E,{children:(0,s.jsx)(B,{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:()=>{_(m)},children:(0,s.jsx)(M,{className:"h-5 w-5"})})})}),(0,s.jsx)(C.Suspense,{children:(0,s.jsx)(L,{theme:o==="dark"?"dark":"light",language:P,className:"cm border rounded overflow-hidden",extensions:Se,value:T,readOnly:!0},`${r.title}-${y}`)})]},`${r.title}-${y}`)},e[23]=_,e[24]=r.title,e[25]=o,e[26]=n):n=e[26],u=r.sections.map(n),e[18]=_,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},Ce=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)(fe,{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)(pe,{className:"flex flex-col overflow-auto",children:o}),e[5]=o,e[6]=l),l};export{we as default};
1
+ import{s as I}from"./chunk-LvLJmgfZ.js";import"./useEvent-D91BmmQi.js";import{t as D}from"./react-Bj1aDYRI.js";import{D as F,Zn as G}from"./cells-B7YKR2ed.js";import"./react-dom-CSu739Rf.js";import{t as $}from"./compiler-runtime-B3qBwwSJ.js";import{n as R}from"./useEventListener-BakX-tnw.js";import{n as W}from"./constants-B9JJ72XE.js";import{t as Z}from"./cn-X2M2usMq.js";import{t as A}from"./jsx-runtime-PbYoItBR.js";import"./fullscreen-BXI8V5i6.js";import{t as B}from"./tooltip-CgQpRVyN.js";import{t as w}from"./button-BF7GSjhW.js";import{st as J}from"./dist-Dez1I5M9.js";import"./cjs-DXo9vDEJ.js";import"./main-DmhaVp6Y.js";import"./useNonce-0SWz6w4W.js";import{r as K}from"./requests-KshNNAOp.js";import{n as M,t as L}from"./LazyAnyLanguageCodeMirror-BsVlAJyX.js";import{t as Q}from"./x-9vLEgLY6.js";import{t as U}from"./spinner-BbI9qk88.js";import{t as V}from"./plus-ZXRHY1up.js";import"./dist-DblYTes5.js";import"./dist-D-2yWcX9.js";import"./dist-CNKFZCiw.js";import"./dist-ZjSH4Z6x.js";import"./dist-BtrqKtvn.js";import"./session-CsT5Gg9j.js";import{r as X}from"./useTheme-D_ZbTTJw.js";import"./purify.es-DfJp_of2.js";import{t as Y}from"./RenderHTML-CfDAJrQ1.js";import{a as ee,c as te,i as se,n as re,r as le}from"./dialog-DkJmIrsG.js";import{n as oe}from"./ImperativeModal-B62Q6S9l.js";import{n as ie}from"./error-banner-BSQVN46J.js";import{o as ae}from"./focus-M6_Axyyu.js";import{n as ne}from"./useAsyncData-DAQcLiyE.js";import{n as me,r as ce,t as q}from"./react-resizable-panels.browser.esm-Ce2ksurd.js";import{a as de,f as pe,o as fe,r as he,t as xe}from"./command-DRHbYHUP.js";import{t as ue}from"./empty-state-QmmE2oN4.js";import{n as je,r as ve}from"./panel-context-DC1vAeB3.js";import{t as E}from"./kiosk-mode-DzVyPYQb.js";var H=$(),C=I(D(),1),s=I(A(),1),be=R;const ge=t=>{let e=(0,H.c)(6),{children:r}=t,{openModal:i,closeModal:o}=oe(),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,H.c)(4),{onClose:r}=t,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)(te,{children:"Contribute a Snippet"}),e[0]=i):i=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=(0,s.jsxs)(ee,{children:[i,(0,s.jsxs)(le,{children:["Have a useful snippet you want to share with the community? Make a pull request"," ",(0,s.jsx)("a",{href:W.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)(re,{className:"max-w-md",children:[o,(0,s.jsx)(se,{children:(0,s.jsx)(w,{"data-testid":"snippet-close-button",variant:"default",onClick:r,children:"Close"})})]}),e[2]=r,e[3]=l),l},O=new G;function _e(t){if(O.isSupported(t)){let{code:e}=O.transformIn(t);return{language:"sql",value:e}}return{language:"python",value:t}}var k=$(),Se=[J.lineWrapping],we=()=>{let t=(0,k.c)(24),{readSnippets:e}=K(),[r,i]=C.useState(),o=je(),l=ve(),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:g,error:j,isPending:_}=ne(a,c);if(j){let m;return t[3]===j?m=t[4]:(m=(0,s.jsx)(ie,{error:j}),t[3]=j,t[4]=m),m}if(_||!g){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 N=o==="vertical",v;t[6]===Symbol.for("react.memo_cache_sentinel")?(v=(0,s.jsx)(de,{placeholder:"Search snippets...",className:"h-6 m-1",rootClassName:"flex-1 border-r"}),t[6]=v):v=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:[v,(0,s.jsx)(ge,{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)(he,{children:"No results"}),t[7]=f,t[8]=h):(f=t[7],h=t[8]);let b;t[9]===Symbol.for("react.memo_cache_sentinel")?(b=m=>i(m),t[9]=b):b=t[9];let d;t[10]===g.snippets?d=t[11]:(d=(0,s.jsx)(q,{defaultSize:40,minSize:20,maxSize:70,children:(0,s.jsxs)(xe,{className:"h-full rounded-none",children:[f,h,(0,s.jsx)(Ce,{onSelect:b,snippets:g.snippets})]})}),t[10]=g.snippets,t[11]=d);let u=N?"h-1":"w-1",p;t[12]===u?p=t[13]:(p=Z("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)(ce,{className:p}),t[14]=p,t[15]=x);let n;t[16]===r?n=t[17]:(n=(0,s.jsx)(q,{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)(ye,{snippet:r,onClose:()=>i(void 0)},r.title):(0,s.jsx)(ue,{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)(me,{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},ye=t=>{let e=(0,k.c)(33),{snippet:r,onClose:i}=t,{theme:o}=X(),{createNewCell:l}=F(),a=ae(),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 g=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 _=j,N;e[7]===r.title?N=e[8]:(N=(0,s.jsx)("span",{children:r.title}),e[7]=r.title,e[8]=N);let v;e[9]===Symbol.for("react.memo_cache_sentinel")?(v=(0,s.jsx)(Q,{className:"h-4 w-4"}),e[9]=v):v=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:v}),e[10]=i,e[11]=f);let h;e[12]!==N||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:[N,f]}),e[12]=N,e[13]=f,e[14]=h):h=e[14];let b;e[15]===Symbol.for("react.memo_cache_sentinel")?(b=(0,s.jsx)(M,{className:"ml-2 h-4 w-4"}),e[15]=b):b=e[15];let d;e[16]===g?d=e[17]:(d=(0,s.jsx)("div",{className:"flex justify-end",children:(0,s.jsx)(E,{children:(0,s.jsxs)(w,{className:"float-right",size:"xs",variant:"outline",onClick:g,children:["Insert snippet",b]})})}),e[16]=g,e[17]=d);let u;if(e[18]!==_||e[19]!==r.sections||e[20]!==r.title||e[21]!==o){let n;e[23]!==_||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,value:T}=_e(m);return(0,s.jsxs)("div",{className:"relative hover-actions-parent pr-2",children:[(0,s.jsx)(E,{children:(0,s.jsx)(B,{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:()=>{_(m)},children:(0,s.jsx)(M,{className:"h-5 w-5"})})})}),(0,s.jsx)(C.Suspense,{children:(0,s.jsx)(L,{theme:o==="dark"?"dark":"light",language:P,className:"cm border rounded overflow-hidden",extensions:Se,value:T,readOnly:!0},`${r.title}-${y}`)})]},`${r.title}-${y}`)},e[23]=_,e[24]=r.title,e[25]=o,e[26]=n):n=e[26],u=r.sections.map(n),e[18]=_,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},Ce=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)(fe,{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)(pe,{className:"flex flex-col overflow-auto",children:o}),e[5]=o,e[6]=l),l};export{we as default};
@@ -0,0 +1 @@
1
+ import{t as r}from"./sparql-CLILkzHY.js";export{r as sparql};
@@ -1 +1 @@
1
- import{i as I}from"./strings-DvZlHYnD.js";import{t as p}from"./createLucideIcon-BTp1tQDO.js";import{a as J}from"./useLifecycle-Baf35rp4.js";import{t as R}from"./chart-no-axes-column-DVEV2j1H.js";import{r as Z,t as ee}from"./table-DxdydCSG.js";import{t as te}from"./square-function-CPbVtjKW.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"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"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
+ import{i as I}from"./strings-DvZlHYnD.js";import{t as p}from"./createLucideIcon-BTp1tQDO.js";import{a as J}from"./useLifecycle-Baf35rp4.js";import{t as R}from"./chart-no-axes-column-DVEV2j1H.js";import{r as Z,t as ee}from"./table-DxdydCSG.js";import{t as te}from"./square-function-Dx0pKHko.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"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"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{_ as ht,b as lt,c as It,f as Ot,l as Ut,m as ft,n as Rt,p as jt,r as Gt,s as Ht,t as Kt}from"./timer-BgiWPhV9.js";var pt={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function W(t){var n=t+="",e=n.indexOf(":");return e>=0&&(n=t.slice(0,e))!=="xmlns"&&(t=t.slice(e+1)),pt.hasOwnProperty(n)?{space:pt[n],local:t}:t}function Wt(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e==="http://www.w3.org/1999/xhtml"&&n.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?n.createElement(t):n.createElementNS(e,t)}}function $t(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function mt(t){var n=W(t);return(n.local?$t:Wt)(n)}function Ft(){}function rt(t){return t==null?Ft:function(){return this.querySelector(t)}}function Jt(t){typeof t!="function"&&(t=rt(t));for(var n=this._groups,e=n.length,r=Array(e),i=0;i<e;++i)for(var o=n[i],u=o.length,a=r[i]=Array(u),c,l,f=0;f<u;++f)(c=o[f])&&(l=t.call(c,c.__data__,f,o))&&("__data__"in c&&(l.__data__=c.__data__),a[f]=l);return new S(r,this._parents)}function Qt(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Zt(){return[]}function vt(t){return t==null?Zt:function(){return this.querySelectorAll(t)}}function tn(t){return function(){return Qt(t.apply(this,arguments))}}function nn(t){t=typeof t=="function"?tn(t):vt(t);for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var u=n[o],a=u.length,c,l=0;l<a;++l)(c=u[l])&&(r.push(t.call(c,c.__data__,l,u)),i.push(c));return new S(r,i)}function _t(t){return function(){return this.matches(t)}}function gt(t){return function(n){return n.matches(t)}}var en=Array.prototype.find;function rn(t){return function(){return en.call(this.children,t)}}function on(){return this.firstElementChild}function un(t){return this.select(t==null?on:rn(typeof t=="function"?t:gt(t)))}var sn=Array.prototype.filter;function an(){return Array.from(this.children)}function cn(t){return function(){return sn.call(this.children,t)}}function hn(t){return this.selectAll(t==null?an:cn(typeof t=="function"?t:gt(t)))}function ln(t){typeof t!="function"&&(t=_t(t));for(var n=this._groups,e=n.length,r=Array(e),i=0;i<e;++i)for(var o=n[i],u=o.length,a=r[i]=[],c,l=0;l<u;++l)(c=o[l])&&t.call(c,c.__data__,l,o)&&a.push(c);return new S(r,this._parents)}function dt(t){return Array(t.length)}function fn(){return new S(this._enter||this._groups.map(dt),this._parents)}function $(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}$.prototype={constructor:$,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function pn(t){return function(){return t}}function mn(t,n,e,r,i,o){for(var u=0,a,c=n.length,l=o.length;u<l;++u)(a=n[u])?(a.__data__=o[u],r[u]=a):e[u]=new $(t,o[u]);for(;u<c;++u)(a=n[u])&&(i[u]=a)}function vn(t,n,e,r,i,o,u){var a,c,l=new Map,f=n.length,x=o.length,d=Array(f),_;for(a=0;a<f;++a)(c=n[a])&&(d[a]=_=u.call(c,c.__data__,a,n)+"",l.has(_)?i[a]=c:l.set(_,c));for(a=0;a<x;++a)_=u.call(t,o[a],a,o)+"",(c=l.get(_))?(r[a]=c,c.__data__=o[a],l.delete(_)):e[a]=new $(t,o[a]);for(a=0;a<f;++a)(c=n[a])&&l.get(d[a])===c&&(i[a]=c)}function _n(t){return t.__data__}function gn(t,n){if(!arguments.length)return Array.from(this,_n);var e=n?vn:mn,r=this._parents,i=this._groups;typeof t!="function"&&(t=pn(t));for(var o=i.length,u=Array(o),a=Array(o),c=Array(o),l=0;l<o;++l){var f=r[l],x=i[l],d=x.length,_=dn(t.call(f,f&&f.__data__,l,r)),E=_.length,k=a[l]=Array(E),I=u[l]=Array(E);e(f,x,k,I,c[l]=Array(d),_,n);for(var v=0,B=0,O,j;v<E;++v)if(O=k[v]){for(v>=B&&(B=v+1);!(j=I[B])&&++B<E;);O._next=j||null}}return u=new S(u,r),u._enter=a,u._exit=c,u}function dn(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function yn(){return new S(this._exit||this._groups.map(dt),this._parents)}function wn(t,n,e){var r=this.enter(),i=this,o=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),n!=null&&(i=n(i),i&&(i=i.selection())),e==null?o.remove():e(o),r&&i?r.merge(i).order():i}function xn(t){for(var n=t.selection?t.selection():t,e=this._groups,r=n._groups,i=e.length,o=r.length,u=Math.min(i,o),a=Array(i),c=0;c<u;++c)for(var l=e[c],f=r[c],x=l.length,d=a[c]=Array(x),_,E=0;E<x;++E)(_=l[E]||f[E])&&(d[E]=_);for(;c<i;++c)a[c]=e[c];return new S(a,this._parents)}function An(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r=t[n],i=r.length-1,o=r[i],u;--i>=0;)(u=r[i])&&(o&&u.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(u,o),o=u);return this}function bn(t){t||(t=zn);function n(x,d){return x&&d?t(x.__data__,d.__data__):!x-!d}for(var e=this._groups,r=e.length,i=Array(r),o=0;o<r;++o){for(var u=e[o],a=u.length,c=i[o]=Array(a),l,f=0;f<a;++f)(l=u[f])&&(c[f]=l);c.sort(n)}return new S(i,this._parents).order()}function zn(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function En(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Sn(){return Array.from(this)}function kn(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length;i<o;++i){var u=r[i];if(u)return u}return null}function Tn(){let t=0;for(let n of this)++t;return t}function Cn(){return!this.node()}function Mn(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i=n[e],o=0,u=i.length,a;o<u;++o)(a=i[o])&&t.call(a,a.__data__,o,i);return this}function Nn(t){return function(){this.removeAttribute(t)}}function Pn(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Bn(t,n){return function(){this.setAttribute(t,n)}}function Vn(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function Dn(t,n){return function(){var e=n.apply(this,arguments);e==null?this.removeAttribute(t):this.setAttribute(t,e)}}function Xn(t,n){return function(){var e=n.apply(this,arguments);e==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function Yn(t,n){var e=W(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((n==null?e.local?Pn:Nn:typeof n=="function"?e.local?Xn:Dn:e.local?Vn:Bn)(e,n))}function yt(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Ln(t){return function(){this.style.removeProperty(t)}}function qn(t,n,e){return function(){this.style.setProperty(t,n,e)}}function In(t,n,e){return function(){var r=n.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function On(t,n,e){return arguments.length>1?this.each((n==null?Ln:typeof n=="function"?In:qn)(t,n,e??"")):G(this.node(),t)}function G(t,n){return t.style.getPropertyValue(n)||yt(t).getComputedStyle(t,null).getPropertyValue(n)}function Un(t){return function(){delete this[t]}}function Rn(t,n){return function(){this[t]=n}}function jn(t,n){return function(){var e=n.apply(this,arguments);e==null?delete this[t]:this[t]=e}}function Gn(t,n){return arguments.length>1?this.each((n==null?Un:typeof n=="function"?jn:Rn)(t,n)):this.node()[t]}function wt(t){return t.trim().split(/^|\s+/)}function it(t){return t.classList||new xt(t)}function xt(t){this._node=t,this._names=wt(t.getAttribute("class")||"")}xt.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function At(t,n){for(var e=it(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function bt(t,n){for(var e=it(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function Hn(t){return function(){At(this,t)}}function Kn(t){return function(){bt(this,t)}}function Wn(t,n){return function(){(n.apply(this,arguments)?At:bt)(this,t)}}function $n(t,n){var e=wt(t+"");if(arguments.length<2){for(var r=it(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each((typeof n=="function"?Wn:n?Hn:Kn)(e,n))}function Fn(){this.textContent=""}function Jn(t){return function(){this.textContent=t}}function Qn(t){return function(){this.textContent=t.apply(this,arguments)??""}}function Zn(t){return arguments.length?this.each(t==null?Fn:(typeof t=="function"?Qn:Jn)(t)):this.node().textContent}function te(){this.innerHTML=""}function ne(t){return function(){this.innerHTML=t}}function ee(t){return function(){this.innerHTML=t.apply(this,arguments)??""}}function re(t){return arguments.length?this.each(t==null?te:(typeof t=="function"?ee:ne)(t)):this.node().innerHTML}function ie(){this.nextSibling&&this.parentNode.appendChild(this)}function oe(){return this.each(ie)}function ue(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function se(){return this.each(ue)}function ae(t){var n=typeof t=="function"?t:mt(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function ce(){return null}function he(t,n){var e=typeof t=="function"?t:mt(t),r=n==null?ce:typeof n=="function"?n:rt(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)})}function le(){var t=this.parentNode;t&&t.removeChild(this)}function fe(){return this.each(le)}function pe(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function me(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function ve(t){return this.select(t?me:pe)}function _e(t){return arguments.length?this.property("__data__",t):this.node().__data__}function ge(t){return function(n){t.call(this,n,this.__data__)}}function de(t){return t.trim().split(/^|\s+/).map(function(n){var e="",r=n.indexOf(".");return r>=0&&(e=n.slice(r+1),n=n.slice(0,r)),{type:n,name:e}})}function ye(t){return function(){var n=this.__on;if(n){for(var e=0,r=-1,i=n.length,o;e<i;++e)o=n[e],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):n[++r]=o;++r?n.length=r:delete this.__on}}}function we(t,n,e){return function(){var r=this.__on,i,o=ge(n);if(r){for(var u=0,a=r.length;u<a;++u)if((i=r[u]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=e),i.value=n;return}}this.addEventListener(t.type,o,e),i={type:t.type,name:t.name,value:n,listener:o,options:e},r?r.push(i):this.__on=[i]}}function xe(t,n,e){var r=de(t+""),i,o=r.length,u;if(arguments.length<2){var a=this.node().__on;if(a){for(var c=0,l=a.length,f;c<l;++c)for(i=0,f=a[c];i<o;++i)if((u=r[i]).type===f.type&&u.name===f.name)return f.value}return}for(a=n?we:ye,i=0;i<o;++i)this.each(a(r[i],n,e));return this}function zt(t,n,e){var r=yt(t),i=r.CustomEvent;typeof i=="function"?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}function Ae(t,n){return function(){return zt(this,t,n)}}function be(t,n){return function(){return zt(this,t,n.apply(this,arguments))}}function ze(t,n){return this.each((typeof n=="function"?be:Ae)(t,n))}function*Ee(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length,u;i<o;++i)(u=r[i])&&(yield u)}var Et=[null];function S(t,n){this._groups=t,this._parents=n}function St(){return new S([[document.documentElement]],Et)}function Se(){return this}S.prototype=St.prototype={constructor:S,select:Jt,selectAll:nn,selectChild:un,selectChildren:hn,filter:ln,data:gn,enter:fn,exit:yn,join:wn,merge:xn,selection:Se,order:An,sort:bn,call:En,nodes:Sn,node:kn,size:Tn,empty:Cn,each:Mn,attr:Yn,style:On,property:Gn,classed:$n,text:Zn,html:re,raise:oe,lower:se,append:ae,insert:he,remove:fe,clone:ve,datum:_e,on:xe,dispatch:ze,[Symbol.iterator]:Ee};var H=St;function U(t){return typeof t=="string"?new S([[document.querySelector(t)]],[document.documentElement]):new S([[t]],Et)}function ke(t){let n;for(;n=t.sourceEvent;)t=n;return t}function R(t,n){if(t=ke(t),n===void 0&&(n=t.currentTarget),n){var e=n.ownerSVGElement||n;if(e.createSVGPoint){var r=e.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r=r.matrixTransform(n.getScreenCTM().inverse()),[r.x,r.y]}if(n.getBoundingClientRect){var i=n.getBoundingClientRect();return[t.clientX-i.left-n.clientLeft,t.clientY-i.top-n.clientTop]}}return[t.pageX,t.pageY]}const Te={passive:!1},F={capture:!0,passive:!1};function Ce(t){t.stopImmediatePropagation()}function J(t){t.preventDefault(),t.stopImmediatePropagation()}function kt(t){var n=t.document.documentElement,e=U(t).on("dragstart.drag",J,F);"onselectstart"in n?e.on("selectstart.drag",J,F):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}function Tt(t,n){var e=t.document.documentElement,r=U(t).on("dragstart.drag",null);n&&(r.on("click.drag",J,F),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in e?r.on("selectstart.drag",null):(e.style.MozUserSelect=e.__noselect,delete e.__noselect)}function Ct(t,n,e){var r=new Kt;return n=n==null?0:+n,r.restart(i=>{r.stop(),t(i+n)},n,e),r}var Me=lt("start","end","cancel","interrupt"),Ne=[];function Q(t,n,e,r,i,o){var u=t.__transition;if(!u)t.__transition={};else if(e in u)return;Pe(t,e,{name:n,index:r,group:i,on:Me,tween:Ne,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function ot(t,n){var e=M(t,n);if(e.state>0)throw Error("too late; already scheduled");return e}function P(t,n){var e=M(t,n);if(e.state>3)throw Error("too late; already running");return e}function M(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw Error("transition not found");return e}function Pe(t,n,e){var r=t.__transition,i;r[n]=e,e.timer=Gt(o,0,e.time);function o(l){e.state=1,e.timer.restart(u,e.delay,e.time),e.delay<=l&&u(l-e.delay)}function u(l){var f,x,d,_;if(e.state!==1)return c();for(f in r)if(_=r[f],_.name===e.name){if(_.state===3)return Ct(u);_.state===4?(_.state=6,_.timer.stop(),_.on.call("interrupt",t,t.__data__,_.index,_.group),delete r[f]):+f<n&&(_.state=6,_.timer.stop(),_.on.call("cancel",t,t.__data__,_.index,_.group),delete r[f])}if(Ct(function(){e.state===3&&(e.state=4,e.timer.restart(a,e.delay,e.time),a(l))}),e.state=2,e.on.call("start",t,t.__data__,e.index,e.group),e.state===2){for(e.state=3,i=Array(d=e.tween.length),f=0,x=-1;f<d;++f)(_=e.tween[f].value.call(t,t.__data__,e.index,e.group))&&(i[++x]=_);i.length=x+1}}function a(l){for(var f=l<e.duration?e.ease.call(null,l/e.duration):(e.timer.restart(c),e.state=5,1),x=-1,d=i.length;++x<d;)i[x].call(t,f);e.state===5&&(e.on.call("end",t,t.__data__,e.index,e.group),c())}function c(){for(var l in e.state=6,e.timer.stop(),delete r[n],r)return;delete t.__transition}}function Z(t,n){var e=t.__transition,r,i,o=!0,u;if(e){for(u in n=n==null?null:n+"",e){if((r=e[u]).name!==n){o=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete e[u]}o&&delete t.__transition}}function Be(t){return this.each(function(){Z(this,t)})}function Ve(t,n){var e,r;return function(){var i=P(this,t),o=i.tween;if(o!==e){r=e=o;for(var u=0,a=r.length;u<a;++u)if(r[u].name===n){r=r.slice(),r.splice(u,1);break}}i.tween=r}}function De(t,n,e){var r,i;if(typeof e!="function")throw Error();return function(){var o=P(this,t),u=o.tween;if(u!==r){i=(r=u).slice();for(var a={name:n,value:e},c=0,l=i.length;c<l;++c)if(i[c].name===n){i[c]=a;break}c===l&&i.push(a)}o.tween=i}}function Xe(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r=M(this.node(),e).tween,i=0,o=r.length,u;i<o;++i)if((u=r[i]).name===t)return u.value;return null}return this.each((n==null?Ve:De)(e,t,n))}function ut(t,n,e){var r=t._id;return t.each(function(){var i=P(this,r);(i.value||(i.value={}))[n]=e.apply(this,arguments)}),function(i){return M(i,r).value[n]}}function Mt(t,n){var e;return(typeof n=="number"?jt:n instanceof ht?ft:(e=ht(n))?(n=e,ft):Ot)(t,n)}function Ye(t){return function(){this.removeAttribute(t)}}function Le(t){return function(){this.removeAttributeNS(t.space,t.local)}}function qe(t,n,e){var r,i=e+"",o;return function(){var u=this.getAttribute(t);return u===i?null:u===r?o:o=n(r=u,e)}}function Ie(t,n,e){var r,i=e+"",o;return function(){var u=this.getAttributeNS(t.space,t.local);return u===i?null:u===r?o:o=n(r=u,e)}}function Oe(t,n,e){var r,i,o;return function(){var u,a=e(this),c;return a==null?void this.removeAttribute(t):(u=this.getAttribute(t),c=a+"",u===c?null:u===r&&c===i?o:(i=c,o=n(r=u,a)))}}function Ue(t,n,e){var r,i,o;return function(){var u,a=e(this),c;return a==null?void this.removeAttributeNS(t.space,t.local):(u=this.getAttributeNS(t.space,t.local),c=a+"",u===c?null:u===r&&c===i?o:(i=c,o=n(r=u,a)))}}function Re(t,n){var e=W(t),r=e==="transform"?Ut:Mt;return this.attrTween(t,typeof n=="function"?(e.local?Ue:Oe)(e,r,ut(this,"attr."+t,n)):n==null?(e.local?Le:Ye)(e):(e.local?Ie:qe)(e,r,n))}function je(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}function Ge(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}function He(t,n){var e,r;function i(){var o=n.apply(this,arguments);return o!==r&&(e=(r=o)&&Ge(t,o)),e}return i._value=n,i}function Ke(t,n){var e,r;function i(){var o=n.apply(this,arguments);return o!==r&&(e=(r=o)&&je(t,o)),e}return i._value=n,i}function We(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(n==null)return this.tween(e,null);if(typeof n!="function")throw Error();var r=W(t);return this.tween(e,(r.local?He:Ke)(r,n))}function $e(t,n){return function(){ot(this,t).delay=+n.apply(this,arguments)}}function Fe(t,n){return n=+n,function(){ot(this,t).delay=n}}function Je(t){var n=this._id;return arguments.length?this.each((typeof t=="function"?$e:Fe)(n,t)):M(this.node(),n).delay}function Qe(t,n){return function(){P(this,t).duration=+n.apply(this,arguments)}}function Ze(t,n){return n=+n,function(){P(this,t).duration=n}}function tr(t){var n=this._id;return arguments.length?this.each((typeof t=="function"?Qe:Ze)(n,t)):M(this.node(),n).duration}function nr(t,n){if(typeof n!="function")throw Error();return function(){P(this,t).ease=n}}function er(t){var n=this._id;return arguments.length?this.each(nr(n,t)):M(this.node(),n).ease}function rr(t,n){return function(){var e=n.apply(this,arguments);if(typeof e!="function")throw Error();P(this,t).ease=e}}function ir(t){if(typeof t!="function")throw Error();return this.each(rr(this._id,t))}function or(t){typeof t!="function"&&(t=_t(t));for(var n=this._groups,e=n.length,r=Array(e),i=0;i<e;++i)for(var o=n[i],u=o.length,a=r[i]=[],c,l=0;l<u;++l)(c=o[l])&&t.call(c,c.__data__,l,o)&&a.push(c);return new Y(r,this._parents,this._name,this._id)}function ur(t){if(t._id!==this._id)throw Error();for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),u=Array(r),a=0;a<o;++a)for(var c=n[a],l=e[a],f=c.length,x=u[a]=Array(f),d,_=0;_<f;++_)(d=c[_]||l[_])&&(x[_]=d);for(;a<r;++a)u[a]=n[a];return new Y(u,this._parents,this._name,this._id)}function sr(t){return(t+"").trim().split(/^|\s+/).every(function(n){var e=n.indexOf(".");return e>=0&&(n=n.slice(0,e)),!n||n==="start"})}function ar(t,n,e){var r,i,o=sr(n)?ot:P;return function(){var u=o(this,t),a=u.on;a!==r&&(i=(r=a).copy()).on(n,e),u.on=i}}function cr(t,n){var e=this._id;return arguments.length<2?M(this.node(),e).on.on(t):this.each(ar(e,t,n))}function hr(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}function lr(){return this.on("end.remove",hr(this._id))}function fr(t){var n=this._name,e=this._id;typeof t!="function"&&(t=rt(t));for(var r=this._groups,i=r.length,o=Array(i),u=0;u<i;++u)for(var a=r[u],c=a.length,l=o[u]=Array(c),f,x,d=0;d<c;++d)(f=a[d])&&(x=t.call(f,f.__data__,d,a))&&("__data__"in f&&(x.__data__=f.__data__),l[d]=x,Q(l[d],n,e,d,l,M(f,e)));return new Y(o,this._parents,n,e)}function pr(t){var n=this._name,e=this._id;typeof t!="function"&&(t=vt(t));for(var r=this._groups,i=r.length,o=[],u=[],a=0;a<i;++a)for(var c=r[a],l=c.length,f,x=0;x<l;++x)if(f=c[x]){for(var d=t.call(f,f.__data__,x,c),_,E=M(f,e),k=0,I=d.length;k<I;++k)(_=d[k])&&Q(_,n,e,k,d,E);o.push(d),u.push(f)}return new Y(o,u,n,e)}var mr=H.prototype.constructor;function vr(){return new mr(this._groups,this._parents)}function _r(t,n){var e,r,i;return function(){var o=G(this,t),u=(this.style.removeProperty(t),G(this,t));return o===u?null:o===e&&u===r?i:i=n(e=o,r=u)}}function Nt(t){return function(){this.style.removeProperty(t)}}function gr(t,n,e){var r,i=e+"",o;return function(){var u=G(this,t);return u===i?null:u===r?o:o=n(r=u,e)}}function dr(t,n,e){var r,i,o;return function(){var u=G(this,t),a=e(this),c=a+"";return a??(c=a=(this.style.removeProperty(t),G(this,t))),u===c?null:u===r&&c===i?o:(i=c,o=n(r=u,a))}}function yr(t,n){var e,r,i,o="style."+n,u="end."+o,a;return function(){var c=P(this,t),l=c.on,f=c.value[o]==null?a||(a=Nt(n)):void 0;(l!==e||i!==f)&&(r=(e=l).copy()).on(u,i=f),c.on=r}}function wr(t,n,e){var r=(t+="")=="transform"?It:Mt;return n==null?this.styleTween(t,_r(t,r)).on("end.style."+t,Nt(t)):typeof n=="function"?this.styleTween(t,dr(t,r,ut(this,"style."+t,n))).each(yr(this._id,t)):this.styleTween(t,gr(t,r,n),e).on("end.style."+t,null)}function xr(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}function Ar(t,n,e){var r,i;function o(){var u=n.apply(this,arguments);return u!==i&&(r=(i=u)&&xr(t,u,e)),r}return o._value=n,o}function br(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(n==null)return this.tween(r,null);if(typeof n!="function")throw Error();return this.tween(r,Ar(t,n,e??""))}function zr(t){return function(){this.textContent=t}}function Er(t){return function(){this.textContent=t(this)??""}}function Sr(t){return this.tween("text",typeof t=="function"?Er(ut(this,"text",t)):zr(t==null?"":t+""))}function kr(t){return function(n){this.textContent=t.call(this,n)}}function Tr(t){var n,e;function r(){var i=t.apply(this,arguments);return i!==e&&(n=(e=i)&&kr(i)),n}return r._value=t,r}function Cr(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw Error();return this.tween(n,Tr(t))}function Mr(){for(var t=this._name,n=this._id,e=Pt(),r=this._groups,i=r.length,o=0;o<i;++o)for(var u=r[o],a=u.length,c,l=0;l<a;++l)if(c=u[l]){var f=M(c,n);Q(c,t,e,l,u,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new Y(r,this._parents,t,e)}function Nr(){var t,n,e=this,r=e._id,i=e.size();return new Promise(function(o,u){var a={value:u},c={value:function(){--i===0&&o()}};e.each(function(){var l=P(this,r),f=l.on;f!==t&&(n=(t=f).copy(),n._.cancel.push(a),n._.interrupt.push(a),n._.end.push(c)),l.on=n}),i===0&&o()})}var Pr=0;function Y(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function Br(t){return H().transition(t)}function Pt(){return++Pr}var L=H.prototype;Y.prototype=Br.prototype={constructor:Y,select:fr,selectAll:pr,selectChild:L.selectChild,selectChildren:L.selectChildren,filter:or,merge:ur,selection:vr,transition:Mr,call:L.call,nodes:L.nodes,node:L.node,size:L.size,empty:L.empty,each:L.each,on:cr,attr:Re,attrTween:We,style:wr,styleTween:br,text:Sr,textTween:Cr,remove:lr,tween:Xe,delay:Je,duration:tr,ease:er,easeVarying:ir,end:Nr,[Symbol.iterator]:L[Symbol.iterator]};function Vr(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Dr={time:null,delay:0,duration:250,ease:Vr};function Xr(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))throw Error(`transition ${n} not found`);return e}function Yr(t){var n,e;t instanceof Y?(n=t._id,t=t._name):(n=Pt(),(e=Dr).time=Rt(),t=t==null?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var u=r[o],a=u.length,c,l=0;l<a;++l)(c=u[l])&&Q(c,t,n,l,u,e||Xr(c,n));return new Y(r,this._parents,t,n)}H.prototype.interrupt=Be,H.prototype.transition=Yr;var tt=t=>()=>t;function Lr(t,{sourceEvent:n,target:e,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:e,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function q(t,n,e){this.k=t,this.x=n,this.y=e}q.prototype={constructor:q,scale:function(t){return t===1?this:new q(this.k*t,this.x,this.y)},translate:function(t,n){return t===0&n===0?this:new q(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var nt=new q(1,0,0);qr.prototype=q.prototype;function qr(t){for(;!t.__zoom;)if(!(t=t.parentNode))return nt;return t.__zoom}function st(t){t.stopImmediatePropagation()}function K(t){t.preventDefault(),t.stopImmediatePropagation()}function Ir(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function Or(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function Bt(){return this.__zoom||nt}function Ur(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Rr(){return navigator.maxTouchPoints||"ontouchstart"in this}function jr(t,n,e){var r=t.invertX(n[0][0])-e[0][0],i=t.invertX(n[1][0])-e[1][0],o=t.invertY(n[0][1])-e[0][1],u=t.invertY(n[1][1])-e[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),u>o?(o+u)/2:Math.min(0,o)||Math.max(0,u))}function Gr(){var t=Ir,n=Or,e=jr,r=Ur,i=Rr,o=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],a=250,c=Ht,l=lt("start","zoom","end"),f,x,d,_=500,E=150,k=0,I=10;function v(s){s.property("__zoom",Bt).on("wheel.zoom",Vt,{passive:!1}).on("mousedown.zoom",Dt).on("dblclick.zoom",Xt).filter(i).on("touchstart.zoom",Yt).on("touchmove.zoom",Lt).on("touchend.zoom touchcancel.zoom",qt).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}v.transform=function(s,p,h,m){var g=s.selection?s.selection():s;g.property("__zoom",Bt),s===g?g.interrupt().each(function(){V(this,arguments).event(m).start().zoom(null,typeof p=="function"?p.apply(this,arguments):p).end()}):at(s,p,h,m)},v.scaleBy=function(s,p,h,m){v.scaleTo(s,function(){return this.__zoom.k*(typeof p=="function"?p.apply(this,arguments):p)},h,m)},v.scaleTo=function(s,p,h,m){v.transform(s,function(){var g=n.apply(this,arguments),w=this.__zoom,y=h==null?j(g):typeof h=="function"?h.apply(this,arguments):h,A=w.invert(y),b=typeof p=="function"?p.apply(this,arguments):p;return e(O(B(w,b),y,A),g,u)},h,m)},v.translateBy=function(s,p,h,m){v.transform(s,function(){return e(this.__zoom.translate(typeof p=="function"?p.apply(this,arguments):p,typeof h=="function"?h.apply(this,arguments):h),n.apply(this,arguments),u)},null,m)},v.translateTo=function(s,p,h,m,g){v.transform(s,function(){var w=n.apply(this,arguments),y=this.__zoom,A=m==null?j(w):typeof m=="function"?m.apply(this,arguments):m;return e(nt.translate(A[0],A[1]).scale(y.k).translate(typeof p=="function"?-p.apply(this,arguments):-p,typeof h=="function"?-h.apply(this,arguments):-h),w,u)},m,g)};function B(s,p){return p=Math.max(o[0],Math.min(o[1],p)),p===s.k?s:new q(p,s.x,s.y)}function O(s,p,h){var m=p[0]-h[0]*s.k,g=p[1]-h[1]*s.k;return m===s.x&&g===s.y?s:new q(s.k,m,g)}function j(s){return[(+s[0][0]+ +s[1][0])/2,(+s[0][1]+ +s[1][1])/2]}function at(s,p,h,m){s.on("start.zoom",function(){V(this,arguments).event(m).start()}).on("interrupt.zoom end.zoom",function(){V(this,arguments).event(m).end()}).tween("zoom",function(){var g=this,w=arguments,y=V(g,w).event(m),A=n.apply(g,w),b=h==null?j(A):typeof h=="function"?h.apply(g,w):h,N=Math.max(A[1][0]-A[0][0],A[1][1]-A[0][1]),z=g.__zoom,T=typeof p=="function"?p.apply(g,w):p,D=c(z.invert(b).concat(N/z.k),T.invert(b).concat(N/T.k));return function(C){if(C===1)C=T;else{var X=D(C),et=N/X[2];C=new q(et,b[0]-X[0]*et,b[1]-X[1]*et)}y.zoom(null,C)}})}function V(s,p,h){return!h&&s.__zooming||new ct(s,p)}function ct(s,p){this.that=s,this.args=p,this.active=0,this.sourceEvent=null,this.extent=n.apply(s,p),this.taps=0}ct.prototype={event:function(s){return s&&(this.sourceEvent=s),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(s,p){return this.mouse&&s!=="mouse"&&(this.mouse[1]=p.invert(this.mouse[0])),this.touch0&&s!=="touch"&&(this.touch0[1]=p.invert(this.touch0[0])),this.touch1&&s!=="touch"&&(this.touch1[1]=p.invert(this.touch1[0])),this.that.__zoom=p,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(s){var p=U(this.that).datum();l.call(s,this.that,new Lr(s,{sourceEvent:this.sourceEvent,target:v,type:s,transform:this.that.__zoom,dispatch:l}),p)}};function Vt(s,...p){if(!t.apply(this,arguments))return;var h=V(this,p).event(s),m=this.__zoom,g=Math.max(o[0],Math.min(o[1],m.k*2**r.apply(this,arguments))),w=R(s);if(h.wheel)(h.mouse[0][0]!==w[0]||h.mouse[0][1]!==w[1])&&(h.mouse[1]=m.invert(h.mouse[0]=w)),clearTimeout(h.wheel);else{if(m.k===g)return;h.mouse=[w,m.invert(w)],Z(this),h.start()}K(s),h.wheel=setTimeout(y,E),h.zoom("mouse",e(O(B(m,g),h.mouse[0],h.mouse[1]),h.extent,u));function y(){h.wheel=null,h.end()}}function Dt(s,...p){if(d||!t.apply(this,arguments))return;var h=s.currentTarget,m=V(this,p,!0).event(s),g=U(s.view).on("mousemove.zoom",b,!0).on("mouseup.zoom",N,!0),w=R(s,h),y=s.clientX,A=s.clientY;kt(s.view),st(s),m.mouse=[w,this.__zoom.invert(w)],Z(this),m.start();function b(z){if(K(z),!m.moved){var T=z.clientX-y,D=z.clientY-A;m.moved=T*T+D*D>k}m.event(z).zoom("mouse",e(O(m.that.__zoom,m.mouse[0]=R(z,h),m.mouse[1]),m.extent,u))}function N(z){g.on("mousemove.zoom mouseup.zoom",null),Tt(z.view,m.moved),K(z),m.event(z).end()}}function Xt(s,...p){if(t.apply(this,arguments)){var h=this.__zoom,m=R(s.changedTouches?s.changedTouches[0]:s,this),g=h.invert(m),w=h.k*(s.shiftKey?.5:2),y=e(O(B(h,w),m,g),n.apply(this,p),u);K(s),a>0?U(this).transition().duration(a).call(at,y,m,s):U(this).call(v.transform,y,m,s)}}function Yt(s,...p){if(t.apply(this,arguments)){var h=s.touches,m=h.length,g=V(this,p,s.changedTouches.length===m).event(s),w,y,A,b;for(st(s),y=0;y<m;++y)A=h[y],b=R(A,this),b=[b,this.__zoom.invert(b),A.identifier],g.touch0?!g.touch1&&g.touch0[2]!==b[2]&&(g.touch1=b,g.taps=0):(g.touch0=b,w=!0,g.taps=1+!!f);f&&(f=clearTimeout(f)),w&&(g.taps<2&&(x=b[0],f=setTimeout(function(){f=null},_)),Z(this),g.start())}}function Lt(s,...p){if(this.__zooming){var h=V(this,p).event(s),m=s.changedTouches,g=m.length,w,y,A,b;for(K(s),w=0;w<g;++w)y=m[w],A=R(y,this),h.touch0&&h.touch0[2]===y.identifier?h.touch0[0]=A:h.touch1&&h.touch1[2]===y.identifier&&(h.touch1[0]=A);if(y=h.that.__zoom,h.touch1){var N=h.touch0[0],z=h.touch0[1],T=h.touch1[0],D=h.touch1[1],C=(C=T[0]-N[0])*C+(C=T[1]-N[1])*C,X=(X=D[0]-z[0])*X+(X=D[1]-z[1])*X;y=B(y,Math.sqrt(C/X)),A=[(N[0]+T[0])/2,(N[1]+T[1])/2],b=[(z[0]+D[0])/2,(z[1]+D[1])/2]}else if(h.touch0)A=h.touch0[0],b=h.touch0[1];else return;h.zoom("touch",e(O(y,A,b),h.extent,u))}}function qt(s,...p){if(this.__zooming){var h=V(this,p).event(s),m=s.changedTouches,g=m.length,w,y;for(st(s),d&&clearTimeout(d),d=setTimeout(function(){d=null},_),w=0;w<g;++w)y=m[w],h.touch0&&h.touch0[2]===y.identifier?delete h.touch0:h.touch1&&h.touch1[2]===y.identifier&&delete h.touch1;if(h.touch1&&!h.touch0&&(h.touch0=h.touch1,delete h.touch1),h.touch0)h.touch0[1]=this.__zoom.invert(h.touch0[0]);else if(h.end(),h.taps===2&&(y=R(y,this),Math.hypot(x[0]-y[0],x[1]-y[1])<I)){var A=U(this).on("dblclick.zoom");A&&A.apply(this,arguments)}}}return v.wheelDelta=function(s){return arguments.length?(r=typeof s=="function"?s:tt(+s),v):r},v.filter=function(s){return arguments.length?(t=typeof s=="function"?s:tt(!!s),v):t},v.touchable=function(s){return arguments.length?(i=typeof s=="function"?s:tt(!!s),v):i},v.extent=function(s){return arguments.length?(n=typeof s=="function"?s:tt([[+s[0][0],+s[0][1]],[+s[1][0],+s[1][1]]]),v):n},v.scaleExtent=function(s){return arguments.length?(o[0]=+s[0],o[1]=+s[1],v):[o[0],o[1]]},v.translateExtent=function(s){return arguments.length?(u[0][0]=+s[0][0],u[1][0]=+s[1][0],u[0][1]=+s[0][1],u[1][1]=+s[1][1],v):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},v.constrain=function(s){return arguments.length?(e=s,v):e},v.duration=function(s){return arguments.length?(a=+s,v):a},v.interpolate=function(s){return arguments.length?(c=s,v):c},v.on=function(){var s=l.on.apply(l,arguments);return s===l?v:s},v.clickDistance=function(s){return arguments.length?(k=(s=+s)*s,v):Math.sqrt(k)},v.tapDistance=function(s){return arguments.length?(I=+s,v):I},v}export{J as a,Ce as c,Tt as i,R as l,nt as n,Te as o,kt as r,F as s,Gr as t,U as u};
1
+ import{_ as ht,b as lt,c as It,f as Ot,l as Ut,m as ft,n as Rt,p as jt,r as Gt,s as Ht,t as Kt}from"./timer-B6DpdVnC.js";var pt={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function W(t){var n=t+="",e=n.indexOf(":");return e>=0&&(n=t.slice(0,e))!=="xmlns"&&(t=t.slice(e+1)),pt.hasOwnProperty(n)?{space:pt[n],local:t}:t}function Wt(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e==="http://www.w3.org/1999/xhtml"&&n.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?n.createElement(t):n.createElementNS(e,t)}}function $t(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function mt(t){var n=W(t);return(n.local?$t:Wt)(n)}function Ft(){}function rt(t){return t==null?Ft:function(){return this.querySelector(t)}}function Jt(t){typeof t!="function"&&(t=rt(t));for(var n=this._groups,e=n.length,r=Array(e),i=0;i<e;++i)for(var o=n[i],u=o.length,a=r[i]=Array(u),c,l,f=0;f<u;++f)(c=o[f])&&(l=t.call(c,c.__data__,f,o))&&("__data__"in c&&(l.__data__=c.__data__),a[f]=l);return new S(r,this._parents)}function Qt(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Zt(){return[]}function vt(t){return t==null?Zt:function(){return this.querySelectorAll(t)}}function tn(t){return function(){return Qt(t.apply(this,arguments))}}function nn(t){t=typeof t=="function"?tn(t):vt(t);for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var u=n[o],a=u.length,c,l=0;l<a;++l)(c=u[l])&&(r.push(t.call(c,c.__data__,l,u)),i.push(c));return new S(r,i)}function _t(t){return function(){return this.matches(t)}}function gt(t){return function(n){return n.matches(t)}}var en=Array.prototype.find;function rn(t){return function(){return en.call(this.children,t)}}function on(){return this.firstElementChild}function un(t){return this.select(t==null?on:rn(typeof t=="function"?t:gt(t)))}var sn=Array.prototype.filter;function an(){return Array.from(this.children)}function cn(t){return function(){return sn.call(this.children,t)}}function hn(t){return this.selectAll(t==null?an:cn(typeof t=="function"?t:gt(t)))}function ln(t){typeof t!="function"&&(t=_t(t));for(var n=this._groups,e=n.length,r=Array(e),i=0;i<e;++i)for(var o=n[i],u=o.length,a=r[i]=[],c,l=0;l<u;++l)(c=o[l])&&t.call(c,c.__data__,l,o)&&a.push(c);return new S(r,this._parents)}function dt(t){return Array(t.length)}function fn(){return new S(this._enter||this._groups.map(dt),this._parents)}function $(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}$.prototype={constructor:$,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function pn(t){return function(){return t}}function mn(t,n,e,r,i,o){for(var u=0,a,c=n.length,l=o.length;u<l;++u)(a=n[u])?(a.__data__=o[u],r[u]=a):e[u]=new $(t,o[u]);for(;u<c;++u)(a=n[u])&&(i[u]=a)}function vn(t,n,e,r,i,o,u){var a,c,l=new Map,f=n.length,x=o.length,d=Array(f),_;for(a=0;a<f;++a)(c=n[a])&&(d[a]=_=u.call(c,c.__data__,a,n)+"",l.has(_)?i[a]=c:l.set(_,c));for(a=0;a<x;++a)_=u.call(t,o[a],a,o)+"",(c=l.get(_))?(r[a]=c,c.__data__=o[a],l.delete(_)):e[a]=new $(t,o[a]);for(a=0;a<f;++a)(c=n[a])&&l.get(d[a])===c&&(i[a]=c)}function _n(t){return t.__data__}function gn(t,n){if(!arguments.length)return Array.from(this,_n);var e=n?vn:mn,r=this._parents,i=this._groups;typeof t!="function"&&(t=pn(t));for(var o=i.length,u=Array(o),a=Array(o),c=Array(o),l=0;l<o;++l){var f=r[l],x=i[l],d=x.length,_=dn(t.call(f,f&&f.__data__,l,r)),E=_.length,k=a[l]=Array(E),I=u[l]=Array(E);e(f,x,k,I,c[l]=Array(d),_,n);for(var v=0,B=0,O,j;v<E;++v)if(O=k[v]){for(v>=B&&(B=v+1);!(j=I[B])&&++B<E;);O._next=j||null}}return u=new S(u,r),u._enter=a,u._exit=c,u}function dn(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function yn(){return new S(this._exit||this._groups.map(dt),this._parents)}function wn(t,n,e){var r=this.enter(),i=this,o=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),n!=null&&(i=n(i),i&&(i=i.selection())),e==null?o.remove():e(o),r&&i?r.merge(i).order():i}function xn(t){for(var n=t.selection?t.selection():t,e=this._groups,r=n._groups,i=e.length,o=r.length,u=Math.min(i,o),a=Array(i),c=0;c<u;++c)for(var l=e[c],f=r[c],x=l.length,d=a[c]=Array(x),_,E=0;E<x;++E)(_=l[E]||f[E])&&(d[E]=_);for(;c<i;++c)a[c]=e[c];return new S(a,this._parents)}function An(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r=t[n],i=r.length-1,o=r[i],u;--i>=0;)(u=r[i])&&(o&&u.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(u,o),o=u);return this}function bn(t){t||(t=zn);function n(x,d){return x&&d?t(x.__data__,d.__data__):!x-!d}for(var e=this._groups,r=e.length,i=Array(r),o=0;o<r;++o){for(var u=e[o],a=u.length,c=i[o]=Array(a),l,f=0;f<a;++f)(l=u[f])&&(c[f]=l);c.sort(n)}return new S(i,this._parents).order()}function zn(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function En(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Sn(){return Array.from(this)}function kn(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length;i<o;++i){var u=r[i];if(u)return u}return null}function Tn(){let t=0;for(let n of this)++t;return t}function Cn(){return!this.node()}function Mn(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i=n[e],o=0,u=i.length,a;o<u;++o)(a=i[o])&&t.call(a,a.__data__,o,i);return this}function Nn(t){return function(){this.removeAttribute(t)}}function Pn(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Bn(t,n){return function(){this.setAttribute(t,n)}}function Vn(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function Dn(t,n){return function(){var e=n.apply(this,arguments);e==null?this.removeAttribute(t):this.setAttribute(t,e)}}function Xn(t,n){return function(){var e=n.apply(this,arguments);e==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function Yn(t,n){var e=W(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((n==null?e.local?Pn:Nn:typeof n=="function"?e.local?Xn:Dn:e.local?Vn:Bn)(e,n))}function yt(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Ln(t){return function(){this.style.removeProperty(t)}}function qn(t,n,e){return function(){this.style.setProperty(t,n,e)}}function In(t,n,e){return function(){var r=n.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function On(t,n,e){return arguments.length>1?this.each((n==null?Ln:typeof n=="function"?In:qn)(t,n,e??"")):G(this.node(),t)}function G(t,n){return t.style.getPropertyValue(n)||yt(t).getComputedStyle(t,null).getPropertyValue(n)}function Un(t){return function(){delete this[t]}}function Rn(t,n){return function(){this[t]=n}}function jn(t,n){return function(){var e=n.apply(this,arguments);e==null?delete this[t]:this[t]=e}}function Gn(t,n){return arguments.length>1?this.each((n==null?Un:typeof n=="function"?jn:Rn)(t,n)):this.node()[t]}function wt(t){return t.trim().split(/^|\s+/)}function it(t){return t.classList||new xt(t)}function xt(t){this._node=t,this._names=wt(t.getAttribute("class")||"")}xt.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function At(t,n){for(var e=it(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function bt(t,n){for(var e=it(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function Hn(t){return function(){At(this,t)}}function Kn(t){return function(){bt(this,t)}}function Wn(t,n){return function(){(n.apply(this,arguments)?At:bt)(this,t)}}function $n(t,n){var e=wt(t+"");if(arguments.length<2){for(var r=it(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each((typeof n=="function"?Wn:n?Hn:Kn)(e,n))}function Fn(){this.textContent=""}function Jn(t){return function(){this.textContent=t}}function Qn(t){return function(){this.textContent=t.apply(this,arguments)??""}}function Zn(t){return arguments.length?this.each(t==null?Fn:(typeof t=="function"?Qn:Jn)(t)):this.node().textContent}function te(){this.innerHTML=""}function ne(t){return function(){this.innerHTML=t}}function ee(t){return function(){this.innerHTML=t.apply(this,arguments)??""}}function re(t){return arguments.length?this.each(t==null?te:(typeof t=="function"?ee:ne)(t)):this.node().innerHTML}function ie(){this.nextSibling&&this.parentNode.appendChild(this)}function oe(){return this.each(ie)}function ue(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function se(){return this.each(ue)}function ae(t){var n=typeof t=="function"?t:mt(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function ce(){return null}function he(t,n){var e=typeof t=="function"?t:mt(t),r=n==null?ce:typeof n=="function"?n:rt(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)})}function le(){var t=this.parentNode;t&&t.removeChild(this)}function fe(){return this.each(le)}function pe(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function me(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function ve(t){return this.select(t?me:pe)}function _e(t){return arguments.length?this.property("__data__",t):this.node().__data__}function ge(t){return function(n){t.call(this,n,this.__data__)}}function de(t){return t.trim().split(/^|\s+/).map(function(n){var e="",r=n.indexOf(".");return r>=0&&(e=n.slice(r+1),n=n.slice(0,r)),{type:n,name:e}})}function ye(t){return function(){var n=this.__on;if(n){for(var e=0,r=-1,i=n.length,o;e<i;++e)o=n[e],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):n[++r]=o;++r?n.length=r:delete this.__on}}}function we(t,n,e){return function(){var r=this.__on,i,o=ge(n);if(r){for(var u=0,a=r.length;u<a;++u)if((i=r[u]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=e),i.value=n;return}}this.addEventListener(t.type,o,e),i={type:t.type,name:t.name,value:n,listener:o,options:e},r?r.push(i):this.__on=[i]}}function xe(t,n,e){var r=de(t+""),i,o=r.length,u;if(arguments.length<2){var a=this.node().__on;if(a){for(var c=0,l=a.length,f;c<l;++c)for(i=0,f=a[c];i<o;++i)if((u=r[i]).type===f.type&&u.name===f.name)return f.value}return}for(a=n?we:ye,i=0;i<o;++i)this.each(a(r[i],n,e));return this}function zt(t,n,e){var r=yt(t),i=r.CustomEvent;typeof i=="function"?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}function Ae(t,n){return function(){return zt(this,t,n)}}function be(t,n){return function(){return zt(this,t,n.apply(this,arguments))}}function ze(t,n){return this.each((typeof n=="function"?be:Ae)(t,n))}function*Ee(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length,u;i<o;++i)(u=r[i])&&(yield u)}var Et=[null];function S(t,n){this._groups=t,this._parents=n}function St(){return new S([[document.documentElement]],Et)}function Se(){return this}S.prototype=St.prototype={constructor:S,select:Jt,selectAll:nn,selectChild:un,selectChildren:hn,filter:ln,data:gn,enter:fn,exit:yn,join:wn,merge:xn,selection:Se,order:An,sort:bn,call:En,nodes:Sn,node:kn,size:Tn,empty:Cn,each:Mn,attr:Yn,style:On,property:Gn,classed:$n,text:Zn,html:re,raise:oe,lower:se,append:ae,insert:he,remove:fe,clone:ve,datum:_e,on:xe,dispatch:ze,[Symbol.iterator]:Ee};var H=St;function U(t){return typeof t=="string"?new S([[document.querySelector(t)]],[document.documentElement]):new S([[t]],Et)}function ke(t){let n;for(;n=t.sourceEvent;)t=n;return t}function R(t,n){if(t=ke(t),n===void 0&&(n=t.currentTarget),n){var e=n.ownerSVGElement||n;if(e.createSVGPoint){var r=e.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r=r.matrixTransform(n.getScreenCTM().inverse()),[r.x,r.y]}if(n.getBoundingClientRect){var i=n.getBoundingClientRect();return[t.clientX-i.left-n.clientLeft,t.clientY-i.top-n.clientTop]}}return[t.pageX,t.pageY]}const Te={passive:!1},F={capture:!0,passive:!1};function Ce(t){t.stopImmediatePropagation()}function J(t){t.preventDefault(),t.stopImmediatePropagation()}function kt(t){var n=t.document.documentElement,e=U(t).on("dragstart.drag",J,F);"onselectstart"in n?e.on("selectstart.drag",J,F):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}function Tt(t,n){var e=t.document.documentElement,r=U(t).on("dragstart.drag",null);n&&(r.on("click.drag",J,F),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in e?r.on("selectstart.drag",null):(e.style.MozUserSelect=e.__noselect,delete e.__noselect)}function Ct(t,n,e){var r=new Kt;return n=n==null?0:+n,r.restart(i=>{r.stop(),t(i+n)},n,e),r}var Me=lt("start","end","cancel","interrupt"),Ne=[];function Q(t,n,e,r,i,o){var u=t.__transition;if(!u)t.__transition={};else if(e in u)return;Pe(t,e,{name:n,index:r,group:i,on:Me,tween:Ne,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function ot(t,n){var e=M(t,n);if(e.state>0)throw Error("too late; already scheduled");return e}function P(t,n){var e=M(t,n);if(e.state>3)throw Error("too late; already running");return e}function M(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw Error("transition not found");return e}function Pe(t,n,e){var r=t.__transition,i;r[n]=e,e.timer=Gt(o,0,e.time);function o(l){e.state=1,e.timer.restart(u,e.delay,e.time),e.delay<=l&&u(l-e.delay)}function u(l){var f,x,d,_;if(e.state!==1)return c();for(f in r)if(_=r[f],_.name===e.name){if(_.state===3)return Ct(u);_.state===4?(_.state=6,_.timer.stop(),_.on.call("interrupt",t,t.__data__,_.index,_.group),delete r[f]):+f<n&&(_.state=6,_.timer.stop(),_.on.call("cancel",t,t.__data__,_.index,_.group),delete r[f])}if(Ct(function(){e.state===3&&(e.state=4,e.timer.restart(a,e.delay,e.time),a(l))}),e.state=2,e.on.call("start",t,t.__data__,e.index,e.group),e.state===2){for(e.state=3,i=Array(d=e.tween.length),f=0,x=-1;f<d;++f)(_=e.tween[f].value.call(t,t.__data__,e.index,e.group))&&(i[++x]=_);i.length=x+1}}function a(l){for(var f=l<e.duration?e.ease.call(null,l/e.duration):(e.timer.restart(c),e.state=5,1),x=-1,d=i.length;++x<d;)i[x].call(t,f);e.state===5&&(e.on.call("end",t,t.__data__,e.index,e.group),c())}function c(){for(var l in e.state=6,e.timer.stop(),delete r[n],r)return;delete t.__transition}}function Z(t,n){var e=t.__transition,r,i,o=!0,u;if(e){for(u in n=n==null?null:n+"",e){if((r=e[u]).name!==n){o=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete e[u]}o&&delete t.__transition}}function Be(t){return this.each(function(){Z(this,t)})}function Ve(t,n){var e,r;return function(){var i=P(this,t),o=i.tween;if(o!==e){r=e=o;for(var u=0,a=r.length;u<a;++u)if(r[u].name===n){r=r.slice(),r.splice(u,1);break}}i.tween=r}}function De(t,n,e){var r,i;if(typeof e!="function")throw Error();return function(){var o=P(this,t),u=o.tween;if(u!==r){i=(r=u).slice();for(var a={name:n,value:e},c=0,l=i.length;c<l;++c)if(i[c].name===n){i[c]=a;break}c===l&&i.push(a)}o.tween=i}}function Xe(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r=M(this.node(),e).tween,i=0,o=r.length,u;i<o;++i)if((u=r[i]).name===t)return u.value;return null}return this.each((n==null?Ve:De)(e,t,n))}function ut(t,n,e){var r=t._id;return t.each(function(){var i=P(this,r);(i.value||(i.value={}))[n]=e.apply(this,arguments)}),function(i){return M(i,r).value[n]}}function Mt(t,n){var e;return(typeof n=="number"?jt:n instanceof ht?ft:(e=ht(n))?(n=e,ft):Ot)(t,n)}function Ye(t){return function(){this.removeAttribute(t)}}function Le(t){return function(){this.removeAttributeNS(t.space,t.local)}}function qe(t,n,e){var r,i=e+"",o;return function(){var u=this.getAttribute(t);return u===i?null:u===r?o:o=n(r=u,e)}}function Ie(t,n,e){var r,i=e+"",o;return function(){var u=this.getAttributeNS(t.space,t.local);return u===i?null:u===r?o:o=n(r=u,e)}}function Oe(t,n,e){var r,i,o;return function(){var u,a=e(this),c;return a==null?void this.removeAttribute(t):(u=this.getAttribute(t),c=a+"",u===c?null:u===r&&c===i?o:(i=c,o=n(r=u,a)))}}function Ue(t,n,e){var r,i,o;return function(){var u,a=e(this),c;return a==null?void this.removeAttributeNS(t.space,t.local):(u=this.getAttributeNS(t.space,t.local),c=a+"",u===c?null:u===r&&c===i?o:(i=c,o=n(r=u,a)))}}function Re(t,n){var e=W(t),r=e==="transform"?Ut:Mt;return this.attrTween(t,typeof n=="function"?(e.local?Ue:Oe)(e,r,ut(this,"attr."+t,n)):n==null?(e.local?Le:Ye)(e):(e.local?Ie:qe)(e,r,n))}function je(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}function Ge(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}function He(t,n){var e,r;function i(){var o=n.apply(this,arguments);return o!==r&&(e=(r=o)&&Ge(t,o)),e}return i._value=n,i}function Ke(t,n){var e,r;function i(){var o=n.apply(this,arguments);return o!==r&&(e=(r=o)&&je(t,o)),e}return i._value=n,i}function We(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(n==null)return this.tween(e,null);if(typeof n!="function")throw Error();var r=W(t);return this.tween(e,(r.local?He:Ke)(r,n))}function $e(t,n){return function(){ot(this,t).delay=+n.apply(this,arguments)}}function Fe(t,n){return n=+n,function(){ot(this,t).delay=n}}function Je(t){var n=this._id;return arguments.length?this.each((typeof t=="function"?$e:Fe)(n,t)):M(this.node(),n).delay}function Qe(t,n){return function(){P(this,t).duration=+n.apply(this,arguments)}}function Ze(t,n){return n=+n,function(){P(this,t).duration=n}}function tr(t){var n=this._id;return arguments.length?this.each((typeof t=="function"?Qe:Ze)(n,t)):M(this.node(),n).duration}function nr(t,n){if(typeof n!="function")throw Error();return function(){P(this,t).ease=n}}function er(t){var n=this._id;return arguments.length?this.each(nr(n,t)):M(this.node(),n).ease}function rr(t,n){return function(){var e=n.apply(this,arguments);if(typeof e!="function")throw Error();P(this,t).ease=e}}function ir(t){if(typeof t!="function")throw Error();return this.each(rr(this._id,t))}function or(t){typeof t!="function"&&(t=_t(t));for(var n=this._groups,e=n.length,r=Array(e),i=0;i<e;++i)for(var o=n[i],u=o.length,a=r[i]=[],c,l=0;l<u;++l)(c=o[l])&&t.call(c,c.__data__,l,o)&&a.push(c);return new Y(r,this._parents,this._name,this._id)}function ur(t){if(t._id!==this._id)throw Error();for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),u=Array(r),a=0;a<o;++a)for(var c=n[a],l=e[a],f=c.length,x=u[a]=Array(f),d,_=0;_<f;++_)(d=c[_]||l[_])&&(x[_]=d);for(;a<r;++a)u[a]=n[a];return new Y(u,this._parents,this._name,this._id)}function sr(t){return(t+"").trim().split(/^|\s+/).every(function(n){var e=n.indexOf(".");return e>=0&&(n=n.slice(0,e)),!n||n==="start"})}function ar(t,n,e){var r,i,o=sr(n)?ot:P;return function(){var u=o(this,t),a=u.on;a!==r&&(i=(r=a).copy()).on(n,e),u.on=i}}function cr(t,n){var e=this._id;return arguments.length<2?M(this.node(),e).on.on(t):this.each(ar(e,t,n))}function hr(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}function lr(){return this.on("end.remove",hr(this._id))}function fr(t){var n=this._name,e=this._id;typeof t!="function"&&(t=rt(t));for(var r=this._groups,i=r.length,o=Array(i),u=0;u<i;++u)for(var a=r[u],c=a.length,l=o[u]=Array(c),f,x,d=0;d<c;++d)(f=a[d])&&(x=t.call(f,f.__data__,d,a))&&("__data__"in f&&(x.__data__=f.__data__),l[d]=x,Q(l[d],n,e,d,l,M(f,e)));return new Y(o,this._parents,n,e)}function pr(t){var n=this._name,e=this._id;typeof t!="function"&&(t=vt(t));for(var r=this._groups,i=r.length,o=[],u=[],a=0;a<i;++a)for(var c=r[a],l=c.length,f,x=0;x<l;++x)if(f=c[x]){for(var d=t.call(f,f.__data__,x,c),_,E=M(f,e),k=0,I=d.length;k<I;++k)(_=d[k])&&Q(_,n,e,k,d,E);o.push(d),u.push(f)}return new Y(o,u,n,e)}var mr=H.prototype.constructor;function vr(){return new mr(this._groups,this._parents)}function _r(t,n){var e,r,i;return function(){var o=G(this,t),u=(this.style.removeProperty(t),G(this,t));return o===u?null:o===e&&u===r?i:i=n(e=o,r=u)}}function Nt(t){return function(){this.style.removeProperty(t)}}function gr(t,n,e){var r,i=e+"",o;return function(){var u=G(this,t);return u===i?null:u===r?o:o=n(r=u,e)}}function dr(t,n,e){var r,i,o;return function(){var u=G(this,t),a=e(this),c=a+"";return a??(c=a=(this.style.removeProperty(t),G(this,t))),u===c?null:u===r&&c===i?o:(i=c,o=n(r=u,a))}}function yr(t,n){var e,r,i,o="style."+n,u="end."+o,a;return function(){var c=P(this,t),l=c.on,f=c.value[o]==null?a||(a=Nt(n)):void 0;(l!==e||i!==f)&&(r=(e=l).copy()).on(u,i=f),c.on=r}}function wr(t,n,e){var r=(t+="")=="transform"?It:Mt;return n==null?this.styleTween(t,_r(t,r)).on("end.style."+t,Nt(t)):typeof n=="function"?this.styleTween(t,dr(t,r,ut(this,"style."+t,n))).each(yr(this._id,t)):this.styleTween(t,gr(t,r,n),e).on("end.style."+t,null)}function xr(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}function Ar(t,n,e){var r,i;function o(){var u=n.apply(this,arguments);return u!==i&&(r=(i=u)&&xr(t,u,e)),r}return o._value=n,o}function br(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(n==null)return this.tween(r,null);if(typeof n!="function")throw Error();return this.tween(r,Ar(t,n,e??""))}function zr(t){return function(){this.textContent=t}}function Er(t){return function(){this.textContent=t(this)??""}}function Sr(t){return this.tween("text",typeof t=="function"?Er(ut(this,"text",t)):zr(t==null?"":t+""))}function kr(t){return function(n){this.textContent=t.call(this,n)}}function Tr(t){var n,e;function r(){var i=t.apply(this,arguments);return i!==e&&(n=(e=i)&&kr(i)),n}return r._value=t,r}function Cr(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw Error();return this.tween(n,Tr(t))}function Mr(){for(var t=this._name,n=this._id,e=Pt(),r=this._groups,i=r.length,o=0;o<i;++o)for(var u=r[o],a=u.length,c,l=0;l<a;++l)if(c=u[l]){var f=M(c,n);Q(c,t,e,l,u,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new Y(r,this._parents,t,e)}function Nr(){var t,n,e=this,r=e._id,i=e.size();return new Promise(function(o,u){var a={value:u},c={value:function(){--i===0&&o()}};e.each(function(){var l=P(this,r),f=l.on;f!==t&&(n=(t=f).copy(),n._.cancel.push(a),n._.interrupt.push(a),n._.end.push(c)),l.on=n}),i===0&&o()})}var Pr=0;function Y(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function Br(t){return H().transition(t)}function Pt(){return++Pr}var L=H.prototype;Y.prototype=Br.prototype={constructor:Y,select:fr,selectAll:pr,selectChild:L.selectChild,selectChildren:L.selectChildren,filter:or,merge:ur,selection:vr,transition:Mr,call:L.call,nodes:L.nodes,node:L.node,size:L.size,empty:L.empty,each:L.each,on:cr,attr:Re,attrTween:We,style:wr,styleTween:br,text:Sr,textTween:Cr,remove:lr,tween:Xe,delay:Je,duration:tr,ease:er,easeVarying:ir,end:Nr,[Symbol.iterator]:L[Symbol.iterator]};function Vr(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Dr={time:null,delay:0,duration:250,ease:Vr};function Xr(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))throw Error(`transition ${n} not found`);return e}function Yr(t){var n,e;t instanceof Y?(n=t._id,t=t._name):(n=Pt(),(e=Dr).time=Rt(),t=t==null?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var u=r[o],a=u.length,c,l=0;l<a;++l)(c=u[l])&&Q(c,t,n,l,u,e||Xr(c,n));return new Y(r,this._parents,t,n)}H.prototype.interrupt=Be,H.prototype.transition=Yr;var tt=t=>()=>t;function Lr(t,{sourceEvent:n,target:e,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:e,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function q(t,n,e){this.k=t,this.x=n,this.y=e}q.prototype={constructor:q,scale:function(t){return t===1?this:new q(this.k*t,this.x,this.y)},translate:function(t,n){return t===0&n===0?this:new q(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var nt=new q(1,0,0);qr.prototype=q.prototype;function qr(t){for(;!t.__zoom;)if(!(t=t.parentNode))return nt;return t.__zoom}function st(t){t.stopImmediatePropagation()}function K(t){t.preventDefault(),t.stopImmediatePropagation()}function Ir(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function Or(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function Bt(){return this.__zoom||nt}function Ur(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Rr(){return navigator.maxTouchPoints||"ontouchstart"in this}function jr(t,n,e){var r=t.invertX(n[0][0])-e[0][0],i=t.invertX(n[1][0])-e[1][0],o=t.invertY(n[0][1])-e[0][1],u=t.invertY(n[1][1])-e[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),u>o?(o+u)/2:Math.min(0,o)||Math.max(0,u))}function Gr(){var t=Ir,n=Or,e=jr,r=Ur,i=Rr,o=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],a=250,c=Ht,l=lt("start","zoom","end"),f,x,d,_=500,E=150,k=0,I=10;function v(s){s.property("__zoom",Bt).on("wheel.zoom",Vt,{passive:!1}).on("mousedown.zoom",Dt).on("dblclick.zoom",Xt).filter(i).on("touchstart.zoom",Yt).on("touchmove.zoom",Lt).on("touchend.zoom touchcancel.zoom",qt).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}v.transform=function(s,p,h,m){var g=s.selection?s.selection():s;g.property("__zoom",Bt),s===g?g.interrupt().each(function(){V(this,arguments).event(m).start().zoom(null,typeof p=="function"?p.apply(this,arguments):p).end()}):at(s,p,h,m)},v.scaleBy=function(s,p,h,m){v.scaleTo(s,function(){return this.__zoom.k*(typeof p=="function"?p.apply(this,arguments):p)},h,m)},v.scaleTo=function(s,p,h,m){v.transform(s,function(){var g=n.apply(this,arguments),w=this.__zoom,y=h==null?j(g):typeof h=="function"?h.apply(this,arguments):h,A=w.invert(y),b=typeof p=="function"?p.apply(this,arguments):p;return e(O(B(w,b),y,A),g,u)},h,m)},v.translateBy=function(s,p,h,m){v.transform(s,function(){return e(this.__zoom.translate(typeof p=="function"?p.apply(this,arguments):p,typeof h=="function"?h.apply(this,arguments):h),n.apply(this,arguments),u)},null,m)},v.translateTo=function(s,p,h,m,g){v.transform(s,function(){var w=n.apply(this,arguments),y=this.__zoom,A=m==null?j(w):typeof m=="function"?m.apply(this,arguments):m;return e(nt.translate(A[0],A[1]).scale(y.k).translate(typeof p=="function"?-p.apply(this,arguments):-p,typeof h=="function"?-h.apply(this,arguments):-h),w,u)},m,g)};function B(s,p){return p=Math.max(o[0],Math.min(o[1],p)),p===s.k?s:new q(p,s.x,s.y)}function O(s,p,h){var m=p[0]-h[0]*s.k,g=p[1]-h[1]*s.k;return m===s.x&&g===s.y?s:new q(s.k,m,g)}function j(s){return[(+s[0][0]+ +s[1][0])/2,(+s[0][1]+ +s[1][1])/2]}function at(s,p,h,m){s.on("start.zoom",function(){V(this,arguments).event(m).start()}).on("interrupt.zoom end.zoom",function(){V(this,arguments).event(m).end()}).tween("zoom",function(){var g=this,w=arguments,y=V(g,w).event(m),A=n.apply(g,w),b=h==null?j(A):typeof h=="function"?h.apply(g,w):h,N=Math.max(A[1][0]-A[0][0],A[1][1]-A[0][1]),z=g.__zoom,T=typeof p=="function"?p.apply(g,w):p,D=c(z.invert(b).concat(N/z.k),T.invert(b).concat(N/T.k));return function(C){if(C===1)C=T;else{var X=D(C),et=N/X[2];C=new q(et,b[0]-X[0]*et,b[1]-X[1]*et)}y.zoom(null,C)}})}function V(s,p,h){return!h&&s.__zooming||new ct(s,p)}function ct(s,p){this.that=s,this.args=p,this.active=0,this.sourceEvent=null,this.extent=n.apply(s,p),this.taps=0}ct.prototype={event:function(s){return s&&(this.sourceEvent=s),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(s,p){return this.mouse&&s!=="mouse"&&(this.mouse[1]=p.invert(this.mouse[0])),this.touch0&&s!=="touch"&&(this.touch0[1]=p.invert(this.touch0[0])),this.touch1&&s!=="touch"&&(this.touch1[1]=p.invert(this.touch1[0])),this.that.__zoom=p,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(s){var p=U(this.that).datum();l.call(s,this.that,new Lr(s,{sourceEvent:this.sourceEvent,target:v,type:s,transform:this.that.__zoom,dispatch:l}),p)}};function Vt(s,...p){if(!t.apply(this,arguments))return;var h=V(this,p).event(s),m=this.__zoom,g=Math.max(o[0],Math.min(o[1],m.k*2**r.apply(this,arguments))),w=R(s);if(h.wheel)(h.mouse[0][0]!==w[0]||h.mouse[0][1]!==w[1])&&(h.mouse[1]=m.invert(h.mouse[0]=w)),clearTimeout(h.wheel);else{if(m.k===g)return;h.mouse=[w,m.invert(w)],Z(this),h.start()}K(s),h.wheel=setTimeout(y,E),h.zoom("mouse",e(O(B(m,g),h.mouse[0],h.mouse[1]),h.extent,u));function y(){h.wheel=null,h.end()}}function Dt(s,...p){if(d||!t.apply(this,arguments))return;var h=s.currentTarget,m=V(this,p,!0).event(s),g=U(s.view).on("mousemove.zoom",b,!0).on("mouseup.zoom",N,!0),w=R(s,h),y=s.clientX,A=s.clientY;kt(s.view),st(s),m.mouse=[w,this.__zoom.invert(w)],Z(this),m.start();function b(z){if(K(z),!m.moved){var T=z.clientX-y,D=z.clientY-A;m.moved=T*T+D*D>k}m.event(z).zoom("mouse",e(O(m.that.__zoom,m.mouse[0]=R(z,h),m.mouse[1]),m.extent,u))}function N(z){g.on("mousemove.zoom mouseup.zoom",null),Tt(z.view,m.moved),K(z),m.event(z).end()}}function Xt(s,...p){if(t.apply(this,arguments)){var h=this.__zoom,m=R(s.changedTouches?s.changedTouches[0]:s,this),g=h.invert(m),w=h.k*(s.shiftKey?.5:2),y=e(O(B(h,w),m,g),n.apply(this,p),u);K(s),a>0?U(this).transition().duration(a).call(at,y,m,s):U(this).call(v.transform,y,m,s)}}function Yt(s,...p){if(t.apply(this,arguments)){var h=s.touches,m=h.length,g=V(this,p,s.changedTouches.length===m).event(s),w,y,A,b;for(st(s),y=0;y<m;++y)A=h[y],b=R(A,this),b=[b,this.__zoom.invert(b),A.identifier],g.touch0?!g.touch1&&g.touch0[2]!==b[2]&&(g.touch1=b,g.taps=0):(g.touch0=b,w=!0,g.taps=1+!!f);f&&(f=clearTimeout(f)),w&&(g.taps<2&&(x=b[0],f=setTimeout(function(){f=null},_)),Z(this),g.start())}}function Lt(s,...p){if(this.__zooming){var h=V(this,p).event(s),m=s.changedTouches,g=m.length,w,y,A,b;for(K(s),w=0;w<g;++w)y=m[w],A=R(y,this),h.touch0&&h.touch0[2]===y.identifier?h.touch0[0]=A:h.touch1&&h.touch1[2]===y.identifier&&(h.touch1[0]=A);if(y=h.that.__zoom,h.touch1){var N=h.touch0[0],z=h.touch0[1],T=h.touch1[0],D=h.touch1[1],C=(C=T[0]-N[0])*C+(C=T[1]-N[1])*C,X=(X=D[0]-z[0])*X+(X=D[1]-z[1])*X;y=B(y,Math.sqrt(C/X)),A=[(N[0]+T[0])/2,(N[1]+T[1])/2],b=[(z[0]+D[0])/2,(z[1]+D[1])/2]}else if(h.touch0)A=h.touch0[0],b=h.touch0[1];else return;h.zoom("touch",e(O(y,A,b),h.extent,u))}}function qt(s,...p){if(this.__zooming){var h=V(this,p).event(s),m=s.changedTouches,g=m.length,w,y;for(st(s),d&&clearTimeout(d),d=setTimeout(function(){d=null},_),w=0;w<g;++w)y=m[w],h.touch0&&h.touch0[2]===y.identifier?delete h.touch0:h.touch1&&h.touch1[2]===y.identifier&&delete h.touch1;if(h.touch1&&!h.touch0&&(h.touch0=h.touch1,delete h.touch1),h.touch0)h.touch0[1]=this.__zoom.invert(h.touch0[0]);else if(h.end(),h.taps===2&&(y=R(y,this),Math.hypot(x[0]-y[0],x[1]-y[1])<I)){var A=U(this).on("dblclick.zoom");A&&A.apply(this,arguments)}}}return v.wheelDelta=function(s){return arguments.length?(r=typeof s=="function"?s:tt(+s),v):r},v.filter=function(s){return arguments.length?(t=typeof s=="function"?s:tt(!!s),v):t},v.touchable=function(s){return arguments.length?(i=typeof s=="function"?s:tt(!!s),v):i},v.extent=function(s){return arguments.length?(n=typeof s=="function"?s:tt([[+s[0][0],+s[0][1]],[+s[1][0],+s[1][1]]]),v):n},v.scaleExtent=function(s){return arguments.length?(o[0]=+s[0],o[1]=+s[1],v):[o[0],o[1]]},v.translateExtent=function(s){return arguments.length?(u[0][0]=+s[0][0],u[1][0]=+s[1][0],u[0][1]=+s[0][1],u[1][1]=+s[1][1],v):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},v.constrain=function(s){return arguments.length?(e=s,v):e},v.duration=function(s){return arguments.length?(a=+s,v):a},v.interpolate=function(s){return arguments.length?(c=s,v):c},v.on=function(){var s=l.on.apply(l,arguments);return s===l?v:s},v.clickDistance=function(s){return arguments.length?(k=(s=+s)*s,v):Math.sqrt(k)},v.tapDistance=function(s){return arguments.length?(I=+s,v):I},v}export{J as a,Ce as c,Tt as i,R as l,nt as n,Te as o,kt as r,F as s,Gr as t,U as u};
@@ -1 +1 @@
1
- import{u as o}from"./useEvent-D91BmmQi.js";import{t}from"./createReducer-3wF4dU7I.js";import{t as a}from"./uuid-BukULOeS.js";function d(){return{pendingCommands:[],isReady:!1}}var{reducer:f,createActions:g,valueAtom:r,useActions:i}=t(d,{addCommand:(n,m)=>{let e={id:a(),text:m,timestamp:Date.now()};return{...n,pendingCommands:[...n.pendingCommands,e]}},removeCommand:(n,m)=>({...n,pendingCommands:n.pendingCommands.filter(e=>e.id!==m)}),setReady:(n,m)=>({...n,isReady:m}),clearCommands:n=>({...n,pendingCommands:[]})});const s=()=>o(r);function p(){return i()}export{s as n,p as t};
1
+ import{u as o}from"./useEvent-D91BmmQi.js";import{t}from"./createReducer-3wF4dU7I.js";import{t as a}from"./uuid-ClFZlR7U.js";function d(){return{pendingCommands:[],isReady:!1}}var{reducer:f,createActions:g,valueAtom:r,useActions:i}=t(d,{addCommand:(n,m)=>{let e={id:a(),text:m,timestamp:Date.now()};return{...n,pendingCommands:[...n.pendingCommands,e]}},removeCommand:(n,m)=>({...n,pendingCommands:n.pendingCommands.filter(e=>e.id!==m)}),setReady:(n,m)=>({...n,isReady:m}),clearCommands:n=>({...n,pendingCommands:[]})});const s=()=>o(r);function p(){return i()}export{s as n,p as t};