@marimo-team/frontend 0.23.16-dev47 → 0.23.16-dev49

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 (527) hide show
  1. package/dist/assets/{CellStatus-C6Cj3oJc.js → CellStatus-DciB5rbr.js} +1 -1
  2. package/dist/assets/{ConnectedDataExplorerComponent-CMaZapRd.js → ConnectedDataExplorerComponent-CXp99aFw.js} +1 -1
  3. package/dist/assets/{JsonOutput-BIwD6Z9Y.js → JsonOutput-BM3vve9F.js} +3 -3
  4. package/dist/assets/LazyAnyLanguageCodeMirror-DPOEues4.js +2 -0
  5. package/dist/assets/{MarimoErrorOutput-CIuzXFFo.js → MarimoErrorOutput-Bh0y53Du.js} +1 -1
  6. package/dist/assets/{RenderHTML-Cd-PP5ZR.js → RenderHTML-B9jx7Dsm.js} +1 -1
  7. package/dist/assets/{RunButton-CnYWedW4.js → RunButton-DMtHbFuA.js} +1 -1
  8. package/dist/assets/{add-cell-with-ai-C38rS_Vb.js → add-cell-with-ai-BcRYriMM.js} +1 -1
  9. package/dist/assets/add-connection-dialog-syjRSNPT.js +178 -0
  10. package/dist/assets/{agent-panel-BzpwIGH_.js → agent-panel-B31W_VwU.js} +1 -1
  11. package/dist/assets/{ai-model-dropdown-Bvqy98cI.js → ai-model-dropdown-B3D05oQh.js} +3 -3
  12. package/dist/assets/{any-language-editor--tRHs8C_.js → any-language-editor-BDvoKhJM.js} +1 -1
  13. package/dist/assets/apl-B-7blH-b.js +1 -0
  14. package/dist/assets/app-config-button-D_mjovwU.js +1 -0
  15. package/dist/assets/{arc-CfUZAQDm.js → arc-CezuXhk_.js} +1 -1
  16. package/dist/assets/{architecture-7HQA4BMR-Bvqj37EA.js → architecture-7HQA4BMR-Dy7zkjw8.js} +1 -1
  17. package/dist/assets/{architectureDiagram-VXUJARFQ-sx_yisiZ.js → architectureDiagram-VXUJARFQ-BmOSh2SW.js} +1 -1
  18. package/dist/assets/asciiarmor-D3K8amZ9.js +1 -0
  19. package/dist/assets/asn1-UGGn98tp.js +1 -0
  20. package/dist/assets/{blob-D4PJCCaE.js → blob-BJREJiQp.js} +1 -1
  21. package/dist/assets/{blockDiagram-VD42YOAC-KexI-fgH.js → blockDiagram-VD42YOAC-DHO0ifdn.js} +1 -1
  22. package/dist/assets/brainfuck-B4y4U3tg.js +1 -0
  23. package/dist/assets/{c4Diagram-YG6GDRKO-d8NrlxRF.js → c4Diagram-YG6GDRKO-ByToYMes.js} +1 -1
  24. package/dist/assets/{cache-panel-DcQUeUpg.js → cache-panel-Bvnkzrzd.js} +1 -1
  25. package/dist/assets/{cell-editor-IyYRG2xm.js → cell-editor-BOhZHoLm.js} +3 -3
  26. package/dist/assets/{cell-link-w5IbCQV4.js → cell-link-DqNEv3f9.js} +1 -1
  27. package/dist/assets/{cells-DzyDERZy.js → cells-Jr-5Pc9f.js} +4 -4
  28. package/dist/assets/channel-hYe4T32r.js +1 -0
  29. package/dist/assets/{chat-display-CX7zz7Iy.js → chat-display-Djy1Jt6b.js} +1 -1
  30. package/dist/assets/{chat-panel-D3FqQl4H.js → chat-panel-B2nYSE_l.js} +1 -1
  31. package/dist/assets/{chat-ui-B7QB4NwC.js → chat-ui-DlG0En7w.js} +1 -1
  32. package/dist/assets/{chunk-4BX2VUAB-fhh1HlXH.js → chunk-4BX2VUAB-BsEakQWN.js} +1 -1
  33. package/dist/assets/chunk-55IACEB6-DkGbQmsa.js +1 -0
  34. package/dist/assets/{chunk-5FQGJX7Z-Cp0LZT-a.js → chunk-5FQGJX7Z-BEbM01OT.js} +2 -2
  35. package/dist/assets/{chunk-ABZYJK2D-BtK4zInQ.js → chunk-ABZYJK2D-CCNXe-E2.js} +3 -3
  36. package/dist/assets/{chunk-ATLVNIR6-YZDenslF.js → chunk-ATLVNIR6-yY0weiRB.js} +1 -1
  37. package/dist/assets/{chunk-B4BG7PRW-DYIZwDbt.js → chunk-B4BG7PRW-DtjHcIBO.js} +1 -1
  38. package/dist/assets/{chunk-CVBHYZKI-CIyHeK0Q.js → chunk-CVBHYZKI-D1ar3Zzb.js} +1 -1
  39. package/dist/assets/{chunk-DI55MBZ5-TodwBGEN.js → chunk-DI55MBZ5-BxB9Lmc6.js} +1 -1
  40. package/dist/assets/{chunk-EXTU4WIE-C76bF1UD.js → chunk-EXTU4WIE-Do43HMrz.js} +1 -1
  41. package/dist/assets/{chunk-FMBD7UC4-Yq65IDPA.js → chunk-FMBD7UC4-FWkYBdS7.js} +1 -1
  42. package/dist/assets/{chunk-HN2XXSSU-CcbN4n6W.js → chunk-HN2XXSSU-nVY6M8Me.js} +1 -1
  43. package/dist/assets/{chunk-JA3XYJ7Z-CPXEu7AX.js → chunk-JA3XYJ7Z-52dYwyoT.js} +1 -1
  44. package/dist/assets/{chunk-JZLCHNYA-D8q1z6Py.js → chunk-JZLCHNYA-BHSouLxk.js} +1 -1
  45. package/dist/assets/{chunk-MI3HLSF2-bmomnexd.js → chunk-MI3HLSF2-BwgHEi3_.js} +1 -1
  46. package/dist/assets/{chunk-N4CR4FBY-BhsjB2qn.js → chunk-N4CR4FBY-BkAnRh0J.js} +2 -2
  47. package/dist/assets/{chunk-QN33PNHL-ngvPqyQ0.js → chunk-QN33PNHL-DWzHlkYI.js} +1 -1
  48. package/dist/assets/{chunk-QXUST7PY-C4c0Sjmn.js → chunk-QXUST7PY-CjtWgrZg.js} +1 -1
  49. package/dist/assets/{chunk-QZHKN3VN-CkbwBDOS.js → chunk-QZHKN3VN-CmAwpNoC.js} +1 -1
  50. package/dist/assets/{chunk-S3R3BYOJ-Bt2NnquF.js → chunk-S3R3BYOJ-DcZAYEft.js} +1 -1
  51. package/dist/assets/{chunk-TZMSLE5B-Dysko1OC.js → chunk-TZMSLE5B-D2-o8-XQ.js} +1 -1
  52. package/dist/assets/classDiagram-2ON5EDUG-DapsPtpH.js +1 -0
  53. package/dist/assets/classDiagram-v2-WZHVMYZB-Oa2f7U6n.js +1 -0
  54. package/dist/assets/{clike-DKPr2D1_.js → clike-BAN6KopO.js} +1 -1
  55. package/dist/assets/clojure-BAZ-ejkG.js +1 -0
  56. package/dist/assets/cmake-jWn0xN9y.js +1 -0
  57. package/dist/assets/cobol-XqY9jaWP.js +1 -0
  58. package/dist/assets/{code-block-37QAKDTI-DlENujeV.js → code-block-37QAKDTI-DdMTHZGu.js} +1 -1
  59. package/dist/assets/coffeescript-DI1jfZHX.js +1 -0
  60. package/dist/assets/{column-preview-rIsKPa9V.js → column-preview-BUHlI5va.js} +1 -1
  61. package/dist/assets/{command-palette-IpDnUFd7.js → command-palette-rEJmXCZM.js} +1 -1
  62. package/dist/assets/{common-CJ3baa6D.js → common-CZc3fQI4.js} +1 -1
  63. package/dist/assets/commonlisp-UKb01OlU.js +1 -0
  64. package/dist/assets/{components-DpUIWGaj.js → components-GAYCj6Mx.js} +1 -1
  65. package/dist/assets/{cose-bilkent-S5V4N54A-BlMw4-M9.js → cose-bilkent-S5V4N54A-B4-5phSs.js} +1 -1
  66. package/dist/assets/crystal-DOvjTBWA.js +1 -0
  67. package/dist/assets/{css-DsUcFZz8.js → css-DWLxGm3Z.js} +1 -1
  68. package/dist/assets/cypher-CLDhu2ae.js +1 -0
  69. package/dist/assets/d-C0ecUZk9.js +1 -0
  70. package/dist/assets/{dagre-6UL2VRFP-kJ4x17JK.js → dagre-6UL2VRFP-2XhH1Ri-.js} +1 -1
  71. package/dist/assets/{data-grid-overlay-editor-DbobQcVo.js → data-grid-overlay-editor-B4LrPNw9.js} +1 -1
  72. package/dist/assets/{datasource-D_VcQMEn.js → datasource-AWkkAeiS.js} +1 -1
  73. package/dist/assets/{dependency-graph-panel-BmvJHSNy.js → dependency-graph-panel-wcqTPq6b.js} +1 -1
  74. package/dist/assets/{diagram-PSM6KHXK-d-5aQNHk.js → diagram-PSM6KHXK-CAqt0euW.js} +1 -1
  75. package/dist/assets/{diagram-QEK2KX5R-CO-PXq75.js → diagram-QEK2KX5R-D5cgX3Vp.js} +1 -1
  76. package/dist/assets/{diagram-S2PKOQOG-Dv7pcvYC.js → diagram-S2PKOQOG-ibWavdR5.js} +1 -1
  77. package/dist/assets/diff-657cCCVc.js +1 -0
  78. package/dist/assets/{dist-CRrIf3gB.js → dist-7L5iW3e_.js} +1 -1
  79. package/dist/assets/{dist-R1kU4nzJ.js → dist-Bcpo9599.js} +1 -1
  80. package/dist/assets/{dist-DQNaXfK1.js → dist-BrZHhdmA.js} +1 -1
  81. package/dist/assets/dist-C00gHjPp.js +1 -0
  82. package/dist/assets/{dist-0QUuSoRx.js → dist-C4El4p_-.js} +1 -1
  83. package/dist/assets/{dist-BsphJPAV.js → dist-CIYjZ11d.js} +1 -1
  84. package/dist/assets/{dist-Du-wcJyR.js → dist-COTjOJlM.js} +1 -1
  85. package/dist/assets/dist-CWNfBqYo.js +1 -0
  86. package/dist/assets/dist-Cck3fpDq.js +1 -0
  87. package/dist/assets/{dist-CECF_J8y.js → dist-DIQO2yAn.js} +1 -1
  88. package/dist/assets/{dist-BMOD2Pyh.js → dist-DabFEfar.js} +1 -1
  89. package/dist/assets/dist-f5euh_Pv.js +1 -0
  90. package/dist/assets/{dist-CDUl-YL4.js → dist-ryTWanRP.js} +1 -1
  91. package/dist/assets/{dist-6c4zOh78.js → dist-sg9T7Ulw.js} +1 -1
  92. package/dist/assets/{dist-sPfKr-vH.js → dist-wSuqFvon.js} +1 -1
  93. package/dist/assets/{dockerfile-C2PznFWk.js → dockerfile-kqVBOcIP.js} +1 -1
  94. package/dist/assets/{documentation-panel-CGhwxsXK.js → documentation-panel-Eu8MIkoU.js} +1 -1
  95. package/dist/assets/{download-BIGA4WFm.js → download-CQ7iZFJL.js} +1 -1
  96. package/dist/assets/dtd-DSiK7Qgi.js +1 -0
  97. package/dist/assets/dylan-07d5-7Q9.js +1 -0
  98. package/dist/assets/ecl-CSTUHiwq.js +1 -0
  99. package/dist/assets/{edit-page-BxWEex0a.js → edit-page-zyK_cMuR.js} +5 -5
  100. package/dist/assets/eiffel-DR99GcsM.js +1 -0
  101. package/dist/assets/elm-Cmh0iW6J.js +1 -0
  102. package/dist/assets/{erDiagram-Q2GNP2WA-BQ8HfnRu.js → erDiagram-Q2GNP2WA-BaY7iomT.js} +1 -1
  103. package/dist/assets/erlang-CS9Yc6UC.js +1 -0
  104. package/dist/assets/{error-entries-CTYMwfsh.js → error-entries-Cr8uVukN.js} +1 -1
  105. package/dist/assets/{error-panel-DGAkG5kW.js → error-panel-BZzr0PA1.js} +1 -1
  106. package/dist/assets/{esm-Cmv0Nuxi.js → esm-DqItXpGT.js} +1 -1
  107. package/dist/assets/{factor-DMrXrOH8.js → factor-D96xahcJ.js} +1 -1
  108. package/dist/assets/factor-DjB27Lcf.js +1 -0
  109. package/dist/assets/{file-explorer-panel-D_9Rm9qM.js → file-explorer-panel-C1W7g_Wp.js} +1 -1
  110. package/dist/assets/{file-icons-DfWENcb8.js → file-icons-BAqZR08W.js} +1 -1
  111. package/dist/assets/{file-name-input-CNVZtm5K.js → file-name-input-0MiZVw5r.js} +1 -1
  112. package/dist/assets/{fileToBase64-C2Yy-YXq.js → fileToBase64-Dgfa7TRQ.js} +1 -1
  113. package/dist/assets/{floating-outline-LitP0wCD.js → floating-outline-C6g75zrP.js} +1 -1
  114. package/dist/assets/{flowDiagram-NV44I4VS-xBOzhlfg.js → flowDiagram-NV44I4VS-C_6PGGE6.js} +1 -1
  115. package/dist/assets/{focus-CNKbm-Xz.js → focus-C0HXXg3V.js} +1 -1
  116. package/dist/assets/form-C051zAev.js +1 -0
  117. package/dist/assets/{form-DTWstSVJ.js → form-DT44Rmhp.js} +2 -2
  118. package/dist/assets/forth-UwTUu7NY.js +1 -0
  119. package/dist/assets/fortran-cptiB4gJ.js +1 -0
  120. package/dist/assets/{gallery-page-CJ3ms1Hn.js → gallery-page-CL1y8LXc.js} +1 -1
  121. package/dist/assets/{ganttDiagram-JELNMOA3-D2O_k-Zg.js → ganttDiagram-JELNMOA3-CJFyE5hs.js} +1 -1
  122. package/dist/assets/gas-ajMbd9Us.js +1 -0
  123. package/dist/assets/gherkin-ClYkalzE.js +1 -0
  124. package/dist/assets/{gitGraph-G5XIXVHT-8HJwNcdU.js → gitGraph-G5XIXVHT-BP96QVP9.js} +1 -1
  125. package/dist/assets/{gitGraphDiagram-V2S2FVAM-Nk4Ll9GY.js → gitGraphDiagram-V2S2FVAM-CGQPWKR8.js} +1 -1
  126. package/dist/assets/{glide-data-editor-j2igs9Y_.js → glide-data-editor-Badziq3Y.js} +4 -4
  127. package/dist/assets/groovy-BY-gt7AW.js +1 -0
  128. package/dist/assets/haskell-D1BeJ7SR.js +1 -0
  129. package/dist/assets/haxe-QOq5WFXx.js +1 -0
  130. package/dist/assets/{home-page-DM9Z_IJ7.js → home-page-CJz9IHZ2.js} +1 -1
  131. package/dist/assets/{html-to-image-JaxFFZcr.js → html-to-image-CfjhKLA4.js} +1 -1
  132. package/dist/assets/idl-3-UcEGx7.js +1 -0
  133. package/dist/assets/{index-CGrnjnHL.js → index-BGE_j_ZS.js} +7 -7
  134. package/dist/assets/{info-VBDWY6EO-rfe3WPvd.js → info-VBDWY6EO-B7aeNYNu.js} +1 -1
  135. package/dist/assets/infoDiagram-HS3SLOUP-BT7ISZ3J.js +2 -0
  136. package/dist/assets/javascript-CorD44JN.js +1 -0
  137. package/dist/assets/{journeyDiagram-XKPGCS4Q-D61FGivn.js → journeyDiagram-XKPGCS4Q-DhyWkFu7.js} +1 -1
  138. package/dist/assets/julia-BYqTtTAl.js +1 -0
  139. package/dist/assets/{kanban-definition-3W4ZIXB7-Bnv0X0Tu.js → kanban-definition-3W4ZIXB7-B2A0FPA_.js} +1 -1
  140. package/dist/assets/katex-BnxSCReZ.js +1 -0
  141. package/dist/assets/{layout-rWti2H65.js → layout-D4bpsgVD.js} +3 -3
  142. package/dist/assets/{line-DNm2phYo.js → line-1dURhxkp.js} +1 -1
  143. package/dist/assets/{linear-CTQqNbVX.js → linear-gmSPLe7o.js} +1 -1
  144. package/dist/assets/livescript-qYgfNnNE.js +1 -0
  145. package/dist/assets/{logs-panel-CQRPYS8j.js → logs-panel-CsaY3O1m.js} +1 -1
  146. package/dist/assets/{loro_wasm_bg-Duqr-kJ2.js → loro_wasm_bg-DWuCVDfB.js} +1 -1
  147. package/dist/assets/lua-BCqCjdfz.js +1 -0
  148. package/dist/assets/{markdown-renderer-sEayY9-m.js → markdown-renderer-BgqeO4JR.js} +3 -3
  149. package/dist/assets/mathematica-XKwMfn0d.js +1 -0
  150. package/dist/assets/mbox-BnkeOnif.js +1 -0
  151. package/dist/assets/{mermaid-4DMBBIKO-CDGmT6YQ.js → mermaid-4DMBBIKO-DxfSuOnE.js} +1 -1
  152. package/dist/assets/{mermaid-CYN0wOyG.js → mermaid-Dfx05w1B.js} +3 -3
  153. package/dist/assets/{mermaid-parser.core-Dz2GMGqQ.js → mermaid-parser.core-OagDSIIt.js} +2 -2
  154. package/dist/assets/{mhchem-CIWniJp4.js → mhchem-Dka9kRKN.js} +1 -1
  155. package/dist/assets/{mindmap-definition-VGOIOE7T-C-YaKmEU.js → mindmap-definition-VGOIOE7T-torqqISZ.js} +1 -1
  156. package/dist/assets/mirc-ipoElhai.js +1 -0
  157. package/dist/assets/mllike-DmouQ5Dp.js +1 -0
  158. package/dist/assets/modelica-BtmmVsUf.js +1 -0
  159. package/dist/assets/mscgen-BHZmHZgz.js +1 -0
  160. package/dist/assets/mumps-oKfoFTl_.js +1 -0
  161. package/dist/assets/{name-cell-input-B-aj1KH3.js → name-cell-input-DcU8Rfrz.js} +1 -1
  162. package/dist/assets/nsis-DDOPnuAW.js +1 -0
  163. package/dist/assets/{nsis-Ccvd1gbp.js → nsis-gzbsJ5t0.js} +1 -1
  164. package/dist/assets/ntriples-Dsyl_sOF.js +1 -0
  165. package/dist/assets/{number-overlay-editor-BQ9P6yP7.js → number-overlay-editor-DlQjqV32.js} +1 -1
  166. package/dist/assets/octave-CI5RGMPa.js +1 -0
  167. package/dist/assets/{ordinal-DyTNGK17.js → ordinal-W4TcDjiJ.js} +1 -1
  168. package/dist/assets/{outline-panel-BOryk60D.js → outline-panel-D-CHPZQM.js} +1 -1
  169. package/dist/assets/oz-D01pKAWx.js +1 -0
  170. package/dist/assets/{packages-panel-DoYDLty3.js → packages-panel-dq7QVZl1.js} +1 -1
  171. package/dist/assets/{packet-DYOGHKS2-DTVloLa7.js → packet-DYOGHKS2-B2FlK_cc.js} +1 -1
  172. package/dist/assets/{panels-D-BYYQCt.js → panels-DWoniKhE.js} +1 -1
  173. package/dist/assets/pascal-DGXfnIFD.js +1 -0
  174. package/dist/assets/perl-gZ7qIkF-.js +1 -0
  175. package/dist/assets/{pie-VRWISCQL-Bmght6JF.js → pie-VRWISCQL-rtCNhZhm.js} +1 -1
  176. package/dist/assets/{pieDiagram-ADFJNKIX-DlFYL0BN.js → pieDiagram-ADFJNKIX-vSo1I9sb.js} +1 -1
  177. package/dist/assets/pig-Cb90ayl-.js +1 -0
  178. package/dist/assets/powershell-_YxddSL3.js +1 -0
  179. package/dist/assets/{process-output-d-LEMtGI.js → process-output-NbwnUu05.js} +1 -1
  180. package/dist/assets/properties-sU50dmvt.js +1 -0
  181. package/dist/assets/protobuf-DFdF-yfo.js +1 -0
  182. package/dist/assets/{pug-BtXi5KiX.js → pug-CfBtO6QD.js} +1 -1
  183. package/dist/assets/pug-DwUB-C24.js +1 -0
  184. package/dist/assets/puppet-DtKzwiZ6.js +1 -0
  185. package/dist/assets/python-BMLOKYmk.js +1 -0
  186. package/dist/assets/q-BF1zXMdP.js +1 -0
  187. package/dist/assets/{quadrantDiagram-AYHSOK5B-BpJug2BH.js → quadrantDiagram-AYHSOK5B-DonUSsuk.js} +1 -1
  188. package/dist/assets/r-BQiKhVSI.js +1 -0
  189. package/dist/assets/{radar-ZZBFDIW7-CYwWzRgW.js → radar-ZZBFDIW7-CRVupj1O.js} +1 -1
  190. package/dist/assets/{radio-group-DfioQthW.js → radio-group-rhQpGwU-.js} +1 -1
  191. package/dist/assets/{react-vega-TNCk_eWj.js → react-vega-Bd66vLSZ.js} +1 -1
  192. package/dist/assets/{readonly-code-display-C9fu8tvK.js → readonly-code-display-CVY2f7EZ.js} +1 -1
  193. package/dist/assets/{readonly-python-code-DHxOnQGj.js → readonly-python-code-Q_1Y3VyZ.js} +1 -1
  194. package/dist/assets/{requirementDiagram-UZGBJVZJ-Bd-1eny8.js → requirementDiagram-UZGBJVZJ-D8rJ1Dg-.js} +1 -1
  195. package/dist/assets/{reveal-component-CGBET1VL.js → reveal-component-CedpDwM8.js} +1 -1
  196. package/dist/assets/rpm-v7UTuaHo.js +1 -0
  197. package/dist/assets/ruby-Cw43FpG3.js +1 -0
  198. package/dist/assets/{run-page-BDt08QR4.js → run-page-CGoux5cj.js} +1 -1
  199. package/dist/assets/{sankeyDiagram-TZEHDZUN-CDWAE6GV.js → sankeyDiagram-TZEHDZUN-Bufh177s.js} +1 -1
  200. package/dist/assets/sas-BIKscqlp.js +1 -0
  201. package/dist/assets/scheme-CGic3hSV.js +1 -0
  202. package/dist/assets/{scratchpad-panel-CZqs-AmJ.js → scratchpad-panel-BLuF25yR.js} +1 -1
  203. package/dist/assets/{secrets-panel-6J6wcuVR.js → secrets-panel-4Qy7R-wy.js} +1 -1
  204. package/dist/assets/{sequenceDiagram-WL72ISMW-B6hjDGBF.js → sequenceDiagram-WL72ISMW-DOsQdDD2.js} +1 -1
  205. package/dist/assets/{session-panel-BNdpCbXw.js → session-panel-OIot3eyB.js} +1 -1
  206. package/dist/assets/shell-DAh545tm.js +1 -0
  207. package/dist/assets/sieve-bGkng63-.js +1 -0
  208. package/dist/assets/{skeleton-BJuRsFbf.js → skeleton-BRvjFlRu.js} +1 -1
  209. package/dist/assets/smalltalk-fIw53lm8.js +1 -0
  210. package/dist/assets/{snippets-panel-U2-iok-c.js → snippets-panel-YFyH2hUM.js} +1 -1
  211. package/dist/assets/sparql-CHbJrAY_.js +1 -0
  212. package/dist/assets/{src-CIOdyciO.js → src-BSYB0gI9.js} +1 -1
  213. package/dist/assets/{state-DJzSWGB9.js → state-DB_fxbhn.js} +1 -1
  214. package/dist/assets/{state-DxQhUsG9.js → state-bHyw5u3R.js} +1 -1
  215. package/dist/assets/{stateDiagram-FKZM4ZOC-Bzv6j99z.js → stateDiagram-FKZM4ZOC-z2ks4r_9.js} +1 -1
  216. package/dist/assets/stateDiagram-v2-4FDKWEC3-BApjXiT0.js +1 -0
  217. package/dist/assets/{step-CDlhJj9-.js → step-DIOVHicC.js} +1 -1
  218. package/dist/assets/stylus-3Q5WfXqT.js +1 -0
  219. package/dist/assets/swift-MKxc2knl.js +1 -0
  220. package/dist/assets/tcl-D3fKhQc_.js +1 -0
  221. package/dist/assets/{terminal-217O8hlZ.js → terminal-D4sGJYRn.js} +1 -1
  222. package/dist/assets/textarea-DZB2bzVL.js +1 -0
  223. package/dist/assets/textile-Bi_LEJQ3.js +1 -0
  224. package/dist/assets/{time-BuRlxEhE.js → time-NXrJfoDM.js} +1 -1
  225. package/dist/assets/{timeline-definition-IT6M3QCI-DXwdU1og.js → timeline-definition-IT6M3QCI-BRuA290T.js} +1 -1
  226. package/dist/assets/toml-Dt-PBqwt.js +1 -0
  227. package/dist/assets/{tracing-B5XFvMmV.js → tracing-CDMM1BB2.js} +1 -1
  228. package/dist/assets/{tracing-panel-DnR2bYDe.js → tracing-panel-BH5Zbvl9.js} +2 -2
  229. package/dist/assets/{tree-actions-Dx9CDaxV.js → tree-actions-DDveUIHK.js} +1 -1
  230. package/dist/assets/{treemap-GDKQZRPO-4Cm6HMmj.js → treemap-GDKQZRPO-DIzBBPQD.js} +1 -1
  231. package/dist/assets/troff-BSU-rxoD.js +1 -0
  232. package/dist/assets/ttcn-BmLjonVM.js +1 -0
  233. package/dist/assets/ttcn-cfg-TPTcP0Eh.js +1 -0
  234. package/dist/assets/turtle-HafmShQq.js +1 -0
  235. package/dist/assets/{useCellActionButton-D-uro4Di.js → useCellActionButton-D5ix_g2a.js} +1 -1
  236. package/dist/assets/{useDeleteCell-vMXAr3rY.js → useDeleteCell-BIopCngo.js} +1 -1
  237. package/dist/assets/{useDependencyPanelTab-BGGAtEWD.js → useDependencyPanelTab-snM337f9.js} +1 -1
  238. package/dist/assets/{useNotebookActions-DDDJKVxq.js → useNotebookActions-CsZfWFKy.js} +3 -3
  239. package/dist/assets/{useRunCells-C2dvU2jA.js → useRunCells-CF_V8X2K.js} +1 -1
  240. package/dist/assets/{useSplitCell-C1tubdNi.js → useSplitCell-BTmKY1CU.js} +1 -1
  241. package/dist/assets/vb-CUif5uGR.js +1 -0
  242. package/dist/assets/vbscript-DWVPFl59.js +1 -0
  243. package/dist/assets/{vega-component-Db8KjZJG.js → vega-component-BYd6AACD.js} +1 -1
  244. package/dist/assets/{vega-embed-container-hDAVOOba.js → vega-embed-container-CRADa99b.js} +1 -1
  245. package/dist/assets/velocity-BJl8UzB4.js +1 -0
  246. package/dist/assets/verilog-B4LUPYXy.js +1 -0
  247. package/dist/assets/vhdl-C91h3ipk.js +1 -0
  248. package/dist/assets/webidl-DOay1zbU.js +1 -0
  249. package/dist/assets/write-secret-modal-D-p66LIx.js +2 -0
  250. package/dist/assets/xquery-Cez7jD_4.js +1 -0
  251. package/dist/assets/{xychartDiagram-PRI3JC2R-Cb0exSKs.js → xychartDiagram-PRI3JC2R-BX6ICxcN.js} +1 -1
  252. package/dist/assets/yacas-CSQEXB_S.js +1 -0
  253. package/dist/assets/z80-CJbYj7Wr.js +1 -0
  254. package/dist/index.html +29 -28
  255. package/package.json +1 -1
  256. package/src/components/editor/chrome/panels/write-secret-modal.tsx +40 -12
  257. package/src/components/editor/connections/__tests__/json-credentials.test.ts +114 -0
  258. package/src/components/editor/connections/__tests__/paths.test.ts +39 -0
  259. package/src/components/editor/connections/components.tsx +6 -2
  260. package/src/components/editor/connections/database/__tests__/__snapshots__/as-code.test.ts.snap +21 -5
  261. package/src/components/editor/connections/database/__tests__/as-code.test.ts +17 -0
  262. package/src/components/editor/connections/database/as-code.ts +16 -2
  263. package/src/components/editor/connections/database/schemas.ts +6 -5
  264. package/src/components/editor/connections/form-renderers.tsx +99 -1
  265. package/src/components/editor/connections/json-credentials.ts +57 -0
  266. package/src/components/editor/connections/paths.ts +21 -0
  267. package/src/components/editor/connections/secret-combobox.tsx +41 -20
  268. package/src/components/editor/connections/storage/__tests__/__snapshots__/as-code.test.ts.snap +38 -2
  269. package/src/components/editor/connections/storage/__tests__/as-code.test.ts +41 -0
  270. package/src/components/editor/connections/storage/as-code.ts +39 -15
  271. package/src/components/editor/connections/storage/schemas.ts +2 -2
  272. package/src/components/forms/options.ts +2 -1
  273. package/dist/assets/LazyAnyLanguageCodeMirror-B2JvSXP-.js +0 -2
  274. package/dist/assets/add-connection-dialog-DDGKGmv6.js +0 -170
  275. package/dist/assets/apl-DTwRFDps.js +0 -1
  276. package/dist/assets/app-config-button-v1lG63C2.js +0 -1
  277. package/dist/assets/asciiarmor-CiqkDK0s.js +0 -1
  278. package/dist/assets/asn1-RTvH5MEs.js +0 -1
  279. package/dist/assets/brainfuck-szH_VGzd.js +0 -1
  280. package/dist/assets/channel-D-k8o3T1.js +0 -1
  281. package/dist/assets/chunk-55IACEB6-xhaY4LU6.js +0 -1
  282. package/dist/assets/classDiagram-2ON5EDUG-C-rIg7EQ.js +0 -1
  283. package/dist/assets/classDiagram-v2-WZHVMYZB-MBAsRLae.js +0 -1
  284. package/dist/assets/clojure-CyEbLmch.js +0 -1
  285. package/dist/assets/cmake-Dk8f7QuI.js +0 -1
  286. package/dist/assets/cobol-BJJRqW1D.js +0 -1
  287. package/dist/assets/coffeescript-BDuWJ9WO.js +0 -1
  288. package/dist/assets/commonlisp-CVHm2VSp.js +0 -1
  289. package/dist/assets/crystal-C2Fgr79A.js +0 -1
  290. package/dist/assets/cypher-CUlCm6vR.js +0 -1
  291. package/dist/assets/d-4ANEHA6q.js +0 -1
  292. package/dist/assets/diff-C-W-5V8L.js +0 -1
  293. package/dist/assets/dist-CCAhuqF-.js +0 -1
  294. package/dist/assets/dist-DGhK0kPE.js +0 -1
  295. package/dist/assets/dist-SVDIDTM2.js +0 -1
  296. package/dist/assets/dist-xSLg7wNV.js +0 -1
  297. package/dist/assets/dtd-D9h-tL8G.js +0 -1
  298. package/dist/assets/dylan-D3MC56xy.js +0 -1
  299. package/dist/assets/ecl-B6UC4tME.js +0 -1
  300. package/dist/assets/eiffel-CjvEov4k.js +0 -1
  301. package/dist/assets/elm-DvSbvRWe.js +0 -1
  302. package/dist/assets/erlang-DJYaGXyq.js +0 -1
  303. package/dist/assets/factor-CUQCrkTo.js +0 -1
  304. package/dist/assets/forth-D9xegiCO.js +0 -1
  305. package/dist/assets/fortran-B0Oe0U8s.js +0 -1
  306. package/dist/assets/gas-jLjj-PIq.js +0 -1
  307. package/dist/assets/gherkin-3Ig8Crit.js +0 -1
  308. package/dist/assets/groovy-NKpNVJ-n.js +0 -1
  309. package/dist/assets/haskell-OPE4bAjk.js +0 -1
  310. package/dist/assets/haxe-DEAZF8L3.js +0 -1
  311. package/dist/assets/idl-BM6265Xl.js +0 -1
  312. package/dist/assets/infoDiagram-HS3SLOUP-DQnMjKYJ.js +0 -2
  313. package/dist/assets/javascript-CZ9vDpAy.js +0 -1
  314. package/dist/assets/julia-BrY9TQnt.js +0 -1
  315. package/dist/assets/katex-C-lfa1AM.js +0 -1
  316. package/dist/assets/livescript-CNahkUp5.js +0 -1
  317. package/dist/assets/lua-Skr4TVu_.js +0 -1
  318. package/dist/assets/mathematica-BXxhrpeY.js +0 -1
  319. package/dist/assets/mbox-BRrQCVe9.js +0 -1
  320. package/dist/assets/mirc-CffYPE4R.js +0 -1
  321. package/dist/assets/mllike-C1DLZhEI.js +0 -1
  322. package/dist/assets/modelica-CvAyRRNV.js +0 -1
  323. package/dist/assets/mscgen-uMZWtMZv.js +0 -1
  324. package/dist/assets/mumps-DFJehEx7.js +0 -1
  325. package/dist/assets/nsis-BVI9YULz.js +0 -1
  326. package/dist/assets/ntriples-Bcdh7b2H.js +0 -1
  327. package/dist/assets/octave-CdAKz6YS.js +0 -1
  328. package/dist/assets/oz-DSySeR-W.js +0 -1
  329. package/dist/assets/pascal-DefziIUN.js +0 -1
  330. package/dist/assets/perl-BOOloBPk.js +0 -1
  331. package/dist/assets/pig-f0nBb-5x.js +0 -1
  332. package/dist/assets/powershell-DToQjbK9.js +0 -1
  333. package/dist/assets/properties-BRob-nyj.js +0 -1
  334. package/dist/assets/protobuf-DZyC6051.js +0 -1
  335. package/dist/assets/pug-pVoM8FRt.js +0 -1
  336. package/dist/assets/puppet-9fuYG07F.js +0 -1
  337. package/dist/assets/python-_Mr8fyXP.js +0 -1
  338. package/dist/assets/q-D73s4Y77.js +0 -1
  339. package/dist/assets/r-BOEjz92e.js +0 -1
  340. package/dist/assets/rpm-LpXWTM5t.js +0 -1
  341. package/dist/assets/ruby-DodgSDfF.js +0 -1
  342. package/dist/assets/sas-D9KCtUmL.js +0 -1
  343. package/dist/assets/scheme-p8UJxmJw.js +0 -1
  344. package/dist/assets/shell-BWdqyqwL.js +0 -1
  345. package/dist/assets/sieve-CLwJmtiQ.js +0 -1
  346. package/dist/assets/smalltalk-D3KV-Qah.js +0 -1
  347. package/dist/assets/sparql-D9Jz2mBw.js +0 -1
  348. package/dist/assets/stateDiagram-v2-4FDKWEC3-CA1l0rNa.js +0 -1
  349. package/dist/assets/stylus-ClN4l_XO.js +0 -1
  350. package/dist/assets/swift-Dvd_9xBv.js +0 -1
  351. package/dist/assets/tcl-DR2p8cyi.js +0 -1
  352. package/dist/assets/textarea-Bmzmbbpo.js +0 -1
  353. package/dist/assets/textile-D6S27_J2.js +0 -1
  354. package/dist/assets/toml-B-YuQ2Id.js +0 -1
  355. package/dist/assets/troff-HSk8AoRF.js +0 -1
  356. package/dist/assets/ttcn-CehzlVdx.js +0 -1
  357. package/dist/assets/ttcn-cfg-CLEPwk1s.js +0 -1
  358. package/dist/assets/turtle-DQLHkbOu.js +0 -1
  359. package/dist/assets/vb-o1EHrS4z.js +0 -1
  360. package/dist/assets/vbscript-BS8yUFpf.js +0 -1
  361. package/dist/assets/velocity-u_oGPFaA.js +0 -1
  362. package/dist/assets/verilog-CSmDH7su.js +0 -1
  363. package/dist/assets/vhdl-BCaWLcjw.js +0 -1
  364. package/dist/assets/webidl-Bf6dokXM.js +0 -1
  365. package/dist/assets/write-secret-modal-3-v-dHVj.js +0 -1
  366. package/dist/assets/xquery-Di0kkiXg.js +0 -1
  367. package/dist/assets/yacas-DB8tPtyp.js +0 -1
  368. package/dist/assets/z80-DFUvlWxk.js +0 -1
  369. /package/dist/assets/{ImageComparisonComponent-Cz3xVDLH.js → ImageComparisonComponent-HnxpPJnM.js} +0 -0
  370. /package/dist/assets/{Inputs-B8-VCb_j.js → Inputs-BhvqLBkk.js} +0 -0
  371. /package/dist/assets/{Plot-X2G47XHf.js → Plot-Df7XX6zz.js} +0 -0
  372. /package/dist/assets/{apl-DVqFAlEd.js → apl-CPlG1HX3.js} +0 -0
  373. /package/dist/assets/{array-Ddg9CgJT.js → array-DkMvCrqF.js} +0 -0
  374. /package/dist/assets/{asciiarmor-B45BhOLj.js → asciiarmor-DV_pcocJ.js} +0 -0
  375. /package/dist/assets/{asn1-C4T2ctU6.js → asn1-DPxWcGvG.js} +0 -0
  376. /package/dist/assets/{asterisk-9U_4Kgke.js → asterisk-Di-nanOd.js} +0 -0
  377. /package/dist/assets/{azure-nN8APleF.js → azure-BjL5s4-w.js} +0 -0
  378. /package/dist/assets/{brainfuck-kVh8Eud4.js → brainfuck-CGDdBVNO.js} +0 -0
  379. /package/dist/assets/{card-VUBaYDpT.js → card-DIbLM4TA.js} +0 -0
  380. /package/dist/assets/{chunk-4F5CHEZ2-ClSh5rxG.js → chunk-4F5CHEZ2-yOSqdjGN.js} +0 -0
  381. /package/dist/assets/{chunk-B2363JML-cit0ouFv.js → chunk-B2363JML-BqlxcdFI.js} +0 -0
  382. /package/dist/assets/{chunk-DR5Q36YT-Bsu9Glc0.js → chunk-DR5Q36YT-9bsCT1tL.js} +0 -0
  383. /package/dist/assets/{chunk-FRFDVMJY--Re1QfFE.js → chunk-FRFDVMJY-DW58IWII.js} +0 -0
  384. /package/dist/assets/{chunk-PL6DKKU2-CAwRAr-p.js → chunk-PL6DKKU2-CiPkyomE.js} +0 -0
  385. /package/dist/assets/{chunk-SJTYNZTY-G1spWesO.js → chunk-SJTYNZTY-UJLIXgY2.js} +0 -0
  386. /package/dist/assets/{chunk-TQ3KTPDO-DBwra5xv.js → chunk-TQ3KTPDO-DQFcRP5c.js} +0 -0
  387. /package/dist/assets/{chunk-UMXZTB3W-A5RvYDPE.js → chunk-UMXZTB3W-cibob28z.js} +0 -0
  388. /package/dist/assets/{clear-button-DQtvx6eq.js → clear-button-Bsxh4lx1.js} +0 -0
  389. /package/dist/assets/{click-outside-container-CrWZsAF5.js → click-outside-container-LfSB2_ne.js} +0 -0
  390. /package/dist/assets/{clike-O0gwXilc.js → clike-D91DrsBh.js} +0 -0
  391. /package/dist/assets/{clojure-CsbMWxp9.js → clojure-B0eb_-2q.js} +0 -0
  392. /package/dist/assets/{cmake-FpJvOdyj.js → cmake-COzUvjiS.js} +0 -0
  393. /package/dist/assets/{cobol-Duxbpsru.js → cobol-DW4FSnmb.js} +0 -0
  394. /package/dist/assets/{coffeescript-D-Unz9IP.js → coffeescript-CommR2mv.js} +0 -0
  395. /package/dist/assets/{colors-C_0lIznd.js → colors-CyQT5OPu.js} +0 -0
  396. /package/dist/assets/{common-keywords-PqH2GDfH.js → common-keywords-Bk-0jOKl.js} +0 -0
  397. /package/dist/assets/{commonlisp-_nR12oc7.js → commonlisp-FR_N9RJL.js} +0 -0
  398. /package/dist/assets/{crystal-dj3W4b1A.js → crystal-CAN7bz25.js} +0 -0
  399. /package/dist/assets/{css-0BG6A_BC.js → css-DmLg8a0m.js} +0 -0
  400. /package/dist/assets/{cypher-CKPokaoH.js → cypher-BzSJn05x.js} +0 -0
  401. /package/dist/assets/{cytoscape.esm-DzUNSF80.js → cytoscape.esm-CVhOSlMZ.js} +0 -0
  402. /package/dist/assets/{d-BrbqzVa2.js → d-UpmnByGo.js} +0 -0
  403. /package/dist/assets/{diff-BmdR9FsO.js → diff-DRpitNo9.js} +0 -0
  404. /package/dist/assets/{dist-CM-lWxt3.js → dist-1DJkf78n.js} +0 -0
  405. /package/dist/assets/{dist-ByK00N0T.js → dist-6KRysbQA.js} +0 -0
  406. /package/dist/assets/{dist-98K4fusX.js → dist-8H9kNP92.js} +0 -0
  407. /package/dist/assets/{dist-OgwOt8T2.js → dist-8lZYHUSx.js} +0 -0
  408. /package/dist/assets/{dist-DNGKAtWk.js → dist-B4sFEC9P.js} +0 -0
  409. /package/dist/assets/{dist-BaKJ0-Tb.js → dist-B5BlmbY-.js} +0 -0
  410. /package/dist/assets/{dist-CpbbK4-I.js → dist-BDUj3vkc.js} +0 -0
  411. /package/dist/assets/{dist-3N7-WLqi.js → dist-C13NfWpP.js} +0 -0
  412. /package/dist/assets/{dist-DokId-qM.js → dist-C3XTRycV.js} +0 -0
  413. /package/dist/assets/{dist-56ul6-mm.js → dist-C6uSSUmH.js} +0 -0
  414. /package/dist/assets/{dist-D5ToCtv8.js → dist-CDFlR-dv.js} +0 -0
  415. /package/dist/assets/{dist-DzAAhYcW.js → dist-CaADT3TK.js} +0 -0
  416. /package/dist/assets/{dist-B8g3pNYJ.js → dist-CbTMGxEf.js} +0 -0
  417. /package/dist/assets/{dist-O5-NiN3f.js → dist-CjpCHqUI.js} +0 -0
  418. /package/dist/assets/{dist-D9sE1udr.js → dist-D0BTeZL0.js} +0 -0
  419. /package/dist/assets/{dist-DrtRBAn8.js → dist-DE4Vb9tO.js} +0 -0
  420. /package/dist/assets/{dist-D35OyUMQ.js → dist-DYsXEge_.js} +0 -0
  421. /package/dist/assets/{dist-C5kf6g-d.js → dist-lCLEUACp.js} +0 -0
  422. /package/dist/assets/{dtd-DbCXDVgi.js → dtd-CQV9N2ok.js} +0 -0
  423. /package/dist/assets/{duckdb-keywords-mPlR0SxW.js → duckdb-keywords-CqO5LWsh.js} +0 -0
  424. /package/dist/assets/{dylan-CLLzL2Js.js → dylan-Bp98yT5y.js} +0 -0
  425. /package/dist/assets/{ebnf-Cnws41cu.js → ebnf-DoGvzVmX.js} +0 -0
  426. /package/dist/assets/{ecl-BC7x2nzk.js → ecl-BgtQ3zu5.js} +0 -0
  427. /package/dist/assets/{eiffel-CDU836rz.js → eiffel-Cu14O7Gi.js} +0 -0
  428. /package/dist/assets/{elm-D-_bXARs.js → elm-Dp1dn40k.js} +0 -0
  429. /package/dist/assets/{empty-state-CqJvEFRk.js → empty-state-yX2_pzkH.js} +0 -0
  430. /package/dist/assets/{erlang-CwDZk2zM.js → erlang-DdogJjdp.js} +0 -0
  431. /package/dist/assets/{esm-D6WfbcL3.js → esm-DZILy413.js} +0 -0
  432. /package/dist/assets/{fcl-CwkPc-_9.js → fcl-CTs4ROWI.js} +0 -0
  433. /package/dist/assets/{formatting-CDf6w1Kt.js → formatting-DQX9QUSf.js} +0 -0
  434. /package/dist/assets/{forth-D6FsO_8x.js → forth-Dd0r86IP.js} +0 -0
  435. /package/dist/assets/{fortran-D4BMbIkG.js → fortran-4qvtlW4z.js} +0 -0
  436. /package/dist/assets/{gas-JFjzcgdY.js → gas-DqwqZHXy.js} +0 -0
  437. /package/dist/assets/{gherkin-Cyu-qGaF.js → gherkin-DMxJEDh5.js} +0 -0
  438. /package/dist/assets/{github-_JH-0hIO.js → github-kTVN-x1m.js} +0 -0
  439. /package/dist/assets/{groovy-CZaE9eN-.js → groovy-DA_MxBua.js} +0 -0
  440. /package/dist/assets/{haskell-Dc6o0IGr.js → haskell-B_hi8VEK.js} +0 -0
  441. /package/dist/assets/{haxe-Bsf0tzqs.js → haxe-D-I6YeRN.js} +0 -0
  442. /package/dist/assets/{http-BQNSD-HR.js → http-Ci3E2pzn.js} +0 -0
  443. /package/dist/assets/{idl-1W91kQ8_.js → idl-CteRrHSs.js} +0 -0
  444. /package/dist/assets/{init-nx27Zb9l.js → init-CYoUL2Ak.js} +0 -0
  445. /package/dist/assets/{javascript-BZ81-2rO.js → javascript-Cq9DsvSW.js} +0 -0
  446. /package/dist/assets/{julia-BZOsq0r_.js → julia-bHGj6eLp.js} +0 -0
  447. /package/dist/assets/{katex-CvZ3kCGk.js → katex-BKFLE8En.js} +0 -0
  448. /package/dist/assets/{kiosk-mode-BumOFEtY.js → kiosk-mode-CWGEgpon.js} +0 -0
  449. /package/dist/assets/{links-CZr5bjvo.js → links-CiT7FeSM.js} +0 -0
  450. /package/dist/assets/{livescript-CNZfmikk.js → livescript-C72YlTeO.js} +0 -0
  451. /package/dist/assets/{loro_wasm_bg-RNUly1SE.js → loro_wasm_bg-aCH66ryB.js} +0 -0
  452. /package/dist/assets/{lua-DXGRliwd.js → lua-DAtJrHXr.js} +0 -0
  453. /package/dist/assets/{marimo-icons-C_nFooxr.js → marimo-icons-Bq_N9GGs.js} +0 -0
  454. /package/dist/assets/{math-CLO4uoaP.js → math-D6WZfqI3.js} +0 -0
  455. /package/dist/assets/{mathematica-BoUj8M7D.js → mathematica-DGp7b8Lx.js} +0 -0
  456. /package/dist/assets/{mbox-DLVP8LAe.js → mbox-C35KjfEV.js} +0 -0
  457. /package/dist/assets/{mirc-kI4d5fMu.js → mirc-BRCHEPv1.js} +0 -0
  458. /package/dist/assets/{mllike-CD9vBc_2.js → mllike-D7ajla-U.js} +0 -0
  459. /package/dist/assets/{modelica-DgfsLJuF.js → modelica-0RGVL4ie.js} +0 -0
  460. /package/dist/assets/{mscgen-B1HDwshJ.js → mscgen-C7Ohs4Tl.js} +0 -0
  461. /package/dist/assets/{multi-icon-nrKPWjDU.js → multi-icon-C2ijLyOs.js} +0 -0
  462. /package/dist/assets/{mumps-D_-b9TZD.js → mumps-Cgag5Xef.js} +0 -0
  463. /package/dist/assets/{nginx-Cm282mo8.js → nginx-k5GTB7o1.js} +0 -0
  464. /package/dist/assets/{node-sql-parser-Si4oZ2P-.js → node-sql-parser-Dpr10aqR.js} +0 -0
  465. /package/dist/assets/{ntriples-COX9JFZ8.js → ntriples-oQv5c69K.js} +0 -0
  466. /package/dist/assets/{octave-BejycR79.js → octave-BMTXs4lo.js} +0 -0
  467. /package/dist/assets/{oz-CFFivrGn.js → oz-CuHYwo8r.js} +0 -0
  468. /package/dist/assets/{pair-with-agent-modal-BCRSACei.js → pair-with-agent-modal-D2vO1D8g.js} +0 -0
  469. /package/dist/assets/{panel-context-CH75ubGG.js → panel-context-CmeYEpWr.js} +0 -0
  470. /package/dist/assets/{pascal-B_p9jkCs.js → pascal-eFKoVV2p.js} +0 -0
  471. /package/dist/assets/{path-Bz_hIzg5.js → path-BcLO3NWe.js} +0 -0
  472. /package/dist/assets/{pathUtils-Bfcp5m-a.js → pathUtils-BbJtW9Mp.js} +0 -0
  473. /package/dist/assets/{perl-C-SFBTly.js → perl-B1OqOW8w.js} +0 -0
  474. /package/dist/assets/{pig-BhxDMp2k.js → pig-gIrBDx27.js} +0 -0
  475. /package/dist/assets/{powershell-c59M-9N2.js → powershell-3fQF2XND.js} +0 -0
  476. /package/dist/assets/{properties-D1JNwCKy.js → properties-D4HHpZmU.js} +0 -0
  477. /package/dist/assets/{protobuf-DQS7ex8R.js → protobuf-DFSTKR0L.js} +0 -0
  478. /package/dist/assets/{puppet-DaQvhvew.js → puppet-BAISgXk9.js} +0 -0
  479. /package/dist/assets/{python-XHl3eRTS.js → python-mPctBCbA.js} +0 -0
  480. /package/dist/assets/{q-DppnoRE3.js → q-CYeV5Dbb.js} +0 -0
  481. /package/dist/assets/{r-D8-F_FWj.js → r-Ds4UrjIV.js} +0 -0
  482. /package/dist/assets/{request-registry-DHocQ_4I.js → request-registry-CEkYnwgr.js} +0 -0
  483. /package/dist/assets/{requests-DYeT4CEe.js → requests-CIR84T8A.js} +0 -0
  484. /package/dist/assets/{rpm-CegJhNNO.js → rpm-DV5-r6dM.js} +0 -0
  485. /package/dist/assets/{ruby-YMIxufV1.js → ruby-B9qrycrI.js} +0 -0
  486. /package/dist/assets/{runs-DBTXqJHS.js → runs-CZN8py6x.js} +0 -0
  487. /package/dist/assets/{sas-wTtX9UIQ.js → sas-Cd7L1ZOe.js} +0 -0
  488. /package/dist/assets/{scheme-BGenom3k.js → scheme-L6Kva-Kc.js} +0 -0
  489. /package/dist/assets/{semaphore-DtBYRzWS.js → semaphore-YOr3WMiw.js} +0 -0
  490. /package/dist/assets/{shell-Bu1sLaiP.js → shell-Ck42V1Kn.js} +0 -0
  491. /package/dist/assets/{sieve-ffe6rUQh.js → sieve-DfSJcUfS.js} +0 -0
  492. /package/dist/assets/{simple-mode-DBSzUJLA.js → simple-mode-CfoR0Lvg.js} +0 -0
  493. /package/dist/assets/{smalltalk-NU5EGjHp.js → smalltalk-CT418Iph.js} +0 -0
  494. /package/dist/assets/{solr-ptw1yIqO.js → solr-DfAVBX8L.js} +0 -0
  495. /package/dist/assets/{sparql-uqVktnwO.js → sparql-BlJ_cLEt.js} +0 -0
  496. /package/dist/assets/{spreadsheet-VEzeu_mb.js → spreadsheet-Qy1VjLDU.js} +0 -0
  497. /package/dist/assets/{sql-tYjnWETe.js → sql-BAkD7JGK.js} +0 -0
  498. /package/dist/assets/{src-BshXgZd4.js → src-Dlf0iGaF.js} +0 -0
  499. /package/dist/assets/{state-D10U2MwA.js → state-DFeun9PF.js} +0 -0
  500. /package/dist/assets/{stylus-B2E6Ulaz.js → stylus-92qIiGm1.js} +0 -0
  501. /package/dist/assets/{swift-Rmnn7ATv.js → swift-gZzicbJu.js} +0 -0
  502. /package/dist/assets/{swiper-component-g8EXE911.js → swiper-component-C0ieyDzn.js} +0 -0
  503. /package/dist/assets/{tcl-ZPWCn2nn.js → tcl-CtgoBYkk.js} +0 -0
  504. /package/dist/assets/{textile-uhA33kFk.js → textile-Du3RzJ2D.js} +0 -0
  505. /package/dist/assets/{tiddlywiki-CPkGLyXH.js → tiddlywiki-CL3W3RpP.js} +0 -0
  506. /package/dist/assets/{tiki-BtjLo8OF.js → tiki-2L3jCwab.js} +0 -0
  507. /package/dist/assets/{timer-VYMLXPue.js → timer-DLLzXmjF.js} +0 -0
  508. /package/dist/assets/{toml-BFZv2Mv7.js → toml-HcF44TVB.js} +0 -0
  509. /package/dist/assets/{treemap-Bca0xNNq.js → treemap-BdaAyoGw.js} +0 -0
  510. /package/dist/assets/{troff-B5eayHop.js → troff-xbwT4huN.js} +0 -0
  511. /package/dist/assets/{ttcn-cfg-CfbkL3Q_.js → ttcn-cfg-jWDg1i50.js} +0 -0
  512. /package/dist/assets/{ttcn-BM0Yp8NY.js → ttcn-phKysj_0.js} +0 -0
  513. /package/dist/assets/{turtle-DvetLxrv.js → turtle-CPC48wcy.js} +0 -0
  514. /package/dist/assets/{types-Da7lA5YC.js → types-C7hjolXC.js} +0 -0
  515. /package/dist/assets/{use-vega-container-remeasure-CbKTb_jy.js → use-vega-container-remeasure-0GBen_rR.js} +0 -0
  516. /package/dist/assets/{useInterval-CWBTUy5W.js → useInterval-Be6s6idX.js} +0 -0
  517. /package/dist/assets/{vb-i5Z8scch.js → vb-BTubZ2rB.js} +0 -0
  518. /package/dist/assets/{vbscript-BiPYgIyi.js → vbscript-B52mDFWM.js} +0 -0
  519. /package/dist/assets/{velocity-Dw3R3YoX.js → velocity-BO3M1iFD.js} +0 -0
  520. /package/dist/assets/{verilog-B8FhJcX6.js → verilog-CBz90JJu.js} +0 -0
  521. /package/dist/assets/{vhdl-BqPEoXdJ.js → vhdl-CeQ1lGlV.js} +0 -0
  522. /package/dist/assets/{web-vitals-CwE0GGzl.js → web-vitals-Q0-_CtWm.js} +0 -0
  523. /package/dist/assets/{webidl-mMO-qW5Q.js → webidl-CRtF5pmu.js} +0 -0
  524. /package/dist/assets/{ws-BmTnbVEi.js → ws-CNqquaud.js} +0 -0
  525. /package/dist/assets/{xquery-DvqNwq7L.js → xquery-CFnbrHav.js} +0 -0
  526. /package/dist/assets/{yacas-Dku9Z6Kf.js → yacas-KIC_JO6M.js} +0 -0
  527. /package/dist/assets/{z80-DvazU5Tr.js → z80-kGpw5_me.js} +0 -0
@@ -1,4 +1,4 @@
1
- var wt;import"./purify.es-CWmnYhGI.js";import{g as F,p as re}from"./chunk-S3R3BYOJ-Bt2NnquF.js";import{u as Wt}from"./src-CIOdyciO.js";import{n as x,r as G}from"./src-BshXgZd4.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-BtK4zInQ.js";import{n as Oe,t as Se}from"./chunk-MI3HLSF2-bmomnexd.js";import{t as De}from"./dist-D9sE1udr.js";import{i as $e,n as zt,o as ct,r as Ht,s as Ut,t as Re}from"./chunk-TZMSLE5B-Dysko1OC.js";import{t as Ce}from"./chunk-QZHKN3VN-CkbwBDOS.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-CWmnYhGI.js";import{g as F,p as re}from"./chunk-S3R3BYOJ-DcZAYEft.js";import{u as Wt}from"./src-BSYB0gI9.js";import{n as x,r as G}from"./src-Dlf0iGaF.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-CCNXe-E2.js";import{n as Oe,t as Se}from"./chunk-MI3HLSF2-BwgHEi3_.js";import{t as De}from"./dist-D0BTeZL0.js";import{i as $e,n as zt,o as ct,r as Ht,s as Ut,t as Re}from"./chunk-TZMSLE5B-D2-o8-XQ.js";import{t as Ce}from"./chunk-QZHKN3VN-CmAwpNoC.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()+`
@@ -1 +1 @@
1
- import{s as ge}from"./chunk-LvLJmgfZ.js";import{d as je,l as ye,p as ve,u as J}from"./useEvent-D91BmmQi.js";import{t as Qe}from"./react-Bj1aDYRI.js";import{$r as Ye,Bn as Ze,Br as Ne,Ct as ea,E as aa,Gr as oe,Hn as ta,Hr as sa,Ir as la,Kr as we,Lt as na,N as ra,Qr as Se,Rt as oa,Tr as ce,Ur as ca,Vr as _e,Wi as Ce,Xr as ma,Yr as ia,Zr as da,d as ha,dr as ua,fn as xa,fr as pa,i as fa,j as ba,jt as ga,mr as ja,ni as Ie,qr as me,ti as ya,wr as va,xr as Na,zn as ke,zr as ie,zt as wa}from"./cells-DzyDERZy.js";import"./react-dom-CSu739Rf.js";import{t as Te}from"./compiler-runtime-B3qBwwSJ.js";import{c as Sa}from"./utils-BWBBpCkT.js";import{t as _a}from"./ErrorBoundary-DzTD8LVq.js";import{t as Q}from"./cn-DYvqRARy.js";import{t as Ca}from"./jsx-runtime-Blw4afVn.js";import"./fullscreen-CTDqNQr6.js";import{r as Ia}from"./config-BJVx3eBW.js";import"./popover-Bcz1Zikb.js";import{_ as Pe,at as ka,d as Ta,et as de,g as he,h as ue,it as Pa,m as le,nt as Fa,p as Fe,rt as $a,tt as $e}from"./JsonOutput-BIwD6Z9Y.js";import"./download-BIGA4WFm.js";import{r as Re}from"./radio-group-DfioQthW.js";import{t as xe}from"./tooltip-4bZlU7jl.js";import{r as Ra,t as ne}from"./button-DDGiD1NW.js";import"./dist-12S8I4CH.js";import{l as Y}from"./arrays-DbOq36rN.js";import"./cjs-D5tzp-Y6.js";import"./main-BNL5rxQw.js";import"./useNonce-CbdaHKzX.js";import{i as Va}from"./strings--BknHX9C.js";import{r as Da}from"./requests-9-v2bhoi.js";import{t as qa}from"./createLucideIcon-w-Qo9n0R.js";import{t as Ba}from"./x-C-Eq0ag8.js";import{a as La,r as Ma}from"./tree-actions-Dx9CDaxV.js";import"./markdown-renderer-sEayY9-m.js";import{t as Ve}from"./add-connection-dialog-DDGKGmv6.js";import{t as De}from"./plus-AgXtozBz.js";import{a as Ea}from"./input-JxFwu-3G.js";import{n as Oa,o as za}from"./column-preview-rIsKPa9V.js";import{t as Aa}from"./workflow-e-XGaKyY.js";import"./dist-DcwTQG1A.js";import"./dist-DnjsPBRJ.js";import"./dist-BJZAIIze.js";import"./dist-aRc_dRed.js";import"./dist-CPjTeT8p.js";import"./session-BmukRjSi.js";import"./purify.es-CWmnYhGI.js";import"./dates-C2LWzsCZ.js";import{t as Ua}from"./copy-icon-neDQUo4Q.js";import{t as Ga}from"./context-BFPaAUK_.js";import"./tooltip-B7U4xkIN.js";import"./vega-loader.browser-Dun7Qe4B.js";import"./defaultLocale-DOVIEEPN.js";import"./defaultLocale-BUCH2FMc.js";import{t as qe}from"./cell-link-w5IbCQV4.js";import"./chunk-5FQGJX7Z-Cp0LZT-a.js";import{r as Ha}from"./html-to-image-JaxFFZcr.js";import{o as Ka}from"./focus-CNKbm-Xz.js";import{n as pe}from"./useAsyncData-Bg5iAViP.js";import{a as Wa,i as Xa,n as Ja,o as Be,r as Qa,t as Ya}from"./table-CH2plyy9.js";import"./react-resizable-panels.browser.esm-Z-MD3n3J.js";import{a as Za,f as et,o as re,t as at}from"./command-Dqxie4gq.js";import{n as tt}from"./icons-CIPE8AIY.js";import{t as st}from"./useDeepCompareMemoize-CSMoa-ga.js";import{t as lt}from"./empty-state-CqJvEFRk.js";import{n as nt,t as rt}from"./common-CJ3baa6D.js";import{a as ot,i as ct,n as Le,r as Me,t as Ee}from"./components-DpUIWGaj.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"}]]),U=Te(),F=ge(Qe(),1),s=ge(Ca(),1),fe=1;function Oe(a){return 1.75+a*fe}function it(a){return 3+a*fe}function ze(a){return 3.25+a*fe}var A={engineEmpty:.75,engine:.75,database:1,tableLoading:2.75,tableSchemaless:2,columnLocal:1.25,columnPreview:2.5};function E(a){return{paddingLeft:`${a}rem`}}var dt=ve(a=>{let e=a(_e),t=a(ta),l=a(fa);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=Ce("marimo:datasources:hideEmpty",!1,ke,{getOnInit:!0});function Ae(a){let e=!1,t=[];for(let l of a){if(!me(l)||!oe(l)){t.push(l);continue}let n=l.child_schemas??[],i=Ae(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(we(l)&&l.schemas.length===0){e=!0;continue}if(l.schemas.length===0){t.push(l);continue}let n=Ae(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 Ue=ve(a=>{let e=new Map(a(la));for(let t of Ie){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=>Ie.has(t.name)?1:0)}),xt=()=>{let a=(0,U.c)(40),[e,t]=F.useState(""),[l,n]=ye(ht),i=je(Ne),c=J(dt),d=J(Ue),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)(Ve,{children:(0,s.jsxs)(ne,{variant:"outline",size:"sm",children:["Add database or catalog",(0,s.jsx)(De,{className:"h-4 w-4 ml-2"})]})}),icon:(0,s.jsx)(ce,{})}),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)(Ba,{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)(La,{"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)(Ve,{children:(0,s.jsx)(ne,{variant:"ghost",size:"sm",className:"px-2 rounded-none focus-visible:outline-hidden",children:(0,s.jsx)(De,{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(A.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,U.c)(26),{connection:t,children:l,hasChildren:n}=a,i=t.name===ya,c=i?"In-Memory":t.name,{previewDataSourceConnection:d}=Da(),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(A.engine),e[3]=h):h=e[3];let m;e[4]===t.dialect?m=e[5]:(m=(0,s.jsx)(ea,{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=ua(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)(Ma,{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(A.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,U.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=we(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)(We,{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,U.c)(29),{searchValue:t,engineName:l,database:n,children:i}=a,c;e[0]!==n||e[1]!==t?(c=da(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(A.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)(Pe,{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=Q("h-4 w-4",w),e[9]=w,e[10]=u);let _;e[11]===u?_=e[12]:(_=(0,s.jsx)(ce,{className:u}),e[11]=u,e[12]=_);let I=h&&r&&"font-semibold",f;e[13]===I?f=e[14]:(f=Q(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 T=r&&i,P;return e[26]!==k||e[27]!==T?(P=(0,s.jsxs)(s.Fragment,{children:[k,T]}),e[26]=k,e[27]=T,e[28]=P):P=e[28],P},We=a=>{let{schemas:e,schemasResolved:t,depth:l}=a,n=He(),{engineName:i,databaseName:c,searchValue:d}=n,{addSchemaList:r}=ie(),x=st(a.schemaPath),[h,m]=F.useState(!1),{isPending:o,error:p}=pe(async()=>{if(!t&&i){m(!0);try{r({schemas:(await na.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=>ia(b.name)?(0,s.jsx)(be,{tables:b.tables,tablesResolved:me(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,U.c)(39),{schema:t,schemaPath:l,depth:n}=a,i=He(),{databaseName:c,searchValue:d}=i,r;e[0]!==t||e[1]!==d?(r=ma(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)(Pe,{isExpanded:h}),e[10]=h,e[11]=I);let f=o&&h&&"text-foreground",v;e[12]===f?v=e[13]:(v=Q("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)(Na,{className:v}),e[14]=v,e[15]=C);let k=o&&h&&"font-semibold",T;e[16]===k?T=e[17]:(T=Q(k),e[16]=k,e[17]=T);let P;e[18]!==t.name||e[19]!==T?(P=(0,s.jsx)("span",{className:T,children:t.name}),e[18]=t.name,e[19]=T,e[20]=P):P=e[20];let R;e[21]!==P||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,P]}),e[21]=P,e[22]=u,e[23]=_,e[24]=I,e[25]=C,e[26]=j,e[27]=R):R=e[27];let V;e[28]!==w||e[29]!==n||e[30]!==h||e[31]!==t||e[32]!==l||e[33]!==d||e[34]!==i?(V=h&&(0,s.jsxs)(s.Fragment,{children:[(w.length>0||!oe(t))&&(0,s.jsx)(We,{schemas:w,schemasResolved:oe(t),schemaPath:l,depth:n+1}),(0,s.jsx)(be,{tables:t.tables,tablesResolved:me(t),searchValue:d,tableIndentRem:it(n),columnIndentRem:ze(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]=V):V=e[35];let $;return e[36]!==R||e[37]!==V?($=(0,s.jsxs)(s.Fragment,{children:[R,V]}),e[36]=R,e[37]=V,e[38]=$):$=e[38],$},be=a=>{let e=(0,U.c)(31),{tables:t,sqlTableContext:l,searchValue:n,tablesResolved:i,tableIndentRem:c,columnIndentRem:d}=a,r=i===void 0?!0:i,{addTableList:x}=ie(),[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 wa.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??A.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,U.c)(69),{table:t,sqlTableContext:l,isSearching:n,tableIndentRem:i,columnIndentRem:c}=a,{addTable:d}=ie(),[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:L,database:ae,schema:te,schemaPath:Je}=l,se=await oa.request({engine:L,database:ae,schema:te,tableName:t.name,schemaPath:Je??[]});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=J(Sa),y=Ka(),{createNewCell:j}=aa(),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 L=l!=null&&l.database?[l.database,...l.schemaPath??[],t.name].join("."):t.name;return`${t.engine}.load_table("${L}")`}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 Va(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 L=[];return t.num_rows!=null&&L.push(`${t.num_rows} rows`),t.num_columns!=null&&L.push(`${t.num_columns} columns`),L.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:L.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 L=E(c??A.tableLoading);if(S||p)return(0,s.jsx)(he,{message:"Loading columns...",style:L});if(b)return(0,s.jsx)(ue,{error:b,style:L});let ae=t.columns;return ae.length===0?(0,s.jsx)(le,{content:"No columns found",style:L}):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"?ja:va,{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,T;e[31]!==l||e[32]!==t.name?(T=Ye(l,t.name),e[31]=l,e[32]=t.name,e[33]=T):T=e[33];let P=T,R=i??(l?A.tableSchemaless:0),V=(r||n)&&"font-semibold",$;e[34]===V?$=e[35]:($=Q("rounded-none group h-8 cursor-pointer",V),e[34]=V,e[35]=$);let D;e[36]===R?D=e[37]:(D=E(R),e[36]=R,e[37]=D);let q;e[38]===r?q=e[39]:(q=()=>x(!r),e[38]=r,e[39]=q);let M;e[40]===k?M=e[41]:(M=k(),e[40]=k,e[41]=M);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 z;e[44]!==M||e[45]!==O?(z=(0,s.jsxs)("div",{className:"flex gap-2 items-center flex-1 pl-1",children:[M,O]}),e[44]=M,e[45]=O,e[46]=z):z=e[46];let B;e[47]===I?B=e[48]:(B=I(),e[47]=I,e[48]=B);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)(za,{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 W;e[54]!==r||e[55]!==D||e[56]!==q||e[57]!==z||e[58]!==B||e[59]!==K||e[60]!==$||e[61]!==P?(W=(0,s.jsxs)(re,{className:$,style:D,value:P,"aria-selected":r,forceMount:!0,onSelect:q,children:[z,B,K]}),e[54]=r,e[55]=D,e[56]=q,e[57]=z,e[58]=B,e[59]=K,e[60]=$,e[61]=P,e[62]=W):W=e[62];let X;e[63]!==r||e[64]!==v?(X=r&&v(),e[63]=r,e[64]=v,e[65]=X):X=e[65];let ee;return e[66]!==W||e[67]!==X?(ee=(0,s.jsxs)(s.Fragment,{children:[W,X]}),e[66]=W,e[67]=X,e[68]=ee):ee=e[68],ee},yt=a=>{var O,z;let e=(0,U.c)(51),{table:t,column:l,sqlTableContext:n,columnIndentRem:i}=a,[c,d]=F.useState(!1),r=J(Ne),x=je(sa);r&&c&&d(!1),x(c?B=>new Set([...B,`${t.name}:${l.name}`]):B=>(B.delete(`${t.name}:${l.name}`),new Set(B)));let h=Re(),{columnsPreviews:m}=ca(),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=((z=t.indexes)==null?void 0:z.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=B=>{h(B)},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?ze(0):A.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)(Ta,{columnName:u,dataType:l.type}),e[18]=l.type,e[19]=u,e[20]=k):k=e[20];let T;e[21]===p?T=e[22]:(T=p&&j({tooltipContent:"Primary key",content:"PK"}),e[21]=p,e[22]=T);let P;e[23]===b?P=e[24]:(P=b&&j({tooltipContent:"Indexed",content:"IDX"}),e[23]=b,e[24]=P);let R;e[25]!==C||e[26]!==k||e[27]!==T||e[28]!==P?(R=(0,s.jsxs)("div",{className:"flex flex-row gap-2 items-center flex-1",style:C,children:[k,T,P]}),e[25]=C,e[26]=k,e[27]=T,e[28]=P,e[29]=R):R=e[29];let V;e[30]===l.name?V=e[31]:(V=(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)(Ua,{tooltip:!1,value:l.name,className:"h-3 w-3"})})}),e[30]=l.name,e[31]=V);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 D;e[34]!==R||e[35]!==V||e[36]!==$||e[37]!==_||e[38]!==I||e[39]!==f?(D=(0,s.jsxs)(re,{className:"rounded-none py-1 group cursor-pointer",value:I,onSelect:f,children:[R,V,$]},_),e[34]=R,e[35]=V,e[36]=$,e[37]=_,e[38]=I,e[39]=f,e[40]=D):D=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(A.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 M;return e[48]!==D||e[49]!==q?(M=(0,s.jsxs)(s.Fragment,{children:[D,q]}),e[48]=D,e[49]=q,e[50]=M):M=e[50],M};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 Ds(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=ha(i);c&&xa(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)(Aa,{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 Xe=(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 ga(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=Fa({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:$a(),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:ka(),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:Q("w-full text-sm flex-1 border-separate border-spacing-0",a),children:[(0,s.jsx)(Wa,{children:(0,s.jsx)(Be,{className:"whitespace-nowrap text-xs",children:h.getFlatHeaders().map(m=>(0,s.jsx)(Xa,{className:"sticky top-0 bg-background border-b",children:$e(m.column.columnDef.header,m.getContext())},m.id))})}),(0,s.jsx)(Ja,{children:h.getRowModel().rows.map(m=>(0,s.jsx)(Be,{className:"hover:bg-accent",children:m.getVisibleCells().map(o=>(0,s.jsx)(Qa,{className:"border-b",children:$e(o.column.columnDef.cell,o.getContext())},o.id))},m.id))})]})]})});Xe.displayName="VariableTable";var St=Te(),_t=Ce("marimo:session-panel:state",{openSections:["variables"],hasUserInteracted:!1},ke),Ct=()=>{let a=(0,St.c)(24),e=Ze(),t=ba(),l=J(_e),n=J(Ue),[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)(ce,{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)(Me,{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)(Le,{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)(Me,{children:[(0,s.jsx)(pa,{className:"w-4 h-4"}),"Variables"]}),a[15]=j):j=a[15];let g;a[16]!==t||a[17]!==e?(g=(0,s.jsxs)(Le,{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)(Xe,{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
+ import{s as ge}from"./chunk-LvLJmgfZ.js";import{d as je,l as ye,p as ve,u as J}from"./useEvent-D91BmmQi.js";import{t as Qe}from"./react-Bj1aDYRI.js";import{$r as Ye,Bn as Ze,Br as Ne,Ct as ea,E as aa,Gr as oe,Hn as ta,Hr as sa,Ir as la,Kr as we,Lt as na,N as ra,Qr as Se,Rt as oa,Tr as ce,Ur as ca,Vr as _e,Wi as Ce,Xr as ma,Yr as ia,Zr as da,d as ha,dr as ua,fn as xa,fr as pa,i as fa,j as ba,jt as ga,mr as ja,ni as Ie,qr as me,ti as ya,wr as va,xr as Na,zn as ke,zr as ie,zt as wa}from"./cells-Jr-5Pc9f.js";import"./react-dom-CSu739Rf.js";import{t as Te}from"./compiler-runtime-B3qBwwSJ.js";import{c as Sa}from"./utils-BWBBpCkT.js";import{t as _a}from"./ErrorBoundary-DzTD8LVq.js";import{t as Q}from"./cn-DYvqRARy.js";import{t as Ca}from"./jsx-runtime-Blw4afVn.js";import"./fullscreen-CTDqNQr6.js";import{r as Ia}from"./config-BJVx3eBW.js";import"./popover-Bcz1Zikb.js";import{_ as Pe,at as ka,d as Ta,et as de,g as he,h as ue,it as Pa,m as le,nt as Fa,p as Fe,rt as $a,tt as $e}from"./JsonOutput-BM3vve9F.js";import"./download-CQ7iZFJL.js";import{r as Re}from"./radio-group-rhQpGwU-.js";import{t as xe}from"./tooltip-4bZlU7jl.js";import{r as Ra,t as ne}from"./button-DDGiD1NW.js";import"./dist-12S8I4CH.js";import{l as Y}from"./arrays-DbOq36rN.js";import"./cjs-D5tzp-Y6.js";import"./main-BNL5rxQw.js";import"./useNonce-CbdaHKzX.js";import{i as Va}from"./strings--BknHX9C.js";import{r as Da}from"./requests-9-v2bhoi.js";import{t as qa}from"./createLucideIcon-w-Qo9n0R.js";import{t as Ba}from"./x-C-Eq0ag8.js";import{a as La,r as Ma}from"./tree-actions-DDveUIHK.js";import"./markdown-renderer-BgqeO4JR.js";import{t as Ve}from"./add-connection-dialog-syjRSNPT.js";import{t as De}from"./plus-AgXtozBz.js";import{a as Ea}from"./input-JxFwu-3G.js";import{n as Oa,o as za}from"./column-preview-BUHlI5va.js";import{t as Aa}from"./workflow-e-XGaKyY.js";import"./dist-DcwTQG1A.js";import"./dist-DnjsPBRJ.js";import"./dist-BJZAIIze.js";import"./dist-aRc_dRed.js";import"./dist-CPjTeT8p.js";import"./session-BmukRjSi.js";import"./purify.es-CWmnYhGI.js";import"./dates-C2LWzsCZ.js";import{t as Ua}from"./copy-icon-neDQUo4Q.js";import{t as Ga}from"./context-BFPaAUK_.js";import"./tooltip-B7U4xkIN.js";import"./vega-loader.browser-Dun7Qe4B.js";import"./defaultLocale-DOVIEEPN.js";import"./defaultLocale-BUCH2FMc.js";import{t as qe}from"./cell-link-DqNEv3f9.js";import"./chunk-5FQGJX7Z-BEbM01OT.js";import{r as Ha}from"./html-to-image-CfjhKLA4.js";import{o as Ka}from"./focus-C0HXXg3V.js";import{n as pe}from"./useAsyncData-Bg5iAViP.js";import{a as Wa,i as Xa,n as Ja,o as Be,r as Qa,t as Ya}from"./table-CH2plyy9.js";import"./react-resizable-panels.browser.esm-Z-MD3n3J.js";import{a as Za,f as et,o as re,t as at}from"./command-Dqxie4gq.js";import{n as tt}from"./icons-CIPE8AIY.js";import{t as st}from"./useDeepCompareMemoize-CSMoa-ga.js";import{t as lt}from"./empty-state-yX2_pzkH.js";import{n as nt,t as rt}from"./common-CZc3fQI4.js";import{a as ot,i as ct,n as Le,r as Me,t as Ee}from"./components-GAYCj6Mx.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"}]]),U=Te(),F=ge(Qe(),1),s=ge(Ca(),1),fe=1;function Oe(a){return 1.75+a*fe}function it(a){return 3+a*fe}function ze(a){return 3.25+a*fe}var A={engineEmpty:.75,engine:.75,database:1,tableLoading:2.75,tableSchemaless:2,columnLocal:1.25,columnPreview:2.5};function E(a){return{paddingLeft:`${a}rem`}}var dt=ve(a=>{let e=a(_e),t=a(ta),l=a(fa);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=Ce("marimo:datasources:hideEmpty",!1,ke,{getOnInit:!0});function Ae(a){let e=!1,t=[];for(let l of a){if(!me(l)||!oe(l)){t.push(l);continue}let n=l.child_schemas??[],i=Ae(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(we(l)&&l.schemas.length===0){e=!0;continue}if(l.schemas.length===0){t.push(l);continue}let n=Ae(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 Ue=ve(a=>{let e=new Map(a(la));for(let t of Ie){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=>Ie.has(t.name)?1:0)}),xt=()=>{let a=(0,U.c)(40),[e,t]=F.useState(""),[l,n]=ye(ht),i=je(Ne),c=J(dt),d=J(Ue),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)(Ve,{children:(0,s.jsxs)(ne,{variant:"outline",size:"sm",children:["Add database or catalog",(0,s.jsx)(De,{className:"h-4 w-4 ml-2"})]})}),icon:(0,s.jsx)(ce,{})}),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)(Ba,{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)(La,{"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)(Ve,{children:(0,s.jsx)(ne,{variant:"ghost",size:"sm",className:"px-2 rounded-none focus-visible:outline-hidden",children:(0,s.jsx)(De,{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(A.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,U.c)(26),{connection:t,children:l,hasChildren:n}=a,i=t.name===ya,c=i?"In-Memory":t.name,{previewDataSourceConnection:d}=Da(),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(A.engine),e[3]=h):h=e[3];let m;e[4]===t.dialect?m=e[5]:(m=(0,s.jsx)(ea,{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=ua(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)(Ma,{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(A.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,U.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=we(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)(We,{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,U.c)(29),{searchValue:t,engineName:l,database:n,children:i}=a,c;e[0]!==n||e[1]!==t?(c=da(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(A.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)(Pe,{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=Q("h-4 w-4",w),e[9]=w,e[10]=u);let _;e[11]===u?_=e[12]:(_=(0,s.jsx)(ce,{className:u}),e[11]=u,e[12]=_);let I=h&&r&&"font-semibold",f;e[13]===I?f=e[14]:(f=Q(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 T=r&&i,P;return e[26]!==k||e[27]!==T?(P=(0,s.jsxs)(s.Fragment,{children:[k,T]}),e[26]=k,e[27]=T,e[28]=P):P=e[28],P},We=a=>{let{schemas:e,schemasResolved:t,depth:l}=a,n=He(),{engineName:i,databaseName:c,searchValue:d}=n,{addSchemaList:r}=ie(),x=st(a.schemaPath),[h,m]=F.useState(!1),{isPending:o,error:p}=pe(async()=>{if(!t&&i){m(!0);try{r({schemas:(await na.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=>ia(b.name)?(0,s.jsx)(be,{tables:b.tables,tablesResolved:me(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,U.c)(39),{schema:t,schemaPath:l,depth:n}=a,i=He(),{databaseName:c,searchValue:d}=i,r;e[0]!==t||e[1]!==d?(r=ma(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)(Pe,{isExpanded:h}),e[10]=h,e[11]=I);let f=o&&h&&"text-foreground",v;e[12]===f?v=e[13]:(v=Q("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)(Na,{className:v}),e[14]=v,e[15]=C);let k=o&&h&&"font-semibold",T;e[16]===k?T=e[17]:(T=Q(k),e[16]=k,e[17]=T);let P;e[18]!==t.name||e[19]!==T?(P=(0,s.jsx)("span",{className:T,children:t.name}),e[18]=t.name,e[19]=T,e[20]=P):P=e[20];let R;e[21]!==P||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,P]}),e[21]=P,e[22]=u,e[23]=_,e[24]=I,e[25]=C,e[26]=j,e[27]=R):R=e[27];let V;e[28]!==w||e[29]!==n||e[30]!==h||e[31]!==t||e[32]!==l||e[33]!==d||e[34]!==i?(V=h&&(0,s.jsxs)(s.Fragment,{children:[(w.length>0||!oe(t))&&(0,s.jsx)(We,{schemas:w,schemasResolved:oe(t),schemaPath:l,depth:n+1}),(0,s.jsx)(be,{tables:t.tables,tablesResolved:me(t),searchValue:d,tableIndentRem:it(n),columnIndentRem:ze(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]=V):V=e[35];let $;return e[36]!==R||e[37]!==V?($=(0,s.jsxs)(s.Fragment,{children:[R,V]}),e[36]=R,e[37]=V,e[38]=$):$=e[38],$},be=a=>{let e=(0,U.c)(31),{tables:t,sqlTableContext:l,searchValue:n,tablesResolved:i,tableIndentRem:c,columnIndentRem:d}=a,r=i===void 0?!0:i,{addTableList:x}=ie(),[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 wa.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??A.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,U.c)(69),{table:t,sqlTableContext:l,isSearching:n,tableIndentRem:i,columnIndentRem:c}=a,{addTable:d}=ie(),[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:L,database:ae,schema:te,schemaPath:Je}=l,se=await oa.request({engine:L,database:ae,schema:te,tableName:t.name,schemaPath:Je??[]});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=J(Sa),y=Ka(),{createNewCell:j}=aa(),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 L=l!=null&&l.database?[l.database,...l.schemaPath??[],t.name].join("."):t.name;return`${t.engine}.load_table("${L}")`}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 Va(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 L=[];return t.num_rows!=null&&L.push(`${t.num_rows} rows`),t.num_columns!=null&&L.push(`${t.num_columns} columns`),L.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:L.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 L=E(c??A.tableLoading);if(S||p)return(0,s.jsx)(he,{message:"Loading columns...",style:L});if(b)return(0,s.jsx)(ue,{error:b,style:L});let ae=t.columns;return ae.length===0?(0,s.jsx)(le,{content:"No columns found",style:L}):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"?ja:va,{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,T;e[31]!==l||e[32]!==t.name?(T=Ye(l,t.name),e[31]=l,e[32]=t.name,e[33]=T):T=e[33];let P=T,R=i??(l?A.tableSchemaless:0),V=(r||n)&&"font-semibold",$;e[34]===V?$=e[35]:($=Q("rounded-none group h-8 cursor-pointer",V),e[34]=V,e[35]=$);let D;e[36]===R?D=e[37]:(D=E(R),e[36]=R,e[37]=D);let q;e[38]===r?q=e[39]:(q=()=>x(!r),e[38]=r,e[39]=q);let M;e[40]===k?M=e[41]:(M=k(),e[40]=k,e[41]=M);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 z;e[44]!==M||e[45]!==O?(z=(0,s.jsxs)("div",{className:"flex gap-2 items-center flex-1 pl-1",children:[M,O]}),e[44]=M,e[45]=O,e[46]=z):z=e[46];let B;e[47]===I?B=e[48]:(B=I(),e[47]=I,e[48]=B);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)(za,{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 W;e[54]!==r||e[55]!==D||e[56]!==q||e[57]!==z||e[58]!==B||e[59]!==K||e[60]!==$||e[61]!==P?(W=(0,s.jsxs)(re,{className:$,style:D,value:P,"aria-selected":r,forceMount:!0,onSelect:q,children:[z,B,K]}),e[54]=r,e[55]=D,e[56]=q,e[57]=z,e[58]=B,e[59]=K,e[60]=$,e[61]=P,e[62]=W):W=e[62];let X;e[63]!==r||e[64]!==v?(X=r&&v(),e[63]=r,e[64]=v,e[65]=X):X=e[65];let ee;return e[66]!==W||e[67]!==X?(ee=(0,s.jsxs)(s.Fragment,{children:[W,X]}),e[66]=W,e[67]=X,e[68]=ee):ee=e[68],ee},yt=a=>{var O,z;let e=(0,U.c)(51),{table:t,column:l,sqlTableContext:n,columnIndentRem:i}=a,[c,d]=F.useState(!1),r=J(Ne),x=je(sa);r&&c&&d(!1),x(c?B=>new Set([...B,`${t.name}:${l.name}`]):B=>(B.delete(`${t.name}:${l.name}`),new Set(B)));let h=Re(),{columnsPreviews:m}=ca(),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=((z=t.indexes)==null?void 0:z.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=B=>{h(B)},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?ze(0):A.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)(Ta,{columnName:u,dataType:l.type}),e[18]=l.type,e[19]=u,e[20]=k):k=e[20];let T;e[21]===p?T=e[22]:(T=p&&j({tooltipContent:"Primary key",content:"PK"}),e[21]=p,e[22]=T);let P;e[23]===b?P=e[24]:(P=b&&j({tooltipContent:"Indexed",content:"IDX"}),e[23]=b,e[24]=P);let R;e[25]!==C||e[26]!==k||e[27]!==T||e[28]!==P?(R=(0,s.jsxs)("div",{className:"flex flex-row gap-2 items-center flex-1",style:C,children:[k,T,P]}),e[25]=C,e[26]=k,e[27]=T,e[28]=P,e[29]=R):R=e[29];let V;e[30]===l.name?V=e[31]:(V=(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)(Ua,{tooltip:!1,value:l.name,className:"h-3 w-3"})})}),e[30]=l.name,e[31]=V);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 D;e[34]!==R||e[35]!==V||e[36]!==$||e[37]!==_||e[38]!==I||e[39]!==f?(D=(0,s.jsxs)(re,{className:"rounded-none py-1 group cursor-pointer",value:I,onSelect:f,children:[R,V,$]},_),e[34]=R,e[35]=V,e[36]=$,e[37]=_,e[38]=I,e[39]=f,e[40]=D):D=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(A.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 M;return e[48]!==D||e[49]!==q?(M=(0,s.jsxs)(s.Fragment,{children:[D,q]}),e[48]=D,e[49]=q,e[50]=M):M=e[50],M};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 Ds(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=ha(i);c&&xa(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)(Aa,{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 Xe=(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 ga(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=Fa({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:$a(),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:ka(),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:Q("w-full text-sm flex-1 border-separate border-spacing-0",a),children:[(0,s.jsx)(Wa,{children:(0,s.jsx)(Be,{className:"whitespace-nowrap text-xs",children:h.getFlatHeaders().map(m=>(0,s.jsx)(Xa,{className:"sticky top-0 bg-background border-b",children:$e(m.column.columnDef.header,m.getContext())},m.id))})}),(0,s.jsx)(Ja,{children:h.getRowModel().rows.map(m=>(0,s.jsx)(Be,{className:"hover:bg-accent",children:m.getVisibleCells().map(o=>(0,s.jsx)(Qa,{className:"border-b",children:$e(o.column.columnDef.cell,o.getContext())},o.id))},m.id))})]})]})});Xe.displayName="VariableTable";var St=Te(),_t=Ce("marimo:session-panel:state",{openSections:["variables"],hasUserInteracted:!1},ke),Ct=()=>{let a=(0,St.c)(24),e=Ze(),t=ba(),l=J(_e),n=J(Ue),[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)(ce,{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)(Me,{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)(Le,{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)(Me,{children:[(0,s.jsx)(pa,{className:"w-4 h-4"}),"Variables"]}),a[15]=j):j=a[15];let g;a[16]!==t||a[17]!==e?(g=(0,s.jsxs)(Le,{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)(Xe,{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};
@@ -0,0 +1 @@
1
+ import{t as e}from"./shell-Ck42V1Kn.js";export{e as shell};
@@ -0,0 +1 @@
1
+ import{t as e}from"./sieve-DfSJcUfS.js";export{e as sieve};
@@ -1 +1 @@
1
- var A=Object.defineProperty;var N=(t,e,r)=>e in t?A(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var b=(t,e,r)=>N(t,typeof e!="symbol"?e+"":e,r);import{s as T}from"./chunk-LvLJmgfZ.js";import{u as I}from"./useEvent-D91BmmQi.js";import{a as V}from"./cells-DzyDERZy.js";import{t as M}from"./compiler-runtime-B3qBwwSJ.js";import{g as k}from"./useEventListener-C0195JsF.js";import{t as E}from"./objects-BlG0ZrO0.js";import{o as _}from"./utils-BWBBpCkT.js";import{T as P,v as z}from"./config-B-Q7J_6d.js";import{t as D}from"./cn-DYvqRARy.js";import{t as $}from"./jsx-runtime-Blw4afVn.js";import{c as B,d as H}from"./download-BIGA4WFm.js";import{r as L}from"./requests-9-v2bhoi.js";import{F as R}from"./layout-rWti2H65.js";import{t as Y}from"./Deferred-D2igisxY.js";import{t as q}from"./use-toast-BwJoaaDM.js";import{t as x}from"./useInterval-CWBTUy5W.js";var G=class{constructor(){b(this,"capturedInputs",new Map);b(this,"inFlight",new Map)}cancelEntry(t){t.controller.abort(),t.deferred.status==="pending"&&t.deferred.resolve(void 0)}needsCapture(t,e){if(this.capturedInputs.get(t)===e)return!1;let r=this.inFlight.get(t);return!(r&&r.inputValue===e)}waitForInFlight(t,e){let r=this.inFlight.get(t);return r&&r.inputValue===e?r.deferred.promise:null}startCapture(t,e){let r=this.inFlight.get(t);r&&this.cancelEntry(r);let a=new AbortController,i=new Y,s={controller:a,inputValue:e,deferred:i};return this.inFlight.set(t,s),{signal:a.signal,markCaptured:p=>{this.inFlight.get(t)===s&&(i.resolve(p),this.capturedInputs.set(t,e),this.inFlight.delete(t))},markFailed:()=>{this.inFlight.get(t)===s&&(i.resolve(void 0),this.inFlight.delete(t))}}}prune(t){for(let e of this.capturedInputs.keys())t.has(e)||this.capturedInputs.delete(e);for(let[e,r]of this.inFlight)t.has(e)||(this.cancelEntry(r),this.inFlight.delete(e))}get isCapturing(){return this.inFlight.size>0}abort(){for(let t of this.inFlight.values())this.cancelEntry(t);this.inFlight.clear()}reset(){this.abort(),this.capturedInputs.clear()}},J=M(),S=5e3;function K(){let t=(0,J.c)(14),e=I(_),{state:r}=I(z),a=e.auto_download.includes("markdown"),i=e.auto_download.includes("html"),s=e.auto_download.includes("ipynb"),p=r===P.OPEN,m=!a||!p,d=!i||!p,c=!s||!p,{autoExportAsHTML:l,autoExportAsIPYNB:o,autoExportAsMarkdown:n,updateCellOutputs:u}=L(),h=O(),f;t[0]===n?f=t[1]:(f=async()=>{await n({download:!1})},t[0]=n,t[1]=f);let g;t[2]===m?g=t[3]:(g={delayMs:S,whenVisible:!0,disabled:m},t[2]=m,t[3]=g),x(f,g);let w;t[4]===l?w=t[5]:(w=async()=>{await l({download:!1,includeCode:!0,files:R.INSTANCE.filenames()})},t[4]=l,t[5]=w);let v;t[6]===d?v=t[7]:(v={delayMs:S,whenVisible:!0,disabled:d},t[6]=d,t[7]=v),x(w,v);let F;t[8]!==o||t[9]!==h||t[10]!==u?(F=async()=>{await j({takeScreenshots:()=>h({progress:H.indeterminate()}),updateCellOutputs:u}),await o({download:!1})},t[8]=o,t[9]=h,t[10]=u,t[11]=F):F=t[11];let y;t[12]===c?y=t[13]:(y={delayMs:S,whenVisible:!0,disabled:c,skipIfRunning:!0},t[12]=c,t[13]=y),x(F,y)}var Q=new Set(["text/html","application/vnd.vegalite.v5+json","application/vnd.vega.v5+json","application/vnd.vegalite.v6+json","application/vnd.vega.v6+json"]);const C=new G;function O(){let t=I(V);return async e=>{var d,c;let{progress:r}=e,a=new Set(E.keys(t));C.prune(a);let i=[],s=[];for(let[l,o]of E.entries(t)){let n=(d=o.output)==null?void 0:d.data;if((c=o.output)!=null&&c.mimetype&&Q.has(o.output.mimetype)&&n)if(C.needsCapture(l,n))i.push([l,n]);else{let u=C.waitForInFlight(l,n);u&&s.push({cellId:l,promise:u})}}if(i.length===0&&s.length===0)return{};i.length>0&&r.addTotal(i.length);let p={};for(let[l,o]of i){let n=C.startCapture(l,o);try{let u=await B(l);if(n.signal.aborted)continue;if(!u){k.error(`Failed to capture screenshot for cell ${l}`),n.markFailed();continue}let h=["image/png",u];p[l]=h,n.markCaptured(h)}catch(u){k.error(`Error screenshotting cell ${l}:`,u),n.markFailed()}finally{r.increment(1)}}let m=await Promise.allSettled(s.map(({promise:l})=>l));for(let[l,{cellId:o}]of s.entries()){let n=m[l];n.status==="fulfilled"&&n.value&&(p[o]=n.value)}return p}}async function j(t){let{takeScreenshots:e,updateCellOutputs:r}=t;try{let a=await e();E.size(a)>0&&await r({cellIdsToOutput:a})}catch(a){k.error("Error updating cell outputs with screenshots:",a),q({title:"Failed to capture cell outputs",description:"Some outputs may be missing from the export. Continuing.",variant:"danger"})}}var U=M(),W=T($(),1),X=t=>{let e=(0,U.c)(8),r,a;e[0]===t?(r=e[1],a=e[2]):({className:r,...a}=t,e[0]=t,e[1]=r,e[2]=a);let i;e[3]===r?i=e[4]:(i=D("animate-pulse rounded-md bg-muted",r),e[3]=r,e[4]=i);let s;return e[5]!==a||e[6]!==i?(s=(0,W.jsx)("div",{className:i,...a}),e[5]=a,e[6]=i,e[7]=s):s=e[7],s};export{O as i,j as n,K as r,X as t};
1
+ var A=Object.defineProperty;var N=(t,e,r)=>e in t?A(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var b=(t,e,r)=>N(t,typeof e!="symbol"?e+"":e,r);import{s as T}from"./chunk-LvLJmgfZ.js";import{u as I}from"./useEvent-D91BmmQi.js";import{a as V}from"./cells-Jr-5Pc9f.js";import{t as M}from"./compiler-runtime-B3qBwwSJ.js";import{g as k}from"./useEventListener-C0195JsF.js";import{t as E}from"./objects-BlG0ZrO0.js";import{o as _}from"./utils-BWBBpCkT.js";import{T as P,v as z}from"./config-B-Q7J_6d.js";import{t as D}from"./cn-DYvqRARy.js";import{t as $}from"./jsx-runtime-Blw4afVn.js";import{c as B,d as H}from"./download-CQ7iZFJL.js";import{r as L}from"./requests-9-v2bhoi.js";import{F as R}from"./layout-D4bpsgVD.js";import{t as Y}from"./Deferred-D2igisxY.js";import{t as q}from"./use-toast-BwJoaaDM.js";import{t as x}from"./useInterval-Be6s6idX.js";var G=class{constructor(){b(this,"capturedInputs",new Map);b(this,"inFlight",new Map)}cancelEntry(t){t.controller.abort(),t.deferred.status==="pending"&&t.deferred.resolve(void 0)}needsCapture(t,e){if(this.capturedInputs.get(t)===e)return!1;let r=this.inFlight.get(t);return!(r&&r.inputValue===e)}waitForInFlight(t,e){let r=this.inFlight.get(t);return r&&r.inputValue===e?r.deferred.promise:null}startCapture(t,e){let r=this.inFlight.get(t);r&&this.cancelEntry(r);let a=new AbortController,i=new Y,s={controller:a,inputValue:e,deferred:i};return this.inFlight.set(t,s),{signal:a.signal,markCaptured:p=>{this.inFlight.get(t)===s&&(i.resolve(p),this.capturedInputs.set(t,e),this.inFlight.delete(t))},markFailed:()=>{this.inFlight.get(t)===s&&(i.resolve(void 0),this.inFlight.delete(t))}}}prune(t){for(let e of this.capturedInputs.keys())t.has(e)||this.capturedInputs.delete(e);for(let[e,r]of this.inFlight)t.has(e)||(this.cancelEntry(r),this.inFlight.delete(e))}get isCapturing(){return this.inFlight.size>0}abort(){for(let t of this.inFlight.values())this.cancelEntry(t);this.inFlight.clear()}reset(){this.abort(),this.capturedInputs.clear()}},J=M(),S=5e3;function K(){let t=(0,J.c)(14),e=I(_),{state:r}=I(z),a=e.auto_download.includes("markdown"),i=e.auto_download.includes("html"),s=e.auto_download.includes("ipynb"),p=r===P.OPEN,m=!a||!p,d=!i||!p,c=!s||!p,{autoExportAsHTML:l,autoExportAsIPYNB:o,autoExportAsMarkdown:n,updateCellOutputs:u}=L(),h=O(),f;t[0]===n?f=t[1]:(f=async()=>{await n({download:!1})},t[0]=n,t[1]=f);let g;t[2]===m?g=t[3]:(g={delayMs:S,whenVisible:!0,disabled:m},t[2]=m,t[3]=g),x(f,g);let w;t[4]===l?w=t[5]:(w=async()=>{await l({download:!1,includeCode:!0,files:R.INSTANCE.filenames()})},t[4]=l,t[5]=w);let v;t[6]===d?v=t[7]:(v={delayMs:S,whenVisible:!0,disabled:d},t[6]=d,t[7]=v),x(w,v);let F;t[8]!==o||t[9]!==h||t[10]!==u?(F=async()=>{await j({takeScreenshots:()=>h({progress:H.indeterminate()}),updateCellOutputs:u}),await o({download:!1})},t[8]=o,t[9]=h,t[10]=u,t[11]=F):F=t[11];let y;t[12]===c?y=t[13]:(y={delayMs:S,whenVisible:!0,disabled:c,skipIfRunning:!0},t[12]=c,t[13]=y),x(F,y)}var Q=new Set(["text/html","application/vnd.vegalite.v5+json","application/vnd.vega.v5+json","application/vnd.vegalite.v6+json","application/vnd.vega.v6+json"]);const C=new G;function O(){let t=I(V);return async e=>{var d,c;let{progress:r}=e,a=new Set(E.keys(t));C.prune(a);let i=[],s=[];for(let[l,o]of E.entries(t)){let n=(d=o.output)==null?void 0:d.data;if((c=o.output)!=null&&c.mimetype&&Q.has(o.output.mimetype)&&n)if(C.needsCapture(l,n))i.push([l,n]);else{let u=C.waitForInFlight(l,n);u&&s.push({cellId:l,promise:u})}}if(i.length===0&&s.length===0)return{};i.length>0&&r.addTotal(i.length);let p={};for(let[l,o]of i){let n=C.startCapture(l,o);try{let u=await B(l);if(n.signal.aborted)continue;if(!u){k.error(`Failed to capture screenshot for cell ${l}`),n.markFailed();continue}let h=["image/png",u];p[l]=h,n.markCaptured(h)}catch(u){k.error(`Error screenshotting cell ${l}:`,u),n.markFailed()}finally{r.increment(1)}}let m=await Promise.allSettled(s.map(({promise:l})=>l));for(let[l,{cellId:o}]of s.entries()){let n=m[l];n.status==="fulfilled"&&n.value&&(p[o]=n.value)}return p}}async function j(t){let{takeScreenshots:e,updateCellOutputs:r}=t;try{let a=await e();E.size(a)>0&&await r({cellIdsToOutput:a})}catch(a){k.error("Error updating cell outputs with screenshots:",a),q({title:"Failed to capture cell outputs",description:"Some outputs may be missing from the export. Continuing.",variant:"danger"})}}var U=M(),W=T($(),1),X=t=>{let e=(0,U.c)(8),r,a;e[0]===t?(r=e[1],a=e[2]):({className:r,...a}=t,e[0]=t,e[1]=r,e[2]=a);let i;e[3]===r?i=e[4]:(i=D("animate-pulse rounded-md bg-muted",r),e[3]=r,e[4]=i);let s;return e[5]!==a||e[6]!==i?(s=(0,W.jsx)("div",{className:i,...a}),e[5]=a,e[6]=i,e[7]=s):s=e[7],s};export{O as i,j as n,K as r,X as t};
@@ -0,0 +1 @@
1
+ import{t as a}from"./smalltalk-CT418Iph.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{E as F}from"./cells-DzyDERZy.js";import"./react-dom-CSu739Rf.js";import{t as $}from"./compiler-runtime-B3qBwwSJ.js";import{n as G}from"./useEventListener-C0195JsF.js";import{n as R}from"./constants-CDyU_g2F.js";import{t as T}from"./cn-DYvqRARy.js";import{t as W}from"./jsx-runtime-Blw4afVn.js";import"./fullscreen-CTDqNQr6.js";import{t as A}from"./tooltip-4bZlU7jl.js";import{t as w}from"./button-DDGiD1NW.js";import{st as B}from"./dist-12S8I4CH.js";import"./cjs-D5tzp-Y6.js";import"./main-BNL5rxQw.js";import"./useNonce-CbdaHKzX.js";import{r as J}from"./requests-9-v2bhoi.js";import{n as E,t as K}from"./LazyAnyLanguageCodeMirror-B2JvSXP-.js";import{t as L}from"./x-C-Eq0ag8.js";import{t as U}from"./spinner-D-V4psAa.js";import{t as V}from"./plus-AgXtozBz.js";import"./dist-DcwTQG1A.js";import"./dist-DnjsPBRJ.js";import"./dist-BJZAIIze.js";import"./dist-aRc_dRed.js";import"./dist-CPjTeT8p.js";import"./session-BmukRjSi.js";import{r as X}from"./useTheme-Bxv9B31g.js";import"./purify.es-CWmnYhGI.js";import{t as Y}from"./RenderHTML-Cd-PP5ZR.js";import{a as Z,c as Q,i as ee,n as te,r as se}from"./dialog-BCVepWLJ.js";import{n as re}from"./ImperativeModal-fY-ZfT0b.js";import{n as le}from"./error-banner-BSxEOIn2.js";import{o as oe}from"./focus-CNKbm-Xz.js";import{n as ie}from"./useAsyncData-Bg5iAViP.js";import{n as ae,r as ne,t as M}from"./react-resizable-panels.browser.esm-Z-MD3n3J.js";import{a as me,f as ce,o as de,r as pe,t as fe}from"./command-Dqxie4gq.js";import{t as he}from"./empty-state-CqJvEFRk.js";import{n as xe,r as ue}from"./panel-context-CH75ubGG.js";import{t as je}from"./readonly-code-display-C9fu8tvK.js";import{t as H}from"./kiosk-mode-BumOFEtY.js";var O=$(),C=I(D(),1),s=I(W(),1),be=G;const ve=t=>{let e=(0,O.c)(6),{children:r}=t,{openModal:i,closeModal:o}=re(),l;e[0]!==o||e[1]!==i?(l=()=>i((0,s.jsx)(Ne,{onClose:o})),e[0]=o,e[1]=i,e[2]=l):l=e[2];let a;return e[3]!==r||e[4]!==l?(a=(0,s.jsx)(be,{onClick:l,children:r}),e[3]=r,e[4]=l,e[5]=a):a=e[5],a};var Ne=t=>{let e=(0,O.c)(4),{onClose:r}=t,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)(Q,{children:"Contribute a Snippet"}),e[0]=i):i=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=(0,s.jsxs)(Z,{children:[i,(0,s.jsxs)(se,{children:["Have a useful snippet you want to share with the community? Make a pull request"," ",(0,s.jsx)("a",{href:R.githubPage,target:"_blank",className:"underline",children:"on GitHub"}),"."]})]}),e[1]=o):o=e[1];let l;return e[2]===r?l=e[3]:(l=(0,s.jsxs)(te,{className:"max-w-md",children:[o,(0,s.jsx)(ee,{children:(0,s.jsx)(w,{"data-testid":"snippet-close-button",variant:"default",onClick:r,children:"Close"})})]}),e[2]=r,e[3]=l),l},k=$(),_e=[B.lineWrapping],ge=()=>{let t=(0,k.c)(24),{readSnippets:e}=J(),[r,i]=C.useState(),o=xe(),l=ue(),a;t[0]===e?a=t[1]:(a=()=>e(),t[0]=e,t[1]=a);let c;t[2]===Symbol.for("react.memo_cache_sentinel")?(c=[],t[2]=c):c=t[2];let{data:N,error:j,isPending:g}=ie(a,c);if(j){let m;return t[3]===j?m=t[4]:(m=(0,s.jsx)(le,{error:j}),t[3]=j,t[4]=m),m}if(g||!N){let m;return t[5]===Symbol.for("react.memo_cache_sentinel")?(m=(0,s.jsx)(U,{size:"medium",centered:!0}),t[5]=m):m=t[5],m}let _=o==="vertical",b;t[6]===Symbol.for("react.memo_cache_sentinel")?(b=(0,s.jsx)(me,{placeholder:"Search snippets...",className:"h-6 m-1",rootClassName:"flex-1 border-r"}),t[6]=b):b=t[6];let f,h;t[7]===Symbol.for("react.memo_cache_sentinel")?(f=(0,s.jsxs)("div",{className:"flex items-center w-full border-b",children:[b,(0,s.jsx)(ve,{children:(0,s.jsx)("button",{className:"float-right px-2 m-0 h-full hover:bg-accent hover:text-accent-foreground",children:(0,s.jsx)(V,{className:"h-4 w-4"})})})]}),h=(0,s.jsx)(pe,{children:"No results"}),t[7]=f,t[8]=h):(f=t[7],h=t[8]);let v;t[9]===Symbol.for("react.memo_cache_sentinel")?(v=m=>i(m),t[9]=v):v=t[9];let d;t[10]===N.snippets?d=t[11]:(d=(0,s.jsx)(M,{defaultSize:40,minSize:20,maxSize:70,children:(0,s.jsxs)(fe,{className:"h-full rounded-none",children:[f,h,(0,s.jsx)(we,{onSelect:v,snippets:N.snippets})]})}),t[10]=N.snippets,t[11]=d);let u=_?"h-1":"w-1",p;t[12]===u?p=t[13]:(p=T("bg-border hover:bg-primary/50 transition-colors",u),t[12]=u,t[13]=p);let x;t[14]===p?x=t[15]:(x=(0,s.jsx)(ne,{className:p}),t[14]=p,t[15]=x);let n;t[16]===r?n=t[17]:(n=(0,s.jsx)(M,{defaultSize:60,minSize:20,children:(0,s.jsx)(C.Suspense,{children:(0,s.jsx)("div",{className:"h-full snippet-viewer flex flex-col overflow-hidden",children:r?(0,s.jsx)(Se,{snippet:r,onClose:()=>i(void 0)},r.title):(0,s.jsx)(he,{title:"",description:"Click on a snippet to view its content."})})})}),t[16]=r,t[17]=n);let S;return t[18]!==o||t[19]!==l||t[20]!==n||t[21]!==d||t[22]!==x?(S=(0,s.jsx)("div",{className:"flex-1 overflow-hidden h-full",children:(0,s.jsxs)(ae,{direction:o,className:"h-full",children:[d,x,n]},l)}),t[18]=o,t[19]=l,t[20]=n,t[21]=d,t[22]=x,t[23]=S):S=t[23],S},Se=t=>{let e=(0,k.c)(33),{snippet:r,onClose:i}=t,{theme:o}=X(),{createNewCell:l}=F(),a=oe(),c;e[0]!==l||e[1]!==a||e[2]!==r.sections?(c=()=>{for(let n of r.sections.toReversed())n.code&&l({code:n.code,before:!1,cellId:a??"__end__",skipIfCodeExists:!0})},e[0]=l,e[1]=a,e[2]=r.sections,e[3]=c):c=e[3];let N=c,j;e[4]!==l||e[5]!==a?(j=n=>{l({code:n,before:!1,cellId:a??"__end__"})},e[4]=l,e[5]=a,e[6]=j):j=e[6];let g=j,_;e[7]===r.title?_=e[8]:(_=(0,s.jsx)("span",{children:r.title}),e[7]=r.title,e[8]=_);let b;e[9]===Symbol.for("react.memo_cache_sentinel")?(b=(0,s.jsx)(L,{className:"h-4 w-4"}),e[9]=b):b=e[9];let f;e[10]===i?f=e[11]:(f=(0,s.jsx)(w,{size:"sm",variant:"ghost",onClick:i,className:"h-6 w-6 p-0 hover:bg-muted-foreground/10",children:b}),e[10]=i,e[11]=f);let h;e[12]!==_||e[13]!==f?(h=(0,s.jsxs)("div",{className:"text-sm font-semibold bg-muted border-y px-2 py-1 flex justify-between items-center",children:[_,f]}),e[12]=_,e[13]=f,e[14]=h):h=e[14];let v;e[15]===Symbol.for("react.memo_cache_sentinel")?(v=(0,s.jsx)(E,{className:"ml-2 h-4 w-4"}),e[15]=v):v=e[15];let d;e[16]===N?d=e[17]:(d=(0,s.jsx)("div",{className:"flex justify-end",children:(0,s.jsx)(H,{children:(0,s.jsxs)(w,{className:"float-right",size:"xs",variant:"outline",onClick:N,children:["Insert snippet",v]})})}),e[16]=N,e[17]=d);let u;if(e[18]!==g||e[19]!==r.sections||e[20]!==r.title||e[21]!==o){let n;e[23]!==g||e[24]!==r.title||e[25]!==o?(n=S=>{let{code:m,html:z,id:y}=S;if(z)return(0,s.jsx)("div",{children:Y({html:z})},`${r.title}-${y}`);if(!m)return null;let{language:P,code:q}=je(m);return(0,s.jsxs)("div",{className:"relative hover-actions-parent pr-2",children:[(0,s.jsx)(H,{children:(0,s.jsx)(A,{content:"Insert snippet",children:(0,s.jsx)(w,{className:"absolute -top-2 -right-1 z-10 hover-action px-2 bg-background",size:"sm",variant:"outline",onClick:()=>{g(m)},children:(0,s.jsx)(E,{className:"h-5 w-5"})})})}),(0,s.jsx)(C.Suspense,{children:(0,s.jsx)(K,{theme:o==="dark"?"dark":"light",language:P,className:"cm border rounded overflow-hidden",extensions:_e,value:q,readOnly:!0},`${r.title}-${y}`)})]},`${r.title}-${y}`)},e[23]=g,e[24]=r.title,e[25]=o,e[26]=n):n=e[26],u=r.sections.map(n),e[18]=g,e[19]=r.sections,e[20]=r.title,e[21]=o,e[22]=u}else u=e[22];let p;e[27]!==d||e[28]!==u?(p=(0,s.jsxs)("div",{className:"px-2 py-2 space-y-4 overflow-auto flex-1",children:[d,u]}),e[27]=d,e[28]=u,e[29]=p):p=e[29];let x;return e[30]!==p||e[31]!==h?(x=(0,s.jsxs)(s.Fragment,{children:[h,p]}),e[30]=p,e[31]=h,e[32]=x):x=e[32],x},we=t=>{let e=(0,k.c)(7),{snippets:r,onSelect:i}=t,o;if(e[0]!==i||e[1]!==r){let a;e[3]===i?a=e[4]:(a=c=>(0,s.jsx)(de,{className:"rounded-none",onSelect:()=>i(c),children:(0,s.jsx)("div",{className:"flex flex-row gap-2 items-center",children:(0,s.jsx)("span",{className:"mt-1 text-accent-foreground",children:c.title})})},c.title),e[3]=i,e[4]=a),o=r.map(a),e[0]=i,e[1]=r,e[2]=o}else o=e[2];let l;return e[5]===o?l=e[6]:(l=(0,s.jsx)(ce,{className:"flex flex-col overflow-auto",children:o}),e[5]=o,e[6]=l),l};export{ge as default};
1
+ import{s as I}from"./chunk-LvLJmgfZ.js";import"./useEvent-D91BmmQi.js";import{t as D}from"./react-Bj1aDYRI.js";import{E as F}from"./cells-Jr-5Pc9f.js";import"./react-dom-CSu739Rf.js";import{t as $}from"./compiler-runtime-B3qBwwSJ.js";import{n as G}from"./useEventListener-C0195JsF.js";import{n as R}from"./constants-CDyU_g2F.js";import{t as T}from"./cn-DYvqRARy.js";import{t as W}from"./jsx-runtime-Blw4afVn.js";import"./fullscreen-CTDqNQr6.js";import{t as A}from"./tooltip-4bZlU7jl.js";import{t as w}from"./button-DDGiD1NW.js";import{st as B}from"./dist-12S8I4CH.js";import"./cjs-D5tzp-Y6.js";import"./main-BNL5rxQw.js";import"./useNonce-CbdaHKzX.js";import{r as J}from"./requests-9-v2bhoi.js";import{n as E,t as K}from"./LazyAnyLanguageCodeMirror-DPOEues4.js";import{t as L}from"./x-C-Eq0ag8.js";import{t as U}from"./spinner-D-V4psAa.js";import{t as V}from"./plus-AgXtozBz.js";import"./dist-DcwTQG1A.js";import"./dist-DnjsPBRJ.js";import"./dist-BJZAIIze.js";import"./dist-aRc_dRed.js";import"./dist-CPjTeT8p.js";import"./session-BmukRjSi.js";import{r as X}from"./useTheme-Bxv9B31g.js";import"./purify.es-CWmnYhGI.js";import{t as Y}from"./RenderHTML-B9jx7Dsm.js";import{a as Z,c as Q,i as ee,n as te,r as se}from"./dialog-BCVepWLJ.js";import{n as re}from"./ImperativeModal-fY-ZfT0b.js";import{n as le}from"./error-banner-BSxEOIn2.js";import{o as oe}from"./focus-C0HXXg3V.js";import{n as ie}from"./useAsyncData-Bg5iAViP.js";import{n as ae,r as ne,t as M}from"./react-resizable-panels.browser.esm-Z-MD3n3J.js";import{a as me,f as ce,o as de,r as pe,t as fe}from"./command-Dqxie4gq.js";import{t as he}from"./empty-state-yX2_pzkH.js";import{n as xe,r as ue}from"./panel-context-CmeYEpWr.js";import{t as je}from"./readonly-code-display-CVY2f7EZ.js";import{t as H}from"./kiosk-mode-CWGEgpon.js";var O=$(),C=I(D(),1),s=I(W(),1),be=G;const ve=t=>{let e=(0,O.c)(6),{children:r}=t,{openModal:i,closeModal:o}=re(),l;e[0]!==o||e[1]!==i?(l=()=>i((0,s.jsx)(Ne,{onClose:o})),e[0]=o,e[1]=i,e[2]=l):l=e[2];let a;return e[3]!==r||e[4]!==l?(a=(0,s.jsx)(be,{onClick:l,children:r}),e[3]=r,e[4]=l,e[5]=a):a=e[5],a};var Ne=t=>{let e=(0,O.c)(4),{onClose:r}=t,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)(Q,{children:"Contribute a Snippet"}),e[0]=i):i=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=(0,s.jsxs)(Z,{children:[i,(0,s.jsxs)(se,{children:["Have a useful snippet you want to share with the community? Make a pull request"," ",(0,s.jsx)("a",{href:R.githubPage,target:"_blank",className:"underline",children:"on GitHub"}),"."]})]}),e[1]=o):o=e[1];let l;return e[2]===r?l=e[3]:(l=(0,s.jsxs)(te,{className:"max-w-md",children:[o,(0,s.jsx)(ee,{children:(0,s.jsx)(w,{"data-testid":"snippet-close-button",variant:"default",onClick:r,children:"Close"})})]}),e[2]=r,e[3]=l),l},k=$(),_e=[B.lineWrapping],ge=()=>{let t=(0,k.c)(24),{readSnippets:e}=J(),[r,i]=C.useState(),o=xe(),l=ue(),a;t[0]===e?a=t[1]:(a=()=>e(),t[0]=e,t[1]=a);let c;t[2]===Symbol.for("react.memo_cache_sentinel")?(c=[],t[2]=c):c=t[2];let{data:N,error:j,isPending:g}=ie(a,c);if(j){let m;return t[3]===j?m=t[4]:(m=(0,s.jsx)(le,{error:j}),t[3]=j,t[4]=m),m}if(g||!N){let m;return t[5]===Symbol.for("react.memo_cache_sentinel")?(m=(0,s.jsx)(U,{size:"medium",centered:!0}),t[5]=m):m=t[5],m}let _=o==="vertical",b;t[6]===Symbol.for("react.memo_cache_sentinel")?(b=(0,s.jsx)(me,{placeholder:"Search snippets...",className:"h-6 m-1",rootClassName:"flex-1 border-r"}),t[6]=b):b=t[6];let f,h;t[7]===Symbol.for("react.memo_cache_sentinel")?(f=(0,s.jsxs)("div",{className:"flex items-center w-full border-b",children:[b,(0,s.jsx)(ve,{children:(0,s.jsx)("button",{className:"float-right px-2 m-0 h-full hover:bg-accent hover:text-accent-foreground",children:(0,s.jsx)(V,{className:"h-4 w-4"})})})]}),h=(0,s.jsx)(pe,{children:"No results"}),t[7]=f,t[8]=h):(f=t[7],h=t[8]);let v;t[9]===Symbol.for("react.memo_cache_sentinel")?(v=m=>i(m),t[9]=v):v=t[9];let d;t[10]===N.snippets?d=t[11]:(d=(0,s.jsx)(M,{defaultSize:40,minSize:20,maxSize:70,children:(0,s.jsxs)(fe,{className:"h-full rounded-none",children:[f,h,(0,s.jsx)(we,{onSelect:v,snippets:N.snippets})]})}),t[10]=N.snippets,t[11]=d);let u=_?"h-1":"w-1",p;t[12]===u?p=t[13]:(p=T("bg-border hover:bg-primary/50 transition-colors",u),t[12]=u,t[13]=p);let x;t[14]===p?x=t[15]:(x=(0,s.jsx)(ne,{className:p}),t[14]=p,t[15]=x);let n;t[16]===r?n=t[17]:(n=(0,s.jsx)(M,{defaultSize:60,minSize:20,children:(0,s.jsx)(C.Suspense,{children:(0,s.jsx)("div",{className:"h-full snippet-viewer flex flex-col overflow-hidden",children:r?(0,s.jsx)(Se,{snippet:r,onClose:()=>i(void 0)},r.title):(0,s.jsx)(he,{title:"",description:"Click on a snippet to view its content."})})})}),t[16]=r,t[17]=n);let S;return t[18]!==o||t[19]!==l||t[20]!==n||t[21]!==d||t[22]!==x?(S=(0,s.jsx)("div",{className:"flex-1 overflow-hidden h-full",children:(0,s.jsxs)(ae,{direction:o,className:"h-full",children:[d,x,n]},l)}),t[18]=o,t[19]=l,t[20]=n,t[21]=d,t[22]=x,t[23]=S):S=t[23],S},Se=t=>{let e=(0,k.c)(33),{snippet:r,onClose:i}=t,{theme:o}=X(),{createNewCell:l}=F(),a=oe(),c;e[0]!==l||e[1]!==a||e[2]!==r.sections?(c=()=>{for(let n of r.sections.toReversed())n.code&&l({code:n.code,before:!1,cellId:a??"__end__",skipIfCodeExists:!0})},e[0]=l,e[1]=a,e[2]=r.sections,e[3]=c):c=e[3];let N=c,j;e[4]!==l||e[5]!==a?(j=n=>{l({code:n,before:!1,cellId:a??"__end__"})},e[4]=l,e[5]=a,e[6]=j):j=e[6];let g=j,_;e[7]===r.title?_=e[8]:(_=(0,s.jsx)("span",{children:r.title}),e[7]=r.title,e[8]=_);let b;e[9]===Symbol.for("react.memo_cache_sentinel")?(b=(0,s.jsx)(L,{className:"h-4 w-4"}),e[9]=b):b=e[9];let f;e[10]===i?f=e[11]:(f=(0,s.jsx)(w,{size:"sm",variant:"ghost",onClick:i,className:"h-6 w-6 p-0 hover:bg-muted-foreground/10",children:b}),e[10]=i,e[11]=f);let h;e[12]!==_||e[13]!==f?(h=(0,s.jsxs)("div",{className:"text-sm font-semibold bg-muted border-y px-2 py-1 flex justify-between items-center",children:[_,f]}),e[12]=_,e[13]=f,e[14]=h):h=e[14];let v;e[15]===Symbol.for("react.memo_cache_sentinel")?(v=(0,s.jsx)(E,{className:"ml-2 h-4 w-4"}),e[15]=v):v=e[15];let d;e[16]===N?d=e[17]:(d=(0,s.jsx)("div",{className:"flex justify-end",children:(0,s.jsx)(H,{children:(0,s.jsxs)(w,{className:"float-right",size:"xs",variant:"outline",onClick:N,children:["Insert snippet",v]})})}),e[16]=N,e[17]=d);let u;if(e[18]!==g||e[19]!==r.sections||e[20]!==r.title||e[21]!==o){let n;e[23]!==g||e[24]!==r.title||e[25]!==o?(n=S=>{let{code:m,html:z,id:y}=S;if(z)return(0,s.jsx)("div",{children:Y({html:z})},`${r.title}-${y}`);if(!m)return null;let{language:P,code:q}=je(m);return(0,s.jsxs)("div",{className:"relative hover-actions-parent pr-2",children:[(0,s.jsx)(H,{children:(0,s.jsx)(A,{content:"Insert snippet",children:(0,s.jsx)(w,{className:"absolute -top-2 -right-1 z-10 hover-action px-2 bg-background",size:"sm",variant:"outline",onClick:()=>{g(m)},children:(0,s.jsx)(E,{className:"h-5 w-5"})})})}),(0,s.jsx)(C.Suspense,{children:(0,s.jsx)(K,{theme:o==="dark"?"dark":"light",language:P,className:"cm border rounded overflow-hidden",extensions:_e,value:q,readOnly:!0},`${r.title}-${y}`)})]},`${r.title}-${y}`)},e[23]=g,e[24]=r.title,e[25]=o,e[26]=n):n=e[26],u=r.sections.map(n),e[18]=g,e[19]=r.sections,e[20]=r.title,e[21]=o,e[22]=u}else u=e[22];let p;e[27]!==d||e[28]!==u?(p=(0,s.jsxs)("div",{className:"px-2 py-2 space-y-4 overflow-auto flex-1",children:[d,u]}),e[27]=d,e[28]=u,e[29]=p):p=e[29];let x;return e[30]!==p||e[31]!==h?(x=(0,s.jsxs)(s.Fragment,{children:[h,p]}),e[30]=p,e[31]=h,e[32]=x):x=e[32],x},we=t=>{let e=(0,k.c)(7),{snippets:r,onSelect:i}=t,o;if(e[0]!==i||e[1]!==r){let a;e[3]===i?a=e[4]:(a=c=>(0,s.jsx)(de,{className:"rounded-none",onSelect:()=>i(c),children:(0,s.jsx)("div",{className:"flex flex-row gap-2 items-center",children:(0,s.jsx)("span",{className:"mt-1 text-accent-foreground",children:c.title})})},c.title),e[3]=i,e[4]=a),o=r.map(a),e[0]=i,e[1]=r,e[2]=o}else o=e[2];let l;return e[5]===o?l=e[6]:(l=(0,s.jsx)(ce,{className:"flex flex-col overflow-auto",children:o}),e[5]=o,e[6]=l),l};export{ge as default};
@@ -0,0 +1 @@
1
+ import{t as r}from"./sparql-BlJ_cLEt.js";export{r as sparql};
@@ -1 +1 @@
1
- import{c as It,h as ht,i as lt,l as Ot,m as Ut,n as Rt,p as jt,r as Gt,t as Ht,u as Kt,v as ft}from"./timer-VYMLXPue.js";function pt(t,n,e){var r=new Ht;return n=n==null?0:+n,r.restart(i=>{r.stop(),t(i+n)},n,e),r}var mt={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)),mt.hasOwnProperty(n)?{space:mt[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 vt(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,s=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__),s[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 _t(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):_t(t);for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var u=n[o],s=u.length,c,l=0;l<s;++l)(c=u[l])&&(r.push(t.call(c,c.__data__,l,u)),i.push(c));return new S(r,i)}function gt(t){return function(){return this.matches(t)}}function dt(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:dt(t)))}var an=Array.prototype.filter;function sn(){return Array.from(this.children)}function cn(t){return function(){return an.call(this.children,t)}}function hn(t){return this.selectAll(t==null?sn:cn(typeof t=="function"?t:dt(t)))}function ln(t){typeof t!="function"&&(t=gt(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,s=r[i]=[],c,l=0;l<u;++l)(c=o[l])&&t.call(c,c.__data__,l,o)&&s.push(c);return new S(r,this._parents)}function yt(t){return Array(t.length)}function fn(){return new S(this._enter||this._groups.map(yt),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,s,c=n.length,l=o.length;u<l;++u)(s=n[u])?(s.__data__=o[u],r[u]=s):e[u]=new $(t,o[u]);for(;u<c;++u)(s=n[u])&&(i[u]=s)}function vn(t,n,e,r,i,o,u){var s,c,l=new Map,f=n.length,x=o.length,d=Array(f),_;for(s=0;s<f;++s)(c=n[s])&&(d[s]=_=u.call(c,c.__data__,s,n)+"",l.has(_)?i[s]=c:l.set(_,c));for(s=0;s<x;++s)_=u.call(t,o[s],s,o)+"",(c=l.get(_))?(r[s]=c,c.__data__=o[s],l.delete(_)):e[s]=new $(t,o[s]);for(s=0;s<f;++s)(c=n[s])&&l.get(d[s])===c&&(i[s]=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),s=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=s[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=s,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(yt),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),s=Array(i),c=0;c<u;++c)for(var l=e[c],f=r[c],x=l.length,d=s[c]=Array(x),_,E=0;E<x;++E)(_=l[E]||f[E])&&(d[E]=_);for(;c<i;++c)s[c]=e[c];return new S(s,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],s=u.length,c=i[o]=Array(s),l,f=0;f<s;++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,s;o<u;++o)(s=i[o])&&t.call(s,s.__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 Dn(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function Vn(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:Vn:e.local?Dn:Bn)(e,n))}function wt(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)||wt(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 xt(t){return t.trim().split(/^|\s+/)}function it(t){return t.classList||new At(t)}function At(t){this._node=t,this._names=xt(t.getAttribute("class")||"")}At.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 bt(t,n){for(var e=it(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function zt(t,n){for(var e=it(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function Hn(t){return function(){bt(this,t)}}function Kn(t){return function(){zt(this,t)}}function Wn(t,n){return function(){(n.apply(this,arguments)?bt:zt)(this,t)}}function $n(t,n){var e=xt(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 ae(){return this.each(ue)}function se(t){var n=typeof t=="function"?t:vt(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:vt(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,s=r.length;u<s;++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 s=this.node().__on;if(s){for(var c=0,l=s.length,f;c<l;++c)for(i=0,f=s[c];i<o;++i)if((u=r[i]).type===f.type&&u.name===f.name)return f.value}return}for(s=n?we:ye,i=0;i<o;++i)this.each(s(r[i],n,e));return this}function Et(t,n,e){var r=wt(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 Et(this,t,n)}}function be(t,n){return function(){return Et(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 St=[null];function S(t,n){this._groups=t,this._parents=n}function kt(){return new S([[document.documentElement]],St)}function Se(){return this}S.prototype=kt.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:ae,append:se,insert:he,remove:fe,clone:ve,datum:_e,on:xe,dispatch:ze,[Symbol.iterator]:Ee};var H=kt;function U(t){return typeof t=="string"?new S([[document.querySelector(t)]],[document.documentElement]):new S([[t]],St)}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 Tt(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 Ct(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)}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 pt(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(pt(function(){e.state===3&&(e.state=4,e.timer.restart(s,e.delay,e.time),s(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 s(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 De(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,s=r.length;u<s;++u)if(r[u].name===n){r=r.slice(),r.splice(u,1);break}}i.tween=r}}function Ve(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 s={name:n,value:e},c=0,l=i.length;c<l;++c)if(i[c].name===n){i[c]=s;break}c===l&&i.push(s)}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?De:Ve)(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"?Ut:n instanceof ft?ht:(e=ft(n))?(n=e,ht):jt)(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,s=e(this),c;return s==null?void this.removeAttribute(t):(u=this.getAttribute(t),c=s+"",u===c?null:u===r&&c===i?o:(i=c,o=n(r=u,s)))}}function Ue(t,n,e){var r,i,o;return function(){var u,s=e(this),c;return s==null?void this.removeAttributeNS(t.space,t.local):(u=this.getAttributeNS(t.space,t.local),c=s+"",u===c?null:u===r&&c===i?o:(i=c,o=n(r=u,s)))}}function Re(t,n){var e=W(t),r=e==="transform"?Kt: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=gt(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,s=r[i]=[],c,l=0;l<u;++l)(c=o[l])&&t.call(c,c.__data__,l,o)&&s.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),s=0;s<o;++s)for(var c=n[s],l=e[s],f=c.length,x=u[s]=Array(f),d,_=0;_<f;++_)(d=c[_]||l[_])&&(x[_]=d);for(;s<r;++s)u[s]=n[s];return new Y(u,this._parents,this._name,this._id)}function ar(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 sr(t,n,e){var r,i,o=ar(n)?ot:P;return function(){var u=o(this,t),s=u.on;s!==r&&(i=(r=s).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(sr(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 s=r[u],c=s.length,l=o[u]=Array(c),f,x,d=0;d<c;++d)(f=s[d])&&(x=t.call(f,f.__data__,d,s))&&("__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=_t(t));for(var r=this._groups,i=r.length,o=[],u=[],s=0;s<i;++s)for(var c=r[s],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),s=e(this),c=s+"";return s??(c=s=(this.style.removeProperty(t),G(this,t))),u===c?null:u===r&&c===i?o:(i=c,o=n(r=u,s))}}function yr(t,n){var e,r,i,o="style."+n,u="end."+o,s;return function(){var c=P(this,t),l=c.on,f=c.value[o]==null?s||(s=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"?Ot: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],s=u.length,c,l=0;l<s;++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 s={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(s),n._.interrupt.push(s),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 Dr(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Vr={time:null,delay:0,duration:250,ease:Dr};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=Vr).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],s=u.length,c,l=0;l<s;++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 at(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]],s=250,c=It,l=lt("start","zoom","end"),f,x,d,_=500,E=150,k=0,I=10;function v(a){a.property("__zoom",Bt).on("wheel.zoom",Dt,{passive:!1}).on("mousedown.zoom",Vt).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(a,p,h,m){var g=a.selection?a.selection():a;g.property("__zoom",Bt),a===g?g.interrupt().each(function(){D(this,arguments).event(m).start().zoom(null,typeof p=="function"?p.apply(this,arguments):p).end()}):st(a,p,h,m)},v.scaleBy=function(a,p,h,m){v.scaleTo(a,function(){return this.__zoom.k*(typeof p=="function"?p.apply(this,arguments):p)},h,m)},v.scaleTo=function(a,p,h,m){v.transform(a,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(a,p,h,m){v.transform(a,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(a,p,h,m,g){v.transform(a,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(a,p){return p=Math.max(o[0],Math.min(o[1],p)),p===a.k?a:new q(p,a.x,a.y)}function O(a,p,h){var m=p[0]-h[0]*a.k,g=p[1]-h[1]*a.k;return m===a.x&&g===a.y?a:new q(a.k,m,g)}function j(a){return[(+a[0][0]+ +a[1][0])/2,(+a[0][1]+ +a[1][1])/2]}function st(a,p,h,m){a.on("start.zoom",function(){D(this,arguments).event(m).start()}).on("interrupt.zoom end.zoom",function(){D(this,arguments).event(m).end()}).tween("zoom",function(){var g=this,w=arguments,y=D(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,V=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=V(C),et=N/X[2];C=new q(et,b[0]-X[0]*et,b[1]-X[1]*et)}y.zoom(null,C)}})}function D(a,p,h){return!h&&a.__zooming||new ct(a,p)}function ct(a,p){this.that=a,this.args=p,this.active=0,this.sourceEvent=null,this.extent=n.apply(a,p),this.taps=0}ct.prototype={event:function(a){return a&&(this.sourceEvent=a),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(a,p){return this.mouse&&a!=="mouse"&&(this.mouse[1]=p.invert(this.mouse[0])),this.touch0&&a!=="touch"&&(this.touch0[1]=p.invert(this.touch0[0])),this.touch1&&a!=="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(a){var p=U(this.that).datum();l.call(a,this.that,new Lr(a,{sourceEvent:this.sourceEvent,target:v,type:a,transform:this.that.__zoom,dispatch:l}),p)}};function Dt(a,...p){if(!t.apply(this,arguments))return;var h=D(this,p).event(a),m=this.__zoom,g=Math.max(o[0],Math.min(o[1],m.k*2**r.apply(this,arguments))),w=R(a);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(a),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 Vt(a,...p){if(d||!t.apply(this,arguments))return;var h=a.currentTarget,m=D(this,p,!0).event(a),g=U(a.view).on("mousemove.zoom",b,!0).on("mouseup.zoom",N,!0),w=R(a,h),y=a.clientX,A=a.clientY;Tt(a.view),at(a),m.mouse=[w,this.__zoom.invert(w)],Z(this),m.start();function b(z){if(K(z),!m.moved){var T=z.clientX-y,V=z.clientY-A;m.moved=T*T+V*V>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),Ct(z.view,m.moved),K(z),m.event(z).end()}}function Xt(a,...p){if(t.apply(this,arguments)){var h=this.__zoom,m=R(a.changedTouches?a.changedTouches[0]:a,this),g=h.invert(m),w=h.k*(a.shiftKey?.5:2),y=e(O(B(h,w),m,g),n.apply(this,p),u);K(a),s>0?U(this).transition().duration(s).call(st,y,m,a):U(this).call(v.transform,y,m,a)}}function Yt(a,...p){if(t.apply(this,arguments)){var h=a.touches,m=h.length,g=D(this,p,a.changedTouches.length===m).event(a),w,y,A,b;for(at(a),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(a,...p){if(this.__zooming){var h=D(this,p).event(a),m=a.changedTouches,g=m.length,w,y,A,b;for(K(a),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],V=h.touch1[1],C=(C=T[0]-N[0])*C+(C=T[1]-N[1])*C,X=(X=V[0]-z[0])*X+(X=V[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]+V[0])/2,(z[1]+V[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(a,...p){if(this.__zooming){var h=D(this,p).event(a),m=a.changedTouches,g=m.length,w,y;for(at(a),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(a){return arguments.length?(r=typeof a=="function"?a:tt(+a),v):r},v.filter=function(a){return arguments.length?(t=typeof a=="function"?a:tt(!!a),v):t},v.touchable=function(a){return arguments.length?(i=typeof a=="function"?a:tt(!!a),v):i},v.extent=function(a){return arguments.length?(n=typeof a=="function"?a:tt([[+a[0][0],+a[0][1]],[+a[1][0],+a[1][1]]]),v):n},v.scaleExtent=function(a){return arguments.length?(o[0]=+a[0],o[1]=+a[1],v):[o[0],o[1]]},v.translateExtent=function(a){return arguments.length?(u[0][0]=+a[0][0],u[1][0]=+a[1][0],u[0][1]=+a[0][1],u[1][1]=+a[1][1],v):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},v.constrain=function(a){return arguments.length?(e=a,v):e},v.duration=function(a){return arguments.length?(s=+a,v):s},v.interpolate=function(a){return arguments.length?(c=a,v):c},v.on=function(){var a=l.on.apply(l,arguments);return a===l?v:a},v.clickDistance=function(a){return arguments.length?(k=(a=+a)*a,v):Math.sqrt(k)},v.tapDistance=function(a){return arguments.length?(I=+a,v):I},v}export{J as a,Ce as c,Ct as i,R as l,nt as n,Te as o,Tt as r,F as s,Gr as t,U as u};
1
+ import{c as It,h as ht,i as lt,l as Ot,m as Ut,n as Rt,p as jt,r as Gt,t as Ht,u as Kt,v as ft}from"./timer-DLLzXmjF.js";function pt(t,n,e){var r=new Ht;return n=n==null?0:+n,r.restart(i=>{r.stop(),t(i+n)},n,e),r}var mt={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)),mt.hasOwnProperty(n)?{space:mt[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 vt(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,s=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__),s[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 _t(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):_t(t);for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var u=n[o],s=u.length,c,l=0;l<s;++l)(c=u[l])&&(r.push(t.call(c,c.__data__,l,u)),i.push(c));return new S(r,i)}function gt(t){return function(){return this.matches(t)}}function dt(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:dt(t)))}var an=Array.prototype.filter;function sn(){return Array.from(this.children)}function cn(t){return function(){return an.call(this.children,t)}}function hn(t){return this.selectAll(t==null?sn:cn(typeof t=="function"?t:dt(t)))}function ln(t){typeof t!="function"&&(t=gt(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,s=r[i]=[],c,l=0;l<u;++l)(c=o[l])&&t.call(c,c.__data__,l,o)&&s.push(c);return new S(r,this._parents)}function yt(t){return Array(t.length)}function fn(){return new S(this._enter||this._groups.map(yt),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,s,c=n.length,l=o.length;u<l;++u)(s=n[u])?(s.__data__=o[u],r[u]=s):e[u]=new $(t,o[u]);for(;u<c;++u)(s=n[u])&&(i[u]=s)}function vn(t,n,e,r,i,o,u){var s,c,l=new Map,f=n.length,x=o.length,d=Array(f),_;for(s=0;s<f;++s)(c=n[s])&&(d[s]=_=u.call(c,c.__data__,s,n)+"",l.has(_)?i[s]=c:l.set(_,c));for(s=0;s<x;++s)_=u.call(t,o[s],s,o)+"",(c=l.get(_))?(r[s]=c,c.__data__=o[s],l.delete(_)):e[s]=new $(t,o[s]);for(s=0;s<f;++s)(c=n[s])&&l.get(d[s])===c&&(i[s]=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),s=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=s[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=s,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(yt),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),s=Array(i),c=0;c<u;++c)for(var l=e[c],f=r[c],x=l.length,d=s[c]=Array(x),_,E=0;E<x;++E)(_=l[E]||f[E])&&(d[E]=_);for(;c<i;++c)s[c]=e[c];return new S(s,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],s=u.length,c=i[o]=Array(s),l,f=0;f<s;++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,s;o<u;++o)(s=i[o])&&t.call(s,s.__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 Dn(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function Vn(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:Vn:e.local?Dn:Bn)(e,n))}function wt(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)||wt(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 xt(t){return t.trim().split(/^|\s+/)}function it(t){return t.classList||new At(t)}function At(t){this._node=t,this._names=xt(t.getAttribute("class")||"")}At.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 bt(t,n){for(var e=it(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function zt(t,n){for(var e=it(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function Hn(t){return function(){bt(this,t)}}function Kn(t){return function(){zt(this,t)}}function Wn(t,n){return function(){(n.apply(this,arguments)?bt:zt)(this,t)}}function $n(t,n){var e=xt(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 ae(){return this.each(ue)}function se(t){var n=typeof t=="function"?t:vt(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:vt(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,s=r.length;u<s;++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 s=this.node().__on;if(s){for(var c=0,l=s.length,f;c<l;++c)for(i=0,f=s[c];i<o;++i)if((u=r[i]).type===f.type&&u.name===f.name)return f.value}return}for(s=n?we:ye,i=0;i<o;++i)this.each(s(r[i],n,e));return this}function Et(t,n,e){var r=wt(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 Et(this,t,n)}}function be(t,n){return function(){return Et(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 St=[null];function S(t,n){this._groups=t,this._parents=n}function kt(){return new S([[document.documentElement]],St)}function Se(){return this}S.prototype=kt.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:ae,append:se,insert:he,remove:fe,clone:ve,datum:_e,on:xe,dispatch:ze,[Symbol.iterator]:Ee};var H=kt;function U(t){return typeof t=="string"?new S([[document.querySelector(t)]],[document.documentElement]):new S([[t]],St)}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 Tt(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 Ct(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)}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 pt(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(pt(function(){e.state===3&&(e.state=4,e.timer.restart(s,e.delay,e.time),s(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 s(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 De(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,s=r.length;u<s;++u)if(r[u].name===n){r=r.slice(),r.splice(u,1);break}}i.tween=r}}function Ve(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 s={name:n,value:e},c=0,l=i.length;c<l;++c)if(i[c].name===n){i[c]=s;break}c===l&&i.push(s)}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?De:Ve)(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"?Ut:n instanceof ft?ht:(e=ft(n))?(n=e,ht):jt)(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,s=e(this),c;return s==null?void this.removeAttribute(t):(u=this.getAttribute(t),c=s+"",u===c?null:u===r&&c===i?o:(i=c,o=n(r=u,s)))}}function Ue(t,n,e){var r,i,o;return function(){var u,s=e(this),c;return s==null?void this.removeAttributeNS(t.space,t.local):(u=this.getAttributeNS(t.space,t.local),c=s+"",u===c?null:u===r&&c===i?o:(i=c,o=n(r=u,s)))}}function Re(t,n){var e=W(t),r=e==="transform"?Kt: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=gt(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,s=r[i]=[],c,l=0;l<u;++l)(c=o[l])&&t.call(c,c.__data__,l,o)&&s.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),s=0;s<o;++s)for(var c=n[s],l=e[s],f=c.length,x=u[s]=Array(f),d,_=0;_<f;++_)(d=c[_]||l[_])&&(x[_]=d);for(;s<r;++s)u[s]=n[s];return new Y(u,this._parents,this._name,this._id)}function ar(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 sr(t,n,e){var r,i,o=ar(n)?ot:P;return function(){var u=o(this,t),s=u.on;s!==r&&(i=(r=s).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(sr(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 s=r[u],c=s.length,l=o[u]=Array(c),f,x,d=0;d<c;++d)(f=s[d])&&(x=t.call(f,f.__data__,d,s))&&("__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=_t(t));for(var r=this._groups,i=r.length,o=[],u=[],s=0;s<i;++s)for(var c=r[s],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),s=e(this),c=s+"";return s??(c=s=(this.style.removeProperty(t),G(this,t))),u===c?null:u===r&&c===i?o:(i=c,o=n(r=u,s))}}function yr(t,n){var e,r,i,o="style."+n,u="end."+o,s;return function(){var c=P(this,t),l=c.on,f=c.value[o]==null?s||(s=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"?Ot: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],s=u.length,c,l=0;l<s;++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 s={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(s),n._.interrupt.push(s),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 Dr(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Vr={time:null,delay:0,duration:250,ease:Dr};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=Vr).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],s=u.length,c,l=0;l<s;++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 at(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]],s=250,c=It,l=lt("start","zoom","end"),f,x,d,_=500,E=150,k=0,I=10;function v(a){a.property("__zoom",Bt).on("wheel.zoom",Dt,{passive:!1}).on("mousedown.zoom",Vt).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(a,p,h,m){var g=a.selection?a.selection():a;g.property("__zoom",Bt),a===g?g.interrupt().each(function(){D(this,arguments).event(m).start().zoom(null,typeof p=="function"?p.apply(this,arguments):p).end()}):st(a,p,h,m)},v.scaleBy=function(a,p,h,m){v.scaleTo(a,function(){return this.__zoom.k*(typeof p=="function"?p.apply(this,arguments):p)},h,m)},v.scaleTo=function(a,p,h,m){v.transform(a,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(a,p,h,m){v.transform(a,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(a,p,h,m,g){v.transform(a,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(a,p){return p=Math.max(o[0],Math.min(o[1],p)),p===a.k?a:new q(p,a.x,a.y)}function O(a,p,h){var m=p[0]-h[0]*a.k,g=p[1]-h[1]*a.k;return m===a.x&&g===a.y?a:new q(a.k,m,g)}function j(a){return[(+a[0][0]+ +a[1][0])/2,(+a[0][1]+ +a[1][1])/2]}function st(a,p,h,m){a.on("start.zoom",function(){D(this,arguments).event(m).start()}).on("interrupt.zoom end.zoom",function(){D(this,arguments).event(m).end()}).tween("zoom",function(){var g=this,w=arguments,y=D(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,V=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=V(C),et=N/X[2];C=new q(et,b[0]-X[0]*et,b[1]-X[1]*et)}y.zoom(null,C)}})}function D(a,p,h){return!h&&a.__zooming||new ct(a,p)}function ct(a,p){this.that=a,this.args=p,this.active=0,this.sourceEvent=null,this.extent=n.apply(a,p),this.taps=0}ct.prototype={event:function(a){return a&&(this.sourceEvent=a),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(a,p){return this.mouse&&a!=="mouse"&&(this.mouse[1]=p.invert(this.mouse[0])),this.touch0&&a!=="touch"&&(this.touch0[1]=p.invert(this.touch0[0])),this.touch1&&a!=="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(a){var p=U(this.that).datum();l.call(a,this.that,new Lr(a,{sourceEvent:this.sourceEvent,target:v,type:a,transform:this.that.__zoom,dispatch:l}),p)}};function Dt(a,...p){if(!t.apply(this,arguments))return;var h=D(this,p).event(a),m=this.__zoom,g=Math.max(o[0],Math.min(o[1],m.k*2**r.apply(this,arguments))),w=R(a);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(a),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 Vt(a,...p){if(d||!t.apply(this,arguments))return;var h=a.currentTarget,m=D(this,p,!0).event(a),g=U(a.view).on("mousemove.zoom",b,!0).on("mouseup.zoom",N,!0),w=R(a,h),y=a.clientX,A=a.clientY;Tt(a.view),at(a),m.mouse=[w,this.__zoom.invert(w)],Z(this),m.start();function b(z){if(K(z),!m.moved){var T=z.clientX-y,V=z.clientY-A;m.moved=T*T+V*V>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),Ct(z.view,m.moved),K(z),m.event(z).end()}}function Xt(a,...p){if(t.apply(this,arguments)){var h=this.__zoom,m=R(a.changedTouches?a.changedTouches[0]:a,this),g=h.invert(m),w=h.k*(a.shiftKey?.5:2),y=e(O(B(h,w),m,g),n.apply(this,p),u);K(a),s>0?U(this).transition().duration(s).call(st,y,m,a):U(this).call(v.transform,y,m,a)}}function Yt(a,...p){if(t.apply(this,arguments)){var h=a.touches,m=h.length,g=D(this,p,a.changedTouches.length===m).event(a),w,y,A,b;for(at(a),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(a,...p){if(this.__zooming){var h=D(this,p).event(a),m=a.changedTouches,g=m.length,w,y,A,b;for(K(a),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],V=h.touch1[1],C=(C=T[0]-N[0])*C+(C=T[1]-N[1])*C,X=(X=V[0]-z[0])*X+(X=V[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]+V[0])/2,(z[1]+V[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(a,...p){if(this.__zooming){var h=D(this,p).event(a),m=a.changedTouches,g=m.length,w,y;for(at(a),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(a){return arguments.length?(r=typeof a=="function"?a:tt(+a),v):r},v.filter=function(a){return arguments.length?(t=typeof a=="function"?a:tt(!!a),v):t},v.touchable=function(a){return arguments.length?(i=typeof a=="function"?a:tt(!!a),v):i},v.extent=function(a){return arguments.length?(n=typeof a=="function"?a:tt([[+a[0][0],+a[0][1]],[+a[1][0],+a[1][1]]]),v):n},v.scaleExtent=function(a){return arguments.length?(o[0]=+a[0],o[1]=+a[1],v):[o[0],o[1]]},v.translateExtent=function(a){return arguments.length?(u[0][0]=+a[0][0],u[1][0]=+a[1][0],u[0][1]=+a[0][1],u[1][1]=+a[1][1],v):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},v.constrain=function(a){return arguments.length?(e=a,v):e},v.duration=function(a){return arguments.length?(s=+a,v):s},v.interpolate=function(a){return arguments.length?(c=a,v):c},v.on=function(){var a=l.on.apply(l,arguments);return a===l?v:a},v.clickDistance=function(a){return arguments.length?(k=(a=+a)*a,v):Math.sqrt(k)},v.tapDistance=function(a){return arguments.length?(I=+a,v):I},v}export{J as a,Ce as c,Ct as i,R as l,nt as n,Te as o,Tt as r,F as s,Gr as t,U as u};