@puddle-code/cli 0.2.18 → 0.2.21
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/CHANGELOG.md +4 -16
- package/dist/host-control.mjs +59 -0
- package/dist/index.js +66 -3
- package/dist/public/assets/App-NrJUEV9p.js +2 -0
- package/dist/public/assets/{Dashboard-DdqyCWkG.js → Dashboard-BhAek_r4.js} +1 -1
- package/dist/public/assets/{EditorTabClose-BYTH6g2Z.js → EditorTabClose-CSKAGWsA.js} +1 -1
- package/dist/public/assets/{FindWidget-B4wnVQS_.js → FindWidget-B6dVpkKr.js} +1 -1
- package/dist/public/assets/LazyTerminal-fxF4IO4o.js +2 -0
- package/dist/public/assets/{ModelRefcount-DHis9DXZ.js → ModelRefcount-CrpDNwTn.js} +1 -1
- package/dist/public/assets/{NewProjectDialog-B4ySxxDz.js → NewProjectDialog-D-hVQlA4.js} +1 -1
- package/dist/public/assets/{PaneEditorBody-tjlNFM2W.js → PaneEditorBody--h9jLt1e.js} +3 -3
- package/dist/public/assets/{PdfViewer-Bqvxu-es.js → PdfViewer-CNzO040W.js} +2 -2
- package/dist/public/assets/SettingsDialog-DaxYdggs.js +8 -0
- package/dist/public/assets/{Terminal-B297I2Hn.js → Terminal-DQL8GETy.js} +5 -5
- package/dist/public/assets/{Workspace-BO11vRQa.js → Workspace-BDDSmIKE.js} +5 -5
- package/dist/public/assets/{abnfDiagram-VCTEODGH-BgqZK9hy.js → abnfDiagram-VCTEODGH-Dj6CI3Nv.js} +1 -1
- package/dist/public/assets/architecture-7GRP2DOG-CDcS1iVd.js +1 -0
- package/dist/public/assets/{architectureDiagram-5GKGNRK7-Dic5TzsL.js → architectureDiagram-5GKGNRK7-7n7HJQxV.js} +1 -1
- package/dist/public/assets/{blockDiagram-I7D4REHJ-DVS-B-eY.js → blockDiagram-I7D4REHJ-Cmsxv8OS.js} +1 -1
- package/dist/public/assets/{buffer-store-CXH0xBDj.js → buffer-store-NeRSjzSg.js} +3 -3
- package/dist/public/assets/{button-CZSpHYG9.js → button-hdghxls7.js} +1 -1
- package/dist/public/assets/{c4Diagram-7LVT6UL2-BSzLGfzg.js → c4Diagram-7LVT6UL2-D23ryIme.js} +1 -1
- package/dist/public/assets/channel-B98_B4F2.js +1 -0
- package/dist/public/assets/{chunk-2E4U76K2-CdDCDyYU.js → chunk-2E4U76K2-usroR3SM.js} +1 -1
- package/dist/public/assets/{chunk-4HAMMTFA-DEQ4g2Vr.js → chunk-4HAMMTFA-B4mxD8f1.js} +1 -1
- package/dist/public/assets/{chunk-75Z2AOVW-Bil9fayR.js → chunk-75Z2AOVW-BSDNHsOk.js} +1 -1
- package/dist/public/assets/{chunk-CLGD4ZFX-BCcQCUw7.js → chunk-CLGD4ZFX-DpUm0L6C.js} +1 -1
- package/dist/public/assets/{chunk-DU6HZSFF-BsEqNRs6.js → chunk-DU6HZSFF-Cin9bFEJ.js} +1 -1
- package/dist/public/assets/{chunk-F27PBJKO-3VPQvVOa.js → chunk-F27PBJKO-BWPIZmRh.js} +1 -1
- package/dist/public/assets/{chunk-GMAD6QVW-B1-kp_mS.js → chunk-GMAD6QVW-eS27qQYi.js} +1 -1
- package/dist/public/assets/{chunk-GVQU2GXP-CcH5DIRn.js → chunk-GVQU2GXP-DvZzuy44.js} +1 -1
- package/dist/public/assets/{chunk-IMKFNOWR-DXsqjjty.js → chunk-IMKFNOWR-CKfEqBn8.js} +1 -1
- package/dist/public/assets/{chunk-L3NEJ4N5-CLWbTGk0.js → chunk-L3NEJ4N5-Gq2sL0Oq.js} +1 -1
- package/dist/public/assets/{chunk-OSK3NFVY-Cg7bYfyL.js → chunk-OSK3NFVY-DSHFDm2K.js} +1 -1
- package/dist/public/assets/{chunk-P2QGCYS3-CPn0gvFx.js → chunk-P2QGCYS3-B0b6PsO0.js} +1 -1
- package/dist/public/assets/{chunk-POPQ4Y6H-Dy-mw1ro.js → chunk-POPQ4Y6H-B_whPWNN.js} +1 -1
- package/dist/public/assets/{chunk-PWAF6VOD-CrBboqO8.js → chunk-PWAF6VOD-DfdxoQ_F.js} +1 -1
- package/dist/public/assets/{chunk-SHT3W25Y-CPJO0R1G.js → chunk-SHT3W25Y-CHrnqlvt.js} +1 -1
- package/dist/public/assets/{chunk-SVP7TREG-BIhK7PZA.js → chunk-SVP7TREG-keTkvLck.js} +1 -1
- package/dist/public/assets/{chunk-TICWLB2K-CyGrrjlf.js → chunk-TICWLB2K-ZF0XdA5t.js} +1 -1
- package/dist/public/assets/{chunk-TLUHSLCS-EdA0yALB.js → chunk-TLUHSLCS-B3xiw07r.js} +2 -2
- package/dist/public/assets/classDiagram-ZZMXUADV-CalLaxUD.js +1 -0
- package/dist/public/assets/classDiagram-v2-VYDZK3BY-CalLaxUD.js +1 -0
- package/dist/public/assets/{context-menu-BcxQJKjd.js → context-menu-fGutCa7q.js} +1 -1
- package/dist/public/assets/{copy-DO0WkB3-.js → copy-B38GDFbv.js} +1 -1
- package/dist/public/assets/{cssMode-D53Um_ik.js → cssMode-BBPxRrZH.js} +1 -1
- package/dist/public/assets/{cynefin-OW5HDTMX-Cc22mgCn.js → cynefin-OW5HDTMX-BKwXHhp6.js} +1 -1
- package/dist/public/assets/{cynefinDiagram-5FMLGOSQ-CIyNRThr.js → cynefinDiagram-5FMLGOSQ-B59dmX8D.js} +1 -1
- package/dist/public/assets/{dagre-GXQ25YYZ-CnMk_Gwy.js → dagre-GXQ25YYZ-BysK_yGg.js} +1 -1
- package/dist/public/assets/{diagram-S7CK7UJ4-D0MGCjd4.js → diagram-S7CK7UJ4-BTvgOprS.js} +1 -1
- package/dist/public/assets/{diagram-UQ7AKVKN-BmkJFJIY.js → diagram-UQ7AKVKN-C1FXQfFT.js} +1 -1
- package/dist/public/assets/{diagram-VSXAHHWV-Dbl-ipQB.js → diagram-VSXAHHWV-CTub3LLw.js} +1 -1
- package/dist/public/assets/{diagram-VX7I27RA-DRVKTRul.js → diagram-VX7I27RA-C8YSQsst.js} +1 -1
- package/dist/public/assets/{diagram-Z3DM3KII-RyOfpikP.js → diagram-Z3DM3KII-zBY2ZT-7.js} +1 -1
- package/dist/public/assets/dialog-CVAp0B_q.js +41 -0
- package/dist/public/assets/disclosure-CWTUvRKU.js +1 -0
- package/dist/public/assets/{dist-sv8JIOv-.js → dist-1iWQMdtt.js} +1 -1
- package/dist/public/assets/{dist-Ci7LEIn0.js → dist-DWt3BCrg.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-PWID7BFC-DsbOKLzm.js → ebnfDiagram-PWID7BFC-DZbYMMq9.js} +1 -1
- package/dist/public/assets/{erDiagram-RLTQ6QDP-BRu0Y85B.js → erDiagram-RLTQ6QDP-BufFqh6K.js} +1 -1
- package/dist/public/assets/{errors-wktZNO7z.js → errors-0CwhraNS.js} +1 -1
- package/dist/public/assets/eventmodeling-NTZA5JFV-CC5F0fZk.js +1 -0
- package/dist/public/assets/flowDiagram-HODETNUW-Dmt2DAB8.js +1 -0
- package/dist/public/assets/{ganttDiagram-EL5Y4UJY-BvxI4ZZ2.js → ganttDiagram-EL5Y4UJY-CzBnAVfV.js} +1 -1
- package/dist/public/assets/{gitGraph-4MIJSDKK-vLrRAKmJ.js → gitGraph-4MIJSDKK-DzkiKDz3.js} +1 -1
- package/dist/public/assets/{gitGraphDiagram-WWUBYQGX-BJ4Dh4JQ.js → gitGraphDiagram-WWUBYQGX-Cg5zqV71.js} +1 -1
- package/dist/public/assets/{htmlMode-7q2c14cA.js → htmlMode-HP2zLptL.js} +1 -1
- package/dist/public/assets/{index-CIyjjiv2.js → index-W9vnFL1i.js} +4 -4
- package/dist/public/assets/{info-A6RAGUB7-Dgq4dAoa.js → info-A6RAGUB7-DrzRcVCp.js} +1 -1
- package/dist/public/assets/{infoDiagram-27XIBGKW-BBeyIc-M.js → infoDiagram-27XIBGKW-DKhhQ6Mi.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-5VMMS53U-Bcmg0Rdq.js → ishikawaDiagram-5VMMS53U-Sxvy6BP4.js} +1 -1
- package/dist/public/assets/{journeyDiagram-3NMN7TZE-CwY84cL9.js → journeyDiagram-3NMN7TZE-DLCDGlAt.js} +1 -1
- package/dist/public/assets/{jsonMode-DrKVocC3.js → jsonMode-3cqCCYan.js} +1 -1
- package/dist/public/assets/{kanban-definition-UXKFOSKX-CF1YxPMi.js → kanban-definition-UXKFOSKX-BBHezsUK.js} +1 -1
- package/dist/public/assets/{line-4eWO9hqS.js → line-CXD0KIW6.js} +1 -1
- package/dist/public/assets/{markdown-mermaid-B3PzAp3L.js → markdown-mermaid-gr78oRak.js} +2 -2
- package/dist/public/assets/{math-C84CoDfI.js → math-DD0qgOf_.js} +1 -1
- package/dist/public/assets/{media-refresh-store-CTzNrUO5.js → media-refresh-store-DTLvGgrw.js} +1 -1
- package/dist/public/assets/{mermaid-parser.core-DINfbsjJ.js → mermaid-parser.core-CQpv25sY.js} +3 -3
- package/dist/public/assets/{mermaid.core-Cgopz4Nb.js → mermaid.core-CO3okgIG.js} +3 -3
- package/dist/public/assets/{mindmap-definition-YA3MSWOX-DiV-gupr.js → mindmap-definition-YA3MSWOX-DnuqRR1y.js} +1 -1
- package/dist/public/assets/notification-delivery-rQp5tkM8.js +1 -0
- package/dist/public/assets/{packet-AYTQ26CC-D4U8naDn.js → packet-AYTQ26CC--9UnHksn.js} +1 -1
- package/dist/public/assets/{pdf-Kc6SO_pI.js → pdf-DFR5TvGJ.js} +1 -1
- package/dist/public/assets/{pegDiagram-XKGWAZYB-2EhHewzX.js → pegDiagram-XKGWAZYB-m8JdNNtC.js} +1 -1
- package/dist/public/assets/{pie-WAS4IAKB-hLX3y_iU.js → pie-WAS4IAKB-GnDinOP5.js} +1 -1
- package/dist/public/assets/{pieDiagram-E7YTZNPT-ZPBxvnxk.js → pieDiagram-E7YTZNPT-u-NA8MFl.js} +1 -1
- package/dist/public/assets/{project-abbrev-DuSyhdGL.js → project-abbrev-Ce2YQx3q.js} +1 -1
- package/dist/public/assets/{protocol-support-B2anXRJW.js → protocol-support-DM3D3Owq.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-AXDQQJYC-BrgYSl9Y.js → quadrantDiagram-AXDQQJYC-si_KhMBB.js} +1 -1
- package/dist/public/assets/{radar-RG4KPBEZ-ezwXnTYT.js → radar-RG4KPBEZ-CnJwODJt.js} +1 -1
- package/dist/public/assets/{railroad-74A4TZTK-CR-81fO8.js → railroad-74A4TZTK-Cgg0LWTI.js} +1 -1
- package/dist/public/assets/railroad-abnf-HS5TGJTU-DPqD3hz7.js +1 -0
- package/dist/public/assets/railroad-ebnf-LZEXJU2U-9Jxyrh7e.js +1 -0
- package/dist/public/assets/railroad-peg-WCYAUIDC-gr2ZokSI.js +1 -0
- package/dist/public/assets/{railroadDiagram-O6MQD6OU-Dm98Dukk.js → railroadDiagram-O6MQD6OU-DuQX8qaE.js} +1 -1
- package/dist/public/assets/{requirementDiagram-BXWQKSXE-BKUOU0s7.js → requirementDiagram-BXWQKSXE-Chwrn5Tf.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-P5KCCOFB-5197_HSs.js → sankeyDiagram-P5KCCOFB-FpJ30BIQ.js} +1 -1
- package/dist/public/assets/{scroll-restoration-ClxX1YHt.js → scroll-restoration-B3J09_am.js} +1 -1
- package/dist/public/assets/{selection-actions-BTyYbd08.js → selection-actions-awCJJCSe.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-WJ2MYXX4-rNfQjUcO.js → sequenceDiagram-WJ2MYXX4-DVw87Ucm.js} +1 -1
- package/dist/public/assets/{stateDiagram-D77RDMKH-Cx5Ee_e1.js → stateDiagram-D77RDMKH-qmBcs9VH.js} +1 -1
- package/dist/public/assets/stateDiagram-v2-MP3YSRHH-TK5UygAI.js +1 -0
- package/dist/public/assets/{swimlanes-42K2YHIH-wMD3I2QL.js → swimlanes-42K2YHIH-ts5KQGMt.js} +1 -1
- package/dist/public/assets/swimlanesDiagram-VR7AAH4N-BUMN0oZf.js +8 -0
- package/dist/public/assets/{switch-Y_nZqNi0.js → switch-DMkSxGf3.js} +1 -1
- package/dist/public/assets/{timeline-definition-24CTP7MA-mnOLKfvu.js → timeline-definition-24CTP7MA-BDL_pzrt.js} +1 -1
- package/dist/public/assets/{treeView-Q6P3EWNA-DYPLE01q.js → treeView-Q6P3EWNA-B1vMOTkl.js} +1 -1
- package/dist/public/assets/{treemap-WGGIJYW6-D_iDh6g6.js → treemap-WGGIJYW6-wi5T0FIb.js} +1 -1
- package/dist/public/assets/{tsMode-CZWKy2l3.js → tsMode-CsaS5imR.js} +1 -1
- package/dist/public/assets/{use-ui-state-9fFSPrEY.js → use-ui-state-2VprViGF.js} +1 -1
- package/dist/public/assets/{vennDiagram-4TSXK5OY-Bve1WBMV.js → vennDiagram-4TSXK5OY-Djvp5-2_.js} +1 -1
- package/dist/public/assets/{view-state-store-DShmQqnS.js → view-state-store-rOwEBYKn.js} +1 -1
- package/dist/public/assets/{wardley-WFR3VGLG-3pdzzC1s.js → wardley-WFR3VGLG-Di-PFH_i.js} +1 -1
- package/dist/public/assets/{wardleyDiagram-VM6X3IG4-EPB-PAuG.js → wardleyDiagram-VM6X3IG4-B5Y8UZiL.js} +1 -1
- package/dist/public/assets/ws-DsytGlkr.js +1 -0
- package/dist/public/assets/{xychartDiagram-S5SC5T6Z-wGpnlL1-.js → xychartDiagram-S5SC5T6Z-d-pvxFe2.js} +1 -1
- package/dist/public/index.html +3 -1
- package/dist/public/manifest.webmanifest +11 -0
- package/dist/public/notification-worker.js +135 -0
- package/dist/public/puddle-app.png +0 -0
- package/package.json +1 -1
- package/dist/public/assets/App-CGG5do99.js +0 -2
- package/dist/public/assets/LazyTerminal-DqKe6H-V.js +0 -2
- package/dist/public/assets/SettingsDialog-VAdM-npo.js +0 -8
- package/dist/public/assets/architecture-7GRP2DOG-D-XtK_lw.js +0 -1
- package/dist/public/assets/channel-Dl9lubaq.js +0 -1
- package/dist/public/assets/classDiagram-ZZMXUADV-BXIsJXJa.js +0 -1
- package/dist/public/assets/classDiagram-v2-VYDZK3BY-BXIsJXJa.js +0 -1
- package/dist/public/assets/dialog-cFDquLR6.js +0 -41
- package/dist/public/assets/disclosure-FybNXyk_.js +0 -1
- package/dist/public/assets/eventmodeling-NTZA5JFV-CyvczrOZ.js +0 -1
- package/dist/public/assets/flowDiagram-HODETNUW-CZyfSlpG.js +0 -1
- package/dist/public/assets/notification-permission-2B9Xl86r.js +0 -1
- package/dist/public/assets/railroad-abnf-HS5TGJTU-DbufkTPM.js +0 -1
- package/dist/public/assets/railroad-ebnf-LZEXJU2U-DqvR8uyV.js +0 -1
- package/dist/public/assets/railroad-peg-WCYAUIDC-CSIG-i7o.js +0 -1
- package/dist/public/assets/stateDiagram-v2-MP3YSRHH-BC_og2uK.js +0 -1
- package/dist/public/assets/swimlanesDiagram-VR7AAH4N-DD33Ofd5.js +0 -8
- package/dist/public/assets/ws-ClWC7CMz.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-FOHPRMQF-CdD2_EOh.js";import{M as e}from"./mermaid-parser.core-DINfbsjJ.js";export{e as createArchitectureServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{at as e,it as t}from"./chunk-DU6HZSFF-BsEqNRs6.js";var n=(n,r)=>e.lang.round(t.parse(n)[r]);export{n as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import"./src-_wZywoZs.js";import"./chunk-DU6HZSFF-BsEqNRs6.js";import"./chunk-75Z2AOVW-Bil9fayR.js";import"./chunk-PWAF6VOD-CrBboqO8.js";import"./chunk-GMAD6QVW-B1-kp_mS.js";import"./chunk-P2QGCYS3-CPn0gvFx.js";import"./chunk-4HAMMTFA-DEQ4g2Vr.js";import"./chunk-GVQU2GXP-CcH5DIRn.js";import"./chunk-OSK3NFVY-Cg7bYfyL.js";import"./chunk-F27PBJKO-3VPQvVOa.js";import"./chunk-XXDRQBXY-BuE3VzE_.js";import"./chunk-POPQ4Y6H-Dy-mw1ro.js";import"./chunk-L3NEJ4N5-CLWbTGk0.js";import"./chunk-TLUHSLCS-EdA0yALB.js";import{i as t,n,r,t as i}from"./chunk-TICWLB2K-CyGrrjlf.js";var a={parser:n,get db(){return new i},renderer:r,styles:t,init:e(e=>{e.class||={},e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import"./src-_wZywoZs.js";import"./chunk-DU6HZSFF-BsEqNRs6.js";import"./chunk-75Z2AOVW-Bil9fayR.js";import"./chunk-PWAF6VOD-CrBboqO8.js";import"./chunk-GMAD6QVW-B1-kp_mS.js";import"./chunk-P2QGCYS3-CPn0gvFx.js";import"./chunk-4HAMMTFA-DEQ4g2Vr.js";import"./chunk-GVQU2GXP-CcH5DIRn.js";import"./chunk-OSK3NFVY-Cg7bYfyL.js";import"./chunk-F27PBJKO-3VPQvVOa.js";import"./chunk-XXDRQBXY-BuE3VzE_.js";import"./chunk-POPQ4Y6H-Dy-mw1ro.js";import"./chunk-L3NEJ4N5-CLWbTGk0.js";import"./chunk-TLUHSLCS-EdA0yALB.js";import{i as t,n,r,t as i}from"./chunk-TICWLB2K-CyGrrjlf.js";var a={parser:n,get db(){return new i},renderer:r,styles:t,init:e(e=>{e.class||={},e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{t}from"./react-CZI7_Jkm.js";import{n,rt as r}from"./index-CIyjjiv2.js";import{a as i,n as a}from"./button-CZSpHYG9.js";import{n as o,t as s}from"./x-CZCUod6A.js";var c=e(t(),1);typeof window<`u`&&window.document&&window.document.createElement;function l(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)}}var u=n();function d(e,t=[]){let n=[];function r(t,r){let i=c.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,l=c.useMemo(()=>o,Object.values(o));return(0,u.jsx)(s.Provider,{value:l,children:r})};o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:l=!1}=s,u=o?.[e]?.[a]||i,d=c.useContext(u);if(d)return d;if(r!==void 0)return r;if(!l)throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>c.createContext(e));return function(n){let r=n?.[e]||t;return c.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,f(i,...t)]}function f(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}var p=e(r(),1),m=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=a(`Primitive.${t}`),r=c.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,u.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function h(e,t){e&&p.flushSync(()=>e.dispatchEvent(t))}function g(e){let t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>((...e)=>t.current?.(...e)),[])}var _=`DismissableLayer`,v=`dismissableLayer.update`,y=`dismissableLayer.pointerDownOutside`,b=`dismissableLayer.focusOutside`,ee,x=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),S=c.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:d,onDismiss:f,...p}=e,h=c.useContext(x),[_,y]=c.useState(null),b=_?.ownerDocument??globalThis?.document,[,S]=c.useState({}),C=i(t,y),w=Array.from(h.layers),[te]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),ne=te?w.indexOf(te):-1,T=_?w.indexOf(_):-1,E=h.layersWithOutsidePointerEventsDisabled.size>0,D=T>=ne,oe=c.useRef(!1),O=re(e=>{o?.(e),d?.(e),e.defaultPrevented||f?.()},{ownerDocument:b,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:oe,dismissableSurfaces:h.dismissableSurfaces,shouldHandlePointerDownOutside:c.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...h.branches].some(t=>t.contains(e));return D&&!t},[h.branches,D])}),se=ie(e=>{if(r&&oe.current)return;let t=e.target;[...h.branches].some(e=>e.contains(t))||(s?.(e),d?.(e),e.defaultPrevented||f?.())},b),k=_?T===w.length-1:!1,A=g(e=>{e.key===`Escape`&&(a?.(e),!e.defaultPrevented&&f&&(e.preventDefault(),f()))});return c.useEffect(()=>{if(k)return b.addEventListener(`keydown`,A,{capture:!0}),()=>b.removeEventListener(`keydown`,A,{capture:!0})},[b,k,A]),c.useEffect(()=>{if(_)return n&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(ee=b.body.style.pointerEvents,b.body.style.pointerEvents=`none`),h.layersWithOutsidePointerEventsDisabled.add(_)),h.layers.add(_),ae(),()=>{n&&(h.layersWithOutsidePointerEventsDisabled.delete(_),h.layersWithOutsidePointerEventsDisabled.size===0&&(b.body.style.pointerEvents=ee))}},[_,b,n,h]),c.useEffect(()=>()=>{_&&(h.layers.delete(_),h.layersWithOutsidePointerEventsDisabled.delete(_),ae())},[_,h]),c.useEffect(()=>{let e=()=>S({});return document.addEventListener(v,e),()=>document.removeEventListener(v,e)},[]),(0,u.jsx)(m.div,{...p,ref:C,style:{pointerEvents:E?D?`auto`:`none`:void 0,...e.style},onFocusCapture:l(e.onFocusCapture,se.onFocusCapture),onBlurCapture:l(e.onBlurCapture,se.onBlurCapture),onPointerDownCapture:l(e.onPointerDownCapture,O.onPointerDownCapture)})});S.displayName=_;var C=`DismissableLayerBranch`,w=c.forwardRef((e,t)=>{let n=c.useContext(x),r=c.useRef(null),a=i(t,r);return c.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,u.jsx)(m.div,{...e,ref:a})});w.displayName=C;function te(){let e=c.useContext(x),[t,n]=c.useState(null);return c.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}var ne=()=>!0;function re(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=ne}=t,s=g(e),l=c.useRef(!1),u=c.useRef(!1),d=c.useRef(new Map),f=c.useRef(()=>{});return c.useEffect(()=>{function e(){u.current=!1,i.current=!1,d.current.clear()}function t(){return Array.from(d.current.values()).some(Boolean)}function c(e){if(!u.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||d.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{u.current&&f.current()},0)}function p(e){u.current&&d.current.set(e.type,!1)}let m=a=>{if(a.target&&!l.current){let c=function(){n.removeEventListener(`click`,f.current);let r=t();e(),r||T(y,s,p,{discrete:!0})};if(!o(a.target)){n.removeEventListener(`click`,f.current),e(),l.current=!1;return}let p={originalEvent:a};u.current=!0,i.current=r&&a.button===0,d.current.clear(),!r||a.button!==0?c():(n.removeEventListener(`click`,f.current),f.current=c,n.addEventListener(`click`,f.current,{once:!0}))}else n.removeEventListener(`click`,f.current),e();l.current=!1},h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,c,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,f.current);for(let e of h)n.removeEventListener(e,c,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:()=>l.current=!0}}function ie(e,t=globalThis?.document){let n=g(e),r=c.useRef(!1);return c.useEffect(()=>{let e=e=>{e.target&&!r.current&&T(b,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ae(){let e=new CustomEvent(v);document.dispatchEvent(e)}function T(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?h(i,a):i.dispatchEvent(a)}var E=globalThis?.document?c.useLayoutEffect:()=>{},D=c.useId||(()=>void 0),oe=0;function O(e){let[t,n]=c.useState(D());return E(()=>{e||n(e=>e??String(oe++))},[e]),e||(t?`radix-${t}`:``)}var se=`Portal`,k=c.forwardRef((e,t)=>{let{container:n,...r}=e,[i,a]=c.useState(!1);E(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?p.createPortal((0,u.jsx)(m.div,{...r,ref:t}),o):null});k.displayName=se;function A(e,t){return c.useReducer((e,n)=>t[e][n]??e,e)}var j=e=>{let{present:t,children:n}=e,r=ce(t),i=typeof n==`function`?n({present:r.isPresent}):c.Children.only(n),a=ue(r.ref,de(i));return typeof n==`function`||r.isPresent?c.cloneElement(i,{ref:a}):null};j.displayName=`Presence`;function ce(e){let[t,n]=c.useState(),r=c.useRef(null),i=c.useRef(e),a=c.useRef(`none`),o=c.useRef(void 0),[s,l]=A(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return c.useEffect(()=>{s===`mounted`?(a.current=o.current??M(r.current),o.current=void 0):a.current=`none`},[s]),E(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=M(t);e?(o.current=s,l(`MOUNT`)):s===`none`||t?.display===`none`?l(`UNMOUNT`):l(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,l]),E(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=a=>{let o=M(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(l(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},s=e=>{e.target===t&&(a.current=M(r.current))};return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}else l(`ANIMATION_END`)},[t,l]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:c.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=M(t)}else r.current=null;n(e)},[])}}function le(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function ue(...e){let t=c.useRef(e);return t.current=e,c.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=le(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():le(n[e],null)}}},[])}function M(e){return e?.animationName||`none`}function de(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 fe=c.useInsertionEffect||E;function pe({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,o]=me({defaultProp:t,onChange:n}),s=e!==void 0,l=s?e:i;{let t=c.useRef(e!==void 0);c.useEffect(()=>{let e=t.current;e!==s&&console.warn(`${r} is changing from ${e?`controlled`:`uncontrolled`} to ${s?`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.`),t.current=s},[s,r])}return[l,c.useCallback(t=>{if(s){let n=he(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}function me({defaultProp:e,onChange:t}){let[n,r]=c.useState(e),i=c.useRef(n),a=c.useRef(t);return fe(()=>{a.current=t},[t]),c.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}function he(e){return typeof e==`function`}var ge=`focusScope.autoFocusOnMount`,N=`focusScope.autoFocusOnUnmount`,_e={bubbles:!1,cancelable:!0},ve=`FocusScope`,ye=c.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...s}=e,[l,d]=c.useState(null),f=g(a),p=g(o),h=c.useRef(null),_=i(t,d),v=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let e=function(e){if(v.paused||!l)return;let t=e.target;l.contains(t)?h.current=t:P(h.current,{select:!0})},t=function(e){if(v.paused||!l)return;let t=e.relatedTarget;t!==null&&(l.contains(t)||P(h.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&P(l)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,l,v.paused]),c.useEffect(()=>{if(l){Ee.add(v);let e=document.activeElement;if(!l.contains(e)){let t=new CustomEvent(ge,_e);l.addEventListener(ge,f),l.dispatchEvent(t),t.defaultPrevented||(be(ke(Se(l)),{select:!0}),document.activeElement===e&&P(l))}return()=>{l.removeEventListener(ge,f),setTimeout(()=>{let t=new CustomEvent(N,_e);l.addEventListener(N,p),l.dispatchEvent(t),t.defaultPrevented||P(e??document.body,{select:!0}),l.removeEventListener(N,p),Ee.remove(v)},0)}}},[l,f,p,v]);let y=c.useCallback(e=>{if(!n&&!r||v.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=xe(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&P(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&P(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,v.paused]);return(0,u.jsx)(m.div,{tabIndex:-1,...s,ref:_,onKeyDown:y})});ye.displayName=ve;function be(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(P(r,{select:t}),document.activeElement!==n)return}function xe(e){let t=Se(e);return[Ce(t,e),Ce(t.reverse(),e)]}function Se(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ce(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):we(r,{upTo:t})))return r}function we(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 Te(e){return e instanceof HTMLInputElement&&`select`in e}function P(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Te(e)&&t&&e.select()}}var Ee=De();function De(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=Oe(e,t),e.unshift(t)},remove(t){e=Oe(e,t),e[0]?.resume()}}}function Oe(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function ke(e){return e.filter(e=>e.tagName!==`A`)}var F=0,I=null;function Ae(){c.useEffect(()=>{I||={start:je(),end:je()};let{start:e,end:t}=I;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),F++,()=>{F===1&&(I?.start.remove(),I?.end.remove(),I=null),F=Math.max(0,F-1)}},[])}function je(){let 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 L=function(){return L=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},L.apply(this,arguments)};function Me(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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Ne(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var R=`right-scroll-bar-position`,z=`width-before-scroll-bar`,Pe=`with-scroll-bars-hidden`,Fe=`--removed-body-scroll-bar-size`;function B(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Ie(e,t){var n=(0,c.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Le=typeof window<`u`?c.useLayoutEffect:c.useEffect,Re=new WeakMap;function ze(e,t){var n=Ie(t||null,function(t){return e.forEach(function(e){return B(e,t)})});return Le(function(){var t=Re.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||B(e,null)}),i.forEach(function(e){r.has(e)||B(e,a)})}Re.set(n,e)},[e]),n}function Be(e){return e}function Ve(e,t){t===void 0&&(t=Be);var n=[],r=!1;return{read:function(){if(r)throw 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(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function He(e){e===void 0&&(e={});var t=Ve(null);return t.options=L({async:!0,ssr:!1},e),t}var Ue=function(e){var t=e.sideCar,n=Me(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return c.createElement(r,L({},n))};Ue.isSideCarExport=!0;function We(e,t){return e.useMedium(t),Ue}var Ge=He(),Ke=function(){},V=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:Ke,onWheelCapture:Ke,onTouchMoveCapture:Ke}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noRelative,h=e.noIsolation,g=e.inert,_=e.allowPinchZoom,v=e.as,y=v===void 0?`div`:v,b=e.gapMode,ee=Me(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=p,S=ze([n,t]),C=L(L({},ee),i);return c.createElement(c.Fragment,null,d&&c.createElement(x,{sideCar:Ge,removeScrollBar:u,shards:f,noRelative:m,noIsolation:h,inert:g,setCallbacks:a,allowPinchZoom:!!_,lockRef:n,gapMode:b}),o?c.cloneElement(c.Children.only(s),L(L({},C),{ref:S})):c.createElement(y,L({},C,{className:l,ref:S}),s))});V.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},V.classNames={fullWidth:z,zeroRight:R};var qe,Je=function(){if(qe)return qe;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Ye(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Je();return t&&e.setAttribute(`nonce`,t),e}function Xe(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ze(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var Qe=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Ye())&&(Xe(t,n),Ze(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},$e=function(){var e=Qe();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},et=function(){var e=$e();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},tt={left:0,top:0,right:0,gap:0},nt=function(e){return parseInt(e||``,10)||0},rt=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[nt(n),nt(r),nt(i)]},it=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return tt;var t=rt(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])}},at=et(),H=`data-scroll-locked`,ot=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
|
|
2
|
-
.${Pe} {
|
|
3
|
-
overflow: hidden ${r};
|
|
4
|
-
padding-right: ${s}px ${r};
|
|
5
|
-
}
|
|
6
|
-
body[${H}] {
|
|
7
|
-
overflow: hidden ${r};
|
|
8
|
-
overscroll-behavior: contain;
|
|
9
|
-
${[t&&`position: relative ${r};`,n===`margin`&&`
|
|
10
|
-
padding-left: ${i}px;
|
|
11
|
-
padding-top: ${a}px;
|
|
12
|
-
padding-right: ${o}px;
|
|
13
|
-
margin-left:0;
|
|
14
|
-
margin-top:0;
|
|
15
|
-
margin-right: ${s}px ${r};
|
|
16
|
-
`,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.${R} {
|
|
20
|
-
right: ${s}px ${r};
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.${z} {
|
|
24
|
-
margin-right: ${s}px ${r};
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.${R} .${R} {
|
|
28
|
-
right: 0 ${r};
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.${z} .${z} {
|
|
32
|
-
margin-right: 0 ${r};
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
body[${H}] {
|
|
36
|
-
${Fe}: ${s}px;
|
|
37
|
-
}
|
|
38
|
-
`},st=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},ct=function(){c.useEffect(function(){return document.body.setAttribute(H,(st()+1).toString()),function(){var e=st()-1;e<=0?document.body.removeAttribute(H):document.body.setAttribute(H,e.toString())}},[])},lt=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;ct();var a=c.useMemo(function(){return it(i)},[i]);return c.createElement(at,{styles:ot(a,!t,i,n?``:`!important`)})},ut=!1;if(typeof window<`u`)try{var U=Object.defineProperty({},"passive",{get:function(){return ut=!0,!0}});window.addEventListener(`test`,U,U),window.removeEventListener(`test`,U,U)}catch{ut=!1}var W=ut?{passive:!1}:!1,dt=function(e){return e.tagName===`TEXTAREA`},ft=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!dt(e)&&n[t]===`visible`)},pt=function(e){return ft(e,`overflowY`)},mt=function(e){return ft(e,`overflowX`)},ht=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),vt(e,r)){var i=yt(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},gt=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},_t=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},vt=function(e,t){return e===`v`?pt(t):mt(t)},yt=function(e,t){return e===`v`?gt(t):_t(t)},bt=function(e,t){return e===`h`&&t===`rtl`?-1:1},xt=function(e,t,n,r,i){var a=bt(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=yt(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&vt(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},G=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},St=function(e){return[e.deltaX,e.deltaY]},Ct=function(e){return e&&`current`in e?e.current:e},wt=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Tt=function(e){return`
|
|
39
|
-
.block-interactivity-${e} {pointer-events: none;}
|
|
40
|
-
.allow-interactivity-${e} {pointer-events: all;}
|
|
41
|
-
`},Et=0,K=[];function Dt(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),i=c.useState(Et++)[0],a=c.useState(et)[0],o=c.useRef(e);c.useEffect(function(){o.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=Ne([e.lockRef.current],(e.shards||[]).map(Ct),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=c.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=G(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=ht(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=ht(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return xt(h,t,e,h===`h`?s:c,!0)},[]),l=c.useCallback(function(e){var n=e;if(!(!K.length||K[K.length-1]!==a)){var r=`deltaY`in n?St(n):G(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&wt(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(Ct).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=c.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Ot(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=c.useCallback(function(e){n.current=G(e),r.current=void 0},[]),f=c.useCallback(function(t){u(t.type,St(t),t.target,s(t,e.lockRef.current))},[]),p=c.useCallback(function(t){u(t.type,G(t),t.target,s(t,e.lockRef.current))},[]);c.useEffect(function(){return K.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener(`wheel`,l,W),document.addEventListener(`touchmove`,l,W),document.addEventListener(`touchstart`,d,W),function(){K=K.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,l,W),document.removeEventListener(`touchmove`,l,W),document.removeEventListener(`touchstart`,d,W)}},[]);var m=e.removeScrollBar,h=e.inert;return c.createElement(c.Fragment,null,h?c.createElement(a,{styles:Tt(i)}):null,m?c.createElement(lt,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ot(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var kt=We(Ge,Dt),At=c.forwardRef(function(e,t){return c.createElement(V,L({},e,{ref:t,sideCar:kt}))});At.classNames=V.classNames;var jt=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},q=new WeakMap,J=new WeakMap,Y={},Mt=0,Nt=function(e){return e&&(e.host||Nt(e.parentNode))},Pt=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Nt(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},Ft=function(e,t,n,r){var i=Pt(t,Array.isArray(e)?e:[e]);Y[n]||(Y[n]=new WeakMap);var a=Y[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(q.get(e)||0)+1,l=(a.get(e)||0)+1;q.set(e,c),a.set(e,l),o.push(e),c===1&&i&&J.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Mt++,function(){o.forEach(function(e){var t=q.get(e)-1,i=a.get(e)-1;q.set(e,t),a.set(e,i),t||(J.has(e)||e.removeAttribute(r),J.delete(e)),i||e.removeAttribute(n)}),Mt--,Mt||(q=new WeakMap,q=new WeakMap,J=new WeakMap,Y={})}},It=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||jt(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Ft(r,i,n,`aria-hidden`)):function(){return null}},X=`Dialog`,[Lt,Rt]=d(X),[zt,Z]=Lt(X),Bt=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=c.useRef(null),l=c.useRef(null),[d,f]=pe({prop:r,defaultProp:i??!1,onChange:a,caller:X});return(0,u.jsx)(zt,{scope:t,triggerRef:s,contentRef:l,contentId:O(),titleId:O(),descriptionId:O(),open:d,onOpenChange:f,onOpenToggle:c.useCallback(()=>f(e=>!e),[f]),modal:o,children:n})};Bt.displayName=X;var Vt=`DialogTrigger`,Ht=c.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,a=Z(Vt,n),o=i(t,a.triggerRef);return(0,u.jsx)(m.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":sn(a.open),...r,ref:o,onClick:l(e.onClick,a.onOpenToggle)})});Ht.displayName=Vt;var Ut=`DialogPortal`,[Wt,Gt]=Lt(Ut,{forceMount:void 0}),Kt=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=Z(Ut,t);return(0,u.jsx)(Wt,{scope:t,forceMount:n,children:c.Children.map(r,e=>(0,u.jsx)(j,{present:n||a.open,children:(0,u.jsx)(k,{asChild:!0,container:i,children:e})}))})};Kt.displayName=Ut;var Q=`DialogOverlay`,qt=c.forwardRef((e,t)=>{let n=Gt(Q,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Z(Q,e.__scopeDialog);return a.modal?(0,u.jsx)(j,{present:r||a.open,children:(0,u.jsx)(Yt,{...i,ref:t})}):null});qt.displayName=Q;var Jt=a(`DialogOverlay.RemoveScroll`),Yt=c.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,a=Z(Q,n),o=i(t,te());return(0,u.jsx)(At,{as:Jt,allowPinchZoom:!0,shards:[a.contentRef],children:(0,u.jsx)(m.div,{"data-state":sn(a.open),...r,ref:o,style:{pointerEvents:`auto`,...r.style}})})}),$=`DialogContent`,Xt=c.forwardRef((e,t)=>{let n=Gt($,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Z($,e.__scopeDialog);return(0,u.jsx)(j,{present:r||a.open,children:a.modal?(0,u.jsx)(Zt,{...i,ref:t}):(0,u.jsx)(Qt,{...i,ref:t})})});Xt.displayName=$;var Zt=c.forwardRef((e,t)=>{let n=Z($,e.__scopeDialog),r=c.useRef(null),a=i(t,n.contentRef,r);return c.useEffect(()=>{let e=r.current;if(e)return It(e)},[]),(0,u.jsx)($t,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:l(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:l(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:l(e.onFocusOutside,e=>e.preventDefault())})}),Qt=c.forwardRef((e,t)=>{let n=Z($,e.__scopeDialog),r=c.useRef(!1),i=c.useRef(!1);return(0,u.jsx)($t,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),$t=c.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=Z($,n);return Ae(),(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(ye,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,u.jsx)(S,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":sn(s.open),...o,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})}),en=`DialogTitle`,tn=c.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=Z(en,n);return(0,u.jsx)(m.h2,{id:i.titleId,...r,ref:t})});tn.displayName=en;var nn=`DialogDescription`,rn=c.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=Z(nn,n);return(0,u.jsx)(m.p,{id:i.descriptionId,...r,ref:t})});rn.displayName=nn;var an=`DialogClose`,on=c.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=Z(an,n);return(0,u.jsx)(m.button,{type:`button`,...r,ref:t,onClick:l(e.onClick,()=>i.onOpenChange(!1))})});on.displayName=an;function sn(e){return e?`open`:`closed`}var cn=Bt;function ln({className:e,children:t,wide:n=!1,...r}){return(0,u.jsxs)(Kt,{children:[(0,u.jsx)(qt,{className:`fixed inset-0 z-50 bg-ground/70 backdrop-blur-[2px]`}),(0,u.jsxs)(Xt,{className:o(`fixed left-1/2 top-[calc(var(--phone-top,0px)+var(--phone-height,100dvh)/2)] z-50 grid max-h-[calc(var(--phone-height,100dvh)-2rem)] w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 overflow-y-auto rounded-lg bg-elevated p-5 shadow-2xl`,n?`max-w-3xl`:`max-w-md`,e),...r,children:[t,(0,u.jsxs)(on,{className:`absolute right-3.5 top-3.5 rounded-sm text-fg-muted transition-colors hover:text-fg`,children:[(0,u.jsx)(s,{className:`size-4`}),(0,u.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function un({className:e,...t}){return(0,u.jsx)(`div`,{className:o(`flex flex-col gap-1`,e),...t})}function dn({className:e,...t}){return(0,u.jsx)(tn,{className:o(`text-lg font-semibold text-fg`,e),...t})}function fn({className:e,...t}){return(0,u.jsx)(rn,{className:o(`text-sm text-fg-secondary`,e),...t})}function pn({className:e,...t}){return(0,u.jsx)(`div`,{className:o(`flex justify-end gap-2`,e),...t})}export{h as C,m as S,l as T,k as _,un as a,S as b,Xt as c,It as d,At as f,j as g,pe as h,pn as i,qt as l,ye as m,ln as n,dn as o,Ae as p,fn as r,Bt as s,cn as t,Kt as u,O as v,d as w,g as x,E as y};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{t}from"./react-CZI7_Jkm.js";import{n,rt as r}from"./index-CIyjjiv2.js";import{S as i,T as a,_ as o,b as s,d as c,f as l,g as u,h as d,m as f,p,v as m,w as h,x as g,y as _}from"./dialog-cFDquLR6.js";import{a as v,n as y}from"./button-CZSpHYG9.js";import{_ as b,d as x,f as S,g as C,h as w,l as T,m as E,p as D}from"./LazyTerminal-DqKe6H-V.js";import{m as O,n as k}from"./switch-Y_nZqNi0.js";import{n as A}from"./x-CZCUod6A.js";import{t as j}from"./createLucideIcon-DyMAgLa3.js";import{t as ee}from"./chevron-down--sjpQEHH.js";import{n as te,r as M,t as N}from"./dist-Ci7LEIn0.js";var P=j(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),F=e(t(),1),I=e(r(),1);function L(e,[t,n]){return Math.min(n,Math.max(t,e))}var R=n(),z=[` `,`Enter`,`ArrowUp`,`ArrowDown`],B=[` `,`Enter`],V=`Select`,[H,U,ne]=te(V),[W,re]=h(V,[ne,b]),G=b(),[ie,K]=W(V),[q,ae]=W(V),oe=`SelectProvider`;function se(e){let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:f,disabled:p,required:h,form:g,internal_do_not_use_render:_}=e,v=G(t),[y,b]=F.useState(null),[x,S]=F.useState(null),[w,T]=F.useState(!1),E=N(l),[D,O]=d({prop:r,defaultProp:i??!1,onChange:a,caller:V}),[k,A]=d({prop:o,defaultProp:s,onChange:c,caller:V}),j=F.useRef(null),ee=F.useRef(k);F.useEffect(()=>{let e=g?y?.ownerDocument.getElementById(g):y?.form;if(e instanceof HTMLFormElement){let t=()=>A(ee.current);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[g,y,A]);let te=!y||!!g||!!y.closest(`form`),[M,P]=F.useState(new Set),I=m(),L=Array.from(M).map(e=>e.props.value).join(`;`),z=F.useCallback(e=>{P(t=>new Set(t).add(e))},[]),B=F.useCallback(e=>{P(t=>{let n=new Set(t);return n.delete(e),n})},[]),U={required:h,trigger:y,onTriggerChange:b,valueNode:x,onValueNodeChange:S,valueNodeHasChildren:w,onValueNodeHasChildrenChange:T,contentId:I,value:k,onValueChange:A,open:D,onOpenChange:O,dir:E,triggerPointerDownPosRef:j,disabled:p,name:u,autoComplete:f,form:g,nativeOptions:M,nativeSelectKey:L,isFormControl:te};return(0,R.jsx)(C,{...v,children:(0,R.jsx)(ie,{scope:t,...U,children:(0,R.jsx)(H.Provider,{scope:t,children:(0,R.jsx)(q,{scope:t,onNativeOptionAdd:z,onNativeOptionRemove:B,children:nt(_)?_(U):n})})})})}se.displayName=oe;var ce=e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,R.jsx)(se,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:e})=>(0,R.jsxs)(R.Fragment,{children:[n,e?(0,R.jsx)(tt,{__scopeSelect:t}):null]})})};ce.displayName=V;var le=`SelectTrigger`,ue=F.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...o}=e,s=G(n),c=K(le,n),l=c.disabled||r,u=v(t,c.onTriggerChange),d=U(n),f=F.useRef(`touch`),[p,m,h]=rt(e=>{let t=d().filter(e=>!e.disabled),n=it(t,e,t.find(e=>e.value===c.value));n!==void 0&&c.onValueChange(n.value)}),g=e=>{l||(c.onOpenChange(!0),h()),e&&(c.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,R.jsx)(D,{asChild:!0,...s,children:(0,R.jsx)(i.button,{type:`button`,role:`combobox`,"aria-controls":c.open?c.contentId:void 0,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":`none`,dir:c.dir,"data-state":c.open?`open`:`closed`,disabled:l,"data-disabled":l?``:void 0,"data-placeholder":$(c.value)?``:void 0,...o,ref:u,onClick:a(o.onClick,e=>{e.currentTarget.focus(),f.current!==`mouse`&&g(e)}),onPointerDown:a(o.onPointerDown,e=>{f.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(g(e),e.preventDefault())}),onKeyDown:a(o.onKeyDown,e=>{let t=p.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&m(e.key),!(t&&e.key===` `)&&z.includes(e.key)&&(g(),e.preventDefault())})})})});ue.displayName=le;var de=`SelectValue`,fe=F.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:a,children:o,placeholder:s=``,...c}=e,l=K(de,n),{onValueNodeHasChildrenChange:u}=l,d=o!==void 0,f=v(t,l.onValueNodeChange);_(()=>{u(d)},[u,d]);let p=$(l.value);return(0,R.jsx)(i.span,{...c,asChild:!p&&c.asChild,ref:f,style:{pointerEvents:`none`},children:(0,R.jsx)(F.Fragment,{children:p?s:o},p?`placeholder`:`value`)})});fe.displayName=de;var pe=`SelectIcon`,me=F.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...a}=e;return(0,R.jsx)(i.span,{"aria-hidden":!0,...a,ref:t,children:r||`▼`})});me.displayName=pe;var he=`SelectPortal`,[ge,_e]=W(he,{forceMount:void 0}),ve=e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,R.jsx)(ge,{scope:e.__scopeSelect,forceMount:n,children:(0,R.jsx)(o,{asChild:!0,...r})})};ve.displayName=he;var J=`SelectContent`,ye=F.forwardRef((e,t)=>{let n=_e(J,e.__scopeSelect),{forceMount:r=n.forceMount,...i}=e,a=K(J,e.__scopeSelect),[o,s]=F.useState();return _(()=>{s(new DocumentFragment)},[]),(0,R.jsx)(u,{present:r||a.open,children:({present:e})=>e?(0,R.jsx)(we,{...i,ref:t}):(0,R.jsx)(be,{...i,fragment:o})})});ye.displayName=J;var be=F.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,fragment:i}=e;return i?I.createPortal((0,R.jsx)(xe,{scope:n,children:(0,R.jsx)(H.Slot,{scope:n,children:(0,R.jsx)(`div`,{ref:t,children:r})})}),i):null});be.displayName=`SelectContentFragment`;var Y=10,[xe,X]=W(J),Se=`SelectContentImpl`,Ce=y(`SelectContent.RemoveScroll`),we=F.forwardRef((e,t)=>{let{__scopeSelect:n}=e,{position:r=`item-aligned`,onCloseAutoFocus:i,onEscapeKeyDown:o,onPointerDownOutside:u,side:d,sideOffset:m,align:h,alignOffset:g,arrowPadding:_,collisionBoundary:y,collisionPadding:b,sticky:x,hideWhenDetached:S,avoidCollisions:C,...w}=e,T=K(J,n),[E,D]=F.useState(null),[O,k]=F.useState(null),A=v(t,D),[j,ee]=F.useState(null),[te,M]=F.useState(null),N=U(n),[P,I]=F.useState(!1),L=F.useRef(!1);F.useEffect(()=>{if(E)return c(E)},[E]),p();let z=F.useCallback(e=>{let[t,...n]=N().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&O&&(O.scrollTop=0),n===r&&O&&(O.scrollTop=O.scrollHeight),n?.focus(),document.activeElement!==i))return},[N,O]),B=F.useCallback(()=>z([j,E]),[z,j,E]);F.useEffect(()=>{P&&B()},[P,B]);let{onOpenChange:V,triggerPointerDownPosRef:H}=T;F.useEffect(()=>{if(E){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(H.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(H.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(E)||V(!1),document.removeEventListener(`pointermove`,t),H.current=null};return H.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[E,V,H]),F.useEffect(()=>{let e=()=>V(!1);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[V]);let[ne,W]=rt(e=>{let t=N().filter(e=>!e.disabled),n=it(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current?.focus())}),re=F.useCallback((e,t,n)=>{let r=!L.current&&!n;(T.value!==void 0&&T.value===t||r)&&(ee(e),r&&(L.current=!0))},[T.value]),G=F.useCallback(()=>E?.focus(),[E]),ie=F.useCallback((e,t,n)=>{let r=!L.current&&!n;(T.value!==void 0&&T.value===t||r)&&M(e)},[T.value]),q=r===`popper`?Oe:Ee,ae=q===Oe?{side:d,sideOffset:m,align:h,alignOffset:g,arrowPadding:_,collisionBoundary:y,collisionPadding:b,sticky:x,hideWhenDetached:S,avoidCollisions:C}:{};return(0,R.jsx)(xe,{scope:n,content:E,viewport:O,onViewportChange:k,itemRefCallback:re,selectedItem:j,onItemLeave:G,itemTextRefCallback:ie,focusSelectedItem:B,selectedItemText:te,position:r,isPositioned:P,searchRef:ne,children:(0,R.jsx)(l,{as:Ce,allowPinchZoom:!0,children:(0,R.jsx)(f,{asChild:!0,trapped:T.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:a(i,e=>{T.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,R.jsx)(s,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:(0,R.jsx)(q,{role:`listbox`,id:T.contentId,"data-state":T.open?`open`:`closed`,dir:T.dir,onContextMenu:e=>e.preventDefault(),...w,...ae,onPlaced:()=>I(!0),ref:A,style:{display:`flex`,flexDirection:`column`,outline:`none`,...w.style},onKeyDown:a(w.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&W(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=N().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>z(t)),e.preventDefault()}})})})})})})});we.displayName=Se;var Te=`SelectItemAlignedPosition`,Ee=F.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...a}=e,o=K(J,n),s=X(J,n),[c,l]=F.useState(null),[u,d]=F.useState(null),f=v(t,d),p=U(n),m=F.useRef(!1),h=F.useRef(!0),{viewport:g,selectedItem:y,selectedItemText:b,focusSelectedItem:x}=s,S=F.useCallback(()=>{if(o.trigger&&o.valueNode&&c&&u&&g&&y&&b){let e=o.trigger.getBoundingClientRect(),t=u.getBoundingClientRect(),n=o.valueNode.getBoundingClientRect(),i=b.getBoundingClientRect();if(o.dir!==`rtl`){let r=i.left-t.left,a=n.left-r,o=e.left-a,s=e.width+o,l=Math.max(s,t.width),u=window.innerWidth-Y,d=L(a,[Y,Math.max(Y,u-l)]);c.style.minWidth=s+`px`,c.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,s=e.width+o,l=Math.max(s,t.width),u=window.innerWidth-Y,d=L(a,[Y,Math.max(Y,u-l)]);c.style.minWidth=s+`px`,c.style.right=d+`px`}let a=p(),s=window.innerHeight-Y*2,l=g.scrollHeight,d=window.getComputedStyle(u),f=parseInt(d.borderTopWidth,10),h=parseInt(d.paddingTop,10),_=parseInt(d.borderBottomWidth,10),v=parseInt(d.paddingBottom,10),x=f+h+l+v+_,S=Math.min(y.offsetHeight*5,x),C=window.getComputedStyle(g),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-Y,D=s-E,O=y.offsetHeight/2,k=y.offsetTop+O,A=f+h+k,j=x-A;if(A<=E){let e=a.length>0&&y===a[a.length-1].ref.current;c.style.bottom=`0px`;let t=u.clientHeight-g.offsetTop-g.offsetHeight,n=A+Math.max(D,O+(e?T:0)+t+_);c.style.height=n+`px`}else{let e=a.length>0&&y===a[0].ref.current;c.style.top=`0px`;let t=Math.max(E,f+g.offsetTop+(e?w:0)+O)+j;c.style.height=t+`px`,g.scrollTop=A-E+g.offsetTop}c.style.margin=`${Y}px 0`,c.style.minHeight=S+`px`,c.style.maxHeight=s+`px`,r?.(),requestAnimationFrame(()=>m.current=!0)}},[p,o.trigger,o.valueNode,c,u,g,y,b,o.dir,r]);_(()=>S(),[S]);let[C,w]=F.useState();return _(()=>{u&&w(window.getComputedStyle(u).zIndex)},[u]),(0,R.jsx)(ke,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:m,onScrollButtonChange:F.useCallback(e=>{e&&h.current===!0&&(S(),x?.(),h.current=!1)},[S,x]),children:(0,R.jsx)(`div`,{ref:l,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:C},children:(0,R.jsx)(i.div,{...a,ref:f,style:{boxSizing:`border-box`,maxHeight:`100%`,...a.style}})})})});Ee.displayName=Te;var De=`SelectPopperPosition`,Oe=F.forwardRef((e,t)=>{let{__scopeSelect:n,align:r=`start`,collisionPadding:i=Y,...a}=e,o=G(n);return(0,R.jsx)(w,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})});Oe.displayName=De;var[ke,Ae]=W(J,{}),je=`SelectViewport`,Me=F.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...o}=e,s=X(je,n),c=Ae(je,n),l=v(t,s.onViewportChange),u=F.useRef(0);return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:r}),(0,R.jsx)(H.Slot,{scope:n,children:(0,R.jsx)(i.div,{"data-radix-select-viewport":``,role:`presentation`,...o,ref:l,style:{position:`relative`,flex:1,overflow:`hidden auto`,...o.style},onScroll:a(o.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=c;if(r?.current&&n){let e=Math.abs(u.current-t.scrollTop);if(e>0){let r=window.innerHeight-Y*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}u.current=t.scrollTop})})})]})});Me.displayName=je;var Ne=`SelectGroup`,[Pe,Fe]=W(Ne),Ie=F.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,a=m();return(0,R.jsx)(Pe,{scope:n,id:a,children:(0,R.jsx)(i.div,{role:`group`,"aria-labelledby":a,...r,ref:t})})});Ie.displayName=Ne;var Le=`SelectLabel`,Re=F.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,a=Fe(Le,n);return(0,R.jsx)(i.div,{id:a.id,...r,ref:t})});Re.displayName=Le;var Z=`SelectItem`,[ze,Be]=W(Z),Ve=F.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...c}=e,l=K(Z,n),u=X(Z,n),d=l.value===r,[f,p]=F.useState(s??``),[h,_]=F.useState(!1),y=v(t,g(e=>u.itemRefCallback?.(e,r,o))),b=m(),x=F.useRef(`touch`),S=()=>{o||(l.onValueChange(r),l.onOpenChange(!1))};return(0,R.jsx)(ze,{scope:n,value:r,disabled:o,textId:b,isSelected:d,onItemTextChange:F.useCallback(e=>{p(t=>t||(e?.textContent??``).trim())},[]),children:(0,R.jsx)(H.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:(0,R.jsx)(i.div,{role:`option`,"aria-labelledby":b,"data-highlighted":h?``:void 0,"aria-selected":d&&h,"data-state":d?`checked`:`unchecked`,"aria-disabled":o||void 0,"data-disabled":o?``:void 0,tabIndex:o?void 0:-1,...c,ref:y,onFocus:a(c.onFocus,()=>_(!0)),onBlur:a(c.onBlur,()=>_(!1)),onClick:a(c.onClick,()=>{x.current!==`mouse`&&S()}),onPointerUp:a(c.onPointerUp,()=>{x.current===`mouse`&&S()}),onPointerDown:a(c.onPointerDown,e=>{x.current=e.pointerType}),onPointerMove:a(c.onPointerMove,e=>{x.current=e.pointerType,o?u.onItemLeave?.():x.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:a(c.onPointerLeave,e=>{e.currentTarget===document.activeElement&&u.onItemLeave?.()}),onKeyDown:a(c.onKeyDown,e=>{o||e.target!==e.currentTarget||u.searchRef?.current!==``&&e.key===` `||(B.includes(e.key)&&S(),e.key===` `&&e.preventDefault())})})})})});Ve.displayName=Z;var Q=`SelectItemText`,He=F.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:a,...o}=e,s=K(Q,n),c=X(Q,n),l=Be(Q,n),u=ae(Q,n),[d,f]=F.useState(null),p=g(e=>c.itemTextRefCallback?.(e,l.value,l.disabled)),m=v(t,f,l.onItemTextChange,p),h=d?.textContent,y=F.useMemo(()=>(0,R.jsx)(`option`,{value:l.value,disabled:l.disabled,children:h},l.value),[l.disabled,l.value,h]),{onNativeOptionAdd:b,onNativeOptionRemove:x}=u;return _(()=>(b(y),()=>x(y)),[b,x,y]),(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(i.span,{id:l.textId,...o,ref:m}),l.isSelected&&s.valueNode&&!s.valueNodeHasChildren&&!$(s.value)?I.createPortal(o.children,s.valueNode):null]})});He.displayName=Q;var Ue=`SelectItemIndicator`,We=F.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return Be(Ue,n).isSelected?(0,R.jsx)(i.span,{"aria-hidden":!0,...r,ref:t}):null});We.displayName=Ue;var Ge=`SelectScrollUpButton`,Ke=F.forwardRef((e,t)=>{let n=X(Ge,e.__scopeSelect),r=Ae(Ge,e.__scopeSelect),[i,a]=F.useState(!1),o=v(t,r.onScrollButtonChange);return _(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollTop>0;a(e)},t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,R.jsx)(Ye,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null});Ke.displayName=Ge;var qe=`SelectScrollDownButton`,Je=F.forwardRef((e,t)=>{let n=X(qe,e.__scopeSelect),r=Ae(qe,e.__scopeSelect),[i,a]=F.useState(!1),o=v(t,r.onScrollButtonChange);return _(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;a(n)},t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,R.jsx)(Ye,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null});Je.displayName=qe;var Ye=F.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...o}=e,s=X(`SelectScrollButton`,n),c=F.useRef(null),l=U(n),u=F.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return F.useEffect(()=>()=>u(),[u]),_(()=>{l().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[l]),(0,R.jsx)(i.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:a(o.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(r,50))}),onPointerMove:a(o.onPointerMove,()=>{s.onItemLeave?.(),c.current===null&&(c.current=window.setInterval(r,50))}),onPointerLeave:a(o.onPointerLeave,()=>{u()})})}),Xe=`SelectSeparator`,Ze=F.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,R.jsx)(i.div,{"aria-hidden":!0,...r,ref:t})});Ze.displayName=Xe;var Qe=`SelectArrow`,$e=F.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=G(n);return X(Qe,n).position===`popper`?(0,R.jsx)(E,{...i,...r,ref:t}):null});$e.displayName=Qe;var et=`SelectBubbleInput`,tt=F.forwardRef(({__scopeSelect:e,...t},n)=>{let r=K(et,e),{value:a,onValueChange:o,required:s,disabled:c,name:l,autoComplete:u,form:d}=r,{nativeOptions:f,nativeSelectKey:p}=r,m=F.useRef(null),h=v(n,m),g=a??``,_=k(g),y=Array.from(f).some(e=>(e.props.value??``)===``);return F.useEffect(()=>{let e=m.current;if(!e)return;let t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,`value`).set;if(_!==g&&n){let t=new Event(`change`,{bubbles:!0});n.call(e,g),e.dispatchEvent(t)}},[_,g]),(0,R.jsxs)(i.select,{"aria-hidden":!0,required:s,tabIndex:-1,name:l,autoComplete:u,disabled:c,form:d,onChange:e=>o(e.target.value),...t,style:{...O,...t.style},ref:h,defaultValue:g,children:[$(a)&&!y?(0,R.jsx)(`option`,{value:``}):null,Array.from(f)]},p)});tt.displayName=et;function nt(e){return typeof e==`function`}function $(e){return e===``||e===void 0}function rt(e){let t=g(e),n=F.useRef(``),r=F.useRef(0),i=F.useCallback(e=>{let i=n.current+e;t(i),(function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))})(i)},[t]),a=F.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return F.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}function it(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=at(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function at(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var ot=ce,st=fe;function ct({className:e,children:t,...n}){return(0,R.jsxs)(ue,{className:A(`flex h-8 w-full cursor-pointer items-center justify-between gap-2 px-2.5 [&>span]:truncate`,T,e),...n,children:[t,(0,R.jsx)(me,{asChild:!0,children:(0,R.jsx)(ee,{className:`size-3.5 shrink-0 text-fg-muted`})})]})}function lt({className:e,children:t,position:n=`popper`,...r}){return(0,R.jsx)(ve,{children:(0,R.jsx)(ye,{position:n,sideOffset:4,className:A(`z-50 max-h-72 min-w-[var(--radix-select-trigger-width)] max-w-[var(--radix-select-content-available-width)] overflow-y-auto rounded-md bg-elevated p-1 shadow-xl`,e),...r,children:(0,R.jsx)(Me,{children:t})})})}function ut({className:e,children:t,detail:n,...r}){return(0,R.jsxs)(Ve,{className:A(S,x,`py-1.5 pl-7 pr-2`,e),...r,children:[(0,R.jsx)(`span`,{className:`absolute left-2 flex size-3.5 items-center justify-center`,children:(0,R.jsx)(We,{children:(0,R.jsx)(P,{className:`size-3.5`})})}),(0,R.jsx)(He,{children:t}),n]})}var dt={agent:{baseBranch:``,separateBranch:!1,separateWorktree:!1},terminal:{baseBranch:``,separateBranch:!1,separateWorktree:!1}};function ft(e,t){let n=t?.sessionDefaults?.[e],r=dt[e],i=n?.separateBranch??r.separateBranch;return{baseBranch:n?.baseBranch??r.baseBranch,separateBranch:i,separateWorktree:i?!0:n?.separateWorktree??r.separateWorktree}}function pt({summary:e,summaryClassName:t,className:n,children:r,...i}){return(0,R.jsxs)(`details`,{className:A(`[&[open]>summary>svg]:rotate-90`,n),...i,children:[(0,R.jsxs)(`summary`,{className:A(`flex cursor-pointer select-none list-none items-center gap-1 text-fg-secondary transition-colors hover:text-fg [&::-webkit-details-marker]:hidden`,t),children:[(0,R.jsx)(M,{"aria-hidden":`true`,className:`size-3.5 shrink-0`}),e]}),r]})}export{ut as a,lt as i,ft as n,ct as o,ot as r,st as s,pt as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-FOHPRMQF-CdD2_EOh.js";import{O as e}from"./mermaid-parser.core-DINfbsjJ.js";export{e as createEventModelingServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./src-_wZywoZs.js";import"./chunk-DU6HZSFF-BsEqNRs6.js";import"./chunk-75Z2AOVW-Bil9fayR.js";import"./chunk-PWAF6VOD-CrBboqO8.js";import"./chunk-GMAD6QVW-B1-kp_mS.js";import"./chunk-P2QGCYS3-CPn0gvFx.js";import"./chunk-4HAMMTFA-DEQ4g2Vr.js";import"./chunk-GVQU2GXP-CcH5DIRn.js";import"./chunk-OSK3NFVY-Cg7bYfyL.js";import"./chunk-F27PBJKO-3VPQvVOa.js";import"./chunk-XXDRQBXY-BuE3VzE_.js";import"./chunk-POPQ4Y6H-Dy-mw1ro.js";import"./chunk-L3NEJ4N5-CLWbTGk0.js";import"./chunk-TLUHSLCS-EdA0yALB.js";import"./chunk-LNGE3PJU-DNNNwF8Y.js";import{n as e}from"./chunk-SHT3W25Y-CPJO0R1G.js";export{e as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{t}from"./react-CZI7_Jkm.js";import{n}from"./index-CIyjjiv2.js";import{o as r}from"./dist-sv8JIOv-.js";import{At as i,Nt as a,Qt as o,kt as s}from"./protocol-support-B2anXRJW.js";import{S as c,T as l,_ as u,a as d,b as f,d as p,f as m,g as h,h as ee,m as te,n as ne,o as re,p as ie,r as ae,t as oe,v as se,w as ce}from"./dialog-cFDquLR6.js";import{a as g,n as le}from"./button-CZSpHYG9.js";import{_,g as ue,h as de,i as fe,m as pe,p as v,t as me}from"./LazyTerminal-DqKe6H-V.js";import{c as he,f as ge,s as _e}from"./switch-Y_nZqNi0.js";import{n as y}from"./x-CZCUod6A.js";import{t as b}from"./createLucideIcon-DyMAgLa3.js";var ve=b(`anchor`,[[`path`,{d:`M12 6v16`,key:`nqf5sj`}],[`path`,{d:`m19 13 2-1a9 9 0 0 1-18 0l2 1`,key:`y7qv08`}],[`path`,{d:`M9 11h6`,key:`1fldmi`}],[`circle`,{cx:`12`,cy:`4`,r:`2`,key:`muu5ef`}]]),ye=b(`bike`,[[`circle`,{cx:`18.5`,cy:`17.5`,r:`3.5`,key:`15x4ox`}],[`circle`,{cx:`5.5`,cy:`17.5`,r:`3.5`,key:`1noe27`}],[`circle`,{cx:`15`,cy:`5`,r:`1`,key:`19l28e`}],[`path`,{d:`M12 17.5V14l-3-3 4-3 2 3h2`,key:`1npguv`}]]),be=b(`bird`,[[`path`,{d:`M16 7h.01`,key:`1kdx03`}],[`path`,{d:`M3.4 18H12a8 8 0 0 0 8-8V7a4 4 0 0 0-7.28-2.3L2 20`,key:`oj1oa8`}],[`path`,{d:`m20 7 2 .5-2 .5`,key:`12nv4d`}],[`path`,{d:`M10 18v3`,key:`1yea0a`}],[`path`,{d:`M14 17.75V21`,key:`1pymcb`}],[`path`,{d:`M7 18a6 6 0 0 0 3.84-10.61`,key:`1npnn0`}]]),xe=b(`book-open`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`,key:`ruj8y`}]]),Se=b(`book`,[[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}]]),Ce=b(`brush`,[[`path`,{d:`m11 10 3 3`,key:`fzmg1i`}],[`path`,{d:`M6.5 21A3.5 3.5 0 1 0 3 17.5a2.62 2.62 0 0 1-.708 1.792A1 1 0 0 0 3 21z`,key:`p4q2r7`}],[`path`,{d:`M9.969 17.031 21.378 5.624a1 1 0 0 0-3.002-3.002L6.967 14.031`,key:`wy6l02`}]]),we=b(`bug`,[[`path`,{d:`M12 20v-9`,key:`1qisl0`}],[`path`,{d:`M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z`,key:`uouzyp`}],[`path`,{d:`M14.12 3.88 16 2`,key:`qol33r`}],[`path`,{d:`M21 21a4 4 0 0 0-3.81-4`,key:`1b0z45`}],[`path`,{d:`M21 5a4 4 0 0 1-3.55 3.97`,key:`5cxbf6`}],[`path`,{d:`M22 13h-4`,key:`1jl80f`}],[`path`,{d:`M3 21a4 4 0 0 1 3.81-4`,key:`1fjd4g`}],[`path`,{d:`M3 5a4 4 0 0 0 3.55 3.97`,key:`1d7oge`}],[`path`,{d:`M6 13H2`,key:`82j7cp`}],[`path`,{d:`m8 2 1.88 1.88`,key:`fmnt4t`}],[`path`,{d:`M9 7.13V6a3 3 0 1 1 6 0v1.13`,key:`1vgav8`}]]),Te=b(`cake`,[[`path`,{d:`M20 21v-8a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8`,key:`1w3rig`}],[`path`,{d:`M4 16s.5-1 2-1 2.5 2 4 2 2.5-2 4-2 2.5 2 4 2 2-1 2-1`,key:`n2jgmb`}],[`path`,{d:`M2 21h20`,key:`1nyx9w`}],[`path`,{d:`M7 8v3`,key:`1qtyvj`}],[`path`,{d:`M12 8v3`,key:`hwp4zt`}],[`path`,{d:`M17 8v3`,key:`1i6e5u`}],[`path`,{d:`M7 4h.01`,key:`1bh4kh`}],[`path`,{d:`M12 4h.01`,key:`1ujb9j`}],[`path`,{d:`M17 4h.01`,key:`1upcoc`}]]),Ee=b(`camera`,[[`path`,{d:`M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z`,key:`18u6gg`}],[`circle`,{cx:`12`,cy:`13`,r:`3`,key:`1vg3eu`}]]),De=b(`car`,[[`path`,{d:`M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2`,key:`5owen`}],[`circle`,{cx:`7`,cy:`17`,r:`2`,key:`u2ysq9`}],[`path`,{d:`M9 17h6`,key:`r8uit2`}],[`circle`,{cx:`17`,cy:`17`,r:`2`,key:`axvx0g`}]]),Oe=b(`cat`,[[`path`,{d:`M12 5c.67 0 1.35.09 2 .26 1.78-2 5.03-2.84 6.42-2.26 1.4.58-.42 7-.42 7 .57 1.07 1 2.24 1 3.44C21 17.9 16.97 21 12 21s-9-3-9-7.56c0-1.25.5-2.4 1-3.44 0 0-1.89-6.42-.5-7 1.39-.58 4.72.23 6.5 2.23A9.04 9.04 0 0 1 12 5Z`,key:`x6xyqk`}],[`path`,{d:`M8 14v.5`,key:`1nzgdb`}],[`path`,{d:`M16 14v.5`,key:`1lajdz`}],[`path`,{d:`M11.25 16.25h1.5L12 17l-.75-.75Z`,key:`12kq1m`}]]),x=b(`cloud`,[[`path`,{d:`M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z`,key:`p7xjir`}]]),S=b(`coffee`,[[`path`,{d:`M10 2v2`,key:`7u0qdc`}],[`path`,{d:`M14 2v2`,key:`6buw04`}],[`path`,{d:`M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1`,key:`pwadti`}],[`path`,{d:`M6 2v2`,key:`colzsn`}]]),C=b(`compass`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z`,key:`9ktpf1`}]]),w=b(`crown`,[[`path`,{d:`M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z`,key:`1vdc57`}],[`path`,{d:`M5 21h14`,key:`11awu3`}]]),T=b(`dog`,[[`path`,{d:`M11.25 16.25h1.5L12 17z`,key:`w7jh35`}],[`path`,{d:`M16 14v.5`,key:`1lajdz`}],[`path`,{d:`M4.42 11.247A13.152 13.152 0 0 0 4 14.556C4 18.728 7.582 21 12 21s8-2.272 8-6.444a11.702 11.702 0 0 0-.493-3.309`,key:`u7s9ue`}],[`path`,{d:`M8 14v.5`,key:`1nzgdb`}],[`path`,{d:`M8.5 8.5c-.384 1.05-1.083 2.028-2.344 2.5-1.931.722-3.576-.297-3.656-1-.113-.994 1.177-6.53 4-7 1.923-.321 3.651.845 3.651 2.235A7.497 7.497 0 0 1 14 5.277c0-1.39 1.844-2.598 3.767-2.277 2.823.47 4.113 6.006 4 7-.08.703-1.725 1.722-3.656 1-1.261-.472-1.855-1.45-2.239-2.5`,key:`v8hric`}]]),ke=b(`droplet`,[[`path`,{d:`M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z`,key:`c7niix`}]]),Ae=b(`feather`,[[`path`,{d:`M12.67 19a2 2 0 0 0 1.416-.588l6.154-6.172a6 6 0 0 0-8.49-8.49L5.586 9.914A2 2 0 0 0 5 11.328V18a1 1 0 0 0 1 1z`,key:`18jl4k`}],[`path`,{d:`M16 8 2 22`,key:`vp34q`}],[`path`,{d:`M17.5 15H9`,key:`1oz8nu`}]]),je=b(`fish`,[[`path`,{d:`M6.5 12c.94-3.46 4.94-6 8.5-6 3.56 0 6.06 2.54 7 6-.94 3.47-3.44 6-7 6s-7.56-2.53-8.5-6Z`,key:`15baut`}],[`path`,{d:`M18 12v.5`,key:`18hhni`}],[`path`,{d:`M16 17.93a9.77 9.77 0 0 1 0-11.86`,key:`16dt7o`}],[`path`,{d:`M7 10.67C7 8 5.58 5.97 2.73 5.5c-1 1.5-1 5 .23 6.5-1.24 1.5-1.24 5-.23 6.5C5.58 18.03 7 16 7 13.33`,key:`l9di03`}],[`path`,{d:`M10.46 7.26C10.2 5.88 9.17 4.24 8 3h5.8a2 2 0 0 1 1.98 1.67l.23 1.4`,key:`1kjonw`}],[`path`,{d:`m16.01 17.93-.23 1.4A2 2 0 0 1 13.8 21H9.5a5.96 5.96 0 0 0 1.49-3.98`,key:`1zlm23`}]]),Me=b(`flame`,[[`path`,{d:`M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4`,key:`1slcih`}]]),Ne=b(`flower-2`,[[`path`,{d:`M12 5a3 3 0 1 1 3 3m-3-3a3 3 0 1 0-3 3m3-3v1M9 8a3 3 0 1 0 3 3M9 8h1m5 0a3 3 0 1 1-3 3m3-3h-1m-2 3v-1`,key:`3pnvol`}],[`circle`,{cx:`12`,cy:`8`,r:`2`,key:`1822b1`}],[`path`,{d:`M12 10v12`,key:`6ubwww`}],[`path`,{d:`M12 22c4.2 0 7-1.667 7-5-4.2 0-7 1.667-7 5Z`,key:`9hd38g`}],[`path`,{d:`M12 22c-4.2 0-7-1.667-7-5 4.2 0 7 1.667 7 5Z`,key:`ufn41s`}]]),Pe=b(`flower`,[[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`path`,{d:`M12 16.5A4.5 4.5 0 1 1 7.5 12 4.5 4.5 0 1 1 12 7.5a4.5 4.5 0 1 1 4.5 4.5 4.5 4.5 0 1 1-4.5 4.5`,key:`14wa3c`}],[`path`,{d:`M12 7.5V9`,key:`1oy5b0`}],[`path`,{d:`M7.5 12H9`,key:`eltsq1`}],[`path`,{d:`M16.5 12H15`,key:`vk5kw4`}],[`path`,{d:`M12 16.5V15`,key:`k7eayi`}],[`path`,{d:`m8 8 1.88 1.88`,key:`nxy4qf`}],[`path`,{d:`M14.12 9.88 16 8`,key:`1lst6k`}],[`path`,{d:`m8 16 1.88-1.88`,key:`h2eex1`}],[`path`,{d:`M14.12 14.12 16 16`,key:`uqkrx3`}]]),Fe=b(`gamepad-2`,[[`line`,{x1:`6`,x2:`10`,y1:`11`,y2:`11`,key:`1gktln`}],[`line`,{x1:`8`,x2:`8`,y1:`9`,y2:`13`,key:`qnk9ow`}],[`line`,{x1:`15`,x2:`15.01`,y1:`12`,y2:`12`,key:`krot7o`}],[`line`,{x1:`18`,x2:`18.01`,y1:`10`,y2:`10`,key:`1lcuu1`}],[`path`,{d:`M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z`,key:`mfqc10`}]]),Ie=b(`gem`,[[`path`,{d:`M10.5 3 8 9l4 13 4-13-2.5-6`,key:`b3dvk1`}],[`path`,{d:`M17 3a2 2 0 0 1 1.6.8l3 4a2 2 0 0 1 .013 2.382l-7.99 10.986a2 2 0 0 1-3.247 0l-7.99-10.986A2 2 0 0 1 2.4 7.8l2.998-3.997A2 2 0 0 1 7 3z`,key:`7w4byz`}],[`path`,{d:`M2 9h20`,key:`16fsjt`}]]),Le=b(`ghost`,[[`path`,{d:`M9 10h.01`,key:`qbtxuw`}],[`path`,{d:`M15 10h.01`,key:`1qmjsl`}],[`path`,{d:`M12 2a8 8 0 0 0-8 8v12l3-3 2.5 2.5L12 19l2.5 2.5L17 19l3 3V10a8 8 0 0 0-8-8z`,key:`uwwb07`}]]),Re=b(`gift`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M20 11v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8`,key:`1sqzm4`}],[`path`,{d:`M7.5 7a1 1 0 0 1 0-5A4.8 8 0 0 1 12 7a4.8 8 0 0 1 4.5-5 1 1 0 0 1 0 5`,key:`kc0143`}],[`rect`,{x:`3`,y:`7`,width:`18`,height:`4`,rx:`1`,key:`1hberx`}]]),ze=b(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),Be=b(`guitar`,[[`path`,{d:`m11.9 12.1 4.514-4.514`,key:`109xqo`}],[`path`,{d:`M20.1 2.3a1 1 0 0 0-1.4 0l-1.114 1.114A2 2 0 0 0 17 4.828v1.344a2 2 0 0 1-.586 1.414A2 2 0 0 1 17.828 7h1.344a2 2 0 0 0 1.414-.586L21.7 5.3a1 1 0 0 0 0-1.4z`,key:`txyc8t`}],[`path`,{d:`m6 16 2 2`,key:`16qmzd`}],[`path`,{d:`M8.23 9.85A3 3 0 0 1 11 8a5 5 0 0 1 5 5 3 3 0 0 1-1.85 2.77l-.92.38A2 2 0 0 0 12 18a4 4 0 0 1-4 4 6 6 0 0 1-6-6 4 4 0 0 1 4-4 2 2 0 0 0 1.85-1.23z`,key:`1de1vg`}]]),Ve=b(`headphones`,[[`path`,{d:`M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3`,key:`1xhozi`}]]),He=b(`heart`,[[`path`,{d:`M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5`,key:`mvr1a0`}]]),Ue=b(`ice-cream-cone`,[[`path`,{d:`m7 11 4.08 10.35a1 1 0 0 0 1.84 0L17 11`,key:`1v6356`}],[`path`,{d:`M17 7A5 5 0 0 0 7 7`,key:`151p3v`}],[`path`,{d:`M17 7a2 2 0 0 1 0 4H7a2 2 0 0 1 0-4`,key:`1sdaij`}]]),We=b(`key-round`,[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]),Ge=b(`leaf`,[[`path`,{d:`M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z`,key:`nnexq3`}],[`path`,{d:`M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12`,key:`mt58a7`}]]),Ke=b(`map`,[[`path`,{d:`M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z`,key:`169xi5`}],[`path`,{d:`M15 5.764v15`,key:`1pn4in`}],[`path`,{d:`M9 3.236v15`,key:`1uimfh`}]]),E=b(`moon`,[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]),qe=b(`mountain-snow`,[[`path`,{d:`m8 3 4 8 5-5 5 15H2L8 3z`,key:`otkl63`}],[`path`,{d:`M4.14 15.08c2.62-1.57 5.24-1.43 7.86.42 2.74 1.94 5.49 2 8.23.19`,key:`1pvmmp`}]]),Je=b(`mountain`,[[`path`,{d:`m8 3 4 8 5-5 5 15H2L8 3z`,key:`otkl63`}]]),Ye=b(`music`,[[`path`,{d:`M9 18V5l12-2v13`,key:`1jmyc2`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}],[`circle`,{cx:`18`,cy:`16`,r:`3`,key:`1hluhg`}]]),D=b(`palette`,[[`path`,{d:`M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z`,key:`e79jfc`}],[`circle`,{cx:`13.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`1okk4w`}],[`circle`,{cx:`17.5`,cy:`10.5`,r:`.5`,fill:`currentColor`,key:`f64h9f`}],[`circle`,{cx:`6.5`,cy:`12.5`,r:`.5`,fill:`currentColor`,key:`qy21gx`}],[`circle`,{cx:`8.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`fotxhn`}]]),Xe=b(`paw-print`,[[`circle`,{cx:`11`,cy:`4`,r:`2`,key:`vol9p0`}],[`circle`,{cx:`18`,cy:`8`,r:`2`,key:`17gozi`}],[`circle`,{cx:`20`,cy:`16`,r:`2`,key:`1v9bxh`}],[`path`,{d:`M9 10a5 5 0 0 1 5 5v3.5a3.5 3.5 0 0 1-6.84 1.045Q6.52 17.48 4.46 16.84A3.5 3.5 0 0 1 5.5 10Z`,key:`1ydw1z`}]]),Ze=b(`pizza`,[[`path`,{d:`m12 14-1 1`,key:`11onhr`}],[`path`,{d:`m13.75 18.25-1.25 1.42`,key:`1yisr3`}],[`path`,{d:`M17.775 5.654a15.68 15.68 0 0 0-12.121 12.12`,key:`1qtqk6`}],[`path`,{d:`M18.8 9.3a1 1 0 0 0 2.1 7.7`,key:`fbbbr2`}],[`path`,{d:`M21.964 20.732a1 1 0 0 1-1.232 1.232l-18-5a1 1 0 0 1-.695-1.232A19.68 19.68 0 0 1 15.732 2.037a1 1 0 0 1 1.232.695z`,key:`1hyfdd`}]]),Qe=b(`plane`,[[`path`,{d:`M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z`,key:`1v9wt8`}]]),$e=b(`puzzle`,[[`path`,{d:`M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z`,key:`w46dr5`}]]),et=b(`rabbit`,[[`path`,{d:`M13 16a3 3 0 0 1 2.24 5`,key:`1epib5`}],[`path`,{d:`M18 12h.01`,key:`yjnet6`}],[`path`,{d:`M18 21h-8a4 4 0 0 1-4-4 7 7 0 0 1 7-7h.2L9.6 6.4a1 1 0 1 1 2.8-2.8L15.8 7h.2c3.3 0 6 2.7 6 6v1a2 2 0 0 1-2 2h-1a3 3 0 0 0-3 3`,key:`ue9ozu`}],[`path`,{d:`M20 8.54V4a2 2 0 1 0-4 0v3`,key:`49iql8`}],[`path`,{d:`M7.612 12.524a3 3 0 1 0-1.6 4.3`,key:`1e33i0`}]]),tt=b(`rainbow`,[[`path`,{d:`M22 17a10 10 0 0 0-20 0`,key:`ozegv`}],[`path`,{d:`M6 17a6 6 0 0 1 12 0`,key:`5giftw`}],[`path`,{d:`M10 17a2 2 0 0 1 4 0`,key:`gnsikk`}]]),nt=b(`rocket`,[[`path`,{d:`M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5`,key:`qeys4`}],[`path`,{d:`M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09`,key:`u4xsad`}],[`path`,{d:`M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z`,key:`676m9`}],[`path`,{d:`M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05`,key:`92ym6u`}]]),rt=b(`sailboat`,[[`path`,{d:`M10 2v15`,key:`1qf71f`}],[`path`,{d:`M7 22a4 4 0 0 1-4-4 1 1 0 0 1 1-1h16a1 1 0 0 1 1 1 4 4 0 0 1-4 4z`,key:`1pxcvx`}],[`path`,{d:`M9.159 2.46a1 1 0 0 1 1.521-.193l9.977 8.98A1 1 0 0 1 20 13H4a1 1 0 0 1-.824-1.567z`,key:`5oog16`}]]),it=b(`ship`,[[`path`,{d:`M12 10.189V14`,key:`1p8cqu`}],[`path`,{d:`M12 2v3`,key:`qbqxhf`}],[`path`,{d:`M19 13V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v6`,key:`qpkstq`}],[`path`,{d:`M19.38 20A11.6 11.6 0 0 0 21 14l-8.188-3.639a2 2 0 0 0-1.624 0L3 14a11.6 11.6 0 0 0 2.81 7.76`,key:`7tigtc`}],[`path`,{d:`M2 21c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1s1.2 1 2.5 1c2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1`,key:`1924j5`}]]),at=b(`snail`,[[`path`,{d:`M2 13a6 6 0 1 0 12 0 4 4 0 1 0-8 0 2 2 0 0 0 4 0`,key:`hneq2s`}],[`circle`,{cx:`10`,cy:`13`,r:`8`,key:`194lz3`}],[`path`,{d:`M2 21h12c4.4 0 8-3.6 8-8V7a2 2 0 1 0-4 0v6`,key:`ixqyt7`}],[`path`,{d:`M18 3 19.1 5.2`,key:`9tjm43`}],[`path`,{d:`M22 3 20.9 5.2`,key:`j3odrs`}]]),ot=b(`snowflake`,[[`path`,{d:`m10 20-1.25-2.5L6 18`,key:`18frcb`}],[`path`,{d:`M10 4 8.75 6.5 6 6`,key:`7mghy3`}],[`path`,{d:`m14 20 1.25-2.5L18 18`,key:`1chtki`}],[`path`,{d:`m14 4 1.25 2.5L18 6`,key:`1b4wsy`}],[`path`,{d:`m17 21-3-6h-4`,key:`15hhxa`}],[`path`,{d:`m17 3-3 6 1.5 3`,key:`11697g`}],[`path`,{d:`M2 12h6.5L10 9`,key:`kv9z4n`}],[`path`,{d:`m20 10-1.5 2 1.5 2`,key:`1swlpi`}],[`path`,{d:`M22 12h-6.5L14 15`,key:`1mxi28`}],[`path`,{d:`m4 10 1.5 2L4 14`,key:`k9enpj`}],[`path`,{d:`m7 21 3-6-1.5-3`,key:`j8hb9u`}],[`path`,{d:`m7 3 3 6h4`,key:`1otusx`}]]),st=b(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),ct=b(`sprout`,[[`path`,{d:`M14 9.536V7a4 4 0 0 1 4-4h1.5a.5.5 0 0 1 .5.5V5a4 4 0 0 1-4 4 4 4 0 0 0-4 4c0 2 1 3 1 5a5 5 0 0 1-1 3`,key:`139s4v`}],[`path`,{d:`M4 9a5 5 0 0 1 8 4 5 5 0 0 1-8-4`,key:`1dlkgp`}],[`path`,{d:`M5 21h14`,key:`11awu3`}]]),lt=b(`star`,[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]),O=b(`sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),ut=b(`tent`,[[`path`,{d:`M3.5 21 14 3`,key:`1szst5`}],[`path`,{d:`M20.5 21 10 3`,key:`1310c3`}],[`path`,{d:`M15.5 21 12 15l-3.5 6`,key:`1ddtfw`}],[`path`,{d:`M2 21h20`,key:`1nyx9w`}]]),dt=b(`train-front`,[[`path`,{d:`M8 3.1V7a4 4 0 0 0 8 0V3.1`,key:`1v71zp`}],[`path`,{d:`m9 15-1-1`,key:`1yrq24`}],[`path`,{d:`m15 15 1-1`,key:`1t0d6s`}],[`path`,{d:`M9 19c-2.8 0-5-2.2-5-5v-4a8 8 0 0 1 16 0v4c0 2.8-2.2 5-5 5Z`,key:`1p0hjs`}],[`path`,{d:`m8 19-2 3`,key:`13i0xs`}],[`path`,{d:`m16 19 2 3`,key:`xo31yx`}]]),ft=b(`tree-pine`,[[`path`,{d:`m17 14 3 3.3a1 1 0 0 1-.7 1.7H4.7a1 1 0 0 1-.7-1.7L7 14h-.3a1 1 0 0 1-.7-1.7L9 9h-.2A1 1 0 0 1 8 7.3L12 3l4 4.3a1 1 0 0 1-.8 1.7H15l3 3.3a1 1 0 0 1-.7 1.7H17Z`,key:`cpyugq`}],[`path`,{d:`M12 22v-3`,key:`kmzjlo`}]]),pt=b(`trees`,[[`path`,{d:`M10 10v.2A3 3 0 0 1 8.9 16H5a3 3 0 0 1-1-5.8V10a3 3 0 0 1 6 0Z`,key:`1l6gj6`}],[`path`,{d:`M7 16v6`,key:`1a82de`}],[`path`,{d:`M13 19v3`,key:`13sx9i`}],[`path`,{d:`M12 19h8.3a1 1 0 0 0 .7-1.7L18 14h.3a1 1 0 0 0 .7-1.7L16 9h.2a1 1 0 0 0 .8-1.7L13 3l-1.4 1.5`,key:`1sj9kv`}]]),mt=b(`trophy`,[[`path`,{d:`M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978`,key:`1n3hpd`}],[`path`,{d:`M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978`,key:`rfe1zi`}],[`path`,{d:`M18 9h1.5a1 1 0 0 0 0-5H18`,key:`7xy6bh`}],[`path`,{d:`M4 22h16`,key:`57wxv0`}],[`path`,{d:`M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z`,key:`1mhfuq`}],[`path`,{d:`M6 9H4.5a1 1 0 0 1 0-5H6`,key:`tex48p`}]]),ht=b(`turtle`,[[`path`,{d:`m12 10 2 4v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3a8 8 0 1 0-16 0v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3l2-4h4Z`,key:`1lbbv7`}],[`path`,{d:`M4.82 7.9 8 10`,key:`m9wose`}],[`path`,{d:`M15.18 7.9 12 10`,key:`p8dp2u`}],[`path`,{d:`M16.93 10H20a2 2 0 0 1 0 4H2`,key:`12nsm7`}]]),gt=b(`wind`,[[`path`,{d:`M12.8 19.6A2 2 0 1 0 14 16H2`,key:`148xed`}],[`path`,{d:`M17.5 8a2.5 2.5 0 1 1 2 4H2`,key:`1u4tom`}],[`path`,{d:`M9.8 4.4A2 2 0 1 1 11 8H2`,key:`75valh`}]]),k=[{name:`mountain`,Icon:Je},{name:`mountain-snow`,Icon:qe},{name:`tree-pine`,Icon:ft},{name:`trees`,Icon:pt},{name:`leaf`,Icon:Ge},{name:`flower`,Icon:Pe},{name:`flower-2`,Icon:Ne},{name:`sprout`,Icon:ct},{name:`sun`,Icon:O},{name:`moon`,Icon:E},{name:`star`,Icon:lt},{name:`cloud`,Icon:x},{name:`snowflake`,Icon:ot},{name:`zap`,Icon:_e},{name:`flame`,Icon:Me},{name:`droplet`,Icon:ke},{name:`rainbow`,Icon:tt},{name:`wind`,Icon:gt},{name:`bird`,Icon:be},{name:`fish`,Icon:je},{name:`cat`,Icon:Oe},{name:`dog`,Icon:T},{name:`rabbit`,Icon:et},{name:`turtle`,Icon:ht},{name:`bug`,Icon:we},{name:`snail`,Icon:at},{name:`paw-print`,Icon:Xe},{name:`feather`,Icon:Ae},{name:`rocket`,Icon:nt},{name:`anchor`,Icon:ve},{name:`compass`,Icon:C},{name:`map`,Icon:Ke},{name:`tent`,Icon:ut},{name:`camera`,Icon:Ee},{name:`music`,Icon:Ye},{name:`headphones`,Icon:Ve},{name:`palette`,Icon:D},{name:`brush`,Icon:Ce},{name:`pencil`,Icon:fe},{name:`book`,Icon:Se},{name:`book-open`,Icon:xe},{name:`coffee`,Icon:S},{name:`pizza`,Icon:Ze},{name:`ice-cream-cone`,Icon:Ue},{name:`cake`,Icon:Te},{name:`gift`,Icon:Re},{name:`gamepad-2`,Icon:Fe},{name:`puzzle`,Icon:$e},{name:`bike`,Icon:ye},{name:`car`,Icon:De},{name:`plane`,Icon:Qe},{name:`ship`,Icon:it},{name:`sailboat`,Icon:rt},{name:`train-front`,Icon:dt},{name:`heart`,Icon:He},{name:`sparkles`,Icon:st},{name:`crown`,Icon:w},{name:`gem`,Icon:Ie},{name:`trophy`,Icon:mt},{name:`ghost`,Icon:Le},{name:`bot`,Icon:ge},{name:`globe`,Icon:ze},{name:`guitar`,Icon:Be}],_t=Object.fromEntries(k.map(e=>[e.name,e.Icon])),A=n(),vt={navy:`text-fg`,gold:`text-fg-gold`,blue:`text-icon-blue`,green:`text-icon-green`,amber:`text-icon-amber`,red:`text-icon-red`,violet:`text-icon-violet`,cyan:`text-icon-cyan`,accent:`text-accent`};function j(e){return e&&vt[e]||``}function yt({icon:e,colour:t,className:n}){let r=y(`size-4 shrink-0`,t?j(t):`text-fg-muted`,n);return(0,A.jsx)(e&&_t[e]||he,{className:r})}var M=e(t(),1),N=`Popover`,[P,bt]=ce(N,[_]),F=_(),[xt,I]=P(N),L=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=F(t),c=M.useRef(null),[l,u]=M.useState(!1),[d,f]=ee({prop:r,defaultProp:i??!1,onChange:a,caller:N});return(0,A.jsx)(ue,{...s,children:(0,A.jsx)(xt,{scope:t,contentId:se(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:M.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:l,onCustomAnchorAdd:M.useCallback(()=>u(!0),[]),onCustomAnchorRemove:M.useCallback(()=>u(!1),[]),modal:o,children:n})})};L.displayName=N;var R=`PopoverAnchor`,St=M.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=I(R,n),a=F(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return M.useEffect(()=>(o(),()=>s()),[o,s]),(0,A.jsx)(v,{...a,...r,ref:t})});St.displayName=R;var z=`PopoverTrigger`,B=M.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=I(z,n),a=F(n),o=g(t,i.triggerRef),s=(0,A.jsx)(c.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":q(i.open),...r,ref:o,onClick:l(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,A.jsx)(v,{asChild:!0,...a,children:s})});B.displayName=z;var V=`PopoverPortal`,[Ct,wt]=P(V,{forceMount:void 0}),H=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=I(V,t);return(0,A.jsx)(Ct,{scope:t,forceMount:n,children:(0,A.jsx)(h,{present:n||a.open,children:(0,A.jsx)(u,{asChild:!0,container:i,children:r})})})};H.displayName=V;var U=`PopoverContent`,W=M.forwardRef((e,t)=>{let n=wt(U,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=I(U,e.__scopePopover);return(0,A.jsx)(h,{present:r||a.open,children:a.modal?(0,A.jsx)(Et,{...i,ref:t}):(0,A.jsx)(Dt,{...i,ref:t})})});W.displayName=U;var Tt=le(`PopoverContent.RemoveScroll`),Et=M.forwardRef((e,t)=>{let n=I(U,e.__scopePopover),r=M.useRef(null),i=g(t,r),a=M.useRef(!1);return M.useEffect(()=>{let e=r.current;if(e)return p(e)},[]),(0,A.jsx)(m,{as:Tt,allowPinchZoom:!0,children:(0,A.jsx)(G,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:l(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:l(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;a.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:l(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),Dt=M.forwardRef((e,t)=>{let n=I(U,e.__scopePopover),r=M.useRef(!1),i=M.useRef(!1);return(0,A.jsx)(G,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),G=M.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,p=I(U,n),m=F(n);return ie(),(0,A.jsx)(te,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,A.jsx)(f,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>p.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,A.jsx)(de,{"data-state":q(p.open),role:`dialog`,id:p.contentId,...m,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})}),K=`PopoverClose`,Ot=M.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=I(K,n);return(0,A.jsx)(c.button,{type:`button`,...r,ref:t,onClick:l(e.onClick,()=>i.onOpenChange(!1))})});Ot.displayName=K;var kt=`PopoverArrow`,At=M.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=F(n);return(0,A.jsx)(pe,{...i,...r,ref:t})});At.displayName=kt;function q(e){return e?`open`:`closed`}var jt=L,Mt=B,Nt=H,Pt=W,Ft=jt,It=Mt;function Lt({className:e,align:t=`end`,sideOffset:n=8,...r}){return(0,A.jsx)(Nt,{children:(0,A.jsx)(Pt,{align:t,sideOffset:n,className:y(`z-50 rounded-lg bg-elevated p-5 shadow-2xl outline-none`,e),...r})})}function Rt({stream:e,label:t,hint:n,onClose:r}){let[i,a]=(0,M.useState)(null);return(0,A.jsx)(oe,{open:!0,onOpenChange:e=>!e&&r(),children:(0,A.jsxs)(ne,{className:`h-[85vh] max-w-[calc(100vw-4rem)]`,children:[(0,A.jsxs)(d,{children:[(0,A.jsxs)(re,{children:[t,` — login`]}),(0,A.jsx)(ae,{children:i===null?`Complete the agent’s login flow below.${n===void 0?` The account shows as logged in once it finishes cleanly.`:` ${n}`}`:`The login exited with code ${i} without completing. The output above may say why; close this and try again.`})]}),(0,A.jsx)(`div`,{className:`min-h-0 flex-1 overflow-hidden rounded-md bg-ground p-1`,children:(0,A.jsx)(me,{stream:e,onExit:e=>e===0?r():a(e)})})]})})}var J=e=>e&&typeof e==`object`?e:{},Y=[{id:`appearance`,label:`Appearance`,fields:[{key:`theme`,store:`theme`},{key:`cursorPackage`,store:`client`},{key:`uiFontSize`,store:`client`},{key:`terminalFontSize`,store:`client`},{key:`editorFontSize`,store:`client`},{key:`density`,store:`client`},{key:`terminalScrollback`,store:`client`},{key:`projectBasedLayout`,store:`client`},{key:`showAllProjectSessions`,store:`client`}]},{id:`profile`,label:`Profile`,fields:[{key:`branch_prefix`,store:`profileColumn`},{key:`icon`,store:`profileColumn`},{key:`icon_colour`,store:`profileColumn`}]},{id:`sessions`,label:`Sessions`,fields:[{key:`onboardingTemplate`,store:`profileSettings`},{key:`concurrentTemplate`,store:`profileSettings`},{key:`restartTemplate`,store:`profileSettings`},{key:`tabTitleTemplate`,store:`profileSettings`},{key:`sessionDefaults`,store:`profileSettings`},{key:`allowSkipPermissions`,store:`profileSettings`},{key:`captureSessionEnv`,store:`profileSettings`}]},{id:`editor`,label:`Editor`,fields:[{key:`editorTabSize`,store:`client`},{key:`editorWordWrap`,store:`client`},{key:`editorLinkSshHost`,store:`client`}]},{id:`hotkeys`,label:`Hotkeys`,fields:[{key:`hotkeys`,store:`profileSettings`}]},{id:`notifications`,label:`Notifications`,fields:[{key:`notifications`,store:`profileSettings`,pick:e=>{let{desktop:t,sound:n}=J(e);return{desktop:t,sound:n}},mergeInto:(e,t)=>({...J(t),...J(e)})}]},{id:`scratchpad`,label:`Scratchpad (profile-wide entries)`,fields:[{key:`entries`,store:`scratchpad`}]}];function X(e){return e.filter(e=>e.scope===`profile`).map(e=>({title:e.title,body:e.body,tags:e.tags,agent_type:e.agent_type}))}function Z(e){return JSON.stringify([e.title??``,e.body,e.tags,e.agent_type??``])}function zt(e,t){if(!Array.isArray(e))return[];let n=new Set(X(t).map(Z)),r=new Set,i=[];for(let t of e){let e=J(t);if(typeof e.body!=`string`||e.body.length===0)continue;let a={title:typeof e.title==`string`&&e.title!==``?e.title:null,body:e.body,tags:Array.isArray(e.tags)?e.tags.filter(e=>typeof e==`string`):[],agent_type:typeof e.agent_type==`string`?e.agent_type:null},o=Z(a);n.has(o)||r.has(o)||(r.add(o),i.push(a))}return i}function Bt(e,t){switch(e.store){case`client`:return t.client[e.key];case`theme`:return t.theme;case`profileSettings`:return t.profileSettings[e.key];case`profileColumn`:return t.profile[e.key];case`scratchpad`:return X(t.scratchpad)}}function Q(e,t){let n={};for(let r of Y){if(!e.includes(r.id))continue;let i={};for(let e of r.fields){let n=Bt(e,t);n!==void 0&&(i[e.key]=e.pick?e.pick(n):n)}Object.keys(i).length>0&&(n[r.id]=i)}return n}function Vt(e,t,n,r){if(!e||typeof e!=`object`)return[];let i=e,a={},o={},s={},c=[];for(let e of Y){if(r&&!r.includes(e.id))continue;let l=i[e.id];if(!l||typeof l!=`object`)continue;let u=l,d=!1;for(let r of e.fields){if(!(r.key in u))continue;let e=u[r.key];if(r.store===`scratchpad`){let r=zt(e,n.scratchpad);r.length>0&&(t.createScratchpad(r),d=!0);continue}d=!0;let i=r.mergeInto?r.mergeInto(e,r.store===`profileSettings`?n.profileSettings[r.key]:void 0):e;r.store===`client`?a[r.key]=i:r.store===`theme`?t.setTheme(i):r.store===`profileSettings`?o[r.key]=i:s[r.key]=i}d&&c.push(e.label)}return Object.keys(a).length>0&&t.setClient(a),Object.keys(o).length>0&&t.patchProfileSettings(o),Object.keys(s).length>0&&t.patchProfileColumns(s),c}var $={version:1,profiles:{}};function Ht(e,t){return e.profiles[t]??{enabled:!0,groups:Y.map(e=>e.id),doc:{},updatedAt:new Date(0).toISOString()}}async function Ut(){try{let e=await fetch(`/cockpit/local-sync`,{headers:r(),cache:`no-store`});return e.ok?{available:!0,file:await e.json()}:{available:!1,file:$}}catch{return{available:!1,file:$}}}function Wt(){return i({queryKey:[`local-sync`],queryFn:Ut,staleTime:5e3,refetchOnWindowFocus:!0,retry:!1})}function Gt(){let e=a();return s({mutationFn:async e=>{let t=await fetch(`/cockpit/local-sync`,{method:`PUT`,headers:{...r(),"content-type":`application/json`},body:JSON.stringify(e)});if(!t.ok)throw Error(`The local sync store did not accept the write.`);return await t.json()},onSuccess:t=>e.setQueryData([`local-sync`],{available:!0,file:t})})}function Kt(){return typeof Notification>`u`?`unsupported`:o()?`granted`:Notification.permission}export{E as _,Y as a,Rt as c,It as d,yt as f,D as g,O as h,Gt as i,Ft as l,k as m,Ht as n,Vt as o,j as p,Wt as r,Q as s,Kt as t,Lt as u,We as v};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-FOHPRMQF-CdD2_EOh.js";import{m as e}from"./mermaid-parser.core-DINfbsjJ.js";export{e as createRailroadAbnfServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-FOHPRMQF-CdD2_EOh.js";import{f as e}from"./mermaid-parser.core-DINfbsjJ.js";export{e as createRailroadEbnfServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-FOHPRMQF-CdD2_EOh.js";import{u as e}from"./mermaid-parser.core-DINfbsjJ.js";export{e as createRailroadPegServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import"./src-_wZywoZs.js";import"./chunk-DU6HZSFF-BsEqNRs6.js";import"./chunk-75Z2AOVW-Bil9fayR.js";import"./chunk-PWAF6VOD-CrBboqO8.js";import"./chunk-GMAD6QVW-B1-kp_mS.js";import"./chunk-P2QGCYS3-CPn0gvFx.js";import"./chunk-4HAMMTFA-DEQ4g2Vr.js";import"./chunk-GVQU2GXP-CcH5DIRn.js";import"./chunk-OSK3NFVY-Cg7bYfyL.js";import"./chunk-F27PBJKO-3VPQvVOa.js";import"./chunk-XXDRQBXY-BuE3VzE_.js";import"./chunk-POPQ4Y6H-Dy-mw1ro.js";import"./chunk-L3NEJ4N5-CLWbTGk0.js";import"./chunk-TLUHSLCS-EdA0yALB.js";import{i as t,n,r,t as i}from"./chunk-IMKFNOWR-DXsqjjty.js";var a={parser:n,get db(){return new i(2)},renderer:r,styles:t,init:e(e=>{e.state||={},e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import"./src-_wZywoZs.js";import"./chunk-DU6HZSFF-BsEqNRs6.js";import"./chunk-75Z2AOVW-Bil9fayR.js";import"./chunk-PWAF6VOD-CrBboqO8.js";import"./chunk-GMAD6QVW-B1-kp_mS.js";import"./chunk-P2QGCYS3-CPn0gvFx.js";import"./chunk-4HAMMTFA-DEQ4g2Vr.js";import"./chunk-GVQU2GXP-CcH5DIRn.js";import"./chunk-OSK3NFVY-Cg7bYfyL.js";import"./chunk-F27PBJKO-3VPQvVOa.js";import"./chunk-XXDRQBXY-BuE3VzE_.js";import"./chunk-POPQ4Y6H-Dy-mw1ro.js";import"./chunk-L3NEJ4N5-CLWbTGk0.js";import"./chunk-TLUHSLCS-EdA0yALB.js";import"./chunk-LNGE3PJU-DNNNwF8Y.js";import{r as t,t as n}from"./chunk-SHT3W25Y-CPJO0R1G.js";var r=n({defaultLayout:`swimlane`,styles:e(e=>`${t(e)}
|
|
2
|
-
.swimlane.cluster rect {
|
|
3
|
-
stroke: ${e.clusterBorder} !important;
|
|
4
|
-
}
|
|
5
|
-
[data-look="neo"].cluster rect {
|
|
6
|
-
filter: none;
|
|
7
|
-
}
|
|
8
|
-
`,`getStyles`)});export{r as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{S as e,v as t,y as n}from"./index-CIyjjiv2.js";import{n as r}from"./dist-sv8JIOv-.js";var i=500,a=1e4;function o(e,t){return`${e} ${t}`}var s=new class{ws=null;open=!1;backoff=i;reconnectTimer=null;theme=null;terminals=new Map;statusListeners=new Set;renameListeners=new Set;accountListeners=new Set;switchListeners=new Set;sessionsChangedListeners=new Set;connectionListeners=new Set;shellWaiters=new Map;attach(e,t,n,r,i){let a={session:e,term:t,cols:n,rows:r,handlers:i};return this.terminals.set(o(e,t),a),this.ensureConnected(),this.open&&this.send({t:`attach`,session:e,term:t,cols:n,rows:r}),()=>this.detach(e,t)}detach(e,t){this.terminals.delete(o(e,t))&&this.open&&this.send({t:`detach`,session:e,term:t})}write(e,t,n){this.open&&this.send({t:`stdin`,session:e,term:t,data:n})}resize(e,t,n,r){let i=this.terminals.get(o(e,t));i&&(i.cols=n,i.rows=r),this.open&&this.send({t:`resize`,session:e,term:t,cols:n,rows:r})}spawnShell(e){return this.ensureConnected(),this.open?new Promise((t,n)=>{let r=this.shellWaiters.get(e)??[];r.push({resolve:t,reject:n}),this.shellWaiters.set(e,r),this.open&&this.send({t:`spawn-shell`,session:e})}):Promise.reject(Error(`Connection is unavailable`))}killShell(e,t){this.open&&this.send({t:`kill-shell`,session:e,term:t})}onStatus(e){return this.statusListeners.add(e),this.ensureConnected(),()=>this.statusListeners.delete(e)}onRenamed(e){return this.renameListeners.add(e),this.ensureConnected(),()=>this.renameListeners.delete(e)}onAccount(e){return this.accountListeners.add(e),this.ensureConnected(),()=>this.accountListeners.delete(e)}onSessionSwitched(e){return this.switchListeners.add(e),this.ensureConnected(),()=>this.switchListeners.delete(e)}onSessionsChanged(e){return this.sessionsChangedListeners.add(e),this.ensureConnected(),()=>this.sessionsChangedListeners.delete(e)}onConnectionChange(e){return this.connectionListeners.add(e),()=>this.connectionListeners.delete(e)}isConnected(){return this.open}reportTheme(e,t){this.theme&&this.theme.fg===e&&this.theme.bg===t||(this.theme={fg:e,bg:t},this.open&&this.send({t:`theme`,fg:e,bg:t}))}reset(){this.ws?.close()}switchHost(){let e=this.ws;this.ws=null,this.open=!1,this.reconnectTimer&&clearTimeout(this.reconnectTimer),this.reconnectTimer=null,this.terminals.clear();for(let e of this.shellWaiters.values())for(let t of e)t.reject(Error(`Host changed`));this.shellWaiters.clear(),e?.close();for(let e of this.connectionListeners)e(!1)}ensureConnected(){this.ws||this.reconnectTimer||this.connect()}connect(){let r=n.get(),a=e();if(!r&&!a)return;let o=window.location.protocol===`https:`?`wss`:`ws`,s=a?a.socket():new WebSocket(`${o}://${window.location.host}/ws`);this.ws=s,s.addEventListener(`open`,()=>{if(this.ws!==s){s.close();return}a||s.send(JSON.stringify({t:`auth`,token:r}))}),s.addEventListener(`message`,e=>{if(this.ws!==s)return;let t;try{t=JSON.parse(String(e.data))}catch{return}if(t.t===`authenticated`){if(this.open)return;this.open=!0,this.backoff=i,this.send({t:`subscribe-status`}),this.theme&&this.send({t:`theme`,...this.theme});for(let{session:e,term:t,cols:n,rows:r}of this.terminals.values())this.send({t:`attach`,session:e,term:t,cols:n,rows:r});for(let e of this.connectionListeners)e(!0)}else this.open&&this.handle(t)}),s.addEventListener(`close`,e=>{if(this.ws!==s)return;let n=this.open;this.open=!1,this.ws=null;for(let e of this.shellWaiters.values())for(let t of e)t.reject(Error(`Connection lost; operation outcome is unknown`));if(this.shellWaiters.clear(),n)for(let e of this.connectionListeners)e(!1);if(e.code===4401&&e.reason===`browser_rejected`){t();return}this.scheduleReconnect()})}scheduleReconnect(){this.reconnectTimer||this.terminals.size===0&&this.statusListeners.size===0&&this.renameListeners.size===0&&this.accountListeners.size===0&&this.switchListeners.size===0&&this.sessionsChangedListeners.size===0||(this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},this.backoff),this.backoff=Math.min(this.backoff*2,a))}send(e){this.open&&this.ws?.readyState===WebSocket.OPEN&&this.ws.send(JSON.stringify(e))}handle(e){switch(e.t){case`replay`:case`output`:this.terminals.get(o(e.session,e.term))?.handlers.onData(e.data,e.t);break;case`exit`:this.terminals.get(o(e.session,e.term))?.handlers.onExit?.(e.code);break;case`status`:for(let t of this.statusListeners)t({session:e.session,status:e.status,last_activity_at:e.last_activity_at});break;case`renamed`:for(let t of this.renameListeners)t({session:e.session,title:e.title,agent_title:e.agent_title,osc_title:e.osc_title});break;case`account`:for(let t of this.accountListeners)t({account_id:e.account_id,profile_id:e.profile_id,logged_in:e.logged_in});break;case`session-switched`:for(let t of this.switchListeners)t(e);break;case`sessions-changed`:for(let t of this.sessionsChangedListeners)t(e);break;case`shell-spawned`:{let t=this.shellWaiters.get(e.session)?.shift();t&&t.resolve(e.term);break}case`notice`:(e.level===`warning`?r.warning:r.error)(e.title,{...e.detail===void 0?{}:{description:e.detail},duration:12e3});break;case`error`:r.error(`Connection error`,{description:e.message});break}}};export{s as t};
|