db-studio 2.0.0 → 2.1.0

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 (161) hide show
  1. package/README.md +1 -1
  2. package/dist/index.js +75 -75
  3. package/dist/index.js.map +1 -1
  4. package/dist/web-dist/assets/{_pathlessLayout-BQk5gSGn.js → _pathlessLayout-CUDS1e28.js} +1 -1
  5. package/dist/web-dist/assets/_pathlessLayout-WZkezfN7.js +2 -0
  6. package/dist/web-dist/assets/{_queryId-Buy3oA5p.js → _queryId-CEJb62Vl.js} +1 -1
  7. package/dist/web-dist/assets/{_table-CE0TjrEn.js → _table-6SZEx92j.js} +1 -1
  8. package/dist/web-dist/assets/_table-BUNHOVIK.js +1 -0
  9. package/dist/web-dist/assets/_table-CwyP_2EP.js +1 -0
  10. package/dist/web-dist/assets/{abap-B7CMCXo3.js → abap-B-HzHdT_.js} +1 -1
  11. package/dist/web-dist/assets/{apex-D6pniLV0.js → apex-t5VcK3BF.js} +1 -1
  12. package/dist/web-dist/assets/{azcli-DayXln6N.js → azcli-Ce3iuV2p.js} +1 -1
  13. package/dist/web-dist/assets/{badge-BIuMcm7O.js → badge-COF6gx-2.js} +1 -1
  14. package/dist/web-dist/assets/{bat-knBi4IWo.js → bat-bOBZcLbK.js} +1 -1
  15. package/dist/web-dist/assets/{bicep-CqySwd8I.js → bicep-TSicgsnM.js} +1 -1
  16. package/dist/web-dist/assets/{browser-DQEdJbyz.js → browser-B-fV6CZb.js} +1 -1
  17. package/dist/web-dist/assets/{bundle-mjs-qYDTi1yn.js → bundle-mjs-CZwf2xtr.js} +1 -1
  18. package/dist/web-dist/assets/{cameligo-D1w-uj2C.js → cameligo-D-9xpPXV.js} +1 -1
  19. package/dist/web-dist/assets/{chat-sidebar-CApWlRXq.js → chat-sidebar-DwzCElBd.js} +5 -5
  20. package/dist/web-dist/assets/{clojure-D7bkK2B8.js → clojure-9X3x3csE.js} +1 -1
  21. package/dist/web-dist/assets/{code-editor-Dwq67W-h.js → code-editor-tPwHd3zF.js} +4 -4
  22. package/dist/web-dist/assets/{coffee-Dpij46Wn.js → coffee-anOch8Z-.js} +1 -1
  23. package/dist/web-dist/assets/{connect-B0x9CNlf.js → connect-l3LjAClZ.js} +1 -1
  24. package/dist/web-dist/assets/{constants-BFCsZ8ll.js → constants-CKAehpPm.js} +3 -3
  25. package/dist/web-dist/assets/{cpp-DWDORc6B.js → cpp-oW293AoF.js} +1 -1
  26. package/dist/web-dist/assets/{csharp-FpOMvD_o.js → csharp-BOXMgm5k.js} +1 -1
  27. package/dist/web-dist/assets/{csp-4WiITR2R.js → csp-D67JhNKT.js} +1 -1
  28. package/dist/web-dist/assets/{css-DMOWqvgH.js → css-Bk6H7_K_.js} +1 -1
  29. package/dist/web-dist/assets/{cssMode-DHL98brF.js → cssMode-G6latsS7.js} +1 -1
  30. package/dist/web-dist/assets/{cypher-Byev8hZE.js → cypher-DB0LBjic.js} +1 -1
  31. package/dist/web-dist/assets/{dart--T4f3SxI.js → dart-CS3MbwLP.js} +1 -1
  32. package/dist/web-dist/assets/{database.store-BAbH5Geu.js → database.store-BuqVJMY6.js} +13 -13
  33. package/dist/web-dist/assets/{dist-C_AEsM_Y.js → dist-Bz0qAN0x.js} +1 -1
  34. package/dist/web-dist/assets/{dist-D4lNl-zm.js → dist-Cf0L32Jd.js} +1 -1
  35. package/dist/web-dist/assets/{dockerfile-CTL_qQGw.js → dockerfile-BGz3qsmk.js} +1 -1
  36. package/dist/web-dist/assets/{ecl-D2-VZ5jm.js → ecl-lt3qcklx.js} +1 -1
  37. package/dist/web-dist/assets/{editor.api-DaW7cLxE.js → editor.api-BTIrAcm5.js} +1 -1
  38. package/dist/web-dist/assets/{elixir-C__1cTub.js → elixir-cMyUafed.js} +1 -1
  39. package/dist/web-dist/assets/{esm-DHRCgDAS.js → esm-B-4Q6MuQ.js} +1 -1
  40. package/dist/web-dist/assets/{flow9-U08FhG_o.js → flow9-BI9V6TuS.js} +1 -1
  41. package/dist/web-dist/assets/{format-cell-value-BDXXdObX.js → format-cell-value-CgUtYv8B.js} +1 -1
  42. package/dist/web-dist/assets/{freemarker2-EL1xRRz-.js → freemarker2-mnCFA3xV.js} +1 -1
  43. package/dist/web-dist/assets/{fsharp-BYeUdvUi.js → fsharp-I1kqnt0E.js} +1 -1
  44. package/dist/web-dist/assets/{go-D7V_ae37.js → go-Cg4qMFVj.js} +1 -1
  45. package/dist/web-dist/assets/{graphql-C-zVsbUk.js → graphql-CvtHcP49.js} +1 -1
  46. package/dist/web-dist/assets/{handlebars-BgZpkJkF.js → handlebars-BUcE6Uyy.js} +1 -1
  47. package/dist/web-dist/assets/{hcl-B7_QCGTQ.js → hcl-BkvCdKNu.js} +1 -1
  48. package/dist/web-dist/assets/highlighted-body-OFNGDK62-t8UIAZOZ.js +1 -0
  49. package/dist/web-dist/assets/{html-e4Xrzf8r.js → html-BBqcfykD.js} +1 -1
  50. package/dist/web-dist/assets/{htmlMode-B6WabTqV.js → htmlMode-D8je66Rk.js} +1 -1
  51. package/dist/web-dist/assets/icons-DxFtdMXW.js +1 -0
  52. package/dist/web-dist/assets/index-QVi4Lb9U.css +2 -0
  53. package/dist/web-dist/assets/index-WFVurGCI.js +34 -0
  54. package/dist/web-dist/assets/{indexes-BBz0Je_a.js → indexes-C3Qddb5L.js} +1 -1
  55. package/dist/web-dist/assets/{ini-B8RMyZP2.js → ini-CPc8BCWu.js} +1 -1
  56. package/dist/web-dist/assets/{java-B0bzjGsf.js → java-C9Yie4SH.js} +1 -1
  57. package/dist/web-dist/assets/{javascript-BSAFurIc.js → javascript-CuGq5ydO.js} +1 -1
  58. package/dist/web-dist/assets/{json-editor-DoEopjNh.js → json-editor-Dc1E8Fc-.js} +1 -1
  59. package/dist/web-dist/assets/{jsonMode-CMXGrtoZ.js → jsonMode-BgdTmYik.js} +1 -1
  60. package/dist/web-dist/assets/{julia-Bg58EZ4Y.js → julia--qJGRfN8.js} +1 -1
  61. package/dist/web-dist/assets/{keys-6E3ilH7R.js → keys-Bs0DRbCB.js} +1 -1
  62. package/dist/web-dist/assets/{kotlin-DW9Z0gYb.js → kotlin-C3MSe-0N.js} +1 -1
  63. package/dist/web-dist/assets/{label-Dcwj4aRe.js → label-DzHJlGAx.js} +1 -1
  64. package/dist/web-dist/assets/{less-Bx9gqQ4s.js → less-DOBYgWSY.js} +1 -1
  65. package/dist/web-dist/assets/{lexon-CSuDDXgE.js → lexon-Djd2rGvJ.js} +1 -1
  66. package/dist/web-dist/assets/{liquid-BmNDruwv.js → liquid-DXfHmR66.js} +1 -1
  67. package/dist/web-dist/assets/{logs-BgfXuAGG.js → logs-BortjBc-.js} +1 -1
  68. package/dist/web-dist/assets/{lspLanguageFeatures-CvWt81ki.js → lspLanguageFeatures-C7-iyD6G.js} +1 -1
  69. package/dist/web-dist/assets/{lua-CyCE05f5.js → lua-Ck8vNcPw.js} +1 -1
  70. package/dist/web-dist/assets/{m3-B4TowLdg.js → m3-a6Kl4TV0.js} +1 -1
  71. package/dist/web-dist/assets/{markdown-DUAXYKYX.js → markdown-DkcRBwO0.js} +1 -1
  72. package/dist/web-dist/assets/{mdx-DWKx4rlR.js → mdx-QI5o45qz.js} +1 -1
  73. package/dist/web-dist/assets/{mermaid-GHXKKRXX-Ci1jaQj_.js → mermaid-GHXKKRXX-D35eppUc.js} +1 -1
  74. package/dist/web-dist/assets/{middleware-YebY3a0i.js → middleware-CXk7SlTF.js} +1 -1
  75. package/dist/web-dist/assets/{mips-B8pYMMky.js → mips-Cc1YVI2p.js} +1 -1
  76. package/dist/web-dist/assets/{module-BfdI0fnl.js → module-D_kjbMCc.js} +1 -1
  77. package/dist/web-dist/assets/{monaco-theme-C8nJMjlg.js → monaco-theme-C2k_taVU.js} +4 -4
  78. package/dist/web-dist/assets/{msdax-Dl7lqaqA.js → msdax-Bh41xUoQ.js} +1 -1
  79. package/dist/web-dist/assets/{mysql-CxF1irIT.js → mysql-BZTZMxPa.js} +1 -1
  80. package/dist/web-dist/assets/{objective-c-nxQNwVWR.js → objective-c-CxZIMOHQ.js} +1 -1
  81. package/dist/web-dist/assets/{overlay.store-D93IGU3a.js → overlay.store-DsUdwZjE.js} +1 -1
  82. package/dist/web-dist/assets/{pascal-CJDb1n8F.js → pascal-I-WmLkmD.js} +1 -1
  83. package/dist/web-dist/assets/{pascaligo-DNMesjCc.js → pascaligo-DEZ-6bwf.js} +1 -1
  84. package/dist/web-dist/assets/{perl-Ct14C4yC.js → perl-DfeHQJxJ.js} +1 -1
  85. package/dist/web-dist/assets/{personal-preferences.store-BXE0mRKp.js → personal-preferences.store-DXSnKmVN.js} +1 -1
  86. package/dist/web-dist/assets/{pgsql-B2EenuF0.js → pgsql-OdOoQYPW.js} +1 -1
  87. package/dist/web-dist/assets/{php-D953oiSq.js → php-CF1bUutw.js} +1 -1
  88. package/dist/web-dist/assets/{pla-DTXlQw1d.js → pla-BHZr0GrY.js} +1 -1
  89. package/dist/web-dist/assets/{postiats-JN8Ouz04.js → postiats-BSB6a63H.js} +1 -1
  90. package/dist/web-dist/assets/{powerquery-5V8-uvAS.js → powerquery-Bu0p84Ye.js} +1 -1
  91. package/dist/web-dist/assets/{powershell-CB8eXyFq.js → powershell-Dcq3YM6T.js} +1 -1
  92. package/dist/web-dist/assets/{preload-helper-B3GI5Aqe.js → preload-helper-DF7hIgef.js} +1 -1
  93. package/dist/web-dist/assets/{protobuf-B9TJJ9C4.js → protobuf-CsWrQxqX.js} +1 -1
  94. package/dist/web-dist/assets/{pug-Bm8fNuV-.js → pug-DLQiv3Bp.js} +1 -1
  95. package/dist/web-dist/assets/{python-C5yAejbi.js → python-BvKEpyP9.js} +1 -1
  96. package/dist/web-dist/assets/{qsharp-R8gbdykE.js → qsharp-D8nrRUNu.js} +1 -1
  97. package/dist/web-dist/assets/{queries.store-Qbtkt7ze.js → queries.store-BaeyNA64.js} +1 -1
  98. package/dist/web-dist/assets/query-runner-f473QQSD.js +17 -0
  99. package/dist/web-dist/assets/{r-M-_jtR31.js → r-xhyKpGTk.js} +1 -1
  100. package/dist/web-dist/assets/{radix-ui-41WpuKNR.js → radix-ui-CxCv--D1.js} +2 -2
  101. package/dist/web-dist/assets/{razor-C1QqRako.js → razor-Ceb9S1Rz.js} +1 -1
  102. package/dist/web-dist/assets/react-DEQ0BgTL.js +1 -0
  103. package/dist/web-dist/assets/{react-dom-BmawA5F6.js → react-dom-ITw3Lqwx.js} +1 -1
  104. package/dist/web-dist/assets/{redis-Se45CWCe.js → redis-BnpkEvbr.js} +1 -1
  105. package/dist/web-dist/assets/redis-value-DMk0-Zuc.js +1 -0
  106. package/dist/web-dist/assets/{redshift-6LxiBjWf.js → redshift-BpxVXjAI.js} +1 -1
  107. package/dist/web-dist/assets/{restructuredtext-DQZZ8qkw.js → restructuredtext-5afXtW7D.js} +1 -1
  108. package/dist/web-dist/assets/{rolldown-runtime-CpVMLIgb.js → rolldown-runtime-fzu9RN21.js} +1 -1
  109. package/dist/web-dist/assets/{ruby-CCIHgGuA.js → ruby-CHaoWUHT.js} +1 -1
  110. package/dist/web-dist/assets/{runner-DOkX5y17.js → runner-NsYjzIZs.js} +1 -1
  111. package/dist/web-dist/assets/{rust-DE79jE85.js → rust-Bw0WVsLy.js} +1 -1
  112. package/dist/web-dist/assets/{sb-vTusoyll.js → sb-CEjXmIyG.js} +1 -1
  113. package/dist/web-dist/assets/{scala-BfDNOQ4o.js → scala-BuaCSaU6.js} +1 -1
  114. package/dist/web-dist/assets/schema-CE1yGygf.js +1 -0
  115. package/dist/web-dist/assets/{schema-CgNnxiB7.js → schema-rxLBue8Q.js} +1 -1
  116. package/dist/web-dist/assets/{scheme-07Nz-Ikg.js → scheme-DIKzlmFG.js} +1 -1
  117. package/dist/web-dist/assets/{scss-C2T-BIyo.js → scss-C2_UsWzg.js} +1 -1
  118. package/dist/web-dist/assets/{select-DzeVPveq.js → select-C-nrz7Tx.js} +1 -1
  119. package/dist/web-dist/assets/{separator-3IoeVup6.js → separator-DnB61XAO.js} +1 -1
  120. package/dist/web-dist/assets/{sheet-sidebar-Bne7asEZ.js → sheet-sidebar-BGxJGRbd.js} +1 -1
  121. package/dist/web-dist/assets/{shell-CYk99G96.js → shell-2aEL2EVH.js} +1 -1
  122. package/dist/web-dist/assets/{solidity-DZfw6XST.js → solidity-D-5XfYE1.js} +1 -1
  123. package/dist/web-dist/assets/{sophia-9ELY8Wd6.js → sophia-s4MFSvUF.js} +1 -1
  124. package/dist/web-dist/assets/{sparql-DBCoTLhO.js → sparql-Dkv46wS5.js} +1 -1
  125. package/dist/web-dist/assets/{spinner-Z77kD_hS.js → spinner-CNnB5r0X.js} +1 -1
  126. package/dist/web-dist/assets/{sql-DSSHZrVP.js → sql-Dz9Xhs8s.js} +1 -1
  127. package/dist/web-dist/assets/{st-9goatbhG.js → st-Cbo0XVmr.js} +1 -1
  128. package/dist/web-dist/assets/{swift-C8IWUoth.js → swift-B66X97nW.js} +1 -1
  129. package/dist/web-dist/assets/{systemverilog-DFmMGPsp.js → systemverilog-gGKga8Gf.js} +1 -1
  130. package/dist/web-dist/assets/{table-Cwbi0FDw.js → table-C8WK3uAc.js} +1 -1
  131. package/dist/web-dist/assets/tables-D98Kbmcb.js +16 -0
  132. package/dist/web-dist/assets/{tanstack-BE6ru2gB.js → tanstack-RwHFfmqj.js} +4 -4
  133. package/dist/web-dist/assets/{tcl-9sp6ieFk.js → tcl-BtbeJsUN.js} +1 -1
  134. package/dist/web-dist/assets/{tsMode-BjCfzjtF.js → tsMode-BgtcNcpl.js} +1 -1
  135. package/dist/web-dist/assets/{twig-PTQx-ucO.js → twig-0_nXiuYs.js} +1 -1
  136. package/dist/web-dist/assets/{typescript-BGXEvFAl.js → typescript-Cy_CzC_-.js} +1 -1
  137. package/dist/web-dist/assets/{typespec-k1Hrq-4g.js → typespec-DBO6_WMJ.js} +1 -1
  138. package/dist/web-dist/assets/{use-database-engine-CKCp55rb.js → use-database-engine-DZZj7-4J.js} +1 -1
  139. package/dist/web-dist/assets/{use-theme-CLKCtULg.js → use-theme-DBhPknw6.js} +1 -1
  140. package/dist/web-dist/assets/{utils-Cr2_fSDl.js → utils-EJLOIroS.js} +1 -1
  141. package/dist/web-dist/assets/{vb-BBuEtOk5.js → vb-DFJjBsW2.js} +1 -1
  142. package/dist/web-dist/assets/{visualizer-XPaDmMrd.js → visualizer-CgYlDJ_-.js} +1 -1
  143. package/dist/web-dist/assets/{vscode-jtB6jKBB.js → vscode-wuSgCuZI.js} +1 -1
  144. package/dist/web-dist/assets/{wgsl-MO-DpoEc.js → wgsl-U3RBM2M0.js} +1 -1
  145. package/dist/web-dist/assets/{workers-7JruDoqH.js → workers-ClRH6A2w.js} +1 -1
  146. package/dist/web-dist/assets/{xml-C0nHIB7q.js → xml-D11j3J2_.js} +1 -1
  147. package/dist/web-dist/assets/{yaml-CN9StMra.js → yaml-D7Z_4mnx.js} +1 -1
  148. package/dist/web-dist/index.html +31 -31
  149. package/package.json +2 -3
  150. package/dist/web-dist/assets/_pathlessLayout-WF7WipqP.js +0 -2
  151. package/dist/web-dist/assets/_table-BnMBHUzk.js +0 -1
  152. package/dist/web-dist/assets/_table-CQ2NX0I8.js +0 -1
  153. package/dist/web-dist/assets/highlighted-body-OFNGDK62-D8XE2uMh.js +0 -1
  154. package/dist/web-dist/assets/icons-D72QQyd5.js +0 -1
  155. package/dist/web-dist/assets/index-DlECfzV9.js +0 -34
  156. package/dist/web-dist/assets/index-mbFBVmHb.css +0 -2
  157. package/dist/web-dist/assets/query-runner-DwuQkpxh.js +0 -17
  158. package/dist/web-dist/assets/react-46S5qMHL.js +0 -1
  159. package/dist/web-dist/assets/redis-value-DG_0UKZy.js +0 -1
  160. package/dist/web-dist/assets/schema-B8WxzFU1.js +0 -1
  161. package/dist/web-dist/assets/tables-BPh2zM7Q.js +0 -13
@@ -5,37 +5,37 @@
5
5
  <link rel="icon" type="image/png" href="/favicon.png" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>db-studio</title>
8
- <script type="module" crossorigin src="/assets/index-DlECfzV9.js"></script>
9
- <link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-CpVMLIgb.js">
10
- <link rel="modulepreload" crossorigin href="/assets/icons-D72QQyd5.js">
11
- <link rel="modulepreload" crossorigin href="/assets/radix-ui-41WpuKNR.js">
12
- <link rel="modulepreload" crossorigin href="/assets/tanstack-BE6ru2gB.js">
13
- <link rel="modulepreload" crossorigin href="/assets/react-dom-BmawA5F6.js">
14
- <link rel="modulepreload" crossorigin href="/assets/dist-D4lNl-zm.js">
15
- <link rel="modulepreload" crossorigin href="/assets/bundle-mjs-qYDTi1yn.js">
16
- <link rel="modulepreload" crossorigin href="/assets/utils-Cr2_fSDl.js">
17
- <link rel="modulepreload" crossorigin href="/assets/spinner-Z77kD_hS.js">
18
- <link rel="modulepreload" crossorigin href="/assets/react-46S5qMHL.js">
19
- <link rel="modulepreload" crossorigin href="/assets/overlay.store-D93IGU3a.js">
20
- <link rel="modulepreload" crossorigin href="/assets/dist-C_AEsM_Y.js">
21
- <link rel="modulepreload" crossorigin href="/assets/label-Dcwj4aRe.js">
22
- <link rel="modulepreload" crossorigin href="/assets/sheet-sidebar-Bne7asEZ.js">
23
- <link rel="modulepreload" crossorigin href="/assets/preload-helper-B3GI5Aqe.js">
24
- <link rel="modulepreload" crossorigin href="/assets/database.store-BAbH5Geu.js">
25
- <link rel="modulepreload" crossorigin href="/assets/constants-BFCsZ8ll.js">
26
- <link rel="modulepreload" crossorigin href="/assets/badge-BIuMcm7O.js">
27
- <link rel="modulepreload" crossorigin href="/assets/use-database-engine-CKCp55rb.js">
28
- <link rel="modulepreload" crossorigin href="/assets/keys-6E3ilH7R.js">
29
- <link rel="modulepreload" crossorigin href="/assets/format-cell-value-BDXXdObX.js">
30
- <link rel="modulepreload" crossorigin href="/assets/schema-B8WxzFU1.js">
31
- <link rel="modulepreload" crossorigin href="/assets/select-DzeVPveq.js">
32
- <link rel="modulepreload" crossorigin href="/assets/separator-3IoeVup6.js">
33
- <link rel="modulepreload" crossorigin href="/assets/middleware-YebY3a0i.js">
34
- <link rel="modulepreload" crossorigin href="/assets/personal-preferences.store-BXE0mRKp.js">
35
- <link rel="modulepreload" crossorigin href="/assets/vscode-jtB6jKBB.js">
36
- <link rel="modulepreload" crossorigin href="/assets/use-theme-CLKCtULg.js">
37
- <link rel="modulepreload" crossorigin href="/assets/tables-BPh2zM7Q.js">
38
- <link rel="stylesheet" crossorigin href="/assets/index-mbFBVmHb.css">
8
+ <script type="module" crossorigin src="/assets/index-WFVurGCI.js"></script>
9
+ <link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-fzu9RN21.js">
10
+ <link rel="modulepreload" crossorigin href="/assets/icons-DxFtdMXW.js">
11
+ <link rel="modulepreload" crossorigin href="/assets/radix-ui-CxCv--D1.js">
12
+ <link rel="modulepreload" crossorigin href="/assets/tanstack-RwHFfmqj.js">
13
+ <link rel="modulepreload" crossorigin href="/assets/react-dom-ITw3Lqwx.js">
14
+ <link rel="modulepreload" crossorigin href="/assets/dist-Cf0L32Jd.js">
15
+ <link rel="modulepreload" crossorigin href="/assets/bundle-mjs-CZwf2xtr.js">
16
+ <link rel="modulepreload" crossorigin href="/assets/utils-EJLOIroS.js">
17
+ <link rel="modulepreload" crossorigin href="/assets/spinner-CNnB5r0X.js">
18
+ <link rel="modulepreload" crossorigin href="/assets/react-DEQ0BgTL.js">
19
+ <link rel="modulepreload" crossorigin href="/assets/overlay.store-DsUdwZjE.js">
20
+ <link rel="modulepreload" crossorigin href="/assets/dist-Bz0qAN0x.js">
21
+ <link rel="modulepreload" crossorigin href="/assets/label-DzHJlGAx.js">
22
+ <link rel="modulepreload" crossorigin href="/assets/sheet-sidebar-BGxJGRbd.js">
23
+ <link rel="modulepreload" crossorigin href="/assets/preload-helper-DF7hIgef.js">
24
+ <link rel="modulepreload" crossorigin href="/assets/database.store-BuqVJMY6.js">
25
+ <link rel="modulepreload" crossorigin href="/assets/constants-CKAehpPm.js">
26
+ <link rel="modulepreload" crossorigin href="/assets/badge-COF6gx-2.js">
27
+ <link rel="modulepreload" crossorigin href="/assets/use-database-engine-DZZj7-4J.js">
28
+ <link rel="modulepreload" crossorigin href="/assets/keys-Bs0DRbCB.js">
29
+ <link rel="modulepreload" crossorigin href="/assets/format-cell-value-CgUtYv8B.js">
30
+ <link rel="modulepreload" crossorigin href="/assets/schema-CE1yGygf.js">
31
+ <link rel="modulepreload" crossorigin href="/assets/select-C-nrz7Tx.js">
32
+ <link rel="modulepreload" crossorigin href="/assets/separator-DnB61XAO.js">
33
+ <link rel="modulepreload" crossorigin href="/assets/middleware-CXk7SlTF.js">
34
+ <link rel="modulepreload" crossorigin href="/assets/personal-preferences.store-DXSnKmVN.js">
35
+ <link rel="modulepreload" crossorigin href="/assets/vscode-wuSgCuZI.js">
36
+ <link rel="modulepreload" crossorigin href="/assets/use-theme-DBhPknw6.js">
37
+ <link rel="modulepreload" crossorigin href="/assets/tables-D98Kbmcb.js">
38
+ <link rel="stylesheet" crossorigin href="/assets/index-QVi4Lb9U.css">
39
39
  </head>
40
40
  <body>
41
41
  <div id="root"></div>
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "db-studio",
3
3
  "type": "module",
4
- "version": "2.0.0",
5
- "description": "Modern database client for PostgreSQL with spreadsheet-like grid, AI-powered SQL assistance, ER diagrams, fast data browsing and editing. CLI tool, upcoming desktop & web versions.",
4
+ "version": "2.1.0",
5
+ "description": "Every database. One studio. Browse tables, edit records, design schemas, and run queries across SQL, document, and key-value databases. Free and open source.",
6
6
  "keywords": [
7
7
  "database client",
8
8
  "database gui",
@@ -16,7 +16,6 @@
16
16
  "postgresql",
17
17
  "postgresql client",
18
18
  "postgresql gui",
19
- "pgadmin alternative",
20
19
  "mysql",
21
20
  "mysql client",
22
21
  "ai sql",
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chat-sidebar-CApWlRXq.js","assets/rolldown-runtime-CpVMLIgb.js","assets/icons-D72QQyd5.js","assets/radix-ui-41WpuKNR.js","assets/bundle-mjs-qYDTi1yn.js","assets/utils-Cr2_fSDl.js","assets/overlay.store-D93IGU3a.js","assets/react-46S5qMHL.js","assets/sheet-sidebar-Bne7asEZ.js","assets/label-Dcwj4aRe.js","assets/constants-BFCsZ8ll.js","assets/database.store-BAbH5Geu.js","assets/preload-helper-B3GI5Aqe.js","assets/separator-3IoeVup6.js","assets/index-DlECfzV9.js","assets/tanstack-BE6ru2gB.js","assets/react-dom-BmawA5F6.js","assets/dist-D4lNl-zm.js","assets/spinner-Z77kD_hS.js","assets/dist-C_AEsM_Y.js","assets/schema-B8WxzFU1.js","assets/badge-BIuMcm7O.js","assets/use-database-engine-CKCp55rb.js","assets/keys-6E3ilH7R.js","assets/format-cell-value-BDXXdObX.js","assets/tables-BPh2zM7Q.js","assets/select-DzeVPveq.js","assets/middleware-YebY3a0i.js","assets/personal-preferences.store-BXE0mRKp.js","assets/vscode-jtB6jKBB.js","assets/use-theme-CLKCtULg.js","assets/index-mbFBVmHb.css"])))=>i.map(i=>d[i]);
2
- import{n as cs,r as ds}from"./rolldown-runtime-CpVMLIgb.js";import{_ as oe,b as he,f as us,g as He,n as hs,s as J,v as te,w as ms}from"./tanstack-BE6ru2gB.js";import{$ as xs,A as fs,Ct as bs,E as ee,Et as ps,G as gs,H as vs,It as js,N as ys,Ot as Cs,P as Ve,Q as Ss,R as Ns,T as qe,X as ws,Z as Ue,_ as ks,a as Ts,b as Ne,bt as Fe,ct as Es,f as _s,g as Ds,k as we,m as Rs,mt as Is,nt as Os,p as Fs,r as As,rt as Ls,s as ke,tt as Ms,ut as zs,v as Ps,x as $s}from"./icons-D72QQyd5.js";import{a as Ks,i as Qs,jt as Bs,n as Hs,o as Vs,r as qs,t as Us}from"./radix-ui-41WpuKNR.js";import{n as z}from"./dist-D4lNl-zm.js";import{t as T}from"./utils-Cr2_fSDl.js";import{t as Ws}from"./spinner-Z77kD_hS.js";import{a as Te,c as Ee,n as S,o as _e,t as Z}from"./overlay.store-D93IGU3a.js";import{n as L}from"./dist-C_AEsM_Y.js";import{C as Gs,G as q,J as U,K as W,S as Ys,W as G,Y,c as We,d as Ce,f as Ge,h as Ye,l as Xs,m as Xe,n as Js,p as Je,q as X,s as Ze,u as R,v as De}from"./schema-B8WxzFU1.js";import{n as M,t as Ae}from"./label-Dcwj4aRe.js";import{i as Zs,n as et,s as st,t as tt}from"./sheet-sidebar-Bne7asEZ.js";import{c as at,d as se,l as rt,r as nt,s as es,u as lt}from"./tables-BPh2zM7Q.js";import{B as it,r as ot,t as I}from"./constants-BFCsZ8ll.js";import{i as ct,t as ss}from"./database.store-BAbH5Geu.js";import{t as dt}from"./preload-helper-B3GI5Aqe.js";import{c as ut,d as ht,f as mt,l as xt,o as ft,p as bt,s as pt,t as gt,u as vt}from"./badge-BIuMcm7O.js";import{a as ae,i as re,n as ne,r as P,t as le}from"./select-DzeVPveq.js";import{t as Q}from"./use-database-engine-CKCp55rb.js";import{t as jt}from"./keys-6E3ilH7R.js";import{r as yt,t as Ct}from"./separator-3IoeVup6.js";import{r as Re}from"./personal-preferences.store-BXE0mRKp.js";import{t as St}from"./use-theme-CLKCtULg.js";import{S as Nt,a as wt,b as kt,c as Tt,g as Et,h as _t,l as Dt,p as Rt,u as It,v as H,x as V,y as Le}from"./index-DlECfzV9.js";import{t as me}from"./queries.store-Qbtkt7ze.js";import{i as Ot,n as je,o as Ft,r as At,s as Lt}from"./redis-value-DG_0UKZy.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};s.SENTRY_RELEASE={id:"db-studio@2.0.0"};var t=new s.Error().stack;t&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[t]="fb88fa8d-d095-48bc-86d6-0f9c741db753",s._sentryDebugIdIdentifier="sentry-dbid-fb88fa8d-d095-48bc-86d6-0f9c741db753")}catch{}})();var Me={AUTHOR:"Hüsam 🥑 <husam@ql3.dev>",AUTHOR_NAME:"Hüsam",AUTHOR_AVATAR:"/avocado.png",AUTHOR_USERNAME:"husamql3",AUTHOR_GITHUB_LINK:"https://github.com/husamql3",SITE_DESCRIPTION:"The modern pgAdmin alternative that works with every database.",SITE_KEYWORDS:["pgadmin alternative","database client","database gui","database browser","sql editor","postgresql client","mysql client","table editor","ai sql","er diagram"],SITE_TITLE:"db-studio",SITE_NAME:"dbstudio.sh",SITE_URL:"https://dbstudio.sh",SITE_X_LINK:"https://x.com/dbstudio_sh",SITE_GITHUB_LINK:"https://github.com/husamql3/db-studio",SITE_GITHUB_NEW_ISSUE_LINK:"https://github.com/husamql3/db-studio/issues/new/choose",SITE_DOCS_LINK:"https://dbstudio.sh/docs",SITE_CHANGELOG_LINK:"https://dbstudio.sh/changelog",SITE_ROADMAP_LINK:"https://dbstudio.sh/roadmap",SITE_IMAGE:"https://dbstudio.sh/og-image.png",SITE_IMAGE_WIDTH:"1200",SITE_IMAGE_HEIGHT:"630",SITE_IMAGE_ALT:"dbstudio.sh – Modern database management studio",SITE_COLOR:"#1447e6"},l=ds(js(),1),Mt=({enabled:s=!0}={})=>{const{data:t,isLoading:a,error:r,refetch:n}=ms({queryKey:jt.rateLimit(),queryFn:async()=>(await it()).data,enabled:s});return{rateLimit:t,isLoadingRateLimit:a,errorRateLimit:r,refetchRateLimit:n}},ts={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ze=l.createContext&&l.createContext(ts),zt=["attr","size","title"];function Pt(s,t){if(s==null)return{};var a,r,n=$t(s,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);for(r=0;r<o.length;r++)a=o[r],t.indexOf(a)===-1&&{}.propertyIsEnumerable.call(s,a)&&(n[a]=s[a])}return n}function $t(s,t){if(s==null)return{};var a={};for(var r in s)if({}.hasOwnProperty.call(s,r)){if(t.indexOf(r)!==-1)continue;a[r]=s[r]}return a}function de(){return de=Object.assign?Object.assign.bind():function(s){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(s[r]=a[r])}return s},de.apply(null,arguments)}function Pe(s,t){var a=Object.keys(s);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(s);t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(s,n).enumerable})),a.push.apply(a,r)}return a}function ue(s){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?Pe(Object(a),!0).forEach(function(r){Kt(s,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(a)):Pe(Object(a)).forEach(function(r){Object.defineProperty(s,r,Object.getOwnPropertyDescriptor(a,r))})}return s}function Kt(s,t,a){return(t=Qt(t))in s?Object.defineProperty(s,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):s[t]=a,s}function Qt(s){var t=Bt(s,"string");return typeof t=="symbol"?t:t+""}function Bt(s,t){if(typeof s!="object"||!s)return s;var a=s[Symbol.toPrimitive];if(a!==void 0){var r=a.call(s,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(s)}function as(s){return s&&s.map((t,a)=>l.createElement(t.tag,ue({key:a},t.attr),as(t.child)))}function Ht(s){return t=>l.createElement(Vt,de({attr:ue({},s.attr)},t),as(s.child))}function Vt(s){var t=a=>{var{attr:r,size:n,title:o}=s,c=Pt(s,zt),i=n||a.size||"1em",d;return a.className&&(d=a.className),s.className&&(d=(d?d+" ":"")+s.className),l.createElement("svg",de({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},a.attr,r,c,{className:d,style:ue(ue({color:s.color||a.color},a.style),s.style),height:i,width:i,xmlns:"http://www.w3.org/2000/svg"}),o&&l.createElement("title",null,o),s.children)};return ze!==void 0?l.createElement(ze.Consumer,null,a=>t(a)):t(ts)}function qt(s){return Ht({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"},child:[]},{tag:"path",attr:{d:"M9 18c-4.51 2-5-2-7-2"},child:[]}]})(s)}var e=Bs(),Se=()=>dt(()=>import("./chat-sidebar-CApWlRXq.js").then(s=>s.t),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31])),Ut=(0,l.lazy)(()=>Se().then(s=>({default:s.ChatSidebar}))),Wt=()=>{const{openOverlay:s,isOverlayOpen:t}=Z(),[a,r]=(0,l.useState)(!1);t("chat.assistant")&&!a&&r(!0);const{dbType:n}=ss(),{provider:o}=Dt(),c=It(Rt),i=wt(),d=c.status[o],h=d?.state==="set"||d?.state==="locked",{rateLimit:g,isLoadingRateLimit:m,errorRateLimit:f}=Mt({enabled:i&&o==="gemini"&&!h}),{remaining:p=0,limit:x=0}=g??{remaining:0,limit:0},y=h?"bg-emerald-500":m||f?"bg-zinc-500":o!=="gemini"||p===0?"bg-red-500":p<=5?"bg-yellow-500":"bg-emerald-500";return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(Te,{children:[(0,e.jsx)(Ee,{asChild:!0,children:(0,e.jsxs)(S,{variant:"ghost",className:"rounded-none size-12 relative text-muted-foreground hover:text-foreground hover:bg-muted/60 transition-colors","aria-label":"Open AI assistant",onPointerEnter:Se,onFocus:Se,onClick:()=>{s("chat.assistant"),n&&ct.capture("chat_opened",{db_type:n})},children:[(0,e.jsx)(ks,{className:"size-5"}),(0,e.jsx)("span",{"data-testid":"chat-status-indicator",className:T("absolute top-2 right-2 h-2 w-2 rounded-full ring-2 ring-background",y)})]})}),(0,e.jsx)(_e,{side:"right",className:"text-xs",children:h?(0,e.jsxs)("p",{children:["AI Assistant · personal ",o," key"]}):!m&&!f?p>0?(0,e.jsxs)("p",{children:[p,"/",x," messages remaining"]}):(0,e.jsx)("p",{children:"AI Assistant"}):(0,e.jsx)("p",{children:"AI status unavailable"})})]}),a&&(0,e.jsx)(l.Suspense,{children:(0,e.jsx)(Ut,{})})]})},Gt={table:_s,runner:Ds,schema:zs,indexes:Ns,logs:$s,visualizer:As,browser:Ss},xe="relative flex size-12 shrink-0 items-center justify-center text-muted-foreground transition-colors hover:bg-muted/60 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring",Ie=({label:s,children:t})=>(0,e.jsxs)(Te,{children:[(0,e.jsx)(Ee,{asChild:!0,children:t}),(0,e.jsx)(_e,{side:"right",children:(0,e.jsx)("p",{className:"capitalize",children:s})})]}),Yt=()=>{const{pathname:s}=J(),t=he({strict:!1}),a=Q(),r=s.split("/")[1]||"table",n=a?.dataModel==="key-value"?["browser","runner","logs"]:ot.filter(i=>(i!=="indexes"||a?.indexes)&&(i!=="logs"||a?.serverLogs)),o=t.table,c=De();return n.map(i=>{const d=Gt[i],h=(i==="table"||i==="schema"||i==="indexes")&&o,g=r===i;return(0,e.jsx)(Ie,{label:i,children:(0,e.jsx)(He,{to:h?`/${i}/$table`:`/${i}`,params:h?{table:o}:void 0,search:h?{[I.TABLE_SCHEMA]:c}:void 0,"aria-label":i,"aria-current":g?"page":void 0,className:T(xe,g&&"bg-muted text-foreground"),children:(0,e.jsx)(d,{className:"size-5"})})},i)})},Xt=()=>{const{sidebar:{isOpen:s},setSidebarOpen:t,setSidebarPinned:a}=Re();return(0,e.jsx)(Ie,{label:s?"Hide sidebar":"Show sidebar",children:(0,e.jsx)("button",{type:"button","aria-label":"Toggle sidebar",className:xe,onClick:()=>{t(!s),a(!s)},children:(0,e.jsx)(fs,{className:"size-5"})})})},$e=[{value:"light",label:"Light",icon:Fs},{value:"dark",label:"Dark",icon:ys},{value:"system",label:"System",icon:Ve}],Jt=()=>{const{theme:s,setTheme:t}=St(),a=$e.find(r=>r.value===s)?.icon??Ve;return(0,e.jsxs)(Ze,{children:[(0,e.jsx)(Ye,{asChild:!0,children:(0,e.jsx)("button",{type:"button","aria-label":"More",className:xe,children:(0,e.jsx)(Ms,{className:"size-5"})})}),(0,e.jsxs)(We,{side:"right",align:"end",sideOffset:8,className:"w-48",children:[(0,e.jsxs)(Ge,{children:[(0,e.jsxs)(Xe,{children:[(0,e.jsx)(a,{}),"Theme"]}),(0,e.jsx)(Je,{children:$e.map(({value:r,label:n,icon:o})=>(0,e.jsxs)(R,{onClick:()=>t(r),children:[(0,e.jsx)(o,{}),n,s===r&&(0,e.jsx)(bs,{className:"ml-auto"})]},r))})]}),(0,e.jsx)(Ce,{}),(0,e.jsx)(R,{asChild:!0,children:(0,e.jsxs)("a",{href:Me.SITE_GITHUB_NEW_ISSUE_LINK,target:"_blank",rel:"noopener noreferrer",children:[(0,e.jsx)(ps,{}),"Report a bug"]})}),(0,e.jsx)(R,{asChild:!0,children:(0,e.jsxs)("a",{href:Me.SITE_GITHUB_LINK,target:"_blank",rel:"noopener noreferrer",children:[(0,e.jsx)(qt,{}),"View on GitHub"]})})]})]})},Ke=()=>(0,e.jsx)("div",{className:"h-px w-full shrink-0 bg-border"}),Zt=()=>{const{openOverlay:s}=Z(),{pathname:t}=J(),a=t.split("/")[1]!=="visualizer";return(0,e.jsxs)("nav",{"aria-label":"Main",className:"flex shrink-0 flex-col border-r border-border bg-background",style:{width:I.RAIL_WIDTH},children:[a&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(Xt,{}),(0,e.jsx)(Ke,{})]}),(0,e.jsx)(Yt,{}),(0,e.jsxs)("div",{className:"mt-auto flex flex-col",children:[(0,e.jsx)(Ke,{}),(0,e.jsx)(Wt,{}),(0,e.jsx)(Ie,{label:"Settings",children:(0,e.jsx)("button",{type:"button","aria-label":"Open settings",className:xe,onClick:()=>s("settings.app"),children:(0,e.jsx)(Ps,{className:"size-5"})})}),(0,e.jsx)(Jt,{})]})]})};function rs({...s}){return(0,e.jsx)(Qs,{"data-slot":"context-menu",...s})}function ns({className:s,...t}){return(0,e.jsx)(Vs,{"data-slot":"context-menu-trigger",className:T("select-none",s),...t})}function ls({className:s,...t}){return(0,e.jsx)(qs,{children:(0,e.jsx)(Us,{"data-slot":"context-menu-content",className:T("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-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 ring-foreground/10 bg-popover text-popover-foreground min-w-32 rounded-lg p-1 shadow-md ring-1 duration-150 data-closed:duration-100 ease-out z-50 max-h-(--radix-context-menu-content-available-height) origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto",s),...t})})}function $({className:s,inset:t,variant:a="default",...r}){return(0,e.jsx)(Hs,{"data-slot":"context-menu-item","data-inset":t,"data-variant":a,className:T("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:text-destructive not-data-[variant=destructive]:focus:**:text-accent-foreground min-h-7 gap-2 rounded-sm px-2 py-1 text-xs/relaxed [&_svg:not([class*='size-'])]:size-3.5 group/context-menu-item relative flex cursor-default items-center outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0",s),...r})}function Qe({className:s,...t}){return(0,e.jsx)(Ks,{"data-slot":"context-menu-separator",className:T("bg-border/50 -mx-1 my-1 h-px",s),...t})}var ye=({folderId:s,isExpanded:t,onToggle:a,count:r,name:n,showContextMenu:o=!1})=>{const c=te(),{deleteFolder:i,getQueriesByFolder:d,addQuery:h,updateFolder:g}=me(),[m,f]=(0,l.useState)(!1),[p,x]=(0,l.useState)(""),[v,y]=(0,l.useState)(!1),b=(0,l.useCallback)(()=>{if(s){if(d(s).length>0){y(!0);return}i(s)}},[i,s,d]),w=(0,l.useCallback)(()=>{s&&(i(s),y(!1))},[i,s]),E=(0,l.useCallback)(()=>{const k=h(void 0,s);c({to:"/runner/$queryId",params:{queryId:k}})},[h,s,c]),u=(0,l.useCallback)(()=>{x(n),f(!0)},[n]),j=(0,l.useCallback)(()=>{s&&p.trim()&&(g(s,{name:p.trim()}),f(!1),x(""))},[s,p,g]);return(0,e.jsxs)(e.Fragment,{children:[o?(0,e.jsxs)(rs,{children:[(0,e.jsx)(ns,{asChild:!0,children:(0,e.jsxs)("button",{type:"button",onClick:a,className:T("w-full flex gap-2 px-4 py-2 text-sm transition-colors text-left","hover:bg-sidebar-accent/50 hover:text-sidebar-foreground focus:outline-none focus:bg-sidebar-accent focus:text-sidebar-accent-foreground","text-sidebar-foreground/70 items-center"),children:[(0,e.jsx)(Fe,{className:T("size-4 transition-transform duration-200",t?"rotate-90":"")}),(0,e.jsx)("span",{className:"flex-1",children:n}),(0,e.jsx)(se,{children:r})]})}),(0,e.jsxs)(ls,{children:[(0,e.jsxs)($,{onClick:E,children:[(0,e.jsx)(ee,{className:"size-4"}),"Add a new query"]}),(0,e.jsxs)($,{onClick:u,children:[(0,e.jsx)(we,{className:"size-4"}),"Rename folder"]}),(0,e.jsxs)($,{onClick:b,children:[(0,e.jsx)(ke,{className:"size-4"}),"Delete folder"]})]})]}):(0,e.jsxs)("button",{type:"button",onClick:a,className:T("w-full flex gap-2 px-4 py-2 text-sm transition-colors text-left","hover:bg-sidebar-accent/50 hover:text-sidebar-foreground focus:outline-none focus:bg-sidebar-accent focus:text-sidebar-accent-foreground","text-sidebar-foreground/70 items-center"),children:[(0,e.jsx)(Fe,{className:T("size-4 transition-transform duration-200",t?"rotate-90":"")}),(0,e.jsx)("span",{className:"flex-1",children:n}),(0,e.jsx)(se,{children:r})]}),(0,e.jsx)(G,{open:m,onOpenChange:f,children:(0,e.jsxs)(q,{children:[(0,e.jsxs)(U,{children:[(0,e.jsx)(Y,{children:"Rename Folder"}),(0,e.jsx)(W,{children:"Enter a new name for this folder."})]}),(0,e.jsx)(M,{value:p,onChange:k=>x(k.target.value),placeholder:"Folder name",onKeyDown:k=>{k.key==="Enter"&&j()},autoFocus:!0}),(0,e.jsxs)(X,{children:[(0,e.jsx)(S,{variant:"outline",onClick:()=>{f(!1),x("")},children:"Cancel"}),(0,e.jsx)(S,{onClick:j,disabled:!p.trim(),children:"Rename"})]})]})}),(0,e.jsx)(ft,{open:v,onOpenChange:y,children:(0,e.jsxs)(xt,{children:[(0,e.jsxs)(mt,{children:[(0,e.jsx)(bt,{children:"Delete Folder"}),(0,e.jsxs)(vt,{children:["This folder contains ",r," ",r===1?"query":"queries",". Deleting this folder will also delete all queries inside it. This action cannot be undone."]})]}),(0,e.jsxs)(ht,{children:[(0,e.jsx)(ut,{children:"Cancel"}),(0,e.jsx)(pt,{onClick:w,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete Folder"})]})]})})]})},ce=({id:s,tableName:t,isNested:a=!1,showContextMenu:r=!0})=>{const n=te(),{deleteQuery:o,addQuery:c,getQuery:i,toggleFavorite:d,updateQuery:h,moveQuery:g,folders:m,addFolder:f}=me(),{queryId:p}=he({strict:!1}),x=p===s,v=i(s),y=v?.isFavorite??!1,[b,w]=(0,l.useState)(!1),[E,u]=(0,l.useState)(""),[j,k]=(0,l.useState)(!1),[B,O]=(0,l.useState)(void 0),[F,_]=(0,l.useState)(!1),[D,A]=(0,l.useState)(""),ie=(0,l.useCallback)(()=>{n({to:"/runner/$queryId",params:{queryId:s}})},[n,s]),fe=(0,l.useCallback)(()=>{o(s),p===s&&n({to:"/runner"}),z.success("Query deleted successfully")},[o,s,n,p]),be=(0,l.useCallback)(()=>{const C=i(s),os=c(`${C?.name} (Copy)`);n({to:"/runner/$queryId",params:{queryId:os}}),z.success("Query duplicated successfully")},[c,i,n,s]),pe=(0,l.useCallback)(()=>{d(s),z.success("Query favorited successfully")},[d,s]),ge=(0,l.useCallback)(()=>{u(v?.name??""),w(!0)},[v?.name]),N=(0,l.useCallback)(()=>{E.trim()&&(h(s,{name:E.trim()}),w(!1),u(""),z.success("Query renamed successfully"))},[s,E,h]),ve=(0,l.useCallback)(()=>{O(v?.folderId),_(!1),A(""),k(!0)},[v?.folderId]),is=(0,l.useCallback)(C=>{C==="__create_new__"?(_(!0),O(void 0)):(_(!1),O(C==="__none__"?void 0:C))},[]),Oe=(0,l.useCallback)(()=>{if(F&&D.trim()){const C=Math.random().toString(36).substring(2,15);f({id:C,name:D.trim(),isExpanded:!0,isFavorite:!1}),g(s,C),z.success("Query moved to new folder successfully")}else F||(g(s,B),z.success("Query moved to selected folder successfully"));k(!1),_(!1),A(""),O(void 0)},[F,D,B,s,f,g]);return(0,e.jsxs)("li",{className:"relative",children:[r?(0,e.jsxs)(rs,{children:[(0,e.jsx)(ns,{asChild:!0,children:(0,e.jsxs)("button",{type:"button",onClick:ie,className:T("w-full flex gap-2 py-2 text-sm transition-colors text-left justify-start items-center focus:outline-none",x?"text-sidebar-accent-foreground bg-sidebar-accent font-medium":"text-sidebar-foreground/70 hover:text-sidebar-foreground hover:bg-sidebar-accent/50 focus:bg-sidebar-accent focus:text-sidebar-accent-foreground",a?"px-4 pl-12":"px-4"),children:[x&&(0,e.jsx)("span",{className:"absolute left-0 top-0 bottom-0 w-1 bg-primary"}),(0,e.jsx)("span",{className:"flex-1",children:t})]})}),(0,e.jsxs)(ls,{children:[(0,e.jsxs)($,{onClick:ge,children:[(0,e.jsx)(we,{className:"size-4"}),"Rename query"]}),(0,e.jsxs)($,{onClick:be,children:[(0,e.jsx)(Es,{className:"size-4"}),"Duplicate query"]}),(0,e.jsxs)($,{onClick:pe,children:[(0,e.jsx)(Rs,{className:y?"size-4 fill-current":"size-4"}),y?"Remove from favorites":"Add to favorites"]}),(0,e.jsx)(Qe,{}),(0,e.jsxs)($,{onClick:ve,children:[(0,e.jsx)(ws,{className:"size-4"}),"Move to folder"]}),(0,e.jsx)(Qe,{}),(0,e.jsxs)($,{onClick:fe,children:[(0,e.jsx)(ke,{className:"size-4"}),"Delete query"]})]})]}):(0,e.jsxs)("button",{type:"button",onClick:ie,className:T("w-full flex gap-2 py-2 text-sm transition-colors text-left justify-start items-center focus:outline-none",x?"text-sidebar-accent-foreground bg-sidebar-accent font-medium":"text-sidebar-foreground/70 hover:text-sidebar-foreground hover:bg-sidebar-accent/50 focus:bg-sidebar-accent focus:text-sidebar-accent-foreground",a?"px-4 pl-12":"px-4"),children:[x&&(0,e.jsx)("span",{className:"absolute left-0 top-0 bottom-0 w-1 bg-primary"}),(0,e.jsx)("span",{className:"flex-1",children:t})]}),(0,e.jsx)(G,{open:b,onOpenChange:w,children:(0,e.jsxs)(q,{children:[(0,e.jsxs)(U,{children:[(0,e.jsx)(Y,{children:"Rename Query"}),(0,e.jsx)(W,{children:"Enter a new name for this query."})]}),(0,e.jsx)(M,{value:E,onChange:C=>u(C.target.value),placeholder:"Query name",onKeyDown:C=>{C.key==="Enter"&&N()},autoFocus:!0}),(0,e.jsxs)(X,{children:[(0,e.jsx)(S,{variant:"outline",onClick:()=>{w(!1),u("")},children:"Cancel"}),(0,e.jsx)(S,{onClick:N,disabled:!E.trim(),children:"Rename"})]})]})}),(0,e.jsx)(G,{open:j,onOpenChange:C=>{k(C),C||(_(!1),A(""),O(void 0))},children:(0,e.jsxs)(q,{children:[(0,e.jsxs)(U,{children:[(0,e.jsx)(Y,{children:"Move to Folder"}),(0,e.jsx)(W,{children:"Select a folder to move this query to."})]}),(0,e.jsx)("div",{className:"space-y-4",children:F?(0,e.jsx)(M,{value:D,onChange:C=>A(C.target.value),placeholder:"Folder name",onKeyDown:C=>{C.key==="Enter"&&D.trim()&&Oe(),C.key==="Escape"&&(_(!1),A(""))},autoFocus:!0}):(0,e.jsxs)(le,{value:B??"__none__",onValueChange:is,children:[(0,e.jsx)(re,{className:"w-full",children:(0,e.jsx)(ae,{placeholder:"Select a folder"})}),(0,e.jsxs)(ne,{children:[(0,e.jsx)(P,{value:"__none__",children:"No folder"}),m.map(C=>(0,e.jsx)(P,{value:C.id,children:C.name},C.id)),(0,e.jsx)(P,{value:"__create_new__",children:(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)(Ue,{className:"size-4"}),"Create a new folder"]})})]})]})}),(0,e.jsxs)(X,{children:[(0,e.jsx)(S,{variant:"outline",onClick:()=>{k(!1),_(!1),A(""),O(void 0)},children:"Cancel"}),(0,e.jsx)(S,{onClick:Oe,disabled:F&&!D.trim(),children:F?"Create & Move":"Move"})]})]})})]})},ea=()=>{const[s]=L(I.SIDEBAR_SEARCH,{defaultValue:""}),{folders:t,queries:a,getFavoriteQueries:r,getQueriesByFolder:n,toggleFolder:o}=me(),[c,i]=(0,l.useState)(!0),[d,h]=(0,l.useState)(!0),g=a.filter(x=>!x.isFavorite).length,m=r(),f=m.length,p=a.filter(x=>!x.folderId&&!x.isFavorite);if(s){const x=a.filter(v=>v.name.toLowerCase().includes(s.toLowerCase()));return x.length===0?(0,e.jsx)("div",{className:"flex-1 overflow-y-auto p-4",children:"No queries found matching"}):(0,e.jsx)("div",{className:"flex-1 overflow-y-auto",children:x.map(v=>(0,e.jsx)(ce,{id:v.id,tableName:v.name},v.id))})}return(0,e.jsxs)("div",{className:"flex-1 overflow-y-auto",children:[(0,e.jsx)(ye,{name:"Favorites",isExpanded:c,onToggle:()=>i(!c),count:f}),c&&m.map(x=>(0,e.jsx)(ce,{id:x.id,tableName:x.name},x.id)),(0,e.jsx)(Ct,{className:"bg-sidebar-border"}),(0,e.jsx)(ye,{name:"Queries",isExpanded:d,onToggle:()=>h(!d),count:g}),d&&(0,e.jsxs)(e.Fragment,{children:[t.map(x=>{const v=n(x.id),y=v.length;return(0,e.jsxs)("div",{children:[(0,e.jsx)(ye,{folderId:x.id,name:x.name,isExpanded:x.isExpanded,onToggle:()=>o(x.id),count:y,showContextMenu:!0}),x.isExpanded&&v.map(b=>(0,e.jsx)(ce,{id:b.id,tableName:b.name,isNested:!0,showContextMenu:!0},b.id))]},x.id)}),p.map(x=>(0,e.jsx)(ce,{id:x.id,tableName:x.name,showContextMenu:!0},x.id))]})]})},sa=()=>{const{addQuery:s,addFolder:t}=me(),a=te(),r=(0,l.useRef)(null),[n,o]=L(I.SIDEBAR_SEARCH,{defaultValue:""}),c=h=>{o(h.target.value)},i=()=>{const h=s();a({to:"/runner/$queryId",params:{queryId:h}})},d=()=>{const h=Math.random().toString(36).substring(2,15);t({id:h,name:"New Folder",isExpanded:!0,isFavorite:!1})};return(0,e.jsxs)("div",{className:"p-3 space-y-2 border-b border-sidebar-border",children:[(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsxs)(S,{className:"flex-1 justify-start h-8",onClick:i,children:[(0,e.jsx)(ee,{className:"size-4"}),"Add Query"]}),(0,e.jsxs)(S,{className:"flex-1 justify-start h-8",onClick:d,children:[(0,e.jsx)(Ue,{className:"size-4"}),"Add Folder"]})]}),(0,e.jsxs)("div",{className:"relative",children:[(0,e.jsx)(Ne,{className:"absolute left-2 top-1/2 -translate-y-1/2 size-4 text-muted-foreground"}),(0,e.jsx)(M,{ref:r,placeholder:"Search queries",value:n??"",onChange:c,className:"rounded-sm h-8 pl-8 pr-8"}),(0,e.jsx)(se,{className:"absolute right-2 top-1/2 -translate-y-1/2 text-xs",children:"/"})]})]})},ta=()=>(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(sa,{}),(0,e.jsx)(ea,{})]}),aa=({tableName:s,schemaName:t})=>{const a=te(),r=he({strict:!1}),{pathname:n}=J(),o=De(),{copyTableSchema:c,isCopyingSchema:i}=Nt(),{exportFile:d,isExportingFile:h}=rt(),{deleteTable:g,forceDeleteTable:m,isDeletingTable:f}=lt(),{renameTable:p,isRenamingTable:x}=at({tableName:s,schemaName:t}),{openOverlay:v,closeOverlay:y,isOverlayOpen:b}=Z(),{setEditingTable:w}=Gs(),E=Js(),[u,j]=(0,l.useState)(s),[k,B]=(0,l.useState)([]),O=t?`${t}.${s}`:s,F=`tables.rename-table.${O}`,_=`tables.delete-table.${O}`,D=`tables.force-delete-table.${O}`,A=N=>{N?(j(s),v(F)):y(F)},ie=async()=>{const N=u.trim();if(!(!N||N===s))try{if(await p({newTableName:N,schemaName:t}),A(!1),r.table===s&&o===t){const ve=n.startsWith("/schema")?"/schema/$table":n.startsWith("/indexes")?"/indexes/$table":"/table/$table";a({to:ve,params:{table:N},search:{[I.TABLE_SCHEMA]:t}})}}catch{}},fe=()=>{navigator.clipboard.writeText(s),z.success("Table name copied to clipboard")},be=async()=>{const N=await g(s,t);N.fkViolation?(B(N.relatedRecords),y(_),v(D)):(y(_),a({to:"/"}))},pe=async()=>{await m(s,t),y(D),a({to:"/"})},ge=()=>{y(D),B([])};return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(Ze,{children:[(0,e.jsx)(Ye,{asChild:!0,children:(0,e.jsx)(S,{variant:"ghost",size:"icon-sm",onClick:N=>{N.stopPropagation(),N.preventDefault()},onPointerDown:N=>{N.stopPropagation()},children:(0,e.jsx)(Os,{})})}),(0,e.jsx)(We,{className:"w-56",align:"start",children:(0,e.jsxs)(Xs,{children:[(0,e.jsxs)(R,{onClick:fe,children:[(0,e.jsx)(Is,{className:"size-4"}),"Copy name"]}),(0,e.jsxs)(R,{onClick:()=>c(s,t),disabled:i,children:[(0,e.jsx)(xs,{className:"size-4"}),"Copy table schema"]}),(0,e.jsx)(Ce,{}),(0,e.jsxs)(R,{onClick:()=>A(!0),children:[(0,e.jsx)(Ts,{className:"size-4"}),"Rename table"]}),!E&&(0,e.jsxs)(R,{onClick:()=>{w({tableName:s,schemaName:t}),v("schema.edit-table")},children:[(0,e.jsx)(we,{className:"size-4"}),"Edit table"]}),(0,e.jsxs)(Ge,{children:[(0,e.jsxs)(Xe,{children:[(0,e.jsx)(Ls,{className:"size-4"}),"Export data"]}),(0,e.jsxs)(Je,{children:[(0,e.jsx)(R,{onClick:()=>d({tableName:s,schemaName:t,format:"csv"}),disabled:h,children:"Export as CSV"}),(0,e.jsx)(R,{onClick:()=>d({tableName:s,schemaName:t,format:"json"}),disabled:h,children:"Export as JSON"}),(0,e.jsx)(R,{onClick:()=>d({tableName:s,schemaName:t,format:"xlsx"}),disabled:h,children:"Export as Excel"})]})]}),(0,e.jsx)(Ce,{}),(0,e.jsxs)(R,{variant:"destructive",onClick:()=>v(_),children:[(0,e.jsx)(ke,{className:"size-4"}),"Delete table"]})]})})]}),(0,e.jsx)(ra,{tableName:s,newTableName:u,setNewTableName:j,isOpen:b(F),onOpenChange:A,onRename:ie,isRenaming:x}),(0,e.jsx)(na,{isOpen:b(_),onOpenChange:N=>{N||y(_)},tableName:s,onDelete:be,isDeleting:f}),(0,e.jsx)(la,{isOpen:b(D),onOpenChange:N=>{N||y(D)},tableName:s,relatedRecords:k,onForceDelete:pe,onCancel:ge,isDeleting:f})]})},ra=({tableName:s,newTableName:t,setNewTableName:a,isOpen:r,onOpenChange:n,onRename:o,isRenaming:c})=>{const i=t.trim(),d=!i||i===s;return(0,e.jsx)(G,{open:r,onOpenChange:n,children:(0,e.jsxs)(q,{className:"max-w-md",children:[(0,e.jsxs)(U,{children:[(0,e.jsx)(Y,{children:"Rename Table"}),(0,e.jsx)(W,{children:"Update the table name while keeping all data and schema unchanged."})]}),(0,e.jsxs)("div",{className:"space-y-4",children:[(0,e.jsxs)("div",{className:"space-y-2",children:[(0,e.jsx)(Ae,{htmlFor:"current-table-name",children:"Current name"}),(0,e.jsx)(M,{id:"current-table-name",value:s,readOnly:!0,disabled:!0})]}),(0,e.jsxs)("div",{className:"space-y-2",children:[(0,e.jsx)(Ae,{htmlFor:"new-table-name",children:"New name"}),(0,e.jsx)(M,{id:"new-table-name",value:t,onChange:h=>a(h.target.value),placeholder:"table_name",autoFocus:!0,disabled:c,onKeyDown:h=>{h.key==="Enter"&&!d&&!c&&o()}})]})]}),(0,e.jsxs)(X,{className:"gap-2",children:[(0,e.jsx)(S,{variant:"outline",onClick:()=>n(!1),disabled:c,children:"Cancel"}),(0,e.jsx)(S,{onClick:o,disabled:d||c,children:c?"Renaming...":"Rename Table"})]})]})})},na=({isOpen:s,onOpenChange:t,tableName:a,onDelete:r,isDeleting:n})=>(0,e.jsx)(G,{open:s,onOpenChange:t,children:(0,e.jsxs)(q,{className:"max-w-md",children:[(0,e.jsxs)(U,{children:[(0,e.jsx)(Y,{children:"Delete Table"}),(0,e.jsxs)(W,{children:["Are you sure you want to delete the table"," ",(0,e.jsxs)("span",{className:"font-semibold text-foreground",children:['"',a,'"']}),"? This action cannot be undone and all data will be permanently lost."]})]}),(0,e.jsxs)(X,{className:"gap-2",children:[(0,e.jsx)(S,{variant:"outline",onClick:()=>t(!1),disabled:n,children:"Cancel"}),(0,e.jsx)(S,{variant:"destructive",onClick:r,disabled:n,children:n?"Deleting...":"Delete Table"})]})]})}),la=({isOpen:s,onOpenChange:t,tableName:a,relatedRecords:r,onForceDelete:n,onCancel:o,isDeleting:c})=>(0,e.jsx)(G,{open:s,onOpenChange:t,children:(0,e.jsxs)(q,{className:"max-w-xl! max-h-[calc(100vh-1rem)]!",children:[(0,e.jsxs)(U,{children:[(0,e.jsx)(Y,{children:"Cannot Delete - Foreign Key Constraint"}),(0,e.jsxs)(W,{children:["The table ",(0,e.jsxs)("span",{className:"font-semibold text-foreground",children:['"',a,'"']})," ","cannot be deleted because it is referenced by records in other tables. You can either cancel the operation or force delete, which will also delete all related records."]})]}),(0,e.jsx)("div",{className:"space-y-4 max-h-64 overflow-y-auto",children:r.map((i,d)=>(0,e.jsxs)("div",{className:"border border-border rounded-md p-3",children:[(0,e.jsxs)("div",{className:"font-medium text-sm mb-2",children:["Table: ",(0,e.jsx)("span",{className:"text-primary",children:i.tableName}),(0,e.jsxs)("span",{className:"text-muted-foreground ml-2",children:["(",i.records.length," record",i.records.length!==1?"s":"",")"]})]}),(0,e.jsxs)("div",{className:"text-xs text-muted-foreground mb-2",children:["References column: ",i.columnName]}),(0,e.jsx)("div",{className:"bg-muted rounded p-2 text-xs overflow-x-auto",children:(0,e.jsxs)("pre",{className:"whitespace-pre-wrap",children:[JSON.stringify(i.records.slice(0,5),null,2),i.records.length>5&&(0,e.jsxs)("div",{className:"text-muted-foreground mt-2",children:["... and ",i.records.length-5," more"]})]})})]},`${i.tableName}-${i.columnName}-${d}`))}),(0,e.jsxs)(X,{className:"gap-2",children:[(0,e.jsx)(S,{variant:"outline",onClick:o,disabled:c,children:"Cancel"}),(0,e.jsx)(S,{variant:"destructive",onClick:n,disabled:c,children:c?"Deleting...":"Force Delete All"})]})]})}),ia=({tableName:s,rowCount:t,rowCountEstimated:a,schemaName:r,showSchemaName:n})=>{const o=he({strict:!1}),{pathname:c}=J(),i=o.table,d=De(),h=i===s&&(d===void 0||d===r),g=c.startsWith("/schema")?"/schema/$table":c.startsWith("/indexes")?"/indexes/$table":"/table/$table",m=(0,e.jsxs)("span",{className:"flex-1 truncate",children:[n&&r&&r!=="public"&&(0,e.jsxs)("span",{className:"text-muted-foreground/60",children:[r,"."]}),s]});return(0,e.jsxs)("li",{className:"relative group",children:[h&&(0,e.jsx)("span",{className:"absolute left-0 top-0 bottom-0 w-1 bg-primary z-10"}),(0,e.jsxs)("div",{className:T("w-full flex gap-0.5 pl-4 pr-2 py-1.5 text-sm transition-colors text-left justify-start items-center focus:outline-none",h?"text-sidebar-accent-foreground bg-sidebar-accent font-medium":"text-sidebar-foreground/70 hover:text-sidebar-foreground hover:bg-sidebar-accent/50 focus:bg-sidebar-accent focus:text-sidebar-accent-foreground"),children:[(0,e.jsx)(He,{to:g,params:{table:s},search:{[I.TABLE_SCHEMA]:r},className:"flex-1 flex items-center gap-1 min-w-0 focus:outline-none",children:m}),(0,e.jsxs)("div",{className:"flex items-center gap-1 h-5 shrink-0",children:[(0,e.jsx)("div",{className:T(h?"opacity-100":"opacity-0 group-hover:opacity-100 focus-within:opacity-100"),children:(0,e.jsx)(aa,{tableName:s,schemaName:r})}),(0,e.jsxs)(se,{children:[a&&"~",t]})]})]})]})},oa=()=>{const[s]=L(I.SIDEBAR_SEARCH,{defaultValue:""}),[t,a]=L(I.ACTIVE_SCHEMA,{defaultValue:"all"}),r=Q(),{tablesList:n=[],isLoadingTablesList:o,errorTablesList:c}=es(),i=(0,l.useMemo)(()=>Array.from(new Set(n.reduce((m,f)=>(f.schemaName&&m.push(f.schemaName),m),[]))).sort(),[n]),d=(r?.schemaSelector??!1)&&i.length>1,h=t==="all"&&i.length>1,g=n?.filter(m=>{const f=t==="all"||m.schemaName===t,p=m.tableName.toLowerCase().includes(s.toLowerCase());return f&&p});return(0,l.useEffect)(()=>{!d||t==="all"||i.includes(t)||a("all")},[i,t,a,d]),o?(0,e.jsx)("div",{className:"flex-1 h-full overflow-y-auto pb-3 flex items-center justify-center",children:(0,e.jsx)(Ws,{size:"size-6"})}):c?(0,e.jsxs)("div",{className:"flex-1 overflow-y-auto pb-3 h-full flex items-center justify-center",children:["Error: ",c.message]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:"flex-1 overflow-y-auto pb-3",children:g&&g.length>0?(0,e.jsx)("ul",{children:g?.map(m=>(0,e.jsx)(ia,{schemaName:m.schemaName,showSchemaName:h,tableName:m.tableName,rowCount:m.rowCount,rowCountEstimated:m.rowCountEstimated},m.schemaName?`${m.schemaName}.${m.tableName}`:m.tableName))}):s?(0,e.jsx)("div",{className:"flex-1 overflow-y-auto pb-3 h-full flex items-center justify-center",children:"No tables found matching"}):(0,e.jsx)("div",{className:"flex-1 overflow-y-auto pb-3 h-full flex items-center justify-center",children:"No tables available"})}),(0,e.jsx)(Ys,{})]})},ca=()=>{const s=(0,l.useRef)(null),[t,a]=L(I.SIDEBAR_SEARCH,{defaultValue:""}),{openOverlay:r}=Z(),n=Q();return nt("/",o=>{o.preventDefault(),s.current&&s.current.focus()},{preventDefault:!0}),(0,e.jsx)("div",{className:"px-3 pb-3 pt-2 space-y-2",children:(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsxs)("div",{className:"relative min-w-0 flex-1",children:[(0,e.jsx)(Ne,{className:"absolute left-2 top-1/2 -translate-y-1/2 size-4 text-muted-foreground"}),(0,e.jsx)(M,{ref:s,variant:"outline",placeholder:"Search tables",value:t??"",onChange:o=>a(o.target.value.trim()),className:"rounded-sm h-8 pl-8 pr-8"}),(0,e.jsx)(se,{className:"absolute right-2 top-1/2 -translate-y-1/2 text-xs",children:"/"})]}),n?.dataModel!=="document"&&(0,e.jsx)(S,{size:"icon-lg",className:"shrink-0 rounded-sm",onClick:()=>r("table-builder.create-table"),"aria-label":"Add table",children:(0,e.jsx)(ee,{className:"size-4"})})]})})},da=()=>{const[s,t]=L(I.ACTIVE_SCHEMA,{defaultValue:"all"}),a=Q(),{tablesList:r=[]}=es(),n=(0,l.useMemo)(()=>Array.from(new Set(r.reduce((o,c)=>(c.schemaName&&o.push(c.schemaName),o),[]))).sort(),[r]);return(a?.schemaSelector??!1)&&n.length>1?(0,e.jsx)("div",{className:"px-3 pt-3",children:(0,e.jsxs)(le,{value:s,onValueChange:t,children:[(0,e.jsx)(re,{variant:"outline",className:"h-8! w-full justify-between rounded-sm",children:(0,e.jsx)(ae,{placeholder:"Select schema"})}),(0,e.jsxs)(ne,{children:[(0,e.jsx)(P,{value:"all",children:"All schemas"}),n.map(o=>(0,e.jsx)(P,{value:o,children:o},o))]})]})}):null},Be=()=>(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(da,{}),(0,e.jsx)(ca,{}),(0,e.jsx)(yt,{className:"flex-1 overflow-y-auto pb-3 block h-full w-full [&_[data-slot=scroll-area-viewport]>div]:block!",children:(0,e.jsx)(oa,{})})]});function ua(){const{databases:s,isLoadingDatabases:t,refetchDatabases:a,isRefetchingDatabases:r}=Et(),{selectedDatabase:n,setSelectedDatabase:o}=ss(),c=Q(),i=te(),d=t||r,h=m=>{o(m),i({to:c?.dataModel==="key-value"?"/browser":"/table",search:{}})},g=async()=>{await a(),z.success("Databases refreshed")};return(0,e.jsxs)("div",{className:"mt-auto flex h-11 items-center gap-0.5 border-t border-sidebar-border bg-sidebar px-2 text-sidebar-foreground",children:[(0,e.jsx)(_t,{databasesCount:s?.length??0}),(0,e.jsx)("span",{"aria-hidden":!0,className:"text-xs text-muted-foreground/50",children:"/"}),(0,e.jsxs)(le,{value:n||"",onValueChange:h,children:[(0,e.jsx)(re,{variant:"outline","aria-label":"Database",disabled:d,className:"h-7 min-w-0 flex-1 border-0 px-2 font-mono shadow-none hover:bg-muted/60",children:(0,e.jsx)(ae,{placeholder:"Select database…"})}),(0,e.jsx)(ne,{children:s?.map(m=>(0,e.jsx)(P,{value:m.name,className:"font-mono text-xs",children:m.name},m.name))})]}),(0,e.jsxs)(Te,{children:[(0,e.jsx)(Ee,{asChild:!0,children:(0,e.jsx)(S,{variant:"ghost",size:"icon-sm","aria-label":"Refresh databases",onClick:g,disabled:d,children:(0,e.jsx)(qe,{className:T(d&&"animate-spin")})})}),(0,e.jsx)(_e,{children:"Refresh databases"})]})]})}var ha=({children:s})=>{const{sidebar:{width:t,isOpen:a,isPinned:r},setSidebarWidth:n,setSidebarOpen:o}=Re(),c=(0,l.useRef)(!1),i=(0,l.useRef)(0),d=(0,l.useRef)(0),h=(0,l.useRef)(null),g=(0,l.useRef)(u=>{}),m=(0,l.useRef)(()=>{}),f=(0,l.useRef)(()=>{}),p=(0,l.useRef)(()=>{}),x=(0,l.useCallback)(u=>{c.current&&requestAnimationFrame(()=>{const j=u.clientX-i.current,k=d.current+j;n(Math.abs(k-300)<=16?300:k)})},[n]),v=(0,l.useCallback)(()=>{c.current=!1,Object.assign(document.body.style,{cursor:"",userSelect:""});const u=document.getElementById("resize-overlay");u&&u.remove()},[]),y=(0,l.useCallback)(u=>{u.preventDefault(),c.current=!0,i.current=u.clientX,d.current=t,Object.assign(document.body.style,{cursor:"col-resize",userSelect:"none"});const j=document.createElement("div");j.id="resize-overlay",j.style.cssText="position:fixed;inset:0;z-index:9999;cursor:col-resize;",document.body.appendChild(j)},[t]),b=(0,l.useCallback)(()=>{r||o(!0)},[r,o]),w=(0,l.useCallback)(()=>{r||o(!1)},[r,o]);g.current=x,m.current=v,f.current=b,p.current=w;const E=u=>{r||o(u)};return(0,l.useEffect)(()=>{const u=k=>g.current(k),j=()=>m.current();return document.addEventListener("mousemove",u),document.addEventListener("mouseup",j),()=>{document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",j)}},[]),(0,l.useEffect)(()=>{const u=h.current;if(!u)return;const j=()=>f.current(),k=()=>p.current();return u.addEventListener("mouseenter",j),u.addEventListener("mouseleave",k),()=>{u.removeEventListener("mouseenter",j),u.removeEventListener("mouseleave",k)}},[]),(0,e.jsxs)(et,{open:a,onOpenChange:E,modal:!1,children:[(0,e.jsx)(st,{className:"sr-only",children:"Open Sidebar"}),(0,e.jsx)(Zs,{ref:h,side:"left",showCloseButton:!1,isPinned:r,className:"sidebar-behind-rail bg-sidebar border-r border-sidebar-border text-sidebar-foreground p-0",style:{width:`${t}px`,left:`${I.RAIL_WIDTH}px`},onOpenAutoFocus:u=>u.preventDefault(),children:(0,e.jsxs)("div",{className:"relative h-full flex flex-col",children:[s,(0,e.jsx)("div",{role:"button",tabIndex:0,onMouseDown:y,className:T("absolute inset-y-0 -right-1.5 w-3 cursor-col-resize z-50 outline-none","after:absolute after:inset-y-0 after:left-1/2 after:w-px after:transition-colors","hover:after:bg-blue-400/70 active:after:bg-blue-400/70 focus-visible:after:bg-blue-400/70"),title:"Drag to resize sidebar"})]})})]})},ma=["string","hash","list","set","zset","stream"],K=Ot(""),xa=()=>{const{closeOverlay:s,isOverlayOpen:t}=Z(),[a,r]=(0,l.useState)(K),[n,o]=(0,l.useState)("string"),[c,i]=(0,l.useState)(K),[d,h]=(0,l.useState)(K),[g,m]=(0,l.useState)("0"),[f,p]=(0,l.useState)(""),{createKey:x,isPending:v}=Ft(),y=t("redis-browser.create-key"),b=n==="hash"||n==="stream",w=a===null||c===null||b&&d===null,E=async()=>{const u=b?d:K;if(a===null||c===null||u===null)return;let j;switch(n){case"string":j={kind:"string",value:c};break;case"hash":j={kind:"hash",entries:[{field:c,value:u}]};break;case"list":j={kind:"list",entries:[c]};break;case"set":j={kind:"set",members:[c]};break;case"zset":j={kind:"zset",entries:[{member:c,score:Number(g)}]};break;case"stream":j={kind:"stream",id:"*",fields:[{field:c,value:u}]}}await x({key:a,type:n,value:j,ttlMs:f?Number(f)*1e3:null}),r(K),o("string"),i(K),h(K),m("0"),p(""),s("redis-browser.create-key")};return(0,e.jsxs)(tt,{title:"Create Redis key",description:"Creates the key atomically and never overwrites an existing key.",open:y,onOpenChange:u=>{u||s("redis-browser.create-key")},size:"sm:max-w-md!",headerClassName:"border-b border-border p-4",titleClassName:"text-sm font-medium",contentClassName:"space-y-4 px-4 py-4",children:[(0,e.jsxs)(kt,{className:"gap-4",children:[(0,e.jsxs)(H,{children:[(0,e.jsx)(V,{htmlFor:"redis-key-name",children:"Key"}),(0,e.jsx)(je,{id:"redis-key-name",value:a,onChange:r,className:"h-8",placeholder:"cache:user:42"}),(0,e.jsx)(Le,{children:"Text, hexadecimal, and Base64 keys are supported."})]}),(0,e.jsxs)(H,{children:[(0,e.jsx)(V,{htmlFor:"redis-key-type",children:"Type"}),(0,e.jsxs)(le,{value:n,onValueChange:u=>o(u),children:[(0,e.jsx)(re,{id:"redis-key-type",className:"h-8!",children:(0,e.jsx)(ae,{})}),(0,e.jsx)(ne,{children:ma.map(u=>(0,e.jsx)(P,{value:u,children:u},u))})]})]}),(0,e.jsxs)(H,{children:[(0,e.jsx)(V,{htmlFor:"redis-key-first-value",children:n==="hash"||n==="stream"?"Initial field":n==="zset"?"Initial member":"Initial value"}),(0,e.jsx)(je,{id:"redis-key-first-value",value:c,onChange:i})]}),(n==="hash"||n==="stream")&&(0,e.jsxs)(H,{children:[(0,e.jsx)(V,{htmlFor:"redis-key-second-value",children:"Initial value"}),(0,e.jsx)(je,{id:"redis-key-second-value",value:d,onChange:h})]}),n==="zset"&&(0,e.jsxs)(H,{children:[(0,e.jsx)(V,{htmlFor:"redis-key-score",children:"Score"}),(0,e.jsx)(M,{id:"redis-key-score",type:"number",value:g,onChange:u=>m(u.target.value),className:"font-mono"})]}),(0,e.jsxs)(H,{children:[(0,e.jsx)(V,{htmlFor:"redis-key-ttl",children:"TTL in seconds"}),(0,e.jsx)(M,{id:"redis-key-ttl",type:"number",min:1,value:f,onChange:u=>p(u.target.value),placeholder:"Persistent",className:"font-mono h-8"}),(0,e.jsx)(Le,{children:"Leave empty to create a persistent key."})]})]}),(0,e.jsxs)("div",{className:"flex justify-end gap-2 border-t border-border pt-4",children:[(0,e.jsx)(S,{variant:"outline",onClick:()=>s("redis-browser.create-key"),children:"Cancel"}),(0,e.jsx)(S,{disabled:v||w,onClick:E,children:"Create key"})]})]})},fa=["string","hash","list","set","zset","stream"],ba={string:"STR",hash:"HASH",list:"LIST",set:"SET",zset:"ZSET",stream:"XSTR"},pa=s=>s===-1?"∞":s<0?"gone":s<1e3?`${s}ms`:s<6e4?`${Math.ceil(s/1e3)}s`:s<36e5?`${Math.ceil(s/6e4)}m`:`${Math.ceil(s/36e5)}h`,ga=s=>s===null?"—":s<1024?`${s} B`:`${(s/1024).toFixed(1)} KiB`,va=(s,t)=>t!==void 0?t||"(empty key)":`0x${Array.from(At(s),a=>a.toString(16).padStart(2,"0")).join("")}`,ja=()=>{const{openOverlay:s}=Z(),[t,a]=L("key"),[r,n]=L("search",{defaultValue:""}),[o,c]=(0,l.useState)(r),[i,d]=L("type",{defaultValue:""}),[h,g]=L("glob",{defaultValue:"false"}),m=h==="true",f=Lt({search:o,type:i,exactPattern:m}),p=(0,l.useMemo)(()=>f.data?.pages.flatMap(b=>b.keys)??[],[f.data]),x=(0,l.useRef)(null),v=hs({count:p.length,getScrollElement:()=>x.current,estimateSize:()=>33,overscan:10}),y=v.getVirtualItems();return(0,l.useEffect)(()=>{const b=window.setTimeout(()=>c(r),250);return()=>window.clearTimeout(b)},[r]),(0,l.useEffect)(()=>{const b=y.at(-1);b&&b.index>=p.length-5&&f.hasNextPage&&!f.isFetchingNextPage&&f.fetchNextPage()},[y,p.length,f.hasNextPage,f.isFetchingNextPage,f.fetchNextPage]),(0,e.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col bg-background font-mono",children:[(0,e.jsxs)("div",{children:[(0,e.jsxs)("div",{className:"space-y-2 px-3 pb-3 pt-2",children:[(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsxs)("div",{className:"relative min-w-0 flex-1",children:[(0,e.jsx)(Ne,{className:"absolute left-2 top-1/2 -translate-y-1/2 size-4 text-muted-foreground"}),(0,e.jsx)(M,{variant:"outline",value:r,onChange:b=>n(b.target.value),placeholder:m?"Redis glob pattern":"Find keys","aria-label":"Find Redis keys",className:"h-8 rounded-sm pl-8"})]}),(0,e.jsx)(S,{variant:"outline",size:"icon-lg",className:"shrink-0 rounded-sm",onClick:()=>z.promise(f.refetch({throwOnError:!0}),{loading:"Refreshing Redis keys...",success:"Redis keys refreshed",error:"Failed to refresh Redis keys"}),disabled:f.isFetching,"aria-label":"Refresh Redis keys",children:(0,e.jsx)(qe,{className:T(f.isFetching&&"animate-spin")})}),(0,e.jsx)(S,{size:"icon-lg",className:"shrink-0 rounded-sm",onClick:()=>s("redis-browser.create-key"),"aria-label":"Create Redis key",children:(0,e.jsx)(ee,{})})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsxs)(le,{value:i||"all",onValueChange:b=>d(b==="all"?"":b),children:[(0,e.jsx)(re,{variant:"outline","aria-label":"Filter Redis key type",className:"h-8! min-w-0 flex-1 justify-between rounded-sm",children:(0,e.jsx)(ae,{})}),(0,e.jsxs)(ne,{children:[(0,e.jsx)(P,{value:"all",children:"All types"}),fa.map(b=>(0,e.jsx)(P,{value:b,children:b},b))]})]}),(0,e.jsxs)(Tt,{variant:"outline",size:"lg",pressed:m,onPressedChange:b=>g(b?"true":"false"),className:"shrink-0 rounded-sm px-2 text-xs/relaxed uppercase","aria-label":"Use Redis glob pattern",children:[(0,e.jsx)(Cs,{className:"size-4"})," Glob"]})]})]}),(0,e.jsxs)("div",{className:"flex h-6 items-center justify-between px-4 text-[9px] uppercase tracking-wider text-muted-foreground",children:[(0,e.jsxs)("span",{children:[p.length," loaded"]}),(0,e.jsx)("span",{children:f.dataUpdatedAt>0?new Date(f.dataUpdatedAt).toLocaleTimeString():"not scanned"})]})]}),(0,e.jsxs)("div",{ref:x,className:"min-h-0 flex-1 overflow-auto",children:[f.isLoading?(0,e.jsx)("div",{className:"px-3 py-4 text-xs text-muted-foreground",children:"Scanning keyspace…"}):p.length===0?(0,e.jsxs)("div",{className:"flex min-h-32 flex-col items-center justify-center gap-2 px-4 text-center text-muted-foreground",children:[(0,e.jsx)(vs,{className:"size-4"}),(0,e.jsx)("span",{className:"text-xs",children:"No keys in this scan."}),(0,e.jsxs)(S,{variant:"outline",size:"sm",onClick:()=>s("redis-browser.create-key"),children:[(0,e.jsx)(ee,{})," Create key"]})]}):(0,e.jsx)("div",{className:"relative w-full",style:{height:`${v.getTotalSize()}px`},children:y.map(b=>{const w=p[b.index],E=w.key.base64||"-",u=va(w.key.base64,w.key.utf8);return(0,e.jsxs)(S,{variant:"ghost",onClick:()=>a(E),className:T("absolute left-0 top-0 h-auto w-full justify-start gap-2 rounded-none px-4 py-1.5 text-sm font-normal transition-colors",t===E?"bg-sidebar-accent text-sidebar-accent-foreground font-medium before:absolute before:inset-y-0 before:left-0 before:w-1 before:bg-primary":"text-sidebar-foreground/70 hover:bg-sidebar-accent/50 hover:text-sidebar-foreground"),style:{transform:`translateY(${b.start}px)`},title:u,children:[(0,e.jsx)("span",{className:"min-w-0 flex-1 truncate text-left text-current",children:u}),(0,e.jsx)(gt,{variant:"outline",className:"h-4 w-10 shrink-0 justify-center rounded-sm px-1 text-[8px] font-normal text-muted-foreground",children:ba[w.type]??"?"}),(0,e.jsxs)("span",{className:"shrink-0 text-[9px] text-muted-foreground",children:[ga(w.memoryBytes)," ·"," ",w.ttlMs===-1?(0,e.jsx)(gs,{className:"inline size-3 align-[-2px]","aria-label":"No expiry"}):pa(w.ttlMs)]})]},`${E}-${b.index}`)})}),f.isFetchingNextPage&&(0,e.jsx)("div",{className:"px-2 py-1 text-center text-[10px] text-muted-foreground",children:"Scanning more…"})]}),(0,e.jsx)(xa,{})]})},ya=()=>{const{pathname:s}=J(),t=s.split("/")[1],a=Q()?.dataModel==="key-value",r=(0,l.useMemo)(()=>{if(a&&t!=="runner")return(0,e.jsx)(ja,{});switch(t){case"":case"table":case"schema":case"indexes":return(0,e.jsx)(Be,{});case"runner":return(0,e.jsx)(ta,{});default:return(0,e.jsx)(Be,{})}},[a,t]);return(0,e.jsxs)(ha,{children:[r,(0,e.jsx)(ua,{})]})},Ga=cs({component:()=>Ca});function Ca(){const s=Q(),t=s?.dataModel==="key-value",{pathname:a}=J(),r=a.split("/")[1],{sidebar:{isPinned:n,width:o}}=Re();if(t&&r!=="browser"&&r!=="runner"&&r!=="logs")return(0,e.jsx)(oe,{to:"/browser"});if(!t&&r==="browser")return(0,e.jsx)(oe,{to:"/"});if(s&&!s.indexes&&r==="indexes")return(0,e.jsx)(oe,{to:"/table"});if(s&&!s.serverLogs&&r==="logs")return(0,e.jsx)(oe,{to:"/table"});const c=r!=="visualizer";return(0,e.jsxs)("div",{className:"bg-background text-foreground w-dvw flex h-dvh max-h-dvh overflow-hidden relative",children:[(0,e.jsx)(Zt,{}),c&&(0,e.jsx)(ya,{}),(0,e.jsx)("div",{className:"rail-content relative flex-1 flex flex-col h-full overflow-hidden",style:{marginLeft:c&&n?`${o}px`:"0"},children:(0,e.jsx)(us,{})})]})}export{Ca as component,Mt as n,Ga as t};
@@ -1 +0,0 @@
1
- import{jt as n}from"./radix-ui-41WpuKNR.js";import{n as a,t as o}from"./tables-BPh2zM7Q.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"db-studio@2.0.0"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="1f90e252-45fe-4ac0-9caa-0861976ed6a5",e._sentryDebugIdIdentifier="sentry-dbid-1f90e252-45fe-4ac0-9caa-0861976ed6a5")}catch{}})();var r=n();function f(){const{table:e}=a.useParams();return(0,r.jsx)(o,{tableName:e})}export{f as component};
@@ -1 +0,0 @@
1
- import{r as Y}from"./rolldown-runtime-CpVMLIgb.js";import{C as $,E,g as H,w as J}from"./tanstack-BE6ru2gB.js";import{E as L,I as W,It as X,T as Z,f as ee,o as se,s as ne}from"./icons-D72QQyd5.js";import{jt as te}from"./radix-ui-41WpuKNR.js";import{n as R}from"./dist-D4lNl-zm.js";import{t as ae}from"./utils-Cr2_fSDl.js";import{t as P}from"./spinner-Z77kD_hS.js";import{a as re,c as ie,n as u,o as de,t as f}from"./overlay.store-D93IGU3a.js";import{G as oe,J as le,K as ce,M as xe,O as me,W as ue,Y as he,_ as F,b as fe,k as O,q as pe,v as I,w as ge,y as je}from"./schema-B8WxzFU1.js";import{n as A,t as g}from"./label-Dcwj4aRe.js";import{t as be}from"./sheet-sidebar-Bne7asEZ.js";import"./tables-BPh2zM7Q.js";import{t as ye}from"./react-46S5qMHL.js";import{h as ve,o as Ne,u as Ie}from"./constants-BFCsZ8ll.js";import{o as Ce,t as C}from"./database.store-BAbH5Geu.js";import{t as b}from"./badge-BIuMcm7O.js";import{a as Se,i as De,n as Te,r as ze,t as ke}from"./select-DzeVPveq.js";import{t as we}from"./use-database-engine-CKCp55rb.js";import{i as S}from"./keys-6E3ilH7R.js";import{i as qe}from"./index-DlECfzV9.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};s.SENTRY_RELEASE={id:"db-studio@2.0.0"};var a=new s.Error().stack;a&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[a]="9ca32f58-7043-4e81-b890-b4ff859dad53",s._sentryDebugIdIdentifier="sentry-dbid-9ca32f58-7043-4e81-b890-b4ff859dad53")}catch{}})();var N=Y(X(),1),_e=({tableName:s,schemaName:a})=>{const r=E(),{closeOverlay:i}=f(),{selectedDatabase:o}=C(),{mutateAsync:x,isPending:l}=$({mutationFn:async d=>(await Ne({tableName:s,schemaName:a,data:d,db:o})).data.data,onSuccess:async()=>{await r.invalidateQueries({queryKey:S.byTable(s),exact:!1}),i("indexes.create-index")}});return{createIndex:async d=>R.promise(x(d),{loading:"Creating index...",success:n=>n||"Index created successfully",error:n=>typeof n.details=="string"&&n.details||n.message||"Failed to create index"}),isCreatingIndex:l}},e=te(),Fe=({tableName:s})=>{const{closeOverlay:a}=f(),r=I(),{createIndex:i,isCreatingIndex:o}=_e({tableName:s,schemaName:r}),{tableCols:x,isLoadingTableCols:l}=ge({tableName:s,schemaName:r}),m=we(),d=m?.indexes||null,n=d?.methods??[],{control:h,register:K,handleSubmit:U,setValue:D,watch:V,formState:{errors:y,dirtyFields:B,isSubmitted:T}}=xe({mode:"onSubmit",defaultValues:{indexName:"",columns:[],isUnique:!1,method:n[0]},resolver:me(Ce)}),p=V("columns"),Q=m?.dataModel==="document",[z,G]=(0,N.useState)([]),[v,k]=(0,N.useState)(""),w=[...new Set([...x?.map(({columnName:t})=>t)??[],...z])],q=t=>{const c=p.includes(t)?p.filter(j=>j!==t):[...p,t];D("columns",c,{shouldValidate:T}),B.indexName||D("indexName",c.length?`${s}_${c.join("_").replaceAll(".","_")}_idx`:"",{shouldValidate:T})},_=()=>{const t=v.trim();t&&(w.includes(t)||G([...z,t]),p.includes(t)||q(t),k(""))};return(0,e.jsxs)("form",{onSubmit:U(t=>i(t)),className:"space-y-6",children:[(0,e.jsxs)("div",{className:"space-y-2",children:[(0,e.jsx)(g,{className:"text-xs",children:"Columns, in index order"}),l?(0,e.jsx)(P,{size:"size-5"}):(0,e.jsx)("div",{className:"space-y-1",children:w.map(t=>{const c=p.indexOf(t),j=`create-index-column-${t}`;return(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)(F,{id:j,checked:c!==-1,onCheckedChange:()=>q(t)}),(0,e.jsx)(g,{htmlFor:j,className:"font-mono font-normal cursor-pointer",children:t}),c!==-1&&(0,e.jsxs)("span",{className:"text-xs text-muted-foreground",children:["#",c+1]})]},t)})}),Q&&(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)(A,{value:v,onChange:t=>k(t.target.value),onKeyDown:t=>{t.key==="Enter"&&(t.preventDefault(),_())},placeholder:"Add field path, e.g. address.city","aria-label":"Add field path",className:"font-mono"}),(0,e.jsx)(u,{type:"button",variant:"outline",onClick:_,disabled:!v.trim(),children:"Add"})]}),y.columns&&(0,e.jsx)("p",{className:"text-xs text-destructive",children:"Select at least one column."})]}),(0,e.jsxs)("div",{className:"space-y-2",children:[(0,e.jsx)(g,{htmlFor:"create-index-name",className:"text-xs",children:"Name"}),(0,e.jsx)(A,{id:"create-index-name",...K("indexName"),placeholder:`${s}_column_idx`,className:ae("font-mono",y.indexName&&"border-destructive ring-destructive ring-1")}),y.indexName&&(0,e.jsx)("p",{className:"text-xs text-destructive",children:"Enter an index name."})]}),(0,e.jsxs)("div",{className:"flex items-center gap-6",children:[(0,e.jsx)(O,{control:h,name:"isUnique",render:({field:t})=>(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)(F,{id:"create-index-unique",checked:t.value,onCheckedChange:c=>t.onChange(c===!0)}),(0,e.jsx)(g,{htmlFor:"create-index-unique",className:"cursor-pointer",children:"Unique"})]})}),n.length>0&&(0,e.jsx)(O,{control:h,name:"method",render:({field:t})=>(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)(g,{htmlFor:"create-index-method",children:"Method"}),(0,e.jsxs)(ke,{value:t.value,onValueChange:t.onChange,children:[(0,e.jsx)(De,{id:"create-index-method",className:"font-mono",children:(0,e.jsx)(Se,{})}),(0,e.jsx)(Te,{children:n.map(c=>(0,e.jsx)(ze,{value:c,className:"font-mono",children:c},c))})]})]})})]}),d?.createNote&&(0,e.jsxs)("p",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[(0,e.jsx)(se,{className:"size-3.5 shrink-0"}),d.createNote]}),(0,e.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,e.jsx)(u,{type:"button",variant:"outline",size:"lg",onClick:()=>a("indexes.create-index"),disabled:o,children:"Cancel"}),(0,e.jsx)(u,{type:"submit",variant:"default",size:"lg",disabled:o,children:o?"Creating...":"Create index"})]})]})},Oe=({tableName:s})=>{const{closeOverlay:a,isOverlayOpen:r}=f();return(0,e.jsx)(be,{title:"Create index",description:`Create an index on "${s}".`,open:r("indexes.create-index"),onOpenChange:i=>{i||a("indexes.create-index")},children:(0,e.jsx)(Fe,{tableName:s})})},Ae=({tableName:s,schemaName:a})=>{const r=E(),{closeOverlay:i}=f(),{selectedDatabase:o}=C(),{mutateAsync:x,isPending:l}=$({mutationFn:async d=>(await Ie({tableName:s,schemaName:a,indexName:d,db:o})).data.data,onSuccess:async()=>{await r.invalidateQueries({queryKey:S.byTable(s),exact:!1}),i("indexes.drop-index")}});return{dropIndex:async d=>R.promise(x(d),{loading:"Dropping index...",success:n=>n||"Index dropped successfully",error:n=>typeof n.details=="string"&&n.details||n.message||"Failed to drop index"}),isDroppingIndex:l}},M=ye()(s=>({droppingIndex:null,setDroppingIndex:a=>s({droppingIndex:a})})),$e=({tableName:s})=>{const{closeOverlay:a,isOverlayOpen:r}=f(),{droppingIndex:i}=M(),o=I(),{dropIndex:x,isDroppingIndex:l}=Ae({tableName:s,schemaName:o});return i?(0,e.jsx)(ue,{open:r("indexes.drop-index"),onOpenChange:m=>{m||a("indexes.drop-index")},children:(0,e.jsxs)(oe,{className:"max-w-md",children:[(0,e.jsxs)(le,{children:[(0,e.jsx)(he,{children:"Drop Index"}),(0,e.jsxs)(ce,{children:["Drop the index"," ",(0,e.jsxs)("span",{className:"font-semibold text-foreground",children:['"',i.indexName,'"']})," ","from table ",(0,e.jsxs)("span",{className:"font-semibold text-foreground",children:['"',s,'"']}),"? No rows are deleted, but queries that rely on this index may get slower."]})]}),(0,e.jsxs)(pe,{className:"gap-2",children:[(0,e.jsx)(u,{variant:"outline",onClick:()=>a("indexes.drop-index"),disabled:l,children:"Cancel"}),(0,e.jsx)(u,{variant:"destructive",onClick:()=>x(i.indexName),disabled:l,children:l?"Dropping...":"Drop Index"})]})]})}):null},Ee=({index:s})=>{const{openOverlay:a}=f(),{setDroppingIndex:r}=M();return s.kind!=="index"?(0,e.jsxs)(re,{children:[(0,e.jsx)(ie,{asChild:!0,children:(0,e.jsx)("span",{className:"inline-flex text-muted-foreground/40",children:(0,e.jsx)(W,{className:"size-3.5"})})}),(0,e.jsx)(de,{side:"left",children:(0,e.jsx)("p",{children:"Backs a constraint. Drop the constraint to remove it."})})]}):(0,e.jsx)(u,{variant:"ghost",size:"icon-sm",className:"text-muted-foreground hover:text-destructive","aria-label":`Drop index ${s.indexName}`,onClick:()=>{r(s),a("indexes.drop-index")},children:(0,e.jsx)(ne,{className:"size-3.5"})})},Le=({tableName:s,refetch:a,isRefetching:r=!1})=>{const{openOverlay:i}=f();return(0,e.jsxs)("header",{className:"max-h-8 overflow-hidden border-b border-border w-full flex items-center bg-background text-foreground sticky top-0 left-0 right-0 z-0",children:[(0,e.jsx)(u,{type:"button",variant:"ghost",className:"size-8! aspect-square border-x-0 border-y-0 border-border rounded-none text-muted-foreground hover:text-foreground hover:bg-muted/60 transition-colors",onClick:()=>{a()},"aria-label":`Refetch indexes for ${s}`,disabled:r,children:(0,e.jsx)(Z,{className:"size-4"})}),(0,e.jsx)(u,{variant:"ghost",asChild:!0,className:"h-8! border-l border-y-0 border-r-0 border-border rounded-none flex items-center gap-2 text-muted-foreground hover:text-foreground",children:(0,e.jsxs)(H,{to:"/table/$table",params:{table:s},"aria-label":`View data for ${s}`,children:[(0,e.jsx)(ee,{className:"size-4"}),"View data"]})}),(0,e.jsxs)(u,{type:"button",variant:"default",className:"h-8! border-l border-y-0 border-r-0 border-border rounded-none flex items-center gap-2",onClick:()=>i("indexes.create-index"),children:[(0,e.jsx)(L,{className:"size-4"}),"Create Index"]})]})},Re=({tableName:s,schemaName:a})=>{const{selectedDatabase:r}=C(),{data:i,isLoading:o,isRefetching:x,error:l,refetch:m}=J({queryKey:S.table(s,r,a),queryFn:()=>ve(s,r,a),select:d=>d.data.data,enabled:!!s&&!!r});return{tableIndexes:i,isLoadingTableIndexes:o,isRefetchingTableIndexes:x,errorTableIndexes:l,refetchTableIndexes:m}},Pe={primary:"Primary","unique-constraint":"Unique constraint",index:null},Me=({tableName:s})=>{const{tableIndexes:a,isLoadingTableIndexes:r,isRefetchingTableIndexes:i,errorTableIndexes:o,refetchTableIndexes:x}=Re({tableName:s,schemaName:I()}),{openOverlay:l}=f(),m=!!a?.some(n=>n.method!==null),d=(0,N.useMemo)(()=>[{id:"indexName",header:"Name",accessorKey:"indexName",cell:({row:n})=>{const h=Pe[n.original.kind];return(0,e.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,e.jsx)("span",{className:"font-mono text-foreground font-medium truncate",children:n.original.indexName}),h&&(0,e.jsx)(b,{variant:"secondary",className:"text-[0.6rem] px-1.5 shrink-0",children:h}),n.original.isSparse&&(0,e.jsx)(b,{variant:"secondary",className:"text-[0.6rem] px-1.5 shrink-0",children:"Sparse"}),n.original.expireAfterSeconds!==void 0&&(0,e.jsxs)(b,{variant:"secondary",className:"text-[0.6rem] px-1.5 shrink-0",children:["TTL (",n.original.expireAfterSeconds,"s)"]})]})},size:340,minSize:160},{id:"columns",header:"Columns",accessorFn:n=>n.columns.join(", "),cell:({getValue:n})=>(0,e.jsx)("span",{className:"font-mono text-xs text-muted-foreground truncate",children:n()}),size:220,minSize:120},{id:"isUnique",header:"Unique",cell:({row:n})=>n.original.isUnique?(0,e.jsx)(b,{variant:"secondary",className:"text-[0.6rem] px-1.5",children:"Unique"}):(0,e.jsx)("span",{className:"text-xs text-muted-foreground/50",children:"no"}),size:90,minSize:80},...m?[{id:"method",header:"Method",cell:({row:n})=>(0,e.jsx)("span",{className:"font-mono text-xs text-muted-foreground",children:n.original.method}),size:100,minSize:80}]:[],{id:"definition",header:"Definition",accessorKey:"definition",cell:({getValue:n})=>{const h=n();return h?(0,e.jsx)("span",{className:"font-mono text-xs text-muted-foreground truncate",children:h}):(0,e.jsx)("span",{className:"text-muted-foreground/50",children:"—"})},size:360,minSize:120},{id:"actions",header:"",cell:({row:n})=>(0,e.jsx)("div",{className:"flex flex-1 justify-center items-center",children:(0,e.jsx)(Ee,{index:n.original})}),size:50,enableResizing:!1}],[m]);return r?(0,e.jsx)("div",{className:"size-full flex items-center justify-center",children:(0,e.jsx)(P,{size:"size-7"})}):o?(0,e.jsxs)("div",{className:"size-full flex flex-col items-center justify-center gap-2",children:[(0,e.jsx)("div",{className:"text-sm font-medium",children:"Failed to load indexes"}),(0,e.jsx)("div",{className:"text-sm text-muted-foreground",children:o.message})]}):(0,e.jsxs)("div",{className:"flex-1 flex flex-col overflow-hidden",children:[(0,e.jsx)(Le,{tableName:s,refetch:x,isRefetching:i}),a?.length?(0,e.jsx)(fe,{columns:d,data:a,renderCellAccessory:n=>(0,e.jsx)(je,{value:n})}):(0,e.jsxs)("div",{className:"flex-1 flex flex-col items-center justify-center gap-3",children:[(0,e.jsx)("div",{className:"text-sm text-muted-foreground",children:"This table has no indexes yet."}),(0,e.jsxs)(u,{type:"button",onClick:()=>l("indexes.create-index"),children:[(0,e.jsx)(L,{className:"size-4"}),"Create index"]})]}),(0,e.jsx)(Oe,{tableName:s}),(0,e.jsx)($e,{tableName:s})]})};function os(){const{table:s}=qe.useParams();return(0,e.jsx)("main",{className:"flex-1 flex flex-col overflow-hidden",children:(0,e.jsx)(Me,{tableName:s})})}export{os as component};
@@ -1 +0,0 @@
1
- import{r as c}from"./rolldown-runtime-CpVMLIgb.js";import{It as _}from"./icons-D72QQyd5.js";import{jt as b}from"./radix-ui-41WpuKNR.js";import{i as h,n as p,r as y}from"./chat-sidebar-CApWlRXq.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"db-studio@2.0.0"};var r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="d92a1aec-068f-41f8-a2a2-45e9517f75ec",e._sentryDebugIdIdentifier="sentry-dbid-d92a1aec-068f-41f8-a2a2-45e9517f75ec")}catch{}})();var s=c(_(),1),E=b(),N=({code:e,language:r,raw:t,className:d,startLine:f,lineNumbers:u,...l})=>{let{shikiTheme:o}=(0,s.useContext)(h),a=y(),[g,i]=(0,s.useState)(t);return(0,s.useEffect)(()=>{if(!a){i(t);return}let n=a.highlight({code:e,language:r,themes:o},m=>{i(m)});n&&i(n)},[e,r,o,a,t]),(0,E.jsx)(p,{className:d,language:r,lineNumbers:u,result:g,startLine:f,...l})};export{N as HighlightedCodeBlockBody};
@@ -1 +0,0 @@
1
- import{r as e1,t as B}from"./rolldown-runtime-CpVMLIgb.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};r.SENTRY_RELEASE={id:"db-studio@2.0.0"};var y=new r.Error().stack;y&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[y]="8cd6b914-ff27-40ce-bedc-58355b47e7e5",r._sentryDebugIdIdentifier="sentry-dbid-8cd6b914-ff27-40ce-bedc-58355b47e7e5")}catch{}})();var a1=B((r=>{var y=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),w=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),T=Symbol.for("react.activity"),N=Symbol.iterator;function j(e){return e===null||typeof e!="object"?null:(e=N&&e[N]||e["@@iterator"],typeof e=="function"?e:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,P={};function f(e,t,n){this.props=e,this.context=t,this.refs=P,this.updater=n||C}f.prototype.isReactComponent={},f.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},f.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function O(){}O.prototype=f.prototype;function H(e,t,n){this.props=e,this.context=t,this.refs=P,this.updater=n||C}var R=H.prototype=new O;R.constructor=H,x(R,f.prototype),R.isPureReactComponent=!0;var I=Array.isArray;function z(){}var d={H:null,A:null,T:null,S:null},D=Object.prototype.hasOwnProperty;function q(e,t,n){var o=n.ref;return{$$typeof:y,type:e,key:t,ref:o!==void 0?o:null,props:n}}function K(e,t){return q(e.type,t,e.props)}function S(e){return typeof e=="object"&&e!==null&&e.$$typeof===y}function G(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var U=/\/+/g;function L(e,t){return typeof e=="object"&&e!==null&&e.key!=null?G(""+e.key):t.toString(36)}function X(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(z,z):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function _(e,t,n,o,c){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var h=!1;if(e===null)h=!0;else switch(i){case"bigint":case"string":case"number":h=!0;break;case"object":switch(e.$$typeof){case y:case u:h=!0;break;case $:return h=e._init,_(h(e._payload),t,n,o,c)}}if(h)return c=c(e),h=o===""?"."+L(e,0):o,I(c)?(n="",h!=null&&(n=h.replace(U,"$&/")+"/"),_(c,t,n,"",function(Q){return Q})):c!=null&&(S(c)&&(c=K(c,n+(c.key==null||e&&e.key===c.key?"":(""+c.key).replace(U,"$&/")+"/")+h)),t.push(c)),1;h=0;var p=o===""?".":o+":";if(I(e))for(var s=0;s<e.length;s++)o=e[s],i=p+L(o,s),h+=_(o,t,n,i,c);else if(s=j(e),typeof s=="function")for(e=s.call(e),s=0;!(o=e.next()).done;)o=o.value,i=p+L(o,s++),h+=_(o,t,n,i,c);else if(i==="object"){if(typeof e.then=="function")return _(X(e),t,n,o,c);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return h}function E(e,t,n){if(e==null)return e;var o=[],c=0;return _(e,o,"","",function(i){return t.call(n,i,c++)}),o}function F(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Y=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},J={map:E,forEach:function(e,t,n){E(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return E(e,function(){t++}),t},toArray:function(e){return E(e,function(t){return t})||[]},only:function(e){if(!S(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};r.Activity=T,r.Children=J,r.Component=f,r.Fragment=v,r.Profiler=l,r.PureComponent=H,r.StrictMode=m,r.Suspense=M,r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=d,r.__COMPILER_RUNTIME={__proto__:null,c:function(e){return d.H.useMemoCache(e)}},r.cache=function(e){return function(){return e.apply(null,arguments)}},r.cacheSignal=function(){return null},r.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var o=x({},e.props),c=e.key;if(t!=null)for(i in t.key!==void 0&&(c=""+t.key),t)!D.call(t,i)||i==="key"||i==="__self"||i==="__source"||i==="ref"&&t.ref===void 0||(o[i]=t[i]);var i=arguments.length-2;if(i===1)o.children=n;else if(1<i){for(var h=Array(i),p=0;p<i;p++)h[p]=arguments[p+2];o.children=h}return q(e.type,c,o)},r.createContext=function(e){return e={$$typeof:w,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:A,_context:e},e},r.createElement=function(e,t,n){var o,c={},i=null;if(t!=null)for(o in t.key!==void 0&&(i=""+t.key),t)D.call(t,o)&&o!=="key"&&o!=="__self"&&o!=="__source"&&(c[o]=t[o]);var h=arguments.length-2;if(h===1)c.children=n;else if(1<h){for(var p=Array(h),s=0;s<h;s++)p[s]=arguments[s+2];c.children=p}if(e&&e.defaultProps)for(o in h=e.defaultProps,h)c[o]===void 0&&(c[o]=h[o]);return q(e,i,c)},r.createRef=function(){return{current:null}},r.forwardRef=function(e){return{$$typeof:b,render:e}},r.isValidElement=S,r.lazy=function(e){return{$$typeof:$,_payload:{_status:-1,_result:e},_init:F}},r.memo=function(e,t){return{$$typeof:g,type:e,compare:t===void 0?null:t}},r.startTransition=function(e){var t=d.T,n={};d.T=n;try{var o=e(),c=d.S;c!==null&&c(n,o),typeof o=="object"&&o!==null&&typeof o.then=="function"&&o.then(z,Y)}catch(i){Y(i)}finally{t!==null&&n.types!==null&&(t.types=n.types),d.T=t}},r.unstable_useCacheRefresh=function(){return d.H.useCacheRefresh()},r.use=function(e){return d.H.use(e)},r.useActionState=function(e,t,n){return d.H.useActionState(e,t,n)},r.useCallback=function(e,t){return d.H.useCallback(e,t)},r.useContext=function(e){return d.H.useContext(e)},r.useDebugValue=function(){},r.useDeferredValue=function(e,t){return d.H.useDeferredValue(e,t)},r.useEffect=function(e,t){return d.H.useEffect(e,t)},r.useEffectEvent=function(e){return d.H.useEffectEvent(e)},r.useId=function(){return d.H.useId()},r.useImperativeHandle=function(e,t,n){return d.H.useImperativeHandle(e,t,n)},r.useInsertionEffect=function(e,t){return d.H.useInsertionEffect(e,t)},r.useLayoutEffect=function(e,t){return d.H.useLayoutEffect(e,t)},r.useMemo=function(e,t){return d.H.useMemo(e,t)},r.useOptimistic=function(e,t){return d.H.useOptimistic(e,t)},r.useReducer=function(e,t,n){return d.H.useReducer(e,t,n)},r.useRef=function(e){return d.H.useRef(e)},r.useState=function(e){return d.H.useState(e)},r.useSyncExternalStore=function(e,t,n){return d.H.useSyncExternalStore(e,t,n)},r.useTransition=function(){return d.H.useTransition()},r.version="19.2.5"})),t1=B(((r,y)=>{y.exports=a1()})),k=e1(t1(),1),Z=(...r)=>r.filter((y,u,v)=>!!y&&y.trim()!==""&&v.indexOf(y)===u).join(" ").trim(),r1=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o1=r=>r.replace(/^([A-Z])|[\s-_]+(\w)/g,(y,u,v)=>v?v.toUpperCase():u.toLowerCase()),W=r=>{const y=o1(r);return y.charAt(0).toUpperCase()+y.slice(1)},V={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},n1=r=>{for(const y in r)if(y.startsWith("aria-")||y==="role"||y==="title")return!0;return!1},c1=(0,k.createContext)({}),i1=()=>(0,k.useContext)(c1),y1=(0,k.forwardRef)(({color:r,size:y,strokeWidth:u,absoluteStrokeWidth:v,className:m="",children:l,iconNode:A,...w},b)=>{const{size:M=24,strokeWidth:g=2,absoluteStrokeWidth:$=!1,color:T="currentColor",className:N=""}=i1()??{},j=v??$?Number(u??g)*24/Number(y??M):u??g;return(0,k.createElement)("svg",{ref:b,...V,width:y??M??V.width,height:y??M??V.height,stroke:r??T,strokeWidth:j,className:Z("lucide",N,m),...!l&&!n1(w)&&{"aria-hidden":"true"},...w},[...A.map(([C,x])=>(0,k.createElement)(C,x)),...Array.isArray(l)?l:[l]])}),a=(r,y)=>{const u=(0,k.forwardRef)(({className:v,...m},l)=>(0,k.createElement)(y1,{ref:l,iconNode:y,className:Z(`lucide-${r1(W(r))}`,`lucide-${r}`,v),...m}));return u.displayName=W(r),u},d1=[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]],We=a("arrow-down-to-line",d1),h1=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],Be=a("arrow-down",h1),s1=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Ze=a("arrow-left",s1),u1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Ke=a("arrow-right",u1),v1=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],Ge=a("arrow-up-down",v1),p1=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Xe=a("arrow-up-right",p1),l1=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],Fe=a("arrow-up",l1),k1=[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]],Je=a("braces",k1),f1=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],Qe=a("brain",f1),_1=[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]],ea=a("bug",_1),m1=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],aa=a("calendar",m1),M1=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],ta=a("check-check",M1),w1=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ra=a("check",w1),g1=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],oa=a("chevron-down",g1),$1=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],na=a("chevron-left",$1),N1=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ca=a("chevron-right",N1),C1=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],ia=a("chevron-up",C1),x1=[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]],ya=a("chevrons-left",x1),E1=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],da=a("chevrons-up-down",E1),A1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],ha=a("circle-alert",A1),b1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],sa=a("circle-check",b1),T1=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2",key:"4jdomd"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v4",key:"3hqy98"}],["path",{d:"M21 14H11",key:"1bme5i"}],["path",{d:"m15 10-4 4 4 4",key:"5dvupr"}]],ua=a("clipboard-copy",T1),j1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],va=a("clock",j1),H1=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],pa=a("code",H1),R1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]],la=a("columns-2",R1),z1=[["path",{d:"M10.5 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v5.5",key:"1g2yzs"}],["path",{d:"m14.3 19.6 1-.4",key:"11sv9r"}],["path",{d:"M15 3v7.5",key:"7lm50a"}],["path",{d:"m15.2 16.9-.9-.3",key:"1t7mvx"}],["path",{d:"m16.6 21.7.3-.9",key:"1j67ps"}],["path",{d:"m16.8 15.3-.4-1",key:"1ei7r6"}],["path",{d:"m19.1 15.2.3-.9",key:"18r7jp"}],["path",{d:"m19.6 21.7-.4-1",key:"z2vh2"}],["path",{d:"m20.7 16.8 1-.4",key:"19m87a"}],["path",{d:"m21.7 19.4-.9-.3",key:"1qgwi9"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}]],ka=a("columns-3-cog",z1),q1=[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]],fa=a("command",q1),S1=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],_a=a("copy",S1),L1=[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]],ma=a("corner-down-left",L1),V1=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],Ma=a("database",V1),P1=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 15 21.84",key:"14ibmq"}],["path",{d:"M21 5V8",key:"1marbg"}],["path",{d:"M21 12L18 17H22L19 22",key:"zafso"}],["path",{d:"M3 12A9 3 0 0 0 14.59 14.87",key:"1y4wr8"}]],wa=a("database-zap",P1),O1=[["path",{d:"M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41l-7.59-7.59a2.41 2.41 0 0 0-3.41 0Z",key:"1f1r0c"}]],ga=a("diamond",O1),I1=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],$a=a("download",I1),D1=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],Na=a("ellipsis-vertical",D1),U1=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],Ca=a("ellipsis",U1),Y1=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],xa=a("external-link",Y1),W1=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],Ea=a("file-code",W1),B1=[["path",{d:"M13 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v1.36",key:"1shsnm"}],["path",{d:"M19 12v6",key:"kflna4"}],["path",{d:"M19 14h2",key:"wp2qbk"}],["circle",{cx:"19",cy:"20",r:"2",key:"1jfyz6"}]],Aa=a("folder-key",B1),Z1=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],ba=a("folder-plus",Z1),K1=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Ta=a("folder",K1),G1=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],ja=a("funnel",G1),X1=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],Ha=a("git-branch",X1),F1=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],Ra=a("grip-vertical",F1),J1=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],za=a("heart",J1),Q1=[["path",{d:"M6 16c5 0 7-8 12-8a4 4 0 0 1 0 8c-5 0-7-8-12-8a4 4 0 1 0 0 8",key:"18ogeb"}]],qa=a("infinity",Q1),ee=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Sa=a("info",ee),ae=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],La=a("key",ae),te=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],Va=a("key-round",te),re=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],Pa=a("link-2",re),oe=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],Oa=a("link",oe),ne=[["path",{d:"M2 5h20",key:"1fs1ex"}],["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M9 19h6",key:"456am0"}]],Ia=a("list-filter",ne),ce=[["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"M3 10a2 2 0 0 0 2 2h3",key:"1npucw"}],["path",{d:"M3 5v12a2 2 0 0 0 2 2h3",key:"x1gjn2"}]],Da=a("list-tree",ce),ie=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Ua=a("loader-circle",ie),ye=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],Ya=a("lock",ye),de=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],Wa=a("message-square",de),he=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],Ba=a("monitor",he),se=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],Za=a("moon",se),ue=[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]],Ka=a("octagon-alert",ue),ve=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],Ga=a("palette",ve),pe=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],Xa=a("panel-left",pe),le=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],Fa=a("pencil",le),ke=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]],Ja=a("pin-off",ke),fe=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]],Qa=a("pin",fe),_e=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],et=a("plus",_e),me=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],at=a("refresh-cw",me),Me=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],tt=a("rotate-ccw",Me),we=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],rt=a("rotate-cw",we),ge=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],ot=a("save",ge),$e=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],nt=a("scroll-text",$e),Ne=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],ct=a("search",Ne),Ce=[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]],it=a("settings-2",Ce),xe=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],yt=a("settings",xe),Ee=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],dt=a("sparkles",Ee),Ae=[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],ht=a("square-terminal",Ae),be=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],st=a("square",be),Te=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],ut=a("star",Te),je=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],vt=a("sun",je),He=[["path",{d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",key:"gugj83"}]],pt=a("table-2",He),Re=[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]],lt=a("table",Re),ze=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],kt=a("terminal",ze),qe=[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]],ft=a("text-align-start",qe),Se=[["path",{d:"m16 16-3 3 3 3",key:"117b85"}],["path",{d:"M3 12h14.5a1 1 0 0 1 0 7H13",key:"18xa6z"}],["path",{d:"M3 19h6",key:"1ygdsz"}],["path",{d:"M3 5h18",key:"1u36vt"}]],_t=a("text-wrap",Se),Le=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],mt=a("trash-2",Le),Ve=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Mt=a("triangle-alert",Ve),Pe=[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]],wt=a("type",Pe),Oe=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],gt=a("upload",Oe),Ie=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],$t=a("workflow",Ie),De=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Nt=a("x",De),Ue=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Ct=a("zap",Ue);export{Ea as $,Xa as A,Xe as At,Oa as B,rt as C,ra as Ct,Qa as D,Qe as Dt,et as E,ea as Et,Wa as F,We as Ft,qa as G,Va as H,Ya as I,t1 as It,Ha as J,za as K,Ua as L,Ka as M,Ke as Mt,Za as N,Ze as Nt,Ja as O,Je as Ot,Ba as P,Be as Pt,Aa as Q,Da as R,ot as S,oa as St,at as T,aa as Tt,La as U,Pa as V,Sa as W,Ta as X,ja as Y,ba as Z,dt as _,da as _t,wt as a,wa as at,ct as b,ca as bt,_t as c,_a as ct,lt as d,la as dt,xa as et,pt as f,pa as ft,ht as g,ha as gt,st as h,sa as ht,gt as i,ga as it,Ga as j,Ge as jt,Fa as k,Fe as kt,ft as l,fa as lt,ut as m,ua as mt,Nt as n,Na as nt,Mt as o,Ma as ot,vt as p,va as pt,Ra as q,$t as r,$a as rt,mt as s,ma as st,Ct as t,Ca as tt,kt as u,ka as ut,yt as v,ya as vt,tt as w,ta as wt,nt as x,na as xt,it as y,ia as yt,Ia as z};