@opentig/cli 0.2.0 → 0.2.2
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/dist/bin.mjs +2 -1
- package/dist/chunks/{cli-Bi6ET5UT.mjs → cli-DNzGBqmL.mjs} +1 -1
- package/dist/client/assets/App-BbT5H97Z.js +138 -0
- package/dist/client/assets/CreatePullRequestDialog-DRLeMY4e.js +2 -0
- package/dist/client/assets/{DiffWorkspace-RDG_Y70N.js → DiffWorkspace-DJX00otP.js} +13 -13
- package/dist/client/assets/{EditableFileViewer-CsbifqBO.js → EditableFileViewer-Cmbomx5y.js} +1 -1
- package/dist/client/assets/{File-CHjvYpb2.js → File-4o4egqlz.js} +1 -1
- package/dist/client/assets/FilesView-TmUF-VLr.js +1 -0
- package/dist/client/assets/GitHubAvatar-azKPrTMv.js +1 -0
- package/dist/client/assets/HistoryView-Go6rXO0P.js +1 -0
- package/dist/client/assets/{HtmlFileViewer-h8ULU8Gy.js → HtmlFileViewer-WpYnLdMW.js} +1 -1
- package/dist/client/assets/{IconEdit-Cg8S2wqW.js → IconEdit-B8LZHB8l.js} +1 -1
- package/dist/client/assets/{IconFolderSymlink-BZSLX1ez.js → IconFolderSymlink-D29EhQPC.js} +1 -1
- package/dist/client/assets/{ImageFileViewer-Cjw58ckv.js → ImageFileViewer-1ObUacJu.js} +1 -1
- package/dist/client/assets/LocalRefsDialog-VcrlFgxR.js +1 -0
- package/dist/client/assets/{MarkdownFileViewer-kLiduag6.js → MarkdownFileViewer-CvsKPnvF.js} +2 -2
- package/dist/client/assets/PairingPage-cSoKZi8t.js +1 -0
- package/dist/client/assets/{PierreDiffViewer-eAcugmoF.js → PierreDiffViewer-DVTrOwX4.js} +1 -1
- package/dist/client/assets/{PierreEditBoundary-DlGd1pqO.js → PierreEditBoundary-DPtaTiUB.js} +1 -1
- package/dist/client/assets/{PierreWorkerPool-Col4k7qz.js → PierreWorkerPool-BxP-s6jD.js} +1 -1
- package/dist/client/assets/{PullRequestDiff-DhKTXyIF.js → PullRequestDiff-DeQznd9n.js} +1 -1
- package/dist/client/assets/PullRequestViewer-IhGZZs_A.js +2 -0
- package/dist/client/assets/PullRequestsView-BG0xrok4.js +1 -0
- package/dist/client/assets/QuickOpenDialog-DpmcAzTx.js +1 -0
- package/dist/client/assets/RepositoryProjectsDialog-DAzbUB3X.js +1 -0
- package/dist/client/assets/SearchView-HoiWKG8z.js +1 -0
- package/dist/client/assets/SettingsDialog-pmJKOaiK.js +9 -0
- package/dist/client/assets/{Viewer-o1hDU33O.js → Viewer-BCk8FHrc.js} +3 -3
- package/dist/client/assets/{abnfDiagram-N423BO3Z-BvrnK_R-.js → abnfDiagram-N423BO3Z-BvfKOanh.js} +1 -1
- package/dist/client/assets/{arc-DLa3_7ua.js → arc-DB2nIH2Y.js} +1 -1
- package/dist/client/assets/{architectureDiagram-T3A2C74G-BexwhnyX.js → architectureDiagram-T3A2C74G-Bqh4uY3R.js} +1 -1
- package/dist/client/assets/base-ui-DIP2rZxz.js +1 -0
- package/dist/client/assets/{blockDiagram-VBNYF7ZC-CoOttUUo.js → blockDiagram-VBNYF7ZC-DMW415Ms.js} +1 -1
- package/dist/client/assets/{c4Diagram-5PPSVZJV-Bgp6ppUh.js → c4Diagram-5PPSVZJV-BSNPes7l.js} +1 -1
- package/dist/client/assets/channel-VcDernYy.js +1 -0
- package/dist/client/assets/checkbox-Dta4gqy2.js +1 -0
- package/dist/client/assets/{chunk-2GRJ4B5K-C_kzp38w.js → chunk-2GRJ4B5K-D-86JbWu.js} +1 -1
- package/dist/client/assets/{chunk-2Q5K7J3B-CysYnRkJ.js → chunk-2Q5K7J3B-BNI-SD-k.js} +1 -1
- package/dist/client/assets/{chunk-5RXB4S5H-oMS6x_ag.js → chunk-5RXB4S5H-OFFYyML8.js} +1 -1
- package/dist/client/assets/{chunk-5VM5RSS4-C5-dW5wf.js → chunk-5VM5RSS4-DpE1dtnL.js} +1 -1
- package/dist/client/assets/{chunk-6Q2QTUOP-DxahInnA.js → chunk-6Q2QTUOP-DxAnzBXJ.js} +1 -1
- package/dist/client/assets/{chunk-GF5L2VYU-D7V-3eRg.js → chunk-GF5L2VYU-DNrTNRgr.js} +1 -1
- package/dist/client/assets/{chunk-JWPE2WC7-BrLmjbVP.js → chunk-JWPE2WC7-D-jfKyIh.js} +1 -1
- package/dist/client/assets/{chunk-KBJHAD2P-CyOvijwM.js → chunk-KBJHAD2P-CIyQl_ts.js} +1 -1
- package/dist/client/assets/{chunk-RYQCIY6F-BvEjVjQs.js → chunk-RYQCIY6F-CgCYQccM.js} +1 -1
- package/dist/client/assets/{chunk-XXDRQBXY-C_IY9A64.js → chunk-XXDRQBXY-B31oXtqU.js} +1 -1
- package/dist/client/assets/classDiagram-JCYQIIEL-CUuEGRCt.js +1 -0
- package/dist/client/assets/classDiagram-v2-OCEON4UE-CUuEGRCt.js +1 -0
- package/dist/client/assets/{cose-bilkent-JH36ORCC-Cu7qZi7h.js → cose-bilkent-JH36ORCC-CrX-LDNw.js} +1 -1
- package/dist/client/assets/{cynefin-VYW2F7L2-B4M1t9lL.js → cynefin-VYW2F7L2-DnkWlsqW.js} +1 -1
- package/dist/client/assets/{cynefinDiagram-MW4NZA55-CAosOLmT.js → cynefinDiagram-MW4NZA55-bUDQ9ElF.js} +1 -1
- package/dist/client/assets/{dagre-VZM6K2ZE-q354V538.js → dagre-VZM6K2ZE-BW5Kni4n.js} +1 -1
- package/dist/client/assets/{diagram-7IWD3JNH-C_CzkBPt.js → diagram-7IWD3JNH-1EXGwguC.js} +1 -1
- package/dist/client/assets/{diagram-B4RE2ZJO-VvvYHE9c.js → diagram-B4RE2ZJO-CzpH5ieN.js} +1 -1
- package/dist/client/assets/{diagram-LBJQPF4R-D8vRQwb5.js → diagram-LBJQPF4R-BnKszJ_B.js} +1 -1
- package/dist/client/assets/{diagram-Q27KOJAE-Bul4aDKg.js → diagram-Q27KOJAE-DbQlD3OM.js} +1 -1
- package/dist/client/assets/{diagram-UB23O5K3-DNadEE58.js → diagram-UB23O5K3-BqZ-RSlm.js} +1 -1
- package/dist/client/assets/{ebnfDiagram-BXEA7PRR-Bf-68MMZ.js → ebnfDiagram-BXEA7PRR-B2iPWDvr.js} +1 -1
- package/dist/client/assets/{erDiagram-JOGREHBK-CJ-jHFsf.js → erDiagram-JOGREHBK-aMqHrKCk.js} +1 -1
- package/dist/client/assets/{flowDiagram-UKHOOZJN-DMOdinBU.js → flowDiagram-UKHOOZJN-ivrTsn4D.js} +1 -1
- package/dist/client/assets/{ganttDiagram-PKOTCBZU-DzezS3Zy.js → ganttDiagram-PKOTCBZU-IMfIqkXw.js} +1 -1
- package/dist/client/assets/{gitGraphDiagram-DS77QQ5N-Dftpvns8.js → gitGraphDiagram-DS77QQ5N-BNURRh2N.js} +1 -1
- package/dist/client/assets/{index-DAUK3rnz.js → index-B3QJsvjR.js} +4 -4
- package/dist/client/assets/index-Cx9LaJW8.css +1 -0
- package/dist/client/assets/{infoDiagram-6WML65LV-DmgUBq17.js → infoDiagram-6WML65LV-BKEENkUQ.js} +1 -1
- package/dist/client/assets/{ishikawaDiagram-WSZJBQD7-CL0PQhpQ.js → ishikawaDiagram-WSZJBQD7-HrCSmiTr.js} +1 -1
- package/dist/client/assets/{journeyDiagram-NVQOT4AX-Ck4pQx_A.js → journeyDiagram-NVQOT4AX-CQIuWA6F.js} +1 -1
- package/dist/client/assets/{kanban-definition-27J2QSJJ-DuRZxBql.js → kanban-definition-27J2QSJJ-h4fSAkel.js} +1 -1
- package/dist/client/assets/{linear-C2JDCaz4.js → linear-BAdz-uC9.js} +1 -1
- package/dist/client/assets/{mermaid.core-9dt2ugQA.js → mermaid.core-vLn7mMZB.js} +4 -4
- package/dist/client/assets/{mindmap-definition-FAOFIHXS-vy0fdDF0.js → mindmap-definition-FAOFIHXS-DOrZl827.js} +1 -1
- package/dist/client/assets/{pegDiagram-VL7TDLO6-DjVJy-Gm.js → pegDiagram-VL7TDLO6-_Vs7p633.js} +1 -1
- package/dist/client/assets/{pieDiagram-7S7Q4E2Y-ATbd_8vw.js → pieDiagram-7S7Q4E2Y-7qbB_Z16.js} +1 -1
- package/dist/client/assets/{quadrantDiagram-CIZ2JOQS-C8o6ofcl.js → quadrantDiagram-CIZ2JOQS-DNH8SosA.js} +1 -1
- package/dist/client/assets/{railroadDiagram-AXF67PYL-Qvij9Ubo.js → railroadDiagram-AXF67PYL-Ctazrrpa.js} +1 -1
- package/dist/client/assets/{render-markdown-BtCybfvQ.js → render-markdown-dvHhHbC0.js} +6 -6
- package/dist/client/assets/{requirementDiagram-LRYGKXZP-yLfrba2h.js → requirementDiagram-LRYGKXZP-BAH8dYer.js} +1 -1
- package/dist/client/assets/{sankeyDiagram-W5VNT64P-BTXRtTyG.js → sankeyDiagram-W5VNT64P-CuffrpdF.js} +1 -1
- package/dist/client/assets/{sequenceDiagram-SI44F4Z6-BN1CCZIX.js → sequenceDiagram-SI44F4Z6-CaO4fJnS.js} +1 -1
- package/dist/client/assets/{sizeCapture-X5ZJPWSS-BfXjBBYo.js → sizeCapture-X5ZJPWSS-B_LramBU.js} +1 -1
- package/dist/client/assets/{stateDiagram-OKZ733FA-DMAWiBsP.js → stateDiagram-OKZ733FA-bc7zBYHn.js} +1 -1
- package/dist/client/assets/stateDiagram-v2-UEYNNEHI-C-UGmA2d.js +1 -0
- package/dist/client/assets/{swimlanes-SLNWSIFB-BD20m5cw.js → swimlanes-SLNWSIFB-DQzg1IPn.js} +2 -2
- package/dist/client/assets/swimlanesDiagram-ULZ7WXOC-DnopIiWa.js +8 -0
- package/dist/client/assets/tanstack-BysN2Oew.js +1 -0
- package/dist/client/assets/{timeline-definition-Z64GVDOM-gtc0-AHB.js → timeline-definition-Z64GVDOM-CtbuIB6K.js} +1 -1
- package/dist/client/assets/{vennDiagram-T6HMQDX7-Cdr4AXTp.js → vennDiagram-T6HMQDX7-pYJ0ZfFS.js} +1 -1
- package/dist/client/assets/{viewer-tabs-D-T0xQaq.js → viewer-tabs-Cnfyd6rg.js} +1 -1
- package/dist/client/assets/{wardleyDiagram-T6FBY63Y-BcU4vxO8.js → wardleyDiagram-T6FBY63Y-DYl_Oi-Y.js} +1 -1
- package/dist/client/assets/{xychartDiagram-ELKLHX3M-B3Zuadj8.js → xychartDiagram-ELKLHX3M-Cj5YUfP5.js} +1 -1
- package/dist/client/index.html +4 -4
- package/dist/dev.mjs +3 -2
- package/dist/manifest.json +2 -2
- package/dist/server.mjs +2219 -508
- package/dist/utility.mjs +12 -5
- package/package.json +1 -1
- package/dist/client/assets/App-BXZLGT86.js +0 -74
- package/dist/client/assets/CreatePullRequestDialog-DFonMYEx.js +0 -2
- package/dist/client/assets/FilesView-Dl8QFbFA.js +0 -1
- package/dist/client/assets/GitHubAvatar-CnBaloV0.js +0 -1
- package/dist/client/assets/HistoryView-BgCZU2JO.js +0 -1
- package/dist/client/assets/LocalRefsDialog-DNgrd7Qp.js +0 -1
- package/dist/client/assets/PairingPage-C97sv-8s.js +0 -1
- package/dist/client/assets/PullRequestViewer-BgI8HFMe.js +0 -2
- package/dist/client/assets/PullRequestsView-PYWLy8We.js +0 -1
- package/dist/client/assets/QuickOpenDialog-BFDDZVCL.js +0 -1
- package/dist/client/assets/RepositoryProjectsDialog-CvB8KcFp.js +0 -1
- package/dist/client/assets/SearchView-BwF_MsxK.js +0 -1
- package/dist/client/assets/SettingsDialog-DIcLmXSE.js +0 -9
- package/dist/client/assets/base-ui-CJ8ZIx3d.js +0 -1
- package/dist/client/assets/channel-1k1AYpyV.js +0 -1
- package/dist/client/assets/checkbox-BRH0ZNIC.js +0 -1
- package/dist/client/assets/classDiagram-JCYQIIEL-ChyNFpay.js +0 -1
- package/dist/client/assets/classDiagram-v2-OCEON4UE-ChyNFpay.js +0 -1
- package/dist/client/assets/index-BfA4tAc1.css +0 -1
- package/dist/client/assets/stateDiagram-v2-UEYNNEHI-D_ofZeaa.js +0 -1
- package/dist/client/assets/swimlanesDiagram-ULZ7WXOC-CF9m5JSB.js +0 -8
- package/dist/client/assets/tanstack-B0Sf7wNU.js +0 -1
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/SettingsDialog-pmJKOaiK.js","assets/react-rd22PHbN.js","assets/index-B3QJsvjR.js","assets/tanstack-BysN2Oew.js","assets/base-ui-DIP2rZxz.js","assets/index-Cx9LaJW8.css","assets/IconEdit-B8LZHB8l.js","assets/LocalRefsDialog-VcrlFgxR.js","assets/checkbox-Dta4gqy2.js","assets/RepositoryProjectsDialog-DAzbUB3X.js","assets/IconFolderSymlink-D29EhQPC.js","assets/Viewer-BCk8FHrc.js","assets/FilesView-TmUF-VLr.js","assets/HistoryView-Go6rXO0P.js","assets/SearchView-HoiWKG8z.js","assets/PullRequestsView-BG0xrok4.js","assets/GitHubAvatar-azKPrTMv.js","assets/QuickOpenDialog-DpmcAzTx.js","assets/CreatePullRequestDialog-DRLeMY4e.js","assets/viewer-tabs-Cnfyd6rg.js","assets/viewer-tabs-D8o-L3pM.css","assets/markdown-BpzjXclZ.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{c as J,a as Ce,T as ke,b as we,d as xe,n as O_,B as G,I as ai,w as os,s as M,o as T,q as ie,e as xo,t as Nn,f as A_,O as D_,_ as Tt,v as I_,x as Ko,S as M_,y as L_,z as F_,A as q_,C as Z_,D as jr,E as B_,F as G_,G as U_,H as Pr,J as H_}from"./index-B3QJsvjR.js";import{r as d,j as i,R as Re,a as es}from"./react-rd22PHbN.js";import{b as mn,u as Et,a as Ga,f as V_}from"./tanstack-BysN2Oew.js";import{D as W_,x as K_,y as J_,z as Q_,B as X_,E as Y_,F as ef,G as tf,H as nf,I as sf,J as of,K as rf,L as af,j as cf,k as lf,N as _f,O as ff,Q as df,R as pf,U as uf,V as hf,T as gf,f as mf,h as Cr,i as Sr,P as yf,b as vf,c as bf,d as kf,e as wf,W as xf,X as jf,Y as Pf,Z as Cf,_ as Sf,$ as zf,a0 as Rf,a1 as Nf,a2 as $f,a3 as Ef,a4 as Tf,a5 as Of,a6 as Af,a7 as Df}from"./base-ui-DIP2rZxz.js";const If=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 8v4",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]],zr=J("outline","alert-circle","AlertCircle",If);const Mf=[["path",{d:"M12 9v4",key:"svg-0"}],["path",{d:"M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]],Lf=J("outline","alert-triangle","AlertTriangle",Mf);const Ff=[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 13l-6 6",key:"svg-1"}],["path",{d:"M6 13l6 6",key:"svg-2"}]],Ua=J("outline","arrow-down","ArrowDown",Ff);const qf=[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M5 12l6 6",key:"svg-1"}],["path",{d:"M5 12l6 -6",key:"svg-2"}]],Zf=J("outline","arrow-left","ArrowLeft",qf);const Bf=[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M13 18l6 -6",key:"svg-1"}],["path",{d:"M13 6l6 6",key:"svg-2"}]],Rr=J("outline","arrow-right","ArrowRight",Bf);const Gf=[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 11l-6 -6",key:"svg-1"}],["path",{d:"M6 11l6 -6",key:"svg-2"}]],jo=J("outline","arrow-up","ArrowUp",Gf);const Uf=[["path",{d:"M19 4v16h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12",key:"svg-0"}],["path",{d:"M19 16h-12a2 2 0 0 0 -2 2",key:"svg-1"}],["path",{d:"M9 8h6",key:"svg-2"}]],Hf=J("outline","book-2","Book2",Uf);const Vf=[["path",{d:"M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5",key:"svg-0"}]],Ut=J("outline","brand-github","BrandGithub",Vf);const Wf=[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]],pn=J("outline","check","Check",Wf);const Kf=[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]],Jf=J("outline","chevron-down","ChevronDown",Kf);const Qf=[["path",{d:"M9 6l6 6l-6 6",key:"svg-0"}]],Ys=J("outline","chevron-right","ChevronRight",Qf);const Xf=[["path",{d:"M6 15l6 -6l6 6",key:"svg-0"}]],Yf=J("outline","chevron-up","ChevronUp",Xf);const ed=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 7v5l3 3",key:"svg-1"}]],td=J("outline","clock","Clock",ed);const nd=[["path",{d:"M3 5a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1v-10",key:"svg-0"}],["path",{d:"M7 20h10",key:"svg-1"}],["path",{d:"M9 16v4",key:"svg-2"}],["path",{d:"M15 16v4",key:"svg-3"}]],sd=J("outline","device-desktop","DeviceDesktop",nd);const od=[["path",{d:"M4 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M18 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}]],id=J("outline","dots","Dots",od);const rd=[["path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M7 11l5 5l5 -5",key:"svg-1"}],["path",{d:"M12 4l0 12",key:"svg-2"}]],ad=J("outline","download","Download",rd);const cd=[["path",{d:"M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6",key:"svg-0"}],["path",{d:"M11 13l9 -9",key:"svg-1"}],["path",{d:"M15 4h5v5",key:"svg-2"}]],Ha=J("outline","external-link","ExternalLink",cd);const ld=[["path",{d:"M14 3v4a1 1 0 0 0 1 1h4",key:"svg-0"}],["path",{d:"M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2",key:"svg-1"}],["path",{d:"M9 15h6",key:"svg-2"}],["path",{d:"M12.5 17.5l2.5 -2.5l-2.5 -2.5",key:"svg-3"}]],zi=J("outline","file-arrow-right","FileArrowRight",ld);const _d=[["path",{d:"M14 3v4a1 1 0 0 0 1 1h4",key:"svg-0"}],["path",{d:"M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2",key:"svg-1"}],["path",{d:"M9 9l1 0",key:"svg-2"}],["path",{d:"M9 13l6 0",key:"svg-3"}],["path",{d:"M9 17l6 0",key:"svg-4"}]],fd=J("outline","file-text","FileText",_d);const dd=[["path",{d:"M15 3v4a1 1 0 0 0 1 1h4",key:"svg-0"}],["path",{d:"M18 17h-7a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h4l5 5v7a2 2 0 0 1 -2 2",key:"svg-1"}],["path",{d:"M16 17v2a2 2 0 0 1 -2 2h-7a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h2",key:"svg-2"}]],ci=J("outline","files","Files",dd);const pd=[["path",{d:"M5 19l2.757 -7.351a1 1 0 0 1 .936 -.649h12.307a1 1 0 0 1 .986 1.164l-.996 5.211a2 2 0 0 1 -1.964 1.625h-14.026a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2h4l3 3h7a2 2 0 0 1 2 2v2",key:"svg-0"}]],ud=J("outline","folder-open","FolderOpen",pd);const hd=[["path",{d:"M5 4h4l3 3h7a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2",key:"svg-0"}]],ts=J("outline","folder","Folder",hd);const gd=[["path",{d:"M5 18a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-0"}],["path",{d:"M5 6a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-1"}],["path",{d:"M15 6a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-2"}],["path",{d:"M7 8l0 8",key:"svg-3"}],["path",{d:"M9 18h6a2 2 0 0 0 2 -2v-5",key:"svg-4"}],["path",{d:"M14 14l3 -3l3 3",key:"svg-5"}]],Mn=J("outline","git-branch","GitBranch",gd);const md=[["path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 1 0 -6 0",key:"svg-0"}],["path",{d:"M12 3l0 6",key:"svg-1"}],["path",{d:"M12 15l0 6",key:"svg-2"}]],li=J("outline","git-commit","GitCommit",md);const yd=[["path",{d:"M4 6a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-0"}],["path",{d:"M16 18a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-1"}],["path",{d:"M11 6h5a2 2 0 0 1 2 2v8",key:"svg-2"}],["path",{d:"M14 9l-3 -3l3 -3",key:"svg-3"}],["path",{d:"M13 18h-5a2 2 0 0 1 -2 -2v-8",key:"svg-4"}],["path",{d:"M10 15l3 3l-3 3",key:"svg-5"}]],_i=J("outline","git-compare","GitCompare",yd);const vd=[["path",{d:"M5 18a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-0"}],["path",{d:"M5 6a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-1"}],["path",{d:"M15 12a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-2"}],["path",{d:"M7 8l0 8",key:"svg-3"}],["path",{d:"M7 8a4 4 0 0 0 4 4h4",key:"svg-4"}]],Va=J("outline","git-merge","GitMerge",vd);const bd=[["path",{d:"M4 18a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-0"}],["path",{d:"M4 6a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-1"}],["path",{d:"M16 18a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-2"}],["path",{d:"M6 8l0 8",key:"svg-3"}],["path",{d:"M11 6h5a2 2 0 0 1 2 2v8",key:"svg-4"}],["path",{d:"M14 9l-3 -3l3 -3",key:"svg-5"}]],to=J("outline","git-pull-request","GitPullRequest",bd);const kd=[["path",{d:"M10 3h4v4h-4l0 -4",key:"svg-0"}],["path",{d:"M3 17h4v4h-4l0 -4",key:"svg-1"}],["path",{d:"M17 17h4v4h-4l0 -4",key:"svg-2"}],["path",{d:"M7 17l5 -4l5 4",key:"svg-3"}],["path",{d:"M12 7l0 6",key:"svg-4"}]],Nr=J("outline","hierarchy-2","Hierarchy2",kd);const wd=[["path",{d:"M12 8l0 4l2 2",key:"svg-0"}],["path",{d:"M3.05 11a9 9 0 1 1 .5 4m-.5 5v-5h5",key:"svg-1"}]],$r=J("outline","history","History",wd);const xd=[["path",{d:"M5 12l-2 0l9 -9l9 9l-2 0",key:"svg-0"}],["path",{d:"M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7",key:"svg-1"}],["path",{d:"M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6",key:"svg-2"}]],jd=J("outline","home","Home",xd);const Pd=[["path",{d:"M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12",key:"svg-0"}],["path",{d:"M4 13h3l3 3h4l3 -3h3",key:"svg-1"}]],Cd=J("outline","inbox","Inbox",Pd);const Sd=[["path",{d:"M16.555 3.843l3.602 3.602a2.877 2.877 0 0 1 0 4.069l-2.643 2.643a2.877 2.877 0 0 1 -4.069 0l-.301 -.301l-6.558 6.558a2 2 0 0 1 -1.239 .578l-.175 .008h-1.172a1 1 0 0 1 -.993 -.883l-.007 -.117v-1.172a2 2 0 0 1 .467 -1.284l.119 -.13l.414 -.414h2v-2h2v-2l2.144 -2.144l-.301 -.301a2.877 2.877 0 0 1 0 -4.069l2.643 -2.643a2.877 2.877 0 0 1 4.069 0",key:"svg-0"}],["path",{d:"M15 9h.01",key:"svg-1"}]],zd=J("outline","key","Key",Sd);const Rd=[["path",{d:"M13 5h8",key:"svg-0"}],["path",{d:"M13 9h5",key:"svg-1"}],["path",{d:"M13 15h8",key:"svg-2"}],["path",{d:"M13 19h5",key:"svg-3"}],["path",{d:"M3 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4",key:"svg-4"}],["path",{d:"M3 15a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4",key:"svg-5"}]],Nd=J("outline","list-details","ListDetails",Rd);const $d=[["path",{d:"M12 3a9 9 0 1 0 9 9",key:"svg-0"}]],Ed=J("outline","loader-2","Loader2",$d);const Td=[["path",{d:"M12 21v-3m6.36 .36l-2.12 -2.12m4.76 -4.24h-3m.36 -6.36l-2.12 2.12m-4.24 -4.76v3m-6.36 -.36l2.12 2.12m-3.76 4.24h2m1 4.95l.71 -.71",key:"svg-0"}]],_t=J("outline","loader-4","Loader4",Td);const Od=[["path",{d:"M5 12l14 0",key:"svg-0"}]],Wa=J("outline","minus","Minus",Od);const Ad=[["path",{d:"M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4",key:"svg-0"}],["path",{d:"M13.5 6.5l4 4",key:"svg-1"}]],Dd=J("outline","pencil","Pencil",Ad);const Id=[["path",{d:"M5 7a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2l0 -10",key:"svg-0"}]],Md=J("outline","player-stop","PlayerStop",Id);const Ld=[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]],ms=J("outline","plus","Plus",Ld);const Fd=[["path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4",key:"svg-0"}],["path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4",key:"svg-1"}]],cs=J("outline","refresh","Refresh",Fd);const qd=[["path",{d:"M3.06 13a9 9 0 1 0 .49 -4.087",key:"svg-0"}],["path",{d:"M3 4.001v5h5",key:"svg-1"}],["path",{d:"M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}]],fi=J("outline","restore","Restore",qd);const Zd=[["path",{d:"M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M21 21l-6 -6",key:"svg-1"}]],ls=J("outline","search","Search",Zd);const Bd=[["path",{d:"M8 9l4 -4l4 4",key:"svg-0"}],["path",{d:"M16 15l-4 4l-4 -4",key:"svg-1"}]],Ka=J("outline","selector","Selector",Bd);const Gd=[["path",{d:"M3 7a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3",key:"svg-0"}],["path",{d:"M3 15a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3l0 -2",key:"svg-1"}],["path",{d:"M7 8l0 .01",key:"svg-2"}],["path",{d:"M7 16l0 .01",key:"svg-3"}]],Er=J("outline","server","Server",Gd);const Ud=[["path",{d:"M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065",key:"svg-0"}],["path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-1"}]],_s=J("outline","settings","Settings",Ud);const Hd=[["path",{d:"M11.46 20.846a12 12 0 0 1 -7.96 -14.846a12 12 0 0 0 8.5 -3a12 12 0 0 0 8.5 3a12 12 0 0 1 -.09 7.06",key:"svg-0"}],["path",{d:"M15 19l2 2l4 -4",key:"svg-1"}]],Vd=J("outline","shield-check","ShieldCheck",Hd);const Wd=[["path",{d:"M4 7l16 0",key:"svg-0"}],["path",{d:"M10 11l0 6",key:"svg-1"}],["path",{d:"M14 11l0 6",key:"svg-2"}],["path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12",key:"svg-3"}],["path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3",key:"svg-4"}]],Kd=J("outline","trash","Trash",Wd);const Jd=[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}]],Tr=J("outline","user","User",Jd);const Qd=[["path",{d:"M5 7a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"svg-2"}],["path",{d:"M21 21v-2a4 4 0 0 0 -3 -3.85",key:"svg-3"}]],Xd=J("outline","users","Users",Qd);const Yd=[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]],Ln=J("outline","x","X",Yd);function Fn({text:e,duration:t=1.35,repeatDelay:n=.25,spread:s=1.6,className:o,color:r,shimmerColor:a}){const c=d.useMemo(()=>Array.from(e),[e]),_=t+n,f=c.length>1?t*s/c.length:0,p={color:r??"var(--muted-foreground)","--shimmer-text-base":r??"var(--muted-foreground)","--shimmer-text-highlight":a??"var(--foreground)"};return i.jsx("span",{className:Ce("shimmer-text inline-block whitespace-pre",o),style:p,children:c.map((m,h)=>i.jsx("span",{className:"inline-block whitespace-pre",style:{animationName:"opentig-shimmer-text",animationDuration:`${_}s`,animationTimingFunction:"ease-in-out",animationDelay:`${h*f}s`,animationIterationCount:"infinite",animationFillMode:"both"},children:m},`${m}-${h}`))})}const bt=W_,ep=ef;function kt({className:e,children:t,...n}){return i.jsxs(K_,{container:typeof document>"u"?void 0:document.body,"data-slot":"dialog-portal",className:"fixed inset-0 isolate z-[1000]",children:[i.jsx(J_,{forceRender:!0,"data-slot":"dialog-backdrop",className:"fixed inset-0 z-0 bg-black/45 backdrop-blur-[2px] duration-150 data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0"}),i.jsx(Q_,{"data-slot":"dialog-popup",className:Ce("fixed top-1/2 left-1/2 z-10 w-[min(760px,92vw)] max-w-[calc(100vw-2rem)] -translate-x-1/2 -translate-y-1/2 origin-center overflow-hidden rounded-xl border border-border bg-popover text-popover-foreground shadow-2xl shadow-black/30 duration-150 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...n,children:t})]})}function wt({className:e,...t}){return i.jsx(X_,{"data-slot":"dialog-title",className:Ce("text-sm font-semibold tracking-tight",e),...t})}function xt({className:e,...t}){return i.jsx(Y_,{"data-slot":"dialog-description",className:Ce("text-xs text-muted-foreground",e),...t})}const tp=tf;function np({className:e,size:t="default",children:n,...s}){return i.jsxs(nf,{"data-slot":"combobox-trigger","data-size":t,className:Ce("flex w-fit min-w-0 cursor-pointer items-center justify-between gap-1.5 rounded-lg border border-border bg-input/40 px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow,background-color] outline-none hover:bg-input/70 aria-expanded:bg-input/70 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:px-1.5 dark:bg-input/25 dark:hover:bg-input/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...s,children:[n,i.jsx(sf,{render:i.jsx(Ka,{className:"pointer-events-none size-4 text-muted-foreground"})})]})}function sp({className:e,children:t,sideOffset:n=4,align:s="start",...o}){return i.jsx(of,{children:i.jsx(rf,{sideOffset:n,align:s,className:"isolate z-50",children:i.jsx(af,{"data-slot":"combobox-content",className:Ce("relative isolate z-50 flex max-h-[min(24rem,var(--available-height))] w-max min-w-0 max-w-[min(var(--available-width),40rem)] origin-(--transform-origin) flex-col overflow-hidden rounded-xl bg-popover text-popover-foreground shadow-xl ring-1 ring-foreground/10 duration-100 dark:ring-foreground/10 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...o,children:t})})})}function op({className:e,...t}){return i.jsxs("div",{"data-slot":"combobox-input",className:"flex items-center gap-2 border-b border-border/70 px-3",children:[i.jsx(ls,{className:"size-4 shrink-0 text-muted-foreground"}),i.jsx(cf,{className:Ce("h-10 w-full min-w-0 bg-transparent text-sm text-foreground outline-none placeholder:text-muted-foreground",e),...t})]})}function ip({className:e,...t}){return i.jsx(lf,{"data-slot":"combobox-list",className:Ce("min-h-0 flex-1 scroll-py-1 overflow-y-auto overflow-x-hidden p-1",e),...t})}function rp({className:e,...t}){return i.jsx(_f,{"data-slot":"combobox-group",className:Ce("scroll-my-1.5",e),...t})}function ap({className:e,...t}){return i.jsx(ff,{"data-slot":"combobox-group-label",className:Ce("px-2 pt-2 pb-1 text-xs font-medium text-muted-foreground",e),...t})}function cp({className:e,children:t,...n}){return i.jsxs(df,{"data-slot":"combobox-item",className:Ce("relative flex w-full cursor-pointer items-center gap-2 rounded-md py-1.5 pr-7 pl-2 text-sm font-medium outline-hidden select-none transition-colors data-highlighted:bg-foreground/10 data-selected:text-primary data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[i.jsx("span",{className:"flex min-w-0 flex-1 items-center gap-2 overflow-hidden text-ellipsis whitespace-nowrap",children:t}),i.jsx(pf,{render:i.jsx("span",{className:"pointer-events-none absolute right-2 flex size-4 items-center justify-center"}),children:i.jsx(pn,{className:"pointer-events-none text-primary"})})]})}function qn({groups:e,value:t,onValueChange:n,label:s,triggerLabel:o,icon:r,triggerHint:a,triggerId:c,size:_="sm",triggerClassName:f,contentClassName:p,shortcut:m,placeholder:h,management:b,disabled:k,align:C="end",open:g,onOpenChange:S,focusSearch:w=!0,onSearchChange:P}){const[j,N]=d.useState(!1),[A,I]=d.useState(""),[B,L]=d.useState(!1),D=d.useRef(null);d.useEffect(()=>()=>{D.current!==null&&clearTimeout(D.current)},[]);const V=()=>{L(!0),D.current!==null&&clearTimeout(D.current),D.current=setTimeout(()=>{D.current=null,L(!1)},150)},X=d.useMemo(()=>e.flatMap(R=>R.items),[e]),ye=X.find(R=>R.value===t)??null,je=A.trim().toLocaleLowerCase(),F=e.map(R=>({...R,items:R.items.filter(Q=>Q.pinned||`${R.label} ${Q.label} ${Q.description??""} ${Q.search??""}`.toLocaleLowerCase().includes(je))})).filter(R=>R.items.length>0),Z=R=>{N(R),R||(I(""),L(!1),D.current!==null&&clearTimeout(D.current),D.current=null),S?.(R)};return i.jsxs(tp,{items:X,filteredItems:F.flatMap(R=>R.items),value:ye,open:g??j,onOpenChange:Z,inputValue:A,onInputValueChange:R=>{I(R),P?.()},filter:null,disabled:k,itemToStringLabel:R=>R?.label??"",itemToStringValue:R=>R?.value??"",isItemEqualToValue:(R,Q)=>R?.value===Q?.value,onValueChange:R=>{!R||R.disabled||(Z(!1),R.value!==t&&n(R.value))},children:[i.jsxs(np,{id:c,size:_,className:f,"aria-label":s,"aria-keyshortcuts":m,children:[r,i.jsx("span",{className:"min-w-0 flex-1 truncate text-left",children:o}),a]}),i.jsxs(sp,{align:C,className:Ce("searchable-picker",p),initialFocus:w,children:[i.jsx(op,{placeholder:h,"aria-label":h}),i.jsxs(ip,{className:"searchable-picker-list","aria-label":s,onScroll:V,onWheelCapture:V,children:[F.length===0&&i.jsx("div",{className:"searchable-picker-empty",role:"status",children:"No matches"}),F.map(R=>i.jsxs(rp,{children:[R.label&&i.jsx(ap,{className:"searchable-picker-group",children:R.label}),R.items.map(Q=>i.jsx(lp,{item:Q,scrolling:B},Q.value))]},R.id))]}),b&&i.jsx("div",{className:"searchable-picker-footer",children:i.jsxs("button",{type:"button",onClick:()=>{Z(!1),b.onClick()},children:[i.jsx(_s,{})," ",b.label]})})]})]})}function lp({item:e,scrolling:t}){const n=d.useRef(null),[s,o]=d.useState(!1);d.useLayoutEffect(()=>{const c=n.current;if(!c)return;const _=()=>o([...c.children].some(p=>p.scrollWidth>p.clientWidth));_();const f=new ResizeObserver(_);f.observe(c);for(const p of c.children)f.observe(p);return()=>f.disconnect()},[e.label,e.description]);const r=[e.label,e.description].filter(Boolean).join(" · "),a=e.tooltip&&e.tooltip!==r&&e.tooltip!==e.label&&e.tooltip!==e.description;return i.jsxs(ke,{disabled:t||!s&&!a,children:[i.jsxs(we,{render:i.jsx(cp,{value:e,disabled:e.disabled,className:Ce("searchable-picker-item",e.description&&"searchable-picker-item-detailed")}),children:[e.icon&&i.jsx("span",{className:"searchable-picker-icon",children:e.icon}),i.jsxs("span",{ref:n,className:"searchable-picker-copy",children:[i.jsx("strong",{children:e.label}),e.description&&i.jsx("small",{children:e.description})]}),e.trailing&&i.jsx("span",{className:"searchable-picker-trailing",children:e.trailing})]}),i.jsx(xe,{children:a?e.tooltip:r})]})}const On=(e,t=2)=>String(e).padStart(t,"0");function Ja(e){return new Date(/^\d{4}-\d{2}-\d{2}$/.test(e)?`${e}T00:00:00`:e)}function Qa(e){return`${On(e.getDate())}/${On(e.getMonth()+1)}/${On(e.getFullYear(),4)}`}function xx(e){const t=Ja(e);return Number.isNaN(t.getTime())?"—":Qa(t)}function Zn(e,{seconds:t=!1}={}){const n=Ja(e);if(Number.isNaN(n.getTime()))return"—";const s=`${On(n.getHours())}:${On(n.getMinutes())}${t?`:${On(n.getSeconds())}`:""}`;return`${Qa(n)} ${s}`}const _p=O_("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-md border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});function no({className:e,variant:t="default",render:n,...s}){return uf({defaultTagName:"span",props:hf({className:Ce(_p({variant:t}),e)},s),render:n,state:{slot:"badge",variant:t}})}const di=e=>["repository",e,"push-context"];function Or(e){return JSON.stringify([e.remote,e.urls,e.targetRef,e.mode,e.login])}function Ri(e){return e.urls.map(t=>{try{const n=new URL(t);return`${n.hostname==="github.com"?"":`${n.hostname}/`}${n.pathname.replace(/^\//,"").replace(/\.git$/,"")} · ${n.protocol.slice(0,-1).toUpperCase()}`}catch{return t}}).join(", ")||"No destination"}function fp(e){return e.length===1&&/^https:\/\/github\.com\/[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/i.test(e[0]??"")}const Xa={unchecked:"Not checked",ok:"Verified",expired:"Reconnect account",inaccessible:"No access",offline:"Offline",external:"This machine",stale:"Check again"};function dp(e){return e?`@${e}`:"This account"}function Ya(e,t){return e==="managed"&&t?`@${t}`:"This machine"}function pp(e){return e.auto?"Choose an account above to use it for GitHub HTTPS fetch and push.":e.managed&&e.login?`PRs and Git HTTPS both use @${e.login}.`:e.login?`PRs as @${e.login}. Git HTTPS uses this machine.`:"Git HTTPS uses this machine."}function ec(e){const t=e.login?`@${e.login}`:"This machine";return`${e.operation} · ${e.ok?"Succeeded":"Failed"} · ${t} · ${Zn(e.at,{seconds:!0})}`}function up(e){const t=[["Account",e.identity],["GitHub / PRs",e.api],["Git read",e.read],["Write permission",e.write]],n=[e.checkedAt?`Last checked: ${Zn(e.checkedAt,{seconds:!0})}`:"Access has not been checked.",`Push destination: ${Ri(e.publication)}`,`Push URL: ${e.publication.urls.join(", ")||"None"}`,...t.map(([s,o])=>`${s}: ${o.state==="ok"&&s==="Write permission"?"Declared by GitHub":Xa[o.state]}${o.message?` — ${o.message}`:""}`),`Git HTTPS: ${Ya(e.publication.mode,e.publication.login)}`];return e.lastOperation&&(n.push(`Last Git: ${ec(e.lastOperation)}`),n.push(e.lastOperation.url),e.lastOperation.message&&n.push(e.lastOperation.message)),n.push("Write permission is declared by GitHub. Branch policies can still reject a push."),n.join(`
|
|
3
|
+
`)}function hp(e,t,n){return n?"Checking…":t.state==="ok"&&e==="Write permission"?"Declared by GitHub":Xa[t.state]}function gp({access:e,checking:t}){const n=mn(),{publication:s}=e,o=e.lastOperation&&!e.lastOperation.ok?e.lastOperation:null;d.useEffect(()=>{n.setQueryData(di(s.repositoryId),s)},[n,s]);const r=[["Account",e.identity],["GitHub / PRs",e.api],["Git read",e.read],["Write permission",e.write]],a=async()=>{try{await os(up(e)),M.success({title:"Copied technical details"})}catch(c){M.error({title:"Could not copy technical details",description:c instanceof Error?c.message:"The request could not be completed."})}};return i.jsxs("div",{className:"repository-access-status","aria-busy":t,children:[i.jsx("dl",{className:"github-access-grid",children:r.map(([c,_])=>i.jsxs("div",{children:[i.jsx("dt",{children:c}),i.jsxs("dd",{"data-state":t?"checking":_.state,children:[i.jsx("span",{className:"github-access-dot","aria-hidden":"true"}),hp(c,_,t)]})]},c))}),i.jsxs("div",{className:"github-push-destination",children:[i.jsx("span",{className:"github-settings-eyebrow",children:"Push destination"}),i.jsx("strong",{children:Ri(s)}),i.jsxs("p",{children:[s.branch??"No branch"," → ",s.remote??"Choose a remote",s.targetRef&&` / ${s.targetRef.replace(/^refs\/heads\//,"")}`]})]}),s.blocked&&i.jsx("p",{className:"github-settings-notice",role:"status",children:s.blocked}),!t&&r.filter(([,c])=>["expired","inaccessible","offline"].includes(c.state)&&c.message).map(([c,_])=>i.jsxs("p",{className:"github-settings-notice",role:"status",children:[i.jsx("strong",{children:c}),_.message]},c)),o&&i.jsxs("p",{className:"github-settings-notice",role:"status",children:[i.jsxs("strong",{children:["Last ",o.operation," failed"]}),o.message||"The Git operation did not complete."]}),i.jsxs("details",{className:"github-access-details",children:[i.jsxs("summary",{children:["Technical details",o&&i.jsx("span",{children:"Last Git operation failed"})]}),i.jsxs("div",{className:"github-access-debug",children:[i.jsxs("dl",{children:[i.jsxs("div",{children:[i.jsx("dt",{children:"Last checked"}),i.jsx("dd",{children:e.checkedAt?Zn(e.checkedAt,{seconds:!0}):"Not checked yet"})]}),i.jsxs("div",{children:[i.jsx("dt",{children:"Push URL"}),i.jsx("dd",{children:s.urls.join(", ")||"No push URL configured."})]}),i.jsxs("div",{children:[i.jsx("dt",{children:"Git HTTPS"}),i.jsx("dd",{children:Ya(s.mode,s.login)})]}),e.lastOperation&&i.jsxs("div",{children:[i.jsx("dt",{children:"Last Git"}),i.jsx("dd",{children:ec(e.lastOperation)})]})]}),i.jsx("p",{className:"github-settings-note",children:"Write permission is declared by GitHub. Branch policies can still reject a push."}),i.jsx("div",{className:"github-access-debug-actions",children:i.jsxs(G,{type:"button",variant:"outline",size:"sm",onClick:()=>{a()},"aria-label":"Copy technical details",children:[i.jsx(ai,{}),"Copy details"]})})]})]})]})}var Ar;function $(e,t,n){function s(c,_){if(c._zod||Object.defineProperty(c,"_zod",{value:{def:_,constr:a,traits:new Set},enumerable:!1}),c._zod.traits.has(e))return;c._zod.traits.add(e),t(c,_);const f=a.prototype,p=Object.keys(f);for(let m=0;m<p.length;m++){const h=p[m];h in c||(c[h]=f[h].bind(c))}}const o=n?.Parent??Object;class r extends o{}Object.defineProperty(r,"name",{value:e});function a(c){var _;const f=n?.Parent?new r:this;s(f,c),(_=f._zod).deferred??(_.deferred=[]);for(const p of f._zod.deferred)p();return f}return Object.defineProperty(a,"init",{value:s}),Object.defineProperty(a,Symbol.hasInstance,{value:c=>n?.Parent&&c instanceof n.Parent?!0:c?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}class An extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class tc extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(Ar=globalThis).__zod_globalConfig??(Ar.__zod_globalConfig={});const Ni=globalThis.__zod_globalConfig;function un(e){return Ni}function nc(e){const t=Object.values(e).filter(s=>typeof s=="number");return Object.entries(e).filter(([s,o])=>t.indexOf(+s)===-1).map(([s,o])=>o)}function pi(e,t){return typeof t=="bigint"?t.toString():t}function $i(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Ei(e){return e==null}function Ti(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}const Dr=Symbol("evaluating");function me(e,t,n){let s;Object.defineProperty(e,t,{get(){if(s!==Dr)return s===void 0&&(s=Dr,s=n()),s},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function yn(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Wt(...e){const t={};for(const n of e){const s=Object.getOwnPropertyDescriptors(n);Object.assign(t,s)}return Object.defineProperties({},t)}function Ir(e){return JSON.stringify(e)}function mp(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const sc="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function so(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const yp=$i(()=>{if(Ni.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function fs(e){if(so(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(so(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function oc(e){return fs(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const vp=new Set(["string","number","symbol"]);function Po(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Kt(e,t,n){const s=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(s._zod.parent=e),s}function Y(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function bp(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}function kp(e,t){const n=e._zod.def,s=n.checks;if(s&&s.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const r=Wt(e._zod.def,{get shape(){const a={};for(const c in t){if(!(c in n.shape))throw new Error(`Unrecognized key: "${c}"`);t[c]&&(a[c]=n.shape[c])}return yn(this,"shape",a),a},checks:[]});return Kt(e,r)}function wp(e,t){const n=e._zod.def,s=n.checks;if(s&&s.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const r=Wt(e._zod.def,{get shape(){const a={...e._zod.def.shape};for(const c in t){if(!(c in n.shape))throw new Error(`Unrecognized key: "${c}"`);t[c]&&delete a[c]}return yn(this,"shape",a),a},checks:[]});return Kt(e,r)}function xp(e,t){if(!fs(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const r=e._zod.def.shape;for(const a in t)if(Object.getOwnPropertyDescriptor(r,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const o=Wt(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return yn(this,"shape",r),r}});return Kt(e,o)}function jp(e,t){if(!fs(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=Wt(e._zod.def,{get shape(){const s={...e._zod.def.shape,...t};return yn(this,"shape",s),s}});return Kt(e,n)}function Pp(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const n=Wt(e._zod.def,{get shape(){const s={...e._zod.def.shape,...t._zod.def.shape};return yn(this,"shape",s),s},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return Kt(e,n)}function Cp(e,t,n){const o=t._zod.def.checks;if(o&&o.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const a=Wt(t._zod.def,{get shape(){const c=t._zod.def.shape,_={...c};if(n)for(const f in n){if(!(f in c))throw new Error(`Unrecognized key: "${f}"`);n[f]&&(_[f]=e?new e({type:"optional",innerType:c[f]}):c[f])}else for(const f in c)_[f]=e?new e({type:"optional",innerType:c[f]}):c[f];return yn(this,"shape",_),_},checks:[]});return Kt(t,a)}function Sp(e,t,n){const s=Wt(t._zod.def,{get shape(){const o=t._zod.def.shape,r={...o};if(n)for(const a in n){if(!(a in r))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(r[a]=new e({type:"nonoptional",innerType:o[a]}))}else for(const a in o)r[a]=new e({type:"nonoptional",innerType:o[a]});return yn(this,"shape",r),r}});return Kt(t,s)}function $n(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function zp(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function ic(e,t){return t.map(n=>{var s;return(s=n).path??(s.path=[]),n.path.unshift(e),n})}function Ls(e){return typeof e=="string"?e:e?.message}function hn(e,t,n){const s=e.message?e.message:Ls(e.inst?._zod.def?.error?.(e))??Ls(t?.error?.(e))??Ls(n.customError?.(e))??Ls(n.localeError?.(e))??"Invalid input",{inst:o,continue:r,input:a,...c}=e;return c.path??(c.path=[]),c.message=s,t?.reportInput&&(c.input=a),c}function Oi(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function ds(...e){const[t,n,s]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:s}:{...t}}const rc=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,pi,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},ac=$("$ZodError",rc),cc=$("$ZodError",rc,{Parent:Error});function Rp(e,t=n=>n.message){const n={},s=[];for(const o of e.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):s.push(t(o));return{formErrors:s,fieldErrors:n}}function Np(e,t=n=>n.message){const n={_errors:[]},s=(o,r=[])=>{for(const a of o.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(c=>s({issues:c},[...r,...a.path]));else if(a.code==="invalid_key")s({issues:a.issues},[...r,...a.path]);else if(a.code==="invalid_element")s({issues:a.issues},[...r,...a.path]);else{const c=[...r,...a.path];if(c.length===0)n._errors.push(t(a));else{let _=n,f=0;for(;f<c.length;){const p=c[f];f===c.length-1?(_[p]=_[p]||{_errors:[]},_[p]._errors.push(t(a))):_[p]=_[p]||{_errors:[]},_=_[p],f++}}}};return s(e),n}const Ai=e=>(t,n,s,o)=>{const r=s?{...s,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},r);if(a instanceof Promise)throw new An;if(a.issues.length){const c=new(o?.Err??e)(a.issues.map(_=>hn(_,r,un())));throw sc(c,o?.callee),c}return a.value},Di=e=>async(t,n,s,o)=>{const r=s?{...s,async:!0}:{async:!0};let a=t._zod.run({value:n,issues:[]},r);if(a instanceof Promise&&(a=await a),a.issues.length){const c=new(o?.Err??e)(a.issues.map(_=>hn(_,r,un())));throw sc(c,o?.callee),c}return a.value},Co=e=>(t,n,s)=>{const o=s?{...s,async:!1}:{async:!1},r=t._zod.run({value:n,issues:[]},o);if(r instanceof Promise)throw new An;return r.issues.length?{success:!1,error:new(e??ac)(r.issues.map(a=>hn(a,o,un())))}:{success:!0,data:r.value}},$p=Co(cc),So=e=>async(t,n,s)=>{const o=s?{...s,async:!0}:{async:!0};let r=t._zod.run({value:n,issues:[]},o);return r instanceof Promise&&(r=await r),r.issues.length?{success:!1,error:new e(r.issues.map(a=>hn(a,o,un())))}:{success:!0,data:r.value}},Ep=So(cc),Tp=e=>(t,n,s)=>{const o=s?{...s,direction:"backward"}:{direction:"backward"};return Ai(e)(t,n,o)},Op=e=>(t,n,s)=>Ai(e)(t,n,s),Ap=e=>async(t,n,s)=>{const o=s?{...s,direction:"backward"}:{direction:"backward"};return Di(e)(t,n,o)},Dp=e=>async(t,n,s)=>Di(e)(t,n,s),Ip=e=>(t,n,s)=>{const o=s?{...s,direction:"backward"}:{direction:"backward"};return Co(e)(t,n,o)},Mp=e=>(t,n,s)=>Co(e)(t,n,s),Lp=e=>async(t,n,s)=>{const o=s?{...s,direction:"backward"}:{direction:"backward"};return So(e)(t,n,o)},Fp=e=>async(t,n,s)=>So(e)(t,n,s),qp=/^[cC][0-9a-z]{6,}$/,Zp=/^[0-9a-z]+$/,Bp=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Gp=/^[0-9a-vA-V]{20}$/,Up=/^[A-Za-z0-9]{27}$/,Hp=/^[a-zA-Z0-9_-]{21}$/,Vp=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Wp=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Mr=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Kp=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Jp="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Qp(){return new RegExp(Jp,"u")}const Xp=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Yp=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,eu=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,tu=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,nu=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,lc=/^[A-Za-z0-9_-]*$/,su=/^https?$/,ou=/^\+[1-9]\d{6,14}$/,_c="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",iu=new RegExp(`^${_c}$`);function fc(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function ru(e){return new RegExp(`^${fc(e)}$`)}function au(e){const t=fc({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const s=`${t}(?:${n.join("|")})`;return new RegExp(`^${_c}T(?:${s})$`)}const cu=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},lu=/^[^A-Z]*$/,_u=/^[^a-z]*$/,Ot=$("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),fu=$("$ZodCheckMaxLength",(e,t)=>{var n;Ot.init(e,t),(n=e._zod.def).when??(n.when=s=>{const o=s.value;return!Ei(o)&&o.length!==void 0}),e._zod.onattach.push(s=>{const o=s._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(s._zod.bag.maximum=t.maximum)}),e._zod.check=s=>{const o=s.value;if(o.length<=t.maximum)return;const a=Oi(o);s.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),du=$("$ZodCheckMinLength",(e,t)=>{var n;Ot.init(e,t),(n=e._zod.def).when??(n.when=s=>{const o=s.value;return!Ei(o)&&o.length!==void 0}),e._zod.onattach.push(s=>{const o=s._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(s._zod.bag.minimum=t.minimum)}),e._zod.check=s=>{const o=s.value;if(o.length>=t.minimum)return;const a=Oi(o);s.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),pu=$("$ZodCheckLengthEquals",(e,t)=>{var n;Ot.init(e,t),(n=e._zod.def).when??(n.when=s=>{const o=s.value;return!Ei(o)&&o.length!==void 0}),e._zod.onattach.push(s=>{const o=s._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=s=>{const o=s.value,r=o.length;if(r===t.length)return;const a=Oi(o),c=r>t.length;s.issues.push({origin:a,...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:s.value,inst:e,continue:!t.abort})}}),zo=$("$ZodCheckStringFormat",(e,t)=>{var n,s;Ot.init(e,t),e._zod.onattach.push(o=>{const r=o._zod.bag;r.format=t.format,t.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(s=e._zod).check??(s.check=()=>{})}),uu=$("$ZodCheckRegex",(e,t)=>{zo.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),hu=$("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=lu),zo.init(e,t)}),gu=$("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=_u),zo.init(e,t)}),mu=$("$ZodCheckIncludes",(e,t)=>{Ot.init(e,t);const n=Po(t.includes),s=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=s,e._zod.onattach.push(o=>{const r=o._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(s)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),yu=$("$ZodCheckStartsWith",(e,t)=>{Ot.init(e,t);const n=new RegExp(`^${Po(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(s=>{const o=s._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=s=>{s.value.startsWith(t.prefix)||s.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:s.value,inst:e,continue:!t.abort})}}),vu=$("$ZodCheckEndsWith",(e,t)=>{Ot.init(e,t);const n=new RegExp(`.*${Po(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(s=>{const o=s._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=s=>{s.value.endsWith(t.suffix)||s.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:s.value,inst:e,continue:!t.abort})}}),bu=$("$ZodCheckOverwrite",(e,t)=>{Ot.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class ku{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const s=t.split(`
|
|
4
|
+
`).filter(a=>a),o=Math.min(...s.map(a=>a.length-a.trimStart().length)),r=s.map(a=>a.slice(o)).map(a=>" ".repeat(this.indent*2)+a);for(const a of r)this.content.push(a)}compile(){const t=Function,n=this?.args,o=[...(this?.content??[""]).map(r=>` ${r}`)];return new t(...n,o.join(`
|
|
5
|
+
`))}}const wu={major:4,minor:4,patch:3},Fe=$("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=wu;const s=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&s.unshift(e);for(const o of s)for(const r of o._zod.onattach)r(e);if(s.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const o=(a,c,_)=>{let f=$n(a),p;for(const m of c){if(m._zod.def.when){if(zp(a)||!m._zod.def.when(a))continue}else if(f)continue;const h=a.issues.length,b=m._zod.check(a);if(b instanceof Promise&&_?.async===!1)throw new An;if(p||b instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await b,a.issues.length!==h&&(f||(f=$n(a,h)))});else{if(a.issues.length===h)continue;f||(f=$n(a,h))}}return p?p.then(()=>a):a},r=(a,c,_)=>{if($n(a))return a.aborted=!0,a;const f=o(c,s,_);if(f instanceof Promise){if(_.async===!1)throw new An;return f.then(p=>e._zod.parse(p,_))}return e._zod.parse(f,_)};e._zod.run=(a,c)=>{if(c.skipChecks)return e._zod.parse(a,c);if(c.direction==="backward"){const f=e._zod.parse({value:a.value,issues:[]},{...c,skipChecks:!0});return f instanceof Promise?f.then(p=>r(p,a,c)):r(f,a,c)}const _=e._zod.parse(a,c);if(_ instanceof Promise){if(c.async===!1)throw new An;return _.then(f=>o(f,s,c))}return o(_,s,c)}}me(e,"~standard",()=>({validate:o=>{try{const r=$p(e,o);return r.success?{value:r.data}:{issues:r.error?.issues}}catch{return Ep(e,o).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),Ii=$("$ZodString",(e,t)=>{Fe.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??cu(e._zod.bag),e._zod.parse=(n,s)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),Se=$("$ZodStringFormat",(e,t)=>{zo.init(e,t),Ii.init(e,t)}),xu=$("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Wp),Se.init(e,t)}),ju=$("$ZodUUID",(e,t)=>{if(t.version){const s={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(s===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Mr(s))}else t.pattern??(t.pattern=Mr());Se.init(e,t)}),Pu=$("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Kp),Se.init(e,t)}),Cu=$("$ZodURL",(e,t)=>{Se.init(e,t),e._zod.check=n=>{try{const s=n.value.trim();if(!t.normalize&&t.protocol?.source===su.source&&!/^https?:\/\//i.test(s)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}const o=new URL(s);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=o.href:n.value=s;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),Su=$("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Qp()),Se.init(e,t)}),zu=$("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Hp),Se.init(e,t)}),Ru=$("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=qp),Se.init(e,t)}),Nu=$("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Zp),Se.init(e,t)}),$u=$("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Bp),Se.init(e,t)}),Eu=$("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Gp),Se.init(e,t)}),Tu=$("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Up),Se.init(e,t)}),Ou=$("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=au(t)),Se.init(e,t)}),Au=$("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=iu),Se.init(e,t)}),Du=$("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=ru(t)),Se.init(e,t)}),Iu=$("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Vp),Se.init(e,t)}),Mu=$("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Xp),Se.init(e,t),e._zod.bag.format="ipv4"}),Lu=$("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Yp),Se.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),Fu=$("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=eu),Se.init(e,t)}),qu=$("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=tu),Se.init(e,t),e._zod.check=n=>{const s=n.value.split("/");try{if(s.length!==2)throw new Error;const[o,r]=s;if(!r)throw new Error;const a=Number(r);if(`${a}`!==r)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${o}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function dc(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Zu=$("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=nu),Se.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{dc(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function Bu(e){if(!lc.test(e))return!1;const t=e.replace(/[-_]/g,s=>s==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return dc(n)}const Gu=$("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=lc),Se.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{Bu(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Uu=$("$ZodE164",(e,t)=>{t.pattern??(t.pattern=ou),Se.init(e,t)});function Hu(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[s]=n;if(!s)return!1;const o=JSON.parse(atob(s));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const Vu=$("$ZodJWT",(e,t)=>{Se.init(e,t),e._zod.check=n=>{Hu(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Wu=$("$ZodUnknown",(e,t)=>{Fe.init(e,t),e._zod.parse=n=>n}),Ku=$("$ZodNever",(e,t)=>{Fe.init(e,t),e._zod.parse=(n,s)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function Lr(e,t,n){e.issues.length&&t.issues.push(...ic(n,e.issues)),t.value[n]=e.value}const Ju=$("$ZodArray",(e,t)=>{Fe.init(e,t),e._zod.parse=(n,s)=>{const o=n.value;if(!Array.isArray(o))return n.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),n;n.value=Array(o.length);const r=[];for(let a=0;a<o.length;a++){const c=o[a],_=t.element._zod.run({value:c,issues:[]},s);_ instanceof Promise?r.push(_.then(f=>Lr(f,n,a))):Lr(_,n,a)}return r.length?Promise.all(r).then(()=>n):n}});function oo(e,t,n,s,o,r){const a=n in s;if(e.issues.length){if(o&&r&&!a)return;t.issues.push(...ic(n,e.issues))}if(!a&&!o){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?a&&(t.value[n]=void 0):t.value[n]=e.value}function pc(e){const t=Object.keys(e.shape);for(const s of t)if(!e.shape?.[s]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${s}": expected a Zod schema`);const n=bp(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function uc(e,t,n,s,o,r){const a=[],c=o.keySet,_=o.catchall._zod,f=_.def.type,p=_.optin==="optional",m=_.optout==="optional";for(const h in t){if(h==="__proto__"||c.has(h))continue;if(f==="never"){a.push(h);continue}const b=_.run({value:t[h],issues:[]},s);b instanceof Promise?e.push(b.then(k=>oo(k,n,h,t,p,m))):oo(b,n,h,t,p,m)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:r}),e.length?Promise.all(e).then(()=>n):n}const Qu=$("$ZodObject",(e,t)=>{if(Fe.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const c=t.shape;Object.defineProperty(t,"shape",{get:()=>{const _={...c};return Object.defineProperty(t,"shape",{value:_}),_}})}const s=$i(()=>pc(t));me(e._zod,"propValues",()=>{const c=t.shape,_={};for(const f in c){const p=c[f]._zod;if(p.values){_[f]??(_[f]=new Set);for(const m of p.values)_[f].add(m)}}return _});const o=so,r=t.catchall;let a;e._zod.parse=(c,_)=>{a??(a=s.value);const f=c.value;if(!o(f))return c.issues.push({expected:"object",code:"invalid_type",input:f,inst:e}),c;c.value={};const p=[],m=a.shape;for(const h of a.keys){const b=m[h],k=b._zod.optin==="optional",C=b._zod.optout==="optional",g=b._zod.run({value:f[h],issues:[]},_);g instanceof Promise?p.push(g.then(S=>oo(S,c,h,f,k,C))):oo(g,c,h,f,k,C)}return r?uc(p,f,c,_,s.value,e):p.length?Promise.all(p).then(()=>c):c}}),Xu=$("$ZodObjectJIT",(e,t)=>{Qu.init(e,t);const n=e._zod.parse,s=$i(()=>pc(t)),o=h=>{const b=new ku(["shape","payload","ctx"]),k=s.value,C=P=>{const j=Ir(P);return`shape[${j}]._zod.run({ value: input[${j}], issues: [] }, ctx)`};b.write("const input = payload.value;");const g=Object.create(null);let S=0;for(const P of k.keys)g[P]=`key_${S++}`;b.write("const newResult = {};");for(const P of k.keys){const j=g[P],N=Ir(P),A=h[P],I=A?._zod?.optin==="optional",B=A?._zod?.optout==="optional";b.write(`const ${j} = ${C(P)};`),I&&B?b.write(`
|
|
6
|
+
if (${j}.issues.length) {
|
|
7
|
+
if (${N} in input) {
|
|
8
|
+
payload.issues = payload.issues.concat(${j}.issues.map(iss => ({
|
|
9
|
+
...iss,
|
|
10
|
+
path: iss.path ? [${N}, ...iss.path] : [${N}]
|
|
11
|
+
})));
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
if (${j}.value === undefined) {
|
|
16
|
+
if (${N} in input) {
|
|
17
|
+
newResult[${N}] = undefined;
|
|
18
|
+
}
|
|
19
|
+
} else {
|
|
20
|
+
newResult[${N}] = ${j}.value;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
`):I?b.write(`
|
|
24
|
+
if (${j}.issues.length) {
|
|
25
|
+
payload.issues = payload.issues.concat(${j}.issues.map(iss => ({
|
|
26
|
+
...iss,
|
|
27
|
+
path: iss.path ? [${N}, ...iss.path] : [${N}]
|
|
28
|
+
})));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
if (${j}.value === undefined) {
|
|
32
|
+
if (${N} in input) {
|
|
33
|
+
newResult[${N}] = undefined;
|
|
34
|
+
}
|
|
35
|
+
} else {
|
|
36
|
+
newResult[${N}] = ${j}.value;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
`):b.write(`
|
|
40
|
+
const ${j}_present = ${N} in input;
|
|
41
|
+
if (${j}.issues.length) {
|
|
42
|
+
payload.issues = payload.issues.concat(${j}.issues.map(iss => ({
|
|
43
|
+
...iss,
|
|
44
|
+
path: iss.path ? [${N}, ...iss.path] : [${N}]
|
|
45
|
+
})));
|
|
46
|
+
}
|
|
47
|
+
if (!${j}_present && !${j}.issues.length) {
|
|
48
|
+
payload.issues.push({
|
|
49
|
+
code: "invalid_type",
|
|
50
|
+
expected: "nonoptional",
|
|
51
|
+
input: undefined,
|
|
52
|
+
path: [${N}]
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
if (${j}_present) {
|
|
57
|
+
if (${j}.value === undefined) {
|
|
58
|
+
newResult[${N}] = undefined;
|
|
59
|
+
} else {
|
|
60
|
+
newResult[${N}] = ${j}.value;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
`)}b.write("payload.value = newResult;"),b.write("return payload;");const w=b.compile();return(P,j)=>w(h,P,j)};let r;const a=so,c=!Ni.jitless,f=c&&yp.value,p=t.catchall;let m;e._zod.parse=(h,b)=>{m??(m=s.value);const k=h.value;return a(k)?c&&f&&b?.async===!1&&b.jitless!==!0?(r||(r=o(t.shape)),h=r(h,b),p?uc([],k,h,b,m,e):h):n(h,b):(h.issues.push({expected:"object",code:"invalid_type",input:k,inst:e}),h)}});function Fr(e,t,n,s){for(const r of e)if(r.issues.length===0)return t.value=r.value,t;const o=e.filter(r=>!$n(r));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(r=>r.issues.map(a=>hn(a,s,un())))}),t)}const Yu=$("$ZodUnion",(e,t)=>{Fe.init(e,t),me(e._zod,"optin",()=>t.options.some(s=>s._zod.optin==="optional")?"optional":void 0),me(e._zod,"optout",()=>t.options.some(s=>s._zod.optout==="optional")?"optional":void 0),me(e._zod,"values",()=>{if(t.options.every(s=>s._zod.values))return new Set(t.options.flatMap(s=>Array.from(s._zod.values)))}),me(e._zod,"pattern",()=>{if(t.options.every(s=>s._zod.pattern)){const s=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${s.map(o=>Ti(o.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(s,o)=>{if(n)return n(s,o);let r=!1;const a=[];for(const c of t.options){const _=c._zod.run({value:s.value,issues:[]},o);if(_ instanceof Promise)a.push(_),r=!0;else{if(_.issues.length===0)return _;a.push(_)}}return r?Promise.all(a).then(c=>Fr(c,s,e,o)):Fr(a,s,e,o)}}),eh=$("$ZodIntersection",(e,t)=>{Fe.init(e,t),e._zod.parse=(n,s)=>{const o=n.value,r=t.left._zod.run({value:o,issues:[]},s),a=t.right._zod.run({value:o,issues:[]},s);return r instanceof Promise||a instanceof Promise?Promise.all([r,a]).then(([_,f])=>qr(n,_,f)):qr(n,r,a)}});function ui(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(fs(e)&&fs(t)){const n=Object.keys(t),s=Object.keys(e).filter(r=>n.indexOf(r)!==-1),o={...e,...t};for(const r of s){const a=ui(e[r],t[r]);if(!a.valid)return{valid:!1,mergeErrorPath:[r,...a.mergeErrorPath]};o[r]=a.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let s=0;s<e.length;s++){const o=e[s],r=t[s],a=ui(o,r);if(!a.valid)return{valid:!1,mergeErrorPath:[s,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function qr(e,t,n){const s=new Map;let o;for(const c of t.issues)if(c.code==="unrecognized_keys"){o??(o=c);for(const _ of c.keys)s.has(_)||s.set(_,{}),s.get(_).l=!0}else e.issues.push(c);for(const c of n.issues)if(c.code==="unrecognized_keys")for(const _ of c.keys)s.has(_)||s.set(_,{}),s.get(_).r=!0;else e.issues.push(c);const r=[...s].filter(([,c])=>c.l&&c.r).map(([c])=>c);if(r.length&&o&&e.issues.push({...o,keys:r}),$n(e))return e;const a=ui(t.value,n.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}const th=$("$ZodEnum",(e,t)=>{Fe.init(e,t);const n=nc(t.entries),s=new Set(n);e._zod.values=s,e._zod.pattern=new RegExp(`^(${n.filter(o=>vp.has(typeof o)).map(o=>typeof o=="string"?Po(o):o.toString()).join("|")})$`),e._zod.parse=(o,r)=>{const a=o.value;return s.has(a)||o.issues.push({code:"invalid_value",values:n,input:a,inst:e}),o}}),nh=$("$ZodTransform",(e,t)=>{Fe.init(e,t),e._zod.optin="optional",e._zod.parse=(n,s)=>{if(s.direction==="backward")throw new tc(e.constructor.name);const o=t.transform(n.value,n);if(s.async)return(o instanceof Promise?o:Promise.resolve(o)).then(a=>(n.value=a,n.fallback=!0,n));if(o instanceof Promise)throw new An;return n.value=o,n.fallback=!0,n}});function Zr(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const hc=$("$ZodOptional",(e,t)=>{Fe.init(e,t),e._zod.optin="optional",e._zod.optout="optional",me(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),me(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Ti(n.source)})?$`):void 0}),e._zod.parse=(n,s)=>{if(t.innerType._zod.optin==="optional"){const o=n.value,r=t.innerType._zod.run(n,s);return r instanceof Promise?r.then(a=>Zr(a,o)):Zr(r,o)}return n.value===void 0?n:t.innerType._zod.run(n,s)}}),sh=$("$ZodExactOptional",(e,t)=>{hc.init(e,t),me(e._zod,"values",()=>t.innerType._zod.values),me(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,s)=>t.innerType._zod.run(n,s)}),oh=$("$ZodNullable",(e,t)=>{Fe.init(e,t),me(e._zod,"optin",()=>t.innerType._zod.optin),me(e._zod,"optout",()=>t.innerType._zod.optout),me(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Ti(n.source)}|null)$`):void 0}),me(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,s)=>n.value===null?n:t.innerType._zod.run(n,s)}),ih=$("$ZodDefault",(e,t)=>{Fe.init(e,t),e._zod.optin="optional",me(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,s)=>{if(s.direction==="backward")return t.innerType._zod.run(n,s);if(n.value===void 0)return n.value=t.defaultValue,n;const o=t.innerType._zod.run(n,s);return o instanceof Promise?o.then(r=>Br(r,t)):Br(o,t)}});function Br(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const rh=$("$ZodPrefault",(e,t)=>{Fe.init(e,t),e._zod.optin="optional",me(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,s)=>(s.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,s))}),ah=$("$ZodNonOptional",(e,t)=>{Fe.init(e,t),me(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(s=>s!==void 0)):void 0}),e._zod.parse=(n,s)=>{const o=t.innerType._zod.run(n,s);return o instanceof Promise?o.then(r=>Gr(r,e)):Gr(o,e)}});function Gr(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const ch=$("$ZodCatch",(e,t)=>{Fe.init(e,t),e._zod.optin="optional",me(e._zod,"optout",()=>t.innerType._zod.optout),me(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,s)=>{if(s.direction==="backward")return t.innerType._zod.run(n,s);const o=t.innerType._zod.run(n,s);return o instanceof Promise?o.then(r=>(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(a=>hn(a,s,un()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(r=>hn(r,s,un()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),lh=$("$ZodPipe",(e,t)=>{Fe.init(e,t),me(e._zod,"values",()=>t.in._zod.values),me(e._zod,"optin",()=>t.in._zod.optin),me(e._zod,"optout",()=>t.out._zod.optout),me(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,s)=>{if(s.direction==="backward"){const r=t.out._zod.run(n,s);return r instanceof Promise?r.then(a=>Fs(a,t.in,s)):Fs(r,t.in,s)}const o=t.in._zod.run(n,s);return o instanceof Promise?o.then(r=>Fs(r,t.out,s)):Fs(o,t.out,s)}});function Fs(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}const _h=$("$ZodReadonly",(e,t)=>{Fe.init(e,t),me(e._zod,"propValues",()=>t.innerType._zod.propValues),me(e._zod,"values",()=>t.innerType._zod.values),me(e._zod,"optin",()=>t.innerType?._zod?.optin),me(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,s)=>{if(s.direction==="backward")return t.innerType._zod.run(n,s);const o=t.innerType._zod.run(n,s);return o instanceof Promise?o.then(Ur):Ur(o)}});function Ur(e){return e.value=Object.freeze(e.value),e}const fh=$("$ZodCustom",(e,t)=>{Ot.init(e,t),Fe.init(e,t),e._zod.parse=(n,s)=>n,e._zod.check=n=>{const s=n.value,o=t.fn(s);if(o instanceof Promise)return o.then(r=>Hr(r,n,s,e));Hr(o,n,s,e)}});function Hr(e,t,n,s){if(!e){const o={code:"custom",input:n,inst:s,path:[...s._zod.def.path??[]],continue:!s._zod.def.abort};s._zod.def.params&&(o.params=s._zod.def.params),t.issues.push(ds(o))}}var Vr;class dh{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const s=n[0];return this._map.set(t,s),s&&typeof s=="object"&&"id"in s&&this._idmap.set(s.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const s={...this.get(n)??{}};delete s.id;const o={...s,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function ph(){return new dh}(Vr=globalThis).__zod_globalRegistry??(Vr.__zod_globalRegistry=ph());const ns=globalThis.__zod_globalRegistry;function uh(e,t){return new e({type:"string",...Y(t)})}function hh(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Y(t)})}function Wr(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Y(t)})}function gh(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Y(t)})}function mh(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Y(t)})}function yh(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Y(t)})}function vh(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Y(t)})}function bh(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Y(t)})}function kh(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Y(t)})}function wh(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Y(t)})}function xh(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Y(t)})}function jh(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Y(t)})}function Ph(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Y(t)})}function Ch(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Y(t)})}function Sh(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Y(t)})}function zh(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Y(t)})}function Rh(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Y(t)})}function Nh(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Y(t)})}function $h(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Y(t)})}function Eh(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Y(t)})}function Th(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Y(t)})}function Oh(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Y(t)})}function Ah(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Y(t)})}function Dh(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Y(t)})}function Ih(e,t){return new e({type:"string",format:"date",check:"string_format",...Y(t)})}function Mh(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Y(t)})}function Lh(e,t){return new e({type:"string",format:"duration",check:"string_format",...Y(t)})}function Fh(e){return new e({type:"unknown"})}function qh(e,t){return new e({type:"never",...Y(t)})}function gc(e,t){return new fu({check:"max_length",...Y(t),maximum:e})}function io(e,t){return new du({check:"min_length",...Y(t),minimum:e})}function mc(e,t){return new pu({check:"length_equals",...Y(t),length:e})}function Zh(e,t){return new uu({check:"string_format",format:"regex",...Y(t),pattern:e})}function Bh(e){return new hu({check:"string_format",format:"lowercase",...Y(e)})}function Gh(e){return new gu({check:"string_format",format:"uppercase",...Y(e)})}function Uh(e,t){return new mu({check:"string_format",format:"includes",...Y(t),includes:e})}function Hh(e,t){return new yu({check:"string_format",format:"starts_with",...Y(t),prefix:e})}function Vh(e,t){return new vu({check:"string_format",format:"ends_with",...Y(t),suffix:e})}function Gn(e){return new bu({check:"overwrite",tx:e})}function Wh(e){return Gn(t=>t.normalize(e))}function Kh(){return Gn(e=>e.trim())}function Jh(){return Gn(e=>e.toLowerCase())}function Qh(){return Gn(e=>e.toUpperCase())}function Xh(){return Gn(e=>mp(e))}function Yh(e,t,n){return new e({type:"array",element:t,...Y(n)})}function eg(e,t,n){return new e({type:"custom",check:"custom",fn:t,...Y(n)})}function tg(e,t){const n=ng(s=>(s.addIssue=o=>{if(typeof o=="string")s.issues.push(ds(o,s.value,n._zod.def));else{const r=o;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=s.value),r.inst??(r.inst=n),r.continue??(r.continue=!n._zod.def.abort),s.issues.push(ds(r))}},e(s.value,s)),t);return n}function ng(e,t){const n=new Ot({check:"custom",...Y(t)});return n._zod.check=e,n}function yc(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??ns,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function We(e,t,n={path:[],schemaPath:[]}){var s;const o=e._zod.def,r=t.seen.get(e);if(r)return r.count++,n.schemaPath.includes(e)&&(r.cycle=n.path),r.schema;const a={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,a);const c=e._zod.toJSONSchema?.();if(c)a.schema=c;else{const p={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,p);else{const h=a.schema,b=t.processors[o.type];if(!b)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);b(e,t,h,p)}const m=e._zod.parent;m&&(a.ref||(a.ref=m),We(m,t,p),t.seen.get(m).isParent=!0)}const _=t.metadataRegistry.get(e);return _&&Object.assign(a.schema,_),t.io==="input"&&et(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&"_prefault"in a.schema&&((s=a.schema).default??(s.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function vc(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const s=new Map;for(const a of e.seen.entries()){const c=e.metadataRegistry.get(a[0])?.id;if(c){const _=s.get(c);if(_&&_!==a[0])throw new Error(`Duplicate schema id "${c}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);s.set(c,a[0])}}const o=a=>{const c=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const m=e.external.registry.get(a[0])?.id,h=e.external.uri??(k=>k);if(m)return{ref:h(m)};const b=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=b,{defId:b,ref:`${h("__shared")}#/${c}/${b}`}}if(a[1]===n)return{ref:"#"};const f=`#/${c}/`,p=a[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:f+p}},r=a=>{if(a[1].schema.$ref)return;const c=a[1],{ref:_,defId:f}=o(a);c.def={...c.schema},f&&(c.defId=f);const p=c.schema;for(const m in p)delete p[m];p.$ref=_};if(e.cycles==="throw")for(const a of e.seen.entries()){const c=a[1];if(c.cycle)throw new Error(`Cycle detected: #/${c.cycle?.join("/")}/<root>
|
|
65
|
+
|
|
66
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const a of e.seen.entries()){const c=a[1];if(t===a[0]){r(a);continue}if(e.external){const f=e.external.registry.get(a[0])?.id;if(t!==a[0]&&f){r(a);continue}}if(e.metadataRegistry.get(a[0])?.id){r(a);continue}if(c.cycle){r(a);continue}if(c.count>1&&e.reused==="ref"){r(a);continue}}}function bc(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const s=c=>{const _=e.seen.get(c);if(_.ref===null)return;const f=_.def??_.schema,p={...f},m=_.ref;if(_.ref=null,m){s(m);const b=e.seen.get(m),k=b.schema;if(k.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(f.allOf=f.allOf??[],f.allOf.push(k)):Object.assign(f,k),Object.assign(f,p),c._zod.parent===m)for(const g in f)g==="$ref"||g==="allOf"||g in p||delete f[g];if(k.$ref&&b.def)for(const g in f)g==="$ref"||g==="allOf"||g in b.def&&JSON.stringify(f[g])===JSON.stringify(b.def[g])&&delete f[g]}const h=c._zod.parent;if(h&&h!==m){s(h);const b=e.seen.get(h);if(b?.schema.$ref&&(f.$ref=b.schema.$ref,b.def))for(const k in f)k==="$ref"||k==="allOf"||k in b.def&&JSON.stringify(f[k])===JSON.stringify(b.def[k])&&delete f[k]}e.override({zodSchema:c,jsonSchema:f,path:_.path??[]})};for(const c of[...e.seen.entries()].reverse())s(c[0]);const o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const c=e.external.registry.get(t)?.id;if(!c)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(c)}Object.assign(o,n.def??n.schema);const r=e.metadataRegistry.get(t)?.id;r!==void 0&&o.id===r&&delete o.id;const a=e.external?.defs??{};for(const c of e.seen.entries()){const _=c[1];_.def&&_.defId&&(_.def.id===_.defId&&delete _.def.id,a[_.defId]=_.def)}e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?o.$defs=a:o.definitions=a);try{const c=JSON.parse(JSON.stringify(o));return Object.defineProperty(c,"~standard",{value:{...t["~standard"],jsonSchema:{input:ro(t,"input",e.processors),output:ro(t,"output",e.processors)}},enumerable:!1,writable:!1}),c}catch{throw new Error("Error converting schema to JSON.")}}function et(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const s=e._zod.def;if(s.type==="transform")return!0;if(s.type==="array")return et(s.element,n);if(s.type==="set")return et(s.valueType,n);if(s.type==="lazy")return et(s.getter(),n);if(s.type==="promise"||s.type==="optional"||s.type==="nonoptional"||s.type==="nullable"||s.type==="readonly"||s.type==="default"||s.type==="prefault")return et(s.innerType,n);if(s.type==="intersection")return et(s.left,n)||et(s.right,n);if(s.type==="record"||s.type==="map")return et(s.keyType,n)||et(s.valueType,n);if(s.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:et(s.in,n)||et(s.out,n);if(s.type==="object"){for(const o in s.shape)if(et(s.shape[o],n))return!0;return!1}if(s.type==="union"){for(const o of s.options)if(et(o,n))return!0;return!1}if(s.type==="tuple"){for(const o of s.items)if(et(o,n))return!0;return!!(s.rest&&et(s.rest,n))}return!1}const sg=(e,t={})=>n=>{const s=yc({...n,processors:t});return We(e,s),vc(s,e),bc(s,e)},ro=(e,t,n={})=>s=>{const{libraryOptions:o,target:r}=s??{},a=yc({...o??{},target:r,io:t,processors:n});return We(e,a),vc(a,e),bc(a,e)},og={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},ig=(e,t,n,s)=>{const o=n;o.type="string";const{minimum:r,maximum:a,format:c,patterns:_,contentEncoding:f}=e._zod.bag;if(typeof r=="number"&&(o.minLength=r),typeof a=="number"&&(o.maxLength=a),c&&(o.format=og[c]??c,o.format===""&&delete o.format,c==="time"&&delete o.format),f&&(o.contentEncoding=f),_&&_.size>0){const p=[..._];p.length===1?o.pattern=p[0].source:p.length>1&&(o.allOf=[...p.map(m=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:m.source}))])}},rg=(e,t,n,s)=>{n.not={}},ag=(e,t,n,s)=>{},cg=(e,t,n,s)=>{const o=e._zod.def,r=nc(o.entries);r.every(a=>typeof a=="number")&&(n.type="number"),r.every(a=>typeof a=="string")&&(n.type="string"),n.enum=r},lg=(e,t,n,s)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},_g=(e,t,n,s)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},fg=(e,t,n,s)=>{const o=n,r=e._zod.def,{minimum:a,maximum:c}=e._zod.bag;typeof a=="number"&&(o.minItems=a),typeof c=="number"&&(o.maxItems=c),o.type="array",o.items=We(r.element,t,{...s,path:[...s.path,"items"]})},dg=(e,t,n,s)=>{const o=n,r=e._zod.def;o.type="object",o.properties={};const a=r.shape;for(const f in a)o.properties[f]=We(a[f],t,{...s,path:[...s.path,"properties",f]});const c=new Set(Object.keys(a)),_=new Set([...c].filter(f=>{const p=r.shape[f]._zod;return t.io==="input"?p.optin===void 0:p.optout===void 0}));_.size>0&&(o.required=Array.from(_)),r.catchall?._zod.def.type==="never"?o.additionalProperties=!1:r.catchall?r.catchall&&(o.additionalProperties=We(r.catchall,t,{...s,path:[...s.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},pg=(e,t,n,s)=>{const o=e._zod.def,r=o.inclusive===!1,a=o.options.map((c,_)=>We(c,t,{...s,path:[...s.path,r?"oneOf":"anyOf",_]}));r?n.oneOf=a:n.anyOf=a},ug=(e,t,n,s)=>{const o=e._zod.def,r=We(o.left,t,{...s,path:[...s.path,"allOf",0]}),a=We(o.right,t,{...s,path:[...s.path,"allOf",1]}),c=f=>"allOf"in f&&Object.keys(f).length===1,_=[...c(r)?r.allOf:[r],...c(a)?a.allOf:[a]];n.allOf=_},hg=(e,t,n,s)=>{const o=e._zod.def,r=We(o.innerType,t,s),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=o.innerType,n.nullable=!0):n.anyOf=[r,{type:"null"}]},gg=(e,t,n,s)=>{const o=e._zod.def;We(o.innerType,t,s);const r=t.seen.get(e);r.ref=o.innerType},mg=(e,t,n,s)=>{const o=e._zod.def;We(o.innerType,t,s);const r=t.seen.get(e);r.ref=o.innerType,n.default=JSON.parse(JSON.stringify(o.defaultValue))},yg=(e,t,n,s)=>{const o=e._zod.def;We(o.innerType,t,s);const r=t.seen.get(e);r.ref=o.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(o.defaultValue)))},vg=(e,t,n,s)=>{const o=e._zod.def;We(o.innerType,t,s);const r=t.seen.get(e);r.ref=o.innerType;let a;try{a=o.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=a},bg=(e,t,n,s)=>{const o=e._zod.def,r=o.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?r?o.out:o.in:o.out;We(a,t,s);const c=t.seen.get(e);c.ref=a},kg=(e,t,n,s)=>{const o=e._zod.def;We(o.innerType,t,s);const r=t.seen.get(e);r.ref=o.innerType,n.readOnly=!0},kc=(e,t,n,s)=>{const o=e._zod.def;We(o.innerType,t,s);const r=t.seen.get(e);r.ref=o.innerType},wg=$("ZodISODateTime",(e,t)=>{Ou.init(e,t),Ne.init(e,t)});function xg(e){return Dh(wg,e)}const jg=$("ZodISODate",(e,t)=>{Au.init(e,t),Ne.init(e,t)});function Pg(e){return Ih(jg,e)}const Cg=$("ZodISOTime",(e,t)=>{Du.init(e,t),Ne.init(e,t)});function Sg(e){return Mh(Cg,e)}const zg=$("ZodISODuration",(e,t)=>{Iu.init(e,t),Ne.init(e,t)});function Rg(e){return Lh(zg,e)}const Ng=(e,t)=>{ac.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Np(e,n)},flatten:{value:n=>Rp(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,pi,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,pi,2)}},isEmpty:{get(){return e.issues.length===0}}})},ht=$("ZodError",Ng,{Parent:Error}),$g=Ai(ht),Eg=Di(ht),Tg=Co(ht),Og=So(ht),Ag=Tp(ht),Dg=Op(ht),Ig=Ap(ht),Mg=Dp(ht),Lg=Ip(ht),Fg=Mp(ht),qg=Lp(ht),Zg=Fp(ht),Kr=new WeakMap;function Ro(e,t,n){const s=Object.getPrototypeOf(e);let o=Kr.get(s);if(o||(o=new Set,Kr.set(s,o)),!o.has(t)){o.add(t);for(const r in n){const a=n[r];Object.defineProperty(s,r,{configurable:!0,enumerable:!1,get(){const c=a.bind(this);return Object.defineProperty(this,r,{configurable:!0,writable:!0,enumerable:!0,value:c}),c},set(c){Object.defineProperty(this,r,{configurable:!0,writable:!0,enumerable:!0,value:c})}})}}}const qe=$("ZodType",(e,t)=>(Fe.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:ro(e,"input"),output:ro(e,"output")}}),e.toJSONSchema=sg(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,s)=>$g(e,n,s,{callee:e.parse}),e.safeParse=(n,s)=>Tg(e,n,s),e.parseAsync=async(n,s)=>Eg(e,n,s,{callee:e.parseAsync}),e.safeParseAsync=async(n,s)=>Og(e,n,s),e.spa=e.safeParseAsync,e.encode=(n,s)=>Ag(e,n,s),e.decode=(n,s)=>Dg(e,n,s),e.encodeAsync=async(n,s)=>Ig(e,n,s),e.decodeAsync=async(n,s)=>Mg(e,n,s),e.safeEncode=(n,s)=>Lg(e,n,s),e.safeDecode=(n,s)=>Fg(e,n,s),e.safeEncodeAsync=async(n,s)=>qg(e,n,s),e.safeDecodeAsync=async(n,s)=>Zg(e,n,s),Ro(e,"ZodType",{check(...n){const s=this.def;return this.clone(Wt(s,{checks:[...s.checks??[],...n.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,s){return Kt(this,n,s)},brand(){return this},register(n,s){return n.add(this,s),this},refine(n,s){return this.check(Am(n,s))},superRefine(n,s){return this.check(Dm(n,s))},overwrite(n){return this.check(Gn(n))},optional(){return Xr(this)},exactOptional(){return wm(this)},nullable(){return Yr(this)},nullish(){return Xr(Yr(this))},nonoptional(n){return zm(this,n)},array(){return fm(this)},or(n){return hm([this,n])},and(n){return mm(this,n)},transform(n){return ea(this,bm(n))},default(n){return Pm(this,n)},prefault(n){return Sm(this,n)},catch(n){return Nm(this,n)},pipe(n){return ea(this,n)},readonly(){return Tm(this)},describe(n){const s=this.clone();return ns.add(s,{description:n}),s},meta(...n){if(n.length===0)return ns.get(this);const s=this.clone();return ns.add(s,n[0]),s},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){return ns.get(e)?.description},configurable:!0}),e)),wc=$("_ZodString",(e,t)=>{Ii.init(e,t),qe.init(e,t),e._zod.processJSONSchema=(s,o,r)=>ig(e,s,o);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Ro(e,"_ZodString",{regex(...s){return this.check(Zh(...s))},includes(...s){return this.check(Uh(...s))},startsWith(...s){return this.check(Hh(...s))},endsWith(...s){return this.check(Vh(...s))},min(...s){return this.check(io(...s))},max(...s){return this.check(gc(...s))},length(...s){return this.check(mc(...s))},nonempty(...s){return this.check(io(1,...s))},lowercase(s){return this.check(Bh(s))},uppercase(s){return this.check(Gh(s))},trim(){return this.check(Kh())},normalize(...s){return this.check(Wh(...s))},toLowerCase(){return this.check(Jh())},toUpperCase(){return this.check(Qh())},slugify(){return this.check(Xh())}})}),Bg=$("ZodString",(e,t)=>{Ii.init(e,t),wc.init(e,t),e.email=n=>e.check(hh(Gg,n)),e.url=n=>e.check(bh(Ug,n)),e.jwt=n=>e.check(Ah(rm,n)),e.emoji=n=>e.check(kh(Hg,n)),e.guid=n=>e.check(Wr(Jr,n)),e.uuid=n=>e.check(gh(qs,n)),e.uuidv4=n=>e.check(mh(qs,n)),e.uuidv6=n=>e.check(yh(qs,n)),e.uuidv7=n=>e.check(vh(qs,n)),e.nanoid=n=>e.check(wh(Vg,n)),e.guid=n=>e.check(Wr(Jr,n)),e.cuid=n=>e.check(xh(Wg,n)),e.cuid2=n=>e.check(jh(Kg,n)),e.ulid=n=>e.check(Ph(Jg,n)),e.base64=n=>e.check(Eh(sm,n)),e.base64url=n=>e.check(Th(om,n)),e.xid=n=>e.check(Ch(Qg,n)),e.ksuid=n=>e.check(Sh(Xg,n)),e.ipv4=n=>e.check(zh(Yg,n)),e.ipv6=n=>e.check(Rh(em,n)),e.cidrv4=n=>e.check(Nh(tm,n)),e.cidrv6=n=>e.check($h(nm,n)),e.e164=n=>e.check(Oh(im,n)),e.datetime=n=>e.check(xg(n)),e.date=n=>e.check(Pg(n)),e.time=n=>e.check(Sg(n)),e.duration=n=>e.check(Rg(n))});function Jo(e){return uh(Bg,e)}const Ne=$("ZodStringFormat",(e,t)=>{Se.init(e,t),wc.init(e,t)}),Gg=$("ZodEmail",(e,t)=>{Pu.init(e,t),Ne.init(e,t)}),Jr=$("ZodGUID",(e,t)=>{xu.init(e,t),Ne.init(e,t)}),qs=$("ZodUUID",(e,t)=>{ju.init(e,t),Ne.init(e,t)}),Ug=$("ZodURL",(e,t)=>{Cu.init(e,t),Ne.init(e,t)}),Hg=$("ZodEmoji",(e,t)=>{Su.init(e,t),Ne.init(e,t)}),Vg=$("ZodNanoID",(e,t)=>{zu.init(e,t),Ne.init(e,t)}),Wg=$("ZodCUID",(e,t)=>{Ru.init(e,t),Ne.init(e,t)}),Kg=$("ZodCUID2",(e,t)=>{Nu.init(e,t),Ne.init(e,t)}),Jg=$("ZodULID",(e,t)=>{$u.init(e,t),Ne.init(e,t)}),Qg=$("ZodXID",(e,t)=>{Eu.init(e,t),Ne.init(e,t)}),Xg=$("ZodKSUID",(e,t)=>{Tu.init(e,t),Ne.init(e,t)}),Yg=$("ZodIPv4",(e,t)=>{Mu.init(e,t),Ne.init(e,t)}),em=$("ZodIPv6",(e,t)=>{Lu.init(e,t),Ne.init(e,t)}),tm=$("ZodCIDRv4",(e,t)=>{Fu.init(e,t),Ne.init(e,t)}),nm=$("ZodCIDRv6",(e,t)=>{qu.init(e,t),Ne.init(e,t)}),sm=$("ZodBase64",(e,t)=>{Zu.init(e,t),Ne.init(e,t)}),om=$("ZodBase64URL",(e,t)=>{Gu.init(e,t),Ne.init(e,t)}),im=$("ZodE164",(e,t)=>{Uu.init(e,t),Ne.init(e,t)}),rm=$("ZodJWT",(e,t)=>{Vu.init(e,t),Ne.init(e,t)}),am=$("ZodUnknown",(e,t)=>{Wu.init(e,t),qe.init(e,t),e._zod.processJSONSchema=(n,s,o)=>ag()});function Qr(){return Fh(am)}const cm=$("ZodNever",(e,t)=>{Ku.init(e,t),qe.init(e,t),e._zod.processJSONSchema=(n,s,o)=>rg(e,n,s)});function lm(e){return qh(cm,e)}const _m=$("ZodArray",(e,t)=>{Ju.init(e,t),qe.init(e,t),e._zod.processJSONSchema=(n,s,o)=>fg(e,n,s,o),e.element=t.element,Ro(e,"ZodArray",{min(n,s){return this.check(io(n,s))},nonempty(n){return this.check(io(1,n))},max(n,s){return this.check(gc(n,s))},length(n,s){return this.check(mc(n,s))},unwrap(){return this.element}})});function fm(e,t){return Yh(_m,e,t)}const dm=$("ZodObject",(e,t)=>{Xu.init(e,t),qe.init(e,t),e._zod.processJSONSchema=(n,s,o)=>dg(e,n,s,o),me(e,"shape",()=>t.shape),Ro(e,"ZodObject",{keyof(){return ym(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:Qr()})},loose(){return this.clone({...this._zod.def,catchall:Qr()})},strict(){return this.clone({...this._zod.def,catchall:lm()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return xp(this,n)},safeExtend(n){return jp(this,n)},merge(n){return Pp(this,n)},pick(n){return kp(this,n)},omit(n){return wp(this,n)},partial(...n){return Cp(xc,this,n[0])},required(...n){return Sp(jc,this,n[0])}})});function pm(e,t){const n={type:"object",shape:e??{},...Y(t)};return new dm(n)}const um=$("ZodUnion",(e,t)=>{Yu.init(e,t),qe.init(e,t),e._zod.processJSONSchema=(n,s,o)=>pg(e,n,s,o),e.options=t.options});function hm(e,t){return new um({type:"union",options:e,...Y(t)})}const gm=$("ZodIntersection",(e,t)=>{eh.init(e,t),qe.init(e,t),e._zod.processJSONSchema=(n,s,o)=>ug(e,n,s,o)});function mm(e,t){return new gm({type:"intersection",left:e,right:t})}const hi=$("ZodEnum",(e,t)=>{th.init(e,t),qe.init(e,t),e._zod.processJSONSchema=(s,o,r)=>cg(e,s,o),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(s,o)=>{const r={};for(const a of s)if(n.has(a))r[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new hi({...t,checks:[],...Y(o),entries:r})},e.exclude=(s,o)=>{const r={...t.entries};for(const a of s)if(n.has(a))delete r[a];else throw new Error(`Key ${a} not found in enum`);return new hi({...t,checks:[],...Y(o),entries:r})}});function ym(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(s=>[s,s])):e;return new hi({type:"enum",entries:n,...Y(t)})}const vm=$("ZodTransform",(e,t)=>{nh.init(e,t),qe.init(e,t),e._zod.processJSONSchema=(n,s,o)=>_g(e,n),e._zod.parse=(n,s)=>{if(s.direction==="backward")throw new tc(e.constructor.name);n.addIssue=r=>{if(typeof r=="string")n.issues.push(ds(r,n.value,t));else{const a=r;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=e),n.issues.push(ds(a))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(r=>(n.value=r,n.fallback=!0,n)):(n.value=o,n.fallback=!0,n)}});function bm(e){return new vm({type:"transform",transform:e})}const xc=$("ZodOptional",(e,t)=>{hc.init(e,t),qe.init(e,t),e._zod.processJSONSchema=(n,s,o)=>kc(e,n,s,o),e.unwrap=()=>e._zod.def.innerType});function Xr(e){return new xc({type:"optional",innerType:e})}const km=$("ZodExactOptional",(e,t)=>{sh.init(e,t),qe.init(e,t),e._zod.processJSONSchema=(n,s,o)=>kc(e,n,s,o),e.unwrap=()=>e._zod.def.innerType});function wm(e){return new km({type:"optional",innerType:e})}const xm=$("ZodNullable",(e,t)=>{oh.init(e,t),qe.init(e,t),e._zod.processJSONSchema=(n,s,o)=>hg(e,n,s,o),e.unwrap=()=>e._zod.def.innerType});function Yr(e){return new xm({type:"nullable",innerType:e})}const jm=$("ZodDefault",(e,t)=>{ih.init(e,t),qe.init(e,t),e._zod.processJSONSchema=(n,s,o)=>mg(e,n,s,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Pm(e,t){return new jm({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():oc(t)}})}const Cm=$("ZodPrefault",(e,t)=>{rh.init(e,t),qe.init(e,t),e._zod.processJSONSchema=(n,s,o)=>yg(e,n,s,o),e.unwrap=()=>e._zod.def.innerType});function Sm(e,t){return new Cm({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():oc(t)}})}const jc=$("ZodNonOptional",(e,t)=>{ah.init(e,t),qe.init(e,t),e._zod.processJSONSchema=(n,s,o)=>gg(e,n,s,o),e.unwrap=()=>e._zod.def.innerType});function zm(e,t){return new jc({type:"nonoptional",innerType:e,...Y(t)})}const Rm=$("ZodCatch",(e,t)=>{ch.init(e,t),qe.init(e,t),e._zod.processJSONSchema=(n,s,o)=>vg(e,n,s,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Nm(e,t){return new Rm({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const $m=$("ZodPipe",(e,t)=>{lh.init(e,t),qe.init(e,t),e._zod.processJSONSchema=(n,s,o)=>bg(e,n,s,o),e.in=t.in,e.out=t.out});function ea(e,t){return new $m({type:"pipe",in:e,out:t})}const Em=$("ZodReadonly",(e,t)=>{_h.init(e,t),qe.init(e,t),e._zod.processJSONSchema=(n,s,o)=>kg(e,n,s,o),e.unwrap=()=>e._zod.def.innerType});function Tm(e){return new Em({type:"readonly",innerType:e})}const Om=$("ZodCustom",(e,t)=>{fh.init(e,t),qe.init(e,t),e._zod.processJSONSchema=(n,s,o)=>lg(e,n)});function Am(e,t={}){return eg(Om,e,t)}function Dm(e,t){return tg(e,t)}const Im=pm({name:Jo().trim().min(1).max(120).regex(/^[^<>]+$/).refine(ta),email:Jo().trim().max(254).regex(/^[^\s<>@]+@[^\s<>@]+$/).refine(ta),expectedRevision:Jo().regex(/^[a-f0-9]{64}$/)});function ta(e){return[...e].every(t=>t.charCodeAt(0)>=32&&t.charCodeAt(0)!==127)}function Pc(e){return{local:"Repository Git settings",global:"Global Git settings",system:"System Git settings",worktree:"Worktree Git settings",environment:"Backend environment",custom:"Custom author/committer settings",mixed:"Mixed Git settings",inferred:"Identity inferred by Git",unset:"Git identity not configured"}[e]}function Mm({repository:e,open:t,onOpenChange:n}){const s=mn(),[o,r]=d.useState(null),[a,c]=d.useState(""),[_,f]=d.useState(""),[p,m]=d.useState(!1),[h,b]=d.useState(!1),[k,C]=d.useState(!1),[g,S]=d.useState(null);d.useEffect(()=>{if(!t)return;let j=!1;return b(!0),m(!1),S(null),r(null),s.fetchQuery({queryKey:ie.commitAuthorship(e.id),queryFn:()=>T.commits.authorship(e.id),staleTime:0}).then(N=>{j||(r(N),c(N.author?.name??""),f(N.author?.email??""))}).catch(N=>{j||S(na(N))}).finally(()=>{j||b(!1)}),()=>{j=!0}},[s,t,e.id]);const w=Im.safeParse({name:a,email:_,expectedRevision:o?.revision}),P=async()=>{if(!(!w.success||!o?.editable||k)){C(!0),S(null);try{const j=await T.commits.setAuthorship(e.id,w.data);await s.cancelQueries({queryKey:ie.commitAuthorship(e.id)}),s.setQueryData(ie.commitAuthorship(e.id),j),n(!1),M.success({title:"Commit authorship saved",description:"Repository Git settings updated for future commits."})}catch(j){const N=na(j);S(N),M.error({title:"Could not save commit authorship",description:N})}finally{C(!1)}}};return i.jsx(bt,{open:t,onOpenChange:j=>{k||n(j)},children:i.jsxs(kt,{className:"github-authorship-dialog",children:[i.jsx(wt,{children:p?"Apply authorship to this repository":"Commit authorship"}),i.jsxs(xt,{children:[e.name," · name and email used by Git for future commits."]}),h?i.jsxs("p",{className:"github-authorship-loading",role:"status",children:[i.jsx(_t,{className:"animate-spin"}),"Reading the current Git identity…"]}):o&&i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"github-authorship-review",children:[i.jsx("span",{children:p?"Current":"Current Git identity"}),i.jsx("strong",{children:o.author?.name||"Not configured"}),i.jsx("p",{children:o.author?.email||"No commit email configured"}),i.jsx("small",{children:Pc(o.source)}),o.committer&&(o.committer.name!==o.author?.name||o.committer.email!==o.author?.email)&&i.jsxs("p",{children:["Committer: ",o.committer.name," <",o.committer.email,">"]})]}),o.blockers.map(j=>i.jsx("p",{className:"github-settings-notice",children:j},j)),p?i.jsxs("div",{className:"github-authorship-review next",children:[i.jsx("span",{children:"New author and committer"}),i.jsx("strong",{children:a.trim()}),i.jsx("p",{children:_.trim()}),i.jsx("small",{children:"Repository Git settings"})]}):i.jsxs("form",{id:"commit-authorship-form",onSubmit:j=>{j.preventDefault(),w.success&&o.editable&&m(!0)},children:[i.jsx("label",{htmlFor:"commit-author-name",children:"Name"}),i.jsx("input",{id:"commit-author-name",value:a,onChange:j=>c(j.target.value),autoComplete:"off",maxLength:120,disabled:!o.editable,required:!0}),i.jsx("label",{htmlFor:"commit-author-email",children:"Commit email"}),i.jsx("input",{id:"commit-author-email",type:"email",value:_,onChange:j=>f(j.target.value),autoComplete:"off",maxLength:254,disabled:!o.editable,required:!0}),i.jsx("p",{className:"github-settings-note",children:"Choose an email associated with your GitHub account, or copy its exact noreply address from GitHub Settings → Emails. It is not inferred from the account login."})]}),i.jsx("p",{className:"github-authorship-scope",children:"Applies to this repository and its worktrees, including commits from other Git tools. Only future commits change. Global Git settings, gh, SSH and commit signing are kept."})]}),g&&i.jsx("p",{className:"github-settings-notice",role:"alert",children:g}),i.jsxs("div",{className:"github-add-actions",children:[i.jsx(G,{variant:"ghost",disabled:k,onClick:()=>n(!1),children:"Cancel"}),p?i.jsxs(i.Fragment,{children:[i.jsx(G,{variant:"outline",disabled:k,onClick:()=>m(!1),children:"Back"}),i.jsxs(G,{disabled:k||!o?.editable,onClick:()=>{P()},children:[k&&i.jsx(_t,{className:"animate-spin"}),"Apply to repository"]})]}):i.jsx(G,{type:"submit",form:"commit-authorship-form",disabled:h||!o?.editable||!w.success,children:"Review changes"})]})]})})}function na(e){return e instanceof Error?e.message:"Could not read Git identity."}function Lm({repository:e}){const t=mn(),n=d.useId(),s=Et({queryKey:ie.githubAccounts,queryFn:()=>T.github.accountsStatus(!1),staleTime:1/0}),o=Et({queryKey:ie.githubAccount(e?.id??""),queryFn:()=>T.github.repositoryAccount(e.id,!1),enabled:e!==null,staleTime:1/0}),r=Et({queryKey:ie.commitAuthorship(e?.id??""),queryFn:()=>T.commits.authorship(e.id),enabled:e!==null}),a=d.useRef(new Map),[c,_]=d.useState(e?"repository":"global"),[f,p]=d.useState(!1),[m,h]=d.useState(!1),[b,k]=d.useState(!1),[C,g]=d.useState(!1);d.useEffect(()=>{g(!1)},[e?.id]),d.useEffect(()=>T.events.onRepositoryChanged((F,Z)=>{F===e?.id&&Z==="unknown"&&t.invalidateQueries({queryKey:ie.commitAuthorship(F)})}),[t,e?.id]);const S=s.data,w=o.data,P=r.data,j=w?.selection.mode==="account"?w.selection.useGlobalDefault?"__global_default__":w.selection.login:"auto",N=S?.accounts??[],A=N.map(F=>({value:F.login,label:`@${F.login}`,description:`${F.state==="authenticated"?"Authenticated":F.state==="invalid"?"Credentials rejected":"Not verified"}${F.active?" · active in gh":""}`,icon:i.jsx(Ut,{})}));j!=="auto"&&j!=="__global_default__"&&!A.some(F=>F.value===j)&&A.push({value:j,label:`@${j}`,description:"Not in the last checked accounts",icon:i.jsx(Ut,{})}),S?.defaultLogin&&!A.some(F=>F.value===S.defaultLogin)&&A.push({value:S.defaultLogin,label:`@${S.defaultLogin}`,description:"Default account · not in the last checked accounts",icon:i.jsx(Ut,{})});const I=(F,Z)=>t.setQueryData(ie.githubAccount(F),R=>R&&R.revision>Z.revision?R:Z),B=async(F=!1)=>{const Z=F?e:null,R=Z?.id??"",Q=(a.current.get(R)??0)+1;a.current.set(R,Q),p(!0);try{const ee=await T.github.accountsStatus(!0);if(t.setQueryData(ie.githubAccounts,ee),ee.message||ee.installationStatus!=="available")throw new Error(ee.message||"GitHub CLI is unavailable.");if(Z){const pe=await T.github.repositoryAccount(Z.id,!0);a.current.get(R)===Q&&I(Z.id,pe),await t.invalidateQueries({queryKey:ie.commitAuthorship(Z.id)})}return ee}catch(ee){return M.error({title:"Could not check GitHub",description:fn(ee)}),null}finally{p(!1)}},L=async(F,Z=w?.selection.mode==="account"?w.selection.gitMode??"external":"external")=>{if(!e||m)return;const R=(a.current.get(e.id)??0)+1;a.current.set(e.id,R),h(!0);const Q=F==="auto"?{mode:"auto"}:{mode:"account",host:"github.com",login:F==="__global_default__"?S?.defaultLogin??"":F,gitMode:Z,...F==="__global_default__"?{useGlobalDefault:!0}:{}};try{const ee=await T.github.setRepositoryAccount(e.id,Q);a.current.get(e.id)===R&&I(e.id,ee);const pe=await T.github.repositoryAccount(e.id,!0);a.current.get(e.id)===R&&I(e.id,pe)}catch(ee){M.error({title:"Could not save GitHub account",description:fn(ee)})}finally{h(!1)}},D=w?.selection.mode==="account"&&w.selection.gitMode==="managed",V=w?.selection.mode!=="account"?null:w.selection.useGlobalDefault?w.login||S?.defaultLogin||w.selection.login||null:w.selection.login||w.login||null,X=f||m||s.isFetching,ye=i.jsxs(G,{variant:"outline",size:"sm",onClick:()=>{B(!0)},disabled:X,children:[f||m?i.jsx(_t,{className:"animate-spin"}):i.jsx(cs,{}),f||m?i.jsx(Fn,{text:"Checking…"}):"Check access"]}),je=w?.nameWithOwner||e?.name||"";return i.jsxs(gf,{className:"github-settings",value:e?c:"global",onValueChange:F=>{(F==="repository"||F==="global")&&_(F)},children:[i.jsxs("div",{className:"github-settings-content",children:[i.jsxs(mf,{className:"github-scope-tabs","aria-label":"GitHub settings scope",children:[i.jsxs(Cr,{value:"repository",disabled:!e,children:[i.jsx(Mn,{}),"This repository"]}),i.jsxs(Cr,{value:"global",children:[i.jsx(_s,{}),"OpenTig"]})]}),i.jsx(Sr,{value:"repository",className:"github-scope-panel",children:e&&i.jsxs(i.Fragment,{children:[i.jsxs("header",{className:"github-repository-heading github-scope-heading",children:[i.jsx(Mn,{"aria-hidden":"true"}),i.jsxs("div",{children:[i.jsx("h2",{children:je}),i.jsx("p",{children:"Shared with its worktrees and connected clients."})]})]}),i.jsxs("div",{className:"github-access-card",children:[i.jsxs("section",{className:"settings-general-group","aria-labelledby":`${n}-account`,children:[i.jsxs("h3",{id:`${n}-account`,children:[i.jsx(Ut,{"aria-hidden":"true"}),"Account"]}),i.jsx(Xn,{label:"Account for this repository",description:"Used for GitHub and pull requests.",children:i.jsxs("div",{className:"github-account-picker",children:[i.jsx("label",{className:"sr-only",htmlFor:"github-account-choice",children:"Account for GitHub operations"}),i.jsx(qn,{groups:[{id:"default",label:"OpenTig default",items:[{value:"__global_default__",label:S?.defaultLogin?`Global default · @${S.defaultLogin}`:"Global default · not set",description:"Follow the default account in the OpenTig tab.",disabled:!S?.defaultLogin}]},{id:"accounts",label:"Saved accounts",items:A}],value:j,onValueChange:F=>{L(F)},label:"GitHub account for this repository",triggerId:"github-account-choice",triggerLabel:j==="auto"?"Choose an account":j==="__global_default__"?`Global default · @${w?.login??S?.defaultLogin}`:`@${j}`,placeholder:"Search accounts…",size:"sm",align:"end",triggerClassName:"github-account-select",disabled:m})]})}),i.jsxs("div",{className:"settings-general-help",children:[j==="auto"&&w?.login?i.jsxs("span",{children:["Currently @",w.login,". Choose an account to keep it pinned."]}):i.jsx("span",{children:"Pin an account or follow the OpenTig default."}),i.jsx("button",{type:"button",className:"github-manage-accounts",onClick:()=>_("global"),children:"Manage accounts in OpenTig"})]}),w?.state==="error"&&i.jsx("p",{className:"github-settings-notice",role:"status",children:w.message||"This account is unavailable. Check access or choose another account."})]}),i.jsxs("section",{className:"settings-general-group","aria-labelledby":`${n}-git`,children:[i.jsxs("h3",{id:`${n}-git`,children:[i.jsx(zd,{"aria-hidden":"true"}),"Git HTTPS"]}),i.jsxs("fieldset",{className:"github-git-mode",disabled:m,children:[i.jsx("legend",{className:"sr-only",children:"Git HTTPS credentials"}),i.jsx(Xn,{label:"Fetch and push",description:pp({auto:j==="auto",managed:D,login:V}),children:i.jsxs("div",{className:"github-git-mode-options",children:[i.jsxs("label",{className:D?"":"active",children:[i.jsx("input",{type:"radio",name:"git-authentication",value:"external",checked:!D,onChange:()=>{L(j,"external")}}),i.jsx("span",{children:"This machine"})]}),i.jsxs("label",{className:D?"active":"",children:[i.jsx("input",{type:"radio",name:"git-authentication",value:"managed",checked:D,disabled:j==="auto",onChange:()=>{L(j,"managed")}}),i.jsx("span",{children:dp(V)})]})]})})]})]}),i.jsxs("section",{className:"settings-general-group github-access-checks","aria-labelledby":`${n}-access`,children:[i.jsxs("h3",{id:`${n}-access`,children:[i.jsx(Vd,{"aria-hidden":"true"}),"Access"]}),i.jsx(Xn,{label:"Access checks",description:w?.access?"Account, pull requests, and permission to push.":"Verify the account and permission to push.",children:ye}),w?.access?i.jsx(gp,{access:w.access,checking:f||m}):i.jsx("p",{className:"github-settings-note",children:"Check access to verify the account and repository permissions."}),o.error&&i.jsx("p",{className:"github-settings-notice",role:"alert",children:fn(o.error)})]})]}),i.jsxs("section",{className:"settings-general-group github-authorship-section","aria-labelledby":`${n}-author`,children:[i.jsxs("h3",{id:`${n}-author`,children:[i.jsx(Tr,{"aria-hidden":"true"}),"Commit author"]}),i.jsxs("div",{className:"settings-general-row",children:[i.jsxs("div",{className:"github-authorship-card",children:[i.jsx(Tr,{"aria-hidden":"true"}),i.jsxs("div",{children:[i.jsx("strong",{children:P?.author?.name||(r.isPending?"Reading Git identity…":"Not configured")}),i.jsx("p",{children:P?.author?.email||"Set a name and email before creating commits."}),P&&i.jsxs("small",{children:[Pc(P.source)," · separate from your access account"]}),P?.committer&&(P.committer.name!==P.author?.name||P.committer.email!==P.author?.email)&&i.jsxs("p",{className:"github-authorship-committer",children:["Committer: ",P.committer.name," <",P.committer.email,">"]})]})]}),i.jsx("div",{className:"settings-general-control",children:i.jsx(G,{variant:"outline",size:"sm",onClick:()=>g(!0),disabled:r.isPending||!P,children:"Edit authorship"})})]}),i.jsx("p",{className:"github-settings-note",children:"Read from Git. Edits here apply only to this repository."}),P?.blockers.map(F=>i.jsx("p",{className:"github-settings-notice",children:F},F)),r.error&&i.jsx("p",{className:"github-settings-notice",role:"alert",children:fn(r.error)})]})]})}),i.jsxs(Sr,{value:"global",className:"github-scope-panel",children:[i.jsxs("header",{className:"github-scope-heading",children:[i.jsx(_s,{"aria-hidden":"true"}),i.jsxs("div",{children:[i.jsx("h2",{children:"OpenTig"}),i.jsx("p",{children:"Shared by all clients connected to this instance."})]})]}),i.jsxs("section",{className:"settings-general-group","aria-label":"Global default account",children:[i.jsxs("h3",{children:[i.jsx(Ut,{"aria-hidden":"true"}),"Default account"]}),i.jsx(Xn,{label:"Default account for OpenTig",description:"Repositories set to Global default follow this account.",children:i.jsx("div",{className:"github-account-picker",children:i.jsx(qn,{groups:[{id:"accounts",label:"Saved accounts",items:A.filter(F=>F.value!=="auto")}],value:S?.defaultLogin??"",triggerLabel:S?.defaultLogin?`@${S.defaultLogin}`:"Choose a default account",label:"Global default account",placeholder:"Search accounts…",size:"sm",align:"end",triggerClassName:"github-account-select",disabled:m,onValueChange:F=>{h(!0),T.github.setDefaultAccount(F).then(async Z=>{t.setQueryData(ie.githubAccounts,Z),e&&w?.selection.mode==="account"&&w.selection.useGlobalDefault&&await t.invalidateQueries({queryKey:ie.githubAccount(e.id)})}).catch(Z=>M.error({title:"Could not save default account",description:fn(Z)})).finally(()=>h(!1))}})})}),i.jsx("p",{className:"github-settings-note",children:"Pinned accounts and the active gh account stay unchanged."})]}),i.jsxs("section",{className:"settings-general-group github-global-accounts","aria-label":"Accounts available to OpenTig",children:[i.jsxs("h3",{children:[i.jsx(Xd,{"aria-hidden":"true"}),"Available accounts"]}),i.jsx(Xn,{label:"Saved accounts",description:"Saved on the machine running OpenTig. Available to every repository.",children:i.jsxs("div",{className:"github-accounts-actions",children:[i.jsxs(G,{variant:"outline",size:"sm",className:"github-refresh-accounts",onClick:()=>{B()},disabled:X,children:[f?i.jsx(_t,{className:"animate-spin"}):i.jsx(cs,{}),f?i.jsx(Fn,{text:"Checking…"}):"Refresh accounts"]}),i.jsxs(G,{variant:"outline",size:"sm",onClick:()=>k(!0),children:[i.jsx(ms,{}),"Add account"]})]})}),S?.message&&i.jsx("p",{className:"github-settings-notice",role:"status",children:S.message}),s.error&&i.jsx("p",{className:"github-settings-notice",role:"alert",children:fn(s.error)}),i.jsx("div",{className:"github-accounts-list",children:N.map(F=>i.jsxs("div",{className:"github-account-row",children:[i.jsx("span",{className:"github-account-avatar","aria-hidden":"true",children:F.login.slice(0,2).toUpperCase()}),i.jsxs("div",{className:"github-account-copy",children:[i.jsxs("strong",{children:["@",F.login]}),i.jsx("small",{children:F.active?"Active in gh · global":"Saved in GitHub CLI"})]}),i.jsxs("div",{className:"github-account-badges",children:[S?.defaultLogin===F.login&&i.jsx(no,{variant:"secondary",children:"OpenTig default"}),i.jsx("span",{className:`github-auth-state ${F.state}`,children:F.state==="authenticated"?"Authenticated":F.state==="invalid"?"Credentials rejected":"Not verified"})]})]},F.login))}),!N.length&&i.jsx("p",{className:"github-settings-note",children:S?.checkedAt?"No saved accounts found. Add an account and check again.":"Refresh accounts to list saved accounts."}),i.jsxs("details",{className:"github-saved-accounts",children:[i.jsxs("summary",{children:["GitHub CLI details ",i.jsxs("span",{children:[N.length," ",N.length===1?"account":"accounts"]})]}),i.jsxs("div",{className:"github-cli-section",children:[i.jsxs("strong",{className:"github-cli-version",children:[i.jsx(Ut,{}),S?.version||"GitHub CLI",i.jsx(no,{variant:"outline",children:qm(S)})]}),i.jsx("p",{className:"github-settings-note",children:S?.checkedAt?`Last checked: ${Zn(S.checkedAt,{seconds:!0})}`:"Not checked yet."}),i.jsxs("p",{className:"github-global-account",children:["Active globally in gh: ",i.jsx("strong",{children:S?.activeLogin?`@${S.activeLogin}`:"Not verified"})]}),S?.environment.present&&i.jsxs("p",{className:"github-settings-notice",children:["Backend environment credentials: ",S.environment.login?`@${S.environment.login}`:"identity not verified",". Unpinned HTTPS accounts may use these credentials."]}),i.jsx("p",{className:"github-settings-note",children:"Opening Settings uses saved results. Use Refresh accounts to update them."})]})]})]})]})]}),i.jsxs("footer",{className:"settings-general-footer",children:[i.jsxs("span",{children:[i.jsx(pn,{"aria-hidden":"true"}),"Changes apply immediately"]}),i.jsx("span",{children:S?.checkedAt?`Last checked ${Zn(S.checkedAt,{seconds:!0})}`:"Uses saved results until you refresh"})]}),e&&i.jsx(Mm,{repository:e,open:C,onOpenChange:g},e.id),i.jsx(Fm,{open:b,onOpenChange:k,status:S,onCheck:()=>B(),checking:f})]})}function Xn({label:e,description:t,children:n}){return i.jsxs("div",{className:"settings-general-row github-settings-row",children:[i.jsxs("div",{className:"settings-field-label",children:[i.jsx("strong",{children:e}),i.jsx("span",{children:t})]}),i.jsx("div",{className:"settings-general-control",children:n})]})}function Fm({open:e,onOpenChange:t,status:n,onCheck:s,checking:o}){const[r,a]=d.useState(0),[c,_]=d.useState(null),[f,p]=d.useState([]),m=n?.accounts.filter(k=>!f.includes(k.login))??[],h=async k=>{try{await os(k),M.success({title:"Command copied"})}catch(C){M.error({title:"Could not copy command",description:fn(C)})}},b=k=>{k||a(0),t(k)};return i.jsx(bt,{open:e,onOpenChange:b,children:i.jsxs(kt,{className:"github-add-dialog",children:[i.jsx(wt,{children:r===2?"Check the updated accounts":"Add a GitHub account"}),i.jsx(xt,{children:"Use the official GitHub CLI browser login on the machine running OpenTig."}),i.jsx("div",{className:"github-add-steps","aria-label":`Step ${r+1} of 3`,children:[0,1,2].map(k=>i.jsx("span",{className:k<=r?"active":""},k))}),r===0?i.jsxs(i.Fragment,{children:[i.jsx("p",{children:"Your saved accounts are kept. There is no need to log out first."}),i.jsxs("p",{className:"github-settings-notice",children:[i.jsx("strong",{children:"GitHub CLI activates the account you add."})," This can affect other terminals and HTTPS repositories using Automatic. OpenTig will not switch the global account back automatically."]}),i.jsx("p",{children:"Keep Git credential setup and SSH key management unchanged during login. Your account selection in OpenTig is saved separately."})]}):r===1?i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"github-login-command",children:[i.jsx("code",{children:"gh auth login --hostname github.com --web --skip-ssh-key"}),i.jsx(G,{variant:"ghost",size:"icon-sm","aria-label":"Copy GitHub login command",onClick:()=>{h("gh auth login --hostname github.com --web --skip-ssh-key")},children:i.jsx(ai,{})})]}),i.jsxs("ol",{children:[i.jsx("li",{children:"Run the command in a terminal on the backend host."}),i.jsxs("li",{children:["Keep your existing Git protocol. If gh offers to authenticate Git, answer ",i.jsx("strong",{children:"No"}),". Skip creating or uploading SSH keys."]}),i.jsx("li",{children:"Verify the intended account in your browser before authorising GitHub CLI."}),i.jsx("li",{children:"Return here and check the accounts. If backend token environment variables prevent login, manage them in that terminal; OpenTig does not edit them."})]}),c&&i.jsxs("p",{className:"github-settings-note",children:["Previously checked active account: @",c,"."]})]}):i.jsxs(i.Fragment,{children:[i.jsx("p",{children:m.length?`Newly detected accounts: ${m.map(k=>`@${k.login}`).join(", ")}.`:"No new saved account was detected. You can check again after finishing the login."}),i.jsxs("p",{className:"github-settings-notice",children:["Last checked active account: ",n?.activeLogin?`@${n.activeLogin}`:"not available",". Existing accounts and explicit repository selections are preserved."]}),c&&c!==n?.activeLogin&&i.jsxs(i.Fragment,{children:[i.jsx("p",{children:"To restore the previous global account, run this command voluntarily in your terminal:"}),i.jsxs("div",{className:"github-login-command",children:[i.jsxs("code",{children:["gh auth switch --hostname github.com --user ",c]}),i.jsx(G,{variant:"ghost",size:"icon-sm","aria-label":"Copy restore global account command",onClick:()=>{h(`gh auth switch --hostname github.com --user ${c}`)},children:i.jsx(ai,{})})]})]}),i.jsx("p",{className:"github-settings-note",children:"These commands are only copied. OpenTig never executes login, logout or account switching."})]}),i.jsxs("div",{className:"github-add-actions",children:[i.jsx(G,{variant:"ghost",onClick:()=>b(!1),children:r===2?"Done":"Cancel"}),r===0?i.jsx(G,{onClick:()=>{_(n?.activeLogin??null),p(n?.accounts.map(k=>k.login)??[]),a(1)},children:"View instructions"}):i.jsxs(G,{onClick:()=>{s().then(k=>{k?.accounts.some(C=>C.state==="authenticated"&&!f.includes(C.login))?a(2):k&&M.error({title:"No new authenticated account detected",description:"Finish the login or reconnect the account, then check again. Your repository choice is unchanged."})})},disabled:o,children:[o&&i.jsx(_t,{className:"animate-spin"}),r===1?"I have finished · check accounts":"Check again"]})]})]})})}function qm(e){switch(e?.installationStatus){case"available":return"Available";case"not-found":return"Not installed";case"not-executable":return"Cannot run";case"incompatible":return"Update required";case"inspection-failed":return"Check failed";default:return"Not checked"}}function fn(e){return e instanceof Error?e.message:"The request could not be completed."}const ln="__global_default__",Qo="__external__";function Zm({repository:e,isNew:t,onClose:n,onAdded:s}){const o=mn(),[r,a]=d.useState(!1),[c,_]=d.useState(0),[f,p]=d.useState(!1),m=Et({queryKey:["repository",e.id,"account-setup",c],gcTime:0,queryFn:async()=>{const[h,b]=await Promise.all([T.github.accountsStatus(!0),T.github.repositoryAccount(e.id,!1)]);return o.setQueryData(ie.githubAccounts,h),{inventory:h,account:b}},retry:!1,refetchOnWindowFocus:!1,refetchOnReconnect:!1});return i.jsxs(i.Fragment,{children:[i.jsx(bt,{open:!0,onOpenChange:h=>{!h&&!r&&!f&&n()},children:i.jsxs(kt,{className:"github-add-dialog github-setup-dialog",children:[i.jsxs(wt,{children:["Choose access for ",e.name]}),i.jsx(xt,{children:"Review access to finish adding this repository. Cancel leaves your repositories unchanged."}),m.isPending?i.jsxs(i.Fragment,{children:[i.jsxs("p",{className:"github-setup-loading",role:"status",children:[i.jsx(_t,{className:"animate-spin","aria-hidden":"true"}),i.jsx(Fn,{text:"Reading accounts and destination…"})]}),i.jsx(G,{variant:"ghost",onClick:n,children:"Cancel"})]}):m.data?i.jsx(Bm,{repository:e,isNew:t,...m.data,saving:r,setSaving:a,onClose:n,onAdded:s,onSettings:()=>p(!0),onReload:()=>_(h=>h+1)},c):i.jsxs(i.Fragment,{children:[i.jsx("p",{className:"github-settings-notice",role:"alert",children:"Could not load repository access. Retry to finish adding this repository."}),i.jsxs("div",{className:"github-add-actions",children:[i.jsx(G,{variant:"ghost",onClick:n,children:"Cancel"}),i.jsx(G,{onClick:()=>{m.refetch()},children:"Retry"})]})]})]})}),i.jsx(bt,{open:f,onOpenChange:h=>{p(h),h||m.refetch()},children:i.jsxs(kt,{className:"github-add-dialog github-setup-dialog",children:[i.jsx(wt,{children:"GitHub accounts"}),i.jsx(xt,{children:"Manage saved accounts and the default for OpenTig."}),f&&i.jsx(Lm,{repository:null}),i.jsx(G,{onClick:()=>{p(!1),m.refetch()},children:"Back to repository setup"})]})})]})}function Bm({repository:e,isNew:t,inventory:n,account:s,saving:o,setSaving:r,onClose:a,onAdded:c,onSettings:_,onReload:f}){const p=mn(),m=fp(s.access?.publication.urls??[]),h=s.selection.mode==="account"?s.selection:null,[b,k]=d.useState(()=>h?.useGlobalDefault?ln:h?.login??(n.defaultLogin?ln:n.accounts.find(L=>L.login===n.activeLogin&&L.state==="authenticated")?.login??n.accounts.find(L=>L.state==="authenticated")?.login??n.activeLogin??Qo)),[C,g]=d.useState(()=>h?h.gitMode==="managed":t&&m),[S,w]=d.useState(null),[P,j]=d.useState(s.revision),N=b===Qo,A=N?null:b===ln?n.defaultLogin:b,I=n.accounts.map(L=>({value:L.login,label:`@${L.login}`,description:L.state==="authenticated"?"Available account":"Reconnect this account in GitHub CLI"}));h&&!I.some(L=>L.value===h.login)&&I.push({value:h.login,label:`@${h.login}`,description:"Saved account · reconnect to use it"});const B=async()=>{if(!(!A&&!N||o)){r(!0),w(null);try{const L=N?{mode:"auto"}:{mode:"account",host:"github.com",login:A,gitMode:C&&m||h?.gitMode==="managed"&&!m?"managed":"external",...b===ln?{useGlobalDefault:!0}:{}},D=await T.github.setRepositoryAccount(e.id,L,P);j(D.revision),p.setQueryData(ie.githubAccount(e.id),X=>X&&X.revision>D.revision?X:D);const V=N?D:await T.github.repositoryAccount(e.id,!0);p.setQueryData(ie.githubAccount(e.id),X=>X&&X.revision>V.revision?X:V),V.revision!==D.revision?w("The repository account changed during the check. Reload setup to review the current choice."):!N&&(V.state!=="ready"||V.access&&[V.access.identity,V.access.api,V.access.read].some(X=>["expired","inaccessible","offline"].includes(X.state)))?w(V.message||"The choice was saved, but access could not be verified. Reconnect the account or choose Use existing credentials."):c(await T.repository.completeSetup(e.id,V.revision))}catch(L){w(L instanceof Error?L.message:"Could not save repository access.")}finally{r(!1)}}};return i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"github-setup-account",children:[i.jsx("label",{className:"github-setup-label",htmlFor:"setup-github-account",children:"GitHub account"}),i.jsx(qn,{groups:[{id:"default",label:"OpenTig default",items:[{value:ln,label:n.defaultLogin?`Global default · @${n.defaultLogin}`:"Global default · not set",disabled:!n.defaultLogin}]},{id:"accounts",label:"Saved accounts",items:I},{id:"external",label:"Other access",items:[{value:Qo,label:"Use existing credentials",description:"Keep the accounts already set up on this machine."}]}],value:b,triggerId:"setup-github-account",label:"Account for this repository",triggerLabel:N?"Use existing credentials":b===ln?`Global default · @${A}`:A?`@${A}`:"Choose an account",placeholder:"Search accounts…",size:"default",align:"start",disabled:o,onValueChange:k})]}),i.jsxs("label",{className:"github-setup-both",children:[i.jsx("input",{type:"checkbox",checked:!N&&C&&m,disabled:o||N||!m,onChange:L=>g(L.target.checked)}),i.jsxs("span",{children:[i.jsx("strong",{children:"Use this account for Git too"}),i.jsx("small",{children:N?"Git uses saved credentials or SSH keys on the machine running OpenTig.":m?"Authenticate GitHub HTTPS reads and pushes with the same account.":"This destination uses the machine’s existing Git credentials or SSH keys."})]})]}),i.jsxs("div",{className:"github-push-destination github-setup-summary",children:[i.jsxs("p",{children:["GitHub / PRs: ",i.jsx("strong",{children:N?"Account from GitHub CLI (gh)":A?`@${A}`:"No account selected"})]}),i.jsxs("p",{children:["Git: ",i.jsx("strong",{children:!N&&C&&m?A?`@${A} · OpenTig`:"No account selected":"Existing credentials"})]}),s.access&&i.jsx("p",{children:Ri(s.access.publication)})]}),i.jsxs("p",{className:"github-settings-note",children:[b===ln?"Follows the OpenTig default account. ":"","Shared across worktrees and connected clients. Commit authorship stays separate."]}),(n.message||S)&&i.jsx("p",{className:"github-settings-notice",role:"alert",children:S??n.message}),i.jsx(G,{variant:"link",size:"sm",disabled:o,onClick:_,children:"Add an account or change the global default"}),i.jsxs("div",{className:"github-add-actions",children:[i.jsx(G,{variant:"ghost",disabled:o,onClick:a,children:"Cancel"}),S&&i.jsx(G,{variant:"outline",disabled:o,onClick:f,children:"Reload setup"}),i.jsxs(G,{disabled:o||!A&&!N,onClick:()=>{B()},children:[o&&i.jsx(_t,{className:"animate-spin"}),o?"Checking access…":"Add repository"]})]})]})}function Gm(e){return Et({queryKey:ie.githubAccount(e??""),queryFn:()=>T.github.repositoryAccount(e,!0),enabled:e!==null,staleTime:6e4})}const Cc=[{id:"openRepository",label:"Open repository",description:"Open a repository from disk.",category:"General",defaultCombo:"Ctrl+O",allowBare:!1},{id:"refresh",label:"Refresh",description:"Refresh the current repository.",category:"General",defaultCombo:"Ctrl+R",allowBare:!1},{id:"quickOpen",label:"Quick open",description:"Search and open a file by name.",category:"General",defaultCombo:"Ctrl+P",allowBare:!1},{id:"repoSwitcher",label:"Repository switcher",description:"Open the repository switcher. Type a number, or press again to close.",category:"General",defaultCombo:"Q",allowBare:!0},{id:"commit",label:"Commit",description:"Commit the staged changes.",category:"Commit",defaultCombo:"Ctrl+Enter",allowBare:!1},{id:"saveFile",label:"Save file",description:"Save the active file draft.",category:"Editor",defaultCombo:"Ctrl+S",allowBare:!1},{id:"editorSearch",label:"Find and replace",description:"Open find and replace in the file editor. Ctrl+Alt+F always works too, as a built-in alternative.",category:"Editor",defaultCombo:"Ctrl+F",allowBare:!1},{id:"undoFileChange",label:"Undo file operation",description:"Undo the last file create, rename, move, or delete.",category:"Editor",defaultCombo:"Ctrl+Z",allowBare:!1},{id:"redoFileChange",label:"Redo file operation",description:"Redo the last undone file operation.",category:"Editor",defaultCombo:"Ctrl+Shift+Z",allowBare:!1},{id:"closeTab",label:"Close tab",description:"Close the active file tab.",category:"Tabs",defaultCombo:"Ctrl+W",allowBare:!1},{id:"nextTab",label:"Next tab",description:"Switch to the next file tab.",category:"Tabs",defaultCombo:"Ctrl+Tab",allowBare:!1},{id:"prevTab",label:"Previous tab",description:"Switch to the previous file tab.",category:"Tabs",defaultCombo:"Ctrl+Shift+Tab",allowBare:!1},{id:"moveTabLeft",label:"Move tab left",description:"Move the active tab one position left.",category:"Tabs",defaultCombo:"Ctrl+Shift+PageUp",allowBare:!1},{id:"moveTabRight",label:"Move tab right",description:"Move the active tab one position right.",category:"Tabs",defaultCombo:"Ctrl+Shift+PageDown",allowBare:!1}],Um=new Set(["Ctrl+1","Ctrl+2","Ctrl+3","Ctrl+4","Ctrl+5","Ctrl+6","Ctrl+7","Ctrl+8","Ctrl+9","Ctrl+A","Ctrl+C","Ctrl+X","Ctrl+V"]),jx=[{combo:"Ctrl + 1..5",label:"Jump to a sidebar section",category:"General"},{combo:"Ctrl + Ctrl",label:"Show and focus OpenTig from anywhere (double-tap Control)",category:"General"},{combo:"Ctrl + A",label:"Select all files",category:"Files"},{combo:"Ctrl + C",label:"Copy selected files",category:"Files"},{combo:"Ctrl + X",label:"Cut selected files",category:"Files"},{combo:"Ctrl + V",label:"Paste files",category:"Files"},{combo:"F2",label:"Rename file",category:"Files"},{combo:"Delete",label:"Delete file",category:"Files"},{combo:"Enter / Space",label:"Activate the focused tab in the open-files strip",category:"Files"},{combo:"Delete",label:"Close the focused tab in the open-files strip",category:"Files"},{combo:"Ctrl + Alt + F",label:"Find and replace (always works, alongside the rebindable shortcut above)",category:"Editor"},{combo:"+ / -",label:"Zoom image preview",category:"Image preview"},{combo:"0",label:"Reset image zoom",category:"Image preview"},{combo:"F",label:"Fit image to window",category:"Image preview"}],Hm=["Ctrl","Shift","Alt"],Sc=["Enter","Tab","PageUp","PageDown"];function Vm(e){return e.length===1?/[a-zA-Z]/.test(e)?e.toUpperCase():/[0-9]/.test(e)?e:null:Sc.includes(e)?e:null}function Wm(e){return/^[A-Z]$/.test(e)||/^[0-9]$/.test(e)||Sc.includes(e)}function zc(e){const t=Vm(e.key);if(!t)return null;const n=[];return(e.ctrlKey||e.metaKey)&&n.push("Ctrl"),e.shiftKey&&n.push("Shift"),e.altKey&&n.push("Alt"),n.push(t),n.join("+")}function Nt(e,t){return zc(e)===t}function Px(e){return e.split("+").join(" + ")}function Km(e,t){if(typeof e!="string"||e.length===0||e.length>32)return!1;const n=e.split("+"),s=n.pop();if(!s||!Wm(s))return!1;if(n.length===0)return t&&/^[A-Z]$/.test(s);if(t)return!1;let o=-1;for(const r of n){const a=Hm.indexOf(r);if(a===-1||a<=o)return!1;o=a}return!0}function Rc(e){const t={};for(const n of Cc){const s=e?.[n.id];t[n.id]=s&&Km(s,n.allowBare)?s:n.defaultCombo}return t}const Jm=Rc(void 0);function Cx(e,t,n){if(Um.has(t))return"reserved";for(const s of Cc)if(s.id!==e&&n[s.id]===t)return s.id;return null}const Nc=d.createContext(Jm);function Qm({shortcuts:e,children:t}){return i.jsx(Nc.Provider,{value:e,children:t})}function gi({className:e,...t}){return i.jsx("kbd",{"data-slot":"kbd",className:Ce("pointer-events-none inline-flex h-5 min-w-5 items-center justify-center rounded border border-border bg-muted px-1 font-mono text-[10px] leading-none font-medium text-muted-foreground select-none",e),...t})}function Sx({className:e,...t}){return i.jsx("span",{"data-slot":"kbd-group",className:Ce("inline-flex items-center gap-1",e),...t})}function Mi(){return i.jsx("span",{className:Nn?"app-name app-name-dev":"app-name",children:xo})}const $c=500,Xm=20,Ym=20,ey=2048,Ec=64*1024;function ty(e){if(typeof e!="string"||!e||e.length>ey||e.includes("\0")||ay(e))return null;const t=e.replace(/\\/g,"/").replace(/\/+$/,"");return!t||t.startsWith("/")||/^[a-z]:\//i.test(t)||t.startsWith("//")||t.split("/").some(s=>!s||s==="."||s==="..")?null:t}function ny(e){if(!Array.isArray(e))return[];const t=new Set;for(const s of e){const o=ty(s);o&&t.add(o)}let n=0;return[...t].sort(Tc).filter(s=>n+s.length>Ec?!1:(n+=s.length,!0)).slice(0,$c)}function sy(e){if(!Array.isArray(e))return[];const t=new Map;for(const n of e){if(!n||typeof n!="object")continue;const s=n;if(!oy(s.repositoryId)||!iy(s.updatedAt))continue;const o=ny(s.expandedPaths);if(o.length===0)continue;const r={repositoryId:s.repositoryId,expandedPaths:o,updatedAt:s.updatedAt},a=t.get(r.repositoryId);(!a||sa(r,a)<0)&&t.set(r.repositoryId,r)}return[...t.values()].sort(sa).slice(0,Ym)}function oy(e){return typeof e=="string"&&/^[0-9a-f]{16}$/.test(e)}function Tc(e,t){return oa(e)-oa(t)||ry(e,t)}function sa(e,t){return t.updatedAt.localeCompare(e.updatedAt)||e.repositoryId.localeCompare(t.repositoryId)}function oa(e){return e.split("/").length}function iy(e){if(typeof e!="string")return!1;const t=Date.parse(e);return Number.isFinite(t)&&new Date(t).toISOString()===e}function ry(e,t){return e===t?0:e<t?-1:1}function ay(e){return[...e].some(t=>t.charCodeAt(0)<32||t.charCodeAt(0)===127)}const cy="opentig-open-files-drop-host";function zx(e,t){return e.type==="file"&&t.includes(e.path)}function mi(e,t){for(const n of e){if(n.path===t)return n;if(n.type==="directory"){const s=mi(n.children,t);if(s)return s}}return null}function Oc(e,t){for(const n of e){if(n.path===t)return"present";if(!(n.type!=="directory"||!ps(n.path,t)))return n.ignored===!0&&n.children.length===0?"deferred":Oc(n.children,t)}return"missing"}function ao(e){const t=[],n=s=>{for(const o of s)o.type==="directory"?(t.push(`d:${o.path}:${o.ignored===!0?1:0}`),n(o.children)):t.push(`f:${o.path}:${o.size}:${o.mtimeMs}:${o.ignored===!0?1:0}`)};return n(e),t.join(`
|
|
67
|
+
`)}function ly(e,t,n){const s=mi(e,n),o=mi(t,n);return!s||!o||s.type!=="file"||o.type!=="file"?s!==o:s.size!==o.size||s.mtimeMs!==o.mtimeMs}function _y(e){const t=[];for(const n of e){if(n.type==="file"){n.ignored||t.push(n);continue}if(n.ignored)continue;const s=_y(n.children);t.push({...n,children:s})}return t}function fy(e,t){return t.size===0?e:e.map(n=>{if(n.type!=="directory")return n;const s=n.children.length>0?n.children:t.get(n.path)??n.children;return{...n,children:fy(s,t)}})}function Rx(e,t){let n=null;for(const[s,o]of t){const r=e.get(s);r!==void 0&&ao(r)!==ao(o)&&(n??=new Map(e),n.set(s,o))}return n??e}function Nx(e,t,n){const s=[],o=[],r=[];for(const a of t){const c=Ac(e,a,n);c.status==="present"?s.push(a):c.status==="deferred"?o.push(a):r.push(a)}return{retained:[...s,...o],present:s,deferred:o,missing:r}}function $x(e,t,n){const s=[...new Set(t)].map(c=>({path:c,...Ac(e,c,n)})).filter(c=>c.status!=="missing").sort((c,_)=>Tc(c.path,_.path)),o=[];let r=0,a=0;for(const c of s){if(o.length>=$c)break;c.lazy&&r>=Xm||a+c.path.length>Ec||(o.push(c.path),a+=c.path.length,c.lazy&&(r+=1))}return o}function Ac(e,t,n){const s=t.split("/");let o=e,r="",a=!1;for(let c=0;c<s.length;c+=1){r=r?`${r}/${s[c]}`:s[c];const _=o.find(f=>f.path===r);if(!_||_.type!=="directory")return{status:"missing",lazy:a};if(a||=_.ignored===!0,c===s.length-1)return{status:"present",lazy:a};if(_.ignored===!0&&_.children.length===0&&!n.has(_.path))return{status:"deferred",lazy:!0};o=_.children}return{status:"missing",lazy:a}}function Ex(e){return/\.(?:md|markdown|mdx)$/i.test(e)}function dy(e){return/\.(?:html?|xhtml)$/i.test(e)}function ps(e,t){return t===e||t.startsWith(`${e.replace(/\/+$/,"")}/`)}function py(e){const t=e.replace(/\\/g,"/").replace(/\/+$/,""),n=t.lastIndexOf("/");return n<0?"":t.slice(0,n)}function Tx(e,t){return e.length>0&&!e.some(n=>ps(n,t))&&e.some(n=>py(n)!==t)}function uy(e){return e instanceof HTMLElement?e.matches('input, textarea, select, [contenteditable="true"]')||e.closest('input, textarea, select, [contenteditable="true"]')!==null:!1}function Ox(e,t){return Nt(e,t.undoFileChange)?"undo":Nt(e,t.redoFileChange)?"redo":null}function hy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d.useMemo(()=>s=>{t.forEach(o=>o(s))},t)}const No=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Un(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Li(e){return"nodeType"in e}function tt(e){var t,n;return e?Un(e)?e:Li(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function Fi(e){const{Document:t}=tt(e);return e instanceof t}function ys(e){return Un(e)?!1:e instanceof tt(e).HTMLElement}function Dc(e){return e instanceof tt(e).SVGElement}function Hn(e){return e?Un(e)?e.document:Li(e)?Fi(e)?e:ys(e)||Dc(e)?e.ownerDocument:document:document:document}const jt=No?d.useLayoutEffect:d.useEffect;function $o(e){const t=d.useRef(e);return jt(()=>{t.current=e}),d.useCallback(function(){for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t.current==null?void 0:t.current(...s)},[])}function gy(){const e=d.useRef(null),t=d.useCallback((s,o)=>{e.current=setInterval(s,o)},[]),n=d.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function us(e,t){t===void 0&&(t=[e]);const n=d.useRef(e);return jt(()=>{n.current!==e&&(n.current=e)},t),n}function vs(e,t){const n=d.useRef();return d.useMemo(()=>{const s=e(n.current);return n.current=s,s},[...t])}function co(e){const t=$o(e),n=d.useRef(null),s=d.useCallback(o=>{o!==n.current&&t?.(o,n.current),n.current=o},[]);return[n,s]}function lo(e){const t=d.useRef();return d.useEffect(()=>{t.current=e},[e]),t.current}let Xo={};function bs(e,t){return d.useMemo(()=>{if(t)return t;const n=Xo[e]==null?0:Xo[e]+1;return Xo[e]=n,e+"-"+n},[e,t])}function Ic(e){return function(t){for(var n=arguments.length,s=new Array(n>1?n-1:0),o=1;o<n;o++)s[o-1]=arguments[o];return s.reduce((r,a)=>{const c=Object.entries(a);for(const[_,f]of c){const p=r[_];p!=null&&(r[_]=p+e*f)}return r},{...t})}}const Dn=Ic(1),hs=Ic(-1);function my(e){return"clientX"in e&&"clientY"in e}function Eo(e){if(!e)return!1;const{KeyboardEvent:t}=tt(e.target);return t&&e instanceof t}function yy(e){if(!e)return!1;const{TouchEvent:t}=tt(e.target);return t&&e instanceof t}function _o(e){if(yy(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return my(e)?{x:e.clientX,y:e.clientY}:null}const Vt=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Vt.Translate.toString(e),Vt.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:s}=e;return t+" "+n+"ms "+s}}}),ia="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function vy(e){return e.matches(ia)?e:e.querySelector(ia)}const by={display:"none"};function ky(e){let{id:t,value:n}=e;return Re.createElement("div",{id:t,style:by},n)}function wy(e){let{id:t,announcement:n,ariaLiveType:s="assertive"}=e;const o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return Re.createElement("div",{id:t,style:o,role:"status","aria-live":s,"aria-atomic":!0},n)}function xy(){const[e,t]=d.useState("");return{announce:d.useCallback(s=>{s!=null&&t(s)},[]),announcement:e}}const Mc=d.createContext(null);function jy(e){const t=d.useContext(Mc);d.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function Py(){const[e]=d.useState(()=>new Set),t=d.useCallback(s=>(e.add(s),()=>e.delete(s)),[e]);return[d.useCallback(s=>{let{type:o,event:r}=s;e.forEach(a=>{var c;return(c=a[o])==null?void 0:c.call(a,r)})},[e]),t]}const Cy={draggable:`
|
|
68
|
+
To pick up a draggable item, press the space bar.
|
|
69
|
+
While dragging, use the arrow keys to move the item.
|
|
70
|
+
Press space again to drop the item in its new position, or press escape to cancel.
|
|
71
|
+
`},Sy={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function zy(e){let{announcements:t=Sy,container:n,hiddenTextDescribedById:s,screenReaderInstructions:o=Cy}=e;const{announce:r,announcement:a}=xy(),c=bs("DndLiveRegion"),[_,f]=d.useState(!1);if(d.useEffect(()=>{f(!0)},[]),jy(d.useMemo(()=>({onDragStart(m){let{active:h}=m;r(t.onDragStart({active:h}))},onDragMove(m){let{active:h,over:b}=m;t.onDragMove&&r(t.onDragMove({active:h,over:b}))},onDragOver(m){let{active:h,over:b}=m;r(t.onDragOver({active:h,over:b}))},onDragEnd(m){let{active:h,over:b}=m;r(t.onDragEnd({active:h,over:b}))},onDragCancel(m){let{active:h,over:b}=m;r(t.onDragCancel({active:h,over:b}))}}),[r,t])),!_)return null;const p=Re.createElement(Re.Fragment,null,Re.createElement(ky,{id:s,value:o.draggable}),Re.createElement(wy,{id:c,announcement:a}));return n?es.createPortal(p,n):p}var Le;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Le||(Le={}));function fo(){}function Ry(e,t){return d.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function Ny(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d.useMemo(()=>[...t].filter(s=>s!=null),[...t])}const Pt=Object.freeze({x:0,y:0});function qi(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function $y(e,t){const n=_o(e);if(!n)return"0 0";const s={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return s.x+"% "+s.y+"%"}function Zi(e,t){let{data:{value:n}}=e,{data:{value:s}}=t;return n-s}function Ey(e,t){let{data:{value:n}}=e,{data:{value:s}}=t;return s-n}function yi(e){let{left:t,top:n,height:s,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+s},{x:t+o,y:n+s}]}function Lc(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function ra(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const Ty=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:s}=e;const o=ra(t,t.left,t.top),r=[];for(const a of s){const{id:c}=a,_=n.get(c);if(_){const f=qi(ra(_),o);r.push({id:c,data:{droppableContainer:a,value:f}})}}return r.sort(Zi)},Oy=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:s}=e;const o=yi(t),r=[];for(const a of s){const{id:c}=a,_=n.get(c);if(_){const f=yi(_),p=o.reduce((h,b,k)=>h+qi(f[k],b),0),m=Number((p/4).toFixed(4));r.push({id:c,data:{droppableContainer:a,value:m}})}}return r.sort(Zi)};function Ay(e,t){const n=Math.max(t.top,e.top),s=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),r=Math.min(t.top+t.height,e.top+e.height),a=o-s,c=r-n;if(s<o&&n<r){const _=t.width*t.height,f=e.width*e.height,p=a*c,m=p/(_+f-p);return Number(m.toFixed(4))}return 0}const Dy=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:s}=e;const o=[];for(const r of s){const{id:a}=r,c=n.get(a);if(c){const _=Ay(c,t);_>0&&o.push({id:a,data:{droppableContainer:r,value:_}})}}return o.sort(Ey)};function Iy(e,t){const{top:n,left:s,bottom:o,right:r}=t;return n<=e.y&&e.y<=o&&s<=e.x&&e.x<=r}const Ax=e=>{let{droppableContainers:t,droppableRects:n,pointerCoordinates:s}=e;if(!s)return[];const o=[];for(const r of t){const{id:a}=r,c=n.get(a);if(c&&Iy(s,c)){const f=yi(c).reduce((m,h)=>m+qi(s,h),0),p=Number((f/4).toFixed(4));o.push({id:a,data:{droppableContainer:r,value:p}})}}return o.sort(Zi)};function My(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function Fc(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Pt}function Ly(e){return function(n){for(var s=arguments.length,o=new Array(s>1?s-1:0),r=1;r<s;r++)o[r-1]=arguments[r];return o.reduce((a,c)=>({...a,top:a.top+e*c.y,bottom:a.bottom+e*c.y,left:a.left+e*c.x,right:a.right+e*c.x}),{...n})}}const Fy=Ly(1);function qc(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function qy(e,t,n){const s=qc(t);if(!s)return e;const{scaleX:o,scaleY:r,x:a,y:c}=s,_=e.left-a-(1-o)*parseFloat(n),f=e.top-c-(1-r)*parseFloat(n.slice(n.indexOf(" ")+1)),p=o?e.width/o:e.width,m=r?e.height/r:e.height;return{width:p,height:m,top:f,right:_+p,bottom:f+m,left:_}}const Zy={ignoreTransform:!1};function Vn(e,t){t===void 0&&(t=Zy);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:f,transformOrigin:p}=tt(e).getComputedStyle(e);f&&(n=qy(n,f,p))}const{top:s,left:o,width:r,height:a,bottom:c,right:_}=n;return{top:s,left:o,width:r,height:a,bottom:c,right:_}}function aa(e){return Vn(e,{ignoreTransform:!0})}function By(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function Gy(e,t){return t===void 0&&(t=tt(e).getComputedStyle(e)),t.position==="fixed"}function Uy(e,t){t===void 0&&(t=tt(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const r=t[o];return typeof r=="string"?n.test(r):!1})}function To(e,t){const n=[];function s(o){if(t!=null&&n.length>=t||!o)return n;if(Fi(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!ys(o)||Dc(o)||n.includes(o))return n;const r=tt(e).getComputedStyle(o);return o!==e&&Uy(o,r)&&n.push(o),Gy(o,r)?n:s(o.parentNode)}return e?s(e):n}function Zc(e){const[t]=To(e,1);return t??null}function Yo(e){return!No||!e?null:Un(e)?e:Li(e)?Fi(e)||e===Hn(e).scrollingElement?window:ys(e)?e:null:null}function Bc(e){return Un(e)?e.scrollX:e.scrollLeft}function Gc(e){return Un(e)?e.scrollY:e.scrollTop}function vi(e){return{x:Bc(e),y:Gc(e)}}var Ge;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Ge||(Ge={}));function Uc(e){return!No||!e?!1:e===document.scrollingElement}function Hc(e){const t={x:0,y:0},n=Uc(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},s={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},o=e.scrollTop<=t.y,r=e.scrollLeft<=t.x,a=e.scrollTop>=s.y,c=e.scrollLeft>=s.x;return{isTop:o,isLeft:r,isBottom:a,isRight:c,maxScroll:s,minScroll:t}}const Hy={x:.2,y:.2};function Vy(e,t,n,s,o){let{top:r,left:a,right:c,bottom:_}=n;s===void 0&&(s=10),o===void 0&&(o=Hy);const{isTop:f,isBottom:p,isLeft:m,isRight:h}=Hc(e),b={x:0,y:0},k={x:0,y:0},C={height:t.height*o.y,width:t.width*o.x};return!f&&r<=t.top+C.height?(b.y=Ge.Backward,k.y=s*Math.abs((t.top+C.height-r)/C.height)):!p&&_>=t.bottom-C.height&&(b.y=Ge.Forward,k.y=s*Math.abs((t.bottom-C.height-_)/C.height)),!h&&c>=t.right-C.width?(b.x=Ge.Forward,k.x=s*Math.abs((t.right-C.width-c)/C.width)):!m&&a<=t.left+C.width&&(b.x=Ge.Backward,k.x=s*Math.abs((t.left+C.width-a)/C.width)),{direction:b,speed:k}}function Wy(e){if(e===document.scrollingElement){const{innerWidth:r,innerHeight:a}=window;return{top:0,left:0,right:r,bottom:a,width:r,height:a}}const{top:t,left:n,right:s,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:s,bottom:o,width:e.clientWidth,height:e.clientHeight}}function Vc(e){return e.reduce((t,n)=>Dn(t,vi(n)),Pt)}function Ky(e){return e.reduce((t,n)=>t+Bc(n),0)}function Jy(e){return e.reduce((t,n)=>t+Gc(n),0)}function Wc(e,t){if(t===void 0&&(t=Vn),!e)return;const{top:n,left:s,bottom:o,right:r}=t(e);Zc(e)&&(o<=0||r<=0||n>=window.innerHeight||s>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Qy=[["x",["left","right"],Ky],["y",["top","bottom"],Jy]];class Bi{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const s=To(n),o=Vc(s);this.rect={...t},this.width=t.width,this.height=t.height;for(const[r,a,c]of Qy)for(const _ of a)Object.defineProperty(this,_,{get:()=>{const f=c(s),p=o[r]-f;return this.rect[_]+p},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class is{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var s;return(s=this.target)==null?void 0:s.removeEventListener(...n)})},this.target=t}add(t,n,s){var o;(o=this.target)==null||o.addEventListener(t,n,s),this.listeners.push([t,n,s])}}function Xy(e){const{EventTarget:t}=tt(e);return e instanceof t?e:Hn(e)}function ei(e,t){const n=Math.abs(e.x),s=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+s**2)>t:"x"in t&&"y"in t?n>t.x&&s>t.y:"x"in t?n>t.x:"y"in t?s>t.y:!1}var ut;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(ut||(ut={}));function ca(e){e.preventDefault()}function Yy(e){e.stopPropagation()}var re;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(re||(re={}));const Kc={start:[re.Space,re.Enter],cancel:[re.Esc],end:[re.Space,re.Enter,re.Tab]},ev=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case re.Right:return{...n,x:n.x+25};case re.Left:return{...n,x:n.x-25};case re.Down:return{...n,y:n.y+25};case re.Up:return{...n,y:n.y-25}}};class Jc{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new is(Hn(n)),this.windowListeners=new is(tt(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ut.Resize,this.handleCancel),this.windowListeners.add(ut.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(ut.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,s=t.node.current;s&&Wc(s),n(Pt)}handleKeyDown(t){if(Eo(t)){const{active:n,context:s,options:o}=this.props,{keyboardCodes:r=Kc,coordinateGetter:a=ev,scrollBehavior:c="smooth"}=o,{code:_}=t;if(r.end.includes(_)){this.handleEnd(t);return}if(r.cancel.includes(_)){this.handleCancel(t);return}const{collisionRect:f}=s.current,p=f?{x:f.left,y:f.top}:Pt;this.referenceCoordinates||(this.referenceCoordinates=p);const m=a(t,{active:n,context:s.current,currentCoordinates:p});if(m){const h=hs(m,p),b={x:0,y:0},{scrollableAncestors:k}=s.current;for(const C of k){const g=t.code,{isTop:S,isRight:w,isLeft:P,isBottom:j,maxScroll:N,minScroll:A}=Hc(C),I=Wy(C),B={x:Math.min(g===re.Right?I.right-I.width/2:I.right,Math.max(g===re.Right?I.left:I.left+I.width/2,m.x)),y:Math.min(g===re.Down?I.bottom-I.height/2:I.bottom,Math.max(g===re.Down?I.top:I.top+I.height/2,m.y))},L=g===re.Right&&!w||g===re.Left&&!P,D=g===re.Down&&!j||g===re.Up&&!S;if(L&&B.x!==m.x){const V=C.scrollLeft+h.x,X=g===re.Right&&V<=N.x||g===re.Left&&V>=A.x;if(X&&!h.y){C.scrollTo({left:V,behavior:c});return}X?b.x=C.scrollLeft-V:b.x=g===re.Right?C.scrollLeft-N.x:C.scrollLeft-A.x,b.x&&C.scrollBy({left:-b.x,behavior:c});break}else if(D&&B.y!==m.y){const V=C.scrollTop+h.y,X=g===re.Down&&V<=N.y||g===re.Up&&V>=A.y;if(X&&!h.x){C.scrollTo({top:V,behavior:c});return}X?b.y=C.scrollTop-V:b.y=g===re.Down?C.scrollTop-N.y:C.scrollTop-A.y,b.y&&C.scrollBy({top:-b.y,behavior:c});break}}this.handleMove(t,Dn(hs(m,this.referenceCoordinates),b))}}}handleMove(t,n){const{onMove:s}=this.props;t.preventDefault(),s(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}Jc.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:s=Kc,onActivation:o}=t,{active:r}=n;const{code:a}=e.nativeEvent;if(s.start.includes(a)){const c=r.activatorNode.current;return c&&e.target!==c?!1:(e.preventDefault(),o?.({event:e.nativeEvent}),!0)}return!1}}];function la(e){return!!(e&&"distance"in e)}function _a(e){return!!(e&&"delay"in e)}class Gi{constructor(t,n,s){var o;s===void 0&&(s=Xy(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:r}=t,{target:a}=r;this.props=t,this.events=n,this.document=Hn(a),this.documentListeners=new is(this.document),this.listeners=new is(s),this.windowListeners=new is(tt(a)),this.initialCoordinates=(o=_o(r))!=null?o:Pt,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:s}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(ut.Resize,this.handleCancel),this.windowListeners.add(ut.DragStart,ca),this.windowListeners.add(ut.VisibilityChange,this.handleCancel),this.windowListeners.add(ut.ContextMenu,ca),this.documentListeners.add(ut.Keydown,this.handleKeydown),n){if(s!=null&&s({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(_a(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(la(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:s,onPending:o}=this.props;o(s,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(ut.Click,Yy,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ut.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:s,initialCoordinates:o,props:r}=this,{onMove:a,options:{activationConstraint:c}}=r;if(!o)return;const _=(n=_o(t))!=null?n:Pt,f=hs(o,_);if(!s&&c){if(la(c)){if(c.tolerance!=null&&ei(f,c.tolerance))return this.handleCancel();if(ei(f,c.distance))return this.handleStart()}if(_a(c)&&ei(f,c.tolerance))return this.handleCancel();this.handlePending(c,f);return}t.cancelable&&t.preventDefault(),a(_)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===re.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const tv={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class po extends Gi{constructor(t){const{event:n}=t,s=Hn(n.target);super(t,tv,s)}}po.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:s}=t;return!n.isPrimary||n.button!==0?!1:(s?.({event:n}),!0)}}];const nv={move:{name:"mousemove"},end:{name:"mouseup"}};var bi;(function(e){e[e.RightClick=2]="RightClick"})(bi||(bi={}));class sv extends Gi{constructor(t){super(t,nv,Hn(t.event.target))}}sv.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:s}=t;return n.button===bi.RightClick?!1:(s?.({event:n}),!0)}}];const ti={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class ov extends Gi{constructor(t){super(t,ti)}static setup(){return window.addEventListener(ti.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(ti.move.name,t)};function t(){}}}ov.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:s}=t;const{touches:o}=n;return o.length>1?!1:(s?.({event:n}),!0)}}];var rs;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(rs||(rs={}));var uo;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(uo||(uo={}));function iv(e){let{acceleration:t,activator:n=rs.Pointer,canScroll:s,draggingRect:o,enabled:r,interval:a=5,order:c=uo.TreeOrder,pointerCoordinates:_,scrollableAncestors:f,scrollableAncestorRects:p,delta:m,threshold:h}=e;const b=av({delta:m,disabled:!r}),[k,C]=gy(),g=d.useRef({x:0,y:0}),S=d.useRef({x:0,y:0}),w=d.useMemo(()=>{switch(n){case rs.Pointer:return _?{top:_.y,bottom:_.y,left:_.x,right:_.x}:null;case rs.DraggableRect:return o}},[n,o,_]),P=d.useRef(null),j=d.useCallback(()=>{const A=P.current;if(!A)return;const I=g.current.x*S.current.x,B=g.current.y*S.current.y;A.scrollBy(I,B)},[]),N=d.useMemo(()=>c===uo.TreeOrder?[...f].reverse():f,[c,f]);d.useEffect(()=>{if(!r||!f.length||!w){C();return}for(const A of N){if(s?.(A)===!1)continue;const I=f.indexOf(A),B=p[I];if(!B)continue;const{direction:L,speed:D}=Vy(A,B,w,t,h);for(const V of["x","y"])b[V][L[V]]||(D[V]=0,L[V]=0);if(D.x>0||D.y>0){C(),P.current=A,k(j,a),g.current=D,S.current=L;return}}g.current={x:0,y:0},S.current={x:0,y:0},C()},[t,j,s,C,r,a,JSON.stringify(w),JSON.stringify(b),k,f,N,p,JSON.stringify(h)])}const rv={x:{[Ge.Backward]:!1,[Ge.Forward]:!1},y:{[Ge.Backward]:!1,[Ge.Forward]:!1}};function av(e){let{delta:t,disabled:n}=e;const s=lo(t);return vs(o=>{if(n||!s||!o)return rv;const r={x:Math.sign(t.x-s.x),y:Math.sign(t.y-s.y)};return{x:{[Ge.Backward]:o.x[Ge.Backward]||r.x===-1,[Ge.Forward]:o.x[Ge.Forward]||r.x===1},y:{[Ge.Backward]:o.y[Ge.Backward]||r.y===-1,[Ge.Forward]:o.y[Ge.Forward]||r.y===1}}},[n,t,s])}function cv(e,t){const n=t!=null?e.get(t):void 0,s=n?n.node.current:null;return vs(o=>{var r;return t==null?null:(r=s??o)!=null?r:null},[s,t])}function lv(e,t){return d.useMemo(()=>e.reduce((n,s)=>{const{sensor:o}=s,r=o.activators.map(a=>({eventName:a.eventName,handler:t(a.handler,s)}));return[...n,...r]},[]),[e,t])}var gs;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(gs||(gs={}));var ki;(function(e){e.Optimized="optimized"})(ki||(ki={}));const fa=new Map;function _v(e,t){let{dragging:n,dependencies:s,config:o}=t;const[r,a]=d.useState(null),{frequency:c,measure:_,strategy:f}=o,p=d.useRef(e),m=g(),h=us(m),b=d.useCallback(function(S){S===void 0&&(S=[]),!h.current&&a(w=>w===null?S:w.concat(S.filter(P=>!w.includes(P))))},[h]),k=d.useRef(null),C=vs(S=>{if(m&&!n)return fa;if(!S||S===fa||p.current!==e||r!=null){const w=new Map;for(let P of e){if(!P)continue;if(r&&r.length>0&&!r.includes(P.id)&&P.rect.current){w.set(P.id,P.rect.current);continue}const j=P.node.current,N=j?new Bi(_(j),j):null;P.rect.current=N,N&&w.set(P.id,N)}return w}return S},[e,r,n,m,_]);return d.useEffect(()=>{p.current=e},[e]),d.useEffect(()=>{m||b()},[n,m]),d.useEffect(()=>{r&&r.length>0&&a(null)},[JSON.stringify(r)]),d.useEffect(()=>{m||typeof c!="number"||k.current!==null||(k.current=setTimeout(()=>{b(),k.current=null},c))},[c,m,b,...s]),{droppableRects:C,measureDroppableContainers:b,measuringScheduled:r!=null};function g(){switch(f){case gs.Always:return!1;case gs.BeforeDragging:return n;default:return!n}}}function Ui(e,t){return vs(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function fv(e,t){return Ui(e,t)}function dv(e){let{callback:t,disabled:n}=e;const s=$o(t),o=d.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:r}=window;return new r(s)},[s,n]);return d.useEffect(()=>()=>o?.disconnect(),[o]),o}function Oo(e){let{callback:t,disabled:n}=e;const s=$o(t),o=d.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:r}=window;return new r(s)},[n]);return d.useEffect(()=>()=>o?.disconnect(),[o]),o}function pv(e){return new Bi(Vn(e),e)}function da(e,t,n){t===void 0&&(t=pv);const[s,o]=d.useState(null);function r(){o(_=>{if(!e)return null;if(e.isConnected===!1){var f;return(f=_??n)!=null?f:null}const p=t(e);return JSON.stringify(_)===JSON.stringify(p)?_:p})}const a=dv({callback(_){if(e)for(const f of _){const{type:p,target:m}=f;if(p==="childList"&&m instanceof HTMLElement&&m.contains(e)){r();break}}}}),c=Oo({callback:r});return jt(()=>{r(),e?(c?.observe(e),a?.observe(document.body,{childList:!0,subtree:!0})):(c?.disconnect(),a?.disconnect())},[e]),s}function uv(e){const t=Ui(e);return Fc(e,t)}const pa=[];function hv(e){const t=d.useRef(e),n=vs(s=>e?s&&s!==pa&&e&&t.current&&e.parentNode===t.current.parentNode?s:To(e):pa,[e]);return d.useEffect(()=>{t.current=e},[e]),n}function gv(e){const[t,n]=d.useState(null),s=d.useRef(e),o=d.useCallback(r=>{const a=Yo(r.target);a&&n(c=>c?(c.set(a,vi(a)),new Map(c)):null)},[]);return d.useEffect(()=>{const r=s.current;if(e!==r){a(r);const c=e.map(_=>{const f=Yo(_);return f?(f.addEventListener("scroll",o,{passive:!0}),[f,vi(f)]):null}).filter(_=>_!=null);n(c.length?new Map(c):null),s.current=e}return()=>{a(e),a(r)};function a(c){c.forEach(_=>{const f=Yo(_);f?.removeEventListener("scroll",o)})}},[o,e]),d.useMemo(()=>e.length?t?Array.from(t.values()).reduce((r,a)=>Dn(r,a),Pt):Vc(e):Pt,[e,t])}function ua(e,t){t===void 0&&(t=[]);const n=d.useRef(null);return d.useEffect(()=>{n.current=null},t),d.useEffect(()=>{const s=e!==Pt;s&&!n.current&&(n.current=e),!s&&n.current&&(n.current=null)},[e]),n.current?hs(e,n.current):Pt}function mv(e){d.useEffect(()=>{if(!No)return;const t=e.map(n=>{let{sensor:s}=n;return s.setup==null?void 0:s.setup()});return()=>{for(const n of t)n?.()}},e.map(t=>{let{sensor:n}=t;return n}))}function yv(e,t){return d.useMemo(()=>e.reduce((n,s)=>{let{eventName:o,handler:r}=s;return n[o]=a=>{r(a,t)},n},{}),[e,t])}function Qc(e){return d.useMemo(()=>e?By(e):null,[e])}const ha=[];function vv(e,t){t===void 0&&(t=Vn);const[n]=e,s=Qc(n?tt(n):null),[o,r]=d.useState(ha);function a(){r(()=>e.length?e.map(_=>Uc(_)?s:new Bi(t(_),_)):ha)}const c=Oo({callback:a});return jt(()=>{c?.disconnect(),a(),e.forEach(_=>c?.observe(_))},[e]),o}function Xc(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return ys(t)?t:e}function bv(e){let{measure:t}=e;const[n,s]=d.useState(null),o=d.useCallback(f=>{for(const{target:p}of f)if(ys(p)){s(m=>{const h=t(p);return m?{...m,width:h.width,height:h.height}:h});break}},[t]),r=Oo({callback:o}),a=d.useCallback(f=>{const p=Xc(f);r?.disconnect(),p&&r?.observe(p),s(p?t(p):null)},[t,r]),[c,_]=co(a);return d.useMemo(()=>({nodeRef:c,rect:n,setRef:_}),[n,c,_])}const kv=[{sensor:po,options:{}},{sensor:Jc,options:{}}],wv={current:{}},eo={draggable:{measure:aa},droppable:{measure:aa,strategy:gs.WhileDragging,frequency:ki.Optimized},dragOverlay:{measure:Vn}};class as extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,s;return(n=(s=this.get(t))==null?void 0:s.node.current)!=null?n:void 0}}const xv={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new as,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:fo},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:eo,measureDroppableContainers:fo,windowRect:null,measuringScheduled:!1},Yc={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:fo,draggableNodes:new Map,over:null,measureDroppableContainers:fo},ks=d.createContext(Yc),el=d.createContext(xv);function jv(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new as}}}function Pv(e,t){switch(t.type){case Le.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Le.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Le.DragEnd:case Le.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Le.RegisterDroppable:{const{element:n}=t,{id:s}=n,o=new as(e.droppable.containers);return o.set(s,n),{...e,droppable:{...e.droppable,containers:o}}}case Le.SetDroppableDisabled:{const{id:n,key:s,disabled:o}=t,r=e.droppable.containers.get(n);if(!r||s!==r.key)return e;const a=new as(e.droppable.containers);return a.set(n,{...r,disabled:o}),{...e,droppable:{...e.droppable,containers:a}}}case Le.UnregisterDroppable:{const{id:n,key:s}=t,o=e.droppable.containers.get(n);if(!o||s!==o.key)return e;const r=new as(e.droppable.containers);return r.delete(n),{...e,droppable:{...e.droppable,containers:r}}}default:return e}}function Cv(e){let{disabled:t}=e;const{active:n,activatorEvent:s,draggableNodes:o}=d.useContext(ks),r=lo(s),a=lo(n?.id);return d.useEffect(()=>{if(!t&&!s&&r&&a!=null){if(!Eo(r)||document.activeElement===r.target)return;const c=o.get(a);if(!c)return;const{activatorNode:_,node:f}=c;if(!_.current&&!f.current)return;requestAnimationFrame(()=>{for(const p of[_.current,f.current]){if(!p)continue;const m=vy(p);if(m){m.focus();break}}})}},[s,t,o,a,r]),null}function tl(e,t){let{transform:n,...s}=t;return e!=null&&e.length?e.reduce((o,r)=>r({transform:o,...s}),n):n}function Sv(e){return d.useMemo(()=>({draggable:{...eo.draggable,...e?.draggable},droppable:{...eo.droppable,...e?.droppable},dragOverlay:{...eo.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function zv(e){let{activeNode:t,measure:n,initialRect:s,config:o=!0}=e;const r=d.useRef(!1),{x:a,y:c}=typeof o=="boolean"?{x:o,y:o}:o;jt(()=>{if(!a&&!c||!t){r.current=!1;return}if(r.current||!s)return;const f=t?.node.current;if(!f||f.isConnected===!1)return;const p=n(f),m=Fc(p,s);if(a||(m.x=0),c||(m.y=0),r.current=!0,Math.abs(m.x)>0||Math.abs(m.y)>0){const h=Zc(f);h&&h.scrollBy({top:m.y,left:m.x})}},[t,a,c,s,n])}const Ao=d.createContext({...Pt,scaleX:1,scaleY:1});var Ht;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Ht||(Ht={}));const Rv=d.memo(function(t){var n,s,o,r;let{id:a,accessibility:c,autoScroll:_=!0,children:f,sensors:p=kv,collisionDetection:m=Dy,measuring:h,modifiers:b,...k}=t;const C=d.useReducer(Pv,void 0,jv),[g,S]=C,[w,P]=Py(),[j,N]=d.useState(Ht.Uninitialized),A=j===Ht.Initialized,{draggable:{active:I,nodes:B,translate:L},droppable:{containers:D}}=g,V=I!=null?B.get(I):null,X=d.useRef({initial:null,translated:null}),ye=d.useMemo(()=>{var De;return I!=null?{id:I,data:(De=V?.data)!=null?De:wv,rect:X}:null},[I,V]),je=d.useRef(null),[F,Z]=d.useState(null),[R,Q]=d.useState(null),ee=us(k,Object.values(k)),pe=bs("DndDescribedBy",a),ze=d.useMemo(()=>D.getEnabled(),[D]),ve=Sv(h),{droppableRects:O,measureDroppableContainers:H,measuringScheduled:K}=_v(ze,{dragging:A,dependencies:[L.x,L.y],config:ve.droppable}),se=cv(B,I),ne=d.useMemo(()=>R?_o(R):null,[R]),oe=tn(),ue=fv(se,ve.draggable.measure);zv({activeNode:I!=null?B.get(I):null,config:oe.layoutShiftCompensation,initialRect:ue,measure:ve.draggable.measure});const U=da(se,ve.draggable.measure,ue),W=da(se?se.parentElement:null),Pe=d.useRef({activatorEvent:null,active:null,activeNode:se,collisionRect:null,collisions:null,droppableRects:O,draggableNodes:B,draggingNode:null,draggingNodeRect:null,droppableContainers:D,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Ye=D.getNodeFor((n=Pe.current.over)==null?void 0:n.id),$e=bv({measure:ve.dragOverlay.measure}),nt=(s=$e.nodeRef.current)!=null?s:se,rt=A?(o=$e.rect)!=null?o:U:null,Jt=!!($e.nodeRef.current&&$e.rect),bn=uv(Jt?null:U),Ct=Qc(nt?tt(nt):null),z=hv(A?Ye??se:null),ae=vv(z),fe=tl(b,{transform:{x:L.x-bn.x,y:L.y-bn.y,scaleX:1,scaleY:1},activatorEvent:R,active:ye,activeNodeRect:U,containerNodeRect:W,draggingNodeRect:rt,over:Pe.current.over,overlayNodeRect:$e.rect,scrollableAncestors:z,scrollableAncestorRects:ae,windowRect:Ct}),Ke=ne?Dn(ne,L):null,ft=gv(z),Qt=ua(ft),Ft=ua(ft,[U]),At=Dn(fe,Qt),st=rt?Fy(rt,fe):null,Xt=ye&&st?m({active:ye,collisionRect:st,droppableRects:O,droppableContainers:ze,pointerCoordinates:Ke}):null,Kn=Lc(Xt,"id"),[ot,Yt]=d.useState(null),kn=Jt?fe:Dn(fe,Ft),xs=My(kn,(r=ot?.rect)!=null?r:null,U),qt=d.useRef(null),wn=d.useCallback((De,Je)=>{let{sensor:Ze,options:Ie}=Je;if(je.current==null)return;const Me=B.get(je.current);if(!Me)return;const Ee=De.nativeEvent,Te=new Ze({active:je.current,activeNode:Me,event:Ee,options:Ie,context:Pe,onAbort(he){if(!B.get(he))return;const{onDragAbort:ce}=ee.current,Ue={id:he};ce?.(Ue),w({type:"onDragAbort",event:Ue})},onPending(he,de,ce,Ue){if(!B.get(he))return;const{onDragPending:It}=ee.current,gt={id:he,constraint:de,initialCoordinates:ce,offset:Ue};It?.(gt),w({type:"onDragPending",event:gt})},onStart(he){const de=je.current;if(de==null)return;const ce=B.get(de);if(!ce)return;const{onDragStart:Ue}=ee.current,He={activatorEvent:Ee,active:{id:de,data:ce.data,rect:X}};es.unstable_batchedUpdates(()=>{Ue?.(He),N(Ht.Initializing),S({type:Le.DragStart,initialCoordinates:he,active:de}),w({type:"onDragStart",event:He}),Z(qt.current),Q(Ee)})},onMove(he){S({type:Le.DragMove,coordinates:he})},onEnd:at(Le.DragEnd),onCancel:at(Le.DragCancel)});qt.current=Te;function at(he){return async function(){const{active:ce,collisions:Ue,over:He,scrollAdjustedTranslate:It}=Pe.current;let gt=null;if(ce&&It){const{cancelDrop:ct}=ee.current;gt={activatorEvent:Ee,active:ce,collisions:Ue,delta:It,over:He},he===Le.DragEnd&&typeof ct=="function"&&await Promise.resolve(ct(gt))&&(he=Le.DragCancel)}je.current=null,es.unstable_batchedUpdates(()=>{S({type:he}),N(Ht.Uninitialized),Yt(null),Z(null),Q(null),qt.current=null;const ct=he===Le.DragEnd?"onDragEnd":"onDragCancel";if(gt){const nn=ee.current[ct];nn?.(gt),w({type:ct,event:gt})}})}}},[B]),js=d.useCallback((De,Je)=>(Ze,Ie)=>{const Me=Ze.nativeEvent,Ee=B.get(Ie);if(je.current!==null||!Ee||Me.dndKit||Me.defaultPrevented)return;const Te={active:Ee};De(Ze,Je.options,Te)===!0&&(Me.dndKit={capturedBy:Je.sensor},je.current=Ie,wn(Ze,Je))},[B,wn]),Zt=lv(p,js);mv(p),jt(()=>{U&&j===Ht.Initializing&&N(Ht.Initialized)},[U,j]),d.useEffect(()=>{const{onDragMove:De}=ee.current,{active:Je,activatorEvent:Ze,collisions:Ie,over:Me}=Pe.current;if(!Je||!Ze)return;const Ee={active:Je,activatorEvent:Ze,collisions:Ie,delta:{x:At.x,y:At.y},over:Me};es.unstable_batchedUpdates(()=>{De?.(Ee),w({type:"onDragMove",event:Ee})})},[At.x,At.y]),d.useEffect(()=>{const{active:De,activatorEvent:Je,collisions:Ze,droppableContainers:Ie,scrollAdjustedTranslate:Me}=Pe.current;if(!De||je.current==null||!Je||!Me)return;const{onDragOver:Ee}=ee.current,Te=Ie.get(Kn),at=Te&&Te.rect.current?{id:Te.id,rect:Te.rect.current,data:Te.data,disabled:Te.disabled}:null,he={active:De,activatorEvent:Je,collisions:Ze,delta:{x:Me.x,y:Me.y},over:at};es.unstable_batchedUpdates(()=>{Yt(at),Ee?.(he),w({type:"onDragOver",event:he})})},[Kn]),jt(()=>{Pe.current={activatorEvent:R,active:ye,activeNode:se,collisionRect:st,collisions:Xt,droppableRects:O,draggableNodes:B,draggingNode:nt,draggingNodeRect:rt,droppableContainers:D,over:ot,scrollableAncestors:z,scrollAdjustedTranslate:At},X.current={initial:rt,translated:st}},[ye,se,Xt,st,B,nt,rt,O,D,ot,z,At]),iv({...oe,delta:L,draggingRect:st,pointerCoordinates:Ke,scrollableAncestors:z,scrollableAncestorRects:ae});const en=d.useMemo(()=>({active:ye,activeNode:se,activeNodeRect:U,activatorEvent:R,collisions:Xt,containerNodeRect:W,dragOverlay:$e,draggableNodes:B,droppableContainers:D,droppableRects:O,over:ot,measureDroppableContainers:H,scrollableAncestors:z,scrollableAncestorRects:ae,measuringConfiguration:ve,measuringScheduled:K,windowRect:Ct}),[ye,se,U,R,Xt,W,$e,B,D,O,ot,H,z,ae,ve,K,Ct]),Dt=d.useMemo(()=>({activatorEvent:R,activators:Zt,active:ye,activeNodeRect:U,ariaDescribedById:{draggable:pe},dispatch:S,draggableNodes:B,over:ot,measureDroppableContainers:H}),[R,Zt,ye,U,S,pe,B,ot,H]);return Re.createElement(Mc.Provider,{value:P},Re.createElement(ks.Provider,{value:Dt},Re.createElement(el.Provider,{value:en},Re.createElement(Ao.Provider,{value:xs},f)),Re.createElement(Cv,{disabled:c?.restoreFocus===!1})),Re.createElement(zy,{...c,hiddenTextDescribedById:pe}));function tn(){const De=F?.autoScrollEnabled===!1,Je=typeof _=="object"?_.enabled===!1:_===!1,Ze=A&&!De&&!Je;return typeof _=="object"?{..._,enabled:Ze}:{enabled:Ze}}}),Nv=d.createContext(null),ga="button",$v="Draggable";function Ev(e){let{id:t,data:n,disabled:s=!1,attributes:o}=e;const r=bs($v),{activators:a,activatorEvent:c,active:_,activeNodeRect:f,ariaDescribedById:p,draggableNodes:m,over:h}=d.useContext(ks),{role:b=ga,roleDescription:k="draggable",tabIndex:C=0}=o??{},g=_?.id===t,S=d.useContext(g?Ao:Nv),[w,P]=co(),[j,N]=co(),A=yv(a,t),I=us(n);jt(()=>(m.set(t,{id:t,key:r,node:w,activatorNode:j,data:I}),()=>{const L=m.get(t);L&&L.key===r&&m.delete(t)}),[m,t]);const B=d.useMemo(()=>({role:b,tabIndex:C,"aria-disabled":s,"aria-pressed":g&&b===ga?!0:void 0,"aria-roledescription":k,"aria-describedby":p.draggable}),[s,b,C,g,k,p.draggable]);return{active:_,activatorEvent:c,activeNodeRect:f,attributes:B,isDragging:g,listeners:s?void 0:A,node:w,over:h,setNodeRef:P,setActivatorNodeRef:N,transform:S}}function nl(){return d.useContext(el)}const Tv="Droppable",Ov={timeout:25};function Av(e){let{data:t,disabled:n=!1,id:s,resizeObserverConfig:o}=e;const r=bs(Tv),{active:a,dispatch:c,over:_,measureDroppableContainers:f}=d.useContext(ks),p=d.useRef({disabled:n}),m=d.useRef(!1),h=d.useRef(null),b=d.useRef(null),{disabled:k,updateMeasurementsFor:C,timeout:g}={...Ov,...o},S=us(C??s),w=d.useCallback(()=>{if(!m.current){m.current=!0;return}b.current!=null&&clearTimeout(b.current),b.current=setTimeout(()=>{f(Array.isArray(S.current)?S.current:[S.current]),b.current=null},g)},[g]),P=Oo({callback:w,disabled:k||!a}),j=d.useCallback((B,L)=>{P&&(L&&(P.unobserve(L),m.current=!1),B&&P.observe(B))},[P]),[N,A]=co(j),I=us(t);return d.useEffect(()=>{!P||!N.current||(P.disconnect(),m.current=!1,P.observe(N.current))},[N,P]),d.useEffect(()=>(c({type:Le.RegisterDroppable,element:{id:s,key:r,disabled:n,node:N,rect:h,data:I}}),()=>c({type:Le.UnregisterDroppable,key:r,id:s})),[s]),d.useEffect(()=>{n!==p.current.disabled&&(c({type:Le.SetDroppableDisabled,id:s,key:r,disabled:n}),p.current.disabled=n)},[s,r,n,c]),{active:a,rect:h,isOver:_?.id===s,node:N,over:_,setNodeRef:A}}function Dv(e){let{animation:t,children:n}=e;const[s,o]=d.useState(null),[r,a]=d.useState(null),c=lo(n);return!n&&!s&&c&&o(c),jt(()=>{if(!r)return;const _=s?.key,f=s?.props.id;if(_==null||f==null){o(null);return}Promise.resolve(t(f,r)).then(()=>{o(null)})},[t,s,r]),Re.createElement(Re.Fragment,null,n,s?d.cloneElement(s,{ref:a}):null)}const Iv={x:0,y:0,scaleX:1,scaleY:1};function Mv(e){let{children:t}=e;return Re.createElement(ks.Provider,{value:Yc},Re.createElement(Ao.Provider,{value:Iv},t))}const Lv={position:"fixed",touchAction:"none"},Fv=e=>Eo(e)?"transform 250ms ease":void 0,qv=d.forwardRef((e,t)=>{let{as:n,activatorEvent:s,adjustScale:o,children:r,className:a,rect:c,style:_,transform:f,transition:p=Fv}=e;if(!c)return null;const m=o?f:{...f,scaleX:1,scaleY:1},h={...Lv,width:c.width,height:c.height,top:c.top,left:c.left,transform:Vt.Transform.toString(m),transformOrigin:o&&s?$y(s,c):void 0,transition:typeof p=="function"?p(s):p,..._};return Re.createElement(n,{className:a,style:h,ref:t},r)}),Zv=e=>t=>{let{active:n,dragOverlay:s}=t;const o={},{styles:r,className:a}=e;if(r!=null&&r.active)for(const[c,_]of Object.entries(r.active))_!==void 0&&(o[c]=n.node.style.getPropertyValue(c),n.node.style.setProperty(c,_));if(r!=null&&r.dragOverlay)for(const[c,_]of Object.entries(r.dragOverlay))_!==void 0&&s.node.style.setProperty(c,_);return a!=null&&a.active&&n.node.classList.add(a.active),a!=null&&a.dragOverlay&&s.node.classList.add(a.dragOverlay),function(){for(const[_,f]of Object.entries(o))n.node.style.setProperty(_,f);a!=null&&a.active&&n.node.classList.remove(a.active)}},Bv=e=>{let{transform:{initial:t,final:n}}=e;return[{transform:Vt.Transform.toString(t)},{transform:Vt.Transform.toString(n)}]},Gv={duration:250,easing:"ease",keyframes:Bv,sideEffects:Zv({styles:{active:{opacity:"0"}}})};function Uv(e){let{config:t,draggableNodes:n,droppableContainers:s,measuringConfiguration:o}=e;return $o((r,a)=>{if(t===null)return;const c=n.get(r);if(!c)return;const _=c.node.current;if(!_)return;const f=Xc(a);if(!f)return;const{transform:p}=tt(a).getComputedStyle(a),m=qc(p);if(!m)return;const h=typeof t=="function"?t:Hv(t);return Wc(_,o.draggable.measure),h({active:{id:r,data:c.data,node:_,rect:o.draggable.measure(_)},draggableNodes:n,dragOverlay:{node:a,rect:o.dragOverlay.measure(f)},droppableContainers:s,measuringConfiguration:o,transform:m})})}function Hv(e){const{duration:t,easing:n,sideEffects:s,keyframes:o}={...Gv,...e};return r=>{let{active:a,dragOverlay:c,transform:_,...f}=r;if(!t)return;const p={x:c.rect.left-a.rect.left,y:c.rect.top-a.rect.top},m={scaleX:_.scaleX!==1?a.rect.width*_.scaleX/c.rect.width:1,scaleY:_.scaleY!==1?a.rect.height*_.scaleY/c.rect.height:1},h={x:_.x-p.x,y:_.y-p.y,...m},b=o({...f,active:a,dragOverlay:c,transform:{initial:_,final:h}}),[k]=b,C=b[b.length-1];if(JSON.stringify(k)===JSON.stringify(C))return;const g=s?.({active:a,dragOverlay:c,...f}),S=c.node.animate(b,{duration:t,easing:n,fill:"forwards"});return new Promise(w=>{S.onfinish=()=>{g?.(),w()}})}}let ma=0;function Vv(e){return d.useMemo(()=>{if(e!=null)return ma++,ma},[e])}const Wv=Re.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:s,style:o,transition:r,modifiers:a,wrapperElement:c="div",className:_,zIndex:f=999}=e;const{activatorEvent:p,active:m,activeNodeRect:h,containerNodeRect:b,draggableNodes:k,droppableContainers:C,dragOverlay:g,over:S,measuringConfiguration:w,scrollableAncestors:P,scrollableAncestorRects:j,windowRect:N}=nl(),A=d.useContext(Ao),I=Vv(m?.id),B=tl(a,{activatorEvent:p,active:m,activeNodeRect:h,containerNodeRect:b,draggingNodeRect:g.rect,over:S,overlayNodeRect:g.rect,scrollableAncestors:P,scrollableAncestorRects:j,transform:A,windowRect:N}),L=Ui(h),D=Uv({config:s,draggableNodes:k,droppableContainers:C,measuringConfiguration:w}),V=L?g.setRef:void 0;return Re.createElement(Mv,null,Re.createElement(Dv,{animation:D},m&&I?Re.createElement(qv,{key:I,id:m.id,ref:V,as:c,activatorEvent:p,adjustScale:t,className:_,transition:r,rect:L,style:{zIndex:f,...o},transform:B},n):null))});function sl(e,t,n){const s=e.slice();return s.splice(n<0?s.length+n:n,0,s.splice(t,1)[0]),s}function Kv(e,t){return e.reduce((n,s,o)=>{const r=t.get(s);return r&&(n[o]=r),n},Array(e.length))}function Zs(e){return e!==null&&e>=0}function Jv(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Qv(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const Bs={scaleX:1,scaleY:1},Xv=e=>{var t;let{rects:n,activeNodeRect:s,activeIndex:o,overIndex:r,index:a}=e;const c=(t=n[o])!=null?t:s;if(!c)return null;const _=Yv(n,a,o);if(a===o){const f=n[r];return f?{x:o<r?f.left+f.width-(c.left+c.width):f.left-c.left,y:0,...Bs}:null}return a>o&&a<=r?{x:-c.width-_,y:0,...Bs}:a<o&&a>=r?{x:c.width+_,y:0,...Bs}:{x:0,y:0,...Bs}};function Yv(e,t,n){const s=e[t],o=e[t-1],r=e[t+1];return!s||!o&&!r?0:n<t?o?s.left-(o.left+o.width):r.left-(s.left+s.width):r?r.left-(s.left+s.width):s.left-(o.left+o.width)}const ol=e=>{let{rects:t,activeIndex:n,overIndex:s,index:o}=e;const r=sl(t,s,n),a=t[o],c=r[o];return!c||!a?null:{x:c.left-a.left,y:c.top-a.top,scaleX:c.width/a.width,scaleY:c.height/a.height}},Gs={scaleX:1,scaleY:1},Dx=e=>{var t;let{activeIndex:n,activeNodeRect:s,index:o,rects:r,overIndex:a}=e;const c=(t=r[n])!=null?t:s;if(!c)return null;if(o===n){const f=r[a];return f?{x:0,y:n<a?f.top+f.height-(c.top+c.height):f.top-c.top,...Gs}:null}const _=eb(r,o,n);return o>n&&o<=a?{x:0,y:-c.height-_,...Gs}:o<n&&o>=a?{x:0,y:c.height+_,...Gs}:{x:0,y:0,...Gs}};function eb(e,t,n){const s=e[t],o=e[t-1],r=e[t+1];return s?n<t?o?s.top-(o.top+o.height):r?r.top-(s.top+s.height):0:r?r.top-(s.top+s.height):o?s.top-(o.top+o.height):0:0}const il="Sortable",rl=Re.createContext({activeIndex:-1,containerId:il,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:ol,disabled:{draggable:!1,droppable:!1}});function tb(e){let{children:t,id:n,items:s,strategy:o=ol,disabled:r=!1}=e;const{active:a,dragOverlay:c,droppableRects:_,over:f,measureDroppableContainers:p}=nl(),m=bs(il,n),h=c.rect!==null,b=d.useMemo(()=>s.map(A=>typeof A=="object"&&"id"in A?A.id:A),[s]),k=a!=null,C=a?b.indexOf(a.id):-1,g=f?b.indexOf(f.id):-1,S=d.useRef(b),w=!Jv(b,S.current),P=g!==-1&&C===-1||w,j=Qv(r);jt(()=>{w&&k&&p(b)},[w,b,k,p]),d.useEffect(()=>{S.current=b},[b]);const N=d.useMemo(()=>({activeIndex:C,containerId:m,disabled:j,disableTransforms:P,items:b,overIndex:g,useDragOverlay:h,sortedRects:Kv(b,_),strategy:o}),[C,m,j.draggable,j.droppable,P,b,g,_,h,o]);return Re.createElement(rl.Provider,{value:N},t)}const nb=e=>{let{id:t,items:n,activeIndex:s,overIndex:o}=e;return sl(n,s,o).indexOf(t)},sb=e=>{let{containerId:t,isSorting:n,wasDragging:s,index:o,items:r,newIndex:a,previousItems:c,previousContainerId:_,transition:f}=e;return!f||!s||c!==r&&o===a?!1:n?!0:a!==o&&t===_},ob={duration:200,easing:"ease"},al="transform",ib=Vt.Transition.toString({property:al,duration:0,easing:"linear"}),rb={roleDescription:"sortable"};function ab(e){let{disabled:t,index:n,node:s,rect:o}=e;const[r,a]=d.useState(null),c=d.useRef(n);return jt(()=>{if(!t&&n!==c.current&&s.current){const _=o.current;if(_){const f=Vn(s.current,{ignoreTransform:!0}),p={x:_.left-f.left,y:_.top-f.top,scaleX:_.width/f.width,scaleY:_.height/f.height};(p.x||p.y)&&a(p)}}n!==c.current&&(c.current=n)},[t,n,s,o]),d.useEffect(()=>{r&&a(null)},[r]),r}function cb(e){let{animateLayoutChanges:t=sb,attributes:n,disabled:s,data:o,getNewIndex:r=nb,id:a,strategy:c,resizeObserverConfig:_,transition:f=ob}=e;const{items:p,containerId:m,activeIndex:h,disabled:b,disableTransforms:k,sortedRects:C,overIndex:g,useDragOverlay:S,strategy:w}=d.useContext(rl),P=lb(s,b),j=p.indexOf(a),N=d.useMemo(()=>({sortable:{containerId:m,index:j,items:p},...o}),[m,o,j,p]),A=d.useMemo(()=>p.slice(p.indexOf(a)),[p,a]),{rect:I,node:B,isOver:L,setNodeRef:D}=Av({id:a,data:N,disabled:P.droppable,resizeObserverConfig:{updateMeasurementsFor:A,..._}}),{active:V,activatorEvent:X,activeNodeRect:ye,attributes:je,setNodeRef:F,listeners:Z,isDragging:R,over:Q,setActivatorNodeRef:ee,transform:pe}=Ev({id:a,data:N,attributes:{...rb,...n},disabled:P.draggable}),ze=hy(D,F),ve=!!V,O=ve&&!k&&Zs(h)&&Zs(g),H=!S&&R,K=H&&O?pe:null,ne=O?K??(c??w)({rects:C,activeNodeRect:ye,activeIndex:h,overIndex:g,index:j}):null,oe=Zs(h)&&Zs(g)?r({id:a,items:p,activeIndex:h,overIndex:g}):j,ue=V?.id,U=d.useRef({activeId:ue,items:p,newIndex:oe,containerId:m}),W=p!==U.current.items,Pe=t({active:V,containerId:m,isDragging:R,isSorting:ve,id:a,index:j,items:p,newIndex:U.current.newIndex,previousItems:U.current.items,previousContainerId:U.current.containerId,transition:f,wasDragging:U.current.activeId!=null}),Ye=ab({disabled:!Pe,index:j,node:B,rect:I});return d.useEffect(()=>{ve&&U.current.newIndex!==oe&&(U.current.newIndex=oe),m!==U.current.containerId&&(U.current.containerId=m),p!==U.current.items&&(U.current.items=p)},[ve,oe,m,p]),d.useEffect(()=>{if(ue===U.current.activeId)return;if(ue!=null&&U.current.activeId==null){U.current.activeId=ue;return}const nt=setTimeout(()=>{U.current.activeId=ue},50);return()=>clearTimeout(nt)},[ue]),{active:V,activeIndex:h,attributes:je,data:N,rect:I,index:j,newIndex:oe,items:p,isOver:L,isSorting:ve,isDragging:R,listeners:Z,node:B,overIndex:g,over:Q,setNodeRef:ze,setActivatorNodeRef:ee,setDroppableNodeRef:D,setDraggableNodeRef:F,transform:Ye??ne,transition:$e()};function $e(){if(Ye||W&&U.current.newIndex===j)return ib;if(!(H&&!Eo(X)||!f)&&(ve||Pe))return Vt.Transition.toString({...f,property:al})}}function lb(e,t){var n,s;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e?.draggable)!=null?n:t.draggable,droppable:(s=e?.droppable)!=null?s:t.droppable}}function ho(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const _b=[re.Down,re.Right,re.Up,re.Left],Ix=(e,t)=>{let{context:{active:n,collisionRect:s,droppableRects:o,droppableContainers:r,over:a,scrollableAncestors:c}}=t;if(_b.includes(e.code)){if(e.preventDefault(),!n||!s)return;const _=[];r.getEnabled().forEach(m=>{if(!m||m!=null&&m.disabled)return;const h=o.get(m.id);if(h)switch(e.code){case re.Down:s.top<h.top&&_.push(m);break;case re.Up:s.top>h.top&&_.push(m);break;case re.Left:s.left>h.left&&_.push(m);break;case re.Right:s.left<h.left&&_.push(m);break}});const f=Oy({collisionRect:s,droppableRects:o,droppableContainers:_});let p=Lc(f,"id");if(p===a?.id&&f.length>1&&(p=f[1].id),p!=null){const m=r.get(n.id),h=r.get(p),b=h?o.get(h.id):null,k=h?.node.current;if(k&&b&&m&&h){const g=To(k).some((A,I)=>c[I]!==A),S=cl(m,h),w=fb(m,h),P=g||!S?{x:0,y:0}:{x:w?s.width-b.width:0,y:w?s.height-b.height:0},j={x:b.left,y:b.top};return P.x&&P.y?j:hs(j,P)}}}};function cl(e,t){return!ho(e)||!ho(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function fb(e,t){return!ho(e)||!ho(t)||!cl(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}class db extends po{static activators=po.activators.map(t=>({...t,handler:(n,s)=>n.nativeEvent.pointerType==="mouse"&&t.handler(n,s)}))}const ll=50,pb=20,ub=2048,hb=64*1024;function go(e){if(typeof e!="string"||!e||e.length>ub||e.includes("\0")||kb(e))return null;const t=e.replace(/\\/g,"/").replace(/\/+$/,"");return!t||t.startsWith("/")||/^[a-z]:\//i.test(t)||t.startsWith("//")||t.split("/").some(s=>!s||s==="."||s==="..")?null:t}function gb(e){if(!Array.isArray(e))return[];const t=new Set,n=[];let s=0;for(const o of e){if(!o||typeof o!="object")continue;const r=o,a=go(r.path);if(!(!a||t.has(a))&&!(s+a.length>hb)&&(t.add(a),s+=a.length,n.push({path:a,pinned:r.pinned===!0}),n.length===ll))break}return n}function mb(e){if(!e||typeof e!="object")return null;const t=e;if(!vb(t.repositoryId)||!bb(t.updatedAt))return null;const n=gb(t.tabs);if(n.length===0)return null;const s=go(t.previewPath),o=n.find(f=>f.path===s&&!f.pinned)??null,r=o?o.path:null,a=go(t.activePath),c=n.find(f=>f.path===a)??n[n.length-1],_=c?c.path:null;return{repositoryId:t.repositoryId,tabs:n,activePath:_,previewPath:r,updatedAt:t.updatedAt}}function yb(e){if(!Array.isArray(e))return[];const t=new Map;for(const n of e){const s=mb(n);if(!s)continue;const o=t.get(s.repositoryId);(!o||ya(s,o)<0)&&t.set(s.repositoryId,s)}return[...t.values()].sort(ya).slice(0,pb)}function vb(e){return typeof e=="string"&&/^[0-9a-f]{16}$/.test(e)}function ya(e,t){return t.updatedAt.localeCompare(e.updatedAt)||e.repositoryId.localeCompare(t.repositoryId)}function bb(e){if(typeof e!="string")return!1;const t=Date.parse(e);return Number.isFinite(t)&&new Date(t).toISOString()===e}function kb(e){return[...e].some(t=>t.charCodeAt(0)<32||t.charCodeAt(0)===127)}const wb=50*1024*1024,pt={tabs:[],activePath:null,previewPath:null,activationCounter:0};function xb(e,t,n="preview"){const s=go(t);if(!s)return{session:e,evictedPath:null,overCap:!1};const o=e.tabs.find(h=>h.path===s);if(o){const h=n==="pinned"?!0:o.pinned,b=e.tabs.map(C=>C.path===s?{...C,pinned:h}:C),k=n==="pinned"&&e.previewPath===s?null:e.previewPath;return{session:In({...e,tabs:b,previewPath:k},s),evictedPath:null,overCap:!1}}const r={path:s,pinned:n==="pinned",dirty:!1,missing:!1,activatedAt:0},a=n==="preview"&&e.previewPath?e.tabs.findIndex(h=>h.path===e.previewPath&&!h.dirty):-1;if(a>=0){const h=e.tabs[a],b=[...e.tabs];return b[a]=r,{session:In({...e,tabs:b,previewPath:s},s),evictedPath:h.path,overCap:!1}}let c=[...e.tabs],_=null,f=!1;if(c.length>=ll){const h=Tb(c,e.activePath);h?(_=h.path,c=c.filter(b=>b.path!==h.path)):f=!0}c.push(r);const p=n==="preview"?s:e.previewPath;return{session:In({...e,tabs:c,previewPath:p===_?null:p},s),evictedPath:_,overCap:f}}function jb(e,t){return e.tabs.some(n=>n.path===t)?In(e,t):e}function Us(e,t,n){const s=e.tabs.find(r=>r.path===t);if(!s||s.dirty===n)return e;const o=e.tabs.map(r=>r.path===t?{...r,dirty:n,pinned:n?!0:r.pinned}:r);return{...e,tabs:o,previewPath:n&&e.previewPath===t?null:e.previewPath}}function _l(e,t,n){const s=e.tabs.find(o=>o.path===t);return!s||s.missing===n?e:{...e,tabs:e.tabs.map(o=>o.path===t?{...o,missing:n}:o)}}function fl(e,t){const n=e.tabs.findIndex(c=>c.path===t);if(n<0)return{session:e,activePath:e.activePath};const s=e.tabs.filter(c=>c.path!==t),o=e.previewPath===t?null:e.previewPath;if(e.activePath!==t)return{session:{...e,tabs:s,previewPath:o},activePath:e.activePath};const r=s[n]??s[n-1]??null,a={...e,tabs:s,previewPath:o,activePath:r?r.path:null};return{session:r?In(a,r.path):a,activePath:r?r.path:null}}function dl(e,t,n){const s=e.tabs.findIndex(c=>c.path===t);if(s<0)return e;const o=Math.max(0,Math.min(e.tabs.length-1,n));if(o===s)return e;const r=[...e.tabs],[a]=r.splice(s,1);return r.splice(o,0,a),{...e,tabs:r}}function Pb(e,t){const n=new Map;if(t.length===0)return{session:e,renamed:n};const s=e.tabs.map(c=>{const _=Ob(c.path,t);return _!==c.path&&n.set(c.path,_),_===c.path?c:{...c,path:_}});if(n.size===0)return{session:e,renamed:n};const o=new Set,r=[];for(const c of s)o.has(c.path)||(o.add(c.path),r.push(c));const a=c=>{if(!c)return null;const _=n.get(c)??c;return o.has(_)?_:null};return{session:{...e,tabs:r,activePath:a(e.activePath),previewPath:a(e.previewPath)},renamed:n}}function va(e,t){if(t.length===0)return{session:e,closedPaths:[],retainedPaths:[]};const n=[],s=[];let o=e;for(const r of e.tabs)t.some(a=>pl(a,r.path))&&(r.dirty?(r.missing||s.push(r.path),o=_l(o,r.path,!0)):(n.push(r.path),o=fl(o,r.path).session));return{session:o,closedPaths:n,retainedPaths:s}}function Cb(e,t){let n=e;for(const s of e.tabs)s.missing&&t.has(s.path)&&(n=_l(n,s.path,!1));return n}function Sb(e){if(!e)return pt;const t=e.tabs.map((o,r)=>({path:o.path,pinned:o.pinned,dirty:!1,missing:!1,activatedAt:r+1}));if(t.length===0)return pt;const n=t.some(o=>o.path===e.activePath)?e.activePath:null,s=t.some(o=>o.path===e.previewPath&&!o.pinned)?e.previewPath:null;return{tabs:t,activePath:n,previewPath:s,activationCounter:t.length+1}}function ba(e){return{tabs:e.tabs.map(t=>({path:t.path,pinned:t.pinned})),activePath:e.activePath,previewPath:e.previewPath}}function zb(e){const t=new Map;for(const s of e){const o=Ab(s.path),r=t.get(o);r?r.push(s.path):t.set(o,[s.path])}const n=new Map;for(const[s,o]of t){if(o.length===1){n.set(o[0],{name:s,suffix:null});continue}for(const r of o)n.set(r,{name:s,suffix:Db(r,o)})}return n}function Rb(e,t){const n=e.tabs.findIndex(s=>s.path===e.activePath);if(n<0)return{session:e,closeRequest:null};switch(t){case"close":return{session:e,closeRequest:e.activePath};case"next":case"previous":{const s=t==="next"?1:-1,o=e.tabs[(n+s+e.tabs.length)%e.tabs.length];return{session:In(e,o.path),closeRequest:null}}case"move-left":case"move-right":{const s=n+(t==="move-left"?-1:1);return s<0||s>=e.tabs.length?{session:e,closeRequest:null}:{session:dl(e,e.tabs[n].path,s),closeRequest:null}}}}function ni(e){return e.length*2}function pl(e,t){return t===e||t.startsWith(`${e}/`)}function Nb(e,t){return t.length===0?[]:e.tabs.filter(n=>n.dirty&&t.some(s=>pl(s,n.path))).map(n=>n.path)}function ka(e){return e.tabs.filter(t=>t.dirty).map(t=>t.path)}function $b(e,t,n){return e.scrollWidth<=e.clientWidth||Math.abs(t)>Math.abs(n)||n===0?null:n}function Eb(e){if(e.scrollWidth<=e.clientWidth)return{start:!1,end:!1};const t=e.scrollWidth-e.clientWidth;return{start:e.scrollLeft>1,end:e.scrollLeft<t-1}}function In(e,t){const n=e.activationCounter+1;return{...e,tabs:e.tabs.map(s=>s.path===t?{...s,activatedAt:n}:s),activePath:t,activationCounter:n}}function Tb(e,t){let n=null;for(const s of e)s.dirty||s.path===t||(!n||s.activatedAt<n.activatedAt)&&(n=s);return n}function Ob(e,t){for(const n of t)if(!(!n.from||!n.to)){if(e===n.from)return n.to;if(e.startsWith(`${n.from}/`))return`${n.to}${e.slice(n.from.length)}`}return e}function Ab(e){const t=e.lastIndexOf("/");return t<0?e:e.slice(t+1)}function Db(e,t){const n=e.split("/"),s=t.filter(o=>o!==e).map(o=>o.split("/"));for(let o=1;o<n.length;o+=1){const r=n.slice(Math.max(0,n.length-1-o),n.length-1).join("/");if(!s.some(c=>c.slice(Math.max(0,c.length-1-o),c.length-1).join("/")===r))return r}return n.slice(0,-1).join("/")||null}const ul={duration:180,easing:"cubic-bezier(0.2, 0, 0, 1)"};function Ib({session:e,onActivate:t,onPin:n,onClose:s,onReorder:o}){const r=d.useRef(null),a=d.useRef(new Map),[c,_]=d.useState({start:!1,end:!1}),[f,p]=d.useState(null),[m,h]=d.useState(!1),b=d.useMemo(()=>zb(e.tabs),[e.tabs]),k=Ny(Ry(db,{activationConstraint:{distance:5}})),C=f?e.tabs.find(w=>w.path===f)??null:null,g=d.useCallback(()=>{const w=r.current;if(!w)return;const P=Eb({scrollLeft:w.scrollLeft,clientWidth:w.clientWidth,scrollWidth:w.scrollWidth});_(j=>j.start===P.start&&j.end===P.end?j:P)},[]);if(d.useLayoutEffect(g,[g,e.tabs]),d.useEffect(()=>{const w=r.current;if(!w||typeof ResizeObserver>"u")return;const P=new ResizeObserver(g);return P.observe(w),()=>P.disconnect()},[g]),d.useEffect(()=>{e.activePath&&a.current.get(e.activePath)?.scrollIntoView({block:"nearest",inline:"nearest"})},[e.activePath]),d.useEffect(()=>{const w=r.current;if(!w)return;const P=j=>{const N=$b({scrollLeft:w.scrollLeft,clientWidth:w.clientWidth,scrollWidth:w.scrollWidth},j.deltaX,j.deltaY);N!==null&&(j.preventDefault(),w.scrollLeft+=N)};return w.addEventListener("wheel",P,{passive:!1}),()=>w.removeEventListener("wheel",P)},[]),d.useEffect(()=>{const w=window.matchMedia("(prefers-reduced-motion: reduce)"),P=()=>h(w.matches);return P(),w.addEventListener("change",P),()=>w.removeEventListener("change",P)},[]),e.tabs.length===0)return null;const S=({active:w,over:P})=>{if(p(null),!P||w.id===P.id)return;const j=e.tabs.findIndex(N=>N.path===P.id);j>=0&&o(String(w.id),j)};return i.jsxs(Rv,{sensors:k,collisionDetection:Ty,onDragStart:({active:w})=>p(String(w.id)),onDragCancel:()=>p(null),onDragEnd:S,children:[i.jsx(tb,{items:e.tabs.map(w=>w.path),strategy:Xv,children:i.jsx("div",{id:cy,ref:r,className:["open-files-strip",f?"sorting":"",c.start?"fade-start":"",c.end?"fade-end":""].filter(Boolean).join(" "),role:"tablist","aria-label":"Open files","aria-orientation":"horizontal",onScroll:g,children:e.tabs.map(w=>i.jsx(Mb,{tab:w,label:b.get(w.path),active:e.activePath===w.path,preview:e.previewPath===w.path,register:P=>{P?a.current.set(w.path,P):a.current.delete(w.path)},onActivate:t,onPin:n,onClose:s},w.path))})}),i.jsx(Wv,{dropAnimation:m?null:ul,children:C&&i.jsx(Lb,{tab:C,label:b.get(C.path),preview:e.previewPath===C.path,overlay:!0})})]})}function Mb({tab:e,label:t,active:n,preview:s,register:o,onActivate:r,onPin:a,onClose:c}){const{listeners:_,setNodeRef:f,transform:p,transition:m,isDragging:h}=cb({id:e.path,transition:ul}),b=[s?"preview":null,e.dirty?"unsaved changes":null,e.missing?"file no longer on disk":null].filter(Boolean).join(", "),k={transform:Vt.Transform.toString(p),transition:m},C=g=>{f(g),o(g)};return i.jsxs(ke,{children:[i.jsx(we,{render:i.jsx("div",{ref:C,role:"tab",tabIndex:0,"aria-selected":n,"aria-current":n?"page":void 0,"aria-keyshortcuts":"Control+Shift+PageUp Control+Shift+PageDown","aria-label":b?`${e.path}, ${b}`:e.path,className:gl(e,{active:n,preview:s,dragging:h}),style:k,..._,onClick:()=>r(e.path),onDoubleClick:()=>a(e.path),onAuxClick:g=>{g.button===1&&(g.preventDefault(),c(e.path))},onKeyDown:g=>{if(g.key==="Enter"||g.key===" "){g.preventDefault(),r(e.path);return}g.key==="Delete"&&(g.preventDefault(),c(e.path))}}),children:i.jsx(hl,{tab:e,label:t,onClose:c})}),i.jsx(xe,{children:b?`${e.path} · ${b}`:e.path})]})}function Lb({tab:e,label:t,preview:n,overlay:s=!1}){return i.jsx("div",{className:gl(e,{preview:n,overlay:s}),"aria-hidden":"true",children:i.jsx(hl,{tab:e,label:t})})}function hl({tab:e,label:t,onClose:n}){return i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"open-file-tab-name",children:t?.name??e.path}),t?.suffix&&i.jsx("span",{className:"open-file-tab-suffix",children:t.suffix}),n?i.jsxs("button",{type:"button",className:"open-file-tab-close","aria-label":`Close ${e.path}`,onPointerDown:s=>s.stopPropagation(),onKeyDown:s=>s.stopPropagation(),onClick:s=>{s.stopPropagation(),n(e.path)},children:[e.dirty&&i.jsx("span",{className:"open-file-tab-dot","aria-hidden":"true"}),i.jsx(Ln,{className:"open-file-tab-close-icon","aria-hidden":"true"})]}):i.jsxs("span",{className:"open-file-tab-close overlay-close","aria-hidden":"true",children:[e.dirty&&i.jsx("span",{className:"open-file-tab-dot"}),i.jsx(Ln,{className:"open-file-tab-close-icon"})]})]})}function gl(e,t){return["open-file-tab",t.active?"active":"",t.preview?"preview":"",e.dirty?"dirty":"",e.missing?"missing":"",t.dragging?"dragging":"",t.overlay?"drag-overlay":""].filter(Boolean).join(" ")}function wi(e){return e.replace(/\\/g,"/").replace(/\/+$/,"").toLocaleLowerCase()}function Fb(e,t){return wi(e)===wi(t)}function si(e){const t=e.replace(/[\\/]+$/,"").split(/[\\/]/);return t[t.length-1]||e}function Mx(e,t){const n=t.trim().toLocaleLowerCase();return n?e.filter(s=>[s.name,s.fullName,s.upstream??"",s.shortOid,s.subject].some(o=>o.toLocaleLowerCase().includes(n))):e}function Lx(e,t){const n=t.trim().toLocaleLowerCase();return(n?e.filter(o=>[o.path,o.branch??"",si(o.path)].some(r=>r.toLocaleLowerCase().includes(n))):[...e]).sort((o,r)=>o.main!==r.main?o.main?-1:1:o.current!==r.current?o.current?-1:1:si(o.path).localeCompare(si(r.path),"en",{sensitivity:"base",numeric:!0}))}function qb(e){const t=[];return e.current?t.push({label:"Current",tone:"current"}):e.worktreePath&&t.push({label:"In a worktree",tone:"warning"}),e.upstream?(e.ahead>0&&t.push({label:`↑${e.ahead}`,tone:"neutral"}),e.behind>0&&t.push({label:`↓${e.behind}`,tone:"neutral"})):e.remote||t.push({label:"No upstream",tone:"neutral"}),t}function Fx(e){return qb({current:e.deletion==="current",worktreePath:e.deletion==="checked-out"?e.worktreePath:null,upstream:e.upstream,ahead:e.ahead,behind:e.behind})}function qx(e){const t=[];return e.main&&t.push({label:"Main",tone:"neutral"}),e.current&&t.push({label:"Open",tone:"current"}),e.bare&&t.push({label:"Bare",tone:"warning"}),e.detached&&t.push({label:"Detached HEAD",tone:"warning"}),e.locked&&t.push({label:"Locked",tone:"warning"}),e.prunable&&t.push({label:"Missing",tone:"warning"}),t}function Zx(e,t=null){switch(e.deletion){case"safe":return{allowed:!0,reason:`Fully merged into ${e.comparisonBase??"its comparison base"}, so Git can delete it without losing commits.`};case"current":return{allowed:!1,reason:"This is the branch you have checked out. Switch to another branch first."};case"checked-out":return{allowed:!1,reason:`Checked out in the worktree ${e.worktreePath??"another worktree"}. Close or switch that worktree first.`};case"unmerged":return{allowed:!1,forceAllowed:!0,reason:wa(t)??`${e.uniqueCommits} ${e.uniqueCommits===1?"commit is":"commits are"} not in ${e.comparisonBase??"the comparison base"}. Force deletion may make those commits inaccessible.`};default:return{allowed:!1,forceAllowed:!0,reason:wa(t)??(e.comparisonBase?`${e.comparisonBase} is not available locally, so Git cannot tell whether this branch is merged. Force deletion is still available.`:"Git cannot tell whether this branch is merged. Force deletion is still available.")}}}function wa(e){return e?e.state==="MERGED"?`GitHub PR #${e.number} is merged into ${e.baseRefName}, but the local comparison ref is unavailable or has different ancestry. Local deletion requires force.`:e.state==="OPEN"?`GitHub PR #${e.number} is still open. Force deletion removes only the local branch.`:`GitHub PR #${e.number} was closed without merging. Force deletion may make branch-only commits inaccessible.`:null}function Bx(e){if(e.main)return{allowed:!1,reason:"This is the repository's main worktree. Git can never remove it."};if(e.current)return{allowed:!1,reason:"OpenTig has this worktree open. Switch to another worktree first."};if(e.bare)return{allowed:!1,reason:"This entry is a bare repository, not a removable worktree."};if(e.locked)return{allowed:!1,reason:`Locked${e.locked==="locked"?"":`: ${e.locked}`}. Unlock it in Git before removing it.`};if(e.prunable)return{allowed:!1,reason:"Git can no longer find this worktree on disk, so there is nothing to remove."};if(e.operation)return{allowed:!1,forceAllowed:!0,reason:`A ${e.operation} is in progress here. Force removal permanently discards it and every local change.`};const t=Zb(e);return t?{allowed:!1,forceAllowed:!0,reason:`${t} would be permanently lost by force removal.`}:{allowed:!0,reason:"No local changes. Removing it deletes the folder from disk and leaves its branch intact."}}function Zb(e){const t=[[e.conflictCount,"conflicted"],[e.stagedCount,"staged"],[e.unstagedCount,"unstaged"],[e.untrackedCount,"untracked"]],n=t.filter(([o])=>o>0).map(([o,r])=>`${o} ${r}`);if(n.length===0)return null;const s=t.reduce((o,[r])=>o+r,0);return`${n.join(", ")} ${s===1?"change":"changes"}`}function Gx(e,t,n){if(e.length===0)return null;if(n&&e.includes(n))return n;const s=n?t.indexOf(n):-1;return s<0?e[0]??null:e[Math.min(s,e.length-1)]??null}function Ux(e){return e.fullName}function Hx(e){return wi(e.path)}function mo({src:e,fallback:t=null}){const[n,s]=d.useState(!1);return d.useEffect(()=>{s(!1)},[e]),!e||n?t:i.jsx("img",{className:"repo-select-favicon",src:e,alt:"","aria-hidden":"true",onError:()=>s(!0)})}function ml(e){const[t,n]=d.useState(()=>new Map);return d.useEffect(()=>{let s=!1;const o=new Set;return Promise.all(e.map(async r=>{if(!o.has(r.key)){o.add(r.key);try{const a=await T.repository.getFavicon(r.recent.id);if(s||!a)return;n(c=>{if(c.get(r.key)===a.dataUrl)return c;const _=new Map(c);return _.set(r.key,a.dataUrl),_})}catch{}}})),()=>{s=!0}},[e]),t}const Vx=60;function $t(e){return e.replace(/\\/g,"/").replace(/\/+$/,"").toLowerCase()}function yl(e){const t=new Map;for(const n of e){const s=$t(n.commonDir),o=n.commonDir.replace(/[\\/]\.git[\\/]?$/i,""),r={key:s,name:n.repositoryName,rootPath:o,recent:n};(!t.get(s)||$t(n.path)===$t(o))&&t.set(s,r)}return[...t.values()]}function yo(e){return e.replace(/\\/g,"/").replace(/\/+$/,"")}function Wx(e,t=3){const n=yo(e),s=n.split("/");return s.length>t?`…/${s.slice(-t).join("/")}`:n}function Bb(e){return yo(e.recent.path).toLocaleLowerCase()!==yo(e.rootPath).toLocaleLowerCase()}function Gb(e){const t=yo(e.recent.path).split("/").pop();return t&&t.length>0?t:e.name}function Ub(e,t){const n=t?t.detached||!t.branch?"Detached HEAD":t.branch:null;if(!Bb(e))return n??"";const s=Gb(e);return n?`${n} · ${s}`:s}function Hb(e,t){const n=yl(e),s=new Map(n.map(a=>[a.key,a])),o=new Set,r=t.flatMap(a=>{const c=a.repositoryKeys.flatMap(_=>{const f=$t(_),p=s.get(f);return!p||o.has(f)?[]:(o.add(f),[p])});return c.length>0?[{id:a.id,name:a.name,repositories:c}]:[]});return{repositories:n,projectSections:r,unassigned:n.filter(a=>!o.has(a.key))}}function Vb(e){return[...e.projectSections.flatMap(t=>t.repositories),...e.unassigned]}function Wb(e,t,n=new Date().toISOString()){const s={...t,lastOpenedAt:n};return e.some(o=>o.id===t.id)?e.map(o=>o.id===t.id?s:o):[...e,s]}let Kb=0;function Hs(e,t,n){return{id:`repository-sync:${e}:${t}:${++Kb}`,title:n}}function Bn(e){return!!(e?.branch&&e.upstream===null&&!e.detached&&!e.unborn)}function Jb(e,t){return t?[t]:e?[...e.behind>0?["pull"]:[],...e.ahead>0||Bn(e)?["push"]:[]]:[]}function Qb(e,t){return t.status==="up-to-date"?{title:`${e} is already up to date`}:{title:`${e}: ${t.commits} ${t.commits===1?"commit pulled":"commits pulled"}`,...vl(t)}}function Xb(e){return e.status==="up-to-date"?{title:"Branch is already up to date"}:{title:`${e.commits} ${e.commits===1?"commit pulled":"commits pulled"}`,...vl(e)}}function vl(e){const t=[];return e.rebased&&e.localCommits>0&&t.push(e.localCommits===1?"Your local commit was kept on top and is ready to push.":`Your ${e.localCommits} local commits were kept on top and are ready to push.`),e.restoredLocalChanges&&t.push("Local and staged changes were restored."),t.length>0?{description:t.join(" ")}:{}}function Yb(e,t){return t.status==="blocked-conflicts"?{title:`Could not pull ${e}`,description:`${t.files.length} pending ${t.files.length===1?"conflict":"conflicts"} must be resolved.`,duration:1e4}:t.status==="blocked-operation"?{title:`Could not pull ${e}`,description:`Finish or cancel ${t.operation} first.`,duration:1e4}:t.status==="no-upstream"?{title:`Could not pull ${e}`,description:"Current branch has no upstream configured.",duration:1e4}:t.status==="diverged"?{title:`Could not pull ${e}`,description:`Branch is ${t.ahead} ahead and ${t.behind} behind.`,duration:1e4}:t.status==="rebase-conflict"?{title:`Could not pull ${e}`,description:t.files.length>0?`Your local commits overlap the remote changes in ${t.files.length===1?t.files[0]:`${t.files.length} files`}. The branch was left unchanged.`:"Your local commits overlap the remote changes. The branch was left unchanged.",duration:1e4}:t.status==="stash-conflict"?{title:t.updated?`${e} updated with local conflicts`:`Could not restore ${e}`,description:"Safety stash was preserved. Resolve conflicts before continuing.",duration:12e3}:{title:`Could not restore ${e}`,description:t.recoveredChanges?"Some local changes were recovered; safety stash was preserved.":"Worktree remains clean; safety stash was preserved.",duration:12e3}}function ek(e,t){return t.status==="published"?{title:`${e}: branch published`,description:`${t.remote}/${t.branch}`}:t.status==="success"?{title:`${e}: ${t.commits} ${t.commits===1?"commit pushed":"commits pushed"}`}:{title:`${e}: no commits pending push`}}function tk(e,t){return t.status==="remote-required"?{title:`Choose a remote for ${e}`,description:"Select where to publish the branch."}:t.status==="blocked-conflicts"?{title:`Could not push ${e}`,description:`${t.files.length} pending ${t.files.length===1?"conflict":"conflicts"} must be resolved.`,duration:1e4}:t.status==="blocked-operation"?{title:`Could not push ${e}`,description:`Finish or cancel ${t.operation} first.`,duration:1e4}:t.status==="no-upstream"?{title:`Could not push ${e}`,description:"Current branch has no upstream configured.",duration:1e4}:t.status==="diverged"?{title:`Could not push ${e}`,description:`Remote has new changes; branch is ${t.ahead} ahead and ${t.behind} behind. Pull first — OpenTig rebases your local commits on top when there are no conflicts.`,duration:1e4}:{title:`Could not push ${e}`,description:t.message,duration:1e4}}function Hi(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var vn=Hi();function bl(e){vn=e}var dn={exec:()=>null};function Rn(e){let t=[];return n=>{let s=Math.max(0,Math.min(3,n-1)),o=t[s];return o||(o=e(s),t[s]=o),o}}function _e(e,t=""){let n=typeof e=="string"?e:e.source,s={replace:(o,r)=>{let a=typeof r=="string"?r:r.source;return a=a.replace(Xe.caret,"$1"),n=n.replace(o,a),s},getRegex:()=>new RegExp(n,t)};return s}var nk=((e="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),Xe={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Rn(e=>new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Rn(e=>new RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Rn(e=>new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:Rn(e=>new RegExp(`^ {0,${e}}#`)),htmlBeginRegex:Rn(e=>new RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Rn(e=>new RegExp(`^ {0,${e}}>`))},sk=/^(?:[ \t]*(?:\n|$))+/,ok=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ik=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ws=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,rk=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Vi=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,kl=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,wl=_e(kl).replace(/bull/g,Vi).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),ak=_e(kl).replace(/bull/g,Vi).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Wi=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ck=/^[^\n]+/,Ki=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,lk=_e(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Ki).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),_k=_e(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Vi).getRegex(),Do="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ji=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,fk=_e("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Ji).replace("tag",Do).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),xl=_e(Wi).replace("hr",ws).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Do).getRegex(),dk=_e(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",xl).getRegex(),Qi={blockquote:dk,code:ok,def:lk,fences:ik,heading:rk,hr:ws,html:fk,lheading:wl,list:_k,newline:sk,paragraph:xl,table:dn,text:ck},xa=_e("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ws).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Do).getRegex(),pk={...Qi,lheading:ak,table:xa,paragraph:_e(Wi).replace("hr",ws).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",xa).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Do).getRegex()},uk={...Qi,html:_e(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ji).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:dn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:_e(Wi).replace("hr",ws).replace("heading",` *#{1,6} *[^
|
|
72
|
+
]`).replace("lheading",wl).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},hk=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,gk=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,jl=/^( {2,}|\\)\n(?!\s*$)/,mk=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Wn=/[\p{P}\p{S}]/u,Io=/[\s\p{P}\p{S}]/u,Xi=/[^\s\p{P}\p{S}]/u,yk=_e(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Io).getRegex(),Pl=/(?!~)[\p{P}\p{S}]/u,vk=/(?!~)[\s\p{P}\p{S}]/u,bk=/(?:[^\s\p{P}\p{S}]|~)/u,kk=_e(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",nk?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Cl=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,wk=_e(Cl,"u").replace(/punct/g,Wn).getRegex(),xk=_e(Cl,"u").replace(/punct/g,Pl).getRegex(),Sl="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",jk=_e(Sl,"gu").replace(/notPunctSpace/g,Xi).replace(/punctSpace/g,Io).replace(/punct/g,Wn).getRegex(),Pk=_e(Sl,"gu").replace(/notPunctSpace/g,bk).replace(/punctSpace/g,vk).replace(/punct/g,Pl).getRegex(),Ck=_e("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Xi).replace(/punctSpace/g,Io).replace(/punct/g,Wn).getRegex(),Sk=_e(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Wn).getRegex(),zk="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Rk=_e(zk,"gu").replace(/notPunctSpace/g,Xi).replace(/punctSpace/g,Io).replace(/punct/g,Wn).getRegex(),Nk=_e(/\\(punct)/,"gu").replace(/punct/g,Wn).getRegex(),$k=_e(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Ek=_e(Ji).replace("(?:-->|$)","-->").getRegex(),Tk=_e("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Ek).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),vo=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Ok=_e(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",vo).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),zl=_e(/^!?\[(label)\]\[(ref)\]/).replace("label",vo).replace("ref",Ki).getRegex(),Rl=_e(/^!?\[(ref)\](?:\[\])?/).replace("ref",Ki).getRegex(),Ak=_e("reflink|nolink(?!\\()","g").replace("reflink",zl).replace("nolink",Rl).getRegex(),ja=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Yi={_backpedal:dn,anyPunctuation:Nk,autolink:$k,blockSkip:kk,br:jl,code:gk,del:dn,delLDelim:dn,delRDelim:dn,emStrongLDelim:wk,emStrongRDelimAst:jk,emStrongRDelimUnd:Ck,escape:hk,link:Ok,nolink:Rl,punctuation:yk,reflink:zl,reflinkSearch:Ak,tag:Tk,text:mk,url:dn},Dk={...Yi,link:_e(/^!?\[(label)\]\((.*?)\)/).replace("label",vo).getRegex(),reflink:_e(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",vo).getRegex()},xi={...Yi,emStrongRDelimAst:Pk,emStrongLDelim:xk,delLDelim:Sk,delRDelim:Rk,url:_e(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",ja).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:_e(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",ja).getRegex()},Ik={...xi,br:_e(jl).replace("{2,}","*").getRegex(),text:_e(xi.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Vs={normal:Qi,gfm:pk,pedantic:uk},Yn={normal:Yi,gfm:xi,breaks:Ik,pedantic:Dk},Mk={"&":"&","<":"<",">":">",'"':""","'":"'"},Pa=e=>Mk[e];function Rt(e,t){if(t){if(Xe.escapeTest.test(e))return e.replace(Xe.escapeReplace,Pa)}else if(Xe.escapeTestNoEncode.test(e))return e.replace(Xe.escapeReplaceNoEncode,Pa);return e}function Ca(e){try{e=encodeURI(e).replace(Xe.percentDecode,"%")}catch{return null}return e}function Sa(e,t){let n=e.replace(Xe.findPipe,(r,a,c)=>{let _=!1,f=a;for(;--f>=0&&c[f]==="\\";)_=!_;return _?"|":" |"}),s=n.split(Xe.splitPipe),o=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),t)if(s.length>t)s.splice(t);else for(;s.length<t;)s.push("");for(;o<s.length;o++)s[o]=s[o].trim().replace(Xe.slashPipe,"|");return s}function Gt(e,t,n){let s=e.length;if(s===0)return"";let o=0;for(;o<s&&e.charAt(s-o-1)===t;)o++;return e.slice(0,s-o)}function za(e){let t=e.split(`
|
|
73
|
+
`),n=t.length-1;for(;n>=0&&Xe.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
|
|
74
|
+
`)}function Lk(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let s=0;s<e.length;s++)if(e[s]==="\\")s++;else if(e[s]===t[0])n++;else if(e[s]===t[1]&&(n--,n<0))return s;return n>0?-2:-1}function Fk(e,t=0){let n=t,s="";for(let o of e)if(o===" "){let r=4-n%4;s+=" ".repeat(r),n+=r}else s+=o,n++;return s}function Ra(e,t,n,s,o){let r=t.href,a=t.title||null,c=e[1].replace(o.other.outputLinkReplace,"$1");s.state.inLink=!0;let _={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:r,title:a,text:c,tokens:s.inlineTokens(c)};return s.state.inLink=!1,_}function qk(e,t,n){let s=e.match(n.other.indentCodeCompensation);if(s===null)return t;let o=s[1];return t.split(`
|
|
75
|
+
`).map(r=>{let a=r.match(n.other.beginningSpace);if(a===null)return r;let[c]=a;return c.length>=o.length?r.slice(o.length):r}).join(`
|
|
76
|
+
`)}var bo=class{options;rules;lexer;constructor(e){this.options=e||vn}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=this.options.pedantic?t[0]:za(t[0]),s=n.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n,codeBlockStyle:"indented",text:s}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],s=qk(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:s}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let s=Gt(n,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(n=s.trim())}return{type:"heading",raw:Gt(t[0],`
|
|
77
|
+
`),depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Gt(t[0],`
|
|
78
|
+
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=Gt(t[0],`
|
|
79
|
+
`).split(`
|
|
80
|
+
`),s="",o="",r=[];for(;n.length>0;){let a=!1,c=[],_;for(_=0;_<n.length;_++)if(this.rules.other.blockquoteStart.test(n[_]))c.push(n[_]),a=!0;else if(!a)c.push(n[_]);else break;n=n.slice(_);let f=c.join(`
|
|
81
|
+
`),p=f.replace(this.rules.other.blockquoteSetextReplace,`
|
|
82
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
|
|
83
|
+
${f}`:f,o=o?`${o}
|
|
84
|
+
${p}`:p;let m=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(p,r,!0),this.lexer.state.top=m,n.length===0)break;let h=r.at(-1);if(h?.type==="code")break;if(h?.type==="blockquote"){let b=h,k=b.raw+`
|
|
85
|
+
`+n.join(`
|
|
86
|
+
`),C=this.blockquote(k);r[r.length-1]=C,s=s.substring(0,s.length-b.raw.length)+C.raw,o=o.substring(0,o.length-b.text.length)+C.text;break}else if(h?.type==="list"){let b=h,k=b.raw+`
|
|
87
|
+
`+n.join(`
|
|
88
|
+
`),C=this.list(k);r[r.length-1]=C,s=s.substring(0,s.length-h.raw.length)+C.raw,o=o.substring(0,o.length-b.raw.length)+C.raw,n=k.substring(r.at(-1).raw.length).split(`
|
|
89
|
+
`);continue}}return{type:"blockquote",raw:s,tokens:r,text:o}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),s=n.length>1,o={type:"list",raw:"",ordered:s,start:s?+n.slice(0,-1):"",loose:!1,items:[]};n=s?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=s?n:"[*+-]");let r=this.rules.other.listItemRegex(n),a=!1;for(;e;){let _=!1,f="",p="";if(!(t=r.exec(e))||this.rules.block.hr.test(e))break;f=t[0],e=e.substring(f.length);let m=Fk(t[2].split(`
|
|
90
|
+
`,1)[0],t[1].length),h=e.split(`
|
|
91
|
+
`,1)[0],b=!m.trim(),k=0;if(this.options.pedantic?(k=2,p=m.trimStart()):b?k=t[1].length+1:(k=m.search(this.rules.other.nonSpaceChar),k=k>4?1:k,p=m.slice(k),k+=t[1].length),b&&this.rules.other.blankLine.test(h)&&(f+=h+`
|
|
92
|
+
`,e=e.substring(h.length+1),_=!0),!_){let C=this.rules.other.nextBulletRegex(k),g=this.rules.other.hrRegex(k),S=this.rules.other.fencesBeginRegex(k),w=this.rules.other.headingBeginRegex(k),P=this.rules.other.htmlBeginRegex(k),j=this.rules.other.blockquoteBeginRegex(k);for(;e;){let N=e.split(`
|
|
93
|
+
`,1)[0],A;if(h=N,this.options.pedantic?(h=h.replace(this.rules.other.listReplaceNesting," "),A=h):A=h.replace(this.rules.other.tabCharGlobal," "),S.test(h)||w.test(h)||P.test(h)||j.test(h)||C.test(h)||g.test(h))break;if(A.search(this.rules.other.nonSpaceChar)>=k||!h.trim())p+=`
|
|
94
|
+
`+A.slice(k);else{if(b||m.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||S.test(m)||w.test(m)||g.test(m))break;p+=`
|
|
95
|
+
`+h}b=!h.trim(),f+=N+`
|
|
96
|
+
`,e=e.substring(N.length+1),m=A.slice(k)}}o.loose||(a?o.loose=!0:this.rules.other.doubleBlankLine.test(f)&&(a=!0)),o.items.push({type:"list_item",raw:f,task:!!this.options.gfm&&this.rules.other.listIsTask.test(p),loose:!1,text:p,tokens:[]}),o.raw+=f}let c=o.items.at(-1);if(c)c.raw=c.raw.trimEnd(),c.text=c.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let _ of o.items){this.lexer.state.top=!1,_.tokens=this.lexer.blockTokens(_.text,[]);let f=_.tokens[0];if(_.task&&(f?.type==="text"||f?.type==="paragraph")){_.text=_.text.replace(this.rules.other.listReplaceTask,""),f.raw=f.raw.replace(this.rules.other.listReplaceTask,""),f.text=f.text.replace(this.rules.other.listReplaceTask,"");for(let m=this.lexer.inlineQueue.length-1;m>=0;m--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[m].src)){this.lexer.inlineQueue[m].src=this.lexer.inlineQueue[m].src.replace(this.rules.other.listReplaceTask,"");break}let p=this.rules.other.listTaskCheckbox.exec(_.raw);if(p){let m={type:"checkbox",raw:p[0]+" ",checked:p[0]!=="[ ]"};_.checked=m.checked,o.loose?_.tokens[0]&&["paragraph","text"].includes(_.tokens[0].type)&&"tokens"in _.tokens[0]&&_.tokens[0].tokens?(_.tokens[0].raw=m.raw+_.tokens[0].raw,_.tokens[0].text=m.raw+_.tokens[0].text,_.tokens[0].tokens.unshift(m)):_.tokens.unshift({type:"paragraph",raw:m.raw,text:m.raw,tokens:[m]}):_.tokens.unshift(m)}}else _.task&&(_.task=!1);if(!o.loose){let p=_.tokens.filter(h=>h.type==="space"),m=p.length>0&&p.some(h=>this.rules.other.anyLine.test(h.raw));o.loose=m}}if(o.loose)for(let _ of o.items){_.loose=!0;for(let f of _.tokens)f.type==="text"&&(f.type="paragraph")}return o}}html(e){let t=this.rules.block.html.exec(e);if(t){let n=za(t[0]);return{type:"html",block:!0,raw:n,pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:n}}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:Gt(t[0],`
|
|
97
|
+
`),href:s,title:o}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=Sa(t[1]),s=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
98
|
+
`):[],r={type:"table",raw:Gt(t[0],`
|
|
99
|
+
`),header:[],align:[],rows:[]};if(n.length===s.length){for(let a of s)this.rules.other.tableAlignRight.test(a)?r.align.push("right"):this.rules.other.tableAlignCenter.test(a)?r.align.push("center"):this.rules.other.tableAlignLeft.test(a)?r.align.push("left"):r.align.push(null);for(let a=0;a<n.length;a++)r.header.push({text:n[a],tokens:this.lexer.inline(n[a]),header:!0,align:r.align[a]});for(let a of o)r.rows.push(Sa(a,r.header.length).map((c,_)=>({text:c,tokens:this.lexer.inline(c),header:!1,align:r.align[_]})));return r}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let n=t[1].trim();return{type:"heading",raw:Gt(t[0],`
|
|
100
|
+
`),depth:t[2].charAt(0)==="="?1:2,text:n,tokens:this.lexer.inline(n)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
|
|
101
|
+
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let r=Gt(n.slice(0,-1),"\\");if((n.length-r.length)%2===0)return}else{let r=Lk(t[2],"()");if(r===-2)return;if(r>-1){let a=(t[0].indexOf("!")===0?5:4)+t[1].length+r;t[2]=t[2].substring(0,r),t[0]=t[0].substring(0,a).trim(),t[3]=""}}let s=t[2],o="";if(this.options.pedantic){let r=this.rules.other.pedanticHrefTitle.exec(s);r&&(s=r[1],o=r[3])}else o=t[3]?t[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?s=s.slice(1):s=s.slice(1,-1)),Ra(t,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let s=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=t[s.toLowerCase()];if(!o){let r=n[0].charAt(0);return{type:"text",raw:r,text:r}}return Ra(n,o,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let s=this.rules.inline.emStrongLDelim.exec(e);if(!(!s||!s[1]&&!s[2]&&!s[3]&&!s[4]||s[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[3])||!n||this.rules.inline.punctuation.exec(n))){let o=[...s[0]].length-1,r,a,c=o,_=0,f=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(f.lastIndex=0,t=t.slice(-1*e.length+o);(s=f.exec(t))!==null;){if(r=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!r)continue;if(a=[...r].length,s[3]||s[4]){c+=a;continue}else if((s[5]||s[6])&&o%3&&!((o+a)%3)){_+=a;continue}if(c-=a,c>0)continue;a=Math.min(a,a+c+_);let p=[...s[0]][0].length,m=e.slice(0,o+s.index+p+a);if(Math.min(o,a)%2){let b=m.slice(1,-1);return{type:"em",raw:m,text:b,tokens:this.lexer.inlineTokens(b)}}let h=m.slice(2,-2);return{type:"strong",raw:m,text:h,tokens:this.lexer.inlineTokens(h)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(n),o=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return s&&o&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let s=this.rules.inline.delLDelim.exec(e);if(s&&(!s[1]||!n||this.rules.inline.punctuation.exec(n))){let o=[...s[0]].length-1,r,a,c=o,_=this.rules.inline.delRDelim;for(_.lastIndex=0,t=t.slice(-1*e.length+o);(s=_.exec(t))!==null;){if(r=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!r||(a=[...r].length,a!==o))continue;if(s[3]||s[4]){c+=a;continue}if(c-=a,c>0)continue;a=Math.min(a,a+c);let f=[...s[0]][0].length,p=e.slice(0,o+s.index+f+a),m=p.slice(o,-o);return{type:"del",raw:p,text:m,tokens:this.lexer.inlineTokens(m)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,s;return t[2]==="@"?(n=t[1],s="mailto:"+n):(n=t[1],s=n),{type:"link",raw:t[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let n,s;if(t[2]==="@")n=t[0],s="mailto:"+n;else{let o;do o=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(o!==t[0]);n=t[0],t[1]==="www."?s="http://"+t[0]:s=t[0]}return{type:"link",raw:t[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},yt=class ji{tokens;options;state;inlineQueue;tokenizer;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||vn,this.options.tokenizer=this.options.tokenizer||new bo,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:Xe,block:Vs.normal,inline:Yn.normal};this.options.pedantic?(n.block=Vs.pedantic,n.inline=Yn.pedantic):this.options.gfm&&(n.block=Vs.gfm,this.options.breaks?n.inline=Yn.breaks:n.inline=Yn.gfm),this.tokenizer.rules=n}static get rules(){return{block:Vs,inline:Yn}}static lex(t,n){return new ji(n).lex(t)}static lexInline(t,n){return new ji(n).inlineTokens(t)}lex(t){t=t.replace(Xe.carriageReturn,`
|
|
102
|
+
`),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let s=this.inlineQueue[n];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],s=!1){this.tokenizer.lexer=this,this.options.pedantic&&(t=t.replace(Xe.tabCharGlobal," ").replace(Xe.spaceLine,""));let o=1/0;for(;t;){if(t.length<o)o=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}let r;if(this.options.extensions?.block?.some(c=>(r=c.call({lexer:this},t,n))?(t=t.substring(r.raw.length),n.push(r),!0):!1))continue;if(r=this.tokenizer.space(t)){t=t.substring(r.raw.length);let c=n.at(-1);r.raw.length===1&&c!==void 0?c.raw+=`
|
|
103
|
+
`:n.push(r);continue}if(r=this.tokenizer.code(t)){t=t.substring(r.raw.length);let c=n.at(-1);c?.type==="paragraph"||c?.type==="text"?(c.raw+=(c.raw.endsWith(`
|
|
104
|
+
`)?"":`
|
|
105
|
+
`)+r.raw,c.text+=`
|
|
106
|
+
`+r.text,this.inlineQueue.at(-1).src=c.text):n.push(r);continue}if(r=this.tokenizer.fences(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.heading(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.hr(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.blockquote(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.list(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.html(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.def(t)){t=t.substring(r.raw.length);let c=n.at(-1);c?.type==="paragraph"||c?.type==="text"?(c.raw+=(c.raw.endsWith(`
|
|
107
|
+
`)?"":`
|
|
108
|
+
`)+r.raw,c.text+=`
|
|
109
|
+
`+r.raw,this.inlineQueue.at(-1).src=c.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},n.push(r));continue}if(r=this.tokenizer.table(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.lheading(t)){t=t.substring(r.raw.length),n.push(r);continue}let a=t;if(this.options.extensions?.startBlock){let c=1/0,_=t.slice(1),f;this.options.extensions.startBlock.forEach(p=>{f=p.call({lexer:this},_),typeof f=="number"&&f>=0&&(c=Math.min(c,f))}),c<1/0&&c>=0&&(a=t.substring(0,c+1))}if(this.state.top&&(r=this.tokenizer.paragraph(a))){let c=n.at(-1);s&&c?.type==="paragraph"?(c.raw+=(c.raw.endsWith(`
|
|
110
|
+
`)?"":`
|
|
111
|
+
`)+r.raw,c.text+=`
|
|
112
|
+
`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):n.push(r),s=a.length!==t.length,t=t.substring(r.raw.length);continue}if(r=this.tokenizer.text(t)){t=t.substring(r.raw.length);let c=n.at(-1);c?.type==="text"?(c.raw+=(c.raw.endsWith(`
|
|
113
|
+
`)?"":`
|
|
114
|
+
`)+r.raw,c.text+=`
|
|
115
|
+
`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):n.push(r);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){this.tokenizer.lexer=this;let s=t,o=null;if(this.tokens.links){let f=Object.keys(this.tokens.links);if(f.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(s))!==null;)f.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(s))!==null;)s=s.slice(0,o.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let r;for(;(o=this.tokenizer.rules.inline.blockSkip.exec(s))!==null;)r=o[2]?o[2].length:0,s=s.slice(0,o.index+r)+"["+"a".repeat(o[0].length-r-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=this.options.hooks?.emStrongMask?.call({lexer:this},s)??s;let a=!1,c="",_=1/0;for(;t;){if(t.length<_)_=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}a||(c=""),a=!1;let f;if(this.options.extensions?.inline?.some(m=>(f=m.call({lexer:this},t,n))?(t=t.substring(f.raw.length),n.push(f),!0):!1))continue;if(f=this.tokenizer.escape(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.tag(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.link(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(f.raw.length);let m=n.at(-1);f.type==="text"&&m?.type==="text"?(m.raw+=f.raw,m.text+=f.text):n.push(f);continue}if(f=this.tokenizer.emStrong(t,s,c)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.codespan(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.br(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.del(t,s,c)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.autolink(t)){t=t.substring(f.raw.length),n.push(f);continue}if(!this.state.inLink&&(f=this.tokenizer.url(t))){t=t.substring(f.raw.length),n.push(f);continue}let p=t;if(this.options.extensions?.startInline){let m=1/0,h=t.slice(1),b;this.options.extensions.startInline.forEach(k=>{b=k.call({lexer:this},h),typeof b=="number"&&b>=0&&(m=Math.min(m,b))}),m<1/0&&m>=0&&(p=t.substring(0,m+1))}if(f=this.tokenizer.inlineText(p)){t=t.substring(f.raw.length),f.raw.slice(-1)!=="_"&&(c=f.raw.slice(-1)),a=!0;let m=n.at(-1);m?.type==="text"?(m.raw+=f.raw,m.text+=f.text):n.push(f);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return n}infiniteLoopError(t){let n="Infinite loop on byte: "+t;if(this.options.silent)console.error(n);else throw new Error(n)}},ko=class{options;parser;constructor(e){this.options=e||vn}space(e){return""}code({text:e,lang:t,escaped:n}){let s=(t||"").match(Xe.notSpaceStart)?.[0],o=e.replace(Xe.endingNewline,"")+`
|
|
116
|
+
`;return s?'<pre><code class="language-'+Rt(s)+'">'+(n?o:Rt(o,!0))+`</code></pre>
|
|
117
|
+
`:"<pre><code>"+(n?o:Rt(o,!0))+`</code></pre>
|
|
118
|
+
`}blockquote({tokens:e}){return`<blockquote>
|
|
119
|
+
${this.parser.parse(e)}</blockquote>
|
|
120
|
+
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
121
|
+
`}hr(e){return`<hr>
|
|
122
|
+
`}list(e){let t=e.ordered,n=e.start,s="";for(let a=0;a<e.items.length;a++){let c=e.items[a];s+=this.listitem(c)}let o=t?"ol":"ul",r=t&&n!==1?' start="'+n+'"':"";return"<"+o+r+`>
|
|
123
|
+
`+s+"</"+o+`>
|
|
124
|
+
`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
|
|
125
|
+
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
126
|
+
`}table(e){let t="",n="";for(let o=0;o<e.header.length;o++)n+=this.tablecell(e.header[o]);t+=this.tablerow({text:n});let s="";for(let o=0;o<e.rows.length;o++){let r=e.rows[o];n="";for(let a=0;a<r.length;a++)n+=this.tablecell(r[a]);s+=this.tablerow({text:n})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
|
|
127
|
+
<thead>
|
|
128
|
+
`+t+`</thead>
|
|
129
|
+
`+s+`</table>
|
|
130
|
+
`}tablerow({text:e}){return`<tr>
|
|
131
|
+
${e}</tr>
|
|
132
|
+
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
133
|
+
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Rt(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let s=this.parser.parseInline(n),o=Ca(e);if(o===null)return s;e=o;let r='<a href="'+e+'"';return t&&(r+=' title="'+Rt(t)+'"'),r+=">"+s+"</a>",r}image({href:e,title:t,text:n,tokens:s}){s&&(n=this.parser.parseInline(s,this.parser.textRenderer));let o=Ca(e);if(o===null)return Rt(n);e=o;let r=`<img src="${e}" alt="${Rt(n)}"`;return t&&(r+=` title="${Rt(t)}"`),r+=">",r}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Rt(e.text)}},er=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},vt=class Pi{options;renderer;textRenderer;constructor(t){this.options=t||vn,this.options.renderer=this.options.renderer||new ko,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new er}static parse(t,n){return new Pi(n).parse(t)}static parseInline(t,n){return new Pi(n).parseInline(t)}parse(t){this.renderer.parser=this;let n="";for(let s=0;s<t.length;s++){let o=t[s];if(this.options.extensions?.renderers?.[o.type]){let a=o,c=this.options.extensions.renderers[a.type].call({parser:this},a);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(a.type)){n+=c||"";continue}}let r=o;switch(r.type){case"space":{n+=this.renderer.space(r);break}case"hr":{n+=this.renderer.hr(r);break}case"heading":{n+=this.renderer.heading(r);break}case"code":{n+=this.renderer.code(r);break}case"table":{n+=this.renderer.table(r);break}case"blockquote":{n+=this.renderer.blockquote(r);break}case"list":{n+=this.renderer.list(r);break}case"checkbox":{n+=this.renderer.checkbox(r);break}case"html":{n+=this.renderer.html(r);break}case"def":{n+=this.renderer.def(r);break}case"paragraph":{n+=this.renderer.paragraph(r);break}case"text":{n+=this.renderer.text(r);break}default:{let a='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return n}parseInline(t,n=this.renderer){this.renderer.parser=this;let s="";for(let o=0;o<t.length;o++){let r=t[o];if(this.options.extensions?.renderers?.[r.type]){let c=this.options.extensions.renderers[r.type].call({parser:this},r);if(c!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){s+=c||"";continue}}let a=r;switch(a.type){case"escape":{s+=n.text(a);break}case"html":{s+=n.html(a);break}case"link":{s+=n.link(a);break}case"image":{s+=n.image(a);break}case"checkbox":{s+=n.checkbox(a);break}case"strong":{s+=n.strong(a);break}case"em":{s+=n.em(a);break}case"codespan":{s+=n.codespan(a);break}case"br":{s+=n.br(a);break}case"del":{s+=n.del(a);break}case"text":{s+=n.text(a);break}default:{let c='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return s}},ss=class{options;block;constructor(e){this.options=e||vn}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?yt.lex:yt.lexInline}provideParser(e=this.block){return e?vt.parse:vt.parseInline}},Zk=class{defaults=Hi();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=vt;Renderer=ko;TextRenderer=er;Lexer=yt;Tokenizer=bo;Hooks=ss;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let s of e)switch(n=n.concat(t.call(this,s)),s.type){case"table":{let o=s;for(let r of o.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of o.rows)for(let a of r)n=n.concat(this.walkTokens(a.tokens,t));break}case"list":{let o=s;n=n.concat(this.walkTokens(o.items,t));break}default:{let o=s;this.defaults.extensions?.childTokens?.[o.type]?this.defaults.extensions.childTokens[o.type].forEach(r=>{let a=o[r].flat(1/0);n=n.concat(this.walkTokens(a,t))}):o.tokens&&(n=n.concat(this.walkTokens(o.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let s={...n};if(s.async=this.defaults.async||s.async||!1,n.extensions&&(n.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){let r=t.renderers[o.name];r?t.renderers[o.name]=function(...a){let c=o.renderer.apply(this,a);return c===!1&&(c=r.apply(this,a)),c}:t.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let r=t[o.level];r?r.unshift(o.tokenizer):t[o.level]=[o.tokenizer],o.start&&(o.level==="block"?t.startBlock?t.startBlock.push(o.start):t.startBlock=[o.start]:o.level==="inline"&&(t.startInline?t.startInline.push(o.start):t.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(t.childTokens[o.name]=o.childTokens)}),s.extensions=t),n.renderer){let o=this.defaults.renderer||new ko(this.defaults);for(let r in n.renderer){if(!(r in o))throw new Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;let a=r,c=n.renderer[a],_=o[a];o[a]=(...f)=>{let p=c.apply(o,f);return p===!1&&(p=_.apply(o,f)),p||""}}s.renderer=o}if(n.tokenizer){let o=this.defaults.tokenizer||new bo(this.defaults);for(let r in n.tokenizer){if(!(r in o))throw new Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;let a=r,c=n.tokenizer[a],_=o[a];o[a]=(...f)=>{let p=c.apply(o,f);return p===!1&&(p=_.apply(o,f)),p}}s.tokenizer=o}if(n.hooks){let o=this.defaults.hooks||new ss;for(let r in n.hooks){if(!(r in o))throw new Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;let a=r,c=n.hooks[a],_=o[a];ss.passThroughHooks.has(r)?o[a]=f=>{if(this.defaults.async&&ss.passThroughHooksRespectAsync.has(r))return(async()=>{let m=await c.call(o,f);return _.call(o,m)})();let p=c.call(o,f);return _.call(o,p)}:o[a]=(...f)=>{if(this.defaults.async)return(async()=>{let m=await c.apply(o,f);return m===!1&&(m=await _.apply(o,f)),m})();let p=c.apply(o,f);return p===!1&&(p=_.apply(o,f)),p}}s.hooks=o}if(n.walkTokens){let o=this.defaults.walkTokens,r=n.walkTokens;s.walkTokens=function(a){let c=[];return c.push(r.call(this,a)),o&&(c=c.concat(o.call(this,a))),c}}this.defaults={...this.defaults,...s}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return yt.lex(e,t??this.defaults)}parser(e,t){return vt.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let s={...n},o={...this.defaults,...s},r=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&s.async===!1)return r(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return r(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return r(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=e),o.async)return(async()=>{let a=o.hooks?await o.hooks.preprocess(t):t,c=await(o.hooks?await o.hooks.provideLexer(e):e?yt.lex:yt.lexInline)(a,o),_=o.hooks?await o.hooks.processAllTokens(c):c;o.walkTokens&&await Promise.all(this.walkTokens(_,o.walkTokens));let f=await(o.hooks?await o.hooks.provideParser(e):e?vt.parse:vt.parseInline)(_,o);return o.hooks?await o.hooks.postprocess(f):f})().catch(r);try{o.hooks&&(t=o.hooks.preprocess(t));let a=(o.hooks?o.hooks.provideLexer(e):e?yt.lex:yt.lexInline)(t,o);o.hooks&&(a=o.hooks.processAllTokens(a)),o.walkTokens&&this.walkTokens(a,o.walkTokens);let c=(o.hooks?o.hooks.provideParser(e):e?vt.parse:vt.parseInline)(a,o);return o.hooks&&(c=o.hooks.postprocess(c)),c}catch(a){return r(a)}}}onError(e,t){return n=>{if(n.message+=`
|
|
134
|
+
Please report this to https://github.com/markedjs/marked.`,e){let s="<p>An error occurred:</p><pre>"+Rt(n.message+"",!0)+"</pre>";return t?Promise.resolve(s):s}if(t)return Promise.reject(n);throw n}}},gn=new Zk;function ge(e,t){return gn.parse(e,t)}ge.options=ge.setOptions=function(e){return gn.setOptions(e),ge.defaults=gn.defaults,bl(ge.defaults),ge};ge.getDefaults=Hi;ge.defaults=vn;ge.use=function(...e){return gn.use(...e),ge.defaults=gn.defaults,bl(ge.defaults),ge};ge.walkTokens=function(e,t){return gn.walkTokens(e,t)};ge.parseInline=gn.parseInline;ge.Parser=vt;ge.parser=vt.parse;ge.Renderer=ko;ge.TextRenderer=er;ge.Lexer=yt;ge.lexer=yt.lex;ge.Tokenizer=bo;ge.Hooks=ss;ge.parse=ge;ge.options;ge.setOptions;ge.use;ge.walkTokens;ge.parseInline;vt.parse;yt.lex;function Bk(e){if(!e?.trim())return{items:[],omitted:0};const t=ge.parse(e.slice(0,64e3),{async:!1}),n=new DOMParser().parseFromString(t,"text/html");n.querySelectorAll("script, style, template, iframe, object, embed").forEach(a=>a.remove());const s=[...n.querySelectorAll("li")].filter(a=>!a.parentElement?.closest("li")),o=s.length?s:[...n.querySelectorAll("p")],r=(o.length?o.map(a=>a.textContent??""):[n.body.textContent??""]).map(a=>a.replace(/\s+/g," ").trim()).filter(Boolean);return{items:r.slice(0,8),omitted:Math.max(0,r.length-8)}}let Na=null,$a=!1,Ea=!1;function Ta(){return window.dispatchEvent(new Event("opentig:before-update",{cancelable:!0}))}async function Ws(e){if(e==="install"){if(!Ta())throw new Error("Save your edited files and finish running operations before restarting.");if($a)throw window.location.reload(),new Error("Reloading the updated app…")}const t=await fetch(e?`/api/updates/${e}`:"/api/updates",{method:e?"POST":"GET",credentials:"same-origin",cache:"no-store",signal:AbortSignal.timeout(2e4)}),n=await t.json();if(!t.ok)throw new Error(typeof n.error=="string"?n.error:"Could not reach the update service.");const s=n;return Na??=s.currentVersion,s.currentVersion!==Na?($a=!0,!Ea&&Ta()&&(Ea=!0,window.location.reload()),{...s,phase:"ready",reloadRequired:!0,availableVersion:s.currentVersion,message:"The server has updated. Save any edited files, then reload this browser."}):s}const Gk={getStatus:()=>Ws(),check:()=>Ws("check"),download:()=>Ws("download"),install:()=>Ws("install")},Mo=()=>window.opentigDesktop?.updates??Gk;function Nl(e){const[t,n]=d.useState(null),[s,o]=d.useState(null);return d.useEffect(()=>{const r=Mo();if(!r)return;let a=!0;const c=()=>{r.getStatus().then(f=>{a&&(n(f),o(null))}).catch(()=>{a&&o("Could not read update status. Try reopening settings.")})};c();const _=window.setInterval(c,e);return()=>{a=!1,window.clearInterval(_)}},[e]),{status:t,setStatus:n,error:s,setError:o}}function Kx(){const{status:e,setStatus:t,error:n,setError:s}=Nl(1e3),[o,r]=d.useState(!1),a=Mo();if(!e)return i.jsx("p",{role:"status",children:n??"Checking update settings…"});const c=async m=>{r(!0),s(null);try{t(await a[m]())}catch(h){s(h instanceof Error?h.message:"The update action could not be completed. Try again.")}finally{r(!1)}},_=o||["checking","downloading","installing"].includes(e.phase),f=!Nn&&/^\d+\.\d+\.\d+$/.test(e.currentVersion)?`https://github.com/jorgefl8/opentig/releases/tag/v${e.currentVersion}`:null,p=window.opentigDesktop?"When developing from source, rebuild and relaunch OpenTig Dev. For a downloaded build, replace it with a new Dev ZIP.":"Rebuild and restart the Dev server to apply source changes.";return i.jsxs("div",{className:"settings-field",children:[i.jsxs("div",{className:"settings-field-label",children:[i.jsxs("strong",{children:[xo,Nn?" · Base version ":" ",e.currentVersion]}),i.jsx("span",{children:Nn?"Development build. Automatic updates to stable releases are disabled.":e.phase==="unavailable"?"This build does not check for automatic updates.":window.opentigDesktop?"Stable releases are checked at startup, every 5 minutes, and when returning to the app if a check is due. Download and restart when you are ready.":"The server checks for stable releases at startup and every 5 minutes. Download and restart when you are ready."})]}),i.jsx("p",{className:"text-sm",role:"status","aria-live":"polite",children:n??(Nn?p:e.message??$l(e))}),e.phase==="downloading"&&i.jsx("progress",{className:"w-full","aria-label":"Update download",max:100,value:e.progress??0}),i.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[["idle","error","checking"].includes(e.phase)&&i.jsx(G,{variant:"outline",disabled:_,onClick:()=>{c("check")},children:e.phase==="checking"?"Checking…":"Check for updates"}),e.phase==="available"&&i.jsxs(G,{disabled:_,onClick:()=>{c("download")},children:["Download ",e.availableVersion]}),e.phase==="ready"&&i.jsx(G,{disabled:_,onClick:()=>{c("install")},children:e.reloadRequired?"Reload app":"Restart and install"}),f&&i.jsxs("a",{className:"text-sm underline",href:f,target:"_blank",rel:"noreferrer",children:["Release notes · ",e.currentVersion," (installed)"]}),e.releaseUrl&&i.jsxs("a",{className:"text-sm underline",href:e.releaseUrl,target:"_blank",rel:"noreferrer",children:["Release notes · ",e.availableVersion," (update)"]})]}),e.checkedAt&&i.jsxs("p",{className:"text-xs text-muted-foreground",children:["Last checked: ",Zn(e.checkedAt,{seconds:!0})]}),e.phase==="ready"&&!e.reloadRequired&&i.jsx("p",{className:"text-xs text-muted-foreground",children:"Save your edits and finish Git operations before restarting. Closing normally will not install the update."})]})}function tr(){const{status:e,setStatus:t,error:n,setError:s}=Nl(1e3),[o,r]=d.useState(!1),[a,c]=d.useState(!1),_=d.useRef(!1),f=d.useRef(!1),p=d.useId(),m=d.useRef(null),h=d.useMemo(()=>Bk(e?.releaseNotes),[e?.releaseNotes]);if(!e||["idle","checking","unavailable"].includes(e.phase))return null;const b=a||e.phase==="downloading"||e.phase==="installing",k=e.reloadRequired?"Server updated. Save edited files and click to reload.":e.phase==="available"?`Update ${e.availableVersion} is available. Click to download.`:e.phase==="ready"?`Update ${e.availableVersion} downloaded. Click to restart and install.`:e.phase==="error"?"Update failed. Click to retry.":$l(e),C=Math.max(0,Math.min(100,e.progress??0)),g=async()=>{const S=Mo();if(!S||b||_.current)return;_.current=!0,c(!0),s(null);const w=e.phase==="available"?"download":e.phase==="ready"?"install":"check";try{t(await S[w]())}catch(P){s(P instanceof Error?P.message:"The update action could not be completed. Click the icon to retry.")}finally{_.current=!1,c(!1)}};return i.jsxs(yf,{open:o,triggerId:p,onOpenChange:(S,w)=>{if(w.reason==="trigger-press"){w.cancel();return}!S&&w.reason==="escape-key"&&(f.current=!0),r(S)},children:[i.jsxs(vf,{id:p,openOnHover:!0,delay:300,closeDelay:150,render:i.jsx(G,{variant:"ghost",size:"icon-sm",className:"desktop-update-indicator relative","aria-label":k,"aria-disabled":b||void 0,onClick:()=>{g()},onFocus:S=>{if(f.current){f.current=!1;return}S.currentTarget.matches(":focus-visible")&&r(!0)},onBlur:()=>{f.current=!1},onKeyDown:S=>{S.key==="Tab"&&!S.shiftKey&&o&&m.current&&(S.preventDefault(),m.current.focus())}}),children:[e.phase==="available"||e.phase==="downloading"?i.jsx(ad,{}):e.phase==="installing"?i.jsx(Ed,{className:"animate-spin"}):e.phase==="error"?i.jsx(Lf,{}):i.jsx(cs,{}),e.phase==="downloading"&&i.jsxs("svg",{className:"pointer-events-none absolute inset-0 size-full! -rotate-90",viewBox:"0 0 32 32","aria-hidden":"true",children:[i.jsx("circle",{cx:"16",cy:"16",r:"14",fill:"none",stroke:"currentColor",strokeOpacity:"0.2",strokeWidth:"2"}),i.jsx("circle",{cx:"16",cy:"16",r:"14",pathLength:"100",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"100",strokeDashoffset:100-C,className:"transition-[stroke-dashoffset] motion-reduce:transition-none"})]}),e.phase==="available"&&i.jsx("span",{className:"absolute -bottom-0.5 -right-0.5 size-2.5 rounded-full border-2 border-background bg-primary","aria-hidden":"true"}),e.phase==="ready"&&i.jsx("span",{className:"absolute -bottom-0.5 -right-0.5 grid size-3.5 place-items-center rounded-full border-2 border-background bg-primary text-primary-foreground","aria-hidden":"true",children:i.jsx(pn,{className:"size-2.5!"})})]}),i.jsx(bf,{children:i.jsx(kf,{side:"bottom",align:"end",sideOffset:8,className:"isolate z-50 outline-none",children:i.jsxs(wf,{initialFocus:!1,className:"desktop-update-card flex w-[min(25rem,calc(100vw-2rem))] max-h-[var(--available-height)] flex-col gap-4 overflow-y-auto rounded-lg border bg-popover p-4 text-popover-foreground shadow-xl","aria-label":"Update details",children:[i.jsx("p",{className:"text-sm font-medium","aria-live":"polite",children:k}),(n||e.message)&&i.jsx("p",{className:"text-xs text-muted-foreground",role:"status",children:n??e.message}),i.jsxs("section",{className:"min-h-0 text-xs",children:[i.jsx("h3",{className:"mb-2 font-medium",children:"What's changed"}),h.items.length>0?i.jsx("ul",{className:"list-disc space-y-2 pl-4 leading-relaxed text-muted-foreground",children:h.items.map((S,w)=>i.jsx("li",{className:"break-words",children:S},w))}):i.jsx("p",{className:"text-muted-foreground",children:"No release notes were provided for this update."})]}),e.releaseUrl&&i.jsxs("a",{ref:m,className:"inline-flex shrink-0 items-center gap-1 text-xs text-muted-foreground underline decoration-dotted underline-offset-4 hover:text-foreground",href:e.releaseUrl,target:"_blank",rel:"noreferrer",children:[h.omitted?`${h.omitted} more ${h.omitted===1?"change":"changes"} on GitHub`:"View release on GitHub",i.jsx(Ha,{className:"size-3"})]})]})})})]})}function $l(e){switch(e.phase){case"available":return`OpenTig ${e.availableVersion} is available.`;case"downloading":return`Downloading… ${Math.round(e.progress??0)}%`;case"ready":return`OpenTig ${e.availableVersion} is ready to install.`;case"checking":return"Checking for a new stable release…";case"installing":return window.opentigDesktop?"Closing OpenTig to install the update…":"Restarting the server. Reconnecting…";case"idle":return e.checkedAt?"You are using the latest stable version.":"No update check has completed yet.";default:return e.message??"Updates are unavailable."}}function El(){return d.useContext(Nc)}const Tl="(max-width: 767px), (pointer: coarse) and (max-width: 1100px) and (max-height: 500px)",Uk=e=>{const t=window.matchMedia(Tl);return t.addEventListener("change",e),()=>t.removeEventListener("change",e)},Hk=()=>window.matchMedia(Tl).matches;function Lo(){return d.useSyncExternalStore(Uk,Hk,()=>!1)}function Oa({open:e,onOpenChange:t,title:n,description:s,children:o}){return i.jsx(bt,{open:e,onOpenChange:t,children:i.jsxs(kt,{className:"mobile-sheet",children:[i.jsx("div",{className:"mobile-sheet-handle","aria-hidden":"true"}),i.jsxs("div",{className:"mobile-sheet-heading",children:[i.jsx(wt,{children:n}),i.jsx(ep,{render:i.jsx(G,{variant:"ghost",size:"icon","aria-label":`Close ${n}`}),children:i.jsx(Ln,{})})]}),s&&i.jsx(xt,{className:"mobile-sheet-description",children:s}),i.jsx("div",{className:"mobile-sheet-body",children:o})]})})}function Jx(e){if(!(e instanceof Error)||!("detail"in e)||!e.detail||typeof e.detail!="object")return null;const t=e.detail;return typeof t.code=="string"&&t.code.startsWith("GH_")&&typeof t.message=="string"?t:null}function Qx(e){return e?e.code==="GH_CLI_NOT_FOUND"?"GitHub CLI is not installed":e.code==="GH_ACCOUNT_MISSING"?"GitHub account is missing":e.code==="GH_ACCOUNT_UNRESOLVED"?"Choose a GitHub account":e.code==="GH_ACCESS_DENIED"?"GitHub access denied":e.code==="GH_CLI_INCOMPATIBLE"?"Update GitHub CLI":e.code==="GH_AUTH_REQUIRED"?"Sign in to GitHub CLI":e.code==="GH_NOT_GITHUB_REPO"?"Not a GitHub repository":e.code==="GH_NO_UPSTREAM"?"Publish the branch first":e.code==="GH_RATE_LIMITED"?"GitHub rate limit reached":e.code==="GH_TIMEOUT"?"GitHub CLI took too long":e.code==="GH_INVALID_OUTPUT"?"Unexpected GitHub CLI response":"GitHub operation failed":"GitHub operation failed"}function Aa(e){return e.state==="OPEN"?e.isDraft?"Draft":"Open":e.state==="MERGED"?"Merged":"Closed"}function Xx(e){return e?e==="APPROVED"?"Approved":e==="CHANGES_REQUESTED"?"Changes requested":e==="REVIEW_REQUIRED"?"Review required":null:null}function wo(e){try{A_(e)}catch{}}const Vk=JSON.parse('{"_file":{"iconPath":"../../icons/default_file.svg"},"_folder":{"iconPath":"../../icons/default_folder.svg"},"_folder_open":{"iconPath":"../../icons/default_folder_opened.svg"},"_root_folder":{"iconPath":"../../icons/default_root_folder.svg"},"_root_folder_open":{"iconPath":"../../icons/default_root_folder_opened.svg"},"_file_light":{"iconPath":""},"_folder_light":{"iconPath":""},"_folder_light_open":{"iconPath":""},"_root_folder_light":{"iconPath":""},"_root_folder_light_open":{"iconPath":""},"_fd_android":{"iconPath":"../../icons/folder_type_android.svg"},"_fd_android_open":{"iconPath":"../../icons/folder_type_android_opened.svg"},"_fd_angular":{"iconPath":"../../icons/folder_type_angular.svg"},"_fd_angular_open":{"iconPath":"../../icons/folder_type_angular_opened.svg"},"_fd_apache":{"iconPath":"../../icons/folder_type_apache.svg"},"_fd_apache_open":{"iconPath":"../../icons/folder_type_apache_opened.svg"},"_fd_api":{"iconPath":"../../icons/folder_type_api.svg"},"_fd_api_open":{"iconPath":"../../icons/folder_type_api_opened.svg"},"_fd_app":{"iconPath":"../../icons/folder_type_app.svg"},"_fd_app_open":{"iconPath":"../../icons/folder_type_app_opened.svg"},"_fd_arangodb":{"iconPath":"../../icons/folder_type_arangodb.svg"},"_fd_arangodb_open":{"iconPath":"../../icons/folder_type_arangodb_opened.svg"},"_fd_asset":{"iconPath":"../../icons/folder_type_asset.svg"},"_fd_asset_open":{"iconPath":"../../icons/folder_type_asset_opened.svg"},"_fd_astro":{"iconPath":"../../icons/folder_type_astro.svg"},"_fd_astro_open":{"iconPath":"../../icons/folder_type_astro_opened.svg"},"_fd_audio":{"iconPath":"../../icons/folder_type_audio.svg"},"_fd_audio_open":{"iconPath":"../../icons/folder_type_audio_opened.svg"},"_fd_aurelia":{"iconPath":"../../icons/folder_type_aurelia.svg"},"_fd_aurelia_open":{"iconPath":"../../icons/folder_type_aurelia_opened.svg"},"_fd_aws":{"iconPath":"../../icons/folder_type_aws.svg"},"_fd_aws_open":{"iconPath":"../../icons/folder_type_aws_opened.svg"},"_fd_azure":{"iconPath":"../../icons/folder_type_azure.svg"},"_fd_azure_open":{"iconPath":"../../icons/folder_type_azure_opened.svg"},"_fd_azurepipelines":{"iconPath":"../../icons/folder_type_azurepipelines.svg"},"_fd_azurepipelines_open":{"iconPath":"../../icons/folder_type_azurepipelines_opened.svg"},"_fd_binary":{"iconPath":"../../icons/folder_type_binary.svg"},"_fd_binary_open":{"iconPath":"../../icons/folder_type_binary_opened.svg"},"_fd_bloc":{"iconPath":"../../icons/folder_type_bloc.svg"},"_fd_bloc_open":{"iconPath":"../../icons/folder_type_bloc_opened.svg"},"_fd_blueprint":{"iconPath":"../../icons/folder_type_blueprint.svg"},"_fd_blueprint_open":{"iconPath":"../../icons/folder_type_blueprint_opened.svg"},"_fd_bot":{"iconPath":"../../icons/folder_type_bot.svg"},"_fd_bot_open":{"iconPath":"../../icons/folder_type_bot_opened.svg"},"_fd_bower":{"iconPath":"../../icons/folder_type_bower.svg"},"_fd_bower_open":{"iconPath":"../../icons/folder_type_bower_opened.svg"},"_fd_buildkite":{"iconPath":"../../icons/folder_type_buildkite.svg"},"_fd_buildkite_open":{"iconPath":"../../icons/folder_type_buildkite_opened.svg"},"_fd_cake":{"iconPath":"../../icons/folder_type_cake.svg"},"_fd_cake_open":{"iconPath":"../../icons/folder_type_cake_opened.svg"},"_fd_cargo":{"iconPath":"../../icons/folder_type_cargo.svg"},"_fd_cargo_open":{"iconPath":"../../icons/folder_type_cargo_opened.svg"},"_fd_certificate":{"iconPath":"../../icons/folder_type_certificate.svg"},"_fd_certificate_open":{"iconPath":"../../icons/folder_type_certificate_opened.svg"},"_fd_changesets":{"iconPath":"../../icons/folder_type_changesets.svg"},"_fd_changesets_open":{"iconPath":"../../icons/folder_type_changesets_opened.svg"},"_fd_chef":{"iconPath":"../../icons/folder_type_chef.svg"},"_fd_chef_open":{"iconPath":"../../icons/folder_type_chef_opened.svg"},"_fd_circleci":{"iconPath":"../../icons/folder_type_circleci.svg"},"_fd_circleci_open":{"iconPath":"../../icons/folder_type_circleci_opened.svg"},"_fd_claude":{"iconPath":"../../icons/folder_type_claude.svg"},"_fd_claude_open":{"iconPath":"../../icons/folder_type_claude_opened.svg"},"_fd_cli":{"iconPath":"../../icons/folder_type_cli.svg"},"_fd_cli_open":{"iconPath":"../../icons/folder_type_cli_opened.svg"},"_fd_client":{"iconPath":"../../icons/folder_type_client.svg"},"_fd_client_open":{"iconPath":"../../icons/folder_type_client_opened.svg"},"_fd_cloudflare":{"iconPath":"../../icons/folder_type_cloudflare.svg"},"_fd_cloudflare_open":{"iconPath":"../../icons/folder_type_cloudflare_opened.svg"},"_fd_cmake":{"iconPath":"../../icons/folder_type_cmake.svg"},"_fd_cmake_open":{"iconPath":"../../icons/folder_type_cmake_opened.svg"},"_fd_common":{"iconPath":"../../icons/folder_type_common.svg"},"_fd_common_open":{"iconPath":"../../icons/folder_type_common_opened.svg"},"_fd_component":{"iconPath":"../../icons/folder_type_component.svg"},"_fd_component_open":{"iconPath":"../../icons/folder_type_component_opened.svg"},"_fd_composer":{"iconPath":"../../icons/folder_type_composer.svg"},"_fd_composer_open":{"iconPath":"../../icons/folder_type_composer_opened.svg"},"_fd_config":{"iconPath":"../../icons/folder_type_config.svg"},"_fd_config_open":{"iconPath":"../../icons/folder_type_config_opened.svg"},"_fd_controller":{"iconPath":"../../icons/folder_type_controller.svg"},"_fd_controller_open":{"iconPath":"../../icons/folder_type_controller_opened.svg"},"_fd_coverage":{"iconPath":"../../icons/folder_type_coverage.svg"},"_fd_coverage_open":{"iconPath":"../../icons/folder_type_coverage_opened.svg"},"_fd_css":{"iconPath":"../../icons/folder_type_css.svg"},"_fd_css_open":{"iconPath":"../../icons/folder_type_css_opened.svg"},"_fd_cubit":{"iconPath":"../../icons/folder_type_cubit.svg"},"_fd_cubit_open":{"iconPath":"../../icons/folder_type_cubit_opened.svg"},"_fd_cursor":{"iconPath":"../../icons/folder_type_cursor.svg"},"_fd_cursor_open":{"iconPath":"../../icons/folder_type_cursor_opened.svg"},"_fd_light_cursor":{"iconPath":"../../icons/folder_type_light_cursor.svg"},"_fd_light_cursor_open":{"iconPath":"../../icons/folder_type_light_cursor_opened.svg"},"_fd_cypress":{"iconPath":"../../icons/folder_type_cypress.svg"},"_fd_cypress_open":{"iconPath":"../../icons/folder_type_cypress_opened.svg"},"_fd_light_cypress":{"iconPath":"../../icons/folder_type_light_cypress.svg"},"_fd_light_cypress_open":{"iconPath":"../../icons/folder_type_light_cypress_opened.svg"},"_fd_dapr":{"iconPath":"../../icons/folder_type_dapr.svg"},"_fd_dapr_open":{"iconPath":"../../icons/folder_type_dapr_opened.svg"},"_fd_dart":{"iconPath":"../../icons/folder_type_dart.svg"},"_fd_dart_open":{"iconPath":"../../icons/folder_type_dart_opened.svg"},"_fd_databricks":{"iconPath":"../../icons/folder_type_databricks.svg"},"_fd_databricks_open":{"iconPath":"../../icons/folder_type_databricks_opened.svg"},"_fd_datadog":{"iconPath":"../../icons/folder_type_datadog.svg"},"_fd_datadog_open":{"iconPath":"../../icons/folder_type_datadog_opened.svg"},"_fd_db":{"iconPath":"../../icons/folder_type_db.svg"},"_fd_db_open":{"iconPath":"../../icons/folder_type_db_opened.svg"},"_fd_debian":{"iconPath":"../../icons/folder_type_debian.svg"},"_fd_debian_open":{"iconPath":"../../icons/folder_type_debian_opened.svg"},"_fd_dependabot":{"iconPath":"../../icons/folder_type_dependabot.svg"},"_fd_dependabot_open":{"iconPath":"../../icons/folder_type_dependabot_opened.svg"},"_fd_devcontainer":{"iconPath":"../../icons/folder_type_devcontainer.svg"},"_fd_devcontainer_open":{"iconPath":"../../icons/folder_type_devcontainer_opened.svg"},"_fd_devenv":{"iconPath":"../../icons/folder_type_devenv.svg"},"_fd_devenv_open":{"iconPath":"../../icons/folder_type_devenv_opened.svg"},"_fd_light_devenv":{"iconPath":"../../icons/folder_type_light_devenv.svg"},"_fd_light_devenv_open":{"iconPath":"../../icons/folder_type_light_devenv_opened.svg"},"_fd_dist":{"iconPath":"../../icons/folder_type_dist.svg"},"_fd_dist_open":{"iconPath":"../../icons/folder_type_dist_opened.svg"},"_fd_docker":{"iconPath":"../../icons/folder_type_docker.svg"},"_fd_docker_open":{"iconPath":"../../icons/folder_type_docker_opened.svg"},"_fd_docs":{"iconPath":"../../icons/folder_type_docs.svg"},"_fd_docs_open":{"iconPath":"../../icons/folder_type_docs_opened.svg"},"_fd_e2e":{"iconPath":"../../icons/folder_type_e2e.svg"},"_fd_e2e_open":{"iconPath":"../../icons/folder_type_e2e_opened.svg"},"_fd_elasticbeanstalk":{"iconPath":"../../icons/folder_type_elasticbeanstalk.svg"},"_fd_elasticbeanstalk_open":{"iconPath":"../../icons/folder_type_elasticbeanstalk_opened.svg"},"_fd_electron":{"iconPath":"../../icons/folder_type_electron.svg"},"_fd_electron_open":{"iconPath":"../../icons/folder_type_electron_opened.svg"},"_fd_light_electron":{"iconPath":"../../icons/folder_type_light_electron.svg"},"_fd_light_electron_open":{"iconPath":"../../icons/folder_type_light_electron_opened.svg"},"_fd_environments":{"iconPath":"../../icons/folder_type_environments.svg"},"_fd_environments_open":{"iconPath":"../../icons/folder_type_environments_opened.svg"},"_fd_expo":{"iconPath":"../../icons/folder_type_expo.svg"},"_fd_expo_open":{"iconPath":"../../icons/folder_type_expo_opened.svg"},"_fd_light_expo":{"iconPath":"../../icons/folder_type_light_expo.svg"},"_fd_light_expo_open":{"iconPath":"../../icons/folder_type_light_expo_opened.svg"},"_fd_favicon":{"iconPath":"../../icons/folder_type_favicon.svg"},"_fd_favicon_open":{"iconPath":"../../icons/folder_type_favicon_opened.svg"},"_fd_flow":{"iconPath":"../../icons/folder_type_flow.svg"},"_fd_flow_open":{"iconPath":"../../icons/folder_type_flow_opened.svg"},"_fd_flutter":{"iconPath":"../../icons/folder_type_flutter.svg"},"_fd_flutter_open":{"iconPath":"../../icons/folder_type_flutter_opened.svg"},"_fd_fonts":{"iconPath":"../../icons/folder_type_fonts.svg"},"_fd_fonts_open":{"iconPath":"../../icons/folder_type_fonts_opened.svg"},"_fd_light_fonts":{"iconPath":"../../icons/folder_type_light_fonts.svg"},"_fd_light_fonts_open":{"iconPath":"../../icons/folder_type_light_fonts_opened.svg"},"_fd_frontcommerce":{"iconPath":"../../icons/folder_type_frontcommerce.svg"},"_fd_frontcommerce_open":{"iconPath":"../../icons/folder_type_frontcommerce_opened.svg"},"_fd_gcp":{"iconPath":"../../icons/folder_type_gcp.svg"},"_fd_gcp_open":{"iconPath":"../../icons/folder_type_gcp_opened.svg"},"_fd_gemini":{"iconPath":"../../icons/folder_type_gemini.svg"},"_fd_gemini_open":{"iconPath":"../../icons/folder_type_gemini_opened.svg"},"_fd_git":{"iconPath":"../../icons/folder_type_git.svg"},"_fd_git_open":{"iconPath":"../../icons/folder_type_git_opened.svg"},"_fd_github":{"iconPath":"../../icons/folder_type_github.svg"},"_fd_github_open":{"iconPath":"../../icons/folder_type_github_opened.svg"},"_fd_gitlab":{"iconPath":"../../icons/folder_type_gitlab.svg"},"_fd_gitlab_open":{"iconPath":"../../icons/folder_type_gitlab_opened.svg"},"_fd_godot":{"iconPath":"../../icons/folder_type_godot.svg"},"_fd_godot_open":{"iconPath":"../../icons/folder_type_godot_opened.svg"},"_fd_gradle":{"iconPath":"../../icons/folder_type_gradle.svg"},"_fd_gradle_open":{"iconPath":"../../icons/folder_type_gradle_opened.svg"},"_fd_light_gradle":{"iconPath":"../../icons/folder_type_light_gradle.svg"},"_fd_light_gradle_open":{"iconPath":"../../icons/folder_type_light_gradle_opened.svg"},"_fd_graphql":{"iconPath":"../../icons/folder_type_graphql.svg"},"_fd_graphql_open":{"iconPath":"../../icons/folder_type_graphql_opened.svg"},"_fd_grunt":{"iconPath":"../../icons/folder_type_grunt.svg"},"_fd_grunt_open":{"iconPath":"../../icons/folder_type_grunt_opened.svg"},"_fd_gulp":{"iconPath":"../../icons/folder_type_gulp.svg"},"_fd_gulp_open":{"iconPath":"../../icons/folder_type_gulp_opened.svg"},"_fd_haxelib":{"iconPath":"../../icons/folder_type_haxelib.svg"},"_fd_haxelib_open":{"iconPath":"../../icons/folder_type_haxelib_opened.svg"},"_fd_helper":{"iconPath":"../../icons/folder_type_helper.svg"},"_fd_helper_open":{"iconPath":"../../icons/folder_type_helper_opened.svg"},"_fd_histoire":{"iconPath":"../../icons/folder_type_histoire.svg"},"_fd_histoire_open":{"iconPath":"../../icons/folder_type_histoire_opened.svg"},"_fd_hook":{"iconPath":"../../icons/folder_type_hook.svg"},"_fd_hook_open":{"iconPath":"../../icons/folder_type_hook_opened.svg"},"_fd_husky":{"iconPath":"../../icons/folder_type_husky.svg"},"_fd_husky_open":{"iconPath":"../../icons/folder_type_husky_opened.svg"},"_fd_idea":{"iconPath":"../../icons/folder_type_idea.svg"},"_fd_idea_open":{"iconPath":"../../icons/folder_type_idea_opened.svg"},"_fd_images":{"iconPath":"../../icons/folder_type_images.svg"},"_fd_images_open":{"iconPath":"../../icons/folder_type_images_opened.svg"},"_fd_include":{"iconPath":"../../icons/folder_type_include.svg"},"_fd_include_open":{"iconPath":"../../icons/folder_type_include_opened.svg"},"_fd_interfaces":{"iconPath":"../../icons/folder_type_interfaces.svg"},"_fd_interfaces_open":{"iconPath":"../../icons/folder_type_interfaces_opened.svg"},"_fd_ios":{"iconPath":"../../icons/folder_type_ios.svg"},"_fd_ios_open":{"iconPath":"../../icons/folder_type_ios_opened.svg"},"_fd_js":{"iconPath":"../../icons/folder_type_js.svg"},"_fd_js_open":{"iconPath":"../../icons/folder_type_js_opened.svg"},"_fd_json":{"iconPath":"../../icons/folder_type_json.svg"},"_fd_json_open":{"iconPath":"../../icons/folder_type_json_opened.svg"},"_fd_junie":{"iconPath":"../../icons/folder_type_junie.svg"},"_fd_junie_open":{"iconPath":"../../icons/folder_type_junie_opened.svg"},"_fd_kiro":{"iconPath":"../../icons/folder_type_kiro.svg"},"_fd_kiro_open":{"iconPath":"../../icons/folder_type_kiro_opened.svg"},"_fd_kotlin":{"iconPath":"../../icons/folder_type_kotlin.svg"},"_fd_kotlin_open":{"iconPath":"../../icons/folder_type_kotlin_opened.svg"},"_fd_kubernetes":{"iconPath":"../../icons/folder_type_kubernetes.svg"},"_fd_kubernetes_open":{"iconPath":"../../icons/folder_type_kubernetes_opened.svg"},"_fd_less":{"iconPath":"../../icons/folder_type_less.svg"},"_fd_less_open":{"iconPath":"../../icons/folder_type_less_opened.svg"},"_fd_library":{"iconPath":"../../icons/folder_type_library.svg"},"_fd_library_open":{"iconPath":"../../icons/folder_type_library_opened.svg"},"_fd_linux":{"iconPath":"../../icons/folder_type_linux.svg"},"_fd_linux_open":{"iconPath":"../../icons/folder_type_linux_opened.svg"},"_fd_locale":{"iconPath":"../../icons/folder_type_locale.svg"},"_fd_locale_open":{"iconPath":"../../icons/folder_type_locale_opened.svg"},"_fd_log":{"iconPath":"../../icons/folder_type_log.svg"},"_fd_log_open":{"iconPath":"../../icons/folder_type_log_opened.svg"},"_fd_macos":{"iconPath":"../../icons/folder_type_macos.svg"},"_fd_macos_open":{"iconPath":"../../icons/folder_type_macos_opened.svg"},"_fd_mariadb":{"iconPath":"../../icons/folder_type_mariadb.svg"},"_fd_mariadb_open":{"iconPath":"../../icons/folder_type_mariadb_opened.svg"},"_fd_maven":{"iconPath":"../../icons/folder_type_maven.svg"},"_fd_maven_open":{"iconPath":"../../icons/folder_type_maven_opened.svg"},"_fd_mediawiki":{"iconPath":"../../icons/folder_type_mediawiki.svg"},"_fd_mediawiki_open":{"iconPath":"../../icons/folder_type_mediawiki_opened.svg"},"_fd_memcached":{"iconPath":"../../icons/folder_type_memcached.svg"},"_fd_memcached_open":{"iconPath":"../../icons/folder_type_memcached_opened.svg"},"_fd_meteor":{"iconPath":"../../icons/folder_type_meteor.svg"},"_fd_meteor_open":{"iconPath":"../../icons/folder_type_meteor_opened.svg"},"_fd_light_meteor":{"iconPath":"../../icons/folder_type_light_meteor.svg"},"_fd_light_meteor_open":{"iconPath":"../../icons/folder_type_light_meteor_opened.svg"},"_fd_middleware":{"iconPath":"../../icons/folder_type_middleware.svg"},"_fd_middleware_open":{"iconPath":"../../icons/folder_type_middleware_opened.svg"},"_fd_minecraft":{"iconPath":"../../icons/folder_type_minecraft.svg"},"_fd_minecraft_open":{"iconPath":"../../icons/folder_type_minecraft_opened.svg"},"_fd_minikube":{"iconPath":"../../icons/folder_type_minikube.svg"},"_fd_minikube_open":{"iconPath":"../../icons/folder_type_minikube_opened.svg"},"_fd_mjml":{"iconPath":"../../icons/folder_type_mjml.svg"},"_fd_mjml_open":{"iconPath":"../../icons/folder_type_mjml_opened.svg"},"_fd_mobile":{"iconPath":"../../icons/folder_type_mobile.svg"},"_fd_mobile_open":{"iconPath":"../../icons/folder_type_mobile_opened.svg"},"_fd_mock":{"iconPath":"../../icons/folder_type_mock.svg"},"_fd_mock_open":{"iconPath":"../../icons/folder_type_mock_opened.svg"},"_fd_model":{"iconPath":"../../icons/folder_type_model.svg"},"_fd_model_open":{"iconPath":"../../icons/folder_type_model_opened.svg"},"_fd_module":{"iconPath":"../../icons/folder_type_module.svg"},"_fd_module_open":{"iconPath":"../../icons/folder_type_module_opened.svg"},"_fd_mojo":{"iconPath":"../../icons/folder_type_mojo.svg"},"_fd_mojo_open":{"iconPath":"../../icons/folder_type_mojo_opened.svg"},"_fd_mongodb":{"iconPath":"../../icons/folder_type_mongodb.svg"},"_fd_mongodb_open":{"iconPath":"../../icons/folder_type_mongodb_opened.svg"},"_fd_mypy":{"iconPath":"../../icons/folder_type_mypy.svg"},"_fd_mypy_open":{"iconPath":"../../icons/folder_type_mypy_opened.svg"},"_fd_light_mypy":{"iconPath":"../../icons/folder_type_light_mypy.svg"},"_fd_light_mypy_open":{"iconPath":"../../icons/folder_type_light_mypy_opened.svg"},"_fd_mysql":{"iconPath":"../../icons/folder_type_mysql.svg"},"_fd_mysql_open":{"iconPath":"../../icons/folder_type_mysql_opened.svg"},"_fd_light_mysql":{"iconPath":"../../icons/folder_type_light_mysql.svg"},"_fd_light_mysql_open":{"iconPath":"../../icons/folder_type_light_mysql_opened.svg"},"_fd_netlify":{"iconPath":"../../icons/folder_type_netlify.svg"},"_fd_netlify_open":{"iconPath":"../../icons/folder_type_netlify_opened.svg"},"_fd_next":{"iconPath":"../../icons/folder_type_next.svg"},"_fd_next_open":{"iconPath":"../../icons/folder_type_next_opened.svg"},"_fd_nginx":{"iconPath":"../../icons/folder_type_nginx.svg"},"_fd_nginx_open":{"iconPath":"../../icons/folder_type_nginx_opened.svg"},"_fd_nix":{"iconPath":"../../icons/folder_type_nix.svg"},"_fd_nix_open":{"iconPath":"../../icons/folder_type_nix_opened.svg"},"_fd_node":{"iconPath":"../../icons/folder_type_node.svg"},"_fd_node_open":{"iconPath":"../../icons/folder_type_node_opened.svg"},"_fd_light_node":{"iconPath":"../../icons/folder_type_light_node.svg"},"_fd_light_node_open":{"iconPath":"../../icons/folder_type_light_node_opened.svg"},"_fd_notebooks":{"iconPath":"../../icons/folder_type_notebooks.svg"},"_fd_notebooks_open":{"iconPath":"../../icons/folder_type_notebooks_opened.svg"},"_fd_notification":{"iconPath":"../../icons/folder_type_notification.svg"},"_fd_notification_open":{"iconPath":"../../icons/folder_type_notification_opened.svg"},"_fd_nuget":{"iconPath":"../../icons/folder_type_nuget.svg"},"_fd_nuget_open":{"iconPath":"../../icons/folder_type_nuget_opened.svg"},"_fd_nuxt":{"iconPath":"../../icons/folder_type_nuxt.svg"},"_fd_nuxt_open":{"iconPath":"../../icons/folder_type_nuxt_opened.svg"},"_fd_package":{"iconPath":"../../icons/folder_type_package.svg"},"_fd_package_open":{"iconPath":"../../icons/folder_type_package_opened.svg"},"_fd_paket":{"iconPath":"../../icons/folder_type_paket.svg"},"_fd_paket_open":{"iconPath":"../../icons/folder_type_paket_opened.svg"},"_fd_php":{"iconPath":"../../icons/folder_type_php.svg"},"_fd_php_open":{"iconPath":"../../icons/folder_type_php_opened.svg"},"_fd_platformio":{"iconPath":"../../icons/folder_type_platformio.svg"},"_fd_platformio_open":{"iconPath":"../../icons/folder_type_platformio_opened.svg"},"_fd_plugin":{"iconPath":"../../icons/folder_type_plugin.svg"},"_fd_plugin_open":{"iconPath":"../../icons/folder_type_plugin_opened.svg"},"_fd_prisma":{"iconPath":"../../icons/folder_type_prisma.svg"},"_fd_prisma_open":{"iconPath":"../../icons/folder_type_prisma_opened.svg"},"_fd_private":{"iconPath":"../../icons/folder_type_private.svg"},"_fd_private_open":{"iconPath":"../../icons/folder_type_private_opened.svg"},"_fd_public":{"iconPath":"../../icons/folder_type_public.svg"},"_fd_public_open":{"iconPath":"../../icons/folder_type_public_opened.svg"},"_fd_pytest":{"iconPath":"../../icons/folder_type_pytest.svg"},"_fd_pytest_open":{"iconPath":"../../icons/folder_type_pytest_opened.svg"},"_fd_python":{"iconPath":"../../icons/folder_type_python.svg"},"_fd_python_open":{"iconPath":"../../icons/folder_type_python_opened.svg"},"_fd_ravendb":{"iconPath":"../../icons/folder_type_ravendb.svg"},"_fd_ravendb_open":{"iconPath":"../../icons/folder_type_ravendb_opened.svg"},"_fd_redis":{"iconPath":"../../icons/folder_type_redis.svg"},"_fd_redis_open":{"iconPath":"../../icons/folder_type_redis_opened.svg"},"_fd_redux":{"iconPath":"../../icons/folder_type_redux.svg"},"_fd_redux_open":{"iconPath":"../../icons/folder_type_redux_opened.svg"},"_fd_light_redux":{"iconPath":"../../icons/folder_type_light_redux.svg"},"_fd_light_redux_open":{"iconPath":"../../icons/folder_type_light_redux_opened.svg"},"_fd_route":{"iconPath":"../../icons/folder_type_route.svg"},"_fd_route_open":{"iconPath":"../../icons/folder_type_route_opened.svg"},"_fd_sass":{"iconPath":"../../icons/folder_type_sass.svg"},"_fd_sass_open":{"iconPath":"../../icons/folder_type_sass_opened.svg"},"_fd_light_sass":{"iconPath":"../../icons/folder_type_light_sass.svg"},"_fd_light_sass_open":{"iconPath":"../../icons/folder_type_light_sass_opened.svg"},"_fd_script":{"iconPath":"../../icons/folder_type_script.svg"},"_fd_script_open":{"iconPath":"../../icons/folder_type_script_opened.svg"},"_fd_seedkit":{"iconPath":"../../icons/folder_type_seedkit.svg"},"_fd_seedkit_open":{"iconPath":"../../icons/folder_type_seedkit_opened.svg"},"_fd_server":{"iconPath":"../../icons/folder_type_server.svg"},"_fd_server_open":{"iconPath":"../../icons/folder_type_server_opened.svg"},"_fd_services":{"iconPath":"../../icons/folder_type_services.svg"},"_fd_services_open":{"iconPath":"../../icons/folder_type_services_opened.svg"},"_fd_shared":{"iconPath":"../../icons/folder_type_shared.svg"},"_fd_shared_open":{"iconPath":"../../icons/folder_type_shared_opened.svg"},"_fd_snaplet":{"iconPath":"../../icons/folder_type_snaplet.svg"},"_fd_snaplet_open":{"iconPath":"../../icons/folder_type_snaplet_opened.svg"},"_fd_spin":{"iconPath":"../../icons/folder_type_spin.svg"},"_fd_spin_open":{"iconPath":"../../icons/folder_type_spin_opened.svg"},"_fd_src":{"iconPath":"../../icons/folder_type_src.svg"},"_fd_src_open":{"iconPath":"../../icons/folder_type_src_opened.svg"},"_fd_sso":{"iconPath":"../../icons/folder_type_sso.svg"},"_fd_sso_open":{"iconPath":"../../icons/folder_type_sso_opened.svg"},"_fd_story":{"iconPath":"../../icons/folder_type_story.svg"},"_fd_story_open":{"iconPath":"../../icons/folder_type_story_opened.svg"},"_fd_style":{"iconPath":"../../icons/folder_type_style.svg"},"_fd_style_open":{"iconPath":"../../icons/folder_type_style_opened.svg"},"_fd_supabase":{"iconPath":"../../icons/folder_type_supabase.svg"},"_fd_supabase_open":{"iconPath":"../../icons/folder_type_supabase_opened.svg"},"_fd_svelte":{"iconPath":"../../icons/folder_type_svelte.svg"},"_fd_svelte_open":{"iconPath":"../../icons/folder_type_svelte_opened.svg"},"_fd_swagger":{"iconPath":"../../icons/folder_type_swagger.svg"},"_fd_swagger_open":{"iconPath":"../../icons/folder_type_swagger_opened.svg"},"_fd_tauri":{"iconPath":"../../icons/folder_type_tauri.svg"},"_fd_tauri_open":{"iconPath":"../../icons/folder_type_tauri_opened.svg"},"_fd_temp":{"iconPath":"../../icons/folder_type_temp.svg"},"_fd_temp_open":{"iconPath":"../../icons/folder_type_temp_opened.svg"},"_fd_template":{"iconPath":"../../icons/folder_type_template.svg"},"_fd_template_open":{"iconPath":"../../icons/folder_type_template_opened.svg"},"_fd_test":{"iconPath":"../../icons/folder_type_test.svg"},"_fd_test_open":{"iconPath":"../../icons/folder_type_test_opened.svg"},"_fd_theme":{"iconPath":"../../icons/folder_type_theme.svg"},"_fd_theme_open":{"iconPath":"../../icons/folder_type_theme_opened.svg"},"_fd_tools":{"iconPath":"../../icons/folder_type_tools.svg"},"_fd_tools_open":{"iconPath":"../../icons/folder_type_tools_opened.svg"},"_fd_travis":{"iconPath":"../../icons/folder_type_travis.svg"},"_fd_travis_open":{"iconPath":"../../icons/folder_type_travis_opened.svg"},"_fd_trunk":{"iconPath":"../../icons/folder_type_trunk.svg"},"_fd_trunk_open":{"iconPath":"../../icons/folder_type_trunk_opened.svg"},"_fd_turbo":{"iconPath":"../../icons/folder_type_turbo.svg"},"_fd_turbo_open":{"iconPath":"../../icons/folder_type_turbo_opened.svg"},"_fd_typescript":{"iconPath":"../../icons/folder_type_typescript.svg"},"_fd_typescript_open":{"iconPath":"../../icons/folder_type_typescript_opened.svg"},"_fd_typings":{"iconPath":"../../icons/folder_type_typings.svg"},"_fd_typings_open":{"iconPath":"../../icons/folder_type_typings_opened.svg"},"_fd_vagrant":{"iconPath":"../../icons/folder_type_vagrant.svg"},"_fd_vagrant_open":{"iconPath":"../../icons/folder_type_vagrant_opened.svg"},"_fd_vercel":{"iconPath":"../../icons/folder_type_vercel.svg"},"_fd_vercel_open":{"iconPath":"../../icons/folder_type_vercel_opened.svg"},"_fd_video":{"iconPath":"../../icons/folder_type_video.svg"},"_fd_video_open":{"iconPath":"../../icons/folder_type_video_opened.svg"},"_fd_view":{"iconPath":"../../icons/folder_type_view.svg"},"_fd_view_open":{"iconPath":"../../icons/folder_type_view_opened.svg"},"_fd_vitepress":{"iconPath":"../../icons/folder_type_vitepress.svg"},"_fd_vitepress_open":{"iconPath":"../../icons/folder_type_vitepress_opened.svg"},"_fd_vs":{"iconPath":"../../icons/folder_type_vs.svg"},"_fd_vs_open":{"iconPath":"../../icons/folder_type_vs_opened.svg"},"_fd_vscode":{"iconPath":"../../icons/folder_type_vscode.svg"},"_fd_vscode_open":{"iconPath":"../../icons/folder_type_vscode_opened.svg"},"_fd_vscode_test":{"iconPath":"../../icons/folder_type_vscode_test.svg"},"_fd_vscode_test_open":{"iconPath":"../../icons/folder_type_vscode_test_opened.svg"},"_fd_wasm":{"iconPath":"../../icons/folder_type_wasm.svg"},"_fd_wasm_open":{"iconPath":"../../icons/folder_type_wasm_opened.svg"},"_fd_wasp":{"iconPath":"../../icons/folder_type_wasp.svg"},"_fd_wasp_open":{"iconPath":"../../icons/folder_type_wasp_opened.svg"},"_fd_webpack":{"iconPath":"../../icons/folder_type_webpack.svg"},"_fd_webpack_open":{"iconPath":"../../icons/folder_type_webpack_opened.svg"},"_fd_windows":{"iconPath":"../../icons/folder_type_windows.svg"},"_fd_windows_open":{"iconPath":"../../icons/folder_type_windows_opened.svg"},"_fd_windsurf":{"iconPath":"../../icons/folder_type_windsurf.svg"},"_fd_windsurf_open":{"iconPath":"../../icons/folder_type_windsurf_opened.svg"},"_fd_wit":{"iconPath":"../../icons/folder_type_wit.svg"},"_fd_wit_open":{"iconPath":"../../icons/folder_type_wit_opened.svg"},"_fd_www":{"iconPath":"../../icons/folder_type_www.svg"},"_fd_www_open":{"iconPath":"../../icons/folder_type_www_opened.svg"},"_fd_yarn":{"iconPath":"../../icons/folder_type_yarn.svg"},"_fd_yarn_open":{"iconPath":"../../icons/folder_type_yarn_opened.svg"},"_fd_zed":{"iconPath":"../../icons/folder_type_zed.svg"},"_fd_zed_open":{"iconPath":"../../icons/folder_type_zed_opened.svg"},"_fd_light_zed":{"iconPath":"../../icons/folder_type_light_zed.svg"},"_fd_light_zed_open":{"iconPath":"../../icons/folder_type_light_zed_opened.svg"},"_f_access":{"iconPath":"../../icons/file_type_access.svg"},"_f_actionscript":{"iconPath":"../../icons/file_type_actionscript.svg"},"_f_ada":{"iconPath":"../../icons/file_type_ada.svg"},"_f_light_ada":{"iconPath":"../../icons/file_type_light_ada.svg"},"_f_advpl":{"iconPath":"../../icons/file_type_advpl.svg"},"_f_affectscript":{"iconPath":"../../icons/file_type_affectscript.svg"},"_f_affinity":{"iconPath":"../../icons/file_type_affinity.svg"},"_f_affinitydesigner":{"iconPath":"../../icons/file_type_affinitydesigner.svg"},"_f_affinityphoto":{"iconPath":"../../icons/file_type_affinityphoto.svg"},"_f_affinitypublisher":{"iconPath":"../../icons/file_type_affinitypublisher.svg"},"_f_agda":{"iconPath":"../../icons/file_type_agda.svg"},"_f_light_agda":{"iconPath":"../../icons/file_type_light_agda.svg"},"_f_agents":{"iconPath":"../../icons/file_type_agents.svg"},"_f_light_agents":{"iconPath":"../../icons/file_type_light_agents.svg"},"_f_ai":{"iconPath":"../../icons/file_type_ai.svg"},"_f_al":{"iconPath":"../../icons/file_type_al.svg"},"_f_al_dal":{"iconPath":"../../icons/file_type_al_dal.svg"},"_f_alchemy":{"iconPath":"../../icons/file_type_alchemy.svg"},"_f_allcontributors":{"iconPath":"../../icons/file_type_allcontributors.svg"},"_f_alloy":{"iconPath":"../../icons/file_type_alloy.svg"},"_f_allure":{"iconPath":"../../icons/file_type_allure.svg"},"_f_angular":{"iconPath":"../../icons/file_type_angular.svg"},"_f_ansible":{"iconPath":"../../icons/file_type_ansible.svg"},"_f_antlers_html":{"iconPath":"../../icons/file_type_antlers_html.svg"},"_f_antlr":{"iconPath":"../../icons/file_type_antlr.svg"},"_f_anyscript":{"iconPath":"../../icons/file_type_anyscript.svg"},"_f_apache":{"iconPath":"../../icons/file_type_apache.svg"},"_f_apex":{"iconPath":"../../icons/file_type_apex.svg"},"_f_api_extractor":{"iconPath":"../../icons/file_type_api_extractor.svg"},"_f_apib":{"iconPath":"../../icons/file_type_apib.svg"},"_f_apl":{"iconPath":"../../icons/file_type_apl.svg"},"_f_light_apl":{"iconPath":"../../icons/file_type_light_apl.svg"},"_f_applescript":{"iconPath":"../../icons/file_type_applescript.svg"},"_f_appscript":{"iconPath":"../../icons/file_type_appscript.svg"},"_f_appsemble":{"iconPath":"../../icons/file_type_appsemble.svg"},"_f_appveyor":{"iconPath":"../../icons/file_type_appveyor.svg"},"_f_arduino":{"iconPath":"../../icons/file_type_arduino.svg"},"_f_asciidoc":{"iconPath":"../../icons/file_type_asciidoc.svg"},"_f_aseprite":{"iconPath":"../../icons/file_type_aseprite.svg"},"_f_asp":{"iconPath":"../../icons/file_type_asp.svg"},"_f_aspx":{"iconPath":"../../icons/file_type_aspx.svg"},"_f_assembly":{"iconPath":"../../icons/file_type_assembly.svg"},"_f_assembly_script":{"iconPath":"../../icons/file_type_assembly_script.svg"},"_f_astro":{"iconPath":"../../icons/file_type_astro.svg"},"_f_light_astro":{"iconPath":"../../icons/file_type_light_astro.svg"},"_f_astroconfig":{"iconPath":"../../icons/file_type_astroconfig.svg"},"_f_light_astroconfig":{"iconPath":"../../icons/file_type_light_astroconfig.svg"},"_f_atom":{"iconPath":"../../icons/file_type_atom.svg"},"_f_ats":{"iconPath":"../../icons/file_type_ats.svg"},"_f_attw":{"iconPath":"../../icons/file_type_attw.svg"},"_f_audio":{"iconPath":"../../icons/file_type_audio.svg"},"_f_aurelia":{"iconPath":"../../icons/file_type_aurelia.svg"},"_f_autohotkey":{"iconPath":"../../icons/file_type_autohotkey.svg"},"_f_autoit":{"iconPath":"../../icons/file_type_autoit.svg"},"_f_avif":{"iconPath":"../../icons/file_type_avif.svg"},"_f_avro":{"iconPath":"../../icons/file_type_avro.svg"},"_f_awk":{"iconPath":"../../icons/file_type_awk.svg"},"_f_aws":{"iconPath":"../../icons/file_type_aws.svg"},"_f_azure":{"iconPath":"../../icons/file_type_azure.svg"},"_f_azurepipelines":{"iconPath":"../../icons/file_type_azurepipelines.svg"},"_f_azurestreamanalytics":{"iconPath":"../../icons/file_type_azurestreamanalytics.svg"},"_f_babel":{"iconPath":"../../icons/file_type_babel.svg"},"_f_light_babel":{"iconPath":"../../icons/file_type_light_babel.svg"},"_f_bak":{"iconPath":"../../icons/file_type_bak.svg"},"_f_ballerina":{"iconPath":"../../icons/file_type_ballerina.svg"},"_f_bat":{"iconPath":"../../icons/file_type_bat.svg"},"_f_bats":{"iconPath":"../../icons/file_type_bats.svg"},"_f_bazaar":{"iconPath":"../../icons/file_type_bazaar.svg"},"_f_bazel":{"iconPath":"../../icons/file_type_bazel.svg"},"_f_bazel_ignore":{"iconPath":"../../icons/file_type_bazel_ignore.svg"},"_f_bazel_version":{"iconPath":"../../icons/file_type_bazel_version.svg"},"_f_befunge":{"iconPath":"../../icons/file_type_befunge.svg"},"_f_bicep":{"iconPath":"../../icons/file_type_bicep.svg"},"_f_biml":{"iconPath":"../../icons/file_type_biml.svg"},"_f_binary":{"iconPath":"../../icons/file_type_binary.svg"},"_f_biome":{"iconPath":"../../icons/file_type_biome.svg"},"_f_bitbucketpipeline":{"iconPath":"../../icons/file_type_bitbucketpipeline.svg"},"_f_bithound":{"iconPath":"../../icons/file_type_bithound.svg"},"_f_blade":{"iconPath":"../../icons/file_type_blade.svg"},"_f_blender":{"iconPath":"../../icons/file_type_blender.svg"},"_f_blitzbasic":{"iconPath":"../../icons/file_type_blitzbasic.svg"},"_f_bolt":{"iconPath":"../../icons/file_type_bolt.svg"},"_f_bosque":{"iconPath":"../../icons/file_type_bosque.svg"},"_f_bower":{"iconPath":"../../icons/file_type_bower.svg"},"_f_brew":{"iconPath":"../../icons/file_type_brew.svg"},"_f_browserslist":{"iconPath":"../../icons/file_type_browserslist.svg"},"_f_bruno":{"iconPath":"../../icons/file_type_bruno.svg"},"_f_buckbuild":{"iconPath":"../../icons/file_type_buckbuild.svg"},"_f_buf":{"iconPath":"../../icons/file_type_buf.svg"},"_f_bun":{"iconPath":"../../icons/file_type_bun.svg"},"_f_bundlemon":{"iconPath":"../../icons/file_type_bundlemon.svg"},"_f_bundler":{"iconPath":"../../icons/file_type_bundler.svg"},"_f_bunfig":{"iconPath":"../../icons/file_type_bunfig.svg"},"_f_c":{"iconPath":"../../icons/file_type_c.svg"},"_f_c3":{"iconPath":"../../icons/file_type_c3.svg"},"_f_c_al":{"iconPath":"../../icons/file_type_c_al.svg"},"_f_cabal":{"iconPath":"../../icons/file_type_cabal.svg"},"_f_caddy":{"iconPath":"../../icons/file_type_caddy.svg"},"_f_cake":{"iconPath":"../../icons/file_type_cake.svg"},"_f_cakephp":{"iconPath":"../../icons/file_type_cakephp.svg"},"_f_cangjie":{"iconPath":"../../icons/file_type_cangjie.svg"},"_f_capacitor":{"iconPath":"../../icons/file_type_capacitor.svg"},"_f_capnp":{"iconPath":"../../icons/file_type_capnp.svg"},"_f_cargo":{"iconPath":"../../icons/file_type_cargo.svg"},"_f_casc":{"iconPath":"../../icons/file_type_casc.svg"},"_f_cddl":{"iconPath":"../../icons/file_type_cddl.svg"},"_f_cert":{"iconPath":"../../icons/file_type_cert.svg"},"_f_ceylon":{"iconPath":"../../icons/file_type_ceylon.svg"},"_f_cf":{"iconPath":"../../icons/file_type_cf.svg"},"_f_cfc":{"iconPath":"../../icons/file_type_cfc.svg"},"_f_cfm":{"iconPath":"../../icons/file_type_cfm.svg"},"_f_changie":{"iconPath":"../../icons/file_type_changie.svg"},"_f_cheader":{"iconPath":"../../icons/file_type_cheader.svg"},"_f_chef":{"iconPath":"../../icons/file_type_chef.svg"},"_f_chef_cookbook":{"iconPath":"../../icons/file_type_chef_cookbook.svg"},"_f_circleci":{"iconPath":"../../icons/file_type_circleci.svg"},"_f_light_circleci":{"iconPath":"../../icons/file_type_light_circleci.svg"},"_f_circom":{"iconPath":"../../icons/file_type_circom.svg"},"_f_clangd":{"iconPath":"../../icons/file_type_clangd.svg"},"_f_class":{"iconPath":"../../icons/file_type_class.svg"},"_f_claude":{"iconPath":"../../icons/file_type_claude.svg"},"_f_clojure":{"iconPath":"../../icons/file_type_clojure.svg"},"_f_clojurescript":{"iconPath":"../../icons/file_type_clojurescript.svg"},"_f_cloudflare":{"iconPath":"../../icons/file_type_cloudflare.svg"},"_f_cloudfoundry":{"iconPath":"../../icons/file_type_cloudfoundry.svg"},"_f_light_cloudfoundry":{"iconPath":"../../icons/file_type_light_cloudfoundry.svg"},"_f_cmake":{"iconPath":"../../icons/file_type_cmake.svg"},"_f_cobol":{"iconPath":"../../icons/file_type_cobol.svg"},"_f_codacy":{"iconPath":"../../icons/file_type_codacy.svg"},"_f_light_codacy":{"iconPath":"../../icons/file_type_light_codacy.svg"},"_f_codeclimate":{"iconPath":"../../icons/file_type_codeclimate.svg"},"_f_light_codeclimate":{"iconPath":"../../icons/file_type_light_codeclimate.svg"},"_f_codecov":{"iconPath":"../../icons/file_type_codecov.svg"},"_f_codekit":{"iconPath":"../../icons/file_type_codekit.svg"},"_f_codemagic":{"iconPath":"../../icons/file_type_codemagic.svg"},"_f_codeowners":{"iconPath":"../../icons/file_type_codeowners.svg"},"_f_light_codeowners":{"iconPath":"../../icons/file_type_light_codeowners.svg"},"_f_codeql":{"iconPath":"../../icons/file_type_codeql.svg"},"_f_coderabbit":{"iconPath":"../../icons/file_type_coderabbit.svg"},"_f_coffeelint":{"iconPath":"../../icons/file_type_coffeelint.svg"},"_f_coffeescript":{"iconPath":"../../icons/file_type_coffeescript.svg"},"_f_commitizen":{"iconPath":"../../icons/file_type_commitizen.svg"},"_f_commitlint":{"iconPath":"../../icons/file_type_commitlint.svg"},"_f_compass":{"iconPath":"../../icons/file_type_compass.svg"},"_f_composer":{"iconPath":"../../icons/file_type_composer.svg"},"_f_conan":{"iconPath":"../../icons/file_type_conan.svg"},"_f_conda":{"iconPath":"../../icons/file_type_conda.svg"},"_f_config":{"iconPath":"../../icons/file_type_config.svg"},"_f_light_config":{"iconPath":"../../icons/file_type_light_config.svg"},"_f_confluence":{"iconPath":"../../icons/file_type_confluence.svg"},"_f_context7":{"iconPath":"../../icons/file_type_context7.svg"},"_f_copilot":{"iconPath":"../../icons/file_type_copilot.svg"},"_f_light_copilot":{"iconPath":"../../icons/file_type_light_copilot.svg"},"_f_coverage":{"iconPath":"../../icons/file_type_coverage.svg"},"_f_coveralls":{"iconPath":"../../icons/file_type_coveralls.svg"},"_f_cpp":{"iconPath":"../../icons/file_type_cpp.svg"},"_f_cppheader":{"iconPath":"../../icons/file_type_cppheader.svg"},"_f_craco":{"iconPath":"../../icons/file_type_craco.svg"},"_f_crowdin":{"iconPath":"../../icons/file_type_crowdin.svg"},"_f_crystal":{"iconPath":"../../icons/file_type_crystal.svg"},"_f_light_crystal":{"iconPath":"../../icons/file_type_light_crystal.svg"},"_f_csharp":{"iconPath":"../../icons/file_type_csharp.svg"},"_f_cspell":{"iconPath":"../../icons/file_type_cspell.svg"},"_f_csproj":{"iconPath":"../../icons/file_type_csproj.svg"},"_f_css":{"iconPath":"../../icons/file_type_css.svg"},"_f_csscomb":{"iconPath":"../../icons/file_type_csscomb.svg"},"_f_csslint":{"iconPath":"../../icons/file_type_csslint.svg"},"_f_cssmap":{"iconPath":"../../icons/file_type_cssmap.svg"},"_f_cucumber":{"iconPath":"../../icons/file_type_cucumber.svg"},"_f_cuda":{"iconPath":"../../icons/file_type_cuda.svg"},"_f_cue":{"iconPath":"../../icons/file_type_cue.svg"},"_f_light_cue":{"iconPath":"../../icons/file_type_light_cue.svg"},"_f_cursorrules":{"iconPath":"../../icons/file_type_cursorrules.svg"},"_f_cvs":{"iconPath":"../../icons/file_type_cvs.svg"},"_f_cypress":{"iconPath":"../../icons/file_type_cypress.svg"},"_f_light_cypress":{"iconPath":"../../icons/file_type_light_cypress.svg"},"_f_cypress_spec":{"iconPath":"../../icons/file_type_cypress_spec.svg"},"_f_light_cypress_spec":{"iconPath":"../../icons/file_type_light_cypress_spec.svg"},"_f_cython":{"iconPath":"../../icons/file_type_cython.svg"},"_f_dal":{"iconPath":"../../icons/file_type_dal.svg"},"_f_darcs":{"iconPath":"../../icons/file_type_darcs.svg"},"_f_dartlang":{"iconPath":"../../icons/file_type_dartlang.svg"},"_f_dartlang_generated":{"iconPath":"../../icons/file_type_dartlang_generated.svg"},"_f_dartlang_ignore":{"iconPath":"../../icons/file_type_dartlang_ignore.svg"},"_f_databricks":{"iconPath":"../../icons/file_type_databricks.svg"},"_f_datadog":{"iconPath":"../../icons/file_type_datadog.svg"},"_f_db":{"iconPath":"../../icons/file_type_db.svg"},"_f_light_db":{"iconPath":"../../icons/file_type_light_db.svg"},"_f_dbt":{"iconPath":"../../icons/file_type_dbt.svg"},"_f_debian":{"iconPath":"../../icons/file_type_debian.svg"},"_f_delphi":{"iconPath":"../../icons/file_type_delphi.svg"},"_f_deno":{"iconPath":"../../icons/file_type_deno.svg"},"_f_denoify":{"iconPath":"../../icons/file_type_denoify.svg"},"_f_dependabot":{"iconPath":"../../icons/file_type_dependabot.svg"},"_f_dependencies":{"iconPath":"../../icons/file_type_dependencies.svg"},"_f_design_tokens":{"iconPath":"../../icons/file_type_design_tokens.svg"},"_f_devcontainer":{"iconPath":"../../icons/file_type_devcontainer.svg"},"_f_devenv":{"iconPath":"../../icons/file_type_devenv.svg"},"_f_light_devenv":{"iconPath":"../../icons/file_type_light_devenv.svg"},"_f_devvit":{"iconPath":"../../icons/file_type_devvit.svg"},"_f_dhall":{"iconPath":"../../icons/file_type_dhall.svg"},"_f_light_dhall":{"iconPath":"../../icons/file_type_light_dhall.svg"},"_f_diff":{"iconPath":"../../icons/file_type_diff.svg"},"_f_django":{"iconPath":"../../icons/file_type_django.svg"},"_f_dlang":{"iconPath":"../../icons/file_type_dlang.svg"},"_f_docker":{"iconPath":"../../icons/file_type_docker.svg"},"_f_dockertest":{"iconPath":"../../icons/file_type_dockertest.svg"},"_f_docpad":{"iconPath":"../../icons/file_type_docpad.svg"},"_f_light_docpad":{"iconPath":"../../icons/file_type_light_docpad.svg"},"_f_docusaurus":{"iconPath":"../../icons/file_type_docusaurus.svg"},"_f_docz":{"iconPath":"../../icons/file_type_docz.svg"},"_f_dojo":{"iconPath":"../../icons/file_type_dojo.svg"},"_f_doppler":{"iconPath":"../../icons/file_type_doppler.svg"},"_f_dotenv":{"iconPath":"../../icons/file_type_dotenv.svg"},"_f_dotjs":{"iconPath":"../../icons/file_type_dotjs.svg"},"_f_doxyfile":{"iconPath":"../../icons/file_type_doxyfile.svg"},"_f_doxygen":{"iconPath":"../../icons/file_type_doxygen.svg"},"_f_drawio":{"iconPath":"../../icons/file_type_drawio.svg"},"_f_drizzle_orm":{"iconPath":"../../icons/file_type_drizzle_orm.svg"},"_f_light_drizzle_orm":{"iconPath":"../../icons/file_type_light_drizzle_orm.svg"},"_f_drone":{"iconPath":"../../icons/file_type_drone.svg"},"_f_light_drone":{"iconPath":"../../icons/file_type_light_drone.svg"},"_f_drools":{"iconPath":"../../icons/file_type_drools.svg"},"_f_dtd":{"iconPath":"../../icons/file_type_dtd.svg"},"_f_duckdb":{"iconPath":"../../icons/file_type_duckdb.svg"},"_f_light_duckdb":{"iconPath":"../../icons/file_type_light_duckdb.svg"},"_f_dune":{"iconPath":"../../icons/file_type_dune.svg"},"_f_dustjs":{"iconPath":"../../icons/file_type_dustjs.svg"},"_f_dvc":{"iconPath":"../../icons/file_type_dvc.svg"},"_f_dylan":{"iconPath":"../../icons/file_type_dylan.svg"},"_f_earthly":{"iconPath":"../../icons/file_type_earthly.svg"},"_f_eas-metadata":{"iconPath":"../../icons/file_type_eas-metadata.svg"},"_f_light_eas-metadata":{"iconPath":"../../icons/file_type_light_eas-metadata.svg"},"_f_edge":{"iconPath":"../../icons/file_type_edge.svg"},"_f_editorconfig":{"iconPath":"../../icons/file_type_editorconfig.svg"},"_f_eex":{"iconPath":"../../icons/file_type_eex.svg"},"_f_ejs":{"iconPath":"../../icons/file_type_ejs.svg"},"_f_elastic":{"iconPath":"../../icons/file_type_elastic.svg"},"_f_elasticbeanstalk":{"iconPath":"../../icons/file_type_elasticbeanstalk.svg"},"_f_electron":{"iconPath":"../../icons/file_type_electron.svg"},"_f_eleventy":{"iconPath":"../../icons/file_type_eleventy.svg"},"_f_light_eleventy":{"iconPath":"../../icons/file_type_light_eleventy.svg"},"_f_elixir":{"iconPath":"../../icons/file_type_elixir.svg"},"_f_elm":{"iconPath":"../../icons/file_type_elm.svg"},"_f_emacs":{"iconPath":"../../icons/file_type_emacs.svg"},"_f_ember":{"iconPath":"../../icons/file_type_ember.svg"},"_f_ensime":{"iconPath":"../../icons/file_type_ensime.svg"},"_f_eps":{"iconPath":"../../icons/file_type_eps.svg"},"_f_epub":{"iconPath":"../../icons/file_type_epub.svg"},"_f_erb":{"iconPath":"../../icons/file_type_erb.svg"},"_f_erlang":{"iconPath":"../../icons/file_type_erlang.svg"},"_f_esbuild":{"iconPath":"../../icons/file_type_esbuild.svg"},"_f_eslint":{"iconPath":"../../icons/file_type_eslint.svg"},"_f_esphome":{"iconPath":"../../icons/file_type_esphome.svg"},"_f_light_esphome":{"iconPath":"../../icons/file_type_light_esphome.svg"},"_f_excalidraw":{"iconPath":"../../icons/file_type_excalidraw.svg"},"_f_excel":{"iconPath":"../../icons/file_type_excel.svg"},"_f_expo":{"iconPath":"../../icons/file_type_expo.svg"},"_f_light_expo":{"iconPath":"../../icons/file_type_light_expo.svg"},"_f_falcon":{"iconPath":"../../icons/file_type_falcon.svg"},"_f_fantasticon":{"iconPath":"../../icons/file_type_fantasticon.svg"},"_f_fastly":{"iconPath":"../../icons/file_type_fastly.svg"},"_f_fauna":{"iconPath":"../../icons/file_type_fauna.svg"},"_f_favicon":{"iconPath":"../../icons/file_type_favicon.svg"},"_f_fbx":{"iconPath":"../../icons/file_type_fbx.svg"},"_f_firebase":{"iconPath":"../../icons/file_type_firebase.svg"},"_f_firebasehosting":{"iconPath":"../../icons/file_type_firebasehosting.svg"},"_f_light_firebasehosting":{"iconPath":"../../icons/file_type_light_firebasehosting.svg"},"_f_firebasestorage":{"iconPath":"../../icons/file_type_firebasestorage.svg"},"_f_firestore":{"iconPath":"../../icons/file_type_firestore.svg"},"_f_fitbit":{"iconPath":"../../icons/file_type_fitbit.svg"},"_f_fla":{"iconPath":"../../icons/file_type_fla.svg"},"_f_light_fla":{"iconPath":"../../icons/file_type_light_fla.svg"},"_f_flareact":{"iconPath":"../../icons/file_type_flareact.svg"},"_f_flash":{"iconPath":"../../icons/file_type_flash.svg"},"_f_flatbuffers":{"iconPath":"../../icons/file_type_flatbuffers.svg"},"_f_fleet":{"iconPath":"../../icons/file_type_fleet.svg"},"_f_floobits":{"iconPath":"../../icons/file_type_floobits.svg"},"_f_flow":{"iconPath":"../../icons/file_type_flow.svg"},"_f_flowgorithm":{"iconPath":"../../icons/file_type_flowgorithm.svg"},"_f_flutter":{"iconPath":"../../icons/file_type_flutter.svg"},"_f_flutter_package":{"iconPath":"../../icons/file_type_flutter_package.svg"},"_f_flyio":{"iconPath":"../../icons/file_type_flyio.svg"},"_f_font":{"iconPath":"../../icons/file_type_font.svg"},"_f_light_font":{"iconPath":"../../icons/file_type_light_font.svg"},"_f_formkit":{"iconPath":"../../icons/file_type_formkit.svg"},"_f_fortran":{"iconPath":"../../icons/file_type_fortran.svg"},"_f_fossa":{"iconPath":"../../icons/file_type_fossa.svg"},"_f_fossil":{"iconPath":"../../icons/file_type_fossil.svg"},"_f_freemarker":{"iconPath":"../../icons/file_type_freemarker.svg"},"_f_fritzing":{"iconPath":"../../icons/file_type_fritzing.svg"},"_f_frontcommerce":{"iconPath":"../../icons/file_type_frontcommerce.svg"},"_f_fsharp":{"iconPath":"../../icons/file_type_fsharp.svg"},"_f_fsproj":{"iconPath":"../../icons/file_type_fsproj.svg"},"_f_fthtml":{"iconPath":"../../icons/file_type_fthtml.svg"},"_f_funding":{"iconPath":"../../icons/file_type_funding.svg"},"_f_fusebox":{"iconPath":"../../icons/file_type_fusebox.svg"},"_f_galen":{"iconPath":"../../icons/file_type_galen.svg"},"_f_gamemaker":{"iconPath":"../../icons/file_type_gamemaker.svg"},"_f_gamemaker2":{"iconPath":"../../icons/file_type_gamemaker2.svg"},"_f_light_gamemaker2":{"iconPath":"../../icons/file_type_light_gamemaker2.svg"},"_f_gamemaker81":{"iconPath":"../../icons/file_type_gamemaker81.svg"},"_f_gatsby":{"iconPath":"../../icons/file_type_gatsby.svg"},"_f_gcloud":{"iconPath":"../../icons/file_type_gcloud.svg"},"_f_gcode":{"iconPath":"../../icons/file_type_gcode.svg"},"_f_gdscript":{"iconPath":"../../icons/file_type_gdscript.svg"},"_f_gduid":{"iconPath":"../../icons/file_type_gduid.svg"},"_f_gemini":{"iconPath":"../../icons/file_type_gemini.svg"},"_f_genstat":{"iconPath":"../../icons/file_type_genstat.svg"},"_f_geojson":{"iconPath":"../../icons/file_type_geojson.svg"},"_f_gimp":{"iconPath":"../../icons/file_type_gimp.svg"},"_f_git":{"iconPath":"../../icons/file_type_git.svg"},"_f_gitlab":{"iconPath":"../../icons/file_type_gitlab.svg"},"_f_gitpod":{"iconPath":"../../icons/file_type_gitpod.svg"},"_f_gleam":{"iconPath":"../../icons/file_type_gleam.svg"},"_f_gleamconfig":{"iconPath":"../../icons/file_type_gleamconfig.svg"},"_f_glide":{"iconPath":"../../icons/file_type_glide.svg"},"_f_glimmer":{"iconPath":"../../icons/file_type_glimmer.svg"},"_f_glitter":{"iconPath":"../../icons/file_type_glitter.svg"},"_f_glsl":{"iconPath":"../../icons/file_type_glsl.svg"},"_f_gltf":{"iconPath":"../../icons/file_type_gltf.svg"},"_f_glyphs":{"iconPath":"../../icons/file_type_glyphs.svg"},"_f_gnu":{"iconPath":"../../icons/file_type_gnu.svg"},"_f_gnuplot":{"iconPath":"../../icons/file_type_gnuplot.svg"},"_f_go":{"iconPath":"../../icons/file_type_go.svg"},"_f_go_package":{"iconPath":"../../icons/file_type_go_package.svg"},"_f_go_work":{"iconPath":"../../icons/file_type_go_work.svg"},"_f_goctl":{"iconPath":"../../icons/file_type_goctl.svg"},"_f_godot":{"iconPath":"../../icons/file_type_godot.svg"},"_f_gpg":{"iconPath":"../../icons/file_type_gpg.svg"},"_f_gradle":{"iconPath":"../../icons/file_type_gradle.svg"},"_f_light_gradle":{"iconPath":"../../icons/file_type_light_gradle.svg"},"_f_grain":{"iconPath":"../../icons/file_type_grain.svg"},"_f_graphql":{"iconPath":"../../icons/file_type_graphql.svg"},"_f_graphql_config":{"iconPath":"../../icons/file_type_graphql_config.svg"},"_f_graphviz":{"iconPath":"../../icons/file_type_graphviz.svg"},"_f_greenkeeper":{"iconPath":"../../icons/file_type_greenkeeper.svg"},"_f_gridsome":{"iconPath":"../../icons/file_type_gridsome.svg"},"_f_grit":{"iconPath":"../../icons/file_type_grit.svg"},"_f_groovy":{"iconPath":"../../icons/file_type_groovy.svg"},"_f_grunt":{"iconPath":"../../icons/file_type_grunt.svg"},"_f_gulp":{"iconPath":"../../icons/file_type_gulp.svg"},"_f_haml":{"iconPath":"../../icons/file_type_haml.svg"},"_f_handlebars":{"iconPath":"../../icons/file_type_handlebars.svg"},"_f_harbour":{"iconPath":"../../icons/file_type_harbour.svg"},"_f_hardhat":{"iconPath":"../../icons/file_type_hardhat.svg"},"_f_hashicorp":{"iconPath":"../../icons/file_type_hashicorp.svg"},"_f_light_hashicorp":{"iconPath":"../../icons/file_type_light_hashicorp.svg"},"_f_haskell":{"iconPath":"../../icons/file_type_haskell.svg"},"_f_haxe":{"iconPath":"../../icons/file_type_haxe.svg"},"_f_haxecheckstyle":{"iconPath":"../../icons/file_type_haxecheckstyle.svg"},"_f_haxedevelop":{"iconPath":"../../icons/file_type_haxedevelop.svg"},"_f_helix":{"iconPath":"../../icons/file_type_helix.svg"},"_f_helm":{"iconPath":"../../icons/file_type_helm.svg"},"_f_histoire":{"iconPath":"../../icons/file_type_histoire.svg"},"_f_hjson":{"iconPath":"../../icons/file_type_hjson.svg"},"_f_light_hjson":{"iconPath":"../../icons/file_type_light_hjson.svg"},"_f_hlsl":{"iconPath":"../../icons/file_type_hlsl.svg"},"_f_homeassistant":{"iconPath":"../../icons/file_type_homeassistant.svg"},"_f_horusec":{"iconPath":"../../icons/file_type_horusec.svg"},"_f_host":{"iconPath":"../../icons/file_type_host.svg"},"_f_html":{"iconPath":"../../icons/file_type_html.svg"},"_f_htmlhint":{"iconPath":"../../icons/file_type_htmlhint.svg"},"_f_htmlvalidate":{"iconPath":"../../icons/file_type_htmlvalidate.svg"},"_f_http":{"iconPath":"../../icons/file_type_http.svg"},"_f_huff":{"iconPath":"../../icons/file_type_huff.svg"},"_f_light_huff":{"iconPath":"../../icons/file_type_light_huff.svg"},"_f_hugo":{"iconPath":"../../icons/file_type_hugo.svg"},"_f_humanstxt":{"iconPath":"../../icons/file_type_humanstxt.svg"},"_f_hunspell":{"iconPath":"../../icons/file_type_hunspell.svg"},"_f_hurl":{"iconPath":"../../icons/file_type_hurl.svg"},"_f_husky":{"iconPath":"../../icons/file_type_husky.svg"},"_f_hy":{"iconPath":"../../icons/file_type_hy.svg"},"_f_hygen":{"iconPath":"../../icons/file_type_hygen.svg"},"_f_hypr":{"iconPath":"../../icons/file_type_hypr.svg"},"_f_icl":{"iconPath":"../../icons/file_type_icl.svg"},"_f_idris":{"iconPath":"../../icons/file_type_idris.svg"},"_f_idrisbin":{"iconPath":"../../icons/file_type_idrisbin.svg"},"_f_idrispkg":{"iconPath":"../../icons/file_type_idrispkg.svg"},"_f_image":{"iconPath":"../../icons/file_type_image.svg"},"_f_imba":{"iconPath":"../../icons/file_type_imba.svg"},"_f_inc":{"iconPath":"../../icons/file_type_inc.svg"},"_f_infopath":{"iconPath":"../../icons/file_type_infopath.svg"},"_f_informix":{"iconPath":"../../icons/file_type_informix.svg"},"_f_ini":{"iconPath":"../../icons/file_type_ini.svg"},"_f_light_ini":{"iconPath":"../../icons/file_type_light_ini.svg"},"_f_ink":{"iconPath":"../../icons/file_type_ink.svg"},"_f_innosetup":{"iconPath":"../../icons/file_type_innosetup.svg"},"_f_io":{"iconPath":"../../icons/file_type_io.svg"},"_f_light_io":{"iconPath":"../../icons/file_type_light_io.svg"},"_f_iodine":{"iconPath":"../../icons/file_type_iodine.svg"},"_f_ionic":{"iconPath":"../../icons/file_type_ionic.svg"},"_f_jake":{"iconPath":"../../icons/file_type_jake.svg"},"_f_janet":{"iconPath":"../../icons/file_type_janet.svg"},"_f_jar":{"iconPath":"../../icons/file_type_jar.svg"},"_f_jasmine":{"iconPath":"../../icons/file_type_jasmine.svg"},"_f_java":{"iconPath":"../../icons/file_type_java.svg"},"_f_jbuilder":{"iconPath":"../../icons/file_type_jbuilder.svg"},"_f_jekyll":{"iconPath":"../../icons/file_type_jekyll.svg"},"_f_jenkins":{"iconPath":"../../icons/file_type_jenkins.svg"},"_f_jest":{"iconPath":"../../icons/file_type_jest.svg"},"_f_jest_snapshot":{"iconPath":"../../icons/file_type_jest_snapshot.svg"},"_f_jetbrains":{"iconPath":"../../icons/file_type_jetbrains.svg"},"_f_jinja":{"iconPath":"../../icons/file_type_jinja.svg"},"_f_jpm":{"iconPath":"../../icons/file_type_jpm.svg"},"_f_js":{"iconPath":"../../icons/file_type_js.svg"},"_f_light_js":{"iconPath":"../../icons/file_type_light_js.svg"},"_f_jsbeautify":{"iconPath":"../../icons/file_type_jsbeautify.svg"},"_f_jsconfig":{"iconPath":"../../icons/file_type_jsconfig.svg"},"_f_light_jsconfig":{"iconPath":"../../icons/file_type_light_jsconfig.svg"},"_f_jscpd":{"iconPath":"../../icons/file_type_jscpd.svg"},"_f_jshint":{"iconPath":"../../icons/file_type_jshint.svg"},"_f_jsmap":{"iconPath":"../../icons/file_type_jsmap.svg"},"_f_light_jsmap":{"iconPath":"../../icons/file_type_light_jsmap.svg"},"_f_json":{"iconPath":"../../icons/file_type_json.svg"},"_f_light_json":{"iconPath":"../../icons/file_type_light_json.svg"},"_f_json5":{"iconPath":"../../icons/file_type_json5.svg"},"_f_light_json5":{"iconPath":"../../icons/file_type_light_json5.svg"},"_f_json_schema":{"iconPath":"../../icons/file_type_json_schema.svg"},"_f_light_json_schema":{"iconPath":"../../icons/file_type_light_json_schema.svg"},"_f_jsonld":{"iconPath":"../../icons/file_type_jsonld.svg"},"_f_light_jsonld":{"iconPath":"../../icons/file_type_light_jsonld.svg"},"_f_jsonnet":{"iconPath":"../../icons/file_type_jsonnet.svg"},"_f_jsp":{"iconPath":"../../icons/file_type_jsp.svg"},"_f_jsr":{"iconPath":"../../icons/file_type_jsr.svg"},"_f_jss":{"iconPath":"../../icons/file_type_jss.svg"},"_f_juice":{"iconPath":"../../icons/file_type_juice.svg"},"_f_julia":{"iconPath":"../../icons/file_type_julia.svg"},"_f_jupyter":{"iconPath":"../../icons/file_type_jupyter.svg"},"_f_just":{"iconPath":"../../icons/file_type_just.svg"},"_f_k":{"iconPath":"../../icons/file_type_k.svg"},"_f_karma":{"iconPath":"../../icons/file_type_karma.svg"},"_f_key":{"iconPath":"../../icons/file_type_key.svg"},"_f_kitchenci":{"iconPath":"../../icons/file_type_kitchenci.svg"},"_f_kite":{"iconPath":"../../icons/file_type_kite.svg"},"_f_light_kite":{"iconPath":"../../icons/file_type_light_kite.svg"},"_f_kivy":{"iconPath":"../../icons/file_type_kivy.svg"},"_f_knex":{"iconPath":"../../icons/file_type_knex.svg"},"_f_knip":{"iconPath":"../../icons/file_type_knip.svg"},"_f_kos":{"iconPath":"../../icons/file_type_kos.svg"},"_f_kotlin":{"iconPath":"../../icons/file_type_kotlin.svg"},"_f_kusto":{"iconPath":"../../icons/file_type_kusto.svg"},"_f_language_configuration":{"iconPath":"../../icons/file_type_language_configuration.svg"},"_f_lark":{"iconPath":"../../icons/file_type_lark.svg"},"_f_light_lark":{"iconPath":"../../icons/file_type_light_lark.svg"},"_f_latino":{"iconPath":"../../icons/file_type_latino.svg"},"_f_layout":{"iconPath":"../../icons/file_type_layout.svg"},"_f_lean":{"iconPath":"../../icons/file_type_lean.svg"},"_f_light_lean":{"iconPath":"../../icons/file_type_light_lean.svg"},"_f_leanconfig":{"iconPath":"../../icons/file_type_leanconfig.svg"},"_f_light_leanconfig":{"iconPath":"../../icons/file_type_light_leanconfig.svg"},"_f_lefthook":{"iconPath":"../../icons/file_type_lefthook.svg"},"_f_lemon":{"iconPath":"../../icons/file_type_lemon.svg"},"_f_lerna":{"iconPath":"../../icons/file_type_lerna.svg"},"_f_light_lerna":{"iconPath":"../../icons/file_type_light_lerna.svg"},"_f_less":{"iconPath":"../../icons/file_type_less.svg"},"_f_lex":{"iconPath":"../../icons/file_type_lex.svg"},"_f_liara":{"iconPath":"../../icons/file_type_liara.svg"},"_f_libreoffice_base":{"iconPath":"../../icons/file_type_libreoffice_base.svg"},"_f_libreoffice_calc":{"iconPath":"../../icons/file_type_libreoffice_calc.svg"},"_f_libreoffice_draw":{"iconPath":"../../icons/file_type_libreoffice_draw.svg"},"_f_libreoffice_impress":{"iconPath":"../../icons/file_type_libreoffice_impress.svg"},"_f_libreoffice_math":{"iconPath":"../../icons/file_type_libreoffice_math.svg"},"_f_libreoffice_writer":{"iconPath":"../../icons/file_type_libreoffice_writer.svg"},"_f_license":{"iconPath":"../../icons/file_type_license.svg"},"_f_licensebat":{"iconPath":"../../icons/file_type_licensebat.svg"},"_f_lighthouse":{"iconPath":"../../icons/file_type_lighthouse.svg"},"_f_lilypond":{"iconPath":"../../icons/file_type_lilypond.svg"},"_f_lime":{"iconPath":"../../icons/file_type_lime.svg"},"_f_lintstagedrc":{"iconPath":"../../icons/file_type_lintstagedrc.svg"},"_f_liquid":{"iconPath":"../../icons/file_type_liquid.svg"},"_f_lisp":{"iconPath":"../../icons/file_type_lisp.svg"},"_f_livescript":{"iconPath":"../../icons/file_type_livescript.svg"},"_f_lnk":{"iconPath":"../../icons/file_type_lnk.svg"},"_f_locale":{"iconPath":"../../icons/file_type_locale.svg"},"_f_log":{"iconPath":"../../icons/file_type_log.svg"},"_f_lolcode":{"iconPath":"../../icons/file_type_lolcode.svg"},"_f_lsl":{"iconPath":"../../icons/file_type_lsl.svg"},"_f_lua":{"iconPath":"../../icons/file_type_lua.svg"},"_f_luau":{"iconPath":"../../icons/file_type_luau.svg"},"_f_lychee":{"iconPath":"../../icons/file_type_lychee.svg"},"_f_lync":{"iconPath":"../../icons/file_type_lync.svg"},"_f_mailing":{"iconPath":"../../icons/file_type_mailing.svg"},"_f_light_mailing":{"iconPath":"../../icons/file_type_light_mailing.svg"},"_f_manifest":{"iconPath":"../../icons/file_type_manifest.svg"},"_f_manifest_bak":{"iconPath":"../../icons/file_type_manifest_bak.svg"},"_f_manifest_skip":{"iconPath":"../../icons/file_type_manifest_skip.svg"},"_f_map":{"iconPath":"../../icons/file_type_map.svg"},"_f_markdown":{"iconPath":"../../icons/file_type_markdown.svg"},"_f_markdownlint":{"iconPath":"../../icons/file_type_markdownlint.svg"},"_f_markdownlint_ignore":{"iconPath":"../../icons/file_type_markdownlint_ignore.svg"},"_f_marko":{"iconPath":"../../icons/file_type_marko.svg"},"_f_markojs":{"iconPath":"../../icons/file_type_markojs.svg"},"_f_markuplint":{"iconPath":"../../icons/file_type_markuplint.svg"},"_f_light_markuplint":{"iconPath":"../../icons/file_type_light_markuplint.svg"},"_f_master-co":{"iconPath":"../../icons/file_type_master-co.svg"},"_f_matlab":{"iconPath":"../../icons/file_type_matlab.svg"},"_f_maven":{"iconPath":"../../icons/file_type_maven.svg"},"_f_maxscript":{"iconPath":"../../icons/file_type_maxscript.svg"},"_f_maya":{"iconPath":"../../icons/file_type_maya.svg"},"_f_mcp":{"iconPath":"../../icons/file_type_mcp.svg"},"_f_light_mcp":{"iconPath":"../../icons/file_type_light_mcp.svg"},"_f_mdx":{"iconPath":"../../icons/file_type_mdx.svg"},"_f_light_mdx":{"iconPath":"../../icons/file_type_light_mdx.svg"},"_f_mdx-components":{"iconPath":"../../icons/file_type_mdx-components.svg"},"_f_light_mdx-components":{"iconPath":"../../icons/file_type_light_mdx-components.svg"},"_f_mdxlint":{"iconPath":"../../icons/file_type_mdxlint.svg"},"_f_mediawiki":{"iconPath":"../../icons/file_type_mediawiki.svg"},"_f_mercurial":{"iconPath":"../../icons/file_type_mercurial.svg"},"_f_mermaid":{"iconPath":"../../icons/file_type_mermaid.svg"},"_f_meson":{"iconPath":"../../icons/file_type_meson.svg"},"_f_metal":{"iconPath":"../../icons/file_type_metal.svg"},"_f_meteor":{"iconPath":"../../icons/file_type_meteor.svg"},"_f_metro":{"iconPath":"../../icons/file_type_metro.svg"},"_f_mikro_orm":{"iconPath":"../../icons/file_type_mikro_orm.svg"},"_f_light_mikro_orm":{"iconPath":"../../icons/file_type_light_mikro_orm.svg"},"_f_minecraft":{"iconPath":"../../icons/file_type_minecraft.svg"},"_f_mise":{"iconPath":"../../icons/file_type_mise.svg"},"_f_mivascript":{"iconPath":"../../icons/file_type_mivascript.svg"},"_f_mjml":{"iconPath":"../../icons/file_type_mjml.svg"},"_f_mlang":{"iconPath":"../../icons/file_type_mlang.svg"},"_f_light_mlang":{"iconPath":"../../icons/file_type_light_mlang.svg"},"_f_mocha":{"iconPath":"../../icons/file_type_mocha.svg"},"_f_modernizr":{"iconPath":"../../icons/file_type_modernizr.svg"},"_f_modernjs":{"iconPath":"../../icons/file_type_modernjs.svg"},"_f_mojo":{"iconPath":"../../icons/file_type_mojo.svg"},"_f_mojolicious":{"iconPath":"../../icons/file_type_mojolicious.svg"},"_f_moleculer":{"iconPath":"../../icons/file_type_moleculer.svg"},"_f_mondoo":{"iconPath":"../../icons/file_type_mondoo.svg"},"_f_mongo":{"iconPath":"../../icons/file_type_mongo.svg"},"_f_monotone":{"iconPath":"../../icons/file_type_monotone.svg"},"_f_motif":{"iconPath":"../../icons/file_type_motif.svg"},"_f_mson":{"iconPath":"../../icons/file_type_mson.svg"},"_f_msw":{"iconPath":"../../icons/file_type_msw.svg"},"_f_mustache":{"iconPath":"../../icons/file_type_mustache.svg"},"_f_light_mustache":{"iconPath":"../../icons/file_type_light_mustache.svg"},"_f_mvt":{"iconPath":"../../icons/file_type_mvt.svg"},"_f_mvtcss":{"iconPath":"../../icons/file_type_mvtcss.svg"},"_f_mvtjs":{"iconPath":"../../icons/file_type_mvtjs.svg"},"_f_mypy":{"iconPath":"../../icons/file_type_mypy.svg"},"_f_light_mypy":{"iconPath":"../../icons/file_type_light_mypy.svg"},"_f_n64":{"iconPath":"../../icons/file_type_n64.svg"},"_f_nanostaged":{"iconPath":"../../icons/file_type_nanostaged.svg"},"_f_ndst":{"iconPath":"../../icons/file_type_ndst.svg"},"_f_nearly":{"iconPath":"../../icons/file_type_nearly.svg"},"_f_neo4j":{"iconPath":"../../icons/file_type_neo4j.svg"},"_f_light_neo4j":{"iconPath":"../../icons/file_type_light_neo4j.svg"},"_f_nestjs":{"iconPath":"../../icons/file_type_nestjs.svg"},"_f_netlify":{"iconPath":"../../icons/file_type_netlify.svg"},"_f_light_netlify":{"iconPath":"../../icons/file_type_light_netlify.svg"},"_f_next":{"iconPath":"../../icons/file_type_next.svg"},"_f_light_next":{"iconPath":"../../icons/file_type_light_next.svg"},"_f_nextflow":{"iconPath":"../../icons/file_type_nextflow.svg"},"_f_nginx":{"iconPath":"../../icons/file_type_nginx.svg"},"_f_nim":{"iconPath":"../../icons/file_type_nim.svg"},"_f_nimble":{"iconPath":"../../icons/file_type_nimble.svg"},"_f_ninja":{"iconPath":"../../icons/file_type_ninja.svg"},"_f_nix":{"iconPath":"../../icons/file_type_nix.svg"},"_f_njsproj":{"iconPath":"../../icons/file_type_njsproj.svg"},"_f_noc":{"iconPath":"../../icons/file_type_noc.svg"},"_f_node":{"iconPath":"../../icons/file_type_node.svg"},"_f_nodemon":{"iconPath":"../../icons/file_type_nodemon.svg"},"_f_npm":{"iconPath":"../../icons/file_type_npm.svg"},"_f_npmpackagejsonlint":{"iconPath":"../../icons/file_type_npmpackagejsonlint.svg"},"_f_nsi":{"iconPath":"../../icons/file_type_nsi.svg"},"_f_nsri":{"iconPath":"../../icons/file_type_nsri.svg"},"_f_nsri-integrity":{"iconPath":"../../icons/file_type_nsri-integrity.svg"},"_f_nuget":{"iconPath":"../../icons/file_type_nuget.svg"},"_f_numpy":{"iconPath":"../../icons/file_type_numpy.svg"},"_f_nunjucks":{"iconPath":"../../icons/file_type_nunjucks.svg"},"_f_nushell":{"iconPath":"../../icons/file_type_nushell.svg"},"_f_nuxt":{"iconPath":"../../icons/file_type_nuxt.svg"},"_f_nx":{"iconPath":"../../icons/file_type_nx.svg"},"_f_light_nx":{"iconPath":"../../icons/file_type_light_nx.svg"},"_f_nyc":{"iconPath":"../../icons/file_type_nyc.svg"},"_f_objectivec":{"iconPath":"../../icons/file_type_objectivec.svg"},"_f_objectivecpp":{"iconPath":"../../icons/file_type_objectivecpp.svg"},"_f_objidconfig":{"iconPath":"../../icons/file_type_objidconfig.svg"},"_f_light_objidconfig":{"iconPath":"../../icons/file_type_light_objidconfig.svg"},"_f_ocaml":{"iconPath":"../../icons/file_type_ocaml.svg"},"_f_ocaml_intf":{"iconPath":"../../icons/file_type_ocaml_intf.svg"},"_f_ogone":{"iconPath":"../../icons/file_type_ogone.svg"},"_f_onenote":{"iconPath":"../../icons/file_type_onenote.svg"},"_f_opam":{"iconPath":"../../icons/file_type_opam.svg"},"_f_openHAB":{"iconPath":"../../icons/file_type_openHAB.svg"},"_f_light_openHAB":{"iconPath":"../../icons/file_type_light_openHAB.svg"},"_f_opencl":{"iconPath":"../../icons/file_type_opencl.svg"},"_f_opencode":{"iconPath":"../../icons/file_type_opencode.svg"},"_f_light_opencode":{"iconPath":"../../icons/file_type_light_opencode.svg"},"_f_openscad":{"iconPath":"../../icons/file_type_openscad.svg"},"_f_opentofu":{"iconPath":"../../icons/file_type_opentofu.svg"},"_f_org":{"iconPath":"../../icons/file_type_org.svg"},"_f_orval":{"iconPath":"../../icons/file_type_orval.svg"},"_f_outlook":{"iconPath":"../../icons/file_type_outlook.svg"},"_f_ovpn":{"iconPath":"../../icons/file_type_ovpn.svg"},"_f_oxc":{"iconPath":"../../icons/file_type_oxc.svg"},"_f_light_oxc":{"iconPath":"../../icons/file_type_light_oxc.svg"},"_f_package":{"iconPath":"../../icons/file_type_package.svg"},"_f_packship":{"iconPath":"../../icons/file_type_packship.svg"},"_f_light_packship":{"iconPath":"../../icons/file_type_light_packship.svg"},"_f_paket":{"iconPath":"../../icons/file_type_paket.svg"},"_f_pandacss":{"iconPath":"../../icons/file_type_pandacss.svg"},"_f_parcel":{"iconPath":"../../icons/file_type_parcel.svg"},"_f_parquet":{"iconPath":"../../icons/file_type_parquet.svg"},"_f_patch":{"iconPath":"../../icons/file_type_patch.svg"},"_f_pawn":{"iconPath":"../../icons/file_type_pawn.svg"},"_f_pcl":{"iconPath":"../../icons/file_type_pcl.svg"},"_f_light_pcl":{"iconPath":"../../icons/file_type_light_pcl.svg"},"_f_pddl":{"iconPath":"../../icons/file_type_pddl.svg"},"_f_pddl_happenings":{"iconPath":"../../icons/file_type_pddl_happenings.svg"},"_f_pddl_plan":{"iconPath":"../../icons/file_type_pddl_plan.svg"},"_f_pdf":{"iconPath":"../../icons/file_type_pdf.svg"},"_f_pdm":{"iconPath":"../../icons/file_type_pdm.svg"},"_f_peeky":{"iconPath":"../../icons/file_type_peeky.svg"},"_f_perl":{"iconPath":"../../icons/file_type_perl.svg"},"_f_perl6":{"iconPath":"../../icons/file_type_perl6.svg"},"_f_pgsql":{"iconPath":"../../icons/file_type_pgsql.svg"},"_f_photoshop":{"iconPath":"../../icons/file_type_photoshop.svg"},"_f_php":{"iconPath":"../../icons/file_type_php.svg"},"_f_phpcsfixer":{"iconPath":"../../icons/file_type_phpcsfixer.svg"},"_f_phpstan":{"iconPath":"../../icons/file_type_phpstan.svg"},"_f_phpunit":{"iconPath":"../../icons/file_type_phpunit.svg"},"_f_phraseapp":{"iconPath":"../../icons/file_type_phraseapp.svg"},"_f_pine":{"iconPath":"../../icons/file_type_pine.svg"},"_f_pip":{"iconPath":"../../icons/file_type_pip.svg"},"_f_pipeline":{"iconPath":"../../icons/file_type_pipeline.svg"},"_f_pixi":{"iconPath":"../../icons/file_type_pixi.svg"},"_f_plantuml":{"iconPath":"../../icons/file_type_plantuml.svg"},"_f_platformio":{"iconPath":"../../icons/file_type_platformio.svg"},"_f_playwright":{"iconPath":"../../icons/file_type_playwright.svg"},"_f_plsql":{"iconPath":"../../icons/file_type_plsql.svg"},"_f_plsql_package":{"iconPath":"../../icons/file_type_plsql_package.svg"},"_f_plsql_package_body":{"iconPath":"../../icons/file_type_plsql_package_body.svg"},"_f_plsql_package_header":{"iconPath":"../../icons/file_type_plsql_package_header.svg"},"_f_plsql_package_spec":{"iconPath":"../../icons/file_type_plsql_package_spec.svg"},"_f_pm2":{"iconPath":"../../icons/file_type_pm2.svg"},"_f_pnpm":{"iconPath":"../../icons/file_type_pnpm.svg"},"_f_light_pnpm":{"iconPath":"../../icons/file_type_light_pnpm.svg"},"_f_poedit":{"iconPath":"../../icons/file_type_poedit.svg"},"_f_poetry":{"iconPath":"../../icons/file_type_poetry.svg"},"_f_polyglot":{"iconPath":"../../icons/file_type_polyglot.svg"},"_f_polymer":{"iconPath":"../../icons/file_type_polymer.svg"},"_f_pony":{"iconPath":"../../icons/file_type_pony.svg"},"_f_postcss":{"iconPath":"../../icons/file_type_postcss.svg"},"_f_postcssconfig":{"iconPath":"../../icons/file_type_postcssconfig.svg"},"_f_postman":{"iconPath":"../../icons/file_type_postman.svg"},"_f_postscript":{"iconPath":"../../icons/file_type_postscript.svg"},"_f_powerbi":{"iconPath":"../../icons/file_type_powerbi.svg"},"_f_powerpoint":{"iconPath":"../../icons/file_type_powerpoint.svg"},"_f_powershell":{"iconPath":"../../icons/file_type_powershell.svg"},"_f_powershell_format":{"iconPath":"../../icons/file_type_powershell_format.svg"},"_f_powershell_psd":{"iconPath":"../../icons/file_type_powershell_psd.svg"},"_f_powershell_psm":{"iconPath":"../../icons/file_type_powershell_psm.svg"},"_f_powershell_types":{"iconPath":"../../icons/file_type_powershell_types.svg"},"_f_preact":{"iconPath":"../../icons/file_type_preact.svg"},"_f_precommit":{"iconPath":"../../icons/file_type_precommit.svg"},"_f_prettier":{"iconPath":"../../icons/file_type_prettier.svg"},"_f_light_prettier":{"iconPath":"../../icons/file_type_light_prettier.svg"},"_f_prisma":{"iconPath":"../../icons/file_type_prisma.svg"},"_f_light_prisma":{"iconPath":"../../icons/file_type_light_prisma.svg"},"_f_prismaconfig":{"iconPath":"../../icons/file_type_prismaconfig.svg"},"_f_processinglang":{"iconPath":"../../icons/file_type_processinglang.svg"},"_f_procfile":{"iconPath":"../../icons/file_type_procfile.svg"},"_f_progress":{"iconPath":"../../icons/file_type_progress.svg"},"_f_prolog":{"iconPath":"../../icons/file_type_prolog.svg"},"_f_prometheus":{"iconPath":"../../icons/file_type_prometheus.svg"},"_f_protobuf":{"iconPath":"../../icons/file_type_protobuf.svg"},"_f_protractor":{"iconPath":"../../icons/file_type_protractor.svg"},"_f_publiccode":{"iconPath":"../../icons/file_type_publiccode.svg"},"_f_publisher":{"iconPath":"../../icons/file_type_publisher.svg"},"_f_pug":{"iconPath":"../../icons/file_type_pug.svg"},"_f_pulumi":{"iconPath":"../../icons/file_type_pulumi.svg"},"_f_puppet":{"iconPath":"../../icons/file_type_puppet.svg"},"_f_purescript":{"iconPath":"../../icons/file_type_purescript.svg"},"_f_light_purescript":{"iconPath":"../../icons/file_type_light_purescript.svg"},"_f_purgecss":{"iconPath":"../../icons/file_type_purgecss.svg"},"_f_pyenv":{"iconPath":"../../icons/file_type_pyenv.svg"},"_f_pypi":{"iconPath":"../../icons/file_type_pypi.svg"},"_f_pyret":{"iconPath":"../../icons/file_type_pyret.svg"},"_f_pyscript":{"iconPath":"../../icons/file_type_pyscript.svg"},"_f_pytest":{"iconPath":"../../icons/file_type_pytest.svg"},"_f_python":{"iconPath":"../../icons/file_type_python.svg"},"_f_pythonconfig":{"iconPath":"../../icons/file_type_pythonconfig.svg"},"_f_pythowo":{"iconPath":"../../icons/file_type_pythowo.svg"},"_f_pytyped":{"iconPath":"../../icons/file_type_pytyped.svg"},"_f_pyup":{"iconPath":"../../icons/file_type_pyup.svg"},"_f_q":{"iconPath":"../../icons/file_type_q.svg"},"_f_qbs":{"iconPath":"../../icons/file_type_qbs.svg"},"_f_qlikview":{"iconPath":"../../icons/file_type_qlikview.svg"},"_f_qml":{"iconPath":"../../icons/file_type_qml.svg"},"_f_qmldir":{"iconPath":"../../icons/file_type_qmldir.svg"},"_f_qrc":{"iconPath":"../../icons/file_type_qrc.svg"},"_f_qsharp":{"iconPath":"../../icons/file_type_qsharp.svg"},"_f_quasar":{"iconPath":"../../icons/file_type_quasar.svg"},"_f_light_quasar":{"iconPath":"../../icons/file_type_light_quasar.svg"},"_f_quokka":{"iconPath":"../../icons/file_type_quokka.svg"},"_f_r":{"iconPath":"../../icons/file_type_r.svg"},"_f_ra_syntax_tree":{"iconPath":"../../icons/file_type_ra_syntax_tree.svg"},"_f_racket":{"iconPath":"../../icons/file_type_racket.svg"},"_f_rails":{"iconPath":"../../icons/file_type_rails.svg"},"_f_railway":{"iconPath":"../../icons/file_type_railway.svg"},"_f_light_railway":{"iconPath":"../../icons/file_type_light_railway.svg"},"_f_rake":{"iconPath":"../../icons/file_type_rake.svg"},"_f_raku":{"iconPath":"../../icons/file_type_raku.svg"},"_f_light_raku":{"iconPath":"../../icons/file_type_light_raku.svg"},"_f_raml":{"iconPath":"../../icons/file_type_raml.svg"},"_f_razor":{"iconPath":"../../icons/file_type_razor.svg"},"_f_razzle":{"iconPath":"../../icons/file_type_razzle.svg"},"_f_light_razzle":{"iconPath":"../../icons/file_type_light_razzle.svg"},"_f_reactjs":{"iconPath":"../../icons/file_type_reactjs.svg"},"_f_reactrouter":{"iconPath":"../../icons/file_type_reactrouter.svg"},"_f_light_reactrouter":{"iconPath":"../../icons/file_type_light_reactrouter.svg"},"_f_reacttemplate":{"iconPath":"../../icons/file_type_reacttemplate.svg"},"_f_reactts":{"iconPath":"../../icons/file_type_reactts.svg"},"_f_readthedocs":{"iconPath":"../../icons/file_type_readthedocs.svg"},"_f_reason":{"iconPath":"../../icons/file_type_reason.svg"},"_f_red":{"iconPath":"../../icons/file_type_red.svg"},"_f_registry":{"iconPath":"../../icons/file_type_registry.svg"},"_f_rego":{"iconPath":"../../icons/file_type_rego.svg"},"_f_rehype":{"iconPath":"../../icons/file_type_rehype.svg"},"_f_light_rehype":{"iconPath":"../../icons/file_type_light_rehype.svg"},"_f_remark":{"iconPath":"../../icons/file_type_remark.svg"},"_f_light_remark":{"iconPath":"../../icons/file_type_light_remark.svg"},"_f_render":{"iconPath":"../../icons/file_type_render.svg"},"_f_light_render":{"iconPath":"../../icons/file_type_light_render.svg"},"_f_renovate":{"iconPath":"../../icons/file_type_renovate.svg"},"_f_replit":{"iconPath":"../../icons/file_type_replit.svg"},"_f_light_replit":{"iconPath":"../../icons/file_type_light_replit.svg"},"_f_rescript":{"iconPath":"../../icons/file_type_rescript.svg"},"_f_rest":{"iconPath":"../../icons/file_type_rest.svg"},"_f_retext":{"iconPath":"../../icons/file_type_retext.svg"},"_f_light_retext":{"iconPath":"../../icons/file_type_light_retext.svg"},"_f_rexx":{"iconPath":"../../icons/file_type_rexx.svg"},"_f_riot":{"iconPath":"../../icons/file_type_riot.svg"},"_f_ripple":{"iconPath":"../../icons/file_type_ripple.svg"},"_f_rmd":{"iconPath":"../../icons/file_type_rmd.svg"},"_f_rnc":{"iconPath":"../../icons/file_type_rnc.svg"},"_f_robotframework":{"iconPath":"../../icons/file_type_robotframework.svg"},"_f_robots":{"iconPath":"../../icons/file_type_robots.svg"},"_f_rolldown":{"iconPath":"../../icons/file_type_rolldown.svg"},"_f_light_rolldown":{"iconPath":"../../icons/file_type_light_rolldown.svg"},"_f_rollup":{"iconPath":"../../icons/file_type_rollup.svg"},"_f_rome":{"iconPath":"../../icons/file_type_rome.svg"},"_f_light_rome":{"iconPath":"../../icons/file_type_light_rome.svg"},"_f_ron":{"iconPath":"../../icons/file_type_ron.svg"},"_f_rproj":{"iconPath":"../../icons/file_type_rproj.svg"},"_f_rspec":{"iconPath":"../../icons/file_type_rspec.svg"},"_f_rss":{"iconPath":"../../icons/file_type_rss.svg"},"_f_rubocop":{"iconPath":"../../icons/file_type_rubocop.svg"},"_f_light_rubocop":{"iconPath":"../../icons/file_type_light_rubocop.svg"},"_f_ruby":{"iconPath":"../../icons/file_type_ruby.svg"},"_f_ruff":{"iconPath":"../../icons/file_type_ruff.svg"},"_f_rust":{"iconPath":"../../icons/file_type_rust.svg"},"_f_light_rust":{"iconPath":"../../icons/file_type_light_rust.svg"},"_f_rust_toolchain":{"iconPath":"../../icons/file_type_rust_toolchain.svg"},"_f_light_rust_toolchain":{"iconPath":"../../icons/file_type_light_rust_toolchain.svg"},"_f_s-lang":{"iconPath":"../../icons/file_type_s-lang.svg"},"_f_safetensors":{"iconPath":"../../icons/file_type_safetensors.svg"},"_f_light_safetensors":{"iconPath":"../../icons/file_type_light_safetensors.svg"},"_f_sails":{"iconPath":"../../icons/file_type_sails.svg"},"_f_saltstack":{"iconPath":"../../icons/file_type_saltstack.svg"},"_f_san":{"iconPath":"../../icons/file_type_san.svg"},"_f_sapphire_framework_cli":{"iconPath":"../../icons/file_type_sapphire_framework_cli.svg"},"_f_sas":{"iconPath":"../../icons/file_type_sas.svg"},"_f_sass":{"iconPath":"../../icons/file_type_sass.svg"},"_f_sbt":{"iconPath":"../../icons/file_type_sbt.svg"},"_f_scala":{"iconPath":"../../icons/file_type_scala.svg"},"_f_scilab":{"iconPath":"../../icons/file_type_scilab.svg"},"_f_script":{"iconPath":"../../icons/file_type_script.svg"},"_f_scss":{"iconPath":"../../icons/file_type_scss.svg"},"_f_sdlang":{"iconPath":"../../icons/file_type_sdlang.svg"},"_f_search_result":{"iconPath":"../../icons/file_type_search_result.svg"},"_f_seedkit":{"iconPath":"../../icons/file_type_seedkit.svg"},"_f_sentry":{"iconPath":"../../icons/file_type_sentry.svg"},"_f_sequelize":{"iconPath":"../../icons/file_type_sequelize.svg"},"_f_serverless":{"iconPath":"../../icons/file_type_serverless.svg"},"_f_shadcn":{"iconPath":"../../icons/file_type_shadcn.svg"},"_f_light_shadcn":{"iconPath":"../../icons/file_type_light_shadcn.svg"},"_f_shaderlab":{"iconPath":"../../icons/file_type_shaderlab.svg"},"_f_light_shaderlab":{"iconPath":"../../icons/file_type_light_shaderlab.svg"},"_f_shell":{"iconPath":"../../icons/file_type_shell.svg"},"_f_shellcheck":{"iconPath":"../../icons/file_type_shellcheck.svg"},"_f_shuttle":{"iconPath":"../../icons/file_type_shuttle.svg"},"_f_silverstripe":{"iconPath":"../../icons/file_type_silverstripe.svg"},"_f_sino":{"iconPath":"../../icons/file_type_sino.svg"},"_f_sitemap":{"iconPath":"../../icons/file_type_sitemap.svg"},"_f_siyuan":{"iconPath":"../../icons/file_type_siyuan.svg"},"_f_sketch":{"iconPath":"../../icons/file_type_sketch.svg"},"_f_skill":{"iconPath":"../../icons/file_type_skill.svg"},"_f_light_skill":{"iconPath":"../../icons/file_type_light_skill.svg"},"_f_skipper":{"iconPath":"../../icons/file_type_skipper.svg"},"_f_slang":{"iconPath":"../../icons/file_type_slang.svg"},"_f_slashup":{"iconPath":"../../icons/file_type_slashup.svg"},"_f_slice":{"iconPath":"../../icons/file_type_slice.svg"},"_f_slim":{"iconPath":"../../icons/file_type_slim.svg"},"_f_slint":{"iconPath":"../../icons/file_type_slint.svg"},"_f_sln":{"iconPath":"../../icons/file_type_sln.svg"},"_f_smarty":{"iconPath":"../../icons/file_type_smarty.svg"},"_f_smithery":{"iconPath":"../../icons/file_type_smithery.svg"},"_f_snakemake":{"iconPath":"../../icons/file_type_snakemake.svg"},"_f_snapcraft":{"iconPath":"../../icons/file_type_snapcraft.svg"},"_f_snaplet":{"iconPath":"../../icons/file_type_snaplet.svg"},"_f_snort":{"iconPath":"../../icons/file_type_snort.svg"},"_f_snyk":{"iconPath":"../../icons/file_type_snyk.svg"},"_f_solidarity":{"iconPath":"../../icons/file_type_solidarity.svg"},"_f_solidity":{"iconPath":"../../icons/file_type_solidity.svg"},"_f_light_solidity":{"iconPath":"../../icons/file_type_light_solidity.svg"},"_f_source":{"iconPath":"../../icons/file_type_source.svg"},"_f_spacengine":{"iconPath":"../../icons/file_type_spacengine.svg"},"_f_sparql":{"iconPath":"../../icons/file_type_sparql.svg"},"_f_spin":{"iconPath":"../../icons/file_type_spin.svg"},"_f_light_spin":{"iconPath":"../../icons/file_type_light_spin.svg"},"_f_sqf":{"iconPath":"../../icons/file_type_sqf.svg"},"_f_sql":{"iconPath":"../../icons/file_type_sql.svg"},"_f_sqlite":{"iconPath":"../../icons/file_type_sqlite.svg"},"_f_squirrel":{"iconPath":"../../icons/file_type_squirrel.svg"},"_f_sss":{"iconPath":"../../icons/file_type_sss.svg"},"_f_sst":{"iconPath":"../../icons/file_type_sst.svg"},"_f_stackblitz":{"iconPath":"../../icons/file_type_stackblitz.svg"},"_f_stan":{"iconPath":"../../icons/file_type_stan.svg"},"_f_stata":{"iconPath":"../../icons/file_type_stata.svg"},"_f_stencil":{"iconPath":"../../icons/file_type_stencil.svg"},"_f_storyboard":{"iconPath":"../../icons/file_type_storyboard.svg"},"_f_storybook":{"iconPath":"../../icons/file_type_storybook.svg"},"_f_stryker":{"iconPath":"../../icons/file_type_stryker.svg"},"_f_stylable":{"iconPath":"../../icons/file_type_stylable.svg"},"_f_style":{"iconPath":"../../icons/file_type_style.svg"},"_f_styled":{"iconPath":"../../icons/file_type_styled.svg"},"_f_stylelint":{"iconPath":"../../icons/file_type_stylelint.svg"},"_f_light_stylelint":{"iconPath":"../../icons/file_type_light_stylelint.svg"},"_f_stylish_haskell":{"iconPath":"../../icons/file_type_stylish_haskell.svg"},"_f_stylus":{"iconPath":"../../icons/file_type_stylus.svg"},"_f_light_stylus":{"iconPath":"../../icons/file_type_light_stylus.svg"},"_f_sublime":{"iconPath":"../../icons/file_type_sublime.svg"},"_f_subversion":{"iconPath":"../../icons/file_type_subversion.svg"},"_f_svelte":{"iconPath":"../../icons/file_type_svelte.svg"},"_f_svelteconfig":{"iconPath":"../../icons/file_type_svelteconfig.svg"},"_f_svg":{"iconPath":"../../icons/file_type_svg.svg"},"_f_svgo":{"iconPath":"../../icons/file_type_svgo.svg"},"_f_swagger":{"iconPath":"../../icons/file_type_swagger.svg"},"_f_swc":{"iconPath":"../../icons/file_type_swc.svg"},"_f_swift":{"iconPath":"../../icons/file_type_swift.svg"},"_f_swig":{"iconPath":"../../icons/file_type_swig.svg"},"_f_symfony":{"iconPath":"../../icons/file_type_symfony.svg"},"_f_light_symfony":{"iconPath":"../../icons/file_type_light_symfony.svg"},"_f_syncpack":{"iconPath":"../../icons/file_type_syncpack.svg"},"_f_systemd":{"iconPath":"../../icons/file_type_systemd.svg"},"_f_light_systemd":{"iconPath":"../../icons/file_type_light_systemd.svg"},"_f_systemverilog":{"iconPath":"../../icons/file_type_systemverilog.svg"},"_f_light_systemverilog":{"iconPath":"../../icons/file_type_light_systemverilog.svg"},"_f_t4tt":{"iconPath":"../../icons/file_type_t4tt.svg"},"_f_tailwind":{"iconPath":"../../icons/file_type_tailwind.svg"},"_f_tamagui":{"iconPath":"../../icons/file_type_tamagui.svg"},"_f_taplo":{"iconPath":"../../icons/file_type_taplo.svg"},"_f_taskfile":{"iconPath":"../../icons/file_type_taskfile.svg"},"_f_tauri":{"iconPath":"../../icons/file_type_tauri.svg"},"_f_tcl":{"iconPath":"../../icons/file_type_tcl.svg"},"_f_teal":{"iconPath":"../../icons/file_type_teal.svg"},"_f_templ":{"iconPath":"../../icons/file_type_templ.svg"},"_f_tera":{"iconPath":"../../icons/file_type_tera.svg"},"_f_terraform":{"iconPath":"../../icons/file_type_terraform.svg"},"_f_test":{"iconPath":"../../icons/file_type_test.svg"},"_f_testcafe":{"iconPath":"../../icons/file_type_testcafe.svg"},"_f_light_testcafe":{"iconPath":"../../icons/file_type_light_testcafe.svg"},"_f_testjs":{"iconPath":"../../icons/file_type_testjs.svg"},"_f_light_testjs":{"iconPath":"../../icons/file_type_light_testjs.svg"},"_f_testplane":{"iconPath":"../../icons/file_type_testplane.svg"},"_f_testts":{"iconPath":"../../icons/file_type_testts.svg"},"_f_tex":{"iconPath":"../../icons/file_type_tex.svg"},"_f_light_tex":{"iconPath":"../../icons/file_type_light_tex.svg"},"_f_text":{"iconPath":"../../icons/file_type_text.svg"},"_f_textile":{"iconPath":"../../icons/file_type_textile.svg"},"_f_textlint":{"iconPath":"../../icons/file_type_textlint.svg"},"_f_tfs":{"iconPath":"../../icons/file_type_tfs.svg"},"_f_thinkscript":{"iconPath":"../../icons/file_type_thinkscript.svg"},"_f_tiltfile":{"iconPath":"../../icons/file_type_tiltfile.svg"},"_f_tm":{"iconPath":"../../icons/file_type_tm.svg"},"_f_light_tm":{"iconPath":"../../icons/file_type_light_tm.svg"},"_f_tmux":{"iconPath":"../../icons/file_type_tmux.svg"},"_f_light_tmux":{"iconPath":"../../icons/file_type_light_tmux.svg"},"_f_todo":{"iconPath":"../../icons/file_type_todo.svg"},"_f_light_todo":{"iconPath":"../../icons/file_type_light_todo.svg"},"_f_toit":{"iconPath":"../../icons/file_type_toit.svg"},"_f_light_toit":{"iconPath":"../../icons/file_type_light_toit.svg"},"_f_toml":{"iconPath":"../../icons/file_type_toml.svg"},"_f_light_toml":{"iconPath":"../../icons/file_type_light_toml.svg"},"_f_toon":{"iconPath":"../../icons/file_type_toon.svg"},"_f_light_toon":{"iconPath":"../../icons/file_type_light_toon.svg"},"_f_tox":{"iconPath":"../../icons/file_type_tox.svg"},"_f_travis":{"iconPath":"../../icons/file_type_travis.svg"},"_f_tree":{"iconPath":"../../icons/file_type_tree.svg"},"_f_light_tree":{"iconPath":"../../icons/file_type_light_tree.svg"},"_f_tres":{"iconPath":"../../icons/file_type_tres.svg"},"_f_trivy":{"iconPath":"../../icons/file_type_trivy.svg"},"_f_light_trivy":{"iconPath":"../../icons/file_type_light_trivy.svg"},"_f_truffle":{"iconPath":"../../icons/file_type_truffle.svg"},"_f_trunk":{"iconPath":"../../icons/file_type_trunk.svg"},"_f_tsbuildinfo":{"iconPath":"../../icons/file_type_tsbuildinfo.svg"},"_f_tscn":{"iconPath":"../../icons/file_type_tscn.svg"},"_f_tsconfig":{"iconPath":"../../icons/file_type_tsconfig.svg"},"_f_tsdoc":{"iconPath":"../../icons/file_type_tsdoc.svg"},"_f_tsdown":{"iconPath":"../../icons/file_type_tsdown.svg"},"_f_tslint":{"iconPath":"../../icons/file_type_tslint.svg"},"_f_tt":{"iconPath":"../../icons/file_type_tt.svg"},"_f_ttcn":{"iconPath":"../../icons/file_type_ttcn.svg"},"_f_tuc":{"iconPath":"../../icons/file_type_tuc.svg"},"_f_turbo":{"iconPath":"../../icons/file_type_turbo.svg"},"_f_light_turbo":{"iconPath":"../../icons/file_type_light_turbo.svg"},"_f_twig":{"iconPath":"../../icons/file_type_twig.svg"},"_f_typedoc":{"iconPath":"../../icons/file_type_typedoc.svg"},"_f_typescript":{"iconPath":"../../icons/file_type_typescript.svg"},"_f_typescriptdef":{"iconPath":"../../icons/file_type_typescriptdef.svg"},"_f_typo3":{"iconPath":"../../icons/file_type_typo3.svg"},"_f_uiua":{"iconPath":"../../icons/file_type_uiua.svg"},"_f_unibeautify":{"iconPath":"../../icons/file_type_unibeautify.svg"},"_f_light_unibeautify":{"iconPath":"../../icons/file_type_light_unibeautify.svg"},"_f_unison":{"iconPath":"../../icons/file_type_unison.svg"},"_f_unlicense":{"iconPath":"../../icons/file_type_unlicense.svg"},"_f_unocss":{"iconPath":"../../icons/file_type_unocss.svg"},"_f_uv":{"iconPath":"../../icons/file_type_uv.svg"},"_f_vagrant":{"iconPath":"../../icons/file_type_vagrant.svg"},"_f_vala":{"iconPath":"../../icons/file_type_vala.svg"},"_f_vale":{"iconPath":"../../icons/file_type_vale.svg"},"_f_vanilla_extract":{"iconPath":"../../icons/file_type_vanilla_extract.svg"},"_f_vapi":{"iconPath":"../../icons/file_type_vapi.svg"},"_f_vapor":{"iconPath":"../../icons/file_type_vapor.svg"},"_f_vash":{"iconPath":"../../icons/file_type_vash.svg"},"_f_light_vash":{"iconPath":"../../icons/file_type_light_vash.svg"},"_f_vb":{"iconPath":"../../icons/file_type_vb.svg"},"_f_vba":{"iconPath":"../../icons/file_type_vba.svg"},"_f_vbhtml":{"iconPath":"../../icons/file_type_vbhtml.svg"},"_f_vbproj":{"iconPath":"../../icons/file_type_vbproj.svg"},"_f_vcxproj":{"iconPath":"../../icons/file_type_vcxproj.svg"},"_f_velocity":{"iconPath":"../../icons/file_type_velocity.svg"},"_f_vento":{"iconPath":"../../icons/file_type_vento.svg"},"_f_vercel":{"iconPath":"../../icons/file_type_vercel.svg"},"_f_light_vercel":{"iconPath":"../../icons/file_type_light_vercel.svg"},"_f_verilog":{"iconPath":"../../icons/file_type_verilog.svg"},"_f_vhdl":{"iconPath":"../../icons/file_type_vhdl.svg"},"_f_video":{"iconPath":"../../icons/file_type_video.svg"},"_f_view":{"iconPath":"../../icons/file_type_view.svg"},"_f_vim":{"iconPath":"../../icons/file_type_vim.svg"},"_f_vite":{"iconPath":"../../icons/file_type_vite.svg"},"_f_light_vite":{"iconPath":"../../icons/file_type_light_vite.svg"},"_f_vitest":{"iconPath":"../../icons/file_type_vitest.svg"},"_f_light_vitest":{"iconPath":"../../icons/file_type_light_vitest.svg"},"_f_vlang":{"iconPath":"../../icons/file_type_vlang.svg"},"_f_volt":{"iconPath":"../../icons/file_type_volt.svg"},"_f_vroom":{"iconPath":"../../icons/file_type_vroom.svg"},"_f_vscode":{"iconPath":"../../icons/file_type_vscode.svg"},"_f_vscode_test":{"iconPath":"../../icons/file_type_vscode_test.svg"},"_f_vsix":{"iconPath":"../../icons/file_type_vsix.svg"},"_f_light_vsix":{"iconPath":"../../icons/file_type_light_vsix.svg"},"_f_vsixmanifest":{"iconPath":"../../icons/file_type_vsixmanifest.svg"},"_f_light_vsixmanifest":{"iconPath":"../../icons/file_type_light_vsixmanifest.svg"},"_f_vue":{"iconPath":"../../icons/file_type_vue.svg"},"_f_vueconfig":{"iconPath":"../../icons/file_type_vueconfig.svg"},"_f_vvvvvv":{"iconPath":"../../icons/file_type_vvvvvv.svg"},"_f_vyper":{"iconPath":"../../icons/file_type_vyper.svg"},"_f_wallaby":{"iconPath":"../../icons/file_type_wallaby.svg"},"_f_wally":{"iconPath":"../../icons/file_type_wally.svg"},"_f_warp":{"iconPath":"../../icons/file_type_warp.svg"},"_f_light_warp":{"iconPath":"../../icons/file_type_light_warp.svg"},"_f_wasm":{"iconPath":"../../icons/file_type_wasm.svg"},"_f_wasp":{"iconPath":"../../icons/file_type_wasp.svg"},"_f_watchmanconfig":{"iconPath":"../../icons/file_type_watchmanconfig.svg"},"_f_wdio":{"iconPath":"../../icons/file_type_wdio.svg"},"_f_weblate":{"iconPath":"../../icons/file_type_weblate.svg"},"_f_webpack":{"iconPath":"../../icons/file_type_webpack.svg"},"_f_wenyan":{"iconPath":"../../icons/file_type_wenyan.svg"},"_f_wercker":{"iconPath":"../../icons/file_type_wercker.svg"},"_f_wesl":{"iconPath":"../../icons/file_type_wesl.svg"},"_f_light_wesl":{"iconPath":"../../icons/file_type_light_wesl.svg"},"_f_wgsl":{"iconPath":"../../icons/file_type_wgsl.svg"},"_f_wikitext":{"iconPath":"../../icons/file_type_wikitext.svg"},"_f_windi":{"iconPath":"../../icons/file_type_windi.svg"},"_f_wit":{"iconPath":"../../icons/file_type_wit.svg"},"_f_wolfram":{"iconPath":"../../icons/file_type_wolfram.svg"},"_f_word":{"iconPath":"../../icons/file_type_word.svg"},"_f_wpml":{"iconPath":"../../icons/file_type_wpml.svg"},"_f_wurst":{"iconPath":"../../icons/file_type_wurst.svg"},"_f_wxml":{"iconPath":"../../icons/file_type_wxml.svg"},"_f_wxss":{"iconPath":"../../icons/file_type_wxss.svg"},"_f_wxt":{"iconPath":"../../icons/file_type_wxt.svg"},"_f_xaml":{"iconPath":"../../icons/file_type_xaml.svg"},"_f_xcode":{"iconPath":"../../icons/file_type_xcode.svg"},"_f_xfl":{"iconPath":"../../icons/file_type_xfl.svg"},"_f_light_xfl":{"iconPath":"../../icons/file_type_light_xfl.svg"},"_f_xib":{"iconPath":"../../icons/file_type_xib.svg"},"_f_xliff":{"iconPath":"../../icons/file_type_xliff.svg"},"_f_xmake":{"iconPath":"../../icons/file_type_xmake.svg"},"_f_xml":{"iconPath":"../../icons/file_type_xml.svg"},"_f_xo":{"iconPath":"../../icons/file_type_xo.svg"},"_f_xorg":{"iconPath":"../../icons/file_type_xorg.svg"},"_f_light_xorg":{"iconPath":"../../icons/file_type_light_xorg.svg"},"_f_xquery":{"iconPath":"../../icons/file_type_xquery.svg"},"_f_xsl":{"iconPath":"../../icons/file_type_xsl.svg"},"_f_yacc":{"iconPath":"../../icons/file_type_yacc.svg"},"_f_yaml":{"iconPath":"../../icons/file_type_yaml.svg"},"_f_light_yaml":{"iconPath":"../../icons/file_type_light_yaml.svg"},"_f_yamllint":{"iconPath":"../../icons/file_type_yamllint.svg"},"_f_yandex":{"iconPath":"../../icons/file_type_yandex.svg"},"_f_yang":{"iconPath":"../../icons/file_type_yang.svg"},"_f_yarn":{"iconPath":"../../icons/file_type_yarn.svg"},"_f_yeoman":{"iconPath":"../../icons/file_type_yeoman.svg"},"_f_zig":{"iconPath":"../../icons/file_type_zig.svg"},"_f_zip":{"iconPath":"../../icons/file_type_zip.svg"},"_f_zizmor":{"iconPath":"../../icons/file_type_zizmor.svg"}}'),Wk="_file",Kk="_folder",Jk="_folder_open",Qk=JSON.parse('{"android":"_fd_android",".angular":"_fd_angular","apache":"_fd_apache","apache2":"_fd_apache","httpd":"_fd_apache","api":"_fd_api",".api":"_fd_api","apis":"_fd_api",".apis":"_fd_api","app":"_fd_app","apps":"_fd_app",".app":"_fd_app","application":"_fd_app","applications":"_fd_app","arangodb":"_fd_arangodb","arango":"_fd_arangodb","assets":"_fd_asset",".assets":"_fd_asset",".astro":"_fd_astro","audio":"_fd_audio",".audio":"_fd_audio","audios":"_fd_audio",".audios":"_fd_audio","sound":"_fd_audio",".sound":"_fd_audio","sounds":"_fd_audio",".sounds":"_fd_audio","aurelia_project":"_fd_aurelia","aws":"_fd_aws",".aws":"_fd_aws","azure":"_fd_azure",".azure":"_fd_azure","azure-pipelines":"_fd_azurepipelines",".azure-pipelines":"_fd_azurepipelines",".azuredevops":"_fd_azurepipelines",".vsts":"_fd_azurepipelines","bin":"_fd_binary",".bin":"_fd_binary","blocs":"_fd_bloc","bloc":"_fd_bloc","blueprint":"_fd_blueprint",".blueprint":"_fd_blueprint","blueprints":"_fd_blueprint",".blueprints":"_fd_blueprint","bot":"_fd_bot",".bot":"_fd_bot","bower_components":"_fd_bower",".buildkite":"_fd_buildkite","cake":"_fd_cake",".cake":"_fd_cake","cargo":"_fd_cargo",".cargo":"_fd_cargo","crates":"_fd_cargo","certificates":"_fd_certificate",".certificates":"_fd_certificate","certs":"_fd_certificate","certs.":"_fd_certificate",".changeset":"_fd_changesets","chef":"_fd_chef",".chef":"_fd_chef",".circleci":"_fd_circleci",".claude":"_fd_claude","cli":"_fd_cli","cmd":"_fd_cli","command":"_fd_cli","commands":"_fd_cli","commandline":"_fd_cli","console":"_fd_cli","client":"_fd_client","clients":"_fd_client",".cloudflare":"_fd_cloudflare","cloudflare":"_fd_cloudflare",".cmake":"_fd_cmake","cmake":"_fd_cmake","common":"_fd_common","component":"_fd_component","components":"_fd_component",".components":"_fd_component","gui":"_fd_component","src-ui":"_fd_component","ui":"_fd_component","widgets":"_fd_component","composer":"_fd_composer",".composer":"_fd_composer","conf":"_fd_config",".conf":"_fd_config","config":"_fd_config",".config":"_fd_config","configs":"_fd_config",".configs":"_fd_config","configuration":"_fd_config",".configuration":"_fd_config","configurations":"_fd_config",".configurations":"_fd_config","setting":"_fd_config",".setting":"_fd_config","settings":"_fd_config",".settings":"_fd_config","ini":"_fd_config",".ini":"_fd_config","initializers":"_fd_config",".initializers":"_fd_config","__controller__":"_fd_controller","__controllers__":"_fd_controller","controller":"_fd_controller","controllers":"_fd_controller",".controllers":"_fd_controller","__handler__":"_fd_controller","__handlers__":"_fd_controller","handler":"_fd_controller",".handler":"_fd_controller","handlers":"_fd_controller",".handlers":"_fd_controller","coverage":"_fd_coverage","css":"_fd_css","_css":"_fd_css","cubits":"_fd_cubit","cubit":"_fd_cubit",".cursor":"_fd_cursor","cypress":"_fd_cypress",".dapr":"_fd_dapr","dapr":"_fd_dapr","dart":"_fd_dart",".dart_tool":"_fd_dart",".databricks":"_fd_databricks","datadog":"_fd_datadog",".datadog":"_fd_datadog","db":"_fd_db","database":"_fd_db","sql":"_fd_db","data":"_fd_db","repo":"_fd_db","repository":"_fd_db","repositories":"_fd_db","store":"_fd_db","stores":"_fd_db","storage":"_fd_db","storages":"_fd_db","debian":"_fd_debian","deb":"_fd_debian",".dependabot":"_fd_dependabot",".devcontainer":"_fd_devcontainer",".devenv":"_fd_devenv","dist":"_fd_dist",".dist":"_fd_dist","dists":"_fd_dist","out":"_fd_dist","outs":"_fd_dist","export":"_fd_dist","exports":"_fd_dist","build":"_fd_dist",".build":"_fd_dist","builds":"_fd_dist","release":"_fd_dist","releases":"_fd_dist","target":"_fd_dist","targets":"_fd_dist","docker":"_fd_docker",".docker":"_fd_docker","docs":"_fd_docs","doc":"_fd_docs","document":"_fd_docs","documents":"_fd_docs","e2e":"_fd_e2e",".elasticbeanstalk":"_fd_elasticbeanstalk",".ebextensions":"_fd_elasticbeanstalk","electron":"_fd_electron","environments":"_fd_environments",".expo":"_fd_expo",".expo-shared":"_fd_expo","favicon":"_fd_favicon","favicons":"_fd_favicon","flow":"_fd_flow","flow-typed":"_fd_flow","flutter":"_fd_flutter","Flutter":"_fd_flutter","fonts":"_fd_fonts","font":"_fd_fonts","fnt":"_fd_fonts","webfonts":"_fd_fonts",".front-commerce":"_fd_frontcommerce","gcp":"_fd_gcp",".gcp":"_fd_gcp",".gemini":"_fd_gemini",".git":"_fd_git","submodules":"_fd_git",".submodules":"_fd_git",".github":"_fd_github",".gitlab":"_fd_gitlab","godot":"_fd_godot",".godot":"_fd_godot","gradle":"_fd_gradle",".gradle":"_fd_gradle","graphql":"_fd_graphql","grunt":"_fd_grunt","gulp":"_fd_gulp","gulpfile.js":"_fd_gulp","gulpfile.coffee":"_fd_gulp","gulpfile.ts":"_fd_gulp","gulpfile.babel.js":"_fd_gulp","gulpfile.babel.coffee":"_fd_gulp","gulpfile.babel.ts":"_fd_gulp",".haxelib":"_fd_haxelib","haxe_libraries":"_fd_haxelib","helper":"_fd_helper",".helper":"_fd_helper","helpers":"_fd_helper",".helpers":"_fd_helper",".histoire":"_fd_histoire","hook":"_fd_hook",".hook":"_fd_hook","hooks":"_fd_hook",".hooks":"_fd_hook",".husky":"_fd_husky",".idea":"_fd_idea",".fig":"_fd_images",".figs":"_fd_images","images":"_fd_images","image":"_fd_images",".img":"_fd_images","img":"_fd_images",".imgs":"_fd_images","imgs":"_fd_images","icons":"_fd_images","icon":"_fd_images","ico":"_fd_images","screenshot":"_fd_images","screenshots":"_fd_images","svg":"_fd_images","texture":"_fd_images","textures":"_fd_images","include":"_fd_include","includes":"_fd_include","incl":"_fd_include","inc":"_fd_include",".include":"_fd_include",".includes":"_fd_include",".incl":"_fd_include",".inc":"_fd_include","_include":"_fd_include","_includes":"_fd_include","_incl":"_fd_include","_inc":"_fd_include","interface":"_fd_interfaces","interfaces":"_fd_interfaces","ios":"_fd_ios","js":"_fd_js","json":"_fd_json",".junie":"_fd_junie",".kiro":"_fd_kiro","kotlin":"_fd_kotlin","Kotlin":"_fd_kotlin",".kotlin":"_fd_kotlin","kubernetes":"_fd_kubernetes","k8s":"_fd_kubernetes","kube":"_fd_kubernetes","kuber":"_fd_kubernetes",".kubernetes":"_fd_kubernetes",".k8s":"_fd_kubernetes",".kube":"_fd_kubernetes",".kuber":"_fd_kubernetes","less":"_fd_less","_less":"_fd_less","lib":"_fd_library","libs":"_fd_library",".lib":"_fd_library",".libs":"_fd_library","__lib__":"_fd_library","__libs__":"_fd_library","library":"_fd_library","libraries":"_fd_library","linux":"_fd_linux","lang":"_fd_locale","language":"_fd_locale","languages":"_fd_locale","locale":"_fd_locale","locales":"_fd_locale","_locale":"_fd_locale","_locales":"_fd_locale","internationalization":"_fd_locale","globalization":"_fd_locale","localization":"_fd_locale","i18n":"_fd_locale","g11n":"_fd_locale","l10n":"_fd_locale","log":"_fd_log","logs":"_fd_log","macos":"_fd_macos","darwin":"_fd_macos","mariadb":"_fd_mariadb","maria":"_fd_mariadb",".mvn":"_fd_maven","mediawiki":"_fd_mediawiki","memcached":"_fd_memcached",".memcached":"_fd_memcached",".meteor":"_fd_meteor","middleware":"_fd_middleware","middlewares":"_fd_middleware",".minecraft":"_fd_minecraft","minikube":"_fd_minikube","minik8s":"_fd_minikube","minikuber":"_fd_minikube","mjml":"_fd_mjml",".mjml":"_fd_mjml","mobile":"_fd_mobile","mobiles":"_fd_mobile",".mobile":"_fd_mobile",".mobiles":"_fd_mobile","mocks":"_fd_mock",".mocks":"_fd_mock","__mocks__":"_fd_mock","model":"_fd_model",".model":"_fd_model","models":"_fd_model",".models":"_fd_model","entities":"_fd_model",".entities":"_fd_model","modules":"_fd_module","mojo":"_fd_mojo","mongodb":"_fd_mongodb","mongo":"_fd_mongodb",".mypy_cache":"_fd_mypy","mysqldb":"_fd_mysql","mysql":"_fd_mysql","netlify":"_fd_netlify",".next":"_fd_next","nginx":"_fd_nginx","conf.d":"_fd_nginx",".niv":"_fd_nix",".nix":"_fd_nix","nix":"_fd_nix","niv":"_fd_nix","node_modules":"_fd_node","notebooks":"_fd_notebooks","notebook":"_fd_notebooks","notification":"_fd_notification","notifications":"_fd_notification","event":"_fd_notification","events":"_fd_notification",".nuget":"_fd_nuget","nuxt":"_fd_nuxt",".nuxt":"_fd_nuxt","package":"_fd_package","packages":"_fd_package",".package":"_fd_package",".packages":"_fd_package","pkg":"_fd_package",".paket":"_fd_paket","php":"_fd_php",".pio":"_fd_platformio",".pioenvs":"_fd_platformio","plugin":"_fd_plugin",".plugin":"_fd_plugin","plugins":"_fd_plugin",".plugins":"_fd_plugin","extension":"_fd_plugin",".extension":"_fd_plugin","extensions":"_fd_plugin",".extensions":"_fd_plugin","prisma":"_fd_prisma","private":"_fd_private",".private":"_fd_private","public":"_fd_public",".public":"_fd_public",".pytest_cache":"_fd_pytest",".venv":"_fd_python",".virtualenv":"_fd_python","__pycache__":"_fd_python","ravendb":"_fd_ravendb","redis":"_fd_redis","redux":"_fd_redux","route":"_fd_route","routes":"_fd_route","_route":"_fd_route","_routes":"_fd_route","router":"_fd_route","routers":"_fd_route","sass":"_fd_sass","scss":"_fd_sass","_sass":"_fd_sass","_scss":"_fd_sass","script":"_fd_script","scripts":"_fd_script","seedkit":"_fd_seedkit",".seedkit":"_fd_seedkit","server":"_fd_server","service":"_fd_services","services":"_fd_services","share":"_fd_shared","shared":"_fd_shared",".share":"_fd_shared",".shared":"_fd_shared","__shared__":"_fd_shared","__share__":"_fd_shared",".snaplet":"_fd_snaplet",".spin":"_fd_spin","src":"_fd_src","source":"_fd_src","sources":"_fd_src","__src__":"_fd_src","sso":"_fd_sso","story":"_fd_story","stories":"_fd_story","__stories__":"_fd_story",".storybook":"_fd_story","style":"_fd_style","styles":"_fd_style","supabase":"_fd_supabase","svelte":"_fd_svelte",".svelte-kit":"_fd_svelte","swagger":"_fd_swagger","src-tauri":"_fd_tauri","temp":"_fd_temp",".temp":"_fd_temp","tmp":"_fd_temp",".tmp":"_fd_temp","template":"_fd_template",".template":"_fd_template","templates":"_fd_template",".templates":"_fd_template","tests":"_fd_test",".tests":"_fd_test","test":"_fd_test",".test":"_fd_test","__tests__":"_fd_test","__test__":"_fd_test","spec":"_fd_test",".spec":"_fd_test","specs":"_fd_test",".specs":"_fd_test","integration":"_fd_test","theme":"_fd_theme","themes":"_fd_theme","tool":"_fd_tools","tools":"_fd_tools",".tools":"_fd_tools","util":"_fd_tools","utils":"_fd_tools","utilities":"_fd_tools","tooling":"_fd_tools",".travis":"_fd_travis",".trunk":"_fd_trunk",".turbo":"_fd_turbo","typescript":"_fd_typescript","ts":"_fd_typescript","typings":"_fd_typings","types":"_fd_typings","@types":"_fd_typings","vagrant":"_fd_vagrant",".vagrant":"_fd_vagrant",".vercel":"_fd_vercel","video":"_fd_video",".video":"_fd_video","videos":"_fd_video",".videos":"_fd_video","html":"_fd_view","view":"_fd_view","views":"_fd_view","layout":"_fd_view","layouts":"_fd_view","page":"_fd_view","pages":"_fd_view","_view":"_fd_view","_views":"_fd_view","_layout":"_fd_view","_layouts":"_fd_view","_page":"_fd_view","_pages":"_fd_view",".vitepress":"_fd_vitepress",".vs":"_fd_vs",".vscode":"_fd_vscode","vscode":"_fd_vscode",".vscode-test":"_fd_vscode_test","wasm":"_fd_wasm","WASM":"_fd_wasm","webassembly":"_fd_wasm","WebAssembly":"_fd_wasm","wasp":"_fd_wasp","webpack":"_fd_webpack",".webpack":"_fd_webpack","windows":"_fd_windows","win32":"_fd_windows",".windsurf":"_fd_windsurf","wit":"_fd_wit",".web":"_fd_www","www":"_fd_www","wwwroot":"_fd_www","web":"_fd_www",".yarn":"_fd_yarn",".zed":"_fd_zed"}'),Xk=JSON.parse('{"android":"_fd_android_open",".angular":"_fd_angular_open","apache":"_fd_apache_open","apache2":"_fd_apache_open","httpd":"_fd_apache_open","api":"_fd_api_open",".api":"_fd_api_open","apis":"_fd_api_open",".apis":"_fd_api_open","app":"_fd_app_open","apps":"_fd_app_open",".app":"_fd_app_open","application":"_fd_app_open","applications":"_fd_app_open","arangodb":"_fd_arangodb_open","arango":"_fd_arangodb_open","assets":"_fd_asset_open",".assets":"_fd_asset_open",".astro":"_fd_astro_open","audio":"_fd_audio_open",".audio":"_fd_audio_open","audios":"_fd_audio_open",".audios":"_fd_audio_open","sound":"_fd_audio_open",".sound":"_fd_audio_open","sounds":"_fd_audio_open",".sounds":"_fd_audio_open","aurelia_project":"_fd_aurelia_open","aws":"_fd_aws_open",".aws":"_fd_aws_open","azure":"_fd_azure_open",".azure":"_fd_azure_open","azure-pipelines":"_fd_azurepipelines_open",".azure-pipelines":"_fd_azurepipelines_open",".azuredevops":"_fd_azurepipelines_open",".vsts":"_fd_azurepipelines_open","bin":"_fd_binary_open",".bin":"_fd_binary_open","blocs":"_fd_bloc_open","bloc":"_fd_bloc_open","blueprint":"_fd_blueprint_open",".blueprint":"_fd_blueprint_open","blueprints":"_fd_blueprint_open",".blueprints":"_fd_blueprint_open","bot":"_fd_bot_open",".bot":"_fd_bot_open","bower_components":"_fd_bower_open",".buildkite":"_fd_buildkite_open","cake":"_fd_cake_open",".cake":"_fd_cake_open","cargo":"_fd_cargo_open",".cargo":"_fd_cargo_open","crates":"_fd_cargo_open","certificates":"_fd_certificate_open",".certificates":"_fd_certificate_open","certs":"_fd_certificate_open","certs.":"_fd_certificate_open",".changeset":"_fd_changesets_open","chef":"_fd_chef_open",".chef":"_fd_chef_open",".circleci":"_fd_circleci_open",".claude":"_fd_claude_open","cli":"_fd_cli_open","cmd":"_fd_cli_open","command":"_fd_cli_open","commands":"_fd_cli_open","commandline":"_fd_cli_open","console":"_fd_cli_open","client":"_fd_client_open","clients":"_fd_client_open",".cloudflare":"_fd_cloudflare_open","cloudflare":"_fd_cloudflare_open",".cmake":"_fd_cmake_open","cmake":"_fd_cmake_open","common":"_fd_common_open","component":"_fd_component_open","components":"_fd_component_open",".components":"_fd_component_open","gui":"_fd_component_open","src-ui":"_fd_component_open","ui":"_fd_component_open","widgets":"_fd_component_open","composer":"_fd_composer_open",".composer":"_fd_composer_open","conf":"_fd_config_open",".conf":"_fd_config_open","config":"_fd_config_open",".config":"_fd_config_open","configs":"_fd_config_open",".configs":"_fd_config_open","configuration":"_fd_config_open",".configuration":"_fd_config_open","configurations":"_fd_config_open",".configurations":"_fd_config_open","setting":"_fd_config_open",".setting":"_fd_config_open","settings":"_fd_config_open",".settings":"_fd_config_open","ini":"_fd_config_open",".ini":"_fd_config_open","initializers":"_fd_config_open",".initializers":"_fd_config_open","__controller__":"_fd_controller_open","__controllers__":"_fd_controller_open","controller":"_fd_controller_open","controllers":"_fd_controller_open",".controllers":"_fd_controller_open","__handler__":"_fd_controller_open","__handlers__":"_fd_controller_open","handler":"_fd_controller_open",".handler":"_fd_controller_open","handlers":"_fd_controller_open",".handlers":"_fd_controller_open","coverage":"_fd_coverage_open","css":"_fd_css_open","_css":"_fd_css_open","cubits":"_fd_cubit_open","cubit":"_fd_cubit_open",".cursor":"_fd_cursor_open","cypress":"_fd_cypress_open",".dapr":"_fd_dapr_open","dapr":"_fd_dapr_open","dart":"_fd_dart_open",".dart_tool":"_fd_dart_open",".databricks":"_fd_databricks_open","datadog":"_fd_datadog_open",".datadog":"_fd_datadog_open","db":"_fd_db_open","database":"_fd_db_open","sql":"_fd_db_open","data":"_fd_db_open","repo":"_fd_db_open","repository":"_fd_db_open","repositories":"_fd_db_open","store":"_fd_db_open","stores":"_fd_db_open","storage":"_fd_db_open","storages":"_fd_db_open","debian":"_fd_debian_open","deb":"_fd_debian_open",".dependabot":"_fd_dependabot_open",".devcontainer":"_fd_devcontainer_open",".devenv":"_fd_devenv_open","dist":"_fd_dist_open",".dist":"_fd_dist_open","dists":"_fd_dist_open","out":"_fd_dist_open","outs":"_fd_dist_open","export":"_fd_dist_open","exports":"_fd_dist_open","build":"_fd_dist_open",".build":"_fd_dist_open","builds":"_fd_dist_open","release":"_fd_dist_open","releases":"_fd_dist_open","target":"_fd_dist_open","targets":"_fd_dist_open","docker":"_fd_docker_open",".docker":"_fd_docker_open","docs":"_fd_docs_open","doc":"_fd_docs_open","document":"_fd_docs_open","documents":"_fd_docs_open","e2e":"_fd_e2e_open",".elasticbeanstalk":"_fd_elasticbeanstalk_open",".ebextensions":"_fd_elasticbeanstalk_open","electron":"_fd_electron_open","environments":"_fd_environments_open",".expo":"_fd_expo_open",".expo-shared":"_fd_expo_open","favicon":"_fd_favicon_open","favicons":"_fd_favicon_open","flow":"_fd_flow_open","flow-typed":"_fd_flow_open","flutter":"_fd_flutter_open","Flutter":"_fd_flutter_open","fonts":"_fd_fonts_open","font":"_fd_fonts_open","fnt":"_fd_fonts_open","webfonts":"_fd_fonts_open",".front-commerce":"_fd_frontcommerce_open","gcp":"_fd_gcp_open",".gcp":"_fd_gcp_open",".gemini":"_fd_gemini_open",".git":"_fd_git_open","submodules":"_fd_git_open",".submodules":"_fd_git_open",".github":"_fd_github_open",".gitlab":"_fd_gitlab_open","godot":"_fd_godot_open",".godot":"_fd_godot_open","gradle":"_fd_gradle_open",".gradle":"_fd_gradle_open","graphql":"_fd_graphql_open","grunt":"_fd_grunt_open","gulp":"_fd_gulp_open","gulpfile.js":"_fd_gulp_open","gulpfile.coffee":"_fd_gulp_open","gulpfile.ts":"_fd_gulp_open","gulpfile.babel.js":"_fd_gulp_open","gulpfile.babel.coffee":"_fd_gulp_open","gulpfile.babel.ts":"_fd_gulp_open",".haxelib":"_fd_haxelib_open","haxe_libraries":"_fd_haxelib_open","helper":"_fd_helper_open",".helper":"_fd_helper_open","helpers":"_fd_helper_open",".helpers":"_fd_helper_open",".histoire":"_fd_histoire_open","hook":"_fd_hook_open",".hook":"_fd_hook_open","hooks":"_fd_hook_open",".hooks":"_fd_hook_open",".husky":"_fd_husky_open",".idea":"_fd_idea_open",".fig":"_fd_images_open",".figs":"_fd_images_open","images":"_fd_images_open","image":"_fd_images_open",".img":"_fd_images_open","img":"_fd_images_open",".imgs":"_fd_images_open","imgs":"_fd_images_open","icons":"_fd_images_open","icon":"_fd_images_open","ico":"_fd_images_open","screenshot":"_fd_images_open","screenshots":"_fd_images_open","svg":"_fd_images_open","texture":"_fd_images_open","textures":"_fd_images_open","include":"_fd_include_open","includes":"_fd_include_open","incl":"_fd_include_open","inc":"_fd_include_open",".include":"_fd_include_open",".includes":"_fd_include_open",".incl":"_fd_include_open",".inc":"_fd_include_open","_include":"_fd_include_open","_includes":"_fd_include_open","_incl":"_fd_include_open","_inc":"_fd_include_open","interface":"_fd_interfaces_open","interfaces":"_fd_interfaces_open","ios":"_fd_ios_open","js":"_fd_js_open","json":"_fd_json_open",".junie":"_fd_junie_open",".kiro":"_fd_kiro_open","kotlin":"_fd_kotlin_open","Kotlin":"_fd_kotlin_open",".kotlin":"_fd_kotlin_open","kubernetes":"_fd_kubernetes_open","k8s":"_fd_kubernetes_open","kube":"_fd_kubernetes_open","kuber":"_fd_kubernetes_open",".kubernetes":"_fd_kubernetes_open",".k8s":"_fd_kubernetes_open",".kube":"_fd_kubernetes_open",".kuber":"_fd_kubernetes_open","less":"_fd_less_open","_less":"_fd_less_open","lib":"_fd_library_open","libs":"_fd_library_open",".lib":"_fd_library_open",".libs":"_fd_library_open","__lib__":"_fd_library_open","__libs__":"_fd_library_open","library":"_fd_library_open","libraries":"_fd_library_open","linux":"_fd_linux_open","lang":"_fd_locale_open","language":"_fd_locale_open","languages":"_fd_locale_open","locale":"_fd_locale_open","locales":"_fd_locale_open","_locale":"_fd_locale_open","_locales":"_fd_locale_open","internationalization":"_fd_locale_open","globalization":"_fd_locale_open","localization":"_fd_locale_open","i18n":"_fd_locale_open","g11n":"_fd_locale_open","l10n":"_fd_locale_open","log":"_fd_log_open","logs":"_fd_log_open","macos":"_fd_macos_open","darwin":"_fd_macos_open","mariadb":"_fd_mariadb_open","maria":"_fd_mariadb_open",".mvn":"_fd_maven_open","mediawiki":"_fd_mediawiki_open","memcached":"_fd_memcached_open",".memcached":"_fd_memcached_open",".meteor":"_fd_meteor_open","middleware":"_fd_middleware_open","middlewares":"_fd_middleware_open",".minecraft":"_fd_minecraft_open","minikube":"_fd_minikube_open","minik8s":"_fd_minikube_open","minikuber":"_fd_minikube_open","mjml":"_fd_mjml_open",".mjml":"_fd_mjml_open","mobile":"_fd_mobile_open","mobiles":"_fd_mobile_open",".mobile":"_fd_mobile_open",".mobiles":"_fd_mobile_open","mocks":"_fd_mock_open",".mocks":"_fd_mock_open","__mocks__":"_fd_mock_open","model":"_fd_model_open",".model":"_fd_model_open","models":"_fd_model_open",".models":"_fd_model_open","entities":"_fd_model_open",".entities":"_fd_model_open","modules":"_fd_module_open","mojo":"_fd_mojo_open","mongodb":"_fd_mongodb_open","mongo":"_fd_mongodb_open",".mypy_cache":"_fd_mypy_open","mysqldb":"_fd_mysql_open","mysql":"_fd_mysql_open","netlify":"_fd_netlify_open",".next":"_fd_next_open","nginx":"_fd_nginx_open","conf.d":"_fd_nginx_open",".niv":"_fd_nix_open",".nix":"_fd_nix_open","nix":"_fd_nix_open","niv":"_fd_nix_open","node_modules":"_fd_node_open","notebooks":"_fd_notebooks_open","notebook":"_fd_notebooks_open","notification":"_fd_notification_open","notifications":"_fd_notification_open","event":"_fd_notification_open","events":"_fd_notification_open",".nuget":"_fd_nuget_open","nuxt":"_fd_nuxt_open",".nuxt":"_fd_nuxt_open","package":"_fd_package_open","packages":"_fd_package_open",".package":"_fd_package_open",".packages":"_fd_package_open","pkg":"_fd_package_open",".paket":"_fd_paket_open","php":"_fd_php_open",".pio":"_fd_platformio_open",".pioenvs":"_fd_platformio_open","plugin":"_fd_plugin_open",".plugin":"_fd_plugin_open","plugins":"_fd_plugin_open",".plugins":"_fd_plugin_open","extension":"_fd_plugin_open",".extension":"_fd_plugin_open","extensions":"_fd_plugin_open",".extensions":"_fd_plugin_open","prisma":"_fd_prisma_open","private":"_fd_private_open",".private":"_fd_private_open","public":"_fd_public_open",".public":"_fd_public_open",".pytest_cache":"_fd_pytest_open",".venv":"_fd_python_open",".virtualenv":"_fd_python_open","__pycache__":"_fd_python_open","ravendb":"_fd_ravendb_open","redis":"_fd_redis_open","redux":"_fd_redux_open","route":"_fd_route_open","routes":"_fd_route_open","_route":"_fd_route_open","_routes":"_fd_route_open","router":"_fd_route_open","routers":"_fd_route_open","sass":"_fd_sass_open","scss":"_fd_sass_open","_sass":"_fd_sass_open","_scss":"_fd_sass_open","script":"_fd_script_open","scripts":"_fd_script_open","seedkit":"_fd_seedkit_open",".seedkit":"_fd_seedkit_open","server":"_fd_server_open","service":"_fd_services_open","services":"_fd_services_open","share":"_fd_shared_open","shared":"_fd_shared_open",".share":"_fd_shared_open",".shared":"_fd_shared_open","__shared__":"_fd_shared_open","__share__":"_fd_shared_open",".snaplet":"_fd_snaplet_open",".spin":"_fd_spin_open","src":"_fd_src_open","source":"_fd_src_open","sources":"_fd_src_open","__src__":"_fd_src_open","sso":"_fd_sso_open","story":"_fd_story_open","stories":"_fd_story_open","__stories__":"_fd_story_open",".storybook":"_fd_story_open","style":"_fd_style_open","styles":"_fd_style_open","supabase":"_fd_supabase_open","svelte":"_fd_svelte_open",".svelte-kit":"_fd_svelte_open","swagger":"_fd_swagger_open","src-tauri":"_fd_tauri_open","temp":"_fd_temp_open",".temp":"_fd_temp_open","tmp":"_fd_temp_open",".tmp":"_fd_temp_open","template":"_fd_template_open",".template":"_fd_template_open","templates":"_fd_template_open",".templates":"_fd_template_open","tests":"_fd_test_open",".tests":"_fd_test_open","test":"_fd_test_open",".test":"_fd_test_open","__tests__":"_fd_test_open","__test__":"_fd_test_open","spec":"_fd_test_open",".spec":"_fd_test_open","specs":"_fd_test_open",".specs":"_fd_test_open","integration":"_fd_test_open","theme":"_fd_theme_open","themes":"_fd_theme_open","tool":"_fd_tools_open","tools":"_fd_tools_open",".tools":"_fd_tools_open","util":"_fd_tools_open","utils":"_fd_tools_open","utilities":"_fd_tools_open","tooling":"_fd_tools_open",".travis":"_fd_travis_open",".trunk":"_fd_trunk_open",".turbo":"_fd_turbo_open","typescript":"_fd_typescript_open","ts":"_fd_typescript_open","typings":"_fd_typings_open","types":"_fd_typings_open","@types":"_fd_typings_open","vagrant":"_fd_vagrant_open",".vagrant":"_fd_vagrant_open",".vercel":"_fd_vercel_open","video":"_fd_video_open",".video":"_fd_video_open","videos":"_fd_video_open",".videos":"_fd_video_open","html":"_fd_view_open","view":"_fd_view_open","views":"_fd_view_open","layout":"_fd_view_open","layouts":"_fd_view_open","page":"_fd_view_open","pages":"_fd_view_open","_view":"_fd_view_open","_views":"_fd_view_open","_layout":"_fd_view_open","_layouts":"_fd_view_open","_page":"_fd_view_open","_pages":"_fd_view_open",".vitepress":"_fd_vitepress_open",".vs":"_fd_vs_open",".vscode":"_fd_vscode_open","vscode":"_fd_vscode_open",".vscode-test":"_fd_vscode_test_open","wasm":"_fd_wasm_open","WASM":"_fd_wasm_open","webassembly":"_fd_wasm_open","WebAssembly":"_fd_wasm_open","wasp":"_fd_wasp_open","webpack":"_fd_webpack_open",".webpack":"_fd_webpack_open","windows":"_fd_windows_open","win32":"_fd_windows_open",".windsurf":"_fd_windsurf_open","wit":"_fd_wit_open",".web":"_fd_www_open","www":"_fd_www_open","wwwroot":"_fd_www_open","web":"_fd_www_open",".yarn":"_fd_yarn_open",".zed":"_fd_zed_open"}'),Yk=JSON.parse('{"accdb":"_f_access","accdt":"_f_access","mdb":"_f_access","accda":"_f_access","accdc":"_f_access","accde":"_f_access","accdp":"_f_access","accdr":"_f_access","accdu":"_f_access","ade":"_f_access","adp":"_f_access","laccdb":"_f_access","ldb":"_f_access","mam":"_f_access","maq":"_f_access","mdw":"_f_access","af":"_f_affinity","aftemplate":"_f_affinity","afdesign":"_f_affinitydesigner","affinitydesigner":"_f_affinitydesigner","afphoto":"_f_affinityphoto","affinityphoto":"_f_affinityphoto","afpub":"_f_affinitypublisher","affinitypublisher":"_f_affinitypublisher","ai":"_f_ai","dal":"_f_al_dal","gs":"_f_appscript","ino":"_f_arduino","pde":"_f_arduino","ase":"_f_aseprite","aseprite":"_f_aseprite","aspx":"_f_aspx","ascx":"_f_aspx","asm":"_f_assembly","s":"_f_assembly","astro":"_f_astro","atom":"_f_atom","aac":"_f_audio","act":"_f_audio","aiff":"_f_audio","amr":"_f_audio","ape":"_f_audio","au":"_f_audio","dct":"_f_audio","dss":"_f_audio","dvf":"_f_audio","flac":"_f_audio","gsm":"_f_audio","iklax":"_f_audio","ivs":"_f_audio","m4a":"_f_audio","m4b":"_f_audio","m4p":"_f_audio","mmf":"_f_audio","mogg":"_f_audio","mp3":"_f_audio","mpc":"_f_audio","msv":"_f_audio","oga":"_f_audio","ogg":"_f_audio","opus":"_f_audio","ra":"_f_audio","raw":"_f_audio","tta":"_f_audio","vox":"_f_audio","wav":"_f_audio","wma":"_f_audio","avif":"_f_avif","awk":"_f_awk","back":"_f_bak","backup":"_f_bak","bak":"_f_bak","a":"_f_binary","app":"_f_binary","bin":"_f_binary","cmo":"_f_binary","cmx":"_f_binary","cma":"_f_binary","cmxa":"_f_binary","cmi":"_f_binary","dll":"_f_binary","exe":"_f_binary","hl":"_f_binary","ilk":"_f_binary","lib":"_f_binary","n":"_f_binary","ndll":"_f_binary","o":"_f_binary","obj":"_f_binary","pyc":"_f_binary","pyd":"_f_binary","pyo":"_f_binary","pdb":"_f_binary","scpt":"_f_binary","scptd":"_f_binary","so":"_f_binary","blend":"_f_blender","bb":"_f_blitzbasic","buf.yaml":"_f_buf","buf.yml":"_f_buf","buf.gen.yml":"_f_buf","buf.gen.yaml":"_f_buf","buf.work.yaml":"_f_buf","buf.work.yml":"_f_buf","gemfile":"_f_bundler","gemfile.lock":"_f_bundler","cake":"_f_cake","csr":"_f_cert","crt":"_f_cert","cer":"_f_cert","der":"_f_cert","pfx":"_f_cert","p12":"_f_cert","p7b":"_f_cert","p7r":"_f_cert","src":"_f_cert","crl":"_f_cert","sst":"_f_cert","stl":"_f_cert","lucee":"_f_cf","h":"_f_cheader","class":"_f_class","cjm":"_f_clojure","cljc":"_f_clojure","cljs":"_f_clojurescript","kit":"_f_codekit","plist":"_f_config","lcov":"_f_coverage","hpp":"_f_cppheader","hh":"_f_cppheader","hxx":"_f_cppheader","h++":"_f_cppheader","csx":"_f_csharp","csproj":"_f_csproj","css.map":"_f_cssmap","cy.js":"_f_cypress_spec","cy.mjs":"_f_cypress_spec","cy.cjs":"_f_cypress_spec","cy.coffee":"_f_cypress_spec","cy.ts":"_f_cypress_spec","cy.tsx":"_f_cypress_spec","cy.jsx":"_f_cypress_spec","g.dart":"_f_dartlang_generated","freezed.dart":"_f_dartlang_generated","db":"_f_db","deb":"_f_debian","resolver.json":"_f_design_tokens","resolver.json5":"_f_design_tokens","resolver.jsonc":"_f_design_tokens","tokens.json":"_f_design_tokens","tokens.json5":"_f_design_tokens","tokens.jsonc":"_f_design_tokens","djt":"_f_django","eco":"_f_docpad","drawio":"_f_drawio","dio":"_f_drawio","drawio.png":"_f_drawio","drawio.svg":"_f_drawio","dio.png":"_f_drawio","dio.svg":"_f_drawio","dtd":"_f_dtd","duckdb":"_f_duckdb","eex":"_f_eex","heex":"_f_eex","phoenix-heex":"_f_eex","html-heex":"_f_eex","ejs":"_f_ejs","el":"_f_emacs","elc":"_f_emacs","ensime":"_f_ensime","eps":"_f_eps","epub":"_f_epub","excalidraw":"_f_excalidraw","excalidraw.json":"_f_excalidraw","excalidraw.svg":"_f_excalidraw","excalidraw.png":"_f_excalidraw","xls":"_f_excel","xlsx":"_f_excel","xlsm":"_f_excel","ods":"_f_libreoffice_calc","fods":"_f_libreoffice_calc","xlsb":"_f_excel","fbx":"_f_fbx","fba":"_f_fitbit","fla":"_f_fla","swf":"_f_flash","swc":"_f_flash","js.flow":"_f_flow","fprg":"_f_flowgorithm","woff":"_f_font","woff2":"_f_font","ttf":"_f_font","otf":"_f_libreoffice_math","eot":"_f_font","pfa":"_f_font","pfb":"_f_font","sfd":"_f_font","fzz":"_f_fritzing","fz":"_f_fritzing","fzpz":"_f_fritzing","fzp":"_f_fritzing","fzbz":"_f_fritzing","fzb":"_f_fritzing","fsproj":"_f_fsproj","gmx":"_f_gamemaker","yy":"_f_gamemaker2","yyp":"_f_gamemaker2","gd.uid":"_f_gduid","geojson":"_f_geojson","xcf":"_f_gimp","gleam":"_f_gleam","glb":"_f_gltf","gltf":"_f_gltf","am":"_f_gnu","ld":"_f_gnu","m4":"_f_gnu","makefile":"_f_gnu","godot":"_f_godot","gpg":"_f_gpg","pgp":"_f_gpg","gradle":"_f_gradle","gr":"_f_grain","hcl2":"_f_hashicorp","sentinel":"_f_hashicorp","hxproj":"_f_haxedevelop","ejs.t":"_f_hygen","idr":"_f_idris","lidr":"_f_idris","ibc":"_f_idrisbin","ipkg":"_f_idrispkg","jpeg":"_f_image","jpg":"_f_image","gif":"_f_image","png":"_f_image","bmp":"_f_image","tiff":"_f_image","heic":"_f_image","ico":"_f_image","icns":"_f_image","webp":"_f_image","imba":"_f_imba","imba2":"_f_imba","inc":"_f_inc","include":"_f_inc","infopathxml":"_f_infopath","xsn":"_f_infopath","xsf":"_f_infopath","xtp2":"_f_infopath","jar":"_f_jar","jbuilder":"_f_jbuilder","iml":"_f_jetbrains","js.map":"_f_jsmap","cjs.map":"_f_jsmap","mjs.map":"_f_jsmap","jsonl":"_f_json","ndjson":"_f_json","json5":"_f_json5","schema.json":"_f_json_schema","jsonld":"_f_jsonld","json-ld":"_f_jsonld","jsp":"_f_jsp","jss":"_f_jss","juice":"_f_juice","ipynb":"_f_jupyter","key":"_f_key","pem":"_f_key","ktm":"_f_kotlin","language-configuration.json":"_f_language_configuration","master":"_f_layout","layout.html":"_f_layout","layout.htm":"_f_layout","lemon":"_f_lemon","odb":"_f_libreoffice_base","otb":"_f_libreoffice_base","ots":"_f_libreoffice_calc","odg":"_f_libreoffice_draw","otg":"_f_libreoffice_draw","odp":"_f_libreoffice_impress","otp":"_f_libreoffice_impress","odf":"_f_libreoffice_math","odt":"_f_libreoffice_writer","ott":"_f_libreoffice_writer","enc":"_f_license","license":"_f_license","lic":"_f_license","hxp":"_f_lime","ls":"_f_livescript","lnk":"_f_lnk","log":"_f_log","tlg":"_f_log","luau":"_f_luau","crec":"_f_lync","ocrec":"_f_lync","map":"_f_map","mdown":"_f_markdown","markdown":"_f_markdown","marko.js":"_f_markojs","fig":"_f_matlab","mex":"_f_matlab","mexn":"_f_matlab","mexrs6":"_f_matlab","mn":"_f_matlab","mum":"_f_matlab","mx":"_f_matlab","mx3":"_f_matlab","rwd":"_f_matlab","slx":"_f_matlab","slddc":"_f_matlab","smv":"_f_matlab","xvc":"_f_matlab","mca":"_f_minecraft","mcmeta":"_f_minecraft","mojo":"_f_mojo","🔥":"_f_mojo","mql.yaml":"_f_mondoo","mql.yml":"_f_mondoo","mustache":"_f_mustache","mst":"_f_mustache","n64":"_f_n64","z64":"_f_n64","nrm":"_f_n64","ndst.yaml":"_f_ndst","ndst.yml":"_f_ndst","ndst.json":"_f_ndst","njsproj":"_f_njsproj","noc":"_f_noc","nupkg":"_f_nuget","snupkg":"_f_nuget","nuspec":"_f_nuget","psmdcp":"_f_nuget","npy":"_f_numpy","npz":"_f_numpy","nunj":"_f_nunjucks","njs":"_f_nunjucks","mli":"_f_ocaml_intf","one":"_f_onenote","onepkg":"_f_onenote","onetoc":"_f_onenote","onetoc2":"_f_onenote","sig":"_f_onenote","opam":"_f_opam","cl":"_f_opencl","opencl":"_f_opencl","tofu":"_f_opentofu","tofu.json":"_f_opentofu","tofutest.hcl":"_f_opentofu","tofutest.json":"_f_opentofu","org":"_f_org","pst":"_f_outlook","bcmx":"_f_outlook","otm":"_f_outlook","msg":"_f_outlook","oft":"_f_outlook","ovpn":"_f_ovpn","pkg":"_f_package","paket.references":"_f_paket","paket.template":"_f_paket","parquet":"_f_parquet","patch":"_f_patch","pcd":"_f_pcl","pdf":"_f_pdf","psd":"_f_photoshop","php1":"_f_php","php2":"_f_php","php3":"_f_php","php4":"_f_php","php5":"_f_php","php6":"_f_php","phps":"_f_php","phpsa":"_f_php","phpt":"_f_php","phtml":"_f_php","phar":"_f_php","pipeline":"_f_pipeline","pu":"_f_plantuml","plantuml":"_f_plantuml","iuml":"_f_plantuml","puml":"_f_plantuml","pck":"_f_plsql_package","pkb":"_f_plsql_package_body","pkh":"_f_plsql_package_header","pks":"_f_plsql_package_spec","po":"_f_poedit","mo":"_f_poedit","postman_collection.json":"_f_postman","postman_environment.json":"_f_postman","postman_globals.json":"_f_postman","pot":"_f_powerpoint","potx":"_f_powerpoint","potm":"_f_powerpoint","pps":"_f_powerpoint","ppsx":"_f_powerpoint","ppsm":"_f_powerpoint","ppt":"_f_powerpoint","pptx":"_f_powerpoint","pptm":"_f_powerpoint","pa":"_f_powerpoint","ppa":"_f_powerpoint","ppam":"_f_powerpoint","sldm":"_f_powerpoint","sldx":"_f_powerpoint","format.ps1xml":"_f_powershell_format","psd1":"_f_powershell_psd","psm1":"_f_powershell_psm","types.ps1xml":"_f_powershell_types","pro":"_f_prolog","pub":"_f_publisher","puz":"_f_publisher","pyowo":"_f_pythowo","q":"_f_q","qbs":"_f_qbs","qvd":"_f_qlikview","qvw":"_f_qlikview","rast":"_f_ra_syntax_tree","rake":"_f_rake","rt":"_f_reacttemplate","reg":"_f_registry","rego":"_f_rego","ripple":"_f_ripple","rnc":"_f_rnc","ron":"_f_ron","rproj":"_f_rproj","rss":"_f_rss","rbs":"_f_ruby","safetensors":"_f_safetensors","sls":"_f_saltstack","sass":"_f_sass","scssm":"_f_scss","unity":"_f_shaderlab","fish":"_f_shell","sy":"_f_siyuan","sketch":"_f_sketch","eskip":"_f_skipper","sln":"_f_sln","slnx":"_f_sln","slnf":"_f_sln","spe":"_f_spacengine","sqlite":"_f_sqlite","sqlite3":"_f_sqlite","db3":"_f_sqlite","sss":"_f_sss","dta":"_f_stata","storyboard":"_f_storyboard","story.js":"_f_storybook","story.jsx":"_f_storybook","story.ts":"_f_storybook","story.tsx":"_f_storybook","story.mdx":"_f_storybook","story.svelte":"_f_storybook","stories.js":"_f_storybook","stories.jsx":"_f_storybook","stories.ts":"_f_storybook","stories.tsx":"_f_storybook","stories.mdx":"_f_storybook","stories.svelte":"_f_storybook","sublime-project":"_f_sublime","svg":"_f_svg","tcl":"_f_tcl","exp":"_f_tcl","templ":"_f_templ","tfstate":"_f_terraform","tfvars":"_f_terraform","tf":"_f_terraform","tf.json":"_f_terraform","tst":"_f_test","test.js":"_f_testjs","test.jsx":"_f_testjs","test.mjs":"_f_testjs","spec.js":"_f_testjs","spec.jsx":"_f_testjs","spec.mjs":"_f_testjs","testplane.ts":"_f_testplane","testplane.js":"_f_testplane","testplane.cts":"_f_testplane","testplane.cjs":"_f_testplane","testplane.tsx":"_f_testplane","testplane.jsx":"_f_testplane","test.ts":"_f_testts","test.tsx":"_f_testts","test.mts":"_f_testts","spec.ts":"_f_testts","spec.tsx":"_f_testts","spec.mts":"_f_testts","e2e-test.ts":"_f_testts","e2e-test.tsx":"_f_testts","e2e-test.mts":"_f_testts","e2e-spec.ts":"_f_testts","e2e-spec.tsx":"_f_testts","e2e-spec.mts":"_f_testts","test-d.ts":"_f_testts","test-d.tsx":"_f_testts","test-d.mts":"_f_testts","texi":"_f_tex","tikz":"_f_tex","csv":"_f_text","tsv":"_f_text","tm":"_f_tm","tm.hcl":"_f_tm","todo":"_f_todo","tree":"_f_tree","tres":"_f_tres","tsbuildinfo":"_f_tsbuildinfo","tscn":"_f_tscn","tt2":"_f_tt","d.ts":"_f_typescriptdef","d.cts":"_f_typescriptdef","d.mts":"_f_typescriptdef","ua":"_f_uiua","u":"_f_unison","vala":"_f_vala","css.ts":"_f_vanilla_extract","vapi":"_f_vapi","vash":"_f_vash","vbhtml":"_f_vbhtml","vbproj":"_f_vbproj","vcxproj":"_f_vcxproj","vto":"_f_vento","vento":"_f_vento","3g2":"_f_video","3gp":"_f_video","asf":"_f_video","amv":"_f_video","avi":"_f_video","divx":"_f_video","qt":"_f_video","f4a":"_f_video","f4b":"_f_video","f4p":"_f_video","f4v":"_f_video","flv":"_f_video","m2v":"_f_video","m4v":"_f_video","mkv":"_f_video","mk3d":"_f_video","mov":"_f_video","mp2":"_f_video","mp4":"_f_video","mpe":"_f_video","mpeg":"_f_video","mpeg2":"_f_video","mpg":"_f_video","mpv":"_f_video","nsv":"_f_video","ogv":"_f_video","rm":"_f_video","rmvb":"_f_video","svi":"_f_video","vob":"_f_video","webm":"_f_video","wmv":"_f_video","code-snippets":"_f_vscode","code-workspace":"_f_vscode","vsix":"_f_vsix","vsixmanifest":"_f_vsixmanifest","vvvvvv":"_f_vvvvvv","vyi":"_f_vyper","wasm":"_f_wasm","wasp.ts":"_f_wasp","wikitext":"_f_wikitext","wit":"_f_wit","doc":"_f_word","docx":"_f_word","docm":"_f_word","dot":"_f_word","dotx":"_f_word","dotm":"_f_word","wll":"_f_word","wxml":"_f_wxml","wxss":"_f_wxss","xaml":"_f_xaml","axaml":"_f_xaml","xcodeproj":"_f_xcode","xfl":"_f_xfl","xib":"_f_xib","xliff":"_f_xliff","xlf":"_f_xliff","pex":"_f_xml","tmlanguage":"_f_xml","zip":"_f_zip","rar":"_f_zip","7z":"_f_zip","tar":"_f_zip","tgz":"_f_zip","bz":"_f_zip","gz":"_f_zip","bzip2":"_f_zip","xz":"_f_zip","bz2":"_f_zip","whl":"_f_zip","zipx":"_f_zip","br":"_f_zip"}'),ew=JSON.parse('{"agents.md":"_f_agents","alchemy.run.ts":"_f_alchemy",".all-contributorsrc":"_f_allcontributors","allurerc.js":"_f_allure","allurerc.mjs":"_f_allure","allurerc.cjs":"_f_allure","allurerc.json":"_f_allure","allurerc.yaml":"_f_allure","allurerc.yml":"_f_allure",".angular-cli.json":"_f_angular","angular-cli.json":"_f_angular","angular.json":"_f_angular",".angular.json":"_f_angular","antlers.html":"_f_antlers_html","api-extractor.json":"_f_api_extractor","api-extractor-base.json":"_f_api_extractor",".appsemblerc.yaml":"_f_appsemble","app-definition.yaml":"_f_appsemble","appveyor.yml":"_f_appveyor",".appveyor.yml":"_f_appveyor","asconfig.json":"_f_assembly_script","astro.config.js":"_f_astroconfig","astro.config.cjs":"_f_astroconfig","astro.config.mjs":"_f_astroconfig","astro.config.ts":"_f_astroconfig","astro.config.cts":"_f_astroconfig","astro.config.mts":"_f_astroconfig",".attw.json":"_f_attw","aurelia.json":"_f_aurelia","azure-pipelines.yml":"_f_azurepipelines",".vsts-ci.yml":"_f_azurepipelines",".babelrc":"_f_babel",".babelignore":"_f_babel",".babelrc.js":"_f_babel",".babelrc.cjs":"_f_babel",".babelrc.mjs":"_f_babel",".babelrc.json":"_f_babel","babel.config.js":"_f_babel","babel.config.cjs":"_f_babel","babel.config.mjs":"_f_babel","babel.config.json":"_f_babel",".bzrignore":"_f_bazaar","BUILD.bazel":"_f_bazel",".bazelrc":"_f_bazel","bazel.rc":"_f_bazel","bazel.bazelrc":"_f_bazel",".bazelignore":"_f_bazel_ignore",".bazelversion":"_f_bazel_version","biome.json":"_f_biome","biome.jsonc":"_f_biome",".biome.json":"_f_biome",".biome.jsonc":"_f_biome","bitbucket-pipelines.yml":"_f_bitbucketpipeline",".bithoundrc":"_f_bithound",".bowerrc":"_f_bower","bower.json":"_f_bower",".Brewfile":"_f_brew","Brewfile":"_f_brew",".browserslistrc":"_f_browserslist","browserslist":"_f_browserslist",".buckconfig":"_f_buckbuild",".bun-version":"_f_bun",".bunfig.toml":"_f_bun","bunfig.toml":"_f_bunfig","bun.lockb":"_f_bun","bun.lock":"_f_bun",".bundlemonrc":"_f_bundlemon","bundlemon.config.js":"_f_bundlemon","bundlemon.config.mjs":"_f_bundlemon","bundlemon.config.cjs":"_f_bundlemon",".bundlemonrc.js":"_f_bundlemon",".bundlemonrc.mjs":"_f_bundlemon",".bundlemonrc.cjs":"_f_bundlemon",".bundlemonrc.json":"_f_bundlemon",".bundlemonrc.yaml":"_f_bundlemon",".bundlemonrc.yml":"_f_bundlemon","gemfile":"_f_bundler","gemfile.lock":"_f_bundler","capacitor.config.json":"_f_capacitor","capacitor.config.ts":"_f_capacitor","Cargo.toml":"_f_cargo","Cargo.lock":"_f_cargo",".changie.yaml":"_f_changie",".changie.yml":"_f_changie","chefignore":"_f_chef","berksfile":"_f_chef","berksfile.lock":"_f_chef","policyfile.rb":"_f_chef","policyfile.lock.json":"_f_chef","circle.yml":"_f_circleci",".clangd":"_f_clangd","claude.md":"_f_claude","claude.local.md":"_f_claude","wrangler.json":"_f_cloudflare","wrangler.jsonc":"_f_cloudflare","wrangler.toml":"_f_cloudflare",".cfignore":"_f_cloudfoundry",".codacy.yml":"_f_codacy",".codacy.yaml":"_f_codacy",".codeclimate.yml":"_f_codeclimate","codecov.yml":"_f_codecov",".codecov.yml":"_f_codecov","config.codekit":"_f_codekit","config.codekit2":"_f_codekit","config.codekit3":"_f_codekit",".config.codekit":"_f_codekit",".config.codekit2":"_f_codekit",".config.codekit3":"_f_codekit","codemagic.yaml":"_f_codemagic","codeowners":"_f_codeowners",".coderabbit.yaml":"_f_coderabbit","coffeelint.json":"_f_coffeelint",".coffeelintignore":"_f_coffeelint",".czrc":"_f_commitizen",".cz.json":"_f_commitizen",".commitlintrc":"_f_commitlint","commitlint.config.js":"_f_commitlint","commitlint.config.cjs":"_f_commitlint","commitlint.config.mjs":"_f_commitlint","commitlint.config.ts":"_f_commitlint","commitlint.config.cts":"_f_commitlint",".commitlintrc.json":"_f_commitlint",".commitlintrc.yaml":"_f_commitlint",".commitlintrc.yml":"_f_commitlint",".commitlintrc.js":"_f_commitlint",".commitlintrc.cjs":"_f_commitlint",".commitlintrc.mjs":"_f_commitlint",".commitlintrc.ts":"_f_commitlint",".commitlintrc.cts":"_f_commitlint","composer.json":"_f_composer","composer.lock":"_f_composer","conanfile.txt":"_f_conan","conanfile.py":"_f_conan",".condarc":"_f_conda",".tool-versions":"_f_config","context7.json":"_f_context7","copilot-instructions.md":"_f_copilot","github-copilot.xml":"_f_copilot",".coverage":"_f_coverage","lcov.info":"_f_coverage",".coveralls.yml":"_f_coveralls","craco.config.ts":"_f_craco","craco.config.js":"_f_craco","craco.config.cjs":"_f_craco",".cracorc.ts":"_f_craco",".cracorc.js":"_f_craco",".cracorc":"_f_craco","crowdin.yml":"_f_crowdin","cspell.json":"_f_cspell","cspell.jsonc":"_f_cspell","cspell.yaml":"_f_cspell","cspell.yml":"_f_cspell",".cspell.json":"_f_cspell",".cspell.jsonc":"_f_cspell",".cspell.yaml":"_f_cspell",".cspell.yml":"_f_cspell","cspell.config.json":"_f_cspell","cspell.config.jsonc":"_f_cspell","cspell.config.js":"_f_cspell","cspell.config.mjs":"_f_cspell","cspell.config.cjs":"_f_cspell","cspell.config.ts":"_f_cspell","cspell.config.mts":"_f_cspell","cspell.config.cts":"_f_cspell","cspell.config.yaml":"_f_cspell","cspell.config.yml":"_f_cspell","cspell.config.toml":"_f_cspell",".cspell.config.json":"_f_cspell",".cspell.config.jsonc":"_f_cspell",".cspell.config.js":"_f_cspell",".cspell.config.mjs":"_f_cspell",".cspell.config.cjs":"_f_cspell",".cspell.config.ts":"_f_cspell",".cspell.config.mts":"_f_cspell",".cspell.config.cts":"_f_cspell",".cspell.config.yaml":"_f_cspell",".cspell.config.yml":"_f_cspell",".cspell.config.toml":"_f_cspell",".csscomb.json":"_f_csscomb",".csslintrc":"_f_csslint",".cursorignore":"_f_cursorrules",".cursorindexingignore":"_f_cursorrules",".cursorrules":"_f_cursorrules",".cvsignore":"_f_cvs","cypress.json":"_f_cypress","cypress.env.json":"_f_cypress","cypress.config.js":"_f_cypress","cypress.config.ts":"_f_cypress","cypress.config.cjs":"_f_cypress","cypress.config.mjs":"_f_cypress",".boringignore":"_f_darcs",".pubignore":"_f_dartlang_ignore","databricks.yml":"_f_databricks","databricks.yaml":"_f_databricks","service.datadog.yaml":"_f_datadog","datadog-ci.json":"_f_datadog","code-security.datadog.yaml":"_f_datadog","code-security.datadog.yml":"_f_datadog","repository.datadog.yaml":"_f_datadog","repository.datadog.yml":"_f_datadog","static-analysis.datadog.yml":"_f_datadog","static-analysis.datadog.yaml":"_f_datadog","dbt_project.yml":"_f_dbt","dbt_cloud.yml":"_f_dbt",".dbtignore":"_f_dbt","aptfile":"_f_debian","deno.json":"_f_deno","deno.jsonc":"_f_deno","deno.lock":"_f_deno",".denoifyrc":"_f_denoify","denoify.config.json":"_f_denoify","denoify.config.js":"_f_denoify","dependabot.yml":"_f_dependabot","dependabot.yaml":"_f_dependabot","dependencies.yml":"_f_dependencies","devcontainer.json":"_f_devcontainer",".devcontainer.json":"_f_devcontainer","devenv.lock":"_f_devenv","devenv.nix":"_f_devenv","devenv.yaml":"_f_devenv","devvit.json":"_f_devvit","devvit.dev.json":"_f_devvit","devvit.prod.json":"_f_devvit","devvit.test.json":"_f_devvit","devvit.config.js":"_f_devvit","devvit.config.cjs":"_f_devvit","devvit.config.mjs":"_f_devvit","devvit.config.ts":"_f_devvit","devvit.config.mts":"_f_devvit","devvit.config.dev.js":"_f_devvit","devvit.config.dev.cjs":"_f_devvit","devvit.config.dev.mjs":"_f_devvit","devvit.config.dev.ts":"_f_devvit","devvit.config.dev.mts":"_f_devvit","devvit.config.prod.js":"_f_devvit","devvit.config.prod.cjs":"_f_devvit","devvit.config.prod.mjs":"_f_devvit","devvit.config.prod.ts":"_f_devvit","devvit.config.prod.mts":"_f_devvit","devvit.config.test.js":"_f_devvit","devvit.config.test.cjs":"_f_devvit","devvit.config.test.mjs":"_f_devvit","devvit.config.test.ts":"_f_devvit","devvit.config.test.mts":"_f_devvit",".dockerignore":"_f_docker","compose.yaml":"_f_docker","compose.yml":"_f_docker","docker-compose.yaml":"_f_docker","docker-compose.yml":"_f_docker","docker-compose.debug.yaml":"_f_docker","docker-compose.debug.yml":"_f_docker","docker-compose.ci-build.yaml":"_f_docker","docker-compose.ci-build.yml":"_f_docker","docker-compose.override.yaml":"_f_docker","docker-compose.override.yml":"_f_docker","docker-compose.vs.debug.yaml":"_f_docker","docker-compose.vs.debug.yml":"_f_docker","docker-compose.vs.release.yaml":"_f_docker","docker-compose.vs.release.yml":"_f_docker","docker-cloud.yaml":"_f_docker","docker-cloud.yml":"_f_docker","docker-compose.test.yml":"_f_dockertest","docusaurus.config.ts":"_f_docusaurus","docusaurus.config.mts":"_f_docusaurus","docusaurus.config.cts":"_f_docusaurus","docusaurus.config.js":"_f_docusaurus","docusaurus.config.mjs":"_f_docusaurus","docusaurus.config.cjs":"_f_docusaurus",".doczrc":"_f_docz","docz.js":"_f_docz","docz.json":"_f_docz",".docz.js":"_f_docz",".docz.json":"_f_docz","doczrc.js":"_f_docz","doczrc.json":"_f_docz","docz.config.js":"_f_docz","docz.config.json":"_f_docz",".dojorc":"_f_dojo","doppler.yaml":"_f_doppler","doppler-template.yaml":"_f_doppler","Doxyfile":"_f_doxyfile","drizzle.config.json":"_f_drizzle_orm","drizzle.config.js":"_f_drizzle_orm","drizzle.config.ts":"_f_drizzle_orm",".drone.yml":"_f_drone",".drone.yml.sig":"_f_drone","dune":"_f_dune","dune-project":"_f_dune","dune-workspace":"_f_dune",".dvc":"_f_dvc",".earthlyignore":"_f_earthly","Earthfile":"_f_earthly","store.config.json":"_f_eas-metadata",".editorconfig":"_f_editorconfig","forge.config.js":"_f_electron","forge.config.ts":"_f_electron",".eleventyignore":"_f_eleventy",".eleventy.js":"_f_eleventy","eleventy.config.js":"_f_eleventy","eleventy.config.cjs":"_f_eleventy","eleventy.config.mjs":"_f_eleventy","elm-package.json":"_f_elm",".ember-cli":"_f_ember","emakefile":"_f_erlang",".emakerfile":"_f_erlang","esbuild.js":"_f_esbuild","esbuild.mjs":"_f_esbuild","esbuild.cjs":"_f_esbuild","esbuild.ts":"_f_esbuild","esbuild.config.js":"_f_esbuild","esbuild.config.mjs":"_f_esbuild","esbuild.config.cjs":"_f_esbuild","esbuild.config.ts":"_f_esbuild",".eslintrc":"_f_eslint",".eslintignore":"_f_eslint",".eslintcache":"_f_eslint","eslint.config.js":"_f_eslint","eslint.config.mjs":"_f_eslint","eslint.config.cjs":"_f_eslint","eslint.config.ts":"_f_eslint","eslint.config.mts":"_f_eslint","eslint.config.cts":"_f_eslint",".eslintrc.js":"_f_eslint",".eslintrc.mjs":"_f_eslint",".eslintrc.cjs":"_f_eslint",".eslintrc.ts":"_f_eslint",".eslintrc.mts":"_f_eslint",".eslintrc.cts":"_f_eslint",".eslintrc.json":"_f_eslint",".eslintrc.yaml":"_f_eslint",".eslintrc.yml":"_f_eslint","app.json":"_f_expo","app.config.js":"_f_expo","app.config.json":"_f_expo","app.config.json5":"_f_expo","eas.json":"_f_expo",".fantasticonrc":"_f_fantasticon","fantasticonrc":"_f_fantasticon",".fantasticonrc.json":"_f_fantasticon","fantasticonrc.json":"_f_fantasticon",".fantasticonrc.js":"_f_fantasticon","fantasticonrc.js":"_f_fantasticon","fastly.toml":"_f_fastly",".faunarc":"_f_fauna","favicon.ico":"_f_favicon",".firebaserc":"_f_firebase","firebase.json":"_f_firebasehosting","storage.rules":"_f_firebasestorage","firestore.rules":"_f_firestore","firestore.indexes.json":"_f_firestore","flareact.config.js":"_f_flareact","fleet.yaml":"_f_fleet",".flooignore":"_f_floobits",".flowconfig":"_f_flow",".flutter-plugins":"_f_flutter",".metadata":"_f_flutter",".flutter-plugins-dependencies":"_f_flutter","pubspec.lock":"_f_flutter_package","pubspec.yaml":"_f_flutter_package",".packages":"_f_flutter_package","fly.toml":"_f_flyio","formkit.config.js":"_f_formkit","formkit.config.mjs":"_f_formkit","formkit.config.cjs":"_f_formkit","formkit.config.ts":"_f_formkit","formkit.theme.js":"_f_formkit","formkit.theme.mjs":"_f_formkit","formkit.theme.cjs":"_f_formkit","formkit.theme.ts":"_f_formkit",".fossaignore":"_f_fossa","ignore-glob":"_f_fossil",".front-commerce.js":"_f_frontcommerce","front-commerce.config.ts":"_f_frontcommerce","funding.yml":"_f_funding","fuse.js":"_f_fusebox","gatsby-browser.js":"_f_gatsby","gatsby-browser.ts":"_f_gatsby","gatsby-browser.tsx":"_f_gatsby","gatsby-ssr.js":"_f_gatsby","gatsby-ssr.ts":"_f_gatsby","gatsby-ssr.tsx":"_f_gatsby","gatsby-config.js":"_f_gatsby","gatsby-config.ts":"_f_gatsby","gatsby-config.mjs":"_f_gatsby","gatsby-node.js":"_f_gatsby","gatsby-node.ts":"_f_gatsby","gatsby-node.mjs":"_f_gatsby",".gcloudignore":"_f_gcloud","gemini.md":"_f_gemini","GEMINI.md":"_f_gemini",".git":"_f_git",".gitattributes":"_f_git",".gitconfig":"_f_git",".gitignore":"_f_git",".gitmessage":"_f_git",".gitmodules":"_f_git",".gitkeep":"_f_git",".git-blame-ignore-revs":"_f_git",".mailmap":"_f_git",".issuetracker":"_f_git",".gitlab-ci.yml":"_f_gitlab",".gitpod.yaml":"_f_gitpod",".gitpod.yml":"_f_gitpod","gitpod.yaml":"_f_gitpod","gitpod.yml":"_f_gitpod","gleam.toml":"_f_gleamconfig","glide.yml":"_f_glide",".glitterrc":"_f_glitter","go.sum":"_f_go_package","go.mod":"_f_go_package","go.work":"_f_go_work","go.work.sum":"_f_go_work",".gqlconfig":"_f_graphql",".graphqlconfig":"_f_graphql_config",".graphqlconfig.yml":"_f_graphql_config",".graphqlconfig.yaml":"_f_graphql_config","greenkeeper.json":"_f_greenkeeper","gridsome.config.js":"_f_gridsome","gridsome.config.ts":"_f_gridsome","gridsome.server.js":"_f_gridsome","gridsome.server.ts":"_f_gridsome","gridsome.client.js":"_f_gridsome","gridsome.client.ts":"_f_gridsome","gruntfile.js":"_f_grunt","gruntfile.cjs":"_f_grunt","gruntfile.coffee":"_f_grunt","gruntfile.ts":"_f_grunt","gruntfile.babel.js":"_f_grunt","gruntfile.babel.cjs":"_f_grunt","gruntfile.babel.coffee":"_f_grunt","gruntfile.babel.ts":"_f_grunt","gulpfile.js":"_f_gulp","gulpfile.coffee":"_f_gulp","gulpfile.ts":"_f_gulp","gulpfile.mjs":"_f_gulp","gulpfile.esm.js":"_f_gulp","gulpfile.esm.coffee":"_f_gulp","gulpfile.esm.ts":"_f_gulp","gulpfile.esm.mjs":"_f_gulp","gulpfile.babel.js":"_f_gulp","gulpfile.babel.coffee":"_f_gulp","gulpfile.babel.ts":"_f_gulp","gulpfile.babel.mjs":"_f_gulp","hardhat.config.cjs":"_f_hardhat","hardhat.config.js":"_f_hardhat","hardhat.config.ts":"_f_hardhat","haxelib.json":"_f_haxe","checkstyle.json":"_f_haxecheckstyle",".p4ignore":"_f_helix","chart.lock":"_f_helm","chart.yaml":"_f_helm","histoire.config.ts":"_f_histoire","histoire.config.js":"_f_histoire",".histoire.ts":"_f_histoire",".histoire.js":"_f_histoire","horusec-config.json":"_f_horusec",".htmlhintrc":"_f_htmlhint",".htmlvalidateignore":"_f_htmlvalidate",".htmlvalidate.js":"_f_htmlvalidate",".htmlvalidate.cjs":"_f_htmlvalidate",".htmlvalidate.json":"_f_htmlvalidate","hugo.json":"_f_hugo","hugo.toml":"_f_hugo","hugo.yaml":"_f_hugo",".hugo_build.lock":"_f_hugo","humans.txt":"_f_humanstxt",".huskyrc":"_f_husky","husky.config.js":"_f_husky",".huskyrc.js":"_f_husky",".huskyrc.json":"_f_husky",".huskyrc.yaml":"_f_husky",".huskyrc.yml":"_f_husky","ionic.project":"_f_ionic","ionic.config.json":"_f_ionic","jakefile":"_f_jake","jakefile.js":"_f_jake","jasmine.json":"_f_jasmine",".nojekyll":"_f_jekyll","jest.json":"_f_jest","jest.config.babel.js":"_f_jest",".jestrc":"_f_jest",".jestrc.js":"_f_jest",".jestrc.json":"_f_jest","jest.config.js":"_f_jest","jest.config.cjs":"_f_jest","jest.config.mjs":"_f_jest","jest.config.json":"_f_jest","jest.config.ts":"_f_jest","jest.config.cts":"_f_jest","jest.config.mts":"_f_jest","jest.config.base.js":"_f_jest","jest.config.base.cjs":"_f_jest","jest.config.base.mjs":"_f_jest","jest.config.base.json":"_f_jest","jest.config.base.ts":"_f_jest","jest.config.base.cts":"_f_jest","jest.config.base.mts":"_f_jest","jest.config.common.js":"_f_jest","jest.config.common.cjs":"_f_jest","jest.config.common.mjs":"_f_jest","jest.config.common.json":"_f_jest","jest.config.common.ts":"_f_jest","jest.config.common.cts":"_f_jest","jest.config.common.mts":"_f_jest","jest.config.e2e.js":"_f_jest","jest.config.e2e.cjs":"_f_jest","jest.config.e2e.mjs":"_f_jest","jest.config.e2e.json":"_f_jest","jest.config.e2e.ts":"_f_jest","jest.config.e2e.cts":"_f_jest","jest.config.e2e.mts":"_f_jest","jest.config.int.js":"_f_jest","jest.config.int.cjs":"_f_jest","jest.config.int.mjs":"_f_jest","jest.config.int.json":"_f_jest","jest.config.int.ts":"_f_jest","jest.config.int.cts":"_f_jest","jest.config.int.mts":"_f_jest","jest.config.integration.js":"_f_jest","jest.config.integration.cjs":"_f_jest","jest.config.integration.mjs":"_f_jest","jest.config.integration.json":"_f_jest","jest.config.integration.ts":"_f_jest","jest.config.integration.cts":"_f_jest","jest.config.integration.mts":"_f_jest","jest.config.unit.js":"_f_jest","jest.config.unit.cjs":"_f_jest","jest.config.unit.mjs":"_f_jest","jest.config.unit.json":"_f_jest","jest.config.unit.ts":"_f_jest","jest.config.unit.cts":"_f_jest","jest.config.unit.mts":"_f_jest",".jpmignore":"_f_jpm",".jsbeautifyrc":"_f_jsbeautify","jsbeautifyrc":"_f_jsbeautify",".jsbeautify":"_f_jsbeautify","jsbeautify":"_f_jsbeautify","jsconfig.json":"_f_jsconfig",".jscpd.json":"_f_jscpd","jscpd-report.xml":"_f_jscpd","jscpd-report.json":"_f_jscpd","jscpd-report.html":"_f_jscpd",".jshintrc":"_f_jshint",".jshintignore":"_f_jshint","jsr.json":"_f_jsr","jsr.jsonc":"_f_jsr","karma.conf.js":"_f_karma","karma.conf.coffee":"_f_karma","karma.conf.ts":"_f_karma",".kitchen.yml":"_f_kitchenci","kitchen.yml":"_f_kitchenci",".kiteignore":"_f_kite","knexfile.js":"_f_knex","knexfile.ts":"_f_knex","knexfile.coffee":"_f_knex","knexfile.ls":"_f_knex","knexfile.eg":"_f_knex","knip.json":"_f_knip","knip.jsonc":"_f_knip",".knip.json":"_f_knip",".knip.jsonc":"_f_knip","knip.ts":"_f_knip","knip.js":"_f_knip","knip.config.ts":"_f_knip","knip.config.js":"_f_knip","language-configuration.json":"_f_language_configuration","layout.html":"_f_layout","layout.htm":"_f_layout","lakefile.lean":"_f_leanconfig","lakefile.toml":"_f_leanconfig","lake-manifest.json":"_f_leanconfig","lean-toolchain":"_f_leanconfig","lefthook.json":"_f_lefthook","lefthook.toml":"_f_lefthook","lefthook.yaml":"_f_lefthook","lefthook.yml":"_f_lefthook","lefthook-local.json":"_f_lefthook","lefthook-local.toml":"_f_lefthook","lefthook-local.yaml":"_f_lefthook","lefthook-local.yml":"_f_lefthook",".lefthook.json":"_f_lefthook",".lefthook.toml":"_f_lefthook",".lefthook.yaml":"_f_lefthook",".lefthook.yml":"_f_lefthook",".lefthook-local.json":"_f_lefthook",".lefthook-local.toml":"_f_lefthook",".lefthook-local.yaml":"_f_lefthook",".lefthook-local.yml":"_f_lefthook","lerna.json":"_f_lerna","liara.json":"_f_liara",".liaraignore":"_f_liara","licence":"_f_license","LICENCE":"_f_license","license":"_f_license","LICENSE":"_f_license","copying":"_f_license","copying.lesser":"_f_license","LICENSE-MIT":"_f_license","license-mit":"_f_license","LICENSE-APACHE":"_f_license","license-apache":"_f_license","LICENSE-GPL":"_f_license","license-gpl":"_f_license","LICENSE-AGPL":"_f_license","license-agpl":"_f_license","LICENCE.md":"_f_license","LICENCE.rst":"_f_license","LICENCE.txt":"_f_license","licence.md":"_f_license","licence.rst":"_f_license","licence.txt":"_f_license","LICENSE.md":"_f_license","LICENSE.rst":"_f_license","LICENSE.txt":"_f_license","license.md":"_f_license","license.rst":"_f_license","license.txt":"_f_license","copying.md":"_f_license","copying.rst":"_f_license","copying.txt":"_f_license","copying.lesser.md":"_f_license","copying.lesser.rst":"_f_license","copying.lesser.txt":"_f_license","LICENSE-MIT.md":"_f_license","LICENSE-MIT.rst":"_f_license","LICENSE-MIT.txt":"_f_license","license-mit.md":"_f_license","license-mit.rst":"_f_license","license-mit.txt":"_f_license","LICENSE-APACHE.md":"_f_license","LICENSE-APACHE.rst":"_f_license","LICENSE-APACHE.txt":"_f_license","license-apache.md":"_f_license","license-apache.rst":"_f_license","license-apache.txt":"_f_license","LICENSE-GPL.md":"_f_license","LICENSE-GPL.rst":"_f_license","LICENSE-GPL.txt":"_f_license","license-gpl.md":"_f_license","license-gpl.rst":"_f_license","license-gpl.txt":"_f_license","LICENSE-AGPL.md":"_f_license","LICENSE-AGPL.rst":"_f_license","LICENSE-AGPL.txt":"_f_license","license-agpl.md":"_f_license","license-agpl.rst":"_f_license","license-agpl.txt":"_f_license",".licrc":"_f_licensebat","budget.json":"_f_lighthouse","budgets.json":"_f_lighthouse",".lighthouserc.cjs":"_f_lighthouse",".lighthouserc.js":"_f_lighthouse",".lighthouserc.json":"_f_lighthouse",".lighthouserc.yaml":"_f_lighthouse",".lighthouserc.yml":"_f_lighthouse","include.xml":"_f_lime",".lintstagedrc":"_f_lintstagedrc",".lintstagedrc.json":"_f_lintstagedrc",".lintstagedrc.yaml":"_f_lintstagedrc",".lintstagedrc.yml":"_f_lintstagedrc",".lintstagedrc.mjs":"_f_lintstagedrc",".lintstagedrc.mts":"_f_lintstagedrc",".lintstagedrc.js":"_f_lintstagedrc",".lintstagedrc.ts":"_f_lintstagedrc",".lintstagedrc.cjs":"_f_lintstagedrc",".lintstagedrc.cts":"_f_lintstagedrc","lint-staged.config.mjs":"_f_lintstagedrc","lint-staged.config.mts":"_f_lintstagedrc","lint-staged.config.js":"_f_lintstagedrc","lint-staged.config.ts":"_f_lintstagedrc","lint-staged.config.cjs":"_f_lintstagedrc","lint-staged.config.cts":"_f_lintstagedrc","lychee.toml":"_f_lychee","mailing.config.json":"_f_mailing","manifest":"_f_manifest","manifest.bak":"_f_manifest_bak","manifest.skip":"_f_manifest_skip",".markdownlintrc":"_f_markdownlint",".markdownlint.json":"_f_markdownlint",".markdownlint.jsonc":"_f_markdownlint",".markdownlint.yml":"_f_markdownlint",".markdownlint.yaml":"_f_markdownlint",".markdownlint.cjs":"_f_markdownlint",".markdownlint-cli2.json":"_f_markdownlint",".markdownlint-cli2.jsonc":"_f_markdownlint",".markdownlint-cli2.yml":"_f_markdownlint",".markdownlint-cli2.yaml":"_f_markdownlint",".markdownlint-cli2.cjs":"_f_markdownlint",".markdownlintignore":"_f_markdownlint_ignore",".markuplintrc":"_f_markuplint",".markuplintrc.json":"_f_markuplint",".markuplintrc.yaml":"_f_markuplint",".markuplintrc.yml":"_f_markuplint",".markuplintrc.js":"_f_markuplint",".markuplintrc.cjs":"_f_markuplint",".markuplintrc.mjs":"_f_markuplint",".markuplintrc.ts":"_f_markuplint","markuplint.config.json":"_f_markuplint","markuplint.config.yaml":"_f_markuplint","markuplint.config.yml":"_f_markuplint","markuplint.config.js":"_f_markuplint","markuplint.config.cjs":"_f_markuplint","markuplint.config.mjs":"_f_markuplint","markuplint.config.ts":"_f_markuplint","master.js":"_f_master-co","master.ts":"_f_master-co","master.mjs":"_f_master-co","master.json":"_f_master-co","master.css.js":"_f_master-co","master.css.ts":"_f_master-co","master.css.mjs":"_f_master-co","master.css.json":"_f_master-co","maven.config":"_f_maven","pom.xml":"_f_maven","extensions.xml":"_f_maven","settings.xml":"_f_maven","mcp.json":"_f_mcp","mdx-components.cjs":"_f_mdx-components","mdx-components.cts":"_f_mdx-components","mdx-components.js":"_f_mdx-components","mdx-components.jsx":"_f_mdx-components","mdx-components.mjs":"_f_mdx-components","mdx-components.mts":"_f_mdx-components","mdx-components.ts":"_f_mdx-components","mdx-components.tsx":"_f_mdx-components",".mdxlintrc":"_f_mdxlint",".mdxlintignore":"_f_mdxlint",".mdxlintrc.cjs":"_f_mdxlint",".mdxlintrc.js":"_f_mdxlint",".mdxlintrc.json":"_f_mdxlint",".mdxlintrc.mjs":"_f_mdxlint",".mdxlintrc.yml":"_f_mdxlint",".mdxlintrc.yaml":"_f_mdxlint",".hgignore":"_f_mercurial","metro.json":"_f_metro","metro.js":"_f_metro","metro.cjs":"_f_metro","metro.mjs":"_f_metro","metro.ts":"_f_metro","metro.cts":"_f_metro","metro.mts":"_f_metro","metro.config.json":"_f_metro","metro.config.js":"_f_metro","metro.config.cjs":"_f_metro","metro.config.mjs":"_f_metro","metro.config.ts":"_f_metro","metro.config.cts":"_f_metro","metro.config.mts":"_f_metro","mikro-orm.config.js":"_f_mikro_orm","mikro-orm.config.ts":"_f_mikro_orm","mise.toml":"_f_mise",".mise.toml":"_f_mise","mise.local.toml":"_f_mise",".mise.local.toml":"_f_mise","mocha.opts":"_f_mocha",".mocharc.cjs":"_f_mocha",".mocharc.js":"_f_mocha",".mocharc.json":"_f_mocha",".mocharc.jsonc":"_f_mocha",".mocharc.mjs":"_f_mocha",".mocharc.yaml":"_f_mocha",".mocharc.yml":"_f_mocha","modernizr":"_f_modernizr","modernizr.js":"_f_modernizr","modernizrrc.js":"_f_modernizr",".modernizr.js":"_f_modernizr",".modernizrrc.js":"_f_modernizr","modern.config.js":"_f_modernjs","modern.config.mjs":"_f_modernjs","modern.config.ts":"_f_modernjs","modern.runtime.js":"_f_modernjs","modern.runtime.mjs":"_f_modernjs","modern.runtime.ts":"_f_modernjs","modern.server.js":"_f_modernjs","modern.server.mjs":"_f_modernjs","modern.server.ts":"_f_modernjs","moleculer.config.js":"_f_moleculer","moleculer.config.json":"_f_moleculer","moleculer.config.ts":"_f_moleculer",".mtn-ignore":"_f_monotone","motif.json":"_f_motif","mockServiceWorker.js":"_f_msw","mypy.ini":"_f_mypy",".mypy.ini":"_f_mypy",".nano-staged.js":"_f_nanostaged","nano-staged.js":"_f_nanostaged",".nano-staged.cjs":"_f_nanostaged","nano-staged.cjs":"_f_nanostaged",".nano-staged.mjs":"_f_nanostaged","nano-staged.mjs":"_f_nanostaged",".nano-staged.json":"_f_nanostaged","nano-staged.json":"_f_nanostaged",".nanostagedrc":"_f_nanostaged",".nest-cli.json":"_f_nestjs","nest-cli.json":"_f_nestjs","nestconfig.json":"_f_nestjs",".nestconfig.json":"_f_nestjs","netlify.toml":"_f_netlify","next.config.js":"_f_next","next.config.cjs":"_f_next","next.config.mjs":"_f_next","next.config.ts":"_f_next",".nf":"_f_nextflow","nginx.conf":"_f_nginx","build.ninja":"_f_ninja","flake.lock":"_f_nix",".node-version":"_f_node",".nvmrc":"_f_node","node.config.json":"_f_node","nodemon.json":"_f_nodemon",".npmignore":"_f_npm",".npmrc":"_f_npm",".package-lock.json":"_f_npm","package.json":"_f_npm","package-lock.json":"_f_npm","npm-shrinkwrap.json":"_f_npm",".npmpackagejsonlintrc":"_f_npmpackagejsonlint",".npmpackagejsonlintrc.cjs":"_f_npmpackagejsonlint",".npmpackagejsonlintrc.js":"_f_npmpackagejsonlint",".npmpackagejsonlintrc.json":"_f_npmpackagejsonlint",".npmpackagejsonlintrc.yaml":"_f_npmpackagejsonlint",".npmpackagejsonlintrc.yml":"_f_npmpackagejsonlint",".npmpackagejsonlintrc.mjs":"_f_npmpackagejsonlint",".npmpackagejsonlintignore":"_f_npmpackagejsonlint","npmpackagejsonlint.config.cjs":"_f_npmpackagejsonlint","npmpackagejsonlint.config.js":"_f_npmpackagejsonlint","npmpackagejsonlint.config.mjs":"_f_npmpackagejsonlint",".nsrirc":"_f_nsri",".nsriignore":"_f_nsri","nsri.config.js":"_f_nsri",".nsrirc.js":"_f_nsri",".nsrirc.json":"_f_nsri",".nsrirc.yaml":"_f_nsri",".nsrirc.yml":"_f_nsri",".integrity.json":"_f_nsri-integrity",".nuxtignore":"_f_nuxt",".nuxtrc":"_f_nuxt","nuxt.config.js":"_f_nuxt","nuxt.config.ts":"_f_nuxt","nuxt.config.mjs":"_f_nuxt","nuxt.js":"_f_nuxt","nuxt.ts":"_f_nuxt","nuxt.mjs":"_f_nuxt",".nxignore":"_f_nx","nx.json":"_f_nx",".nycrc":"_f_nyc",".nycrc.json":"_f_nyc",".objidconfig":"_f_objidconfig",".merlin":"_f_ocaml","opencode.json":"_f_opencode","opencode.jsonc":"_f_opencode",".opentofu-version":"_f_opentofu","orval.config.js":"_f_orval","orval.config.ts":"_f_orval","orval.config.mjs":"_f_orval",".oxlintignore":"_f_oxc",".oxlintrc.json":"_f_oxc",".oxlintrc.jsonc":"_f_oxc","oxlint.config.ts":"_f_oxc",".oxfmtrc.json":"_f_oxc",".oxfmtrc.jsonc":"_f_oxc","oxfmt.config.ts":"_f_oxc",".packshiprc":"_f_packship",".packshiprc.json":"_f_packship",".packshiprc.js":"_f_packship",".packshiprc.ts":"_f_packship","packship.config.js":"_f_packship","packship.config.ts":"_f_packship","packship.config.mjs":"_f_packship","packship.config.mts":"_f_packship","packship.config.json":"_f_packship","paket.dependencies":"_f_paket","paket.lock":"_f_paket","paket.references":"_f_paket","paket.template":"_f_paket","paket.local":"_f_paket","panda.config.js":"_f_pandacss","panda.config.mjs":"_f_pandacss","panda.config.ts":"_f_pandacss",".parcelrc":"_f_parcel",".pdm-python":"_f_pdm","pdm.lock":"_f_pdm","pdm.toml":"_f_pdm","peeky.config.ts":"_f_peeky","peeky.config.js":"_f_peeky","peeky.config.mjs":"_f_peeky",".php-cs-fixer.php":"_f_phpcsfixer",".php-cs-fixer.dist.php":"_f_phpcsfixer",".php_cs":"_f_phpcsfixer",".php_cs.dist":"_f_phpcsfixer","phpstan.neon":"_f_phpstan","phpstan.dist.neon":"_f_phpstan","phpunit":"_f_phpunit","phpunit.xml":"_f_phpunit","phpunit.xml.dist":"_f_phpunit",".phraseapp.yml":"_f_phraseapp","pipfile":"_f_pip","pipfile.lock":"_f_pip","pixi.lock":"_f_pixi","pixi.toml":"_f_pixi","platformio.ini":"_f_platformio","playwright.config.js":"_f_playwright","playwright.config.ts":"_f_playwright","playwright.config.mts":"_f_playwright","playwright.config.mjs":"_f_playwright","playwright.config.cts":"_f_playwright","playwright.config.cjs":"_f_playwright","ecosystem.config.js":"_f_pm2","ecosystem.config.cjs":"_f_pm2","ecosystem.config.json":"_f_pm2","ecosystem.config.yaml":"_f_pm2","ecosystem.config.yml":"_f_pm2",".pnpmfile.cjs":"_f_pnpm","pnpmfile.js":"_f_pnpm","pnpm-lock.yaml":"_f_pnpm","pnpm-workspace.yaml":"_f_pnpm","poetry.lock":"_f_poetry",".postcssrc":"_f_postcssconfig",".postcssrc.json":"_f_postcssconfig",".postcssrc.yaml":"_f_postcssconfig",".postcssrc.yml":"_f_postcssconfig",".postcssrc.ts":"_f_postcssconfig",".postcssrc.cts":"_f_postcssconfig",".postcssrc.mts":"_f_postcssconfig",".postcssrc.js":"_f_postcssconfig",".postcssrc.cjs":"_f_postcssconfig",".postcssrc.mjs":"_f_postcssconfig","postcss.config.ts":"_f_postcssconfig","postcss.config.cts":"_f_postcssconfig","postcss.config.mts":"_f_postcssconfig","postcss.config.js":"_f_postcssconfig","postcss.config.cjs":"_f_postcssconfig","postcss.config.mjs":"_f_postcssconfig","preact.config.js":"_f_preact",".pre-commit-config.yaml":"_f_precommit",".prettierrc":"_f_prettier",".prettierignore":"_f_prettier","prettier.config.js":"_f_prettier","prettier.config.cjs":"_f_prettier","prettier.config.mjs":"_f_prettier","prettier.config.ts":"_f_prettier","prettier.config.coffee":"_f_prettier",".prettierrc.js":"_f_prettier",".prettierrc.cjs":"_f_prettier",".prettierrc.mjs":"_f_prettier",".prettierrc.json":"_f_prettier",".prettierrc.json5":"_f_prettier",".prettierrc.yml":"_f_prettier",".prettierrc.yaml":"_f_prettier",".prettierrc.toml":"_f_prettier","prisma.config.js":"_f_prismaconfig","prisma.config.ts":"_f_prismaconfig","procfile":"_f_procfile","protractor.conf.js":"_f_protractor","protractor.conf.coffee":"_f_protractor","protractor.conf.ts":"_f_protractor","publiccode.yml":"_f_publiccode",".jade-lintrc":"_f_pug",".pug-lintrc":"_f_pug",".jade-lint.json":"_f_pug",".pug-lintrc.js":"_f_pug",".pug-lintrc.json":"_f_pug","Pulumi.yaml":"_f_pulumi","Pulumi.yml":"_f_pulumi","Pulumi.dev.yaml":"_f_pulumi","Pulumi.dev.yml":"_f_pulumi","Pulumi.prod.yaml":"_f_pulumi","Pulumi.prod.yml":"_f_pulumi","purgecss.config.js":"_f_purgecss",".python-version":"_f_pyenv","pyproject.toml":"_f_pypi","pytest.ini":"_f_pytest",".pytest.ini":"_f_pytest","pytest.toml":"_f_pytest",".pytest.toml":"_f_pytest",".pdbrc":"_f_pythonconfig",".pdbrc.py":"_f_pythonconfig",".python_history":"_f_pythonconfig","conf.py":"_f_pythonconfig","config.py":"_f_pythonconfig","setup.py":"_f_pythonconfig","settings.py":"_f_pythonconfig","py.typed":"_f_pytyped",".pyup":"_f_pyup",".pyup.yml":"_f_pyup","qmldir":"_f_qmldir","qrc":"_f_qrc","quasar.conf.js":"_f_quasar","quasar.config.js":"_f_quasar","quasar.config.mjs":"_f_quasar","quasar.config.cjs":"_f_quasar","quasar.config.ts":"_f_quasar",".quokka":"_f_quokka","railway.toml":"_f_railway","railway.json":"_f_railway","Rakefile":"_f_rake","razzle.config.js":"_f_razzle","react-router.config.js":"_f_reactrouter","react-router.config.ts":"_f_reactrouter",".readthedocs.yaml":"_f_readthedocs",".rehyperc":"_f_rehype",".rehypeignore":"_f_rehype",".rehyperc.cjs":"_f_rehype",".rehyperc.js":"_f_rehype",".rehyperc.json":"_f_rehype",".rehyperc.mjs":"_f_rehype",".rehyperc.yml":"_f_rehype",".rehyperc.yaml":"_f_rehype",".remarkrc":"_f_remark",".remarkignore":"_f_remark",".remarkrc.cjs":"_f_remark",".remarkrc.js":"_f_remark",".remarkrc.json":"_f_remark",".remarkrc.mjs":"_f_remark",".remarkrc.yml":"_f_remark",".remarkrc.yaml":"_f_remark","render.yaml":"_f_render",".renovaterc":"_f_renovate",".renovaterc.json":"_f_renovate","renovate.json":"_f_renovate","renovate.json5":"_f_renovate",".replit":"_f_replit","replit.nix":"_f_replit",".retextrc":"_f_retext",".retextignore":"_f_retext",".retextrc.cjs":"_f_retext",".retextrc.js":"_f_retext",".retextrc.json":"_f_retext",".retextrc.mjs":"_f_retext",".retextrc.yml":"_f_retext",".retextrc.yaml":"_f_retext","robots.txt":"_f_robots","rolldown.config.js":"_f_rolldown","rolldown.config.cjs":"_f_rolldown","rolldown.config.mjs":"_f_rolldown","rolldown.config.coffee":"_f_rolldown","rolldown.config.ts":"_f_rolldown","rolldown.config.mts":"_f_rolldown","rolldown.config.cts":"_f_rolldown","rolldown.config.common.js":"_f_rolldown","rolldown.config.common.cjs":"_f_rolldown","rolldown.config.common.mjs":"_f_rolldown","rolldown.config.common.coffee":"_f_rolldown","rolldown.config.common.ts":"_f_rolldown","rolldown.config.common.mts":"_f_rolldown","rolldown.config.common.cts":"_f_rolldown","rolldown.config.dev.js":"_f_rolldown","rolldown.config.dev.cjs":"_f_rolldown","rolldown.config.dev.mjs":"_f_rolldown","rolldown.config.dev.coffee":"_f_rolldown","rolldown.config.dev.ts":"_f_rolldown","rolldown.config.dev.mts":"_f_rolldown","rolldown.config.dev.cts":"_f_rolldown","rolldown.config.prod.js":"_f_rolldown","rolldown.config.prod.cjs":"_f_rolldown","rolldown.config.prod.mjs":"_f_rolldown","rolldown.config.prod.coffee":"_f_rolldown","rolldown.config.prod.ts":"_f_rolldown","rolldown.config.prod.mts":"_f_rolldown","rolldown.config.prod.cts":"_f_rolldown","rollup.config.js":"_f_rollup","rollup.config.cjs":"_f_rollup","rollup.config.mjs":"_f_rollup","rollup.config.coffee":"_f_rollup","rollup.config.ts":"_f_rollup","rollup.config.common.js":"_f_rollup","rollup.config.common.cjs":"_f_rollup","rollup.config.common.mjs":"_f_rollup","rollup.config.common.coffee":"_f_rollup","rollup.config.common.ts":"_f_rollup","rollup.config.dev.js":"_f_rollup","rollup.config.dev.cjs":"_f_rollup","rollup.config.dev.mjs":"_f_rollup","rollup.config.dev.coffee":"_f_rollup","rollup.config.dev.ts":"_f_rollup","rollup.config.prod.js":"_f_rollup","rollup.config.prod.cjs":"_f_rollup","rollup.config.prod.mjs":"_f_rollup","rollup.config.prod.coffee":"_f_rollup","rollup.config.prod.ts":"_f_rollup","rome.json":"_f_rome",".rspec":"_f_rspec",".rubocop.yml":"_f_rubocop",".rubocop_todo.yml":"_f_rubocop",".ruby-version":"_f_ruby","ruff.toml":"_f_ruff",".ruff.toml":"_f_ruff","rust-toolchain":"_f_rust_toolchain","rust-toolchain.toml":"_f_rust_toolchain",".slshrc":"_f_s-lang",".isisrc":"_f_s-lang",".jedrc":"_f_s-lang",".sailsrc":"_f_sails",".sapphirerc.json":"_f_sapphire_framework_cli",".sapphirerc.yml":"_f_sapphire_framework_cli",".sapphirerc":"_f_sapphire_framework_cli","seedkit.config.js":"_f_seedkit","seedkit.config.ts":"_f_seedkit","seedkit.config.mjs":"_f_seedkit",".sentryclirc":"_f_sentry",".sequelizerc":"_f_sequelize",".sequelizerc.js":"_f_sequelize",".sequelizerc.json":"_f_sequelize","serverless.yml":"_f_serverless","serverless.json":"_f_serverless","serverless.js":"_f_serverless","serverless.ts":"_f_serverless","components.json":"_f_shadcn",".shellcheckrc":"_f_shellcheck","Shuttle.toml":"_f_shuttle","sitemap.xml":"_f_sitemap","sitemap.rss":"_f_sitemap","sitemap.txt":"_f_sitemap","sitemap.atom":"_f_sitemap","slash-up.config.js":"_f_slashup","smithery.yaml":"_f_smithery","snapcraft.yaml":"_f_snapcraft","snaplet.config.js":"_f_snaplet","snaplet.config.ts":"_f_snaplet",".snyk":"_f_snyk",".solidarity":"_f_solidarity",".solidarity.json":"_f_solidarity","spin.toml":"_f_spin","sst-env.d.ts":"_f_sst","sst-env.ts":"_f_sst","sst-env.js":"_f_sst","sst.config.d.ts":"_f_sst","sst.config.ts":"_f_sst","sst.config.js":"_f_sst",".stackblitzrc":"_f_stackblitz","stryker.conf.mjs":"_f_stryker","stryker.conf.cjs":"_f_stryker","stryker.conf.js":"_f_stryker","stryker.conf.conf":"_f_stryker","stryker.conf.json":"_f_stryker",".stryker.conf.mjs":"_f_stryker",".stryker.conf.cjs":"_f_stryker",".stryker.conf.js":"_f_stryker",".stryker.conf.conf":"_f_stryker",".stryker.conf.json":"_f_stryker","stryker.config.mjs":"_f_stryker","stryker.config.cjs":"_f_stryker","stryker.config.js":"_f_stryker","stryker.config.conf":"_f_stryker","stryker.config.json":"_f_stryker",".stryker.config.mjs":"_f_stryker",".stryker.config.cjs":"_f_stryker",".stryker.config.js":"_f_stryker",".stryker.config.conf":"_f_stryker",".stryker.config.json":"_f_stryker","stryker-config.mjs":"_f_stryker","stryker-config.cjs":"_f_stryker","stryker-config.js":"_f_stryker","stryker-config.conf":"_f_stryker","stryker-config.json":"_f_stryker","stryker4s.mjs":"_f_stryker","stryker4s.cjs":"_f_stryker","stryker4s.js":"_f_stryker","stryker4s.conf":"_f_stryker","stryker4s.json":"_f_stryker",".stylelintrc":"_f_stylelint",".stylelintignore":"_f_stylelint",".stylelintcache":"_f_stylelint","stylelint.config.js":"_f_stylelint","stylelint.config.json":"_f_stylelint","stylelint.config.yaml":"_f_stylelint","stylelint.config.yml":"_f_stylelint","stylelint.config.ts":"_f_stylelint","stylelint.config.cjs":"_f_stylelint","stylelint.config.mjs":"_f_stylelint",".stylelintrc.js":"_f_stylelint",".stylelintrc.json":"_f_stylelint",".stylelintrc.yaml":"_f_stylelint",".stylelintrc.yml":"_f_stylelint",".stylelintrc.ts":"_f_stylelint",".stylelintrc.cjs":"_f_stylelint",".stylelintrc.mjs":"_f_stylelint",".stylish-haskell.yaml":"_f_stylish_haskell",".svnignore":"_f_subversion","svelte.config.js":"_f_svelteconfig","svelte.config.ts":"_f_svelteconfig","svgo.config.cjs":"_f_svgo","svgo.config.js":"_f_svgo","svgo.config.mjs":"_f_svgo",".swcrc":"_f_swc","package.pins":"_f_swift","symfony.lock":"_f_symfony",".syncpackrc":"_f_syncpack",".syncpackrc.json":"_f_syncpack",".syncpackrc.yaml":"_f_syncpack",".syncpackrc.yml":"_f_syncpack",".syncpackrc.js":"_f_syncpack",".syncpackrc.ts":"_f_syncpack",".syncpackrc.mjs":"_f_syncpack",".syncpackrc.cjs":"_f_syncpack","syncpack.config.js":"_f_syncpack","syncpack.config.ts":"_f_syncpack","syncpack.config.mjs":"_f_syncpack","syncpack.config.cjs":"_f_syncpack","tailwind.js":"_f_tailwind","tailwind.cjs":"_f_tailwind","tailwind.coffee":"_f_tailwind","tailwind.ts":"_f_tailwind","tailwind.json":"_f_tailwind","tailwind.mjs":"_f_tailwind","tailwind.config.js":"_f_tailwind","tailwind.config.cjs":"_f_tailwind","tailwind.config.coffee":"_f_tailwind","tailwind.config.ts":"_f_tailwind","tailwind.config.json":"_f_tailwind","tailwind.config.mjs":"_f_tailwind",".tailwind.js":"_f_tailwind",".tailwind.cjs":"_f_tailwind",".tailwind.coffee":"_f_tailwind",".tailwind.ts":"_f_tailwind",".tailwind.json":"_f_tailwind",".tailwind.mjs":"_f_tailwind",".tailwindrc.js":"_f_tailwind",".tailwindrc.cjs":"_f_tailwind",".tailwindrc.coffee":"_f_tailwind",".tailwindrc.ts":"_f_tailwind",".tailwindrc.json":"_f_tailwind",".tailwindrc.mjs":"_f_tailwind","tamagui.js":"_f_tamagui","tamagui.mjs":"_f_tamagui","tamagui.cjs":"_f_tamagui","tamagui.ts":"_f_tamagui","tamagui.mts":"_f_tamagui","tamagui.cts":"_f_tamagui","tamagui.config.js":"_f_tamagui","tamagui.config.mjs":"_f_tamagui","tamagui.config.cjs":"_f_tamagui","tamagui.config.ts":"_f_tamagui","tamagui.config.mts":"_f_tamagui","tamagui.config.cts":"_f_tamagui",".taplo.toml":"_f_taplo","taplo.toml":"_f_taplo","taskfile.yml":"_f_taskfile","taskfile.yaml":"_f_taskfile","taskfile.dist.yml":"_f_taskfile","taskfile.dist.yaml":"_f_taskfile","tauri.conf.json":"_f_tauri",".taurignore":"_f_tauri",".testcaferc.json":"_f_testcafe","testplane.conf.ts":"_f_testplane","testplane.conf.js":"_f_testplane","testplane.conf.cts":"_f_testplane","testplane.conf.cjs":"_f_testplane","testplane.config.ts":"_f_testplane","testplane.config.js":"_f_testplane","testplane.config.cts":"_f_testplane","testplane.config.cjs":"_f_testplane",".textlintrc":"_f_textlint",".textlintrc.js":"_f_textlint",".textlintrc.cjs":"_f_textlint",".textlintrc.json":"_f_textlint",".textlintrc.yml":"_f_textlint",".textlintrc.yaml":"_f_textlint",".textlintignore":"_f_textlint",".tfignore":"_f_tfs",".tiltignore":"_f_tiltfile",".tmux.conf":"_f_tmux","tox.ini":"_f_tox",".travis.yml":"_f_travis",".trivyignore":"_f_trivy","trivy.yaml":"_f_trivy","truffle-config.js":"_f_truffle","truffle-config.ts":"_f_truffle","trunk.yaml":"_f_trunk","tsconfig.json":"_f_tsconfig","tsconfig.app.json":"_f_tsconfig","tsconfig.base.json":"_f_tsconfig","tsconfig.build.json":"_f_tsconfig","tsconfig.cjs.json":"_f_tsconfig","tsconfig.common.json":"_f_tsconfig","tsconfig.debug.json":"_f_tsconfig","tsconfig.dev.json":"_f_tsconfig","tsconfig.development.json":"_f_tsconfig","tsconfig.e2e.json":"_f_tsconfig","tsconfig.eslint.json":"_f_tsconfig","tsconfig.esm.json":"_f_tsconfig","tsconfig.mjs.json":"_f_tsconfig","tsconfig.node.json":"_f_tsconfig","tsconfig.prod.json":"_f_tsconfig","tsconfig.production.json":"_f_tsconfig","tsconfig.release.json":"_f_tsconfig","tsconfig.server.json":"_f_tsconfig","tsconfig.spec.json":"_f_tsconfig","tsconfig.staging.json":"_f_tsconfig","tsconfig.test.json":"_f_tsconfig","tsconfig.types.json":"_f_tsconfig","tsconfig.lib.json":"_f_tsconfig","tsconfig.lib.prod.json":"_f_tsconfig","tsdoc.json":"_f_tsdoc","tsdown.config.ts":"_f_tsdown","tsdown.config.mts":"_f_tsdown","tsdown.config.cts":"_f_tsdown","tsdown.config.js":"_f_tsdown","tsdown.config.mjs":"_f_tsdown","tsdown.config.cjs":"_f_tsdown","tsdown.config.json":"_f_tsdown","tslint.json":"_f_tslint","tslint.yaml":"_f_tslint","tslint.yml":"_f_tslint","turbo.json":"_f_turbo","turbo.jsonc":"_f_turbo","microfrontends.json":"_f_turbo","microfrontends.jsonc":"_f_turbo","typedoc.cjs":"_f_typedoc","typedoc.js":"_f_typedoc","typedoc.json":"_f_typedoc","typedoc.jsonc":"_f_typedoc","typedoc.mjs":"_f_typedoc","typedoc.config.cjs":"_f_typedoc","typedoc.config.js":"_f_typedoc","typedoc.config.json":"_f_typedoc","typedoc.config.jsonc":"_f_typedoc","typedoc.config.mjs":"_f_typedoc",".unibeautifyrc":"_f_unibeautify","unibeautify.config.js":"_f_unibeautify",".unibeautifyrc.js":"_f_unibeautify",".unibeautifyrc.json":"_f_unibeautify",".unibeautifyrc.yaml":"_f_unibeautify",".unibeautifyrc.yml":"_f_unibeautify","unlicense":"_f_unlicense","unlicence":"_f_unlicense","UNLICENSE":"_f_unlicense","UNLICENCE":"_f_unlicense","unlicense.md":"_f_unlicense","unlicense.txt":"_f_unlicense","unlicence.md":"_f_unlicense","unlicence.txt":"_f_unlicense","UNLICENSE.md":"_f_unlicense","UNLICENSE.txt":"_f_unlicense","UNLICENCE.md":"_f_unlicense","UNLICENCE.txt":"_f_unlicense","uno.config.js":"_f_unocss","uno.config.mjs":"_f_unocss","uno.config.ts":"_f_unocss","uno.config.mts":"_f_unocss","unocss.config.js":"_f_unocss","unocss.config.mjs":"_f_unocss","unocss.config.ts":"_f_unocss","unocss.config.mts":"_f_unocss","uv.lock":"_f_uv","uv.toml":"_f_uv","vagrantfile":"_f_vagrant",".vale.ini":"_f_vale","vapor.yml":"_f_vapor","now.json":"_f_vercel",".nowignore":"_f_vercel","vercel.json":"_f_vercel",".vercelignore":"_f_vercel",".vimrc":"_f_vim",".gvimrc":"_f_vim","vite.config.js":"_f_vite","vite.config.mjs":"_f_vite","vite.config.ts":"_f_vite","vite.config.cjs":"_f_vite","vite.config.mts":"_f_vite","vite.config.cts":"_f_vite","vitest.config.js":"_f_vitest","vitest.config.mjs":"_f_vitest","vitest.config.ts":"_f_vitest","vitest.config.cjs":"_f_vitest","vitest.config.mts":"_f_vitest","vitest.config.cts":"_f_vitest","vitest.workspace.json":"_f_vitest","vitest.workspace.js":"_f_vitest","vitest.workspace.mjs":"_f_vitest","vitest.workspace.ts":"_f_vitest","vitest.workspace.cjs":"_f_vitest","vitest.workspace.mts":"_f_vitest","vitest.workspace.cts":"_f_vitest","vitest.projects.json":"_f_vitest","vitest.projects.js":"_f_vitest","vitest.projects.mjs":"_f_vitest","vitest.projects.ts":"_f_vitest","vitest.projects.cjs":"_f_vitest","vitest.projects.mts":"_f_vitest","vitest.projects.cts":"_f_vitest",".vscodeignore":"_f_vscode","launch.json":"_f_vscode","tasks.json":"_f_vscode","vscodeignore.json":"_f_vscode",".vscode-test.js":"_f_vscode_test",".vscode-test.json":"_f_vscode_test",".vscode-test.mjs":"_f_vscode_test",".vuerc":"_f_vueconfig","vue.config.js":"_f_vueconfig","vue.config.cjs":"_f_vueconfig","vue.config.mjs":"_f_vueconfig","wallaby.json":"_f_wallaby","wallaby.js":"_f_wallaby","wallaby.ts":"_f_wallaby","wallaby.coffee":"_f_wallaby","wallaby.conf.json":"_f_wallaby","wallaby.conf.js":"_f_wallaby","wallaby.conf.ts":"_f_wallaby","wallaby.conf.coffee":"_f_wallaby",".wallaby.json":"_f_wallaby",".wallaby.js":"_f_wallaby",".wallaby.ts":"_f_wallaby",".wallaby.coffee":"_f_wallaby",".wallaby.conf.json":"_f_wallaby",".wallaby.conf.js":"_f_wallaby",".wallaby.conf.ts":"_f_wallaby",".wallaby.conf.coffee":"_f_wallaby","wally.toml":"_f_wally","wally.lock":"_f_wally","warp.md":"_f_warp",".watchmanconfig":"_f_watchmanconfig","wdio.json":"_f_wdio","wdio.js":"_f_wdio","wdio.mjs":"_f_wdio","wdio.cjs":"_f_wdio","wdio.ts":"_f_wdio","wdio.mts":"_f_wdio","wdio.cts":"_f_wdio","wdio.conf.json":"_f_wdio","wdio.conf.js":"_f_wdio","wdio.conf.mjs":"_f_wdio","wdio.conf.cjs":"_f_wdio","wdio.conf.ts":"_f_wdio","wdio.conf.mts":"_f_wdio","wdio.conf.cts":"_f_wdio",".weblate":"_f_weblate",".weblate.ini":"_f_weblate","weblate":"_f_weblate","weblate.ini":"_f_weblate","webpack.base.conf.js":"_f_webpack","webpack.base.conf.cjs":"_f_webpack","webpack.base.conf.mjs":"_f_webpack","webpack.base.conf.coffee":"_f_webpack","webpack.base.conf.ts":"_f_webpack","webpack.common.js":"_f_webpack","webpack.common.cjs":"_f_webpack","webpack.common.mjs":"_f_webpack","webpack.common.coffee":"_f_webpack","webpack.common.ts":"_f_webpack","webpack.config.js":"_f_webpack","webpack.config.cjs":"_f_webpack","webpack.config.mjs":"_f_webpack","webpack.config.coffee":"_f_webpack","webpack.config.ts":"_f_webpack","webpack.config.base.js":"_f_webpack","webpack.config.base.cjs":"_f_webpack","webpack.config.base.mjs":"_f_webpack","webpack.config.base.coffee":"_f_webpack","webpack.config.base.ts":"_f_webpack","webpack.config.build.js":"_f_webpack","webpack.config.build.cjs":"_f_webpack","webpack.config.build.mjs":"_f_webpack","webpack.config.build.coffee":"_f_webpack","webpack.config.build.ts":"_f_webpack","webpack.config.common.js":"_f_webpack","webpack.config.common.cjs":"_f_webpack","webpack.config.common.mjs":"_f_webpack","webpack.config.common.coffee":"_f_webpack","webpack.config.common.ts":"_f_webpack","webpack.config.dev.js":"_f_webpack","webpack.config.dev.cjs":"_f_webpack","webpack.config.dev.mjs":"_f_webpack","webpack.config.dev.coffee":"_f_webpack","webpack.config.dev.ts":"_f_webpack","webpack.config.development.js":"_f_webpack","webpack.config.development.cjs":"_f_webpack","webpack.config.development.mjs":"_f_webpack","webpack.config.development.coffee":"_f_webpack","webpack.config.development.ts":"_f_webpack","webpack.config.staging.js":"_f_webpack","webpack.config.staging.cjs":"_f_webpack","webpack.config.staging.mjs":"_f_webpack","webpack.config.staging.coffee":"_f_webpack","webpack.config.staging.ts":"_f_webpack","webpack.config.test.js":"_f_webpack","webpack.config.test.cjs":"_f_webpack","webpack.config.test.mjs":"_f_webpack","webpack.config.test.coffee":"_f_webpack","webpack.config.test.ts":"_f_webpack","webpack.config.prod.js":"_f_webpack","webpack.config.prod.cjs":"_f_webpack","webpack.config.prod.mjs":"_f_webpack","webpack.config.prod.coffee":"_f_webpack","webpack.config.prod.ts":"_f_webpack","webpack.config.production.js":"_f_webpack","webpack.config.production.cjs":"_f_webpack","webpack.config.production.mjs":"_f_webpack","webpack.config.production.coffee":"_f_webpack","webpack.config.production.ts":"_f_webpack","webpack.config.babel.js":"_f_webpack","webpack.config.babel.cjs":"_f_webpack","webpack.config.babel.mjs":"_f_webpack","webpack.config.babel.coffee":"_f_webpack","webpack.config.babel.ts":"_f_webpack","webpack.config.base.babel.js":"_f_webpack","webpack.config.base.babel.cjs":"_f_webpack","webpack.config.base.babel.mjs":"_f_webpack","webpack.config.base.babel.coffee":"_f_webpack","webpack.config.base.babel.ts":"_f_webpack","webpack.config.common.babel.js":"_f_webpack","webpack.config.common.babel.cjs":"_f_webpack","webpack.config.common.babel.mjs":"_f_webpack","webpack.config.common.babel.coffee":"_f_webpack","webpack.config.common.babel.ts":"_f_webpack","webpack.config.dev.babel.js":"_f_webpack","webpack.config.dev.babel.cjs":"_f_webpack","webpack.config.dev.babel.mjs":"_f_webpack","webpack.config.dev.babel.coffee":"_f_webpack","webpack.config.dev.babel.ts":"_f_webpack","webpack.config.development.babel.js":"_f_webpack","webpack.config.development.babel.cjs":"_f_webpack","webpack.config.development.babel.mjs":"_f_webpack","webpack.config.development.babel.coffee":"_f_webpack","webpack.config.development.babel.ts":"_f_webpack","webpack.config.staging.babel.js":"_f_webpack","webpack.config.staging.babel.cjs":"_f_webpack","webpack.config.staging.babel.mjs":"_f_webpack","webpack.config.staging.babel.coffee":"_f_webpack","webpack.config.staging.babel.ts":"_f_webpack","webpack.config.test.babel.js":"_f_webpack","webpack.config.test.babel.cjs":"_f_webpack","webpack.config.test.babel.mjs":"_f_webpack","webpack.config.test.babel.coffee":"_f_webpack","webpack.config.test.babel.ts":"_f_webpack","webpack.config.prod.babel.js":"_f_webpack","webpack.config.prod.babel.cjs":"_f_webpack","webpack.config.prod.babel.mjs":"_f_webpack","webpack.config.prod.babel.coffee":"_f_webpack","webpack.config.prod.babel.ts":"_f_webpack","webpack.config.production.babel.js":"_f_webpack","webpack.config.production.babel.cjs":"_f_webpack","webpack.config.production.babel.mjs":"_f_webpack","webpack.config.production.babel.coffee":"_f_webpack","webpack.config.production.babel.ts":"_f_webpack","webpack.dev.js":"_f_webpack","webpack.dev.cjs":"_f_webpack","webpack.dev.mjs":"_f_webpack","webpack.dev.coffee":"_f_webpack","webpack.dev.ts":"_f_webpack","webpack.dev.conf.js":"_f_webpack","webpack.dev.conf.cjs":"_f_webpack","webpack.dev.conf.mjs":"_f_webpack","webpack.dev.conf.coffee":"_f_webpack","webpack.dev.conf.ts":"_f_webpack","webpack.local.js":"_f_webpack","webpack.local.cjs":"_f_webpack","webpack.local.mjs":"_f_webpack","webpack.local.coffee":"_f_webpack","webpack.local.ts":"_f_webpack","webpack.prod.js":"_f_webpack","webpack.prod.cjs":"_f_webpack","webpack.prod.mjs":"_f_webpack","webpack.prod.coffee":"_f_webpack","webpack.prod.ts":"_f_webpack","webpack.prod.conf.js":"_f_webpack","webpack.prod.conf.cjs":"_f_webpack","webpack.prod.conf.mjs":"_f_webpack","webpack.prod.conf.coffee":"_f_webpack","webpack.prod.conf.ts":"_f_webpack","webpack.main.config.js":"_f_webpack","webpack.main.config.cjs":"_f_webpack","webpack.main.config.mjs":"_f_webpack","webpack.main.config.coffee":"_f_webpack","webpack.main.config.ts":"_f_webpack","webpack.mix.js":"_f_webpack","webpack.mix.cjs":"_f_webpack","webpack.mix.mjs":"_f_webpack","webpack.mix.coffee":"_f_webpack","webpack.mix.ts":"_f_webpack","webpack.plugins.js":"_f_webpack","webpack.plugins.cjs":"_f_webpack","webpack.plugins.mjs":"_f_webpack","webpack.plugins.coffee":"_f_webpack","webpack.plugins.ts":"_f_webpack","webpack.renderer.config.js":"_f_webpack","webpack.renderer.config.cjs":"_f_webpack","webpack.renderer.config.mjs":"_f_webpack","webpack.renderer.config.coffee":"_f_webpack","webpack.renderer.config.ts":"_f_webpack","webpack.rules.js":"_f_webpack","webpack.rules.cjs":"_f_webpack","webpack.rules.mjs":"_f_webpack","webpack.rules.coffee":"_f_webpack","webpack.rules.ts":"_f_webpack","webpack.test.conf.js":"_f_webpack","webpack.test.conf.cjs":"_f_webpack","webpack.test.conf.mjs":"_f_webpack","webpack.test.conf.coffee":"_f_webpack","webpack.test.conf.ts":"_f_webpack","wercker.yml":"_f_wercker","windi.config.ts":"_f_windi","windi.config.js":"_f_windi","wpml-config.xml":"_f_wpml","wxt.config.js":"_f_wxt","wxt.config.cjs":"_f_wxt","wxt.config.mjs":"_f_wxt","wxt.config.ts":"_f_wxt","wxt.config.cts":"_f_wxt","wxt.config.mts":"_f_wxt",".xo-config":"_f_xo","xo.config.js":"_f_xo","xo.config.cjs":"_f_xo","xo.config.mjs":"_f_xo","xo.config.ts":"_f_xo","xo.config.cts":"_f_xo","xo.config.mts":"_f_xo",".xo-config.js":"_f_xo",".xo-config.json":"_f_xo",".xo-config.cjs":"_f_xo",".xcompose":"_f_xorg",".yamllint":"_f_yamllint",".yaspellerrc":"_f_yandex",".yaspeller.json":"_f_yandex","yarn.lock":"_f_yarn",".yarnrc":"_f_yarn",".yarnrc.yml":"_f_yarn",".yarnclean":"_f_yarn",".yarn-integrity":"_f_yarn",".yarn-metadata.json":"_f_yarn",".yarn-state.yml":"_f_yarn",".yarnignore":"_f_yarn",".yo-rc.json":"_f_yeoman","zizmor.yaml":"_f_zizmor","zizmor.yml":"_f_zizmor"}'),tw=JSON.parse('{"actionscript":"_f_actionscript","ada":"_f_ada","advpl":"_f_advpl","affectscript":"_f_affectscript","agda":"_f_agda","lagda-md":"_f_agda","lagda-rst":"_f_agda","lagda-tex":"_f_agda","al":"_f_al","alloy":"_f_alloy","ansible":"_f_ansible","antlr":"_f_antlr","anyscript":"_f_anyscript","apacheconf":"_f_apache","apex":"_f_apex","apiblueprint":"_f_apib","apl":"_f_apl","applescript":"_f_applescript","asciidoc":"_f_asciidoc","asp":"_f_asp","asp (html)":"_f_asp","arm":"_f_assembly","asm":"_f_assembly","asm-intel-x86-generic":"_f_assembly","platformio-debug.asm":"_f_platformio","asm-collection":"_f_assembly","astro":"_f_astro","ats":"_f_ats","ahk":"_f_autohotkey","ahk2":"_f_autohotkey","autoit":"_f_autoit","avro":"_f_avro","azcli":"_f_azure","azure-pipelines":"_f_azurepipelines","asaql":"_f_azurestreamanalytics","ballerina":"_f_ballerina","bat":"_f_bat","bats":"_f_bats","bazel":"_f_bazel","bazelrc":"_f_bazel","starlark":"_f_bazel","befunge":"_f_befunge","befunge98":"_f_befunge","bicep":"_f_bicep","biml":"_f_biml","code-text-binary":"_f_binary","biome_syntax_tree":"_f_biome","blade":"_f_blade","laravel-blade":"_f_blade","blitzbasic":"_f_blitzbasic","bolt":"_f_bolt","bosque":"_f_bosque","browserslist":"_f_browserslist","bruno":"_f_bruno","buf":"_f_buf","buf-gen":"_f_buf","bun.lockb":"_f_bun","c":"_f_c","c3":"_f_c3","c-al":"_f_c_al","cabal":"_f_cabal","caddyfile":"_f_caddy","Cangjie":"_f_cangjie","capnp":"_f_capnp","capnproto":"_f_capnp","casc":"_f_casc","cddl":"_f_cddl","ceylon":"_f_ceylon","cfml":"_f_cf","lang-cfml":"_f_cf","cfc":"_f_cfc","cfmhtml":"_f_cfm","cookbook":"_f_chef_cookbook","circom":"_f_circom","clojure":"_f_clojure","clojurescript":"_f_clojurescript","manifest-yaml":"_f_cloudfoundry","cmake":"_f_cmake","cmake-cache":"_f_cmake","cobol":"_f_cobol","ql":"_f_codeql","coffeescript":"_f_coffeescript","java-properties":"_f_config","properties":"_f_config","spring-boot-properties":"_f_config","confluence":"_f_confluence","instructions":"_f_copilot","prompt":"_f_copilot","cpp":"_f_cpp","crystal":"_f_crystal","csharp":"_f_csharp","css":"_f_css","cucumber":"_f_cucumber","feature":"_f_cucumber","cuda":"_f_cuda","cuda-cpp":"_f_cuda","cue":"_f_cue","cython":"_f_cython","dal":"_f_dal","dart":"_f_dartlang","debian-changelog":"_f_debian","debian-control":"_f_debian","debian-copyright":"_f_debian","debian-upstream-metadata":"_f_debian","pascal":"_f_delphi","objectpascal":"_f_delphi","dhall":"_f_dhall","diff":"_f_diff","django-html":"_f_django","django-txt":"_f_django","d":"_f_dlang","dscript":"_f_dlang","dml":"_f_dlang","diet":"_f_dlang","dockerbake":"_f_docker","dockercompose":"_f_docker","dockerfile":"_f_docker","dotenv":"_f_dotenv","env":"_f_dotenv","dotjs":"_f_dotjs","doxyfile":"_f_doxyfile","doxygen":"_f_doxygen","drawio":"_f_drawio","drools":"_f_drools","dtd":"_f_dtd","dustjs":"_f_dustjs","dylan":"_f_dylan","dylan-lid":"_f_dylan","earthfile":"_f_earthly","edge":"_f_edge","editorconfig":"_f_editorconfig","eex":"_f_eex","html-eex":"_f_eex","es":"_f_elastic","elixir":"_f_elixir","elm":"_f_elm","erb":"_f_erb","html.erb":"_f_erb","erlang":"_f_erlang","esphome":"_f_esphome","excel":"_f_excel","falcon":"_f_falcon","fql":"_f_fauna","flatbuffers":"_f_flatbuffers","fortran":"_f_fortran","fortran-modern":"_f_fortran","FortranFreeForm":"_f_fortran","FortranFixedForm":"_f_fortran","fortran_fixed-form":"_f_fortran","ftl":"_f_freemarker","fsharp":"_f_fsharp","fthtml":"_f_fthtml","galen":"_f_galen","gml-gms":"_f_gamemaker","gml-gms2":"_f_gamemaker2","gml-gm81":"_f_gamemaker81","gcode":"_f_gcode","gdscript":"_f_gdscript","genstat":"_f_genstat","git-commit":"_f_git","git-rebase":"_f_git","ignore":"_f_git","gitignore":"_f_git","gleam":"_f_gleam","glimmer-js":"_f_glimmer","glimmer-ts":"_f_glimmer","glsl":"_f_glsl","glyphs":"_f_glyphs","automake":"_f_gnu","m4":"_f_gnu","makefile":"_f_gnu","makefile2":"_f_gnu","gnuplot":"_f_gnuplot","go":"_f_go","go.mod":"_f_go_package","go.work":"_f_go_work","goctl":"_f_goctl","gradle-kotlin-dsl":"_f_gradle","grain":"_f_grain","graphql":"_f_graphql","dot":"_f_graphviz","grit":"_f_grit","groovy":"_f_groovy","haml":"_f_haml","handlebars":"_f_handlebars","harbour":"_f_harbour","hcl":"_f_hashicorp","haskell":"_f_haskell","literate haskell":"_f_haskell","haxe":"_f_haxe","hxml":"_f_haxe","Haxe AST dump":"_f_haxe","helm":"_f_helm","hjson":"_f_hjson","hlsl":"_f_hlsl","home-assistant":"_f_homeassistant","hosts":"_f_host","html":"_f_html","http":"_f_http","huff":"_f_huff","hunspell.aff":"_f_hunspell","hunspell.dic":"_f_hunspell","hurl":"_f_hurl","hy":"_f_hy","hypr":"_f_hypr","icl":"_f_icl","imba":"_f_imba","4GL":"_f_informix","ini":"_f_ini","ink":"_f_ink","innosetup":"_f_innosetup","io":"_f_io","iodine":"_f_iodine","janet":"_f_janet","java":"_f_java","jekyll":"_f_jekyll","jenkins":"_f_jenkins","declarative":"_f_jenkins","jenkinsfile":"_f_jenkins","jest-snapshot":"_f_jest_snapshot","jinja":"_f_jinja","jinja-java":"_f_jinja","jinja-html":"_f_jinja","jinja-xml":"_f_jinja","jinja-css":"_f_jinja","jinja-json":"_f_jinja","jinja-md":"_f_jinja","jinja-py":"_f_jinja","jinja-rb":"_f_jinja","jinja-js":"_f_jinja","jinja-yaml":"_f_jinja","jinja-toml":"_f_jinja","jinja-latex":"_f_jinja","jinja-lua":"_f_jinja","jinja-properties":"_f_jinja","jinja-shell":"_f_jinja","jinja-dockerfile":"_f_jinja","jinja-sql":"_f_jinja","jinja-terraform":"_f_jinja","jinja-nginx":"_f_jinja","jinja-groovy":"_f_jinja","jinja-systemd":"_f_jinja","jinja-cpp":"_f_jinja","javascript":"_f_js","json":"_f_json","json-tmlanguage":"_f_json","jsonc":"_f_json","jsonl":"_f_json","json5":"_f_json5","jsonnet":"_f_jsonnet","julia":"_f_julia","juliamarkdown":"_f_julia","just":"_f_just","k":"_f_k","kivy":"_f_kivy","kos":"_f_kos","kotlin":"_f_kotlin","kotlinscript":"_f_kotlin","kusto":"_f_kusto","lark":"_f_lark","latino":"_f_latino","lean4":"_f_lean","lean4markdown":"_f_lean","less":"_f_less","lex":"_f_lex","lilypond":"_f_lilypond","liquid":"_f_liquid","lisp":"_f_lisp","autolisp":"_f_lisp","autolispdcl":"_f_lisp","strings":"_f_locale","log":"_f_log","lolcode":"_f_lolcode","lsl":"_f_lsl","lua":"_f_lua","chatagent":"_f_markdown","markdown":"_f_markdown","marko":"_f_marko","matlab":"_f_matlab","maxscript":"_f_maxscript","mel":"_f_maya","mdx":"_f_mdx","mediawiki":"_f_mediawiki","mermaid":"_f_mermaid","mermaid.architecture":"_f_mermaid","mermaid.block":"_f_mermaid","mermaid.c4Diagram":"_f_mermaid","mermaid.classDiagram":"_f_mermaid","mermaid.erDiagram":"_f_mermaid","mermaid.flowchart":"_f_mermaid","mermaid.gantt":"_f_mermaid","mermaid.gitGraph":"_f_mermaid","mermaid.info":"_f_mermaid","mermaid.journey":"_f_mermaid","mermaid.kanban":"_f_mermaid","mermaid.mindmap":"_f_mermaid","mermaid.packet":"_f_mermaid","mermaid.pie":"_f_mermaid","mermaid.quadrantChart":"_f_mermaid","mermaid.radar":"_f_mermaid","mermaid.requirementDiagram":"_f_mermaid","mermaid.sankey":"_f_mermaid","mermaid.sequenceDiagram":"_f_mermaid","mermaid.stateDiagram":"_f_mermaid","mermaid.timeline":"_f_mermaid","mermaid.xychart":"_f_mermaid","mermaid.zenuml":"_f_mermaid","meson":"_f_meson","metal":"_f_metal","bc-mcfunction":"_f_minecraft","bc-minecraft-language":"_f_minecraft","bc-minecraft-molang":"_f_minecraft","bc-minecraft-project":"_f_minecraft","mcdoc":"_f_minecraft","mcfunction":"_f_minecraft","mcmeta":"_f_minecraft","mcscript":"_f_minecraft","minecraft-lang":"_f_minecraft","options-txt":"_f_minecraft","snbt":"_f_minecraft","mv":"_f_mivascript","mjml":"_f_mjml","powerquery":"_f_mlang","mojo":"_f_mojo","mojolicious":"_f_mojolicious","mongo":"_f_mongo","mson":"_f_mson","mvt":"_f_mvt","mvtcss":"_f_mvtcss","mvtjs":"_f_mvtjs","nearley":"_f_nearly","cypher":"_f_neo4j","nginx":"_f_nginx","nim":"_f_nim","nimble":"_f_nimble","nix":"_f_nix","nsis":"_f_nsi","nfl":"_f_nsi","nsl":"_f_nsi","bridlensis":"_f_nsi","nunjucks":"_f_nunjucks","nushell":"_f_nushell","objective-c":"_f_objectivec","objective-cpp":"_f_objectivecpp","ocaml":"_f_ocaml","ocamllex":"_f_ocaml","menhir":"_f_ocaml","ogone":"_f_ogone","openhab":"_f_openHAB","scad":"_f_openscad","org":"_f_org","pawn":"_f_pawn","pddl":"_f_pddl","happenings":"_f_pddl_happenings","plan":"_f_pddl_plan","perl":"_f_perl","perl6":"_f_perl6","pgsql":"_f_pgsql","postgres":"_f_pgsql","php":"_f_php","pine":"_f_pine","pinescript":"_f_pine","pip-requirements":"_f_pip","platformio-debug.disassembly":"_f_platformio","platformio-debug.memoryview":"_f_platformio","plsql":"_f_plsql","oracle":"_f_plsql","oraclesql":"_f_plsql","oracle-sql":"_f_plsql","po":"_f_poedit","polyglot-notebook":"_f_polyglot","polymer":"_f_polymer","pony":"_f_pony","postcss":"_f_postcss","postscript":"_f_postscript","powerbi-desktop":"_f_powerbi","powerbi-api":"_f_powerbi","powershell":"_f_powershell","prisma":"_f_prisma","pde":"_f_processinglang","abl":"_f_progress","prolog":"_f_prolog","prometheus":"_f_prometheus","proto3":"_f_protobuf","proto":"_f_protobuf","prototext":"_f_protobuf","textproto":"_f_protobuf","jade":"_f_pug","puppet":"_f_puppet","purescript":"_f_purescript","pyret":"_f_pyret","pyscript":"_f_pyscript","python":"_f_python","pythowo":"_f_pythowo","qlik":"_f_qlikview","qml":"_f_qml","qsharp":"_f_qsharp","r":"_f_r","ra_syntax_tree":"_f_ra_syntax_tree","racket":"_f_racket","raku":"_f_raku","raml":"_f_raml","razor":"_f_razor","aspnetcorerazor":"_f_razor","javascriptreact":"_f_reactjs","typescriptreact":"_f_reactts","reason":"_f_reason","red":"_f_red","rescript":"_f_rescript","restructuredtext":"_f_rest","rexx":"_f_rexx","riot":"_f_riot","ripple":"_f_ripple","rmd":"_f_rmd","rnc":"_f_rnc","robot":"_f_robotframework","robots-txt":"_f_robots","ruby":"_f_ruby","rust":"_f_rust","s-lang":"_f_s-lang","san":"_f_san","SAS":"_f_sas","sass":"_f_sass","sass.hover":"_f_sass","sbt":"_f_sbt","scala":"_f_scala","scilab":"_f_scilab","vbscript":"_f_script","scss":"_f_scss","sdl":"_f_sdlang","search-result":"_f_search_result","shaderlab":"_f_shaderlab","shellscript":"_f_shell","silverstripe":"_f_silverstripe","sino":"_f_sino","skill":"_f_skill","eskip":"_f_skipper","slang":"_f_slang","slice":"_f_slice","slim":"_f_slim","slint":"_f_slint","sln":"_f_sln","smarty":"_f_smarty","snakemake":"_f_snakemake","snort":"_f_snort","solidity":"_f_solidity","sparql":"_f_sparql","sqf":"_f_sqf","sql":"_f_sql","squirrel":"_f_squirrel","stan":"_f_stan","stata":"_f_stata","stencil":"_f_stencil","stencil-html":"_f_stencil","stylable":"_f_stylable","source.css.styled":"_f_styled","stylus":"_f_stylus","svelte":"_f_svelte","svg":"_f_svg","Swagger":"_f_swagger","swagger":"_f_swagger","swift":"_f_swift","swig":"_f_swig","systemd-conf":"_f_systemd","systemd-unit-file":"_f_systemd","systemverilog":"_f_systemverilog","t4":"_f_t4tt","tailwindcss":"_f_tailwind","teal":"_f_teal","templ":"_f_templ","tera":"_f_tera","terraform":"_f_terraform","tex":"_f_tex","latex":"_f_tex","bibtex":"_f_tex","doctex":"_f_tex","csv":"_f_text","csv (pipe)":"_f_text","csv (semicolon)":"_f_text","csv (whitespace)":"_f_text","dynamic csv":"_f_text","tsv":"_f_text","plaintext":"_f_text","vim-help":"_f_text","textile":"_f_textile","thinkscript":"_f_thinkscript","tiltfile":"_f_tiltfile","toit":"_f_toit","toml":"_f_toml","toon":"_f_toon","tt":"_f_tt","ttcn":"_f_ttcn","tuc":"_f_tuc","twig":"_f_twig","typescript":"_f_typescript","typoscript":"_f_typo3","uiua":"_f_uiua","unison":"_f_unison","vb":"_f_vb","vba":"_f_vba","velocity":"_f_velocity","vento":"_f_vento","verilog":"_f_verilog","vhdl":"_f_vhdl","viml":"_f_vim","vim-snippet":"_f_vim","vitest-snapshot":"_f_vitest","v":"_f_vlang","volt":"_f_volt","vroom":"_f_vroom","snippets":"_f_vscode","vue":"_f_vue","vyper":"_f_vyper","wasm":"_f_wasm","wat":"_f_wasm","wasp":"_f_wasp","wenyan":"_f_wenyan","wesl":"_f_wesl","wgsl":"_f_wgsl","wikitext":"_f_wikitext","wai":"_f_wit","wolfram":"_f_wolfram","wurstlang":"_f_wurst","wurst":"_f_wurst","xmake":"_f_xmake","xml":"_f_xml","xcompose":"_f_xorg","xquery":"_f_xquery","xsl":"_f_xsl","xslt":"_f_xsl","yacc":"_f_yacc","yaml":"_f_yaml","yaml-tmlanguage":"_f_yaml","spring-boot-properties-yaml":"_f_yaml","yang":"_f_yang","yarnlock":"_f_yarn","zig":"_f_zig","zip":"_f_zip"}'),nw={iconDefinitions:Vk,file:Wk,folder:Kk,folderExpanded:Jk,folderNames:Qk,folderNamesExpanded:Xk,fileExtensions:Yk,fileNames:ew,languageIds:tw},sw={bat:"bat",cmd:"bat",clj:"clojure",cljs:"clojure",cljc:"clojure",cljx:"clojure",clojure:"clojure",edn:"clojure",coffee:"coffeescript",cson:"coffeescript",iced:"coffeescript","code-workspace":"jsonc","code-profile":"json",copilotmd:"markdown",c:"c",i:"c",cpp:"cpp",cppm:"cpp",cc:"cpp",ccm:"cpp",cxx:"cpp",cxxm:"cpp","c++":"cpp","c++m":"cpp",hpp:"cpp",hh:"cpp",hxx:"cpp","h++":"cpp",h:"cpp",ii:"cpp",ino:"cpp",inl:"cpp",ipp:"cpp",ixx:"cpp",tpp:"cpp",txx:"cpp","hpp.in":"cpp","h.in":"cpp",cu:"cuda-cpp",cuh:"cuda-cpp",cs:"csharp",csx:"csharp",cake:"csharp",css:"css",dart:"dart",diff:"diff",patch:"diff",rej:"diff",dockerfile:"dockerfile",containerfile:"dockerfile",env:"dotenv",fs:"fsharp",fsi:"fsharp",fsx:"fsharp",fsscript:"fsharp",gitignore_global:"ignore",gitignore:"ignore","git-blame-ignore-revs":"ignore",go:"go",groovy:"groovy",gvy:"groovy",gradle:"groovy",jenkinsfile:"groovy",nf:"groovy",handlebars:"handlebars",hbs:"handlebars",hjs:"handlebars",hlsl:"hlsl",hlsli:"hlsl",fx:"hlsl",fxh:"hlsl",vsh:"hlsl",psh:"hlsl",cginc:"hlsl",compute:"hlsl",html:"html",htm:"html",shtml:"html",xhtml:"html",xht:"html",mdoc:"html",jsp:"html",asp:"html",aspx:"html",jshtm:"html",volt:"html",ejs:"html",rhtml:"html",ini:"ini",conf:"properties",properties:"properties",cfg:"properties",directory:"properties",gitattributes:"properties",gitconfig:"properties",gitmodules:"properties",editorconfig:"properties",repo:"properties",java:"java",jav:"java",jsx:"javascriptreact",js:"javascript",es6:"javascript",mjs:"javascript",cjs:"javascript",pac:"javascript",json:"json",bowerrc:"json",jscsrc:"json",webmanifest:"json","js.map":"json","css.map":"json","ts.map":"json",har:"json",jslintrc:"json",jsonld:"json",geojson:"json",ipynb:"json",vuerc:"json",jsonc:"jsonc",eslintrc:"jsonc","eslintrc.json":"jsonc",jsfmtrc:"jsonc",jshintrc:"jsonc",swcrc:"jsonc",hintrc:"jsonc",babelrc:"jsonc","toolset.jsonc":"jsonc",jsonl:"jsonl",ndjson:"jsonl","code-snippets":"snippets",jl:"julia",jmd:"juliamarkdown",sty:"tex",cls:"tex",bbx:"tex",cbx:"tex",tex:"latex",ltx:"latex",ctx:"latex",bib:"bibtex",less:"less",log:"log",lua:"lua",mak:"makefile",mk:"makefile",md:"markdown",mkd:"markdown",mkdn:"markdown",mdwn:"markdown",mdown:"markdown",markdown:"markdown",markdn:"markdown",mdtxt:"markdown",mdtext:"markdown",litcoffee:"markdown",ron:"markdown",ronn:"markdown",workbook:"markdown",wat:"wat",wasm:"wat",npmignore:"ignore",npmrc:"properties",m:"objective-c",mm:"objective-cpp",pl:"perl",pm:"perl",pod:"perl",t:"perl",psgi:"perl",raku:"raku",rakumod:"raku",rakutest:"raku",rakudoc:"raku",nqp:"raku",p6:"raku",pl6:"raku",pm6:"raku",php:"php",php4:"php",php5:"php",phtml:"php",ctp:"php",ps1:"powershell",psm1:"powershell",psd1:"powershell",pssc:"powershell",psrc:"powershell","prompt.md":"prompt","instructions.md":"instructions","agent.md":"chatagent","chatmode.md":"chatagent",pug:"jade",jade:"jade",py:"python",rpy:"python",pyw:"python",cpy:"python",gyp:"python",gypi:"python",pyi:"python",ipy:"python",pyt:"python",r:"r",rhistory:"r",rprofile:"r",rt:"r",cshtml:"razor",razor:"razor",rst:"restructuredtext",rb:"ruby",rbx:"ruby",rjs:"ruby",gemspec:"ruby",rake:"ruby",ru:"ruby",erb:"ruby",podspec:"ruby",rbi:"ruby",rs:"rust",scss:"scss","code-search":"search-result",shader:"shaderlab",sh:"shellscript",bash:"shellscript",bashrc:"shellscript",bash_aliases:"shellscript",bash_profile:"shellscript",bash_login:"shellscript",ebuild:"shellscript",eclass:"shellscript",profile:"shellscript",bash_logout:"shellscript",xprofile:"shellscript",xsession:"shellscript",xsessionrc:"shellscript",zsh:"shellscript",zshrc:"shellscript",zprofile:"shellscript",zlogin:"shellscript",zlogout:"shellscript",zshenv:"shellscript","zsh-theme":"shellscript",fish:"shellscript",ksh:"shellscript",csh:"shellscript",cshrc:"shellscript",tcshrc:"shellscript",yashrc:"shellscript",yash_profile:"shellscript",sql:"sql",dsql:"sql",swift:"swift",ts:"typescript",cts:"typescript",mts:"typescript",tsx:"typescriptreact",tsbuildinfo:"json",vb:"vb",brs:"vb",vbs:"vb",bas:"vb",vba:"vb",xml:"xml",xsd:"xml",ascx:"xml",atom:"xml",axml:"xml",axaml:"xml",bpmn:"xml",cpt:"xml",csl:"xml",csproj:"xml","csproj.user":"xml",dita:"xml",ditamap:"xml",dtd:"xml",ent:"xml",mod:"xml",dtml:"xml",fsproj:"xml",fxml:"xml",iml:"xml",isml:"xml",jmx:"xml",launch:"xml",menu:"xml",mxml:"xml",nuspec:"xml",opml:"xml",owl:"xml",proj:"xml",props:"xml",pt:"xml",publishsettings:"xml",pubxml:"xml","pubxml.user":"xml",rbxlx:"xml",rbxmx:"xml",rdf:"xml",rng:"xml",rss:"xml",shproj:"xml",slnx:"xml",storyboard:"xml",svg:"xml",targets:"xml",tld:"xml",tmx:"xml",vbproj:"xml","vbproj.user":"xml",vcxproj:"xml","vcxproj.filters":"xml",wixproj:"xml",wsdl:"xml",wxi:"xml",wxl:"xml",wxs:"xml",xaml:"xml",xbl:"xml",xib:"xml",xlf:"xml",xliff:"xml",xpdl:"xml",xul:"xml",xoml:"xml",xsl:"xsl",xslt:"xsl",yaml:"yaml",yml:"yaml",eyaml:"yaml",eyml:"yaml",cff:"yaml","yaml-tmlanguage":"yaml","yaml-tmpreferences":"yaml","yaml-tmtheme":"yaml",winget:"yaml"},ow={"settings.json":"jsonc","launch.json":"jsonc","tasks.json":"jsonc","mcp.json":"jsonc","keybindings.json":"jsonc","extensions.json":"jsonc","argv.json":"jsonc","profiles.json":"jsonc","devcontainer.json":"jsonc",".devcontainer.json":"jsonc",dockerfile:"dockerfile",containerfile:"dockerfile",".env":"dotenv",".flaskenv":"dotenv","user-dirs.dirs":"dotenv",".vscodeignore":"ignore",commit_editmsg:"git-commit",merge_msg:"git-commit","git-rebase-todo":"git-rebase",jenkinsfile:"groovy",gitconfig:"properties",jakefile:"javascript","composer.lock":"json",".watchmanconfig":"json","babel.config.json":"jsonc","bun.lock":"jsonc",".babelrc.json":"jsonc",".ember-cli":"jsonc","typedoc.json":"jsonc",makefile:"makefile",gnumakefile:"makefile",ocamlmakefile:"makefile","skill.md":"skill",sconstruct:"python",sconscript:"python",rakefile:"ruby",gemfile:"ruby",guardfile:"ruby",podfile:"ruby",capfile:"ruby",cheffile:"ruby",hobofile:"ruby",vagrantfile:"ruby",appraisals:"ruby",rantfile:"ruby",berksfile:"ruby","berksfile.lock":"ruby",thorfile:"ruby",puppetfile:"ruby",dangerfile:"ruby",brewfile:"ruby",fastfile:"ruby",appfile:"ruby",deliverfile:"ruby",matchfile:"ruby",scanfile:"ruby",snapfile:"ruby",gymfile:"ruby",apkbuild:"shellscript",pkgbuild:"shellscript",".envrc":"shellscript",".hushlogin":"shellscript",zshrc:"shellscript",zshenv:"shellscript",zlogin:"shellscript",zprofile:"shellscript",zlogout:"shellscript",bashrc_apple_terminal:"shellscript",zshrc_apple_terminal:"shellscript","tsconfig.json":"jsonc","jsconfig.json":"jsonc"},iw={fileExtensions:sw,fileNames:ow},Qe=nw,Ci=iw,rw="./vscode-icons";function Ol(e){const t=Al(e),n=Dl(t),s=Qe.fileNames[t]??Qe.fileNames[n];if(s)return En(s);if(/^\.env(?:\.|$)/.test(n))return En(Qe.languageIds.dotenv??Qe.file);const o=cw(n);for(const c of o){const _=Qe.fileExtensions[c];if(_)return En(_)}const r=Ci.fileNames[n]??o.map(c=>Ci.fileExtensions[c]).find(Boolean),a=r?Qe.languageIds[r]:void 0;return En(a??Qe.file)}function Yx(e){const t=e.trim().toLowerCase(),n=Qe.languageIds[t]?t:Ci.fileExtensions[t]??(t==="text"||t==="txt"?"plaintext":void 0),s=n?Qe.languageIds[n]:void 0;return s?En(s):null}function aw(e,t){const n=Dl(Al(e)),s=t?Qe.folderNamesExpanded:Qe.folderNames;return En(s[n]??(t?Qe.folderExpanded:Qe.folder))}function En(e){const n=(Qe.iconDefinitions[e]??Qe.iconDefinitions[Qe.file])?.iconPath.split("/").pop()??"default_file.svg";return`${rw}/${n}`}function Al(e){return e.replaceAll("\\","/").replace(/^\.\//,"").toLowerCase()}function Dl(e){return e.slice(e.lastIndexOf("/")+1)}function cw(e){const t=e.split(".");return t.slice(1).map((n,s)=>t.slice(s+1).join("."))}function lw({props:e,repositoryControl:t,worktreeControl:n,branchControl:s,favicon:o,contextOpen:r,onContextOpen:a,syncBusy:c}){const _=d.useRef(null);d.useEffect(()=>{e.mobileBackLabel&&_.current?.focus()},[e.mobileBackLabel]);const[f,p]=d.useState(!1),m=Bn(e.status),h=!!e.busy||c||!e.status||e.status.readOnly||e.status.unborn||e.status.detached,b=k=>{a(!1),k()};return i.jsxs(i.Fragment,{children:[i.jsxs("header",{className:"mobile-toolbar",children:[e.mobileBackLabel?i.jsxs("button",{ref:_,className:"mobile-toolbar-back",onClick:e.onMobileBack,children:[i.jsx(Zf,{}),i.jsx("span",{children:e.mobileBackLabel})]}):i.jsxs("button",{className:"mobile-repository-context","aria-label":"Repository context","aria-haspopup":"dialog","aria-expanded":r,onClick:()=>a(!0),children:[i.jsx(mo,{src:o}),i.jsxs("span",{children:[i.jsx("strong",{children:e.repository.repositoryName}),i.jsxs("small",{children:[i.jsx(Mn,{}),e.status?.branch??"Detached HEAD"]})]})]}),i.jsxs("div",{className:"mobile-toolbar-actions",children:[Nn&&i.jsx(Mi,{}),e.openFiles.tabs.length>0&&i.jsxs(G,{variant:"ghost",size:"sm",className:"mobile-open-files-trigger","aria-label":`Open files (${e.openFiles.tabs.length})`,onClick:()=>p(!0),children:[i.jsx(ci,{}),i.jsx("span",{children:e.openFiles.tabs.length}),e.openFiles.tabs.some(k=>k.dirty)&&i.jsx("span",{className:"mobile-unsaved-dot","aria-label":"Unsaved files"})]}),i.jsx(tr,{}),i.jsx(G,{variant:"ghost",size:"icon","aria-label":"Repository context and settings",onClick:()=>a(!0),children:i.jsx(id,{})})]})]}),i.jsxs(Oa,{open:r,onOpenChange:a,title:"Repository",description:"Switch checkout or manage the current repository.",children:[i.jsxs("div",{className:"mobile-context-selectors",children:[i.jsxs("div",{children:[i.jsx("span",{children:"Repository"}),t]}),i.jsxs("div",{children:[i.jsx("span",{children:"Branch"}),s]}),i.jsxs("div",{children:[i.jsx("span",{children:"Worktree"}),n]})]}),i.jsxs("div",{className:"mobile-context-sync",children:[i.jsxs(G,{variant:"outline",size:"sm",disabled:!!e.busy||c,onClick:()=>b(e.onRefresh),children:[i.jsx(cs,{}),"Refresh"]}),i.jsxs(G,{variant:"outline",size:"sm",disabled:h||!e.status?.upstream||!(e.status.behind>0),onClick:()=>b(e.onPull),children:[i.jsx(Ua,{}),"Pull",e.status?.behind?` (${e.status.behind})`:""]}),i.jsxs(G,{variant:"outline",size:"sm",disabled:h||!m&&!(e.status&&e.status.ahead>0),onClick:()=>b(e.onPush),children:[i.jsx(jo,{}),m?"Publish":"Push",e.status?.ahead?` (${e.status.ahead})`:""]})]}),i.jsxs("button",{className:"mobile-sheet-action",onClick:()=>b(e.onOpen),children:[i.jsx(ms,{}),i.jsx("span",{children:"Open repository"})]}),e.branchPullRequest&&i.jsxs("button",{className:`mobile-sheet-action mobile-branch-pr ${e.branchPullRequest.state.toLowerCase()}`,onClick:()=>b(()=>wo(e.branchPullRequest.url)),children:[e.branchPullRequest.state==="MERGED"?i.jsx(Va,{"aria-hidden":"true"}):i.jsx(to,{"aria-hidden":"true"}),i.jsxs("span",{children:[e.branchPullRequest.state==="MERGED"?"View merged":"Open"," PR #",e.branchPullRequest.number]})]}),e.githubInfo?.isGitHub&&e.githubInfo.nameWithOwner&&i.jsxs("button",{className:"mobile-sheet-action",onClick:()=>b(()=>wo(`https://github.com/${e.githubInfo.nameWithOwner}`)),children:[i.jsx(Ut,{}),i.jsx("span",{children:"Open on GitHub"})]}),i.jsxs("button",{className:"mobile-sheet-action",onClick:()=>b(()=>e.onSettingsOpen(!0)),children:[i.jsx(_s,{}),i.jsx("span",{children:"Settings"})]})]}),i.jsxs(Oa,{open:f,onOpenChange:p,title:"Open files",description:"Switch files or close tabs. Unsaved drafts stay in their tabs.",children:[e.openFiles.tabs.map(k=>i.jsxs("div",{className:`mobile-open-file ${e.openFiles.activePath===k.path?"active":""}`,children:[i.jsxs("button",{className:"mobile-sheet-action","aria-current":e.openFiles.activePath===k.path?"true":void 0,onClick:()=>{p(!1),e.onOpenFileTab(k.path)},children:[i.jsx("img",{src:Ol(k.path),alt:"",draggable:!1}),i.jsxs("span",{children:[i.jsx("strong",{children:k.path.split("/").pop()}),i.jsxs("small",{children:[k.path,k.missing?" · Missing":k.dirty?" · Unsaved":e.openFiles.previewPath===k.path?" · Preview":""]})]})]}),i.jsx(G,{variant:"ghost",size:"icon","aria-label":`Close ${k.path}`,onClick:()=>e.onCloseFileTab(k.path),children:i.jsx(Ln,{})})]},k.path)),e.openFiles.tabs.length===0&&i.jsx("p",{className:"mobile-list-message",children:"No open files."})]})]})}function _w({branches:e,currentLabel:t,disabled:n,onBranch:s,onManage:o}){const{groups:r,currentValue:a}=d.useMemo(()=>{const c=[],_=[];let f="";for(const p of e){if(p.remote&&p.fullName.endsWith("/HEAD"))continue;const m=!!(!p.remote&&p.worktreePath&&!p.current);!p.remote&&p.current&&(f=p.fullName),(p.remote?_:c).push({value:p.fullName,label:p.name,trailing:p.current?i.jsx("span",{className:"searchable-picker-status",children:"Current"}):m?i.jsx("span",{className:"searchable-picker-status",children:"In use"}):void 0,search:p.fullName,tooltip:`${p.fullName}${m?" · In another worktree":""}`,disabled:m,icon:i.jsx(Mn,{})})}return c.sort((p,m)=>p.value===f?-1:m.value===f?1:0),{currentValue:f,groups:[{id:"local",label:"Local",items:c},{id:"remote",label:"Remote",items:_}]}},[e]);return i.jsx(qn,{groups:r,value:a,onValueChange:s,label:"Select branch",triggerLabel:t,icon:i.jsx(Mn,{}),triggerClassName:"max-w-[220px]",placeholder:"Search branches…",management:{label:"Manage branches…",onClick:o},disabled:n})}const fw=d.lazy(()=>Tt(()=>import("./SettingsDialog-pmJKOaiK.js"),__vite__mapDeps([0,1,2,3,4,5,6])).then(e=>({default:e.SettingsDialog}))),dw=d.lazy(()=>Tt(()=>import("./LocalRefsDialog-VcrlFgxR.js"),__vite__mapDeps([7,1,3,4,2,5,8])).then(e=>({default:e.LocalRefsDialog}))),pw=d.lazy(()=>Tt(()=>import("./RepositoryProjectsDialog-DAzbUB3X.js"),__vite__mapDeps([9,1,2,3,4,5,10])).then(e=>({default:e.RepositoryProjectsDialog})));function uw(e){const{onRecent:t}=e,n=Lo(),[s,o]=d.useState(!1),r=Bn(e.status),c=El().repoSwitcher.toLowerCase(),[_,f]=d.useState(!1),[p,m]=d.useState(!1),[h,b]=d.useState(!1),[k,C]=d.useState("branches"),[g,S]=d.useState(()=>new Map),w=d.useRef(""),P=d.useRef(null),j=d.useRef(new Map),[N,A]=d.useState(!1),I=O=>{o(!1),C(O),b(!0)},B=e.worktrees.find(O=>Fb(O.path,e.repository.path)),L=d.useMemo(()=>Hb(e.recent,e.repositoryProjects),[e.recent,e.repositoryProjects]),D=d.useMemo(()=>Vb(L),[L]),V=d.useMemo(()=>new Map(D.map((O,H)=>[O.key,H+1])),[D]),X=$t(e.repository.commonDir),ye=e.repositorySyncOperations.has(e.repository.id),je=d.useMemo(()=>[{key:X,recent:{id:e.repository.id}},...L.repositories],[X,L.repositories,e.repository.id]),F=ml(je),Z=d.useCallback(async O=>{await Promise.all(O.map(async H=>{const K=H.recent.id,se=(j.current.get(K)??0)+1;j.current.set(K,se);try{const ne=await T.refs.fetch(K);if(j.current.get(K)!==se)return;const oe=await T.repository.getStatus(K,!1);if(j.current.get(K)!==se)return;S(ue=>{const U=new Map(ue);return U.set(K,{ahead:ne.status==="success"?ne.ahead:oe.ahead,behind:ne.status==="success"?ne.behind:oe.behind,branch:oe.branch,detached:oe.detached,upstream:oe.upstream,unborn:oe.unborn,readOnly:oe.readOnly,operation:oe.operation}),U})}catch{if(j.current.get(K)!==se)return;S(ne=>{const oe=new Map(ne);return oe.delete(K),oe})}}))},[]);d.useEffect(()=>{const O=e.status;if(!O)return;const H=e.repository.id;j.current.set(H,(j.current.get(H)??0)+1),S(K=>{const se=new Map(K);return se.set(H,{ahead:O.ahead,behind:O.behind,branch:O.branch,detached:O.detached,upstream:O.upstream,unborn:O.unborn,readOnly:O.readOnly,operation:O.operation}),se})},[e.repository.id,e.status]),d.useEffect(()=>{_&&Z(L.repositories)},[L.repositories,Z,_]);const R=d.useCallback(()=>{w.current="",P.current!==null&&(clearTimeout(P.current),P.current=null)},[]),Q=d.useCallback(O=>{const H=D[O-1];return H?(R(),f(!1),t(H.recent.id),!0):!1},[R,t,D]);d.useEffect(()=>{const O=H=>{if(H.repeat||H.ctrlKey||H.metaKey||H.altKey||H.shiftKey||uy(H.target))return;if(!_&&H.key.toLowerCase()===c){const ue=document.querySelector('[data-slot="dialog-popup"][data-open], [data-slot="select-content"][data-open], [data-slot="combobox-content"][data-open]');if(p||h||e.settingsOpen||ue)return;H.preventDefault(),n&&o(!0),f(!0);return}if(!_)return;if(H.key.toLowerCase()===c){H.preventDefault(),H.stopPropagation(),R(),f(!1);return}if(H.key==="Enter"&&w.current){H.preventDefault(),H.stopPropagation(),Q(Number(w.current));return}if(!/^\d$/.test(H.key))return;H.preventDefault(),H.stopPropagation();const K=D.map((ue,U)=>String(U+1));let se=w.current+H.key;if(K.some(ue=>ue.startsWith(se))||(se=H.key),!K.some(ue=>ue.startsWith(se))){R();return}w.current=se,P.current!==null&&clearTimeout(P.current);const ne=K.includes(se),oe=K.some(ue=>ue!==se&&ue.startsWith(se));ne&&!oe?Q(Number(se)):ne&&(P.current=setTimeout(()=>Q(Number(se)),650))};return window.addEventListener("keydown",O,!0),()=>{window.removeEventListener("keydown",O,!0),R()}},[n,R,p,e.settingsOpen,h,c,_,Q,D]);const ee=(O,H=null)=>{const K=g.get(O.recent.id),se=K&&(K.branch!==void 0||K.detached!==void 0)?{branch:K.branch??null,detached:K.detached===!0}:O.recent.id===e.repository.id&&e.status?{branch:e.status.branch,detached:e.status.detached}:void 0,ne=Ub(O,se);return{value:O.key,label:O.name,description:ne||"Repository",search:O.recent.path,tooltip:O.recent.path,icon:i.jsx(mo,{src:F.get(O.key)}),trailing:i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"repository-sync-actions",children:Jb(K,e.repositorySyncOperations.get(O.recent.id)).map(oe=>{const ue=e.repositorySyncOperations.get(O.recent.id),U=!!ue||!!(K?.readOnly||K?.operation)||!!e.busy&&O.recent.id===e.repository.id,W=oe==="push"&&Bn(K),Pe=oe==="pull"?"Pull":W?"Publish branch":"Push",Ye=oe==="pull"?K?.behind??0:K?.ahead??0;return i.jsxs(ke,{children:[i.jsxs(we,{render:i.jsx(G,{type:"button",variant:"ghost",size:"xs",disabled:U,"aria-label":`${Pe} ${O.name}`,onPointerDown:$e=>{$e.preventDefault(),$e.stopPropagation()},onKeyDown:$e=>$e.stopPropagation(),onClick:$e=>{$e.preventDefault(),$e.stopPropagation(),e.onRepositorySync(O,H,oe).finally(()=>Z([O]))}}),children:[ue===oe?i.jsx(_t,{"data-icon":"inline-start",className:"animate-spin"}):oe==="pull"?i.jsx(Ua,{"data-icon":"inline-start"}):i.jsx(jo,{"data-icon":"inline-start"}),i.jsx("span",{children:W?"Publish":Ye})]}),i.jsxs(xe,{children:[W?"Publish branch":`${Pe} ${Ye} ${Ye===1?"commit":"commits"}`," · ",ne]})]},oe)})}),i.jsx(gi,{className:"repo-select-index",children:V.get(O.key)})]})}},pe=i.jsx(qn,{groups:[...L.projectSections.map(O=>({id:O.id,label:O.name,items:O.repositories.map(H=>ee(H,O.name))})),{id:"unassigned",label:"Repositories",items:L.unassigned.map(O=>ee(O))}],open:_,onOpenChange:O=>{f(O),O||R()},onSearchChange:R,focusSearch:!1,value:X,onValueChange:O=>{o(!1),t(L.repositories.find(H=>H.key===O)?.recent.id??null)},label:"Select project or repository",triggerLabel:e.repository.repositoryName,icon:i.jsx(mo,{src:F.get(X)}),triggerHint:i.jsx(gi,{className:"repo-select-shortcut","aria-hidden":"true",children:c.toUpperCase()}),shortcut:c.toUpperCase(),triggerClassName:"repo-select max-w-[240px]",contentClassName:"repository-picker",align:"start",placeholder:"Search repositories…",management:{label:"Manage projects…",onClick:()=>{o(!1),m(!0)}}}),ze=i.jsx(qn,{groups:[{id:"worktrees",label:"Worktrees",items:e.worktrees.map(O=>({value:O.path,label:O.path.split(/[\\/]/).pop()??O.path,description:`${O.branch??"Detached HEAD"}${O.locked?" · Locked":O.prunable?" · Prunable":O.bare?" · Bare":""}`,search:O.path,tooltip:O.path,icon:i.jsx(Nr,{}),disabled:!!(O.locked||O.prunable||O.bare)}))}],value:B?.path??e.repository.path,onValueChange:e.onWorktree,label:"Select worktree",triggerLabel:B?.path.split(/[\\/]/).pop()??e.repository.name,icon:i.jsx(Nr,{}),triggerClassName:"toolbar-worktree max-w-[190px]",placeholder:"Search worktrees…",management:{label:"Manage worktrees…",onClick:()=>I("worktrees")},disabled:N}),ve=i.jsx(_w,{branches:e.branches,currentLabel:e.status?.branch??"Detached HEAD",disabled:e.status?.readOnly||N,onBranch:e.onBranch,onManage:()=>I("branches")});return i.jsxs(i.Fragment,{children:[n?i.jsx(lw,{props:e,repositoryControl:pe,worktreeControl:ze,branchControl:ve,favicon:F.get(X),contextOpen:s,onContextOpen:O=>{o(O),O||f(!1)},syncBusy:ye}):i.jsxs("header",{className:"toolbar",children:[i.jsxs("div",{className:"toolbar-brand","aria-label":xo,children:[i.jsx(D_,{}),i.jsx(Mi,{})]}),pe,i.jsxs(ke,{children:[i.jsx(we,{render:i.jsx(G,{variant:"ghost",size:"icon-sm",onClick:e.onOpen,"aria-label":"Open repository","aria-keyshortcuts":"Control+O"}),children:i.jsx(ms,{})}),i.jsx(xe,{children:"Open repository (Ctrl+O)"})]}),i.jsx(Ib,{session:e.openFiles,onActivate:e.onOpenFileTab,onPin:e.onPinFileTab,onClose:e.onCloseFileTab,onReorder:e.onReorderFileTab}),i.jsx("div",{className:"toolbar-spacer"}),e.status&&(r||e.status.unborn||e.status.ahead>0||e.status.behind>0||e.status.insertions>0||e.status.deletions>0||e.busy==="push"||e.busy==="pull")&&i.jsxs("div",{className:"branch-stats","aria-label":"Branch and local changes summary",children:[(e.status.behind>0||e.busy==="pull")&&i.jsxs(ke,{children:[i.jsx(we,{render:i.jsx("button",{className:"branch-sync",disabled:!!e.busy||ye,onClick:e.onPull,"aria-label":`Pull ${e.status.behind} commits`}),children:e.busy==="pull"?i.jsx(_t,{className:"animate-spin"}):i.jsxs("span",{children:["↓",e.status.behind]})}),i.jsx(xe,{children:e.busy==="pull"?"Pulling changes…":`Pull ${e.status.behind} ${e.status.behind===1?"commit":"commits"}`})]}),(r||e.status.unborn||e.status.ahead>0||e.busy==="push")&&i.jsxs(ke,{children:[i.jsx(we,{render:i.jsx("button",{className:"branch-push",disabled:!!e.busy||ye||e.status.readOnly||e.status.unborn||e.status.detached,onClick:e.onPush,"aria-label":r||e.status.unborn?"Publish branch":`Push ${e.status.ahead} commits`}),children:e.busy==="push"?i.jsx(_t,{className:"animate-spin"}):i.jsx("span",{children:r||e.status.unborn?"↑ Publish":`↑${e.status.ahead}`})}),i.jsx(xe,{children:e.status.unborn?"Create the first commit before publishing this branch":e.busy==="push"?"Pushing…":r?"Publish branch and set upstream":`Push ${e.status.ahead} ${e.status.ahead===1?"commit":"commits"}`})]}),(e.status.insertions>0||e.status.deletions>0)&&i.jsxs(ke,{children:[i.jsxs(we,{render:i.jsx("span",{className:"line-stats"}),children:[i.jsxs("strong",{className:"line-additions",children:["+",e.status.insertions]}),i.jsx("span",{children:"/"}),i.jsxs("strong",{className:"line-deletions",children:["-",e.status.deletions]})]}),i.jsx(xe,{children:"Lines added and removed in the worktree"})]})]}),ze,ve,e.branchPullRequest&&i.jsxs(ke,{children:[i.jsxs(we,{render:i.jsx("button",{type:"button",className:`toolbar-branch-pr ${e.branchPullRequest.state.toLowerCase()}${e.branchPullRequest.state==="OPEN"&&e.branchPullRequest.isDraft?" draft":""}`,"aria-label":`View ${Aa(e.branchPullRequest).toLowerCase()} pull request #${e.branchPullRequest.number} on GitHub`,onClick:()=>wo(e.branchPullRequest.url)}),children:[e.branchPullRequest.state==="MERGED"?i.jsx(Va,{"aria-hidden":"true"}):i.jsx(to,{"aria-hidden":"true"}),i.jsxs("span",{className:"toolbar-pr-label",children:["PR #",e.branchPullRequest.number]}),e.branchPullRequest.state==="OPEN"&&e.branchPullRequest.isDraft&&i.jsx("span",{className:"toolbar-pr-draft",children:"Draft"}),i.jsx(Ha,{"aria-hidden":"true"})]}),i.jsxs(xe,{side:"bottom",align:"end",sideOffset:8,className:"flex-col items-start gap-1 text-left",children:[i.jsx("span",{className:"toolbar-pr-tooltip-title",children:e.branchPullRequest.title}),i.jsxs("span",{className:"toolbar-pr-tooltip-meta",children:[e.branchPullRequest.state==="MERGED"?`Merged into ${e.branchPullRequest.baseRefName}`:Aa(e.branchPullRequest)," · View on GitHub"]})]})]}),i.jsxs(ke,{children:[i.jsx(we,{render:i.jsx(G,{variant:"ghost",size:"icon-sm","aria-label":"Refresh",onClick:e.onRefresh,disabled:!!e.busy||ye}),children:i.jsx(cs,{className:e.busy==="refresh"?"animate-spin":void 0})}),i.jsx(xe,{children:"Refresh (Ctrl+R)"})]}),e.githubInfo?.isGitHub&&e.githubInfo.nameWithOwner&&i.jsxs(ke,{children:[i.jsx(we,{render:i.jsx(G,{variant:"ghost",size:"icon-sm","aria-label":"Open repository on GitHub",onClick:()=>wo(`https://github.com/${e.githubInfo.nameWithOwner}`)}),children:i.jsx(Ut,{"aria-hidden":"true"})}),i.jsxs(xe,{children:["Open on GitHub · ",e.githubInfo.nameWithOwner]})]}),i.jsx(tr,{}),i.jsxs(ke,{children:[i.jsx(we,{render:i.jsx(G,{variant:"ghost",size:"icon-sm","aria-label":"Settings",onClick:()=>e.onSettingsOpen(!0)}),children:i.jsx(_s,{})}),i.jsx(xe,{children:"Settings"})]})]}),p&&i.jsx(d.Suspense,{fallback:null,children:i.jsx(pw,{open:p,onOpenChange:m,projects:e.repositoryProjects,repositories:L.repositories,onOrganizationChange:e.onOrganizationChange,onForgetRepository:e.onForgetRepository,onRelocateRepository:e.onRelocateRepository})}),h&&i.jsx(d.Suspense,{fallback:null,children:i.jsx(dw,{open:h,tab:k,repositoryId:e.repository.id,onOpenChange:b,onTabChange:C,onOpenWorktree:O=>{b(!1),e.onWorktree(O)},onMutated:e.onRefsManaged,onBusyChange:A})}),e.settingsOpen&&i.jsx(d.Suspense,{fallback:null,children:i.jsx(fw,{repository:e.repository,preferences:e.preferences,onPreference:e.onPreference,open:e.settingsOpen,onOpenChange:e.onSettingsOpen,section:e.settingsSection,onSectionChange:e.onSettingsSection})})]})}function hw(){const e=mn(),[t,n]=d.useState([]),s=d.useRef(new Set);d.useEffect(()=>{const c=s.current;return()=>{for(const _ of c)_.resolve(null);c.clear()}},[]);const o=d.useCallback(async(c,_)=>{const f=e.getQueriesData({queryKey:di(c)}).map(([,m])=>m).filter(Boolean).at(-1);let p=await T.refs.pushContext(c);if(p.blocked)return{status:"rejected",reason:"configuration",message:p.blocked};if(!p.branch||!p.oid||!p.remotes.length)return{status:"rejected",reason:"configuration",message:"Choose a branch with commits and configure a remote before publishing."};if(!p.remote||!f||Or(f)!==Or(p)){const m=await new Promise(h=>{const b={id:crypto.randomUUID(),repositoryId:c,label:_,result:{status:"remote-required",branch:p.branch,oid:p.oid,remotes:p.remote?[p.remote,...p.remotes.filter(k=>k!==p.remote)]:p.remotes},resolve:h};s.current.add(b),n(k=>[...k,b])});if(!m)return null;p=m}return e.setQueryData(di(c),p),T.refs.push(c,{remote:p.remote,expectedBranch:p.branch,expectedOid:p.oid},p.id)},[e]),r=t[0];return{push:o,remoteChoice:r,selectRemote:c=>{r&&(s.current.delete(r),n(_=>_.filter(f=>f!==r)),r.resolve(c))}}}const gw=xf;function ej({className:e,...t}){return i.jsx(Df,{"data-slot":"select-group",className:Ce("scroll-my-1 p-1",e),...t})}function mw({className:e,...t}){return i.jsx(Cf,{"data-slot":"select-value",className:Ce("block min-w-0 flex-1 overflow-hidden text-left text-ellipsis whitespace-nowrap",e),...t})}function yw({className:e,size:t="default",children:n,...s}){return i.jsxs(jf,{"data-slot":"select-trigger","data-size":t,className:Ce("flex w-fit min-w-0 cursor-pointer items-center justify-between gap-1.5 rounded-lg border border-border bg-input/40 px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow,background-color] outline-none hover:bg-input/70 aria-expanded:bg-input/70 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:px-1.5 *:data-[slot=select-value]:line-clamp-1 dark:bg-input/25 dark:hover:bg-input/40 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...s,children:[n,i.jsx(Pf,{render:i.jsx(Ka,{className:"pointer-events-none size-4 text-muted-foreground"})})]})}function vw({className:e,children:t,side:n="bottom",sideOffset:s=4,align:o="center",alignOffset:r=0,alignItemWithTrigger:a=!0,...c}){return i.jsx(Sf,{children:i.jsx(zf,{side:n,sideOffset:s,align:o,alignOffset:r,alignItemWithTrigger:a,className:"isolate z-50",children:i.jsxs(Rf,{"data-slot":"select-content","data-align-trigger":a,className:Ce("relative isolate z-50 max-h-(--available-height) w-max min-w-0 max-w-[min(var(--available-width),40rem)] origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-xl bg-popover p-1 text-popover-foreground shadow-xl ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:ring-foreground/10 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...c,children:[i.jsx(kw,{}),i.jsx(Nf,{children:t}),i.jsx(ww,{})]})})})}function bw({className:e,children:t,...n}){return i.jsxs($f,{"data-slot":"select-item",className:Ce("relative flex w-full cursor-pointer items-center gap-2 rounded-md py-1.5 pr-7 pl-2 text-sm font-medium outline-hidden select-none transition-colors hover:bg-foreground/10 focus:bg-foreground/10 data-highlighted:bg-foreground/10 data-selected:text-primary data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...n,children:[i.jsx(Ef,{className:"flex min-w-0 flex-1 items-center gap-2 overflow-hidden text-ellipsis whitespace-nowrap",children:t}),i.jsx(Tf,{render:i.jsx("span",{className:"pointer-events-none absolute right-2 flex size-4 items-center justify-center"}),children:i.jsx(pn,{className:"pointer-events-none text-primary"})})]})}function kw({className:e,...t}){return i.jsx(Of,{"data-slot":"select-scroll-up-button",className:Ce("top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...t,children:i.jsx(Yf,{})})}function ww({className:e,...t}){return i.jsx(Af,{"data-slot":"select-scroll-down-button",className:Ce("bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...t,children:i.jsx(Jf,{})})}function xw({choice:e,onSelect:t}){const[n,s]=d.useState(e.result.remotes[0]??""),o=Et({queryKey:["publication-review",e.id,n],queryFn:()=>T.refs.pushContext(e.repositoryId,n),enabled:!!n});return i.jsx(bt,{open:!0,onOpenChange:r=>{r||t(null)},children:i.jsxs(kt,{className:"undo-commit-dialog",children:[i.jsxs("div",{className:"undo-commit-content",children:[i.jsx(wt,{children:"Publish branch"}),i.jsxs(xt,{children:["Choose the remote for ",i.jsx("strong",{children:e.result.branch})," in ",e.label,". Review the account and destination before publishing. A new branch also gets an upstream."]}),i.jsxs(gw,{value:n,onValueChange:r=>s(r??""),children:[i.jsx(yw,{"aria-label":"Publish to remote",children:i.jsx(mw,{})}),i.jsx(vw,{children:e.result.remotes.map(r=>i.jsx(bw,{value:r,children:r},r))})]}),o.data&&i.jsxs("div",{className:"repository-access-status",children:[i.jsx("p",{children:i.jsx("strong",{children:o.data.login?`@${o.data.login}`:"Existing Git credentials"})}),i.jsx("p",{children:o.data.urls.join(", ")}),i.jsx("p",{children:o.data.targetRef}),o.data.blocked&&i.jsx("p",{role:"alert",children:o.data.blocked})]}),o.error&&i.jsx("p",{role:"alert",children:"Could not resolve the destination. Close and try again."})]}),i.jsxs("div",{className:"undo-commit-actions",children:[i.jsx(G,{variant:"ghost",onClick:()=>t(null),children:"Cancel"}),i.jsx(G,{disabled:!o.data||!!o.data.blocked||o.isFetching,onClick:()=>t(o.data??null),children:"Publish branch"})]})]})})}function Il(e){if(!e||typeof e!="object"||!("detail"in e))return null;const t=e.detail;if(!t||typeof t!="object")return null;const n=t;return typeof n.code=="string"&&typeof n.operation=="string"&&typeof n.message=="string"?n:null}const jw=30,tj=5,nj=300,sj=5;class Pw extends d.Component{state={error:null};static getDerivedStateFromError(t){return{error:t}}componentDidUpdate(t){this.state.error&&t.resetKey!==this.props.resetKey&&this.setState({error:null})}reset=()=>this.setState({error:null});render(){const{error:t}=this.state;return t?this.props.fallback?this.props.fallback(t,this.reset):i.jsx("div",{className:"viewer-message text-destructive",children:"Could not display the content."}):this.props.children}}const Cw=new Set(["png","apng","avif","gif","jpg","jpeg","jfif","pjpeg","pjp","webp","bmp","ico","cur"]),Sw=new Set(["tif","tiff","heic","heif","psd","raw","dng","cr2","cr3","nef","arw","orf","rw2","eps","xcf"]);function zw(e){return Ml(e)==="svg"}function Rw(e){const t=Ml(e);return Cw.has(t)||Sw.has(t)}function Ml(e){const t=e.replace(/\\/g,"/"),n=t.slice(t.lastIndexOf("/")+1),s=n.lastIndexOf(".");return s<0?"":n.slice(s+1).toLowerCase()}function Nw(e,t){return e.endsWith("/")||e.endsWith("\\")||t==="deleted"?!1:dy(e)||zw(e)||Rw(e)}function $w(e){return{modified:"M",added:"A",deleted:"D",renamed:"R",copied:"C",untracked:"U",conflicted:"C","type-changed":"T"}[e]}function Ll(e,t,n=0){const s=[];for(const o of e){if(o.type==="file"&&o.change){s.push({kind:"file",change:o.change,depth:n});continue}s.push({kind:"directory",node:o,depth:n}),t.has(o.path)||s.push(...Ll(o.children,t,n+1))}return s}function Ew(e){const t=new Map;for(const s of e){const o=s.path.split("/").filter(Boolean);let r=t,a="";o.forEach((c,_)=>{a=a?`${a}/${c}`:c;const f=_===o.length-1;let p=r.get(c);p?f&&(p.change=s,p.type="file"):(p={name:c,path:a,type:f?"file":"directory",change:f?s:null,children:new Map},r.set(c,p)),r=p.children})}const n=s=>[...s.values()].sort((o,r)=>o.type===r.type?o.name.localeCompare(r.name):o.type==="directory"?-1:1).map(o=>({name:o.name,path:o.path,type:o.type,change:o.change,children:n(o.children)}));return n(t)}function Fl(e){return e.type==="file"?e.change?[e.change.path]:[]:e.children.flatMap(Fl)}const Tw='button, a, input, select, textarea, [role="button"]';function nr(e){const t=e?.closest;return typeof t!="function"||t.call(e,Tw)==null}function Ow(e){const t=e.displayMode,n=d.useRef(null);return i.jsx("div",{className:"changes-view",children:i.jsxs("div",{ref:n,className:"changes-scroll",children:[i.jsx(Aw,{scrollRef:n,changes:e.conflicts,onSelect:e.onConflict,onOpenFile:e.onOpenFile}),i.jsx(Da,{scrollRef:n,displayMode:t,title:"Staged Changes",changes:e.staged,onSelect:s=>e.onSelect(s,"staged"),onOpenFile:e.onOpenFile,action:"unstage",disabled:e.readOnly,onAction:e.onUnstage,onDiscard:e.onDiscard,onAll:e.onUnstageAll}),i.jsx(Da,{scrollRef:n,displayMode:t,title:"Changes",changes:e.changed,onSelect:s=>e.onSelect(s,"unstaged"),onOpenFile:e.onOpenFile,action:"stage",disabled:e.readOnly,onAction:e.onStage,onDiscard:e.onDiscard,onAll:e.onStageAll})]})})}function Aw({scrollRef:e,changes:t,onSelect:n,onOpenFile:s}){const o=Lo(),r=d.useRef(null),a=d.useMemo(()=>[...t].sort((f,p)=>f.path.localeCompare(p.path)),[t]),c=ql(r,e),_=Ga({count:a.length,getScrollElement:()=>e.current,estimateSize:()=>o?48:38,getItemKey:f=>a[f]?.path??f,scrollMargin:c,overscan:8});return d.useEffect(()=>{_.measure()},[_,o]),t.length===0?null:i.jsxs("section",{className:"change-section conflict-section",children:[i.jsxs("div",{className:"section-heading",children:[i.jsx("span",{children:"Conflicts"}),i.jsx(no,{variant:"destructive",children:t.length})]}),i.jsx("div",{ref:r,role:"list","aria-label":"Conflicts",className:"change-list virtual-list",style:{height:_.getTotalSize()},children:_.getVirtualItems().map(f=>i.jsx("div",{className:"virtual-row",style:{height:f.size,transform:`translateY(${f.start-c}px)`},children:i.jsx(Dw,{change:a[f.index],onSelect:n,onOpenFile:s})},f.key))})]})}function Dw({change:e,onSelect:t,onOpenFile:n}){const s=d.useRef(null),o=e.path.replace(/[\\/]+$/,""),r=o.lastIndexOf("/"),a=r<0?o:o.slice(r+1),c=r<0?"":o.slice(0,r);return i.jsxs("div",{ref:s,role:"listitem",className:"change-row conflict-row",onClick:_=>{nr(_.target)&&t(e.path)},children:[i.jsxs(ke,{children:[i.jsxs(we,{render:i.jsx("button",{className:"file-label",onClick:()=>t(e.path),"aria-label":`Resolve conflict in ${e.path}`}),children:[i.jsx(sr,{path:o,type:"file"}),i.jsxs("span",{className:"change-file-text",children:[i.jsx("span",{children:a}),c&&i.jsx("small",{children:c})]})]}),i.jsxs(xe,{anchor:s,side:"right",sideOffset:10,children:["Resolve ",e.path]})]}),i.jsx("span",{className:"change-row-actions",children:i.jsxs(ke,{children:[i.jsx(we,{render:i.jsx(G,{variant:"ghost",size:"icon-xs",className:"change-action-button",onClick:()=>n(e.path),"aria-label":"Open file"}),children:i.jsx(zi,{})}),i.jsx(xe,{children:"Open file"})]})}),i.jsx("span",{className:"status-code conflict",children:"C"})]})}function Da({scrollRef:e,displayMode:t,title:n,changes:s,disabled:o,action:r,onSelect:a,onOpenFile:c,onAction:_,onDiscard:f,onAll:p}){const m=d.useMemo(()=>Ew(s),[s]),[h,b]=d.useState(new Set),k=d.useMemo(()=>[...s].sort((A,I)=>A.path.localeCompare(I.path)),[s]),C=d.useMemo(()=>Ll(m,h),[h,m]),g=t==="list"?k.map(A=>({kind:"file",change:A,depth:0})):C,S=Lo(),w=d.useRef(null),P=ql(w,e),j=S?48:t==="list"?38:30,N=Ga({count:g.length,getScrollElement:()=>e.current,estimateSize:()=>j,getItemKey:A=>{const I=g[A];return I?.kind==="directory"?`directory:${I.node.path}`:`${r}:${I?.change.path??A}`},scrollMargin:P,overscan:10});return d.useEffect(()=>{N.measure()},[N,j]),i.jsxs("section",{className:"change-section",children:[i.jsxs("div",{className:"section-heading",children:[i.jsx("span",{children:n}),i.jsx(no,{variant:"secondary",children:s.length}),i.jsx("div",{className:"heading-actions",children:i.jsxs(ke,{children:[i.jsx(we,{render:i.jsx(G,{variant:"ghost",size:"icon-xs",className:"change-action-button",disabled:o||s.length===0,"aria-label":r==="stage"?"Stage all":"Unstage all",onClick:p}),children:r==="stage"?i.jsx(ms,{}):i.jsx(Wa,{})}),i.jsx(xe,{children:r==="stage"?"Stage all":"Unstage all"})]})})]}),s.length===0?i.jsx("p",{className:"empty-list",children:"No changes"}):i.jsx("div",{ref:w,role:t==="list"?"list":"tree","aria-label":n,className:`${t==="list"?"change-list":"change-tree"} virtual-list`,style:{height:N.getTotalSize()},children:N.getVirtualItems().map(A=>{const I=g[A.index];return i.jsx("div",{className:"virtual-row",style:{height:A.size,transform:`translateY(${A.start-P}px)`},children:I.kind==="directory"?i.jsx(Iw,{node:I.node,depth:I.depth,expanded:!h.has(I.node.path),disabled:o,action:r,onToggle:()=>b(B=>{const L=new Set(B);return L.has(I.node.path)?L.delete(I.node.path):L.add(I.node.path),L}),onDiscard:f,onAction:_}):i.jsx(Mw,{change:I.change,disabled:o,action:r,depth:I.depth,showDirectory:t==="list",onSelect:a,onOpenFile:c,onDiscard:f,onAction:_})},A.key)})})]})}function ql(e,t){const[n,s]=d.useState(0);return d.useEffect(()=>{const o=e.current,r=t.current;if(!o||!r)return;const a=()=>{const f=o.getBoundingClientRect().top-r.getBoundingClientRect().top+r.scrollTop;s(p=>p===f?p:f)},c=requestAnimationFrame(a),_=new ResizeObserver(a);_.observe(o);for(const f of r.children)_.observe(f);return()=>{cancelAnimationFrame(c),_.disconnect()}},[e,t]),n}function Iw({node:e,depth:t,expanded:n,disabled:s,action:o,onToggle:r,onDiscard:a,onAction:c}){const _=Fl(e);return i.jsxs("div",{role:"treeitem","aria-expanded":n,className:"tree-folder",style:{paddingLeft:8+t*14},onClick:f=>{nr(f.target)&&r()},children:[i.jsx("button",{className:"folder-toggle",onClick:r,"aria-label":n?"Collapse folder":"Expand folder",children:i.jsx(Ys,{className:`folder-chevron ${n?"open":""}`})}),i.jsx(sr,{path:e.path,type:"directory",expanded:n}),i.jsx("button",{className:"folder-name",onClick:r,children:e.name}),i.jsx(Zl,{paths:_,action:o,disabled:s,onDiscard:a,onAction:c})]})}function Mw({change:e,disabled:t,action:n,depth:s=0,showDirectory:o=!1,onSelect:r,onOpenFile:a,onDiscard:c,onAction:_}){const f=d.useRef(null),p=e.path.replace(/[\\/]+$/,""),m=p.lastIndexOf("/"),h=m<0?p:p.slice(m+1),b=m<0?"":p.slice(0,m),k=e.path.endsWith("/")||e.path.endsWith("\\"),C=Nw(e.path,e.kind);return i.jsxs("div",{ref:f,role:o?"listitem":"treeitem",className:"change-row",style:{paddingLeft:12+s*14},onClick:g=>{nr(g.target)&&(C?a(e.path):r(e.path))},children:[!o&&i.jsx("span",{className:"tree-spacer"}),i.jsxs(ke,{children:[i.jsxs(we,{render:i.jsx("button",{className:"file-label",onClick:()=>C?a(e.path):r(e.path),"aria-label":`${C?"Preview":"View changes for"} ${e.path}`}),children:[i.jsx(sr,{path:p,type:k?"directory":"file"}),i.jsxs("span",{className:"change-file-text",children:[i.jsx("span",{children:h}),o&&b&&i.jsx("small",{children:b})]})]}),i.jsx(xe,{anchor:f,side:"right",sideOffset:10,children:e.path})]}),i.jsxs("span",{className:"change-row-actions",children:[!k&&C&&i.jsxs(ke,{children:[i.jsx(we,{render:i.jsx(G,{variant:"ghost",size:"icon-xs",className:"change-action-button",onClick:()=>r(e.path),"aria-label":"View changes"}),children:i.jsx(_i,{})}),i.jsx(xe,{children:"View changes"})]}),!k&&!C&&i.jsxs(ke,{children:[i.jsx(we,{render:i.jsx(G,{variant:"ghost",size:"icon-xs",className:"change-action-button",disabled:t,onClick:()=>a(e.path),"aria-label":"Open file"}),children:i.jsx(zi,{})}),i.jsx(xe,{children:"Open file"})]}),i.jsx(Zl,{paths:[e.path],action:n,disabled:t,onDiscard:c,onAction:_})]}),i.jsx("span",{className:`status-code ${e.conflict?"conflict":""}`,"data-kind":e.kind,children:$w(e.kind)})]})}function Zl({paths:e,action:t,disabled:n,onDiscard:s,onAction:o}){return i.jsxs("span",{className:"change-actions",children:[t==="stage"&&i.jsxs(ke,{children:[i.jsx(we,{render:i.jsx(G,{variant:"ghost",size:"icon-xs",className:"change-action-button change-action-discard",disabled:n,onClick:()=>s(e),"aria-label":"Discard changes"}),children:i.jsx(fi,{})}),i.jsx(xe,{children:"Discard changes"})]}),i.jsxs(ke,{children:[i.jsx(we,{render:i.jsx(G,{variant:"ghost",size:"icon-xs",className:"change-action-button",disabled:n,onClick:()=>o(e),"aria-label":t==="stage"?"Stage changes":"Unstage changes"}),children:t==="stage"?i.jsx(ms,{}):i.jsx(Wa,{})}),i.jsx(xe,{children:t==="stage"?"Stage changes":"Unstage changes"})]})]})}function sr({path:e,type:t,expanded:n=!1}){const s=t==="file"?Ol(e):aw(e,n);return i.jsx("img",{className:"vscode-tree-icon",src:s,alt:"","aria-hidden":"true",draggable:!1})}function Lw(e,t,n){const s=new Set(t);return{kind:"discard",repositoryId:e,paths:[...t],hasUntracked:n.some(o=>s.has(o.path)&&o.kind==="untracked")}}function Fw(e,t){return{kind:"delete",repositoryId:e,paths:t.map(n=>n.path)}}function qw(e){return e.kind==="discard"?{title:"Discard changes",message:e.hasUntracked?"Untracked files will be moved to system Trash. Other local changes will be lost.":"These local changes will be lost.",detail:e.paths.join(`
|
|
135
|
+
`),confirmLabel:"Discard"}:{title:e.paths.length===1?"Delete item":`Delete ${e.paths.length} items`,message:e.paths.length===1?"Move this item to system Trash?":`Move ${e.paths.length} items to system Trash?`,detail:e.paths.join(`
|
|
136
|
+
`),confirmLabel:"Move to Trash"}}async function Ia(e,t,n){return t?e.kind==="discard"?(await n.discard(e.repositoryId,e.paths),{kind:"discard"}):{kind:"delete",result:await n.deleteEntries(e.repositoryId,e.paths)}:null}function Zw({className:e,...t}){return i.jsx("textarea",{"data-slot":"textarea",className:Ce("flex field-sizing-content min-h-16 w-full resize-none rounded-lg border border-border bg-input/40 px-3 py-2.5 text-base leading-relaxed transition-[color,box-shadow,background-color] outline-none placeholder:text-muted-foreground hover:bg-input/60 focus-visible:border-ring focus-visible:bg-input/60 focus-visible:ring-3 focus-visible:ring-ring/30 dark:bg-input/25 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...t})}function Bw({harness:e,className:t=""}){const n=["ai-provider-icon",t].filter(Boolean).join(" ");return e==="codex"?i.jsx("svg",{className:n,viewBox:"0 0 24 24","aria-hidden":"true",children:i.jsx("path",{fill:"currentColor",d:"M22.282 9.821a6 6 0 0 0-.516-4.91a6.05 6.05 0 0 0-6.51-2.9A6.065 6.065 0 0 0 4.981 4.18a6 6 0 0 0-3.998 2.9a6.05 6.05 0 0 0 .743 7.097a5.98 5.98 0 0 0 .51 4.911a6.05 6.05 0 0 0 6.515 2.9A6 6 0 0 0 13.26 24a6.06 6.06 0 0 0 5.772-4.206a6 6 0 0 0 3.997-2.9a6.06 6.06 0 0 0-.747-7.073M13.26 22.43a4.48 4.48 0 0 1-2.876-1.04l.141-.081l4.779-2.758a.8.8 0 0 0 .392-.681v-6.737l2.02 1.168a.07.07 0 0 1 .038.052v5.583a4.504 4.504 0 0 1-4.494 4.494M3.6 18.304a4.47 4.47 0 0 1-.535-3.014l.142.085l4.783 2.759a.77.77 0 0 0 .78 0l5.843-3.369v2.332a.08.08 0 0 1-.033.062L9.74 19.95a4.5 4.5 0 0 1-6.14-1.646M2.34 7.896a4.5 4.5 0 0 1 2.366-1.973V11.6a.77.77 0 0 0 .388.677l5.815 3.354l-2.02 1.168a.08.08 0 0 1-.071 0l-4.83-2.786A4.504 4.504 0 0 1 2.34 7.872zm16.597 3.855l-5.833-3.387L15.119 7.2a.08.08 0 0 1 .071 0l4.83 2.791a4.494 4.494 0 0 1-.676 8.105v-5.678a.79.79 0 0 0-.407-.667m2.01-3.023l-.141-.085l-4.774-2.782a.78.78 0 0 0-.785 0L9.409 9.23V6.897a.07.07 0 0 1 .028-.061l4.83-2.787a4.5 4.5 0 0 1 6.68 4.66zm-12.64 4.135l-2.02-1.164a.08.08 0 0 1-.038-.057V6.075a4.5 4.5 0 0 1 7.375-3.453l-.142.08L8.704 5.46a.8.8 0 0 0-.393.681zm1.097-2.365l2.602-1.5l2.607 1.5v2.999l-2.597 1.5l-2.607-1.5Z"})}):e==="grok"?i.jsx("svg",{className:n,viewBox:"0 0 24 24","aria-hidden":"true",children:i.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.27 15.29l7.978-5.897c.391-.29.95-.177 1.137.272.98 2.369.542 5.215-1.41 7.169-1.951 1.954-4.667 2.382-7.149 1.406l-2.711 1.257c3.889 2.661 8.611 2.003 11.562-.953 2.341-2.344 3.066-5.539 2.388-8.42l.006.007c-.983-4.232.242-5.924 2.75-9.383.06-.082.12-.164.179-.248l-3.301 3.305v-.01L9.267 15.292M7.623 16.723c-2.792-2.67-2.31-6.801.071-9.184 1.761-1.763 4.647-2.483 7.166-1.425l2.705-1.25a7.808 7.808 0 00-1.829-1A8.975 8.975 0 005.984 5.83c-2.533 2.536-3.33 6.436-1.962 9.764 1.022 2.487-.653 4.246-2.34 6.022-.599.63-1.199 1.259-1.682 1.925l7.62-6.815"})}):e==="claude"?i.jsx("img",{className:n,src:"./vscode-icons/file_type_claude.svg",alt:"","aria-hidden":"true",draggable:!1}):i.jsxs("span",{className:`${n} ai-provider-icon-themed`,"aria-hidden":"true",children:[i.jsx("img",{className:"ai-provider-icon-for-light",src:"./vscode-icons/file_type_light_opencode.svg",alt:"",draggable:!1}),i.jsx("img",{className:"ai-provider-icon-for-dark",src:"./vscode-icons/file_type_opencode.svg",alt:"",draggable:!1})]})}const Ma=170;function La(e,t){const[n,s]=d.useState(e);return d.useEffect(()=>{if(e){s(!0);return}const o=window.setTimeout(()=>s(!1),t);return()=>window.clearTimeout(o)},[e,t]),{mounted:n,state:e?"open":"closed"}}function Gw({open:e,stagedCount:t,message:n,generating:s,harness:o,harnessLabel:r,modelLabel:a,busy:c,readOnly:_,canPush:f,proposal:p,preparedIndex:m,completed:h,collapsed:b,textareaRef:k,onMessage:C,onGenerate:g,onCancelGenerate:S,onDismissProposal:w,onToggleCollapsed:P,onOpenPath:j,onPrepare:N,onCommit:A}){const I=El(),B=I.commit.split("+"),L=La(e,Ma),D=n.trim().length>0,V=La(e&&D&&!s,Ma);if(!L.mounted)return null;const X=c==="commit",ye=c==="push",je=_||t===0,F=je||!D||!!c,Z=`${t} ${t===1?"file":"files"}`;return i.jsxs("div",{className:"commit-composer","data-state":L.state,role:"group","aria-label":"Create commit",children:[i.jsxs("div",{className:"commit-composer-header",children:[i.jsxs("span",{className:"commit-composer-title",children:[i.jsx(li,{"aria-hidden":"true"}),t>0?`Commit ${Z}`:"Commit plan"]}),t>0&&i.jsx("span",{className:"commit-composer-hint",children:B.map(R=>i.jsx(gi,{children:R==="Enter"?"↵":R},R))})]}),p&&i.jsxs("section",{className:"commit-plan","aria-label":"Suggested commit plan",children:[i.jsxs("div",{className:"commit-plan-heading",children:[i.jsxs("span",{children:[i.jsx(Nd,{"aria-hidden":"true"}),i.jsxs("strong",{children:[p.commits.length," commits suggested"]}),h.size>0&&i.jsxs("em",{className:"commit-plan-progress",children:[h.size," of ",p.commits.length," done"]})]}),i.jsxs("span",{className:"commit-plan-heading-actions",children:[i.jsx(G,{type:"button",variant:"ghost",size:"xs","aria-expanded":!b,onClick:P,children:b?"Show plan":"Hide plan"}),i.jsx(G,{type:"button",variant:"ghost",size:"icon-xs","aria-label":"Discard the commit plan and keep one commit",onClick:w,children:i.jsx(Ln,{})})]})]}),!b&&i.jsxs(i.Fragment,{children:[i.jsx("p",{children:p.rationale}),i.jsx("div",{className:"commit-plan-list",children:p.commits.map((R,Q)=>{const ee=h.has(Q),pe=m===Q;return i.jsxs("article",{className:[ee?"done":"",pe?"prepared":""].filter(Boolean).join(" "),"aria-current":pe?"step":void 0,children:[i.jsxs("div",{children:[i.jsxs("strong",{children:[ee&&i.jsx(pn,{className:"commit-plan-done-icon","aria-hidden":"true"}),Q+1,". ",R.subject]}),i.jsx("small",{children:R.reason}),i.jsx("span",{className:"commit-plan-paths",children:R.paths.map(ze=>i.jsxs(ke,{children:[i.jsx(we,{render:i.jsx("button",{type:"button",className:"commit-plan-path",onClick:()=>j(ze)}),children:ze}),i.jsxs(xe,{children:["Open the diff for ",ze]})]},ze))})]}),i.jsx(G,{type:"button",variant:pe?"secondary":"outline",size:"xs",disabled:_||!!c||pe||ee,onClick:()=>N(Q),children:ee?"Committed":pe?"Prepared":"Prepare"})]},`${R.subject}:${R.paths.join("\0")}`)})}),i.jsx("small",{className:"commit-plan-note",children:"Preparing changes only the Git index, in the listed order. Review the diff before committing; OpenTig never creates the commits automatically."})]})]}),t>0&&i.jsx(Zw,{ref:k,className:"commit-composer-input",value:n,onChange:R=>C(R.target.value),onKeyDown:R=>{zc({key:R.key,ctrlKey:R.ctrlKey,altKey:R.altKey,shiftKey:!1,metaKey:R.metaKey})===I.commit&&!F&&(R.preventDefault(),A({push:R.shiftKey&&f}))},placeholder:"Write commit message or…",rows:3,disabled:_}),t>0&&i.jsxs("div",{className:"commit-composer-actions",children:[i.jsxs(G,{variant:"outline",className:"commit-composer-generate","aria-label":s?"Cancel generation":void 0,disabled:je||!!(c&&c!=="refresh"),onClick:()=>s?S():g(),children:[s?i.jsx(Md,{className:"text-destructive"}):i.jsx(Bw,{harness:o}),s?i.jsx(Fn,{text:"Generating message…"}):i.jsxs("span",{className:"commit-composer-provider",children:["Generate with ",i.jsx("span",{className:"commit-composer-harness",children:r}),i.jsx("span",{"aria-hidden":"true",children:"·"}),i.jsx("span",{className:"commit-composer-model",children:a})]})]}),V.mounted&&i.jsxs("div",{className:"commit-composer-commit","data-state":V.state,children:[i.jsxs(G,{className:"commit-composer-primary",disabled:F,onClick:()=>A({push:!1}),children:[i.jsx(li,{})," ",X?"Committing…":"Commit"]}),i.jsxs(G,{variant:"outline",className:"commit-composer-secondary",disabled:F||!f,onClick:()=>A({push:!0}),children:[i.jsx(jo,{})," ",ye?"Pushing…":"Commit and push"]})]})]})]})}const Tn=new Map;function oj(e){return Tn.get(e)}function ij(e,t){for(Tn.set(e,t);Tn.size>100;)Tn.delete(Tn.keys().next().value)}function Uw(){Tn.clear()}function or(e){const t=e.includes("\\")?"\\":"/",n=e.replace(/\\/g,"/"),s=n.match(/^\/\/[^/]+\/[^/]+/),o=n.match(/^[A-Za-z]:\//),r=s?.[0]??o?.[0]??"/",a=r.replace(/\//g,t),c=[{name:s?a:o?r.slice(0,2):"/",path:a}];let _=r.replace(/\/$/,"");for(const f of n.slice(r.length).split("/").filter(Boolean))_+="/"+f,c.push({name:f,path:_.replace(/\//g,t)});return c}function Fa(e){const t=or(e);return t.length>1?t[t.length-2].path:null}function qa(e){return or(e).at(-1)?.name??e}function _n(e,t){const n=s=>{const o=s.replace(/\\/g,"/").replace(/\/+$/,"");return/^(?:[A-Za-z]:|\/\/)/.test(o)?o.toLowerCase():o};return n(e)===n(t)}const Hw=[];function Vw({open:e,onOpenChange:t,onOpen:n,onBrowse:s,recent:o=Hw,initialPath:r,onPick:a,title:c="Open a repository",description:_=a?"Browse folders or paste a path to an existing Git repository.":"Browse folders on your server or paste a Git repository path.",confirmLabel:f="Open repository"}){const[p,m]=d.useState(null),[h,b]=d.useState(""),[k,C]=d.useState(""),[g,S]=d.useState(!1),[w,P]=d.useState(null),[j,N]=d.useState(""),[A,I]=d.useState(!1),[B,L]=d.useState(!1),[D,V]=d.useState(!1),[X,ye]=d.useState(null),[je,F]=d.useState(null),Z=d.useRef(0),R=d.useRef(!1),Q=d.useRef(null),ee=d.useRef(null),pe=d.useRef(null),ze=d.useRef(null),ve=d.useRef(null),O=d.useRef(null),H=d.useMemo(()=>{const z=[...o].sort((ae,fe)=>fe.lastOpenedAt.localeCompare(ae.lastOpenedAt));return z.filter((ae,fe)=>z.findIndex(Ke=>_n(Ke.path,ae.path))===fe).slice(0,4)},[o]),K=H[0]?Fa(H[0].path):null,se=r??K??void 0,ne=d.useCallback(async z=>{if(R.current)return;O.current=document.activeElement===Q.current?"path":ee.current?.contains(document.activeElement)?"folders":null;const ae=++Z.current;L(!0),P(null),ye(null),F(null),N(""),S(!1),b(z??""),C(z??"");try{const fe=await s(z);if(ae!==Z.current)return;m(fe),b(fe.path),C(fe.path),fe.repository&&P({name:qa(fe.path),path:fe.path,repository:fe.repository})}catch(fe){ae===Z.current&&ye(oi(fe,"Could not browse this folder."))}finally{ae===Z.current&&L(!1)}},[s]);d.useEffect(()=>{e&&(m(null),I(!1),ne(se));const z=Z;return()=>{z.current++}},[e,ne,se]),d.useEffect(()=>{g&&(Q.current?.focus(),Q.current?.select())},[g]),d.useEffect(()=>{if(B||!O.current)return;const z=O.current==="path"&&p?.repository&&!X?ve.current:ee.current?.querySelector(".repository-folder-select")??ze.current;O.current=null,z?.focus()},[B,p,X]);const oe=z=>{P(z),F(null)},ue=async(z=w)=>{if(!(!z?.repository||B||g||X||R.current)){R.current=!0,V(!0),F(null);try{await n(z.path),t(!1)}catch(ae){F(oi(ae,"Could not open this repository."))}finally{R.current=!1,V(!1)}}},U=async()=>{if(!(!a||R.current)){R.current=!0,V(!0),F(null);try{const z=await a();R.current=!1,z&&await ne(z)}catch(z){F(oi(z,"Could not choose a folder."))}finally{R.current=!1,V(!1)}}},W=(p?.directories??[]).filter(z=>(A||!z.name.startsWith("."))&&z.name.toLocaleLowerCase().includes(j.toLocaleLowerCase())),Pe=h?Fa(h):null,Ye=!!(w?.repository&&!B&&!D&&!X&&!g),$e=p&&_n(h,p.path)&&p.repository,nt=p?.locations??[{name:"Home",path:"",kind:"home"}],rt=()=>{D||(C(h),S(!0))},Jt=()=>{ze.current?.focus(),S(!1),C(h)},bn=z=>{z.preventDefault(),rt()},Ct=z=>{if(D)return;if((z.ctrlKey||z.metaKey)&&z.key.toLowerCase()==="l"){z.preventDefault(),rt();return}if(z.target.closest("input, textarea, select"))return;if((z.key==="Backspace"||z.altKey&&z.key==="ArrowUp")&&Pe){z.preventDefault(),ne(Pe);return}const ae=Array.from(ee.current?.querySelectorAll(".repository-folder-select")??[]),fe=ae.indexOf(document.activeElement);if(["ArrowDown","ArrowUp"].includes(z.key)&&ae.length){z.preventDefault();const Ke=fe<0?z.key==="ArrowDown"?0:ae.length-1:(fe+(z.key==="ArrowDown"?1:-1)+ae.length)%ae.length;ae[Ke]?.focus();const ft=W[Ke];ft&&oe(ft)}else if(fe>=0&&(z.key==="Enter"||z.key==="ArrowRight")){z.preventDefault();const Ke=W[fe];if(!Ke)return;z.key==="Enter"&&Ke.repository?(oe(Ke),ue(Ke)):ne(Ke.path)}};return i.jsx(bt,{open:e,onOpenChange:z=>{R.current||t(z)},children:i.jsxs(kt,{className:"repository-browser",initialFocus:pe,onKeyDown:Ct,children:[i.jsxs("header",{className:"repository-browser-header",children:[i.jsxs("div",{className:"repository-browser-heading",children:[i.jsx(wt,{children:c}),i.jsx(xt,{children:_})]}),i.jsx(Ks,{label:"Close dialog",buttonRef:pe,disabled:D,onClick:()=>t(!1),children:i.jsx(Ln,{})})]}),i.jsxs("div",{className:"repository-browser-body",children:[i.jsxs("nav",{className:"repository-browser-places","aria-label":"Folder locations",children:[i.jsxs("section",{children:[i.jsx("h3",{children:"Locations"}),nt.map(z=>i.jsxs("button",{type:"button",className:`repository-place${z.path&&_n(z.path,h)?" active":""}`,disabled:D,onClick:()=>{ne(z.path||void 0)},children:[z.kind==="home"?i.jsx(jd,{"aria-hidden":"true"}):z.kind==="documents"?i.jsx(fd,{"aria-hidden":"true"}):i.jsx(Cd,{"aria-hidden":"true"}),i.jsx("span",{children:z.name})]},z.kind)),K&&!nt.some(z=>_n(z.path,K))&&i.jsxs("button",{type:"button",className:`repository-place${_n(K,h)?" active":""}`,disabled:D,onClick:()=>{ne(K)},children:[i.jsx(ts,{"aria-hidden":"true"}),i.jsx("span",{children:"Workspaces"})]})]}),H.length>0&&i.jsxs("section",{className:"repository-browser-recents",children:[i.jsx("h3",{children:"Recent repositories"}),H.map(z=>i.jsxs(ke,{children:[i.jsxs(we,{render:i.jsx("button",{type:"button",className:"repository-place",disabled:D,onClick:()=>{ne(z.path)}}),children:[i.jsx(td,{"aria-hidden":"true"}),i.jsx("span",{children:z.name})]}),i.jsx(xe,{children:z.path})]},z.id))]}),i.jsxs("div",{className:"repository-browser-source",children:[a?i.jsx(sd,{"aria-hidden":"true"}):i.jsx(Er,{"aria-hidden":"true"}),i.jsx("span",{children:a?"Folders on this computer":"Folders on your server"})]}),a&&i.jsx(G,{type:"button",variant:"outline",size:"sm",disabled:D,onClick:()=>{U()},children:"Choose a folder…"})]}),i.jsxs("section",{className:"repository-browser-main","aria-label":"Folder browser",children:[i.jsxs("div",{className:"repository-browser-navigation",children:[i.jsx(Ks,{label:"Go to parent folder",disabled:D||!Pe,onClick:()=>{Pe&&ne(Pe)},children:i.jsx(jo,{})}),i.jsxs("form",{className:"repository-browser-location",onSubmit:z=>{z.preventDefault(),k.trim()&&!D&&ne(k.trim())},children:[g?i.jsx("input",{ref:Q,id:"repository-path",className:"repository-browser-path-input","aria-label":"Folder path",value:k,onChange:z=>C(z.target.value),onKeyDown:z=>{z.key==="Escape"&&(z.preventDefault(),z.stopPropagation(),Jt())},placeholder:"Paste an absolute folder path",autoComplete:"off",autoCapitalize:"none",autoCorrect:"off",spellCheck:!1,disabled:D}):i.jsx("nav",{className:"repository-browser-breadcrumbs","aria-label":"Current folder",children:h?or(h).map((z,ae,fe)=>i.jsxs("span",{className:ae>0&&ae<fe.length-2?"repository-breadcrumb-middle":void 0,children:[ae>0&&i.jsx(Ys,{"aria-hidden":"true"}),ae===fe.length-2&&fe.length>3&&i.jsx("button",{type:"button",className:"repository-breadcrumb-elision","aria-label":"Enter full folder path",disabled:D,onClick:rt,children:"…"}),ae===fe.length-2&&fe.length>3&&i.jsx(Ys,{className:"repository-breadcrumb-elision-icon","aria-hidden":"true"}),i.jsxs(ke,{children:[i.jsx(we,{render:i.jsx("button",{type:"button",disabled:D,"aria-current":ae===fe.length-1?"location":void 0,onClick:()=>{ne(z.path)}}),children:ae===0&&z.name==="/"?i.jsx(Er,{"aria-label":"Filesystem root"}):z.name}),i.jsx(xe,{children:z.path})]})]},z.path)):i.jsx("span",{className:"repository-browser-home-label",children:"Home"})}),!g&&i.jsx("kbd",{className:"repository-path-shortcut",children:"Ctrl L"}),i.jsx(Ks,{buttonRef:ze,label:g?"Go to folder":"Enter a folder path",type:g?"submit":"button",disabled:D||g&&!k.trim(),onClick:g?void 0:bn,children:g?i.jsx(Rr,{}):i.jsx(Dd,{})})]})]}),i.jsxs("div",{className:"repository-browser-tools",children:[i.jsxs("strong",{children:["Folders ",i.jsx("span",{children:B?"":X?"0":W.length})]}),i.jsxs("label",{className:"repository-browser-filter",children:[i.jsx(ls,{"aria-hidden":"true"}),i.jsx("input",{"aria-label":"Filter folders",placeholder:"Filter folders…",value:j,onChange:z=>{N(z.target.value),P(null),F(null)},disabled:D||B||!!X})]})]}),!B&&!X&&$e&&i.jsxs("div",{className:"repository-current-banner",children:[i.jsxs("span",{children:[i.jsx(pn,{"aria-hidden":"true"}),"This folder is a Git repository"]}),i.jsx("button",{type:"button",disabled:D,onClick:()=>{p&&oe({name:qa(p.path),path:p.path,repository:p.repository})},children:"Select this repository"})]}),i.jsx("div",{className:"repository-browser-folders",ref:ee,"aria-label":"Folders","aria-busy":B,children:B?i.jsxs("div",{className:"repository-browser-loading",role:"status",children:[i.jsx("span",{className:"sr-only",children:"Loading folders…"}),[0,1,2,3].map(z=>i.jsx("div",{className:"repository-folder-skeleton"},z))]}):X?i.jsxs("div",{className:"repository-browser-state",role:"alert",children:[i.jsx(zr,{"aria-hidden":"true"}),i.jsx("strong",{children:"Could not browse this folder"}),i.jsx("p",{children:X}),i.jsxs("div",{children:[i.jsx("button",{type:"button",disabled:D,onClick:rt,children:"Edit path"}),i.jsx("button",{type:"button",disabled:D,onClick:()=>{ne(h||void 0)},children:"Try again"})]})]}):W.length===0?i.jsxs("div",{className:"repository-browser-state",children:[j?i.jsx(ls,{"aria-hidden":"true"}):i.jsx(ts,{"aria-hidden":"true"}),i.jsx("strong",{children:j?"No matching folders":"No subfolders here"}),i.jsx("p",{children:j?"Try a different name or clear the filter.":$e?"You can open this repository below.":"Browse another location or paste the path to your repository."}),j?i.jsx("button",{type:"button",onClick:()=>N(""),children:"Clear filter"}):Pe&&i.jsx("button",{type:"button",disabled:D,onClick:()=>{ne(Pe)},children:"Go to parent folder"})]}):W.map(z=>i.jsxs("div",{className:`repository-folder-row${w&&_n(w.path,z.path)?" selected":""}`,onDoubleClick:()=>{D||ne(z.path)},children:[i.jsxs(ke,{children:[i.jsxs(we,{render:i.jsx("button",{type:"button",className:"repository-folder-select","aria-pressed":!!(w&&_n(w.path,z.path)),"aria-label":`Select ${z.repository?"repository":"folder"} ${z.name}`,disabled:D,onClick:()=>oe(z)}),children:[i.jsx("span",{className:`repository-folder-icon${z.repository?" git":""}`,children:z.repository?i.jsx(Hf,{"aria-hidden":"true"}):i.jsx(ts,{"aria-hidden":"true"})}),i.jsxs("span",{className:"repository-folder-copy",children:[i.jsx("strong",{children:z.name}),i.jsx("small",{children:z.repository?"Git repository":"Folder"})]}),z.repository&&i.jsxs("span",{className:"repository-folder-branch",children:[i.jsx(Mn,{"aria-hidden":"true"}),i.jsx("span",{children:z.repository.branch??"Detached HEAD"})]})]}),i.jsx(xe,{children:i.jsxs("div",{className:"repository-folder-tooltip",children:[i.jsx("span",{children:z.path}),z.repository&&i.jsxs("span",{children:["Branch: ",z.repository.branch??"Detached HEAD"]})]})})]}),i.jsx(Ks,{label:`Browse ${z.name}`,disabled:D,onClick:()=>{ne(z.path)},children:i.jsx(Ys,{})})]},z.path))}),i.jsxs("div",{className:"repository-browser-list-footer",children:[i.jsxs("label",{children:[i.jsx("input",{type:"checkbox",checked:A,onChange:z=>{I(z.target.checked),P(null),F(null)},disabled:D}),"Show hidden folders"]}),i.jsx("span",{children:"Select a repository to open it"})]})]})]}),je&&i.jsxs("p",{role:"alert",className:"repository-browser-open-error",children:[i.jsx(zr,{"aria-hidden":"true"}),je]}),i.jsxs("footer",{className:"repository-browser-footer",children:[i.jsxs("div",{className:"repository-browser-selection","aria-live":"polite",children:[i.jsx("span",{className:`repository-selection-icon${w?.repository?" ready":""}`,children:w?.repository?i.jsx(pn,{"aria-hidden":"true"}):i.jsx(ts,{"aria-hidden":"true"})}),i.jsxs("div",{children:[i.jsxs("strong",{children:[w?.name??(B?"Loading folders…":"Choose a repository"),w?.repository&&i.jsx("span",{children:"Git repository"})]}),i.jsxs(ke,{children:[i.jsx(we,{render:i.jsx("span",{className:"repository-selection-path",tabIndex:w?0:void 0}),children:g?"Press Enter to browse the path before opening.":w?.path??"Select a Git repository from the list."}),i.jsx(xe,{children:w?.path??"Select a Git repository from the list."})]})]})]}),i.jsxs("div",{className:"repository-browser-actions",children:[i.jsx(G,{type:"button",variant:"ghost",disabled:D,onClick:()=>t(!1),children:"Cancel"}),i.jsx(G,{ref:ve,type:"button",disabled:!Ye,onClick:()=>{ue()},children:D?i.jsxs(i.Fragment,{children:[i.jsx(_t,{className:"animate-spin"}),"Working…"]}):i.jsxs(i.Fragment,{children:[f,i.jsx(Rr,{"aria-hidden":"true"})]})})]})]})]})})}function Ks({label:e,disabled:t,onClick:n,children:s,type:o="button",buttonRef:r}){return i.jsxs(ke,{children:[i.jsx(we,{render:i.jsx("button",{ref:r,type:o,className:"repository-browser-icon-button","aria-label":e,disabled:t,onClick:n}),children:s}),i.jsx(xe,{children:e})]})}function oi(e,t){return e instanceof Error?e.message:t}function Ww({recent:e,onOpen:t,onRecent:n}){const s=d.useMemo(()=>yl(e),[e]),o=ml(s);return i.jsxs("div",{className:"welcome",children:[window.opentigDesktop&&i.jsx("div",{className:"welcome-titlebar","aria-hidden":"true"}),i.jsx("h1",{children:i.jsx(Mi,{})}),i.jsx("p",{children:"Open a repository to review changes, explore files, and create commits."}),i.jsxs(G,{size:"lg",onClick:t,children:[i.jsx(ud,{})," Open repository"]}),s.length>0&&i.jsxs("section",{children:[i.jsx("h2",{children:"Repositories"}),s.map(r=>i.jsxs("button",{onClick:()=>n(r.recent.id),children:[i.jsx(mo,{src:o.get(r.key),fallback:i.jsx(ts,{"aria-hidden":"true"})}),i.jsxs("span",{children:[i.jsx("strong",{children:r.name}),i.jsx("small",{children:r.rootPath})]})]},r.key))]}),i.jsx("small",{className:"shortcut",children:"Ctrl+O to open · Ctrl+R to refresh"})]})}const Kw=138,Jw=78;function Qw(e){const{rect:t,viewportWidth:n,mac:s,desktop:o}=e;return o?t&&t.width>0?{left:Math.max(0,Math.round(t.x)),right:Math.max(0,Math.round(n-t.x-t.width)),height:Math.max(0,Math.round(t.height))}:s?{left:Jw,right:0,height:0}:{left:0,right:Kw,height:0}:{left:0,right:0,height:0}}function Xw(e){return e==="connected"?"Restoring your workspace.":e==="reconnecting"?"Reconnecting to the local server.":"Connecting to the local server."}function Yw(e,t){if(t.length===0)return e&&e.length>0?"dismiss":"none";if(!e)return"show";const n=new Set(e);return t.some(s=>!n.has(s))?"show":"none"}function Za(e){return`repository-sync:${e}:pull`}function Si(e){return e==="codex"?"Codex":e==="claude"?"Claude Code":e==="grok"?"Grok Build":"OpenCode"}function ex(e,t,n){return e?.find(s=>s.id===t)?.models.find(s=>s.id===n)?.label??(n==="default"?"Default (CLI)":n)}const tx=d.lazy(()=>Tt(()=>import("./Viewer-BCk8FHrc.js"),__vite__mapDeps([11,2,1,3,4,5]))),nx=d.lazy(()=>Tt(()=>import("./FilesView-TmUF-VLr.js"),__vite__mapDeps([12,1,3,4,2,5,10,6])).then(e=>({default:e.FilesView}))),sx=d.lazy(()=>Tt(()=>import("./HistoryView-Go6rXO0P.js"),__vite__mapDeps([13,1,3,4,2,5])).then(e=>({default:e.HistoryView}))),ox=d.lazy(()=>Tt(()=>import("./SearchView-HoiWKG8z.js"),__vite__mapDeps([14,1,3,4,2,5])).then(e=>({default:e.SearchView}))),ix=d.lazy(()=>Tt(()=>import("./PullRequestsView-BG0xrok4.js"),__vite__mapDeps([15,1,16,2,3,4,5,8])).then(e=>({default:e.PullRequestsView}))),rx=d.lazy(()=>Tt(()=>import("./QuickOpenDialog-DpmcAzTx.js"),__vite__mapDeps([17,1,2,3,4,5])).then(e=>({default:e.QuickOpenDialog}))),ax=d.lazy(()=>Tt(()=>import("./CreatePullRequestDialog-DRLeMY4e.js"),__vite__mapDeps([18,2,1,3,4,5,8,19,20,21])).then(e=>({default:e.CreatePullRequestDialog}))),Js=i.jsxs("div",{className:"view-loading",role:"status",children:[i.jsx(_t,{className:"spinner"})," ",i.jsx(Fn,{text:"Loading…"})]}),cx=[],ii=["changes","files","history","prs","search"];class Qs extends Error{constructor(t){super(t.status),this.result=t}result}class Xs extends Error{constructor(t){super(t.status),this.result=t}result}function lx(){const e=mn(),t=hw(),n=Lo(),[s,o]=d.useState(!1),r=d.useRef(!1),[a,c]=d.useState(null),[_,f]=d.useState("list"),[p,m]=d.useState("unified"),[h,b]=d.useState(null),[k,C]=d.useState(null),[g,S]=d.useState(null),[w,P]=d.useState(null),[j,N]=d.useState(null),[A,I]=d.useState(0),[B,L]=d.useState({canUndo:!1,undoLabel:null,canRedo:!1,redoLabel:null}),[D,V]=d.useState([]),[X,ye]=d.useState([]),[je,F]=d.useState(null),[Z,R]=d.useState("changes"),[Q,ee]=d.useState(null),[pe,ze]=d.useState(""),[ve,O]=d.useState(null),[H,K]=d.useState(null),[se,ne]=d.useState(()=>new Set),[oe,ue]=d.useState(!1),[U,W]=d.useState(null),[Pe,Ye]=d.useState(()=>new Map),[$e,nt]=d.useState(0),[rt,Jt]=d.useState(0),[bn,Ct]=d.useState(!1),[z,ae]=d.useState("general"),[fe,Ke]=d.useState(null),[ft,Qt]=d.useState(null),[Ft,At]=d.useState(!1),[st,Xt]=d.useState(["OPEN"]),[Kn,ot]=d.useState(!1),[Yt,kn]=d.useState(!1),[xs,qt]=d.useState(()=>new Map),[wn,js]=d.useState(null),[Zt,en]=d.useState(null),[Dt,tn]=d.useState(null),[De,Je]=d.useState(!1),Ze=d.useRef(null),Ie=d.useRef(null),Me=d.useRef(null),Ee=d.useRef(null),Te=d.useRef(new Map),at=d.useRef(null),[he]=d.useState(()=>new Map),de=d.useRef(null),ce=d.useRef(xs),Ue=d.useRef(new Map),He=d.useRef(new Map),It=d.useRef(0),gt=d.useRef(!1),ct=d.useRef(null),nn=d.useRef(!1),Ps=d.useRef(null),Cs=d.useRef(""),ir=d.useRef(new Map),Ss=d.useRef(new Map),xn=V_({queryKey:ie.history(g?.id??""),queryFn:({pageParam:l})=>T.commits.list(g.id,l),initialPageParam:void 0,getNextPageParam:l=>l.nextCursor??void 0,enabled:g!==null&&Z==="history"}),rr=xn.data?xn.data.pages.flatMap(l=>l.commits):null,ar=xn.hasNextPage?xn.data?.pages.at(-1)?.nextCursor??null:null,sn=Et({queryKey:ie.githubInfo(g?.id??""),queryFn:async()=>{try{return await T.github.repositoryInfo(g.id)}catch{return{isGitHub:!1,nameWithOwner:null}}},enabled:g!==null}).data??null,jn=Et({queryKey:ie.githubCliStatus,queryFn:()=>T.github.status(!0),enabled:h!==null,staleTime:1/0}),Fo=jn.data??null,Bl=Gm(g&&sn?.isGitHub?g.id:null).data??null;d.useEffect(()=>T.events.onGitHubAccountsChanged((l,u)=>{I_(e,l,u)}),[e]);const Pn=Et({queryKey:ie.pulls(g?.id??"",st),queryFn:async()=>{try{return st.length?await T.github.listPullRequests(g.id,st):[]}catch(l){throw Il(l)?.code==="GH_CLI_NOT_FOUND"&&e.invalidateQueries({queryKey:ie.githubCliStatus}),l}finally{const l=await T.github.repositoryAccount(g.id,!1);e.setQueryData(ie.githubAccount(g.id),l)}},enabled:Z==="prs"&&g!==null&&sn?.isGitHub===!0&&Fo?.installed===!0}),zs=Pn.data??null,Gl=Pn.isFetching||jn.isFetching,Ul=jn.error?be(jn.error):Pn.error?be(Pn.error):null;d.useEffect(()=>{f("list")},[g?.id]);const Rs=je===g?.id,q=Rs?w:null,Ns=Rs?j:null,qo=Rs?D:[],Hl=Rs?X:[],$s=q&&!q.detached&&!q.unborn?q.branch:null,Es=Et({queryKey:ie.branchPullRequest(g?.id??"",$s??""),queryFn:()=>T.github.findPullRequestForBranch(g.id,$s),enabled:g!==null&&sn?.isGitHub===!0&&$s!==null&&Fo?.installed===!0,staleTime:6e4,refetchInterval:6e4}),Vl=$s&&sn?.isGitHub&&!Es.isError&&(Es.data?.state==="OPEN"||Es.data?.state==="MERGED")?Es.data:null,cr=h?.openFilesStates??cx,Wl=d.useSyncExternalStore(Ko.transport.subscribeState,Ko.transport.getState,Ko.transport.getState),Jn=h?.preferences.theme??"system",Kl=n?p:h?.preferences.diffView??"unified",Jl=h?.preferences.wrapLines??!1,lr=h?.preferences.uiZoom??100,_r=h?.preferences.uiFont??"plus-jakarta-sans",fr=h?.preferences.monoFont??"jetbrains-mono",Cn=d.useMemo(()=>Rc(h?.preferences.shortcutOverrides),[h?.preferences.shortcutOverrides]);d.useEffect(()=>{let l=!0;return T.app.bootstrap().then(u=>{if(l){he.clear();for(const y of u.filesTreeStates)he.set(y.repositoryId,[...y.expandedPaths]);b(u),S(u.activeRepository)}}).catch(u=>{!l||u instanceof M_||it("Could not start OpenTig",u)}),T.app.capabilities().then(u=>{l&&C(u)}).catch(()=>{}),()=>{l=!1}},[he]),d.useLayoutEffect(()=>{const l=navigator.windowControlsOverlay,u=()=>{const y=l?.visible?l.getTitlebarAreaRect():null,v=Qw({rect:y,viewportWidth:window.innerWidth,mac:navigator.userAgent.includes("Mac OS X"),desktop:!!window.opentigDesktop});document.documentElement.style.setProperty("--window-controls-inset",`${v.right}px`),document.documentElement.style.setProperty("--window-controls-inset-left",`${v.left}px`),v.height>0?document.documentElement.style.setProperty("--toolbar-height",`${v.height}px`):document.documentElement.style.removeProperty("--toolbar-height")};return u(),l?.addEventListener("geometrychange",u),window.addEventListener("resize",u),()=>{l?.removeEventListener("geometrychange",u),window.removeEventListener("resize",u)}},[]),d.useLayoutEffect(()=>{if(!h)return;const l=window.matchMedia("(prefers-color-scheme: dark)"),u=()=>{const y=Jn==="dark"||Jn==="system"&&l.matches;document.documentElement.classList.toggle("dark",y),document.documentElement.classList.toggle("light",!y),B_(Jn),T.app.setTitleBarTheme(y).catch(()=>{})};return u(),l.addEventListener("change",u),()=>l.removeEventListener("change",u)},[h,Jn]),d.useEffect(()=>{T.app.setZoomFactor(n?1:lr/100)},[lr,n]),d.useLayoutEffect(()=>{document.documentElement.dataset.uiFont=_r,document.documentElement.dataset.monoFont=fr},[fr,_r]),d.useEffect(()=>{if(!h?.performanceAutomation)return;window.__opentigPerformanceAutomation=!0,window.__opentigPerformanceResults=[];const l=u=>{const y=u.detail;if(!y||typeof y!="object")return;const v=y;if(v.type==="refresh"){nt(x=>x+1),Jt(x=>x+1);return}if(v.type==="view"&&(v.view==="changes"||v.view==="files"||v.view==="history"||v.view==="prs")){R(v.view);return}v.type==="selection"&&px(v.selection)&&(Ie.current=v.selection,ee(v.selection))};return window.addEventListener("opentig:performance-action",l),()=>{window.removeEventListener("opentig:performance-action",l),delete window.__opentigPerformanceAutomation,delete window.__opentigPerformanceResults}},[h?.performanceAutomation]),d.useEffect(()=>{Ze.current=Ns},[Ns]),d.useEffect(()=>{de.current=g},[g]);const mt=d.useCallback((l,u)=>{const y=ce.current.get(l)??pt;if(u===y)return y;const v=new Map(ce.current);v.set(l,u),ce.current=v,qt(v);const x=ba(u),E=JSON.stringify(x);return Ue.current.get(l)!==E&&(Ue.current.set(l,E),T.app.setOpenFilesState(l,x.tabs,x.activePath,x.previewPath).catch(()=>{})),u},[]),St=d.useCallback((l,u)=>{const y=ce.current.get(l)??pt;return mt(l,u(y))},[mt]),Mt=d.useCallback(l=>{const u=l?{type:"file",path:l}:null;Ie.current=u,ee(u),l||f(y=>y==="viewer"?"list":y)},[]),dt=d.useCallback((l,u)=>{const y=He.current.get(l);if(!y)return;const v=y.get(u);v&&(It.current-=ni(v.content),y.delete(u),y.size===0&&He.current.delete(l))},[]),Ql=d.useCallback((l,u)=>{if(u.size===0)return;const y=He.current.get(l);if(!y)return;const v=new Map;for(const[x,E]of y)v.set(u.get(x)??x,E);He.current.set(l,v)},[]),Zo=d.useCallback((l,u)=>He.current.get(l)?.get(u)??null,[]),Ts=d.useCallback(()=>{const l=de.current?.id;return(l?ce.current.get(l):void 0)??pt},[]),Os=d.useCallback(l=>Nb(Ts(),l),[Ts]),Xl=d.useCallback(()=>ka(Ts()),[Ts]),Yl=d.useCallback((l,u,y,v)=>{const x=de.current?.id;if(!x)return;let E=He.current.get(x);E||(E=new Map,He.current.set(x,E));const te=E.get(l);if(!(u!==y)){te&&dt(x,l),St(x,Oe=>Us(Oe,l,!1));return}It.current+=ni(u)-(te?ni(te.content):0),E.set(l,{content:u,expectedContent:te?.expectedContent??y,expectedMtimeMs:te?.expectedMtimeMs??v}),!gt.current&&It.current>wb&&(gt.current=!0,M.warning({title:"Unsaved changes are using a lot of memory",description:"Save or close some open files.",duration:1e4})),te||St(x,Oe=>Us(Oe,l,!0))},[dt,St]);d.useEffect(()=>{Ie.current=Q},[Q]);const As=d.useCallback(l=>{const u=Ze.current,y=u!==null&&ao(u)===ao(l);Ze.current=y&&u?u:l,y||N(l),I(Be=>Be+1);const v=de.current?.id,x=v?ce.current.get(v):void 0;if(v&&x&&x.tabs.length>0){const Be=_x(l),Oe=[],Ve=new Set;for(const Lt of x.tabs){const zt=fx(Be,Lt.path);zt==="present"?Ve.add(Lt.path):zt==="missing"&&Me.current!==Lt.path&&Oe.push(Lt.path)}if(Oe.length>0||Ve.size>0){const Lt=Cb(x,Ve),zt=va(Lt,Oe);for(const zn of zt.closedPaths)dt(v,zn);for(const zn of zt.retainedPaths)M.info({title:"File no longer exists",description:`${zn} — unsaved changes are still open`});const Ms=mt(v,zt.session),Ae=Ie.current;if(Ae?.type==="file"&&zt.closedPaths.includes(Ae.path)){const zn=Ms.activePath?{type:"file",path:Ms.activePath}:null;Ie.current=zn,ee(zn),M.info({title:"File no longer exists",description:Ae.path})}}}const E=Ie.current;if(E?.type!=="file")return;const te=Oc(l,E.path);if(te==="missing")return Me.current===E.path,void 0;Me.current===E.path&&(Me.current=null),te==="present"&&u&&ly(u,l,E.path)&&nt(Be=>Be+1)},[mt,dt]),Bt=d.useCallback(async()=>{if(!g)return;const l=g.id;try{const u=await e.fetchQuery({queryKey:ie.files(l),queryFn:()=>T.repository.getFiles(l)});de.current?.id===l&&As(u)}catch(u){de.current?.id===l&&it("Could not refresh files",u)}},[As,e,g]),e_=d.useCallback(async l=>{if(!g)return[];try{return await T.repository.getDirectoryEntries(g.id,l)}catch(u){return M.error({title:"Could not read folder",description:be(u)}),[]}},[g]),on=d.useCallback(async()=>{if(!g)return;const l=g.id,u=await e.fetchQuery({queryKey:ie.fileHistory(l),queryFn:()=>T.repository.fileHistoryState(l)});de.current?.id===l&&L(u)},[e,g]);d.useEffect(()=>{if(!g){L({canUndo:!1,undoLabel:null,canRedo:!1,redoLabel:null});return}on()},[on,g]);const dr=d.useCallback(async(l,u)=>{const{background:y,manual:v,scope:x,view:E}=u,te=G_(x,E),Be=U_(x,E);y||(at.current="refresh",W("refresh"));try{if(v){Mo().check().catch(()=>{});try{const Ae=await T.refs.fetch(l);if(Ae.status==="failed")throw new Error(Ae.message)}catch(Ae){de.current?.id===l&&it("Could not fetch remote changes",Ae)}}await Promise.all(Be.map(Ae=>e.invalidateQueries({queryKey:Ae==="status"?ie.status(l):Ae==="branches"?ie.branches(l):Ae==="worktrees"?ie.worktrees(l):Ae==="files"?ie.files(l):ie.history(l),exact:!0,refetchType:"none"})));const[Oe,Ve,Lt,zt,Ms]=await Promise.all([e.fetchQuery({queryKey:ie.status(l),queryFn:()=>T.repository.getStatus(l)}),te.branches?e.fetchQuery({queryKey:ie.branches(l),queryFn:()=>T.refs.listBranches(l)}):Promise.resolve(null),te.worktrees?e.fetchQuery({queryKey:ie.worktrees(l),queryFn:()=>T.refs.listWorktrees(l)}):Promise.resolve(null),te.files?e.fetchQuery({queryKey:ie.files(l),queryFn:()=>T.repository.getFiles(l)}):Promise.resolve(null),te.history?e.fetchInfiniteQuery({queryKey:ie.history(l),queryFn:({pageParam:Ae})=>T.commits.list(l,Ae),initialPageParam:void 0,getNextPageParam:Ae=>Ae.nextCursor??void 0}):Promise.resolve(null)]);if(de.current?.id!==l)return;F(l),P(Oe),Ve&&V(Ve),Lt&&ye(Lt),zt&&As(zt),L_(x,Ie.current?.type??null)&&nt(Ae=>Ae+1),F_(x)&&Jt(Ae=>Ae+1),y||(e.invalidateQueries({queryKey:ie.githubInfo(l)}),e.invalidateQueries({queryKey:["repository",l,"branch-pull-request"]}))}catch(Oe){de.current?.id===l&&it("Could not refresh",Oe)}finally{!y&&de.current?.id===l&&(at.current=null,W(null))}},[As,e]),le=d.useCallback(l=>{if(!g)return Promise.resolve();const u=g.id,y={...l?.manual?{manual:!0}:{},background:l?.background===!0,scope:l?.scope??"unknown",view:Z},v=Ss.current.get(u);if(v)return v.queued=v.queued?q_(v.queued,y):y,v.promise;const x={queued:null,promise:Promise.resolve()};return x.promise=(async()=>{let E=y;for(;E;)await dr(u,E),E=x.queued,x.queued=null})().finally(()=>{Ss.current.get(u)===x&&Ss.current.delete(u)}),Ss.current.set(u,x),x.promise},[dr,g,Z]);d.useEffect(()=>{at.current=U},[U]);const Bo=h?.preferences.remoteFetchIntervalSeconds??jw;d.useEffect(()=>{if(!g||a||Bo<=0)return;const l=g.id;let u=!1,y=!1;const v=async()=>{if(!(u||y||r.current||document.visibilityState==="hidden")&&!(at.current||Te.current.has(l))){y=!0;try{const te=await T.refs.fetch(l);if(u||de.current?.id!==l||te.status!=="success")return;await le({background:!0,scope:"refs"})}catch{}finally{y=!1}}};v();const x=window.setInterval(()=>{v()},Bo*1e3),E=()=>{document.visibilityState==="visible"&&v()};return document.addEventListener("visibilitychange",E),()=>{u=!0,window.clearInterval(x),document.removeEventListener("visibilitychange",E)}},[le,Bo,g,a]),d.useEffect(()=>{F(null),Uw(),Ze.current=null,N(null),ot(!1),kn(!1)},[g?.id]);const pr=d.useCallback(async(l,u=!1)=>{if(u){const y=await jn.refetch();if(y.isError||!y.data?.installed)return;g&&await Promise.all([e.invalidateQueries({queryKey:["repository",g.id,"pull-request-stack"]}),e.invalidateQueries({queryKey:["repository",g.id,"pull-request"]})])}g&&e.invalidateQueries({queryKey:["repository",g.id,"branch-pull-request"]}),await Pn.refetch()},[e,jn,Pn,g]);d.useEffect(()=>{le()},[le,g?.id,Z]),d.useEffect(()=>{const l=g?.id;if(!l){Mt(null);return}let u=ce.current.get(l);if(!u){u=Sb(cr.find(v=>v.repositoryId===l)??null);const y=new Map(ce.current);y.set(l,u),ce.current=y,qt(y),Ue.current.set(l,JSON.stringify(ba(u)))}Mt(Z==="files"?u.activePath:null)},[cr,g?.id,Mt,Z]),d.useEffect(()=>T.events.onRepositoryChanged((l,u)=>{l===g?.id&&le({background:!0,scope:u})}),[le,g?.id]),d.useEffect(()=>{if(!h?.performanceAutomation)return;const l=u=>{const y=u.detail;if(!y||typeof y!="object")return;const v=y;if(v.type!=="refresh-burst")return;const x=Math.max(1,Math.min(100,Math.round(Number(v.count)||20)));for(let E=0;E<x;E+=1){const te=E===x-1?"refs":"worktree";le({background:!0,scope:te})}};return window.addEventListener("opentig:performance-action",l),()=>window.removeEventListener("opentig:performance-action",l)},[h?.performanceAutomation,le]),d.useEffect(()=>{if(Z!=="files"||!g)return;const l=()=>{document.visibilityState==="visible"&&Bt()},u=window.setInterval(l,5e3);return document.addEventListener("visibilitychange",l),()=>{window.clearInterval(u),document.removeEventListener("visibilitychange",l)}},[Bt,g,Z]);const rn=d.useCallback((l,u)=>{if(u&&u!==l.id){const y=he.get(u);he.delete(u),y&&he.set(l.id,y);const v=ce.current.get(u);if(v){const te=new Map(ce.current);te.delete(u),te.set(l.id,v),ce.current=te,qt(te)}const x=He.current.get(u);x&&(He.current.delete(u),He.current.set(l.id,x));const E=Ue.current.get(u);E&&(Ue.current.delete(u),Ue.current.set(l.id,E))}S(l),b(y=>{if(!y)return y;const v=u&&u!==l.id?y.recentRepositories.find(E=>E.id===u):null;let x=y.repositoryProjects;if(v){const E=$t(v.commonDir),te=$t(l.commonDir),Be=x.some(Oe=>Oe.repositoryKeys.some(Ve=>Ve===te&&Ve!==E));x=x.map(Oe=>({...Oe,repositoryKeys:[...new Set(Oe.repositoryKeys.flatMap(Ve=>Ve!==E?[Ve]:Be?[]:[te]))]}))}return{...y,activeRepository:l,repositoryProjects:x,recentRepositories:Wb(y.recentRepositories.flatMap(E=>E.id===u?[{...l,lastOpenedAt:E.lastOpenedAt}]:v&&E.id===l.id?[]:[E]),l),filesTreeStates:v?sy(y.filesTreeStates.map(E=>E.repositoryId===u?{...E,repositoryId:l.id}:E)):y.filesTreeStates,openFilesStates:v?yb(y.openFilesStates.map(E=>E.repositoryId===u?{...E,repositoryId:l.id}:E)):y.openFilesStates}})},[he]),Ds=d.useCallback(async()=>{o(!0)},[]);d.useEffect(()=>T.events.onActiveRepositoryChanged(l=>{l.id!==de.current?.id&&rn(l)}),[rn]),d.useEffect(()=>{const l=y=>Je(y.ctrlKey&&!y.altKey&&!y.metaKey),u=()=>Je(!1);return window.addEventListener("keydown",l),window.addEventListener("keyup",l),window.addEventListener("blur",u),()=>{window.removeEventListener("keydown",l),window.removeEventListener("keyup",l),window.removeEventListener("blur",u)}},[]);const Go=async l=>{try{const u=await T.app.setPreferences(l);return b(y=>y&&{...y,preferences:u}),!0}catch(u){return it("Could not save settings",u),!1}},t_=d.useCallback(l=>{g&&(he.set(g.id,[...l]),T.app.setFilesTreeExpandedPaths(g.id,l).catch(u=>it("Could not save folder state",u)))},[he,g]),ur=async(l,u)=>{if(!g||!q||u.length===0)return;const y=q;P(Ba(q,u,l)),W(l),O(null),K(null);try{l==="stage"?await T.index.stage(g.id,u):await T.index.unstage(g.id,u),await le({background:!0})}catch(v){P(y),it(l==="stage"?"Could not stage changes":"Could not unstage changes",v)}finally{W(null)}},n_=l=>{!g||U||q?.readOnly||l.length===0||(W("discard"),O(null),K(null),en(Lw(g.id,l,q?.changes??[])))},lt=d.useCallback(l=>(Ie.current=l,ee(l),l&&f("viewer"),!0),[]),an=d.useCallback((l,u="preview")=>{const y=de.current?.id;if(!y||!lt({type:"file",path:l}))return!1;const v=ce.current.get(y)??pt,x=xb(v,l,u);return x.evictedPath&&dt(y,x.evictedPath),x.overCap&&M.info({title:"Too many open files",description:"Every open tab has unsaved changes, so none could be closed for you."}),mt(y,x.session),!0},[mt,dt,lt]),s_=d.useCallback(l=>{const u=de.current?.id;u&<({type:"file",path:l})&&(St(u,y=>jb(y,l)),R("files"))},[lt,St]),o_=d.useCallback((l,u)=>{const y=de.current?.id;y&&St(y,v=>dl(v,l,u))},[St]),hr=d.useCallback(async(l,u)=>{const y=Zo(l,u);if(!y)return!0;try{return(await T.repository.writeFile(l,u,y.content,y.expectedContent)).status==="conflict"?(M.error({title:"File changed on disk",description:`${u} — the unsaved version is still open.`,duration:1e4}),!1):(dt(l,u),St(l,x=>Us(x,u,!1)),await Bt(),!0)}catch(v){return M.error({title:"Could not save file",description:be(v),duration:1e4}),!1}},[dt,Zo,Bt,St]),Uo=d.useCallback(async l=>{const u=de.current?.id;if(!u)return;const v=(ce.current.get(u)??pt).tabs.find(Be=>Be.path===l);if(!v)return;if(v.dirty){if(ct.current)return;const Be=await new Promise(Oe=>{ct.current=Oe,js(l)});if(js(null),ct.current=null,Be==="cancel"||Be==="save"&&!await hr(u,l))return}dt(u,l);const x=ce.current.get(u)??pt,E=fl(x,l);mt(u,E.session);const te=Ie.current;te?.type==="file"&&te.path===l&&Mt(E.activePath)},[mt,dt,hr,Mt]),gr=d.useCallback(l=>{const u=de.current?.id;if(!u)return;const y=ce.current.get(u)??pt,v=Rb(y,l);if(v.closeRequest){Uo(v.closeRequest);return}v.session!==y&&(mt(u,v.session),v.session.activePath!==y.activePath&&(Mt(v.session.activePath),f("viewer"),R("files")))},[Uo,mt,Mt]);d.useEffect(()=>{const l=u=>{if(Nt(u,Cn.openRepository)&&(u.preventDefault(),Ds()),Nt(u,Cn.refresh)&&(u.preventDefault(),!u.repeat&&!at.current&&!Te.current.has(g?.id??"")&&le({manual:!0})),g&&u.ctrlKey&&!u.altKey&&!u.metaKey){const v=ii[Number(u.key)-1];v&&(u.preventDefault(),R(v))}const y=g?dx(u,Cn):null;if(y&&(u.preventDefault(),u.repeat||gr(y)),g&&!u.repeat&&Nt(u,Cn.quickOpen)){if(!Yt&&document.querySelector('[data-slot="dialog-popup"]'))return;u.preventDefault(),kn(!0),Bt()}};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[Ds,Yt,le,Bt,g,gr,Cn]),d.useEffect(()=>{const l=y=>{[...ce.current.values()].some(x=>x.tabs.some(E=>E.dirty))&&(y.preventDefault(),y.returnValue="")},u=y=>{(at.current||Te.current.size>0||[...ce.current.values()].some(v=>v.tabs.some(x=>x.dirty)))&&y.preventDefault()};return window.addEventListener("opentig:before-update",u),window.addEventListener("beforeunload",l),()=>{window.removeEventListener("opentig:before-update",u),window.removeEventListener("beforeunload",l)}},[]);const Is=(l,u)=>{const y=de.current?.id;if(y){const te=ce.current.get(y)??pt,Be=va(te,u);for(const Ve of Be.closedPaths)dt(y,Ve);const Oe=Pb(Be.session,l.map(Ve=>({from:Ve.from,to:Ve.to})));Ql(y,Oe.renamed),mt(y,Oe.session)}const v=Ie.current;if(v?.type!=="file")return;if(u.some(te=>ps(te,v.path))){const te=y?ce.current.get(y):void 0;Mt(te?.activePath??null);return}const x=l.find(te=>ps(te.from,v.path));if(!x)return;const E=`${x.to}${v.path.slice(x.from.length)}`;Me.current=E,Mt(E),nt(te=>te+1)},cn=async l=>{if(!g||U||q?.readOnly)return;const u=Xl();if(u.length>0){M.info({title:`Save open files before ${l==="undo"?"undoing":"redoing"} a file operation`,description:u.join(", ")});return}W(`${l}-file`);try{const y=l==="undo"?await T.repository.undoFileOperation(g.id):await T.repository.redoFileOperation(g.id);if(L(y.state),y.status==="empty")return;if(y.status==="conflict"){M.error({title:`Could not ${l} ${ri(y.label)}`,description:y.message,duration:1e4});return}if(y.status==="system-trash"){M.info({title:`${ri(y.label)} cannot be undone in OpenTig`,description:"Restore it from system trash."});return}Is(y.pathChanges,y.removedPaths),await le({background:!0}),M.success({title:`${l==="undo"?"Undid":"Redid"} ${ri(y.label)}`})}catch(y){M.error({title:`Could not ${l} a file operation`,description:be(y),duration:1e4})}finally{W(null)}},i_=async l=>{if(!(!g||l.length===0))try{const u=await Promise.all(l.map(y=>T.repository.getAbsolutePath(g.id,y.path)));await os(u.join(`
|
|
137
|
+
`)),M.success({title:u.length===1?"Path copied":`${u.length} paths copied`,description:l.length===1?l[0].path:void 0})}catch(u){M.error({title:"Could not copy path",description:be(u)})}},r_=async l=>{if(!(!g||l.type!=="file"))try{const u=await T.repository.readFile(g.id,l.path);if(u.binary){M.info({title:"Binary files cannot be copied as text",description:l.path});return}if(u.tooLarge){M.info({title:"File is too large to copy safely",description:l.path});return}await os(u.content),M.success({title:"File copied",description:l.path})}catch(u){M.error({title:"Could not copy file",description:be(u)})}},a_=async l=>{if(!(!g||l.length===0))try{const u=await T.repository.copyEntries(g.id,l.map(y=>y.path));await Pr(u.paths),M.success({title:l.length===1?l[0].type==="directory"?"Folder copied":"File copied":`${l.length} items copied`,description:"Select a destination folder in the file browser and press Ctrl+V."})}catch(u){M.error({title:"Could not copy item",description:be(u)})}},c_=async l=>{if(!g||U||q?.readOnly||l.length===0)return;const u=Os(l.map(y=>y.path));if(u.length>0){M.info({title:"Save open files before cutting them",description:u.join(", ")});return}try{const y=await T.repository.cutEntries(g.id,l.map(v=>v.path));await Pr(y.paths,y.transferId),M.success({title:l.length===1?l[0].type==="directory"?"Folder cut":"File cut":`${l.length} items cut`,description:"Select a destination folder in the file browser and press Ctrl+V."})}catch(y){M.error({title:"Could not cut item",description:be(y)})}},l_=async l=>{if(!(!g||U||q?.readOnly||!k?.fileClipboard)){W("paste-file");try{const u=await T.clipboard.readFilePaths(),y=u.length===0?await T.clipboard.readImagePng():null,v=await T.repository.pasteEntries(g.id,l,u,H_(u),y);if(v.status==="empty"){M.info({title:"Clipboard does not contain files or an image"});return}await le({background:!0}),await on();const x=l||g.name;M.success({title:v.source==="image"?"Clipboard image pasted":v.source==="cut"?`${v.created.length} ${v.created.length===1?"item":"items"} moved`:`${v.created.length} ${v.created.length===1?"item":"items"} pasted`,description:x,button:{title:"Undo",onClick:()=>{cn("undo")}}})}catch(u){M.error({title:"Could not paste item",description:be(u),duration:1e4})}finally{W(null)}}},__=async(l,u)=>{if(!g||U||q?.readOnly||l.length===0)return;const y=Os(l.map(v=>v.path));if(y.length>0){M.info({title:"Save open files before moving them",description:y.join(", ")});return}W("move-file");try{const v=await T.repository.moveEntries(g.id,l.map(te=>te.path),u),x=v.moved.length,E=v.conflicts.length;Is(v.moved,[]),await le({background:!0}),await on(),E>0&&M.error({title:E===1?"An item with that name already exists":`${E} items already exist in the destination`}),x>0&&M.success({title:x===1?"Item moved":`${x} items moved`,description:u||g.name,button:{title:"Undo",onClick:()=>{cn("undo")}}})}catch(v){M.error({title:"Could not move item",description:be(v),duration:1e4})}finally{W(null)}},f_=async l=>{!g||U||q?.readOnly||l.length===0||(W("delete-file"),en(Fw(g.id,l)))},Ho=async l=>{const u=Zt;if(!(!u||nn.current)){if(de.current?.id!==u.repositoryId){en(null),W(null);return}if(!l){await Ia(u,!1,{discard:(y,v)=>T.index.discard(y,v),deleteEntries:(y,v)=>T.repository.deleteEntries(y,v)}),en(null),W(null);return}nn.current=!0,en(null);try{const y=await Ia(u,!0,{discard:(x,E)=>T.index.discard(x,E),deleteEntries:(x,E)=>T.repository.deleteEntries(x,E)});if(!y)return;if(y.kind==="discard"){await le({background:!0});return}const v=y.result;if(v.deleted===0)return;Is([],u.paths),await Bt(),await on(),M.success({title:v.deleted===1?"Moved to system trash":`${v.deleted} items moved to system trash`,...v.recovery==="undo"?{description:"Undo available",button:{title:"Undo",onClick:()=>{cn("undo")}}}:{description:"Restore from system trash"}})}catch(y){const v=be(y);u.kind==="delete"?M.error({title:"Could not delete item",description:v,duration:1e4}):M.error({title:"Could not discard changes",description:v,duration:1e4})}finally{nn.current=!1,W(null)}}},d_=async l=>{if(g)try{await T.repository.revealEntry(g.id,l.path)}catch(u){M.error({title:"Could not reveal item",description:be(u)})}},p_=async(l,u)=>{if(!g||U||q?.readOnly)return;const y=Os([l.path]);if(y.length>0){M.info({title:"Save open files before renaming them",description:y.join(", ")});return}W("rename-file");try{const v=await T.repository.renameEntry(g.id,l.path,u);if(v.status==="noop")return;if(v.status==="conflict"){M.error({title:"An item with that name already exists",description:v.path});return}Is([{from:v.from,to:v.to}],[]),await le({background:!0}),await on(),M.success({title:l.type==="directory"?"Folder renamed":"File renamed",description:`${v.from} → ${v.to}`,button:{title:"Undo",onClick:()=>{cn("undo")}}})}catch(v){M.error({title:"Could not rename item",description:be(v),duration:1e4})}finally{W(null)}},u_=async(l,u,y)=>{if(!(!g||U||q?.readOnly)){W("create-file");try{const v=await T.repository.createEntry(g.id,l,u,y);if(v.status==="conflict"){M.error({title:"An item with that name already exists",description:v.path});return}v.kind==="file"&&(Me.current=v.path,an(v.path)),await Bt(),await on(),M.success({title:v.kind==="directory"?"Folder created":"File created",description:v.path,button:{title:"Undo",onClick:()=>{cn("undo")}}})}catch(v){M.error({title:"Could not create item",description:be(v),duration:1e4})}finally{W(null)}}},mr=async l=>{if(!g||!q)return;const u=q.changes.filter(v=>l==="stage"?v.unstaged:v.staged).map(v=>v.path);if(!u.length)return;const y=q;P(Ba(q,u,l)),W(l),O(null),K(null);try{l==="stage"?await T.index.stageAll(g.id):await T.index.unstageAll(g.id),await le({background:!0})}catch(v){P(y),it(l==="stage"?"Could not stage changes":"Could not unstage changes",v)}finally{W(null)}},h_=async l=>{if(!g||!q?.stagedCount||!pe.trim())return;W("commit");let u=!1;try{const y=await T.commits.create(g.id,pe),v=pe.split(/\r?\n/,1)[0]??pe;if(ze(""),ve&&H!==null){const x=new Set(se).add(H);ne(x),K(null),x.size===ve.commits.length&&(O(null),ne(new Set),M.success({title:"Commit plan finished",description:`${x.size} commits created.`}))}else O(null),K(null),ne(new Set);Cs.current="",ee({type:"commit",oid:y.oid,subject:v}),f("viewer"),await le({background:!0}),u=!0}catch(y){it("Could not create the commit",y)}finally{W(null)}u&&l?.push&&await br()},g_=()=>{ae("ai"),Ct(!0)},m_=async()=>{const l=Ee.current;l&&await T.ai.cancelGeneration(l.id).catch(()=>{})},y_=async()=>{if(!h||!g||!q?.stagedCount||q.readOnly||fe)return;const l=h.preferences.commitMessageHarness,u=h.preferences.commitMessageModels[l]??"default",y=crypto.randomUUID();Ee.current={id:y,repositoryId:g.id},Ke(y);try{const v=await T.ai.generateCommitMessage({repositoryId:g.id,harness:l,model:u,requestId:y});if(Ee.current?.id!==y||Ee.current.repositoryId!==g.id)return;ze(v.message),Cs.current=v.message,O(v.proposal),K(null),ne(new Set),ue(!1),M.success({title:`Message generated with ${Si(v.harness)}`,description:v.proposal?`${v.proposal.commits.length} focused commits may be clearer than one.`:v.splitBlockedReason?`No commit split was offered: ${v.splitBlockedReason.charAt(0).toLowerCase()}${v.splitBlockedReason.slice(1)}`:v.contextWasTruncated?"A truncated version of the staged diff was used.":void 0,...v.splitBlockedReason?{duration:8e3}:{}})}catch(v){const x=hx(v);if(x?.code==="AI_CANCELLED")M.info({title:"Generation canceled"});else{const E=x?.code==="AI_CLI_NOT_FOUND"||x?.code==="AI_AUTH_REQUIRED"||x?.code==="AI_MODEL_UNAVAILABLE";M.error({title:gx(x),description:x?.message??be(v),duration:1e4,...E?{button:{title:"Open settings",onClick:g_}}:{}})}}finally{Ee.current?.id===y&&(Ee.current=null),Ke(v=>v===y?null:v)}},v_=async l=>{const u=ve,y=u?.commits[l];if(!(!g||!q||!u||!y||q.readOnly||U)&&!(H!==null&&H!==l&&!window.confirm("Commit group "+(H+1)+" is staged and not committed yet. Prepare a different group and unstage it?"))&&!(pe.trim()&&pe!==Cs.current&&!window.confirm("Replace the commit message you wrote with the one from this group?"))){W("prepare-commit-group");try{await T.index.prepareCommitGroup({repositoryId:g.id,paths:y.paths,expectedStagedPaths:q.changes.filter(v=>v.staged&&!v.conflict).map(v=>v.path).sort(),expectedFingerprint:y.fingerprint}),ze(y.message),Cs.current=y.message,K(l),await le({background:!0}),M.success({title:"Commit group prepared",description:`${y.paths.length} ${y.paths.length===1?"file is":"files are"} staged. Review the diff before committing.`}),window.setTimeout(()=>Ps.current?.focus(),0)}catch(v){K(null),M.error({title:"Could not prepare the commit group",description:be(v),duration:1e4}),await le({background:!0})}finally{W(null)}}};d.useEffect(()=>{const l=Ee.current;l&&l.repositoryId!==g?.id&&T.ai.cancelGeneration(l.id),O(null),K(null)},[g?.id]),d.useEffect(()=>()=>{const l=Ee.current;l&&T.ai.cancelGeneration(l.id)},[]);const yr=async l=>{if(!(!l||l===g?.id))try{try{const u=await T.repository.openRecent(l);u&&rn(u,l)}catch(u){const y=h?.recentRepositories.find(x=>x.id===l);if(!y)throw u;const v=await T.repository.selectRelocation(y.repositoryName,y.path);if(!v)return;rn(await T.repository.relocateRecent(l,v),l)}}catch(u){it("Could not open repository",u)}},b_=async l=>{if(!(!g||!l||l===q?.branch)){W("branch");try{const u=await T.refs.switchBranch(g.id,l,!1);if(u.status==="blocked-local-changes"){const y=qo.find(v=>v.fullName===l)?.name??l.replace(/^refs\/(?:heads|remotes)\//,"");tn({ref:l,label:y,files:u.files});return}await le({background:!0})}catch(u){it("Could not switch branch",u)}finally{W(null)}}},k_=async()=>{const l=Dt;if(!(!g||!l)){W("branch");try{const u=await T.refs.switchBranch(g.id,l.ref,!0);if(u.status==="blocked-local-changes"){tn({...l,files:u.files});return}if(tn(null),R("changes"),await le({background:!0}),u.status==="switched")M.success({title:`Switched to ${l.label}`,description:u.movedChanges?"Local changes were moved here and left unstaged.":"The branch was switched successfully."});else if(u.status==="moved-with-conflicts"){const y={id:Za(g.id),title:`Switched to ${l.label} with conflicts`,description:`${u.files.length} ${u.files.length===1?"file needs":"files need"} resolution. The safety stash was kept.`,duration:12e3,button:{title:"View conflicts",onClick:()=>Sn(u.files)}};M.error(y)}else M.error({title:"Could not restore every local change",description:u.recoveredChanges?"Some changes were recovered and the safety stash was kept.":"The safety stash was kept so the changes can be recovered.",duration:12e3})}catch(u){it("Could not move changes to the branch",u),await le({background:!0})}finally{W(null)}}},w_=async l=>{if(!(!g||!l||l===g.path)){W("worktree");try{rn(await T.refs.selectWorktree(g.id,l))}catch(u){it("Could not switch worktree",u)}finally{W(null)}}},x_=l=>{l&&b(u=>u&&{...u,recentRepositories:l}),le({background:!0})},j_=async()=>{if(!(!g||!ar)){W("history");try{await xn.fetchNextPage()}catch(l){it("Could not load more history",l)}finally{W(null)}}},P_=async()=>{if(!g||!ft||Ft)return;const l=ft;At(!0);try{const u=await T.commits.undoLatest(g.id,l.oid);if(u.status==="success"){if(Qt(null),ee(null),R("changes"),!pe.trim())ze(u.message);else{M.success({title:"Commit undone",description:"Its changes are staged again. Your draft was preserved.",button:{title:"Use previous message",onClick:()=>ze(u.message)}}),await le({background:!0}),window.setTimeout(()=>Ps.current?.focus(),0);return}M.success({title:"Commit undone",description:"Its changes are staged again."}),await le({background:!0}),window.setTimeout(()=>Ps.current?.focus(),0);return}Qt(null);const y=ux(u);M.error({title:y.title,description:y.description,duration:1e4}),await le({background:!0})}catch(u){M.error({title:"Could not undo commit",description:be(u),duration:1e4})}finally{At(!1)}},Sn=d.useCallback(l=>{R("changes");const u=l[0];u&&(ee({type:"conflict",path:u}),f("viewer"))},[]),Vo=(q?.changes??[]).filter(l=>l.conflict).map(l=>l.path).sort().join("\0");d.useEffect(()=>{if(!g||!q)return;const l=Vo?Vo.split("\0"):[],u=ir.current.get(g.id),y=Yw(u,l);ir.current.set(g.id,l);const v=Za(g.id);if(y==="dismiss"){M.dismiss(v);return}if(y!=="show")return;const x={id:v,title:l.length===1?"Conflict needs resolution":`${l.length} conflicts need resolution`,description:"Open the conflicts section to choose the version to keep.",duration:1e4,button:{title:"View conflicts",onClick:()=>Sn(l)}};M.error(x)},[Vo,g,Sn,q]);const C_=async(l,u)=>{if(!g||U)return!1;W("resolve-conflict");try{return await T.index.resolveConflict(g.id,l,u),M.success({title:"Conflict marked as resolved",description:l}),ee({type:"diff",path:l,kind:"staged"}),await le({background:!0}),!0}catch(y){const v=be(y);return M.error({title:"Could not resolve conflict",description:v,duration:1e4}),!1}finally{W(null)}},S_=async(l,u)=>{if(!g)return!1;try{return await T.index.updateConflict(g.id,l,u),!0}catch(y){const v=be(y);return M.error({title:"Could not apply selection",description:v,duration:1e4}),!1}},vr=async()=>{if(!g||U)return;const l=g.id,u=q?.behind??0;W("pull");try{await M.promise(async()=>{const y=await T.refs.pull(l);if(await le({background:!0}),y.status==="success"||y.status==="up-to-date")return y;throw new Qs(y)},{loading:Hs(l,"pull",u>0?`Pulling ${u} ${u===1?"commit":"commits"}…`:"Pulling changes…"),success:y=>Xb(y),error:y=>{if(y instanceof Qs){const x=y.result;return x.status==="blocked-conflicts"?{title:"Could not pull changes",description:`Resolve ${x.files.length===1?"the pending conflict":`${x.files.length} pending conflicts`} before updating.`,duration:1e4,button:{title:"View conflicts",onClick:()=>Sn(x.files)}}:x.status==="stash-conflict"?{title:x.updated?"Update completed with local conflicts":"Could not restore local changes",description:"The safety stash was preserved. Resolve the conflicts to continue.",duration:12e3,button:{title:"View conflicts",onClick:()=>Sn(x.files)}}:x.status==="restore-failed"?{title:"Could not automatically restore local changes",description:x.recoveredChanges?"Some changes are visible and the safety stash was preserved. Do not continue until you review them.":"The worktree is still clean and the safety stash remains intact.",duration:12e3}:x.status==="rebase-conflict"?{title:"Could not rebase onto the remote",description:x.files.length>0?`Your local commits overlap the remote changes in ${x.files.length===1?x.files[0]:`${x.files.length} files`}. The branch was left unchanged.`:"Your local commits overlap the remote changes. The branch was left unchanged.",duration:1e4}:x.status==="diverged"?{title:"Branch has diverged",description:`${x.ahead} ahead and ${x.behind} behind.`,duration:1e4}:x.status==="no-upstream"?{title:"Branch has no upstream configured",duration:1e4}:{title:"A Git operation is in progress",description:`Finish or cancel ${x.operation} before updating.`,duration:1e4}}return{title:"Could not pull changes",description:be(y),duration:1e4}}})}catch{}finally{W(null)}},Wo=async()=>{!q||q.ahead===0&&!Bn(q)||U||q.readOnly||Te.current.has(g?.id??"")||await br()},br=async()=>{if(!g)return;const l=g.id;W("push");try{await M.promise(async()=>{const u=await t.push(l,g.path);if(await le({background:!0}),!u||u.status==="success"||u.status==="up-to-date"||u.status==="published")return u;throw new Xs(u)},{loading:Hs(l,"push",q?.upstream?"Pushing commits…":"Publishing branch…"),success:u=>u?u.status==="published"?{title:`${g.name}: branch published`,description:`${u.remote}/${u.branch}`}:u.status==="success"?{title:`${g.name}: ${u.commits} ${u.commits===1?"commit pushed":"commits pushed"}`}:{title:`${g.name}: no commits pending push`}:{title:`${g.name}: publication canceled`},error:u=>{if(u instanceof Xs){const v=u.result;return v.status==="blocked-conflicts"?{title:`${g.name}: could not push commits`,description:`Resolve ${v.files.length===1?"the pending conflict":`${v.files.length} pending conflicts`} before continuing.`,duration:1e4,button:{title:"View conflicts",onClick:()=>Sn(v.files)}}:v.status==="blocked-operation"?{title:`${g.name}: a Git operation is in progress`,description:`Finish or cancel ${v.operation} before pushing.`,duration:1e4}:v.status==="no-upstream"?{title:`${g.name}: branch has no upstream configured`,description:"Configure a remote branch before pushing.",duration:1e4}:v.status==="diverged"?{title:`${g.name}: the remote contains new changes`,description:`${v.ahead} ahead and ${v.behind} behind. Pull rebases your local commits on top when there are no conflicts.`,duration:1e4,button:{title:"Pull",onClick:()=>{vr()}}}:v.status==="remote-required"?{title:"Choose a remote to publish the branch"}:{title:`${g.name}: could not push commits`,description:v.message,duration:1e4}}const y=be(u);return{title:`${g.name}: could not push commits`,description:y,duration:1e4}}})}catch{}finally{W(null)}},z_=async(l,u,y)=>{const v=l.recent.id;if(!Te.current.has(v)){Te.current.set(v,y),Ye(new Map(Te.current));try{const x=u?`${u} · ${l.name}`:l.name;y==="pull"?await M.promise(async()=>{const E=await T.refs.pull(v);if(de.current?.id===v&&await le({background:!0}),E.status==="success"||E.status==="up-to-date")return E;throw new Qs(E)},{loading:Hs(v,y,`Pulling ${x}…`),success:E=>Qb(x,E),error:E=>E instanceof Qs?Yb(x,E.result):{title:`Could not pull ${x}`,description:be(E),duration:1e4}}):await M.promise(async()=>{const E=await t.push(v,x);if(de.current?.id===v&&await le({background:!0}),!E||E.status==="success"||E.status==="up-to-date"||E.status==="published")return E;throw new Xs(E)},{loading:Hs(v,y,`Pushing ${x}…`),success:E=>E?ek(x,E):{title:`${x}: publication canceled`},error:E=>E instanceof Xs?tk(x,E.result):{title:`Could not push ${x}`,description:be(E),duration:1e4}})}catch{}finally{Te.current.delete(v),Ye(new Map(Te.current))}}},kr=l=>{const u=h?.recentRepositories.filter(y=>$t(y.commonDir)===l.key).map(y=>y.id)??[];if(u.some(y=>ka(ce.current.get(y)??pt).length>0))throw new Error("Save or close unsaved files in this repository and its worktrees first.");if(U||u.some(y=>Te.current.has(y)))throw new Error("Wait for the current repository operation to finish.");return u},R_=async l=>{const u=new Set(kr(l)),y=await T.repository.forget(l.key),v=new Map(ce.current);for(const x of u)v.delete(x),He.current.delete(x),Ue.current.delete(x),he.delete(x);return ce.current=v,qt(v),de.current&&u.has(de.current.id)&&S(null),b(x=>x&&{...x,...y,activeRepository:x.activeRepository&&u.has(x.activeRepository.id)?null:x.activeRepository,filesTreeStates:x.filesTreeStates.filter(E=>!u.has(E.repositoryId)),openFilesStates:x.openFilesStates.filter(E=>!u.has(E.repositoryId))}),y},N_=async(l,u)=>{kr(l),rn(await T.repository.relocateRecent(l.recent.id,u),l.recent.id)},wr=i.jsx(Vw,{confirmLabel:"Continue",description:window.opentigDesktop?"Choose a Git repository, then review its GitHub and Git accounts.":"Choose a Git repository on your server, then review its GitHub and Git accounts.",open:s,recent:h?.recentRepositories,onPick:window.opentigDesktop?T.repository.select:void 0,onOpenChange:o,onBrowse:T.repository.browseDirectories,onOpen:async l=>{r.current=!0;try{const u=await T.repository.preparePath(l),y=!h?.recentRepositories.some(v=>$t(v.commonDir)===$t(u.commonDir));c({repository:u,isNew:y})}finally{r.current=!1}}}),xr=a&&!s&&i.jsx(Zm,{...a,onClose:()=>c(null),onAdded:l=>{rn(l),c(null)}},a.repository.id);if(!h)return i.jsx(Z_,{heading:xo,detail:Xw(Wl)});if(!g)return i.jsxs(jr,{children:[wr,xr,i.jsx("div",{className:"fixed right-4 top-4 z-40",children:i.jsx(tr,{})}),i.jsx(Ww,{recent:h.recentRepositories,onOpen:Ds,onRecent:l=>{yr(l)}})]});const Qn=Zt?qw(Zt):null,$_=q?.changes.filter(l=>l.conflict)??[],E_=q?.changes.filter(l=>l.staged&&!l.conflict)??[],T_=q?.changes.filter(l=>l.unstaged&&!l.conflict)??[];return i.jsx(Qm,{shortcuts:Cn,children:i.jsxs(jr,{children:[wr,xr,Yt&&i.jsx(d.Suspense,{fallback:null,children:i.jsx(rx,{open:Yt,files:Ns,includeIgnored:h.preferences.showDotEnvFiles,activePath:Q?.type==="file"?Q.path:null,onOpenChange:kn,onOpenFile:an})}),i.jsx(bt,{open:wn!==null,onOpenChange:l=>{l||ct.current?.("cancel")},children:i.jsxs(kt,{className:"undo-commit-dialog",children:[i.jsxs("div",{className:"undo-commit-content",children:[i.jsx(wt,{children:"Save changes before closing?"}),i.jsx(xt,{children:"This file has unsaved changes. Discarding them cannot be undone."}),wn&&i.jsx("div",{className:"undo-commit-summary",children:i.jsx("strong",{children:wn})})]}),i.jsxs("div",{className:"undo-commit-actions",children:[i.jsx(G,{variant:"ghost",onClick:()=>ct.current?.("cancel"),children:"Cancel"}),i.jsx(G,{variant:"destructive",onClick:()=>ct.current?.("discard"),children:"Discard"}),i.jsx(G,{onClick:()=>ct.current?.("save"),children:"Save"})]})]})}),i.jsx(bt,{open:Zt!==null,onOpenChange:l=>{l||Ho(!1)},children:i.jsxs(kt,{className:"undo-commit-dialog",children:[i.jsxs("div",{className:"undo-commit-content",children:[i.jsx(wt,{children:Qn?.title}),i.jsx(xt,{children:Qn?.message}),Qn?.detail&&i.jsx("div",{className:"destructive-confirmation-detail",children:Qn.detail})]}),i.jsxs("div",{className:"undo-commit-actions",children:[i.jsx(G,{variant:"ghost",onClick:()=>{Ho(!1)},children:"Cancel"}),i.jsxs(G,{variant:"destructive",onClick:()=>{Ho(!0)},children:[Zt?.kind==="discard"?i.jsx(fi,{}):i.jsx(Kd,{}),Qn?.confirmLabel]})]})]})}),i.jsx(bt,{open:Dt!==null,onOpenChange:l=>{!l&&U!=="branch"&&tn(null)},children:i.jsxs(kt,{className:"undo-commit-dialog",children:[i.jsxs("div",{className:"undo-commit-content",children:[i.jsxs(wt,{children:["Move local changes to ",Dt?.label,"?"]}),i.jsx(xt,{children:"OpenTig will save all tracked and untracked changes temporarily, switch branches, restore them, and leave them unstaged. If Git finds conflicts, the safety stash will be kept."}),Dt&&Dt.files.length>0&&i.jsx("div",{className:"destructive-confirmation-detail",children:Dt.files.join(`
|
|
138
|
+
`)})]}),i.jsxs("div",{className:"undo-commit-actions",children:[i.jsx(G,{variant:"ghost",onClick:()=>tn(null),disabled:U==="branch",children:"Cancel"}),i.jsxs(G,{onClick:()=>{k_()},disabled:U==="branch",children:[i.jsx(zi,{})," ",U==="branch"?"Moving changes…":`Move changes to ${Dt?.label??"branch"}`]})]})]})}),i.jsx(bt,{open:!!ft,onOpenChange:l=>{!l&&!Ft&&Qt(null)},children:i.jsxs(kt,{className:"undo-commit-dialog",children:[i.jsxs("div",{className:"undo-commit-content",children:[i.jsx(wt,{children:"Undo the last local commit?"}),i.jsx(xt,{children:"The commit will disappear from local history. Its changes and any already staged changes will remain staged. No files will be deleted."}),ft&&i.jsxs("div",{className:"undo-commit-summary",children:[i.jsx("code",{children:ft.shortOid}),i.jsx("strong",{children:ft.subject||"(no subject)"})]})]}),i.jsxs("div",{className:"undo-commit-actions",children:[i.jsx(G,{variant:"ghost",onClick:()=>Qt(null),disabled:Ft,children:"Cancel"}),i.jsxs(G,{variant:"destructive",onClick:()=>{P_()},disabled:Ft,children:[i.jsx(fi,{})," ",Ft?"Undoing…":"Undo and stage changes"]})]})]})}),Kn&&i.jsx(d.Suspense,{fallback:null,children:i.jsx(ax,{open:Kn,onOpenChange:ot,repositoryId:g.id,onOpenGitHubSettings:()=>{ot(!1),ae("github"),Ct(!0)},branches:qo,status:q,preferences:h.preferences,aiProviders:k?.aiProviders,pushBusy:U==="push",onPush:()=>{Wo()},onCreated:l=>{ot(!1),pr(st),l!==null&<({type:"pull-request",number:l})}})}),t.remoteChoice&&i.jsx(xw,{choice:t.remoteChoice,onSelect:t.selectRemote},t.remoteChoice.id),i.jsxs("div",{className:"app-shell","data-mobile-pane":_,children:[i.jsx(uw,{mobileBackLabel:_!=="list"?`Back to ${Z==="prs"?"PRs":Z}`:void 0,onMobileBack:()=>f("list"),repository:g,recent:h.recentRepositories,repositoryProjects:h.repositoryProjects,status:q,githubInfo:sn,branchPullRequest:Vl,branches:qo,worktrees:Hl,preferences:h.preferences,busy:U,repositorySyncOperations:Pe,onOpen:Ds,onRecent:yr,onBranch:b_,onWorktree:w_,onRefresh:()=>{le({manual:!0})},onPull:()=>{vr()},onPush:()=>{Wo()},onRepositorySync:z_,onPreference:Go,onForgetRepository:R_,onRelocateRepository:N_,onOrganizationChange:l=>b(u=>u&&{...u,...l}),onRefsManaged:x_,openFiles:xs.get(g.id)??pt,onOpenFileTab:s_,onPinFileTab:l=>an(l,"pinned"),onCloseFileTab:l=>{Uo(l)},onReorderFileTab:o_,settingsOpen:bn,settingsSection:z,onSettingsOpen:Ct,onSettingsSection:ae}),q?.readOnly&&i.jsxs("div",{className:"operation-banner",children:["Repository is read-only: ",q.operation," is in progress."]}),n&&_==="list"&&Z!=="files"&&i.jsxs("div",{className:"mobile-workspace-actions mobile-view-heading",children:[i.jsxs("h2",{children:[Z==="changes"?"Changes":Z==="history"?"History":Z==="prs"?"Pull requests":"Search",Z==="changes"&&i.jsx("small",{children:q?.changes.length??0})]}),Z==="changes"&&!!(q?.stagedCount||ve)&&i.jsxs("button",{className:"mobile-commit-trigger",onClick:()=>f("commit"),children:[i.jsx(li,{})," Commit",q?.stagedCount?` (${q.stagedCount})`:""]})]}),i.jsxs("main",{className:"workspace",children:[i.jsxs("aside",{className:"sidebar",style:{width:h.preferences.sidebarWidth},children:[i.jsx("nav",{className:"sidebar-tabs","data-shortcuts":De?"visible":void 0,"aria-label":"Repository views",children:ii.map((l,u)=>i.jsxs("button",{className:Z===l?"active":"","aria-current":Z===l?"page":void 0,"aria-keyshortcuts":`Control+${u+1}`,onClick:()=>R(l),children:[l==="changes"?i.jsx(_i,{}):l==="files"?i.jsx(ci,{}):l==="history"?i.jsx($r,{}):l==="prs"?i.jsx(to,{}):i.jsx(ls,{}),i.jsx("span",{className:"sidebar-tab-label",children:l==="changes"?"Changes":l==="files"?"Files":l==="history"?"History":l==="prs"?"PRs":"Search"}),l==="changes"&&q&&q.changes.length>0&&i.jsx("span",{className:"sidebar-tab-count",children:q.changes.length}),l==="prs"&&zs!==null&&zs.length>0&&i.jsx("span",{className:"sidebar-tab-count",children:zs.length}),De&&i.jsx("span",{className:"sidebar-tab-shortcut","aria-hidden":"true",children:u+1})]},l))}),i.jsx("div",{className:"sidebar-body",children:i.jsxs("div",{className:"view-fade",children:[Z==="changes"&&i.jsx(Ow,{conflicts:$_,staged:E_,changed:T_,displayMode:h.preferences.changesLayout,readOnly:!!q?.readOnly,onSelect:(l,u)=>{lt({type:"diff",path:l,kind:u})},onConflict:l=>{lt({type:"conflict",path:l})},onOpenFile:an,onDiscard:l=>{n_(l)},onStage:l=>{ur("stage",l)},onUnstage:l=>{ur("unstage",l)},onStageAll:()=>{mr("stage")},onUnstageAll:()=>{mr("unstage")}}),Z==="files"&&i.jsx(d.Suspense,{fallback:Js,children:i.jsx(nx,{active:Z==="files",initialExpandedPaths:he.get(g.id)??[],files:Ns,filesSnapshotRevision:A,showDotEnvFiles:h.preferences.showDotEnvFiles,activePath:Q?.type==="file"?Q.path:null,readOnly:!!(q?.readOnly||U),fileClipboardAvailable:k?.fileClipboard===!0,revealAvailable:k?.revealInFileManager===!0,onQuickOpen:()=>kn(!0),historyState:B,onUndo:()=>cn("undo"),onRedo:()=>cn("redo"),onOpenFile:an,onLoadDirectory:e_,onPersistExpandedPaths:t_,onCopyPath:i_,onCopyEntries:a_,onCutEntries:c_,onCopyContents:r_,onPaste:l_,onMoveEntries:__,onDeleteEntries:f_,onReveal:d_,onRename:p_,onCreate:u_},g.id)}),Z==="history"&&i.jsx(d.Suspense,{fallback:Js,children:i.jsx(sx,{repositoryId:g.id,baseRef:xn.data?.pages[0]?.baseRef,activeOid:Q?.type==="commit"||Q?.type==="commit-file"?Q.oid:null,onSelectReference:sn?.isGitHub?l=>{lt({type:"pull-request",number:l})}:void 0,upstream:q?.upstream??null,canPublish:Bn(q),pushBusy:!!U||Pe.has(g.id),onPublish:()=>{Wo()},readOnly:!!q?.readOnly,operation:q?.operation??null,commits:rr,nextCursor:ar,loading:U==="history",onSelectCommit:l=>{lt({type:"commit",oid:l.oid,subject:l.subject})},onSelectFile:(l,u)=>{lt({type:"commit-file",oid:l,path:u.path,oldPath:u.oldPath??void 0})},onUndo:Qt,undoing:Ft,onMore:()=>{j_()}},g.id)}),Z==="search"&&i.jsx(d.Suspense,{fallback:Js,children:i.jsx(ox,{repositoryId:g.id,active:Z==="search",revision:rt,onOpenFile:an,unsavedPathsAmong:Os,onReplaced:()=>{le({background:!0})}})}),Z==="prs"&&i.jsx(d.Suspense,{fallback:Js,children:i.jsx(ix,{repositoryId:g.id,info:sn,ghStatus:Fo,account:Bl,onOpenGitHubSettings:()=>{ae("github"),Ct(!0)},pulls:zs,loading:Gl,error:Ul,states:st,activeNumber:Q?.type==="pull-request"?Q.number:null,createDisabledReason:q?q.detached||q.unborn||!q.branch?"Check out a branch first":null:"Loading repository status…",onRefresh:()=>{pr(st,!0)},onStateChange:(l,u)=>{const v=["OPEN","CLOSED","MERGED"].filter(x=>x===l?u:st.includes(x));Xt(v)},onSelect:l=>{lt({type:"pull-request",number:l})},onCreate:()=>ot(!0),onCopyCommand:l=>{os(l).then(()=>M.success({title:"Command copied",description:l})).catch(()=>M.error({title:"Could not copy the command"}))}})})]})})]}),i.jsx("section",{className:"viewer-pane",children:i.jsx(Pw,{resetKey:Q,fallback:l=>i.jsxs("div",{className:"viewer-message flex-col gap-2 text-center text-destructive",children:[i.jsx("p",{children:"Could not display this content."}),i.jsx("small",{className:"text-muted-foreground",children:l.message})]}),children:i.jsx(d.Suspense,{fallback:i.jsxs("div",{className:"viewer-message",children:[i.jsx(_t,{className:"spinner"})," ",i.jsx(Fn,{text:"Preparing viewer…"})]}),children:i.jsx(tx,{repositoryId:g.id,selection:Q,diffView:Kl,wrapLines:Jl,theme:Jn,revision:$e,readOnly:!!q?.readOnly,commits:rr??[],draftFor:l=>Zo(g.id,l),onSelect:lt,onOpenFile:an,onDiffViewChange:l=>{n?m(l):Go({diffView:l})},onWrapLinesChange:l=>{Go({wrapLines:l})},onDraftChange:Yl,onDraftSaved:l=>{dt(g.id,l),St(g.id,u=>Us(u,l,!1))},onUpdateConflict:S_,onResolveConflict:C_})})})})]}),i.jsx(Gw,{open:n?_==="commit":Z==="changes"&&!!(q?.stagedCount||ve),stagedCount:q?.stagedCount??0,message:pe,generating:!!fe,harness:h.preferences.commitMessageHarness,harnessLabel:Si(h.preferences.commitMessageHarness),modelLabel:ex(k?.aiProviders,h.preferences.commitMessageHarness,h.preferences.commitMessageModels[h.preferences.commitMessageHarness]??"default"),busy:U,readOnly:!!q?.readOnly,canPush:!!(q?.branch&&!q.detached&&!q.readOnly),proposal:ve,preparedIndex:H,completed:se,collapsed:oe,textareaRef:Ps,onMessage:ze,onGenerate:()=>{y_()},onCancelGenerate:()=>{m_()},onDismissProposal:()=>{O(null),K(null),ne(new Set)},onToggleCollapsed:()=>ue(l=>!l),onOpenPath:l=>{lt({type:"diff",path:l,kind:"staged"})},onPrepare:l=>{v_(l)},onCommit:l=>{h_(l)}}),i.jsx("nav",{className:"mobile-navigation","aria-label":"Repository views",children:ii.map(l=>i.jsxs("button",{"aria-current":Z===l?"page":void 0,onClick:()=>{R(l),f("list")},children:[l==="changes"?i.jsx(_i,{}):l==="files"?i.jsx(ci,{}):l==="history"?i.jsx($r,{}):l==="prs"?i.jsx(to,{}):i.jsx(ls,{}),i.jsx("span",{children:l==="changes"?"Changes":l==="files"?"Files":l==="history"?"History":l==="prs"?"PRs":"Search"}),l==="changes"&&!!q?.changes.length&&i.jsx("i",{className:"mobile-nav-indicator","aria-label":`${q.changes.length} changes`})]},l))})]})]})})}function _x(e){const t=new Set,n=[],s=o=>{for(const r of o)t.add(r.path),r.type==="directory"&&(r.ignored===!0&&r.children.length===0?n.push(r.path):s(r.children))};return s(e),{paths:t,deferred:n}}function fx(e,t){return e.paths.has(t)?"present":e.deferred.some(n=>ps(n,t))?"deferred":"missing"}function dx(e,t){return Nt(e,t.closeTab)?"close":Nt(e,t.nextTab)?"next":Nt(e,t.prevTab)?"previous":Nt(e,t.moveTabLeft)?"move-left":Nt(e,t.moveTabRight)?"move-right":null}function Ba(e,t,n){const s=new Set(t),o=e.changes.map(r=>s.has(r.path)?n==="stage"?{...r,staged:!0,unstaged:!1,indexStatus:r.worktreeStatus==="?"?"A":r.worktreeStatus,worktreeStatus:"."}:{...r,staged:!1,unstaged:!0,indexStatus:".",worktreeStatus:r.indexStatus}:r);return{...e,changes:o,stagedCount:o.filter(r=>r.staged&&!r.conflict).length,unstagedCount:o.filter(r=>r.unstaged&&!r.conflict).length}}function px(e){if(e===null)return!0;if(!e||typeof e!="object")return!1;const t=e;return t.type==="file"||t.type==="conflict"?typeof t.path=="string":t.type==="diff"?typeof t.path=="string"&&(t.kind==="staged"||t.kind==="unstaged"):t.type==="commit"?typeof t.oid=="string"&&typeof t.subject=="string":t.type==="commit-file"?typeof t.oid=="string"&&typeof t.path=="string"&&(t.oldPath===void 0||typeof t.oldPath=="string"):t.type==="pull-request"&&typeof t.number=="number"}function be(e){return e instanceof Error?e.message:"An unexpected error occurred."}function ri(e){return e.length>0?`${e[0].toLocaleLowerCase()}${e.slice(1)}`:e}function it(e,t){M.error({title:e,description:be(t),duration:1e4}),!Il(t)&&T.diagnostics.record({operation:e,message:be(t)}).catch(()=>{})}function ux(e){return e.status==="stale-head"?{title:"History changed",description:"The view was refreshed without undoing any commit."}:e.status==="no-upstream"?{title:"Branch has no upstream",description:"Cannot confirm that the commit is still local only."}:e.status==="not-local"?{title:"Commit is no longer local only",description:"History was not modified."}:e.status==="unsupported-merge"?{title:"Cannot undo this merge",description:"Merge commits require choosing a parent and are protected in this version."}:e.status==="unsupported-root"?{title:"Cannot undo the first commit",description:"The initial commit is protected in this version."}:{title:"A Git operation is in progress",description:`Finish or cancel ${e.operation} before undoing the commit.`}}function hx(e){if(!(e instanceof Error)||!("detail"in e)||!e.detail||typeof e.detail!="object")return null;const t=e.detail;return typeof t.code=="string"&&t.code.startsWith("AI_")&&typeof t.message=="string"?t:null}function gx(e){return e?e.code==="AI_CLI_NOT_FOUND"?`${e.harness?Si(e.harness):"The harness"} is not installed`:e.code==="AI_AUTH_REQUIRED"?"Sign in to generate the message":e.code==="AI_MODEL_UNAVAILABLE"?"The model is unavailable":e.code==="AI_RATE_LIMITED"?"Usage limit reached":e.code==="AI_TIMEOUT"?"Generation took too long":e.code==="AI_STAGED_CHANGES_CHANGED"?"Staged changes have changed":e.code==="AI_INVALID_OUTPUT"?"The response was invalid":"Could not generate the message":"Could not generate the message"}const rj=Object.freeze(Object.defineProperty({__proto__:null,default:lx},Symbol.toStringTag,{value:"Module"}));export{po as $,Md as A,Bw as B,Jx as C,bt as D,Qx as E,Aa as F,Xx as G,no as H,pn as I,li as J,Lo as K,ls as L,Ua as M,oj as N,ij as O,Ys as P,fi as Q,$w as R,gw as S,Zw as T,Ol as U,_y as V,py as W,Ny as X,Ry as Y,Ix as Z,Jc as _,mw as a,sd as a$,Rv as a0,Ty as a1,tb as a2,Dx as a3,jo as a4,cb as a5,Vt as a6,Hb as a7,Vb as a8,ep as a9,Zk as aA,Yx as aB,ps as aC,Tx as aD,Oa as aE,Zf as aF,aw as aG,Oc as aH,id as aI,db as aJ,fy as aK,cy as aL,Rx as aM,Nx as aN,$x as aO,mi as aP,Wv as aQ,zx as aR,Ax as aS,Av as aT,uy as aU,Ox as aV,Ev as aW,zi as aX,ci as aY,fd as aZ,Si as a_,Ln as aa,Lf as ab,Vx as ac,ts as ad,Dd as ae,Kd as af,gi as ag,Wx as ah,Vw as ai,Mx as aj,Lx as ak,Ux as al,Hx as am,Gx as an,Nr as ao,qb as ap,si as aq,qx as ar,Zx as as,Fx as at,Bx as au,Zb as av,Jm as aw,El as ax,Nt as ay,Jf as az,yw as b,sj as b0,nj as b1,tj as b2,Rc as b3,Cc as b4,jx as b5,Sx as b6,Cx as b7,Px as b8,zc as b9,Km as ba,ej as bb,_s as bc,Lm as bd,Kx as be,$r as bf,rj as bg,vw as c,bw as d,cs as e,_t as f,Fn as g,zw as h,Ex as i,dy as j,Rw as k,Zn as l,Ut as m,ms as n,Va as o,to as p,xx as q,Ha as r,wo as s,td as t,Gm as u,kt as v,wt as w,xt as x,qn as y,Mn as z};
|