@intent-hq/web 2.389.0 → 2.389.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{DRbQVjcG.js → -MOfUnWK.js} +1 -1
- package/web/app/immutable/chunks/{Bauem7Ke.js → -iNNNnZP.js} +1 -1
- package/web/app/immutable/chunks/{qtHim0jP.js → 1biRkLeO.js} +1 -1
- package/web/app/immutable/chunks/{iIsyEXfi.js → 2TDNGwi2.js} +1 -1
- package/web/app/immutable/chunks/{B-r8Ld9c.js → 56loFVfQ.js} +1 -1
- package/web/app/immutable/chunks/{B91tdOJm.js → B-tK7hOH.js} +1 -1
- package/web/app/immutable/chunks/{k1pjOtcg.js → B2_6AX8w.js} +2 -2
- package/web/app/immutable/chunks/{HYdiaHV7.js → B3FnJcLx.js} +1 -1
- package/web/app/immutable/chunks/{hgE6oWwa.js → B7-Rf8Ja.js} +1 -1
- package/web/app/immutable/chunks/{T7iqVsMb.js → B7zssCpp.js} +1 -1
- package/web/app/immutable/chunks/{BdNfyyl1.js → B8rKVMLL.js} +1 -1
- package/web/app/immutable/chunks/{C9szebIt.js → BNu0Ucwh.js} +1 -1
- package/web/app/immutable/chunks/{2sf1Yn-s.js → BOyjfrDv.js} +1 -1
- package/web/app/immutable/chunks/{CeWx_dfN.js → BPcs9j0t.js} +1 -1
- package/web/app/immutable/chunks/{BwVhyX7o.js → BPmcj0VV.js} +1 -1
- package/web/app/immutable/chunks/{CgzHyieN.js → BRKRnHX6.js} +1 -1
- package/web/app/immutable/chunks/{0AIorxUa.js → BSXmccL1.js} +7 -7
- package/web/app/immutable/chunks/{Cp1B7D7t.js → BUo-3nO7.js} +1 -1
- package/web/app/immutable/chunks/{DVsXJTH5.js → B_EaOuZ7.js} +1 -1
- package/web/app/immutable/chunks/{s6Wn05Cg.js → B_QbDMuF.js} +1 -1
- package/web/app/immutable/chunks/{qWMP3EPi.js → BaH6sH1s.js} +1 -1
- package/web/app/immutable/chunks/{B4JMAhvp.js → Bb98JhKr.js} +1 -1
- package/web/app/immutable/chunks/{xXDRZ4UR.js → BbrUifYV.js} +1 -1
- package/web/app/immutable/chunks/{Di3tMG_J.js → Bc1CpNLz.js} +1 -1
- package/web/app/immutable/chunks/{dEPZ-XrU.js → BdrLG-E0.js} +1 -1
- package/web/app/immutable/chunks/{CXfRSojK.js → BfnPC1r8.js} +1 -1
- package/web/app/immutable/chunks/{BoCCPZlL.js → BiZ5HCfj.js} +1 -1
- package/web/app/immutable/chunks/{Bmlx0yvl.js → BjDM3rxu.js} +2 -2
- package/web/app/immutable/chunks/{D3shmp0V.js → BjVkuF0t.js} +1 -1
- package/web/app/immutable/chunks/{5J_xNo3h.js → BkqNdsh1.js} +2 -2
- package/web/app/immutable/chunks/{DM3Yrkkb.js → BouO3S3L.js} +1 -1
- package/web/app/immutable/chunks/{CUE71p7a.js → BqCpnQY_.js} +1 -1
- package/web/app/immutable/chunks/{C4UYdkwZ.js → BqXtiIKZ.js} +1 -1
- package/web/app/immutable/chunks/{Be-9sO50.js → BvDFX1mj.js} +1 -1
- package/web/app/immutable/chunks/{DN-c0DDt.js → BvZOajsk.js} +1 -1
- package/web/app/immutable/chunks/{BIVpRSxo.js → C1_cc_jh.js} +2 -2
- package/web/app/immutable/chunks/{D3vsaFn3.js → C4wGdw9l.js} +1 -1
- package/web/app/immutable/chunks/{CmBouCgt.js → C5YfJpVq.js} +2 -2
- package/web/app/immutable/chunks/{BhVbCtBE.js → C9Sx9tb_.js} +1 -1
- package/web/app/immutable/chunks/{D-q3diCz.js → CG1puMxA.js} +1 -1
- package/web/app/immutable/chunks/{fCCFSMRf.js → CHaC_gXH.js} +3 -3
- package/web/app/immutable/chunks/{CRPk37P7.js → CJ7X12Bw.js} +1 -1
- package/web/app/immutable/chunks/{vJJhwCPu.js → CKxZ8tlS.js} +1 -1
- package/web/app/immutable/chunks/{BQGIKN0g.js → CQlYR8ss.js} +1 -1
- package/web/app/immutable/chunks/{DBwApbzS.js → CTFqJlwB.js} +1 -1
- package/web/app/immutable/chunks/{BdQ54KL0.js → CTflyKHO.js} +1 -1
- package/web/app/immutable/chunks/{DZKOpbCv.js → CUeJC-BW.js} +1 -1
- package/web/app/immutable/chunks/{B-I8ZlVM.js → CUsiQpqx.js} +1 -1
- package/web/app/immutable/chunks/{mq9vi3Up.js → CVtmf86l.js} +3 -3
- package/web/app/immutable/chunks/{D63urNNT.js → CY1uQ_EK.js} +1 -1
- package/web/app/immutable/chunks/{Z2wqUYyr.js → CbGsjkOn.js} +2 -2
- package/web/app/immutable/chunks/{D17rwSNZ.js → CbwlFeZe.js} +1 -1
- package/web/app/immutable/chunks/{KvHDUk_b.js → CcDyBqhb.js} +2 -2
- package/web/app/immutable/chunks/{nfiajAfR.js → CeaP52uL.js} +1 -1
- package/web/app/immutable/chunks/{4VEtxogG.js → Cekr5Jry.js} +1 -1
- package/web/app/immutable/chunks/{85NDZF0c.js → Ch6a7ELM.js} +1 -1
- package/web/app/immutable/chunks/{BwCICkMn.js → ChXsVZci.js} +1 -1
- package/web/app/immutable/chunks/{Dsyh_lG5.js → Cj89j1C-.js} +1 -1
- package/web/app/immutable/chunks/{86aXQThN.js → ClbQbaTd.js} +1 -1
- package/web/app/immutable/chunks/{oBc79yRV.js → CmR2cnYT.js} +1 -1
- package/web/app/immutable/chunks/{BT5v4htV.js → CnNk48uP.js} +1 -1
- package/web/app/immutable/chunks/{D5dii3q-.js → CoGKQKFb.js} +1 -1
- package/web/app/immutable/chunks/{CS9nZ0mb.js → CpQ2QLnc.js} +1 -1
- package/web/app/immutable/chunks/{BR02ohTI.js → Cs6KI4dy.js} +1 -1
- package/web/app/immutable/chunks/{DtluaQEg.js → Cu11OjbU.js} +4 -4
- package/web/app/immutable/chunks/{D8EdnE4r.js → CyDuWtxr.js} +1 -1
- package/web/app/immutable/chunks/{R69_F6ow.js → D-19S-7Z.js} +1 -1
- package/web/app/immutable/chunks/{BNSbhHFY.js → D1CvgUga.js} +1 -1
- package/web/app/immutable/chunks/{DZz-0U7K.js → D3R31YXQ.js} +1 -1
- package/web/app/immutable/chunks/{Dl8k4QUp.js → D5WcE_P_.js} +1 -1
- package/web/app/immutable/chunks/{Z4vtXCdu.js → D6m95MWL.js} +1 -1
- package/web/app/immutable/chunks/{DDVnHnMH.js → D78ptBES.js} +3 -3
- package/web/app/immutable/chunks/{CdfbvT19.js → D915og2m.js} +1 -1
- package/web/app/immutable/chunks/{wX0L7qir.js → DA_7jaWc.js} +3 -3
- package/web/app/immutable/chunks/{CheN8m7G.js → DAoh5LIP.js} +1 -1
- package/web/app/immutable/chunks/{BWFaOHKx.js → DAwK7LKd.js} +1 -1
- package/web/app/immutable/chunks/{B6CGcXmK.js → DIvSo5Nm.js} +1 -1
- package/web/app/immutable/chunks/{DUJ7Uicl.js → DJ_B6Tb0.js} +1 -1
- package/web/app/immutable/chunks/{CIuThArl.js → DLnFsCgA.js} +3 -3
- package/web/app/immutable/chunks/{CFjHgtjF.js → DMomDPVD.js} +4 -4
- package/web/app/immutable/chunks/{DHz7ym-I.js → DNnyE4a4.js} +1 -1
- package/web/app/immutable/chunks/{DrF6vLLb.js → DPhH7vBg.js} +1 -1
- package/web/app/immutable/chunks/{CJ9ZGIU3.js → DQVuWRan.js} +1 -1
- package/web/app/immutable/chunks/{T6fchQhT.js → DRD4T4u0.js} +2 -2
- package/web/app/immutable/chunks/{C3vs7E1W.js → DSjchUEk.js} +1 -1
- package/web/app/immutable/chunks/{Cy--ZUaj.js → DWt5yjbU.js} +2 -2
- package/web/app/immutable/chunks/{Bm_geQt1.js → DXY_Cr2S.js} +1 -1
- package/web/app/immutable/chunks/{C8A41C8K.js → DYcuijJl.js} +1 -1
- package/web/app/immutable/chunks/{uftNwUIw.js → DZiUi6tE.js} +1 -1
- package/web/app/immutable/chunks/{gsePksRf.js → DaQPP3_d.js} +1 -1
- package/web/app/immutable/chunks/{DCFeaWgZ.js → Db4jRBl0.js} +1 -1
- package/web/app/immutable/chunks/{CkTunFkP.js → Dgc0jIMe.js} +1 -1
- package/web/app/immutable/chunks/{D2McplNW.js → DiBpIS7p.js} +1 -1
- package/web/app/immutable/chunks/{Ba3e0br1.js → DjbX62Cx.js} +1 -1
- package/web/app/immutable/chunks/{ublLekYt.js → DlWizs9I.js} +1 -1
- package/web/app/immutable/chunks/{Nthsb-68.js → Dm9VEl_l.js} +1 -1
- package/web/app/immutable/chunks/{CeZGOup4.js → DnhCnCMz.js} +1 -1
- package/web/app/immutable/chunks/{CM3NPzxs.js → Dz-zX_Ts.js} +1 -1
- package/web/app/immutable/chunks/{x0vz7jUI.js → EAuFbzCr.js} +1 -1
- package/web/app/immutable/chunks/{zA4TFq_E.js → IvX_QTkj.js} +1 -1
- package/web/app/immutable/chunks/{ByZRLPfm.js → J2YvrN12.js} +3 -3
- package/web/app/immutable/chunks/{g-pOypvE.js → JZ-O0OQl.js} +1 -1
- package/web/app/immutable/chunks/{BE4rQlti.js → MzHad0-m.js} +1 -1
- package/web/app/immutable/chunks/{DqRvDwkX.js → OIB4u9ZA.js} +1 -1
- package/web/app/immutable/chunks/{CB2iSm6U.js → OtJAfUmG.js} +1 -1
- package/web/app/immutable/chunks/{oEGQGYxq.js → PX_tznAF.js} +1 -1
- package/web/app/immutable/chunks/{Ci0dPfzv.js → RWuDgH63.js} +1 -1
- package/web/app/immutable/chunks/{BF_gPEg7.js → Rtit513z.js} +1 -1
- package/web/app/immutable/chunks/{BlTdGk3A.js → UZYqZZXR.js} +1 -1
- package/web/app/immutable/chunks/{BkYN9M7z.js → UsyUyHOM.js} +1 -1
- package/web/app/immutable/chunks/{C4sNRwZN.js → X6hYTxgn.js} +1 -1
- package/web/app/immutable/chunks/{DIPIWs2Q.js → cTFeOFQC.js} +4 -4
- package/web/app/immutable/chunks/{CzFnnQhI.js → cmil589m.js} +1 -1
- package/web/app/immutable/chunks/{JrdZaYjT.js → fKOcHw3K.js} +1 -1
- package/web/app/immutable/chunks/{C4JKtRY1.js → iTNhB2TC.js} +1 -1
- package/web/app/immutable/chunks/{sQSEv8Vy.js → j5mPVG9_.js} +1 -1
- package/web/app/immutable/chunks/{BVXrO_xP.js → kzuAnGps.js} +1 -1
- package/web/app/immutable/chunks/{2mfr9mCI.js → lei6Hlse.js} +1 -1
- package/web/app/immutable/chunks/{Cmw8ZiCg.js → lskgWJFV.js} +1 -1
- package/web/app/immutable/chunks/{CrK7N1sc.js → lzi3tV-r.js} +1 -1
- package/web/app/immutable/chunks/{CqqkIXTJ.js → pe4pVEc5.js} +1 -1
- package/web/app/immutable/chunks/{Da5bNPjQ.js → r3TSpOm2.js} +1 -1
- package/web/app/immutable/chunks/{97-360Ms.js → rEuNpCjM.js} +1 -1
- package/web/app/immutable/chunks/{Beb33qQi.js → rdKijoRw.js} +1 -1
- package/web/app/immutable/chunks/{D36a16oA.js → sPwEr0L4.js} +2 -2
- package/web/app/immutable/chunks/{CndXvgyH.js → tqn1yslZ.js} +6 -6
- package/web/app/immutable/chunks/{DOmB999d.js → yqU168vt.js} +1 -1
- package/web/app/immutable/entry/{app.Beuvfwpq.js → app.CD-KpBFY.js} +2 -2
- package/web/app/immutable/entry/start.BtJunRGi.js +1 -0
- package/web/app/immutable/nodes/{0.cL5zt7Bt.js → 0.BTKBksQU.js} +1 -1
- package/web/app/immutable/nodes/{1.Dj9s42wq.js → 1.CDH50XYo.js} +1 -1
- package/web/app/immutable/nodes/{10.CQpwV39P.js → 10.BSK1ezgF.js} +1 -1
- package/web/app/immutable/nodes/{11.ryjds32c.js → 11.BkTyY8lh.js} +1 -1
- package/web/app/immutable/nodes/{15.ffzaVnT8.js → 15.CRngZgh2.js} +1 -1
- package/web/app/immutable/nodes/{19.COuvk-IK.js → 19.CI9f3oHV.js} +2 -2
- package/web/app/immutable/nodes/{2.CyeHTGza.js → 2.BPIXyW9K.js} +1 -1
- package/web/app/immutable/nodes/{3.Cli5S3q6.js → 3.CjIzds8z.js} +1 -1
- package/web/app/immutable/nodes/{4.DnwVlUKb.js → 4.BzXxqxag.js} +1 -1
- package/web/app/immutable/nodes/{5.BBLKg00X.js → 5.B54vgJ_P.js} +1 -1
- package/web/app/immutable/nodes/{6.D_zrx8Je.js → 6.plJT8OLe.js} +1 -1
- package/web/app/immutable/nodes/{7.CbiG1FxN.js → 7.DSDH5hqz.js} +1 -1
- package/web/app/immutable/nodes/{8.BqucsZP2.js → 8.B7U72PdE.js} +1 -1
- package/web/app/immutable/nodes/{9.YctElBWI.js → 9.BY44vZ0i.js} +2 -2
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/entry/start.dSf-uLxv.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
import{bm as c,_ as p}from"./CLAmm_T1.js";import{m as I}from"./96V4v2iI.js";import"./3SdAC2_C.js";import"./CcJmuwXr.js";import"./BwNrQXlF.js";import{Q as A}from"./TB9r2XJy.js";import"./ChTqQfQN.js";import"./BbYWP3Ow.js";import{m as L,JH as d,vK as g,vM as v}from"./B9vHutcJ.js";import{a9 as R}from"./C2UL5Ler.js";import{selectCurrentWorkspaceTabId as P}from"./aZdb_rCN.js";const F="intent://local/note/{note-id}",S="intent://local/{workspace-id}/note/{note-id}";function f(){return c.ui_linkHandler_invalidFormat_error({shortFormat:F,longFormat:S})}class u extends Error{constructor(r){super(r),this.name="NotFoundError"}}function H(e){try{const r=new URL(e.replace("intent://","http://")),t=r.hostname,n=r.pathname.replace(/^\/+/,"").split("/").filter(l=>l.length>0),a=e.replace("intent://","").split(/[?#]/)[0].split("/").slice(1);if(!t||n.length<2)return{type:"unknown",orgId:t||"",resourceId:"",valid:!1,error:f()};let o,s,i,_,w;if(a[0]==="workspace"&&(a.length===2||a.length===3&&a[2]==="")){const l=O(a[1]);if(!l)return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:f()};o=l,s="workspace",i=l}else if(a[0]==="file")s="file",i=m(a.slice(1));else if(a.length>=3&&k(a[0])&&a[1]==="file")o=a[0],s="file",i=m(a.slice(2));else if(a.length===5&&a[1]==="agent"&&a[3]==="message"&&k(a[0])&&k(a[2])&&k(a[4])&&n.length===5&&n[1]==="agent"&&n[3]==="message")o=n[0],s="message",_=n[2],i=n[4];else if(n[0]==="note"||n[0]==="task")s=n[0],i=n[1];else if(n.length>=3&&(n[1]==="note"||n[1]==="task"))o=n[0],s=n[1],i=n[2];else return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:f()};if(!i||i.trim().length===0)return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:c.ui_linkHandler_emptyResourceId_error()};if(s==="note"||s==="task")return{type:s,orgId:t,workspaceId:o,resourceId:i,valid:!0};if(s==="file"){const l=/^#L\d+(?:-\d+|C\d+)?$/.test(r.hash)?r.hash:"",E=a.slice(o?2:1).join("/"),h=A(E+l);return i=m(h.path.split("/")),w=h.line,W(i)?{type:"file",orgId:t,workspaceId:o,resourceId:i,...w!==void 0?{line:w}:{},valid:!0}:{type:"unknown",orgId:t,workspaceId:o,resourceId:"",valid:!1,error:c.ui_linkHandler_invalidFilePath_error()}}return s==="workspace"&&o?{type:"workspace",orgId:t,workspaceId:o,resourceId:i,valid:!0}:s==="message"&&o&&_?{type:"message",orgId:t,workspaceId:o,resourceId:i,agentId:_,valid:!0}:{type:"unknown",orgId:t,workspaceId:o,resourceId:i,valid:!1,error:c.ui_linkHandler_unknownResourceType_error({type:s})}}catch(r){return{type:"unknown",orgId:"",resourceId:"",valid:!1,error:r instanceof Error?r.message:c.ui_linkHandler_parseFailed_error()}}}function m(e){return e.map(r=>decodeURIComponent(r)).join("/")}function W(e){return/^[A-Za-z]:/.test(e)?!1:e.split(/[\\/]/).every(t=>t.length>0&&t!=="."&&t!=="..")}const j=new Set([L,"new"]);function O(e){if(e===void 0||!k(e))return null;const r=decodeURIComponent(e);return j.has(r)?null:r}function k(e){let r;try{r=decodeURIComponent(e)}catch{return!1}return r.length>0&&r!=="."&&r!==".."&&!/[\\/]/.test(r)}async function T(e,r={}){if(!e.startsWith("intent://"))return!1;const t=H(e);if(!t.valid)return I.error(c.ui_linkHandler_invalidLink_title(),{description:t.error||c.ui_linkHandler_invalidLink_description()}),!0;try{switch(t.type){case"note":case"task":await N(t,r);break;case"file":await b(t,r);break;case"workspace":await C(t.resourceId);break;case"message":{const{openMessage:n}=await p(async()=>{const{openMessage:a}=await import("./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/kzuAnGps.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/BbhtQrkZ.js","/app/immutable/chunks/CLAmm_T1.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/B9vHutcJ.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/BBFoj-dS.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/BwNrQXlF.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/TB9r2XJy.js","/app/immutable/chunks/UTM5G-w-.js","/app/immutable/chunks/CcJmuwXr.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/_UjuBCOJ.js","/app/immutable/chunks/C2UL5Ler.js","/app/immutable/chunks/DPttSllj.js","/app/immutable/chunks/BwH4Bvte.js","/app/immutable/chunks/BFgvMDua.js","/app/immutable/chunks/B1CKzIA2.js","/app/immutable/chunks/BGrimfDs.js","/app/immutable/chunks/Cu5e4npY.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/DWt5yjbU.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/Bc1CpNLz.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{bm as c,_ as p}from"./CLAmm_T1.js";import{m as I}from"./96V4v2iI.js";import"./3SdAC2_C.js";import"./CcJmuwXr.js";import"./BwNrQXlF.js";import{Q as A}from"./TB9r2XJy.js";import"./ChTqQfQN.js";import"./BbYWP3Ow.js";import{m as L,JH as d,vK as g,vM as v}from"./B9vHutcJ.js";import{a9 as R}from"./C2UL5Ler.js";import{selectCurrentWorkspaceTabId as P}from"./aZdb_rCN.js";const F="intent://local/note/{note-id}",S="intent://local/{workspace-id}/note/{note-id}";function f(){return c.ui_linkHandler_invalidFormat_error({shortFormat:F,longFormat:S})}class u extends Error{constructor(r){super(r),this.name="NotFoundError"}}function H(e){try{const r=new URL(e.replace("intent://","http://")),t=r.hostname,n=r.pathname.replace(/^\/+/,"").split("/").filter(l=>l.length>0),a=e.replace("intent://","").split(/[?#]/)[0].split("/").slice(1);if(!t||n.length<2)return{type:"unknown",orgId:t||"",resourceId:"",valid:!1,error:f()};let o,s,i,_,w;if(a[0]==="workspace"&&(a.length===2||a.length===3&&a[2]==="")){const l=O(a[1]);if(!l)return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:f()};o=l,s="workspace",i=l}else if(a[0]==="file")s="file",i=m(a.slice(1));else if(a.length>=3&&k(a[0])&&a[1]==="file")o=a[0],s="file",i=m(a.slice(2));else if(a.length===5&&a[1]==="agent"&&a[3]==="message"&&k(a[0])&&k(a[2])&&k(a[4])&&n.length===5&&n[1]==="agent"&&n[3]==="message")o=n[0],s="message",_=n[2],i=n[4];else if(n[0]==="note"||n[0]==="task")s=n[0],i=n[1];else if(n.length>=3&&(n[1]==="note"||n[1]==="task"))o=n[0],s=n[1],i=n[2];else return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:f()};if(!i||i.trim().length===0)return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:c.ui_linkHandler_emptyResourceId_error()};if(s==="note"||s==="task")return{type:s,orgId:t,workspaceId:o,resourceId:i,valid:!0};if(s==="file"){const l=/^#L\d+(?:-\d+|C\d+)?$/.test(r.hash)?r.hash:"",E=a.slice(o?2:1).join("/"),h=A(E+l);return i=m(h.path.split("/")),w=h.line,W(i)?{type:"file",orgId:t,workspaceId:o,resourceId:i,...w!==void 0?{line:w}:{},valid:!0}:{type:"unknown",orgId:t,workspaceId:o,resourceId:"",valid:!1,error:c.ui_linkHandler_invalidFilePath_error()}}return s==="workspace"&&o?{type:"workspace",orgId:t,workspaceId:o,resourceId:i,valid:!0}:s==="message"&&o&&_?{type:"message",orgId:t,workspaceId:o,resourceId:i,agentId:_,valid:!0}:{type:"unknown",orgId:t,workspaceId:o,resourceId:i,valid:!1,error:c.ui_linkHandler_unknownResourceType_error({type:s})}}catch(r){return{type:"unknown",orgId:"",resourceId:"",valid:!1,error:r instanceof Error?r.message:c.ui_linkHandler_parseFailed_error()}}}function m(e){return e.map(r=>decodeURIComponent(r)).join("/")}function W(e){return/^[A-Za-z]:/.test(e)?!1:e.split(/[\\/]/).every(t=>t.length>0&&t!=="."&&t!=="..")}const j=new Set([L,"new"]);function O(e){if(e===void 0||!k(e))return null;const r=decodeURIComponent(e);return j.has(r)?null:r}function k(e){let r;try{r=decodeURIComponent(e)}catch{return!1}return r.length>0&&r!=="."&&r!==".."&&!/[\\/]/.test(r)}async function T(e,r={}){if(!e.startsWith("intent://"))return!1;const t=H(e);if(!t.valid)return I.error(c.ui_linkHandler_invalidLink_title(),{description:t.error||c.ui_linkHandler_invalidLink_description()}),!0;try{switch(t.type){case"note":case"task":await N(t,r);break;case"file":await b(t,r);break;case"workspace":await C(t.resourceId);break;case"message":{const{openMessage:n}=await p(async()=>{const{openMessage:a}=await import("./kzuAnGps.js");return{openMessage:a}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33]),import.meta.url);await n({workspaceId:t.workspaceId,agentId:t.agentId,messageId:t.resourceId});break}default:I.error(c.ui_linkHandler_unsupportedLink_title(),{description:c.ui_linkHandler_unsupportedLink_description({type:t.type})})}}catch(n){n instanceof u?I.error(c.ui_linkHandler_notFound_title(),{description:n.message}):I.error(c.ui_linkHandler_navigationFailed_title(),{description:n instanceof Error?n.message:c.ui_linkHandler_unknownError_label()})}return!0}function Q(e,r){return R(e,r)}function Z(){return async(e,r,t)=>{const a=t.target.closest("a");return a?.href?.startsWith("intent://")?(t.preventDefault(),await T(a.href)):!1}}async function C(e){const{appClient:r}=await p(async()=>{const{appClient:a}=await import("./BbhtQrkZ.js").then(o=>o.s);return{appClient:a}},__vite__mapDeps([3,1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,2,20,21,22]),import.meta.url);if(!await r.workspaces.get(e).catch(()=>null))throw new u(c.workspace_loader_notFound_title());const{openAndShowWorkspace:n}=await p(async()=>{const{openAndShowWorkspace:a}=await import("./Bc1CpNLz.js").then(o=>o.s);return{openAndShowWorkspace:a}},__vite__mapDeps([33,7,5,6,8,9,10,11,4,12,13,14,31,32]),import.meta.url);await n(e)}async function N(e,r){const t=r.workspaceId??P.select(d.state)??void 0;if(e.workspaceId){const a=!t||e.workspaceId!==t;if(!await y(e.workspaceId,e.resourceId))throw new u(c.ui_linkHandler_noteNotFound_error({noteId:e.resourceId,workspaceId:e.workspaceId}));if(a){const{openAndShowWorkspace:s}=await p(async()=>{const{openAndShowWorkspace:i}=await import("./Bc1CpNLz.js").then(_=>_.s);return{openAndShowWorkspace:i}},__vite__mapDeps([33,7,5,6,8,9,10,11,4,12,13,14,31,32]),import.meta.url);await s(e.workspaceId,{query:{note:e.resourceId}})}else d.dispatch(v(e.workspaceId,e.resourceId,{openInAdjacentPanel:r.openInAdjacentPanel??!1,openInNewAdjacentPanel:r.openInNewAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}));return}if(!t)throw new u(c.ui_linkHandler_noSpaceOpen_error());if(!await y(t,e.resourceId))throw new u(c.ui_linkHandler_noteNotFoundCurrent_error({noteId:e.resourceId}));d.dispatch(v(t,e.resourceId,{openInAdjacentPanel:r.openInAdjacentPanel??!1,openInNewAdjacentPanel:r.openInNewAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}))}async function b(e,r){const t=r.workspaceId??P.select(d.state)??void 0;if(e.workspaceId){const n=!t||e.workspaceId!==t;if(n){const{openAndShowWorkspace:a}=await p(async()=>{const{openAndShowWorkspace:o}=await import("./Bc1CpNLz.js").then(s=>s.s);return{openAndShowWorkspace:o}},__vite__mapDeps([33,7,5,6,8,9,10,11,4,12,13,14,31,32]),import.meta.url);if(!await a(e.workspaceId))return}d.dispatch(g(e.workspaceId,e.resourceId,{filePathIsLiteral:!0,...e.line!==void 0?{line:e.line}:{},openInAdjacentPanel:n?!1:r.openInAdjacentPanel??!1,sourcePanelId:n?void 0:r.sourcePanelId}));return}if(!t)throw new u(c.ui_linkHandler_noSpaceOpen_error());d.dispatch(g(t,e.resourceId,{filePathIsLiteral:!0,...e.line!==void 0?{line:e.line}:{},openInAdjacentPanel:r.openInAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}))}async function y(e,r){try{const{backendRequest:t}=await p(async()=>{const{backendRequest:o}=await import("./TB9r2XJy.js").then(s=>s.j);return{backendRequest:o}},__vite__mapDeps([15,4,5,14,10,16,13,17,11,18,19]),import.meta.url),n=await t("note.get",{workspaceId:e,noteId:r}),a=n&&typeof n=="object"&&"note"in n?n.note:n;return a!=null&&typeof a=="object"}catch{return!1}}export{u as NotFoundError,Z as createIntentLinkClickHandler,Q as generateNoteLink,T as handleIntentLink,H as parseIntentLink};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as a,B as w,ay as x}from"./
|
|
1
|
+
import{b as a,B as w,ay as x}from"./Cu11OjbU.js";var g=a((e,t,i,r)=>{e.attr("class",i);const{width:o,height:h,x:n,y:c}=u(e,t);w(e,h,o,r);const s=B(n,c,o,h,t);e.attr("viewBox",s),x.debug(`viewBox configured: ${s} with padding: ${t}`)},"setupViewPortForSVG"),u=a((e,t)=>{const i=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+t*2,height:i.height+t*2,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),B=a((e,t,i,r,o)=>`${e-o} ${t-o} ${i} ${r}`,"createViewBox");export{g as s};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/DVsXJTH5.js","/app/immutable/chunks/CLAmm_T1.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/BFgvMDua.js","/app/immutable/chunks/CIbfGsF-.js","/app/immutable/chunks/CrK7N1sc.js","/app/immutable/chunks/B1CKzIA2.js","/app/immutable/chunks/BwNrQXlF.js","/app/immutable/chunks/CcJmuwXr.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/BwH4Bvte.js","/app/immutable/chunks/96V4v2iI.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/nxtepGjE.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/TB9r2XJy.js","/app/immutable/chunks/UTM5G-w-.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/Cu5e4npY.js","/app/immutable/chunks/BbYWP3Ow.js","/app/immutable/chunks/B9vHutcJ.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/BBFoj-dS.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/DPttSllj.js","/app/immutable/chunks/CfNIzRu8.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.DylRFR3N.css","/app/immutable/chunks/Dd-LQrG1.js","/app/immutable/chunks/D2YDfFKv.js","/app/immutable/chunks/DaWmj23r.js","/app/immutable/chunks/C4jSaPCg.js","/app/immutable/chunks/DtXgUHCj.js","/app/immutable/chunks/hkJYqn41.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/CgrVbtN0.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/CEE0831H.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/BpMXdC4H.js","/app/immutable/chunks/DtzJzV-4.js","/app/immutable/chunks/BtmHyUSg.js","/app/immutable/chunks/B5N8LmEF.js","/app/immutable/chunks/BjLb7AHW.js","/app/immutable/chunks/DCs992HX.js","/app/immutable/chunks/DAsc1V4f.js","/app/immutable/chunks/BsieX9dN.js","/app/immutable/chunks/Drl447ub.js","/app/immutable/assets/SettingsPage.CKvEnOAL.css","/app/immutable/chunks/2mfr9mCI.js","/app/immutable/chunks/goTpbPhD.js","/app/immutable/chunks/CIuThArl.js","/app/immutable/chunks/BbhtQrkZ.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/_UjuBCOJ.js","/app/immutable/chunks/C2UL5Ler.js","/app/immutable/chunks/BGrimfDs.js","/app/immutable/chunks/D-62MVd3.js","/app/immutable/chunks/BIFBPuAO.js","/app/immutable/chunks/CL3a4Hm1.js","/app/immutable/chunks/D8EdnE4r.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/BF_gPEg7.js","/app/immutable/chunks/DQw0Iiac.js","/app/immutable/chunks/aZdb_rCN.js","/app/immutable/chunks/BPQFiQQc.js","/app/immutable/chunks/KnkAG0HD.js","/app/immutable/chunks/Cy--ZUaj.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/DpCic98X.js","/app/immutable/assets/slider.kL-wkHnx.css","/app/immutable/chunks/BnV9CBUH.js","/app/immutable/chunks/KvHDUk_b.js","/app/immutable/chunks/D99jSct3.js","/app/immutable/chunks/CQcEqK4G.js","/app/immutable/chunks/D7QZQ0zf.js","/app/immutable/chunks/CVWwz1Ss.js","/app/immutable/chunks/CZr8f1ch.js","/app/immutable/chunks/DMrzeQEi.js","/app/immutable/chunks/DZzwt3PA.js","/app/immutable/assets/DockScreenshotEditorWindow.DNkBhnHK.css","/app/immutable/assets/dock-tokens.C3wiNkmL.css","/app/immutable/chunks/BQGIKN0g.js","/app/immutable/chunks/mq9vi3Up.js","/app/immutable/chunks/Ll0WtNFW.js","/app/immutable/chunks/Dp7Hm0g0.js","/app/immutable/assets/select-viewport.CV-KWLNP.css","/app/immutable/chunks/Cn4A9AjR.js","/app/immutable/chunks/vpQRVk8F.js","/app/immutable/chunks/DxyD9o0t.js","/app/immutable/chunks/BksTLNI4.js","/app/immutable/chunks/BzW_moTi.js","/app/immutable/chunks/BzWT_wQw.js","/app/immutable/chunks/C3vs7E1W.js","/app/immutable/chunks/z5FcOXD5.js","/app/immutable/chunks/D4d1iyeR.js","/app/immutable/chunks/vj8NdGWd.js","/app/immutable/chunks/CXfRSojK.js","/app/immutable/chunks/CndXvgyH.js","/app/immutable/chunks/Da5bNPjQ.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/Di3tMG_J.js","/app/immutable/chunks/TyAuxp07.js","/app/immutable/chunks/CDwhmkPo.js","/app/immutable/assets/checkbox.D429NJZk.css","/app/immutable/assets/directory-picker-service.uzk1xoHg.css","/app/immutable/chunks/fCCFSMRf.js","/app/immutable/chunks/BrMDTgLg.js","/app/immutable/chunks/T6fchQhT.js","/app/immutable/chunks/BhCMc9G0.js","/app/immutable/chunks/9YT9B_ti.js","/app/immutable/assets/AgentAvatar.CZKKHyEm.css","/app/immutable/assets/avatar-state.BzFIexJN.css","/app/immutable/chunks/CYxt6gzD.js","/app/immutable/assets/TipTapEditor.BmeA7Qtk.css","/app/immutable/chunks/GnUYJfg_.js","/app/immutable/chunks/D36C5UHH.js","/app/immutable/chunks/tCg_s90g.js","/app/immutable/assets/image-context-items.D_hsaikk.css","/app/immutable/chunks/R69_F6ow.js","/app/immutable/chunks/u4iPyMwH.js","/app/immutable/assets/AttachmentPreview.DWUPhcKi.css","/app/immutable/chunks/DIPIWs2Q.js","/app/immutable/chunks/s6Wn05Cg.js","/app/immutable/chunks/D17rwSNZ.js","/app/immutable/chunks/Bu13V5mO.js","/app/immutable/chunks/B6dUCFoz.js","/app/immutable/chunks/B4JMAhvp.js","/app/immutable/chunks/k1pjOtcg.js","/app/immutable/chunks/BNCKMxAC.js","/app/immutable/chunks/BKD7o1lQ.js","/app/immutable/assets/TaskStatusIcon.sfU2TZ7a.css","/app/immutable/chunks/Dqi2LMpO.js","/app/immutable/chunks/DfheqyY9.js","/app/immutable/chunks/Rzyk45bZ.js","/app/immutable/assets/AgentCard.Cna0hri3.css","/app/immutable/chunks/DqRvDwkX.js","/app/immutable/chunks/DEB8jcix.js","/app/immutable/chunks/lwn02icp.js","/app/immutable/chunks/TBtn8giw.js","/app/immutable/assets/TrackedChangeDiffViewer.CveSjyPc.css","/app/immutable/chunks/ByyFoG6W.js","/app/immutable/chunks/BId1zNus.js","/app/immutable/chunks/CcNhqKh5.js","/app/immutable/assets/syntax-highlighting.CrQGLq0X.css","/app/immutable/assets/CodeBlock.BezhEtUo.css","/app/immutable/chunks/DtluaQEg.js","/app/immutable/chunks/BbIcudMY.js","/app/immutable/chunks/CfQcMKZg.js","/app/immutable/assets/DiagramPresentation.C2GLYoBN.css","/app/immutable/chunks/CRSiOiSR.js","/app/immutable/chunks/BIVpRSxo.js","/app/immutable/chunks/DgAgTFcK.js","/app/immutable/chunks/C-BsEdGZ.js","/app/immutable/chunks/DDVnHnMH.js","/app/immutable/assets/MarkdownViewer.D2MexjjT.css","/app/immutable/chunks/D36a16oA.js","/app/immutable/chunks/uvhZkGDU.js","/app/immutable/chunks/BwVhyX7o.js","/app/immutable/chunks/wX0L7qir.js","/app/immutable/assets/workspace-key-menu.DrT-Fxqq.css","/app/immutable/chunks/A0p6PvBn.js","/app/immutable/chunks/YqTahsxp.js","/app/immutable/chunks/BWfc0sSK.js","/app/immutable/chunks/CjPEI4fg.js","/app/immutable/chunks/hgE6oWwa.js","/app/immutable/assets/StreamingDiagramRenderer.BShsSvPz.css","/app/immutable/assets/chat-search.Cjb73igJ.css","/app/immutable/chunks/Ba3e0br1.js","/app/immutable/chunks/ClxyT-Se.js","/app/immutable/chunks/B_vpadVO.js","/app/immutable/chunks/Bm_geQt1.js","/app/immutable/chunks/D4WPlvMg.js","/app/immutable/chunks/D-q3diCz.js","/app/immutable/chunks/CB2iSm6U.js","/app/immutable/chunks/BGniv2IE.js","/app/immutable/chunks/CeZGOup4.js","/app/immutable/chunks/C6RhewOE.js","/app/immutable/assets/AgentAvatarStack.DOhClFuX.css","/app/immutable/chunks/Chj-azz7.js","/app/immutable/assets/conversation-turns.P_pkAsRX.css","/app/immutable/chunks/CgGsxeG7.js","/app/immutable/chunks/X0RLj3lE.js","/app/immutable/chunks/DdNhEgdc.js","/app/immutable/chunks/Cm0Qloca.js","/app/immutable/chunks/CWsj4Hb7.js","/app/immutable/chunks/dEPZ-XrU.js","/app/immutable/chunks/4VEtxogG.js","/app/immutable/chunks/mfOfLDEg.js","/app/immutable/chunks/H2jLkRRS.js","/app/immutable/chunks/BHy9cRzo.js","/app/immutable/assets/WorkspaceSetupCard.DNLkSKZg.css","/app/immutable/chunks/i5FUlYpy.js","/app/immutable/chunks/DL6gGkHp.js","/app/immutable/assets/DockRecordingEditor.BX1NXczK.css","/app/immutable/chunks/etz9IKpr.js","/app/immutable/chunks/DuaPhBil.js","/app/immutable/chunks/BVXrO_xP.js","/app/immutable/assets/ChatPanel.B73KM22O.css","/app/immutable/assets/HomeWorkspaceDetail.Dp5EWw2P.css","/app/immutable/chunks/CkTunFkP.js","/app/immutable/chunks/D7b2VLAz.js","/app/immutable/chunks/CQ409-Pj.js","/app/immutable/chunks/KZwZoyIt.js","/app/immutable/chunks/CXXVPWBH.js","/app/immutable/chunks/DWGXN6Nr.js","/app/immutable/chunks/ByZRLPfm.js","/app/immutable/chunks/R-UFG3MB.js","/app/immutable/chunks/C3dytrTL.js","/app/immutable/assets/BrowserTabType.DojB6H-_.css","/app/immutable/chunks/BhVbCtBE.js","/app/immutable/chunks/zA4TFq_E.js","/app/immutable/chunks/D3yXvqwY.js","/app/immutable/chunks/Ctp-YfoS.js","/app/immutable/chunks/qhd9g-fv.js","/app/immutable/chunks/yofTuS8P.js","/app/immutable/chunks/BjE6fvlI.js","/app/immutable/chunks/C4fj9uDh.js","/app/immutable/assets/register.CUyDR59i.css","/app/immutable/assets/terminal-manager.MhP_vFvK.css","/app/immutable/chunks/Be-9sO50.js","/app/immutable/assets/confirm-script-deletion.CqNa5NIC.css","/app/immutable/chunks/CwEjDuJ3.js","/app/immutable/assets/Terminal.Ddek5eNE.css","/app/immutable/chunks/Cp5royN1.js","/app/immutable/chunks/DUJ7Uicl.js","/app/immutable/chunks/0AIorxUa.js","/app/immutable/chunks/pfX_M-aK.js","/app/immutable/chunks/5J_xNo3h.js","/app/immutable/chunks/Bviyt-Xy.js","/app/immutable/chunks/CM3NPzxs.js","/app/immutable/chunks/CSiaiLHL.js","/app/immutable/chunks/Dfp6ssYD.js","/app/immutable/chunks/B_QPRXJ5.js","/app/immutable/chunks/BR1TNOav.js","/app/immutable/chunks/BIv0yV05.js","/app/immutable/chunks/BO4HougN.js","/app/immutable/chunks/sQSEv8Vy.js","/app/immutable/assets/AgentOverviewTabType.DU1WpoFR.css","/app/immutable/chunks/BE4rQlti.js","/app/immutable/chunks/CUE71p7a.js","/app/immutable/chunks/caKZ9Z4U.js","/app/immutable/chunks/DOmB999d.js","/app/immutable/chunks/CfYmMj5F.js","/app/immutable/assets/DiscussionTabType.D3Laoutn.css","/app/immutable/chunks/CJ9ZGIU3.js","/app/immutable/chunks/BNJ3edFz.js","/app/immutable/chunks/BtNlG0Qg.js","/app/immutable/assets/CodeEditor.Bq04Rj-N.css","/app/immutable/chunks/D1BvOU2l.js","/app/immutable/assets/LineChangesBadge.CJ0J_Z0k.css","/app/immutable/chunks/z3SZgGAK.js","/app/immutable/assets/NoteTabType.AG_iwaNn.css","/app/immutable/chunks/BkYN9M7z.js","/app/immutable/chunks/wEnqV1Ol.js","/app/immutable/chunks/BOVEEbKv.js","/app/immutable/chunks/Jg5r77fy.js","/app/immutable/assets/FileTabType.BUKcoHE1.css","/app/immutable/chunks/C4UYdkwZ.js","/app/immutable/chunks/85NDZF0c.js","/app/immutable/chunks/D63urNNT.js","/app/immutable/chunks/BwCICkMn.js","/app/immutable/assets/ChatChangesPanel.BQqG1JnE.css","/app/immutable/chunks/BdNfyyl1.js","/app/immutable/chunks/CqqkIXTJ.js","/app/immutable/chunks/Cp1B7D7t.js","/app/immutable/chunks/C-HR_nje.js","/app/immutable/chunks/CkmDctRH.js","/app/immutable/chunks/C8tk9ZQ3.js","/app/immutable/chunks/BZ9svoQk.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{bm as e,_ as c,t as Te,bo as ie,bw as he,b as ke}from"./CLAmm_T1.js";import{t as u}from"./DRND1Lha.js";import{bD as ue,bv as Ve,cK as Ne,aO as $e,cn as Me,aV as ge,bg as Ke,aN as Be,aM as Ge,bs as He,bL as qe,b_ as Fe,bJ as je,F as Ue}from"./DPttSllj.js";import{R as H}from"./Lai6pqjy.js";import{bs as we,ca as Q,bH as v,aD as t,bV as K,br as ze,a7 as q,ay as M,W as p,bn as Le,c9 as b,aA as ne,a5 as X,bA as Z,bS as ye,aw as Ye,aB as W,be as F,b$ as x,b_ as I,bO as E,bl as Je,bk as Qe}from"./3SdAC2_C.js";import{i as D}from"./BFgvMDua.js";import{s as fe}from"./CcJmuwXr.js";import{L as me}from"./tCg_s90g.js";import{C as Xe,L as be}from"./Dd-LQrG1.js";import{I as Ze}from"./DaWmj23r.js";import"./C4jSaPCg.js";import"./CEE0831H.js";import{f as le}from"./nxtepGjE.js";import{v as Ie}from"./TB9r2XJy.js";import"./CgrVbtN0.js";import"./BwNrQXlF.js";import{I as ve}from"./B1CKzIA2.js";import{I as et}from"./Bqd7fdCF.js";import"./UTM5G-w-.js";import{a as tt}from"./BdWqymET.js";function xt(){u.register({type:"workspace",loadComponent:()=>c(()=>import("./DVsXJTH5.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208]),import.meta.url),defaultWidthTier:"wide",icon:ue,get defaultTitle(){return e.workspace_page_workspaceResource_label()},get categoryLabel(){return e.workspace_page_workspaceResource_label()},renameable:!1}),u.register({type:"browser",loadComponent:()=>c(()=>import("./CkTunFkP.js"),__vite__mapDeps([209,1,2,3,11,6,7,8,9,10,15,210,22,23,24,25,26,18,13,4,70,14,16,17,19,12,20,21,27,28,29,30,31,32,45,33,34,35,36,37,38,39,40,41,42,43,44,46,58,71,63,62,64,67,60,59,72,73,74,75,76,77,180,91,57,61,181,211,122,212,124,52,135,85,213,98,99,214,106,107,108,109,110,215,216,101,217,218]),import.meta.url),defaultWidthTier:"wide",icon:Ve,get defaultTitle(){return e.layout_tabTypes_browser_title()},get categoryLabel(){return e.layout_tabTypes_browser_category()},sidebarTabId:"browser",renameable:!1}),u.register({type:"terminal",loadComponent:()=>c(()=>import("./BhVbCtBE.js"),__vite__mapDeps([219,1,2,3,4,11,28,7,8,9,10,6,63,18,22,23,24,25,26,13,62,16,17,19,64,20,220,15,221,222,59,60,57,58,61,223,224,225,226,227,109,211,190,228,14,12,21,27,29,30,31,32,212,229,71,67,72,73,74,75,76,77,36,42,43,40,41,216,230,38,35,39,135,33,34,37,44,45,46,214,231,148,232,233,101,217]),import.meta.url),defaultWidthTier:"medium",icon:Ne,get defaultTitle(){return e.layout_tabTypes_terminal_title()},get categoryLabel(){return e.layout_tabTypes_terminal_category()},sidebarTabId:"terminals",renameable:!1}),u.register({type:"code-review",loadComponent:()=>c(()=>import("./DUJ7Uicl.js"),__vite__mapDeps([234,1,2,22,23,24,25,9,7,26,18,13,3,29,6,8,10,63,62,28,11,16,17,19,64,20,215,73,75,91,71,67,60,59,72,74,58,76,77,57,61,216,180,12,14,15,4,21,27,30,31,32,181,101,235,236,177,83,86,178,179,129,131,132,141,229,166,237,217,238,36,42,43,40,41,110,109,171,205,190,212,142,134,70,239,240,241,242,243,198,150,106,107,108,244,245,223,224,225,226,227,139,152,153,35,163,81,68,69,33,34,37,38,39,44,45,46,78,79,80,50,51,116,164,124,52]),import.meta.url),defaultWidthTier:"wide",icon:$e,get defaultTitle(){return e.layout_tabTypes_codeReview_title()},get categoryLabel(){return e.layout_tabTypes_codeReview_category()},renameable:!1}),u.register({type:"agent-overview",loadComponent:()=>c(()=>import("./sQSEv8Vy.js"),__vite__mapDeps([246,1,2,3,6,7,8,9,10,15,14,16,13,17,18,19,11,4,118,119,120,72,22,23,24,25,26,73,62,74,63,28,64,20,75,58,121,12,21,27,29,30,31,32,157,80,51,177,83,86,67,60,59,178,179,129,91,71,76,77,57,61,131,132,141,106,107,108,109,110,247]),import.meta.url),defaultWidthTier:"narrow",icon:Me,get defaultTitle(){return e.layout_tabTypes_agentOverview_title()},get categoryLabel(){return e.layout_tabTypes_agents_category()},renameable:!1}),u.register({type:"agent",loadComponent:()=>c(()=>import("./BE4rQlti.js"),__vite__mapDeps([248,1,2,3,4,6,7,8,9,10,11,15,71,22,23,24,25,26,18,13,63,62,28,16,17,19,64,20,67,60,59,72,73,74,75,58,76,77,249,14,250,237,12,21,27,29,30,31,32,236,101,57,61,132,204,44,45,214,239,131,91,240,102,35,36,47,48,49,42,43,50,51,52,53,103,38,39,104,85,34,37,40,41,70,81,105,94,95,46,80,33,106,107,108,109,110,111,112,113,114,193,54,55,56,65,66,68,69,78,79,82,83,84,86,87,88,89,90,92,93,96,97,98,99,100,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,205,206,207,216,215]),import.meta.url),defaultWidthTier:"chat",icon:ge,get defaultTitle(){return e.layout_tabTypes_agent_title()},get categoryLabel(){return e.layout_tabTypes_agents_category()},sidebarTabId:"agents",renameable:!0}),u.register({type:"discussion",loadComponent:()=>c(()=>import("./DOmB999d.js"),__vite__mapDeps([251,1,2,3,4,11,8,9,7,10,16,13,17,18,19,38,6,29,35,15,36,14,39,33,34,37,27,40,41,28,42,31,43,44,45,46,21,22,23,24,25,26,216,12,20,30,32,63,62,64,71,67,60,59,72,73,74,75,58,76,77,91,57,61,193,87,88,65,111,119,120,124,52,160,81,163,139,68,69,70,78,79,80,50,51,116,164,98,99,48,235,215,180,181,101,236,177,83,86,178,179,129,131,132,141,229,166,237,217,238,110,109,171,205,190,212,142,134,239,240,241,242,243,198,150,106,107,108,244,245,223,224,225,226,227,128,130,252,97,93,94,49,95,96,117,214,253]),import.meta.url),defaultWidthTier:"chat",icon:ge,get defaultTitle(){return e.workspace_discussion_title()},get categoryLabel(){return e.workspace_discussion_list_label()},sidebarTabId:"people",renameable:!1}),u.register({type:"note",loadComponent:()=>c(()=>import("./CJ9ZGIU3.js"),__vite__mapDeps([254,1,2,3,11,63,18,9,22,23,24,25,7,26,13,62,28,8,10,6,16,17,19,64,20,214,180,91,71,67,60,59,72,73,74,75,58,76,77,57,61,12,14,15,4,21,27,29,30,31,32,181,35,36,80,87,88,50,51,33,34,37,38,39,40,41,42,43,44,45,46,116,119,120,137,138,139,140,115,70,52,68,69,78,79,81,66,117,111,118,121,122,99,123,235,215,216,101,236,177,83,86,178,179,129,131,132,141,229,166,237,217,238,110,109,171,205,190,212,142,134,239,240,241,242,243,198,150,106,107,108,244,245,223,224,225,226,227,145,55,146,147,148,149,255,256,257,105,94,49,95,162,194,258,259,152,153,112,48,113,260,155,156,157,158,151,154,161,183,191,135,196,197,173,163,164,261]),import.meta.url),defaultWidthTier:"medium",icon:H.note,get defaultTitle(){return e.layout_tabTypes_note_title()},get categoryLabel(){return e.layout_tabTypes_context_category()},sidebarTabId:"notes",renameable:!0}),u.register({type:"file",loadComponent:()=>c(()=>import("./BkYN9M7z.js"),__vite__mapDeps([262,1,2,3,4,6,7,8,9,10,11,15,22,23,24,25,26,18,13,214,150,63,62,28,16,17,19,64,20,263,67,60,59,198,74,12,14,21,27,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,235,61,57,58,91,71,72,73,75,76,77,215,216,180,181,101,236,177,83,86,178,179,129,131,132,141,229,166,237,217,238,110,109,171,205,190,212,142,134,70,239,240,241,242,243,106,107,108,244,245,223,224,225,226,227,255,256,116,257,163,139,81,68,69,78,79,80,50,51,164,135,264,122,265,233,266]),import.meta.url),defaultWidthTier:"wide",icon:Ke,get defaultTitle(){return e.layout_tabTypes_file_title()},get categoryLabel(){return e.layout_tabTypes_files_category()},sidebarTabId:"files",renameable:!0}),u.register({type:"diff",loadComponent:()=>c(()=>import("./C4UYdkwZ.js"),__vite__mapDeps([267,1,2,3,4,11,162,22,23,24,25,9,7,26,18,13,214,63,62,28,8,10,6,16,17,19,64,20,145,55,15,131,59,91,71,67,60,72,73,74,75,58,76,77,57,61,21,132,146,147,14,148,35,29,36,149,268,150,33,34,37,27,38,39,40,41,42,31,43,44,45,46,116,135,264,196,197,173,12,30,32,198,120]),import.meta.url),defaultWidthTier:"wide",icon:Be,get defaultTitle(){return e.layout_tabTypes_diff_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},sidebarTabId:"files",renameable:!1}),u.register({type:"changes",loadComponent:()=>c(()=>import("./D63urNNT.js"),__vite__mapDeps([269,1,2,4,15,22,23,24,25,9,7,26,18,13,162,214,63,62,28,11,3,8,10,6,16,17,19,64,20,215,73,75,91,71,67,60,59,72,74,58,76,77,57,61,216,180,12,14,21,27,29,30,31,32,181,101,270,159,258,259,145,55,131,132,146,147,148,35,36,149,268,150,33,34,37,38,39,40,41,42,43,44,45,46,116,119,120,112,48,49,113,133,134,70,125,142,177,83,86,178,179,129,141,235,236,229,166,237,217,238,110,109,171,205,190,212,239,240,241,242,243,198,106,107,108,244,245,223,224,225,226,227,271,264]),import.meta.url),defaultWidthTier:"wide",icon:H.changes,get defaultTitle(){return e.layout_tabTypes_changes_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},sidebarTabId:"changes",renameable:!1}),u.register({type:"local-changes",loadComponent:()=>c(()=>import("./BdNfyyl1.js"),__vite__mapDeps([272,1,2,15,22,23,24,25,9,7,26,18,13,162,214,63,62,28,11,3,8,10,6,16,17,19,64,20,270,29,159,258,259,91,71,67,60,59,72,73,74,75,58,76,77,57,61,145,55,131,21,132,146,147,14,4,148,35,36,149,268,150,33,34,37,27,38,39,40,41,42,31,43,44,45,46,116,119,120,112,30,48,49,113,12,32,133,134,70,125,142,180,181,215,216,101,177,83,86,178,179,129,141,235,236,229,166,237,217,238,110,109,171,205,190,212,239,240,241,242,243,198,106,107,108,244,245,223,224,225,226,227,271,264]),import.meta.url),defaultWidthTier:"wide",icon:H.changes,get defaultTitle(){return e.layout_tabTypes_localChanges_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},sidebarTabId:"changes",renameable:!1}),u.register({type:"chat-changes",loadComponent:()=>c(()=>import("./CqqkIXTJ.js"),__vite__mapDeps([273,1,2,3,270,6,7,8,9,10,29,15,22,23,24,25,26,18,13,159,63,62,28,11,16,17,19,64,20,258,259,91,71,67,60,59,72,73,74,75,58,76,77,57,61,145,55,131,21,132,146,147,14,4,148,35,36,149,268,150,33,34,37,27,38,39,40,41,42,31,43,44,45,46,116,119,120,112,30,48,49,113,12,32,133,134,70,125,142,180,181,215,216,101,177,83,86,178,179,129,141,235,236,229,166,237,217,238,110,109,171,205,190,212,239,240,241,242,243,198,106,107,108,244,245,223,224,225,226,227,271]),import.meta.url),defaultWidthTier:"wide",icon:H.changes,get defaultTitle(){return e.layout_tabTypes_chatChanges_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},renameable:!1}),u.register({type:"activity-changes",loadComponent:()=>c(()=>import("./Cp1B7D7t.js"),__vite__mapDeps([274,1,2,3,4,11,62,23,22,24,25,9,7,26,18,13,240,59,145,8,10,55,15,131,16,17,19,91,63,28,6,64,20,71,67,60,72,73,74,75,58,76,77,57,61,21,132,146,147,14,148,35,29,36,149,268,150,33,34,37,27,38,39,40,41,42,31,43,44,45,46,116,214,135,264,196,197,173,12,30,32,198,120]),import.meta.url),defaultWidthTier:"wide",icon:H.changes,get defaultTitle(){return e.layout_tabTypes_activityChanges_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},renameable:!1}),u.register({type:"hook-script",loadComponent:()=>c(()=>import("./C-HR_nje.js"),__vite__mapDeps([275,1,2,3,151,6,7,8,9,10,139,152,59,153,12,13,14,15,16,17,18,19,11,4,20,21,22,23,24,25,26,27,28,29,30,31,32,154,166,63,62,64,73,74]),import.meta.url),defaultWidthTier:"medium",icon:Ge,get defaultTitle(){return e.chat_backgroundHooks_viewScript_label()},get categoryLabel(){return e.layout_tabTypes_panel_category()},renameable:!1}),u.register({type:"settings",loadComponent:()=>c(()=>import("./CkmDctRH.js"),__vite__mapDeps([276,1,2]),import.meta.url),defaultWidthTier:"narrow",icon:He,get defaultTitle(){return e.layout_tabTypes_settings_title()},get categoryLabel(){return e.layout_tabTypes_settings_category()},renameable:!1}),u.register({type:"overview",loadComponent:()=>c(()=>import("./C8tk9ZQ3.js"),__vite__mapDeps([277,1,2]),import.meta.url),defaultWidthTier:"narrow",icon:ue,get defaultTitle(){return e.layout_tabTypes_overview_title()},get categoryLabel(){return e.layout_tabTypes_overview_category()},renameable:!1})}async function Wt(y){if(y?.restoreStatus!=="restored")return;const _=new Set(Object.values(y.panels).flatMap(r=>{const k=r.tabs.find(l=>l.id===r.activeTabId);return k?[k.type]:[]}));await Promise.allSettled([..._].map(r=>u.loadComponent(r)))}var at=W("<!> <!>",1),rt=W('<img class="h-auto w-full max-w-64 rounded-lg" width="512" height="512"/>'),ot=W('<div class="flex aspect-square w-full max-w-64 items-center justify-center"><!></div>'),st=W('<div class="flex justify-center" data-testid="passkey-qr"><!></div>'),it=W('<div class="flex justify-center py-4 text-muted-foreground"><!></div>'),nt=W('<p class="type-caption text-muted-foreground" data-testid="passkey-pin-advice"> </p>'),lt=W('<form id="passkey-pin-form" class="flex flex-col gap-3"><!> <!></form>');function Pe(y,_){if(new.target)return Te({component:Pe,...y});we(_,!0);let r=ie(_,"payload",7),k=ie(_,"static",7,!1),l=ie(_,"onRespond",7),f=K(!1),A=K(""),U=K("");const a=b(()=>r()?.view??null);Q(()=>{v(f,r()!==null)}),Q(()=>{t(a)?.step!=="pin"&&v(A,"")});let z=K(0),Y=K(ze(Date.now()));Q(()=>{const i=t(a)?.step==="pin"&&t(a).kind==="device"?t(a).retryAfterMs:void 0;if(typeof i!="number"){v(z,0);return}const T=Date.now();v(Y,T,!0),v(z,T+i);const w=setInterval(()=>{v(Y,Date.now(),!0),t(Y)>=t(z)&&clearInterval(w)},250);return()=>clearInterval(w)});const ee=b(()=>Math.max(0,Math.ceil((t(z)-t(Y))/1e3))),_e=b(()=>t(a)?.step==="pin"&&(t(a).kind==="device"?t(ee)>0:typeof t(a).retryAfterMs=="number"));Q(()=>{const i=t(a)?.step==="qr"?t(a).data:"";if(!i){v(U,"");return}let T=!0;return c(async()=>{const{default:w}=await import("./BZ9svoQk.js").then(C=>C.b);return{default:w}},__vite__mapDeps([278,59]),import.meta.url).then(({default:w})=>w.toDataURL(i,{width:512,margin:2})).then(w=>{T&&v(U,w,!0)}),()=>{T=!1}});const Ee=b(()=>r()?r().kind==="create"?e.passkeys_dialog_createTitle_label({site:r().rpId}):e.passkeys_dialog_getTitle_label({site:r().rpId}):"");function De(i){switch(i){case"bluetooth-off":return e.passkeys_dialog_bluetoothOff_error();case"bluetooth-missing":return e.passkeys_dialog_bluetoothMissing_error();case"pin-locked":return e.passkeys_dialog_pinLocked_error();case"timeout":return e.passkeys_dialog_timeout_error();case"already-registered":return e.passkeys_dialog_alreadyRegistered_error();case"unavailable":return e.passkeys_dialog_unavailable_error();case"device-locked":return e.passkeys_dialog_deviceLocked_error();case"device-already-registered":return e.passkeys_dialog_deviceAlreadyRegistered_error();case"device-no-passkey":return e.passkeys_dialog_deviceNoPasskey_error({site:r()?.rpId??""});case"device-old-pin-wrong":return e.passkeys_dialog_deviceOldPinWrong_error();case"device-failed":return e.passkeys_dialog_deviceFailed_error();default:return e.passkeys_dialog_failed_error()}}const Ae=b(()=>{if(!(!t(a)||!r()))switch(t(a).step){case"choose-transport":return r().kind==="create"?e.passkeys_dialog_chooseCreate_description():e.passkeys_dialog_chooseGet_description();case"qr":case"progress":switch(t(a).progress){case"waiting-for-phone":return e.passkeys_dialog_waitingForPhone_description();case"connecting":return e.passkeys_dialog_connecting_description();case"waiting-for-approval":return e.passkeys_dialog_waitingForApproval_description();case"touch-key":return e.passkeys_dialog_touchKey_description();case"processing":return e.passkeys_dialog_processing_description();default:return t(a).step==="progress"&&t(a).transport==="usb"?e.passkeys_dialog_insertKey_description():e.passkeys_dialog_starting_description()}case"pin":return t(a).kind==="usb"?e.passkeys_dialog_pin_description():t(a).oldPin?e.passkeys_dialog_deviceOldPin_description():e.passkeys_dialog_devicePin_description();case"choose-account":return e.passkeys_dialog_chooseAccount_description();case"error":return De(t(a).reason)}}),de=b(()=>t(a)?.step==="pin"&&t(a).kind==="device"?t(a).oldPin?e.passkeys_dialog_deviceOldPin_label():e.passkeys_dialog_devicePin_label():e.passkeys_dialog_pin_label()),Ce=b(()=>{if(t(a)?.step==="pin"){if(t(a).kind==="device"){if(t(ee)>0)return e.passkeys_dialog_devicePinWait_error({seconds:t(ee)})}else if(typeof t(a).retryAfterMs=="number")return e.passkeys_dialog_pinRetryAfter_error();if(t(a).wrongPin)return typeof t(a).attemptsLeft=="number"?t(a).attemptsLeft===1?e.passkeys_dialog_wrongPinAttempts_one({count:t(a).attemptsLeft}):e.passkeys_dialog_wrongPinAttempts_many({count:t(a).attemptsLeft}):e.passkeys_dialog_wrongPin_error()}}),Oe=b(()=>{if(t(a)?.step!=="choose-transport")return[];const i=t(a).hybrid==="bluetooth-off"?e.passkeys_dialog_bluetoothOff_description():t(a).hybrid==="bluetooth-missing"?e.passkeys_dialog_bluetoothMissing_description():void 0;return[...t(a).device?[{id:"device",label:e.passkeys_dialog_thisDevice_label(),note:void 0,icon:qe}]:[],{id:"hybrid",label:e.passkeys_dialog_phone_label(),note:i,icon:Fe},{id:"usb",label:e.passkeys_dialog_securityKey_label(),note:void 0,icon:je}]});function te(){l()({action:"cancel"})}function Re(i){if(i.preventDefault(),!t(A))return;const T=t(A);v(A,""),l()({action:"pin",pin:T})}var xe={get payload(){return r()},set payload(i){r(i),ne()},get static(){return k()},set static(i=!1){k(i),ne()},get onRespond(){return l()},set onRespond(i){l(i),ne()},$set:he,$on:(i,T)=>ke(_,i,T)},pe=q(),We=M(pe);{var Se=i=>{{const T=C=>{var ae=q(),J=M(ae);{var re=P=>{le(P,{variant:"secondary",onclick:te,children:(S,B)=>{F();var V=x();I(d=>E(V,d),[()=>e.passkeys_dialog_close_label()]),p(S,V)},$$slots:{default:!0}})},oe=P=>{var S=at(),B=M(S);le(B,{variant:"ghost",onclick:te,children:(n,m)=>{F();var s=x();I(L=>E(s,L),[()=>e.passkeys_dialog_cancel_label()]),p(n,s)},$$slots:{default:!0}});var V=ye(B,2);{var d=n=>{{let m=b(()=>!t(A)||t(_e));le(n,{variant:"primary",type:"submit",form:"passkey-pin-form",get disabled(){return t(m)},children:(s,L)=>{F();var o=x();I(g=>E(o,g),[()=>e.passkeys_dialog_continue_label()]),p(s,o)},$$slots:{default:!0}})}};D(V,n=>{t(a).step==="pin"&&n(d)})}p(P,S)};D(J,P=>{t(a).step==="error"?P(re):P(oe,-1)})}p(C,ae)};let w=b(()=>t(a).step==="error"?e.passkeys_dialog_close_label():e.passkeys_dialog_cancel_label());Xe(i,{get static(){return k()},get title(){return t(Ee)},get description(){return t(Ae)},size:"sm",dismissOnInteractOutside:!1,get closeLabel(){return t(w)},onClose:te,get open(){return t(f)},set open(C){v(f,C,!0)},footer:T,children:(C,ae)=>{var J=q(),re=M(J);{var oe=d=>{{const n=(s,L)=>{let o=()=>(L?.()).item;me(s,{leading:h=>{Ue(h,{get icon(){return o().icon},fw:!0})},title:h=>{F();var R=x();I(()=>E(R,o().label)),p(h,R)},description:h=>{var R=q(),se=M(R);{var G=$=>{var ce=x();I(()=>E(ce,o().note)),p($,ce)};D(se,$=>{o().note&&$(G)})}p(h,R)},$$slots:{leading:!0,title:!0,description:!0}})};let m=b(()=>e.passkeys_dialog_transports_ariaLabel());be(d,{get items(){return t(Oe)},getKey:s=>s.id,getText:s=>s.label,get ariaLabel(){return t(m)},onActivate:s=>l()({action:"transport",transport:s.id}),row:n,$$slots:{row:!0}})}},P=d=>{var n=st(),m=X(n);{var s=o=>{var g=rt();I(O=>{fe(g,"src",t(U)),fe(g,"alt",O)},[()=>e.passkeys_dialog_qrImage_ariaLabel()]),p(o,g)},L=o=>{var g=ot(),O=X(g);ve(O,{size:20}),Z(g),p(o,g)};D(m,o=>{t(U)?o(s):o(L,-1)})}Z(n),p(d,n)},S=d=>{var n=it(),m=X(n);ve(m,{size:20}),Z(n),p(d,n)},B=d=>{var n=lt(),m=X(n);{let o=b(()=>t(a).kind==="device"?"numeric":void 0);Ze(m,{type:"password",get inputmode(){return t(o)},autocomplete:"off",get"aria-label"(){return t(de)},get placeholder(){return t(de)},get error(){return t(Ce)},get disabled(){return t(_e)},autofocus:!0,get value(){return t(A)},set value(g){v(A,g,!0)}})}var s=ye(m,2);{var L=o=>{var g=nt(),O=Je(g,!0);I(N=>E(O,N),[()=>e.passkeys_dialog_devicePinAdvice_description()]),p(o,g)};D(s,o=>{t(a).firstPasskey&&o(L)})}Z(n),Ye("submit",n,Re),p(d,n)},V=d=>{{const n=(s,L)=>{let o=()=>(L?.()).item;me(s,{title:N=>{F();var h=x();I(()=>E(h,o().userDisplayName||o().userName)),p(N,h)},description:N=>{var h=q(),R=M(h);{var se=G=>{var $=x();I(()=>E($,o().userName)),p(G,$)};D(R,G=>{o().userDisplayName&&o().userName&&G(se)})}p(N,h)},$$slots:{title:!0,description:!0}})};let m=b(()=>e.passkeys_dialog_accounts_ariaLabel());be(d,{get items(){return t(a).accounts},getKey:s=>s.index,getText:s=>s.userDisplayName||s.userName,get ariaLabel(){return t(m)},onActivate:s=>l()({action:"choose",index:s.index}),row:n,$$slots:{row:!0}})}};D(re,d=>{t(a).step==="choose-transport"?d(oe):t(a).step==="qr"?d(P,1):t(a).step==="progress"?d(S,2):t(a).step==="pin"?d(B,3):t(a).step==="choose-account"&&d(V,4)})}p(C,J)},$$slots:{footer:!0,default:!0}})}};D(We,i=>{r()&&t(a)&&i(Se)})}return p(y,pe),Le(xe)}const _t=new tt("PasskeyDialog"),j=et.PASSKEYS;function dt(y){const _=Ie();if(!_)return()=>{};const r=_.on(j.DIALOG_SHOW,l=>{const f=l;!f||typeof f.ceremonyId!="string"||!f.view||y.onShow(f)}),k=_.on(j.DIALOG_CLOSE,l=>{const f=l;f&&typeof f.ceremonyId=="string"&&y.onClose(f.ceremonyId)});return()=>{_.offById(j.DIALOG_SHOW,r),_.offById(j.DIALOG_CLOSE,k)}}function pt(y){const _=Ie();_&&_.invoke(j.DIALOG_RESPOND,y).catch(()=>{_t.warn("Passkey dialog response failed",{action:y.action})})}function ct(y,_){if(new.target)return Te({component:ct,...y});we(_,!0);let r=K(null);Qe(()=>dt({onShow:l=>{v(r,l,!0)},onClose:l=>{t(r)?.ceremonyId===l&&v(r,null)}}));var k={$set:he,$on:(l,f)=>ke(_,l,f)};return Pe(y,{get payload(){return t(r)},onRespond:l=>{t(r)&&pt({...l,ceremonyId:t(r).ceremonyId})}}),Le(k)}export{ct as P,Wt as p,xt as r};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/B_EaOuZ7.js","/app/immutable/chunks/CLAmm_T1.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/BFgvMDua.js","/app/immutable/chunks/CIbfGsF-.js","/app/immutable/chunks/lzi3tV-r.js","/app/immutable/chunks/B1CKzIA2.js","/app/immutable/chunks/BwNrQXlF.js","/app/immutable/chunks/CcJmuwXr.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/BwH4Bvte.js","/app/immutable/chunks/96V4v2iI.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/nxtepGjE.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/TB9r2XJy.js","/app/immutable/chunks/UTM5G-w-.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/Cu5e4npY.js","/app/immutable/chunks/BbYWP3Ow.js","/app/immutable/chunks/B9vHutcJ.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/BBFoj-dS.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/DPttSllj.js","/app/immutable/chunks/CfNIzRu8.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.DylRFR3N.css","/app/immutable/chunks/Dd-LQrG1.js","/app/immutable/chunks/D2YDfFKv.js","/app/immutable/chunks/DaWmj23r.js","/app/immutable/chunks/C4jSaPCg.js","/app/immutable/chunks/DtXgUHCj.js","/app/immutable/chunks/hkJYqn41.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/CgrVbtN0.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/CEE0831H.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/BpMXdC4H.js","/app/immutable/chunks/DtzJzV-4.js","/app/immutable/chunks/BtmHyUSg.js","/app/immutable/chunks/B5N8LmEF.js","/app/immutable/chunks/BjLb7AHW.js","/app/immutable/chunks/DCs992HX.js","/app/immutable/chunks/DAsc1V4f.js","/app/immutable/chunks/BsieX9dN.js","/app/immutable/chunks/Drl447ub.js","/app/immutable/assets/SettingsPage.CKvEnOAL.css","/app/immutable/chunks/lei6Hlse.js","/app/immutable/chunks/goTpbPhD.js","/app/immutable/chunks/DLnFsCgA.js","/app/immutable/chunks/BbhtQrkZ.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/_UjuBCOJ.js","/app/immutable/chunks/C2UL5Ler.js","/app/immutable/chunks/BGrimfDs.js","/app/immutable/chunks/D-62MVd3.js","/app/immutable/chunks/BIFBPuAO.js","/app/immutable/chunks/CL3a4Hm1.js","/app/immutable/chunks/CyDuWtxr.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/Rtit513z.js","/app/immutable/chunks/DQw0Iiac.js","/app/immutable/chunks/aZdb_rCN.js","/app/immutable/chunks/BPQFiQQc.js","/app/immutable/chunks/KnkAG0HD.js","/app/immutable/chunks/DWt5yjbU.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/DpCic98X.js","/app/immutable/assets/slider.kL-wkHnx.css","/app/immutable/chunks/BnV9CBUH.js","/app/immutable/chunks/CcDyBqhb.js","/app/immutable/chunks/D99jSct3.js","/app/immutable/chunks/CQcEqK4G.js","/app/immutable/chunks/D7QZQ0zf.js","/app/immutable/chunks/CVWwz1Ss.js","/app/immutable/chunks/CZr8f1ch.js","/app/immutable/chunks/DMrzeQEi.js","/app/immutable/chunks/DZzwt3PA.js","/app/immutable/assets/DockScreenshotEditorWindow.DNkBhnHK.css","/app/immutable/assets/dock-tokens.C3wiNkmL.css","/app/immutable/chunks/CQlYR8ss.js","/app/immutable/chunks/CVtmf86l.js","/app/immutable/chunks/Ll0WtNFW.js","/app/immutable/chunks/Dp7Hm0g0.js","/app/immutable/assets/select-viewport.CV-KWLNP.css","/app/immutable/chunks/Cn4A9AjR.js","/app/immutable/chunks/vpQRVk8F.js","/app/immutable/chunks/DxyD9o0t.js","/app/immutable/chunks/BksTLNI4.js","/app/immutable/chunks/BzW_moTi.js","/app/immutable/chunks/BzWT_wQw.js","/app/immutable/chunks/DSjchUEk.js","/app/immutable/chunks/z5FcOXD5.js","/app/immutable/chunks/D4d1iyeR.js","/app/immutable/chunks/vj8NdGWd.js","/app/immutable/chunks/BfnPC1r8.js","/app/immutable/chunks/tqn1yslZ.js","/app/immutable/chunks/r3TSpOm2.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/Bc1CpNLz.js","/app/immutable/chunks/TyAuxp07.js","/app/immutable/chunks/CDwhmkPo.js","/app/immutable/assets/checkbox.D429NJZk.css","/app/immutable/assets/directory-picker-service.uzk1xoHg.css","/app/immutable/chunks/CHaC_gXH.js","/app/immutable/chunks/BrMDTgLg.js","/app/immutable/chunks/DRD4T4u0.js","/app/immutable/chunks/BhCMc9G0.js","/app/immutable/chunks/9YT9B_ti.js","/app/immutable/assets/AgentAvatar.CZKKHyEm.css","/app/immutable/assets/avatar-state.BzFIexJN.css","/app/immutable/chunks/CYxt6gzD.js","/app/immutable/assets/TipTapEditor.BmeA7Qtk.css","/app/immutable/chunks/GnUYJfg_.js","/app/immutable/chunks/D36C5UHH.js","/app/immutable/chunks/tCg_s90g.js","/app/immutable/assets/image-context-items.D_hsaikk.css","/app/immutable/chunks/D-19S-7Z.js","/app/immutable/chunks/u4iPyMwH.js","/app/immutable/assets/AttachmentPreview.DWUPhcKi.css","/app/immutable/chunks/cTFeOFQC.js","/app/immutable/chunks/B_QbDMuF.js","/app/immutable/chunks/CbwlFeZe.js","/app/immutable/chunks/Bu13V5mO.js","/app/immutable/chunks/B6dUCFoz.js","/app/immutable/chunks/Bb98JhKr.js","/app/immutable/chunks/B2_6AX8w.js","/app/immutable/chunks/BNCKMxAC.js","/app/immutable/chunks/BKD7o1lQ.js","/app/immutable/assets/TaskStatusIcon.sfU2TZ7a.css","/app/immutable/chunks/Dqi2LMpO.js","/app/immutable/chunks/DfheqyY9.js","/app/immutable/chunks/Rzyk45bZ.js","/app/immutable/assets/AgentCard.Cna0hri3.css","/app/immutable/chunks/OIB4u9ZA.js","/app/immutable/chunks/DEB8jcix.js","/app/immutable/chunks/lwn02icp.js","/app/immutable/chunks/TBtn8giw.js","/app/immutable/assets/TrackedChangeDiffViewer.CveSjyPc.css","/app/immutable/chunks/ByyFoG6W.js","/app/immutable/chunks/BId1zNus.js","/app/immutable/chunks/CcNhqKh5.js","/app/immutable/assets/syntax-highlighting.CrQGLq0X.css","/app/immutable/assets/CodeBlock.BezhEtUo.css","/app/immutable/chunks/Cu11OjbU.js","/app/immutable/chunks/BbIcudMY.js","/app/immutable/chunks/CfQcMKZg.js","/app/immutable/assets/DiagramPresentation.C2GLYoBN.css","/app/immutable/chunks/CRSiOiSR.js","/app/immutable/chunks/C1_cc_jh.js","/app/immutable/chunks/DgAgTFcK.js","/app/immutable/chunks/C-BsEdGZ.js","/app/immutable/chunks/D78ptBES.js","/app/immutable/assets/MarkdownViewer.D2MexjjT.css","/app/immutable/chunks/sPwEr0L4.js","/app/immutable/chunks/uvhZkGDU.js","/app/immutable/chunks/BPmcj0VV.js","/app/immutable/chunks/DA_7jaWc.js","/app/immutable/assets/workspace-key-menu.DrT-Fxqq.css","/app/immutable/chunks/A0p6PvBn.js","/app/immutable/chunks/YqTahsxp.js","/app/immutable/chunks/BWfc0sSK.js","/app/immutable/chunks/CjPEI4fg.js","/app/immutable/chunks/B7-Rf8Ja.js","/app/immutable/assets/StreamingDiagramRenderer.BShsSvPz.css","/app/immutable/assets/chat-search.Cjb73igJ.css","/app/immutable/chunks/DjbX62Cx.js","/app/immutable/chunks/ClxyT-Se.js","/app/immutable/chunks/B_vpadVO.js","/app/immutable/chunks/DXY_Cr2S.js","/app/immutable/chunks/D4WPlvMg.js","/app/immutable/chunks/CG1puMxA.js","/app/immutable/chunks/OtJAfUmG.js","/app/immutable/chunks/BGniv2IE.js","/app/immutable/chunks/DnhCnCMz.js","/app/immutable/chunks/C6RhewOE.js","/app/immutable/assets/AgentAvatarStack.DOhClFuX.css","/app/immutable/chunks/Chj-azz7.js","/app/immutable/assets/conversation-turns.P_pkAsRX.css","/app/immutable/chunks/CgGsxeG7.js","/app/immutable/chunks/X0RLj3lE.js","/app/immutable/chunks/DdNhEgdc.js","/app/immutable/chunks/Cm0Qloca.js","/app/immutable/chunks/CWsj4Hb7.js","/app/immutable/chunks/BdrLG-E0.js","/app/immutable/chunks/Cekr5Jry.js","/app/immutable/chunks/mfOfLDEg.js","/app/immutable/chunks/H2jLkRRS.js","/app/immutable/chunks/BHy9cRzo.js","/app/immutable/assets/WorkspaceSetupCard.DNLkSKZg.css","/app/immutable/chunks/i5FUlYpy.js","/app/immutable/chunks/DL6gGkHp.js","/app/immutable/assets/DockRecordingEditor.BX1NXczK.css","/app/immutable/chunks/etz9IKpr.js","/app/immutable/chunks/DuaPhBil.js","/app/immutable/chunks/kzuAnGps.js","/app/immutable/assets/ChatPanel.B73KM22O.css","/app/immutable/assets/HomeWorkspaceDetail.Dp5EWw2P.css","/app/immutable/chunks/Dgc0jIMe.js","/app/immutable/chunks/D7b2VLAz.js","/app/immutable/chunks/CQ409-Pj.js","/app/immutable/chunks/KZwZoyIt.js","/app/immutable/chunks/CXXVPWBH.js","/app/immutable/chunks/DWGXN6Nr.js","/app/immutable/chunks/J2YvrN12.js","/app/immutable/chunks/R-UFG3MB.js","/app/immutable/chunks/C3dytrTL.js","/app/immutable/assets/BrowserTabType.DojB6H-_.css","/app/immutable/chunks/C9Sx9tb_.js","/app/immutable/chunks/IvX_QTkj.js","/app/immutable/chunks/D3yXvqwY.js","/app/immutable/chunks/Ctp-YfoS.js","/app/immutable/chunks/qhd9g-fv.js","/app/immutable/chunks/yofTuS8P.js","/app/immutable/chunks/BjE6fvlI.js","/app/immutable/chunks/C4fj9uDh.js","/app/immutable/assets/register.CUyDR59i.css","/app/immutable/assets/terminal-manager.MhP_vFvK.css","/app/immutable/chunks/BvDFX1mj.js","/app/immutable/assets/confirm-script-deletion.CqNa5NIC.css","/app/immutable/chunks/CwEjDuJ3.js","/app/immutable/assets/Terminal.Ddek5eNE.css","/app/immutable/chunks/Cp5royN1.js","/app/immutable/chunks/DJ_B6Tb0.js","/app/immutable/chunks/BSXmccL1.js","/app/immutable/chunks/pfX_M-aK.js","/app/immutable/chunks/BkqNdsh1.js","/app/immutable/chunks/Bviyt-Xy.js","/app/immutable/chunks/Dz-zX_Ts.js","/app/immutable/chunks/CSiaiLHL.js","/app/immutable/chunks/Dfp6ssYD.js","/app/immutable/chunks/B_QPRXJ5.js","/app/immutable/chunks/BR1TNOav.js","/app/immutable/chunks/BIv0yV05.js","/app/immutable/chunks/BO4HougN.js","/app/immutable/chunks/j5mPVG9_.js","/app/immutable/assets/AgentOverviewTabType.DU1WpoFR.css","/app/immutable/chunks/MzHad0-m.js","/app/immutable/chunks/BqCpnQY_.js","/app/immutable/chunks/caKZ9Z4U.js","/app/immutable/chunks/yqU168vt.js","/app/immutable/chunks/CfYmMj5F.js","/app/immutable/assets/DiscussionTabType.D3Laoutn.css","/app/immutable/chunks/DQVuWRan.js","/app/immutable/chunks/BNJ3edFz.js","/app/immutable/chunks/BtNlG0Qg.js","/app/immutable/assets/CodeEditor.Bq04Rj-N.css","/app/immutable/chunks/D1BvOU2l.js","/app/immutable/assets/LineChangesBadge.CJ0J_Z0k.css","/app/immutable/chunks/z3SZgGAK.js","/app/immutable/assets/NoteTabType.AG_iwaNn.css","/app/immutable/chunks/UsyUyHOM.js","/app/immutable/chunks/wEnqV1Ol.js","/app/immutable/chunks/BOVEEbKv.js","/app/immutable/chunks/Jg5r77fy.js","/app/immutable/assets/FileTabType.BUKcoHE1.css","/app/immutable/chunks/BqXtiIKZ.js","/app/immutable/chunks/Ch6a7ELM.js","/app/immutable/chunks/CY1uQ_EK.js","/app/immutable/chunks/ChXsVZci.js","/app/immutable/assets/ChatChangesPanel.BQqG1JnE.css","/app/immutable/chunks/B8rKVMLL.js","/app/immutable/chunks/pe4pVEc5.js","/app/immutable/chunks/BUo-3nO7.js","/app/immutable/chunks/C-HR_nje.js","/app/immutable/chunks/CkmDctRH.js","/app/immutable/chunks/C8tk9ZQ3.js","/app/immutable/chunks/BZ9svoQk.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{bm as e,_ as c,t as Te,bo as ie,bw as he,b as ke}from"./CLAmm_T1.js";import{t as u}from"./DRND1Lha.js";import{bD as ue,bv as Ve,cK as Ne,aO as $e,cn as Me,aV as ge,bg as Ke,aN as Be,aM as Ge,bs as He,bL as qe,b_ as Fe,bJ as je,F as Ue}from"./DPttSllj.js";import{R as H}from"./Lai6pqjy.js";import{bs as we,ca as Q,bH as v,aD as t,bV as K,br as ze,a7 as q,ay as M,W as p,bn as Le,c9 as b,aA as ne,a5 as X,bA as Z,bS as ye,aw as Ye,aB as W,be as F,b$ as x,b_ as I,bO as E,bl as Je,bk as Qe}from"./3SdAC2_C.js";import{i as D}from"./BFgvMDua.js";import{s as fe}from"./CcJmuwXr.js";import{L as me}from"./tCg_s90g.js";import{C as Xe,L as be}from"./Dd-LQrG1.js";import{I as Ze}from"./DaWmj23r.js";import"./C4jSaPCg.js";import"./CEE0831H.js";import{f as le}from"./nxtepGjE.js";import{v as Ie}from"./TB9r2XJy.js";import"./CgrVbtN0.js";import"./BwNrQXlF.js";import{I as ve}from"./B1CKzIA2.js";import{I as et}from"./Bqd7fdCF.js";import"./UTM5G-w-.js";import{a as tt}from"./BdWqymET.js";function xt(){u.register({type:"workspace",loadComponent:()=>c(()=>import("./B_EaOuZ7.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208]),import.meta.url),defaultWidthTier:"wide",icon:ue,get defaultTitle(){return e.workspace_page_workspaceResource_label()},get categoryLabel(){return e.workspace_page_workspaceResource_label()},renameable:!1}),u.register({type:"browser",loadComponent:()=>c(()=>import("./Dgc0jIMe.js"),__vite__mapDeps([209,1,2,3,11,6,7,8,9,10,15,210,22,23,24,25,26,18,13,4,70,14,16,17,19,12,20,21,27,28,29,30,31,32,45,33,34,35,36,37,38,39,40,41,42,43,44,46,58,71,63,62,64,67,60,59,72,73,74,75,76,77,180,91,57,61,181,211,122,212,124,52,135,85,213,98,99,214,106,107,108,109,110,215,216,101,217,218]),import.meta.url),defaultWidthTier:"wide",icon:Ve,get defaultTitle(){return e.layout_tabTypes_browser_title()},get categoryLabel(){return e.layout_tabTypes_browser_category()},sidebarTabId:"browser",renameable:!1}),u.register({type:"terminal",loadComponent:()=>c(()=>import("./C9Sx9tb_.js"),__vite__mapDeps([219,1,2,3,4,11,28,7,8,9,10,6,63,18,22,23,24,25,26,13,62,16,17,19,64,20,220,15,221,222,59,60,57,58,61,223,224,225,226,227,109,211,190,228,14,12,21,27,29,30,31,32,212,229,71,67,72,73,74,75,76,77,36,42,43,40,41,216,230,38,35,39,135,33,34,37,44,45,46,214,231,148,232,233,101,217]),import.meta.url),defaultWidthTier:"medium",icon:Ne,get defaultTitle(){return e.layout_tabTypes_terminal_title()},get categoryLabel(){return e.layout_tabTypes_terminal_category()},sidebarTabId:"terminals",renameable:!1}),u.register({type:"code-review",loadComponent:()=>c(()=>import("./DJ_B6Tb0.js"),__vite__mapDeps([234,1,2,22,23,24,25,9,7,26,18,13,3,29,6,8,10,63,62,28,11,16,17,19,64,20,215,73,75,91,71,67,60,59,72,74,58,76,77,57,61,216,180,12,14,15,4,21,27,30,31,32,181,101,235,236,177,83,86,178,179,129,131,132,141,229,166,237,217,238,36,42,43,40,41,110,109,171,205,190,212,142,134,70,239,240,241,242,243,198,150,106,107,108,244,245,223,224,225,226,227,139,152,153,35,163,81,68,69,33,34,37,38,39,44,45,46,78,79,80,50,51,116,164,124,52]),import.meta.url),defaultWidthTier:"wide",icon:$e,get defaultTitle(){return e.layout_tabTypes_codeReview_title()},get categoryLabel(){return e.layout_tabTypes_codeReview_category()},renameable:!1}),u.register({type:"agent-overview",loadComponent:()=>c(()=>import("./j5mPVG9_.js"),__vite__mapDeps([246,1,2,3,6,7,8,9,10,15,14,16,13,17,18,19,11,4,118,119,120,72,22,23,24,25,26,73,62,74,63,28,64,20,75,58,121,12,21,27,29,30,31,32,157,80,51,177,83,86,67,60,59,178,179,129,91,71,76,77,57,61,131,132,141,106,107,108,109,110,247]),import.meta.url),defaultWidthTier:"narrow",icon:Me,get defaultTitle(){return e.layout_tabTypes_agentOverview_title()},get categoryLabel(){return e.layout_tabTypes_agents_category()},renameable:!1}),u.register({type:"agent",loadComponent:()=>c(()=>import("./MzHad0-m.js"),__vite__mapDeps([248,1,2,3,4,6,7,8,9,10,11,15,71,22,23,24,25,26,18,13,63,62,28,16,17,19,64,20,67,60,59,72,73,74,75,58,76,77,249,14,250,237,12,21,27,29,30,31,32,236,101,57,61,132,204,44,45,214,239,131,91,240,102,35,36,47,48,49,42,43,50,51,52,53,103,38,39,104,85,34,37,40,41,70,81,105,94,95,46,80,33,106,107,108,109,110,111,112,113,114,193,54,55,56,65,66,68,69,78,79,82,83,84,86,87,88,89,90,92,93,96,97,98,99,100,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,205,206,207,216,215]),import.meta.url),defaultWidthTier:"chat",icon:ge,get defaultTitle(){return e.layout_tabTypes_agent_title()},get categoryLabel(){return e.layout_tabTypes_agents_category()},sidebarTabId:"agents",renameable:!0}),u.register({type:"discussion",loadComponent:()=>c(()=>import("./yqU168vt.js"),__vite__mapDeps([251,1,2,3,4,11,8,9,7,10,16,13,17,18,19,38,6,29,35,15,36,14,39,33,34,37,27,40,41,28,42,31,43,44,45,46,21,22,23,24,25,26,216,12,20,30,32,63,62,64,71,67,60,59,72,73,74,75,58,76,77,91,57,61,193,87,88,65,111,119,120,124,52,160,81,163,139,68,69,70,78,79,80,50,51,116,164,98,99,48,235,215,180,181,101,236,177,83,86,178,179,129,131,132,141,229,166,237,217,238,110,109,171,205,190,212,142,134,239,240,241,242,243,198,150,106,107,108,244,245,223,224,225,226,227,128,130,252,97,93,94,49,95,96,117,214,253]),import.meta.url),defaultWidthTier:"chat",icon:ge,get defaultTitle(){return e.workspace_discussion_title()},get categoryLabel(){return e.workspace_discussion_list_label()},sidebarTabId:"people",renameable:!1}),u.register({type:"note",loadComponent:()=>c(()=>import("./DQVuWRan.js"),__vite__mapDeps([254,1,2,3,11,63,18,9,22,23,24,25,7,26,13,62,28,8,10,6,16,17,19,64,20,214,180,91,71,67,60,59,72,73,74,75,58,76,77,57,61,12,14,15,4,21,27,29,30,31,32,181,35,36,80,87,88,50,51,33,34,37,38,39,40,41,42,43,44,45,46,116,119,120,137,138,139,140,115,70,52,68,69,78,79,81,66,117,111,118,121,122,99,123,235,215,216,101,236,177,83,86,178,179,129,131,132,141,229,166,237,217,238,110,109,171,205,190,212,142,134,239,240,241,242,243,198,150,106,107,108,244,245,223,224,225,226,227,145,55,146,147,148,149,255,256,257,105,94,49,95,162,194,258,259,152,153,112,48,113,260,155,156,157,158,151,154,161,183,191,135,196,197,173,163,164,261]),import.meta.url),defaultWidthTier:"medium",icon:H.note,get defaultTitle(){return e.layout_tabTypes_note_title()},get categoryLabel(){return e.layout_tabTypes_context_category()},sidebarTabId:"notes",renameable:!0}),u.register({type:"file",loadComponent:()=>c(()=>import("./UsyUyHOM.js"),__vite__mapDeps([262,1,2,3,4,6,7,8,9,10,11,15,22,23,24,25,26,18,13,214,150,63,62,28,16,17,19,64,20,263,67,60,59,198,74,12,14,21,27,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,235,61,57,58,91,71,72,73,75,76,77,215,216,180,181,101,236,177,83,86,178,179,129,131,132,141,229,166,237,217,238,110,109,171,205,190,212,142,134,70,239,240,241,242,243,106,107,108,244,245,223,224,225,226,227,255,256,116,257,163,139,81,68,69,78,79,80,50,51,164,135,264,122,265,233,266]),import.meta.url),defaultWidthTier:"wide",icon:Ke,get defaultTitle(){return e.layout_tabTypes_file_title()},get categoryLabel(){return e.layout_tabTypes_files_category()},sidebarTabId:"files",renameable:!0}),u.register({type:"diff",loadComponent:()=>c(()=>import("./BqXtiIKZ.js"),__vite__mapDeps([267,1,2,3,4,11,162,22,23,24,25,9,7,26,18,13,214,63,62,28,8,10,6,16,17,19,64,20,145,55,15,131,59,91,71,67,60,72,73,74,75,58,76,77,57,61,21,132,146,147,14,148,35,29,36,149,268,150,33,34,37,27,38,39,40,41,42,31,43,44,45,46,116,135,264,196,197,173,12,30,32,198,120]),import.meta.url),defaultWidthTier:"wide",icon:Be,get defaultTitle(){return e.layout_tabTypes_diff_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},sidebarTabId:"files",renameable:!1}),u.register({type:"changes",loadComponent:()=>c(()=>import("./CY1uQ_EK.js"),__vite__mapDeps([269,1,2,4,15,22,23,24,25,9,7,26,18,13,162,214,63,62,28,11,3,8,10,6,16,17,19,64,20,215,73,75,91,71,67,60,59,72,74,58,76,77,57,61,216,180,12,14,21,27,29,30,31,32,181,101,270,159,258,259,145,55,131,132,146,147,148,35,36,149,268,150,33,34,37,38,39,40,41,42,43,44,45,46,116,119,120,112,48,49,113,133,134,70,125,142,177,83,86,178,179,129,141,235,236,229,166,237,217,238,110,109,171,205,190,212,239,240,241,242,243,198,106,107,108,244,245,223,224,225,226,227,271,264]),import.meta.url),defaultWidthTier:"wide",icon:H.changes,get defaultTitle(){return e.layout_tabTypes_changes_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},sidebarTabId:"changes",renameable:!1}),u.register({type:"local-changes",loadComponent:()=>c(()=>import("./B8rKVMLL.js"),__vite__mapDeps([272,1,2,15,22,23,24,25,9,7,26,18,13,162,214,63,62,28,11,3,8,10,6,16,17,19,64,20,270,29,159,258,259,91,71,67,60,59,72,73,74,75,58,76,77,57,61,145,55,131,21,132,146,147,14,4,148,35,36,149,268,150,33,34,37,27,38,39,40,41,42,31,43,44,45,46,116,119,120,112,30,48,49,113,12,32,133,134,70,125,142,180,181,215,216,101,177,83,86,178,179,129,141,235,236,229,166,237,217,238,110,109,171,205,190,212,239,240,241,242,243,198,106,107,108,244,245,223,224,225,226,227,271,264]),import.meta.url),defaultWidthTier:"wide",icon:H.changes,get defaultTitle(){return e.layout_tabTypes_localChanges_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},sidebarTabId:"changes",renameable:!1}),u.register({type:"chat-changes",loadComponent:()=>c(()=>import("./pe4pVEc5.js"),__vite__mapDeps([273,1,2,3,270,6,7,8,9,10,29,15,22,23,24,25,26,18,13,159,63,62,28,11,16,17,19,64,20,258,259,91,71,67,60,59,72,73,74,75,58,76,77,57,61,145,55,131,21,132,146,147,14,4,148,35,36,149,268,150,33,34,37,27,38,39,40,41,42,31,43,44,45,46,116,119,120,112,30,48,49,113,12,32,133,134,70,125,142,180,181,215,216,101,177,83,86,178,179,129,141,235,236,229,166,237,217,238,110,109,171,205,190,212,239,240,241,242,243,198,106,107,108,244,245,223,224,225,226,227,271]),import.meta.url),defaultWidthTier:"wide",icon:H.changes,get defaultTitle(){return e.layout_tabTypes_chatChanges_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},renameable:!1}),u.register({type:"activity-changes",loadComponent:()=>c(()=>import("./BUo-3nO7.js"),__vite__mapDeps([274,1,2,3,4,11,62,23,22,24,25,9,7,26,18,13,240,59,145,8,10,55,15,131,16,17,19,91,63,28,6,64,20,71,67,60,72,73,74,75,58,76,77,57,61,21,132,146,147,14,148,35,29,36,149,268,150,33,34,37,27,38,39,40,41,42,31,43,44,45,46,116,214,135,264,196,197,173,12,30,32,198,120]),import.meta.url),defaultWidthTier:"wide",icon:H.changes,get defaultTitle(){return e.layout_tabTypes_activityChanges_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},renameable:!1}),u.register({type:"hook-script",loadComponent:()=>c(()=>import("./C-HR_nje.js"),__vite__mapDeps([275,1,2,3,151,6,7,8,9,10,139,152,59,153,12,13,14,15,16,17,18,19,11,4,20,21,22,23,24,25,26,27,28,29,30,31,32,154,166,63,62,64,73,74]),import.meta.url),defaultWidthTier:"medium",icon:Ge,get defaultTitle(){return e.chat_backgroundHooks_viewScript_label()},get categoryLabel(){return e.layout_tabTypes_panel_category()},renameable:!1}),u.register({type:"settings",loadComponent:()=>c(()=>import("./CkmDctRH.js"),__vite__mapDeps([276,1,2]),import.meta.url),defaultWidthTier:"narrow",icon:He,get defaultTitle(){return e.layout_tabTypes_settings_title()},get categoryLabel(){return e.layout_tabTypes_settings_category()},renameable:!1}),u.register({type:"overview",loadComponent:()=>c(()=>import("./C8tk9ZQ3.js"),__vite__mapDeps([277,1,2]),import.meta.url),defaultWidthTier:"narrow",icon:ue,get defaultTitle(){return e.layout_tabTypes_overview_title()},get categoryLabel(){return e.layout_tabTypes_overview_category()},renameable:!1})}async function Wt(y){if(y?.restoreStatus!=="restored")return;const _=new Set(Object.values(y.panels).flatMap(r=>{const k=r.tabs.find(l=>l.id===r.activeTabId);return k?[k.type]:[]}));await Promise.allSettled([..._].map(r=>u.loadComponent(r)))}var at=W("<!> <!>",1),rt=W('<img class="h-auto w-full max-w-64 rounded-lg" width="512" height="512"/>'),ot=W('<div class="flex aspect-square w-full max-w-64 items-center justify-center"><!></div>'),st=W('<div class="flex justify-center" data-testid="passkey-qr"><!></div>'),it=W('<div class="flex justify-center py-4 text-muted-foreground"><!></div>'),nt=W('<p class="type-caption text-muted-foreground" data-testid="passkey-pin-advice"> </p>'),lt=W('<form id="passkey-pin-form" class="flex flex-col gap-3"><!> <!></form>');function Pe(y,_){if(new.target)return Te({component:Pe,...y});we(_,!0);let r=ie(_,"payload",7),k=ie(_,"static",7,!1),l=ie(_,"onRespond",7),f=K(!1),A=K(""),U=K("");const a=b(()=>r()?.view??null);Q(()=>{v(f,r()!==null)}),Q(()=>{t(a)?.step!=="pin"&&v(A,"")});let z=K(0),Y=K(ze(Date.now()));Q(()=>{const i=t(a)?.step==="pin"&&t(a).kind==="device"?t(a).retryAfterMs:void 0;if(typeof i!="number"){v(z,0);return}const T=Date.now();v(Y,T,!0),v(z,T+i);const w=setInterval(()=>{v(Y,Date.now(),!0),t(Y)>=t(z)&&clearInterval(w)},250);return()=>clearInterval(w)});const ee=b(()=>Math.max(0,Math.ceil((t(z)-t(Y))/1e3))),_e=b(()=>t(a)?.step==="pin"&&(t(a).kind==="device"?t(ee)>0:typeof t(a).retryAfterMs=="number"));Q(()=>{const i=t(a)?.step==="qr"?t(a).data:"";if(!i){v(U,"");return}let T=!0;return c(async()=>{const{default:w}=await import("./BZ9svoQk.js").then(C=>C.b);return{default:w}},__vite__mapDeps([278,59]),import.meta.url).then(({default:w})=>w.toDataURL(i,{width:512,margin:2})).then(w=>{T&&v(U,w,!0)}),()=>{T=!1}});const Ee=b(()=>r()?r().kind==="create"?e.passkeys_dialog_createTitle_label({site:r().rpId}):e.passkeys_dialog_getTitle_label({site:r().rpId}):"");function De(i){switch(i){case"bluetooth-off":return e.passkeys_dialog_bluetoothOff_error();case"bluetooth-missing":return e.passkeys_dialog_bluetoothMissing_error();case"pin-locked":return e.passkeys_dialog_pinLocked_error();case"timeout":return e.passkeys_dialog_timeout_error();case"already-registered":return e.passkeys_dialog_alreadyRegistered_error();case"unavailable":return e.passkeys_dialog_unavailable_error();case"device-locked":return e.passkeys_dialog_deviceLocked_error();case"device-already-registered":return e.passkeys_dialog_deviceAlreadyRegistered_error();case"device-no-passkey":return e.passkeys_dialog_deviceNoPasskey_error({site:r()?.rpId??""});case"device-old-pin-wrong":return e.passkeys_dialog_deviceOldPinWrong_error();case"device-failed":return e.passkeys_dialog_deviceFailed_error();default:return e.passkeys_dialog_failed_error()}}const Ae=b(()=>{if(!(!t(a)||!r()))switch(t(a).step){case"choose-transport":return r().kind==="create"?e.passkeys_dialog_chooseCreate_description():e.passkeys_dialog_chooseGet_description();case"qr":case"progress":switch(t(a).progress){case"waiting-for-phone":return e.passkeys_dialog_waitingForPhone_description();case"connecting":return e.passkeys_dialog_connecting_description();case"waiting-for-approval":return e.passkeys_dialog_waitingForApproval_description();case"touch-key":return e.passkeys_dialog_touchKey_description();case"processing":return e.passkeys_dialog_processing_description();default:return t(a).step==="progress"&&t(a).transport==="usb"?e.passkeys_dialog_insertKey_description():e.passkeys_dialog_starting_description()}case"pin":return t(a).kind==="usb"?e.passkeys_dialog_pin_description():t(a).oldPin?e.passkeys_dialog_deviceOldPin_description():e.passkeys_dialog_devicePin_description();case"choose-account":return e.passkeys_dialog_chooseAccount_description();case"error":return De(t(a).reason)}}),de=b(()=>t(a)?.step==="pin"&&t(a).kind==="device"?t(a).oldPin?e.passkeys_dialog_deviceOldPin_label():e.passkeys_dialog_devicePin_label():e.passkeys_dialog_pin_label()),Ce=b(()=>{if(t(a)?.step==="pin"){if(t(a).kind==="device"){if(t(ee)>0)return e.passkeys_dialog_devicePinWait_error({seconds:t(ee)})}else if(typeof t(a).retryAfterMs=="number")return e.passkeys_dialog_pinRetryAfter_error();if(t(a).wrongPin)return typeof t(a).attemptsLeft=="number"?t(a).attemptsLeft===1?e.passkeys_dialog_wrongPinAttempts_one({count:t(a).attemptsLeft}):e.passkeys_dialog_wrongPinAttempts_many({count:t(a).attemptsLeft}):e.passkeys_dialog_wrongPin_error()}}),Oe=b(()=>{if(t(a)?.step!=="choose-transport")return[];const i=t(a).hybrid==="bluetooth-off"?e.passkeys_dialog_bluetoothOff_description():t(a).hybrid==="bluetooth-missing"?e.passkeys_dialog_bluetoothMissing_description():void 0;return[...t(a).device?[{id:"device",label:e.passkeys_dialog_thisDevice_label(),note:void 0,icon:qe}]:[],{id:"hybrid",label:e.passkeys_dialog_phone_label(),note:i,icon:Fe},{id:"usb",label:e.passkeys_dialog_securityKey_label(),note:void 0,icon:je}]});function te(){l()({action:"cancel"})}function Re(i){if(i.preventDefault(),!t(A))return;const T=t(A);v(A,""),l()({action:"pin",pin:T})}var xe={get payload(){return r()},set payload(i){r(i),ne()},get static(){return k()},set static(i=!1){k(i),ne()},get onRespond(){return l()},set onRespond(i){l(i),ne()},$set:he,$on:(i,T)=>ke(_,i,T)},pe=q(),We=M(pe);{var Se=i=>{{const T=C=>{var ae=q(),J=M(ae);{var re=P=>{le(P,{variant:"secondary",onclick:te,children:(S,B)=>{F();var V=x();I(d=>E(V,d),[()=>e.passkeys_dialog_close_label()]),p(S,V)},$$slots:{default:!0}})},oe=P=>{var S=at(),B=M(S);le(B,{variant:"ghost",onclick:te,children:(n,m)=>{F();var s=x();I(L=>E(s,L),[()=>e.passkeys_dialog_cancel_label()]),p(n,s)},$$slots:{default:!0}});var V=ye(B,2);{var d=n=>{{let m=b(()=>!t(A)||t(_e));le(n,{variant:"primary",type:"submit",form:"passkey-pin-form",get disabled(){return t(m)},children:(s,L)=>{F();var o=x();I(g=>E(o,g),[()=>e.passkeys_dialog_continue_label()]),p(s,o)},$$slots:{default:!0}})}};D(V,n=>{t(a).step==="pin"&&n(d)})}p(P,S)};D(J,P=>{t(a).step==="error"?P(re):P(oe,-1)})}p(C,ae)};let w=b(()=>t(a).step==="error"?e.passkeys_dialog_close_label():e.passkeys_dialog_cancel_label());Xe(i,{get static(){return k()},get title(){return t(Ee)},get description(){return t(Ae)},size:"sm",dismissOnInteractOutside:!1,get closeLabel(){return t(w)},onClose:te,get open(){return t(f)},set open(C){v(f,C,!0)},footer:T,children:(C,ae)=>{var J=q(),re=M(J);{var oe=d=>{{const n=(s,L)=>{let o=()=>(L?.()).item;me(s,{leading:h=>{Ue(h,{get icon(){return o().icon},fw:!0})},title:h=>{F();var R=x();I(()=>E(R,o().label)),p(h,R)},description:h=>{var R=q(),se=M(R);{var G=$=>{var ce=x();I(()=>E(ce,o().note)),p($,ce)};D(se,$=>{o().note&&$(G)})}p(h,R)},$$slots:{leading:!0,title:!0,description:!0}})};let m=b(()=>e.passkeys_dialog_transports_ariaLabel());be(d,{get items(){return t(Oe)},getKey:s=>s.id,getText:s=>s.label,get ariaLabel(){return t(m)},onActivate:s=>l()({action:"transport",transport:s.id}),row:n,$$slots:{row:!0}})}},P=d=>{var n=st(),m=X(n);{var s=o=>{var g=rt();I(O=>{fe(g,"src",t(U)),fe(g,"alt",O)},[()=>e.passkeys_dialog_qrImage_ariaLabel()]),p(o,g)},L=o=>{var g=ot(),O=X(g);ve(O,{size:20}),Z(g),p(o,g)};D(m,o=>{t(U)?o(s):o(L,-1)})}Z(n),p(d,n)},S=d=>{var n=it(),m=X(n);ve(m,{size:20}),Z(n),p(d,n)},B=d=>{var n=lt(),m=X(n);{let o=b(()=>t(a).kind==="device"?"numeric":void 0);Ze(m,{type:"password",get inputmode(){return t(o)},autocomplete:"off",get"aria-label"(){return t(de)},get placeholder(){return t(de)},get error(){return t(Ce)},get disabled(){return t(_e)},autofocus:!0,get value(){return t(A)},set value(g){v(A,g,!0)}})}var s=ye(m,2);{var L=o=>{var g=nt(),O=Je(g,!0);I(N=>E(O,N),[()=>e.passkeys_dialog_devicePinAdvice_description()]),p(o,g)};D(s,o=>{t(a).firstPasskey&&o(L)})}Z(n),Ye("submit",n,Re),p(d,n)},V=d=>{{const n=(s,L)=>{let o=()=>(L?.()).item;me(s,{title:N=>{F();var h=x();I(()=>E(h,o().userDisplayName||o().userName)),p(N,h)},description:N=>{var h=q(),R=M(h);{var se=G=>{var $=x();I(()=>E($,o().userName)),p(G,$)};D(R,G=>{o().userDisplayName&&o().userName&&G(se)})}p(N,h)},$$slots:{title:!0,description:!0}})};let m=b(()=>e.passkeys_dialog_accounts_ariaLabel());be(d,{get items(){return t(a).accounts},getKey:s=>s.index,getText:s=>s.userDisplayName||s.userName,get ariaLabel(){return t(m)},onActivate:s=>l()({action:"choose",index:s.index}),row:n,$$slots:{row:!0}})}};D(re,d=>{t(a).step==="choose-transport"?d(oe):t(a).step==="qr"?d(P,1):t(a).step==="progress"?d(S,2):t(a).step==="pin"?d(B,3):t(a).step==="choose-account"&&d(V,4)})}p(C,J)},$$slots:{footer:!0,default:!0}})}};D(We,i=>{r()&&t(a)&&i(Se)})}return p(y,pe),Le(xe)}const _t=new tt("PasskeyDialog"),j=et.PASSKEYS;function dt(y){const _=Ie();if(!_)return()=>{};const r=_.on(j.DIALOG_SHOW,l=>{const f=l;!f||typeof f.ceremonyId!="string"||!f.view||y.onShow(f)}),k=_.on(j.DIALOG_CLOSE,l=>{const f=l;f&&typeof f.ceremonyId=="string"&&y.onClose(f.ceremonyId)});return()=>{_.offById(j.DIALOG_SHOW,r),_.offById(j.DIALOG_CLOSE,k)}}function pt(y){const _=Ie();_&&_.invoke(j.DIALOG_RESPOND,y).catch(()=>{_t.warn("Passkey dialog response failed",{action:y.action})})}function ct(y,_){if(new.target)return Te({component:ct,...y});we(_,!0);let r=K(null);Qe(()=>dt({onShow:l=>{v(r,l,!0)},onClose:l=>{t(r)?.ceremonyId===l&&v(r,null)}}));var k={$set:he,$on:(l,f)=>ke(_,l,f)};return Pe(y,{get payload(){return t(r)},onRespond:l=>{t(r)&&pt({...l,ceremonyId:t(r).ceremonyId})}}),Le(k)}export{ct as P,Wt as p,xt as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as mt,bo as S,bw as dt,bq as ut,b as ft,bs as _,bm as x}from"./CLAmm_T1.js";import{bs as vt,ca as T,aD as e,bj as gt,a7 as b,ay as m,W as d,bn as _t,c9 as i,cd as j,aA as k,bS as bt,aB as $t}from"./3SdAC2_C.js";import{i as A}from"./BFgvMDua.js";import{k as q}from"./CIbfGsF-.js";import{c as z}from"./BwH4Bvte.js";import{aw as It,cS as wt}from"./DPttSllj.js";import{dD as ht,d$ as St}from"./C2UL5Ler.js";import{S as kt,c as Ct}from"./
|
|
1
|
+
import{t as mt,bo as S,bw as dt,bq as ut,b as ft,bs as _,bm as x}from"./CLAmm_T1.js";import{bs as vt,ca as T,aD as e,bj as gt,a7 as b,ay as m,W as d,bn as _t,c9 as i,cd as j,aA as k,bS as bt,aB as $t}from"./3SdAC2_C.js";import{i as A}from"./BFgvMDua.js";import{k as q}from"./CIbfGsF-.js";import{c as z}from"./BwH4Bvte.js";import{aw as It,cS as wt}from"./DPttSllj.js";import{dD as ht,d$ as St}from"./C2UL5Ler.js";import{S as kt,c as Ct}from"./IvX_QTkj.js";import{selectScriptById as yt,selectCanDeleteScript as Dt}from"./BvDFX1mj.js";import"./CcJmuwXr.js";import"./BwNrQXlF.js";import"./TB9r2XJy.js";import"./hkJYqn41.js";import{M as J}from"./B6dUCFoz.js";import{g as xt}from"./DWGXN6Nr.js";import{T as Tt}from"./CwEjDuJ3.js";import{u as At,f as Bt}from"./Cp5royN1.js";import{JH as B,DH as Vt,vz as Wt,h0 as Ht}from"./B9vHutcJ.js";var Rt=$t("<!> <!>",1);function Mt(V,c){if(new.target)return mt({component:Mt,...V});vt(c,!0);const $=()=>_(L,"$fullContext$",u),P=()=>_(U,"$canDeleteScript$",u),E=()=>_(N,"$scriptContext$",u),F=()=>_(Q,"$script$",u),W=()=>_(X,"$homeView$",u),[u,G]=ut(),K=t=>{var r=b(),n=m(r);{var f=v=>{var w=Rt(),O=m(w);{let g=i(()=>x.workspace_shell_showInBottomBar_tooltip());z(O,()=>J,(h,D)=>{D(h,{get icon(){return It},get label(){return e(g)},onclick:Z,"data-move-to-bottom-bar":!0})})}var st=bt(O,2);{var nt=g=>{var h=b(),D=m(h);{let it=i(()=>x.scripts_delete_label()),ct=i(()=>P()?void 0:x.scripts_delete_disabled_description());z(D,()=>J,(lt,pt)=>{pt(lt,{get icon(){return wt},get label(){return e(it)},destructive:!0,get disabledReason(){return e(ct)},onclick:Y})})}d(g,h)};A(st,g=>{e(o)&&g(nt)})}d(v,w)};A(n,v=>{$()&&v(f)})}d(t,r)};let s=S(c,"tab",7),a=S(c,"workspaceId",7),C=S(c,"layoutId",7),l=S(c,"isActive",7);const I=i(()=>s().terminalId),o=i(()=>s().scriptId),H=xt(),p=j(""),y=j("");T(()=>p.set(a())),T(()=>y.set(e(o)??""));const L=ht(p),N=St(p),Q=yt(p,y),U=Dt(p,y),X=At(p);let R=!0;gt(()=>{R=!1});function Y(){if(!e(o))return;const t=a(),r=e(o),n=s().id;return Ct(t,r,()=>R&&l()&&a()===t&&e(o)===r&&s().id===n)}function Z(){$()&&(e(o)&&B.dispatch(Vt(a(),e(o))),B.dispatch(Wt(a(),e(I))),B.dispatch(Ht(C()??a(),s().id)))}T(()=>{if(!(!H||!l()))return H.registerActions({actions:K})});var tt={get tab(){return s()},set tab(t){s(t),k()},get workspaceId(){return a()},set workspaceId(t){a(t),k()},get layoutId(){return C()},set layoutId(t){C(t),k()},get isActive(){return l()},set isActive(t){l(t),k()},$set:dt,$on:(t,r)=>ft(c,t,r)},M=b(),et=m(M);{var rt=t=>{var r=b(),n=m(r);q(n,()=>e(o),f=>{{let v=i(()=>W()?.unavailable===!0),w=i(()=>Bt(W()));kt(f,{get scriptId(){return e(o)},get workspaceId(){return a()},class:"h-full",get runDisabled(){return e(v)},get runDisabledReason(){return e(w)}})}}),d(t,r)},at=t=>{var r=b(),n=m(r);q(n,()=>e(I),f=>{Tt(f,{get terminalId(){return e(I)},get workspaceId(){return a()},class:"h-full"})}),d(t,r)};A(et,t=>{e(o)&&l()&&E()&&($()||F())?t(rt):e(I)&&l()&&$()&&t(at,1)})}d(V,M);var ot=_t(tt);return G(),ot}export{Mt as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Ul=Object.defineProperty;var jl=(r,t,a)=>t in r?Ul(r,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[t]=a;var pa=(r,t,a)=>jl(r,typeof t!="symbol"?t+"":t,a);import{t as pt,bo as g,bw as vt,b as ht,bm as d,bq as Ea,bs as tr,br as Vl,bp as vn}from"./CLAmm_T1.js";import{ai as Ga,bs as _t,ca as Yt,aD as e,bH as D,ay as fe,bS as A,a7 as St,W as c,a5 as V,bA as F,bn as bt,c9 as n,bV as ue,aA as m,b_ as $,aj as xr,aB as I,be as Cr,b$ as Pr,bO as Q,bf as rr,c0 as Ia,bl as oe,bj as ja,c6 as Gl,bo as nn,br as Zr,am as Da,ax as Ba,bk as as,aw as pn,bz as ns,cb as Fn,c5 as Mn,aC as Ir,cd as vo,bv as Kl}from"./3SdAC2_C.js";import{i as O}from"./BFgvMDua.js";import{g as kr,e as sa,p as ms,i as Ha,I as Zl,h as eo,X as pi,o as Ql}from"./B1CKzIA2.js";import{n as Kt,l as On,c as Xa,g as rn,s as ks,k as ss,S as Yl}from"./CfNIzRu8.js";import{s as J,f as Fe,g as hn,c as It,e as Qt,b as _n,p as Xl,S as Jl,C as ed}from"./CcJmuwXr.js";import{b as ea}from"./Dn334wJv.js";import{f as st,ae as to,a_ as td}from"./nxtepGjE.js";import{J as rd,O as ad,Q as Is}from"./TB9r2XJy.js";import"./C4jSaPCg.js";import"./CEE0831H.js";import"./CgrVbtN0.js";import{t as Ma,k as vi}from"./BwNrQXlF.js";import{F as Bt,a4 as zs,bg as ka,cK as ps,au as hi,aZ as _i,aK as nd,c9 as sd,a6 as os,aN as od,cN as id,cM as ld,a3 as vs,aC as is,aw as hs,I as ho,aj as dd,bu as cd,aS as ud,aX as fd,bJ as gd,ao as md,bk as bi,cC as pd,aP as _o,c0 as Ss,aI as Hn,cW as vd,cb as hd,bn as _d,b as bd,cp as yd,ag as wd,ba as Ts,cr as wn,cF as xd,az as kd,c6 as Id,d3 as Sd}from"./DPttSllj.js";import{C as yi,A as Td,o as Cd}from"./Dd-LQrG1.js";import{b as Cs,V as bo}from"./D99jSct3.js";import{A as wi}from"./R69_F6ow.js";import{bZ as xi,aj as Md,j as Kn,a4 as Ws,al as ls,E as Ad,au as Zn,aP as Pd,aS as yo}from"./BQGIKN0g.js";import{t as an,o as Rd}from"./DAsc1V4f.js";import{ch as Qn,aO as qn,d3 as ki,d5 as Va,c6 as _s,q as Nd,cY as Ii,d2 as bs,d1 as Si,c$ as Ti,n as Ca,al as Ed,am as $d,aJ as Ld,z as Od,V as qd,a3 as wo,D as Ci,e5 as Dd,aF as Bd,ak as Fd,r as zd,C as Ms,ag as Wd,U as xn,e3 as Hd,ab as Ud,k as xo,u as jd,Z as Vd,v as Gd,i as Kd,g as As,f as ko,a0 as Zd,$ as Qd,a9 as Yd,x as Mi,y as Ai,l as Pi,j as Xd,s as Jd,a as ec,d6 as tc,ae as rc,e4 as ac,L as nc,F as sc,a2 as Io,bq as oc,av as ic}from"./C2UL5Ler.js";import{JH as mt,p0 as lc,tR as Yn,nR as So,vK as Ri,vM as Ni,s2 as dc,yJ as ds,v1 as Ei,nM as $i,br as En,nZ as cc,n_ as uc,yK as fc,qA as gc,tl as mc,vD as Li,nL as pc,mP as vc,m as hc,zk as _c,zh as bc,zj as yc}from"./B9vHutcJ.js";import{a3 as wc,y as Ps,a1 as xc,O as Rs,W as kc,$ as Ic,k as Sc,p as kn,P as un,q as Tc,G as Cc,v as Mc,t as Ac,M as Ns,K as Pc,z as Rc,L as Nc,_ as An,U as Un,N as To,n as Co,E as Ec,c as Es,F as Mo,B as $c,w as Ao,J as Pn,Q as Lc,H as Oc,j as qc,R as Dc,T as Bc,A as Fc,g as zc,b as Wc,D as Hc,f as Uc,e as jc,a as Vc,C as Gc,i as Kc,d as Hs,V as Oi,a4 as Zc,u as Qc,l as Yc}from"./CIuThArl.js";import{i as Xc,e as Jc}from"./BGrimfDs.js";import{g as $s}from"./B5aYN90J.js";import{M as In,C as Rn}from"./DDVnHnMH.js";import{C as Po}from"./BId1zNus.js";import"./DqRvDwkX.js";import{P as eu}from"./CB2iSm6U.js";import"./ByyFoG6W.js";import{c as qi}from"./ChTqQfQN.js";import{S as tu}from"./hgE6oWwa.js";import{D as Ro,M as ru}from"./DtluaQEg.js";import{b as au,s as en,c as cs}from"./D17rwSNZ.js";import{O as Xn,y as Ls,E as Os,B as qs,N as nu,m as su,l as ou,k as iu,d as Dn,C as No,f as lu,e as du,g as cu}from"./B4JMAhvp.js";import{a as Di,s as Eo}from"./BsieX9dN.js";import{f as uu}from"./BdWqymET.js";import{c as na}from"./CRSiOiSR.js";import{a as fu,k as Bi,h as ro,q as Fi,l as wr}from"./Cu5e4npY.js";import{P as gu}from"./hkJYqn41.js";import{r as Ds,q as Bs,B as $o,i as mu}from"./Bm_geQt1.js";import{R as zi,C as ys,m as pu,h as vu,g as hu,i as Lo,P as _u}from"./96V4v2iI.js";import"./BbYWP3Ow.js";import{c as bu,s as yu}from"./fCCFSMRf.js";import{h as gn}from"./KvHDUk_b.js";import{b as wu,a as Wi}from"./D8EdnE4r.js";import{P as Hi}from"./TyAuxp07.js";import{B as xu}from"./BGniv2IE.js";import{o as Ui,r as ku,e as Iu}from"./CeZGOup4.js";import{o as ji}from"./k1pjOtcg.js";import{A as Jn,b as Vi}from"./BhCMc9G0.js";import{g as ao}from"./BrMDTgLg.js";import{a as Su,M as Tu}from"./UTM5G-w-.js";import{a as Gi}from"./z5FcOXD5.js";import{E as Cu,n as Mu}from"./BbhtQrkZ.js";import{t as Tr}from"./C-BsEdGZ.js";import{c as Sn}from"./BwH4Bvte.js";import{A as Au}from"./C6RhewOE.js";import{f as Pu,d as Ru}from"./CXfRSojK.js";import{ad as Nu,P as Eu,Z as $u,L as Oo,Y as Lu,w as Ou,a0 as Ki,$ as Zi}from"./Ba3e0br1.js";import{a as qu}from"./CC7to1B5.js";import{k as Du}from"./CIbfGsF-.js";import{S as Bu}from"./Chj-azz7.js";import{u as Fu,a as zu,c as qo,S as Wu}from"./D9tVylVS.js";import{T as us}from"./DMrzeQEi.js";import"./DZzwt3PA.js";import{g as Hu,a as Uu}from"./DaWmj23r.js";import{I as ju,R as Vu,q as Gu}from"./mq9vi3Up.js";import{b as Qi}from"./CVWwz1Ss.js";import{b as Do}from"./goTpbPhD.js";import{ah as Ua,n as Ku}from"./DQw0Iiac.js";import{b as Zu}from"./CndXvgyH.js";import{r as Bo}from"./C3vs7E1W.js";function Qu(r){if(!r||typeof r!="object")return null;const t=r;if(t.type!=="script_monitor_wake"||t.source!=="system")return null;const{scriptName:a,scriptId:s,runId:o,monitorId:i,workspaceId:l,reason:u}=t;if(typeof a!="string"||typeof s!="string"||!s||typeof o!="string"||!o||typeof i!="string"||!i||typeof l!="string"||!l||u!=="finished"&&u!=="ttl-expired"&&u!=="output-match"&&u!=="line-count")return null;const h=t.trigger;return{scriptName:a,scriptId:s,runId:o,monitorId:i,workspaceId:l,reason:u,...u==="output-match"&&typeof h?.matchedLine=="string"?{matchedLine:h.matchedLine}:{}}}function Yu(r){return r?.type==="script_monitor_wake"&&!("remoteAgentId"in r)}function Xu(r,t,a,s=!1){if(!r||!t)return{edit:!1,remove:!1,sendNow:!1};const o=r.messageMetadata?.fromPrincipalId??r.author?.principalId,i=Nu(r)&&r.author?.principalId!==null&&o===t;return{edit:i,remove:i||t===a||s,sendNow:(i||s)&&!Yi(r)}}function Tn(r,t){if(t)return r.find(a=>a.editing&&a.editingMessageId?a.editingMessageId===t:a.id===t)}function Yi(r){return Yu(r.messageMetadata)&&typeof r.messageMetadata?.monitorId=="string"}function Fo(r,t=Date.now()){const a=r.messageMetadata,s=a?.fromPrincipalId,o=a&&Object.hasOwn(a,"humanAuthor")&&!(typeof s=="string"&&s.length>0),i=r.holdKind!==void 0&&Date.parse(r.holdUntil??"")>t;return!r.editing&&!i&&!o&&!Yi(r)}const Cb="pl-3.5! pr-2!";var Ju=I('<span class="tile-remove-slot svelte-d8pwpf"><!></span>'),zo=I('<span class="attachment-status svelte-d8pwpf"> </span>'),ef=I('<div class="file-image tile svelte-d8pwpf" data-kind="file"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),tf=I("<!><span> </span>",1),rf=I('<img alt="" draggable="false"/>'),af=I('<span class="summary svelte-d8pwpf" data-clip-summary=""> </span>'),nf=I('<span class="clip svelte-d8pwpf"><span class="record-dot svelte-d8pwpf" aria-hidden="true"></span><span class="duration svelte-d8pwpf"> </span><!></span>'),sf=I('<div class="tile svelte-d8pwpf"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),of=I('<div class="attachment-row svelte-d8pwpf" role="group" data-dock-media-attachments=""></div>'),lf=I("<!> <!> <!>",1),df=I('<img draggable="false" class="svelte-d8pwpf"/>'),cf=I('<video controls="" playsinline="" class="svelte-d8pwpf"></video>',2),uf=I('<div class="media-viewer svelte-d8pwpf"><!></div>'),ff=I("<!> <!>",1);function gf(r,t){if(new.target)return pt({component:gf,...r});_t(t,!0);const a=(T,me=rr,le=rr)=>{var N=Ju(),ve=V(N);st(ve,{variant:"secondary",size:"icon-sm",class:"tile-action tile-remove",get disabled(){return i()},get"aria-label"(){return le()},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return le()},onclick:()=>z(me()),children:(Le,Ae)=>{Cs(Le,{glyph:"x"})},$$slots:{default:!0}}),F(N),c(T,N)};let s=g(t,"items",7),o=g(t,"labels",7),i=g(t,"disabled",7,!1),l=g(t,"onMarkUp",7),u=g(t,"onEdit",7),h=g(t,"onRemove",7),v=g(t,"onRetry",7),x=g(t,"onCopy",7),M=g(t,"onMenu",7);const B=T=>T.owner==="attachment"?2:{image:0,clip:1,file:2}[T.kind],U=n(()=>[...s()].sort((T,me)=>B(T)-B(me)));let w=ue(null),C=ue(!1),re=ue(null),G=null;const S=n(()=>s().find(T=>T.id===e(re)));Yt(()=>{(!e(S)||e(S).kind==="image"&&!j(e(S)))&&D(C,!1)});function j(T){return T.kind==="image"&&T.status!=="placing"&&T.status!=="failed"&&T.url.trim().length>0}function L(T){return T.kind==="image"?o().image(T.markCount):T.kind==="clip"?T.summary?`${o().clip(T.duration)} ${T.summary}`:o().clip(T.duration):T.name}function ne(T,me){if(!(i()||T.kind==="file"||T.kind==="image"&&!j(T)||T.kind==="clip"&&(!T.url||T.recording))){if((T.kind==="clip"||T.kind==="image")&&u()){u()(T.id);return}G=me,D(re,T.id,!0),D(C,!0)}}async function z(T){i()||(e(re)===T&&D(C,!1),h()(T),await Ia(),(!document.activeElement||document.activeElement===document.body)&&e(w)?.querySelector("button:not(:disabled)")?.focus())}function q(T){const me=s().find(le=>le.id===T);i()||!me||!j(me)||(D(C,!1),u()?u()(T):l()(T))}function ee(T,me){T.key!=="Delete"||i()||(T.preventDefault(),T.stopPropagation(),z(me))}function R(T){return T.status==="placing"||T.status==="failed"?!1:T.kind==="image"?!!T.file||j(T):T.kind==="clip"&&!T.recording&&!!T.url}function Y(T,me){const le=rd()?T.metaKey:T.ctrlKey,N=T.key.toLowerCase();if(le&&!T.shiftKey&&!T.altKey&&(N==="c"||N==="x")){if(!x()||!R(me)||(T.preventDefault(),T.stopPropagation(),N==="x"&&i()))return;x()(me.id,N==="x");return}ee(T,me.id)}function te(T,me){!M()||!R(me)||(T.preventDefault(),M()(me.id))}var _e={get items(){return s()},set items(T){s(T),m()},get labels(){return o()},set labels(T){o(T),m()},get disabled(){return i()},set disabled(T=!1){i(T),m()},get onMarkUp(){return l()},set onMarkUp(T){l(T),m()},get onEdit(){return u()},set onEdit(T){u(T),m()},get onRemove(){return h()},set onRemove(T){h(T),m()},get onRetry(){return v()},set onRetry(T){v(T),m()},get onCopy(){return x()},set onCopy(T){x(T),m()},get onMenu(){return M()},set onMenu(T){M(T),m()},$set:vt,$on:(T,me)=>ht(t,T,me)},de=ff(),ge=fe(de);{var Pe=T=>{var me=of();kr(me,21,()=>e(U),le=>le.id,(le,N)=>{var ve=St(),Le=fe(ve);{var Ae=xe=>{var P=ef(),X=V(P);{let W=n(()=>i()||e(N).status==="placing");wi(X,{get id(){return e(N).id},get name(){return e(N).file.name},get type(){return e(N).file.imageMimeType},get imageData(){return e(N).file.imageData},get imageMimeType(){return e(N).file.imageMimeType},variant:"thumbnail",thumbnailClass:"size-full",class:"size-full",get disabled(){return e(W)},get placementStatus(){return e(N).status},get placementError(){return e(N).error}})}var ae=A(X,2);{var we=W=>{var be=zo(),Re=oe(be,!0);$(()=>{J(be,"data-failed",e(N).status==="failed"||void 0),J(be,"role",e(N).status==="failed"?"alert":"status"),J(be,"title",e(N).error),Q(Re,e(N).status==="failed"?e(N).error??o().attachmentFailed:o().attachmentPending)}),c(W,be)};O(ae,W=>{e(N).status&&W(we)})}var _=A(ae,2),Se=V(_);{var Ce=W=>{st(W,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>v()?.(e(N).id),children:(be,Re)=>{Bt(be,{get icon(){return zs},size:16})},$$slots:{default:!0}})};O(Se,W=>{e(N).status==="failed"&&v()&&W(Ce)})}var E=A(Se,2);{let W=n(()=>d.chat_attachmentPreview_remove_ariaLabel({name:e(N).file.name}));a(E,()=>e(N).id,()=>e(W))}F(_),F(P),$(()=>J(P,"data-attachment-id",e(N).id)),xr("keydown",P,W=>Y(W,e(N))),xr("contextmenu",P,W=>te(W,e(N))),Kt(1,P,()=>On,()=>({tier:"fast",y:3,scale:.98})),Kt(2,P,()=>Xa,()=>({tier:"fast"})),c(xe,P)},Ee=xe=>{const P=n(()=>e(N).kind==="image"&&!j(e(N))&&e(N).status!=="failed");var X=sf(),ae=V(X);{var we=ke=>{st(ke,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile file",get"aria-label"(){return e(N).name},get disabled(){return i()},onkeydown:$e=>ee($e,e(N).id),children:($e,Oe)=>{var Ue=tf(),se=fe(Ue);Bt(se,{get icon(){return ka},size:20});var Ge=A(se),yt=oe(Ge,!0);$(()=>Q(yt,e(N).name)),c($e,Ue)},$$slots:{default:!0}})},_=ke=>{{let $e=n(()=>L(e(N))),Oe=n(()=>i()||e(N).kind==="clip"&&(e(N).recording||!e(N).url));st(ke,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile",get"aria-label"(){return e($e)},get disabled(){return e(Oe)},onkeydown:Ue=>Y(Ue,e(N)),onclick:Ue=>{Ue.currentTarget instanceof HTMLElement&&ne(e(N),Ue.currentTarget)},children:(Ue,se)=>{var Ge=St(),yt=fe(Ge);{var Ft=et=>{var Ke=rf();$(()=>J(Ke,"src",e(N).url)),c(et,Ke)},er=et=>{var Ke=nf(),$t=A(V(Ke)),Tt=oe($t,!0),ut=A($t);{var ze=K=>{var y=af(),pe=oe(y,!0);$(()=>Q(pe,e(N).summary)),c(K,y)};O(ut,K=>{e(N).summary&&K(ze)})}F(Ke),$(()=>Q(Tt,e(N).duration)),c(et,Ke)};O(yt,et=>{e(N).kind==="image"?et(Ft):et(er,-1)})}c(Ue,Ge)},$$slots:{default:!0}})}},Se=n(()=>e(N).kind!=="image"||j(e(N)));O(ae,ke=>{e(N).kind==="file"?ke(we):e(Se)&&ke(_,1)})}var Ce=A(ae,2);{var E=ke=>{var $e=zo(),Oe=oe($e,!0);$(()=>{J($e,"data-failed",e(N).status==="failed"||void 0),J($e,"role",e(N).status==="failed"?"alert":"status"),J($e,"title",e(N).error),Q(Oe,e(N).status==="failed"?e(N).error??o().attachmentFailed:o().attachmentPending)}),c(ke,$e)};O(Ce,ke=>{(e(N).status||e(P))&&ke(E)})}var W=A(Ce,2),be=V(W);{var Re=ke=>{st(ke,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>v()?.(e(N).id),children:($e,Oe)=>{Bt($e,{get icon(){return zs},size:16})},$$slots:{default:!0}})},Ve=ke=>{{let $e=n(()=>u()?o().edit:o().markUp),Oe=n(()=>u()?o().edit:o().markUp);st(ke,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return e($e)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(Oe)},onclick:()=>q(e(N).id),children:(Ue,se)=>{Cs(Ue,{glyph:"pencil"})},$$slots:{default:!0}})}},De=n(()=>j(e(N))),Et=ke=>{{let $e=n(()=>u()?o().edit:o().play),Oe=n(()=>u()?o().edit:o().play);st(ke,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return e($e)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(Oe)},onclick:Ue=>{Ue.currentTarget instanceof HTMLElement&&ne(e(N),Ue.currentTarget)},children:(Ue,se)=>{{let Ge=n(()=>u()?"pencil":"play");Cs(Ue,{get glyph(){return e(Ge)}})}},$$slots:{default:!0}})}};O(be,ke=>{e(N).status==="failed"&&v()?ke(Re):e(De)?ke(Ve,1):e(N).kind==="clip"&&!e(N).recording&&e(N).url&&ke(Et,2)})}var ye=A(be,2);a(ye,()=>e(N).id,()=>o().remove),F(W),F(X),$(()=>{J(X,"data-kind",e(N).kind),J(X,"data-attachment-id",e(N).id),J(X,"aria-busy",e(P)||void 0)}),xr("contextmenu",X,ke=>te(ke,e(N))),Kt(1,X,()=>On,()=>({tier:"fast",y:3,scale:.98})),Kt(2,X,()=>Xa,()=>({tier:"fast"})),c(xe,X)};O(Le,xe=>{e(N).kind==="image"&&e(N).file?xe(Ae):xe(Ee,-1)})}c(le,ve)}),F(me),ea(me,le=>D(w,le),()=>e(w)),$(()=>J(me,"aria-label",o().attachments)),c(T,me)};O(ge,T=>{e(U).length&&T(Pe)})}var Ie=A(ge,2);{const T=le=>{var N=St(),ve=fe(N);{var Le=Ae=>{var Ee=lf(),xe=fe(Ee);{var P=_=>{st(_,{variant:"primary",get disabled(){return i()},onclick:()=>e(S)&&q(e(S).id),children:(Se,Ce)=>{Cr();var E=Pr();$(()=>Q(E,o().markUp)),c(Se,E)},$$slots:{default:!0}})},X=n(()=>j(e(S)));O(xe,_=>{e(X)&&_(P)})}var ae=A(xe,2);st(ae,{variant:"secondary",get disabled(){return i()},onclick:()=>e(S)&&z(e(S).id),children:(_,Se)=>{Cr();var Ce=Pr();$(()=>Q(Ce,o().remove)),c(_,Ce)},$$slots:{default:!0}});var we=A(ae,2);st(we,{variant:"ghost-light",onclick:()=>{D(C,!1)},children:(_,Se)=>{Cr();var Ce=Pr();$(()=>Q(Ce,o().done)),c(_,Ce)},$$slots:{default:!0}}),c(Ae,Ee)};O(ve,Ae=>{e(S)&&e(S).kind!=="file"&&Ae(Le)})}c(le,N)};let me=n(()=>e(S)?L(e(S)):o().attachments);yi(Ie,{get title(){return e(me)},size:"wide",showCloseButton:!1,onCloseAutoFocus:le=>{le.preventDefault(),G?.isConnected?G.focus():e(w)?.querySelector("button:not(:disabled)")?.focus()},get open(){return e(C)},set open(le){D(C,le,!0)},footer:T,children:(le,N)=>{var ve=St(),Le=fe(ve);{var Ae=Ee=>{var xe=uf(),P=V(xe);{var X=_=>{var Se=df();$(Ce=>{J(Se,"src",e(S).url),J(Se,"alt",Ce)},[()=>L(e(S))]),c(_,Se)},ae=n(()=>e(S).kind==="image"&&j(e(S))),we=_=>{var Se=cf();$(Ce=>{J(Se,"src",e(S).url),J(Se,"aria-label",Ce)},[()=>L(e(S))]),c(_,Se)};O(P,_=>{e(ae)?_(X):e(S).kind==="clip"&&e(S).url&&_(we,1)})}F(xe),c(Ee,xe)};O(Le,Ee=>{e(S)&&e(S).kind!=="file"&&Ee(Ae)})}c(le,ve)},$$slots:{footer:!0,default:!0}})}return c(r,de),bt(_e)}Ga(["keydown","contextmenu"]);var mf=I("<!> ",1),pf=I('<div class="flex flex-col gap-2 px-4 py-3 bg-muted/30 border border-border rounded-lg my-4"><div class="flex items-center justify-between gap-2"><div class="flex items-center gap-2"><div class="shrink-0 text-subtle"><!></div> <div class="font-medium text-sm"> </div></div> <div class="flex items-center gap-1"><!> <!></div></div> <div class="text-xs text-subtle"> </div> <pre class="text-xs bg-background/50 rounded p-2 overflow-x-auto max-h-40 overflow-y-auto font-mono"> </pre></div>');function Xi(r,t){if(new.target)return pt({component:Xi,...r});_t(t,!0);let a=g(t,"name",7),s=g(t,"description",7),o=g(t,"content",7),i=g(t,"onUseScript",7),l=ue(!1);function u(){navigator.clipboard.writeText(o()),D(l,!0),setTimeout(()=>{D(l,!1)},2e3)}function h(){i()?.({name:a(),description:s(),content:o()})}var v={get name(){return a()},set name(R){a(R),m()},get description(){return s()},set description(R){s(R),m()},get content(){return o()},set content(R){o(R),m()},get onUseScript(){return i()},set onUseScript(R){i(R),m()},$set:vt,$on:(R,Y)=>ht(t,R,Y)},x=pf(),M=V(x),B=V(M),U=V(B),w=V(U);Bt(w,{get icon(){return ps},size:"sm"}),F(U);var C=A(U,2),re=oe(C,!0);F(B);var G=A(B,2),S=V(G);st(S,{variant:"ghost-light",size:"sm",onclick:u,class:"h-7 px-2",children:(R,Y)=>{var te=mf(),_e=fe(te);{let ge=n(()=>e(l)?hi:_i);Bt(_e,{get icon(){return e(ge)},class:"mr-1"})}var de=A(_e);$(ge=>Q(de,` ${ge??""}`),[()=>e(l)?d.chat_shared_copied_label():d.chat_shared_copy_label()]),c(R,te)},$$slots:{default:!0}});var j=A(S,2);{var L=R=>{st(R,{variant:"ghost-light",size:"sm",onclick:h,class:"h-7 px-2",children:(Y,te)=>{Cr();var _e=Pr();$(de=>Q(_e,de),[()=>d.chat_setupScriptCard_useScript_label()]),c(Y,_e)},$$slots:{default:!0}})};O(j,R=>{i()&&R(L)})}F(G),F(M);var ne=A(M,2),z=oe(ne,!0),q=A(ne,2),ee=oe(q,!0);return F(x),$(()=>{Q(re,a()),Q(z,s()),Q(ee,o())}),c(r,x),bt(v)}const yr={toolStart:/(?:\x1B\[\d+m)?🔧\s+(?:Tool call:\s+)?(.+?)(?:\x1B\[0m)?$/,toolDetail:/(?:[└├]─\s+(.+)$|^\s{3,}(.+)$)/,toolResult:/(?:\x1B\[\d+m)?📋\s+Tool result:\s+(.+?)(?:\x1B\[0m)?$/,toolSuccess:/[✓✔✅]\s+(.+)$/,toolError:/[❌✗❎]\s+(.+)$/,sessionInfo:/[Ss]ession:\s*([a-f0-9-]+)/,resumedSession:/📂?\s*Resumed session/i,assistantMarker:/🤖/,systemMarker:/💻/,userMarker:/👤/,thinkingMarker:/🤔\s*Thinking/i,waitingMarker:/^⏳\s+Running/i,indexingProgress:/^Indexing:\s*\[.*\]\s*\d+%/,agentDigest:/<agent_digest>([\s\S]*?)<\/agent_digest>/,setupScript:/<setup_script\s+name="([^"]+)"\s+description="([^"]+)">([\s\S]*?)<\/setup_script>/};class vf{constructor(){pa(this,"buffer","");pa(this,"currentToolName",null);pa(this,"currentToolId",null);pa(this,"lastToolId",null);pa(this,"currentToolParams",[]);pa(this,"currentToolResultContent",[]);pa(this,"inToolResult",!1);pa(this,"inCodeBlock",!1);pa(this,"codeBlockLanguage","");pa(this,"codeBlockContent","");pa(this,"characterBuffer","");pa(this,"inCharacterMode",!1);pa(this,"emittedToolIds",new Set)}parseChunk(t){if(this.isMarkerLine(t.trim())){const o=[];if(this.inToolResult&&this.currentToolResultContent.length>0){const u=this.currentToolResultContent.some(v=>v.startsWith("❌")||v.startsWith("Error:")),h=this.currentToolResultContent.map(v=>v.replace(/^❌\s*/,"").replace(/^Error:\s*/,"")).join(`
|
|
1
|
+
var Ul=Object.defineProperty;var jl=(r,t,a)=>t in r?Ul(r,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[t]=a;var pa=(r,t,a)=>jl(r,typeof t!="symbol"?t+"":t,a);import{t as pt,bo as g,bw as vt,b as ht,bm as d,bq as Ea,bs as tr,br as Vl,bp as vn}from"./CLAmm_T1.js";import{ai as Ga,bs as _t,ca as Yt,aD as e,bH as D,ay as fe,bS as A,a7 as St,W as c,a5 as V,bA as F,bn as bt,c9 as n,bV as ue,aA as m,b_ as $,aj as xr,aB as I,be as Cr,b$ as Pr,bO as Q,bf as rr,c0 as Ia,bl as oe,bj as ja,c6 as Gl,bo as nn,br as Zr,am as Da,ax as Ba,bk as as,aw as pn,bz as ns,cb as Fn,c5 as Mn,aC as Ir,cd as vo,bv as Kl}from"./3SdAC2_C.js";import{i as O}from"./BFgvMDua.js";import{g as kr,e as sa,p as ms,i as Ha,I as Zl,h as eo,X as pi,o as Ql}from"./B1CKzIA2.js";import{n as Kt,l as On,c as Xa,g as rn,s as ks,k as ss,S as Yl}from"./CfNIzRu8.js";import{s as J,f as Fe,g as hn,c as It,e as Qt,b as _n,p as Xl,S as Jl,C as ed}from"./CcJmuwXr.js";import{b as ea}from"./Dn334wJv.js";import{f as st,ae as to,a_ as td}from"./nxtepGjE.js";import{J as rd,O as ad,Q as Is}from"./TB9r2XJy.js";import"./C4jSaPCg.js";import"./CEE0831H.js";import"./CgrVbtN0.js";import{t as Ma,k as vi}from"./BwNrQXlF.js";import{F as Bt,a4 as zs,bg as ka,cK as ps,au as hi,aZ as _i,aK as nd,c9 as sd,a6 as os,aN as od,cN as id,cM as ld,a3 as vs,aC as is,aw as hs,I as ho,aj as dd,bu as cd,aS as ud,aX as fd,bJ as gd,ao as md,bk as bi,cC as pd,aP as _o,c0 as Ss,aI as Hn,cW as vd,cb as hd,bn as _d,b as bd,cp as yd,ag as wd,ba as Ts,cr as wn,cF as xd,az as kd,c6 as Id,d3 as Sd}from"./DPttSllj.js";import{C as yi,A as Td,o as Cd}from"./Dd-LQrG1.js";import{b as Cs,V as bo}from"./D99jSct3.js";import{A as wi}from"./D-19S-7Z.js";import{bZ as xi,aj as Md,j as Kn,a4 as Ws,al as ls,E as Ad,au as Zn,aP as Pd,aS as yo}from"./CQlYR8ss.js";import{t as an,o as Rd}from"./DAsc1V4f.js";import{ch as Qn,aO as qn,d3 as ki,d5 as Va,c6 as _s,q as Nd,cY as Ii,d2 as bs,d1 as Si,c$ as Ti,n as Ca,al as Ed,am as $d,aJ as Ld,z as Od,V as qd,a3 as wo,D as Ci,e5 as Dd,aF as Bd,ak as Fd,r as zd,C as Ms,ag as Wd,U as xn,e3 as Hd,ab as Ud,k as xo,u as jd,Z as Vd,v as Gd,i as Kd,g as As,f as ko,a0 as Zd,$ as Qd,a9 as Yd,x as Mi,y as Ai,l as Pi,j as Xd,s as Jd,a as ec,d6 as tc,ae as rc,e4 as ac,L as nc,F as sc,a2 as Io,bq as oc,av as ic}from"./C2UL5Ler.js";import{JH as mt,p0 as lc,tR as Yn,nR as So,vK as Ri,vM as Ni,s2 as dc,yJ as ds,v1 as Ei,nM as $i,br as En,nZ as cc,n_ as uc,yK as fc,qA as gc,tl as mc,vD as Li,nL as pc,mP as vc,m as hc,zk as _c,zh as bc,zj as yc}from"./B9vHutcJ.js";import{a3 as wc,y as Ps,a1 as xc,O as Rs,W as kc,$ as Ic,k as Sc,p as kn,P as un,q as Tc,G as Cc,v as Mc,t as Ac,M as Ns,K as Pc,z as Rc,L as Nc,_ as An,U as Un,N as To,n as Co,E as Ec,c as Es,F as Mo,B as $c,w as Ao,J as Pn,Q as Lc,H as Oc,j as qc,R as Dc,T as Bc,A as Fc,g as zc,b as Wc,D as Hc,f as Uc,e as jc,a as Vc,C as Gc,i as Kc,d as Hs,V as Oi,a4 as Zc,u as Qc,l as Yc}from"./DLnFsCgA.js";import{i as Xc,e as Jc}from"./BGrimfDs.js";import{g as $s}from"./B5aYN90J.js";import{M as In,C as Rn}from"./D78ptBES.js";import{C as Po}from"./BId1zNus.js";import"./OIB4u9ZA.js";import{P as eu}from"./OtJAfUmG.js";import"./ByyFoG6W.js";import{c as qi}from"./ChTqQfQN.js";import{S as tu}from"./B7-Rf8Ja.js";import{D as Ro,M as ru}from"./Cu11OjbU.js";import{b as au,s as en,c as cs}from"./CbwlFeZe.js";import{O as Xn,y as Ls,E as Os,B as qs,N as nu,m as su,l as ou,k as iu,d as Dn,C as No,f as lu,e as du,g as cu}from"./Bb98JhKr.js";import{a as Di,s as Eo}from"./BsieX9dN.js";import{f as uu}from"./BdWqymET.js";import{c as na}from"./CRSiOiSR.js";import{a as fu,k as Bi,h as ro,q as Fi,l as wr}from"./Cu5e4npY.js";import{P as gu}from"./hkJYqn41.js";import{r as Ds,q as Bs,B as $o,i as mu}from"./DXY_Cr2S.js";import{R as zi,C as ys,m as pu,h as vu,g as hu,i as Lo,P as _u}from"./96V4v2iI.js";import"./BbYWP3Ow.js";import{c as bu,s as yu}from"./CHaC_gXH.js";import{h as gn}from"./CcDyBqhb.js";import{b as wu,a as Wi}from"./CyDuWtxr.js";import{P as Hi}from"./TyAuxp07.js";import{B as xu}from"./BGniv2IE.js";import{o as Ui,r as ku,e as Iu}from"./DnhCnCMz.js";import{o as ji}from"./B2_6AX8w.js";import{A as Jn,b as Vi}from"./BhCMc9G0.js";import{g as ao}from"./BrMDTgLg.js";import{a as Su,M as Tu}from"./UTM5G-w-.js";import{a as Gi}from"./z5FcOXD5.js";import{E as Cu,n as Mu}from"./BbhtQrkZ.js";import{t as Tr}from"./C-BsEdGZ.js";import{c as Sn}from"./BwH4Bvte.js";import{A as Au}from"./C6RhewOE.js";import{f as Pu,d as Ru}from"./BfnPC1r8.js";import{ad as Nu,P as Eu,Z as $u,L as Oo,Y as Lu,w as Ou,a0 as Ki,$ as Zi}from"./DjbX62Cx.js";import{a as qu}from"./CC7to1B5.js";import{k as Du}from"./CIbfGsF-.js";import{S as Bu}from"./Chj-azz7.js";import{u as Fu,a as zu,c as qo,S as Wu}from"./D9tVylVS.js";import{T as us}from"./DMrzeQEi.js";import"./DZzwt3PA.js";import{g as Hu,a as Uu}from"./DaWmj23r.js";import{I as ju,R as Vu,q as Gu}from"./CVtmf86l.js";import{b as Qi}from"./CVWwz1Ss.js";import{b as Do}from"./goTpbPhD.js";import{ah as Ua,n as Ku}from"./DQw0Iiac.js";import{b as Zu}from"./tqn1yslZ.js";import{r as Bo}from"./DSjchUEk.js";function Qu(r){if(!r||typeof r!="object")return null;const t=r;if(t.type!=="script_monitor_wake"||t.source!=="system")return null;const{scriptName:a,scriptId:s,runId:o,monitorId:i,workspaceId:l,reason:u}=t;if(typeof a!="string"||typeof s!="string"||!s||typeof o!="string"||!o||typeof i!="string"||!i||typeof l!="string"||!l||u!=="finished"&&u!=="ttl-expired"&&u!=="output-match"&&u!=="line-count")return null;const h=t.trigger;return{scriptName:a,scriptId:s,runId:o,monitorId:i,workspaceId:l,reason:u,...u==="output-match"&&typeof h?.matchedLine=="string"?{matchedLine:h.matchedLine}:{}}}function Yu(r){return r?.type==="script_monitor_wake"&&!("remoteAgentId"in r)}function Xu(r,t,a,s=!1){if(!r||!t)return{edit:!1,remove:!1,sendNow:!1};const o=r.messageMetadata?.fromPrincipalId??r.author?.principalId,i=Nu(r)&&r.author?.principalId!==null&&o===t;return{edit:i,remove:i||t===a||s,sendNow:(i||s)&&!Yi(r)}}function Tn(r,t){if(t)return r.find(a=>a.editing&&a.editingMessageId?a.editingMessageId===t:a.id===t)}function Yi(r){return Yu(r.messageMetadata)&&typeof r.messageMetadata?.monitorId=="string"}function Fo(r,t=Date.now()){const a=r.messageMetadata,s=a?.fromPrincipalId,o=a&&Object.hasOwn(a,"humanAuthor")&&!(typeof s=="string"&&s.length>0),i=r.holdKind!==void 0&&Date.parse(r.holdUntil??"")>t;return!r.editing&&!i&&!o&&!Yi(r)}const Cb="pl-3.5! pr-2!";var Ju=I('<span class="tile-remove-slot svelte-d8pwpf"><!></span>'),zo=I('<span class="attachment-status svelte-d8pwpf"> </span>'),ef=I('<div class="file-image tile svelte-d8pwpf" data-kind="file"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),tf=I("<!><span> </span>",1),rf=I('<img alt="" draggable="false"/>'),af=I('<span class="summary svelte-d8pwpf" data-clip-summary=""> </span>'),nf=I('<span class="clip svelte-d8pwpf"><span class="record-dot svelte-d8pwpf" aria-hidden="true"></span><span class="duration svelte-d8pwpf"> </span><!></span>'),sf=I('<div class="tile svelte-d8pwpf"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),of=I('<div class="attachment-row svelte-d8pwpf" role="group" data-dock-media-attachments=""></div>'),lf=I("<!> <!> <!>",1),df=I('<img draggable="false" class="svelte-d8pwpf"/>'),cf=I('<video controls="" playsinline="" class="svelte-d8pwpf"></video>',2),uf=I('<div class="media-viewer svelte-d8pwpf"><!></div>'),ff=I("<!> <!>",1);function gf(r,t){if(new.target)return pt({component:gf,...r});_t(t,!0);const a=(T,me=rr,le=rr)=>{var N=Ju(),ve=V(N);st(ve,{variant:"secondary",size:"icon-sm",class:"tile-action tile-remove",get disabled(){return i()},get"aria-label"(){return le()},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return le()},onclick:()=>z(me()),children:(Le,Ae)=>{Cs(Le,{glyph:"x"})},$$slots:{default:!0}}),F(N),c(T,N)};let s=g(t,"items",7),o=g(t,"labels",7),i=g(t,"disabled",7,!1),l=g(t,"onMarkUp",7),u=g(t,"onEdit",7),h=g(t,"onRemove",7),v=g(t,"onRetry",7),x=g(t,"onCopy",7),M=g(t,"onMenu",7);const B=T=>T.owner==="attachment"?2:{image:0,clip:1,file:2}[T.kind],U=n(()=>[...s()].sort((T,me)=>B(T)-B(me)));let w=ue(null),C=ue(!1),re=ue(null),G=null;const S=n(()=>s().find(T=>T.id===e(re)));Yt(()=>{(!e(S)||e(S).kind==="image"&&!j(e(S)))&&D(C,!1)});function j(T){return T.kind==="image"&&T.status!=="placing"&&T.status!=="failed"&&T.url.trim().length>0}function L(T){return T.kind==="image"?o().image(T.markCount):T.kind==="clip"?T.summary?`${o().clip(T.duration)} ${T.summary}`:o().clip(T.duration):T.name}function ne(T,me){if(!(i()||T.kind==="file"||T.kind==="image"&&!j(T)||T.kind==="clip"&&(!T.url||T.recording))){if((T.kind==="clip"||T.kind==="image")&&u()){u()(T.id);return}G=me,D(re,T.id,!0),D(C,!0)}}async function z(T){i()||(e(re)===T&&D(C,!1),h()(T),await Ia(),(!document.activeElement||document.activeElement===document.body)&&e(w)?.querySelector("button:not(:disabled)")?.focus())}function q(T){const me=s().find(le=>le.id===T);i()||!me||!j(me)||(D(C,!1),u()?u()(T):l()(T))}function ee(T,me){T.key!=="Delete"||i()||(T.preventDefault(),T.stopPropagation(),z(me))}function R(T){return T.status==="placing"||T.status==="failed"?!1:T.kind==="image"?!!T.file||j(T):T.kind==="clip"&&!T.recording&&!!T.url}function Y(T,me){const le=rd()?T.metaKey:T.ctrlKey,N=T.key.toLowerCase();if(le&&!T.shiftKey&&!T.altKey&&(N==="c"||N==="x")){if(!x()||!R(me)||(T.preventDefault(),T.stopPropagation(),N==="x"&&i()))return;x()(me.id,N==="x");return}ee(T,me.id)}function te(T,me){!M()||!R(me)||(T.preventDefault(),M()(me.id))}var _e={get items(){return s()},set items(T){s(T),m()},get labels(){return o()},set labels(T){o(T),m()},get disabled(){return i()},set disabled(T=!1){i(T),m()},get onMarkUp(){return l()},set onMarkUp(T){l(T),m()},get onEdit(){return u()},set onEdit(T){u(T),m()},get onRemove(){return h()},set onRemove(T){h(T),m()},get onRetry(){return v()},set onRetry(T){v(T),m()},get onCopy(){return x()},set onCopy(T){x(T),m()},get onMenu(){return M()},set onMenu(T){M(T),m()},$set:vt,$on:(T,me)=>ht(t,T,me)},de=ff(),ge=fe(de);{var Pe=T=>{var me=of();kr(me,21,()=>e(U),le=>le.id,(le,N)=>{var ve=St(),Le=fe(ve);{var Ae=xe=>{var P=ef(),X=V(P);{let W=n(()=>i()||e(N).status==="placing");wi(X,{get id(){return e(N).id},get name(){return e(N).file.name},get type(){return e(N).file.imageMimeType},get imageData(){return e(N).file.imageData},get imageMimeType(){return e(N).file.imageMimeType},variant:"thumbnail",thumbnailClass:"size-full",class:"size-full",get disabled(){return e(W)},get placementStatus(){return e(N).status},get placementError(){return e(N).error}})}var ae=A(X,2);{var we=W=>{var be=zo(),Re=oe(be,!0);$(()=>{J(be,"data-failed",e(N).status==="failed"||void 0),J(be,"role",e(N).status==="failed"?"alert":"status"),J(be,"title",e(N).error),Q(Re,e(N).status==="failed"?e(N).error??o().attachmentFailed:o().attachmentPending)}),c(W,be)};O(ae,W=>{e(N).status&&W(we)})}var _=A(ae,2),Se=V(_);{var Ce=W=>{st(W,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>v()?.(e(N).id),children:(be,Re)=>{Bt(be,{get icon(){return zs},size:16})},$$slots:{default:!0}})};O(Se,W=>{e(N).status==="failed"&&v()&&W(Ce)})}var E=A(Se,2);{let W=n(()=>d.chat_attachmentPreview_remove_ariaLabel({name:e(N).file.name}));a(E,()=>e(N).id,()=>e(W))}F(_),F(P),$(()=>J(P,"data-attachment-id",e(N).id)),xr("keydown",P,W=>Y(W,e(N))),xr("contextmenu",P,W=>te(W,e(N))),Kt(1,P,()=>On,()=>({tier:"fast",y:3,scale:.98})),Kt(2,P,()=>Xa,()=>({tier:"fast"})),c(xe,P)},Ee=xe=>{const P=n(()=>e(N).kind==="image"&&!j(e(N))&&e(N).status!=="failed");var X=sf(),ae=V(X);{var we=ke=>{st(ke,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile file",get"aria-label"(){return e(N).name},get disabled(){return i()},onkeydown:$e=>ee($e,e(N).id),children:($e,Oe)=>{var Ue=tf(),se=fe(Ue);Bt(se,{get icon(){return ka},size:20});var Ge=A(se),yt=oe(Ge,!0);$(()=>Q(yt,e(N).name)),c($e,Ue)},$$slots:{default:!0}})},_=ke=>{{let $e=n(()=>L(e(N))),Oe=n(()=>i()||e(N).kind==="clip"&&(e(N).recording||!e(N).url));st(ke,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile",get"aria-label"(){return e($e)},get disabled(){return e(Oe)},onkeydown:Ue=>Y(Ue,e(N)),onclick:Ue=>{Ue.currentTarget instanceof HTMLElement&&ne(e(N),Ue.currentTarget)},children:(Ue,se)=>{var Ge=St(),yt=fe(Ge);{var Ft=et=>{var Ke=rf();$(()=>J(Ke,"src",e(N).url)),c(et,Ke)},er=et=>{var Ke=nf(),$t=A(V(Ke)),Tt=oe($t,!0),ut=A($t);{var ze=K=>{var y=af(),pe=oe(y,!0);$(()=>Q(pe,e(N).summary)),c(K,y)};O(ut,K=>{e(N).summary&&K(ze)})}F(Ke),$(()=>Q(Tt,e(N).duration)),c(et,Ke)};O(yt,et=>{e(N).kind==="image"?et(Ft):et(er,-1)})}c(Ue,Ge)},$$slots:{default:!0}})}},Se=n(()=>e(N).kind!=="image"||j(e(N)));O(ae,ke=>{e(N).kind==="file"?ke(we):e(Se)&&ke(_,1)})}var Ce=A(ae,2);{var E=ke=>{var $e=zo(),Oe=oe($e,!0);$(()=>{J($e,"data-failed",e(N).status==="failed"||void 0),J($e,"role",e(N).status==="failed"?"alert":"status"),J($e,"title",e(N).error),Q(Oe,e(N).status==="failed"?e(N).error??o().attachmentFailed:o().attachmentPending)}),c(ke,$e)};O(Ce,ke=>{(e(N).status||e(P))&&ke(E)})}var W=A(Ce,2),be=V(W);{var Re=ke=>{st(ke,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>v()?.(e(N).id),children:($e,Oe)=>{Bt($e,{get icon(){return zs},size:16})},$$slots:{default:!0}})},Ve=ke=>{{let $e=n(()=>u()?o().edit:o().markUp),Oe=n(()=>u()?o().edit:o().markUp);st(ke,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return e($e)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(Oe)},onclick:()=>q(e(N).id),children:(Ue,se)=>{Cs(Ue,{glyph:"pencil"})},$$slots:{default:!0}})}},De=n(()=>j(e(N))),Et=ke=>{{let $e=n(()=>u()?o().edit:o().play),Oe=n(()=>u()?o().edit:o().play);st(ke,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return e($e)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(Oe)},onclick:Ue=>{Ue.currentTarget instanceof HTMLElement&&ne(e(N),Ue.currentTarget)},children:(Ue,se)=>{{let Ge=n(()=>u()?"pencil":"play");Cs(Ue,{get glyph(){return e(Ge)}})}},$$slots:{default:!0}})}};O(be,ke=>{e(N).status==="failed"&&v()?ke(Re):e(De)?ke(Ve,1):e(N).kind==="clip"&&!e(N).recording&&e(N).url&&ke(Et,2)})}var ye=A(be,2);a(ye,()=>e(N).id,()=>o().remove),F(W),F(X),$(()=>{J(X,"data-kind",e(N).kind),J(X,"data-attachment-id",e(N).id),J(X,"aria-busy",e(P)||void 0)}),xr("contextmenu",X,ke=>te(ke,e(N))),Kt(1,X,()=>On,()=>({tier:"fast",y:3,scale:.98})),Kt(2,X,()=>Xa,()=>({tier:"fast"})),c(xe,X)};O(Le,xe=>{e(N).kind==="image"&&e(N).file?xe(Ae):xe(Ee,-1)})}c(le,ve)}),F(me),ea(me,le=>D(w,le),()=>e(w)),$(()=>J(me,"aria-label",o().attachments)),c(T,me)};O(ge,T=>{e(U).length&&T(Pe)})}var Ie=A(ge,2);{const T=le=>{var N=St(),ve=fe(N);{var Le=Ae=>{var Ee=lf(),xe=fe(Ee);{var P=_=>{st(_,{variant:"primary",get disabled(){return i()},onclick:()=>e(S)&&q(e(S).id),children:(Se,Ce)=>{Cr();var E=Pr();$(()=>Q(E,o().markUp)),c(Se,E)},$$slots:{default:!0}})},X=n(()=>j(e(S)));O(xe,_=>{e(X)&&_(P)})}var ae=A(xe,2);st(ae,{variant:"secondary",get disabled(){return i()},onclick:()=>e(S)&&z(e(S).id),children:(_,Se)=>{Cr();var Ce=Pr();$(()=>Q(Ce,o().remove)),c(_,Ce)},$$slots:{default:!0}});var we=A(ae,2);st(we,{variant:"ghost-light",onclick:()=>{D(C,!1)},children:(_,Se)=>{Cr();var Ce=Pr();$(()=>Q(Ce,o().done)),c(_,Ce)},$$slots:{default:!0}}),c(Ae,Ee)};O(ve,Ae=>{e(S)&&e(S).kind!=="file"&&Ae(Le)})}c(le,N)};let me=n(()=>e(S)?L(e(S)):o().attachments);yi(Ie,{get title(){return e(me)},size:"wide",showCloseButton:!1,onCloseAutoFocus:le=>{le.preventDefault(),G?.isConnected?G.focus():e(w)?.querySelector("button:not(:disabled)")?.focus()},get open(){return e(C)},set open(le){D(C,le,!0)},footer:T,children:(le,N)=>{var ve=St(),Le=fe(ve);{var Ae=Ee=>{var xe=uf(),P=V(xe);{var X=_=>{var Se=df();$(Ce=>{J(Se,"src",e(S).url),J(Se,"alt",Ce)},[()=>L(e(S))]),c(_,Se)},ae=n(()=>e(S).kind==="image"&&j(e(S))),we=_=>{var Se=cf();$(Ce=>{J(Se,"src",e(S).url),J(Se,"aria-label",Ce)},[()=>L(e(S))]),c(_,Se)};O(P,_=>{e(ae)?_(X):e(S).kind==="clip"&&e(S).url&&_(we,1)})}F(xe),c(Ee,xe)};O(Le,Ee=>{e(S)&&e(S).kind!=="file"&&Ee(Ae)})}c(le,ve)},$$slots:{footer:!0,default:!0}})}return c(r,de),bt(_e)}Ga(["keydown","contextmenu"]);var mf=I("<!> ",1),pf=I('<div class="flex flex-col gap-2 px-4 py-3 bg-muted/30 border border-border rounded-lg my-4"><div class="flex items-center justify-between gap-2"><div class="flex items-center gap-2"><div class="shrink-0 text-subtle"><!></div> <div class="font-medium text-sm"> </div></div> <div class="flex items-center gap-1"><!> <!></div></div> <div class="text-xs text-subtle"> </div> <pre class="text-xs bg-background/50 rounded p-2 overflow-x-auto max-h-40 overflow-y-auto font-mono"> </pre></div>');function Xi(r,t){if(new.target)return pt({component:Xi,...r});_t(t,!0);let a=g(t,"name",7),s=g(t,"description",7),o=g(t,"content",7),i=g(t,"onUseScript",7),l=ue(!1);function u(){navigator.clipboard.writeText(o()),D(l,!0),setTimeout(()=>{D(l,!1)},2e3)}function h(){i()?.({name:a(),description:s(),content:o()})}var v={get name(){return a()},set name(R){a(R),m()},get description(){return s()},set description(R){s(R),m()},get content(){return o()},set content(R){o(R),m()},get onUseScript(){return i()},set onUseScript(R){i(R),m()},$set:vt,$on:(R,Y)=>ht(t,R,Y)},x=pf(),M=V(x),B=V(M),U=V(B),w=V(U);Bt(w,{get icon(){return ps},size:"sm"}),F(U);var C=A(U,2),re=oe(C,!0);F(B);var G=A(B,2),S=V(G);st(S,{variant:"ghost-light",size:"sm",onclick:u,class:"h-7 px-2",children:(R,Y)=>{var te=mf(),_e=fe(te);{let ge=n(()=>e(l)?hi:_i);Bt(_e,{get icon(){return e(ge)},class:"mr-1"})}var de=A(_e);$(ge=>Q(de,` ${ge??""}`),[()=>e(l)?d.chat_shared_copied_label():d.chat_shared_copy_label()]),c(R,te)},$$slots:{default:!0}});var j=A(S,2);{var L=R=>{st(R,{variant:"ghost-light",size:"sm",onclick:h,class:"h-7 px-2",children:(Y,te)=>{Cr();var _e=Pr();$(de=>Q(_e,de),[()=>d.chat_setupScriptCard_useScript_label()]),c(Y,_e)},$$slots:{default:!0}})};O(j,R=>{i()&&R(L)})}F(G),F(M);var ne=A(M,2),z=oe(ne,!0),q=A(ne,2),ee=oe(q,!0);return F(x),$(()=>{Q(re,a()),Q(z,s()),Q(ee,o())}),c(r,x),bt(v)}const yr={toolStart:/(?:\x1B\[\d+m)?🔧\s+(?:Tool call:\s+)?(.+?)(?:\x1B\[0m)?$/,toolDetail:/(?:[└├]─\s+(.+)$|^\s{3,}(.+)$)/,toolResult:/(?:\x1B\[\d+m)?📋\s+Tool result:\s+(.+?)(?:\x1B\[0m)?$/,toolSuccess:/[✓✔✅]\s+(.+)$/,toolError:/[❌✗❎]\s+(.+)$/,sessionInfo:/[Ss]ession:\s*([a-f0-9-]+)/,resumedSession:/📂?\s*Resumed session/i,assistantMarker:/🤖/,systemMarker:/💻/,userMarker:/👤/,thinkingMarker:/🤔\s*Thinking/i,waitingMarker:/^⏳\s+Running/i,indexingProgress:/^Indexing:\s*\[.*\]\s*\d+%/,agentDigest:/<agent_digest>([\s\S]*?)<\/agent_digest>/,setupScript:/<setup_script\s+name="([^"]+)"\s+description="([^"]+)">([\s\S]*?)<\/setup_script>/};class vf{constructor(){pa(this,"buffer","");pa(this,"currentToolName",null);pa(this,"currentToolId",null);pa(this,"lastToolId",null);pa(this,"currentToolParams",[]);pa(this,"currentToolResultContent",[]);pa(this,"inToolResult",!1);pa(this,"inCodeBlock",!1);pa(this,"codeBlockLanguage","");pa(this,"codeBlockContent","");pa(this,"characterBuffer","");pa(this,"inCharacterMode",!1);pa(this,"emittedToolIds",new Set)}parseChunk(t){if(this.isMarkerLine(t.trim())){const o=[];if(this.inToolResult&&this.currentToolResultContent.length>0){const u=this.currentToolResultContent.some(v=>v.startsWith("❌")||v.startsWith("Error:")),h=this.currentToolResultContent.map(v=>v.replace(/^❌\s*/,"").replace(/^Error:\s*/,"")).join(`
|
|
2
2
|
`);o.push({type:"tool_result",content:h,metadata:{toolId:this.currentToolId,isError:u}}),this.lastToolId=this.currentToolId,this.currentToolId=null,this.inToolResult=!1,this.currentToolResultContent=[]}const i=t.indexOf("🤖"),l=t.substring(i+2);if(this.inCharacterMode=!0,this.characterBuffer="",l&&l.trim()&&l!==`
|
|
3
3
|
`){const u=l.replace(/^\n/,"");u&&(this.characterBuffer=u)}return o}if(this.inCharacterMode){if(t.trim()===""&&this.characterBuffer==="")return[];if(t.includes(`
|
|
4
4
|
`)&&this.characterBuffer.length>0){const o=t.substring(0,t.indexOf(`
|