@marimo-team/islands 0.25.2-dev13 → 0.25.2-dev130

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 (400) hide show
  1. package/dist/{ConnectedDataExplorerComponent-CqhQmp74.js → ConnectedDataExplorerComponent-CNSxdKyJ.js} +15 -15
  2. package/dist/{ErrorBoundary-C901K0Pa.js → ErrorBoundary-TNyz711o.js} +12 -12
  3. package/dist/{ImageComparisonComponent-Cpfz30OZ.js → ImageComparisonComponent-uU8FSKZE.js} +3 -3
  4. package/dist/{Plot-CTyjbQDT.js → Plot-DdYOe1UK.js} +2 -2
  5. package/dist/{abnfDiagram-VCTEODGH-aLGD44M7.js → abnfDiagram-VCTEODGH-DQDjNXt3.js} +3 -3
  6. package/dist/{any-language-editor-dqxlUDlT.js → any-language-editor-B9REGlD9.js} +8 -8
  7. package/dist/{apl-BYaaig9_.js → apl-GEW9-ZP1.js} +1 -1
  8. package/dist/{architectureDiagram-5GKGNRK7-BGL5P81u.js → architectureDiagram-5GKGNRK7-Nmls7Wxn.js} +5 -5
  9. package/dist/{asciiarmor-GKQFJXQG.js → asciiarmor-BWNxzkG7.js} +1 -1
  10. package/dist/{asn1-BsSb7HP5.js → asn1-Bcn2QutK.js} +1 -1
  11. package/dist/assets/__vite-browser-external-BXYkiFsk.js +1 -0
  12. package/dist/assets/worker-HPY9fbhz.js +114 -0
  13. package/dist/{asterisk-B3I8SNb5.js → asterisk-lE36-hJK.js} +1 -1
  14. package/dist/{blockDiagram-I7D4REHJ-CvBmppdy.js → blockDiagram-I7D4REHJ-Cg25UrxT.js} +9 -9
  15. package/dist/{brainfuck-DXjk3bQe.js → brainfuck-BQCYDheZ.js} +1 -1
  16. package/dist/{button-B0Xgl-Qn.js → button-CvjkwdSk.js} +304 -287
  17. package/dist/{c4Diagram-7LVT6UL2-EceL4_jH.js → c4Diagram-7LVT6UL2-BxFgrnNV.js} +7 -7
  18. package/dist/{capabilities-D7Ad8-zw.js → capabilities-CQ5IjhzL.js} +1 -1
  19. package/dist/{cells-5ppES-Un.js → cells-CuYwqnV8.js} +5950 -4893
  20. package/dist/{channel-z7HZXHwv.js → channel-CPObtJXj.js} +1 -1
  21. package/dist/{chat-ui-Dv2V95k6.js → chat-ui-C6oDg4Zu.js} +1595 -1402
  22. package/dist/{check-DGZ74tV2.js → check-EDwSwP89.js} +1 -1
  23. package/dist/{chunk-4HAMMTFA-BPTTOOC5.js → chunk-4HAMMTFA-D4eFPyFh.js} +5 -5
  24. package/dist/{chunk-75Z2AOVW-C4AOleKf.js → chunk-75Z2AOVW-D7gxIs2Q.js} +1 -1
  25. package/dist/{chunk-DU6HZSFF-1TwWR6gh.js → chunk-DU6HZSFF-BwiyaNpg.js} +2 -2
  26. package/dist/{chunk-F27PBJKO-DMI1PBe4.js → chunk-F27PBJKO-ufseIn5y.js} +1 -1
  27. package/dist/{chunk-GMAD6QVW-vStrMz2P.js → chunk-GMAD6QVW-BhaJx0X3.js} +3 -3
  28. package/dist/{chunk-GVQU2GXP-2HwWgs4u.js → chunk-GVQU2GXP-Cwbt-lF0.js} +2 -2
  29. package/dist/{chunk-IMKFNOWR-Cm3RgLDj.js → chunk-IMKFNOWR-CoIFEo-1.js} +6 -6
  30. package/dist/{chunk-L3NEJ4N5-RhC7i0I2.js → chunk-L3NEJ4N5-n-zgIVSy.js} +5 -5
  31. package/dist/{chunk-OSK3NFVY-CZV09N-U.js → chunk-OSK3NFVY-DXa-Cxbn.js} +6 -6
  32. package/dist/{chunk-P2QGCYS3-0TAWai9C.js → chunk-P2QGCYS3-B_Zd3-X0.js} +1 -1
  33. package/dist/{chunk-POPQ4Y6H-Cc3_56GX.js → chunk-POPQ4Y6H-hYOXbYH_.js} +1 -1
  34. package/dist/{chunk-PWAF6VOD-lNxB9k8z.js → chunk-PWAF6VOD-CQw5qATZ.js} +1 -1
  35. package/dist/{chunk-SHT3W25Y-DedDYSP5.js → chunk-SHT3W25Y-lHiGx3ZC.js} +8 -8
  36. package/dist/{chunk-SVP7TREG-B2SFkCAL.js → chunk-SVP7TREG-BvsHIrY_.js} +2 -2
  37. package/dist/{chunk-TICWLB2K-DB6hjNOL.js → chunk-TICWLB2K-BC8YIm_n.js} +6 -6
  38. package/dist/{chunk-YOKDWASO-DrWbKnxA.js → chunk-YOKDWASO-DPZk8vhS.js} +6 -6
  39. package/dist/classDiagram-ZZMXUADV-Bt98lkkv.js +30 -0
  40. package/dist/classDiagram-v2-VYDZK3BY-D9bfbcC3.js +30 -0
  41. package/dist/{clike-E2lFbGVj.js → clike-CxK9W55Z.js} +1 -1
  42. package/dist/{clojure-Dn_K4RlK.js → clojure-Dzcvwpxk.js} +1 -1
  43. package/dist/{cmake-DpN2Top5.js → cmake-DYr-71zp.js} +1 -1
  44. package/dist/{cobol-Chf22-GM.js → cobol-DC3g37Kq.js} +1 -1
  45. package/dist/{code-visibility-DbDN7P7-.js → code-visibility-D9wWbBZp.js} +7 -7
  46. package/dist/{coffeescript-BVe1OiD9.js → coffeescript-C-eFwH5N.js} +1 -1
  47. package/dist/{common-BT9gbOCH.js → common-yxD2FJe_.js} +9639 -9291
  48. package/dist/{commonlisp-DxoBG7fU.js → commonlisp-CyaNXrJR.js} +1 -1
  49. package/dist/{compiler-runtime-Cj8ZWiNS.js → compiler-runtime-CldRdSsv.js} +2 -2
  50. package/dist/{copy-icon-qmRg_VTX.js → copy-icon-Ft7t9bqz.js} +6 -6
  51. package/dist/{crystal-DCM3yc4r.js → crystal-ih5ax5tQ.js} +1 -1
  52. package/dist/{css-DkZ9mMyI.js → css-CN_wP7_R.js} +1 -1
  53. package/dist/{cynefinDiagram-5FMLGOSQ-DzaZEqgD.js → cynefinDiagram-5FMLGOSQ-CgWra7wt.js} +3 -3
  54. package/dist/{cypher-Drw_8U5I.js → cypher-CqGRcmZo.js} +1 -1
  55. package/dist/{d-CsVGcKMF.js → d-Cj0sOW2z.js} +1 -1
  56. package/dist/{dagre-GXQ25YYZ-Cjf5GjU3.js → dagre-GXQ25YYZ-CFZ8-35c.js} +10 -10
  57. package/dist/{data-grid-overlay-editor-CVzcJKyS.js → data-grid-overlay-editor-DZjQDOjA.js} +7 -7
  58. package/dist/{data-grid-types-BucVmDDp.js → data-grid-types-BH_r7g7l.js} +1 -1
  59. package/dist/{diagram-S7CK7UJ4-IhLt_khx.js → diagram-S7CK7UJ4-lCNQrW7d.js} +4 -4
  60. package/dist/{diagram-UQ7AKVKN-CQc6KLPB.js → diagram-UQ7AKVKN-CQPQ6pP_.js} +3 -3
  61. package/dist/{diagram-VSXAHHWV-CR7BJygZ.js → diagram-VSXAHHWV-BJWcVVJY.js} +2 -2
  62. package/dist/{diagram-VX7I27RA-DHmW9N1T.js → diagram-VX7I27RA-Cf3b0llz.js} +5 -5
  63. package/dist/{diagram-Z3DM3KII-zVKsg-Ty.js → diagram-Z3DM3KII-Bt4QLrpn.js} +3 -3
  64. package/dist/{dialog-CILKhbsG.js → dialog-CEBFZNyc.js} +29 -29
  65. package/dist/{diff-CBikYCUF.js → diff-B_hUkiat.js} +1 -1
  66. package/dist/{dist-Df0wKI0F.js → dist-BK4Oj99o.js} +1 -1
  67. package/dist/{dist-BVGtK7Ht.js → dist-BLfKmR-l.js} +1 -1
  68. package/dist/{dist-B8D7McG3.js → dist-BMQf5zIS.js} +46 -46
  69. package/dist/{dist-C2KzV-vf.js → dist-BorMD-uX.js} +2 -2
  70. package/dist/{dist-Cs2FijYk.js → dist-BuaRHxOc.js} +2 -2
  71. package/dist/{dist-DPcEtqmG.js → dist-Bvs24R_E.js} +47 -47
  72. package/dist/{dist-lA1Cttkb.js → dist-C8fAKSH1.js} +41 -41
  73. package/dist/{dist-DszxuxS1.js → dist-CLdpGQVr.js} +2 -2
  74. package/dist/{dist-CO1AwwG_.js → dist-CN8zI-XC.js} +209 -209
  75. package/dist/{dist-D1PpnuZB.js → dist-CN_BeG2I.js} +1 -1
  76. package/dist/{dist-CPGxfVGX.js → dist-CSJ0MDRw.js} +1 -1
  77. package/dist/{dist-Cm3iAFMD.js → dist-CSbh1PNP.js} +3 -3
  78. package/dist/{dist-9x1ZRe-e.js → dist-Cg7gzw-a.js} +2 -2
  79. package/dist/{dist-B1vYLK28.js → dist-CkTTIdBe.js} +345 -345
  80. package/dist/{dist-BRxfaJgs.js → dist-CrSP_H1M.js} +296 -296
  81. package/dist/{dist-C2wDlYdD.js → dist-D-wwqlzJ.js} +2 -2
  82. package/dist/{dist-BtKIs9N-.js → dist-D6d86eNJ.js} +1 -1
  83. package/dist/{dist-DHOTQar0.js → dist-DBtSl3sf.js} +1 -1
  84. package/dist/{dist-KzZ7WELx.js → dist-DiDibOYr.js} +120 -120
  85. package/dist/{dist-Kxgjxakw.js → dist-DoE4XJBC.js} +1277 -1222
  86. package/dist/{dist-CcyKTBTF.js → dist-DpBpA_n1.js} +2 -2
  87. package/dist/{dist-BHCHt1NI.js → dist-F8Ep36rk.js} +1 -1
  88. package/dist/{dist-C8xMLVYi.js → dist-OR1OnN-y.js} +44 -44
  89. package/dist/{dist-1HDa70oE.js → dist-PXYI_yuP.js} +3 -3
  90. package/dist/{dist-CMh_W4y4.js → dist-diIx5qJW.js} +2 -2
  91. package/dist/{dockerfile-DJnSntVB.js → dockerfile-D0VKN500.js} +2 -2
  92. package/dist/dropdown-menu-CP_qCYHC.js +4678 -0
  93. package/dist/{dtd-BHa4v0Bn.js → dtd-B8FGSWWe.js} +1 -1
  94. package/dist/{dylan-BypL2Zz8.js → dylan-DbIBYIrw.js} +1 -1
  95. package/dist/{ebnf-5guncNu-.js → ebnf-D-YbYLdk.js} +1 -1
  96. package/dist/{ebnfDiagram-PWID7BFC-DDd5hCRC.js → ebnfDiagram-PWID7BFC-D3NAyPFY.js} +3 -3
  97. package/dist/{ecl-iRcVIKYZ.js → ecl-DBmkdWAd.js} +1 -1
  98. package/dist/{eiffel-BEqF9aU4.js → eiffel-CcWSDDzK.js} +1 -1
  99. package/dist/{elm-DYcfNE9c.js → elm-MC-b8a6C.js} +1 -1
  100. package/dist/{erDiagram-RLTQ6QDP-D10NP0eI.js → erDiagram-RLTQ6QDP-Tlu09_Nm.js} +12 -12
  101. package/dist/{erlang-BtAuIoF0.js → erlang-AdO1-xtV.js} +1 -1
  102. package/dist/error-banner-Da600cwz.js +362 -0
  103. package/dist/{error-entries-B2Ux3Z2X.js → error-entries-zfHL6H60.js} +2 -2
  104. package/dist/{esm-h8f7-1CJ.js → esm-AMFssoNp.js} +380 -374
  105. package/dist/{esm-BElI3qKH.js → esm-D2gTsXEV.js} +579 -579
  106. package/dist/{factor-3nzOwLuN.js → factor-Ys-13HOP.js} +2 -2
  107. package/dist/{fcl-C90TGnJJ.js → fcl-DnwditDr.js} +1 -1
  108. package/dist/{feedback-button-CglJWpZl.js → feedback-button-DZTHS4bw.js} +13 -13
  109. package/dist/flowDiagram-HODETNUW-CAYbpJmV.js +16 -0
  110. package/dist/{formats-Q9gwlLyD.js → formats-DLtvJPnj.js} +6 -6
  111. package/dist/{forth-DEaRrLUi.js → forth-DiMuIXFe.js} +1 -1
  112. package/dist/{fortran-Bv6JRUjY.js → fortran-hkrF2eM4.js} +1 -1
  113. package/dist/{ganttDiagram-EL5Y4UJY-cRRaDt88.js → ganttDiagram-EL5Y4UJY-BQT16JSc.js} +2 -2
  114. package/dist/{gas-JNerWj3-.js → gas-DlhqN9k8.js} +1 -1
  115. package/dist/{gherkin-CSrl-H70.js → gherkin-0SlhEZ3t.js} +1 -1
  116. package/dist/{gitGraphDiagram-WWUBYQGX-Pox5k9-Y.js → gitGraphDiagram-WWUBYQGX-D5nSIzdE.js} +2 -2
  117. package/dist/{glide-data-editor-DYVqOapE.js → glide-data-editor-Dwg6aXaX.js} +60 -60
  118. package/dist/{glide-utils-CzzWU59p.js → glide-utils-DJyqh0EM.js} +4 -4
  119. package/dist/{globals-GIct2xJr.js → globals-DDRQd7UN.js} +3 -3
  120. package/dist/{groovy-X7euO_vE.js → groovy-YhcTMyvX.js} +1 -1
  121. package/dist/{haskell-C48Z70Az.js → haskell-CodLxrtT.js} +1 -1
  122. package/dist/{haxe-CAUWMmwR.js → haxe-CiRWNFkH.js} +1 -1
  123. package/dist/{highlighted-body-KPVGNVTW-Ad3MKZ18.js → highlighted-body-KPVGNVTW-zwjq21tf.js} +4 -4
  124. package/dist/{html-to-image-BZBwkkDG.js → html-to-image-BJJsbNZ1.js} +547 -569
  125. package/dist/{http-BrSBnhDH.js → http-Bh6HhdNR.js} +1 -1
  126. package/dist/{idl-BXuPleZv.js → idl-DZgBq75I.js} +1 -1
  127. package/dist/{infoDiagram-27XIBGKW-DrYu3UZC.js → infoDiagram-27XIBGKW-XrDxhr0x.js} +2 -2
  128. package/dist/{ishikawaDiagram-5VMMS53U-pmkGQJsA.js → ishikawaDiagram-5VMMS53U-CD1muzov.js} +3 -3
  129. package/dist/{javascript-B4EPWJf_.js → javascript-BfNytHiM.js} +1 -1
  130. package/dist/{journeyDiagram-3NMN7TZE-EPJDPlt0.js → journeyDiagram-3NMN7TZE-BaLqn-dZ.js} +2 -2
  131. package/dist/{jsx-runtime-DgDPJV9S.js → jsx-runtime-3BD1kT0s.js} +1 -1
  132. package/dist/{julia-ke9Kh8b7.js → julia--tLIAG7q.js} +1 -1
  133. package/dist/{kanban-definition-UXKFOSKX-wWGD9VLW.js → kanban-definition-UXKFOSKX-Dg9W142_.js} +9 -9
  134. package/dist/{katex-BNCmKUol.js → katex-BIdZGsyO.js} +141 -116
  135. package/dist/label-BDKF3Afc.js +281 -0
  136. package/dist/{livescript-Ce4uqGAC.js → livescript-CVPfYnY_.js} +1 -1
  137. package/dist/{loader-C9OUkMrj.js → loader-BQOfjTIJ.js} +1 -1
  138. package/dist/{lua-D6fti_Jk.js → lua-4Fa-T-qq.js} +1 -1
  139. package/dist/main.js +7060 -6909
  140. package/dist/{mathematica-DcEpZ3Vj.js → mathematica-CtYAy6GG.js} +1 -1
  141. package/dist/{mbox-DFBbOu0X.js → mbox-D0w9Ah1C.js} +1 -1
  142. package/dist/{mermaid-Dfvntf3s.js → mermaid-CiAXjLpA.js} +57 -57
  143. package/dist/mermaid-HWGCJPDP-ByCsZnYF.js +2 -0
  144. package/dist/{mhchem-BEc7A1or.js → mhchem-CdWPJK6g.js} +1 -1
  145. package/dist/{mindmap-definition-YA3MSWOX-C2f1VIBR.js → mindmap-definition-YA3MSWOX-DgCidgYJ.js} +11 -11
  146. package/dist/{mirc-CqeibO3N.js → mirc-De9aSAZM.js} +1 -1
  147. package/dist/{mllike-D54QZYTP.js → mllike-BbugeaY_.js} +1 -1
  148. package/dist/{modelica-DuML2-8V.js → modelica-BjJwWw1F.js} +1 -1
  149. package/dist/{mscgen-CJmKwp3b.js → mscgen-DwiRH5ma.js} +1 -1
  150. package/dist/{mumps-DaVgFtkd.js → mumps--plbDM9o.js} +1 -1
  151. package/dist/{nginx-BXN1rqI0.js → nginx-C4Df7REc.js} +1 -1
  152. package/dist/{nsis-CMfRqf0V.js → nsis-fiiOqLc3.js} +7 -7
  153. package/dist/{ntriples-BiOGlMDR.js → ntriples-jV77I4k8.js} +1 -1
  154. package/dist/{number-overlay-editor-D9ZV_sED.js → number-overlay-editor-KgyFjYGb.js} +5 -5
  155. package/dist/{octave-CgVnzxKk.js → octave-Cztd01tF.js} +1 -1
  156. package/dist/{oz-B2mky97X.js → oz-Bl8o3BDl.js} +1 -1
  157. package/dist/{pascal-BoZhBf6s.js → pascal-BO5JqysR.js} +1 -1
  158. package/dist/{pegDiagram-XKGWAZYB-D6v5dz4M.js → pegDiagram-XKGWAZYB-coOYYKB6.js} +3 -3
  159. package/dist/{perl-DjzMqXtt.js → perl-Drlh9s6m.js} +1 -1
  160. package/dist/{pieDiagram-E7YTZNPT-BwFAhpYD.js → pieDiagram-E7YTZNPT-BnXTc3bj.js} +3 -3
  161. package/dist/{pig-B2mB-01d.js → pig-BWGR8wZw.js} +1 -1
  162. package/dist/{powershell-D0zT88Aj.js → powershell-DT99xlz_.js} +1 -1
  163. package/dist/{process-output-BSsWzfnY.js → process-output-C1GGFU6Q.js} +4 -4
  164. package/dist/{properties-3_5qCgOj.js → properties-Q-rkxld0.js} +1 -1
  165. package/dist/{protobuf-Dgoxfi1H.js → protobuf-DKyWZbs7.js} +1 -1
  166. package/dist/{pug-CNRdd8oG.js → pug-42ZJUbEC.js} +2 -2
  167. package/dist/{puppet-DzILxZfz.js → puppet-B4UozHhh.js} +1 -1
  168. package/dist/purify.es-DMv5zIkJ.js +866 -0
  169. package/dist/{python-AfVdMn_l.js → python-DREjAV__.js} +1 -1
  170. package/dist/{q-C6p-CGWh.js → q-Bi63IpBO.js} +1 -1
  171. package/dist/{quadrantDiagram-AXDQQJYC--kqzFC3w.js → quadrantDiagram-AXDQQJYC-Ccw0xMjN.js} +1 -1
  172. package/dist/{r-CzKF1D2X.js → r-DSwXWKMR.js} +1 -1
  173. package/dist/{railroadDiagram-O6MQD6OU-D6eOFr6Z.js → railroadDiagram-O6MQD6OU-B28-u83n.js} +3 -3
  174. package/dist/{react-dom-BUgJ-ab_.js → react-dom-DUmH0GXv.js} +29 -21
  175. package/dist/{react-ofJbxM4x.js → react-sHtZdjeP.js} +103 -94
  176. package/dist/{react-vega-ewj7q_U5.js → react-vega-BED0DjiB.js} +3 -3
  177. package/dist/{requirementDiagram-BXWQKSXE-CHYsMgDR.js → requirementDiagram-BXWQKSXE-CdYCTMu0.js} +11 -11
  178. package/dist/{reveal-component-Bl8NIAua.js → reveal-component-BbYNv_VX.js} +906 -878
  179. package/dist/{rpm-Bx7FkjTO.js → rpm-DPb1DeKM.js} +1 -1
  180. package/dist/{ruby-BMzgq2bf.js → ruby-U7fZA4DP.js} +2 -2
  181. package/dist/{sankeyDiagram-P5KCCOFB-BdzhT0BM.js → sankeyDiagram-P5KCCOFB-ELvOcnZH.js} +1 -1
  182. package/dist/{sas-ClGVnK3F.js → sas-CLk1JpTn.js} +1 -1
  183. package/dist/{scheme-C0MXqXep.js → scheme-CT-2k2Tl.js} +1 -1
  184. package/dist/select-BButFi-d.js +1344 -0
  185. package/dist/{sequenceDiagram-WJ2MYXX4-BPAknhBp.js → sequenceDiagram-WJ2MYXX4-CM3aRAe_.js} +4 -4
  186. package/dist/{shell-CiQZv6oG.js → shell-BLO7fcsk.js} +1 -1
  187. package/dist/{sieve-BiIMePvV.js → sieve-nG3C7WNH.js} +1 -1
  188. package/dist/{simple-mode-8ETW2RS6.js → simple-mode-C683Q7or.js} +1 -1
  189. package/dist/{smalltalk-9-llftyG.js → smalltalk-BROcZybA.js} +1 -1
  190. package/dist/{solr-CxCKEuwq.js → solr-mVltHNc5.js} +1 -1
  191. package/dist/{sparql-BRmy7pzx.js → sparql-Cv1Ksr4v.js} +1 -1
  192. package/dist/{spec-D62vWpMT.js → spec-BwarBpUJ.js} +116 -135
  193. package/dist/{spreadsheet-UCNUIGsn.js → spreadsheet-BwTnp5K_.js} +1 -1
  194. package/dist/{sql-D0hSGZ-H.js → sql-CjLt0122.js} +1 -1
  195. package/dist/{stateDiagram-D77RDMKH-Cq249IQ4.js → stateDiagram-D77RDMKH-DOZUMVj8.js} +13 -13
  196. package/dist/stateDiagram-v2-MP3YSRHH-CISYxma6.js +30 -0
  197. package/dist/{stex-UeT_Aofp.js → stex-Btf3omL8.js} +1 -1
  198. package/dist/style.css +1 -1
  199. package/dist/{stylus-Fi4waA2H.js → stylus-Dt4VvLXL.js} +1 -1
  200. package/dist/{swift-NqPyaBye.js → swift-DHsn_CVI.js} +1 -1
  201. package/dist/{swimlanes-42K2YHIH-Bh_S_HKD.js → swimlanes-42K2YHIH-BkSppxp8.js} +10 -10
  202. package/dist/swimlanesDiagram-VR7AAH4N-c8G5pGxC.js +30 -0
  203. package/dist/{swiper-component-DkV7T44B.js → swiper-component-DKntyn8p.js} +5 -5
  204. package/dist/{tcl-B4f0xfmM.js → tcl-CV0OLBOl.js} +1 -1
  205. package/dist/{textile-CnNbnPTe.js → textile-D320oKVM.js} +1 -1
  206. package/dist/{tiddlywiki-CSGSOg38.js → tiddlywiki-BVVNvfy4.js} +1 -1
  207. package/dist/{tiki-9F02WBA6.js → tiki-BF2aDPlB.js} +1 -1
  208. package/dist/{timeline-definition-24CTP7MA-ByNMgBE7.js → timeline-definition-24CTP7MA-CaMQayqK.js} +3 -3
  209. package/dist/{toDate-DWVp6uE1.js → toDate-Dwcg_x_5.js} +5 -6
  210. package/dist/{toast-DcoJGS3-.js → toast-B9UMEi8u.js} +161 -165
  211. package/dist/{toml-AesZ6RBt.js → toml-CaUN7UHo.js} +1 -1
  212. package/dist/{tooltip-Bi36DgYh.js → tooltip-BO1REbqs.js} +548 -584
  213. package/dist/{troff-DlfvveK1.js → troff-DQUFcClZ.js} +1 -1
  214. package/dist/{ttcn--YVSkGs_.js → ttcn-CQL1duJS.js} +1 -1
  215. package/dist/{ttcn-cfg-Bb1Knl_J.js → ttcn-cfg-BMmEFJPu.js} +1 -1
  216. package/dist/{turtle-DC24v1bz.js → turtle-C3esgsRr.js} +1 -1
  217. package/dist/{use-restore-focus-ZgG5Br63.js → use-restore-focus-BEM7sFWl.js} +2430 -2007
  218. package/dist/{use-vega-container-remeasure-4DwJbPWu.js → use-vega-container-remeasure-Bz4PZMtt.js} +2 -2
  219. package/dist/{useAsyncData-BD7NLQ3_.js → useAsyncData-Deh5kszT.js} +3 -3
  220. package/dist/{useDateFormatter-D8XWr8lL.js → useDateFormatter-D8XruNGG.js} +53 -32
  221. package/dist/{useDeepCompareMemoize-CawMGSRU.js → useDeepCompareMemoize-DXwzRINI.js} +2 -2
  222. package/dist/{useIframeCapabilities-BUMBOpsM.js → useIframeCapabilities-DBETvvPl.js} +2 -2
  223. package/dist/{useLifecycle-3vGhRa1o.js → useLifecycle-j7D9uD1o.js} +6 -6
  224. package/dist/{useTheme-BOw801nZ.js → useTheme-CRnjkku0.js} +7 -7
  225. package/dist/{vb-Dpc8vhvF.js → vb-RK1eDXRl.js} +1 -1
  226. package/dist/{vbscript-B-Y1XnZe.js → vbscript-BCOeM0de.js} +1 -1
  227. package/dist/{vega-component-9siY74NS.js → vega-component-DLBAQLSf.js} +14 -14
  228. package/dist/{vega-embed-container-sSR5hAsy.js → vega-embed-container-BNHE18G9.js} +5 -5
  229. package/dist/{velocity-DHMu9kc-.js → velocity-CZKOFbOI.js} +1 -1
  230. package/dist/{vennDiagram-4TSXK5OY-DY8CySdO.js → vennDiagram-4TSXK5OY-CF8pfaK3.js} +3 -3
  231. package/dist/{verilog-DhiEaoUl.js → verilog-DqQTzVn8.js} +1 -1
  232. package/dist/{vhdl-D4X23YKO.js → vhdl-vQr2bfmi.js} +1 -1
  233. package/dist/{wardleyDiagram-VM6X3IG4-DYC1AFni.js → wardleyDiagram-VM6X3IG4-dGPu39d-.js} +3 -3
  234. package/dist/{webidl-SyzNxWpJ.js → webidl-DzX7N40e.js} +1 -1
  235. package/dist/{xquery-BC2R4Hk6.js → xquery-Cw_Q_hGR.js} +1 -1
  236. package/dist/{xychartDiagram-S5SC5T6Z-Df8LLnuY.js → xychartDiagram-S5SC5T6Z-CP6-9q56.js} +5 -5
  237. package/dist/{yacas-DLNXPMmH.js → yacas-DiC4jJBE.js} +1 -1
  238. package/dist/{z80-CDXWHOO6.js → z80-CUOQDEJO.js} +1 -1
  239. package/package.json +38 -37
  240. package/src/__tests__/mount.test.ts +6 -6
  241. package/src/components/chat/__tests__/chat-history-popover.test.tsx +157 -0
  242. package/src/components/chat/chat-history-popover.tsx +98 -17
  243. package/src/components/chat/chat-panel.tsx +29 -0
  244. package/src/components/chat/tool-call/__tests__/tool-result.test.tsx +56 -0
  245. package/src/components/chat/tool-call/tool-result.tsx +3 -3
  246. package/src/components/data-table/TableTopBar.tsx +4 -0
  247. package/src/components/data-table/__tests__/export-actions.test.tsx +1111 -14
  248. package/src/components/data-table/__tests__/pagination.test.tsx +85 -1
  249. package/src/components/data-table/__tests__/schemas.test.ts +57 -0
  250. package/src/components/data-table/charts/__tests__/schemas.test.ts +25 -0
  251. package/src/components/data-table/charts/__tests__/slider-field.test.tsx +54 -0
  252. package/src/components/data-table/charts/__tests__/spec.test.ts +26 -23
  253. package/src/components/data-table/charts/components/form-fields.tsx +3 -1
  254. package/src/components/data-table/charts/constants.ts +11 -10
  255. package/src/components/data-table/charts/types.ts +1 -0
  256. package/src/components/data-table/data-table.tsx +3 -0
  257. package/src/components/data-table/export-actions.tsx +365 -81
  258. package/src/components/data-table/pagination.tsx +16 -2
  259. package/src/components/data-table/schemas.ts +90 -14
  260. package/src/components/editor/actions/__tests__/pair-with-agent-commands.test.ts +32 -46
  261. package/src/components/editor/actions/__tests__/pair-with-agent-modal.test.tsx +29 -40
  262. package/src/components/editor/actions/pair-with-agent-commands.ts +3 -4
  263. package/src/components/editor/actions/pair-with-agent-modal.tsx +4 -7
  264. package/src/components/editor/actions/useRestartKernel.tsx +2 -2
  265. package/src/components/editor/alerts/__tests__/connection-notice.test.tsx +224 -17
  266. package/src/components/editor/alerts/connection-details.tsx +61 -0
  267. package/src/components/editor/alerts/connection-notice.tsx +46 -53
  268. package/src/components/editor/alerts/startup-progress.tsx +73 -129
  269. package/src/components/editor/app-container.tsx +2 -2
  270. package/src/components/editor/boundary/__tests__/ErrorBoundary.test.tsx +2 -2
  271. package/src/components/editor/cell/CreateCellButton.tsx +2 -2
  272. package/src/components/editor/cell/DeleteButton.tsx +2 -2
  273. package/src/components/editor/cell/RunButton.tsx +3 -3
  274. package/src/components/editor/cell/StopButton.tsx +2 -2
  275. package/src/components/editor/chrome/components/__tests__/feedback-button.test.tsx +4 -4
  276. package/src/components/editor/chrome/components/feedback-button.tsx +3 -3
  277. package/src/components/editor/chrome/panels/__tests__/packages-panel.test.tsx +8 -8
  278. package/src/components/editor/chrome/panels/__tests__/{sandbox-details.test.tsx → runtime-details.test.tsx} +94 -22
  279. package/src/components/editor/chrome/panels/__tests__/sandbox-recovery.test.tsx +4 -4
  280. package/src/components/editor/chrome/panels/packages-panel.tsx +8 -29
  281. package/src/components/editor/chrome/panels/{sandbox-details-state.ts → runtime-details-state.ts} +1 -1
  282. package/src/components/editor/chrome/panels/{sandbox-panel.tsx → runtime-panel.tsx} +38 -66
  283. package/src/components/editor/chrome/panels/runtime-status-toggle.tsx +56 -0
  284. package/src/components/editor/chrome/panels/sandbox-controller.tsx +2 -2
  285. package/src/components/editor/chrome/wrapper/app-chrome.tsx +3 -3
  286. package/src/components/editor/chrome/wrapper/footer-items/machine-stats.tsx +2 -2
  287. package/src/components/editor/controls/Controls.tsx +3 -3
  288. package/src/components/editor/controls/__tests__/notebook-menu-dropdown.test.tsx +6 -5
  289. package/src/components/editor/header/__tests__/status.test.tsx +4 -4
  290. package/src/components/editor/header/app-header.tsx +2 -2
  291. package/src/components/editor/header/status.tsx +3 -3
  292. package/src/components/editor/navigation/__tests__/navigation.test.ts +8 -8
  293. package/src/components/editor/output/console/ConsoleOutput.tsx +5 -3
  294. package/src/components/editor/output/console/__tests__/ConsoleOutput.test.tsx +18 -0
  295. package/src/components/storage/__tests__/storage-file-viewer.test.tsx +2 -1
  296. package/src/components/ui/__tests__/slider.test.tsx +37 -0
  297. package/src/components/ui/progress-stages.tsx +114 -0
  298. package/src/components/ui/slider.tsx +2 -0
  299. package/src/core/ai/__tests__/state.test.ts +120 -0
  300. package/src/core/ai/state.ts +36 -10
  301. package/src/core/cells/__tests__/document-roundtrip.test.ts +16 -0
  302. package/src/core/codemirror/copilot/__tests__/completion-integration.test.ts +447 -0
  303. package/src/core/codemirror/copilot/__tests__/inline-completion.test.ts +395 -0
  304. package/src/core/codemirror/copilot/__tests__/language-server.test.ts +511 -2
  305. package/src/core/codemirror/copilot/__tests__/rpc-cancellation.test.ts +201 -0
  306. package/src/core/codemirror/copilot/extension.ts +22 -11
  307. package/src/core/codemirror/copilot/language-server.ts +109 -60
  308. package/src/core/codemirror/language/__tests__/sql.test.ts +4 -3
  309. package/src/core/codemirror/language/embedded/__tests__/embedded-python.test.ts +138 -26
  310. package/src/core/codemirror/language/embedded/embedded-python.ts +47 -13
  311. package/src/core/codemirror/language/embedded/latex.ts +20 -13
  312. package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +106 -5
  313. package/src/core/codemirror/lsp/notebook-lsp.ts +16 -2
  314. package/src/core/codemirror/readonly/__tests__/extension.test.ts +6 -6
  315. package/src/core/codemirror/readonly/extension.ts +2 -2
  316. package/src/core/config/pair.ts +0 -1
  317. package/src/core/datasets/__tests__/data-source-discovery.test.ts +20 -13
  318. package/src/core/edit-app.tsx +5 -1
  319. package/src/core/export/hooks.ts +2 -2
  320. package/src/core/islands/bootstrap.ts +1 -0
  321. package/src/core/islands/bridge.ts +2 -2
  322. package/src/core/kernel/messages.ts +1 -1
  323. package/src/core/kernel/session.ts +9 -0
  324. package/src/core/network/__tests__/api.test.ts +114 -1
  325. package/src/core/network/__tests__/connection.test.ts +3 -3
  326. package/src/core/network/api.ts +3 -2
  327. package/src/core/network/connection-notice.ts +5 -5
  328. package/src/core/network/connection.ts +9 -9
  329. package/src/core/network/requests-lazy.ts +2 -2
  330. package/src/core/packages/__tests__/useSandboxController.test.tsx +2 -2
  331. package/src/core/packages/useSandboxController.ts +6 -6
  332. package/src/core/runtime/__tests__/adapter.test.ts +6 -6
  333. package/src/core/runtime/adapter.ts +7 -7
  334. package/src/core/runtime/config.ts +2 -2
  335. package/src/core/saving/filename.ts +2 -2
  336. package/src/core/saving/save-component.tsx +5 -5
  337. package/src/core/saving/useAutoSave.ts +2 -2
  338. package/src/core/wasm/__tests__/bootstrap.test.ts +33 -1
  339. package/src/core/wasm/bridge.ts +2 -2
  340. package/src/core/wasm/worker/bootstrap.ts +22 -3
  341. package/src/core/wasm/worker/types.ts +2 -2
  342. package/src/core/websocket/__tests__/useMarimoKernelConnection.hook.test.tsx +30 -25
  343. package/src/core/websocket/__tests__/useMarimoKernelConnection.test.ts +5 -5
  344. package/src/core/websocket/connection-utils.ts +21 -21
  345. package/src/core/websocket/types.ts +8 -9
  346. package/src/core/websocket/useMarimoKernelConnection.tsx +33 -22
  347. package/src/css/katex-css.test.ts +166 -0
  348. package/src/css/katex.min.css +175 -169
  349. package/src/hooks/__tests__/useEventListener.test.tsx +45 -1
  350. package/src/hooks/useEventListener.ts +6 -1
  351. package/src/mount.tsx +2 -2
  352. package/src/plugins/core/__test__/registerReactComponent.test.ts +55 -0
  353. package/src/plugins/core/registerReactComponent.tsx +3 -1
  354. package/src/plugins/impl/CheckboxPlugin.tsx +1 -1
  355. package/src/plugins/impl/DataTablePlugin.tsx +23 -2
  356. package/src/plugins/impl/DatePickerPlugin.tsx +5 -3
  357. package/src/plugins/impl/DateRangePlugin.tsx +5 -3
  358. package/src/plugins/impl/DateTimePickerPlugin.tsx +5 -3
  359. package/src/plugins/impl/DropdownPlugin.tsx +1 -1
  360. package/src/plugins/impl/MultiselectPlugin.tsx +1 -1
  361. package/src/plugins/impl/NumberPlugin.tsx +21 -4
  362. package/src/plugins/impl/RadioPlugin.tsx +5 -1
  363. package/src/plugins/impl/RangeSliderPlugin.tsx +1 -1
  364. package/src/plugins/impl/SearchableSelect.tsx +1 -1
  365. package/src/plugins/impl/SliderPlugin.tsx +5 -1
  366. package/src/plugins/impl/SwitchPlugin.tsx +6 -1
  367. package/src/plugins/impl/TextAreaPlugin.tsx +23 -4
  368. package/src/plugins/impl/TextInputPlugin.tsx +10 -2
  369. package/src/plugins/impl/__test__/slider-labels.test.tsx +136 -0
  370. package/src/plugins/impl/__test__/text-labels.test.tsx +141 -0
  371. package/src/plugins/impl/__tests__/DataTablePlugin.test.tsx +65 -8
  372. package/src/plugins/impl/__tests__/NumberPlugin.test.tsx +159 -1
  373. package/src/plugins/impl/__tests__/widget-labels.test.tsx +122 -0
  374. package/src/plugins/impl/chat/ChatPlugin.tsx +1 -1
  375. package/src/plugins/impl/common/labeled.tsx +9 -3
  376. package/src/plugins/impl/data-frames/DataFramePlugin.tsx +15 -3
  377. package/src/plugins/impl/data-frames/forms/__tests__/__snapshots__/form.test.tsx.snap +0 -22
  378. package/src/stories/cell.stories.tsx +2 -2
  379. package/src/stories/dataframe.stories.tsx +7 -0
  380. package/src/stories/layout/vertical/one-column.stories.tsx +5 -5
  381. package/src/stories/progress-stages.stories.tsx +62 -0
  382. package/src/stories/runtime-existing.stories.tsx +44 -0
  383. package/src/stories/runtime-maintenance.stories.tsx +40 -0
  384. package/src/stories/runtime-pixi.stories.tsx +28 -0
  385. package/src/stories/{sandbox.stories.tsx → runtime-story.tsx} +191 -152
  386. package/src/stories/runtime-uv.stories.tsx +56 -0
  387. package/dist/assets/__vite-browser-external-C9iR87Zl.js +0 -1
  388. package/dist/assets/worker-D7hWi02M.js +0 -109
  389. package/dist/classDiagram-ZZMXUADV-BwYhrSEX.js +0 -30
  390. package/dist/classDiagram-v2-VYDZK3BY-HecM04TM.js +0 -30
  391. package/dist/dropdown-menu-BaqM0t4N.js +0 -4502
  392. package/dist/error-banner-DzAmP0AQ.js +0 -391
  393. package/dist/flowDiagram-HODETNUW-DgcjSdPV.js +0 -16
  394. package/dist/label-MNhNNoN6.js +0 -278
  395. package/dist/mermaid-HWGCJPDP-DYCzSILp.js +0 -2
  396. package/dist/purify.es-DgKyQviY.js +0 -805
  397. package/dist/select-BcObMjGz.js +0 -970
  398. package/dist/stateDiagram-v2-MP3YSRHH-Dk5QgdXF.js +0 -30
  399. package/dist/swimlanesDiagram-VR7AAH4N-CbztusY8.js +0 -30
  400. package/src/components/editor/chrome/panels/sandbox-toggle.tsx +0 -52
@@ -1,970 +0,0 @@
1
- import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
2
- import { g as t, h as n, m as r, p as i, r as a, u as o } from "./button-B0Xgl-Qn.js";
3
- import { t as s } from "./react-ofJbxM4x.js";
4
- import { t as c } from "./compiler-runtime-Cj8ZWiNS.js";
5
- import { c as l, d as u, g as d, l as f, m as p, s as m, u as h } from "./tooltip-Bi36DgYh.js";
6
- import { t as g } from "./check-DGZ74tV2.js";
7
- import { t as _ } from "./react-dom-BUgJ-ab_.js";
8
- import { t as v } from "./jsx-runtime-DgDPJV9S.js";
9
- import { Ct as y, Q as b, St as x, Tt as S, X as C, Y as w, ft as T, gt as E, lt as ee, mt as D, pt as O, ut as k, vt as A, wt as j, xt as te, yt as M } from "./use-restore-focus-ZgG5Br63.js";
10
- import { t as N } from "./invariant-DLmrl-hA.js";
11
- var P = d("chevron-down", [["path", {
12
- d: "m6 9 6 6 6-6",
13
- key: "qrunsl"
14
- }]]), ne = d("chevron-up", [["path", {
15
- d: "m18 15-6-6-6 6",
16
- key: "153udz"
17
- }]]), F = d("x", [["path", {
18
- d: "M18 6 6 18",
19
- key: "1bl5f8"
20
- }], ["path", {
21
- d: "m6 6 12 12",
22
- key: "d8bk6v"
23
- }]]), I = /* @__PURE__ */ e(_(), 1), L = /* @__PURE__ */ e(s(), 1), R = v();
24
- function z(e) {
25
- let t = e + "CollectionProvider", [n, r] = j(t), [a, s] = n(t, {
26
- collectionRef: { current: null },
27
- itemMap: /* @__PURE__ */ new Map()
28
- }), c = (e) => {
29
- let { scope: t, children: n } = e, r = L.useRef(null), i = L.useRef(/* @__PURE__ */ new Map()).current;
30
- return /* @__PURE__ */ (0, R.jsx)(a, {
31
- scope: t,
32
- itemMap: i,
33
- collectionRef: r,
34
- children: n
35
- });
36
- };
37
- c.displayName = t;
38
- let l = e + "CollectionSlot", u = o(l), d = L.forwardRef((e, t) => {
39
- let { scope: n, children: r } = e, a = s(l, n), o = i(t, a.collectionRef);
40
- return /* @__PURE__ */ (0, R.jsx)(u, {
41
- ref: o,
42
- children: r
43
- });
44
- });
45
- d.displayName = l;
46
- let f = e + "CollectionItemSlot", p = "data-radix-collection-item", m = o(f), h = L.forwardRef((e, t) => {
47
- let { scope: n, children: r, ...a } = e, o = L.useRef(null), c = i(t, o), l = s(f, n);
48
- return L.useEffect(() => (l.itemMap.set(o, {
49
- ref: o,
50
- ...a
51
- }), () => void l.itemMap.delete(o))), /* @__PURE__ */ (0, R.jsx)(m, {
52
- [p]: "",
53
- ref: c,
54
- children: r
55
- });
56
- });
57
- h.displayName = f;
58
- function g(t) {
59
- let n = s(e + "CollectionConsumer", t);
60
- return L.useCallback(() => {
61
- let e = n.collectionRef.current;
62
- if (!e) return [];
63
- let t = Array.from(e.querySelectorAll(`[${p}]`));
64
- return Array.from(n.itemMap.values()).sort((e, n) => t.indexOf(e.ref.current) - t.indexOf(n.ref.current));
65
- }, [n.collectionRef, n.itemMap]);
66
- }
67
- return [
68
- {
69
- Provider: c,
70
- Slot: d,
71
- ItemSlot: h
72
- },
73
- g,
74
- r
75
- ];
76
- }
77
- //#endregion
78
- //#region ../node_modules/.pnpm/@radix-ui+react-direction@1.1.1_@types+react@19.2.18_react@19.2.8/node_modules/@radix-ui/react-direction/dist/index.mjs
79
- var B = L.createContext(void 0);
80
- function V(e) {
81
- let t = L.useContext(B);
82
- return e || t || "ltr";
83
- }
84
- //#endregion
85
- //#region ../node_modules/.pnpm/@radix-ui+react-use-previous@1.1.1_@types+react@19.2.18_react@19.2.8/node_modules/@radix-ui/react-use-previous/dist/index.mjs
86
- function re(e) {
87
- let t = L.useRef({
88
- value: e,
89
- previous: e
90
- });
91
- return L.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
92
- }
93
- //#endregion
94
- //#region ../node_modules/.pnpm/@radix-ui+number@1.1.1/node_modules/@radix-ui/number/dist/index.mjs
95
- function H(e, [t, n]) {
96
- return Math.min(n, Math.max(t, e));
97
- }
98
- //#endregion
99
- //#region ../node_modules/.pnpm/@radix-ui+react-select@2.2.6_@types+react-dom@19.2.5_@types+react@19.2.18__@types+react_222b751141b68a72c9a1f832b1f1e3a6/node_modules/@radix-ui/react-select/dist/index.mjs
100
- var ie = [
101
- " ",
102
- "Enter",
103
- "ArrowUp",
104
- "ArrowDown"
105
- ], ae = [" ", "Enter"], U = "Select", [W, G, oe] = z(U), [K, se] = j(U, [oe, u]), q = u(), [ce, J] = K(U), [le, ue] = K(U), de = (e) => {
106
- let { __scopeSelect: t, children: n, open: r, defaultOpen: i, onOpenChange: a, value: o, defaultValue: s, onValueChange: c, dir: l, name: u, autoComplete: d, disabled: f, required: p, form: m } = e, g = q(t), [_, v] = L.useState(null), [y, b] = L.useState(null), [x, S] = L.useState(!1), C = V(l), [w, T] = te({
107
- prop: r,
108
- defaultProp: i ?? !1,
109
- onChange: a,
110
- caller: U
111
- }), [E, ee] = te({
112
- prop: o,
113
- defaultProp: s,
114
- onChange: c,
115
- caller: U
116
- }), D = L.useRef(null), O = !_ || m || !!_.closest("form"), [k, A] = L.useState(/* @__PURE__ */ new Set()), j = Array.from(k).map((e) => e.props.value).join(";");
117
- return /* @__PURE__ */ (0, R.jsx)(h, {
118
- ...g,
119
- children: /* @__PURE__ */ (0, R.jsxs)(ce, {
120
- required: p,
121
- scope: t,
122
- trigger: _,
123
- onTriggerChange: v,
124
- valueNode: y,
125
- onValueNodeChange: b,
126
- valueNodeHasChildren: x,
127
- onValueNodeHasChildrenChange: S,
128
- contentId: M(),
129
- value: E,
130
- onValueChange: ee,
131
- open: w,
132
- onOpenChange: T,
133
- dir: C,
134
- triggerPointerDownPosRef: D,
135
- disabled: f,
136
- children: [/* @__PURE__ */ (0, R.jsx)(W.Provider, {
137
- scope: t,
138
- children: /* @__PURE__ */ (0, R.jsx)(le, {
139
- scope: e.__scopeSelect,
140
- onNativeOptionAdd: L.useCallback((e) => {
141
- A((t) => new Set(t).add(e));
142
- }, []),
143
- onNativeOptionRemove: L.useCallback((e) => {
144
- A((t) => {
145
- let n = new Set(t);
146
- return n.delete(e), n;
147
- });
148
- }, []),
149
- children: n
150
- })
151
- }), O ? /* @__PURE__ */ (0, R.jsxs)(nt, {
152
- "aria-hidden": !0,
153
- required: p,
154
- tabIndex: -1,
155
- name: u,
156
- autoComplete: d,
157
- value: E,
158
- onChange: (e) => ee(e.target.value),
159
- disabled: f,
160
- form: m,
161
- children: [E === void 0 ? /* @__PURE__ */ (0, R.jsx)("option", { value: "" }) : null, Array.from(k)]
162
- }, j) : null]
163
- })
164
- });
165
- };
166
- de.displayName = U;
167
- var fe = "SelectTrigger", pe = L.forwardRef((e, t) => {
168
- let { __scopeSelect: n, disabled: r = !1, ...a } = e, o = q(n), s = J(fe, n), c = s.disabled || r, l = i(t, s.onTriggerChange), u = G(n), d = L.useRef("touch"), [f, p, h] = it((e) => {
169
- let t = u().filter((e) => !e.disabled), n = at(t, e, t.find((e) => e.value === s.value));
170
- n !== void 0 && s.onValueChange(n.value);
171
- }), g = (e) => {
172
- c || (s.onOpenChange(!0), h()), e && (s.triggerPointerDownPosRef.current = {
173
- x: Math.round(e.pageX),
174
- y: Math.round(e.pageY)
175
- });
176
- };
177
- return /* @__PURE__ */ (0, R.jsx)(m, {
178
- asChild: !0,
179
- ...o,
180
- children: /* @__PURE__ */ (0, R.jsx)(S.button, {
181
- type: "button",
182
- role: "combobox",
183
- "aria-controls": s.contentId,
184
- "aria-expanded": s.open,
185
- "aria-required": s.required,
186
- "aria-autocomplete": "none",
187
- dir: s.dir,
188
- "data-state": s.open ? "open" : "closed",
189
- disabled: c,
190
- "data-disabled": c ? "" : void 0,
191
- "data-placeholder": rt(s.value) ? "" : void 0,
192
- ...a,
193
- ref: l,
194
- onClick: y(a.onClick, (e) => {
195
- e.currentTarget.focus(), d.current !== "mouse" && g(e);
196
- }),
197
- onPointerDown: y(a.onPointerDown, (e) => {
198
- d.current = e.pointerType;
199
- let t = e.target;
200
- t.hasPointerCapture(e.pointerId) && t.releasePointerCapture(e.pointerId), e.button === 0 && e.ctrlKey === !1 && e.pointerType === "mouse" && (g(e), e.preventDefault());
201
- }),
202
- onKeyDown: y(a.onKeyDown, (e) => {
203
- let t = f.current !== "";
204
- !(e.ctrlKey || e.altKey || e.metaKey) && e.key.length === 1 && p(e.key), !(t && e.key === " ") && ie.includes(e.key) && (g(), e.preventDefault());
205
- })
206
- })
207
- });
208
- });
209
- pe.displayName = fe;
210
- var me = "SelectValue", he = L.forwardRef((e, t) => {
211
- let { __scopeSelect: n, className: r, style: a, children: o, placeholder: s = "", ...c } = e, l = J(me, n), { onValueNodeHasChildrenChange: u } = l, d = o !== void 0, f = i(t, l.onValueNodeChange);
212
- return x(() => {
213
- u(d);
214
- }, [u, d]), /* @__PURE__ */ (0, R.jsx)(S.span, {
215
- ...c,
216
- ref: f,
217
- style: { pointerEvents: "none" },
218
- children: rt(l.value) ? /* @__PURE__ */ (0, R.jsx)(R.Fragment, { children: s }) : o
219
- });
220
- });
221
- he.displayName = me;
222
- var ge = "SelectIcon", _e = L.forwardRef((e, t) => {
223
- let { __scopeSelect: n, children: r, ...i } = e;
224
- return /* @__PURE__ */ (0, R.jsx)(S.span, {
225
- "aria-hidden": !0,
226
- ...i,
227
- ref: t,
228
- children: r || "▼"
229
- });
230
- });
231
- _e.displayName = ge;
232
- var ve = "SelectPortal", ye = (e) => /* @__PURE__ */ (0, R.jsx)(O, {
233
- asChild: !0,
234
- ...e
235
- });
236
- ye.displayName = ve;
237
- var Y = "SelectContent", be = L.forwardRef((e, t) => {
238
- let n = J(Y, e.__scopeSelect), [r, i] = L.useState();
239
- if (x(() => {
240
- i(new DocumentFragment());
241
- }, []), !n.open) {
242
- let t = r;
243
- return t ? I.createPortal(/* @__PURE__ */ (0, R.jsx)(xe, {
244
- scope: e.__scopeSelect,
245
- children: /* @__PURE__ */ (0, R.jsx)(W.Slot, {
246
- scope: e.__scopeSelect,
247
- children: /* @__PURE__ */ (0, R.jsx)("div", { children: e.children })
248
- })
249
- }), t) : null;
250
- }
251
- return /* @__PURE__ */ (0, R.jsx)(we, {
252
- ...e,
253
- ref: t
254
- });
255
- });
256
- be.displayName = Y;
257
- var X = 10, [xe, Z] = K(Y), Se = "SelectContentImpl", Ce = o("SelectContent.RemoveScroll"), we = L.forwardRef((e, t) => {
258
- let { __scopeSelect: n, position: r = "item-aligned", onCloseAutoFocus: a, onEscapeKeyDown: o, onPointerDownOutside: s, side: c, sideOffset: l, align: u, alignOffset: d, arrowPadding: f, collisionBoundary: p, collisionPadding: m, sticky: h, hideWhenDetached: g, avoidCollisions: _, ...v } = e, b = J(Y, n), [x, S] = L.useState(null), [C, w] = L.useState(null), O = i(t, (e) => S(e)), [A, j] = L.useState(null), [te, M] = L.useState(null), N = G(n), [P, ne] = L.useState(!1), F = L.useRef(!1);
259
- L.useEffect(() => {
260
- if (x) return ee(x);
261
- }, [x]), T();
262
- let I = L.useCallback((e) => {
263
- let [t, ...n] = N().map((e) => e.ref.current), [r] = n.slice(-1), i = document.activeElement;
264
- for (let n of e) if (n === i || (n?.scrollIntoView({ block: "nearest" }), n === t && C && (C.scrollTop = 0), n === r && C && (C.scrollTop = C.scrollHeight), n?.focus(), document.activeElement !== i)) return;
265
- }, [N, C]), z = L.useCallback(() => I([A, x]), [
266
- I,
267
- A,
268
- x
269
- ]);
270
- L.useEffect(() => {
271
- P && z();
272
- }, [P, z]);
273
- let { onOpenChange: B, triggerPointerDownPosRef: V } = b;
274
- L.useEffect(() => {
275
- if (x) {
276
- let e = {
277
- x: 0,
278
- y: 0
279
- }, t = (t) => {
280
- e = {
281
- x: Math.abs(Math.round(t.pageX) - (V.current?.x ?? 0)),
282
- y: Math.abs(Math.round(t.pageY) - (V.current?.y ?? 0))
283
- };
284
- }, n = (n) => {
285
- e.x <= 10 && e.y <= 10 ? n.preventDefault() : x.contains(n.target) || B(!1), document.removeEventListener("pointermove", t), V.current = null;
286
- };
287
- return V.current !== null && (document.addEventListener("pointermove", t), document.addEventListener("pointerup", n, {
288
- capture: !0,
289
- once: !0
290
- })), () => {
291
- document.removeEventListener("pointermove", t), document.removeEventListener("pointerup", n, { capture: !0 });
292
- };
293
- }
294
- }, [
295
- x,
296
- B,
297
- V
298
- ]), L.useEffect(() => {
299
- let e = () => B(!1);
300
- return window.addEventListener("blur", e), window.addEventListener("resize", e), () => {
301
- window.removeEventListener("blur", e), window.removeEventListener("resize", e);
302
- };
303
- }, [B]);
304
- let [re, H] = it((e) => {
305
- let t = N().filter((e) => !e.disabled), n = at(t, e, t.find((e) => e.ref.current === document.activeElement));
306
- n && setTimeout(() => n.ref.current.focus());
307
- }), ie = L.useCallback((e, t, n) => {
308
- let r = !F.current && !n;
309
- (b.value !== void 0 && b.value === t || r) && (j(e), r && (F.current = !0));
310
- }, [b.value]), ae = L.useCallback(() => x?.focus(), [x]), U = L.useCallback((e, t, n) => {
311
- let r = !F.current && !n;
312
- (b.value !== void 0 && b.value === t || r) && M(e);
313
- }, [b.value]), W = r === "popper" ? Oe : Ee, oe = W === Oe ? {
314
- side: c,
315
- sideOffset: l,
316
- align: u,
317
- alignOffset: d,
318
- arrowPadding: f,
319
- collisionBoundary: p,
320
- collisionPadding: m,
321
- sticky: h,
322
- hideWhenDetached: g,
323
- avoidCollisions: _
324
- } : {};
325
- return /* @__PURE__ */ (0, R.jsx)(xe, {
326
- scope: n,
327
- content: x,
328
- viewport: C,
329
- onViewportChange: w,
330
- itemRefCallback: ie,
331
- selectedItem: A,
332
- onItemLeave: ae,
333
- itemTextRefCallback: U,
334
- focusSelectedItem: z,
335
- selectedItemText: te,
336
- position: r,
337
- isPositioned: P,
338
- searchRef: re,
339
- children: /* @__PURE__ */ (0, R.jsx)(k, {
340
- as: Ce,
341
- allowPinchZoom: !0,
342
- children: /* @__PURE__ */ (0, R.jsx)(D, {
343
- asChild: !0,
344
- trapped: b.open,
345
- onMountAutoFocus: (e) => {
346
- e.preventDefault();
347
- },
348
- onUnmountAutoFocus: y(a, (e) => {
349
- b.trigger?.focus({ preventScroll: !0 }), e.preventDefault();
350
- }),
351
- children: /* @__PURE__ */ (0, R.jsx)(E, {
352
- asChild: !0,
353
- disableOutsidePointerEvents: !0,
354
- onEscapeKeyDown: o,
355
- onPointerDownOutside: s,
356
- onFocusOutside: (e) => e.preventDefault(),
357
- onDismiss: () => b.onOpenChange(!1),
358
- children: /* @__PURE__ */ (0, R.jsx)(W, {
359
- role: "listbox",
360
- id: b.contentId,
361
- "data-state": b.open ? "open" : "closed",
362
- dir: b.dir,
363
- onContextMenu: (e) => e.preventDefault(),
364
- ...v,
365
- ...oe,
366
- onPlaced: () => ne(!0),
367
- ref: O,
368
- style: {
369
- display: "flex",
370
- flexDirection: "column",
371
- outline: "none",
372
- ...v.style
373
- },
374
- onKeyDown: y(v.onKeyDown, (e) => {
375
- let t = e.ctrlKey || e.altKey || e.metaKey;
376
- if (e.key === "Tab" && e.preventDefault(), !t && e.key.length === 1 && H(e.key), [
377
- "ArrowUp",
378
- "ArrowDown",
379
- "Home",
380
- "End"
381
- ].includes(e.key)) {
382
- let t = N().filter((e) => !e.disabled).map((e) => e.ref.current);
383
- if (["ArrowUp", "End"].includes(e.key) && (t = t.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(e.key)) {
384
- let n = e.target, r = t.indexOf(n);
385
- t = t.slice(r + 1);
386
- }
387
- setTimeout(() => I(t)), e.preventDefault();
388
- }
389
- })
390
- })
391
- })
392
- })
393
- })
394
- });
395
- });
396
- we.displayName = Se;
397
- var Te = "SelectItemAlignedPosition", Ee = L.forwardRef((e, t) => {
398
- let { __scopeSelect: n, onPlaced: r, ...a } = e, o = J(Y, n), s = Z(Y, n), [c, l] = L.useState(null), [u, d] = L.useState(null), f = i(t, (e) => d(e)), p = G(n), m = L.useRef(!1), h = L.useRef(!0), { viewport: g, selectedItem: _, selectedItemText: v, focusSelectedItem: y } = s, b = L.useCallback(() => {
399
- if (o.trigger && o.valueNode && c && u && g && _ && v) {
400
- let e = o.trigger.getBoundingClientRect(), t = u.getBoundingClientRect(), n = o.valueNode.getBoundingClientRect(), i = v.getBoundingClientRect();
401
- if (o.dir !== "rtl") {
402
- let r = i.left - t.left, a = n.left - r, o = e.left - a, s = e.width + o, l = Math.max(s, t.width), u = window.innerWidth - X, d = H(a, [X, Math.max(X, u - l)]);
403
- c.style.minWidth = s + "px", c.style.left = d + "px";
404
- } else {
405
- let r = t.right - i.right, a = window.innerWidth - n.right - r, o = window.innerWidth - e.right - a, s = e.width + o, l = Math.max(s, t.width), u = window.innerWidth - X, d = H(a, [X, Math.max(X, u - l)]);
406
- c.style.minWidth = s + "px", c.style.right = d + "px";
407
- }
408
- let a = p(), s = window.innerHeight - X * 2, l = g.scrollHeight, d = window.getComputedStyle(u), f = parseInt(d.borderTopWidth, 10), h = parseInt(d.paddingTop, 10), y = parseInt(d.borderBottomWidth, 10), b = parseInt(d.paddingBottom, 10), x = f + h + l + b + y, S = Math.min(_.offsetHeight * 5, x), C = window.getComputedStyle(g), w = parseInt(C.paddingTop, 10), T = parseInt(C.paddingBottom, 10), E = e.top + e.height / 2 - X, ee = s - E, D = _.offsetHeight / 2, O = _.offsetTop + D, k = f + h + O, A = x - k;
409
- if (k <= E) {
410
- let e = a.length > 0 && _ === a[a.length - 1].ref.current;
411
- c.style.bottom = "0px";
412
- let t = u.clientHeight - g.offsetTop - g.offsetHeight, n = k + Math.max(ee, D + (e ? T : 0) + t + y);
413
- c.style.height = n + "px";
414
- } else {
415
- let e = a.length > 0 && _ === a[0].ref.current;
416
- c.style.top = "0px";
417
- let t = Math.max(E, f + g.offsetTop + (e ? w : 0) + D) + A;
418
- c.style.height = t + "px", g.scrollTop = k - E + g.offsetTop;
419
- }
420
- c.style.margin = `${X}px 0`, c.style.minHeight = S + "px", c.style.maxHeight = s + "px", r?.(), requestAnimationFrame(() => m.current = !0);
421
- }
422
- }, [
423
- p,
424
- o.trigger,
425
- o.valueNode,
426
- c,
427
- u,
428
- g,
429
- _,
430
- v,
431
- o.dir,
432
- r
433
- ]);
434
- x(() => b(), [b]);
435
- let [C, w] = L.useState();
436
- x(() => {
437
- u && w(window.getComputedStyle(u).zIndex);
438
- }, [u]);
439
- let T = L.useCallback((e) => {
440
- e && h.current === !0 && (b(), y?.(), h.current = !1);
441
- }, [b, y]);
442
- return /* @__PURE__ */ (0, R.jsx)(ke, {
443
- scope: n,
444
- contentWrapper: c,
445
- shouldExpandOnScrollRef: m,
446
- onScrollButtonChange: T,
447
- children: /* @__PURE__ */ (0, R.jsx)("div", {
448
- ref: l,
449
- style: {
450
- display: "flex",
451
- flexDirection: "column",
452
- position: "fixed",
453
- zIndex: C
454
- },
455
- children: /* @__PURE__ */ (0, R.jsx)(S.div, {
456
- ...a,
457
- ref: f,
458
- style: {
459
- boxSizing: "border-box",
460
- maxHeight: "100%",
461
- ...a.style
462
- }
463
- })
464
- })
465
- });
466
- });
467
- Ee.displayName = Te;
468
- var De = "SelectPopperPosition", Oe = L.forwardRef((e, t) => {
469
- let { __scopeSelect: n, align: r = "start", collisionPadding: i = X, ...a } = e, o = q(n);
470
- return /* @__PURE__ */ (0, R.jsx)(f, {
471
- ...o,
472
- ...a,
473
- ref: t,
474
- align: r,
475
- collisionPadding: i,
476
- style: {
477
- boxSizing: "border-box",
478
- ...a.style,
479
- "--radix-select-content-transform-origin": "var(--radix-popper-transform-origin)",
480
- "--radix-select-content-available-width": "var(--radix-popper-available-width)",
481
- "--radix-select-content-available-height": "var(--radix-popper-available-height)",
482
- "--radix-select-trigger-width": "var(--radix-popper-anchor-width)",
483
- "--radix-select-trigger-height": "var(--radix-popper-anchor-height)"
484
- }
485
- });
486
- });
487
- Oe.displayName = De;
488
- var [ke, Ae] = K(Y, {}), je = "SelectViewport", Me = L.forwardRef((e, t) => {
489
- let { __scopeSelect: n, nonce: r, ...a } = e, o = Z(je, n), s = Ae(je, n), c = i(t, o.onViewportChange), l = L.useRef(0);
490
- return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("style", {
491
- dangerouslySetInnerHTML: { __html: "[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}" },
492
- nonce: r
493
- }), /* @__PURE__ */ (0, R.jsx)(W.Slot, {
494
- scope: n,
495
- children: /* @__PURE__ */ (0, R.jsx)(S.div, {
496
- "data-radix-select-viewport": "",
497
- role: "presentation",
498
- ...a,
499
- ref: c,
500
- style: {
501
- position: "relative",
502
- flex: 1,
503
- overflow: "hidden auto",
504
- ...a.style
505
- },
506
- onScroll: y(a.onScroll, (e) => {
507
- let t = e.currentTarget, { contentWrapper: n, shouldExpandOnScrollRef: r } = s;
508
- if (r?.current && n) {
509
- let e = Math.abs(l.current - t.scrollTop);
510
- if (e > 0) {
511
- let r = window.innerHeight - X * 2, i = parseFloat(n.style.minHeight), a = parseFloat(n.style.height), o = Math.max(i, a);
512
- if (o < r) {
513
- let i = o + e, a = Math.min(r, i), s = i - a;
514
- n.style.height = a + "px", n.style.bottom === "0px" && (t.scrollTop = s > 0 ? s : 0, n.style.justifyContent = "flex-end");
515
- }
516
- }
517
- }
518
- l.current = t.scrollTop;
519
- })
520
- })
521
- })] });
522
- });
523
- Me.displayName = je;
524
- var Ne = "SelectGroup", [Pe, Fe] = K(Ne), Ie = L.forwardRef((e, t) => {
525
- let { __scopeSelect: n, ...r } = e, i = M();
526
- return /* @__PURE__ */ (0, R.jsx)(Pe, {
527
- scope: n,
528
- id: i,
529
- children: /* @__PURE__ */ (0, R.jsx)(S.div, {
530
- role: "group",
531
- "aria-labelledby": i,
532
- ...r,
533
- ref: t
534
- })
535
- });
536
- });
537
- Ie.displayName = Ne;
538
- var Le = "SelectLabel", Re = L.forwardRef((e, t) => {
539
- let { __scopeSelect: n, ...r } = e, i = Fe(Le, n);
540
- return /* @__PURE__ */ (0, R.jsx)(S.div, {
541
- id: i.id,
542
- ...r,
543
- ref: t
544
- });
545
- });
546
- Re.displayName = Le;
547
- var ze = "SelectItem", [Be, Ve] = K(ze), He = L.forwardRef((e, t) => {
548
- let { __scopeSelect: n, value: r, disabled: a = !1, textValue: o, ...s } = e, c = J(ze, n), l = Z(ze, n), u = c.value === r, [d, f] = L.useState(o ?? ""), [p, m] = L.useState(!1), h = i(t, (e) => l.itemRefCallback?.(e, r, a)), g = M(), _ = L.useRef("touch"), v = () => {
549
- a || (c.onValueChange(r), c.onOpenChange(!1));
550
- };
551
- if (r === "") throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");
552
- return /* @__PURE__ */ (0, R.jsx)(Be, {
553
- scope: n,
554
- value: r,
555
- disabled: a,
556
- textId: g,
557
- isSelected: u,
558
- onItemTextChange: L.useCallback((e) => {
559
- f((t) => t || (e?.textContent ?? "").trim());
560
- }, []),
561
- children: /* @__PURE__ */ (0, R.jsx)(W.ItemSlot, {
562
- scope: n,
563
- value: r,
564
- disabled: a,
565
- textValue: d,
566
- children: /* @__PURE__ */ (0, R.jsx)(S.div, {
567
- role: "option",
568
- "aria-labelledby": g,
569
- "data-highlighted": p ? "" : void 0,
570
- "aria-selected": u && p,
571
- "data-state": u ? "checked" : "unchecked",
572
- "aria-disabled": a || void 0,
573
- "data-disabled": a ? "" : void 0,
574
- tabIndex: a ? void 0 : -1,
575
- ...s,
576
- ref: h,
577
- onFocus: y(s.onFocus, () => m(!0)),
578
- onBlur: y(s.onBlur, () => m(!1)),
579
- onClick: y(s.onClick, () => {
580
- _.current !== "mouse" && v();
581
- }),
582
- onPointerUp: y(s.onPointerUp, () => {
583
- _.current === "mouse" && v();
584
- }),
585
- onPointerDown: y(s.onPointerDown, (e) => {
586
- _.current = e.pointerType;
587
- }),
588
- onPointerMove: y(s.onPointerMove, (e) => {
589
- _.current = e.pointerType, a ? l.onItemLeave?.() : _.current === "mouse" && e.currentTarget.focus({ preventScroll: !0 });
590
- }),
591
- onPointerLeave: y(s.onPointerLeave, (e) => {
592
- e.currentTarget === document.activeElement && l.onItemLeave?.();
593
- }),
594
- onKeyDown: y(s.onKeyDown, (e) => {
595
- (l.searchRef?.current === "" || e.key !== " ") && (ae.includes(e.key) && v(), e.key === " " && e.preventDefault());
596
- })
597
- })
598
- })
599
- });
600
- });
601
- He.displayName = ze;
602
- var Q = "SelectItemText", Ue = L.forwardRef((e, t) => {
603
- let { __scopeSelect: n, className: r, style: a, ...o } = e, s = J(Q, n), c = Z(Q, n), l = Ve(Q, n), u = ue(Q, n), [d, f] = L.useState(null), p = i(t, (e) => f(e), l.onItemTextChange, (e) => c.itemTextRefCallback?.(e, l.value, l.disabled)), m = d?.textContent, h = L.useMemo(() => /* @__PURE__ */ (0, R.jsx)("option", {
604
- value: l.value,
605
- disabled: l.disabled,
606
- children: m
607
- }, l.value), [
608
- l.disabled,
609
- l.value,
610
- m
611
- ]), { onNativeOptionAdd: g, onNativeOptionRemove: _ } = u;
612
- return x(() => (g(h), () => _(h)), [
613
- g,
614
- _,
615
- h
616
- ]), /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(S.span, {
617
- id: l.textId,
618
- ...o,
619
- ref: p
620
- }), l.isSelected && s.valueNode && !s.valueNodeHasChildren ? I.createPortal(o.children, s.valueNode) : null] });
621
- });
622
- Ue.displayName = Q;
623
- var We = "SelectItemIndicator", Ge = L.forwardRef((e, t) => {
624
- let { __scopeSelect: n, ...r } = e;
625
- return Ve(We, n).isSelected ? /* @__PURE__ */ (0, R.jsx)(S.span, {
626
- "aria-hidden": !0,
627
- ...r,
628
- ref: t
629
- }) : null;
630
- });
631
- Ge.displayName = We;
632
- var Ke = "SelectScrollUpButton", qe = L.forwardRef((e, t) => {
633
- let n = Z(Ke, e.__scopeSelect), r = Ae(Ke, e.__scopeSelect), [a, o] = L.useState(!1), s = i(t, r.onScrollButtonChange);
634
- return x(() => {
635
- if (n.viewport && n.isPositioned) {
636
- let e = function() {
637
- let e = t.scrollTop > 0;
638
- o(e);
639
- }, t = n.viewport;
640
- return e(), t.addEventListener("scroll", e), () => t.removeEventListener("scroll", e);
641
- }
642
- }, [n.viewport, n.isPositioned]), a ? /* @__PURE__ */ (0, R.jsx)(Xe, {
643
- ...e,
644
- ref: s,
645
- onAutoScroll: () => {
646
- let { viewport: e, selectedItem: t } = n;
647
- e && t && (e.scrollTop -= t.offsetHeight);
648
- }
649
- }) : null;
650
- });
651
- qe.displayName = Ke;
652
- var Je = "SelectScrollDownButton", Ye = L.forwardRef((e, t) => {
653
- let n = Z(Je, e.__scopeSelect), r = Ae(Je, e.__scopeSelect), [a, o] = L.useState(!1), s = i(t, r.onScrollButtonChange);
654
- return x(() => {
655
- if (n.viewport && n.isPositioned) {
656
- let e = function() {
657
- let e = t.scrollHeight - t.clientHeight, n = Math.ceil(t.scrollTop) < e;
658
- o(n);
659
- }, t = n.viewport;
660
- return e(), t.addEventListener("scroll", e), () => t.removeEventListener("scroll", e);
661
- }
662
- }, [n.viewport, n.isPositioned]), a ? /* @__PURE__ */ (0, R.jsx)(Xe, {
663
- ...e,
664
- ref: s,
665
- onAutoScroll: () => {
666
- let { viewport: e, selectedItem: t } = n;
667
- e && t && (e.scrollTop += t.offsetHeight);
668
- }
669
- }) : null;
670
- });
671
- Ye.displayName = Je;
672
- var Xe = L.forwardRef((e, t) => {
673
- let { __scopeSelect: n, onAutoScroll: r, ...i } = e, a = Z("SelectScrollButton", n), o = L.useRef(null), s = G(n), c = L.useCallback(() => {
674
- o.current !== null && (window.clearInterval(o.current), o.current = null);
675
- }, []);
676
- return L.useEffect(() => () => c(), [c]), x(() => {
677
- s().find((e) => e.ref.current === document.activeElement)?.ref.current?.scrollIntoView({ block: "nearest" });
678
- }, [s]), /* @__PURE__ */ (0, R.jsx)(S.div, {
679
- "aria-hidden": !0,
680
- ...i,
681
- ref: t,
682
- style: {
683
- flexShrink: 0,
684
- ...i.style
685
- },
686
- onPointerDown: y(i.onPointerDown, () => {
687
- o.current === null && (o.current = window.setInterval(r, 50));
688
- }),
689
- onPointerMove: y(i.onPointerMove, () => {
690
- a.onItemLeave?.(), o.current === null && (o.current = window.setInterval(r, 50));
691
- }),
692
- onPointerLeave: y(i.onPointerLeave, () => {
693
- c();
694
- })
695
- });
696
- }), Ze = "SelectSeparator", Qe = L.forwardRef((e, t) => {
697
- let { __scopeSelect: n, ...r } = e;
698
- return /* @__PURE__ */ (0, R.jsx)(S.div, {
699
- "aria-hidden": !0,
700
- ...r,
701
- ref: t
702
- });
703
- });
704
- Qe.displayName = Ze;
705
- var $e = "SelectArrow", et = L.forwardRef((e, t) => {
706
- let { __scopeSelect: n, ...r } = e, i = q(n), a = J($e, n), o = Z($e, n);
707
- return a.open && o.position === "popper" ? /* @__PURE__ */ (0, R.jsx)(l, {
708
- ...i,
709
- ...r,
710
- ref: t
711
- }) : null;
712
- });
713
- et.displayName = $e;
714
- var tt = "SelectBubbleInput", nt = L.forwardRef(({ __scopeSelect: e, value: t, ...n }, r) => {
715
- let a = L.useRef(null), o = i(r, a), s = re(t);
716
- return L.useEffect(() => {
717
- let e = a.current;
718
- if (!e) return;
719
- let n = window.HTMLSelectElement.prototype, r = Object.getOwnPropertyDescriptor(n, "value").set;
720
- if (s !== t && r) {
721
- let n = new Event("change", { bubbles: !0 });
722
- r.call(e, t), e.dispatchEvent(n);
723
- }
724
- }, [s, t]), /* @__PURE__ */ (0, R.jsx)(S.select, {
725
- ...n,
726
- style: {
727
- ...p,
728
- ...n.style
729
- },
730
- ref: o,
731
- defaultValue: t
732
- });
733
- });
734
- nt.displayName = tt;
735
- function rt(e) {
736
- return e === "" || e === void 0;
737
- }
738
- function it(e) {
739
- let t = A(e), n = L.useRef(""), r = L.useRef(0), i = L.useCallback((e) => {
740
- let i = n.current + e;
741
- t(i), (function e(t) {
742
- n.current = t, window.clearTimeout(r.current), t !== "" && (r.current = window.setTimeout(() => e(""), 1e3));
743
- })(i);
744
- }, [t]), a = L.useCallback(() => {
745
- n.current = "", window.clearTimeout(r.current);
746
- }, []);
747
- return L.useEffect(() => () => window.clearTimeout(r.current), []), [
748
- n,
749
- i,
750
- a
751
- ];
752
- }
753
- function at(e, t, n) {
754
- let r = t.length > 1 && Array.from(t).every((e) => e === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1, a = ot(e, Math.max(i, 0));
755
- r.length === 1 && (a = a.filter((e) => e !== n));
756
- let o = a.find((e) => e.textValue.toLowerCase().startsWith(r.toLowerCase()));
757
- return o === n ? void 0 : o;
758
- }
759
- function ot(e, t) {
760
- return e.map((n, r) => e[(t + r) % e.length]);
761
- }
762
- var st = de, ct = pe, lt = he, ut = _e, dt = ye, ft = be, pt = Me, mt = Ie, ht = Re, gt = He, _t = Ue, vt = Ge, yt = qe, bt = Ye, xt = Qe;
763
- //#endregion
764
- //#region src/utils/assertNever.ts
765
- function St(e) {
766
- N(!1, `Unexpected object: ${e}`);
767
- }
768
- function Ct(e) {
769
- return t.warn(`Unexpected object: ${JSON.stringify(e)}`), e;
770
- }
771
- //#endregion
772
- //#region src/utils/strings.ts
773
- function wt(e) {
774
- return e ? e.charAt(0).toUpperCase() + e.slice(1) : "";
775
- }
776
- function Tt(e) {
777
- if (!e) return "";
778
- if (typeof e != "string") throw t.error(e), TypeError(`Expected string, got ${typeof e}`);
779
- return /[A-Za-z]/.test(e) ? e.replaceAll(/([\da-z])([A-Z])/g, "$1 $2").replaceAll(/([A-Z]+)([A-Z][a-z])/g, "$1 $2").replaceAll(/[\s_-]+/g, " ").trim().split(" ").map(wt).join(" ") : e;
780
- }
781
- var Et = {
782
- startCase: Tt,
783
- htmlEscape: (e) => e && e.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll("\"", "&quot;").replaceAll("'", "&#039;").replaceAll("\n", " "),
784
- withTrailingSlash(e) {
785
- return e.endsWith("/") ? e : `${e}/`;
786
- },
787
- withoutTrailingSlash(e) {
788
- return e.endsWith("/") ? e.slice(0, -1) : e;
789
- },
790
- withoutLeadingSlash(e) {
791
- return e.startsWith("/") ? e.slice(1) : e;
792
- },
793
- asString: (e) => {
794
- if (typeof e == "string") return e;
795
- try {
796
- return JSON.stringify(e);
797
- } catch {
798
- return String(e);
799
- }
800
- }
801
- }, $ = c(), Dt = a("z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md forced-color-adjust-none forced-colors:border-[CanvasText] forced-colors:bg-[Canvas] forced-colors:text-[CanvasText]", { variants: { subcontent: { true: "shadow-lg" } } }), Ot = a("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground forced-color-adjust-none forced-colors:data-[highlighted]:bg-[Highlight] forced-colors:data-[highlighted]:text-[HighlightText] forced-colors:data-[state=open]:bg-[Highlight] forced-colors:data-[state=open]:text-[HighlightText]", { variants: { inset: { true: "pl-8" } } }), kt = "data-disabled:pointer-events-none data-disabled:opacity-50 forced-colors:data-disabled:text-[GrayText]", At = a(n("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground forced-color-adjust-none forced-colors:data-[highlighted]:bg-[Highlight] forced-colors:data-[highlighted]:text-[HighlightText]", kt), { variants: {} }), jt = a("absolute left-2 flex h-3.5 w-3.5 items-center justify-center", { variants: {} }), Mt = a("px-2 py-1.5 text-sm font-semibold", { variants: { inset: { true: "pl-8" } } }), Nt = a(n("menu-item relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden forced-color-adjust-none forced-colors:data-[highlighted]:bg-[Highlight] forced-colors:data-[highlighted]:text-[HighlightText] forced-colors:aria-selected:bg-[Highlight] forced-colors:aria-selected:text-[HighlightText]", kt), {
802
- variants: {
803
- inset: { true: "pl-8" },
804
- variant: {
805
- default: "data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground aria-selected:bg-accent aria-selected:text-accent-foreground",
806
- danger: "data-[highlighted]:bg-(--red-5) data-[highlighted]:text-(--red-12) aria-selected:bg-(--red-5) aria-selected:text-(--red-12)",
807
- muted: "data-[highlighted]:bg-muted/70 data-[highlighted]:text-muted-foreground aria-selected:bg-muted/70 aria-selected:text-muted-foreground",
808
- success: "data-[highlighted]:bg-(--grass-3) data-[highlighted]:text-(--grass-11) aria-selected:bg-(--grass-3) aria-selected:text-(--grass-11)",
809
- disabled: "text-muted-foreground"
810
- }
811
- },
812
- defaultVariants: { variant: "default" }
813
- }), Pt = a("-mx-1 my-1 h-px bg-border last:hidden", { variants: {} }), Ft = (e) => {
814
- let t = (0, $.c)(8), r, i;
815
- t[0] === e ? (r = t[1], i = t[2]) : ({className: r, ...i} = e, t[0] = e, t[1] = r, t[2] = i);
816
- let a;
817
- t[3] === r ? a = t[4] : (a = n("ml-auto text-xs tracking-widest opacity-60", r), t[3] = r, t[4] = a);
818
- let o;
819
- return t[5] !== i || t[6] !== a ? (o = /* @__PURE__ */ (0, R.jsx)("span", {
820
- className: a,
821
- ...i
822
- }), t[5] = i, t[6] = a, t[7] = o) : o = t[7], o;
823
- };
824
- Ft.displayName = "MenuShortcut";
825
- //#endregion
826
- //#region src/components/ui/native-select.tsx
827
- var It = a("flex h-6 w-fit mb-1 items-center justify-between rounded-sm bg-background px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 cursor-pointer forced-color-adjust-none forced-colors:bg-[ButtonFace] forced-colors:text-[ButtonText] forced-colors:disabled:text-[GrayText]", {
828
- variants: { variant: {
829
- default: "shadow-xs-solid border border-input hover:shadow-sm-solid focus-visible:border-primary focus-visible:shadow-md-solid disabled:hover:shadow-xs-solid forced-colors:border-[ButtonText] forced-colors:disabled:border-[GrayText]",
830
- ghost: "opacity-70 hover:opacity-100 focus:opacity-100"
831
- } },
832
- defaultVariants: { variant: "default" }
833
- }), Lt = L.forwardRef((e, t) => {
834
- let i = (0, $.c)(12), a, o, s;
835
- i[0] === e ? (a = i[1], o = i[2], s = i[3]) : ({className: o, children: a, ...s} = e, i[0] = e, i[1] = a, i[2] = o, i[3] = s);
836
- let c;
837
- i[4] === Symbol.for("react.memo_cache_sentinel") ? (c = r.stopPropagation(), i[4] = c) : c = i[4];
838
- let l;
839
- i[5] === o ? l = i[6] : (l = n(It({}), o), i[5] = o, i[6] = l);
840
- let u;
841
- return i[7] !== a || i[8] !== s || i[9] !== t || i[10] !== l ? (u = /* @__PURE__ */ (0, R.jsx)("select", {
842
- ref: t,
843
- onClick: c,
844
- className: l,
845
- ...s,
846
- children: a
847
- }), i[7] = a, i[8] = s, i[9] = t, i[10] = l, i[11] = u) : u = i[11], u;
848
- });
849
- Lt.displayName = "NativeSelect";
850
- //#endregion
851
- //#region src/components/ui/select.tsx
852
- var Rt = st, zt = mt, Bt = w(dt), Vt = lt, Ht = L.forwardRef((e, t) => {
853
- let r = (0, $.c)(21), i, a, o, s, c, l;
854
- r[0] === e ? (i = r[1], a = r[2], o = r[3], s = r[4], c = r[5], l = r[6]) : ({className: a, children: i, onClear: o, variant: l, hideChevron: c, ...s} = e, r[0] = e, r[1] = i, r[2] = a, r[3] = o, r[4] = s, r[5] = c, r[6] = l);
855
- let u = c !== void 0 && c, d;
856
- r[7] !== a || r[8] !== l ? (d = n(It({ variant: l }), "mb-0", a), r[7] = a, r[8] = l, r[9] = d) : d = r[9];
857
- let f;
858
- r[10] !== u || r[11] !== o ? (f = o ? /* @__PURE__ */ (0, R.jsx)("span", {
859
- onPointerDown: (e) => {
860
- e.preventDefault(), e.stopPropagation(), o();
861
- },
862
- children: /* @__PURE__ */ (0, R.jsx)(F, { className: "h-4 w-4 opacity-50 hover:opacity-90" })
863
- }) : !u && /* @__PURE__ */ (0, R.jsx)(P, { className: "h-4 w-4 opacity-50" }), r[10] = u, r[11] = o, r[12] = f) : f = r[12];
864
- let p;
865
- r[13] === f ? p = r[14] : (p = /* @__PURE__ */ (0, R.jsx)(ut, {
866
- asChild: !0,
867
- children: f
868
- }), r[13] = f, r[14] = p);
869
- let m;
870
- return r[15] !== i || r[16] !== s || r[17] !== t || r[18] !== d || r[19] !== p ? (m = /* @__PURE__ */ (0, R.jsxs)(ct, {
871
- ref: t,
872
- className: d,
873
- ...s,
874
- children: [i, p]
875
- }), r[15] = i, r[16] = s, r[17] = t, r[18] = d, r[19] = p, r[20] = m) : m = r[20], m;
876
- });
877
- Ht.displayName = ct.displayName;
878
- var Ut = C(ft), Wt = L.forwardRef((e, t) => {
879
- let r = (0, $.c)(21), i, a, o, s;
880
- r[0] === e ? (i = r[1], a = r[2], o = r[3], s = r[4]) : ({className: a, children: i, position: s, ...o} = e, r[0] = e, r[1] = i, r[2] = a, r[3] = o, r[4] = s);
881
- let c = s === void 0 ? "popper" : s, l = c === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", u;
882
- r[5] !== a || r[6] !== l ? (u = n("max-h-[300px] relative z-50 min-w-32 overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", l, a), r[5] = a, r[6] = l, r[7] = u) : u = r[7];
883
- let d;
884
- r[8] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ (0, R.jsx)(yt, {
885
- className: "flex items-center justify-center h-[20px] bg-background text-muted-foreground cursor-default",
886
- children: /* @__PURE__ */ (0, R.jsx)(ne, { className: "h-4 w-4" })
887
- }), r[8] = d) : d = r[8];
888
- let f = c === "popper" && "h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)", p;
889
- r[9] === f ? p = r[10] : (p = n("p-1", f), r[9] = f, r[10] = p);
890
- let m;
891
- r[11] !== i || r[12] !== p ? (m = /* @__PURE__ */ (0, R.jsx)(pt, {
892
- className: p,
893
- children: i
894
- }), r[11] = i, r[12] = p, r[13] = m) : m = r[13];
895
- let h;
896
- r[14] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0, R.jsx)(bt, {
897
- className: "flex items-center justify-center h-[20px] bg-background text-muted-foreground cursor-default",
898
- children: /* @__PURE__ */ (0, R.jsx)(P, { className: "h-4 w-4 opacity-50" })
899
- }), r[14] = h) : h = r[14];
900
- let g;
901
- return r[15] !== c || r[16] !== o || r[17] !== t || r[18] !== u || r[19] !== m ? (g = /* @__PURE__ */ (0, R.jsx)(Bt, { children: /* @__PURE__ */ (0, R.jsx)(b, { children: /* @__PURE__ */ (0, R.jsxs)(Ut, {
902
- ref: t,
903
- className: u,
904
- position: c,
905
- ...o,
906
- children: [
907
- d,
908
- m,
909
- h
910
- ]
911
- }) }) }), r[15] = c, r[16] = o, r[17] = t, r[18] = u, r[19] = m, r[20] = g) : g = r[20], g;
912
- });
913
- Wt.displayName = ft.displayName;
914
- var Gt = L.forwardRef((e, t) => {
915
- let r = (0, $.c)(9), i, a;
916
- r[0] === e ? (i = r[1], a = r[2]) : ({className: i, ...a} = e, r[0] = e, r[1] = i, r[2] = a);
917
- let o;
918
- r[3] === i ? o = r[4] : (o = n("px-2 py-1.5 text-sm font-semibold", i), r[3] = i, r[4] = o);
919
- let s;
920
- return r[5] !== a || r[6] !== t || r[7] !== o ? (s = /* @__PURE__ */ (0, R.jsx)(ht, {
921
- ref: t,
922
- className: o,
923
- ...a
924
- }), r[5] = a, r[6] = t, r[7] = o, r[8] = s) : s = r[8], s;
925
- });
926
- Gt.displayName = ht.displayName;
927
- var Kt = L.forwardRef((e, t) => {
928
- let r = (0, $.c)(17), i, a, o, s;
929
- r[0] === e ? (i = r[1], a = r[2], o = r[3], s = r[4]) : ({className: a, children: i, subtitle: s, ...o} = e, r[0] = e, r[1] = i, r[2] = a, r[3] = o, r[4] = s);
930
- let c;
931
- r[5] === a ? c = r[6] : (c = n("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-hidden data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground forced-colors:data-[highlighted]:bg-[Highlight] forced-colors:data-[highlighted]:text-[HighlightText]", kt, a), r[5] = a, r[6] = c);
932
- let l;
933
- r[7] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ (0, R.jsx)("span", {
934
- className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center",
935
- children: /* @__PURE__ */ (0, R.jsx)(vt, { children: /* @__PURE__ */ (0, R.jsx)(g, { className: "h-3 w-3" }) })
936
- }), r[7] = l) : l = r[7];
937
- let u = typeof i != "string" || void 0, d;
938
- r[8] !== i || r[9] !== u ? (d = /* @__PURE__ */ (0, R.jsx)(_t, {
939
- asChild: u,
940
- className: "flex w-full flex-1",
941
- children: i
942
- }), r[8] = i, r[9] = u, r[10] = d) : d = r[10];
943
- let f;
944
- return r[11] !== o || r[12] !== t || r[13] !== s || r[14] !== c || r[15] !== d ? (f = /* @__PURE__ */ (0, R.jsxs)(gt, {
945
- ref: t,
946
- className: c,
947
- ...o,
948
- children: [
949
- l,
950
- d,
951
- s
952
- ]
953
- }), r[11] = o, r[12] = t, r[13] = s, r[14] = c, r[15] = d, r[16] = f) : f = r[16], f;
954
- });
955
- Kt.displayName = gt.displayName;
956
- var qt = L.forwardRef((e, t) => {
957
- let r = (0, $.c)(9), i, a;
958
- r[0] === e ? (i = r[1], a = r[2]) : ({className: i, ...a} = e, r[0] = e, r[1] = i, r[2] = a);
959
- let o;
960
- r[3] === i ? o = r[4] : (o = n("-mx-1 my-1 h-px bg-muted", i), r[3] = i, r[4] = o);
961
- let s;
962
- return r[5] !== a || r[6] !== t || r[7] !== o ? (s = /* @__PURE__ */ (0, R.jsx)(xt, {
963
- ref: t,
964
- className: o,
965
- ...a
966
- }), r[5] = a, r[6] = t, r[7] = o, r[8] = s) : s = r[8], s;
967
- });
968
- qt.displayName = xt.displayName;
969
- //#endregion
970
- export { F as A, Ct as C, re as D, H as E, P as M, V as O, St as S, ct as T, Mt as _, Gt as a, Et as b, Vt as c, kt as d, Ft as f, Nt as g, At as h, Kt as i, ne as j, z as k, Lt as l, jt as m, Wt as n, qt as o, Dt as p, zt as r, Ht as s, Rt as t, It as u, Pt as v, ut as w, wt as x, Ot as y };