db-studio 2.0.0 → 2.0.1
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.
- package/README.md +1 -1
- package/dist/index.js +22 -22
- package/dist/index.js.map +1 -1
- package/dist/web-dist/assets/{_pathlessLayout-BQk5gSGn.js → _pathlessLayout-aKKQKRJX.js} +1 -1
- package/dist/web-dist/assets/_pathlessLayout-s6cwJxH6.js +2 -0
- package/dist/web-dist/assets/{_queryId-Buy3oA5p.js → _queryId-DnPgn-AJ.js} +1 -1
- package/dist/web-dist/assets/{_table-CQ2NX0I8.js → _table-Bgt0zJ9m.js} +1 -1
- package/dist/web-dist/assets/{_table-BnMBHUzk.js → _table-CU8PHZQE.js} +1 -1
- package/dist/web-dist/assets/{_table-CE0TjrEn.js → _table-DIbpzW3q.js} +1 -1
- package/dist/web-dist/assets/{abap-B7CMCXo3.js → abap-DQayJW6v.js} +1 -1
- package/dist/web-dist/assets/{apex-D6pniLV0.js → apex-Djzlm7in.js} +1 -1
- package/dist/web-dist/assets/{azcli-DayXln6N.js → azcli-Bbikkqe4.js} +1 -1
- package/dist/web-dist/assets/{badge-BIuMcm7O.js → badge-HtbO9hWg.js} +1 -1
- package/dist/web-dist/assets/{bat-knBi4IWo.js → bat-BUFda2RT.js} +1 -1
- package/dist/web-dist/assets/{bicep-CqySwd8I.js → bicep-CuUgDHWX.js} +1 -1
- package/dist/web-dist/assets/{browser-DQEdJbyz.js → browser-B6gU7HWo.js} +1 -1
- package/dist/web-dist/assets/{bundle-mjs-qYDTi1yn.js → bundle-mjs-DEMZsBkP.js} +1 -1
- package/dist/web-dist/assets/{cameligo-D1w-uj2C.js → cameligo-DITobApP.js} +1 -1
- package/dist/web-dist/assets/{chat-sidebar-CApWlRXq.js → chat-sidebar-Cr2fVFDF.js} +4 -4
- package/dist/web-dist/assets/{clojure-D7bkK2B8.js → clojure-DTFcSI8F.js} +1 -1
- package/dist/web-dist/assets/{code-editor-Dwq67W-h.js → code-editor-BpsclD2u.js} +1 -1
- package/dist/web-dist/assets/{coffee-Dpij46Wn.js → coffee-CmIRg0oP.js} +1 -1
- package/dist/web-dist/assets/{connect-B0x9CNlf.js → connect-BM4hZPnz.js} +1 -1
- package/dist/web-dist/assets/{constants-BFCsZ8ll.js → constants-BBxXyYPa.js} +3 -3
- package/dist/web-dist/assets/{cpp-DWDORc6B.js → cpp-BwBWpZT1.js} +1 -1
- package/dist/web-dist/assets/{csharp-FpOMvD_o.js → csharp-BnWK75m3.js} +1 -1
- package/dist/web-dist/assets/{csp-4WiITR2R.js → csp-Dohj3XYI.js} +1 -1
- package/dist/web-dist/assets/{css-DMOWqvgH.js → css-DN4GbnxY.js} +1 -1
- package/dist/web-dist/assets/{cssMode-DHL98brF.js → cssMode-CiAtMuTk.js} +1 -1
- package/dist/web-dist/assets/{cypher-Byev8hZE.js → cypher-CKAK8eD4.js} +1 -1
- package/dist/web-dist/assets/{dart--T4f3SxI.js → dart-imWXBTLy.js} +1 -1
- package/dist/web-dist/assets/{database.store-BAbH5Geu.js → database.store-73Wsz2L5.js} +10 -10
- package/dist/web-dist/assets/{dist-D4lNl-zm.js → dist-D4HUXaJv.js} +1 -1
- package/dist/web-dist/assets/{dist-C_AEsM_Y.js → dist-DwRWhVwY.js} +1 -1
- package/dist/web-dist/assets/{dockerfile-CTL_qQGw.js → dockerfile-CXOK4zpC.js} +1 -1
- package/dist/web-dist/assets/{ecl-D2-VZ5jm.js → ecl-lOrW9o9k.js} +1 -1
- package/dist/web-dist/assets/{editor.api-DaW7cLxE.js → editor.api-DSevzNN8.js} +1 -1
- package/dist/web-dist/assets/{elixir-C__1cTub.js → elixir-DgvzEwPU.js} +1 -1
- package/dist/web-dist/assets/{esm-DHRCgDAS.js → esm-DC8GK2En.js} +1 -1
- package/dist/web-dist/assets/{flow9-U08FhG_o.js → flow9-l3BJy5NQ.js} +1 -1
- package/dist/web-dist/assets/{format-cell-value-BDXXdObX.js → format-cell-value-CuhjnBNV.js} +1 -1
- package/dist/web-dist/assets/{freemarker2-EL1xRRz-.js → freemarker2-73G2DeCz.js} +1 -1
- package/dist/web-dist/assets/{fsharp-BYeUdvUi.js → fsharp-sfou20I_.js} +1 -1
- package/dist/web-dist/assets/{go-D7V_ae37.js → go-DnjkNg4Q.js} +1 -1
- package/dist/web-dist/assets/{graphql-C-zVsbUk.js → graphql-BJFXvNDL.js} +1 -1
- package/dist/web-dist/assets/{handlebars-BgZpkJkF.js → handlebars-DXg2L0KG.js} +1 -1
- package/dist/web-dist/assets/{hcl-B7_QCGTQ.js → hcl-B4FYtDde.js} +1 -1
- package/dist/web-dist/assets/{highlighted-body-OFNGDK62-D8XE2uMh.js → highlighted-body-OFNGDK62-Bi4CQl8I.js} +1 -1
- package/dist/web-dist/assets/{html-e4Xrzf8r.js → html-BvAUQUXw.js} +1 -1
- package/dist/web-dist/assets/{htmlMode-B6WabTqV.js → htmlMode-hZ3EloXT.js} +1 -1
- package/dist/web-dist/assets/{icons-D72QQyd5.js → icons-CheF8KGp.js} +1 -1
- package/dist/web-dist/assets/{index-DlECfzV9.js → index-YCx2RIFq.js} +4 -4
- package/dist/web-dist/assets/{indexes-BBz0Je_a.js → indexes-BYqaS45O.js} +1 -1
- package/dist/web-dist/assets/{ini-B8RMyZP2.js → ini-H3EW14Oa.js} +1 -1
- package/dist/web-dist/assets/{java-B0bzjGsf.js → java-Cu5qHMXc.js} +1 -1
- package/dist/web-dist/assets/{javascript-BSAFurIc.js → javascript-bJHYh6Or.js} +1 -1
- package/dist/web-dist/assets/{json-editor-DoEopjNh.js → json-editor-ZcSS1MRc.js} +1 -1
- package/dist/web-dist/assets/{jsonMode-CMXGrtoZ.js → jsonMode-CDMOUPss.js} +1 -1
- package/dist/web-dist/assets/{julia-Bg58EZ4Y.js → julia-CZ0npMib.js} +1 -1
- package/dist/web-dist/assets/{keys-6E3ilH7R.js → keys-By5o7bPm.js} +1 -1
- package/dist/web-dist/assets/{kotlin-DW9Z0gYb.js → kotlin-BpW0qHIt.js} +1 -1
- package/dist/web-dist/assets/{label-Dcwj4aRe.js → label-C93T1BbF.js} +1 -1
- package/dist/web-dist/assets/{less-Bx9gqQ4s.js → less-DTBM-Kxp.js} +1 -1
- package/dist/web-dist/assets/{lexon-CSuDDXgE.js → lexon-CLOvNp8v.js} +1 -1
- package/dist/web-dist/assets/{liquid-BmNDruwv.js → liquid-IpfBCIUY.js} +1 -1
- package/dist/web-dist/assets/{logs-BgfXuAGG.js → logs-CnLvqVtL.js} +1 -1
- package/dist/web-dist/assets/{lspLanguageFeatures-CvWt81ki.js → lspLanguageFeatures-CnYZSn_O.js} +1 -1
- package/dist/web-dist/assets/{lua-CyCE05f5.js → lua-BERpVknn.js} +1 -1
- package/dist/web-dist/assets/{m3-B4TowLdg.js → m3-B_gILjHh.js} +1 -1
- package/dist/web-dist/assets/{markdown-DUAXYKYX.js → markdown-DamaZSqy.js} +1 -1
- package/dist/web-dist/assets/{mdx-DWKx4rlR.js → mdx-BTw_ghf-.js} +1 -1
- package/dist/web-dist/assets/{mermaid-GHXKKRXX-Ci1jaQj_.js → mermaid-GHXKKRXX-B7fOqMvZ.js} +1 -1
- package/dist/web-dist/assets/{middleware-YebY3a0i.js → middleware-DKaxoFZs.js} +1 -1
- package/dist/web-dist/assets/{mips-B8pYMMky.js → mips-BkjI-_01.js} +1 -1
- package/dist/web-dist/assets/{module-BfdI0fnl.js → module-BbdCXsK0.js} +1 -1
- package/dist/web-dist/assets/{monaco-theme-C8nJMjlg.js → monaco-theme-DkPj5STI.js} +4 -4
- package/dist/web-dist/assets/{msdax-Dl7lqaqA.js → msdax-5OSOIuww.js} +1 -1
- package/dist/web-dist/assets/{mysql-CxF1irIT.js → mysql-CMtxQW5J.js} +1 -1
- package/dist/web-dist/assets/{objective-c-nxQNwVWR.js → objective-c-CoW52So-.js} +1 -1
- package/dist/web-dist/assets/{overlay.store-D93IGU3a.js → overlay.store-BL-3zX6X.js} +1 -1
- package/dist/web-dist/assets/{pascal-CJDb1n8F.js → pascal-BxyU4sPJ.js} +1 -1
- package/dist/web-dist/assets/{pascaligo-DNMesjCc.js → pascaligo-C63_040U.js} +1 -1
- package/dist/web-dist/assets/{perl-Ct14C4yC.js → perl-ayfptt23.js} +1 -1
- package/dist/web-dist/assets/{personal-preferences.store-BXE0mRKp.js → personal-preferences.store-BIr71Re8.js} +1 -1
- package/dist/web-dist/assets/{pgsql-B2EenuF0.js → pgsql-CPGqMVI3.js} +1 -1
- package/dist/web-dist/assets/{php-D953oiSq.js → php-DA-YJ6wI.js} +1 -1
- package/dist/web-dist/assets/{pla-DTXlQw1d.js → pla-DesDCKWW.js} +1 -1
- package/dist/web-dist/assets/{postiats-JN8Ouz04.js → postiats-B8yhii_n.js} +1 -1
- package/dist/web-dist/assets/{powerquery-5V8-uvAS.js → powerquery-CG8tCOct.js} +1 -1
- package/dist/web-dist/assets/{powershell-CB8eXyFq.js → powershell-C68aZHza.js} +1 -1
- package/dist/web-dist/assets/{preload-helper-B3GI5Aqe.js → preload-helper-DZhPwQp1.js} +1 -1
- package/dist/web-dist/assets/{protobuf-B9TJJ9C4.js → protobuf-OaVxpJrs.js} +1 -1
- package/dist/web-dist/assets/{pug-Bm8fNuV-.js → pug-0lOSC2rA.js} +1 -1
- package/dist/web-dist/assets/{python-C5yAejbi.js → python-C8ab8TeJ.js} +1 -1
- package/dist/web-dist/assets/{qsharp-R8gbdykE.js → qsharp-BmHeDwNl.js} +1 -1
- package/dist/web-dist/assets/{queries.store-Qbtkt7ze.js → queries.store-Dwdw-Gej.js} +1 -1
- package/dist/web-dist/assets/{query-runner-DwuQkpxh.js → query-runner-C430BH5I.js} +3 -3
- package/dist/web-dist/assets/{r-M-_jtR31.js → r-DoHxhOJg.js} +1 -1
- package/dist/web-dist/assets/{radix-ui-41WpuKNR.js → radix-ui-ByvuE8TW.js} +1 -1
- package/dist/web-dist/assets/{razor-C1QqRako.js → razor-DynaHCXX.js} +1 -1
- package/dist/web-dist/assets/{react-46S5qMHL.js → react-CKF1H7h0.js} +1 -1
- package/dist/web-dist/assets/{react-dom-BmawA5F6.js → react-dom-DQQG0g0D.js} +1 -1
- package/dist/web-dist/assets/{redis-Se45CWCe.js → redis-CSL-jfR-.js} +1 -1
- package/dist/web-dist/assets/{redis-value-DG_0UKZy.js → redis-value-Bf0tOet0.js} +1 -1
- package/dist/web-dist/assets/{redshift-6LxiBjWf.js → redshift-Cb-LWZ8f.js} +1 -1
- package/dist/web-dist/assets/{restructuredtext-DQZZ8qkw.js → restructuredtext-DTqnvYsu.js} +1 -1
- package/dist/web-dist/assets/{rolldown-runtime-CpVMLIgb.js → rolldown-runtime-0wqQW3ea.js} +1 -1
- package/dist/web-dist/assets/{ruby-CCIHgGuA.js → ruby-DbgDuslH.js} +1 -1
- package/dist/web-dist/assets/{runner-DOkX5y17.js → runner-DFzqBXp0.js} +1 -1
- package/dist/web-dist/assets/{rust-DE79jE85.js → rust-CWzrsIL_.js} +1 -1
- package/dist/web-dist/assets/{sb-vTusoyll.js → sb-BghszYt-.js} +1 -1
- package/dist/web-dist/assets/{scala-BfDNOQ4o.js → scala-Cw9RU1Qz.js} +1 -1
- package/dist/web-dist/assets/schema-B_EtHxTf.js +1 -0
- package/dist/web-dist/assets/{schema-CgNnxiB7.js → schema-iTfBKwXl.js} +1 -1
- package/dist/web-dist/assets/{scheme-07Nz-Ikg.js → scheme-DeYmvmAH.js} +1 -1
- package/dist/web-dist/assets/{scss-C2T-BIyo.js → scss-D_S6B2H1.js} +1 -1
- package/dist/web-dist/assets/{select-DzeVPveq.js → select-DU0HoKZ4.js} +1 -1
- package/dist/web-dist/assets/{separator-3IoeVup6.js → separator-CZgXYjVQ.js} +1 -1
- package/dist/web-dist/assets/{sheet-sidebar-Bne7asEZ.js → sheet-sidebar-KvxY47ZZ.js} +1 -1
- package/dist/web-dist/assets/{shell-CYk99G96.js → shell-B59ItoUV.js} +1 -1
- package/dist/web-dist/assets/{solidity-DZfw6XST.js → solidity-De0h6YhL.js} +1 -1
- package/dist/web-dist/assets/{sophia-9ELY8Wd6.js → sophia-DWmKHYE0.js} +1 -1
- package/dist/web-dist/assets/{sparql-DBCoTLhO.js → sparql-0sKQlAae.js} +1 -1
- package/dist/web-dist/assets/{spinner-Z77kD_hS.js → spinner-FJ-tXoFX.js} +1 -1
- package/dist/web-dist/assets/{sql-DSSHZrVP.js → sql-Cafrv7gm.js} +1 -1
- package/dist/web-dist/assets/{st-9goatbhG.js → st-qkFqcB41.js} +1 -1
- package/dist/web-dist/assets/{swift-C8IWUoth.js → swift-CDPKFfVs.js} +1 -1
- package/dist/web-dist/assets/{systemverilog-DFmMGPsp.js → systemverilog-rjtBmhAJ.js} +1 -1
- package/dist/web-dist/assets/{table-Cwbi0FDw.js → table-DmoKTp5U.js} +1 -1
- package/dist/web-dist/assets/{tables-BPh2zM7Q.js → tables-By-PTDwU.js} +4 -4
- package/dist/web-dist/assets/{tanstack-BE6ru2gB.js → tanstack-Cb7WFPRi.js} +1 -1
- package/dist/web-dist/assets/{tcl-9sp6ieFk.js → tcl-C0NrUCCP.js} +1 -1
- package/dist/web-dist/assets/{tsMode-BjCfzjtF.js → tsMode-C2yuf0pi.js} +1 -1
- package/dist/web-dist/assets/{twig-PTQx-ucO.js → twig-RBrBABOf.js} +1 -1
- package/dist/web-dist/assets/{typescript-BGXEvFAl.js → typescript-DWkZjHjp.js} +1 -1
- package/dist/web-dist/assets/{typespec-k1Hrq-4g.js → typespec-DfQiGud4.js} +1 -1
- package/dist/web-dist/assets/{use-database-engine-CKCp55rb.js → use-database-engine-Mwmv8X7V.js} +1 -1
- package/dist/web-dist/assets/{use-theme-CLKCtULg.js → use-theme-BLw5dtZV.js} +1 -1
- package/dist/web-dist/assets/{utils-Cr2_fSDl.js → utils-awMbhLwX.js} +1 -1
- package/dist/web-dist/assets/{vb-BBuEtOk5.js → vb-BslxQW9i.js} +1 -1
- package/dist/web-dist/assets/{visualizer-XPaDmMrd.js → visualizer-LoD_yU5U.js} +1 -1
- package/dist/web-dist/assets/{vscode-jtB6jKBB.js → vscode-Ba8jYSS7.js} +1 -1
- package/dist/web-dist/assets/{wgsl-MO-DpoEc.js → wgsl-Bq67ZIFU.js} +1 -1
- package/dist/web-dist/assets/{workers-7JruDoqH.js → workers-rMl5Xrk2.js} +1 -1
- package/dist/web-dist/assets/{xml-C0nHIB7q.js → xml-PfDqoe6w.js} +1 -1
- package/dist/web-dist/assets/{yaml-CN9StMra.js → yaml-CIuY3cB5.js} +1 -1
- package/dist/web-dist/index.html +30 -30
- package/package.json +2 -3
- package/dist/web-dist/assets/_pathlessLayout-WF7WipqP.js +0 -2
- package/dist/web-dist/assets/schema-B8WxzFU1.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as lo,t as zt}from"./rolldown-runtime-CpVMLIgb.js";import{It as uo}from"./icons-D72QQyd5.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]="e1130cf5-1b8f-47dd-b377-81f364042435",e._sentryDebugIdIdentifier="sentry-dbid-e1130cf5-1b8f-47dd-b377-81f364042435")}catch{}})();var Pc=zt((e=>{var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(o,a,i){var c=null;if(i!==void 0&&(c=""+i),a.key!==void 0&&(c=""+a.key),"key"in a){i={};for(var u in a)u!=="key"&&(i[u]=a[u])}else i=a;return a=i.ref,{$$typeof:t,type:o,key:c,ref:a!==void 0?a:null,props:i}}e.Fragment=n,e.jsx=r,e.jsxs=r})),_c=zt(((e,t)=>{t.exports=Pc()})),Tc=zt((e=>{var t=uo();function n(d){var l="https://react.dev/errors/"+d;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)l+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+d+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var o={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for("react.portal");function i(d,l,f){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:v==null?null:""+v,children:d,containerInfo:l,implementation:f}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(d,l){if(d==="font")return"";if(typeof l=="string")return l==="use-credentials"?l:""}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,e.createPortal=function(d,l){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)throw Error(n(299));return i(d,l,null,f)},e.flushSync=function(d){var l=c.T,f=o.p;try{if(c.T=null,o.p=2,d)return d()}finally{c.T=l,o.p=f,o.d.f()}},e.preconnect=function(d,l){typeof d=="string"&&(l?(l=l.crossOrigin,l=typeof l=="string"?l==="use-credentials"?l:"":void 0):l=null,o.d.C(d,l))},e.prefetchDNS=function(d){typeof d=="string"&&o.d.D(d)},e.preinit=function(d,l){if(typeof d=="string"&&l&&typeof l.as=="string"){var f=l.as,v=u(f,l.crossOrigin),m=typeof l.integrity=="string"?l.integrity:void 0,x=typeof l.fetchPriority=="string"?l.fetchPriority:void 0;f==="style"?o.d.S(d,typeof l.precedence=="string"?l.precedence:void 0,{crossOrigin:v,integrity:m,fetchPriority:x}):f==="script"&&o.d.X(d,{crossOrigin:v,integrity:m,fetchPriority:x,nonce:typeof l.nonce=="string"?l.nonce:void 0})}},e.preinitModule=function(d,l){if(typeof d=="string")if(typeof l=="object"&&l!==null){if(l.as==null||l.as==="script"){var f=u(l.as,l.crossOrigin);o.d.M(d,{crossOrigin:f,integrity:typeof l.integrity=="string"?l.integrity:void 0,nonce:typeof l.nonce=="string"?l.nonce:void 0})}}else l??o.d.M(d)},e.preload=function(d,l){if(typeof d=="string"&&typeof l=="object"&&l!==null&&typeof l.as=="string"){var f=l.as,v=u(f,l.crossOrigin);o.d.L(d,f,{crossOrigin:v,integrity:typeof l.integrity=="string"?l.integrity:void 0,nonce:typeof l.nonce=="string"?l.nonce:void 0,type:typeof l.type=="string"?l.type:void 0,fetchPriority:typeof l.fetchPriority=="string"?l.fetchPriority:void 0,referrerPolicy:typeof l.referrerPolicy=="string"?l.referrerPolicy:void 0,imageSrcSet:typeof l.imageSrcSet=="string"?l.imageSrcSet:void 0,imageSizes:typeof l.imageSizes=="string"?l.imageSizes:void 0,media:typeof l.media=="string"?l.media:void 0})}},e.preloadModule=function(d,l){if(typeof d=="string")if(l){var f=u(l.as,l.crossOrigin);o.d.m(d,{as:typeof l.as=="string"&&l.as!=="script"?l.as:void 0,crossOrigin:f,integrity:typeof l.integrity=="string"?l.integrity:void 0})}else o.d.m(d)},e.requestFormReset=function(d){o.d.r(d)},e.unstable_batchedUpdates=function(d,l){return d(l)},e.useFormState=function(d,l,f){return c.H.useFormState(d,l,f)},e.useFormStatus=function(){return c.H.useHostTransitionStatus()},e.version="19.2.5"})),Ac=zt(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}n(),t.exports=Tc()})),s=lo(uo(),1),Hv=!!(typeof window<"u"&&window.document&&window.document.createElement);function S(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function Dr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ft(...e){return t=>{let n=!1;const r=e.map(o=>{const a=Dr(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():Dr(e[o],null)}}}}function D(...e){return s.useCallback(ft(...e),e)}var p=_c();function Mc(e,t){const n=s.createContext(t),r=a=>{const{children:i,...c}=a,u=s.useMemo(()=>c,Object.values(c));return(0,p.jsx)(n.Provider,{value:u,children:i})};r.displayName=e+"Provider";function o(a){const i=s.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function q(e,t=[]){let n=[];function r(a,i){const c=s.createContext(i),u=n.length;n=[...n,i];const d=f=>{const{scope:v,children:m,...x}=f,h=v?.[e]?.[u]||c,g=s.useMemo(()=>x,Object.values(x));return(0,p.jsx)(h.Provider,{value:g,children:m})};d.displayName=a+"Provider";function l(f,v){const m=v?.[e]?.[u]||c,x=s.useContext(m);if(x)return x;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[d,l]}const o=()=>{const a=n.map(i=>s.createContext(i));return function(c){const u=c?.[e]||a;return s.useMemo(()=>({[`__scope${e}`]:{...c,[e]:u}}),[c,u])}};return o.scopeName=e,[r,Oc(o,...t)]}function Oc(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((c,{useScope:u,scopeName:d})=>{const l=u(a)[`__scope${d}`];return{...c,...l}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var pt=lo(Ac(),1);function ke(e){const t=Nc(e),n=s.forwardRef((r,o)=>{const{children:a,...i}=r,c=s.Children.toArray(a),u=c.find(Ic);if(u){const d=u.props.children,l=c.map(f=>f===u?s.Children.count(d)>1?s.Children.only(null):s.isValidElement(d)?d.props.children:null:f);return(0,p.jsx)(t,{...i,ref:o,children:s.isValidElement(d)?s.cloneElement(d,void 0,l):null})}return(0,p.jsx)(t,{...i,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function Nc(e){const t=s.forwardRef((n,r)=>{const{children:o,...a}=n;if(s.isValidElement(o)){const i=jc(o),c=Dc(a,o.props);return o.type!==s.Fragment&&(c.ref=r?ft(r,i):i),s.cloneElement(o,c)}return s.Children.count(o)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var fo=Symbol("radix.slottable");function po(e){const t=({children:n})=>(0,p.jsx)(p.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=fo,t}function Ic(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===fo}function Dc(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...i)=>{const c=a(...i);return o(...i),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function jc(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var T=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=ke(`Primitive.${t}`),r=s.forwardRef((o,a)=>{const{asChild:i,...c}=o,u=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,p.jsx)(u,{...c,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function vo(e,t){e&&pt.flushSync(()=>e.dispatchEvent(t))}function K(e){const t=s.useRef(e);return s.useEffect(()=>{t.current=e}),s.useMemo(()=>(...n)=>t.current?.(...n),[])}function Lc(e,t=globalThis?.document){const n=K(e);s.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var kc="DismissableLayer",Dn="dismissableLayer.update",Fc="dismissableLayer.pointerDownOutside",$c="dismissableLayer.focusOutside",jr,ho=s.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qe=s.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:c,...u}=e,d=s.useContext(ho),[l,f]=s.useState(null),v=l?.ownerDocument??globalThis?.document,[,m]=s.useState({}),x=D(t,E=>f(E)),h=Array.from(d.layers),[g]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=h.indexOf(g),w=l?h.indexOf(l):-1,C=d.layersWithOutsidePointerEventsDisabled.size>0,b=w>=y,P=Hc(E=>{const M=E.target,A=[...d.branches].some(O=>O.contains(M));!b||A||(o?.(E),i?.(E),E.defaultPrevented||c?.())},v),R=Gc(E=>{const M=E.target;[...d.branches].some(A=>A.contains(M))||(a?.(E),i?.(E),E.defaultPrevented||c?.())},v);return Lc(E=>{w===d.layers.size-1&&(r?.(E),!E.defaultPrevented&&c&&(E.preventDefault(),c()))},v),s.useEffect(()=>{if(l)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(jr=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(l)),d.layers.add(l),Lr(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=jr)}},[l,v,n,d]),s.useEffect(()=>()=>{l&&(d.layers.delete(l),d.layersWithOutsidePointerEventsDisabled.delete(l),Lr())},[l,d]),s.useEffect(()=>{const E=()=>m({});return document.addEventListener(Dn,E),()=>document.removeEventListener(Dn,E)},[]),(0,p.jsx)(T.div,{...u,ref:x,style:{pointerEvents:C?b?"auto":"none":void 0,...e.style},onFocusCapture:S(e.onFocusCapture,R.onFocusCapture),onBlurCapture:S(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:S(e.onPointerDownCapture,P.onPointerDownCapture)})});Qe.displayName=kc;var Bc="DismissableLayerBranch",Wc=s.forwardRef((e,t)=>{const n=s.useContext(ho),r=s.useRef(null),o=D(t,r);return s.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),(0,p.jsx)(T.div,{...e,ref:o})});Wc.displayName=Bc;function Hc(e,t=globalThis?.document){const n=K(e),r=s.useRef(!1),o=s.useRef(()=>{});return s.useEffect(()=>{const a=c=>{if(c.target&&!r.current){let u=function(){mo(Fc,n,d,{discrete:!0})};const d={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Gc(e,t=globalThis?.document){const n=K(e),r=s.useRef(!1);return s.useEffect(()=>{const o=a=>{a.target&&!r.current&&mo($c,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Lr(){const e=new CustomEvent(Dn);document.dispatchEvent(e)}function mo(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?vo(o,a):o.dispatchEvent(a)}var Y=globalThis?.document?s.useLayoutEffect:()=>{},Uc=s[" useId ".trim().toString()]||(()=>{}),Vc=0;function re(e){const[t,n]=s.useState(Uc());return Y(()=>{e||n(r=>r??String(Vc++))},[e]),e||(t?`radix-${t}`:"")}var Kc=["top","right","bottom","left"],Te=Math.min,se=Math.max,jt=Math.round,Rt=Math.floor,xe=e=>({x:e,y:e}),zc={left:"right",right:"left",bottom:"top",top:"bottom"};function jn(e,t,n){return se(e,Te(t,n))}function be(e,t){return typeof e=="function"?e(t):e}function Se(e){return e.split("-")[0]}function Je(e){return e.split("-")[1]}function Xn(e){return e==="x"?"y":"x"}function qn(e){return e==="y"?"height":"width"}function ge(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Zn(e){return Xn(ge(e))}function Yc(e,t,n){n===void 0&&(n=!1);const r=Je(e),o=Zn(e),a=qn(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=Lt(i)),[i,Lt(i)]}function Xc(e){const t=Lt(e);return[Ln(e),t,Ln(t)]}function Ln(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var kr=["left","right"],Fr=["right","left"],qc=["top","bottom"],Zc=["bottom","top"];function Qc(e,t,n){switch(e){case"top":case"bottom":return n?t?Fr:kr:t?kr:Fr;case"left":case"right":return t?qc:Zc;default:return[]}}function Jc(e,t,n,r){const o=Je(e);let a=Qc(Se(e),n==="start",r);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(Ln)))),a}function Lt(e){const t=Se(e);return zc[t]+e.slice(t.length)}function el(e){return{top:0,right:0,bottom:0,left:0,...e}}function go(e){return typeof e!="number"?el(e):{top:e,right:e,bottom:e,left:e}}function kt(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function $r(e,t,n){let{reference:r,floating:o}=e;const a=ge(t),i=Zn(t),c=qn(i),u=Se(t),d=a==="y",l=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,v=r[c]/2-o[c]/2;let m;switch(u){case"top":m={x:l,y:r.y-o.height};break;case"bottom":m={x:l,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-o.width,y:f};break;default:m={x:r.x,y:r.y}}switch(Je(t)){case"start":m[i]-=v*(n&&d?-1:1);break;case"end":m[i]+=v*(n&&d?-1:1)}return m}async function tl(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:i,elements:c,strategy:u}=e,{boundary:d="clippingAncestors",rootBoundary:l="viewport",elementContext:f="floating",altBoundary:v=!1,padding:m=0}=be(t,e),x=go(m),h=c[v?f==="floating"?"reference":"floating":f],g=kt(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(h)))==null||n?h:h.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:d,rootBoundary:l,strategy:u})),y=f==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),C=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},b=kt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:w,strategy:u}):y);return{top:(g.top-b.top+x.top)/C.y,bottom:(b.bottom-g.bottom+x.bottom)/C.y,left:(g.left-b.left+x.left)/C.x,right:(b.right-g.right+x.right)/C.x}}var nl=50,rl=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,c=i.detectOverflow?i:{...i,detectOverflow:tl},u=await(i.isRTL==null?void 0:i.isRTL(t));let d=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:l,y:f}=$r(d,r,u),v=r,m=0;const x={};for(let h=0;h<a.length;h++){const g=a[h];if(!g)continue;const{name:y,fn:w}=g,{x:C,y:b,data:P,reset:R}=await w({x:l,y:f,initialPlacement:r,placement:v,strategy:o,middlewareData:x,rects:d,platform:c,elements:{reference:e,floating:t}});l=C??l,f=b??f,x[y]={...x[y],...P},R&&m<nl&&(m++,typeof R=="object"&&(R.placement&&(v=R.placement),R.rects&&(d=R.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):R.rects),{x:l,y:f}=$r(d,v,u)),h=-1)}return{x:l,y:f,placement:v,strategy:o,middlewareData:x}},ol=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:c,middlewareData:u}=t,{element:d,padding:l=0}=be(e,t)||{};if(d==null)return{};const f=go(l),v={x:n,y:r},m=Zn(o),x=qn(m),h=await i.getDimensions(d),g=m==="y",y=g?"top":"left",w=g?"bottom":"right",C=g?"clientHeight":"clientWidth",b=a.reference[x]+a.reference[m]-v[m]-a.floating[x],P=v[m]-a.reference[m],R=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d));let E=R?R[C]:0;(!E||!await(i.isElement==null?void 0:i.isElement(R)))&&(E=c.floating[C]||a.floating[x]);const M=b/2-P/2,A=E/2-h[x]/2-1,O=Te(f[y],A),j=Te(f[w],A),L=O,W=E-h[x]-j,F=E/2-h[x]/2+M,H=jn(L,F,W),k=!u.arrow&&Je(o)!=null&&F!==H&&a.reference[x]/2-(F<L?O:j)-h[x]/2<0,$=k?F<L?F-L:F-W:0;return{[m]:v[m]+$,data:{[m]:H,centerOffset:F-H-$,...k&&{alignmentOffset:$}},reset:k}}}),al=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:c,platform:u,elements:d}=t,{mainAxis:l=!0,crossAxis:f=!0,fallbackPlacements:v,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:h=!0,...g}=be(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=Se(o),w=ge(c),C=Se(c)===c,b=await(u.isRTL==null?void 0:u.isRTL(d.floating)),P=v||(C||!h?[Lt(c)]:Xc(c)),R=x!=="none";!v&&R&&P.push(...Jc(c,h,x,b));const E=[c,...P],M=await u.detectOverflow(t,g),A=[];let O=((r=a.flip)==null?void 0:r.overflows)||[];if(l&&A.push(M[y]),f){const F=Yc(o,i,b);A.push(M[F[0]],M[F[1]])}if(O=[...O,{placement:o,overflows:A}],!A.every(F=>F<=0)){var j,L;const F=(((j=a.flip)==null?void 0:j.index)||0)+1,H=E[F];if(H&&(!(f==="alignment"&&w!==ge(H))||O.every($=>ge($.placement)===w?$.overflows[0]>0:!0)))return{data:{index:F,overflows:O},reset:{placement:H}};let k=(L=O.filter($=>$.overflows[0]<=0).sort(($,I)=>$.overflows[1]-I.overflows[1])[0])==null?void 0:L.placement;if(!k)switch(m){case"bestFit":{var W;const $=(W=O.filter(I=>{if(R){const _=ge(I.placement);return _===w||_==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(_=>_>0).reduce((_,U)=>_+U,0)]).sort((I,_)=>I[1]-_[1])[0])==null?void 0:W[0];$&&(k=$);break}case"initialPlacement":k=c}if(o!==k)return{reset:{placement:k}}}return{}}}};function Br(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Wr(e){return Kc.some(t=>e[t]>=0)}var sl=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...a}=be(e,t);switch(o){case"referenceHidden":{const i=Br(await r.detectOverflow(t,{...a,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Wr(i)}}}case"escaped":{const i=Br(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:i,escaped:Wr(i)}}}default:return{}}}}},xo=new Set(["left","top"]);async function il(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Se(n),c=Je(n),u=ge(n)==="y",d=xo.has(i)?-1:1,l=a&&u?-1:1,f=be(t,e);let{mainAxis:v,crossAxis:m,alignmentAxis:x}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return c&&typeof x=="number"&&(m=c==="end"?x*-1:x),u?{x:m*l,y:v*d}:{x:v*d,y:m*l}}var cl=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:c}=t,u=await il(t,e);return i===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+u.x,y:a+u.y,data:{...u,placement:i}}}}},ll=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:a}=t,{mainAxis:i=!0,crossAxis:c=!1,limiter:u={fn:y=>{let{x:w,y:C}=y;return{x:w,y:C}}},...d}=be(e,t),l={x:n,y:r},f=await a.detectOverflow(t,d),v=ge(Se(o)),m=Xn(v);let x=l[m],h=l[v];if(i){const y=m==="y"?"top":"left",w=m==="y"?"bottom":"right",C=x+f[y],b=x-f[w];x=jn(C,x,b)}if(c){const y=v==="y"?"top":"left",w=v==="y"?"bottom":"right",C=h+f[y],b=h-f[w];h=jn(C,h,b)}const g=u.fn({...t,[m]:x,[v]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[m]:i,[v]:c}}}}}},ul=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:c=0,mainAxis:u=!0,crossAxis:d=!0}=be(e,t),l={x:n,y:r},f=ge(o),v=Xn(f);let m=l[v],x=l[f];const h=be(c,t),g=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(u){const C=v==="y"?"height":"width",b=a.reference[v]-a.floating[C]+g.mainAxis,P=a.reference[v]+a.reference[C]-g.mainAxis;m<b?m=b:m>P&&(m=P)}if(d){var y,w;const C=v==="y"?"width":"height",b=xo.has(Se(o)),P=a.reference[f]-a.floating[C]+(b&&((y=i.offset)==null?void 0:y[f])||0)+(b?0:g.crossAxis),R=a.reference[f]+a.reference[C]+(b?0:((w=i.offset)==null?void 0:w[f])||0)-(b?g.crossAxis:0);x<P?x=P:x>R&&(x=R)}return{[v]:m,[f]:x}}}},dl=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:i,elements:c}=t,{apply:u=()=>{},...d}=be(e,t),l=await i.detectOverflow(t,d),f=Se(o),v=Je(o),m=ge(o)==="y",{width:x,height:h}=a.floating;let g,y;f==="top"||f==="bottom"?(g=f,y=v===(await(i.isRTL==null?void 0:i.isRTL(c.floating))?"start":"end")?"left":"right"):(y=f,g=v==="end"?"top":"bottom");const w=h-l.top-l.bottom,C=x-l.left-l.right,b=Te(h-l[g],w),P=Te(x-l[y],C),R=!t.middlewareData.shift;let E=b,M=P;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(M=C),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=w),R&&!v){const O=se(l.left,0),j=se(l.right,0),L=se(l.top,0),W=se(l.bottom,0);m?M=x-2*(O!==0||j!==0?O+j:se(l.left,l.right)):E=h-2*(L!==0||W!==0?L+W:se(l.top,l.bottom))}await u({...t,availableWidth:M,availableHeight:E});const A=await i.getDimensions(c.floating);return x!==A.width||h!==A.height?{reset:{rects:!0}}:{}}}};function Yt(){return typeof window<"u"}function et(e){return wo(e)?(e.nodeName||"").toLowerCase():"#document"}function ie(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function we(e){var t;return(t=(wo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function wo(e){return Yt()?e instanceof Node||e instanceof ie(e).Node:!1}function fe(e){return Yt()?e instanceof Element||e instanceof ie(e).Element:!1}function Ee(e){return Yt()?e instanceof HTMLElement||e instanceof ie(e).HTMLElement:!1}function Hr(e){return!Yt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ie(e).ShadowRoot}function vt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=pe(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function fl(e){return/^(table|td|th)$/.test(et(e))}function Xt(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var pl=/transform|translate|scale|rotate|perspective|filter/,vl=/paint|layout|strict|content/,Le=e=>!!e&&e!=="none",Sn;function Qn(e){const t=fe(e)?pe(e):e;return Le(t.transform)||Le(t.translate)||Le(t.scale)||Le(t.rotate)||Le(t.perspective)||!Jn()&&(Le(t.backdropFilter)||Le(t.filter))||pl.test(t.willChange||"")||vl.test(t.contain||"")}function hl(e){let t=Ae(e);for(;Ee(t)&&!Ye(t);){if(Qn(t))return t;if(Xt(t))return null;t=Ae(t)}return null}function Jn(){return Sn==null&&(Sn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Sn}function Ye(e){return/^(html|body|#document)$/.test(et(e))}function pe(e){return ie(e).getComputedStyle(e)}function qt(e){return fe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ae(e){if(et(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Hr(e)&&e.host||we(e);return Hr(t)?t.host:t}function yo(e){const t=Ae(e);return Ye(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ee(t)&&vt(t)?t:yo(t)}function ct(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=yo(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),i=ie(o);if(a){const c=kn(i);return t.concat(i,i.visualViewport||[],vt(o)?o:[],c&&n?ct(c):[])}else return t.concat(o,ct(o,[],n))}function kn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Co(e){const t=pe(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ee(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,c=jt(n)!==a||jt(r)!==i;return c&&(n=a,r=i),{width:n,height:r,$:c}}function er(e){return fe(e)?e:e.contextElement}function Ke(e){const t=er(e);if(!Ee(t))return xe(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Co(t);let i=(a?jt(n.width):n.width)/r,c=(a?jt(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!c||!Number.isFinite(c))&&(c=1),{x:i,y:c}}var ml=xe(0);function bo(e){const t=ie(e);return!Jn()||!t.visualViewport?ml:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function gl(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ie(e)?!1:t}function Fe(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=er(e);let i=xe(1);t&&(r?fe(r)&&(i=Ke(r)):i=Ke(e));const c=gl(a,n,r)?bo(a):xe(0);let u=(o.left+c.x)/i.x,d=(o.top+c.y)/i.y,l=o.width/i.x,f=o.height/i.y;if(a){const v=ie(a),m=r&&fe(r)?ie(r):r;let x=v,h=kn(x);for(;h&&r&&m!==x;){const g=Ke(h),y=h.getBoundingClientRect(),w=pe(h),C=y.left+(h.clientLeft+parseFloat(w.paddingLeft))*g.x,b=y.top+(h.clientTop+parseFloat(w.paddingTop))*g.y;u*=g.x,d*=g.y,l*=g.x,f*=g.y,u+=C,d+=b,x=ie(h),h=kn(x)}}return kt({width:l,height:f,x:u,y:d})}function Zt(e,t){const n=qt(e).scrollLeft;return t?t.left+n:Fe(we(e)).left+n}function So(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Zt(e,n),y:n.top+t.scrollTop}}function xl(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",i=we(r),c=t?Xt(t.floating):!1;if(r===i||c&&a)return n;let u={scrollLeft:0,scrollTop:0},d=xe(1);const l=xe(0),f=Ee(r);if((f||!f&&!a)&&((et(r)!=="body"||vt(i))&&(u=qt(r)),f)){const m=Fe(r);d=Ke(r),l.x=m.x+r.clientLeft,l.y=m.y+r.clientTop}const v=i&&!f&&!a?So(i,u):xe(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-u.scrollLeft*d.x+l.x+v.x,y:n.y*d.y-u.scrollTop*d.y+l.y+v.y}}function wl(e){return Array.from(e.getClientRects())}function yl(e){const t=we(e),n=qt(e),r=e.ownerDocument.body,o=se(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=se(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Zt(e);const c=-n.scrollTop;return pe(r).direction==="rtl"&&(i+=se(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:c}}var Gr=25;function Cl(e,t){const n=ie(e),r=we(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,c=0,u=0;if(o){a=o.width,i=o.height;const l=Jn();(!l||l&&t==="fixed")&&(c=o.offsetLeft,u=o.offsetTop)}const d=Zt(r);if(d<=0){const l=r.ownerDocument,f=l.body,v=getComputedStyle(f),m=l.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,x=Math.abs(r.clientWidth-f.clientWidth-m);x<=Gr&&(a-=x)}else d<=Gr&&(a+=d);return{width:a,height:i,x:c,y:u}}function bl(e,t){const n=Fe(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Ee(e)?Ke(e):xe(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}function Ur(e,t,n){let r;if(t==="viewport")r=Cl(e,n);else if(t==="document")r=yl(we(e));else if(fe(t))r=bl(t,n);else{const o=bo(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return kt(r)}function Eo(e,t){const n=Ae(e);return n===t||!fe(n)||Ye(n)?!1:pe(n).position==="fixed"||Eo(n,t)}function Sl(e,t){const n=t.get(e);if(n)return n;let r=ct(e,[],!1).filter(c=>fe(c)&&et(c)!=="body"),o=null;const a=pe(e).position==="fixed";let i=a?Ae(e):e;for(;fe(i)&&!Ye(i);){const c=pe(i),u=Qn(i);!u&&c.position==="fixed"&&(o=null),(a?!u&&!o:!u&&c.position==="static"&&o&&(o.position==="absolute"||o.position==="fixed")||vt(i)&&!u&&Eo(e,i))?r=r.filter(d=>d!==i):o=c,i=Ae(i)}return t.set(e,r),r}function El(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Xt(t)?[]:Sl(t,this._c):[].concat(n),r],i=Ur(t,a[0],o);let c=i.top,u=i.right,d=i.bottom,l=i.left;for(let f=1;f<a.length;f++){const v=Ur(t,a[f],o);c=se(v.top,c),u=Te(v.right,u),d=Te(v.bottom,d),l=se(v.left,l)}return{width:u-l,height:d-c,x:l,y:c}}function Rl(e){const{width:t,height:n}=Co(e);return{width:t,height:n}}function Pl(e,t,n){const r=Ee(t),o=we(t),a=n==="fixed",i=Fe(e,!0,a,t);let c={scrollLeft:0,scrollTop:0};const u=xe(0);function d(){u.x=Zt(o)}if(r||!r&&!a)if((et(t)!=="body"||vt(o))&&(c=qt(t)),r){const f=Fe(t,!0,a,t);u.x=f.x+t.clientLeft,u.y=f.y+t.clientTop}else o&&d();a&&!r&&o&&d();const l=o&&!r&&!a?So(o,c):xe(0);return{x:i.left+c.scrollLeft-u.x-l.x,y:i.top+c.scrollTop-u.y-l.y,width:i.width,height:i.height}}function En(e){return pe(e).position==="static"}function Vr(e,t){if(!Ee(e)||pe(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return we(e)===n&&(n=n.ownerDocument.body),n}function Ro(e,t){const n=ie(e);if(Xt(e))return n;if(!Ee(e)){let o=Ae(e);for(;o&&!Ye(o);){if(fe(o)&&!En(o))return o;o=Ae(o)}return n}let r=Vr(e,t);for(;r&&fl(r)&&En(r);)r=Vr(r,t);return r&&Ye(r)&&En(r)&&!Qn(r)?n:r||hl(e)||n}var _l=async function(e){const t=this.getOffsetParent||Ro,n=this.getDimensions,r=await n(e.floating);return{reference:Pl(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Tl(e){return pe(e).direction==="rtl"}var Al={convertOffsetParentRelativeRectToViewportRelativeRect:xl,getDocumentElement:we,getClippingRect:El,getOffsetParent:Ro,getElementRects:_l,getClientRects:wl,getDimensions:Rl,getScale:Ke,isElement:fe,isRTL:Tl};function Po(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ml(e,t){let n=null,r;const o=we(e);function a(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function i(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),a();const d=e.getBoundingClientRect(),{left:l,top:f,width:v,height:m}=d;if(c||t(),!v||!m)return;const x=Rt(f),h=Rt(o.clientWidth-(l+v)),g=Rt(o.clientHeight-(f+m)),y=Rt(l),w={rootMargin:-x+"px "+-h+"px "+-g+"px "+-y+"px",threshold:se(0,Te(1,u))||1};let C=!0;function b(P){const R=P[0].intersectionRatio;if(R!==u){if(!C)return i();R?i(!1,R):r=setTimeout(()=>{i(!1,1e-7)},1e3)}R===1&&!Po(d,e.getBoundingClientRect())&&i(),C=!1}try{n=new IntersectionObserver(b,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(b,w)}n.observe(e)}return i(!0),a}function Ol(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,d=er(e),l=o||a?[...d?ct(d):[],...t?ct(t):[]]:[];l.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const f=d&&c?Ml(d,n):null;let v=-1,m=null;i&&(m=new ResizeObserver(y=>{let[w]=y;w&&w.target===d&&m&&t&&(m.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var C;(C=m)==null||C.observe(t)})),n()}),d&&!u&&m.observe(d),t&&m.observe(t));let x,h=u?Fe(e):null;u&&g();function g(){const y=Fe(e);h&&!Po(h,y)&&n(),h=y,x=requestAnimationFrame(g)}return n(),()=>{var y;l.forEach(w=>{o&&w.removeEventListener("scroll",n),a&&w.removeEventListener("resize",n)}),f?.(),(y=m)==null||y.disconnect(),m=null,u&&cancelAnimationFrame(x)}}var Nl=cl,Il=ll,Dl=al,jl=dl,Ll=sl,Kr=ol,kl=ul,Fl=(e,t,n)=>{const r=new Map,o={platform:Al,...n},a={...o.platform,_c:r};return rl(e,t,{...o,platform:a})},Nt=typeof document<"u"?s.useLayoutEffect:function(){};function Ft(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ft(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!Ft(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function _o(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function zr(e,t){const n=_o(e);return Math.round(t*n)/n}function Rn(e){const t=s.useRef(e);return Nt(()=>{t.current=e}),t}function $l(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:c=!0,whileElementsMounted:u,open:d}=e,[l,f]=s.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,m]=s.useState(r);Ft(v,r)||m(r);const[x,h]=s.useState(null),[g,y]=s.useState(null),w=s.useCallback(I=>{I!==R.current&&(R.current=I,h(I))},[]),C=s.useCallback(I=>{I!==E.current&&(E.current=I,y(I))},[]),b=a||x,P=i||g,R=s.useRef(null),E=s.useRef(null),M=s.useRef(l),A=u!=null,O=Rn(u),j=Rn(o),L=Rn(d),W=s.useCallback(()=>{if(!R.current||!E.current)return;const I={placement:t,strategy:n,middleware:v};j.current&&(I.platform=j.current),Fl(R.current,E.current,I).then(_=>{const U={..._,isPositioned:L.current!==!1};F.current&&!Ft(M.current,U)&&(M.current=U,pt.flushSync(()=>{f(U)}))})},[v,t,n,j,L]);Nt(()=>{d===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,f(I=>({...I,isPositioned:!1})))},[d]);const F=s.useRef(!1);Nt(()=>(F.current=!0,()=>{F.current=!1}),[]),Nt(()=>{if(b&&(R.current=b),P&&(E.current=P),b&&P){if(O.current)return O.current(b,P,W);W()}},[b,P,W,O,A]);const H=s.useMemo(()=>({reference:R,floating:E,setReference:w,setFloating:C}),[w,C]),k=s.useMemo(()=>({reference:b,floating:P}),[b,P]),$=s.useMemo(()=>{const I={position:n,left:0,top:0};if(!k.floating)return I;const _=zr(k.floating,l.x),U=zr(k.floating,l.y);return c?{...I,transform:"translate("+_+"px, "+U+"px)",..._o(k.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:_,top:U}},[n,c,k.floating,l.x,l.y]);return s.useMemo(()=>({...l,update:W,refs:H,elements:k,floatingStyles:$}),[l,W,H,k,$])}var Bl=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Kr({element:r.current,padding:o}).fn(n):{}:r?Kr({element:r,padding:o}).fn(n):{}}}},Wl=(e,t)=>{const n=Nl(e);return{name:n.name,fn:n.fn,options:[e,t]}},Hl=(e,t)=>{const n=Il(e);return{name:n.name,fn:n.fn,options:[e,t]}},Gl=(e,t)=>({fn:kl(e).fn,options:[e,t]}),Ul=(e,t)=>{const n=Dl(e);return{name:n.name,fn:n.fn,options:[e,t]}},Vl=(e,t)=>{const n=jl(e);return{name:n.name,fn:n.fn,options:[e,t]}},Kl=(e,t)=>{const n=Ll(e);return{name:n.name,fn:n.fn,options:[e,t]}},zl=(e,t)=>{const n=Bl(e);return{name:n.name,fn:n.fn,options:[e,t]}},Yl="Arrow",To=s.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return(0,p.jsx)(T.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,p.jsx)("polygon",{points:"0,0 30,0 15,10"})})});To.displayName=Yl;var Xl=To;function tr(e){const[t,n]=s.useState(void 0);return Y(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,c;if("borderBoxSize"in a){const u=a.borderBoxSize,d=Array.isArray(u)?u[0]:u;i=d.inlineSize,c=d.blockSize}else i=e.offsetWidth,c=e.offsetHeight;n({width:i,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var nr="Popper",[Ao,Me]=q(nr),[ql,Mo]=Ao(nr),Oo=e=>{const{__scopePopper:t,children:n}=e,[r,o]=s.useState(null);return(0,p.jsx)(ql,{scope:t,anchor:r,onAnchorChange:o,children:n})};Oo.displayName=nr;var No="PopperAnchor",Io=s.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=Mo(No,n),i=s.useRef(null),c=D(t,i),u=s.useRef(null);return s.useEffect(()=>{const d=u.current;u.current=r?.current||i.current,d!==u.current&&a.onAnchorChange(u.current)}),r?null:(0,p.jsx)(T.div,{...o,ref:c})});Io.displayName=No;var rr="PopperContent",[Zl,Ql]=Ao(rr),Do=s.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:c=0,avoidCollisions:u=!0,collisionBoundary:d=[],collisionPadding:l=0,sticky:f="partial",hideWhenDetached:v=!1,updatePositionStrategy:m="optimized",onPlaced:x,...h}=e,g=Mo(rr,n),[y,w]=s.useState(null),C=D(t,N=>w(N)),[b,P]=s.useState(null),R=tr(b),E=R?.width??0,M=R?.height??0,A=r+(a!=="center"?"-"+a:""),O=typeof l=="number"?l:{top:0,right:0,bottom:0,left:0,...l},j=Array.isArray(d)?d:[d],L=j.length>0,W={padding:O,boundary:j.filter(eu),altBoundary:L},{refs:F,floatingStyles:H,placement:k,isPositioned:$,middlewareData:I}=$l({strategy:"fixed",placement:A,whileElementsMounted:(...N)=>Ol(...N,{animationFrame:m==="always"}),elements:{reference:g.anchor},middleware:[Wl({mainAxis:o+M,alignmentAxis:i}),u&&Hl({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?Gl():void 0,...W}),u&&Ul({...W}),Vl({...W,apply:({elements:N,rects:V,availableWidth:G,availableHeight:B})=>{const{width:Z,height:ne}=V.reference,he=N.floating.style;he.setProperty("--radix-popper-available-width",`${G}px`),he.setProperty("--radix-popper-available-height",`${B}px`),he.setProperty("--radix-popper-anchor-width",`${Z}px`),he.setProperty("--radix-popper-anchor-height",`${ne}px`)}}),b&&zl({element:b,padding:c}),tu({arrowWidth:E,arrowHeight:M}),v&&Kl({strategy:"referenceHidden",...W})]}),[_,U]=ko(k),te=K(x);Y(()=>{$&&te?.()},[$,te]);const ue=I.arrow?.x,Ce=I.arrow?.y,oe=I.arrow?.centerOffset!==0,[ae,X]=s.useState();return Y(()=>{y&&X(window.getComputedStyle(y).zIndex)},[y]),(0,p.jsx)("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:$?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ae,"--radix-popper-transform-origin":[I.transformOrigin?.x,I.transformOrigin?.y].join(" "),...I.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,p.jsx)(Zl,{scope:n,placedSide:_,onArrowChange:P,arrowX:ue,arrowY:Ce,shouldHideArrow:oe,children:(0,p.jsx)(T.div,{"data-side":_,"data-align":U,...h,ref:C,style:{...h.style,animation:$?void 0:"none"}})})})});Do.displayName=rr;var jo="PopperArrow",Jl={top:"bottom",right:"left",bottom:"top",left:"right"},Lo=s.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=Ql(jo,r),i=Jl[a.placedSide];return(0,p.jsx)("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:(0,p.jsx)(Xl,{...o,ref:n,style:{...o.style,display:"block"}})})});Lo.displayName=jo;function eu(e){return e!==null}var tu=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,a=o.arrow?.centerOffset!==0,i=a?0:e.arrowWidth,c=a?0:e.arrowHeight,[u,d]=ko(n),l={start:"0%",center:"50%",end:"100%"}[d],f=(o.arrow?.x??0)+i/2,v=(o.arrow?.y??0)+c/2;let m="",x="";return u==="bottom"?(m=a?l:`${f}px`,x=`${-c}px`):u==="top"?(m=a?l:`${f}px`,x=`${r.floating.height+c}px`):u==="right"?(m=`${-c}px`,x=a?l:`${v}px`):u==="left"&&(m=`${r.floating.width+c}px`,x=a?l:`${v}px`),{data:{x:m,y:x}}}});function ko(e){const[t,n="center"]=e.split("-");return[t,n]}var ht=Oo,mt=Io,Qt=Do,Jt=Lo,nu="Portal",tt=s.forwardRef((e,t)=>{const{container:n,...r}=e,[o,a]=s.useState(!1);Y(()=>a(!0),[]);const i=n||o&&globalThis?.document?.body;return i?pt.createPortal((0,p.jsx)(T.div,{...r,ref:t}),i):null});tt.displayName=nu;function ru(e,t){return s.useReducer((n,r)=>t[n][r]??n,e)}var z=e=>{const{present:t,children:n}=e,r=ou(t),o=typeof n=="function"?n({present:r.isPresent}):s.Children.only(n),a=D(r.ref,au(o));return typeof n=="function"||r.isPresent?s.cloneElement(o,{ref:a}):null};z.displayName="Presence";function ou(e){const[t,n]=s.useState(),r=s.useRef(null),o=s.useRef(e),a=s.useRef("none"),[i,c]=ru(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return s.useEffect(()=>{const u=Pt(r.current);a.current=i==="mounted"?u:"none"},[i]),Y(()=>{const u=r.current,d=o.current;if(d!==e){const l=a.current,f=Pt(u);e?c("MOUNT"):f==="none"||u?.display==="none"?c("UNMOUNT"):c(d&&l!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Y(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,l=v=>{const m=Pt(r.current).includes(CSS.escape(v.animationName));if(v.target===t&&m&&(c("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},f=v=>{v.target===t&&(a.current=Pt(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:s.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Pt(e){return e?.animationName||"none"}function au(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var su=s[" useInsertionEffect ".trim().toString()]||Y;function Q({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,i]=iu({defaultProp:t,onChange:n}),c=e!==void 0,u=c?e:o;{const d=s.useRef(e!==void 0);s.useEffect(()=>{const l=d.current;l!==c&&console.warn(`${r} is changing from ${l?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=c},[c,r])}return[u,s.useCallback(d=>{if(c){const l=cu(d)?d(e):d;l!==e&&i.current?.(l)}else a(d)},[c,e,a,i])]}function iu({defaultProp:e,onChange:t}){const[n,r]=s.useState(e),o=s.useRef(n),a=s.useRef(t);return su(()=>{a.current=t},[t]),s.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}function cu(e){return typeof e=="function"}var Fo=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),lu="VisuallyHidden",$o=s.forwardRef((e,t)=>(0,p.jsx)(T.span,{...e,ref:t,style:{...Fo,...e.style}}));$o.displayName=lu;var uu=$o,[en,Gv]=q("Tooltip",[Me]),tn=Me(),Bo="TooltipProvider",du=700,Fn="tooltip.open",[fu,or]=en(Bo),Wo=e=>{const{__scopeTooltip:t,delayDuration:n=du,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,i=s.useRef(!0),c=s.useRef(!1),u=s.useRef(0);return s.useEffect(()=>{const d=u.current;return()=>window.clearTimeout(d)},[]),(0,p.jsx)(fu,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:s.useCallback(()=>{window.clearTimeout(u.current),i.current=!1},[]),onClose:s.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:s.useCallback(d=>{c.current=d},[]),disableHoverableContent:o,children:a})};Wo.displayName=Bo;var lt="Tooltip",[pu,gt]=en(lt),Ho=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:i,delayDuration:c}=e,u=or(lt,e.__scopeTooltip),d=tn(t),[l,f]=s.useState(null),v=re(),m=s.useRef(0),x=i??u.disableHoverableContent,h=c??u.delayDuration,g=s.useRef(!1),[y,w]=Q({prop:r,defaultProp:o??!1,onChange:E=>{E?(u.onOpen(),document.dispatchEvent(new CustomEvent(Fn))):u.onClose(),a?.(E)},caller:lt}),C=s.useMemo(()=>y?g.current?"delayed-open":"instant-open":"closed",[y]),b=s.useCallback(()=>{window.clearTimeout(m.current),m.current=0,g.current=!1,w(!0)},[w]),P=s.useCallback(()=>{window.clearTimeout(m.current),m.current=0,w(!1)},[w]),R=s.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{g.current=!0,w(!0),m.current=0},h)},[h,w]);return s.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),(0,p.jsx)(ht,{...d,children:(0,p.jsx)(pu,{scope:t,contentId:v,open:y,stateAttribute:C,trigger:l,onTriggerChange:f,onTriggerEnter:s.useCallback(()=>{u.isOpenDelayedRef.current?R():b()},[u.isOpenDelayedRef,R,b]),onTriggerLeave:s.useCallback(()=>{x?P():(window.clearTimeout(m.current),m.current=0)},[P,x]),onOpen:b,onClose:P,disableHoverableContent:x,children:n})})};Ho.displayName=lt;var $n="TooltipTrigger",Go=s.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=gt($n,n),a=or($n,n),i=tn(n),c=s.useRef(null),u=D(t,c,o.onTriggerChange),d=s.useRef(!1),l=s.useRef(!1),f=s.useCallback(()=>d.current=!1,[]);return s.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),(0,p.jsx)(mt,{asChild:!0,...i,children:(0,p.jsx)(T.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:u,onPointerMove:S(e.onPointerMove,v=>{v.pointerType!=="touch"&&!l.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),l.current=!0)}),onPointerLeave:S(e.onPointerLeave,()=>{o.onTriggerLeave(),l.current=!1}),onPointerDown:S(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:S(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:S(e.onBlur,o.onClose),onClick:S(e.onClick,o.onClose)})})});Go.displayName=$n;var ar="TooltipPortal",[vu,hu]=en(ar,{forceMount:void 0}),Uo=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=gt(ar,t);return(0,p.jsx)(vu,{scope:t,forceMount:n,children:(0,p.jsx)(z,{present:n||a.open,children:(0,p.jsx)(tt,{asChild:!0,container:o,children:r})})})};Uo.displayName=ar;var Xe="TooltipContent",Vo=s.forwardRef((e,t)=>{const n=hu(Xe,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,i=gt(Xe,e.__scopeTooltip);return(0,p.jsx)(z,{present:r||i.open,children:i.disableHoverableContent?(0,p.jsx)(Ko,{side:o,...a,ref:t}):(0,p.jsx)(mu,{side:o,...a,ref:t})})}),mu=s.forwardRef((e,t)=>{const n=gt(Xe,e.__scopeTooltip),r=or(Xe,e.__scopeTooltip),o=s.useRef(null),a=D(t,o),[i,c]=s.useState(null),{trigger:u,onClose:d}=n,l=o.current,{onPointerInTransitChange:f}=r,v=s.useCallback(()=>{c(null),f(!1)},[f]),m=s.useCallback((x,h)=>{const g=x.currentTarget,y={x:x.clientX,y:x.clientY},w=Cu(y,yu(y,g.getBoundingClientRect())),C=bu(h.getBoundingClientRect()),b=Eu([...w,...C]);c(b),f(!0)},[f]);return s.useEffect(()=>()=>v(),[v]),s.useEffect(()=>{if(u&&l){const x=g=>m(g,l),h=g=>m(g,u);return u.addEventListener("pointerleave",x),l.addEventListener("pointerleave",h),()=>{u.removeEventListener("pointerleave",x),l.removeEventListener("pointerleave",h)}}},[u,l,m,v]),s.useEffect(()=>{if(i){const x=h=>{const g=h.target,y={x:h.clientX,y:h.clientY},w=u?.contains(g)||l?.contains(g),C=!Su(y,i);w?v():C&&(v(),d())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[u,l,i,d,v]),(0,p.jsx)(Ko,{...e,ref:a})}),[gu,xu]=en(lt,{isInside:!1}),wu=po("TooltipContent"),Ko=s.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...c}=e,u=gt(Xe,n),d=tn(n),{onClose:l}=u;return s.useEffect(()=>(document.addEventListener(Fn,l),()=>document.removeEventListener(Fn,l)),[l]),s.useEffect(()=>{if(u.trigger){const f=v=>{v.target?.contains(u.trigger)&&l()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[u.trigger,l]),(0,p.jsx)(Qe,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:l,children:(0,p.jsxs)(Qt,{"data-state":u.stateAttribute,...d,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,p.jsx)(wu,{children:r}),(0,p.jsx)(gu,{scope:n,isInside:!0,children:(0,p.jsx)(uu,{id:u.contentId,role:"tooltip",children:o||r})})]})})});Vo.displayName=Xe;var zo="TooltipArrow",Yo=s.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=tn(n);return xu(zo,n).isInside?null:(0,p.jsx)(Jt,{...o,...r,ref:t})});Yo.displayName=zo;function yu(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Cu(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}function bu(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function Su(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const c=t[a],u=t[i],d=c.x,l=c.y,f=u.x,v=u.y;l>r!=v>r&&n<(f-d)*(r-l)/(v-l)+d&&(o=!o)}return o}function Eu(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Ru(t)}function Ru(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],i=t[t.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],i=n[n.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Uv=Wo,Vv=Ho,Kv=Go,zv=Uo,Yv=Vo,Xv=Yo,Pn="focusScope.autoFocusOnMount",_n="focusScope.autoFocusOnUnmount",Yr={bubbles:!1,cancelable:!0},Pu="FocusScope",xt=s.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[c,u]=s.useState(null),d=K(o),l=K(a),f=s.useRef(null),v=D(t,h=>u(h)),m=s.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;s.useEffect(()=>{if(r){let h=function(C){if(m.paused||!c)return;const b=C.target;c.contains(b)?f.current=b:Pe(f.current,{select:!0})},g=function(C){if(m.paused||!c)return;const b=C.relatedTarget;b!==null&&(c.contains(b)||Pe(f.current,{select:!0}))},y=function(C){if(document.activeElement===document.body)for(const b of C)b.removedNodes.length>0&&Pe(c)};document.addEventListener("focusin",h),document.addEventListener("focusout",g);const w=new MutationObserver(y);return c&&w.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",g),w.disconnect()}}},[r,c,m.paused]),s.useEffect(()=>{if(c){qr.add(m);const h=document.activeElement;if(!c.contains(h)){const g=new CustomEvent(Pn,Yr);c.addEventListener(Pn,d),c.dispatchEvent(g),g.defaultPrevented||(_u(Nu(Xo(c)),{select:!0}),document.activeElement===h&&Pe(c))}return()=>{c.removeEventListener(Pn,d),setTimeout(()=>{const g=new CustomEvent(_n,Yr);c.addEventListener(_n,l),c.dispatchEvent(g),g.defaultPrevented||Pe(h??document.body,{select:!0}),c.removeEventListener(_n,l),qr.remove(m)},0)}}},[c,d,l,m]);const x=s.useCallback(h=>{if(!n&&!r||m.paused)return;const g=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,y=document.activeElement;if(g&&y){const w=h.currentTarget,[C,b]=Tu(w);C&&b?!h.shiftKey&&y===b?(h.preventDefault(),n&&Pe(C,{select:!0})):h.shiftKey&&y===C&&(h.preventDefault(),n&&Pe(b,{select:!0})):y===w&&h.preventDefault()}},[n,r,m.paused]);return(0,p.jsx)(T.div,{tabIndex:-1,...i,ref:v,onKeyDown:x})});xt.displayName=Pu;function _u(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Pe(r,{select:t}),document.activeElement!==n)return}function Tu(e){const t=Xo(e);return[Xr(t,e),Xr(t.reverse(),e)]}function Xo(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Xr(e,t){for(const n of e)if(!Au(n,{upTo:t}))return n}function Au(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Mu(e){return e instanceof HTMLInputElement&&"select"in e}function Pe(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Mu(e)&&t&&e.select()}}var qr=Ou();function Ou(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Zr(e,t),e.unshift(t)},remove(t){e=Zr(e,t),e[0]?.resume()}}}function Zr(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Nu(e){return e.filter(t=>t.tagName!=="A")}var Tn=0;function nn(){s.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Qr()),document.body.insertAdjacentElement("beforeend",e[1]??Qr()),Tn++,()=>{Tn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Tn--}},[])}function Qr(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var me=function(){return me=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},me.apply(this,arguments)};function qo(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Iu(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var It="right-scroll-bar-position",Dt="width-before-scroll-bar",Du="with-scroll-bars-hidden",ju="--removed-body-scroll-bar-size";function An(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Lu(e,t){var n=(0,s.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var ku=typeof window<"u"?s.useLayoutEffect:s.useEffect,Jr=new WeakMap;function Fu(e,t){var n=Lu(t||null,function(r){return e.forEach(function(o){return An(o,r)})});return ku(function(){var r=Jr.get(n);if(r){var o=new Set(r),a=new Set(e),i=n.current;o.forEach(function(c){a.has(c)||An(c,null)}),a.forEach(function(c){o.has(c)||An(c,i)})}Jr.set(n,e)},[e]),n}function $u(e){return e}function Bu(e,t){t===void 0&&(t=$u);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var a=t(o,r);return n.push(a),function(){n=n.filter(function(i){return i!==a})}},assignSyncMedium:function(o){for(r=!0;n.length;){var a=n;n=[],a.forEach(o)}n={push:function(i){return o(i)},filter:function(){return n}}},assignMedium:function(o){r=!0;var a=[];if(n.length){var i=n;n=[],i.forEach(o),a=n}var c=function(){var d=a;a=[],d.forEach(o)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(d){a.push(d),u()},filter:function(d){return a=a.filter(d),n}}}}}function Wu(e){e===void 0&&(e={});var t=Bu(null);return t.options=me({async:!0,ssr:!1},e),t}var Zo=function(e){var t=e.sideCar,n=qo(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return s.createElement(r,me({},n))};Zo.isSideCarExport=!0;function Hu(e,t){return e.useMedium(t),Zo}var Qo=Wu(),Mn=function(){},rn=s.forwardRef(function(e,t){var n=s.useRef(null),r=s.useState({onScrollCapture:Mn,onWheelCapture:Mn,onTouchMoveCapture:Mn}),o=r[0],a=r[1],i=e.forwardProps,c=e.children,u=e.className,d=e.removeScrollBar,l=e.enabled,f=e.shards,v=e.sideCar,m=e.noRelative,x=e.noIsolation,h=e.inert,g=e.allowPinchZoom,y=e.as,w=y===void 0?"div":y,C=e.gapMode,b=qo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=v,R=Fu([n,t]),E=me(me({},b),o);return s.createElement(s.Fragment,null,l&&s.createElement(P,{sideCar:Qo,removeScrollBar:d,shards:f,noRelative:m,noIsolation:x,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:C}),i?s.cloneElement(s.Children.only(c),me(me({},E),{ref:R})):s.createElement(w,me({},E,{className:u,ref:R}),c))});rn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};rn.classNames={fullWidth:Dt,zeroRight:It};var eo,Gu=function(){if(eo)return eo;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Uu(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Gu();return t&&e.setAttribute("nonce",t),e}function Vu(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ku(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}var zu=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Uu())&&(Vu(t,n),Ku(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Yu=function(){var e=zu();return function(t,n){s.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Jo=function(){var e=Yu(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Xu={left:0,top:0,right:0,gap:0},On=function(e){return parseInt(e||"",10)||0},qu=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[On(n),On(r),On(o)]},Zu=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Xu;var t=qu(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Qu=Jo(),it="data-scroll-locked",Ju=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
1
|
+
import{r as lo,t as zt}from"./rolldown-runtime-0wqQW3ea.js";import{It as uo}from"./icons-CheF8KGp.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.1"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e1130cf5-1b8f-47dd-b377-81f364042435",e._sentryDebugIdIdentifier="sentry-dbid-e1130cf5-1b8f-47dd-b377-81f364042435")}catch{}})();var Pc=zt((e=>{var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(o,a,i){var c=null;if(i!==void 0&&(c=""+i),a.key!==void 0&&(c=""+a.key),"key"in a){i={};for(var u in a)u!=="key"&&(i[u]=a[u])}else i=a;return a=i.ref,{$$typeof:t,type:o,key:c,ref:a!==void 0?a:null,props:i}}e.Fragment=n,e.jsx=r,e.jsxs=r})),_c=zt(((e,t)=>{t.exports=Pc()})),Tc=zt((e=>{var t=uo();function n(d){var l="https://react.dev/errors/"+d;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)l+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+d+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var o={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for("react.portal");function i(d,l,f){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:v==null?null:""+v,children:d,containerInfo:l,implementation:f}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(d,l){if(d==="font")return"";if(typeof l=="string")return l==="use-credentials"?l:""}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,e.createPortal=function(d,l){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)throw Error(n(299));return i(d,l,null,f)},e.flushSync=function(d){var l=c.T,f=o.p;try{if(c.T=null,o.p=2,d)return d()}finally{c.T=l,o.p=f,o.d.f()}},e.preconnect=function(d,l){typeof d=="string"&&(l?(l=l.crossOrigin,l=typeof l=="string"?l==="use-credentials"?l:"":void 0):l=null,o.d.C(d,l))},e.prefetchDNS=function(d){typeof d=="string"&&o.d.D(d)},e.preinit=function(d,l){if(typeof d=="string"&&l&&typeof l.as=="string"){var f=l.as,v=u(f,l.crossOrigin),m=typeof l.integrity=="string"?l.integrity:void 0,x=typeof l.fetchPriority=="string"?l.fetchPriority:void 0;f==="style"?o.d.S(d,typeof l.precedence=="string"?l.precedence:void 0,{crossOrigin:v,integrity:m,fetchPriority:x}):f==="script"&&o.d.X(d,{crossOrigin:v,integrity:m,fetchPriority:x,nonce:typeof l.nonce=="string"?l.nonce:void 0})}},e.preinitModule=function(d,l){if(typeof d=="string")if(typeof l=="object"&&l!==null){if(l.as==null||l.as==="script"){var f=u(l.as,l.crossOrigin);o.d.M(d,{crossOrigin:f,integrity:typeof l.integrity=="string"?l.integrity:void 0,nonce:typeof l.nonce=="string"?l.nonce:void 0})}}else l??o.d.M(d)},e.preload=function(d,l){if(typeof d=="string"&&typeof l=="object"&&l!==null&&typeof l.as=="string"){var f=l.as,v=u(f,l.crossOrigin);o.d.L(d,f,{crossOrigin:v,integrity:typeof l.integrity=="string"?l.integrity:void 0,nonce:typeof l.nonce=="string"?l.nonce:void 0,type:typeof l.type=="string"?l.type:void 0,fetchPriority:typeof l.fetchPriority=="string"?l.fetchPriority:void 0,referrerPolicy:typeof l.referrerPolicy=="string"?l.referrerPolicy:void 0,imageSrcSet:typeof l.imageSrcSet=="string"?l.imageSrcSet:void 0,imageSizes:typeof l.imageSizes=="string"?l.imageSizes:void 0,media:typeof l.media=="string"?l.media:void 0})}},e.preloadModule=function(d,l){if(typeof d=="string")if(l){var f=u(l.as,l.crossOrigin);o.d.m(d,{as:typeof l.as=="string"&&l.as!=="script"?l.as:void 0,crossOrigin:f,integrity:typeof l.integrity=="string"?l.integrity:void 0})}else o.d.m(d)},e.requestFormReset=function(d){o.d.r(d)},e.unstable_batchedUpdates=function(d,l){return d(l)},e.useFormState=function(d,l,f){return c.H.useFormState(d,l,f)},e.useFormStatus=function(){return c.H.useHostTransitionStatus()},e.version="19.2.5"})),Ac=zt(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}n(),t.exports=Tc()})),s=lo(uo(),1),Hv=!!(typeof window<"u"&&window.document&&window.document.createElement);function S(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function Dr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ft(...e){return t=>{let n=!1;const r=e.map(o=>{const a=Dr(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():Dr(e[o],null)}}}}function D(...e){return s.useCallback(ft(...e),e)}var p=_c();function Mc(e,t){const n=s.createContext(t),r=a=>{const{children:i,...c}=a,u=s.useMemo(()=>c,Object.values(c));return(0,p.jsx)(n.Provider,{value:u,children:i})};r.displayName=e+"Provider";function o(a){const i=s.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function q(e,t=[]){let n=[];function r(a,i){const c=s.createContext(i),u=n.length;n=[...n,i];const d=f=>{const{scope:v,children:m,...x}=f,h=v?.[e]?.[u]||c,g=s.useMemo(()=>x,Object.values(x));return(0,p.jsx)(h.Provider,{value:g,children:m})};d.displayName=a+"Provider";function l(f,v){const m=v?.[e]?.[u]||c,x=s.useContext(m);if(x)return x;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[d,l]}const o=()=>{const a=n.map(i=>s.createContext(i));return function(c){const u=c?.[e]||a;return s.useMemo(()=>({[`__scope${e}`]:{...c,[e]:u}}),[c,u])}};return o.scopeName=e,[r,Oc(o,...t)]}function Oc(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((c,{useScope:u,scopeName:d})=>{const l=u(a)[`__scope${d}`];return{...c,...l}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var pt=lo(Ac(),1);function ke(e){const t=Nc(e),n=s.forwardRef((r,o)=>{const{children:a,...i}=r,c=s.Children.toArray(a),u=c.find(Ic);if(u){const d=u.props.children,l=c.map(f=>f===u?s.Children.count(d)>1?s.Children.only(null):s.isValidElement(d)?d.props.children:null:f);return(0,p.jsx)(t,{...i,ref:o,children:s.isValidElement(d)?s.cloneElement(d,void 0,l):null})}return(0,p.jsx)(t,{...i,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function Nc(e){const t=s.forwardRef((n,r)=>{const{children:o,...a}=n;if(s.isValidElement(o)){const i=jc(o),c=Dc(a,o.props);return o.type!==s.Fragment&&(c.ref=r?ft(r,i):i),s.cloneElement(o,c)}return s.Children.count(o)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var fo=Symbol("radix.slottable");function po(e){const t=({children:n})=>(0,p.jsx)(p.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=fo,t}function Ic(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===fo}function Dc(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...i)=>{const c=a(...i);return o(...i),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function jc(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var T=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=ke(`Primitive.${t}`),r=s.forwardRef((o,a)=>{const{asChild:i,...c}=o,u=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,p.jsx)(u,{...c,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function vo(e,t){e&&pt.flushSync(()=>e.dispatchEvent(t))}function K(e){const t=s.useRef(e);return s.useEffect(()=>{t.current=e}),s.useMemo(()=>(...n)=>t.current?.(...n),[])}function Lc(e,t=globalThis?.document){const n=K(e);s.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var kc="DismissableLayer",Dn="dismissableLayer.update",Fc="dismissableLayer.pointerDownOutside",$c="dismissableLayer.focusOutside",jr,ho=s.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qe=s.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:c,...u}=e,d=s.useContext(ho),[l,f]=s.useState(null),v=l?.ownerDocument??globalThis?.document,[,m]=s.useState({}),x=D(t,E=>f(E)),h=Array.from(d.layers),[g]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=h.indexOf(g),w=l?h.indexOf(l):-1,C=d.layersWithOutsidePointerEventsDisabled.size>0,b=w>=y,P=Hc(E=>{const M=E.target,A=[...d.branches].some(O=>O.contains(M));!b||A||(o?.(E),i?.(E),E.defaultPrevented||c?.())},v),R=Gc(E=>{const M=E.target;[...d.branches].some(A=>A.contains(M))||(a?.(E),i?.(E),E.defaultPrevented||c?.())},v);return Lc(E=>{w===d.layers.size-1&&(r?.(E),!E.defaultPrevented&&c&&(E.preventDefault(),c()))},v),s.useEffect(()=>{if(l)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(jr=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(l)),d.layers.add(l),Lr(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=jr)}},[l,v,n,d]),s.useEffect(()=>()=>{l&&(d.layers.delete(l),d.layersWithOutsidePointerEventsDisabled.delete(l),Lr())},[l,d]),s.useEffect(()=>{const E=()=>m({});return document.addEventListener(Dn,E),()=>document.removeEventListener(Dn,E)},[]),(0,p.jsx)(T.div,{...u,ref:x,style:{pointerEvents:C?b?"auto":"none":void 0,...e.style},onFocusCapture:S(e.onFocusCapture,R.onFocusCapture),onBlurCapture:S(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:S(e.onPointerDownCapture,P.onPointerDownCapture)})});Qe.displayName=kc;var Bc="DismissableLayerBranch",Wc=s.forwardRef((e,t)=>{const n=s.useContext(ho),r=s.useRef(null),o=D(t,r);return s.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),(0,p.jsx)(T.div,{...e,ref:o})});Wc.displayName=Bc;function Hc(e,t=globalThis?.document){const n=K(e),r=s.useRef(!1),o=s.useRef(()=>{});return s.useEffect(()=>{const a=c=>{if(c.target&&!r.current){let u=function(){mo(Fc,n,d,{discrete:!0})};const d={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Gc(e,t=globalThis?.document){const n=K(e),r=s.useRef(!1);return s.useEffect(()=>{const o=a=>{a.target&&!r.current&&mo($c,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Lr(){const e=new CustomEvent(Dn);document.dispatchEvent(e)}function mo(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?vo(o,a):o.dispatchEvent(a)}var Y=globalThis?.document?s.useLayoutEffect:()=>{},Uc=s[" useId ".trim().toString()]||(()=>{}),Vc=0;function re(e){const[t,n]=s.useState(Uc());return Y(()=>{e||n(r=>r??String(Vc++))},[e]),e||(t?`radix-${t}`:"")}var Kc=["top","right","bottom","left"],Te=Math.min,se=Math.max,jt=Math.round,Rt=Math.floor,xe=e=>({x:e,y:e}),zc={left:"right",right:"left",bottom:"top",top:"bottom"};function jn(e,t,n){return se(e,Te(t,n))}function be(e,t){return typeof e=="function"?e(t):e}function Se(e){return e.split("-")[0]}function Je(e){return e.split("-")[1]}function Xn(e){return e==="x"?"y":"x"}function qn(e){return e==="y"?"height":"width"}function ge(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Zn(e){return Xn(ge(e))}function Yc(e,t,n){n===void 0&&(n=!1);const r=Je(e),o=Zn(e),a=qn(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=Lt(i)),[i,Lt(i)]}function Xc(e){const t=Lt(e);return[Ln(e),t,Ln(t)]}function Ln(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var kr=["left","right"],Fr=["right","left"],qc=["top","bottom"],Zc=["bottom","top"];function Qc(e,t,n){switch(e){case"top":case"bottom":return n?t?Fr:kr:t?kr:Fr;case"left":case"right":return t?qc:Zc;default:return[]}}function Jc(e,t,n,r){const o=Je(e);let a=Qc(Se(e),n==="start",r);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(Ln)))),a}function Lt(e){const t=Se(e);return zc[t]+e.slice(t.length)}function el(e){return{top:0,right:0,bottom:0,left:0,...e}}function go(e){return typeof e!="number"?el(e):{top:e,right:e,bottom:e,left:e}}function kt(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function $r(e,t,n){let{reference:r,floating:o}=e;const a=ge(t),i=Zn(t),c=qn(i),u=Se(t),d=a==="y",l=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,v=r[c]/2-o[c]/2;let m;switch(u){case"top":m={x:l,y:r.y-o.height};break;case"bottom":m={x:l,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-o.width,y:f};break;default:m={x:r.x,y:r.y}}switch(Je(t)){case"start":m[i]-=v*(n&&d?-1:1);break;case"end":m[i]+=v*(n&&d?-1:1)}return m}async function tl(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:i,elements:c,strategy:u}=e,{boundary:d="clippingAncestors",rootBoundary:l="viewport",elementContext:f="floating",altBoundary:v=!1,padding:m=0}=be(t,e),x=go(m),h=c[v?f==="floating"?"reference":"floating":f],g=kt(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(h)))==null||n?h:h.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:d,rootBoundary:l,strategy:u})),y=f==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),C=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},b=kt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:w,strategy:u}):y);return{top:(g.top-b.top+x.top)/C.y,bottom:(b.bottom-g.bottom+x.bottom)/C.y,left:(g.left-b.left+x.left)/C.x,right:(b.right-g.right+x.right)/C.x}}var nl=50,rl=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,c=i.detectOverflow?i:{...i,detectOverflow:tl},u=await(i.isRTL==null?void 0:i.isRTL(t));let d=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:l,y:f}=$r(d,r,u),v=r,m=0;const x={};for(let h=0;h<a.length;h++){const g=a[h];if(!g)continue;const{name:y,fn:w}=g,{x:C,y:b,data:P,reset:R}=await w({x:l,y:f,initialPlacement:r,placement:v,strategy:o,middlewareData:x,rects:d,platform:c,elements:{reference:e,floating:t}});l=C??l,f=b??f,x[y]={...x[y],...P},R&&m<nl&&(m++,typeof R=="object"&&(R.placement&&(v=R.placement),R.rects&&(d=R.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):R.rects),{x:l,y:f}=$r(d,v,u)),h=-1)}return{x:l,y:f,placement:v,strategy:o,middlewareData:x}},ol=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:c,middlewareData:u}=t,{element:d,padding:l=0}=be(e,t)||{};if(d==null)return{};const f=go(l),v={x:n,y:r},m=Zn(o),x=qn(m),h=await i.getDimensions(d),g=m==="y",y=g?"top":"left",w=g?"bottom":"right",C=g?"clientHeight":"clientWidth",b=a.reference[x]+a.reference[m]-v[m]-a.floating[x],P=v[m]-a.reference[m],R=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d));let E=R?R[C]:0;(!E||!await(i.isElement==null?void 0:i.isElement(R)))&&(E=c.floating[C]||a.floating[x]);const M=b/2-P/2,A=E/2-h[x]/2-1,O=Te(f[y],A),j=Te(f[w],A),L=O,W=E-h[x]-j,F=E/2-h[x]/2+M,H=jn(L,F,W),k=!u.arrow&&Je(o)!=null&&F!==H&&a.reference[x]/2-(F<L?O:j)-h[x]/2<0,$=k?F<L?F-L:F-W:0;return{[m]:v[m]+$,data:{[m]:H,centerOffset:F-H-$,...k&&{alignmentOffset:$}},reset:k}}}),al=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:c,platform:u,elements:d}=t,{mainAxis:l=!0,crossAxis:f=!0,fallbackPlacements:v,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:h=!0,...g}=be(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=Se(o),w=ge(c),C=Se(c)===c,b=await(u.isRTL==null?void 0:u.isRTL(d.floating)),P=v||(C||!h?[Lt(c)]:Xc(c)),R=x!=="none";!v&&R&&P.push(...Jc(c,h,x,b));const E=[c,...P],M=await u.detectOverflow(t,g),A=[];let O=((r=a.flip)==null?void 0:r.overflows)||[];if(l&&A.push(M[y]),f){const F=Yc(o,i,b);A.push(M[F[0]],M[F[1]])}if(O=[...O,{placement:o,overflows:A}],!A.every(F=>F<=0)){var j,L;const F=(((j=a.flip)==null?void 0:j.index)||0)+1,H=E[F];if(H&&(!(f==="alignment"&&w!==ge(H))||O.every($=>ge($.placement)===w?$.overflows[0]>0:!0)))return{data:{index:F,overflows:O},reset:{placement:H}};let k=(L=O.filter($=>$.overflows[0]<=0).sort(($,I)=>$.overflows[1]-I.overflows[1])[0])==null?void 0:L.placement;if(!k)switch(m){case"bestFit":{var W;const $=(W=O.filter(I=>{if(R){const _=ge(I.placement);return _===w||_==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(_=>_>0).reduce((_,U)=>_+U,0)]).sort((I,_)=>I[1]-_[1])[0])==null?void 0:W[0];$&&(k=$);break}case"initialPlacement":k=c}if(o!==k)return{reset:{placement:k}}}return{}}}};function Br(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Wr(e){return Kc.some(t=>e[t]>=0)}var sl=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...a}=be(e,t);switch(o){case"referenceHidden":{const i=Br(await r.detectOverflow(t,{...a,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Wr(i)}}}case"escaped":{const i=Br(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:i,escaped:Wr(i)}}}default:return{}}}}},xo=new Set(["left","top"]);async function il(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Se(n),c=Je(n),u=ge(n)==="y",d=xo.has(i)?-1:1,l=a&&u?-1:1,f=be(t,e);let{mainAxis:v,crossAxis:m,alignmentAxis:x}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return c&&typeof x=="number"&&(m=c==="end"?x*-1:x),u?{x:m*l,y:v*d}:{x:v*d,y:m*l}}var cl=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:c}=t,u=await il(t,e);return i===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+u.x,y:a+u.y,data:{...u,placement:i}}}}},ll=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:a}=t,{mainAxis:i=!0,crossAxis:c=!1,limiter:u={fn:y=>{let{x:w,y:C}=y;return{x:w,y:C}}},...d}=be(e,t),l={x:n,y:r},f=await a.detectOverflow(t,d),v=ge(Se(o)),m=Xn(v);let x=l[m],h=l[v];if(i){const y=m==="y"?"top":"left",w=m==="y"?"bottom":"right",C=x+f[y],b=x-f[w];x=jn(C,x,b)}if(c){const y=v==="y"?"top":"left",w=v==="y"?"bottom":"right",C=h+f[y],b=h-f[w];h=jn(C,h,b)}const g=u.fn({...t,[m]:x,[v]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[m]:i,[v]:c}}}}}},ul=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:c=0,mainAxis:u=!0,crossAxis:d=!0}=be(e,t),l={x:n,y:r},f=ge(o),v=Xn(f);let m=l[v],x=l[f];const h=be(c,t),g=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(u){const C=v==="y"?"height":"width",b=a.reference[v]-a.floating[C]+g.mainAxis,P=a.reference[v]+a.reference[C]-g.mainAxis;m<b?m=b:m>P&&(m=P)}if(d){var y,w;const C=v==="y"?"width":"height",b=xo.has(Se(o)),P=a.reference[f]-a.floating[C]+(b&&((y=i.offset)==null?void 0:y[f])||0)+(b?0:g.crossAxis),R=a.reference[f]+a.reference[C]+(b?0:((w=i.offset)==null?void 0:w[f])||0)-(b?g.crossAxis:0);x<P?x=P:x>R&&(x=R)}return{[v]:m,[f]:x}}}},dl=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:i,elements:c}=t,{apply:u=()=>{},...d}=be(e,t),l=await i.detectOverflow(t,d),f=Se(o),v=Je(o),m=ge(o)==="y",{width:x,height:h}=a.floating;let g,y;f==="top"||f==="bottom"?(g=f,y=v===(await(i.isRTL==null?void 0:i.isRTL(c.floating))?"start":"end")?"left":"right"):(y=f,g=v==="end"?"top":"bottom");const w=h-l.top-l.bottom,C=x-l.left-l.right,b=Te(h-l[g],w),P=Te(x-l[y],C),R=!t.middlewareData.shift;let E=b,M=P;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(M=C),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=w),R&&!v){const O=se(l.left,0),j=se(l.right,0),L=se(l.top,0),W=se(l.bottom,0);m?M=x-2*(O!==0||j!==0?O+j:se(l.left,l.right)):E=h-2*(L!==0||W!==0?L+W:se(l.top,l.bottom))}await u({...t,availableWidth:M,availableHeight:E});const A=await i.getDimensions(c.floating);return x!==A.width||h!==A.height?{reset:{rects:!0}}:{}}}};function Yt(){return typeof window<"u"}function et(e){return wo(e)?(e.nodeName||"").toLowerCase():"#document"}function ie(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function we(e){var t;return(t=(wo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function wo(e){return Yt()?e instanceof Node||e instanceof ie(e).Node:!1}function fe(e){return Yt()?e instanceof Element||e instanceof ie(e).Element:!1}function Ee(e){return Yt()?e instanceof HTMLElement||e instanceof ie(e).HTMLElement:!1}function Hr(e){return!Yt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ie(e).ShadowRoot}function vt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=pe(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function fl(e){return/^(table|td|th)$/.test(et(e))}function Xt(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var pl=/transform|translate|scale|rotate|perspective|filter/,vl=/paint|layout|strict|content/,Le=e=>!!e&&e!=="none",Sn;function Qn(e){const t=fe(e)?pe(e):e;return Le(t.transform)||Le(t.translate)||Le(t.scale)||Le(t.rotate)||Le(t.perspective)||!Jn()&&(Le(t.backdropFilter)||Le(t.filter))||pl.test(t.willChange||"")||vl.test(t.contain||"")}function hl(e){let t=Ae(e);for(;Ee(t)&&!Ye(t);){if(Qn(t))return t;if(Xt(t))return null;t=Ae(t)}return null}function Jn(){return Sn==null&&(Sn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Sn}function Ye(e){return/^(html|body|#document)$/.test(et(e))}function pe(e){return ie(e).getComputedStyle(e)}function qt(e){return fe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ae(e){if(et(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Hr(e)&&e.host||we(e);return Hr(t)?t.host:t}function yo(e){const t=Ae(e);return Ye(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ee(t)&&vt(t)?t:yo(t)}function ct(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=yo(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),i=ie(o);if(a){const c=kn(i);return t.concat(i,i.visualViewport||[],vt(o)?o:[],c&&n?ct(c):[])}else return t.concat(o,ct(o,[],n))}function kn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Co(e){const t=pe(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ee(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,c=jt(n)!==a||jt(r)!==i;return c&&(n=a,r=i),{width:n,height:r,$:c}}function er(e){return fe(e)?e:e.contextElement}function Ke(e){const t=er(e);if(!Ee(t))return xe(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Co(t);let i=(a?jt(n.width):n.width)/r,c=(a?jt(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!c||!Number.isFinite(c))&&(c=1),{x:i,y:c}}var ml=xe(0);function bo(e){const t=ie(e);return!Jn()||!t.visualViewport?ml:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function gl(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ie(e)?!1:t}function Fe(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=er(e);let i=xe(1);t&&(r?fe(r)&&(i=Ke(r)):i=Ke(e));const c=gl(a,n,r)?bo(a):xe(0);let u=(o.left+c.x)/i.x,d=(o.top+c.y)/i.y,l=o.width/i.x,f=o.height/i.y;if(a){const v=ie(a),m=r&&fe(r)?ie(r):r;let x=v,h=kn(x);for(;h&&r&&m!==x;){const g=Ke(h),y=h.getBoundingClientRect(),w=pe(h),C=y.left+(h.clientLeft+parseFloat(w.paddingLeft))*g.x,b=y.top+(h.clientTop+parseFloat(w.paddingTop))*g.y;u*=g.x,d*=g.y,l*=g.x,f*=g.y,u+=C,d+=b,x=ie(h),h=kn(x)}}return kt({width:l,height:f,x:u,y:d})}function Zt(e,t){const n=qt(e).scrollLeft;return t?t.left+n:Fe(we(e)).left+n}function So(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Zt(e,n),y:n.top+t.scrollTop}}function xl(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",i=we(r),c=t?Xt(t.floating):!1;if(r===i||c&&a)return n;let u={scrollLeft:0,scrollTop:0},d=xe(1);const l=xe(0),f=Ee(r);if((f||!f&&!a)&&((et(r)!=="body"||vt(i))&&(u=qt(r)),f)){const m=Fe(r);d=Ke(r),l.x=m.x+r.clientLeft,l.y=m.y+r.clientTop}const v=i&&!f&&!a?So(i,u):xe(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-u.scrollLeft*d.x+l.x+v.x,y:n.y*d.y-u.scrollTop*d.y+l.y+v.y}}function wl(e){return Array.from(e.getClientRects())}function yl(e){const t=we(e),n=qt(e),r=e.ownerDocument.body,o=se(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=se(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Zt(e);const c=-n.scrollTop;return pe(r).direction==="rtl"&&(i+=se(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:c}}var Gr=25;function Cl(e,t){const n=ie(e),r=we(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,c=0,u=0;if(o){a=o.width,i=o.height;const l=Jn();(!l||l&&t==="fixed")&&(c=o.offsetLeft,u=o.offsetTop)}const d=Zt(r);if(d<=0){const l=r.ownerDocument,f=l.body,v=getComputedStyle(f),m=l.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,x=Math.abs(r.clientWidth-f.clientWidth-m);x<=Gr&&(a-=x)}else d<=Gr&&(a+=d);return{width:a,height:i,x:c,y:u}}function bl(e,t){const n=Fe(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Ee(e)?Ke(e):xe(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}function Ur(e,t,n){let r;if(t==="viewport")r=Cl(e,n);else if(t==="document")r=yl(we(e));else if(fe(t))r=bl(t,n);else{const o=bo(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return kt(r)}function Eo(e,t){const n=Ae(e);return n===t||!fe(n)||Ye(n)?!1:pe(n).position==="fixed"||Eo(n,t)}function Sl(e,t){const n=t.get(e);if(n)return n;let r=ct(e,[],!1).filter(c=>fe(c)&&et(c)!=="body"),o=null;const a=pe(e).position==="fixed";let i=a?Ae(e):e;for(;fe(i)&&!Ye(i);){const c=pe(i),u=Qn(i);!u&&c.position==="fixed"&&(o=null),(a?!u&&!o:!u&&c.position==="static"&&o&&(o.position==="absolute"||o.position==="fixed")||vt(i)&&!u&&Eo(e,i))?r=r.filter(d=>d!==i):o=c,i=Ae(i)}return t.set(e,r),r}function El(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Xt(t)?[]:Sl(t,this._c):[].concat(n),r],i=Ur(t,a[0],o);let c=i.top,u=i.right,d=i.bottom,l=i.left;for(let f=1;f<a.length;f++){const v=Ur(t,a[f],o);c=se(v.top,c),u=Te(v.right,u),d=Te(v.bottom,d),l=se(v.left,l)}return{width:u-l,height:d-c,x:l,y:c}}function Rl(e){const{width:t,height:n}=Co(e);return{width:t,height:n}}function Pl(e,t,n){const r=Ee(t),o=we(t),a=n==="fixed",i=Fe(e,!0,a,t);let c={scrollLeft:0,scrollTop:0};const u=xe(0);function d(){u.x=Zt(o)}if(r||!r&&!a)if((et(t)!=="body"||vt(o))&&(c=qt(t)),r){const f=Fe(t,!0,a,t);u.x=f.x+t.clientLeft,u.y=f.y+t.clientTop}else o&&d();a&&!r&&o&&d();const l=o&&!r&&!a?So(o,c):xe(0);return{x:i.left+c.scrollLeft-u.x-l.x,y:i.top+c.scrollTop-u.y-l.y,width:i.width,height:i.height}}function En(e){return pe(e).position==="static"}function Vr(e,t){if(!Ee(e)||pe(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return we(e)===n&&(n=n.ownerDocument.body),n}function Ro(e,t){const n=ie(e);if(Xt(e))return n;if(!Ee(e)){let o=Ae(e);for(;o&&!Ye(o);){if(fe(o)&&!En(o))return o;o=Ae(o)}return n}let r=Vr(e,t);for(;r&&fl(r)&&En(r);)r=Vr(r,t);return r&&Ye(r)&&En(r)&&!Qn(r)?n:r||hl(e)||n}var _l=async function(e){const t=this.getOffsetParent||Ro,n=this.getDimensions,r=await n(e.floating);return{reference:Pl(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Tl(e){return pe(e).direction==="rtl"}var Al={convertOffsetParentRelativeRectToViewportRelativeRect:xl,getDocumentElement:we,getClippingRect:El,getOffsetParent:Ro,getElementRects:_l,getClientRects:wl,getDimensions:Rl,getScale:Ke,isElement:fe,isRTL:Tl};function Po(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ml(e,t){let n=null,r;const o=we(e);function a(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function i(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),a();const d=e.getBoundingClientRect(),{left:l,top:f,width:v,height:m}=d;if(c||t(),!v||!m)return;const x=Rt(f),h=Rt(o.clientWidth-(l+v)),g=Rt(o.clientHeight-(f+m)),y=Rt(l),w={rootMargin:-x+"px "+-h+"px "+-g+"px "+-y+"px",threshold:se(0,Te(1,u))||1};let C=!0;function b(P){const R=P[0].intersectionRatio;if(R!==u){if(!C)return i();R?i(!1,R):r=setTimeout(()=>{i(!1,1e-7)},1e3)}R===1&&!Po(d,e.getBoundingClientRect())&&i(),C=!1}try{n=new IntersectionObserver(b,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(b,w)}n.observe(e)}return i(!0),a}function Ol(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,d=er(e),l=o||a?[...d?ct(d):[],...t?ct(t):[]]:[];l.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const f=d&&c?Ml(d,n):null;let v=-1,m=null;i&&(m=new ResizeObserver(y=>{let[w]=y;w&&w.target===d&&m&&t&&(m.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var C;(C=m)==null||C.observe(t)})),n()}),d&&!u&&m.observe(d),t&&m.observe(t));let x,h=u?Fe(e):null;u&&g();function g(){const y=Fe(e);h&&!Po(h,y)&&n(),h=y,x=requestAnimationFrame(g)}return n(),()=>{var y;l.forEach(w=>{o&&w.removeEventListener("scroll",n),a&&w.removeEventListener("resize",n)}),f?.(),(y=m)==null||y.disconnect(),m=null,u&&cancelAnimationFrame(x)}}var Nl=cl,Il=ll,Dl=al,jl=dl,Ll=sl,Kr=ol,kl=ul,Fl=(e,t,n)=>{const r=new Map,o={platform:Al,...n},a={...o.platform,_c:r};return rl(e,t,{...o,platform:a})},Nt=typeof document<"u"?s.useLayoutEffect:function(){};function Ft(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ft(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!Ft(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function _o(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function zr(e,t){const n=_o(e);return Math.round(t*n)/n}function Rn(e){const t=s.useRef(e);return Nt(()=>{t.current=e}),t}function $l(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:c=!0,whileElementsMounted:u,open:d}=e,[l,f]=s.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,m]=s.useState(r);Ft(v,r)||m(r);const[x,h]=s.useState(null),[g,y]=s.useState(null),w=s.useCallback(I=>{I!==R.current&&(R.current=I,h(I))},[]),C=s.useCallback(I=>{I!==E.current&&(E.current=I,y(I))},[]),b=a||x,P=i||g,R=s.useRef(null),E=s.useRef(null),M=s.useRef(l),A=u!=null,O=Rn(u),j=Rn(o),L=Rn(d),W=s.useCallback(()=>{if(!R.current||!E.current)return;const I={placement:t,strategy:n,middleware:v};j.current&&(I.platform=j.current),Fl(R.current,E.current,I).then(_=>{const U={..._,isPositioned:L.current!==!1};F.current&&!Ft(M.current,U)&&(M.current=U,pt.flushSync(()=>{f(U)}))})},[v,t,n,j,L]);Nt(()=>{d===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,f(I=>({...I,isPositioned:!1})))},[d]);const F=s.useRef(!1);Nt(()=>(F.current=!0,()=>{F.current=!1}),[]),Nt(()=>{if(b&&(R.current=b),P&&(E.current=P),b&&P){if(O.current)return O.current(b,P,W);W()}},[b,P,W,O,A]);const H=s.useMemo(()=>({reference:R,floating:E,setReference:w,setFloating:C}),[w,C]),k=s.useMemo(()=>({reference:b,floating:P}),[b,P]),$=s.useMemo(()=>{const I={position:n,left:0,top:0};if(!k.floating)return I;const _=zr(k.floating,l.x),U=zr(k.floating,l.y);return c?{...I,transform:"translate("+_+"px, "+U+"px)",..._o(k.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:_,top:U}},[n,c,k.floating,l.x,l.y]);return s.useMemo(()=>({...l,update:W,refs:H,elements:k,floatingStyles:$}),[l,W,H,k,$])}var Bl=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Kr({element:r.current,padding:o}).fn(n):{}:r?Kr({element:r,padding:o}).fn(n):{}}}},Wl=(e,t)=>{const n=Nl(e);return{name:n.name,fn:n.fn,options:[e,t]}},Hl=(e,t)=>{const n=Il(e);return{name:n.name,fn:n.fn,options:[e,t]}},Gl=(e,t)=>({fn:kl(e).fn,options:[e,t]}),Ul=(e,t)=>{const n=Dl(e);return{name:n.name,fn:n.fn,options:[e,t]}},Vl=(e,t)=>{const n=jl(e);return{name:n.name,fn:n.fn,options:[e,t]}},Kl=(e,t)=>{const n=Ll(e);return{name:n.name,fn:n.fn,options:[e,t]}},zl=(e,t)=>{const n=Bl(e);return{name:n.name,fn:n.fn,options:[e,t]}},Yl="Arrow",To=s.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return(0,p.jsx)(T.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,p.jsx)("polygon",{points:"0,0 30,0 15,10"})})});To.displayName=Yl;var Xl=To;function tr(e){const[t,n]=s.useState(void 0);return Y(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,c;if("borderBoxSize"in a){const u=a.borderBoxSize,d=Array.isArray(u)?u[0]:u;i=d.inlineSize,c=d.blockSize}else i=e.offsetWidth,c=e.offsetHeight;n({width:i,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var nr="Popper",[Ao,Me]=q(nr),[ql,Mo]=Ao(nr),Oo=e=>{const{__scopePopper:t,children:n}=e,[r,o]=s.useState(null);return(0,p.jsx)(ql,{scope:t,anchor:r,onAnchorChange:o,children:n})};Oo.displayName=nr;var No="PopperAnchor",Io=s.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=Mo(No,n),i=s.useRef(null),c=D(t,i),u=s.useRef(null);return s.useEffect(()=>{const d=u.current;u.current=r?.current||i.current,d!==u.current&&a.onAnchorChange(u.current)}),r?null:(0,p.jsx)(T.div,{...o,ref:c})});Io.displayName=No;var rr="PopperContent",[Zl,Ql]=Ao(rr),Do=s.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:c=0,avoidCollisions:u=!0,collisionBoundary:d=[],collisionPadding:l=0,sticky:f="partial",hideWhenDetached:v=!1,updatePositionStrategy:m="optimized",onPlaced:x,...h}=e,g=Mo(rr,n),[y,w]=s.useState(null),C=D(t,N=>w(N)),[b,P]=s.useState(null),R=tr(b),E=R?.width??0,M=R?.height??0,A=r+(a!=="center"?"-"+a:""),O=typeof l=="number"?l:{top:0,right:0,bottom:0,left:0,...l},j=Array.isArray(d)?d:[d],L=j.length>0,W={padding:O,boundary:j.filter(eu),altBoundary:L},{refs:F,floatingStyles:H,placement:k,isPositioned:$,middlewareData:I}=$l({strategy:"fixed",placement:A,whileElementsMounted:(...N)=>Ol(...N,{animationFrame:m==="always"}),elements:{reference:g.anchor},middleware:[Wl({mainAxis:o+M,alignmentAxis:i}),u&&Hl({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?Gl():void 0,...W}),u&&Ul({...W}),Vl({...W,apply:({elements:N,rects:V,availableWidth:G,availableHeight:B})=>{const{width:Z,height:ne}=V.reference,he=N.floating.style;he.setProperty("--radix-popper-available-width",`${G}px`),he.setProperty("--radix-popper-available-height",`${B}px`),he.setProperty("--radix-popper-anchor-width",`${Z}px`),he.setProperty("--radix-popper-anchor-height",`${ne}px`)}}),b&&zl({element:b,padding:c}),tu({arrowWidth:E,arrowHeight:M}),v&&Kl({strategy:"referenceHidden",...W})]}),[_,U]=ko(k),te=K(x);Y(()=>{$&&te?.()},[$,te]);const ue=I.arrow?.x,Ce=I.arrow?.y,oe=I.arrow?.centerOffset!==0,[ae,X]=s.useState();return Y(()=>{y&&X(window.getComputedStyle(y).zIndex)},[y]),(0,p.jsx)("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:$?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ae,"--radix-popper-transform-origin":[I.transformOrigin?.x,I.transformOrigin?.y].join(" "),...I.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,p.jsx)(Zl,{scope:n,placedSide:_,onArrowChange:P,arrowX:ue,arrowY:Ce,shouldHideArrow:oe,children:(0,p.jsx)(T.div,{"data-side":_,"data-align":U,...h,ref:C,style:{...h.style,animation:$?void 0:"none"}})})})});Do.displayName=rr;var jo="PopperArrow",Jl={top:"bottom",right:"left",bottom:"top",left:"right"},Lo=s.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=Ql(jo,r),i=Jl[a.placedSide];return(0,p.jsx)("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:(0,p.jsx)(Xl,{...o,ref:n,style:{...o.style,display:"block"}})})});Lo.displayName=jo;function eu(e){return e!==null}var tu=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,a=o.arrow?.centerOffset!==0,i=a?0:e.arrowWidth,c=a?0:e.arrowHeight,[u,d]=ko(n),l={start:"0%",center:"50%",end:"100%"}[d],f=(o.arrow?.x??0)+i/2,v=(o.arrow?.y??0)+c/2;let m="",x="";return u==="bottom"?(m=a?l:`${f}px`,x=`${-c}px`):u==="top"?(m=a?l:`${f}px`,x=`${r.floating.height+c}px`):u==="right"?(m=`${-c}px`,x=a?l:`${v}px`):u==="left"&&(m=`${r.floating.width+c}px`,x=a?l:`${v}px`),{data:{x:m,y:x}}}});function ko(e){const[t,n="center"]=e.split("-");return[t,n]}var ht=Oo,mt=Io,Qt=Do,Jt=Lo,nu="Portal",tt=s.forwardRef((e,t)=>{const{container:n,...r}=e,[o,a]=s.useState(!1);Y(()=>a(!0),[]);const i=n||o&&globalThis?.document?.body;return i?pt.createPortal((0,p.jsx)(T.div,{...r,ref:t}),i):null});tt.displayName=nu;function ru(e,t){return s.useReducer((n,r)=>t[n][r]??n,e)}var z=e=>{const{present:t,children:n}=e,r=ou(t),o=typeof n=="function"?n({present:r.isPresent}):s.Children.only(n),a=D(r.ref,au(o));return typeof n=="function"||r.isPresent?s.cloneElement(o,{ref:a}):null};z.displayName="Presence";function ou(e){const[t,n]=s.useState(),r=s.useRef(null),o=s.useRef(e),a=s.useRef("none"),[i,c]=ru(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return s.useEffect(()=>{const u=Pt(r.current);a.current=i==="mounted"?u:"none"},[i]),Y(()=>{const u=r.current,d=o.current;if(d!==e){const l=a.current,f=Pt(u);e?c("MOUNT"):f==="none"||u?.display==="none"?c("UNMOUNT"):c(d&&l!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Y(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,l=v=>{const m=Pt(r.current).includes(CSS.escape(v.animationName));if(v.target===t&&m&&(c("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},f=v=>{v.target===t&&(a.current=Pt(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:s.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Pt(e){return e?.animationName||"none"}function au(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var su=s[" useInsertionEffect ".trim().toString()]||Y;function Q({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,i]=iu({defaultProp:t,onChange:n}),c=e!==void 0,u=c?e:o;{const d=s.useRef(e!==void 0);s.useEffect(()=>{const l=d.current;l!==c&&console.warn(`${r} is changing from ${l?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=c},[c,r])}return[u,s.useCallback(d=>{if(c){const l=cu(d)?d(e):d;l!==e&&i.current?.(l)}else a(d)},[c,e,a,i])]}function iu({defaultProp:e,onChange:t}){const[n,r]=s.useState(e),o=s.useRef(n),a=s.useRef(t);return su(()=>{a.current=t},[t]),s.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}function cu(e){return typeof e=="function"}var Fo=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),lu="VisuallyHidden",$o=s.forwardRef((e,t)=>(0,p.jsx)(T.span,{...e,ref:t,style:{...Fo,...e.style}}));$o.displayName=lu;var uu=$o,[en,Gv]=q("Tooltip",[Me]),tn=Me(),Bo="TooltipProvider",du=700,Fn="tooltip.open",[fu,or]=en(Bo),Wo=e=>{const{__scopeTooltip:t,delayDuration:n=du,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,i=s.useRef(!0),c=s.useRef(!1),u=s.useRef(0);return s.useEffect(()=>{const d=u.current;return()=>window.clearTimeout(d)},[]),(0,p.jsx)(fu,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:s.useCallback(()=>{window.clearTimeout(u.current),i.current=!1},[]),onClose:s.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:s.useCallback(d=>{c.current=d},[]),disableHoverableContent:o,children:a})};Wo.displayName=Bo;var lt="Tooltip",[pu,gt]=en(lt),Ho=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:i,delayDuration:c}=e,u=or(lt,e.__scopeTooltip),d=tn(t),[l,f]=s.useState(null),v=re(),m=s.useRef(0),x=i??u.disableHoverableContent,h=c??u.delayDuration,g=s.useRef(!1),[y,w]=Q({prop:r,defaultProp:o??!1,onChange:E=>{E?(u.onOpen(),document.dispatchEvent(new CustomEvent(Fn))):u.onClose(),a?.(E)},caller:lt}),C=s.useMemo(()=>y?g.current?"delayed-open":"instant-open":"closed",[y]),b=s.useCallback(()=>{window.clearTimeout(m.current),m.current=0,g.current=!1,w(!0)},[w]),P=s.useCallback(()=>{window.clearTimeout(m.current),m.current=0,w(!1)},[w]),R=s.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{g.current=!0,w(!0),m.current=0},h)},[h,w]);return s.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),(0,p.jsx)(ht,{...d,children:(0,p.jsx)(pu,{scope:t,contentId:v,open:y,stateAttribute:C,trigger:l,onTriggerChange:f,onTriggerEnter:s.useCallback(()=>{u.isOpenDelayedRef.current?R():b()},[u.isOpenDelayedRef,R,b]),onTriggerLeave:s.useCallback(()=>{x?P():(window.clearTimeout(m.current),m.current=0)},[P,x]),onOpen:b,onClose:P,disableHoverableContent:x,children:n})})};Ho.displayName=lt;var $n="TooltipTrigger",Go=s.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=gt($n,n),a=or($n,n),i=tn(n),c=s.useRef(null),u=D(t,c,o.onTriggerChange),d=s.useRef(!1),l=s.useRef(!1),f=s.useCallback(()=>d.current=!1,[]);return s.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),(0,p.jsx)(mt,{asChild:!0,...i,children:(0,p.jsx)(T.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:u,onPointerMove:S(e.onPointerMove,v=>{v.pointerType!=="touch"&&!l.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),l.current=!0)}),onPointerLeave:S(e.onPointerLeave,()=>{o.onTriggerLeave(),l.current=!1}),onPointerDown:S(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:S(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:S(e.onBlur,o.onClose),onClick:S(e.onClick,o.onClose)})})});Go.displayName=$n;var ar="TooltipPortal",[vu,hu]=en(ar,{forceMount:void 0}),Uo=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=gt(ar,t);return(0,p.jsx)(vu,{scope:t,forceMount:n,children:(0,p.jsx)(z,{present:n||a.open,children:(0,p.jsx)(tt,{asChild:!0,container:o,children:r})})})};Uo.displayName=ar;var Xe="TooltipContent",Vo=s.forwardRef((e,t)=>{const n=hu(Xe,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,i=gt(Xe,e.__scopeTooltip);return(0,p.jsx)(z,{present:r||i.open,children:i.disableHoverableContent?(0,p.jsx)(Ko,{side:o,...a,ref:t}):(0,p.jsx)(mu,{side:o,...a,ref:t})})}),mu=s.forwardRef((e,t)=>{const n=gt(Xe,e.__scopeTooltip),r=or(Xe,e.__scopeTooltip),o=s.useRef(null),a=D(t,o),[i,c]=s.useState(null),{trigger:u,onClose:d}=n,l=o.current,{onPointerInTransitChange:f}=r,v=s.useCallback(()=>{c(null),f(!1)},[f]),m=s.useCallback((x,h)=>{const g=x.currentTarget,y={x:x.clientX,y:x.clientY},w=Cu(y,yu(y,g.getBoundingClientRect())),C=bu(h.getBoundingClientRect()),b=Eu([...w,...C]);c(b),f(!0)},[f]);return s.useEffect(()=>()=>v(),[v]),s.useEffect(()=>{if(u&&l){const x=g=>m(g,l),h=g=>m(g,u);return u.addEventListener("pointerleave",x),l.addEventListener("pointerleave",h),()=>{u.removeEventListener("pointerleave",x),l.removeEventListener("pointerleave",h)}}},[u,l,m,v]),s.useEffect(()=>{if(i){const x=h=>{const g=h.target,y={x:h.clientX,y:h.clientY},w=u?.contains(g)||l?.contains(g),C=!Su(y,i);w?v():C&&(v(),d())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[u,l,i,d,v]),(0,p.jsx)(Ko,{...e,ref:a})}),[gu,xu]=en(lt,{isInside:!1}),wu=po("TooltipContent"),Ko=s.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...c}=e,u=gt(Xe,n),d=tn(n),{onClose:l}=u;return s.useEffect(()=>(document.addEventListener(Fn,l),()=>document.removeEventListener(Fn,l)),[l]),s.useEffect(()=>{if(u.trigger){const f=v=>{v.target?.contains(u.trigger)&&l()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[u.trigger,l]),(0,p.jsx)(Qe,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:l,children:(0,p.jsxs)(Qt,{"data-state":u.stateAttribute,...d,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,p.jsx)(wu,{children:r}),(0,p.jsx)(gu,{scope:n,isInside:!0,children:(0,p.jsx)(uu,{id:u.contentId,role:"tooltip",children:o||r})})]})})});Vo.displayName=Xe;var zo="TooltipArrow",Yo=s.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=tn(n);return xu(zo,n).isInside?null:(0,p.jsx)(Jt,{...o,...r,ref:t})});Yo.displayName=zo;function yu(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Cu(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}function bu(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function Su(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const c=t[a],u=t[i],d=c.x,l=c.y,f=u.x,v=u.y;l>r!=v>r&&n<(f-d)*(r-l)/(v-l)+d&&(o=!o)}return o}function Eu(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Ru(t)}function Ru(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],i=t[t.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],i=n[n.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Uv=Wo,Vv=Ho,Kv=Go,zv=Uo,Yv=Vo,Xv=Yo,Pn="focusScope.autoFocusOnMount",_n="focusScope.autoFocusOnUnmount",Yr={bubbles:!1,cancelable:!0},Pu="FocusScope",xt=s.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[c,u]=s.useState(null),d=K(o),l=K(a),f=s.useRef(null),v=D(t,h=>u(h)),m=s.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;s.useEffect(()=>{if(r){let h=function(C){if(m.paused||!c)return;const b=C.target;c.contains(b)?f.current=b:Pe(f.current,{select:!0})},g=function(C){if(m.paused||!c)return;const b=C.relatedTarget;b!==null&&(c.contains(b)||Pe(f.current,{select:!0}))},y=function(C){if(document.activeElement===document.body)for(const b of C)b.removedNodes.length>0&&Pe(c)};document.addEventListener("focusin",h),document.addEventListener("focusout",g);const w=new MutationObserver(y);return c&&w.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",g),w.disconnect()}}},[r,c,m.paused]),s.useEffect(()=>{if(c){qr.add(m);const h=document.activeElement;if(!c.contains(h)){const g=new CustomEvent(Pn,Yr);c.addEventListener(Pn,d),c.dispatchEvent(g),g.defaultPrevented||(_u(Nu(Xo(c)),{select:!0}),document.activeElement===h&&Pe(c))}return()=>{c.removeEventListener(Pn,d),setTimeout(()=>{const g=new CustomEvent(_n,Yr);c.addEventListener(_n,l),c.dispatchEvent(g),g.defaultPrevented||Pe(h??document.body,{select:!0}),c.removeEventListener(_n,l),qr.remove(m)},0)}}},[c,d,l,m]);const x=s.useCallback(h=>{if(!n&&!r||m.paused)return;const g=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,y=document.activeElement;if(g&&y){const w=h.currentTarget,[C,b]=Tu(w);C&&b?!h.shiftKey&&y===b?(h.preventDefault(),n&&Pe(C,{select:!0})):h.shiftKey&&y===C&&(h.preventDefault(),n&&Pe(b,{select:!0})):y===w&&h.preventDefault()}},[n,r,m.paused]);return(0,p.jsx)(T.div,{tabIndex:-1,...i,ref:v,onKeyDown:x})});xt.displayName=Pu;function _u(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Pe(r,{select:t}),document.activeElement!==n)return}function Tu(e){const t=Xo(e);return[Xr(t,e),Xr(t.reverse(),e)]}function Xo(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Xr(e,t){for(const n of e)if(!Au(n,{upTo:t}))return n}function Au(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Mu(e){return e instanceof HTMLInputElement&&"select"in e}function Pe(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Mu(e)&&t&&e.select()}}var qr=Ou();function Ou(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Zr(e,t),e.unshift(t)},remove(t){e=Zr(e,t),e[0]?.resume()}}}function Zr(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Nu(e){return e.filter(t=>t.tagName!=="A")}var Tn=0;function nn(){s.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Qr()),document.body.insertAdjacentElement("beforeend",e[1]??Qr()),Tn++,()=>{Tn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Tn--}},[])}function Qr(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var me=function(){return me=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},me.apply(this,arguments)};function qo(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Iu(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var It="right-scroll-bar-position",Dt="width-before-scroll-bar",Du="with-scroll-bars-hidden",ju="--removed-body-scroll-bar-size";function An(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Lu(e,t){var n=(0,s.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var ku=typeof window<"u"?s.useLayoutEffect:s.useEffect,Jr=new WeakMap;function Fu(e,t){var n=Lu(t||null,function(r){return e.forEach(function(o){return An(o,r)})});return ku(function(){var r=Jr.get(n);if(r){var o=new Set(r),a=new Set(e),i=n.current;o.forEach(function(c){a.has(c)||An(c,null)}),a.forEach(function(c){o.has(c)||An(c,i)})}Jr.set(n,e)},[e]),n}function $u(e){return e}function Bu(e,t){t===void 0&&(t=$u);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var a=t(o,r);return n.push(a),function(){n=n.filter(function(i){return i!==a})}},assignSyncMedium:function(o){for(r=!0;n.length;){var a=n;n=[],a.forEach(o)}n={push:function(i){return o(i)},filter:function(){return n}}},assignMedium:function(o){r=!0;var a=[];if(n.length){var i=n;n=[],i.forEach(o),a=n}var c=function(){var d=a;a=[],d.forEach(o)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(d){a.push(d),u()},filter:function(d){return a=a.filter(d),n}}}}}function Wu(e){e===void 0&&(e={});var t=Bu(null);return t.options=me({async:!0,ssr:!1},e),t}var Zo=function(e){var t=e.sideCar,n=qo(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return s.createElement(r,me({},n))};Zo.isSideCarExport=!0;function Hu(e,t){return e.useMedium(t),Zo}var Qo=Wu(),Mn=function(){},rn=s.forwardRef(function(e,t){var n=s.useRef(null),r=s.useState({onScrollCapture:Mn,onWheelCapture:Mn,onTouchMoveCapture:Mn}),o=r[0],a=r[1],i=e.forwardProps,c=e.children,u=e.className,d=e.removeScrollBar,l=e.enabled,f=e.shards,v=e.sideCar,m=e.noRelative,x=e.noIsolation,h=e.inert,g=e.allowPinchZoom,y=e.as,w=y===void 0?"div":y,C=e.gapMode,b=qo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=v,R=Fu([n,t]),E=me(me({},b),o);return s.createElement(s.Fragment,null,l&&s.createElement(P,{sideCar:Qo,removeScrollBar:d,shards:f,noRelative:m,noIsolation:x,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:C}),i?s.cloneElement(s.Children.only(c),me(me({},E),{ref:R})):s.createElement(w,me({},E,{className:u,ref:R}),c))});rn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};rn.classNames={fullWidth:Dt,zeroRight:It};var eo,Gu=function(){if(eo)return eo;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Uu(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Gu();return t&&e.setAttribute("nonce",t),e}function Vu(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ku(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}var zu=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Uu())&&(Vu(t,n),Ku(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Yu=function(){var e=zu();return function(t,n){s.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Jo=function(){var e=Yu(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Xu={left:0,top:0,right:0,gap:0},On=function(e){return parseInt(e||"",10)||0},qu=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[On(n),On(r),On(o)]},Zu=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Xu;var t=qu(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Qu=Jo(),it="data-scroll-locked",Ju=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
2
2
|
.`.concat(Du,` {
|
|
3
3
|
overflow: hidden `).concat(r,`;
|
|
4
4
|
padding-right: `).concat(c,"px ").concat(r,`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as r}from"./editor.api-
|
|
1
|
+
import{l as r}from"./editor.api-DSevzNN8.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.1"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ca51a5c2-603d-4faf-9b0b-4638d537cd04",e._sentryDebugIdIdentifier="sentry-dbid-ca51a5c2-603d-4faf-9b0b-4638d537cd04")}catch{}})();var o=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],a={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["<!--","-->"]},brackets:[["<!--","-->"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${o.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:r.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${o.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:r.IndentAction.Indent}}]},m={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/@@@@/],[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@comment"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/[ \t\r\n]+/],[/[^<@]+/]],doctype:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],razorInSimpleState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3"}]],razorInEmbeddedState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],razorBlockCommentTopLevel:[[/\*@/,"@rematch","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorBlockComment:[[/\*@/,"comment.cs","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorRootTopLevel:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/[})]/,"@rematch","@pop"],{include:"razorCommon"}],razorRoot:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/\}/,"delimiter.bracket.cs","@pop"],[/\)/,"delimiter.parenthesis.cs","@pop"],{include:"razorCommon"}],razorCommon:[[/[a-zA-Z_]\w*/,{cases:{"@razorKeywords":{token:"keyword.cs"},"@default":"identifier.cs"}}],[/[\[\]]/,"delimiter.array.cs"],[/[ \t\r\n]+/],[/\/\/.*$/,"comment.cs"],[/@\*/,"comment.cs","@razorBlockComment"],[/"([^"]*)"/,"string.cs"],[/'([^']*)'/,"string.cs"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<\/)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/,"delimiter.cs"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.cs"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.cs"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.cs"],[/0[0-7']*[0-7]/,"number.octal.cs"],[/0[bB][0-1']*[0-1]/,"number.binary.cs"],[/\d[\d']*/,"number.cs"],[/\d/,"number.cs"]]},razorKeywords:["abstract","as","async","await","base","bool","break","by","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","descending","explicit","event","extern","else","enum","false","finally","fixed","float","for","foreach","from","goto","group","if","implicit","in","int","interface","internal","into","is","lock","long","nameof","new","null","namespace","object","operator","out","override","orderby","params","private","protected","public","readonly","ref","return","switch","struct","sbyte","sealed","short","sizeof","stackalloc","static","string","select","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","var","virtual","volatile","void","when","while","where","yield","model","inject"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/};export{a as conf,m as language};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as g}from"./rolldown-runtime-
|
|
1
|
+
import{r as g}from"./rolldown-runtime-0wqQW3ea.js";import{It as y}from"./icons-CheF8KGp.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"db-studio@2.0.1"};var e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="fd1e2108-97bd-4cb5-9b79-d6cec14dbf31",t._sentryDebugIdIdentifier="sentry-dbid-fd1e2108-97bd-4cb5-9b79-d6cec14dbf31")}catch{}})();var a=g(y(),1),u=t=>{let e;const n=new Set,o=(s,d)=>{const r=typeof s=="function"?s(e):s;if(!Object.is(r,e)){const l=e;e=d??(typeof r!="object"||r===null)?r:Object.assign({},e,r),n.forEach(S=>S(e,l))}},c=()=>e,i={setState:o,getState:c,getInitialState:()=>f,subscribe:s=>(n.add(s),()=>n.delete(s))},f=e=t(o,c,i);return i},I=(t=>t?u(t):u),v=t=>t;function _(t,e=v){const n=a.useSyncExternalStore(t.subscribe,a.useCallback(()=>e(t.getState()),[t,e]),a.useCallback(()=>e(t.getInitialState()),[t,e]));return a.useDebugValue(n),n}var b=t=>{const e=I(t),n=o=>_(e,o);return Object.assign(n,e),n},D=(t=>t?b(t):b);export{D as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as qf}from"./rolldown-runtime-
|
|
1
|
+
import{t as qf}from"./rolldown-runtime-0wqQW3ea.js";import{It as hh}from"./icons-CheF8KGp.js";import{At as dh}from"./radix-ui-ByvuE8TW.js";(function(){try{var X=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};X.SENTRY_RELEASE={id:"db-studio@2.0.1"};var R=new X.Error().stack;R&&(X._sentryDebugIds=X._sentryDebugIds||{},X._sentryDebugIds[R]="b997335b-00f0-462d-8204-f49c8b85c359",X._sentryDebugIdIdentifier="sentry-dbid-b997335b-00f0-462d-8204-f49c8b85c359")}catch{}})();var Sh=qf((X=>{function R(M,T){var E=M.length;M.push(T);l:for(;0<E;){var p=E-1>>>1,k=M[p];if(0<b(k,T))M[p]=T,M[E]=k,E=p;else break l}}function vl(M){return M.length===0?null:M[0]}function Na(M){if(M.length===0)return null;var T=M[0],E=M.pop();if(E!==T){M[0]=E;l:for(var p=0,k=M.length,Il=k>>>1;p<Il;){var bl=2*(p+1)-1,I=M[bl],G=bl+1,zl=M[G];if(0>b(I,E))G<k&&0>b(zl,I)?(M[p]=zl,M[G]=E,p=G):(M[p]=I,M[bl]=E,p=bl);else if(G<k&&0>b(zl,E))M[p]=zl,M[G]=E,p=G;else break l}}return T}function b(M,T){var E=M.sortIndex-T.sortIndex;return E!==0?E:M.id-T.id}if(X.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var Yf=performance;X.unstable_now=function(){return Yf.now()}}else{var oa=Date,vn=oa.now();X.unstable_now=function(){return oa.now()-vn}}var Zl=[],$l=[],Qf=1,gl=null,_=3,mu=!1,aa=!1,Fl=!1,ta=!1,hu=typeof setTimeout=="function"?setTimeout:null,Ut=typeof clearTimeout=="function"?clearTimeout:null,du=typeof setImmediate<"u"?setImmediate:null;function Tl(M){for(var T=vl($l);T!==null;){if(T.callback===null)Na($l);else if(T.startTime<=M)Na($l),T.sortIndex=T.expirationTime,R(Zl,T);else break;T=vl($l)}}function at(M){if(Fl=!1,Tl(M),!aa)if(vl(Zl)!==null)aa=!0,ua||(ua=!0,ia());else{var T=vl($l);T!==null&&tt(at,T.startTime-M)}}var ua=!1,ea=-1,st=5,kl=-1;function _t(){return ta?!0:!(X.unstable_now()-kl<st)}function Su(){if(ta=!1,ua){var M=X.unstable_now();kl=M;var T=!0;try{l:{aa=!1,Fl&&(Fl=!1,Ut(ea),ea=-1),mu=!0;var E=_;try{a:{for(Tl(M),gl=vl(Zl);gl!==null&&!(gl.expirationTime>M&&_t());){var p=gl.callback;if(typeof p=="function"){gl.callback=null,_=gl.priorityLevel;var k=p(gl.expirationTime<=M);if(M=X.unstable_now(),typeof k=="function"){gl.callback=k,Tl(M),T=!0;break a}gl===vl(Zl)&&Na(Zl),Tl(M)}else Na(Zl);gl=vl(Zl)}if(gl!==null)T=!0;else{var Il=vl($l);Il!==null&&tt(at,Il.startTime-M),T=!1}}break l}finally{gl=null,_=E,mu=!1}T=void 0}}finally{T?ia():ua=!1}}}var ia;if(typeof du=="function")ia=function(){du(Su)};else if(typeof MessageChannel<"u"){var Ba=new MessageChannel,Xf=Ba.port2;Ba.port1.onmessage=Su,ia=function(){Xf.postMessage(null)}}else ia=function(){hu(Su,0)};function tt(M,T){ea=hu(function(){M(X.unstable_now())},T)}X.unstable_IdlePriority=5,X.unstable_ImmediatePriority=1,X.unstable_LowPriority=4,X.unstable_NormalPriority=3,X.unstable_Profiling=null,X.unstable_UserBlockingPriority=2,X.unstable_cancelCallback=function(M){M.callback=null},X.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):st=0<M?Math.floor(1e3/M):5},X.unstable_getCurrentPriorityLevel=function(){return _},X.unstable_next=function(M){switch(_){case 1:case 2:case 3:var T=3;break;default:T=_}var E=_;_=T;try{return M()}finally{_=E}},X.unstable_requestPaint=function(){ta=!0},X.unstable_runWithPriority=function(M,T){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var E=_;_=M;try{return T()}finally{_=E}},X.unstable_scheduleCallback=function(M,T,E){var p=X.unstable_now();switch(typeof E=="object"&&E!==null?(E=E.delay,E=typeof E=="number"&&0<E?p+E:p):E=p,M){case 1:var k=-1;break;case 2:k=250;break;case 5:k=1073741823;break;case 4:k=1e4;break;default:k=5e3}return k=E+k,M={id:Qf++,callback:T,priorityLevel:M,startTime:E,expirationTime:k,sortIndex:-1},E>p?(M.sortIndex=E,R($l,M),vl(Zl)===null&&M===vl($l)&&(Fl?(Ut(ea),ea=-1):Fl=!0,tt(at,E-p))):(M.sortIndex=k,R(Zl,M),aa||mu||(aa=!0,ua||(ua=!0,ia()))),M},X.unstable_shouldYield=_t,X.unstable_wrapCallback=function(M){var T=_;return function(){var E=_;_=T;try{return M.apply(this,arguments)}finally{_=E}}}})),gh=qf(((X,R)=>{R.exports=Sh()})),bh=qf((X=>{var R=gh(),vl=hh(),Na=dh();function b(l){var a="https://react.dev/errors/"+l;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var t=2;t<arguments.length;t++)a+="&args[]="+encodeURIComponent(arguments[t])}return"Minified React error #"+l+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Yf(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}function oa(l){var a=l,t=l;if(l.alternate)for(;a.return;)a=a.return;else{l=a;do a=l,(a.flags&4098)!==0&&(t=a.return),l=a.return;while(l)}return a.tag===3?t:null}function vn(l){if(l.tag===13){var a=l.memoizedState;if(a===null&&(l=l.alternate,l!==null&&(a=l.memoizedState)),a!==null)return a.dehydrated}return null}function Zl(l){if(l.tag===31){var a=l.memoizedState;if(a===null&&(l=l.alternate,l!==null&&(a=l.memoizedState)),a!==null)return a.dehydrated}return null}function $l(l){if(oa(l)!==l)throw Error(b(188))}function Qf(l){var a=l.alternate;if(!a){if(a=oa(l),a===null)throw Error(b(188));return a!==l?null:l}for(var t=l,u=a;;){var n=t.return;if(n===null)break;var f=n.alternate;if(f===null){if(u=n.return,u!==null){t=u;continue}break}if(n.child===f.child){for(f=n.child;f;){if(f===t)return $l(n),l;if(f===u)return $l(n),a;f=f.sibling}throw Error(b(188))}if(t.return!==u.return)t=n,u=f;else{for(var c=!1,e=n.child;e;){if(e===t){c=!0,t=n,u=f;break}if(e===u){c=!0,u=n,t=f;break}e=e.sibling}if(!c){for(e=f.child;e;){if(e===t){c=!0,t=f,u=n;break}if(e===u){c=!0,u=f,t=n;break}e=e.sibling}if(!c)throw Error(b(189))}}if(t.alternate!==u)throw Error(b(190))}if(t.tag!==3)throw Error(b(188));return t.stateNode.current===t?l:a}function gl(l){var a=l.tag;if(a===5||a===26||a===27||a===6)return l;for(l=l.child;l!==null;){if(a=gl(l),a!==null)return a;l=l.sibling}return null}var _=Object.assign,mu=Symbol.for("react.element"),aa=Symbol.for("react.transitional.element"),Fl=Symbol.for("react.portal"),ta=Symbol.for("react.fragment"),hu=Symbol.for("react.strict_mode"),Ut=Symbol.for("react.profiler"),du=Symbol.for("react.consumer"),Tl=Symbol.for("react.context"),at=Symbol.for("react.forward_ref"),ua=Symbol.for("react.suspense"),ea=Symbol.for("react.suspense_list"),st=Symbol.for("react.memo"),kl=Symbol.for("react.lazy"),_t=Symbol.for("react.activity"),Su=Symbol.for("react.memo_cache_sentinel"),ia=Symbol.iterator;function Ba(l){return l===null||typeof l!="object"?null:(l=ia&&l[ia]||l["@@iterator"],typeof l=="function"?l:null)}var Xf=Symbol.for("react.client.reference");function tt(l){if(l==null)return null;if(typeof l=="function")return l.$$typeof===Xf?null:l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case ta:return"Fragment";case Ut:return"Profiler";case hu:return"StrictMode";case ua:return"Suspense";case ea:return"SuspenseList";case _t:return"Activity"}if(typeof l=="object")switch(l.$$typeof){case Fl:return"Portal";case Tl:return l.displayName||"Context";case du:return(l._context.displayName||"Context")+".Consumer";case at:var a=l.render;return l=l.displayName,l||(l=a.displayName||a.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case st:return a=l.displayName||null,a!==null?a:tt(l.type)||"Memo";case kl:a=l._payload,l=l._init;try{return tt(l(a))}catch{}}return null}var M=Array.isArray,T=vl.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,E=Na.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,p={pending:!1,data:null,method:null,action:null},k=[],Il=-1;function bl(l){return{current:l}}function I(l){0>Il||(l.current=k[Il],k[Il]=null,Il--)}function G(l,a){Il++,k[Il]=l.current,l.current=a}var zl=bl(null),gu=bl(null),qa=bl(null),yn=bl(null);function mn(l,a){switch(G(qa,a),G(gu,l),G(zl,null),a.nodeType){case 9:case 11:l=(l=a.documentElement)&&(l=l.namespaceURI)?Dv(l):0;break;default:if(l=a.tagName,a=a.namespaceURI)a=Dv(a),l=Ov(a,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}I(zl),G(zl,l)}function Ht(){I(zl),I(gu),I(qa)}function Gf(l){l.memoizedState!==null&&G(yn,l);var a=zl.current,t=Ov(a,l.type);a!==t&&(G(gu,l),G(zl,t))}function hn(l){gu.current===l&&(I(zl),I(gu)),yn.current===l&&(I(yn),nn._currentValue=p)}var Zf,Pe;function ut(l){if(Zf===void 0)try{throw Error()}catch(t){var a=t.stack.trim().match(/\n( *(at )?)/);Zf=a&&a[1]||"",Pe=-1<t.stack.indexOf(`
|
|
2
2
|
at`)?" (<anonymous>)":-1<t.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
3
|
`+Zf+l+Pe}var Cf=!1;function jf(l,a){if(!l||Cf)return"";Cf=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(a){var A=function(){throw Error()};if(Object.defineProperty(A.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(A,[])}catch(S){var d=S}Reflect.construct(l,[],A)}else{try{A.call()}catch(S){d=S}l.call(A.prototype)}}else{try{throw Error()}catch(S){d=S}(A=l())&&typeof A.catch=="function"&&A.catch(function(){})}}catch(S){if(S&&d&&typeof S.stack=="string")return[S.stack,d.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=u.DetermineComponentFrameRoot(),c=f[0],e=f[1];if(c&&e){var i=c.split(`
|
|
4
4
|
`),h=e.split(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(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.
|
|
1
|
+
(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.1"};var e=new E.Error().stack;e&&(E._sentryDebugIds=E._sentryDebugIds||{},E._sentryDebugIds[e]="c121fa84-5627-4ebf-95c1-517afdbfa42b",E._sentryDebugIdIdentifier="sentry-dbid-c121fa84-5627-4ebf-95c1-517afdbfa42b")}catch{}})();var T={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},R={defaultToken:"",tokenPostfix:".redis",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["APPEND","AUTH","BGREWRITEAOF","BGSAVE","BITCOUNT","BITFIELD","BITOP","BITPOS","BLPOP","BRPOP","BRPOPLPUSH","CLIENT","KILL","LIST","GETNAME","PAUSE","REPLY","SETNAME","CLUSTER","ADDSLOTS","COUNT-FAILURE-REPORTS","COUNTKEYSINSLOT","DELSLOTS","FAILOVER","FORGET","GETKEYSINSLOT","INFO","KEYSLOT","MEET","NODES","REPLICATE","RESET","SAVECONFIG","SET-CONFIG-EPOCH","SETSLOT","SLAVES","SLOTS","COMMAND","COUNT","GETKEYS","CONFIG","GET","REWRITE","SET","RESETSTAT","DBSIZE","DEBUG","OBJECT","SEGFAULT","DECR","DECRBY","DEL","DISCARD","DUMP","ECHO","EVAL","EVALSHA","EXEC","EXISTS","EXPIRE","EXPIREAT","FLUSHALL","FLUSHDB","GEOADD","GEOHASH","GEOPOS","GEODIST","GEORADIUS","GEORADIUSBYMEMBER","GETBIT","GETRANGE","GETSET","HDEL","HEXISTS","HGET","HGETALL","HINCRBY","HINCRBYFLOAT","HKEYS","HLEN","HMGET","HMSET","HSET","HSETNX","HSTRLEN","HVALS","INCR","INCRBY","INCRBYFLOAT","KEYS","LASTSAVE","LINDEX","LINSERT","LLEN","LPOP","LPUSH","LPUSHX","LRANGE","LREM","LSET","LTRIM","MGET","MIGRATE","MONITOR","MOVE","MSET","MSETNX","MULTI","PERSIST","PEXPIRE","PEXPIREAT","PFADD","PFCOUNT","PFMERGE","PING","PSETEX","PSUBSCRIBE","PUBSUB","PTTL","PUBLISH","PUNSUBSCRIBE","QUIT","RANDOMKEY","READONLY","READWRITE","RENAME","RENAMENX","RESTORE","ROLE","RPOP","RPOPLPUSH","RPUSH","RPUSHX","SADD","SAVE","SCARD","SCRIPT","FLUSH","LOAD","SDIFF","SDIFFSTORE","SELECT","SETBIT","SETEX","SETNX","SETRANGE","SHUTDOWN","SINTER","SINTERSTORE","SISMEMBER","SLAVEOF","SLOWLOG","SMEMBERS","SMOVE","SORT","SPOP","SRANDMEMBER","SREM","STRLEN","SUBSCRIBE","SUNION","SUNIONSTORE","SWAPDB","SYNC","TIME","TOUCH","TTL","TYPE","UNSUBSCRIBE","UNLINK","UNWATCH","WAIT","WATCH","ZADD","ZCARD","ZCOUNT","ZINCRBY","ZINTERSTORE","ZLEXCOUNT","ZRANGE","ZRANGEBYLEX","ZREVRANGEBYLEX","ZRANGEBYSCORE","ZRANK","ZREM","ZREMRANGEBYLEX","ZREMRANGEBYRANK","ZREMRANGEBYSCORE","ZREVRANGE","ZREVRANGEBYSCORE","ZREVRANK","ZSCORE","ZUNIONSTORE","SCAN","SSCAN","HSCAN","ZSCAN"],operators:[],builtinFunctions:[],builtinVariables:[],pseudoColumns:[],tokenizer:{root:[{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/'/,{token:"string",next:"@string"}],[/"/,{token:"string.double",next:"@stringDouble"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],stringDouble:[[/[^"]+/,"string.double"],[/""/,"string.double"],[/"/,{token:"string.double",next:"@pop"}]],scopes:[]}};export{T as conf,R as language};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as K}from"./rolldown-runtime-
|
|
1
|
+
import{r as K}from"./rolldown-runtime-0wqQW3ea.js";import{C as y,E,S as _}from"./tanstack-Cb7WFPRi.js";import{Ct as k,It as P,ct as M,rt as V}from"./icons-CheF8KGp.js";import{jt as F}from"./radix-ui-ByvuE8TW.js";import{n as x}from"./dist-D4HUXaJv.js";import{t as j}from"./utils-awMbhLwX.js";import{n as C}from"./overlay.store-BL-3zX6X.js";import{n as B}from"./label-C93T1BbF.js";import{C as U,S as q,T as O,b as z,x as L}from"./constants-BBxXyYPa.js";import{t as N}from"./database.store-73Wsz2L5.js";import{a as J,i as Q,n as Y,r as h,t as G}from"./select-DU0HoKZ4.js";import{a as S}from"./keys-By5o7bPm.js";import{o as H,s as $}from"./index-YCx2RIFq.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.1"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="92397ced-4bad-446b-9a18-d44e2d0a7c40",e._sentryDebugIdIdentifier="sentry-dbid-92397ced-4bad-446b-9a18-d44e2d0a7c40")}catch{}})();var me=({search:e,exactPattern:t,type:a})=>{const{selectedDatabase:n}=N();return _({queryKey:S.list(n,e,t,a),queryFn:async({pageParam:l})=>(await O({db:n??"",cursor:l||void 0,limit:100,search:e||void 0,exactPattern:t,type:a||void 0})).data.data,initialPageParam:"",getNextPageParam:l=>l.nextCursor??void 0,enabled:n!==null,staleTime:Number.POSITIVE_INFINITY})},pe=(e,t=!1,a="forward")=>{const{selectedDatabase:n}=N();return _({queryKey:S.detail(n,e,t,a),queryFn:async({pageParam:l})=>(await U({db:n??"",key:e??"",cursor:l||void 0,full:t,direction:a})).data.data,initialPageParam:"",getNextPageParam:l=>l.nextCursor??void 0,enabled:n!==null&&e!==null,staleTime:Number.POSITIVE_INFINITY,retry:!1})},g=e=>typeof e.details=="string"&&e.details||e.message||"Redis operation failed",be=()=>{const{selectedDatabase:e}=N(),t=E(),a=async()=>t.invalidateQueries({queryKey:S.all}),n=y({mutationFn:o=>L({db:e??"",data:o}).then(i=>i.data.data),onSuccess:a}),l=y({mutationFn:({key:o,data:i})=>z({db:e??"",key:o,data:i}).then(d=>d.data.data),onSuccess:a}),c=y({mutationFn:({key:o,expectedRevision:i,force:d})=>q({db:e??"",key:o,expectedRevision:i,force:d}).then(u=>u.data.data),onSuccess:a});return{createKey:o=>x.promise(n.mutateAsync(o),{loading:"Creating Redis key…",success:"Redis key created",error:g}).unwrap(),applyAction:(o,i)=>x.promise(l.mutateAsync({key:o,data:i}),{loading:"Applying Redis change…",success:"Redis change applied",error:g}).unwrap(),deleteKey:(o,i,d)=>x.promise(c.mutateAsync({key:o,expectedRevision:i,force:d}),{loading:"Deleting Redis key…",success:"Redis key deleted",error:g}).unwrap(),isPending:n.isPending||l.isPending||c.isPending}},f=K(P(),1),s=F(),R=e=>{const t=e.replaceAll("-","+").replaceAll("_","/"),a=t.padEnd(Math.ceil(t.length/4)*4,"=");return Uint8Array.from(atob(a),n=>n.charCodeAt(0))},w=e=>{let t="";for(const a of e)t+=String.fromCharCode(a);return btoa(t).replaceAll("+","-").replaceAll("/","_").replaceAll("=","")},W=e=>({base64:w(new TextEncoder().encode(e)),utf8:e}),X=new TextDecoder("utf-8",{fatal:!0}),T=e=>{try{return{base64:w(e),utf8:X.decode(e)}}catch{return{base64:w(e)}}},D=e=>Array.from(e,t=>t.toString(16).padStart(2,"0")).join(""),Z=e=>{const t=e.replaceAll(/\s/g,"");return t.length%2!==0||!/^[\da-f]*$/i.test(t)?null:Uint8Array.from(t.match(/.{2}/g)?.map(a=>Number.parseInt(a,16))??[])},v=e=>{if(!e)return!1;try{return JSON.parse(e),!0}catch{return!1}},ye=({value:e,compact:t=!1,onDownload:a})=>{const n=(0,f.useMemo)(()=>R(e.base64),[e.base64]),[l,c]=(0,f.useState)(e.utf8?v(e.utf8)?"json":"text":"hex"),[o,i]=(0,f.useState)(!1),d=l==="json"&&!v(e.utf8)?e.utf8===void 0?"hex":"text":l,u=d==="hex"?D(n):d==="base64"?e.base64:d==="json"&&e.utf8?JSON.stringify(JSON.parse(e.utf8),null,2):e.utf8??"Binary value",m=async()=>{await navigator.clipboard.writeText(u),i(!0),window.setTimeout(()=>i(!1),1200)},p=()=>{const r=new Blob([new Uint8Array(n).buffer]),I=URL.createObjectURL(r),b=document.createElement("a");b.href=I,b.download="redis-value.bin",b.click(),URL.revokeObjectURL(I)};return t?(0,s.jsx)("span",{className:"truncate font-mono text-xs text-foreground",title:u,children:u||"∅"}):(0,s.jsxs)("div",{className:"overflow-hidden border border-border bg-background",children:[(0,s.jsxs)("div",{className:"flex h-10 items-center justify-between border-b border-border",children:[(0,s.jsx)(H,{type:"single",variant:"ghost",size:"sm",value:d,onValueChange:r=>r&&c(r),className:"h-full rounded-none",children:["text",...v(e.utf8)?["json"]:[],"hex","base64"].map(r=>(0,s.jsx)($,{value:r,"aria-label":`View value as ${r}`,disabled:(r==="text"||r==="json")&&e.utf8===void 0,className:"h-full rounded-none! px-3 text-[10px] uppercase tracking-wider text-muted-foreground data-[state=on]:bg-muted data-[state=on]:text-foreground",children:r},r))}),(0,s.jsxs)("div",{className:"flex",children:[(0,s.jsx)(C,{variant:"ghost",size:"icon-sm",onClick:m,"aria-label":o?"Value copied":"Copy value",children:(0,s.jsxs)("span",{className:"relative inline-flex items-center justify-center",children:[(0,s.jsx)(M,{className:j("transition-[opacity,scale,filter] duration-300 ease-[cubic-bezier(0.2,0,0,1)]",o?"scale-25 opacity-0 blur-[4px]":"scale-100 opacity-100 blur-[0px]")}),(0,s.jsx)(k,{className:j("absolute inset-0 transition-[opacity,scale,filter] duration-300 ease-[cubic-bezier(0.2,0,0,1)]",o?"scale-100 opacity-100 blur-[0px]":"scale-25 opacity-0 blur-[4px]")})]})}),(0,s.jsx)(C,{variant:"ghost",size:"icon-sm",onClick:a??p,"aria-label":"Download original bytes",children:(0,s.jsx)(V,{})})]})]}),(0,s.jsx)("pre",{className:"max-h-[55vh] min-h-32 overflow-auto whitespace-pre-wrap break-all p-3 font-mono text-xs leading-5 text-foreground",children:u})]})},A=(e,t)=>{if(t==="text")return W(e);if(t==="hex"){const a=Z(e);return a&&T(a)}try{return T(R(e))}catch{return null}},xe=({value:e,onChange:t,placeholder:a,className:n,id:l})=>{const[c,o]=(0,f.useState)(e!==null&&e.utf8===void 0?"hex":"text"),i=e===null?null:c==="text"?e.utf8??"":c==="hex"?D(R(e.base64)):e.base64,[d,u]=(0,f.useState)(i??"");(0,f.useEffect)(()=>{i!==null&&u(i)},[i]);const m=r=>{u(r),t(A(r,c))},p=r=>{o(r),e===null&&t(A(d,r))};return(0,s.jsxs)("div",{className:j("flex min-w-0",n),children:[(0,s.jsxs)(G,{value:c,onValueChange:r=>p(r),children:[(0,s.jsx)(Q,{"aria-label":"Value encoding",className:"h-8! w-18 shrink-0 rounded-e-none border-e-0 px-1 font-mono text-[10px] uppercase",children:(0,s.jsx)(J,{})}),(0,s.jsxs)(Y,{children:[(0,s.jsx)(h,{value:"text",children:"Text"}),(0,s.jsx)(h,{value:"hex",children:"Hex"}),(0,s.jsx)(h,{value:"base64",children:"Base64"})]})]}),(0,s.jsx)(B,{id:l,value:d,onChange:r=>m(r.target.value),placeholder:a,"aria-invalid":e===null||void 0,className:"rounded-s-none font-mono h-8!"})]})};export{pe as a,W as i,xe as n,be as o,R as r,me as s,ye as t};
|