@intent-hq/web 2.346.1 → 2.346.3
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/{BBhsbqLJ.js → -CHLoCv2.js} +1 -1
- package/web/app/immutable/chunks/{DKnPivVx.js → -FMYDRBF.js} +1 -1
- package/web/app/immutable/chunks/{BDgfFtcK.js → 2FIlKX-3.js} +1 -1
- package/web/app/immutable/chunks/{CS0II5i-.js → 2JP5OgdF.js} +1 -1
- package/web/app/immutable/chunks/{ENl_7pWb.js → 2cCVtmIg.js} +1 -1
- package/web/app/immutable/chunks/{COhzdkuA.js → 3kodm_f4.js} +1 -1
- package/web/app/immutable/chunks/{DUyBdSjv.js → 5GYSXevc.js} +1 -1
- package/web/app/immutable/chunks/{3OP-tats.js → 6EBJYAxp.js} +1 -1
- package/web/app/immutable/chunks/{CuD9DL4y.js → 6qKuCjdA.js} +1 -1
- package/web/app/immutable/chunks/{Bw9Opv8X.js → 7uqL-6tT.js} +1 -1
- package/web/app/immutable/chunks/{DSHtWXiq.js → 8LHayabj.js} +1 -1
- package/web/app/immutable/chunks/{JbkOWTOg.js → 8ksyQzxS.js} +1 -1
- package/web/app/immutable/chunks/{BnSdmDXX.js → 905ViLyg.js} +1 -1
- package/web/app/immutable/chunks/{NqdaVAll.js → AhLUcdeh.js} +1 -1
- package/web/app/immutable/chunks/{sCaWuYEb.js → B-mfoYJY.js} +1 -1
- package/web/app/immutable/chunks/{BGqL3gJO.js → B0A8uFhj.js} +1 -1
- package/web/app/immutable/chunks/{BaDPh7vq.js → B1Bex3N_.js} +1 -1
- package/web/app/immutable/chunks/{UxXMSC13.js → B2Nx9i4m.js} +1 -1
- package/web/app/immutable/chunks/{W4Nuovgc.js → B2lO9JOz.js} +1 -1
- package/web/app/immutable/chunks/{DNQiloiF.js → B35kShEY.js} +1 -1
- package/web/app/immutable/chunks/{O3Ve923N.js → B3GLZuHB.js} +1 -1
- package/web/app/immutable/chunks/{DlrkMELS.js → B3Z7v7rH.js} +1 -1
- package/web/app/immutable/chunks/{Ck2hwsBm.js → B4-LumaR.js} +1 -1
- package/web/app/immutable/chunks/{DzEm_gMB.js → B5jn8aKG.js} +1 -1
- package/web/app/immutable/chunks/{T9_nVC7k.js → B6lORqss.js} +1 -1
- package/web/app/immutable/chunks/{HAVpWhg1.js → B7J_zYsA.js} +1 -1
- package/web/app/immutable/chunks/{CIhlsnLM.js → B7PtZbeR.js} +1 -1
- package/web/app/immutable/chunks/{CxlqEDL_.js → B7myJZdQ.js} +3 -3
- package/web/app/immutable/chunks/{Cv_fAsRR.js → BAYfmcgi.js} +1 -1
- package/web/app/immutable/chunks/{CXgI2Ln7.js → BAo6IWBv.js} +1 -1
- package/web/app/immutable/chunks/{35EIyCm3.js → BIuKjPZF.js} +1 -1
- package/web/app/immutable/chunks/{DhWGSJOr.js → BJwkYtAi.js} +1 -1
- package/web/app/immutable/chunks/{CSelYXXo.js → BL2lJmRT.js} +1 -1
- package/web/app/immutable/chunks/{BW1uSKLL.js → BLgIfeYS.js} +1 -1
- package/web/app/immutable/chunks/{V_ABjOKq.js → BMOaW1oW.js} +1 -1
- package/web/app/immutable/chunks/{CPo4UsMt.js → BN2mg-Hu.js} +1 -1
- package/web/app/immutable/chunks/{B6_GAXLX.js → BOr-kq9m.js} +1 -1
- package/web/app/immutable/chunks/{NhKlePe6.js → BPY8OTRz.js} +1 -1
- package/web/app/immutable/chunks/{Cjyjhytt.js → BPg5N0kY.js} +1 -1
- package/web/app/immutable/chunks/{yw7dEI88.js → BR8cFY4D.js} +1 -1
- package/web/app/immutable/chunks/{CNHQ2hz2.js → BS47DjuS.js} +1 -1
- package/web/app/immutable/chunks/{CTMYdigD.js → BS8Oxiwq.js} +1 -1
- package/web/app/immutable/chunks/{2_W5MGlF.js → BTrGu4V2.js} +1 -1
- package/web/app/immutable/chunks/{DZZviYVT.js → BVKuTBgW.js} +2 -2
- package/web/app/immutable/chunks/{BlznqeMI.js → BVxykti4.js} +1 -1
- package/web/app/immutable/chunks/{CZ2Oen6-.js → BWqWCv74.js} +1 -1
- package/web/app/immutable/chunks/{B2i6P1Yj.js → BXVSJTKx.js} +1 -1
- package/web/app/immutable/chunks/{CUEYQ1xR.js → BYu-G7r_.js} +1 -1
- package/web/app/immutable/chunks/{DctMspbi.js → BZQDFgmp.js} +1 -1
- package/web/app/immutable/chunks/{BppmVmxY.js → B_E_i0pj.js} +1 -1
- package/web/app/immutable/chunks/{Bs3_4AtC.js → BcTzrLaX.js} +1 -1
- package/web/app/immutable/chunks/{BmLxQNOC.js → Bf-2W8ee.js} +1 -1
- package/web/app/immutable/chunks/{T1DVgc50.js → Bfufmy9h.js} +1 -1
- package/web/app/immutable/chunks/{BkzhB_Po.js → BgO7_9-9.js} +1 -1
- package/web/app/immutable/chunks/BgsoTwBt.js +1 -0
- package/web/app/immutable/chunks/{B_ALvSh2.js → BhpN5y2w.js} +1 -1
- package/web/app/immutable/chunks/{Do1gmE20.js → BhwQ3RpS.js} +1 -1
- package/web/app/immutable/chunks/{3hAJcdO4.js → Bii5NwwM.js} +1 -1
- package/web/app/immutable/chunks/{CK5SmfAe.js → BjQLXdCG.js} +1 -1
- package/web/app/immutable/chunks/{C4LCiNWC.js → BjQQ-QAR.js} +1 -1
- package/web/app/immutable/chunks/{C3LkuwxU.js → BjyueHVe.js} +1 -1
- package/web/app/immutable/chunks/{CKfg4UqD.js → Bndg0x8W.js} +1 -1
- package/web/app/immutable/chunks/{AfO8pDU9.js → BoCkK5Wk.js} +1 -1
- package/web/app/immutable/chunks/{CP2XzLLk.js → Br0L4BrM.js} +1 -1
- package/web/app/immutable/chunks/{DL98Mvfc.js → Bs4SchIj.js} +1 -1
- package/web/app/immutable/chunks/{5ICkS6dd.js → BsCcl9ES.js} +1 -1
- package/web/app/immutable/chunks/{CjxgW2LG.js → BtFbwSdu.js} +1 -1
- package/web/app/immutable/chunks/{qvZYvB9N.js → Bv2KudWv.js} +1 -1
- package/web/app/immutable/chunks/{BvpnWd-y.js → Bwi3H4EE.js} +1 -1
- package/web/app/immutable/chunks/{BycUBg6h.js → ByhhTiqD.js} +1 -1
- package/web/app/immutable/chunks/{dT5WNNGq.js → BzUmccFe.js} +1 -1
- package/web/app/immutable/chunks/{BO3bzcut.js → C-P--5-o.js} +1 -1
- package/web/app/immutable/chunks/{BLXPhKCH.js → C1s5hjq_.js} +1 -1
- package/web/app/immutable/chunks/{BI0I5q5w.js → C2UUXRHQ.js} +3 -3
- package/web/app/immutable/chunks/{B_uWHofm.js → C2XebNhA.js} +1 -1
- package/web/app/immutable/chunks/{tn7Dp-vi.js → C2aqDEXl.js} +1 -1
- package/web/app/immutable/chunks/{UKn44y3B.js → C55nGHPT.js} +1 -1
- package/web/app/immutable/chunks/{BIB7YFjF.js → C6WcTrxv.js} +2 -2
- package/web/app/immutable/chunks/{BIWW5pDn.js → C6vwP-ay.js} +1 -1
- package/web/app/immutable/chunks/{C4t0jJ4k.js → CABbtsx1.js} +1 -1
- package/web/app/immutable/chunks/{YuOz6Rmc.js → CAZtkTon.js} +1 -1
- package/web/app/immutable/chunks/{C1s02RDB.js → CApIfgsx.js} +1 -1
- package/web/app/immutable/chunks/{D0wwPGAk.js → CB69UzLI.js} +1 -1
- package/web/app/immutable/chunks/{BMCRnGzk.js → CCk7G8nC.js} +1 -1
- package/web/app/immutable/chunks/CD1fj6ns.js +1 -0
- package/web/app/immutable/chunks/{B-hjApiN.js → CEbGQG52.js} +1 -1
- package/web/app/immutable/chunks/{B2Qef3kJ.js → CFvWMGvD.js} +2 -2
- package/web/app/immutable/chunks/{BA-Wd8x9.js → CHDzcbuO.js} +1 -1
- package/web/app/immutable/chunks/{jqkXCyuX.js → CHKJ-bXh.js} +1 -1
- package/web/app/immutable/chunks/{BFVZAW0_.js → CIKf0hiv.js} +1 -1
- package/web/app/immutable/chunks/{0h3tB2X7.js → CIpI7Qrh.js} +1 -1
- package/web/app/immutable/chunks/{BEF8aCkH.js → CK8WOQOm.js} +1 -1
- package/web/app/immutable/chunks/{SnydeSOZ.js → CMb8WXOk.js} +2 -2
- package/web/app/immutable/chunks/{RKjwEkJS.js → CO4a0yRH.js} +1 -1
- package/web/app/immutable/chunks/{Dnk26fqb.js → COZ71ZSJ.js} +3 -3
- package/web/app/immutable/chunks/{DciVixd2.js → CPB4vP4H.js} +3 -3
- package/web/app/immutable/chunks/{C1N6iAP2.js → CPKMQWOs.js} +1 -1
- package/web/app/immutable/chunks/{DghbEZ16.js → CQQbNjsN.js} +1 -1
- package/web/app/immutable/chunks/{5m7mNQI1.js → CUL4Iea5.js} +1 -1
- package/web/app/immutable/chunks/{QcdWHB0v.js → CUxXMHrG.js} +1 -1
- package/web/app/immutable/chunks/{BZklR_B6.js → CW-YFngS.js} +1 -1
- package/web/app/immutable/chunks/{BMlW8PWp.js → CXOFOhS1.js} +1 -1
- package/web/app/immutable/chunks/{uIpdZ1Gn.js → CX_kUgUI.js} +1 -1
- package/web/app/immutable/chunks/{DQ3kuV3H.js → CZmb_yca.js} +1 -1
- package/web/app/immutable/chunks/{CXZBvyNr.js → C_Lje1cd.js} +1 -1
- package/web/app/immutable/chunks/{CNwVL4wn.js → CaUG7pKp.js} +1 -1
- package/web/app/immutable/chunks/{Cd-mRODX.js → CcUMYD8T.js} +1 -1
- package/web/app/immutable/chunks/{By74nslt.js → Ce3hxymX.js} +2 -2
- package/web/app/immutable/chunks/{ChOLlFah.js → CekmJHGy.js} +3 -3
- package/web/app/immutable/chunks/{-IUVo3ff.js → Cf3lvx7n.js} +4 -4
- package/web/app/immutable/chunks/{Dx1uQEhV.js → CgthA8iG.js} +1 -1
- package/web/app/immutable/chunks/{VVSQHNmC.js → Ch-DGnj6.js} +1 -1
- package/web/app/immutable/chunks/{KErKc4MM.js → CjxlVYMT.js} +2 -2
- package/web/app/immutable/chunks/{DaOs4JNK.js → CkkCr6dG.js} +1 -1
- package/web/app/immutable/chunks/{BB4FgpiZ.js → ClH0Gega.js} +1 -1
- package/web/app/immutable/chunks/{DD34O6fm.js → CnodB1ak.js} +24 -24
- package/web/app/immutable/chunks/{j3POoRwI.js → Coi6oyYv.js} +1 -1
- package/web/app/immutable/chunks/{CxSx5kbz.js → Coq4Q49X.js} +1 -1
- package/web/app/immutable/chunks/{BfaGwOq5.js → CqZy0zQ2.js} +1 -1
- package/web/app/immutable/chunks/{CqvGUHnF.js → CqzfYhYr.js} +1 -1
- package/web/app/immutable/chunks/{D9WJ9yaW.js → CrWhihJ_.js} +1 -1
- package/web/app/immutable/chunks/{BGsa1Rn-.js → CsKccV54.js} +1 -1
- package/web/app/immutable/chunks/{BtiDRzyn.js → CwDNa5HL.js} +1 -1
- package/web/app/immutable/chunks/{DxlsP5Pu.js → CwT6KWlV.js} +4 -4
- package/web/app/immutable/chunks/{R_Ru9hwD.js → CwUHwo2Y.js} +1 -1
- package/web/app/immutable/chunks/{BzrasdW9.js → Cwvr2VA7.js} +1 -1
- package/web/app/immutable/chunks/{BHmRsJkZ.js → CxMGjr-k.js} +1 -1
- package/web/app/immutable/chunks/{BZHceihR.js → CyYhxGJX.js} +1 -1
- package/web/app/immutable/chunks/{C4s4Sq6j.js → Cyc9AKzR.js} +1 -1
- package/web/app/immutable/chunks/{E9kqzP8d.js → CzPYlOCC.js} +1 -1
- package/web/app/immutable/chunks/{DRG7DUhO.js → D-l6NLYy.js} +1 -1
- package/web/app/immutable/chunks/{uc8QMJUx.js → D1PKFqe0.js} +1 -1
- package/web/app/immutable/chunks/{CiLrRXKC.js → D1TT2-Xo.js} +1 -1
- package/web/app/immutable/chunks/{BfaHQDJW.js → D2X9xdX0.js} +1 -1
- package/web/app/immutable/chunks/{DGs9CA_z.js → D2hrkGhh.js} +1 -1
- package/web/app/immutable/chunks/{CGhe-vKv.js → D3BzyAjt.js} +1 -1
- package/web/app/immutable/chunks/{B-izwTdw.js → D3UJod5R.js} +2 -2
- package/web/app/immutable/chunks/{Mrn_4qcP.js → D4_mjoiz.js} +1 -1
- package/web/app/immutable/chunks/{Bfi661u9.js → D4gGvbme.js} +4 -4
- package/web/app/immutable/chunks/{C0deMyYN.js → D4iUNFJq.js} +1 -1
- package/web/app/immutable/chunks/{Znww69M9.js → D4wRJWJo.js} +1 -1
- package/web/app/immutable/chunks/{cX33-fuj.js → D6HxW8tD.js} +1 -1
- package/web/app/immutable/chunks/D6VwVF_C.js +1 -0
- package/web/app/immutable/chunks/{hCF4Zu9x.js → D6rAyjoF.js} +1 -1
- package/web/app/immutable/chunks/{CFpSvOJx.js → D9kdbyS6.js} +1 -1
- package/web/app/immutable/chunks/{-oWCrnEw.js → D9u2PK-L.js} +1 -1
- package/web/app/immutable/chunks/{BMxLlxet.js → DDuFS2zo.js} +1 -1
- package/web/app/immutable/chunks/{CFFiNWgw.js → DEApyfNP.js} +1 -1
- package/web/app/immutable/chunks/{4I5A3DRt.js → DEQYPNCO.js} +1 -1
- package/web/app/immutable/chunks/{BPZ_JA05.js → DHbLiTwn.js} +1 -1
- package/web/app/immutable/chunks/{DuMO6x6m.js → DI8xYaVc.js} +1 -1
- package/web/app/immutable/chunks/{_RxuD-W2.js → DKOceApm.js} +1 -1
- package/web/app/immutable/chunks/{HXO2zRQJ.js → DKRbyLvF.js} +1 -1
- package/web/app/immutable/chunks/{BZpL3F2r.js → DKs0uFks.js} +1 -1
- package/web/app/immutable/chunks/{Dzr2-f8u.js → DKzgMUBy.js} +2 -2
- package/web/app/immutable/chunks/{m296fjds.js → DLH4F1ED.js} +1 -1
- package/web/app/immutable/chunks/{Cdb_pBT1.js → DLIkH-mx.js} +1 -1
- package/web/app/immutable/chunks/{P1zH2HLT.js → DN6EDRqv.js} +1 -1
- package/web/app/immutable/chunks/{BYpXsiCq.js → DNbEh_Pn.js} +1 -1
- package/web/app/immutable/chunks/{CsvSUZwX.js → DOH10_LL.js} +2 -2
- package/web/app/immutable/chunks/{DqmvYlsZ.js → DP4V6iDW.js} +1 -1
- package/web/app/immutable/chunks/{DNMpoEvN.js → DPcH5rXQ.js} +1 -1
- package/web/app/immutable/chunks/{Cueu30DH.js → DQ01F80Q.js} +1 -1
- package/web/app/immutable/chunks/{CjS1Cmfi.js → DTT_rauc.js} +1 -1
- package/web/app/immutable/chunks/{CS4C4Dqz.js → DU9Ky5os.js} +1 -1
- package/web/app/immutable/chunks/{zEbP96sv.js → DUOZnHQ0.js} +4 -4
- package/web/app/immutable/chunks/{CzGw49VI.js → DVJxiIYn.js} +1 -1
- package/web/app/immutable/chunks/{DetpMFuT.js → DVlQV8vI.js} +1 -1
- package/web/app/immutable/chunks/{eqxSNkBq.js → DW0lWqDY.js} +1 -1
- package/web/app/immutable/chunks/{DxkncNQp.js → DYxNs3ex.js} +1 -1
- package/web/app/immutable/chunks/{k6cZvV27.js → DZHzDies.js} +1 -1
- package/web/app/immutable/chunks/{CMG5CVfP.js → DZtzqJzi.js} +1 -1
- package/web/app/immutable/chunks/{BmooL5Pj.js → Db6-PdUB.js} +1 -1
- package/web/app/immutable/chunks/{DuA0wXTo.js → DbdK0wtE.js} +1 -1
- package/web/app/immutable/chunks/{CPE7SIVP.js → Dbp_q6hu.js} +1 -1
- package/web/app/immutable/chunks/{D9TgvNHy.js → DcwiOhhA.js} +1 -1
- package/web/app/immutable/chunks/{rBb3s3xl.js → DfqK8haP.js} +1 -1
- package/web/app/immutable/chunks/{9PMcLe0B.js → DhO5FJJI.js} +1 -1
- package/web/app/immutable/chunks/{C7CRtBIe.js → DhUKwJna.js} +1 -1
- package/web/app/immutable/chunks/{D6G3HdC8.js → DhWxuzTb.js} +1 -1
- package/web/app/immutable/chunks/{Db5vVNPd.js → Dih9qRTv.js} +1 -1
- package/web/app/immutable/chunks/{CMcMoJJq.js → Dj3ZrCzO.js} +1 -1
- package/web/app/immutable/chunks/{1kPFR2jr.js → DjbBeQRM.js} +1 -1
- package/web/app/immutable/chunks/{bYaMqcEY.js → DklZSLh2.js} +1 -1
- package/web/app/immutable/chunks/{BotBkFiN.js → Dn2BQOth.js} +1 -1
- package/web/app/immutable/chunks/{SrhdBdnO.js → DoYFP432.js} +1 -1
- package/web/app/immutable/chunks/{CjsTzCaF.js → DpUWgmrg.js} +1 -1
- package/web/app/immutable/chunks/{BEA1dP-Y.js → DqcBqbDI.js} +1 -1
- package/web/app/immutable/chunks/{BG2eX09y.js → Dr9VLQ7a.js} +1 -1
- package/web/app/immutable/chunks/{C7fHSR36.js → DtL2rtM8.js} +1 -1
- package/web/app/immutable/chunks/{BnsQkZ2z.js → DvFUmkR8.js} +1 -1
- package/web/app/immutable/chunks/{CLqD3xZb.js → DvTOURZI.js} +1 -1
- package/web/app/immutable/chunks/{Bkff-hvs.js → DvyKNoGC.js} +1 -1
- package/web/app/immutable/chunks/{BqRBAXUd.js → DwrUEXuQ.js} +3 -3
- package/web/app/immutable/chunks/DzyUo7pt.js +1 -0
- package/web/app/immutable/chunks/{C4EqZepj.js → EOsEsFiT.js} +1 -1
- package/web/app/immutable/chunks/{BKJdB-rj.js → EbS0dv8R.js} +1 -1
- package/web/app/immutable/chunks/{DxdbljsN.js → GRe-AQYA.js} +1 -1
- package/web/app/immutable/chunks/{CJl18r_J.js → GXoNce_4.js} +1 -1
- package/web/app/immutable/chunks/{CyhyGZAH.js → LdVrshUq.js} +2 -2
- package/web/app/immutable/chunks/{BwPpu-bL.js → LxLcg7tj.js} +1 -1
- package/web/app/immutable/chunks/M1o9ycAe.js +4 -0
- package/web/app/immutable/chunks/{P2s61dnl.js → MA6Nl0OX.js} +1 -1
- package/web/app/immutable/chunks/{tcnXcM0S.js → MQ537-MV.js} +1 -1
- package/web/app/immutable/chunks/{DmY0GWNY.js → Mc93eSxl.js} +1 -1
- package/web/app/immutable/chunks/{DhUnCLhA.js → NDjLJa7E.js} +1 -1
- package/web/app/immutable/chunks/{BqOOOgy5.js → Q9dh-ELL.js} +1 -1
- package/web/app/immutable/chunks/{B9wI8Jqn.js → SWyKEy91.js} +1 -1
- package/web/app/immutable/chunks/{CpB9-pxF.js → TPdIgwsT.js} +2 -2
- package/web/app/immutable/chunks/{-_IhnrUG.js → U5yX75Fv.js} +1 -1
- package/web/app/immutable/chunks/{D3e1E0pH.js → VpmaCPqv.js} +3 -3
- package/web/app/immutable/chunks/{a48W8e3q.js → XuyckbH_.js} +1 -1
- package/web/app/immutable/chunks/Y9-4hTF9.js +1 -0
- package/web/app/immutable/chunks/{Dsq9SKtm.js → ZKiqJWPE.js} +1 -1
- package/web/app/immutable/chunks/{BCjermhu.js → _dg-9BeG.js} +1 -1
- package/web/app/immutable/chunks/aos1n-nT.js +4 -0
- package/web/app/immutable/chunks/{fPgojm2p.js → baJQH4o5.js} +1 -1
- package/web/app/immutable/chunks/{Bs7Hg6Iw.js → cFbB-5Cu.js} +1 -1
- package/web/app/immutable/chunks/{DTTdoBjw.js → cw0Fy9sQ.js} +1 -1
- package/web/app/immutable/chunks/{BcLSwxTf.js → ddhULx4L.js} +1 -1
- package/web/app/immutable/chunks/{C1c28WNI.js → fqYOWiI-.js} +1 -1
- package/web/app/immutable/chunks/{C-6Vv_Md.js → hUKBOWr5.js} +1 -1
- package/web/app/immutable/chunks/{8-yHkkqV.js → jSRaMDVY.js} +1 -1
- package/web/app/immutable/chunks/{BD_lDepV.js → jdYPqvvP.js} +2 -2
- package/web/app/immutable/chunks/{DN_Lq29a.js → l8NmpVqL.js} +1 -1
- package/web/app/immutable/chunks/{BjCpOU4b.js → mdG_8hzH.js} +1 -1
- package/web/app/immutable/chunks/{DR-bu7f0.js → mli93Dcp.js} +1 -1
- package/web/app/immutable/chunks/{rISNYNCE.js → n8cz4x1y.js} +1 -1
- package/web/app/immutable/chunks/{DSU9ZcQ0.js → o6NTBM2j.js} +1 -1
- package/web/app/immutable/chunks/{CNOSe0wO.js → pBUZ5yOz.js} +1 -1
- package/web/app/immutable/chunks/{C9u4tXUT.js → poVs4JlU.js} +1 -1
- package/web/app/immutable/chunks/{zqCR6Knb.js → q6hitSEG.js} +1 -1
- package/web/app/immutable/chunks/{_5Vv4dkf.js → rt8UAcU5.js} +1 -1
- package/web/app/immutable/chunks/{C4xNNtUj.js → tU_ZJtMw.js} +1 -1
- package/web/app/immutable/chunks/{DMtABnLi.js → urgjvk31.js} +1 -1
- package/web/app/immutable/chunks/{CzGRX-SL.js → wz6AT1mX.js} +1 -1
- package/web/app/immutable/entry/{app.Dg3CVjdE.js → app.BTU46CGQ.js} +3 -3
- package/web/app/immutable/entry/start.VeHGe5l7.js +1 -0
- package/web/app/immutable/nodes/{0.mr7Lr8Nh.js → 0.Ci7PVT_k.js} +1 -1
- package/web/app/immutable/nodes/{1.rfzchHhR.js → 1.BR59lUe8.js} +1 -1
- package/web/app/immutable/nodes/{10.D4xVtSvV.js → 10.DgX_PEe_.js} +1 -1
- package/web/app/immutable/nodes/{11.Bl5UwrS9.js → 11.CtUvalit.js} +1 -1
- package/web/app/immutable/nodes/{12.CUp8k2-A.js → 12.BEzNSZ5P.js} +1 -1
- package/web/app/immutable/nodes/{13.Ch9aZ9Uv.js → 13.sp2ZZVeV.js} +3 -3
- package/web/app/immutable/nodes/{14.Bjuagqn-.js → 14.C7X_5Bue.js} +3 -3
- package/web/app/immutable/nodes/{15.Cto8qDz0.js → 15.DxqMZDdK.js} +1 -1
- package/web/app/immutable/nodes/{16.SivUu1Ma.js → 16.C_vshDQR.js} +1 -1
- package/web/app/immutable/nodes/{17.Chj8J0QC.js → 17.BtrKoac8.js} +1 -1
- package/web/app/immutable/nodes/{18.D_tnQyvk.js → 18.B3AoO6j9.js} +2 -2
- package/web/app/immutable/nodes/{2.WfgNcNo2.js → 2.DlWTJs6C.js} +6 -6
- package/web/app/immutable/nodes/{3.D4wTMvE8.js → 3.DTgoPy4s.js} +1 -1
- package/web/app/immutable/nodes/{4.ZitfbCkz.js → 4.DSkknvUk.js} +1 -1
- package/web/app/immutable/nodes/{5.BFEJ_NR_.js → 5.pRTuZIBK.js} +1 -1
- package/web/app/immutable/nodes/{6.Bkj3ggYn.js → 6.IXz7usII.js} +1 -1
- package/web/app/immutable/nodes/{7.Cz8EbGz5.js → 7.-QsdIQf6.js} +1 -1
- package/web/app/immutable/nodes/{8.gF00dlat.js → 8.s2ERF-BG.js} +4 -4
- package/web/app/immutable/nodes/{9.COG4Nc0F.js → 9.CzyfEfdP.js} +5 -5
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +49 -49
- package/web/index.html +18 -18
- package/web/app/immutable/chunks/BKW86yq_.js +0 -1
- package/web/app/immutable/chunks/BZvAKLUn.js +0 -1
- package/web/app/immutable/chunks/BjFh2SH5.js +0 -1
- package/web/app/immutable/chunks/BtwtItRa.js +0 -4
- package/web/app/immutable/chunks/D1jZIoRI.js +0 -1
- package/web/app/immutable/chunks/DnBFSw4A.js +0 -4
- package/web/app/immutable/chunks/O7PQPM4V.js +0 -1
- package/web/app/immutable/entry/start.51bhhgUY.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var Ce=Object.defineProperty;var Pe=(e,t,r)=>t in e?Ce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var d=(e,t,r)=>Pe(e,typeof t!="symbol"?t+"":t,r);import{k as Ie,N as Te,T as Oe,d as Fe,l as Le,w as De}from"./Bv2KudWv.js";import"./DYhIMPy1.js";import{bo as a,_ as xe}from"./Y9-4hTF9.js";import"./cFbB-5Cu.js";import"./CrWhihJ_.js";import"./DOH10_LL.js";import{c as K}from"./ChTqQfQN.js";import"./DU9Ky5os.js";import{Iz as n,tW as Ne,nx as w,nw as v,m0 as We,vj as Be,vh as ie,h7 as Ve,h8 as Ge,c as Ue,Ic as He,a4 as qe,ye as O,yf as q,yc as je,yd as $e,bX as ze,bW as Ke,c9 as Qe,c8 as Ye,nz as R}from"./tU_ZJtMw.js";import{cG as Ze,cv as Xe,bv as Je,cj as Q,cL as et,cK as tt,cP as rt,c7 as st,cn as it,c9 as nt,cE as de,ax as at,bR as ot,cM as ct}from"./ClH0Gega.js";import{a as lt,i as dt}from"./DNWBkvFP.js";import{aK as ut,W as ue,bL as pt,m as ft,Q as gt,bY as Y,g as ht,X as mt,bZ as bt,c as St,aL as _t,bG as Z,ao as vt,a_ as At,$ as kt,aG as yt,bN as Et,_ as Mt,Y as wt,Z as Rt,bJ as Ct,x as Pt}from"./aos1n-nT.js";import{y as It}from"./5GYSXevc.js";import{y as T}from"./CEsW1euQ.js";import{i as V}from"./CpHzYkzi.js";import{n as Tt}from"./DKzgMUBy.js";const Ot=Object.freeze(Object.defineProperty({__proto__:null,NOTIFY_DURATION:Te,TOAST_COUNTDOWN_CLASS:Oe,TOAST_COUNTDOWN_NO_HOVER_PAUSE_CLASS:Fe,notify:Ie,notifyMetadata:Le,withToastCountdown:De},Symbol.toStringTag,{value:"Module"})),Os=n.createSelector(e=>Ze.select(e)?.capabilities.gitlabCheckout===!0),Fs=n.createSelector(e=>e.gitlabAuth.host),Ls=n.createSelector(e=>e.gitlabAuth.instanceBaseUrl??e.gitlabAuth.host),Ds=n.createSelector(e=>Ne(e.gitlabAuth.instanceBaseUrl??e.gitlabAuth.host)??""),xs=n.createSelector(e=>e.gitlabAuth.isCancelling),Ns=n.createSelector(e=>e.gitlabAuth.cancelOutcome),Ws=n.createSelector(e=>e.gitlabAuth.isConfigured),Bs=n.createSelector(e=>e.gitlabAuth.isAuthenticating),Vs=n.createSelector(e=>e.gitlabAuth.deviceFlow),Gs=n.createSelector(e=>e.gitlabAuth.deviceGrantSupported),Us=n.createSelector(e=>e.gitlabAuth.user),Hs=n.createSelector(e=>e.gitlabAuth.error);n.createSelector(e=>e.gitlabAuth.method);const qs=n.createSelector(e=>e.gitlabAuth.statusReady===!0),E=[{id:"pr-reviewer",icon:"pr-reviewer",get name(){return a.specialists_builtin_prReviewer_name()},get description(){return a.specialists_builtin_prReviewer_description()},defaultBehaviorPrompt:"",promptUnavailable:!0},{id:"ui-designer",icon:"ui-designer",get name(){return a.specialists_builtin_uiDesigner_name()},get description(){return a.specialists_builtin_uiDesigner_description()},defaultBehaviorPrompt:"",promptUnavailable:!0},{id:"vulnerability-scanner",icon:"pr-reviewer",get name(){return a.specialists_builtin_vulnerabilityScanner_name()},get description(){return a.specialists_builtin_vulnerabilityScanner_description()},defaultBehaviorPrompt:"",promptUnavailable:!0},{id:"developer",icon:"verifier",get name(){return a.specialists_builtin_developer_name()},get description(){return a.specialists_builtin_developer_description()},defaultBehaviorPrompt:"",promptUnavailable:!0},{id:"product-manager",icon:"coordinator",get name(){return a.specialists_builtin_productManager_name()},get description(){return a.specialists_builtin_productManager_description()},defaultBehaviorPrompt:"",promptUnavailable:!0},{id:"maintenance-coordinator",icon:"ralph",get name(){return a.specialists_builtin_maintenanceCoordinator_name()},get description(){return a.specialists_builtin_maintenanceCoordinator_description()},defaultBehaviorPrompt:"",promptUnavailable:!0},{id:"chief-of-staff",icon:"chief-of-staff",get name(){return a.specialists_builtin_chiefOfStaff_name()},get description(){return a.specialists_builtin_chiefOfStaff_description()},hidden:!0,defaultBehaviorPrompt:"",promptUnavailable:!0}],pe=new Set(["pr-reviewer"]),js="developer";function $s(e){return E.find(t=>t.id===e)}const Ft=n.createSelector(e=>e.githubAuth.mutationRequestId),Lt=n.createSelector(e=>e.githubAuth.callbacksCancelled),Dt=n.createSelector(e=>e.githubAuth.isDisconnecting),fe=n.createSelector(e=>e.githubAuth.isAuthenticated),xt=n.createSelector(e=>e.githubAuth.statusSettled===!0),Nt=n.createSelector(e=>e.githubAuth.requiresDaemonAuth),Wt=n.createSelector(e=>e.githubAuth.user),Bt=n.createSelector(e=>e.githubAuth.isAuthenticating),Vt=n.createSelector(e=>e.githubAuth.deviceFlow),Gt=n.createSelector(e=>e.githubAuth.error),zs=Object.freeze(Object.defineProperty({__proto__:null,selectGitHubAuthCallbacksCancelled:Lt,selectGitHubAuthDeviceFlow:Vt,selectGitHubAuthError:Gt,selectGitHubAuthIsAuthenticated:fe,selectGitHubAuthIsAuthenticating:Bt,selectGitHubAuthIsDisconnecting:Dt,selectGitHubAuthMutationRequestId:Ft,selectGitHubAuthRequiresDaemonAuth:Nt,selectGitHubAuthStatusSettled:xt,selectGitHubAuthUser:Wt},Symbol.toStringTag,{value:"Module"}));function f(e){return e??""}function Ut(e,t){const r=e??[],s=t??[];return r.length===s.length&&r.every((i,o)=>f(i.provider)===f(s[o].provider)&&i.model===s[o].model&&i.hint===s[o].hint&&f(i.reasoningEffort)===f(s[o].reasoningEffort))}function ne(e,t){if(e.source!=="user"||!t?.ignoreModelPin&&(e.model||e.codingAgent))return!1;const r=e.bundled;return r?f(e.name)===f(r.name)&&f(e.description)===f(r.description)&&f(e.behaviorPrompt)===f(r.behaviorPrompt)&&f(e.roleReminder)===f(r.roleReminder)&&f(e.reasoningEffort)===f(r.reasoningEffort)&&Ut(e.modelOptions,r.modelOptions):!1}const Ks=n.createSelector(e=>e.specialists.bundledSpecialists),Ht=n.createSelector(e=>e.specialists.fileSpecialists),Qs=n.createSelector(e=>w(Ht.select(e))),Ys=n.createSelector(e=>e.specialists.userOverrides);n.createSelector(e=>e.specialists.overridesLoaded);const Zs=n.createSelector(e=>e.specialists.customSpecialistsLoaded),Xs=n.createSelector(e=>e.specialists.fileSpecialistsLoaded),Js=n.createSelector(e=>e.specialists.bundledSpecialistsLoaded),ei=n.createSelector(e=>e.specialists.specialistsFolderPath),ti=n.createSelector((e,t)=>{if(!t)return e.specialists.defaultSpecialistId??"";const r=e.providerCatalog?.byWorkspaceId?.[t]?.settings.find(s=>s.path==="specialists.default")?.value;return typeof r=="string"?r:""});n.createSelector(e=>e.specialists.providerModelOverrides);const G=n.createSelector((e,t)=>!(pe.has(t)&&!fe.select(e)));function qt(e,t){return t?e:e.filter(r=>!pe.has(r.id))}function jt(e,t){return qt(e,t).filter(r=>!r.hidden)}function ri(e,t){return jt(e,t).filter(r=>r.role!=="internal")}const A=n.createSelector((e,t)=>{if(t)return(e.providerCatalog?.byWorkspaceId?.[t]?.specialists??[]).map(l=>({...l,defaultModel:l.model,defaultBehaviorPrompt:l.behaviorPrompt??l.prompt??"",defaultAgentType:l.agentType}));const r=w(e.specialists.fileSpecialists),s=e.specialists.bundledSpecialists,i=new Set,o=[];for(const l of r)!i.has(l.id)&&G.select(e,l.id)&&(i.add(l.id),o.push({id:l.id,name:l.name,description:l.description,codingAgent:l.codingAgent,defaultModel:l.model||void 0,defaultBehaviorPrompt:l.behaviorPrompt,roleReminder:l.roleReminder,source:l.source,importedFrom:l.importedFrom,unsupportedFields:l.unsupportedFields,requiredSkills:l.requiredSkills,missingSkills:l.missingSkills,hidden:l.hidden,resolvedModel:l.resolvedModel,resolvedProvider:l.resolvedProvider,modelOptions:l.modelOptions,reasoningEffort:l.reasoningEffort,role:l.role,teamAgents:l.teamAgents,icon:l.icon}));for(const l of s)!i.has(l.id)&&G.select(e,l.id)&&(i.add(l.id),o.push(l));if(!e.specialists.bundledSpecialistsLoaded&&r.length===0&&s.length===0)for(const l of E)!i.has(l.id)&&G.select(e,l.id)&&(i.add(l.id),o.push(l));const c=new Map;for(const l of E)c.has(l.id)||c.set(l.id,c.size);for(const l of s)c.has(l.id)||c.set(l.id,c.size);return o.sort((l,p)=>{const S=c.has(l.id),B=c.has(p.id);return S&&B?(c.get(l.id)??0)-(c.get(p.id)??0):S&&!B?-1:!S&&B?1:l.name.localeCompare(p.name)}),o}),si=n.createSelector(e=>{const t=A.select(e).filter(s=>s.role==="orchestrator");if(t.length===0)return null;const r=new Set([...E.map(({id:s})=>s),...e.specialists.bundledSpecialists.map(({id:s})=>s)]);return t.sort((s,i)=>+!r.has(s.id)-+!r.has(i.id)||s.id.localeCompare(i.id)),t[0]}),$t=n.createSelector((e,t)=>{const r=v(e.specialists.fileSpecialists,t);if(r)return{id:r.id,name:r.name,description:r.description,source:r.source};const s=e.specialists.bundledSpecialists.find(i=>i.id===t);if(s)return{id:s.id,name:s.name,description:s.description,source:"builtin"};if(!e.specialists.bundledSpecialistsLoaded&&w(e.specialists.fileSpecialists).length===0&&e.specialists.bundledSpecialists.length===0){const i=E.find(o=>o.id===t);if(i)return{id:i.id,name:i.name,description:i.description,source:"builtin"}}return null}),ii=n.createSelector((e,t)=>$t.select(e,t)?.name??null),ni=n.createSelector((e,t,r)=>{const i=A.select(e,r).find(o=>o.id===t);return i?i.defaultModel?i.defaultModel:i.resolvedModel??"":""}),ai=n.createSelector((e,t,r)=>A.select(e,r).find(o=>o.id===t)?.defaultModel||void 0),oi=n.createSelector((e,t,r)=>A.select(e,r).find(o=>o.id===t)?.reasoningEffort||void 0),ci=n.createSelector((e,t,r)=>{const i=A.select(e,r).find(o=>o.id===t);return i?i.defaultBehaviorPrompt:""});function F(e,t){return t.some(r=>r.id===e)||E.some(r=>r.id===e)}const li=n.createSelector((e,t,r)=>{if(r){const s=e.providerCatalog?.byWorkspaceId?.[r]?.specialists.find(i=>i.id===t);return!s||s.importedFrom?!1:s.source==="bundled"||s.source==="user"&&F(t,e.specialists.bundledSpecialists)}return F(t,e.specialists.bundledSpecialists)}),di=n.createSelector((e,t,r)=>r?!!X.select(e,t,r):!!v(e.specialists.fileSpecialists,t)),ui=n.createSelector((e,t,r)=>{if(r){const o=X.select(e,t,r);return!o||o.importedFrom||o.source==="project"?!1:F(t,e.specialists.bundledSpecialists)&&!ne(o)}if(!F(t,e.specialists.bundledSpecialists))return!1;const i=v(e.specialists.fileSpecialists,t);return!i||i.source!=="user"?!1:!ne(i)}),X=n.createSelector((e,t,r)=>{if(r){const s=e.providerCatalog?.byWorkspaceId?.[r]?.specialists.find(i=>i.id===t);return!s||s.source==="bundled"?void 0:{...s,source:s.source,model:s.model??"",behaviorPrompt:s.behaviorPrompt??s.prompt??"",filePath:s.path??""}}return v(e.specialists.fileSpecialists,t)}),pi=n.createSelector((e,t,r)=>{const s=X.select(e,t,r);return r&&!s?e.providerCatalog?.byWorkspaceId?.[r]?.specialists.some(i=>i.id===t)?"Built-in":null:s?.source==="project"?"Project":s?.source==="user"?"User":e.specialists.bundledSpecialists.some(i=>i.id===t)?"Built-in":null}),fi=n.createSelector((e,t,r)=>{if(r)return e.providerCatalog?.byWorkspaceId?.[r]?.specialists.find(o=>o.id===t)?.path;const s=v(e.specialists.fileSpecialists,t);if(s)return s.filePath;const i=e.specialists.bundledSpecialists.find(o=>o.id===t);if(i&&"filePath"in i)return i.filePath}),gi=n.createSelector((e,t,r)=>{if(r){const i=A.select(e,r).find(l=>l.id===t),o=i?.codingAgent||i?.resolvedProvider;if(o)return Xe.select(e,o,r);const c=Je.select(e,r);return e.providerCatalog?.byWorkspaceId?.[r]?.readiness[c]?.available?c:""}const s=v(e.specialists.fileSpecialists,t);return s?.codingAgent?s.codingAgent:zt.select(e,t)}),zt=n.createSelector((e,t)=>{const s=A.select(e).find(i=>i.id===t);return s?.codingAgent?s.codingAgent:ut.select(e)?ue.select(e):""}),hi=n.createSelector((e,t)=>{if(t)return e.providerCatalog?.byWorkspaceId?.[t]?.importDiagnostics??[];const r=e.specialists.importDiagnostics;return r?w(r):[]}),mi=n.createSelector((e,t)=>e.specialists.creationByContext?.[t]??We),bi=n.createSelector(e=>Object.values(e.specialists.creationByContext??{}).flatMap(t=>t.specialistId?[t.specialistId]:[])),U=K("Clipboard");async function Si(e){let t;if(lt())try{const r=await dt("system:write-clipboard",{text:e});if(r?.success===!1)throw new Error(r.error||"Electron clipboard write failed");return}catch(r){t=r,U.warn("Electron clipboard write failed; falling back to browser clipboard",{error:r})}if(typeof navigator<"u"&&navigator.clipboard?.writeText)try{await navigator.clipboard.writeText(e);return}catch(r){throw U.error("Browser clipboard write failed",r,{electronError:t}),r}throw U.error("No clipboard write API is available",void 0,{electronError:t}),t instanceof Error?t:new Error("Clipboard write API unavailable")}const Kt=["connected","disconnected","unreachable","revoked","update-required"],M=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),u=e=>typeof e=="string"&&e.length>0,C=e=>typeof e=="string"&&e.length>0?e:void 0,ge=e=>Number.isSafeInteger(e)&&e>=0?e:0;function Qt(e){if(!M(e))return;const t=Array.isArray(e.providers)?e.providers.flatMap(s=>M(s)&&u(s.id)?[{id:s.id,...s.visible===!1?{visible:!1}:{},status:typeof s.status=="string"?s.status:"unknown",models:Array.isArray(s.models)?s.models.filter(i=>u(i)):[],...s.modelsStale===!0?{modelsStale:!0}:{}}]:[]):[],r=C(e.intentdVersion);return{...r?{intentdVersion:r}:{},providers:t}}function _i(e){if(!M(e)||!u(e.id)||!u(e.name)||!u(e.fingerprint)||!Kt.includes(e.state)||!Number.isInteger(e.port)||!u(e.addedAt))return null;const t=M(e.platform)&&u(e.platform.os)&&u(e.platform.arch)?{os:e.platform.os,arch:e.platform.arch}:void 0,r=Qt(e.capabilities),s=C(e.tcAddress),i=C(e.observedAt),o=C(e.lastConnectedAt),c=Be(e.cloud),l=Number.isInteger(e.nodeProtocol)&&e.nodeProtocol>=0?e.nodeProtocol:void 0;return{id:e.id,name:e.name,...t?{platform:t}:{},hosts:Array.isArray(e.hosts)?e.hosts.filter(p=>u(p)):[],port:e.port,...s?{tcAddress:s}:{},fingerprint:e.fingerprint,state:e.state,runningAgents:ge(e.runningAgents),...r?{capabilities:r}:{},...l!==void 0?{nodeProtocol:l}:{},...i?{observedAt:i}:{},addedAt:e.addedAt,...o?{lastConnectedAt:o}:{},...c?{cloud:c}:{}}}function vi(e){if(!M(e)||!u(e.credentialId)||!u(e.backendId)||!u(e.backendName)||!u(e.createdAt))return null;const t=C(e.lastUsedAt);return{credentialId:e.credentialId,backendId:e.backendId,backendName:e.backendName,createdAt:e.createdAt,...t?{lastUsedAt:t}:{},connected:e.connected===!0,runningAgents:ge(e.runningAgents)}}function Ai(e){const t=(typeof e=="string"?e:"").trim().toUpperCase();return t===""?null:t}function Yt(e){if(!M(e)||typeof e.name!="string")return null;const t=e.name;return e.kind==="local"?{kind:"local",name:t}:e.kind==="machine"&&u(e.nodeId)?{kind:"machine",nodeId:e.nodeId,name:t}:e.kind==="cloud"&&u(e.cloudMachineId)?{kind:"cloud",cloudMachineId:e.cloudMachineId,name:t}:null}function ki(e){if(!Array.isArray(e))return null;const t=[];for(const r of e){const s=Yt(r);if(!s)return null;t.push(s)}return t}function Zt(e){return e.kind==="local"?{kind:"local"}:e.kind==="machine"?{kind:"machine",nodeId:e.nodeId}:{kind:"cloud",cloudMachineId:e.cloudMachineId}}function I(e){return e.kind==="local"?"local":e.kind==="machine"?`machine:${e.nodeId}`:`cloud:${e.cloudMachineId}`}const Xt={macos:"macOS",linux:"Linux",windows:"Windows"},Jt={aarch64:"arm64",arm64:"arm64",x86_64:"x64",x64:"x64"};function k(e,t){const r=[e&&(Xt[e]??e),t&&(Jt[t]??t)].filter(s=>!!s);return r.length?r.join(" "):null}function er(e){return e?.placement?.target==="remote"||T(e?.placement?.target)}const tr=new Set(["running","paused","resuming","pausing","stopping"]);function rr(e,t){if(e.placementError)return null;if(e.cloudStart)return"starting";if(!e.nodeId)return e.effectiveIsolation==="pending"?"starting":null;const r=t?.cloud?.state;return r&&tr.has(r)?r:e.effectiveIsolation==="pending"?"starting":null}function he(e,t){if(!e||!er(e))return null;const r=e.nodeId??e.placement?.nodeId??"",s=t&&t.id===r?t:null;if(T(e.placement?.target))return{nodeId:r,name:e.nodeName?.trim()||Ve(s?.cloud?.provider??Ge(e.placement?.cloudMachineId)),platform:k(s?.platform?.os,s?.platform?.arch),state:"ready",cloud:{state:rr(e,s)}};const i=k(e.placement?.os,e.placement?.arch)??k(s?.platform?.os,s?.platform?.arch),o=s?.state==="revoked"?"revoked":s?.state==="unreachable"||e.nodeState==="offline"?"unreachable":"ready";return{nodeId:r,name:e.nodeName?.trim()||s?.name||a.remoteAgent_location_unknownMachine(),platform:i,state:o}}function yi(e,t){if(!e)return null;const r=t&&t.id===e?t:null;return{nodeId:e,name:r?.name||a.remoteAgent_location_unknownMachine(),platform:k(r?.platform?.os,r?.platform?.arch),state:r?.state==="revoked"?"revoked":r?.state==="unreachable"?"unreachable":"ready"}}function me(e){switch(e){case"starting":return a.cloudMachines_agent_starting();case"running":return a.cloudMachines_agent_running();case"paused":return a.cloudMachines_agent_paused();case"resuming":return a.cloudMachines_agent_resuming();case"pausing":return a.cloudMachines_agent_pausing();case"stopping":return a.cloudMachines_agent_stopping();default:return null}}function Ei(e){const t=me(e.cloud?.state);return t?a.cloudMachines_agent_chip({machine:e.name,state:t}):e.name}function Mi(e){if(e.cloud){const r=me(e.cloud.state),s=a.remoteAgent_location_tooltipNoPlatform({machine:e.name});return r?a.remoteAgent_location_tooltipWithState({location:s,state:r}):s}const t=e.platform?a.remoteAgent_location_tooltip({machine:e.name,platform:e.platform}):a.remoteAgent_location_tooltipNoPlatform({machine:e.name});switch(e.state){case"unreachable":return a.remoteAgent_location_tooltipWithState({location:t,state:a.remoteMachines_state_unreachable_label()});case"revoked":return a.remoteAgent_location_tooltipWithState({location:t,state:a.remoteMachines_state_revoked_label()});default:return t}}function be(e,t){return!e||!t?null:e.placementError?"failed":t.state==="revoked"?"revoked":t.state==="unreachable"?"unreachable":e.effectiveIsolation==="pending"||e.cloudStart?"starting":e.setup?.state==="failed"?"setup-failed":null}function Se(e){if(!e.endsWith("}"))return null;for(let t=e.indexOf(" {");t>=0;t=e.indexOf(" {",t+1))try{const r=JSON.parse(e.slice(t+1));if(r&&typeof r=="object"&&typeof r.code=="string")return{message:e.slice(0,t).trim(),data:r}}catch{}return null}function sr(e,t){const r=e.detail??"",s=Se(r),i=e.code==="machine-update-required"||s?.data.code==="machine-update-required";if(i&&s?.data.reason==="prepared-checkout")return{updateRequired:i,message:a.remoteAgent_updateRequired_preparedCheckout({machine:t})};const o=ie(s?.data),c=o??(e.code?ie({code:e.code}):null);return c?{updateRequired:i,message:s?.message||r,cloud:c,cloudDetailKnown:!!o}:{updateRequired:i,message:s?.message||r}}function wi(e){if(!T(e?.placement?.target)||!e.placementError||e.status!==Ue.Error)return null;const t=sr(e.placementError,"");return t.cloud?t:null}const ir=["attachments-too-large-for-machine:","node-prompt-too-large:"],nr="remote-agent-unsupported:";function ae(e){return new Intl.NumberFormat(void 0,{maximumFractionDigits:1}).format(e/1048576)}function Ri(e){const t=Se(e)?.message??e;for(const s of ir){const i=t.indexOf(s);if(i<0)continue;const o=t.slice(i+s.length).trim().replace(/^[a-z][\w]*(?:\.[\w]+)+:\s*/i,""),c=/come to (\d+) bytes\b.*?over its (\d+)-byte limit/.exec(o);return c?a.remoteAgent_attachmentsTooLargeSized_error({size:ae(Number(c[1])),limit:ae(Number(c[2]))}):o?a.remoteAgent_attachmentsTooLarge_error({detail:o}):a.remoteAgent_attachmentsTooLargeNoDetail_error()}const r=t.indexOf(nr);return r>=0&&/attachment/i.test(t.slice(r))?a.remoteAgent_attachmentsUnsupported_error():null}function Ci(e){return T(e?.placement?.target)&&be(e,he(e))==="starting"}function Pi(e,t){if(!T(e?.placement?.target))return!1;const r=he(e,t);return r?.cloud?.state==="resuming"&&be(e,r)===null}const m="",j="cloud:";function J(e){return`${j}${e}`}function N(e){return e?.startsWith(j)&&e.slice(j.length)||null}const Ii=J("e2b");function ar(e,t){return e?.find(r=>J(r.cloudMachineId)===t&&r.unavailableReason===null)}const or=new Set(["connected","disconnected"]);function cr(e){switch(e){case"unreachable":return a.remoteMachines_state_unreachable_label();case"revoked":return a.remoteMachines_state_revoked_label();case"update-required":return a.remoteMachines_state_updateRequired_label();default:return}}function ee(e){return or.has(e.state)}function lr({backendLabel:e,backendPlatform:t,machines:r,cloud:s,orchestrator:i=!1}){const o=[i?{id:m,label:a.remoteMachines_startOn_firstAvailable_label(),platform:null,disabled:!1,hint:a.remoteMachines_startOn_firstAvailable_hint()}:{id:m,label:e,platform:k(t?.os,t?.arch),disabled:!1},...r.map(c=>{const l=k(c.platform?.os,c.platform?.arch);return ee(c)?{id:c.id,label:c.name,platform:l,disabled:!1}:{id:c.id,label:c.name,platform:l,disabled:!0,reason:cr(c.state)}})];for(const c of s??[])o.push({id:J(c.cloudMachineId),label:c.label,platform:null,kind:"cloud",disabled:c.unavailableReason!==null,...c.unavailableReason?{reason:c.unavailableReason}:c.needsProfile?{hint:a.cloudMachines_startOn_hint()}:{}});return o}function Ti(e){return e.find(t=>t.id===m)?.label??""}function Oi(e,t,r){if(e!==m)return N(e)?void 0:e;if(r)return t.find(s=>s.id!==m&&s.kind!=="cloud"&&!s.disabled)?.id}function dr({remoteMachinesVisible:e,supported:t,machines:r,cloud:s}){return e&&t&&(r.some(ee)||(s??[]).some(i=>i.unavailableReason===null))}function ur(e,t,r){if(!e)return m;if(N(e))return ar(r,e)?e:m;const s=t.find(i=>i.id===e);return s&&ee(s)?s.id:m}function Fi(e,{cloudEntries:t=!1,providerOf:r}={}){const s=N(e);return s?t&&r?.(s)==="northflank"?{target:"cloud",checkout:"isolated",cloudMachineId:s}:t?{target:"e2b",checkout:"isolated",cloudMachineId:s}:{target:"e2b",checkout:"isolated"}:e?{target:"remote",checkout:"isolated",nodeId:e}:void 0}function Li({groups:e,providerRef:t,model:r}){const s=c=>c.options.filter(l=>!l.disabled),i=e.find(c=>c.key===t),o=i?s(i):[];if(r){const c=He(r).modelId;if(o.some(l=>l.value===c))return null}else if(o.length>0)return null;if(i&&o.length>0)return{providerId:i.key,modelId:o[0].value};for(const c of e){if(c.key==="default")continue;const l=s(c);if(l.length>0)return{providerId:c.key,modelId:l[0].value}}return null}function pr(e,t,r,s){const i=e.map(I),o=i.indexOf(t),c=i.indexOf(r);if(o<0||c<0||o===c)return null;let l=c+(s==="after"?1:0);if(o<l&&(l-=1),l===o)return null;const p=[...e],[S]=p.splice(o,1);return p.splice(l,0,S),p.map(Zt)}function Di(e,t,r){const s=e.findIndex(o=>I(o)===t),i=e[s+r];return s<0||!i?null:pr(e,t,I(i),r===-1?"before":"after")}function fr(e,t){if(e===m)return"local";const r=t==="cloud"?N(e):null;return I(r?{kind:"cloud",cloudMachineId:r}:{kind:"machine",nodeId:e})}function oe(e,t){const r=new Map(t.map((i,o)=>[I(i),o])),s=i=>r.get(fr(i.id,i.kind))??t.length;return e.map((i,o)=>({option:i,index:o})).sort((i,o)=>s(i.option)-s(o.option)||i.index-o.index).map(({option:i})=>i)}const gr=n.createSelector(e=>It.select(e)||Q.select(e)),te=n.createSelector(e=>gr.select(e)&&e.remoteMachines?.supported===!0),xi=n.createSelector(e=>te.select(e)&&pt.select(e)&&!Q.select(e)),_e=n.createSelector(e=>te.select(e)&&e.remoteMachines.machineOrder===!0&&e.remoteMachines.order!==null),ce=n.createSelector(e=>_e.select(e)?e.remoteMachines.order??[]:[]),Ni=n.createSelector(e=>e.remoteMachines.orderSaving!==null),re=n.createSelector(e=>Object.values(e.remoteMachines?.machines??{}).sort((t,r)=>t.name.localeCompare(r.name))),Wi=n.createSelector(e=>e.remoteMachines.localFingerprint),Bi=n.createSelector(e=>e.remoteMachines.pending),Vi=n.createSelector(e=>e.remoteMachines.failures),Gi=n.createSelector(e=>e.remoteMachines.executorBackends??[]),hr=n.createSelector((e,t)=>{if(t===qe)return a.layout_daemonStatus_localConnection_label();const r=v(e.connections.connections,t);return r?ft(r):t}),mr=n.createSelector(e=>hr.select(e,e.connections.windowBackendId)),Ui=n.createSelector((e,t)=>(t?e.remoteMachines.machines[t]??e.cloudMachines?.machines[t]:void 0)??null),Hi=n.createSelector((e,t)=>{const r=e.providerSettings?.profiles;return gt({catalogProfiles:rt.select(e,t),defaultRemoteIncompatibility:tt.select(e,t),defaultRemoteLaunch:et.select(e,t),profileDefaults:Object.values(r?.defaults??{}),profilesLoadStatus:r?.loadStatus??"idle"})}),qi=n.createSelector(e=>Object.fromEntries(Object.values(e.providerSettings?.profiles?.defaults??{}).map(t=>[t.baseProviderId,t.env.length>0]))),ve=n.createSelector(e=>dr({remoteMachinesVisible:te.select(e),supported:e.remoteMachines?.initialAgentPlacement===!0,machines:re.select(e),cloud:Y(e)}));function br(e){const t=v(e.connections.connections,e.connections.windowBackendId);return t?.hostOs?{os:t.hostOs,arch:t.hostArch}:void 0}const Sr=n.createSelector(e=>{const t=Q.select(e),r=lr({backendLabel:mr.select(e),backendPlatform:br(e),machines:re.select(e),cloud:Y(e),orchestrator:t});if(!_e.select(e))return r;if(!t)return oe(r,ce.select(e));const[s,...i]=r;return[s,...oe(i,ce.select(e))]}),ji=n.createSelector(e=>ve.select(e)?Sr.select(e):[]),$i=n.createSelector(e=>e.remoteMachines?.initialAgentPlacement===!0),zi=n.createSelector((e,t,r)=>ve.select(e)?ur(t,re.select(e),Ae(e,r)):m);function Ae(e,t){const r=Y(e);if(!r||!t)return r;const s=e.cloudMachines?.providers??{};return r.map(i=>{if(i.unavailableReason)return i;const o=ht(e,t,s[i.cloudMachineId]??null);return o?{...i,unavailableReason:o}:i})}const Ki=n.createSelector((e,t)=>Ae(e,t)),_r=K("WorkspaceValidation");async function Qi(e,t=!1,r=!1){if(!e||e.trim().length===0)return{valid:!1,error:a.workspace_validation_repoPathRequired_error(),suggestion:a.workspace_validation_repoPathRequired_suggestion()};const s=e.trim();return vr(s)?kr(s):yr(s,t,r)}function vr(e){return[/^https?:\/\/github\.com\//i,/^git@github\.com:/i,/^github\.com\//i,/^([a-zA-Z0-9\-_]+)\/([a-zA-Z0-9\-_\.]+)$/].some(r=>r.test(e.trim()))}function Ar(e){const t=e.trim(),r=[/^https?:\/\/github\.com\/([^\/]+)\/([^\/]+)$/i,/^git@github\.com:([^\/]+)\/([^\/]+)$/i,/^github\.com\/([^\/]+)\/([^\/]+)$/i];for(const i of r){const o=t.match(i);if(o){const c=o[2].replace(/\.git$/,"");return c?{owner:o[1],repo:c}:null}}const s=t.match(/^([a-zA-Z0-9\-_]+)\/([a-zA-Z0-9\-_\.]+)$/);if(s&&!t.includes("\\")&&!t.includes(":")){const i=s[2].replace(/\.git$/,"");return i?{owner:s[1],repo:i}:null}return null}async function kr(e){return Ar(e)?{valid:!0,warning:a.workspace_validation_githubCloneLocally_warning()}:{valid:!1,error:a.workspace_validation_invalidGithubUrl_error(),suggestion:a.workspace_validation_invalidGithubUrl_suggestion()}}async function yr(e,t=!1,r=!1){if(e.includes("\0"))return{valid:!1,error:a.workspace_validation_nullCharacters_error()};if(!e.startsWith("/")&&!e.startsWith("~")&&!e.startsWith(".")&&!e.includes(":\\")&&!/^[a-zA-Z]:\//.test(e))return{valid:!1,error:a.workspace_validation_pathNotAbsolute_error(),suggestion:a.workspace_validation_pathNotAbsolute_suggestion()};if(typeof window<"u"&&window.electronAPI)try{const s=await V("file:getDirectoryStatus",{path:e});if(s.success&&s.data){const c=s.data;return c.exists?c.isDirectory?c.isGitRepo?{valid:!0,isNewRepo:!1,directoryStatus:c}:c.isSubdirectoryOfGitRepo?{valid:!0,isNewRepo:!1,directoryStatus:c,warning:a.workspace_validation_insideParentRepo_warning({path:c.parentGitRoot??""})}:r?{valid:!0,isNewRepo:!1,directoryStatus:c}:t?c.isEmpty?{valid:!0,isNewRepo:!0,directoryStatus:c,warning:a.workspace_validation_emptyDirInit_warning()}:{valid:!0,isNewRepo:!0,directoryStatus:c,warning:a.workspace_validation_nonGitDirInit_warning()}:{valid:!1,error:a.workspace_repoSelector_notGitRepository_label(),directoryStatus:c}:{valid:!1,error:a.workspace_validation_notDirectory_error(),suggestion:a.workspace_validation_notDirectory_suggestion(),directoryStatus:c}:t?{valid:!0,isNewRepo:!0,directoryStatus:c,warning:a.workspace_validation_willCreateRepo_warning()}:{valid:!1,error:a.workspace_validation_dirNotExist_error(),suggestion:a.workspace_validation_dirNotExist_suggestion(),directoryStatus:c}}if(!(await V("file:exists",{path:e})).exists)return t?{valid:!0,isNewRepo:!0,warning:a.workspace_validation_willCreateRepo_warning()}:{valid:!1,error:a.workspace_validation_dirNotExist_error(),suggestion:a.workspace_validation_dirNotExistLegacy_suggestion()};const o=await V("git:isRepository",{path:e});if(!t&&o?.isRepository!==!0)return{valid:!1,error:o?.isRepository===!1?a.workspace_repoSelector_notGitRepository_label():a.workspace_compactInitializer_gitCheckUnknown_label()};if(!o.isRepository)return{valid:!0,isNewRepo:!0,warning:a.workspace_validation_nonGitInit_warning()}}catch(s){if(_r.warn("Could not validate path existence",s),!t)return{valid:!1,error:a.workspace_compactInitializer_gitCheckUnknown_label()}}return{valid:!0,isNewRepo:!1}}function Yi(e){if(!e||e.trim().length===0)return{valid:!0};const t=e.trim();return/[\s~^:?*\[\]\\]/.test(t)?{valid:!1,error:a.workspace_validation_branchPrefixInvalidChars_error(),suggestion:a.workspace_validation_branchChars_suggestion()}:t==="."||t===".."||t.startsWith(".")?{valid:!1,error:a.workspace_validation_branchPrefixDot_error()}:t.includes("..")||t.includes("//")?{valid:!1,error:a.workspace_validation_branchPrefixConsecutive_error()}:t.startsWith("/")?{valid:!1,error:a.workspace_validation_branchPrefixSlash_error()}:t.endsWith(".lock")?{valid:!1,error:a.workspace_validation_branchPrefixLock_error()}:t.length>50?{valid:!1,error:a.workspace_validation_branchPrefixTooLong_error()}:{valid:!0}}function Zi(e){if(!e||e.trim().length===0)return"";let t=e.trim().replace(/^[./]+/,"").replace(/[\s~^:?*\[\]\\]/g,"-").replace(/\.{2,}/g,"-").replace(/\/{2,}/g,"/").replace(/-{2,}/g,"-").replace(/^-+/,"").replace(/\.lock$/,"").toLowerCase();return t.length>0&&!t.endsWith("/")&&!t.endsWith("-")&&(t=t.includes("/")?`${t}/`:`${t}/`),t}function Xi(e){if(!e||e.trim().length===0)return{valid:!1,error:a.workspace_validation_branchNameRequired_error()};const t=e.trim();return/[\s~^:?*\[\]\\]/.test(t)?{valid:!1,error:a.workspace_validation_branchNameInvalidChars_error(),suggestion:a.workspace_validation_branchChars_suggestion()}:["HEAD",".",".."].includes(t)?{valid:!1,error:a.workspace_validation_branchNameReserved_error()}:t.includes("..")||t.includes("//")?{valid:!1,error:a.workspace_validation_branchNameConsecutive_error()}:t.startsWith("/")||t.endsWith("/")?{valid:!1,error:a.workspace_validation_branchNameSlash_error()}:t.endsWith(".lock")?{valid:!1,error:a.workspace_validation_branchNameLock_error()}:{valid:!0}}function Ji(e){return!e||e.trim().length===0?{valid:!0}:e.trim().length>1e5?{valid:!1,error:a.workspace_validation_promptTooLong_error(),suggestion:a.workspace_validation_promptTooLong_suggestion()}:{valid:!0}}function en(e){const t=e.toLowerCase();return t.includes("maxbuffer")?a.workspace_gitError_maxBuffer():t.includes("clone")&&t.includes("timed out")?a.workspace_gitError_cloneTimeout():t.includes("json-rpc request timed out: workspace.create")?a.workspace_gitError_createTimeout():t.includes("timed out")&&["git","clone","fetch","worktree","pull","push","rebase","merge"].some(r=>t.includes(r))?a.workspace_gitError_gitTimeout():t.includes("git clone failed")?t.includes("could not read from remote")?a.workspace_gitError_cloneRemote():t.includes("authentication")||t.includes("permission denied")||t.includes("access denied")?a.workspace_gitError_cloneAuth():a.workspace_gitError_cloneFailed():t.includes("could not resolve any ref to create worktree")?a.workspace_gitError_worktreeRef():t.includes("failed to write file")?t.includes("eacces")||t.includes("permission denied")?a.workspace_gitError_writePermission():t.includes("enospc")||t.includes("disk space")?a.workspace_gitError_diskSpaceFree():t.includes("enoent")||t.includes("no such file")?a.workspace_gitError_writeNoEnt():e:t.includes("failed to read file")?t.includes("enoent")||t.includes("no such file")?a.workspace_gitError_readNotFound():t.includes("eacces")||t.includes("permission denied")?a.workspace_gitError_readPermission():e:t.includes("permission denied")?a.workspace_gitError_permissionDenied():t.includes("not found")||t.includes("enoent")?a.workspace_gitError_notFound():t.includes("already exists")?a.workspace_gitError_alreadyExists():t.includes("network")||t.includes("etimedout")?a.workspace_gitError_network():t.includes("authentication")||t.includes("401")?t.includes("private repositor")?e:a.workspace_gitError_authFailed():t.includes("rate limit")||t.includes("403")?a.workspace_gitError_rateLimit():t.includes("disk space")||t.includes("enospc")?a.workspace_gitError_diskSpace():e}const Er=["idle","exited"];function Mr(e){return e===void 0||!Er.includes(e)}function tn(e){return e.status==="restarting"?"restarting":Mr(e.status)?"running":e.status==="idle"?"idle":e.exitCode===0?"succeeded":e.exitCode===null||e.exitCode===void 0?"exited":e.exitCode>=128?"stopped":"failed"}function wr(e){return e.engine==="os"?"os":e.isLoading||e.keyConfigured[e.provider]===!0?"daemon":e.osEngineAvailable?"os":"unavailable"}const rn=n.createSelector(e=>e.voiceSettings.isLoading),sn=n.createSelector(e=>e.voiceSettings.available),nn=n.createSelector(e=>e.voiceSettings.provider),an=n.createSelector(e=>e.voiceSettings.engine),on=n.createSelector(e=>e.voiceSettings.osEngineAvailable),cn=n.createSelector(e=>e.voiceSettings.keyConfigured),ln=n.createSelector(e=>e.voiceSettings.vocabulary),dn=n.createSelector(e=>e.voiceSettings.openaiModel),un=n.createSelector(e=>e.voiceSettings.language),pn=n.createSelector(e=>e.voiceSettings.workspaceVocabularyMaxTerms),fn=n.createSelector(e=>e.voiceSettings.inputDeviceId),gn=n.createSelector(e=>e.voiceSettings.inputDevices),hn=n.createSelector(e=>e.voiceSettings.busyProvider),mn=n.createSelector(e=>e.voiceSettings.error),bn=n.createSelector(e=>st.select(e)?"unavailable":wr(e.voiceSettings)),$="intent.voice.inputDevice";let z;function Rr(){if(z!==void 0)return z;try{const e=localStorage.getItem($);return typeof e=="string"&&e!==""?e:null}catch{return null}}function Sn(e){z=e;try{e===null?localStorage.removeItem($):localStorage.setItem($,e)}catch{}}let L=null;function _n(e){L=e}function vn(){const e=L;return L=null,e}function Cr(){L=null}const Pr=300,Ir=300;class Tr{constructor(t){d(this,"holdThresholdMs");d(this,"doublePressWindowMs");d(this,"onRecordStart");d(this,"onRecordStop");d(this,"currentState","idle");d(this,"timer",null);this.holdThresholdMs=t.holdThresholdMs??Pr,this.doublePressWindowMs=t.doublePressWindowMs??Ir,this.onRecordStart=t.onRecordStart,this.onRecordStop=t.onRecordStop}get state(){return this.currentState}keyDown(){switch(this.currentState){case"idle":this.currentState="first-press",this.armTimer(this.holdThresholdMs,()=>{this.currentState="holding"}),this.onRecordStart();break;case"await-second-press":this.clearTimer(),this.currentState="second-press",this.armTimer(this.holdThresholdMs,()=>{this.currentState="holding-send"});break;case"latched":this.currentState="latched-press";break;case"latched-await-second":this.clearTimer(),this.currentState="draining",this.onRecordStop({stopReason:"double-press",autoSend:!0});break}}keyUp(){switch(this.currentState){case"first-press":this.clearTimer(),this.currentState="await-second-press",this.armTimer(this.doublePressWindowMs,()=>{this.currentState="latched"});break;case"holding":this.currentState="idle",this.onRecordStop({stopReason:"hold-release",autoSend:!1});break;case"second-press":this.clearTimer(),this.currentState="idle",this.onRecordStop({stopReason:"double-press",autoSend:!0});break;case"holding-send":this.currentState="idle",this.onRecordStop({stopReason:"double-hold-release",autoSend:!0});break;case"latched-press":this.currentState="latched-await-second",this.armTimer(this.doublePressWindowMs,()=>{this.currentState="idle",this.onRecordStop({stopReason:"latch-stop",autoSend:!1})});break;case"draining":this.currentState="idle";break}}reset(){this.clearTimer(),this.currentState="idle"}armTimer(t,r){this.clearTimer(),this.timer=setTimeout(()=>{this.timer=null,r()},t)}clearTimer(){this.timer!==null&&clearTimeout(this.timer),this.timer=null}}let D=null;function An(e){D=e}function kn(){const e=D;return D=null,e}function Or(){D=null}const Fr=12e4,Lr=["audio/webm;codecs=opus","audio/webm"];function yn(){return typeof navigator<"u"&&typeof navigator.mediaDevices?.getUserMedia=="function"&&typeof MediaRecorder<"u"}function Dr(e){return e?{audio:{deviceId:{ideal:e}}}:{audio:!0}}function xr(){if(!(typeof MediaRecorder>"u"||typeof MediaRecorder.isTypeSupported!="function"))return Lr.find(e=>MediaRecorder.isTypeSupported(e))}class Nr{constructor(t){d(this,"maxDurationMs");d(this,"now");d(this,"callbacks");d(this,"deviceId");d(this,"currentState","idle");d(this,"recorder",null);d(this,"stream",null);d(this,"chunks",[]);d(this,"startedAt",0);d(this,"maxTimer",null);d(this,"discardRequested",!1);d(this,"cancelRequested",!1);this.maxDurationMs=t.maxDurationMs??Fr,this.now=t.now??Date.now,this.callbacks={onFinished:t.onFinished,onError:t.onError},this.deviceId=t.deviceId??null}get state(){return this.currentState}async start(){if(this.currentState!=="idle")return"discarded";this.currentState="starting";let t;try{t=await navigator.mediaDevices.getUserMedia(Dr(this.deviceId))}catch(i){const o=this.discardRequested;return this.currentState="stopped",o||this.callbacks.onError(i),o?"discarded":"error"}if(this.discardRequested){for(const i of t.getTracks())i.stop();return this.currentState="stopped","discarded"}this.stream=t;const r=xr(),s=r?new MediaRecorder(t,{mimeType:r}):new MediaRecorder(t);return this.recorder=s,s.ondataavailable=i=>{i.data&&i.data.size>0&&this.chunks.push(i.data)},s.onstop=()=>this.handleRecorderStop(),s.onerror=i=>this.handleRecorderError(i),s.start(),this.startedAt=this.now(),this.currentState="recording",this.maxTimer=setTimeout(()=>this.stop(),this.maxDurationMs),"recording"}stop(){if(this.currentState==="starting"){this.discardRequested=!0;return}this.currentState==="recording"&&this.recorder?.stop()}cancel(){if(this.currentState==="starting"){this.discardRequested=!0;return}this.currentState==="recording"&&(this.cancelRequested=!0,this.recorder?.stop())}handleRecorderStop(){const t=this.now()-this.startedAt,r=this.recorder?.mimeType||"audio/webm",s=this.chunks,i=this.cancelRequested;this.teardown(),!i&&this.callbacks.onFinished({blob:new Blob(s,{type:r}),durationMs:t,mimeType:r})}handleRecorderError(t){const r=t?.error??t;this.teardown(),this.callbacks.onError(r)}teardown(){this.maxTimer!==null&&clearTimeout(this.maxTimer),this.maxTimer=null,this.recorder&&(this.recorder.ondataavailable=null,this.recorder.onstop=null,this.recorder.onerror=null),this.recorder=null;for(const t of this.stream?.getTracks()??[])t.stop();this.stream=null,this.chunks=[],this.currentState="stopped"}}const Wr=300;function Br(e){const t=e?.name;return t==="NotAllowedError"||t==="SecurityError"}const Vr={stopReason:"manual",autoSend:!1};let h=null,_=null,y=0,P=null;const W=new Tr({onRecordStart:()=>{P&&Gr(P)},onRecordStop:e=>{ke(P,e)}});function En(){return h!==null}function Mn(){return h}function wn(e){P=e,y+=1,y===1&&W.keyDown()}function Rn(e){P=e,y!==0&&(y-=1,y===0&&W.keyUp())}function Gr(e){if(h!==null)return;Or(),Cr();const t=new Nr({deviceId:Rr(),onFinished:r=>{h===t&&(h=null);const s=_??{stopReason:"auto-stop",autoSend:!1},i=_!==null;if(_=null,e.dispatch(O()),i||W.reset(),r.durationMs<Wr){s.autoSend&&e.dispatch(q());return}e.dispatch(je({...r,stopReason:s.stopReason,autoSend:s.autoSend}))},onError:r=>{h===t&&(h=null),_=null,e.dispatch(O()),e.showHint(Br(r)?a.hardwareConsole_ptt_micDenied_message():a.hardwareConsole_ptt_recordingFailed_message())}});h=t,e.dispatch($e()),t.start().then(r=>{if(r!=="recording"&&(h===t&&(h=null),r==="discarded")){const s=_?.autoSend===!0;_=null,e.dispatch(O()),s&&e.dispatch(q())}})}function ke(e,t){const r=h;if(r===null){t.autoSend&&e?.dispatch(q());return}_=t,r.stop()}function Cn(){ke(null,Vr)}function Pn(e){W.reset(),y=0,_=null;const t=h;t!==null&&(h=null,t.cancel(),e.dispatch(O()))}const Ur=K("HardwareConsoleVoiceSetupToast"),Hr="hardware-console-voice-setup";let H=null;function qr(){return H||(H=xe(()=>Promise.resolve().then(()=>Ot),void 0,import.meta.url).then(e=>e.notify)),H}function jr(){Tt("/settings?tab=connections#voice").catch(e=>{Ur.error("Failed to open voice settings from setup toast",e)})}function $r(){return{label:a.hardwareConsole_voice_openSettings_label(),onClick:()=>jr()}}function In(){qr().then(e=>{e.error(a.hardwareConsole_voice_noKey_error(),{id:Hr,action:$r()})})}const Tn=n.createSelector(e=>e.externalEditors.selectedAction),zr=n.createSelector(e=>e.externalEditors.editors),Kr=n.createSelector(e=>{const t=w(zr.select(e)),r=e.externalEditors.editorOrder??[];if(!r.length)return t;const s=new Map(t.map(c=>[c.id,c])),i=r.flatMap(c=>{const l=s.get(c);return l?[l]:[]}),o=new Set(r);return[...i,...t.filter(({id:c})=>!o.has(c))]}),On=n.createSelector(e=>e.externalEditors.editorOrder??[]),Fn=n.createSelector(e=>e.externalEditors.loading),Ln=n.createSelector(e=>e.externalEditors.lastFetched),Qr=n.createSelector(e=>e.externalEditors.hiddenEditorIds),Dn=n.createSelector((e,t)=>{if(!(t?it.select(e,t):nt.select(e)))return[];const s=Qr.select(e);return Kr.select(e).filter(i=>i.installed&&!s.includes(i.id))});function xn(e,t){if(!e||!t||t===e.providerId)return!1;const r=e.providerSettings[t];return!!(r&&[r.defaultModel,...Object.values(r.typeOverrides??{})].some(s=>typeof s=="string"&&s.includes(":")))}let Yr=0;function Zr(e,t){const r=++Yr;return n.dispatch(Ke(e,t,r)),r}function Nn(e,t,r){n.dispatch(ze(e,t,r))}async function ye(e,t,r,s){const i=crypto.randomUUID(),o=s?.source??"control";try{return(await n.dispatch(Qe({requestId:i,consumerId:o,agentId:e,workspaceId:t,operation:r,connection:de.select(n.state)},{...s,intent:s?.intent??Zr(e,t)}))).status==="success"}finally{n.dispatch(Ye(i,o))}}async function Wn(e,t,r,s,i){return ye(e,t,{kind:"effort",effort:r,previous:s},i)}async function Bn(e,t,r,s,i){return ye(e,t,{kind:"reconcile",current:r??null,levels:s},i)}const Xr=n.createSelector((e,t)=>w(e.agentModel.mutations).filter(r=>r.consumerId===t)),Vn=n.createSelector((e,t)=>Xr.select(e,t).some(r=>r.status==="pending")),Gn=n.createSelector((e,t,r)=>{const s=e.agentSessions.byAgentId[t],i=at.select(e,t),o=mt.select(e,t),c=e.daemonHealth.stats?.protocolVersion,l=bt(c),p=l?St(s?.model,null,o):s?.model;return{session:s,providerId:i,levels:o,legacy:l,identity:JSON.stringify([p,i]),connection:de.select(e),canWrite:!!s&&s.workspaceId===r&&!ot.select(e,r)}});function Jr(e,t,r=!1){return e!=="auggie"||t===!0||r}const Un=n.createSelector(e=>_t.select(e)?null:Z.select(e)),es=n.createSelector(e=>e.providerCatalog?.workspaceEpoch??0),b=n.createSelector((e,t)=>t?e.providerCatalog?.byWorkspaceId?.[t]:void 0),Hn=n.createSelector(e=>Object.keys(e.providerCatalog?.byWorkspaceId??{})),qn=n.createSelector((e,t)=>!!b.select(e,t)&&e.providerCatalog.workspaceSnapshotEpochs?.[t]===es.select(e)),Ee=n.createSelector((e,t)=>t?b.select(e,t)?.catalog.providers??[]:ct.select(e)),Me=n.createSelector((e,t)=>{if(!t)return ue.select(e);const r=b.select(e,t)?.settings.find(s=>s.path==="model.defaultProvider")?.value;return typeof r=="string"?r:""}),se=n.createSelector((e,t)=>{if(!t)return vt.select(e);const r=b.select(e,t)?.settings.find(s=>s.path==="providers.enabled")?.value;return r&&typeof r=="object"?r:{}}),we=n.createSelector((e,t)=>{if(!t)return At.select(e);const r=se.select(e,t),s=Me.select(e,t),i=b.select(e,t)?.readiness??{};return Ee.select(e,t).filter(o=>o.visible&&(!o.canBeDisabled||r[o.id]||o.id===s)&&i[o.id]?.available).map(o=>o.id)}),jn=n.createSelector((e,t)=>{const r=se.select(e,t),s=t?b.select(e,t)?.readiness??{}:Z.select(e);return Ee.select(e,t).filter(i=>Jr(i.id,s[i.id]?.available,r[i.id]===!0)).map(i=>i.id)}),$n=n.createSelector((e,t)=>t?we.select(e,t):kt.select(e)),zn=n.createSelector((e,t)=>A.select(e,t)),Kn=n.createSelector((e,t)=>t?!!b.select(e,t):yt.select(e)),Qn=n.createSelector((e,t)=>{if(!t)return Et.select(e);const r=b.select(e,t)?.settings??[],s=Me.select(e,t),i=r.find(l=>l.path==="model.providerDefaults")?.value,o=i&&typeof i=="object"?i[s]:void 0;if(typeof o=="string")return o;const c=r.find(l=>l.path==="model.default")?.value;return typeof c=="string"?c:""}),Yn=n.createSelector((e,t)=>t?Object.fromEntries(Object.entries(e.providerModels?.byWorkspaceId?.[t]??{}).flatMap(([r,s])=>s.warning?[[r,s.warning]]:[])):Mt.select(e)),Zn=n.createSelector((e,t)=>t?Object.fromEntries(Object.entries(e.providerModels?.byWorkspaceId?.[t]??{}).map(([r,s])=>[r,s.stale===!0])):wt.select(e)),Xn=n.createSelector((e,t)=>t?Object.fromEntries(Object.entries(e.providerModels?.byWorkspaceId?.[t]??{}).flatMap(([r,s])=>s.warning&&s.warningKind?[[r,s.warningKind]]:[])):Rt.select(e)),Jn=n.createSelector((e,t,r)=>{if(!r)return Ct.select(e,t);const s=se.select(e,r),i=b.select(e,r);return we.select(e,r).filter(o=>o!==t&&(s[o]||i?.catalog.providers.find(c=>c.id===o)?.canBeDisabled===!1)&&Pt(o,i?.readiness[o]?.authenticated))}),ea=n.createSelector((e,t)=>t?b.select(e,t)?.readiness??{}:Z.select(e)),ts={},ta=n.createSelector(e=>e.providerSettings?.profiles?.status??ts),ra=n.createSelector(e=>e.directoryPicker.listing),sa=n.createSelector(e=>e.directoryPicker.loading),ia=n.createSelector(e=>e.directoryPicker.error),na=n.createSelector(e=>e.directoryPicker.pathError),aa=n.createSelector(e=>e.directoryPicker.createError),le={},rs=n.createSelector((e,t)=>t?e.providerCatalog?.byWorkspaceId?.[t]?.mcpServers??[]:e.mcpSettings.servers),oa=n.createSelector((e,t,r)=>{const s=e.providerCatalog?.byWorkspaceId?.[t];return s?s.mcpServers?.find(i=>i.id===r)?.name:e.providerCatalog?.mcpServerNamesByWorkspaceId?.[t]?.[r]}),ca=n.createSelector(e=>e.mcpSettings.loading),la=n.createSelector(e=>e.mcpSettings.error),da=n.createSelector(e=>e.mcpSettings.mutationError??null),ua=n.createSelector(e=>e.mcpSettings.enabled),ss=n.createSelector(e=>e.mcpSettings.disabledServers),is=n.createSelector(e=>e.mcpSettings.statusMap),ns=n.createSelector(e=>e.mcpSettings.toolsMap),as=n.createSelector((e,t)=>{if(!t)return e.mcpSettings.errorMessages;const r=e.providerCatalog?.byWorkspaceId?.[t],s=new Map(r?.mcpServers?.map(i=>[i.id,R(i)])??[]);return Object.fromEntries((r?.mcpStatuses??[]).flatMap(i=>{const o=s.get(i.serverId);return o&&i.lastError?[[o,i.lastError]]:[]}))}),os=n.createSelector((e,t)=>t?e.mcpSettings.byWorkspaceId[t]?.disabledServers??le:le),pa=n.createSelector((e,t)=>Object.keys(os.select(e,t))),fa=n.createSelector(e=>{const t=rs.select(e),r=is.select(e),s=ns.select(e),i=ss.select(e),o=as.select(e);return t.map(c=>{const l=R(c)in i,p=s[R(c)]||[];let S=r[R(c)]||"disconnected";return l&&(S="disabled"),{...c,disabled:l,status:S,tools:p,toolCount:p.length,errorMessage:o[R(c)]}})});n.createSelector((e,t)=>e.mcpSettings.errorMessages[t]);const ga=n.createSelector(e=>e.mcpSettings.lastImportedCount),ha=n.createSelector(e=>e.mcpSettings.advancedSaveStatus),ma=n.createSelector(e=>e.mcpSettings.advancedSaveError);function g(e){return{category:"settings",...e}}const x=[{id:"new-workspace",tab:"",label:"New workspace",route:"/workspace/new",category:"navigation",description:"Create-workspace flow."},g({id:"utility-default-model",tab:"providers",hashAliases:["utility-default-model","default-model","quickActions.defaultModel","backgroundAgents.defaultModel"],scrollSelector:"#utility-default-model",highlightSelector:'[data-highlight-id="utility-default-model"]',label:"Settings: Default model",route:"/settings?tab=providers#utility-default-model",description:"Default AI behavior model selection."}),g({id:"global-instructions",tab:"agent-behavior",hashAliases:["global-instructions","agents","specialists","all-agents"],scrollSelector:"#global-instructions",highlightSelector:'[data-highlight-id="global-instructions"]',label:"Settings: Agent Behavior",route:"/settings?tab=agent-behavior#global-instructions",description:"Global agent instructions and defaults."}),g({id:"create-specialist",tab:"specialists",hashAliases:["create-specialist"],scrollSelector:"#create-specialist",highlightSelector:'[data-highlight-id="create-specialist"]',label:"Settings: Create specialist",route:"/settings?tab=specialists&view=create-specialist#create-specialist",description:"Create-specialist entry point."}),g({id:"providers",tab:"providers",hashAliases:["providers"],scrollSelector:"#providers",highlightSelector:'[data-highlight-id="providers"]',label:"Settings: AI coding CLIs",route:"/settings?tab=providers#providers",description:"Provider/account selector settings."}),g({id:"integrations",tab:"connections",hashAliases:["integrations"],scrollSelector:"#integrations",highlightSelector:'[data-highlight-id="integrations"]',label:"Settings: Connections",route:"/settings?tab=connections#integrations",description:"Connected integrations settings."}),g({id:"devices",tab:"devices",hashAliases:["devices","machines"],scrollSelector:"#devices",highlightSelector:"#devices",label:"Settings: Machines",route:"/settings?tab=devices#devices",description:"Saved remote machine settings."}),g({id:"mobile",tab:"mobile",hashAliases:["mobile"],scrollSelector:"#mobile",highlightSelector:'[data-highlight-id="mobile"]',label:"Settings: Mobile",route:"/settings?tab=mobile#mobile",description:"Remote access and Intent Mobile pairing."}),g({id:"guest-sessions",tab:"collaboration",hashAliases:["collaboration","guest-sessions","sharing"],scrollSelector:"#collaboration",highlightSelector:"#collaboration",label:"Settings: Collaboration",route:"/settings?tab=collaboration#collaboration",description:"Host membership, workspace guests and joined hosts."}),g({id:"websocket-api",tab:"mobile",hashAliases:["websocket-api","remote-access"],scrollSelector:"#websocket-api",highlightSelector:'[data-highlight-id="websocket-api"]',label:"Settings: Remote Access",route:"/settings?tab=mobile#websocket-api",description:"Remote access (WebSocket API) settings."}),...[["voice","Voice Dictation","Voice dictation settings.","input"],["keyboard-shortcuts","Keyboard Shortcuts","Keyboard shortcuts reference.","input"],["mcp-servers","MCP Servers","MCP server configuration.","connections"],["plugins","Plugins","App-wide Agent Plugins.","connections"],["git-workspace","Git & Workspace","Git and workspace defaults.","setup"],["git","Git","Git defaults.","setup"],["shell","Shell","Shell and CLI optimization settings.","setup"],["workspace","Workspace","Workspace defaults.","setup"],["cli-optimization","CLI Optimization","RTK/CLI optimization settings.","setup"],["workspace-api","Tool Output & Retention","Tool output size and retention settings.","advanced"],["notifications","Notifications","Notification preferences.","app-behavior"],["updates","Updates","Application update preferences.","app-behavior"],["open-in","Open In","External editor/app launch preferences.","app-behavior"],["github-link-action","GitHub Links","GitHub issue and pull request link behavior.","app-behavior"],["agent-features","Agent Features","Agent feature settings.","agent-behavior"],["font-style","Font style","Font style settings.","display"],["language","Language","Application language settings.","display"],["labs","Labs","Experimental feature switches.","advanced"],["agent-backend","Agent Backend","Agent backend settings.","advanced"],["connection","Connection","Daemon connection details.","advanced"],["hardware","Hardware","Hardware integration settings.","advanced"],["developer","Developer","Development-only settings.","advanced"]].map(([e,t,r,s])=>g({id:e,tab:s,hashAliases:[e],scrollSelector:`#${e}`,highlightSelector:`[data-highlight-id="${e}"]`,label:`Settings: ${t}`,route:`/settings?tab=${s}#${e}`,description:r})),g({id:"appearance",tab:"display",hashAliases:["appearance","theme"],scrollSelector:"#theme",highlightSelector:'[data-highlight-id="appearance"]',label:"Settings: Appearance",route:"/settings?tab=display#theme",description:"Theme mode controls."}),...[["color-theme","Color theme","Color theme selection."],["note-font","Notes font","Notes/spec font style."],["agent-chat-font","Agent chat font","Agent chat font style."],["code-font","Code font","Code editor and diff font."]].map(([e,t,r])=>g({id:e,tab:"display",hashAliases:[e],scrollSelector:`#${e}`,highlightSelector:`[data-highlight-id="${e}"]`,label:`Settings: ${t}`,route:`/settings?tab=display#${e}`,description:r})),g({id:"general",tab:"advanced",hashAliases:["general","reset"],scrollSelector:"#reset",highlightSelector:'[data-highlight-id="general"]',label:"Settings: Advanced",route:"/settings?tab=advanced#reset",description:"Advanced settings and reset controls."}),{id:"workspace-card",tab:"",hashAliases:["workspace-card"],highlightSelector:'[data-highlight-id^="workspace-"]',label:"Workspace card",category:"workspace",description:"A workspace card on workspace list surfaces.",dynamic:!0,idPattern:"workspace-{workspaceId}"},{id:"specialist-entry",tab:"specialists",highlightSelector:'[data-highlight-id^="specialist-"]',label:"Specialist entry",route:"/settings?tab=specialists&specialist={specialistId}#specialist-{specialistId}",category:"specialist",description:"A specific specialist row in settings.",dynamic:!0,idPattern:"specialist-{specialistId}"}];function Re(e){const t=e.indexOf("#"),r=t>=0?e.slice(t+1):e;return decodeURIComponent(r.replace(/^#/,"")).trim()}function cs(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ls(e,t){if(!t.match(/\{[^}]+\}/g)?.length)return e===t;const s=t.split(/\{[^}]+\}/g).map(cs).join("[^/]+");return new RegExp(`^${s}$`).test(e)}function ds(e){const t=Re(e);if(!t)return;const r=x.find(i=>i.id===t||i.hashAliases?.includes(t));if(r)return r;const s=x.find(i=>i.route&&i.dynamic&&i.idPattern&&ls(t,i.idPattern));return s?{...s,id:t}:void 0}function ba(){return x.map(e=>({...e,hashAliases:e.hashAliases?[...e.hashAliases]:void 0}))}function us(e){try{return new URL(e,"app://intent").pathname||"/"}catch{const t=e.indexOf("?"),r=e.indexOf("#");let s=e.length;return t>=0&&(s=Math.min(s,t)),r>=0&&(s=Math.min(s,r)),e.slice(0,s)||"/"}}const ps=new Set(x.flatMap(e=>e.route?[us(e.route)]:[])),fs=[/^\/workspace\/[^/]+$/,/^\/agent\/[^/]+$/];function Sa(e){if(typeof e!="string")return!1;const t=e.trim();if(!t)return!1;if(t.startsWith("intent://"))return!0;let r,s;try{const i=new URL(t,"app://intent");if(i.protocol!=="app:")return!1;r=i.pathname||"/",s=Re(i.hash)}catch{return!1}return ps.has(r)?s?!!ds(s):!0:fs.some(i=>i.test(r))}const _a=["agentFeatures.backgroundHooks","agentFeatures.hostExec","agentFeatures.scripts","agentFeatures.terminalAccess","agentFeatures.browserAutomation","agentFeatures.desktopControl","agentFeatures.richChatBlocks","agentFeatures.structuredQuestions","agentFeatures.secretRequests","agentFeatures.attentionRequests","agentFeatures.stateSnapshot","agentFeatures.prMonitor","agentFeatures.taskGraph","agentFeatures.peerAgents","agentFeatures.mcpTools"],gs=[{path:"agentFeatures.backgroundHooks",label:()=>a.settings_agentFeatures_backgroundHooks_label(),description:()=>a.settings_agentFeatures_backgroundHooks_description(),defaultValue:!0},{path:"agentFeatures.hostExec",label:()=>a.settings_agentFeatures_hostExec_label(),description:()=>a.settings_agentFeatures_hostExec_description(),defaultValue:!0},{path:"agentFeatures.scripts",label:()=>a.settings_agentFeatures_scripts_label(),description:()=>a.settings_agentFeatures_scripts_description(),defaultValue:!0},{path:"agentFeatures.terminalAccess",label:()=>a.settings_agentFeatures_terminalAccess_label(),description:()=>a.settings_agentFeatures_terminalAccess_description(),defaultValue:!0},{path:"agentFeatures.browserAutomation",label:()=>a.settings_agentFeatures_browserAutomation_label(),description:()=>a.settings_agentFeatures_browserAutomation_description(),defaultValue:!0},{path:"agentFeatures.desktopControl",label:()=>a.settings_agentFeatures_desktopControl_label(),description:()=>a.settings_agentFeatures_desktopControl_description(),defaultValue:!0},{path:"agentFeatures.richChatBlocks",label:()=>a.settings_agentFeatures_richChatBlocks_label(),description:()=>a.settings_agentFeatures_richChatBlocks_description(),defaultValue:!0},{path:"agentFeatures.structuredQuestions",label:()=>a.settings_agentFeatures_structuredQuestions_label(),description:()=>a.settings_agentFeatures_structuredQuestions_description(),defaultValue:!0},{path:"agentFeatures.secretRequests",label:()=>a.settings_agentFeatures_secretRequests_label(),description:()=>a.settings_agentFeatures_secretRequests_description(),defaultValue:!1},{path:"agentFeatures.attentionRequests",label:()=>a.settings_agentFeatures_attentionRequests_label(),description:()=>a.settings_agentFeatures_attentionRequests_description(),defaultValue:!0},{path:"agentFeatures.stateSnapshot",label:()=>a.settings_agentFeatures_stateSnapshot_label(),description:()=>a.settings_agentFeatures_stateSnapshot_description(),defaultValue:!0},{path:"agentFeatures.prMonitor",label:()=>a.settings_agentFeatures_prMonitor_label(),description:()=>a.settings_agentFeatures_prMonitor_description(),defaultValue:!0},{path:"agentFeatures.taskGraph",label:()=>a.settings_agentFeatures_taskGraph_label(),description:()=>a.settings_agentFeatures_taskGraph_description(),defaultValue:!0},{path:"agentFeatures.peerAgents",label:()=>a.settings_agentFeatures_peerAgents_label(),description:()=>a.settings_agentFeatures_peerAgents_description(),defaultValue:!0},{path:"agentFeatures.mcpTools",label:()=>a.settings_agentFeatures_mcpTools_label(),description:()=>a.settings_agentFeatures_mcpTools_description(),defaultValue:!0}],va=Object.fromEntries(gs.map(e=>[e.path,e.defaultValue]));export{sr as $,zs as A,wn as B,Rn as C,js as D,Ot as E,gs as F,pe as G,Fi as H,Mr as I,Jr as J,En as K,xn as L,ne as M,Sa as N,yn as O,Rr as P,yi as Q,Li as R,E as S,I as T,k as U,Zr as V,pr as W,vi as X,Ar as Y,ki as Z,_i as _,va as a,Ds as a$,Bn as a0,Nn as a1,Ri as a2,wr as a3,ds as a4,ur as a5,Zi as a6,Sn as a7,Vn as a8,Xr as a9,na as aA,On as aB,ci as aC,gi as aD,ni as aE,zi as aF,bn as aG,Gi as aH,ai as aI,oi as aJ,Qs as aK,Xs as aL,X as aM,Lt as aN,Vt as aO,Gt as aP,fe as aQ,Bt as aR,Dt as aS,Ft as aT,Nt as aU,Wt as aV,Ns as aW,Vs as aX,Gs as aY,Hs as aZ,Fs as a_,Gn as aa,Ks as ab,Js as ac,hr as ad,$n as ae,Me as af,se as ag,jn as ah,we as ai,Ee as aj,Zn as ak,Xn as al,Yn as am,Jn as an,ea as ao,Kn as ap,Qn as aq,zn as ar,mr as as,Zs as at,qi as au,ti as av,aa as aw,ia as ax,ra as ay,sa as az,_a as b,cn as b$,Bs as b0,xs as b1,Ws as b2,Ls as b3,Us as b4,Os as b5,qs as b6,ui as b7,Qr as b8,$i as b9,Ui as bA,Vi as bB,Bi as bC,re as bD,gr as bE,te as bF,Hi as bG,xi as bH,Un as bI,$t as bJ,mi as bK,bi as bL,fi as bM,hi as bN,ii as bO,pi as bP,A as bQ,ei as bR,Ki as bS,ji as bT,Sr as bU,ve as bV,Ys as bW,hn as bX,an as bY,fn as bZ,gn as b_,Kr as ba,Dn as bb,Fn as bc,li as bd,di as be,Ln as bf,Wi as bg,ce as bh,Ni as bi,_e as bj,ma as bk,ha as bl,ss as bm,ua as bn,la as bo,as as bp,ga as bq,ca as br,da as bs,rs as bt,fa as bu,is as bv,ns as bw,Tn as bx,si as by,ta as bz,m as c,un as c0,dn as c1,on as c2,nn as c3,sn as c4,mn as c5,rn as c6,ln as c7,pn as c8,b as c9,es as ca,qn as cb,Hn as cc,pa as cd,oa as ce,_n as cf,An as cg,In as ch,Ti as ci,J as cj,N as ck,Oi as cl,Gr as cm,Di as cn,Cn as co,Xi as cp,Yi as cq,Ji as cr,Qi as cs,$r as ct,Si as cu,Ii as d,wi as e,Ci as f,Pi as g,Ei as h,he as i,Mi as j,be as k,Wn as l,Pn as m,Cr as n,Or as o,vn as p,kn as q,ri as r,jt as s,qt as t,Ai as u,Mn as v,ba as w,en as x,tn as y,$s as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{K as G,T as F,_ as N,a0 as A,d as J,f as X,X as Q,Q as Y,n as _,e as Z,c as q,m as W,h as K,l as O}from"./RKjwEkJS.js";import{D as P,a as tt,d as et}from"./CQcEqK4G.js";import{o as m,b as B,s as l,n as h,l as v,_ as M,c as U,u as nt}from"./CIyUrgF0.js";import{I as at}from"./CEsW1euQ.js";const it="/app/immutable/assets/PatrickHand-Regular.CyLOmwMC.ttf";let D=null,R=null;const L=P.badgeFontFamily;function $(){return R??L}function H(){return D||(D=(async()=>{let t;try{const i=typeof document<"u"?document.fonts:globalThis.fonts;if(!i||typeof FontFace>"u")throw new Error("font-api-unavailable");const a=await Promise.race([new FontFace("Intent Annotation Hand",`url("${it}")`,{style:"normal",weight:"400",display:"block"}).load(),new Promise((s,r)=>{t=setTimeout(()=>r(new Error("font-load-timeout")),2e3)})]);i.add(a),R=P.fontFamily}catch{R=L}finally{clearTimeout(t)}})(),D)}let y=null;function ot(t){const i=G(t);if(t.kind!=="text"||t.style==="sticky"||(y||(y=typeof OffscreenCanvas<"u"?new OffscreenCanvas(1,1).getContext("2d"):typeof document<"u"?document.createElement("canvas").getContext("2d"):null),!y))return i;y.font=`${t.fontSize}px ${$()}`,y.textAlign="left",y.textBaseline="top",y.letterSpacing="0px",y.wordSpacing="0px";let a=1/0,s=1/0,r=-1/0,n=-1/0;const{lines:u,lineHeight:c}=F(t);for(const[o,g]of u.entries()){if(!g.trim())continue;const p=y.measureText(g),b=o*c,f=[-p.actualBoundingBoxLeft,b-p.actualBoundingBoxAscent,p.actualBoundingBoxRight,b+p.actualBoundingBoxDescent];if(!f.every(Number.isFinite))return i;a=Math.min(a,f[0]),s=Math.min(s,f[1]),r=Math.max(r,f[2]),n=Math.max(n,f[3])}if(!(r>a&&n>s))return i;const e=Math.max(1,t.fontSize/24);return{x:t.x+a-e,y:t.y+s-e,w:r-a+2*e,h:n-s+2*e}}function gt(t,i){const a=N(i,t,null),s=new Set([0,t.durationMs,...t.batches.flatMap(e=>e.clearAtMs===null?[]:[e.clearAtMs]),...a.marks.flatMap(e=>[e.frameAtMs,e.visibleUntilMs,...A(t,e.mark)?[A(t,e.mark).completedAtMs]:[]])]),r=[...new Set(a.marks.flatMap(e=>A(t,e.mark)?.samples.map(g=>g.atMs)??[]))].filter(e=>!s.has(e)&&e>=0&&e<=t.durationMs).sort((e,o)=>e-o),n=Math.max(0,1001-s.size),u=n>=r.length?r:Array.from({length:n},(e,o)=>r[Math.floor(o*r.length/n)]),c=[...new Set([...s,...u])].filter(e=>e>=0&&e<=t.durationMs).sort((e,o)=>e-o);return c.slice(0,-1).map((e,o)=>({atMs:e,endMs:c[o+1]})).filter(e=>e.endMs>e.atMs&&a.marks.some(o=>e.atMs>=o.frameAtMs&&e.atMs<o.visibleUntilMs))}function pt(t,i,a){const s=A(t,i);return!s||a>=s.completedAtMs}const E=16e3;function rt(t,i){const s=t.length*2,r=new ArrayBuffer(44+s),n=new DataView(r),u=(e,o)=>{for(let g=0;g<o.length;g+=1)n.setUint8(e+g,o.charCodeAt(g))};u(0,"RIFF"),n.setUint32(4,36+s,!0),u(8,"WAVE"),u(12,"fmt "),n.setUint32(16,16,!0),n.setUint16(20,1,!0),n.setUint16(22,1,!0),n.setUint32(24,i,!0),n.setUint32(28,i*2,!0),n.setUint16(32,2,!0),n.setUint16(34,16,!0),u(36,"data"),n.setUint32(40,s,!0);let c=44;for(let e=0;e<t.length;e+=1){const o=Math.max(-1,Math.min(1,t[e]));n.setInt16(c,o<0?o*32768:o*32767,!0),c+=2}return r}function st(t){const i=new Float32Array(t.length);for(let a=0;a<t.numberOfChannels;a+=1){const s=t.getChannelData(a);for(let r=0;r<s.length;r+=1)i[r]+=s[r]/t.numberOfChannels}return i}async function kt(t){const i=new AudioContext;try{const a=await i.decodeAudioData(await t.arrayBuffer()),s=Math.max(1,Math.ceil(a.length*E/a.sampleRate)),r=new OfflineAudioContext(1,s,E),n=r.createBufferSource();n.buffer=a,n.connect(r.destination),n.start();const u=await r.startRendering();return rt(st(u),E)}finally{await i.close().catch(()=>{})}}function j(t){const i=new Uint8Array(t),a=32768;let s="";for(let r=0;r<i.length;r+=a)s+=String.fromCharCode(...i.subarray(r,r+a));return btoa(s)}const d={...P,get fontFamily(){return $()},blurRadius:J};function z(t,i,a=0,s){const r=t.crop??{x:0,y:0,w:i.width,h:i.height},n=Math.max(1,Math.max(i.width,i.height)/1440),u=Math.min(d.badgeRadius*n,r.w/2,r.h/2);return Q(t,i).filter(c=>i.kind==="screenshot"||a>=c.mark.atMs&&a<c.visibleUntilMs).flatMap(({n:c,mark:e})=>{const o=i.kind==="recording"?Y(e.geometry,A(i,e),a):e.geometry;if(!o)return[];const g=ot(o),p=et(g,r,n,u);return[...e.id===s&&o.kind==="text"?[]:[{kind:"geometry",geometry:o,unit:n}],...d.showNumbers?[{kind:"badge",...p,radius:u,label:String(c),unit:n}]:[]]})}function V(t,i){t.save(),t.letterSpacing="0px",t.wordSpacing="0px",t.strokeStyle=d.accent,t.fillStyle=d.accent,t.lineCap="round",t.lineJoin="round";for(const a of i){const s=a.unit??1,r=(c,e)=>{t.strokeStyle=d.halo,t.lineWidth=c+d.haloWidth*s,e?t.stroke(e):t.stroke(),t.strokeStyle=d.accent,t.lineWidth=c,e?t.stroke(e):t.stroke()};if(a.kind==="badge"){t.fillStyle=d.paper,t.beginPath(),t.arc(a.x,a.y,a.radius,0,Math.PI*2),t.fill(),t.strokeStyle=d.accent,t.lineWidth=d.badgeOutline*s,t.stroke(),t.fillStyle=d.ink,t.font=`600 ${a.radius*d.badgeTextScale}px ${d.badgeFontFamily}`,t.textAlign="center",t.textBaseline="middle",t.fillText(a.label,a.x,a.y);continue}const n=a.geometry;t.fillStyle=d.accent;const u=(n.kind==="path"?d.pen:d.stroke)*s;if(n.kind==="rect")t.beginPath(),t.rect(n.x,n.y,n.w,n.h),r(u);else if(n.kind==="text"){const c=F(n);t.fillStyle=d.accent,t.textAlign="left",t.textBaseline="top",t.font=`${n.fontSize}px ${d.fontFamily}`,c.lines.forEach((e,o)=>{const g=n.x+c.padding,p=n.y+c.padding+o*c.lineHeight;t.strokeStyle=d.halo,t.lineWidth=d.haloWidth*s;const b=n.style==="sticky"?c.width-2*c.padding:void 0;t.strokeText(e,g,p,b),t.fillText(e,g,p,b)})}else if(n.kind==="point")t.beginPath(),t.arc(n.x,n.y,X,0,Math.PI*2),r(u);else if(n.kind==="path")r(u,new Path2D(tt(n.points)));else{const c=[n.from,n.to];if(t.beginPath(),c.forEach((e,o)=>o?t.lineTo(e.x,e.y):t.moveTo(e.x,e.y)),n.kind==="arrow"){const e=Math.atan2(n.to.y-n.from.y,n.to.x-n.from.x),o=d.arrowHead*s;t.moveTo(n.to.x-o*Math.cos(e-d.arrowSpread),n.to.y-o*Math.sin(e-d.arrowSpread)),t.lineTo(n.to.x,n.to.y),t.lineTo(n.to.x-o*Math.cos(e+d.arrowSpread),n.to.y-o*Math.sin(e+d.arrowSpread))}r(u)}}t.restore()}function I(t,i){const a=new OffscreenCanvas(Math.max(1,Math.round(t)),Math.max(1,Math.round(i))),s=a.getContext("2d");if(!s)throw new Error("capture-render-unavailable");return{image:a,context:s}}async function yt(t,i,a){if(t.visuals!=="clean")throw new Error("legacy-baked-marks");await H();const{image:s,context:r}=I(t.width,t.height);return V(r,z(i,t,a)),j(await(await s.convertToBlob({type:"image/png"})).arrayBuffer())}async function wt(t,i,a,s){const r=N(i,t,null);if(t.kind!=="screenshot"||r.errors.length)throw new Error(r.errors[0]??"not-a-screenshot");if(t.visuals!=="clean")throw new Error("legacy-baked-marks");await H();const n=Uint8Array.from(atob(a.base64),c=>c.charCodeAt(0)),u=await createImageBitmap(new Blob([n],{type:a.mimeType}));try{if(u.width!==t.width||u.height!==t.height)throw new Error("stale-source-pixels");const c=I(t.width,t.height);if(c.context.drawImage(u,0,0),i.blurRegions.length||i.blurStrokes?.length){const p=I(t.width,t.height);p.context.fillStyle="#000000",p.context.fillRect(0,0,t.width,t.height);const b=`blur(${d.blurRadius}px)`;if(p.context.filter=b,p.context.filter!==b)throw new Error("capture-blur-unavailable");p.context.drawImage(u,0,0);const f=I(t.width,t.height);f.context.fillStyle="#ffffff",f.context.strokeStyle="#ffffff",f.context.lineCap="round",f.context.lineJoin="round";for(const k of i.blurRegions)f.context.fillRect(k.x,k.y,k.w,k.h);for(const k of i.blurStrokes??[]){const S=k.points.filter((x,C)=>C===0||x.x!==k.points[C-1].x||x.y!==k.points[C-1].y);if(f.context.beginPath(),S.length===1){const x=S[0];f.context.arc(x.x,x.y,k.radius,0,Math.PI*2),f.context.fill()}else{f.context.lineWidth=k.radius*2,f.context.moveTo(S[0].x,S[0].y);for(const x of S.slice(1))f.context.lineTo(x.x,x.y);f.context.stroke()}}const T=I(t.width,t.height);T.context.drawImage(p.image,0,0),T.context.globalCompositeOperation="destination-in",T.context.drawImage(f.image,0,0),c.context.drawImage(T.image,0,0)}const e=i.crop??{x:0,y:0,w:t.width,h:t.height},o=I(e.w,e.h);o.context.drawImage(c.image,e.x,e.y,e.w,e.h,0,0,o.image.width,o.image.height),o.context.scale(o.image.width/e.w,o.image.height/e.h),o.context.translate(-e.x,-e.y),V(o.context,z(i,t,0,s?.hiddenTextMarkId));const g=await o.image.convertToBlob({type:"image/png"});return{data:j(await g.arrayBuffer()),mimeType:"image/png",width:o.image.width,height:o.image.height}}finally{u.close()}}const Mt=m({outputVersion:v(Z),jobId:l().uuid(),media:_,layers:B(m({atMs:h().finite().nonnegative(),endMs:h().finite().nonnegative(),png:l().min(1).max(48*1024*1024)}).strict()).max(1e4)}).strict(),bt=m({jobId:l().uuid(),media:_,locale:l().min(1).max(80).optional()}).strict(),lt=m({sourceId:l().min(1),sourceRevision:h().int().nonnegative(),durationMs:h().finite().positive().max(120001),intervalMs:v(50),peaks:B(h().finite().min(0).max(1)).max(2401)}).strict().refine(t=>t.peaks.length===Math.ceil(t.durationMs/t.intervalMs),"Incomplete waveform");m({jobId:l().uuid(),media:_}).strict();m({sourceId:l().min(1),sourceRevision:h().int().nonnegative(),trackCount:h().int().nonnegative().max(128),populatedTrackCount:h().int().nonnegative().max(128)}).strict().refine(t=>t.populatedTrackCount<=t.trackCount);const xt=at.DOCK_CAPTURE_EDITOR,w=l().min(1).max(200),ct=m({id:w,tool:M(q),atMs:h().finite().min(0).max(1440*60*1e3).nullable(),label:l().max(200).optional()}).strict();m({kind:M(["recording","screenshot"]),workspaceId:w,agentId:w,attachmentId:w,sourceRevision:l().min(1).max(512),attachmentPath:l().min(1).max(1024),title:l().max(200),durationMs:h().finite().min(0).max(1440*60*1e3).optional(),width:h().int().positive().max(32768).optional(),height:h().int().positive().max(32768).optional(),marks:B(ct).max(500),provenance:m({captureApi:l().max(100).optional(),hasMicAudio:U().optional(),visuals:M(["clean","baked-marks"])}).strict(),source:O.optional(),originalSource:O.optional(),saved:K.nullable().optional(),transcript:W.nullable().optional(),holdToken:l().uuid().optional()}).strict().refine(t=>!t.source||t.source.path===t.attachmentPath&&t.source.attachmentId===t.attachmentId&&t.source.kind===t.kind,"Source does not match the attachment").refine(t=>!t.saved||!!t.source&&t.saved.sourceId===t.source.id&&t.saved.sourceRevision===t.source.revision,"Edit does not match the source").refine(t=>!t.originalSource||t.source?.kind==="screenshot"&&t.originalSource.kind==="screenshot"&&t.originalSource.id!==t.source.id,"Original source does not precede this source");m({openId:l().uuid(),intent:v("attach").optional()}).strict();m({openId:l().uuid(),accept:U()}).strict();m({token:l().uuid(),hide:v(!0).optional()}).strict();m({openId:l().uuid(),requestId:l().uuid()}).strict();m({requestId:l().uuid(),result:M(["saved","stale-source","revision-conflict","failed"]),saved:K.optional()}).strict().refine(t=>t.result==="saved"==!!t.saved,"Saved edit missing");m({pair:m({workspaceId:l().min(1).max(200),agentId:l().min(1).max(200)}).strict(),sourceId:l().min(1).max(512),sourceRevision:h().int().nonnegative(),transcript:W}).strict();nt([m({requestId:l().uuid(),ok:v(!0),source:O}).strict(),m({requestId:l().uuid(),ok:v(!1),error:M(["cancelled","permission","failed"])}).strict()]);const dt=2e4;m({openId:l().uuid(),markId:l().min(1).max(512),generation:h().int().nonnegative(),phase:M(["start","stop"])}).strict();m({requestId:l().uuid(),generation:h().int().nonnegative(),text:l().max(dt),final:U(),error:M(["busy","unavailable","failed","permission"]).optional()}).strict().refine(t=>!t.error||t.final,"An error is final");m({pair:m({workspaceId:l().min(1).max(200),agentId:l().min(1).max(200)}).strict(),sourceId:l().min(1).max(512),sourceRevision:h().int().nonnegative(),waveform:lt}).strict();const It=m({requestId:l().uuid(),openId:w,pair:m({workspaceId:w,agentId:w}).strict(),kind:M(["screenshot","recording"]),attachmentId:w,sourceId:w.optional(),sourceRevision:h().int().nonnegative().optional(),expectedEditRevision:h().int().nonnegative().optional()}).strict();m({requestId:l().uuid(),result:M(["deleted","stale-source","failed"])}).strict();const vt=m({endedOpenId:l().uuid()}).strict();export{xt as D,d as a,dt as b,It as c,vt as d,Mt as e,bt as f,j as g,kt as h,ot as i,$ as j,pt as k,gt as l,H as m,z as n,yt as o,V as p,wt as r};
|
|
1
|
+
import{K as G,T as F,_ as N,a0 as A,d as J,f as X,X as Q,Q as Y,n as _,e as Z,c as q,m as W,h as K,l as O}from"./CO4a0yRH.js";import{D as P,a as tt,d as et}from"./CQcEqK4G.js";import{o as m,b as B,s as l,n as h,l as v,_ as M,c as U,u as nt}from"./CIyUrgF0.js";import{I as at}from"./CEsW1euQ.js";const it="/app/immutable/assets/PatrickHand-Regular.CyLOmwMC.ttf";let D=null,R=null;const L=P.badgeFontFamily;function $(){return R??L}function H(){return D||(D=(async()=>{let t;try{const i=typeof document<"u"?document.fonts:globalThis.fonts;if(!i||typeof FontFace>"u")throw new Error("font-api-unavailable");const a=await Promise.race([new FontFace("Intent Annotation Hand",`url("${it}")`,{style:"normal",weight:"400",display:"block"}).load(),new Promise((s,r)=>{t=setTimeout(()=>r(new Error("font-load-timeout")),2e3)})]);i.add(a),R=P.fontFamily}catch{R=L}finally{clearTimeout(t)}})(),D)}let y=null;function ot(t){const i=G(t);if(t.kind!=="text"||t.style==="sticky"||(y||(y=typeof OffscreenCanvas<"u"?new OffscreenCanvas(1,1).getContext("2d"):typeof document<"u"?document.createElement("canvas").getContext("2d"):null),!y))return i;y.font=`${t.fontSize}px ${$()}`,y.textAlign="left",y.textBaseline="top",y.letterSpacing="0px",y.wordSpacing="0px";let a=1/0,s=1/0,r=-1/0,n=-1/0;const{lines:u,lineHeight:c}=F(t);for(const[o,g]of u.entries()){if(!g.trim())continue;const p=y.measureText(g),b=o*c,f=[-p.actualBoundingBoxLeft,b-p.actualBoundingBoxAscent,p.actualBoundingBoxRight,b+p.actualBoundingBoxDescent];if(!f.every(Number.isFinite))return i;a=Math.min(a,f[0]),s=Math.min(s,f[1]),r=Math.max(r,f[2]),n=Math.max(n,f[3])}if(!(r>a&&n>s))return i;const e=Math.max(1,t.fontSize/24);return{x:t.x+a-e,y:t.y+s-e,w:r-a+2*e,h:n-s+2*e}}function gt(t,i){const a=N(i,t,null),s=new Set([0,t.durationMs,...t.batches.flatMap(e=>e.clearAtMs===null?[]:[e.clearAtMs]),...a.marks.flatMap(e=>[e.frameAtMs,e.visibleUntilMs,...A(t,e.mark)?[A(t,e.mark).completedAtMs]:[]])]),r=[...new Set(a.marks.flatMap(e=>A(t,e.mark)?.samples.map(g=>g.atMs)??[]))].filter(e=>!s.has(e)&&e>=0&&e<=t.durationMs).sort((e,o)=>e-o),n=Math.max(0,1001-s.size),u=n>=r.length?r:Array.from({length:n},(e,o)=>r[Math.floor(o*r.length/n)]),c=[...new Set([...s,...u])].filter(e=>e>=0&&e<=t.durationMs).sort((e,o)=>e-o);return c.slice(0,-1).map((e,o)=>({atMs:e,endMs:c[o+1]})).filter(e=>e.endMs>e.atMs&&a.marks.some(o=>e.atMs>=o.frameAtMs&&e.atMs<o.visibleUntilMs))}function pt(t,i,a){const s=A(t,i);return!s||a>=s.completedAtMs}const E=16e3;function rt(t,i){const s=t.length*2,r=new ArrayBuffer(44+s),n=new DataView(r),u=(e,o)=>{for(let g=0;g<o.length;g+=1)n.setUint8(e+g,o.charCodeAt(g))};u(0,"RIFF"),n.setUint32(4,36+s,!0),u(8,"WAVE"),u(12,"fmt "),n.setUint32(16,16,!0),n.setUint16(20,1,!0),n.setUint16(22,1,!0),n.setUint32(24,i,!0),n.setUint32(28,i*2,!0),n.setUint16(32,2,!0),n.setUint16(34,16,!0),u(36,"data"),n.setUint32(40,s,!0);let c=44;for(let e=0;e<t.length;e+=1){const o=Math.max(-1,Math.min(1,t[e]));n.setInt16(c,o<0?o*32768:o*32767,!0),c+=2}return r}function st(t){const i=new Float32Array(t.length);for(let a=0;a<t.numberOfChannels;a+=1){const s=t.getChannelData(a);for(let r=0;r<s.length;r+=1)i[r]+=s[r]/t.numberOfChannels}return i}async function kt(t){const i=new AudioContext;try{const a=await i.decodeAudioData(await t.arrayBuffer()),s=Math.max(1,Math.ceil(a.length*E/a.sampleRate)),r=new OfflineAudioContext(1,s,E),n=r.createBufferSource();n.buffer=a,n.connect(r.destination),n.start();const u=await r.startRendering();return rt(st(u),E)}finally{await i.close().catch(()=>{})}}function j(t){const i=new Uint8Array(t),a=32768;let s="";for(let r=0;r<i.length;r+=a)s+=String.fromCharCode(...i.subarray(r,r+a));return btoa(s)}const d={...P,get fontFamily(){return $()},blurRadius:J};function z(t,i,a=0,s){const r=t.crop??{x:0,y:0,w:i.width,h:i.height},n=Math.max(1,Math.max(i.width,i.height)/1440),u=Math.min(d.badgeRadius*n,r.w/2,r.h/2);return Q(t,i).filter(c=>i.kind==="screenshot"||a>=c.mark.atMs&&a<c.visibleUntilMs).flatMap(({n:c,mark:e})=>{const o=i.kind==="recording"?Y(e.geometry,A(i,e),a):e.geometry;if(!o)return[];const g=ot(o),p=et(g,r,n,u);return[...e.id===s&&o.kind==="text"?[]:[{kind:"geometry",geometry:o,unit:n}],...d.showNumbers?[{kind:"badge",...p,radius:u,label:String(c),unit:n}]:[]]})}function V(t,i){t.save(),t.letterSpacing="0px",t.wordSpacing="0px",t.strokeStyle=d.accent,t.fillStyle=d.accent,t.lineCap="round",t.lineJoin="round";for(const a of i){const s=a.unit??1,r=(c,e)=>{t.strokeStyle=d.halo,t.lineWidth=c+d.haloWidth*s,e?t.stroke(e):t.stroke(),t.strokeStyle=d.accent,t.lineWidth=c,e?t.stroke(e):t.stroke()};if(a.kind==="badge"){t.fillStyle=d.paper,t.beginPath(),t.arc(a.x,a.y,a.radius,0,Math.PI*2),t.fill(),t.strokeStyle=d.accent,t.lineWidth=d.badgeOutline*s,t.stroke(),t.fillStyle=d.ink,t.font=`600 ${a.radius*d.badgeTextScale}px ${d.badgeFontFamily}`,t.textAlign="center",t.textBaseline="middle",t.fillText(a.label,a.x,a.y);continue}const n=a.geometry;t.fillStyle=d.accent;const u=(n.kind==="path"?d.pen:d.stroke)*s;if(n.kind==="rect")t.beginPath(),t.rect(n.x,n.y,n.w,n.h),r(u);else if(n.kind==="text"){const c=F(n);t.fillStyle=d.accent,t.textAlign="left",t.textBaseline="top",t.font=`${n.fontSize}px ${d.fontFamily}`,c.lines.forEach((e,o)=>{const g=n.x+c.padding,p=n.y+c.padding+o*c.lineHeight;t.strokeStyle=d.halo,t.lineWidth=d.haloWidth*s;const b=n.style==="sticky"?c.width-2*c.padding:void 0;t.strokeText(e,g,p,b),t.fillText(e,g,p,b)})}else if(n.kind==="point")t.beginPath(),t.arc(n.x,n.y,X,0,Math.PI*2),r(u);else if(n.kind==="path")r(u,new Path2D(tt(n.points)));else{const c=[n.from,n.to];if(t.beginPath(),c.forEach((e,o)=>o?t.lineTo(e.x,e.y):t.moveTo(e.x,e.y)),n.kind==="arrow"){const e=Math.atan2(n.to.y-n.from.y,n.to.x-n.from.x),o=d.arrowHead*s;t.moveTo(n.to.x-o*Math.cos(e-d.arrowSpread),n.to.y-o*Math.sin(e-d.arrowSpread)),t.lineTo(n.to.x,n.to.y),t.lineTo(n.to.x-o*Math.cos(e+d.arrowSpread),n.to.y-o*Math.sin(e+d.arrowSpread))}r(u)}}t.restore()}function I(t,i){const a=new OffscreenCanvas(Math.max(1,Math.round(t)),Math.max(1,Math.round(i))),s=a.getContext("2d");if(!s)throw new Error("capture-render-unavailable");return{image:a,context:s}}async function yt(t,i,a){if(t.visuals!=="clean")throw new Error("legacy-baked-marks");await H();const{image:s,context:r}=I(t.width,t.height);return V(r,z(i,t,a)),j(await(await s.convertToBlob({type:"image/png"})).arrayBuffer())}async function wt(t,i,a,s){const r=N(i,t,null);if(t.kind!=="screenshot"||r.errors.length)throw new Error(r.errors[0]??"not-a-screenshot");if(t.visuals!=="clean")throw new Error("legacy-baked-marks");await H();const n=Uint8Array.from(atob(a.base64),c=>c.charCodeAt(0)),u=await createImageBitmap(new Blob([n],{type:a.mimeType}));try{if(u.width!==t.width||u.height!==t.height)throw new Error("stale-source-pixels");const c=I(t.width,t.height);if(c.context.drawImage(u,0,0),i.blurRegions.length||i.blurStrokes?.length){const p=I(t.width,t.height);p.context.fillStyle="#000000",p.context.fillRect(0,0,t.width,t.height);const b=`blur(${d.blurRadius}px)`;if(p.context.filter=b,p.context.filter!==b)throw new Error("capture-blur-unavailable");p.context.drawImage(u,0,0);const f=I(t.width,t.height);f.context.fillStyle="#ffffff",f.context.strokeStyle="#ffffff",f.context.lineCap="round",f.context.lineJoin="round";for(const k of i.blurRegions)f.context.fillRect(k.x,k.y,k.w,k.h);for(const k of i.blurStrokes??[]){const S=k.points.filter((x,C)=>C===0||x.x!==k.points[C-1].x||x.y!==k.points[C-1].y);if(f.context.beginPath(),S.length===1){const x=S[0];f.context.arc(x.x,x.y,k.radius,0,Math.PI*2),f.context.fill()}else{f.context.lineWidth=k.radius*2,f.context.moveTo(S[0].x,S[0].y);for(const x of S.slice(1))f.context.lineTo(x.x,x.y);f.context.stroke()}}const T=I(t.width,t.height);T.context.drawImage(p.image,0,0),T.context.globalCompositeOperation="destination-in",T.context.drawImage(f.image,0,0),c.context.drawImage(T.image,0,0)}const e=i.crop??{x:0,y:0,w:t.width,h:t.height},o=I(e.w,e.h);o.context.drawImage(c.image,e.x,e.y,e.w,e.h,0,0,o.image.width,o.image.height),o.context.scale(o.image.width/e.w,o.image.height/e.h),o.context.translate(-e.x,-e.y),V(o.context,z(i,t,0,s?.hiddenTextMarkId));const g=await o.image.convertToBlob({type:"image/png"});return{data:j(await g.arrayBuffer()),mimeType:"image/png",width:o.image.width,height:o.image.height}}finally{u.close()}}const Mt=m({outputVersion:v(Z),jobId:l().uuid(),media:_,layers:B(m({atMs:h().finite().nonnegative(),endMs:h().finite().nonnegative(),png:l().min(1).max(48*1024*1024)}).strict()).max(1e4)}).strict(),bt=m({jobId:l().uuid(),media:_,locale:l().min(1).max(80).optional()}).strict(),lt=m({sourceId:l().min(1),sourceRevision:h().int().nonnegative(),durationMs:h().finite().positive().max(120001),intervalMs:v(50),peaks:B(h().finite().min(0).max(1)).max(2401)}).strict().refine(t=>t.peaks.length===Math.ceil(t.durationMs/t.intervalMs),"Incomplete waveform");m({jobId:l().uuid(),media:_}).strict();m({sourceId:l().min(1),sourceRevision:h().int().nonnegative(),trackCount:h().int().nonnegative().max(128),populatedTrackCount:h().int().nonnegative().max(128)}).strict().refine(t=>t.populatedTrackCount<=t.trackCount);const xt=at.DOCK_CAPTURE_EDITOR,w=l().min(1).max(200),ct=m({id:w,tool:M(q),atMs:h().finite().min(0).max(1440*60*1e3).nullable(),label:l().max(200).optional()}).strict();m({kind:M(["recording","screenshot"]),workspaceId:w,agentId:w,attachmentId:w,sourceRevision:l().min(1).max(512),attachmentPath:l().min(1).max(1024),title:l().max(200),durationMs:h().finite().min(0).max(1440*60*1e3).optional(),width:h().int().positive().max(32768).optional(),height:h().int().positive().max(32768).optional(),marks:B(ct).max(500),provenance:m({captureApi:l().max(100).optional(),hasMicAudio:U().optional(),visuals:M(["clean","baked-marks"])}).strict(),source:O.optional(),originalSource:O.optional(),saved:K.nullable().optional(),transcript:W.nullable().optional(),holdToken:l().uuid().optional()}).strict().refine(t=>!t.source||t.source.path===t.attachmentPath&&t.source.attachmentId===t.attachmentId&&t.source.kind===t.kind,"Source does not match the attachment").refine(t=>!t.saved||!!t.source&&t.saved.sourceId===t.source.id&&t.saved.sourceRevision===t.source.revision,"Edit does not match the source").refine(t=>!t.originalSource||t.source?.kind==="screenshot"&&t.originalSource.kind==="screenshot"&&t.originalSource.id!==t.source.id,"Original source does not precede this source");m({openId:l().uuid(),intent:v("attach").optional()}).strict();m({openId:l().uuid(),accept:U()}).strict();m({token:l().uuid(),hide:v(!0).optional()}).strict();m({openId:l().uuid(),requestId:l().uuid()}).strict();m({requestId:l().uuid(),result:M(["saved","stale-source","revision-conflict","failed"]),saved:K.optional()}).strict().refine(t=>t.result==="saved"==!!t.saved,"Saved edit missing");m({pair:m({workspaceId:l().min(1).max(200),agentId:l().min(1).max(200)}).strict(),sourceId:l().min(1).max(512),sourceRevision:h().int().nonnegative(),transcript:W}).strict();nt([m({requestId:l().uuid(),ok:v(!0),source:O}).strict(),m({requestId:l().uuid(),ok:v(!1),error:M(["cancelled","permission","failed"])}).strict()]);const dt=2e4;m({openId:l().uuid(),markId:l().min(1).max(512),generation:h().int().nonnegative(),phase:M(["start","stop"])}).strict();m({requestId:l().uuid(),generation:h().int().nonnegative(),text:l().max(dt),final:U(),error:M(["busy","unavailable","failed","permission"]).optional()}).strict().refine(t=>!t.error||t.final,"An error is final");m({pair:m({workspaceId:l().min(1).max(200),agentId:l().min(1).max(200)}).strict(),sourceId:l().min(1).max(512),sourceRevision:h().int().nonnegative(),waveform:lt}).strict();const It=m({requestId:l().uuid(),openId:w,pair:m({workspaceId:w,agentId:w}).strict(),kind:M(["screenshot","recording"]),attachmentId:w,sourceId:w.optional(),sourceRevision:h().int().nonnegative().optional(),expectedEditRevision:h().int().nonnegative().optional()}).strict();m({requestId:l().uuid(),result:M(["deleted","stale-source","failed"])}).strict();const vt=m({endedOpenId:l().uuid()}).strict();export{xt as D,d as a,dt as b,It as c,vt as d,Mt as e,bt as f,j as g,kt as h,ot as i,$ as j,pt as k,gt as l,H as m,z as n,yt as o,V as p,wt as r};
|