@intent-hq/web 2.280.0 → 2.280.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{CqWjEg_w.js → -CwTNgWz.js} +1 -1
- package/web/app/immutable/chunks/{gb654U7I.js → 2jlj3Ler.js} +1 -1
- package/web/app/immutable/chunks/{N6QJHIhO.js → 3jOBMSa2.js} +1 -1
- package/web/app/immutable/chunks/{C90yTaYt.js → 4_muao6M.js} +1 -1
- package/web/app/immutable/chunks/{DXBMViP_.js → 68rxuoyq.js} +1 -1
- package/web/app/immutable/chunks/{hkbK0uGm.js → 6WgKbzWn.js} +1 -1
- package/web/app/immutable/chunks/{C7i9B-ha.js → 9hy801AX.js} +1 -1
- package/web/app/immutable/chunks/{DnhUO3WC.js → A03aFnAi.js} +1 -1
- package/web/app/immutable/chunks/{DY3OgpfJ.js → A9wPt9W8.js} +1 -1
- package/web/app/immutable/chunks/{CSWj16FD.js → AxG32tEq.js} +1 -1
- package/web/app/immutable/chunks/{BvY26mms.js → B2K72oo5.js} +1 -1
- package/web/app/immutable/chunks/{ZEBhSR5D.js → B45awpwY.js} +6 -6
- package/web/app/immutable/chunks/{DuEMgIMk.js → B4FELDN8.js} +1 -1
- package/web/app/immutable/chunks/{CcncgTgR.js → B4m64te4.js} +1 -1
- package/web/app/immutable/chunks/{DYYnXH8M.js → B6ZTfeOu.js} +2 -2
- package/web/app/immutable/chunks/{BjT2fyp4.js → B898Thex.js} +1 -1
- package/web/app/immutable/chunks/{B3HWhL7f.js → BAKCy1ct.js} +1 -1
- package/web/app/immutable/chunks/{CEwq2icc.js → BBzV6xv4.js} +1 -1
- package/web/app/immutable/chunks/{T2cz-xly.js → BDjsvDcb.js} +2 -2
- package/web/app/immutable/chunks/{NPEQPSOM.js → BEl--qal.js} +1 -1
- package/web/app/immutable/chunks/{BhWpP6Em.js → BFT1DBam.js} +1 -1
- package/web/app/immutable/chunks/{URngKIcX.js → BHgv1zSY.js} +1 -1
- package/web/app/immutable/chunks/{CTzUuaPY.js → BLSSZOMv.js} +1 -1
- package/web/app/immutable/chunks/{DKzibOTp.js → BP9ZIbzc.js} +1 -1
- package/web/app/immutable/chunks/{8a4VhuXU.js → BPNaYp5g.js} +1 -1
- package/web/app/immutable/chunks/{nBH4tfK0.js → BPQzmBfs.js} +1 -1
- package/web/app/immutable/chunks/{CAwhk8oQ.js → BPSTu_LB.js} +1 -1
- package/web/app/immutable/chunks/{DfgY-kiD.js → BPU_rzFz.js} +1 -1
- package/web/app/immutable/chunks/{B4LsznIm.js → BQ-dHdWP.js} +1 -1
- package/web/app/immutable/chunks/{CJ-1Nicc.js → BQHODbmu.js} +1 -1
- package/web/app/immutable/chunks/BT84ap5K.js +1 -0
- package/web/app/immutable/chunks/{BMMv1dT9.js → BTM_WGL_.js} +1 -1
- package/web/app/immutable/chunks/{DoyPrFXR.js → BU0pqKbR.js} +1 -1
- package/web/app/immutable/chunks/{DfNuJ6oL.js → BVKhCVH9.js} +1 -1
- package/web/app/immutable/chunks/{YHdlsWct.js → BVXynvnn.js} +1 -1
- package/web/app/immutable/chunks/{B_NbPKl3.js → BW-plizF.js} +1 -1
- package/web/app/immutable/chunks/{CtJg7u1A.js → BW8TPfRW.js} +3 -3
- package/web/app/immutable/chunks/{Dm0QgRo-.js → BXciywVo.js} +1 -1
- package/web/app/immutable/chunks/{eQM-IxZX.js → BY0FrRuN.js} +5 -5
- package/web/app/immutable/chunks/{DOrHUF0y.js → BYkwlyOx.js} +1 -1
- package/web/app/immutable/chunks/BZ8IpxwP.js +1 -0
- package/web/app/immutable/chunks/{DAtbkiMc.js → BZLCAaA0.js} +1 -1
- package/web/app/immutable/chunks/{C93vPsHK.js → BZux1no-.js} +1 -1
- package/web/app/immutable/chunks/{3riJ9IqO.js → B_b2DFb_.js} +1 -1
- package/web/app/immutable/chunks/{CDYpj3Wv.js → B_gYec_y.js} +1 -1
- package/web/app/immutable/chunks/{BkBahiMY.js → Baw2yANm.js} +1 -1
- package/web/app/immutable/chunks/{DKp6jlON.js → Bbx7keP6.js} +1 -1
- package/web/app/immutable/chunks/{DZLfTd9v.js → Bc1u6HH9.js} +1 -1
- package/web/app/immutable/chunks/{BwKTpHLe.js → BceFI8C_.js} +1 -1
- package/web/app/immutable/chunks/{Bx952p7Q.js → BfwUFrB0.js} +1 -1
- package/web/app/immutable/chunks/{DLqv0Ikg.js → BgNO_1M2.js} +1 -1
- package/web/app/immutable/chunks/{BPNyirUe.js → BguE5B0x.js} +1 -1
- package/web/app/immutable/chunks/{B_eTXuFT.js → BhDJcXuT.js} +1 -1
- package/web/app/immutable/chunks/{DvaVsSuU.js → BjBETkWC.js} +1 -1
- package/web/app/immutable/chunks/{stotUVND.js → Bl0HJ17r.js} +3 -3
- package/web/app/immutable/chunks/{BLUcjUGa.js → Bm52rc6Y.js} +1 -1
- package/web/app/immutable/chunks/{N7fhICzs.js → Bmb9f-vS.js} +1 -1
- package/web/app/immutable/chunks/{DkJZ6qt_.js → BmdFGxql.js} +1 -1
- package/web/app/immutable/chunks/{B4VMxRrC.js → BmyBU_d0.js} +1 -1
- package/web/app/immutable/chunks/{clVAYYi3.js → BoGQvi6r.js} +1 -1
- package/web/app/immutable/chunks/{DkOgrmDO.js → BoqFUVbe.js} +1 -1
- package/web/app/immutable/chunks/{CQWH6H5Q.js → BrW2Z0Ue.js} +1 -1
- package/web/app/immutable/chunks/{9nkBC1Gf.js → BtNv1rB8.js} +1 -1
- package/web/app/immutable/chunks/{xYBj3dw3.js → Bu2f_xik.js} +1 -1
- package/web/app/immutable/chunks/{BP0nvB-r.js → BvugS_th.js} +1 -1
- package/web/app/immutable/chunks/{y8oZX4sf.js → BxG24Fz6.js} +1 -1
- package/web/app/immutable/chunks/{Dvrl4uc9.js → BzSqqrdV.js} +1 -1
- package/web/app/immutable/chunks/{UQoGZ5qq.js → C-3IOyFr.js} +1 -1
- package/web/app/immutable/chunks/{B__WlfRy.js → C-YIgYgI.js} +3 -3
- package/web/app/immutable/chunks/{N6Oy5HNi.js → C1A6QIyB.js} +1 -1
- package/web/app/immutable/chunks/{BZSrLoH0.js → C1F9VBVR.js} +1 -1
- package/web/app/immutable/chunks/{CQB9d6Yf.js → C3uzPV7c.js} +1 -1
- package/web/app/immutable/chunks/{BlWy-Yyj.js → C7uEROnA.js} +3 -3
- package/web/app/immutable/chunks/C82p3eaN.js +410 -0
- package/web/app/immutable/chunks/{CqMqlLWW.js → C87twKUp.js} +1 -1
- package/web/app/immutable/chunks/{Dz9B-9IH.js → C8BD21JK.js} +1 -1
- package/web/app/immutable/chunks/{CdjxL29Q.js → C8Ri7767.js} +1 -1
- package/web/app/immutable/chunks/{nSxzXlBd.js → CAvR_m9C.js} +1 -1
- package/web/app/immutable/chunks/{BC5uKK7w.js → CBGnfmpX.js} +1 -1
- package/web/app/immutable/chunks/{vpnNwaI3.js → CBQ-NG4P.js} +1 -1
- package/web/app/immutable/chunks/{DXT5rgnn.js → CBWj5Yn9.js} +1 -1
- package/web/app/immutable/chunks/{BVt6P2Dk.js → CE_2ADe7.js} +1 -1
- package/web/app/immutable/chunks/{CMAGQJUI.js → CH6MdBMX.js} +1 -1
- package/web/app/immutable/chunks/{C-WnhoQ3.js → CJ17D0UC.js} +1 -1
- package/web/app/immutable/chunks/{DERVpCl4.js → CLst9ImY.js} +1 -1
- package/web/app/immutable/chunks/CN6Xgdqp.js +1 -0
- package/web/app/immutable/chunks/{eQHw-9b6.js → COGdwXWC.js} +2 -2
- package/web/app/immutable/chunks/{B7f90q4s.js → CPRrGZdb.js} +1 -1
- package/web/app/immutable/chunks/{BndTIIgb.js → CRK47dBR.js} +1 -1
- package/web/app/immutable/chunks/{CJ0FjS97.js → CSZ4_RTQ.js} +2 -2
- package/web/app/immutable/chunks/{CongIN9X.js → CS_zvIHS.js} +1 -1
- package/web/app/immutable/chunks/{Te3M5bc7.js → CVgZfK3-.js} +1 -1
- package/web/app/immutable/chunks/{Cz4cjwfL.js → CX9zash3.js} +1 -1
- package/web/app/immutable/chunks/{uA-GSod5.js → CYmzMH2T.js} +1 -1
- package/web/app/immutable/chunks/{CeNnTXT3.js → C_FFOKOn.js} +1 -1
- package/web/app/immutable/chunks/{D0X3JVqD.js → CcMBhJ58.js} +1 -1
- package/web/app/immutable/chunks/{Bp5ygEp6.js → CdJoXoLx.js} +1 -1
- package/web/app/immutable/chunks/{6mfqT9F0.js → CeCzBIMM.js} +1 -1
- package/web/app/immutable/chunks/{BAw6o6lJ.js → CfBY2vbK.js} +1 -1
- package/web/app/immutable/chunks/{DGsBebnq.js → CfBpHiou.js} +1 -1
- package/web/app/immutable/chunks/{rrF5Hl_J.js → CgGQ3Slz.js} +1 -1
- package/web/app/immutable/chunks/{BUxfGI8Z.js → ChBxJ_T2.js} +1 -1
- package/web/app/immutable/chunks/{Df1cVjK1.js → CiShviCo.js} +4 -4
- package/web/app/immutable/chunks/{BGVlzHwy.js → CkFE8VfK.js} +1 -1
- package/web/app/immutable/chunks/{Q2u3rFY1.js → ClR-TTMN.js} +2 -2
- package/web/app/immutable/chunks/{Yip29sR2.js → Cmf1A7_B.js} +1 -1
- package/web/app/immutable/chunks/{CEIySDvB.js → Cmr6Xpw3.js} +1 -1
- package/web/app/immutable/chunks/{BvP_3Sy4.js → Cmzu4CqY.js} +1 -1
- package/web/app/immutable/chunks/{CS36kkvG.js → Com4THH3.js} +1 -1
- package/web/app/immutable/chunks/{UFzyo4ne.js → CqF12LNt.js} +1 -1
- package/web/app/immutable/chunks/{B6Rs6hHm.js → Cql2yasp.js} +1 -1
- package/web/app/immutable/chunks/{t7BMdiLm.js → Cr_gbuBh.js} +1 -1
- package/web/app/immutable/chunks/{BJfxejEG.js → CrarsPv2.js} +1 -1
- package/web/app/immutable/chunks/{CDSYYpwa.js → CriyUZJv.js} +1 -1
- package/web/app/immutable/chunks/{CwSIKtqo.js → CszhQy-T.js} +1 -1
- package/web/app/immutable/chunks/{mklnjf4_.js → CtfKkjtt.js} +1 -1
- package/web/app/immutable/chunks/{C33zLAon.js → CwW1BUBB.js} +1 -1
- package/web/app/immutable/chunks/{BkVUImC4.js → D5SukII7.js} +1 -1
- package/web/app/immutable/chunks/{w-RLNdGr.js → D5nEFEMU.js} +1 -1
- package/web/app/immutable/chunks/{C1r_dvAi.js → D8KNd2JX.js} +1 -1
- package/web/app/immutable/chunks/{D5DS8MOZ.js → DACKa6C3.js} +1 -1
- package/web/app/immutable/chunks/{oLkbmMHL.js → DB_7wrc7.js} +1 -1
- package/web/app/immutable/chunks/{lF96b5e4.js → DBct6Vvn.js} +1 -1
- package/web/app/immutable/chunks/{CJGDfIog.js → DC6J5sZ-.js} +1 -1
- package/web/app/immutable/chunks/DCU5S8Gd.js +1 -0
- package/web/app/immutable/chunks/{DiXg0x-W.js → DD57Mp8Z.js} +1 -1
- package/web/app/immutable/chunks/{D3jilL3b.js → DDK55OAB.js} +1 -1
- package/web/app/immutable/chunks/{Jw-22-gH.js → DFKo1ZAJ.js} +1 -1
- package/web/app/immutable/chunks/{HoeZnZ3h.js → DFxsImeG.js} +1 -1
- package/web/app/immutable/chunks/{CbO_toqh.js → DFz-Vr9a.js} +1 -1
- package/web/app/immutable/chunks/{EzR2MUkx.js → DGC3jX9C.js} +3 -3
- package/web/app/immutable/chunks/{CB2itZPT.js → DGrFhzHu.js} +2 -2
- package/web/app/immutable/chunks/{Bq0kEo6t.js → DGsKwFeF.js} +1 -1
- package/web/app/immutable/chunks/{DH71XKkM.js → DHM3GVKY.js} +1 -1
- package/web/app/immutable/chunks/{LK9i1Fgb.js → DHMcsnK1.js} +1 -1
- package/web/app/immutable/chunks/{C9fQIDg9.js → DHt5Qx-W.js} +1 -1
- package/web/app/immutable/chunks/{bTkQsu94.js → DIGRq3Np.js} +1 -1
- package/web/app/immutable/chunks/{Cr8O6b9X.js → DJxE8cOI.js} +4 -4
- package/web/app/immutable/chunks/{DTULcguA.js → DM3bYLxj.js} +1 -1
- package/web/app/immutable/chunks/{C19ZZHpm.js → DOqOxnjD.js} +1 -1
- package/web/app/immutable/chunks/{CtxR6yc7.js → DOsLfX1h.js} +3 -3
- package/web/app/immutable/chunks/{DeqDTWfs.js → DPMpx6lS.js} +1 -1
- package/web/app/immutable/chunks/{Cp73wfaC.js → DPsGF2i5.js} +1 -1
- package/web/app/immutable/chunks/{6Ys1q35u.js → DS_3tw6q.js} +1 -1
- package/web/app/immutable/chunks/{DjeJHedD.js → DSvMjM09.js} +1 -1
- package/web/app/immutable/chunks/{B3-959pn.js → DTOf9l3E.js} +1 -1
- package/web/app/immutable/chunks/{Dukd5fsq.js → DTd1YpaC.js} +1 -1
- package/web/app/immutable/chunks/{BVb5pfaA.js → DTpHCyDe.js} +1 -1
- package/web/app/immutable/chunks/{C8n2AuxQ.js → DUOglMHy.js} +1 -1
- package/web/app/immutable/chunks/{BH9ttt95.js → DVh97JfW.js} +1 -1
- package/web/app/immutable/chunks/{DI5BNHva.js → DVqZmj-R.js} +1 -1
- package/web/app/immutable/chunks/{CbKxMrMY.js → D_qXZ-ka.js} +3 -3
- package/web/app/immutable/chunks/{CgDKiC6v.js → Dayd4Wgp.js} +2 -2
- package/web/app/immutable/chunks/{ElkcFG4d.js → De0AF9gl.js} +1 -1
- package/web/app/immutable/chunks/{BXrUMWsR.js → DePQKdPz.js} +1 -1
- package/web/app/immutable/chunks/{DACPyPs7.js → DgFsji4g.js} +1 -1
- package/web/app/immutable/chunks/{D1Ntri6z.js → Di6uZPiF.js} +1 -1
- package/web/app/immutable/chunks/{IJ5h6xZ4.js → DkNxxzmT.js} +1 -1
- package/web/app/immutable/chunks/{Dzimjbdi.js → DkxKadFP.js} +1 -1
- package/web/app/immutable/chunks/{BANaLpH3.js → DnE5aVuv.js} +1 -1
- package/web/app/immutable/chunks/{BuN1aIUI.js → DnEM5LKJ.js} +1 -1
- package/web/app/immutable/chunks/{CiLfhM-B.js → Do7HQr7r.js} +2 -2
- package/web/app/immutable/chunks/{C-uox8N9.js → DpQUJ1uI.js} +1 -1
- package/web/app/immutable/chunks/{Cnhc2tSL.js → Dp_sBH9q.js} +1 -1
- package/web/app/immutable/chunks/{B3vK-R-o.js → DrooRzRX.js} +1 -1
- package/web/app/immutable/chunks/{Dm2prBtG.js → Ds0y9W2N.js} +1 -1
- package/web/app/immutable/chunks/{D6EF8Ce7.js → Ds641dV5.js} +1 -1
- package/web/app/immutable/chunks/{waekWt8I.js → DsB3GaMq.js} +1 -1
- package/web/app/immutable/chunks/{CpA81uUD.js → DuJ8M51r.js} +1 -1
- package/web/app/immutable/chunks/{CMlYEClg.js → Duy6Dp7J.js} +1 -1
- package/web/app/immutable/chunks/{BNa1xVO7.js → Dwp3N9DW.js} +1 -1
- package/web/app/immutable/chunks/{Aq_hvPuk.js → DxrVr4Z-.js} +1 -1
- package/web/app/immutable/chunks/{DtDJkmRR.js → DzBqr5Ds.js} +1 -1
- package/web/app/immutable/chunks/{UEOyoIDp.js → DzTcsuyr.js} +1 -1
- package/web/app/immutable/chunks/{BUkZ_wc0.js → EYJa5XI2.js} +1 -1
- package/web/app/immutable/chunks/{DQ1jf8rv.js → F78VMou9.js} +2 -2
- package/web/app/immutable/chunks/{CGZwKPOh.js → GHkZED_H.js} +1 -1
- package/web/app/immutable/chunks/{FJwDbpvw.js → H0GxNKO6.js} +1 -1
- package/web/app/immutable/chunks/{6PSZ6lUf.js → HnBTNAMz.js} +1 -1
- package/web/app/immutable/chunks/{e95iwXST.js → IsiJ9INb.js} +1 -1
- package/web/app/immutable/chunks/{CBOwO-Mt.js → Jp68-Q2x.js} +1 -1
- package/web/app/immutable/chunks/{s9eau3Xa.js → Jy9V3N_7.js} +1 -1
- package/web/app/immutable/chunks/{DenIsJVL.js → K0azdCX9.js} +1 -1
- package/web/app/immutable/chunks/{BM_-VfIm.js → Kk07D7VE.js} +1 -1
- package/web/app/immutable/chunks/{DMWrQCj4.js → LXk8sd0A.js} +1 -1
- package/web/app/immutable/chunks/{D6xwyO9X.js → Lr6hvseQ.js} +1 -1
- package/web/app/immutable/chunks/{CE4Q63si.js → MQaqCR4A.js} +1 -1
- package/web/app/immutable/chunks/{DYk_WT-b.js → Njxs8gUf.js} +1 -1
- package/web/app/immutable/chunks/{BzC1GMNV.js → OiX-SxC_.js} +1 -1
- package/web/app/immutable/chunks/{A0CZ88DG.js → OwL7thrT.js} +1 -1
- package/web/app/immutable/chunks/{BxMZftIo.js → PWYpp4hZ.js} +1 -1
- package/web/app/immutable/chunks/{fxbWd_e1.js → UJwgGUj4.js} +1 -1
- package/web/app/immutable/chunks/{qMMt4K52.js → UgfAVREY.js} +1 -1
- package/web/app/immutable/chunks/{Cv5hE_ED.js → XUEHMX7O.js} +1 -1
- package/web/app/immutable/chunks/{BLPQXyX_.js → Z6bOeoYv.js} +1 -1
- package/web/app/immutable/chunks/{D51GwsQ1.js → ZOO6Vfpu.js} +1 -1
- package/web/app/immutable/chunks/{BI00pPJ1.js → a8E6fbkW.js} +1 -1
- package/web/app/immutable/chunks/{UOvnclhB.js → aZQ0-tdp.js} +4 -4
- package/web/app/immutable/chunks/{DtIgh-Wb.js → bxUMV0oT.js} +1 -1
- package/web/app/immutable/chunks/{BQM-54by.js → c3Abb5qo.js} +1 -1
- package/web/app/immutable/chunks/{BsLu-N-o.js → cOSCr41c.js} +1 -1
- package/web/app/immutable/chunks/{B05_pVBL.js → caVSTeyS.js} +1 -1
- package/web/app/immutable/chunks/{CKaz-nQX.js → cfpFgXT5.js} +1 -1
- package/web/app/immutable/chunks/{D8hmEpbp.js → e0v3-ZIG.js} +1 -1
- package/web/app/immutable/chunks/{CVma05vh.js → i9DY-0TX.js} +1 -1
- package/web/app/immutable/chunks/{4c21rJgy.js → kSHx_2s_.js} +1 -1
- package/web/app/immutable/chunks/{Dqugp38s.js → qasXuzlR.js} +1 -1
- package/web/app/immutable/chunks/{Dcg7SWi9.js → qj5yCt7h.js} +1 -1
- package/web/app/immutable/chunks/{Ci0AQ6w8.js → qkfs_BCa.js} +1 -1
- package/web/app/immutable/chunks/{C6HFp_sK.js → qqmEa9H6.js} +1 -1
- package/web/app/immutable/chunks/{BrgQitGU.js → sSa7Wn7K.js} +1 -1
- package/web/app/immutable/chunks/{D5DbIKBx.js → sXvRCqUb.js} +1 -1
- package/web/app/immutable/chunks/{BjM2Qc64.js → tdATXSHH.js} +1 -1
- package/web/app/immutable/chunks/{CR9OjoGG.js → tuQscXjh.js} +1 -1
- package/web/app/immutable/chunks/{DWTk7BzJ.js → uYOEUrhQ.js} +1 -1
- package/web/app/immutable/chunks/{DnQbQ1Ee.js → vJt7gt7x.js} +7 -7
- package/web/app/immutable/chunks/{CkoWrmIy.js → y3HzT_To.js} +1 -1
- package/web/app/immutable/chunks/{DrDKCvwv.js → yL59xdGf.js} +1 -1
- package/web/app/immutable/chunks/{CZvE7cU6.js → yvuwpbPL.js} +1 -1
- package/web/app/immutable/chunks/{BAR8yUHQ.js → zd6Cuy6l.js} +1 -1
- package/web/app/immutable/entry/app.DY99f_Ty.js +4 -0
- package/web/app/immutable/entry/start.BcYitP96.js +1 -0
- package/web/app/immutable/nodes/{0.BoxQzHDp.js → 0.C4LmvMoM.js} +1 -1
- package/web/app/immutable/nodes/{1.DU9opyfh.js → 1.BYE5bJSa.js} +1 -1
- package/web/app/immutable/nodes/{10.eExevNYJ.js → 10.BrKhL_G6.js} +1 -1
- package/web/app/immutable/nodes/{12.DyoMTbCQ.js → 12.BGqWnph6.js} +1 -1
- package/web/app/immutable/nodes/{13.C0iYfqVI.js → 13.vfNjr05l.js} +1 -1
- package/web/app/immutable/nodes/{14.KEg9Fqc4.js → 14.U6Ne_Zng.js} +1 -1
- package/web/app/immutable/nodes/{15.F8zDHy08.js → 15.DHcLeO2-.js} +1 -1
- package/web/app/immutable/nodes/{16.dAZs6dYD.js → 16.Brkz5pXG.js} +2 -2
- package/web/app/immutable/nodes/{2.BrvzcNmI.js → 2.BsPWX-pi.js} +4 -4
- package/web/app/immutable/nodes/{3.ByPIR3CM.js → 3.CYtb_dsh.js} +1 -1
- package/web/app/immutable/nodes/{4.JEfjf0UF.js → 4.DWQJjc9i.js} +1 -1
- package/web/app/immutable/nodes/{5.BUymCG_x.js → 5.BrUyXV_u.js} +1 -1
- package/web/app/immutable/nodes/{6.Btna6Yhq.js → 6.CA6jFqpu.js} +1 -1
- package/web/app/immutable/nodes/{7.BHmutzAv.js → 7.BYZ_h1_W.js} +1 -1
- package/web/app/immutable/nodes/{8.Ctc8SBWw.js → 8.ie9sNdo3.js} +4 -4
- package/web/app/immutable/nodes/{9.Cwg6B2vl.js → 9.nBlKsA0T.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/index.html +11 -10
- package/web/app/immutable/chunks/BH6SkDfK.js +0 -1
- package/web/app/immutable/chunks/CmlEVTR3.js +0 -410
- package/web/app/immutable/chunks/DK5QZ1vP.js +0 -1
- package/web/app/immutable/chunks/DW3Zf5Ax.js +0 -1
- package/web/app/immutable/entry/app.b6gE4ET2.js +0 -4
- package/web/app/immutable/entry/start.BoRhInyV.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as I,bq as s,a_ as O,by as z,br as P,b as N,bu as M,bs as Q}from"./GWL2EpD7.js";import{aG as V,bs as A,c5 as p,aD as x,a5 as R,bS as Y,bf as B,bA as W,W as S,bn as E,c9 as H,aA as n,aB as G,ca as T,a7 as Z,ay as $}from"./B8o4lNgr.js";import{s as q}from"./vOveF3fP.js";import{c as L,f as w}from"./CYiv-51w.js";import{b as U}from"./D2g8BuR1.js";import{u as ee,c as D,s as te,b as re,a as ae}from"./D2AmAQEr.js";import{C as se}from"./
|
|
1
|
+
import{t as I,bq as s,a_ as O,by as z,br as P,b as N,bu as M,bs as Q}from"./GWL2EpD7.js";import{aG as V,bs as A,c5 as p,aD as x,a5 as R,bS as Y,bf as B,bA as W,W as S,bn as E,c9 as H,aA as n,aB as G,ca as T,a7 as Z,ay as $}from"./B8o4lNgr.js";import{s as q}from"./vOveF3fP.js";import{c as L,f as w}from"./CYiv-51w.js";import{b as U}from"./D2g8BuR1.js";import{u as ee,c as D,s as te,b as re,a as ae}from"./D2AmAQEr.js";import{C as se}from"./CRK47dBR.js";import{G0 as ne,qX as oe,bb as ie}from"./C2YltVuJ.js";import{aU as de}from"./CiShviCo.js";import{m as ce}from"./DY0zw3Os.js";import{bs as le}from"./DkNxxzmT.js";import{M as ue}from"./C8BD21JK.js";const fe=Symbol("card-group"),ve=()=>V(fe);var me=new Set(["$$slots","$$events","$$legacy","ref","class","inert","interactive","level","border","selected","media","children"]),be=G('<div data-slot="card-media" class="shrink-0 p-4"><!></div>'),ge=G("<div><!> <!></div>");function he(o,e){if(new.target)return I({component:he,...o});A(e,!0);let i=s(e,"ref",15,null),c=s(e,"class",7),a=s(e,"inert",7,!1),u=s(e,"interactive",7,!1),v=s(e,"level",7),f=s(e,"border",7),l=s(e,"selected",7,!1),b=s(e,"media",7),r=s(e,"children",7),g=P(e,me);const m=ve(),k=H(()=>f()==="outlined"||f()===void 0&&(!m||m.border==="outlined"&&m.separated)),y=ee(),d=D(p(()=>v()??y+1));te(d);const C=D(d+1);var X={get ref(){return i()},set ref(t=null){i(t),n()},get class(){return c()},set class(t){c(t),n()},get inert(){return a()},set inert(t=!1){a(t),n()},get interactive(){return u()},set interactive(t=!1){u(t),n()},get level(){return v()},set level(t){v(t),n()},get border(){return f()},set border(t){f(t),n()},get selected(){return l()},set selected(t=!1){l(t),n()},get media(){return b()},set media(t){b(t),n()},get children(){return r()},set children(t){r(t),n()},$set:z,$on:(t,_)=>N(e,t,_)},h=ge();L(h,t=>({"data-slot":"card","data-selected":l()||void 0,"data-orientation":m?.orientation,"data-surface-level":d,"data-inert":a()||void 0,"data-interactive":u()||void 0,inert:a(),class:t,...g}),[()=>w("flex min-w-0 flex-col overflow-hidden rounded-md text-card-foreground",x(k)?m?"border border-border bg-transparent":ae(d):"bg-transparent",l()&&"bg-selected",m?.orientation==="inline"&&"flex-row items-center [&>[data-slot=card-header]]:min-w-0 [&>[data-slot=card-header]]:flex-1",m&&"relative",u()?w("cursor-pointer transition-[background-color,box-shadow] duration-(--motion-fast) ease-(--ease-standard)","focus-visible:outline focus-visible:-outline-offset-1","active:bg-active data-[state=pressed]:bg-active motion-reduce:transition-none",re(C)):"",c())]);var K=R(h);{var j=t=>{var _=be(),J=R(_);q(J,b),W(_),S(t,_)};O(K,t=>{b()&&t(j)})}var F=Y(K,2);return q(F,()=>r()??B),W(h),U(h,t=>i(t),()=>i()),S(o,h),E(X)}var _e=new Set(["$$slots","$$events","$$legacy","ref","class","flush","children"]),pe=G("<div><!></div>");function Se(o,e){if(new.target)return I({component:Se,...o});A(e,!0);let i=s(e,"ref",15,null),c=s(e,"class",7),a=s(e,"flush",7,!1),u=s(e,"children",7),v=P(e,_e);var f={get ref(){return i()},set ref(r=null){i(r),n()},get class(){return c()},set class(r){c(r),n()},get flush(){return a()},set flush(r=!1){a(r),n()},get children(){return u()},set children(r){u(r),n()},$set:z,$on:(r,g)=>N(e,r,g)},l=pe();L(l,r=>({"data-slot":"card-content","data-flush":a()||void 0,class:r,...v}),[()=>w("type-body min-w-0",a()?"p-0":w(se,"py-4 first:pt-4"),c())]);var b=R(l);return q(b,()=>u()??B),W(l),U(l,r=>i(r),()=>i()),S(o,l),E(f)}function Ge(o){const e=()=>ne.dispatch(oe({quiet:o.quiet}));T(()=>{o.key?.(),o.active()&&p(e)});const i=H(()=>o.workspaces().some(a=>a.status===ie.Retired));let c=p(()=>x(i));T(()=>{const a=x(i);p(()=>{c&&!a&&o.active()&&e(),c=a})})}function we(o,e){if(new.target)return I({component:we,...o});A(e,!0);const i=()=>M(l,"$connected$",a),c=()=>M(b,"$slot$",a),[a,u]=Q();let v=s(e,"workspaceId",7),f=s(e,"size",7,"default");const l=ce(),b=le(de(()=>v()));var r={get workspaceId(){return v()},set workspaceId(d){v(d),n()},get size(){return f()},set size(d="default"){f(d),n()},$set:z,$on:(d,C)=>N(e,d,C)},g=Z(),m=$(g);{var k=d=>{ue(d,{get slot(){return c()},get size(){return f()}})};O(m,d=>{i()&&c()!==null&&d(k)})}S(o,g);var y=E(r);return u(),y}export{he as C,we as W,Se as a,Ge as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aM as Ft,ao as Rt,Y as Ve}from"./Df1cVjK1.js";import{bI as At,aD as _,aG as Et,bH as Le,bV as it,bs as Bt,ca as Wt,a5 as W,bA as L,W as o,bS as c,b_ as u,bn as Lt,c9 as S,aA as O,bl as E,bO as l,b$ as A,aB as N,bf as G,a7 as Y,ay as x,be as Pe,am as Re,ax as Ae}from"./B8o4lNgr.js";import{t as Ut,bq as F,a_ as I,by as jt,bu as Xe,bs as Mt,b as zt,bo as d}from"./GWL2EpD7.js";import{z as Je}from"./BeYie-c5.js";import{s as Qe}from"./vOveF3fP.js";import{H as X,b as Ze,C as le}from"./bocWuth7.js";import{l as Ee,k as et,s as tt}from"./CYiv-51w.js";import{F as $t,bi as Yt,aI as Ht,cy as Kt,cc as qt}from"./BM7uH7Bn.js";import{n as Gt}from"./Dz9B-9IH.js";import{f as Be}from"./CgDKiC6v.js";import"./ChTqQfQN.js";import"./QjTmIbp0.js";import"./C2YltVuJ.js";import{p as Vt,g as Xt,S as Jt}from"./C7i9B-ha.js";import{O as We}from"./nSxzXlBd.js";import{bi as Qt,D as Zt,r as ea}from"./stotUVND.js";import{d as ta}from"./w-RLNdGr.js";import{s as aa,f as ra,c as at}from"./AKm8RH33.js";function ja(z){let C=0,$=!1;function _e(D){$!==D&&($=D,z.onDragChange(D))}function pe(){C=0,_e(!1)}function ae(D){return z.isEnabled&&!z.isEnabled()?!1:Rt(D)}return{handleDragEnter(D){ae(D)&&(D.preventDefault(),C++,_e(!0))},handleDragLeave(D){ae(D)&&(D.preventDefault(),C=Math.max(0,C-1),C===0&&_e(!1))},handleDragOver(D){ae(D)&&D.preventDefault()},handleDrop(D){if(!ae(D))return;D.preventDefault(),pe();const K=Ft(D.dataTransfer);(K.files.length>0||K.folderFiles.length>0)&&z.onDrop(K)},reset:pe}}const lt=Symbol("panel-file-drop-context");function Ma(){let z=it(null);const C={register($){Le(z,$)},unregister($){_(z)===$&&Le(z,null)}};return At(lt,C),{context:C,handler:{get current(){return _(z)}}}}function za(){return Et(lt)??null}var na=N('<span class="inline-flex items-center gap-1.5 svelte-enden2"> </span>'),sa=N('<h3 class="text-lg font-semibold tracking-[-0.016em] transition-colors duration-spring-slow ease-spring-slow motion-reduce:transition-none svelte-enden2"><!></h3>'),oa=N('<span class="inline-block col-span-1 row-span-1 svelte-enden2"> </span>'),ia=N('<span class="text-sm font-mono text-muted-foreground tabular-nums svelte-enden2"><span class="inline-grid *:[grid-area:1/1] svelte-enden2"><!></span> </span>'),la=N('<div class="absolute inset-0 left-5 svelte-enden2"><!></div>'),rt=N('<div class="svelte-enden2"><!></div>'),da=N('<div class="relative flex items-start overflow-hidden rounded-md py-0.75 text-base leading-relaxed svelte-enden2"><!> <span data-testid="workspace-setup-step-icon"><!></span> <div class="setup-step-content min-w-0 text-muted-foreground font-normal leading-snug relative z-10 svelte-enden2" data-testid="workspace-setup-step-content"><!></div></div>'),_a=N('<span data-testid="setup-card-progress-label" class="svelte-enden2"> </span> <div class="mt-1 h-[2px] w-full max-w-64 rounded-full bg-secondary overflow-hidden svelte-enden2"><div class="h-full bg-foreground/60 transition-[width] duration-spring-slow ease-spring-slow motion-reduce:transition-none svelte-enden2" role="progressbar" aria-valuemin="0" aria-valuemax="100" data-testid="setup-card-progress-bar"></div></div>',1),de=N(" <!>",1),pa=N('<span data-testid="setup-card-plain-folder" class="svelte-enden2"> <!> </span>'),va=N(' <code class="text-sm bg-secondary py-1 px-1.5 svelte-enden2"> </code> <!>',1),nt=N(" <!> <!>",1),ca=N(' <span class="svelte-enden2"> </span> ',1),ua=N(' <span class="svelte-enden2"> </span> <!>',1),ga=N('<span class="underline underline-offset-2 svelte-enden2"> </span><span class="whitespace-nowrap svelte-enden2"><span class="underline underline-offset-2 svelte-enden2"> </span><span class="setup-reference-punctuation svelte-enden2" aria-hidden="true"> </span></span>',1),fa=N("<!> ",1),st=N('<span class="svelte-enden2"> </span>'),te=N(" <!> ",1),ma=N('<pre class="text-xs text-muted-foreground font-mono leading-snug line-clamp-2 whitespace-pre-wrap svelte-enden2"> </pre>'),ot=N('<span class="text-xs text-muted-foreground opacity-50 svelte-enden2"> </span>'),ba=N(" <!> <!> ",1),xa=N('<p class="text-xs text-muted-foreground leading-snug svelte-enden2"> </p>'),ha=N('<div><div class="flex items-baseline gap-2.5 pt-3 pb-2 svelte-enden2"><div class="inline-grid *:[grid-area:1/1] svelte-enden2"><!></div> <!></div> <div class="space-y-0.5 pb-4 svelte-enden2"><!> <!> <!> <!></div></div>');function Ca(z,C){if(new.target)return Ut({component:Ca,...z});Bt(C,!0);const $=()=>Xe(dt,"$progressEntry$",pe),_e=()=>Xe(_t,"$specialists$",pe),[pe,ae]=Mt();let D=F(C,"repoName",7),K=F(C,"repoPath",7),q=F(C,"worktreePath",7),ve=F(C,"workspaceId",7),H=F(C,"branch",7),ce=F(C,"baseRef",7,"origin/main"),re=F(C,"projectType",7),J=F(C,"setupScriptStatus",7),Ce=F(C,"setupScriptContent",7),we=F(C,"onFocusSetupTerminal",7),Ie=F(C,"specialistName",7),U=F(C,"specialistId",7),ne=F(C,"hasPrompt",7,!0),se=F(C,"repoStatus",7,"pending"),ue=F(C,"branchStatus",7,"pending"),ge=F(C,"agentStatus",7,"pending"),Q=F(C,"skipIsolation",7,!1),oe=F(C,"plainFolder",7,!1),De=F(C,"progressId",7);const dt=aa(De()??""),_t=Qt();let fe=it(0);Wt(()=>{const i=Math.min($()?.percent??0,100);i>_(fe)&&Le(fe,i,!0)});const pt=S(()=>$()?.sawFrame===!0),vt=S(()=>ce().replace(/^[^/]+\//,"")),Ne=S(()=>U()?ea(U()):void 0),ct=S(()=>U()?_e().find(i=>i.id===U()):void 0),ut=S(()=>_(ct)?.name||_(Ne)?.name||Ie()),Ue=S(()=>U()==="spec-writer"||U()===Zt),je=S(()=>{const i=oe()?[se()]:[se(),ue()];return J()&&i.push(J()),i.push(ge()),i}),Te=S(()=>_(je).length),Me=S(()=>_(je).filter(i=>i==="done").length),ze=S(()=>Math.min(_(Me)+1,_(Te))),Se=S(()=>_(Me)===_(Te)),$e=S(()=>_(Se)?d.onboarding_setupCard_ready_title():d.onboarding_setupCard_settingUp_title());function gt(i,R){navigator.clipboard.writeText(i),Gt.success(d.onboarding_setupCard_copied_label({label:R}))}function Oe(i){return i.replace(/^\/Users\/[^/]+/,"~")}function ft(){U()&&ta({specialist:U(),hash:"specialists"})}var mt={get repoName(){return D()},set repoName(i){D(i),O()},get repoPath(){return K()},set repoPath(i){K(i),O()},get worktreePath(){return q()},set worktreePath(i){q(i),O()},get workspaceId(){return ve()},set workspaceId(i){ve(i),O()},get branch(){return H()},set branch(i){H(i),O()},get baseRef(){return ce()},set baseRef(i="origin/main"){ce(i),O()},get projectType(){return re()},set projectType(i){re(i),O()},get setupScriptStatus(){return J()},set setupScriptStatus(i){J(i),O()},get setupScriptContent(){return Ce()},set setupScriptContent(i){Ce(i),O()},get onFocusSetupTerminal(){return we()},set onFocusSetupTerminal(i){we(i),O()},get specialistName(){return Ie()},set specialistName(i){Ie(i),O()},get specialistId(){return U()},set specialistId(i){U(i),O()},get hasPrompt(){return ne()},set hasPrompt(i=!0){ne(i),O()},get repoStatus(){return se()},set repoStatus(i="pending"){se(i),O()},get branchStatus(){return ue()},set branchStatus(i="pending"){ue(i),O()},get agentStatus(){return ge()},set agentStatus(i="pending"){ge(i),O()},get skipIsolation(){return Q()},set skipIsolation(i=!1){Q(i),O()},get plainFolder(){return oe()},set plainFolder(i=!1){oe(i),O()},get progressId(){return De()},set progressId(i){De(i),O()},$set:jt,$on:(i,R)=>zt(C,i,R)},ye=ha(),ke=W(ye);Ee(ke,"",{},{"padding-inline":"var(--operational-row-inline-padding)"});var Fe=W(ke),bt=W(Fe);Je(bt,()=>_(Se),i=>{var R=sa(),Z=W(R);{var me=M=>{var B=na(),xe=E(B,!0);u(()=>l(xe,_($e))),o(M,B)},be=M=>{var B=A();u(()=>l(B,_($e))),o(M,B)};I(Z,M=>{_(Se)?M(me):M(be,-1)})}L(R),X(1,R,()=>Ze,()=>({tier:"slow",distance:3})),X(2,R,()=>Ze,()=>({tier:"slow",distance:3})),o(i,R)}),L(Fe);var xt=c(Fe,2);{var ht=i=>{var R=ia(),Z=W(R),me=W(Z);Je(me,()=>_(ze),M=>{var B=oa(),xe=E(B,!0);u(()=>l(xe,_(ze))),X(1,B,()=>le,()=>({axis:"y",tier:"slow"})),o(M,B)}),L(Z);var be=c(Z);L(R),u(()=>l(be,`/${_(Te)??""}`)),o(i,R)};I(xt,i=>{_(Se)||i(ht)})}L(ke);var Ye=c(ke,2);{const i=(f,m=G,y=G,k=G,w=G,b=G)=>{var n=da();Ee(n,"",{},{gap:"0.25rem","padding-inline":"var(--operational-row-inline-padding)"});var t=W(n);{var e=h=>{var P=la(),T=W(P);Jt(T,{}),L(P),o(h,P)};I(t,h=>{m()==="active"&&h(e)})}var a=c(t,2),r=W(a);$t(r,{get icon(){return y()},size:14,get class(){return k()}}),L(a);var s=c(a,2),p=W(s);{var g=h=>{var P=rt(),T=W(P);Qe(T,w),L(P),X(1,P,()=>le,()=>({axis:"y",tier:"moderate"})),X(2,P,()=>le,()=>({axis:"y",tier:"moderate"})),o(h,P)},v=h=>{var P=rt(),T=W(P);Qe(T,b),L(P),X(1,P,()=>le,()=>({axis:"y",tier:"moderate"})),X(2,P,()=>le,()=>({axis:"y",tier:"moderate"})),o(h,P)};I(p,h=>{m()==="active"?h(g):h(v,-1)})}L(s),L(n),u(()=>et(a,1,`${Xt} relative z-10 mt-1 flex size-4 shrink-0 items-center justify-start`,"svelte-enden2")),X(3,n,()=>le,()=>({tier:"slow"})),o(f,n)},R=(f,m)=>{let y=Re(()=>Ae(m?.(),""));var k=Y(),w=x(k);{var b=t=>{{let e=S(()=>d.onboarding_setupCard_originalFolder_label());B(t,D,()=>_(e),K,()=>_(y))}},n=t=>{var e=A();u(()=>l(e,`${D()??""}${_(y)??""}`)),o(t,e)};I(w,t=>{K()?t(b):t(n,-1)})}o(f,k)},Z=f=>{var m=Y(),y=x(m);{var k=n=>{var t=_a(),e=x(t),a=E(e,!0),r=c(e,2),s=E(r);u((p,g)=>{l(a,p),Ee(s,`width: ${_(fe)??""}%`),tt(s,"aria-label",g),tt(s,"aria-valuenow",_(fe))},[()=>d.workspace_compactInitializer_progressWithPercent_label({label:at($()),percent:ra(_(fe))}),()=>at($())]),o(n,t)},w=n=>{var t=de(),e=x(t),a=c(e);{let r=S(()=>d.onboarding_setupCard_opening_after());R(a,()=>_(r))}u(r=>l(e,`${r??""} `),[()=>d.onboarding_setupCard_opening_before()]),o(n,t)},b=n=>{var t=de(),e=x(t),a=c(e);R(a),u(r=>l(e,`${r??""} `),[()=>d.onboarding_setupCard_creatingIsolatedCopy_before()]),o(n,t)};I(y,n=>{_(pt)&&$()?n(k):Q()||oe()?n(w,1):n(b,-1)})}o(f,m)},me=f=>{var m=Y(),y=x(m);{var k=n=>{const t=S(()=>q()||K());var e=pa(),a=W(e),r=c(a);{var s=v=>{We(v,{get filePath(){return _(t)},get workspaceId(){return ve()},isDirectory:!0,variant:"sidebar",compact:!0,inline:!0,class:"setup-path",children:(h,P)=>{{let T=S(()=>Oe(_(t)));M(h,()=>_(T),()=>".")}},$$slots:{default:!0}})},p=v=>{var h=A();u(()=>l(h,`${D()??""}.`)),o(v,h)};I(r,v=>{_(t)?v(s):v(p,-1)})}var g=c(r);L(e),u((v,h)=>{l(a,`${v??""} `),l(g,` ${h??""}`)},[()=>d.onboarding_setupCard_workingInFolder_before(),()=>d.onboarding_setupCard_plainFolderInPlace_label()]),o(n,e)},w=n=>{var t=va(),e=x(t),a=c(e),r=E(a,!0),s=c(a,2);{var p=v=>{var h=de(),P=x(h),T=c(P);We(T,{get filePath(){return q()},get workspaceId(){return ve()},isDirectory:!0,variant:"sidebar",compact:!0,inline:!0,class:"setup-path",children:(j,ee)=>{{let V=S(()=>Oe(q()));M(j,()=>_(V),()=>".")}},$$slots:{default:!0}}),u(j=>l(P,` ${j??""} `),[()=>d.onboarding_setupCard_at_label()]),o(v,h)},g=v=>{var h=A(".");o(v,h)};I(s,v=>{q()?v(p):v(g,-1)})}u(v=>{l(e,`${v??""} `),l(r,_(vt))},[()=>d.onboarding_setupCard_workingDirectlyOn_before()]),o(n,t)},b=n=>{var t=nt(),e=x(t),a=c(e);R(a);var r=c(a,2);{var s=g=>{var v=de(),h=x(v),P=c(h);We(P,{get filePath(){return q()},get workspaceId(){return ve()},isDirectory:!0,variant:"sidebar",compact:!0,inline:!0,class:"setup-path",children:(T,j)=>{{let ee=S(()=>Oe(q()));M(T,()=>_(ee),()=>".")}},$$slots:{default:!0}}),u(T=>l(h,` ${T??""} `),[()=>d.onboarding_setupCard_at_label()]),o(g,v)},p=g=>{var v=A(".");o(g,v)};I(r,g=>{q()?g(s):g(p,-1)})}u(g=>l(e,`${g??""} `),[()=>d.onboarding_setupCard_createdIsolatedCopy_before()]),o(n,t)};I(y,n=>{oe()?n(k):Q()?n(w,1):n(b,-1)})}o(f,m)},be=f=>{var m=Y(),y=x(m);{var k=n=>{var t=Y(),e=x(t);{var a=s=>{var p=ca(),g=x(p),v=c(g),h=E(v,!0),P=c(v,1,!0);u((T,j)=>{l(g,`${T??""} `),l(h,H()),l(P,j)},[()=>d.onboarding_setupCard_workingOnBranchNamed_before(),()=>d.onboarding_setupCard_workingOnBranchActive_after()]),o(s,p)},r=s=>{var p=A();u(g=>l(p,g),[()=>d.onboarding_setupCard_workingOnBranch_label()]),o(s,p)};I(e,s=>{H()?s(a):s(r,-1)})}o(n,t)},w=n=>{var t=ua(),e=x(t),a=c(e),r=E(a,!0),s=c(a),p=c(s);{let g=S(()=>d.onboarding_setupCard_baseRef_label()),v=S(()=>d.onboarding_setupCard_creatingBranch_after());B(p,ce,()=>_(g),()=>{},()=>_(v))}u((g,v)=>{l(e,`${g??""} `),l(r,H()),l(s,` ${v??""} `)},[()=>d.onboarding_setupCard_creatingBranch_before(),()=>d.onboarding_setupCard_creatingBranch_middle()]),o(n,t)},b=n=>{var t=A();u(e=>l(t,e),[()=>d.onboarding_setupCard_creatingBranchNoName_label()]),o(n,t)};I(y,n=>{Q()?n(k):H()?n(w,1):n(b,-1)})}o(f,m)},M=(f,m=G,y)=>{let k=Re(()=>Ae(y?.(),""));const w=S(()=>Array.from(m()));var b=ga(),n=x(b),t=E(n,!0),e=c(n),a=W(e),r=E(a,!0),s=c(a),p=E(s,!0);L(e),u((g,v)=>{l(t,g),l(r,v),l(p,_(k))},[()=>_(w).slice(0,-1).join(""),()=>_(w).at(-1)??""]),o(f,b)},B=(f,m=G,y=G,k=G,w)=>{let b=Re(()=>Ae(w?.(),""));const n=S(()=>_(b).match(/^\p{P}+/u)?.[0]??"");var t=fa(),e=x(t);Be(e,{variant:"plain",wrapContent:!1,class:"setup-inline-link cursor-pointer hover:text-foreground transition-colors",onclick:()=>gt(k()??m(),y()),children:(r,s)=>{M(r,m,()=>_(n))},$$slots:{default:!0}});var a=c(e,1,!0);u(r=>l(a,r),[()=>_(b).slice(_(n).length)]),o(f,t)},xe=f=>{var m=Y(),y=x(m);{var k=n=>{var t=Y(),e=x(t);{var a=s=>{var p=de(),g=x(p),v=c(g);{let h=S(()=>d.onboarding_setupCard_branchName_label()),P=S(()=>d.onboarding_setupCard_workingOnBranchDone_after());B(v,H,()=>_(h),()=>{},()=>_(P))}u(h=>l(g,`${h??""} `),[()=>d.onboarding_setupCard_workingOnBranchNamed_before()]),o(s,p)},r=s=>{var p=A();u(g=>l(p,g),[()=>d.onboarding_setupCard_workingDirectlyOnBranch_label()]),o(s,p)};I(e,s=>{H()?s(a):s(r,-1)})}o(n,t)},w=n=>{var t=nt(),e=x(t),a=c(e);{let s=S(()=>d.onboarding_setupCard_branchName_label()),p=S(()=>d.onboarding_setupCard_workingInNewBranch_middle());B(a,H,()=>_(s),()=>{},()=>_(p))}var r=c(a,2);{let s=S(()=>d.onboarding_setupCard_baseRef_label()),p=S(()=>d.onboarding_setupCard_workingInNewBranch_after());B(r,ce,()=>_(s),()=>{},()=>_(p))}u(s=>l(e,`${s??""} `),[()=>d.onboarding_setupCard_workingInNewBranch_before()]),o(n,t)},b=n=>{var t=A();u(e=>l(t,e),[()=>d.onboarding_setupCard_branchCreated_label()]),o(n,t)};I(y,n=>{Q()?n(k):H()?n(w,1):n(b,-1)})}o(f,m)},It=f=>{Pe();var m=te(),y=x(m),k=c(y);{var w=t=>{var e=st(),a=E(e,!0);u(()=>l(a,re())),o(t,e)},b=t=>{var e=A();u(a=>l(e,a),[()=>d.onboarding_setupCard_project_label()]),o(t,e)};I(k,t=>{re()?t(w):t(b,-1)})}var n=c(k);u((t,e)=>{l(y,`${t??""} `),l(n,` ${e??""}`)},[()=>d.onboarding_setupCard_runningSetup_before(),()=>d.onboarding_setupCard_runningSetup_after()]),o(f,m)},Dt=f=>{Pe();var m=ba(),y=x(m),k=c(y);{var w=r=>{var s=st(),p=E(s,!0);u(()=>l(p,re())),o(r,s)},b=r=>{var s=A();u(p=>l(s,p),[()=>d.onboarding_setupCard_project_label()]),o(r,s)};I(k,r=>{re()?r(w):r(b,-1)})}var n=c(k),t=c(n);{var e=r=>{var s=de(),p=x(s),g=c(p);Ve(g,{class:"inline",side:"bottom",align:"start",interactive:!0,maxWidth:"22rem",delayDuration:300,trigger:T=>{Be(T,{variant:"plain",wrapContent:!1,class:"setup-inline-link underline underline-offset-2 cursor-pointer hover:text-foreground transition-colors",get onclick(){return we()},children:(j,ee)=>{Pe();var V=A();u(he=>l(V,he),[()=>d.onboarding_setupCard_terminalTab_label()]),o(j,V)},$$slots:{default:!0}})},content:T=>{var j=Y(),ee=x(j);{var V=he=>{var Ge=ma(),Ot=E(Ge,!0);u(()=>l(Ot,Ce())),o(he,Ge)};I(ee,he=>{Ce()&&he(V)})}o(T,j)},footer:T=>{var j=ot(),ee=E(j,!0);u(V=>l(ee,V),[()=>d.onboarding_setupCard_openTerminal_footer()]),o(T,j)},$$slots:{trigger:!0,content:!0,footer:!0}}),u(v=>l(p,` ${v??""} `),[()=>d.onboarding_setupCard_ranSetupIn_middle()]),o(r,s)};I(t,r=>{we()&&r(e)})}var a=c(t,1,!0);u((r,s,p)=>{l(y,`${r??""} `),l(n,` ${s??""}`),l(a,p)},[()=>d.onboarding_setupCard_ranSetup_before(),()=>d.onboarding_setupCard_ranSetup_middle(),()=>d.onboarding_setupCard_ranSetup_after()]),o(f,m)},ie=f=>{Ve(f,{class:"inline",side:"bottom",align:"start",interactive:!0,maxWidth:"22rem",delayDuration:300,trigger:w=>{Be(w,{variant:"plain",wrapContent:!1,class:"setup-inline-link underline underline-offset-2 cursor-pointer hover:text-foreground transition-colors",onclick:ft,children:(b,n)=>{Pe();var t=A();u(()=>l(t,_(ut))),o(b,t)},$$slots:{default:!0}})},content:w=>{var b=Y(),n=x(b);{var t=e=>{var a=xa(),r=E(a,!0);u(()=>l(r,_(Ne).description)),o(e,a)};I(n,e=>{_(Ne)&&e(t)})}o(w,b)},footer:w=>{var b=ot(),n=E(b,!0);u(t=>l(n,t),[()=>d.onboarding_setupCard_editInSettings_footer()]),o(w,b)},$$slots:{trigger:!0,content:!0,footer:!0}})},Nt=f=>{var m=Y(),y=x(m);{var k=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_agentReadyNamed_before(),()=>d.onboarding_setupCard_agentReadyNamed_after()]),o(e,a)},w=e=>{var a=A();u(r=>l(a,r),[()=>d.onboarding_setupCard_agentReady_label()]),o(e,a)},b=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_specStartingUp_before(),()=>d.onboarding_setupCard_specStartingUp_after()]),o(e,a)},n=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_startingUpNamed_before(),()=>d.onboarding_setupCard_startingUpNamed_after()]),o(e,a)},t=e=>{var a=A();u(r=>l(a,r),[()=>d.onboarding_setupCard_startingUp_label()]),o(e,a)};I(y,e=>{!ne()&&U()?e(k):ne()?_(Ue)?e(b,2):U()?e(n,3):e(t,-1):e(w,1)})}o(f,m)},Tt=f=>{var m=Y(),y=x(m);{var k=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_agentReadyNamed_before(),()=>d.onboarding_setupCard_agentReadyNamed_after()]),o(e,a)},w=e=>{var a=A();u(r=>l(a,r),[()=>d.onboarding_setupCard_agentReady_label()]),o(e,a)},b=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_specDone_before(),()=>d.onboarding_setupCard_specDone_after()]),o(e,a)},n=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_agentDoneNamed_before(),()=>d.onboarding_setupCard_agentDoneNamed_after()]),o(e,a)},t=e=>{var a=A();u(r=>l(a,r),[()=>d.onboarding_setupCard_agentOrienting_label()]),o(e,a)};I(y,e=>{!ne()&&U()?e(k):ne()?_(Ue)?e(b,2):U()?e(n,3):e(t,-1):e(w,1)})}o(f,m)};var He=W(Ye);{var Ct=f=>{i(f,se,()=>Yt,()=>"-ml-px transform scale-[0.98]",()=>Z,()=>me)};I(He,f=>{se()!=="pending"&&f(Ct)})}var Ke=c(He,2);{var wt=f=>{i(f,ue,()=>Ht,()=>"",()=>be,()=>xe)};I(Ke,f=>{ue()!=="pending"&&!Q()&&!oe()&&f(wt)})}var qe=c(Ke,2);{var St=f=>{i(f,J,()=>Kt,()=>"ml-[0.5px]",()=>It,()=>Dt)};I(qe,f=>{J()&&J()!=="pending"&&f(St)})}var yt=c(qe,2);{var kt=f=>{i(f,ge,()=>qt,()=>"ml-[-0.5px]",()=>Nt,()=>Tt)};I(yt,f=>{ge()!=="pending"&&f(kt)})}L(Ye)}L(ye),u(()=>et(ye,1,`${Vt} w-full overflow-hidden transition-all duration-spring-slow ease-spring-slow motion-reduce:transition-none`,"svelte-enden2")),o(z,ye);var Pt=Lt(mt);return ae(),Pt}export{Ca as W,Ma as a,ja as c,za as g};
|
|
1
|
+
import{aM as Ft,ao as Rt,Y as Ve}from"./CiShviCo.js";import{bI as At,aD as _,aG as Et,bH as Le,bV as it,bs as Bt,ca as Wt,a5 as W,bA as L,W as o,bS as c,b_ as u,bn as Lt,c9 as S,aA as O,bl as E,bO as l,b$ as A,aB as N,bf as G,a7 as Y,ay as x,be as Pe,am as Re,ax as Ae}from"./B8o4lNgr.js";import{t as Ut,bq as F,a_ as I,by as jt,bu as Xe,bs as Mt,b as zt,bo as d}from"./GWL2EpD7.js";import{z as Je}from"./BeYie-c5.js";import{s as Qe}from"./vOveF3fP.js";import{H as X,b as Ze,C as le}from"./bocWuth7.js";import{l as Ee,k as et,s as tt}from"./CYiv-51w.js";import{F as $t,bi as Yt,aI as Ht,cy as Kt,cc as qt}from"./BM7uH7Bn.js";import{n as Gt}from"./C8BD21JK.js";import{f as Be}from"./Dayd4Wgp.js";import"./ChTqQfQN.js";import"./QjTmIbp0.js";import"./C2YltVuJ.js";import{p as Vt,g as Xt,S as Jt}from"./9hy801AX.js";import{O as We}from"./CAvR_m9C.js";import{bi as Qt,D as Zt,r as ea}from"./Bl0HJ17r.js";import{d as ta}from"./D5nEFEMU.js";import{s as aa,f as ra,c as at}from"./AKm8RH33.js";function ja(z){let C=0,$=!1;function _e(D){$!==D&&($=D,z.onDragChange(D))}function pe(){C=0,_e(!1)}function ae(D){return z.isEnabled&&!z.isEnabled()?!1:Rt(D)}return{handleDragEnter(D){ae(D)&&(D.preventDefault(),C++,_e(!0))},handleDragLeave(D){ae(D)&&(D.preventDefault(),C=Math.max(0,C-1),C===0&&_e(!1))},handleDragOver(D){ae(D)&&D.preventDefault()},handleDrop(D){if(!ae(D))return;D.preventDefault(),pe();const K=Ft(D.dataTransfer);(K.files.length>0||K.folderFiles.length>0)&&z.onDrop(K)},reset:pe}}const lt=Symbol("panel-file-drop-context");function Ma(){let z=it(null);const C={register($){Le(z,$)},unregister($){_(z)===$&&Le(z,null)}};return At(lt,C),{context:C,handler:{get current(){return _(z)}}}}function za(){return Et(lt)??null}var na=N('<span class="inline-flex items-center gap-1.5 svelte-enden2"> </span>'),sa=N('<h3 class="text-lg font-semibold tracking-[-0.016em] transition-colors duration-spring-slow ease-spring-slow motion-reduce:transition-none svelte-enden2"><!></h3>'),oa=N('<span class="inline-block col-span-1 row-span-1 svelte-enden2"> </span>'),ia=N('<span class="text-sm font-mono text-muted-foreground tabular-nums svelte-enden2"><span class="inline-grid *:[grid-area:1/1] svelte-enden2"><!></span> </span>'),la=N('<div class="absolute inset-0 left-5 svelte-enden2"><!></div>'),rt=N('<div class="svelte-enden2"><!></div>'),da=N('<div class="relative flex items-start overflow-hidden rounded-md py-0.75 text-base leading-relaxed svelte-enden2"><!> <span data-testid="workspace-setup-step-icon"><!></span> <div class="setup-step-content min-w-0 text-muted-foreground font-normal leading-snug relative z-10 svelte-enden2" data-testid="workspace-setup-step-content"><!></div></div>'),_a=N('<span data-testid="setup-card-progress-label" class="svelte-enden2"> </span> <div class="mt-1 h-[2px] w-full max-w-64 rounded-full bg-secondary overflow-hidden svelte-enden2"><div class="h-full bg-foreground/60 transition-[width] duration-spring-slow ease-spring-slow motion-reduce:transition-none svelte-enden2" role="progressbar" aria-valuemin="0" aria-valuemax="100" data-testid="setup-card-progress-bar"></div></div>',1),de=N(" <!>",1),pa=N('<span data-testid="setup-card-plain-folder" class="svelte-enden2"> <!> </span>'),va=N(' <code class="text-sm bg-secondary py-1 px-1.5 svelte-enden2"> </code> <!>',1),nt=N(" <!> <!>",1),ca=N(' <span class="svelte-enden2"> </span> ',1),ua=N(' <span class="svelte-enden2"> </span> <!>',1),ga=N('<span class="underline underline-offset-2 svelte-enden2"> </span><span class="whitespace-nowrap svelte-enden2"><span class="underline underline-offset-2 svelte-enden2"> </span><span class="setup-reference-punctuation svelte-enden2" aria-hidden="true"> </span></span>',1),fa=N("<!> ",1),st=N('<span class="svelte-enden2"> </span>'),te=N(" <!> ",1),ma=N('<pre class="text-xs text-muted-foreground font-mono leading-snug line-clamp-2 whitespace-pre-wrap svelte-enden2"> </pre>'),ot=N('<span class="text-xs text-muted-foreground opacity-50 svelte-enden2"> </span>'),ba=N(" <!> <!> ",1),xa=N('<p class="text-xs text-muted-foreground leading-snug svelte-enden2"> </p>'),ha=N('<div><div class="flex items-baseline gap-2.5 pt-3 pb-2 svelte-enden2"><div class="inline-grid *:[grid-area:1/1] svelte-enden2"><!></div> <!></div> <div class="space-y-0.5 pb-4 svelte-enden2"><!> <!> <!> <!></div></div>');function Ca(z,C){if(new.target)return Ut({component:Ca,...z});Bt(C,!0);const $=()=>Xe(dt,"$progressEntry$",pe),_e=()=>Xe(_t,"$specialists$",pe),[pe,ae]=Mt();let D=F(C,"repoName",7),K=F(C,"repoPath",7),q=F(C,"worktreePath",7),ve=F(C,"workspaceId",7),H=F(C,"branch",7),ce=F(C,"baseRef",7,"origin/main"),re=F(C,"projectType",7),J=F(C,"setupScriptStatus",7),Ce=F(C,"setupScriptContent",7),we=F(C,"onFocusSetupTerminal",7),Ie=F(C,"specialistName",7),U=F(C,"specialistId",7),ne=F(C,"hasPrompt",7,!0),se=F(C,"repoStatus",7,"pending"),ue=F(C,"branchStatus",7,"pending"),ge=F(C,"agentStatus",7,"pending"),Q=F(C,"skipIsolation",7,!1),oe=F(C,"plainFolder",7,!1),De=F(C,"progressId",7);const dt=aa(De()??""),_t=Qt();let fe=it(0);Wt(()=>{const i=Math.min($()?.percent??0,100);i>_(fe)&&Le(fe,i,!0)});const pt=S(()=>$()?.sawFrame===!0),vt=S(()=>ce().replace(/^[^/]+\//,"")),Ne=S(()=>U()?ea(U()):void 0),ct=S(()=>U()?_e().find(i=>i.id===U()):void 0),ut=S(()=>_(ct)?.name||_(Ne)?.name||Ie()),Ue=S(()=>U()==="spec-writer"||U()===Zt),je=S(()=>{const i=oe()?[se()]:[se(),ue()];return J()&&i.push(J()),i.push(ge()),i}),Te=S(()=>_(je).length),Me=S(()=>_(je).filter(i=>i==="done").length),ze=S(()=>Math.min(_(Me)+1,_(Te))),Se=S(()=>_(Me)===_(Te)),$e=S(()=>_(Se)?d.onboarding_setupCard_ready_title():d.onboarding_setupCard_settingUp_title());function gt(i,R){navigator.clipboard.writeText(i),Gt.success(d.onboarding_setupCard_copied_label({label:R}))}function Oe(i){return i.replace(/^\/Users\/[^/]+/,"~")}function ft(){U()&&ta({specialist:U(),hash:"specialists"})}var mt={get repoName(){return D()},set repoName(i){D(i),O()},get repoPath(){return K()},set repoPath(i){K(i),O()},get worktreePath(){return q()},set worktreePath(i){q(i),O()},get workspaceId(){return ve()},set workspaceId(i){ve(i),O()},get branch(){return H()},set branch(i){H(i),O()},get baseRef(){return ce()},set baseRef(i="origin/main"){ce(i),O()},get projectType(){return re()},set projectType(i){re(i),O()},get setupScriptStatus(){return J()},set setupScriptStatus(i){J(i),O()},get setupScriptContent(){return Ce()},set setupScriptContent(i){Ce(i),O()},get onFocusSetupTerminal(){return we()},set onFocusSetupTerminal(i){we(i),O()},get specialistName(){return Ie()},set specialistName(i){Ie(i),O()},get specialistId(){return U()},set specialistId(i){U(i),O()},get hasPrompt(){return ne()},set hasPrompt(i=!0){ne(i),O()},get repoStatus(){return se()},set repoStatus(i="pending"){se(i),O()},get branchStatus(){return ue()},set branchStatus(i="pending"){ue(i),O()},get agentStatus(){return ge()},set agentStatus(i="pending"){ge(i),O()},get skipIsolation(){return Q()},set skipIsolation(i=!1){Q(i),O()},get plainFolder(){return oe()},set plainFolder(i=!1){oe(i),O()},get progressId(){return De()},set progressId(i){De(i),O()},$set:jt,$on:(i,R)=>zt(C,i,R)},ye=ha(),ke=W(ye);Ee(ke,"",{},{"padding-inline":"var(--operational-row-inline-padding)"});var Fe=W(ke),bt=W(Fe);Je(bt,()=>_(Se),i=>{var R=sa(),Z=W(R);{var me=M=>{var B=na(),xe=E(B,!0);u(()=>l(xe,_($e))),o(M,B)},be=M=>{var B=A();u(()=>l(B,_($e))),o(M,B)};I(Z,M=>{_(Se)?M(me):M(be,-1)})}L(R),X(1,R,()=>Ze,()=>({tier:"slow",distance:3})),X(2,R,()=>Ze,()=>({tier:"slow",distance:3})),o(i,R)}),L(Fe);var xt=c(Fe,2);{var ht=i=>{var R=ia(),Z=W(R),me=W(Z);Je(me,()=>_(ze),M=>{var B=oa(),xe=E(B,!0);u(()=>l(xe,_(ze))),X(1,B,()=>le,()=>({axis:"y",tier:"slow"})),o(M,B)}),L(Z);var be=c(Z);L(R),u(()=>l(be,`/${_(Te)??""}`)),o(i,R)};I(xt,i=>{_(Se)||i(ht)})}L(ke);var Ye=c(ke,2);{const i=(f,m=G,y=G,k=G,w=G,b=G)=>{var n=da();Ee(n,"",{},{gap:"0.25rem","padding-inline":"var(--operational-row-inline-padding)"});var t=W(n);{var e=h=>{var P=la(),T=W(P);Jt(T,{}),L(P),o(h,P)};I(t,h=>{m()==="active"&&h(e)})}var a=c(t,2),r=W(a);$t(r,{get icon(){return y()},size:14,get class(){return k()}}),L(a);var s=c(a,2),p=W(s);{var g=h=>{var P=rt(),T=W(P);Qe(T,w),L(P),X(1,P,()=>le,()=>({axis:"y",tier:"moderate"})),X(2,P,()=>le,()=>({axis:"y",tier:"moderate"})),o(h,P)},v=h=>{var P=rt(),T=W(P);Qe(T,b),L(P),X(1,P,()=>le,()=>({axis:"y",tier:"moderate"})),X(2,P,()=>le,()=>({axis:"y",tier:"moderate"})),o(h,P)};I(p,h=>{m()==="active"?h(g):h(v,-1)})}L(s),L(n),u(()=>et(a,1,`${Xt} relative z-10 mt-1 flex size-4 shrink-0 items-center justify-start`,"svelte-enden2")),X(3,n,()=>le,()=>({tier:"slow"})),o(f,n)},R=(f,m)=>{let y=Re(()=>Ae(m?.(),""));var k=Y(),w=x(k);{var b=t=>{{let e=S(()=>d.onboarding_setupCard_originalFolder_label());B(t,D,()=>_(e),K,()=>_(y))}},n=t=>{var e=A();u(()=>l(e,`${D()??""}${_(y)??""}`)),o(t,e)};I(w,t=>{K()?t(b):t(n,-1)})}o(f,k)},Z=f=>{var m=Y(),y=x(m);{var k=n=>{var t=_a(),e=x(t),a=E(e,!0),r=c(e,2),s=E(r);u((p,g)=>{l(a,p),Ee(s,`width: ${_(fe)??""}%`),tt(s,"aria-label",g),tt(s,"aria-valuenow",_(fe))},[()=>d.workspace_compactInitializer_progressWithPercent_label({label:at($()),percent:ra(_(fe))}),()=>at($())]),o(n,t)},w=n=>{var t=de(),e=x(t),a=c(e);{let r=S(()=>d.onboarding_setupCard_opening_after());R(a,()=>_(r))}u(r=>l(e,`${r??""} `),[()=>d.onboarding_setupCard_opening_before()]),o(n,t)},b=n=>{var t=de(),e=x(t),a=c(e);R(a),u(r=>l(e,`${r??""} `),[()=>d.onboarding_setupCard_creatingIsolatedCopy_before()]),o(n,t)};I(y,n=>{_(pt)&&$()?n(k):Q()||oe()?n(w,1):n(b,-1)})}o(f,m)},me=f=>{var m=Y(),y=x(m);{var k=n=>{const t=S(()=>q()||K());var e=pa(),a=W(e),r=c(a);{var s=v=>{We(v,{get filePath(){return _(t)},get workspaceId(){return ve()},isDirectory:!0,variant:"sidebar",compact:!0,inline:!0,class:"setup-path",children:(h,P)=>{{let T=S(()=>Oe(_(t)));M(h,()=>_(T),()=>".")}},$$slots:{default:!0}})},p=v=>{var h=A();u(()=>l(h,`${D()??""}.`)),o(v,h)};I(r,v=>{_(t)?v(s):v(p,-1)})}var g=c(r);L(e),u((v,h)=>{l(a,`${v??""} `),l(g,` ${h??""}`)},[()=>d.onboarding_setupCard_workingInFolder_before(),()=>d.onboarding_setupCard_plainFolderInPlace_label()]),o(n,e)},w=n=>{var t=va(),e=x(t),a=c(e),r=E(a,!0),s=c(a,2);{var p=v=>{var h=de(),P=x(h),T=c(P);We(T,{get filePath(){return q()},get workspaceId(){return ve()},isDirectory:!0,variant:"sidebar",compact:!0,inline:!0,class:"setup-path",children:(j,ee)=>{{let V=S(()=>Oe(q()));M(j,()=>_(V),()=>".")}},$$slots:{default:!0}}),u(j=>l(P,` ${j??""} `),[()=>d.onboarding_setupCard_at_label()]),o(v,h)},g=v=>{var h=A(".");o(v,h)};I(s,v=>{q()?v(p):v(g,-1)})}u(v=>{l(e,`${v??""} `),l(r,_(vt))},[()=>d.onboarding_setupCard_workingDirectlyOn_before()]),o(n,t)},b=n=>{var t=nt(),e=x(t),a=c(e);R(a);var r=c(a,2);{var s=g=>{var v=de(),h=x(v),P=c(h);We(P,{get filePath(){return q()},get workspaceId(){return ve()},isDirectory:!0,variant:"sidebar",compact:!0,inline:!0,class:"setup-path",children:(T,j)=>{{let ee=S(()=>Oe(q()));M(T,()=>_(ee),()=>".")}},$$slots:{default:!0}}),u(T=>l(h,` ${T??""} `),[()=>d.onboarding_setupCard_at_label()]),o(g,v)},p=g=>{var v=A(".");o(g,v)};I(r,g=>{q()?g(s):g(p,-1)})}u(g=>l(e,`${g??""} `),[()=>d.onboarding_setupCard_createdIsolatedCopy_before()]),o(n,t)};I(y,n=>{oe()?n(k):Q()?n(w,1):n(b,-1)})}o(f,m)},be=f=>{var m=Y(),y=x(m);{var k=n=>{var t=Y(),e=x(t);{var a=s=>{var p=ca(),g=x(p),v=c(g),h=E(v,!0),P=c(v,1,!0);u((T,j)=>{l(g,`${T??""} `),l(h,H()),l(P,j)},[()=>d.onboarding_setupCard_workingOnBranchNamed_before(),()=>d.onboarding_setupCard_workingOnBranchActive_after()]),o(s,p)},r=s=>{var p=A();u(g=>l(p,g),[()=>d.onboarding_setupCard_workingOnBranch_label()]),o(s,p)};I(e,s=>{H()?s(a):s(r,-1)})}o(n,t)},w=n=>{var t=ua(),e=x(t),a=c(e),r=E(a,!0),s=c(a),p=c(s);{let g=S(()=>d.onboarding_setupCard_baseRef_label()),v=S(()=>d.onboarding_setupCard_creatingBranch_after());B(p,ce,()=>_(g),()=>{},()=>_(v))}u((g,v)=>{l(e,`${g??""} `),l(r,H()),l(s,` ${v??""} `)},[()=>d.onboarding_setupCard_creatingBranch_before(),()=>d.onboarding_setupCard_creatingBranch_middle()]),o(n,t)},b=n=>{var t=A();u(e=>l(t,e),[()=>d.onboarding_setupCard_creatingBranchNoName_label()]),o(n,t)};I(y,n=>{Q()?n(k):H()?n(w,1):n(b,-1)})}o(f,m)},M=(f,m=G,y)=>{let k=Re(()=>Ae(y?.(),""));const w=S(()=>Array.from(m()));var b=ga(),n=x(b),t=E(n,!0),e=c(n),a=W(e),r=E(a,!0),s=c(a),p=E(s,!0);L(e),u((g,v)=>{l(t,g),l(r,v),l(p,_(k))},[()=>_(w).slice(0,-1).join(""),()=>_(w).at(-1)??""]),o(f,b)},B=(f,m=G,y=G,k=G,w)=>{let b=Re(()=>Ae(w?.(),""));const n=S(()=>_(b).match(/^\p{P}+/u)?.[0]??"");var t=fa(),e=x(t);Be(e,{variant:"plain",wrapContent:!1,class:"setup-inline-link cursor-pointer hover:text-foreground transition-colors",onclick:()=>gt(k()??m(),y()),children:(r,s)=>{M(r,m,()=>_(n))},$$slots:{default:!0}});var a=c(e,1,!0);u(r=>l(a,r),[()=>_(b).slice(_(n).length)]),o(f,t)},xe=f=>{var m=Y(),y=x(m);{var k=n=>{var t=Y(),e=x(t);{var a=s=>{var p=de(),g=x(p),v=c(g);{let h=S(()=>d.onboarding_setupCard_branchName_label()),P=S(()=>d.onboarding_setupCard_workingOnBranchDone_after());B(v,H,()=>_(h),()=>{},()=>_(P))}u(h=>l(g,`${h??""} `),[()=>d.onboarding_setupCard_workingOnBranchNamed_before()]),o(s,p)},r=s=>{var p=A();u(g=>l(p,g),[()=>d.onboarding_setupCard_workingDirectlyOnBranch_label()]),o(s,p)};I(e,s=>{H()?s(a):s(r,-1)})}o(n,t)},w=n=>{var t=nt(),e=x(t),a=c(e);{let s=S(()=>d.onboarding_setupCard_branchName_label()),p=S(()=>d.onboarding_setupCard_workingInNewBranch_middle());B(a,H,()=>_(s),()=>{},()=>_(p))}var r=c(a,2);{let s=S(()=>d.onboarding_setupCard_baseRef_label()),p=S(()=>d.onboarding_setupCard_workingInNewBranch_after());B(r,ce,()=>_(s),()=>{},()=>_(p))}u(s=>l(e,`${s??""} `),[()=>d.onboarding_setupCard_workingInNewBranch_before()]),o(n,t)},b=n=>{var t=A();u(e=>l(t,e),[()=>d.onboarding_setupCard_branchCreated_label()]),o(n,t)};I(y,n=>{Q()?n(k):H()?n(w,1):n(b,-1)})}o(f,m)},It=f=>{Pe();var m=te(),y=x(m),k=c(y);{var w=t=>{var e=st(),a=E(e,!0);u(()=>l(a,re())),o(t,e)},b=t=>{var e=A();u(a=>l(e,a),[()=>d.onboarding_setupCard_project_label()]),o(t,e)};I(k,t=>{re()?t(w):t(b,-1)})}var n=c(k);u((t,e)=>{l(y,`${t??""} `),l(n,` ${e??""}`)},[()=>d.onboarding_setupCard_runningSetup_before(),()=>d.onboarding_setupCard_runningSetup_after()]),o(f,m)},Dt=f=>{Pe();var m=ba(),y=x(m),k=c(y);{var w=r=>{var s=st(),p=E(s,!0);u(()=>l(p,re())),o(r,s)},b=r=>{var s=A();u(p=>l(s,p),[()=>d.onboarding_setupCard_project_label()]),o(r,s)};I(k,r=>{re()?r(w):r(b,-1)})}var n=c(k),t=c(n);{var e=r=>{var s=de(),p=x(s),g=c(p);Ve(g,{class:"inline",side:"bottom",align:"start",interactive:!0,maxWidth:"22rem",delayDuration:300,trigger:T=>{Be(T,{variant:"plain",wrapContent:!1,class:"setup-inline-link underline underline-offset-2 cursor-pointer hover:text-foreground transition-colors",get onclick(){return we()},children:(j,ee)=>{Pe();var V=A();u(he=>l(V,he),[()=>d.onboarding_setupCard_terminalTab_label()]),o(j,V)},$$slots:{default:!0}})},content:T=>{var j=Y(),ee=x(j);{var V=he=>{var Ge=ma(),Ot=E(Ge,!0);u(()=>l(Ot,Ce())),o(he,Ge)};I(ee,he=>{Ce()&&he(V)})}o(T,j)},footer:T=>{var j=ot(),ee=E(j,!0);u(V=>l(ee,V),[()=>d.onboarding_setupCard_openTerminal_footer()]),o(T,j)},$$slots:{trigger:!0,content:!0,footer:!0}}),u(v=>l(p,` ${v??""} `),[()=>d.onboarding_setupCard_ranSetupIn_middle()]),o(r,s)};I(t,r=>{we()&&r(e)})}var a=c(t,1,!0);u((r,s,p)=>{l(y,`${r??""} `),l(n,` ${s??""}`),l(a,p)},[()=>d.onboarding_setupCard_ranSetup_before(),()=>d.onboarding_setupCard_ranSetup_middle(),()=>d.onboarding_setupCard_ranSetup_after()]),o(f,m)},ie=f=>{Ve(f,{class:"inline",side:"bottom",align:"start",interactive:!0,maxWidth:"22rem",delayDuration:300,trigger:w=>{Be(w,{variant:"plain",wrapContent:!1,class:"setup-inline-link underline underline-offset-2 cursor-pointer hover:text-foreground transition-colors",onclick:ft,children:(b,n)=>{Pe();var t=A();u(()=>l(t,_(ut))),o(b,t)},$$slots:{default:!0}})},content:w=>{var b=Y(),n=x(b);{var t=e=>{var a=xa(),r=E(a,!0);u(()=>l(r,_(Ne).description)),o(e,a)};I(n,e=>{_(Ne)&&e(t)})}o(w,b)},footer:w=>{var b=ot(),n=E(b,!0);u(t=>l(n,t),[()=>d.onboarding_setupCard_editInSettings_footer()]),o(w,b)},$$slots:{trigger:!0,content:!0,footer:!0}})},Nt=f=>{var m=Y(),y=x(m);{var k=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_agentReadyNamed_before(),()=>d.onboarding_setupCard_agentReadyNamed_after()]),o(e,a)},w=e=>{var a=A();u(r=>l(a,r),[()=>d.onboarding_setupCard_agentReady_label()]),o(e,a)},b=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_specStartingUp_before(),()=>d.onboarding_setupCard_specStartingUp_after()]),o(e,a)},n=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_startingUpNamed_before(),()=>d.onboarding_setupCard_startingUpNamed_after()]),o(e,a)},t=e=>{var a=A();u(r=>l(a,r),[()=>d.onboarding_setupCard_startingUp_label()]),o(e,a)};I(y,e=>{!ne()&&U()?e(k):ne()?_(Ue)?e(b,2):U()?e(n,3):e(t,-1):e(w,1)})}o(f,m)},Tt=f=>{var m=Y(),y=x(m);{var k=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_agentReadyNamed_before(),()=>d.onboarding_setupCard_agentReadyNamed_after()]),o(e,a)},w=e=>{var a=A();u(r=>l(a,r),[()=>d.onboarding_setupCard_agentReady_label()]),o(e,a)},b=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_specDone_before(),()=>d.onboarding_setupCard_specDone_after()]),o(e,a)},n=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_agentDoneNamed_before(),()=>d.onboarding_setupCard_agentDoneNamed_after()]),o(e,a)},t=e=>{var a=A();u(r=>l(a,r),[()=>d.onboarding_setupCard_agentOrienting_label()]),o(e,a)};I(y,e=>{!ne()&&U()?e(k):ne()?_(Ue)?e(b,2):U()?e(n,3):e(t,-1):e(w,1)})}o(f,m)};var He=W(Ye);{var Ct=f=>{i(f,se,()=>Yt,()=>"-ml-px transform scale-[0.98]",()=>Z,()=>me)};I(He,f=>{se()!=="pending"&&f(Ct)})}var Ke=c(He,2);{var wt=f=>{i(f,ue,()=>Ht,()=>"",()=>be,()=>xe)};I(Ke,f=>{ue()!=="pending"&&!Q()&&!oe()&&f(wt)})}var qe=c(Ke,2);{var St=f=>{i(f,J,()=>Kt,()=>"ml-[0.5px]",()=>It,()=>Dt)};I(qe,f=>{J()&&J()!=="pending"&&f(St)})}var yt=c(qe,2);{var kt=f=>{i(f,ge,()=>qt,()=>"ml-[-0.5px]",()=>Nt,()=>Tt)};I(yt,f=>{ge()!=="pending"&&f(kt)})}L(Ye)}L(ye),u(()=>et(ye,1,`${Vt} w-full overflow-hidden transition-all duration-spring-slow ease-spring-slow motion-reduce:transition-none`,"svelte-enden2")),o(z,ye);var Pt=Lt(mt);return ae(),Pt}export{Ca as W,Ma as a,ja as c,za as g};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Ut}from"./CbO_toqh.js";import{s as Kt}from"./D0X3JVqD.js";import{f,c7 as Zt,aL as jt,c6 as qt,aK as Wt,c9 as Ht,aP as Qt,aO as tt,bC as F,a4 as Xt,a0 as Jt,aQ as $t,c0 as te,e as ee,aS as se,bZ as ie,c3 as re,cx as ae}from"./ZEBhSR5D.js";import{c as ne}from"./BH6SkDfK.js";var Ot=(function(){var s=f(function(G,n,l,d){for(l=l||{},d=G.length;d--;l[G[d]]=n);return l},"o"),a=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],o=[2,2],c=[1,7],r=[1,9],h=[1,10],y=[1,11],b=[1,12],k=[1,30],R=[1,23],p=[1,24],g=[1,25],C=[1,26],v=[1,27],O=[1,19],x=[1,28],A=[1,29],N=[1,20],D=[1,18],L=[1,21],w=[1,22],xt=[2,6],u=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],pt=[1,36],ft=[1,37],bt=[1,38],gt=[1,39],yt=[1,40],Z=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],V=[1,46],M=[1,47],j=[1,57],q=[43,51,53,54,55,74,75],W=[1,70],H=[1,68],B=[1,65],Q=[1,69],X=[1,71],et=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],st=[1,78],it=[1,77],rt=[1,76],Nt=[69,70,71,72,73],Ct=[1,91],At=[6,9,45,50],z=[6,9,12,44,45,50,51,52],at=[1,101],nt=[1,100],ot=[1,99],J=[18,61],It=[1,110],Rt=[1,109],vt=[20,43,51,53,54,55],_t=[18,61,64,66],kt={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:f(function(n,l,d,i,_,t,$){var e=t.length-1;switch(_){case 1:break;case 2:this.$=[];break;case 3:this.$=t[e-1].concat(t[e]);break;case 4:this.$=t[e];break;case 5:case 6:this.$=[];break;case 7:i.addEntity(t[e-4]),i.addEntity(t[e-2]),i.addRelationship(t[e-4],t[e],t[e-2],t[e-3]),this.$=[t[e-4],t[e-2]];break;case 8:i.addEntity(t[e-8]),i.addEntity(t[e-4]),i.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),i.setClass([t[e-8]],t[e-6]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-8],t[e-4]];break;case 9:i.addEntity(t[e-6]),i.addEntity(t[e-2]),i.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),i.setClass([t[e-6]],t[e-4]),this.$=[t[e-6],t[e-2]];break;case 10:i.addEntity(t[e-6]),i.addEntity(t[e-4]),i.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-6],t[e-4]];break;case 11:i.addEntity(t[e-3]),i.addAttributes(t[e-3],t[e-1]),this.$=[t[e-3]];break;case 12:i.addEntity(t[e-5]),i.addAttributes(t[e-5],t[e-1]),i.setClass([t[e-5]],t[e-3]),this.$=[t[e-5]];break;case 13:i.addEntity(t[e-2]),this.$=[t[e-2]];break;case 14:i.addEntity(t[e-4]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-4]];break;case 15:i.addEntity(t[e]),this.$=[t[e]];break;case 16:i.addEntity(t[e-2]),i.setClass([t[e-2]],t[e]),this.$=[t[e-2]];break;case 17:i.addEntity(t[e-6],t[e-4]),i.addAttributes(t[e-6],t[e-1]),this.$=[t[e-6]];break;case 18:i.addEntity(t[e-8],t[e-6]),i.addAttributes(t[e-8],t[e-1]),i.setClass([t[e-8]],t[e-3]),this.$=[t[e-8]];break;case 19:i.addEntity(t[e-5],t[e-3]),this.$=[t[e-5]];break;case 20:i.addEntity(t[e-7],t[e-5]),i.setClass([t[e-7]],t[e-2]),this.$=[t[e-7]];break;case 21:i.addEntity(t[e-3],t[e-1]);break;case 22:i.addEntity(t[e-5],t[e-3]),i.setClass([t[e-5]],t[e]);break;case 23:case 24:this.$=t[e].trim(),i.setAccTitle(this.$);break;case 25:case 26:this.$=t[e].trim(),i.setAccDescription(this.$);break;case 27:i.subgraphDepth?this.$=t[e]:(i.setDirection(t[e].value),this.$=[]);break;case 31:i.subgraphDepth=(i.subgraphDepth||1)-1,this.$=i.addSubGraph({text:t[e-2].id},t[e-1],{text:t[e-2].text});break;case 32:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-1],text:t[e-1]};break;case 33:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-4],text:t[e-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=t[e];break;case 35:this.$=t[e-1]+" "+t[e];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=t[e-3],i.addClass(t[e-2],t[e-1]);break;case 41:case 42:case 63:case 72:this.$=[t[e]];break;case 43:case 44:this.$=t[e-2].concat([t[e]]);break;case 45:this.$=t[e-2],i.setClass(t[e-1],t[e]);break;case 46:this.$=t[e-3],i.addCssStyles(t[e-2],t[e-1]);break;case 47:this.$=[t[e]];break;case 48:t[e-2].push(t[e]),this.$=t[e-2];break;case 50:this.$=t[e-1]+t[e];break;case 58:case 84:case 85:this.$=t[e].replace(/"/g,"");break;case 64:t[e].push(t[e-1]),this.$=t[e];break;case 65:this.$={type:t[e-1],name:t[e]};break;case 66:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 67:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 68:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 69:case 71:case 74:this.$=t[e];break;case 70:this.$=t[e-1]+t[e];break;case 73:t[e-2].push(t[e]),this.$=t[e-2];break;case 75:this.$=t[e].replace(/"/g,"");break;case 76:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 77:this.$=i.Cardinality.ZERO_OR_ONE;break;case 78:this.$=i.Cardinality.ZERO_OR_MORE;break;case 79:this.$=i.Cardinality.ONE_OR_MORE;break;case 80:this.$=i.Cardinality.ONLY_ONE;break;case 81:this.$=i.Cardinality.MD_PARENT;break;case 82:this.$=i.Identification.NON_IDENTIFYING;break;case 83:this.$=i.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(a,o,{5:3}),{6:[1,4],7:5,8:6,9:c,10:8,21:r,23:h,25:y,27:b,28:13,29:14,30:15,31:16,32:17,34:k,37:R,38:p,39:g,40:C,41:v,43:O,46:x,47:A,51:N,53:D,54:L,55:w},s(a,xt,{1:[2,1]}),s(u,[2,3]),s(u,[2,4]),s(u,[2,5]),s(u,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:pt,70:ft,71:bt,72:gt,73:yt}),{22:[1,41]},{24:[1,42]},{26:[1,43]},s(u,[2,26]),s(u,[2,27]),s(u,[2,28]),s(u,[2,29]),s(u,[2,30]),s(u,o,{5:44}),s(Z,[2,58]),s(Z,[2,59]),s(Z,[2,60]),s(Z,[2,61]),s(Z,[2,62]),s(u,[2,36]),s(u,[2,37]),s(u,[2,38]),s(u,[2,39]),{15:45,43:V,44:M},{15:48,43:V,44:M},{15:49,43:V,44:M},{10:50,43:O,51:N,53:D,54:L,55:w},{10:51,43:O,51:N,53:D,54:L,55:w},{15:52,43:V,44:M},{17:53,18:[1,54],56:55,57:56,61:j},{10:58,43:O,51:N,53:D,54:L,55:w},{68:59,74:[1,60],75:[1,61]},s(q,[2,77]),s(q,[2,78]),s(q,[2,79]),s(q,[2,80]),s(q,[2,81]),s(u,[2,23]),s(u,[2,24]),s(u,[2,25]),{6:[1,63],7:5,8:6,9:c,10:8,21:r,23:h,25:y,27:b,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:k,37:R,38:p,39:g,40:C,41:v,43:O,46:x,47:A,51:N,53:D,54:L,55:w},{12:W,42:64,44:H,45:B,48:66,49:67,51:Q,52:X},s(et,[2,41]),s(et,[2,42]),{15:72,43:V,44:M,45:B},{12:W,42:73,44:H,45:B,48:66,49:67,51:Q,52:X},{6:st,9:it,19:[1,75],35:74,50:rt},{12:[1,79],14:[1,80]},s(u,[2,16],{67:35,11:81,16:[1,82],45:B,69:pt,70:ft,71:bt,72:gt,73:yt}),{18:[1,83]},s(u,[2,13]),{17:84,18:[2,63],56:55,57:56,61:j},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:pt,70:ft,71:bt,72:gt,73:yt},s(Nt,[2,82]),s(Nt,[2,83]),s(u,[2,31]),s(u,xt),{6:st,9:it,35:90,45:Ct,50:rt},{43:[1,92],44:[1,93]},s(At,[2,47],{49:94,12:W,44:H,51:Q,52:X}),s(z,[2,49]),s(z,[2,54]),s(z,[2,55]),s(z,[2,56]),s(z,[2,57]),s(u,[2,45],{45:B}),{6:st,9:it,35:95,45:Ct,50:rt},s(u,[2,32]),{10:97,36:96,43:O,51:N,53:D,54:L,55:w},s(u,[2,51]),s(u,[2,52]),s(u,[2,53]),{13:98,43:at,53:nt,76:ot},{15:102,43:V,44:M},{10:103,43:O,51:N,53:D,54:L,55:w},{17:104,18:[1,105],56:55,57:56,61:j},s(u,[2,11]),{18:[2,64]},s(J,[2,65],{59:106,60:107,63:108,65:It,66:Rt}),s([18,61,65,66],[2,71]),{61:[2,70]},s(u,[2,21],{14:[1,112],16:[1,111]}),s([43,51,53,54,55],[2,76]),s(u,[2,40]),{12:W,44:H,48:113,49:67,51:Q,52:X},s(et,[2,43]),s(et,[2,44]),s(z,[2,50]),s(u,[2,46]),{10:115,20:[1,114],43:O,51:N,53:D,54:L,55:w},s(vt,[2,34]),s(u,[2,7]),s(u,[2,84]),s(u,[2,85]),s(u,[2,86]),{12:[1,116],45:B},{12:[1,118],14:[1,117]},{18:[1,119]},s(u,[2,14]),s(J,[2,66],{60:120,64:[1,121],66:Rt}),s(J,[2,67]),s(_t,[2,72]),s(J,[2,75]),s(_t,[2,74]),{17:122,18:[1,123],56:55,57:56,61:j},{15:124,43:V,44:M},s(At,[2,48],{49:94,12:W,44:H,51:Q,52:X}),{6:st,9:it,35:125,50:rt},s(vt,[2,35]),{13:126,43:at,53:nt,76:ot},{15:127,43:V,44:M},{13:128,43:at,53:nt,76:ot},s(u,[2,12]),s(J,[2,68]),{63:129,65:It},{18:[1,130]},s(u,[2,19]),s(u,[2,22],{16:[1,131],45:B}),s(u,[2,33]),s(u,[2,10]),{12:[1,132],45:B},s(u,[2,9]),s(_t,[2,73]),s(u,[2,17]),{17:133,18:[1,134],56:55,57:56,61:j},{13:135,43:at,53:nt,76:ot},{18:[1,136]},s(u,[2,20]),s(u,[2,8]),s(u,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:f(function(n,l){if(l.recoverable)this.trace(n);else{var d=new Error(n);throw d.hash=l,d}},"parseError"),parse:f(function(n){var l=this,d=[0],i=[],_=[null],t=[],$=this.table,e="",lt=0,Dt=0,Ft=2,Lt=1,Yt=t.slice.call(arguments,1),m=Object.create(this.lexer),Y={yy:{}};for(var mt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,mt)&&(Y.yy[mt]=this.yy[mt]);m.setInput(n,Y.yy),Y.yy.lexer=m,Y.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var Et=m.yylloc;t.push(Et);var Pt=m.options&&m.options.ranges;typeof Y.yy.parseError=="function"?this.parseError=Y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function zt(S){d.length=d.length-2*S,_.length=_.length-S,t.length=t.length-S}f(zt,"popStack");function wt(){var S;return S=i.pop()||m.lex()||Lt,typeof S!="number"&&(S instanceof Array&&(i=S,S=i.pop()),S=l.symbols_[S]||S),S}f(wt,"lex");for(var E,P,T,St,U={},ht,I,Vt,ut;;){if(P=d[d.length-1],this.defaultActions[P]?T=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=wt()),T=$[P]&&$[P][E]),typeof T>"u"||!T.length||!T[0]){var Tt="";ut=[];for(ht in $[P])this.terminals_[ht]&&ht>Ft&&ut.push("'"+this.terminals_[ht]+"'");m.showPosition?Tt="Parse error on line "+(lt+1)+`:
|
|
1
|
+
import{g as Ut}from"./DFz-Vr9a.js";import{s as Kt}from"./CcMBhJ58.js";import{f,c7 as Zt,aL as jt,c6 as qt,aK as Wt,c9 as Ht,aP as Qt,aO as tt,bC as F,a4 as Xt,a0 as Jt,aQ as $t,c0 as te,e as ee,aS as se,bZ as ie,c3 as re,cx as ae}from"./B45awpwY.js";import{c as ne}from"./BZ8IpxwP.js";var Ot=(function(){var s=f(function(G,n,l,d){for(l=l||{},d=G.length;d--;l[G[d]]=n);return l},"o"),a=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],o=[2,2],c=[1,7],r=[1,9],h=[1,10],y=[1,11],b=[1,12],k=[1,30],R=[1,23],p=[1,24],g=[1,25],C=[1,26],v=[1,27],O=[1,19],x=[1,28],A=[1,29],N=[1,20],D=[1,18],L=[1,21],w=[1,22],xt=[2,6],u=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],pt=[1,36],ft=[1,37],bt=[1,38],gt=[1,39],yt=[1,40],Z=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],V=[1,46],M=[1,47],j=[1,57],q=[43,51,53,54,55,74,75],W=[1,70],H=[1,68],B=[1,65],Q=[1,69],X=[1,71],et=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],st=[1,78],it=[1,77],rt=[1,76],Nt=[69,70,71,72,73],Ct=[1,91],At=[6,9,45,50],z=[6,9,12,44,45,50,51,52],at=[1,101],nt=[1,100],ot=[1,99],J=[18,61],It=[1,110],Rt=[1,109],vt=[20,43,51,53,54,55],_t=[18,61,64,66],kt={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:f(function(n,l,d,i,_,t,$){var e=t.length-1;switch(_){case 1:break;case 2:this.$=[];break;case 3:this.$=t[e-1].concat(t[e]);break;case 4:this.$=t[e];break;case 5:case 6:this.$=[];break;case 7:i.addEntity(t[e-4]),i.addEntity(t[e-2]),i.addRelationship(t[e-4],t[e],t[e-2],t[e-3]),this.$=[t[e-4],t[e-2]];break;case 8:i.addEntity(t[e-8]),i.addEntity(t[e-4]),i.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),i.setClass([t[e-8]],t[e-6]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-8],t[e-4]];break;case 9:i.addEntity(t[e-6]),i.addEntity(t[e-2]),i.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),i.setClass([t[e-6]],t[e-4]),this.$=[t[e-6],t[e-2]];break;case 10:i.addEntity(t[e-6]),i.addEntity(t[e-4]),i.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-6],t[e-4]];break;case 11:i.addEntity(t[e-3]),i.addAttributes(t[e-3],t[e-1]),this.$=[t[e-3]];break;case 12:i.addEntity(t[e-5]),i.addAttributes(t[e-5],t[e-1]),i.setClass([t[e-5]],t[e-3]),this.$=[t[e-5]];break;case 13:i.addEntity(t[e-2]),this.$=[t[e-2]];break;case 14:i.addEntity(t[e-4]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-4]];break;case 15:i.addEntity(t[e]),this.$=[t[e]];break;case 16:i.addEntity(t[e-2]),i.setClass([t[e-2]],t[e]),this.$=[t[e-2]];break;case 17:i.addEntity(t[e-6],t[e-4]),i.addAttributes(t[e-6],t[e-1]),this.$=[t[e-6]];break;case 18:i.addEntity(t[e-8],t[e-6]),i.addAttributes(t[e-8],t[e-1]),i.setClass([t[e-8]],t[e-3]),this.$=[t[e-8]];break;case 19:i.addEntity(t[e-5],t[e-3]),this.$=[t[e-5]];break;case 20:i.addEntity(t[e-7],t[e-5]),i.setClass([t[e-7]],t[e-2]),this.$=[t[e-7]];break;case 21:i.addEntity(t[e-3],t[e-1]);break;case 22:i.addEntity(t[e-5],t[e-3]),i.setClass([t[e-5]],t[e]);break;case 23:case 24:this.$=t[e].trim(),i.setAccTitle(this.$);break;case 25:case 26:this.$=t[e].trim(),i.setAccDescription(this.$);break;case 27:i.subgraphDepth?this.$=t[e]:(i.setDirection(t[e].value),this.$=[]);break;case 31:i.subgraphDepth=(i.subgraphDepth||1)-1,this.$=i.addSubGraph({text:t[e-2].id},t[e-1],{text:t[e-2].text});break;case 32:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-1],text:t[e-1]};break;case 33:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-4],text:t[e-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=t[e];break;case 35:this.$=t[e-1]+" "+t[e];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=t[e-3],i.addClass(t[e-2],t[e-1]);break;case 41:case 42:case 63:case 72:this.$=[t[e]];break;case 43:case 44:this.$=t[e-2].concat([t[e]]);break;case 45:this.$=t[e-2],i.setClass(t[e-1],t[e]);break;case 46:this.$=t[e-3],i.addCssStyles(t[e-2],t[e-1]);break;case 47:this.$=[t[e]];break;case 48:t[e-2].push(t[e]),this.$=t[e-2];break;case 50:this.$=t[e-1]+t[e];break;case 58:case 84:case 85:this.$=t[e].replace(/"/g,"");break;case 64:t[e].push(t[e-1]),this.$=t[e];break;case 65:this.$={type:t[e-1],name:t[e]};break;case 66:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 67:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 68:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 69:case 71:case 74:this.$=t[e];break;case 70:this.$=t[e-1]+t[e];break;case 73:t[e-2].push(t[e]),this.$=t[e-2];break;case 75:this.$=t[e].replace(/"/g,"");break;case 76:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 77:this.$=i.Cardinality.ZERO_OR_ONE;break;case 78:this.$=i.Cardinality.ZERO_OR_MORE;break;case 79:this.$=i.Cardinality.ONE_OR_MORE;break;case 80:this.$=i.Cardinality.ONLY_ONE;break;case 81:this.$=i.Cardinality.MD_PARENT;break;case 82:this.$=i.Identification.NON_IDENTIFYING;break;case 83:this.$=i.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(a,o,{5:3}),{6:[1,4],7:5,8:6,9:c,10:8,21:r,23:h,25:y,27:b,28:13,29:14,30:15,31:16,32:17,34:k,37:R,38:p,39:g,40:C,41:v,43:O,46:x,47:A,51:N,53:D,54:L,55:w},s(a,xt,{1:[2,1]}),s(u,[2,3]),s(u,[2,4]),s(u,[2,5]),s(u,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:pt,70:ft,71:bt,72:gt,73:yt}),{22:[1,41]},{24:[1,42]},{26:[1,43]},s(u,[2,26]),s(u,[2,27]),s(u,[2,28]),s(u,[2,29]),s(u,[2,30]),s(u,o,{5:44}),s(Z,[2,58]),s(Z,[2,59]),s(Z,[2,60]),s(Z,[2,61]),s(Z,[2,62]),s(u,[2,36]),s(u,[2,37]),s(u,[2,38]),s(u,[2,39]),{15:45,43:V,44:M},{15:48,43:V,44:M},{15:49,43:V,44:M},{10:50,43:O,51:N,53:D,54:L,55:w},{10:51,43:O,51:N,53:D,54:L,55:w},{15:52,43:V,44:M},{17:53,18:[1,54],56:55,57:56,61:j},{10:58,43:O,51:N,53:D,54:L,55:w},{68:59,74:[1,60],75:[1,61]},s(q,[2,77]),s(q,[2,78]),s(q,[2,79]),s(q,[2,80]),s(q,[2,81]),s(u,[2,23]),s(u,[2,24]),s(u,[2,25]),{6:[1,63],7:5,8:6,9:c,10:8,21:r,23:h,25:y,27:b,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:k,37:R,38:p,39:g,40:C,41:v,43:O,46:x,47:A,51:N,53:D,54:L,55:w},{12:W,42:64,44:H,45:B,48:66,49:67,51:Q,52:X},s(et,[2,41]),s(et,[2,42]),{15:72,43:V,44:M,45:B},{12:W,42:73,44:H,45:B,48:66,49:67,51:Q,52:X},{6:st,9:it,19:[1,75],35:74,50:rt},{12:[1,79],14:[1,80]},s(u,[2,16],{67:35,11:81,16:[1,82],45:B,69:pt,70:ft,71:bt,72:gt,73:yt}),{18:[1,83]},s(u,[2,13]),{17:84,18:[2,63],56:55,57:56,61:j},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:pt,70:ft,71:bt,72:gt,73:yt},s(Nt,[2,82]),s(Nt,[2,83]),s(u,[2,31]),s(u,xt),{6:st,9:it,35:90,45:Ct,50:rt},{43:[1,92],44:[1,93]},s(At,[2,47],{49:94,12:W,44:H,51:Q,52:X}),s(z,[2,49]),s(z,[2,54]),s(z,[2,55]),s(z,[2,56]),s(z,[2,57]),s(u,[2,45],{45:B}),{6:st,9:it,35:95,45:Ct,50:rt},s(u,[2,32]),{10:97,36:96,43:O,51:N,53:D,54:L,55:w},s(u,[2,51]),s(u,[2,52]),s(u,[2,53]),{13:98,43:at,53:nt,76:ot},{15:102,43:V,44:M},{10:103,43:O,51:N,53:D,54:L,55:w},{17:104,18:[1,105],56:55,57:56,61:j},s(u,[2,11]),{18:[2,64]},s(J,[2,65],{59:106,60:107,63:108,65:It,66:Rt}),s([18,61,65,66],[2,71]),{61:[2,70]},s(u,[2,21],{14:[1,112],16:[1,111]}),s([43,51,53,54,55],[2,76]),s(u,[2,40]),{12:W,44:H,48:113,49:67,51:Q,52:X},s(et,[2,43]),s(et,[2,44]),s(z,[2,50]),s(u,[2,46]),{10:115,20:[1,114],43:O,51:N,53:D,54:L,55:w},s(vt,[2,34]),s(u,[2,7]),s(u,[2,84]),s(u,[2,85]),s(u,[2,86]),{12:[1,116],45:B},{12:[1,118],14:[1,117]},{18:[1,119]},s(u,[2,14]),s(J,[2,66],{60:120,64:[1,121],66:Rt}),s(J,[2,67]),s(_t,[2,72]),s(J,[2,75]),s(_t,[2,74]),{17:122,18:[1,123],56:55,57:56,61:j},{15:124,43:V,44:M},s(At,[2,48],{49:94,12:W,44:H,51:Q,52:X}),{6:st,9:it,35:125,50:rt},s(vt,[2,35]),{13:126,43:at,53:nt,76:ot},{15:127,43:V,44:M},{13:128,43:at,53:nt,76:ot},s(u,[2,12]),s(J,[2,68]),{63:129,65:It},{18:[1,130]},s(u,[2,19]),s(u,[2,22],{16:[1,131],45:B}),s(u,[2,33]),s(u,[2,10]),{12:[1,132],45:B},s(u,[2,9]),s(_t,[2,73]),s(u,[2,17]),{17:133,18:[1,134],56:55,57:56,61:j},{13:135,43:at,53:nt,76:ot},{18:[1,136]},s(u,[2,20]),s(u,[2,8]),s(u,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:f(function(n,l){if(l.recoverable)this.trace(n);else{var d=new Error(n);throw d.hash=l,d}},"parseError"),parse:f(function(n){var l=this,d=[0],i=[],_=[null],t=[],$=this.table,e="",lt=0,Dt=0,Ft=2,Lt=1,Yt=t.slice.call(arguments,1),m=Object.create(this.lexer),Y={yy:{}};for(var mt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,mt)&&(Y.yy[mt]=this.yy[mt]);m.setInput(n,Y.yy),Y.yy.lexer=m,Y.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var Et=m.yylloc;t.push(Et);var Pt=m.options&&m.options.ranges;typeof Y.yy.parseError=="function"?this.parseError=Y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function zt(S){d.length=d.length-2*S,_.length=_.length-S,t.length=t.length-S}f(zt,"popStack");function wt(){var S;return S=i.pop()||m.lex()||Lt,typeof S!="number"&&(S instanceof Array&&(i=S,S=i.pop()),S=l.symbols_[S]||S),S}f(wt,"lex");for(var E,P,T,St,U={},ht,I,Vt,ut;;){if(P=d[d.length-1],this.defaultActions[P]?T=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=wt()),T=$[P]&&$[P][E]),typeof T>"u"||!T.length||!T[0]){var Tt="";ut=[];for(ht in $[P])this.terminals_[ht]&&ht>Ft&&ut.push("'"+this.terminals_[ht]+"'");m.showPosition?Tt="Parse error on line "+(lt+1)+`:
|
|
2
2
|
`+m.showPosition()+`
|
|
3
3
|
Expecting `+ut.join(", ")+", got '"+(this.terminals_[E]||E)+"'":Tt="Parse error on line "+(lt+1)+": Unexpected "+(E==Lt?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(Tt,{text:m.match,token:this.terminals_[E]||E,line:m.yylineno,loc:Et,expected:ut})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+E);switch(T[0]){case 1:d.push(E),_.push(m.yytext),t.push(m.yylloc),d.push(T[1]),E=null,Dt=m.yyleng,e=m.yytext,lt=m.yylineno,Et=m.yylloc;break;case 2:if(I=this.productions_[T[1]][1],U.$=_[_.length-I],U._$={first_line:t[t.length-(I||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(I||1)].first_column,last_column:t[t.length-1].last_column},Pt&&(U._$.range=[t[t.length-(I||1)].range[0],t[t.length-1].range[1]]),St=this.performAction.apply(U,[e,Dt,lt,Y.yy,T[1],_,t].concat(Yt)),typeof St<"u")return St;I&&(d=d.slice(0,-1*I*2),_=_.slice(0,-1*I),t=t.slice(0,-1*I)),d.push(this.productions_[T[1]][0]),_.push(U.$),t.push(U._$),Vt=$[d[d.length-2]][d[d.length-1]],d.push(Vt);break;case 3:return!0}}return!0},"parse")},Gt=(function(){var G={EOF:1,parseError:f(function(l,d){if(this.yy.parser)this.yy.parser.parseError(l,d);else throw new Error(l)},"parseError"),setInput:f(function(n,l){return this.yy=l||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:f(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var l=n.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:f(function(n){var l=n.length,d=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),d.length-1&&(this.yylineno-=d.length-1);var _=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:d?(d.length===i.length?this.yylloc.first_column:0)+i[i.length-d.length].length-d[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:f(function(n){this.unput(this.match.slice(n))},"less"),pastInput:f(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var n=this.pastInput(),l=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as l,r as m,d as a}from"./
|
|
1
|
+
import{g as l,r as m,d as a}from"./DnE5aVuv.js";import{p}from"./y3HzT_To.js";import{M as u,b as c}from"./DGsKwFeF.js";import{a as t,ad as o}from"./vJt7gt7x.js";import"./B45awpwY.js";var f=c().RailroadPeg.parser.LangiumParser,i=t(e=>{const r=e.alternatives.map(d);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformOrderedChoice"),d=t(e=>{const r=e.elements.map(P);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),P=t(e=>{const r=g(e.suffix);return e.operator?{type:"special",text:e.operator==="&"?`&${s(r)}`:`!${s(r)}`}:r},"transformPrefix"),s=t(e=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),g=t(e=>{const r=v(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw new Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),v=t(e=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return i(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw new Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),y=t(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=t(e=>{p(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(y(r)))},"populateDb"),b={parse:t(e=>{a.clear(),o.debug("[PEG Parser] Starting Langium parse");const r=f.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const n=r.value;o.debug("[PEG Parser] Parsed rules:",n.rules.length),h(n),o.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:a}},G={parser:b,db:a,renderer:m,styles:l};export{G as diagram};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as s,N as u,T as c,a as f,g as d,w as T}from"./
|
|
1
|
+
import{n as s,N as u,T as c,a as f,g as d,w as T}from"./C8BD21JK.js";import"./B8o4lNgr.js";import"./GWL2EpD7.js";import"./CYiv-51w.js";import"./vOveF3fP.js";import"./Dayd4Wgp.js";import"./ChTqQfQN.js";import"./QjTmIbp0.js";import"./C2YltVuJ.js";const b="input, textarea, select";function o(t){return"editContext"in t&&t.editContext!=null}function a(t){return t instanceof HTMLElement?t.isContentEditable===!0||t.contentEditable==="true"||t.contentEditable==="plaintext-only":!1}function l(t){return!t||typeof Element>"u"||!(t instanceof Element)?null:t}function y(t){const e=l(t);if(!e)return!1;if(a(e)||o(e)||e.closest(b))return!0;const n=e.closest('[contenteditable="false"]'),i=e.closest('[role="textbox"]');if(i&&(!n||n.contains(i)))return!0;const r=e.closest("[contenteditable]");return r!==null&&r.getAttribute("contenteditable")!=="false"}function S(t){const e=l(t);return e?e instanceof HTMLTextAreaElement||a(e)||o(e)||e.getAttribute("role")==="textbox"&&e.getAttribute("aria-multiline")==="true"&&e.getAttribute("aria-readonly")!=="true":!1}const g=Object.freeze(Object.defineProperty({__proto__:null,NOTIFY_DURATION:u,TOAST_COUNTDOWN_CLASS:c,TOAST_COUNTDOWN_NO_HOVER_PAUSE_CLASS:f,notify:s,notifyMetadata:d,withToastCountdown:T},Symbol.toStringTag,{value:"Module"}));export{S as a,y as b,g as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as i}from"./
|
|
1
|
+
import{f as i}from"./B45awpwY.js";function t(c,e){c.accDescr&&e.setAccDescription?.(c.accDescr),c.accTitle&&e.setAccTitle?.(c.accTitle),c.title&&e.setDiagramTitle?.(c.title)}i(t,"populateCommonDb");export{t as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as o}from"./
|
|
1
|
+
import{a as o}from"./vJt7gt7x.js";import{g as r}from"./B45awpwY.js";var l=1;function n(){if(!(typeof globalThis>"u"))return globalThis}r(n,"getCaptureGlobal");o(n,"getCaptureGlobal");function p(){return!!n()?.mermaidCaptureSizes}r(p,"shouldCaptureSizes");o(p,"shouldCaptureSizes");function u(){return typeof location>"u"?"browser-dev":`${location.pathname}${location.search}`}r(u,"capturedFromLocation");o(u,"capturedFromLocation");function d(i,a){const t=n();if(!t)return;const e=a.node(),m=((e&&"ownerSVGElement"in e?e.ownerSVGElement:null)??e)?.id??"(unknown)";t.mermaidCapturedSizes??=[];const s={svgId:m,sizes:i};t.mermaidCapturedSizes.push(s),t.mermaidLastCapturedSizes=s}r(d,"emitCapturedSizes");o(d,"emitCapturedSizes");function c(i,a){const t=[];for(const e of a.nodes)e.isGroup||t.push({id:e.id,width:e.width??0,height:e.height??0});t.length!==0&&d({metadata:{captureVersion:l,capturedAt:new Date().toISOString(),capturedFrom:u()},nodes:t},i)}r(c,"captureNodeSizes");o(c,"captureNodeSizes");export{c as captureNodeSizes,p as shouldCaptureSizes};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as gt,bq as n,bo as a,by as Ct,b as bt,a_ as g}from"./GWL2EpD7.js";import{bs as pt,aD as C,bn as yt,aA as o,a5 as z,bS as A,bf as xt,bA as G,W as u,c9 as b,bl as D,b_ as h,bO as W,aB as P,b$ as kt}from"./B8o4lNgr.js";import{s as At}from"./vOveF3fP.js";import"./CYiv-51w.js";import"./BlBijATU.js";import"./
|
|
1
|
+
import{t as gt,bq as n,bo as a,by as Ct,b as bt,a_ as g}from"./GWL2EpD7.js";import{bs as pt,aD as C,bn as yt,aA as o,a5 as z,bS as A,bf as xt,bA as G,W as u,c9 as b,bl as D,b_ as h,bO as W,aB as P,b$ as kt}from"./B8o4lNgr.js";import{s as At}from"./vOveF3fP.js";import"./CYiv-51w.js";import"./BlBijATU.js";import"./DkNxxzmT.js";import{D as ht}from"./B6ZTfeOu.js";import{t as l}from"./bocWuth7.js";import"./Dayd4Wgp.js";import"./CPj7dkhl.js";var Wt=P('<p class="type-body"> </p>'),X=P('<p class="type-body text-foreground font-medium"> </p>'),Pt=P('<p class="type-body text-muted-foreground font-normal"> </p>'),Rt=P('<p class="type-body text-muted-foreground font-normal"> <!></p>'),St=P('<div class="space-y-2"><!> <!> <!> <!></div>'),Bt=P('<div class="space-y-4"><!> <!> <!></div>');function Dt(J,e){if(new.target)return gt({component:Dt,...J});pt(e,!0);let p=n(e,"open",15,!1),F=n(e,"static",7,!1),H=n(e,"title",23,()=>a.modals_bulkActionConfirm_title()),S=n(e,"description",7,""),T=n(e,"confirmText",23,()=>a.modals_bulkActionConfirm_confirm_label()),w=n(e,"variant",7,"default"),y=n(e,"initialFocus",7,"confirm"),q=n(e,"body",7),c=n(e,"openPrCount",7,0),x=n(e,"preflightReady",7,!0),E=n(e,"mode",7,"delete"),d=n(e,"activeAgentCount",7,0),m=n(e,"activeHookCount",7,0),_=n(e,"guestCount",7,0),I=n(e,"onConfirm",7),K=n(e,"onCancel",7);const Y=b(()=>d()>0||m()>0||c()>0||_()>0);function Z(){p(!1),K()?.()}async function $(){await I()?.(),p(!1)}var tt={get open(){return p()},set open(t=!1){p(t),o()},get static(){return F()},set static(t=!1){F(t),o()},get title(){return H()},set title(t=a.modals_bulkActionConfirm_title()){H(t),o()},get description(){return S()},set description(t=""){S(t),o()},get confirmText(){return T()},set confirmText(t=a.modals_bulkActionConfirm_confirm_label()){T(t),o()},get variant(){return w()},set variant(t="default"){w(t),o()},get initialFocus(){return y()},set initialFocus(t="confirm"){y(t),o()},get body(){return q()},set body(t){q(t),o()},get openPrCount(){return c()},set openPrCount(t=0){c(t),o()},get preflightReady(){return x()},set preflightReady(t=!0){x(t),o()},get mode(){return E()},set mode(t="delete"){E(t),o()},get activeAgentCount(){return d()},set activeAgentCount(t=0){d(t),o()},get activeHookCount(){return m()},set activeHookCount(t=0){m(t),o()},get guestCount(){return _()},set guestCount(t=0){_(t),o()},get onConfirm(){return I()},set onConfirm(t){I(t),o()},get onCancel(){return K()},set onCancel(t){K(t),o()},$set:Ct,$on:(t,L)=>bt(e,t,L)};{const t=O=>{var j=Bt(),M=z(j);{var it=f=>{var k=Wt(),B=D(k,!0);h(()=>W(B,S())),u(f,k)};g(M,f=>{S()&&f(it)})}var N=A(M,2);{var st=f=>{var k=St(),B=z(k);{var lt=r=>{var i=X(),s=D(i,!0);h(v=>W(s,v),[()=>d()===1?a.modals_deleteWarning_agentsStopped_one({count:l(d())}):a.modals_deleteWarning_agentsStopped_many({count:l(d())})]),u(r,i)};g(B,r=>{d()>0&&r(lt)})}var Q=A(B,2);{var ct=r=>{var i=X(),s=D(i,!0);h(v=>W(s,v),[()=>m()===1?a.modals_deleteWarning_hooksCancelled_one({count:l(m())}):a.modals_deleteWarning_hooksCancelled_many({count:l(m())})]),u(r,i)};g(Q,r=>{m()>0&&r(ct)})}var U=A(Q,2);{var dt=r=>{var i=Pt(),s=D(i,!0);h(v=>W(s,v),[()=>c()===1?a.modals_deleteWarning_openPrs_one({count:l(c())}):a.modals_deleteWarning_openPrs_many({count:l(c())})]),u(r,i)};g(U,r=>{c()>0&&r(dt)})}var mt=A(U,2);{var _t=r=>{var i=Rt(),s=z(i),v=A(s);{var ft=R=>{var V=kt();h(vt=>W(V,vt),[()=>a.modals_bulkActionConfirm_guestsReinvite_description()]),u(R,V)};g(v,R=>{E()==="archive"&&R(ft)})}G(i),h(R=>W(s,`${R??""} `),[()=>_()===1?a.modals_bulkActionConfirm_guestsRemoved_one({count:l(_())}):a.modals_bulkActionConfirm_guestsRemoved_many({count:l(_())})]),u(r,i)};g(mt,r=>{_()>0&&r(_t)})}G(k),u(f,k)};g(N,f=>{C(Y)&&f(st)})}var ut=A(N,2);At(ut,()=>q()??xt),G(j),u(O,j)};let L=b(()=>!x()),et=b(()=>x()&&y()==="confirm"),nt=b(()=>!x()||y()==="cancel"),ot=b(()=>y()==="cancel"?"ignore":"submit"),rt=b(()=>y()==="cancel"?"ignore":"submit"),at=b(()=>w()==="destructive");ht(J,{get static(){return F()},get title(){return H()},get confirmLabel(){return T()},get submitBusy(){return C(L)},get canSubmit(){return x()},get focusSubmit(){return C(et)},get focusCancel(){return C(nt)},get enterKey(){return C(ot)},get modEnter(){return C(rt)},get destructive(){return C(at)},onConfirm:$,onCancel:Z,get open(){return p()},set open(O){p(O)},details:t,$$slots:{details:!0}})}return yt(tt)}export{Dt as B};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as p,r as u,d as n}from"./
|
|
1
|
+
import{g as p,r as u,d as n}from"./DnE5aVuv.js";import{p as f}from"./y3HzT_To.js";import{M as c,c as d}from"./DGsKwFeF.js";import{a,ad as o}from"./vJt7gt7x.js";import"./B45awpwY.js";var v=d().RailroadAbnf.parser.LangiumParser,i=a(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=a(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=a(e=>{if(e.includes("*")){const[t,s]=e.split("*"),l=t?parseInt(t,10):0,m=s?parseInt(s,10):1/0;return{min:l,max:m}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=a(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:s}=b(e.repeat);return t===0&&s===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:s}},"transformElement"),A=a(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=a(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=a(e=>{f(e,n),e.title&&n.setTitle(e.title),e.rules.map(r=>n.addRule(P(r)))},"populateDb"),R={parse:a(e=>{n.clear(),o.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;o.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),o.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:n}},B={parser:R,db:n,renderer:u,styles:p};export{B as diagram};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as pt,bq as S,a_ as q,by as bt,bs as Pt,b as Ct,bo as vt,bu as h}from"./GWL2EpD7.js";import{bs as $t,ca as L,aD as n,c9 as i,a7 as E,ay as _,W as w,bn as kt,bS as yt,aA as B,aB as St}from"./B8o4lNgr.js";import{z as _t}from"./BeYie-c5.js";import{c as wt}from"./DJCBi8x9.js";import{aU as Bt}from"./
|
|
1
|
+
import{t as pt,bq as S,a_ as q,by as bt,bs as Pt,b as Ct,bo as vt,bu as h}from"./GWL2EpD7.js";import{bs as $t,ca as L,aD as n,c9 as i,a7 as E,ay as _,W as w,bn as kt,bS as yt,aA as B,aB as St}from"./B8o4lNgr.js";import{z as _t}from"./BeYie-c5.js";import{c as wt}from"./DJCBi8x9.js";import{aU as Bt}from"./CiShviCo.js";import{G0 as u,ei as It,ej as Ut,Gx as Wt,GL as Dt,GC as Rt,t1 as Tt,mY as V}from"./C2YltVuJ.js";import{g as At}from"./CoSk1zgY.js";import{bx as Ft,bz as Ht,di as xt}from"./6WgKbzWn.js";import{C as f}from"./DypB-Dwi.js";import"./BmdFGxql.js";import"./CYiv-51w.js";import"./vOveF3fP.js";import{ba as Mt}from"./BM7uH7Bn.js";import"./Dayd4Wgp.js";import"./B6ZTfeOu.js";import{T as Gt}from"./Di6uZPiF.js";import"./BmyBU_d0.js";import{M as Nt}from"./BU0pqKbR.js";import{V as qt}from"./Bbx7keP6.js";import{O as Lt}from"./CAvR_m9C.js";import{bD as Et,bB as Vt,aY as zt}from"./BhDJcXuT.js";import{i as Kt}from"./H2jLkRRS.js";var Ot=St("<!> <!>",1);function Yt(I,p){if(new.target)return pt({component:Yt,...I});$t(p,!0);const U=()=>h(et,"$workspace",l),P=()=>h(X,"$ftChanges$",l),z=()=>h(Z,"$ftCommits$",l),W=()=>h(J,"$foldUnchanged",l),D=()=>h(j,"$lineWrapping",l),R=()=>h(Q,"$diffSideBySide",l),[l,K]=Pt(),O=t=>{qt(t,{embedded:!0,get foldEnabled(){return W()},onToggleFold:()=>u.dispatch(Rt()),get wrapEnabled(){return D()},onToggleWrap:()=>u.dispatch(Dt()),get splitEnabled(){return R()},onToggleSplit:()=>u.dispatch(Wt())})},Y=t=>{var e=Ot(),r=_(e);{let m=i(()=>vt.layout_diffHeader_goToFile_tooltip());wt(r,()=>Nt,(y,ht)=>{ht(y,{get icon(){return Mt},get label(){return n(m)},onclick:jt=>ft()})})}var s=yt(r,2);{var d=m=>{Lt(m,{get filePath(){return n($)},get workspaceId(){return o()},isDirectory:!1,embedded:!0,get workspaceFolderPath(){return n(v)}})};q(s,m=>{n($)&&m(d)})}w(t,e)},j=Et(),J=Vt(),Q=zt();let a=S(p,"tab",7),o=S(p,"workspaceId",7),b=S(p,"isActive",7);const C=Bt(()=>o()),X=Ft(C),Z=Ht(C),tt=new Set([f.Committed,f.Pushed,f.PullRequest,f.Merged,f.Trunk]),T=At(),et=xt(C),nt=i(()=>U()?.worktreePath||U()?.repositoryPath||void 0);L(()=>{const t=o();if(!(!b()||!t||n(c)))return u.dispatch(It(t,"all")),()=>u.dispatch(Ut(t,"all"))});const c=i(()=>a().data?.gitRootId),A=i(()=>a().data?.gitRootPath),v=i(()=>n(A)||n(nt)),$=i(()=>a().diffPath&&n(v)?Kt(a().diffPath)?a().diffPath:`${n(v)}/${a().diffPath}`:null);function F(t,e){return!!(t.file===e||t.relativePath===e||t.relativePath&&e.endsWith("/"+t.relativePath)||t.file&&e.endsWith("/"+t.file)||t.relativePath&&t.relativePath.endsWith("/"+e)||t.file&&t.file.endsWith("/"+e))}function H(t){return!t||n(c)?null:P().find(e=>F(e,t)&&(e.stage==="staged"||e.stage==="unstaged"))??null}function at(t){if(!t||n(c))return null;let e=null,r=-1/0;for(const s of P()){if(!F(s,t)||!tt.has(s.stage)||!s.commitHash)continue;const d=s.attribution?.timestamp??0;d>=r&&(e=s,r=d)}return e}function it(t,e){return!!(t===e||e.endsWith("/"+t)||t.endsWith("/"+e))}function rt(t){if(!t||n(c))return null;for(const e of z())if(e?.hash&&e.files?.some(r=>r?.path&&it(r.path,t)))return{id:`diff-${t}-${e.hash}`,file:t,relativePath:t,status:"modified",stage:f.Committed,commitHash:e.hash,stats:{additions:0,deletions:0},attribution:{timestamp:e.timestamp??Date.now()}};return null}const x=i(()=>a().diffPath?H(a().diffPath):null),st=i(()=>{if(!a().diffPath)return 0;const t=H(a().diffPath),e=P().length;if(t){const r=t.stage==="staged"?1:t.stage==="unstaged"?2:3,s=(t.stats?.additions||0)+(t.stats?.deletions||0),d=t.attribution?.timestamp?t.attribution.timestamp%1e5:0;return r*1e6+s*1e3+d+e}return e}),g=i(()=>a().data?.change),M=i(()=>a().data?.branchBaseRef),G=i(()=>a().data?.branchBaseCommitSha),ot=i(()=>!!(n(M)||n(G))),k=i(()=>{if(n(g)?.commitHash)return n(g);if(n(x))return n(x);if(n(ot)&&n(g))return n(g);const t=at(a().diffPath??null);if(t)return t;const e=rt(a().diffPath??null);return e||(n(g)?n(g):{id:`diff-${a().diffPath}`,file:a().diffPath||"",relativePath:a().diffPath||"",status:"modified",stage:f.Unstaged,stats:{additions:0,deletions:0},attribution:{timestamp:Date.now()}})});function ft(t){if(!a().diffPath)return;const r={type:"file",title:a().diffPath.split("/").pop()||a().diffPath,closable:!0,filePath:n($)||a().diffPath,workspaceId:o()};u.dispatch(Tt(o(),r))}L(()=>{!T||!b()||T.registerActions({display:O,actions:Y})});function dt(t,e){u.dispatch(V(o(),crypto.randomUUID(),{kind:"stageHunk",filePath:t,hunkPatch:e,source:"diff"}))}function ut(t,e){u.dispatch(V(o(),crypto.randomUUID(),{kind:"unstageHunk",filePath:t,hunkPatch:e,source:"diff"}))}var ct={get tab(){return a()},set tab(t){a(t),B()},get workspaceId(){return o()},set workspaceId(t){o(t),B()},get isActive(){return b()},set isActive(t){b(t),B()},$set:bt,$on:(t,e)=>Ct(p,t,e)},N=E(),mt=_(N);{var lt=t=>{var e=E(),r=_(e);_t(r,()=>a().diffPath,s=>{{let d=i(()=>R()?"split":"unified"),m=i(()=>!n(c)&&n(k).stage===f.Unstaged?dt:void 0),y=i(()=>!n(c)&&n(k).stage===f.Staged?ut:void 0);Gt(s,{get active(){return b()},get change(){return n(k)},get workspaceId(){return o()},get viewMode(){return n(d)},get foldUnchanged(){return W()},get lineWrapping(){return D()},get refreshKey(){return n(st)},get branchBaseRef(){return n(M)},get branchBaseCommitSha(){return n(G)},get gitRootId(){return n(c)},get gitRootPath(){return n(A)},get onStageHunk(){return n(m)},get onUnstageHunk(){return n(y)}})}}),w(t,e)};q(mt,t=>{a().diffPath&&t(lt)})}w(I,N);var gt=kt(ct);return K(),gt}export{Yt as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
import{bo as m,t as Ht,bq as y,a_ as M,by as jt,b as Wt,br as lf,bu as Ft,bs as ca,bt as ni,b7 as ji,ba as cf,bl as df,bb as uf,bm as ff,a$ as pf,b9 as gf,b8 as vf,b2 as mf,bf as hf,bg as bf,bk as yf,be as _f,bn as xf,b0 as wf,b4 as kf,bi as If,bh as Sf,b6 as Cf,b5 as Ef,b3 as Pf,bd as Af,bc as Tf,bj as Rf,b1 as Lf,_ as Nf}from"./GWL2EpD7.js";import{bI as Mf,bj as fs,aG as Of,bs as Ut,aD as e,a5 as S,bS as v,bA as w,W as d,bn as qt,c9 as u,aA as _,a7 as kt,ay as ze,be as sr,b$ as Lt,aC as ya,bl as R,b_ as k,bO as x,aB as I,bo as ps,ca as Ct,bH as N,bV as we,br as Ur,bk as gs,c0 as Zn,ai as Aa,cd as Ns,aw as wn,a as Df,aj as Ar,c7 as Bf,c6 as Wi,c5 as Ln,bf as Ms,bz as Ac}from"./B8o4lNgr.js";import{z as Os,I as Ff,w as zf}from"./BeYie-c5.js";import{c as Hf,s as oe,a as Nn,l as Mn,f as kn,d as cr,k as mt,I as vs,h as Tt,i as Rr,o as jf,j as Wf,g as Uf,n as qf}from"./CYiv-51w.js";import{s as dn}from"./vOveF3fP.js";import{c as Xr}from"./DJCBi8x9.js";import{H as Lo,t as lr,n as Vf,i as Ui,u as qi}from"./bocWuth7.js";import{b as gr}from"./D2g8BuR1.js";import{h as Tc,bs as Kf,cH as Gf,dy as Jf,dj as Yf,av as Xf,cr as Zf,a1 as Qf,cM as $f,di as ns,aA as Gs,c0 as ep,H as tp,c as rp,$ as Vi,cS as np,bQ as ap,L as sp,df as op,V as ip,dp as lp,ae as cp,f as dp,t as up}from"./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/B6ZTfeOu.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/chunks/GWL2EpD7.js","/app/immutable/chunks/vOveF3fP.js","/app/immutable/chunks/sXvRCqUb.js","/app/immutable/chunks/bocWuth7.js","/app/immutable/chunks/CYiv-51w.js","/app/immutable/chunks/CpHIRYx9.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/Dayd4Wgp.js","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/chunks/DJCBi8x9.js","/app/immutable/chunks/BeYie-c5.js","/app/immutable/chunks/CsjyI82U.js","/app/immutable/chunks/DVkfuwKw.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/Com4THH3.js","/app/immutable/chunks/BlBijATU.js","/app/immutable/chunks/C2YltVuJ.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/CRK47dBR.js","/app/immutable/chunks/BmyBU_d0.js","/app/immutable/chunks/BM7uH7Bn.js","/app/immutable/chunks/D2AmAQEr.js","/app/immutable/chunks/CPj7dkhl.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/assets/observe-overflow.D4mrl2M9.css","/app/immutable/chunks/DkNxxzmT.js","/app/immutable/chunks/DCmgYKro.js","/app/immutable/chunks/0I000Ru9.js","/app/immutable/chunks/6WgKbzWn.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/C6YXNiX1.js","/app/immutable/chunks/QjTmIbp0.js","/app/immutable/assets/connection-label.UE5obH5A.css","/app/immutable/chunks/CUrlpJj4.js","/app/immutable/chunks/FY5ry3XL.js","/app/immutable/chunks/GxfhVh4S.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/DTOf9l3E.js","/app/immutable/chunks/C8BD21JK.js","/app/immutable/assets/notify.CaX-6yIe.css","/app/immutable/chunks/sSa7Wn7K.js","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/Bl0HJ17r.js","/app/immutable/chunks/DN3mapzL.js","/app/immutable/chunks/CbVPen4y.js","/app/immutable/chunks/COGdwXWC.js","/app/immutable/chunks/D5nEFEMU.js","/app/immutable/chunks/BY0FrRuN.js","/app/immutable/chunks/DACKa6C3.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/CszhQy-T.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{bo as m,t as Ht,bq as y,a_ as M,by as jt,b as Wt,br as lf,bu as Ft,bs as ca,bt as ni,b7 as ji,ba as cf,bl as df,bb as uf,bm as ff,a$ as pf,b9 as gf,b8 as vf,b2 as mf,bf as hf,bg as bf,bk as yf,be as _f,bn as xf,b0 as wf,b4 as kf,bi as If,bh as Sf,b6 as Cf,b5 as Ef,b3 as Pf,bd as Af,bc as Tf,bj as Rf,b1 as Lf,_ as Nf}from"./GWL2EpD7.js";import{bI as Mf,bj as fs,aG as Of,bs as Ut,aD as e,a5 as S,bS as v,bA as w,W as d,bn as qt,c9 as u,aA as _,a7 as kt,ay as ze,be as sr,b$ as Lt,aC as ya,bl as R,b_ as k,bO as x,aB as I,bo as ps,ca as Ct,bH as N,bV as we,br as Ur,bk as gs,c0 as Zn,ai as Aa,cd as Ns,aw as wn,a as Df,aj as Ar,c7 as Bf,c6 as Wi,c5 as Ln,bf as Ms,bz as Ac}from"./B8o4lNgr.js";import{z as Os,I as Ff,w as zf}from"./BeYie-c5.js";import{c as Hf,s as oe,a as Nn,l as Mn,f as kn,d as cr,k as mt,I as vs,h as Tt,i as Rr,o as jf,j as Wf,g as Uf,n as qf}from"./CYiv-51w.js";import{s as dn}from"./vOveF3fP.js";import{c as Xr}from"./DJCBi8x9.js";import{H as Lo,t as lr,n as Vf,i as Ui,u as qi}from"./bocWuth7.js";import{b as gr}from"./D2g8BuR1.js";import{h as Tc,bs as Kf,cH as Gf,dy as Jf,dj as Yf,av as Xf,cr as Zf,a1 as Qf,cM as $f,di as ns,aA as Gs,c0 as ep,H as tp,c as rp,$ as Vi,cS as np,bQ as ap,L as sp,df as op,V as ip,dp as lp,ae as cp,f as dp,t as up}from"./6WgKbzWn.js";import{c as fp}from"./D-62MVd3.js";import{n as ra,w as pp,C as Rc,M as gp,R as vp}from"./C8BD21JK.js";import{f as yt,ap as ja,ai as mp,am as No,bb as hp}from"./Dayd4Wgp.js";import{ai as bp,a7 as Ki,X as yp,at as _p,aM as xp,I as wp,R as kp,an as Ip,ab as Sp,Y as Cp,b as Gi,q as Ep,n as Pp,aS as Ap,m as Tp,aU as Mo,A as Ji,aa as Rp,aT as Lp,ak as Lc,L as Nc,a3 as Np,a2 as Yi,J as Xi}from"./CiShviCo.js";import{cT as Mp,F as Et,bd as Oo,bG as Op,am as Dp,aN as Bp,cD as Fp,bh as ai,bw as zp,aD as Mc,aI as si,cS as Ds,a9 as Do,ch as Hp,c7 as jp,cc as oi,cy as Oc,bn as Wp,d as Up,bW as Zi,c3 as qp,cf as Vp,cO as Dc,bQ as Qi,b4 as po,ba as $a,aC as Kp,ax as Bo,as as Bc,b8 as Fc,bx as Gp,B as Jp,bq as Yp,a5 as zc,cb as Xp,aj as Hc,cF as jc,cB as $i,aq as Wc,aH as el,a0 as Zp,cp as Qp,cM as $p,bJ as Uc,bj as eg,b$ as tl,al as qc,aw as tg,a7 as rg,a6 as ng}from"./BM7uH7Bn.js";import{c as Vc}from"./ChTqQfQN.js";import{h as ag}from"./QjTmIbp0.js";import{G0 as Mt,bG as sg,r1 as og,GN as ig,GS as lg,g as Kc,FO as cg,ms as Gc,mH as Jc,mG as Yc,ml as Js,oT as Xc,vU as dg,td as Es,sy as Fo,tf as ug,m9 as Zc,G5 as fg,ry as pg,nu as Qc,pT as ii,kV as rl,a0 as nl,pu as gg,pq as vg,pv as mg,pm as hg,ps as bg,t3 as yg,yo as $c,ys as ed,mI as al,b9 as zo,Ex as _g,FK as xg,mC as wg,u0 as kg,u1 as Ig,t$ as sl,zk as Xn,ck as td,c8 as Sg,cY as Cg,d3 as Eg,yy as Pg}from"./C2YltVuJ.js";import{k as rd,f as ol,O as il,M as Ag,J as Tg,E as Rg,r as Lg,q as Ng,R as Mg,Q as nd,N as Ho,e as as,a2 as ll,i as Og}from"./B6ZTfeOu.js";import{bi as Dg,bp as Bg,h as Fg,t as zg,bs as Hg,U as jg,W as Wg,Y as Ug}from"./DkNxxzmT.js";import{i as qg,h as Vg,p as jo,bL as Kg,B as Gg,bK as Jg,bH as Yg,ar as cl,bJ as Xg,bi as Wo,aB as Zg,n as Qg,b2 as $g,r as ev}from"./Bl0HJ17r.js";import{a1 as tv,aj as ws,ai as rv,aw as dl,aE as nv,ah as av,B as sv,i as ov,C as Ps,cA as iv,cF as lv,ad as cv,a5 as dv,r as uv,p as fv,aB as pv,cI as gv,cr as vv,ck as mv,cb as hv,bE as bv}from"./BhDJcXuT.js";import{s as yv,j as _v,i as xv,I as Ua,c as ul}from"./Com4THH3.js";import"./BlBijATU.js";import"./CPj7dkhl.js";import{I as li,P as wv,s as kv,k as Iv,G as Sv,o as Cv,l as Ev,M as Pv,H as Av,w as za,a as Tv,K as Rv,n as Lv,R as Nv}from"./CRK47dBR.js";import{t as ss,m as Mv,O as Ov,M as Dv,S as ha}from"./BmyBU_d0.js";import{C as Uo}from"./CJ17D0UC.js";import{I as Bv,K as Fv,J as zv,t as ci,v as Hv,u as Ys,F as jv,A as fl,d as os,c as ba,G as pl,b as Wv,e as Uv,f as gl,h as qv,a as Vv,n as ad,i as Kv,O as Gv,w as Jv,j as sd,S as Yv,N as Xv,p as vl,o as Zv,m as ml,y as Qv,r as $v}from"./9hy801AX.js";import{aK as em,aS as tm,aI as rm,aO as nm,a6 as Va,aY as hl,aE as am,aL as sm,aR as di,aM as ui,V as go,an as om,W as im,aU as lm,aD as cm,aN as dm,aQ as um,a$ as fm,aZ as pm,av as od,p as gm,n as vm,aP as mm,Z as hm,z as bm}from"./DOsLfX1h.js";import{s as qo}from"./68rxuoyq.js";import{M as ym}from"./BU0pqKbR.js";import{o as bl,a as yl,T as vo,b as _m}from"./BDjsvDcb.js";import{ab as xm,a2 as wm,H as km,z as Im,ae as Sm}from"./CtfKkjtt.js";import{D as is}from"./BmdFGxql.js";import"./CImPLMFh.js";import{C as na}from"./Bu2f_xik.js";import{M as Cm}from"./B45awpwY.js";import{g as fi}from"./sXvRCqUb.js";import{f as _l}from"./D5nEFEMU.js";import{c as As}from"./DCU5S8Gd.js";import{handleIntentLink as Em}from"./DGrFhzHu.js";import{s as Pm,a as Am,f as Tm,d as Rm,r as Lm,h as Nm,w as es,g as Mm,W as Om,H as Dm,c as Bm,M as id}from"./DJxE8cOI.js";import{e as Fm,q as zm}from"./DCmgYKro.js";import{showAssistantContent as Hm}from"./CSZ4_RTQ.js";import{o as Bs,c as jm,n as Wm}from"./CszhQy-T.js";import{p as Um}from"./C87twKUp.js";import{m as qm}from"./DY0zw3Os.js";import{h as ks}from"./T7KiJHQS.js";import{i as ld}from"./DN3mapzL.js";import{b as Vm,f as Km,h as Gm,j as Jm}from"./0I000Ru9.js";import{T as mo}from"./Bm52rc6Y.js";import{i as Ym,r as xl}from"./BoGQvi6r.js";import{a as Xm}from"./sSa7Wn7K.js";import{a as Zm}from"./BJzHxIyr.js";import{p as Qm}from"./DFxsImeG.js";const $m="intent:inline-visual-draft";function HI(r,t){const n=t.title.replace(/\s+/g," ").trim(),a=JSON.stringify({inputs:t.inputs,results:t.results},null,2),s=(a.match(/`+/g)??[]).reduce((l,c)=>Math.max(l,c.length),0),o="`".repeat(Math.max(3,s+1));return`${r}${r?`
|
|
3
3
|
|
|
4
4
|
`:""}${n}
|
|
5
5
|
|
|
@@ -257,7 +257,7 @@ ${r.content}`:a.content=r.content,a):r.old_text!==void 0&&r.new_text!==void 0?(a
|
|
|
257
257
|
`,c1=["background","foreground","card","card-foreground","primary","primary-ink","primary-foreground","secondary","secondary-foreground","muted","muted-foreground","border","input","ring","danger","danger-background","info","info-foreground","success","success-foreground","warning","warning-foreground","font-ui","font-code","text-body-size","text-body-line-height","text-body-weight","text-body-tracking","radius-small","radius-medium","radius-large","app-background","sidebar","sidebar-accent","agent-avatar-surface-active","agent-avatar-foreground","diagram-host-surface","diagram-canvas","diagram-label-surface","diagram-node-surface","diagram-node-hover-surface","diagram-node-outline","diagram-node-title","diagram-metadata","diagram-group-outline","diagram-connector","diagram-connector-hover","diagram-connector-muted","diagram-connector-inactive","diagram-connector-danger","diagram-connector-success","diagram-connector-warning","diagram-connector-active","diagram-accent","diagram-accent-foreground","diagram-node-radius","diagram-group-radius","diagram-connector-width","text-caption-size","text-caption-line-height","text-caption-weight","text-caption-tracking","text-body-strong-size","text-body-strong-line-height","text-body-strong-weight","text-body-strong-tracking","space-1","space-2","space-3","space-4","space-5","space-6","space-7","control-height-compact","control-height-small","control-height-medium","control-height-large","radius-full","spring-fast","spring-fast-exit","spring-fast-ease","spring-moderate","spring-moderate-exit","spring-moderate-ease","spring-slow","spring-slow-exit","spring-slow-ease","spring-exit-ease","motion-fast","motion-standard","motion-slow","ease-standard","ease-emphasized-out","motion-reduced"],Po=96,dc=2e4,d1=480,fu=512,u1=["default-src 'none'","script-src 'unsafe-inline'","style-src 'unsafe-inline'","img-src data:","connect-src 'none'","font-src data:","media-src 'none'","object-src 'none'","frame-src 'none'","child-src 'none'","worker-src 'none'","manifest-src 'none'","base-uri 'none'","form-action 'none'"].join("; ");function f1(r,t,n,a,s,o){const l=new MessageChannel,c=MessagePort.prototype.postMessage.bind(l.port1);window.parent.postMessage({channel:r,type:"scroll-port"},"*",[l.port2]);const f=(C,F={})=>{window.parent.postMessage({channel:r,type:C,...F},"*")};let i=s?.state??null,p=null,g=!1;Object.defineProperty(window,"intentVisual",{configurable:!1,writable:!1,value:Object.freeze({get state(){return i},publish(C){try{if(!o(C))return!1;const F=JSON.parse(JSON.stringify(C));return i=F.state,p=F,g||(g=!0,requestAnimationFrame(()=>{g=!1,p&&f("snapshot",{snapshot:p}),p=null})),!0}catch{return!1}}})});let L=!1,b=-1,h=innerHeight,A=Number.NaN,T=0,H=0;const B=()=>{if(L=!1,!document.body)return;let C=Math.ceil(Math.max(document.body.scrollHeight,document.body.getBoundingClientRect().height));const F=innerHeight,K=C-F;if(F>h+1&&K>1&&Math.abs(K-A)<=1?T+=1:(F!==h||K<=1)&&(T=0),h=F,A=K,!H&&T>=3){H=Math.max(a,F);const X="Page height follows the frame (vh units or height: 100%); frame height held.";console.warn(X),f("layout",{message:X})}H&&(C=Math.min(C,H)),C!==b&&(b=C,f("resize",{height:C}))},O=()=>{L||(L=!0,requestAnimationFrame(B))},D=C=>{if(!C||typeof C.dark!="boolean"||!C.variables)return;const F=document.documentElement;F.classList.toggle("dark",C.dark),F.style.colorScheme=C.dark?"dark":"light";const K=C.variables["--inline-html-root-font-size"];"--inline-html-root-font-size"in t.variables&&typeof K=="string"&&K.length<512&&F.style.setProperty("--inline-html-root-font-size",K);for(const X of Object.keys(t.variables)){if(X==="--inline-html-root-font-size")continue;const de=C.variables[X];typeof de=="string"&&de.length<512&&F.style.setProperty(X,de)}O()};window.addEventListener("message",C=>{C.source!==window.parent||!C.data||C.data.channel!==r||C.data.type==="theme"&&D(C.data.theme)});const U=C=>{if(C.defaultPrevented||!C.isTrusted||C.ctrlKey||C.metaKey||C.shiftKey||!C.deltaY||Math.abs(C.deltaX)>Math.abs(C.deltaY))return;const F=de=>{const Pe=getComputedStyle(de);if(de!==document.scrollingElement&&!/^(auto|scroll|overlay)$/.test(Pe.overflowY)||/^(hidden|clip)$/.test(Pe.overflowY))return!1;const ue=de.scrollHeight-de.clientHeight;return ue>1&&(C.deltaY<0?de.scrollTop>1:de.scrollTop<ue-1)};if(C.composedPath().some(de=>de instanceof Element&&F(de))||document.scrollingElement&&F(document.scrollingElement))return;const K=C.deltaMode===WheelEvent.DOM_DELTA_LINE?parseFloat(getComputedStyle(document.body).lineHeight)||16:C.deltaMode===WheelEvent.DOM_DELTA_PAGE?innerHeight:1,X=Math.max(-n,Math.min(n,C.deltaY*K));Number.isFinite(X)&&(C.preventDefault(),c({deltaY:X}))};window.addEventListener("wheel",()=>{window.removeEventListener("wheel",U),window.addEventListener("wheel",U,{passive:!1})},{capture:!0,passive:!1}),window.addEventListener("error",C=>{C.message&&f("error",{message:C.message.slice(0,300)})}),window.addEventListener("unhandledrejection",C=>{const F=C.reason;f("error",{message:String(F instanceof Error?F.message:F).slice(0,300)})}),window.addEventListener("click",C=>{const F=C.target instanceof Element?C.target.closest("a, area"):null;if(!F)return;(F.getAttribute("href")??F.getAttribute("xlink:href"))?.startsWith("#")||C.preventDefault()},!0),window.addEventListener("submit",C=>C.preventDefault(),!0),D(t),window.addEventListener("DOMContentLoaded",()=>{new ResizeObserver(O).observe(document.body),new MutationObserver(O).observe(document.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),window.addEventListener("resize",O),document.addEventListener("load",O,!0),document.fonts.ready.then(O),f("ready"),O()},{once:!0})}function p1(r,t,n,a,s){const o=document.createElement("iframe");o.setAttribute("sandbox","allow-scripts"),o.setAttribute("referrerpolicy","no-referrer"),o.title=n,o.style.cssText="display:block;width:100%;height:100%;border:0;";let l;const c=f=>{const i=f.data?.deltaY;typeof i=="number"&&Number.isFinite(i)&&i!==0&&Math.abs(i)<=a&&window.parent.postMessage({channel:r,type:"wheel",deltaY:i},"*")};window.addEventListener("message",f=>{const i=f.data;if(!(!i||typeof i!="object"||i.channel!==r)){if(f.source===window.parent&&i.type==="theme"){o.contentWindow?.postMessage({channel:r,type:"theme",theme:i.theme},"*");return}if(!(f.source!==o.contentWindow||f.origin!=="null")){if(i.type==="scroll-port"&&!l&&f.ports.length===1){l=f.ports[0],l.onmessage=c;return}i.type==="resize"&&typeof i.height=="number"&&Number.isFinite(i.height)&&i.height>=0?window.parent.postMessage({channel:r,type:"resize",height:i.height},"*"):i.type==="ready"?window.parent.postMessage({channel:r,type:"ready"},"*"):(i.type==="error"||i.type==="layout")&&typeof i.message=="string"?window.parent.postMessage({channel:r,type:i.type,message:i.message.slice(0,300)},"*"):i.type==="snapshot"&&s(i.snapshot)&&window.parent.postMessage({channel:r,type:"snapshot",snapshot:i.snapshot},"*")}}}),window.addEventListener("DOMContentLoaded",()=>{o.srcdoc=t,document.body.append(o)},{once:!0})}function g1(r,t,n,a,s,o,l,c){const f=document.implementation.createHTMLDocument(""),i=f.createElement("template");i.innerHTML=n,f.body.append(i.content);const p=X=>{X.querySelectorAll("meta, base, link, iframe, frame, frameset, object, embed").forEach(de=>de.remove()),X.querySelectorAll("template").forEach(de=>p(de.content)),X.querySelectorAll("a, area").forEach(de=>{for(const Pe of["href","xlink:href"])de.getAttribute(Pe)?.startsWith("#")||de.removeAttribute(Pe);de.removeAttribute("target"),de.removeAttribute("ping"),de.removeAttribute("download")})};p(f);const g=X=>JSON.stringify(X).replace(/</g,"\\u003c"),L=f.createElement("meta");L.httpEquiv="Content-Security-Policy",L.content=r.csp;const b=f.createElement("meta");b.setAttribute("charset","utf-8");const h=f.createElement("style"),A=/^data:[\w.+/-]+;base64,[A-Za-z0-9+/=]+$/.test(c)?`@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900;
|
|
258
258
|
font-display: swap; src: url('${c}') format('woff2'); }`:"";h.textContent=`${A}${r.styles}`;const T=f.createElement("script"),H=g([a,s,r.maxScrollDelta,r.lockHeight,t(l)?l:null]);T.textContent=`(${r.bridge})(...${H}, (${r.validate}));`,f.head.prepend(L,b,h,T);const B=`<!doctype html>${f.documentElement.outerHTML}`,O=document.implementation.createHTMLDocument(""),D=O.createElement("meta");D.httpEquiv="Content-Security-Policy",D.content=r.csp.replace("frame-src 'none'","frame-src about:");const U=O.createElement("meta");U.setAttribute("charset","utf-8");const C=O.createElement("style");C.textContent="html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }";const F=O.createElement("script"),K=g([a,B,o,r.maxScrollDelta]);return F.textContent=`(${r.shell})(...${K}, (${r.validate}));`,O.head.prepend(D,U,C,F),`<!doctype html>${O.documentElement.outerHTML}`}const v1=()=>({csp:u1,styles:l1,maxScrollDelta:fu,lockHeight:d1,bridge:f1.toString(),shell:p1.toString(),validate:ii.toString()});function m1(r,t,n,a,s=null,o=""){return g1(v1(),ii,r,t,n,a,s,o)}function uc(r){const t=getComputedStyle(r);return{dark:document.documentElement.classList.contains("dark"),variables:{...Object.fromEntries(c1.map(n=>[`--${n}`,t.getPropertyValue(`--${n}`).trim()])),"--inline-html-root-font-size":getComputedStyle(document.documentElement).fontSize}}}function h1(r,t,n,a,s=null){return m1(r,t,n,a,s,i1)}var b1=I('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground"> </p>'),y1=I('<div class="type-body flex items-center justify-between gap-3 px-4 py-2" role="status"><span class="text-danger"> </span> <!></div> <!>',1),_1=I('<p class="sr-only" role="status"> </p>'),x1=I('<p class="type-body m-0 px-4 py-3 text-muted-foreground" role="status"> </p>'),w1=I('<div class="type-body px-4 py-2 text-danger" role="status"><p class="m-0"> </p> <p class="type-code m-0 break-words"> </p></div>'),k1=I('<iframe sandbox="allow-scripts" referrerpolicy="no-referrer"></iframe>'),I1=I('<div class="space-y-4 p-4" aria-hidden="true"><div class="space-y-2"><!> <!></div> <!> <div class="flex items-center gap-4"><!> <!> <!></div></div>'),S1=I('<span class="type-caption ml-auto text-muted-foreground" role="status"> </span>'),C1=I('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground" role="status"> <!></p>'),E1=I('<th class="min-w-40 px-2 pb-3 align-top font-normal"><!> <div class="mt-1 flex gap-1"><!> <!></div></th>'),P1=I('<td class="max-w-56 px-2 py-2 align-top break-words tabular-nums"> </td>'),A1=I('<tr><th class="max-w-48 py-2 pr-4 align-top font-normal break-words text-muted-foreground"> </th><!></tr>'),T1=I('<div class="overflow-x-auto px-4 pb-4" data-inline-visual-comparison=""><table class="type-body w-full border-separate border-spacing-0 text-left"><thead><tr><th class="min-w-28 pr-4 pb-3 font-normal text-muted-foreground"> </th><th class="min-w-32 px-2 pb-3 align-top font-medium"> </th><!></tr></thead><tbody></tbody></table></div>'),R1=I('<div class="flex flex-wrap items-center gap-1 px-4 py-2" data-inline-visual-actions=""><!> <!> <!> <!> <!></div> <!> <!>',1),L1=I('<div data-inline-html="" class="my-3 min-w-0 overflow-hidden rounded-lg bg-background text-foreground"><div class="flex min-w-0 items-center justify-end gap-1 p-1"><!> <!></div> <!> <!> <div class="relative min-w-0"><!> <!></div> <!></div>');function pu(r,t){if(new.target)return Ht({component:pu,...r});Ut(t,!0);const n=720;let a=y(t,"source",7),s=y(t,"isStreaming",7,!1),o=y(t,"isComplete",7,!0),l=y(t,"record",7),c=y(t,"storageStatus",7,"ready"),f=y(t,"onRecordChange",7),i=y(t,"onUseConfiguration",7),p=y(t,"onExport",7),g=y(t,"onRetry",7),L=y(t,"storageError",7),b=y(t,"exportStatus",7),h=y(t,"exportPath",7),A=y(t,"exportError",7),T,H=we(void 0),B=we(!1),O=we(!1),D=we(0),U=we(""),C=we(""),F=we(!1),K=we(""),X=we(Ur(Po)),de=we(n),Pe=we(""),ue=we(rl()),Z=we(void 0),ge,Me=we(void 0),G=we(!1);const fe=u(()=>l()??e(ue)),$=u(()=>c()!=="loading"&&(c()!=="error"||!!e(fe).current)),Ae=u(()=>!s()&&o()&&!!a().trim()&&e($)),Se=u(()=>Math.min(dc,Math.max(Po,e(X)))),Ie=u(()=>s()||c()==="loading"?"loading":o()?a().trim()?e(K)?"error":e(F)?"ready":"loading":"empty":"incomplete"),Ye=u(()=>s()||c()==="loading"||e(Ae)&&!e(F)&&!e(K));function Xe(ee){const ke={...ee,current:e(Z)??ee.current};N(ue,ke),f()?.(ke)}function $e(){const ee=e(Z);!ee||e(fe).scenarios.length>=nl||(Xe({...e(fe),scenarios:[...e(fe).scenarios,{id:crypto.randomUUID(),name:yf({number:qi(e(fe).scenarios.length+1)}),snapshot:structuredClone(ee)}]}),N(G,!0))}function te(ee,ke){const at=ke.trim().slice(0,120);at&&Xe({...e(fe),scenarios:e(fe).scenarios.map(et=>et.id===ee?{...et,name:at}:et)})}function Q(ee){const ke=structuredClone(ee);N(Z,ke),N(Me,ke),Xe({...e(fe),current:ke}),N(D,e(D)+1)}function tt(ee){return typeof ee=="number"?qi(ee):typeof ee=="string"?ee:JSON.stringify(ee)}function J(){!e(H)?.contentWindow||!e(C)||e(H).contentWindow.postMessage({channel:e(C),type:"theme",theme:uc(T)},"*")}function V(ee){let ke=T.parentElement;for(;ke;){const at=getComputedStyle(ke),et=ke.scrollHeight-ke.clientHeight;if(/^(auto|scroll|overlay)$/.test(at.overflowY)&&et>1){if(ee<0?ke.scrollTop>0:ke.scrollTop<et){ke.dispatchEvent(new WheelEvent("wheel",{deltaY:ee,bubbles:!0})),ke.scrollTop+=ee;return}if(/^(contain|none)$/.test(at.overscrollBehaviorY))return}ke=ke.parentElement}window.scrollBy({top:ee,behavior:"instant"})}Ct(()=>{if(!e(B))return;const ee=a(),ke=e(Ae);e(D),Ln(()=>{ge!==ee&&(N(ue,rl()),N(Z,void 0),N(G,!1),N(Me,void 0),ge=ee),N(F,!1),N(K,""),N(Pe,""),N(X,Po,!0),N(C,crypto.randomUUID(),!0),N(U,ke?h1(ee,e(C),uc(T),ji(),e(Me)??e(Z)??e(fe).current):"",!0),N(Me,void 0)})}),gs(()=>{N(B,!0);const ee=gt=>{if(gt.source!==e(H)?.contentWindow||gt.origin!=="null")return;const He=gt.data;if(!(!He||typeof He!="object"||He.channel!==e(C)))if(He.type==="resize"&&typeof He.height=="number"&&Number.isFinite(He.height)&&He.height>=0)N(X,Math.min(dc,Math.ceil(He.height)),!0);else if(He.type==="ready")N(F,!0),J();else if(He.type==="error"&&typeof He.message=="string")N(K,He.message.slice(0,300),!0);else if(He.type==="layout"&&typeof He.message=="string")N(Pe,He.message.slice(0,300),!0);else if(He.type==="snapshot"&&e(Ae)&&ii(He.snapshot)){const ht=He.snapshot;N(Z,ht),Xe({...e(fe),current:ht})}else He.type==="wheel"&&e(F)&&e(Ae)&&!e(O)&&!e(Ye)&&typeof He.deltaY=="number"&&Number.isFinite(He.deltaY)&&He.deltaY!==0&&Math.abs(He.deltaY)<=fu&&V(He.deltaY)},ke=()=>{N(de,Math.min(n,Math.max(160,Math.floor(window.innerHeight*.8))),!0)},at=new MutationObserver(J);at.observe(document.documentElement,{attributes:!0,attributeFilter:["class","style","data-theme"]});const et=window.matchMedia("(prefers-color-scheme: dark)");return et.addEventListener("change",J),window.addEventListener("message",ee),window.addEventListener("resize",ke),ke(),()=>{at.disconnect(),et.removeEventListener("change",J),window.removeEventListener("message",ee),window.removeEventListener("resize",ke)}});var q={get source(){return a()},set source(ee){a(ee),_()},get isStreaming(){return s()},set isStreaming(ee=!1){s(ee),_()},get isComplete(){return o()},set isComplete(ee=!0){o(ee),_()},get record(){return l()},set record(ee){l(ee),_()},get storageStatus(){return c()},set storageStatus(ee="ready"){c(ee),_()},get onRecordChange(){return f()},set onRecordChange(ee){f(ee),_()},get onUseConfiguration(){return i()},set onUseConfiguration(ee){i(ee),_()},get onExport(){return p()},set onExport(ee){p(ee),_()},get onRetry(){return g()},set onRetry(ee){g(ee),_()},get storageError(){return L()},set storageError(ee){L(ee),_()},get exportStatus(){return b()},set exportStatus(ee){b(ee),_()},get exportPath(){return h()},set exportPath(ee){h(ee),_()},get exportError(){return A()},set exportError(ee){A(ee),_()},$set:jt,$on:(ee,ke)=>Wt(t,ee,ke)},ce=L1(),_e=S(ce),Y=S(_e);yt(Y,{variant:"ghost",size:"sm",get active(){return e(O)},get"aria-pressed"(){return e(O)},onclick:()=>{N(O,!e(O))},children:(ee,ke)=>{sr();var at=Lt();k(et=>x(at,et),[()=>e(O)?cf():df()]),d(ee,at)},$$slots:{default:!0}});var he=v(Y,2);{let ee=u(()=>!e(Ae));yt(he,{variant:"ghost",size:"sm",get disabled(){return e(ee)},onclick:()=>{N(D,e(D)+1)},children:(ke,at)=>{sr();var et=Lt();k(gt=>x(et,gt),[()=>uf()]),d(ke,et)},$$slots:{default:!0}})}w(_e);var Le=v(_e,2);{var je=ee=>{var ke=y1(),at=ze(ke),et=S(at),gt=R(et,!0),He=v(et,2);{var ht=ft=>{yt(ft,{variant:"ghost",size:"sm",get onclick(){return g()},children:(Pt,At)=>{sr();var Zt=Lt();k(xt=>x(Zt,xt),[()=>_f()]),d(Pt,Zt)},$$slots:{default:!0}})};M(He,ft=>{g()&&ft(ht)})}w(at);var ot=v(at,2);{var vt=ft=>{var Pt=b1(),At=R(Pt,!0);k(()=>x(At,L())),d(ft,Pt)};M(ot,ft=>{L()&&ft(vt)})}k(ft=>x(gt,ft),[()=>ff()]),d(ee,ke)};M(Le,ee=>{c()==="error"&&ee(je)})}var st=v(Le,2);{var z=ee=>{var ke=_1(),at=R(ke,!0);k(et=>x(at,et),[()=>s()?pf():gf()]),d(ee,ke)},ie=ee=>{var ke=x1(),at=R(ke,!0);k(et=>x(at,et),[()=>o()?mf():vf()]),d(ee,ke)},Te=ee=>{var ke=w1(),at=S(ke),et=R(at,!0),gt=v(at,2),He=R(gt,!0);w(ke),k(ht=>{x(et,ht),x(He,e(K))},[()=>hf()]),d(ee,ke)};M(st,ee=>{e(Ye)?ee(z):e(Ae)?e(K)&&ee(Te,2):ee(ie,1)})}var Ge=v(st,2),ve=S(Ge);{var P=ee=>{var ke=k1();let at,et;gr(ke,gt=>N(H,gt),()=>e(H)),k(gt=>{oe(ke,"title",gt),oe(ke,"srcdoc",e(U)),at=mt(ke,1,"block w-full border-0 svelte-1kkow1d",null,at,{"preview-hidden":e(O)||e(Ye)}),oe(ke,"aria-hidden",e(O)||e(Ye)),et=Mn(ke,"",et,{height:`${e(Se)}px`})},[()=>ji()]),d(ee,ke)};M(ve,ee=>{e(Ae)&&e(U)&&ee(P)})}var j=v(ve,2);{var me=ee=>{na(ee,{get code(){return a()},language:"html",noBorder:!0,noMargin:!0,get maxHeight(){return e(de)}})},qe=ee=>{var ke=I1(),at=S(ke),et=S(at);za(et,{class:"h-4 w-32 max-w-1/2"});var gt=v(et,2);za(gt,{class:"h-3 w-2/3"}),w(at);var He=v(at,2);za(He,{class:"aspect-video max-h-60 w-full rounded-lg"});var ht=v(He,2),ot=S(ht);za(ot,{class:"h-3 w-16"});var vt=v(ot,2);za(vt,{class:"h-2 min-w-0 flex-1"});var ft=v(vt,2);za(ft,{class:"h-3 w-10"}),w(ht),w(ke),d(ee,ke)};M(j,ee=>{e(O)?ee(me):e(Ye)&&ee(qe,1)})}w(Ge);var Ce=v(Ge,2);{var Ve=ee=>{var ke=R1(),at=ze(ke),et=S(at);{var gt=St=>{{let Gt=u(()=>!e(F)||!!e(K));yt(St,{size:"sm",get disabled(){return e(Gt)},onclick:()=>e(Z)&&i()(e(Z)),children:(Ot,pe)=>{sr();var re=Lt();k(Ue=>x(re,Ue),[()=>xf()]),d(Ot,re)},$$slots:{default:!0}})}};M(et,St=>{i()&&St(gt)})}var He=v(et,2);{let St=u(()=>!e(F)||!!e(K)||e(fe).scenarios.length>=nl);yt(He,{variant:"ghost",size:"sm",get disabled(){return e(St)},onclick:$e,children:(Gt,Ot)=>{sr();var pe=Lt();k(re=>x(pe,re),[()=>bf()]),d(Gt,pe)},$$slots:{default:!0}})}var ht=v(He,2);{var ot=St=>{yt(St,{variant:"ghost",size:"sm",get active(){return e(G)},get"aria-expanded"(){return e(G)},onclick:()=>N(G,!e(G)),children:(Gt,Ot)=>{sr();var pe=Lt();k(re=>x(pe,re),[()=>wf()]),d(Gt,pe)},$$slots:{default:!0}})};M(ht,St=>{e(fe).scenarios.length&&St(ot)})}var vt=v(ht,2);{var ft=St=>{{let Gt=u(()=>!e(F)||b()==="saving");yt(St,{variant:"ghost",size:"sm",get disabled(){return e(Gt)},onclick:()=>p()({...e(fe),current:e(Z)??null}),children:(Ot,pe)=>{sr();var re=Lt();k(Ue=>x(re,Ue),[()=>kf()]),d(Ot,re)},$$slots:{default:!0}})}};M(vt,St=>{p()&&St(ft)})}var Pt=v(vt,2);{var At=St=>{var Gt=S1(),Ot=R(Gt,!0);k(pe=>x(Ot,pe),[()=>c()==="saving"?If():c()==="ready"?Sf():""]),d(St,Gt)};M(Pt,St=>{f()&&St(At)})}w(at);var Zt=v(at,2);{var xt=St=>{var Gt=C1(),Ot=S(Gt),pe=v(Ot);{var re=Ue=>{var rt=Lt();k(()=>x(rt,A())),d(Ue,rt)};M(pe,Ue=>{b()==="error"&&A()&&Ue(re)})}w(Gt),k(Ue=>x(Ot,`${Ue??""} `),[()=>b()==="saving"?Cf():b()==="saved"?Ef({path:h()??""}):Pf()]),d(St,Gt)};M(Zt,St=>{b()&&St(xt)})}var zt=v(Zt,2);{var er=St=>{var Gt=T1(),Ot=S(Gt),pe=S(Ot),re=S(pe),Ue=S(re),rt=R(Ue,!0),lt=v(Ue),Oe=R(lt,!0),se=v(lt);Tt(se,17,()=>e(fe).scenarios,ae=>ae.id,(ae,be)=>{var xe=E1(),Be=S(xe);{let De=u(()=>Rf());Ua(Be,{get value(){return e(be).name},get"aria-label"(){return e(De)},maxlength:120,onblur:Fe=>{Fe.currentTarget.value.trim()||(Fe.currentTarget.value=e(be).name),te(e(be).id,Fe.currentTarget.value)},onkeydown:Fe=>{Fe.key==="Enter"&&Fe.currentTarget.blur(),Fe.key==="Escape"&&(Fe.currentTarget.value=e(be).name,Fe.currentTarget.blur())}})}var Re=v(Be,2),Ze=S(Re);yt(Ze,{variant:"ghost",size:"sm",onclick:()=>Q(e(be).snapshot),children:(De,Fe)=>{sr();var We=Lt();k(Qe=>x(We,Qe),[()=>Af()]),d(De,We)},$$slots:{default:!0}});var Je=v(Ze,2);yt(Je,{variant:"ghost",size:"sm",onclick:()=>Xe({...e(fe),scenarios:e(fe).scenarios.filter(De=>De.id!==e(be).id)}),children:(De,Fe)=>{sr();var We=Lt();k(Qe=>x(We,Qe),[()=>Tf()]),d(De,We)},$$slots:{default:!0}}),w(Re),w(xe),d(ae,xe)}),w(re),w(pe);var le=v(pe);Tt(le,20,()=>["inputs","results"],Rr,(ae,be)=>{const xe=u(()=>be),Be=u(()=>Array.from(new Set([...Object.keys(e(Z)[e(xe)]),...e(fe).scenarios.flatMap(Je=>Object.keys(Je.snapshot[e(xe)]))])));var Re=kt(),Ze=ze(Re);Tt(Ze,16,()=>e(Be),Je=>Je,(Je,De)=>{var Fe=A1(),We=S(Fe),Qe=R(We,!0),ut=v(We);Tt(ut,17,()=>[e(Z),...e(fe).scenarios.map(ct=>ct.snapshot)],Rr,(ct,dt)=>{var wt=P1(),bt=R(wt,!0);k(Rt=>x(bt,Rt),[()=>Object.hasOwn(e(dt)[e(xe)],De)?tt(e(dt)[e(xe)][De]):"—"]),d(ct,wt)}),w(Fe),k(()=>x(Qe,De)),d(Je,Fe)}),d(ae,Re)}),w(le),w(Ot),w(Gt),k(ae=>{x(rt,e(Z).title),x(Oe,ae)},[()=>Lf()]),d(St,Gt)};M(zt,St=>{e(G)&&e(fe).scenarios.length&&St(er)})}d(ee,ke)};M(Ce,ee=>{e(Z)&&e(Ae)&&ee(Ve)})}return w(ce),gr(ce,ee=>T=ee,()=>T),k(()=>{oe(ce,"data-inline-html-status",e(Ie)),oe(ce,"data-inline-html-layout",e(Pe)?"viewport-locked":void 0),oe(ce,"aria-busy",e(Ye))}),d(r,ce),qt(q)}var N1=I('<div class="w-full min-w-0"><!></div>');function M1(r,t){if(new.target)return Ht({component:M1,...r});Ut(t,!0);const n=()=>Ft(e(b),"$agent$",s),a=()=>Ft(e(H),"$entry$",s),[s,o]=ca();let l=y(t,"block",7),c=y(t,"role",7),f=y(t,"workspaceId",7),i=y(t,"agentId",7),p=y(t,"messageId",7),g=y(t,"contentBlockKey",7,""),L=we(void 0);const b=u(()=>Gs(i()??"")),h=u(()=>c()==="assistant"&&f()&&i()&&p()&&l().metadata?.fenceClosed&&!l().metadata?.isStreaming&&n()&&!Qc(n())?{workspaceId:f(),agentId:i(),messageId:p(),blockKey:JSON.stringify([g(),l().metadata?.fenceStart??0]),source:l().content}:void 0),A=u(()=>!!(f()&&i()&&p()&&l().metadata?.fenceClosed&&!n())),T=u(()=>e(h)?bg(e(h)):""),H=u(()=>rm(e(T)));Ct(()=>{e(h)&&Mt.dispatch(gg(e(h)))});function B(X){!f()||!i()||n()?.retiredAt||e(L)?.dispatchEvent(new CustomEvent($m,{bubbles:!0,detail:{workspaceId:f(),agentId:i(),snapshot:X}}))}var O={get block(){return l()},set block(X){l(X),_()},get role(){return c()},set role(X){c(X),_()},get workspaceId(){return f()},set workspaceId(X){f(X),_()},get agentId(){return i()},set agentId(X){i(X),_()},get messageId(){return p()},set messageId(X){p(X),_()},get contentBlockKey(){return g()},set contentBlockKey(X=""){g(X),_()},$set:jt,$on:(X,de)=>Wt(t,X,de)},D=kt(),U=ze(D);{var C=X=>{var de=N1(),Pe=S(de);{let ue=u(()=>l().metadata?.isStreaming??!1),Z=u(()=>l().metadata?.fenceClosed??!1),ge=u(()=>a()?.record),Me=u(()=>e(h)?a()?.status??"loading":e(A)?"loading":"ready"),G=u(()=>a()?.error),fe=u(()=>e(h)?$e=>Mt.dispatch(hg(e(T),$e)):void 0),$=u(()=>f()&&i()&&n()&&!n().retiredAt?B:void 0),Ae=u(()=>e(h)?()=>Mt.dispatch(mg(e(T))):void 0),Se=u(()=>e(h)?$e=>Mt.dispatch(vg(e(T),crypto.randomUUID(),$e)):void 0),Ie=u(()=>a()?.export?.status),Ye=u(()=>a()?.export?.path),Xe=u(()=>a()?.export?.error);pu(Pe,{get source(){return l().content},get isStreaming(){return e(ue)},get isComplete(){return e(Z)},get record(){return e(ge)},get storageStatus(){return e(Me)},get storageError(){return e(G)},get onRecordChange(){return e(fe)},get onUseConfiguration(){return e($)},get onRetry(){return e(Ae)},get onExport(){return e(Se)},get exportStatus(){return e(Ie)},get exportPath(){return e(Ye)},get exportError(){return e(Xe)}})}w(de),gr(de,ue=>N(L,ue),()=>e(L)),d(X,de)},F=X=>{na(X,{get code(){return l().content},language:"html"})};M(U,X=>{c()==="assistant"?X(C):X(F,-1)})}d(r,D);var K=qt(O);return o(),K}var O1=I('<div class="digest-card flex items-start gap-2.5 py-5 px-6 my-4 shadow-xs text-base leading-normal border border-border"> </div>');function D1(r,t){if(new.target)return Ht({component:D1,...r});Ut(t,!0);let n=y(t,"digest",7);var a={get digest(){return n()},set digest(l){n(l),_()},$set:jt,$on:(l,c)=>Wt(t,l,c)},s=O1(),o=R(s,!0);return k(()=>x(o,n())),d(r,s),qt(a)}var B1=I('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-blue-500/15 text-blue-600 dark:text-blue-400"> </span>'),F1=I('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-muted text-muted-foreground"> </span>'),z1=I('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-primary/10 text-primary/80"> </span>'),H1=I('<div class="flex items-start gap-3 px-4 py-2.5"><div class="flex-1 min-w-0"><div class="flex items-center gap-2 flex-wrap"><span class="text-sm font-semibold text-foreground"> </span> <!> <!></div> <div class="mt-0.5 text-xs font-mono text-muted-foreground truncate"> </div></div></div>'),j1=I('<div class="detected-scripts-card my-3 rounded-lg border border-border bg-muted/30 overflow-hidden"><div class="flex items-center gap-2 px-4 py-2.5 border-b border-border bg-muted/40"><!> <span class="text-sm font-semibold text-foreground"> </span></div> <div class="divide-y divide-border"></div> <div class="px-4 py-2 border-t border-border bg-muted/20"><span class="text-xs text-muted-foreground"> </span></div></div>');function W1(r,t){if(new.target)return Ht({component:W1,...r});Ut(t,!0);let n=y(t,"scripts",7);var a={get scripts(){return n()},set scripts(b){n(b),_()},$set:jt,$on:(b,h)=>Wt(t,b,h)},s=j1(),o=S(s),l=S(o);Et(l,{get icon(){return Dc},size:"sm",class:"text-primary-ink/70"});var c=v(l,2),f=R(c,!0);w(o);var i=v(o,2);Tt(i,21,n,b=>b.name+b.command,(b,h)=>{var A=H1(),T=S(A),H=S(T),B=S(H),O=R(B,!0),D=v(B,2);{var U=Pe=>{var ue=B1(),Z=R(ue,!0);k(ge=>x(Z,ge),[()=>m.chat_detectedScripts_service_badge()]),d(Pe,ue)},C=Pe=>{var ue=F1(),Z=R(ue,!0);k(ge=>x(Z,ge),[()=>m.chat_detectedScripts_command_badge()]),d(Pe,ue)};M(D,Pe=>{e(h).mode==="service"?Pe(U):Pe(C,-1)})}var F=v(D,2);{var K=Pe=>{var ue=z1(),Z=R(ue,!0);k(()=>x(Z,e(h).category)),d(Pe,ue)};M(F,Pe=>{e(h).category&&e(h).category!=="other"&&Pe(K)})}w(H);var X=v(H,2),de=R(X,!0);w(T),w(A),k(()=>{x(O,e(h).name),x(de,e(h).command)}),d(b,A)}),w(i);var p=v(i,2),g=S(p),L=R(g,!0);return w(p),w(s),k((b,h)=>{x(f,b),x(L,h)},[()=>m.chat_detectedScripts_title(),()=>n().length===1?m.chat_detectedScripts_count_one({count:lr(n().length)}):m.chat_detectedScripts_count_many({count:lr(n().length)})]),d(r,s),qt(a)}function U1(r,t){if(new.target)return Ht({component:U1,...r});Ut(t,!0);let n=y(t,"diff",7),a=y(t,"filePath",7),s=y(t,"language",7),o=y(t,"onApply",7),l=y(t,"onReject",7);function c(){o()?.(),ra.success(m.chat_diffViewer_applied_toast())}function f(){l()?.(),ra.info(m.chat_diffViewer_rejected_toast())}const i=u(()=>{const g=[];return o()&&g.push({label:m.chat_diffViewer_apply_label(),variant:"success",onClick:c}),l()&&g.push({label:m.chat_diffViewer_reject_label(),variant:"danger",onClick:f}),g});var p={get diff(){return n()},set diff(g){n(g),_()},get filePath(){return a()},set filePath(g){a(g),_()},get language(){return s()},set language(g){s(g),_()},get onApply(){return o()},set onApply(g){o(g),_()},get onReject(){return l()},set onReject(g){l(g),_()},$set:jt,$on:(g,L)=>Wt(t,g,L)};{let g=u(()=>a()||m.chat_diffViewer_suggestedChanges_fallback());is(r,{get patch(){return n()},get fileName(){return e(g)},get language(){return s()},get actions(){return e(i)},collapsible:!0,initialCollapsed:!1,maxHeight:"500px"})}return qt(p)}var q1=ya('<circle fill="none" style="transition: stroke-dasharray 0.3s ease-out"></circle>'),fc=ya("<circle></circle>"),V1=ya('<svg class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 fill-background" viewBox="0 0 8 6"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.69471 1.69471C7.87687 1.50611 7.97766 1.25351 7.97539 0.991311C7.97311 0.729114 7.86794 0.478302 7.68253 0.292894C7.49712 0.107485 7.24631 0.00231622 6.98411 3.78025e-05C6.72192 -0.00224062 6.46931 0.0985542 6.28071 0.280712L2.98771 3.57371L1.69471 2.28071C1.50611 2.09855 1.25351 1.99776 0.991311 2.00004C0.729114 2.00232 0.478302 2.10749 0.292894 2.29289C0.107485 2.4783 0.00231622 2.72911 3.78025e-05 2.99131C-0.00224062 3.25351 0.0985542 3.50611 0.280712 3.69471L2.28071 5.69471C2.46824 5.88218 2.72255 5.9875 2.98771 5.9875C3.25288 5.9875 3.50718 5.88218 3.69471 5.69471L7.69471 1.69471Z"></path></svg>'),K1=I('<div class="relative"><svg fill="none" xmlns="http://www.w3.org/2000/svg"><circle fill="none"></circle><!></svg> <!></div>');function Ls(r,t){if(new.target)return Ht({component:Ls,...r});Ut(t,!0);let n=y(t,"phase",7),a=y(t,"progress",7,0),s=y(t,"size",7,16),o=y(t,"class",7,""),l=u(()=>s()/2),c=u(()=>e(l)),f=u(()=>e(l)),i=u(()=>s()*.12),p=u(()=>e(l)-e(i)/2),g=u(()=>e(l)*.35),L=u(()=>2*Math.PI*e(g)),b=u(()=>Math.max(0,Math.min(1,a()))*e(L));const h={planning:"#99999999",building:"#54B1F3",reviewing:"#6D7FF5",shipped:"var(--color-foreground)"};let A=u(()=>h[n()]||"currentColor");var T={get phase(){return n()},set phase(ue){n(ue),_()},get progress(){return a()},set progress(ue=0){a(ue),_()},get size(){return s()},set size(ue=16){s(ue),_()},get class(){return o()},set class(ue=""){o(ue),_()},$set:jt,$on:(ue,Z)=>Wt(t,ue,Z)},H=K1(),B=S(H),O=S(B),D=v(O);{var U=ue=>{},C=ue=>{var Z=q1();k(()=>{oe(Z,"cx",e(c)),oe(Z,"cy",e(f)),oe(Z,"r",e(g)*.8),oe(Z,"stroke",e(A)),oe(Z,"stroke-width",e(g)*1.5),oe(Z,"stroke-dasharray",`${e(b)??""} ${e(L)??""}`),oe(Z,"stroke-dashoffset",e(L)*.25),oe(Z,"transform",`rotate(-90 ${e(c)??""} ${e(f)??""})`)}),d(ue,Z)},F=ue=>{var Z=fc();k(()=>{oe(Z,"cx",e(c)),oe(Z,"cy",e(f)),oe(Z,"r",e(p)*.6),oe(Z,"fill",e(A))}),d(ue,Z)},K=ue=>{var Z=fc();k(()=>{oe(Z,"cx",e(c)),oe(Z,"cy",e(f)),oe(Z,"r",e(p)),oe(Z,"fill",e(A))}),d(ue,Z)};M(D,ue=>{n()==="planning"?ue(U):n()==="building"?ue(C,1):n()==="reviewing"?ue(F,2):n()==="shipped"&&ue(K,3)})}w(B);var X=v(B,2);{var de=ue=>{},Pe=ue=>{var Z=V1();k(()=>oe(Z,"width",s()*.5)),d(ue,Z)};M(X,ue=>{n()==="reviewing"?ue(de):n()==="shipped"&&ue(Pe,1)})}return w(H),k(()=>{oe(B,"width",s()),oe(B,"height",s()),oe(B,"viewBox",`0 0 ${s()??""} ${s()??""}`),mt(B,0,cr(o())),oe(O,"cx",e(c)),oe(O,"cy",e(f)),oe(O,"r",e(p)),oe(O,"stroke",e(A)),oe(O,"stroke-width",e(i))}),d(r,H),qt(T)}var pc=I('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full"></span> </span>'),G1=I('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full bg-border"></span> </span>'),gc=I('<span class="text-ui text-subtle truncate"> </span>'),vc=I('<div class="flex items-center gap-1 mt-0.5"><!> <!></div>'),mc=I('<div class="flex items-start gap-2"><div class="shrink-0 mt-0.5"><!></div> <div class="flex-1 min-w-0"><div class="text-xs leading-snug truncate"> </div> <!></div></div>'),J1=I('<div class="flex items-center gap-2"><div class="shrink-0"><!></div> <span class="text-ui text-subtle truncate line-through"> </span></div>'),Y1=I('<span class="text-ui text-subtle pl-4"> </span>'),X1=I('<div class="flex flex-col gap-0.5 pt-1 border-t border-border"><!> <!></div>'),Z1=I('<div class="text-ui text-subtle"> </div>'),Q1=I("<!> <!> <!> <!>",1),$1=I('<div class="flex flex-col py-2 px-3 gap-2 max-h-80 overflow-y-auto"><div class="flex items-center justify-between gap-3"><span class="text-xs font-semibold text-foreground"> </span> <div class="flex items-center gap-3 text-ui text-subtle"><!> <!> <!></div></div> <!></div>'),e0=I('<div class="rounded-[0.5px]"></div>');function gu(r,t){if(new.target)return Ht({component:gu,...r});Ut(t,!0);let n=y(t,"stats",7),a=y(t,"tasks",23,()=>[]),s=y(t,"maxBars",7,20),o=y(t,"barWidth",7,"1px"),l=y(t,"barHeight",7,"16px"),c=y(t,"gap",7,"1px"),f=y(t,"class",7);const i={completed:"#22c55e",inProgress:"#4F7BF7",notStarted:"var(--border)"};let p=u(()=>{const{completed:D,inProgress:U,notStarted:C,total:F}=n();if(F===0)return[];const K=[...Array(D).fill("completed"),...Array(U).fill("inProgress"),...Array(Math.max(0,C)).fill("notStarted")];return K.length<=s()?K:K.slice(K.length-s())}),g=u(()=>a().filter(D=>D.status==="complete")),L=u(()=>a().filter(D=>D.status==="in_progress"||D.status==="review_required")),b=u(()=>a().filter(D=>D.status!=="complete"&&D.status!=="in_progress"&&D.status!=="review_required"&&D.status!=="cancelled")),h=u(()=>a().filter(D=>D.status==="cancelled")),A=u(()=>a().length>0);var T={get stats(){return n()},set stats(D){n(D),_()},get tasks(){return a()},set tasks(D=[]){a(D),_()},get maxBars(){return s()},set maxBars(D=20){s(D),_()},get barWidth(){return o()},set barWidth(D="1px"){o(D),_()},get barHeight(){return l()},set barHeight(D="16px"){l(D),_()},get gap(){return c()},set gap(D="1px"){c(D),_()},get class(){return f()},set class(D){f(D),_()},$set:jt,$on:(D,U)=>Wt(t,D,U)},H=kt(),B=ze(H);{var O=D=>{No(D,{side:"top",align:"start",sideOffset:6,contentClass:"max-w-xs p-0",delayDuration:200,disableHoverableContent:!1,content:C=>{var F=$1(),K=S(F),X=S(K),de=R(X,!0),Pe=v(X,2),ue=S(Pe);{var Z=Se=>{var Ie=pc(),Ye=S(Ie);Mn(Ye,"",{},{"background-color":"#22c55e"});var Xe=v(Ye);w(Ie),k(()=>x(Xe,` ${n().completed??""}`)),d(Se,Ie)};M(ue,Se=>{n().completed>0&&Se(Z)})}var ge=v(ue,2);{var Me=Se=>{var Ie=pc(),Ye=S(Ie);Mn(Ye,"",{},{"background-color":"#4F7BF7"});var Xe=v(Ye);w(Ie),k(()=>x(Xe,` ${n().inProgress??""}`)),d(Se,Ie)};M(ge,Se=>{n().inProgress>0&&Se(Me)})}var G=v(ge,2);{var fe=Se=>{var Ie=G1(),Ye=v(S(Ie));w(Ie),k(()=>x(Ye,` ${n().notStarted??""}`)),d(Se,Ie)};M(G,Se=>{n().notStarted>0&&Se(fe)})}w(Pe),w(K);var $=v(K,2);{var Ae=Se=>{var Ie=Q1(),Ye=ze(Ie);Tt(Ye,17,()=>e(L),Rr,(J,V)=>{var q=mc(),ce=S(q),_e=S(ce);vo(_e,{get status(){return e(V).status},size:14}),w(ce);var Y=v(ce,2),he=S(Y),Le=R(he,!0),je=v(he,2);{var st=z=>{var ie=vc(),Te=S(ie);{let P=u(()=>e(V).agentState||"idle");Ji(Te,{get agentId(){return e(V).agentId},get state(){return e(P)},size:12,get specialist(){return e(V).agentSpecialist}})}var Ge=v(Te,2);{var ve=P=>{var j=gc(),me=R(j,!0);k(()=>x(me,e(V).agentName)),d(P,j)};M(Ge,P=>{e(V).agentName&&P(ve)})}w(ie),d(z,ie)};M(je,z=>{e(V).agentId&&z(st)})}w(Y),w(q),k(()=>x(Le,e(V).title)),d(J,q)});var Xe=v(Ye,2);Tt(Xe,17,()=>e(b),Rr,(J,V)=>{var q=mc(),ce=S(q),_e=S(ce);vo(_e,{get status(){return e(V).status},size:14}),w(ce);var Y=v(ce,2),he=S(Y),Le=R(he,!0),je=v(he,2);{var st=z=>{var ie=vc(),Te=S(ie);{let P=u(()=>e(V).agentState||"idle");Ji(Te,{get agentId(){return e(V).agentId},get state(){return e(P)},size:12,get specialist(){return e(V).agentSpecialist}})}var Ge=v(Te,2);{var ve=P=>{var j=gc(),me=R(j,!0);k(()=>x(me,e(V).agentName)),d(P,j)};M(Ge,P=>{e(V).agentName&&P(ve)})}w(ie),d(z,ie)};M(je,z=>{e(V).agentId&&z(st)})}w(Y),w(q),k(()=>x(Le,e(V).title)),d(J,q)});var $e=v(Xe,2);{var te=J=>{var V=X1(),q=S(V);Tt(q,17,()=>e(g).slice(0,3),Rr,(Y,he)=>{var Le=J1(),je=S(Le),st=S(je);vo(st,{status:"complete",size:12}),w(je);var z=v(je,2),ie=R(z,!0);w(Le),k(()=>x(ie,e(he).title)),d(Y,Le)});var ce=v(q,2);{var _e=Y=>{var he=Y1(),Le=R(he,!0);k(je=>x(Le,je),[()=>m.workspace_taskProgressBar_moreCompleted_label({count:lr(e(g).length-3)})]),d(Y,he)};M(ce,Y=>{e(g).length>3&&Y(_e)})}w(V),d(J,V)};M($e,J=>{e(g).length>0&&J(te)})}var Q=v($e,2);{var tt=J=>{var V=Z1(),q=R(V,!0);k(ce=>x(q,ce),[()=>m.workspace_taskProgressBar_cancelled_label({count:lr(e(h).length)})]),d(J,V)};M(Q,J=>{e(h).length>0&&J(tt)})}d(Se,Ie)};M($,Se=>{e(A)&&Se(Ae)})}w(F),k(Se=>x(de,Se),[()=>m.workspace_taskProgressBar_tasksRatio_label({completed:lr(n().completed),total:lr(n().total)})]),d(C,F)},children:(C,F)=>{{let K=u(()=>kn("flex h-auto min-w-0 shrink items-end justify-start cursor-default rounded-none border-0",f())),X=u(()=>`gap: ${c()}`),de=u(()=>m.workspace_taskProgressBar_tasksRatio_label({completed:lr(n().completed),total:lr(n().total)}));yt(C,{variant:"plain",type:"button",wrapContent:!1,get class(){return e(K)},get style(){return e(X)},get"aria-label"(){return e(de)},"data-task-progress-trigger":!0,children:(Pe,ue)=>{var Z=kt(),ge=ze(Z);Tt(ge,17,()=>e(p),Rr,(Me,G)=>{var fe=e0();let $;k(()=>$=Mn(fe,"",$,{width:o(),height:l(),"background-color":i[e(G)]})),d(Me,fe)}),d(Pe,Z)},$$slots:{default:!0}})}},$$slots:{content:!0,default:!0}})};M(B,D=>{n().total>0&&D(O)})}return d(r,H),qt(T)}function xi(r,t){if(new.target)return Ht({component:xi,...r});Ut(t,!0);let n=y(t,"items",7),a=y(t,"ariaLabel",7),s=y(t,"open",15,!1),o=y(t,"orientation",7,"vertical"),l=y(t,"selection",7),c=y(t,"class",7,"");const f=u(()=>Lp(n(),l(),a()));var i={get items(){return n()},set items(p){n(p),_()},get ariaLabel(){return a()},set ariaLabel(p){a(p),_()},get open(){return s()},set open(p=!1){s(p),_()},get orientation(){return o()},set orientation(p="vertical"){o(p),_()},get selection(){return l()},set selection(p){l(p),_()},get class(){return c()},set class(p=""){c(p),_()},$set:jt,$on:(p,g)=>Wt(t,p,g)};return Tv(r,{get actions(){return e(f)},align:"end",get ariaLabel(){return a()},onAction:g=>Rp(n(),g)?.onClick(),get open(){return s()},set open(g){s(g)},trigger:(g,L)=>{let b=()=>(L?.()).props;yt(g,ni(b,{variant:"plain",size:"icon-compact",iconOnly:!0,type:"button",get class(){return c()},get"aria-label"(){return a()},onclick:h=>{h.stopPropagation(),b().onclick?.(h)},oncontextmenu:h=>{h.preventDefault(),h.stopPropagation()},children:(h,A)=>{Rv(h,{get orientation(){return o()},class:"size-3.5"})},$$slots:{default:!0}}))},$$slots:{trigger:!0}}),qt(i)}var t0=I('<span class="contents"><!></span>'),r0=I("<!> <!>",1);function vu(r,t){if(new.target)return Ht({component:vu,...r});Ut(t,!0);let n=y(t,"workspaceId",7),a=y(t,"slot",7);const s=u(()=>ag(a()));let o=we(null);Ct(()=>{e(o)&&e(o).workspaceId!==n()&&N(o,null)});function l(h){const A=Lc(h);A&&N(o,{...A,workspaceId:n()},!0)}function c(h){h.preventDefault(),h.stopPropagation();const A=h.currentTarget.getBoundingClientRect();N(o,{x:A.left,y:A.bottom+2,returnFocus:h.currentTarget,workspaceId:n()},!0)}function f(){N(o,null)}var i={get workspaceId(){return n()},set workspaceId(h){n(h),_()},get slot(){return a()},set slot(h){a(h),_()},$set:jt,$on:(h,A)=>Wt(t,h,A)},p=r0(),g=ze(p);{let h=u(()=>m.workspace_microKeyBadge_ariaLabel({number:lr(a()+1)})),A=u(()=>m.workspace_microKeyBadge_tooltip({number:lr(a()+1)})),T=u(()=>e(o)!==null);yt(g,{variant:"ghost",size:"icon",type:"button",class:"micro-key-slot-badge size-4 min-w-0 shrink-0 cursor-pointer rounded-[3px] p-0 a11y-ignore",get"aria-label"(){return e(h)},get title(){return e(A)},onclick:c,oncontextmenu:l,onkeydown:l,"aria-haspopup":"menu",get"aria-expanded"(){return e(T)},children:(H,B)=>{var O=t0(),D=S(O);gp(D,{get slot(){return a()},get class(){return`transition-colors ${e(s)??""}`}}),w(O),d(H,O)},$$slots:{default:!0}})}var L=v(g,2);{var b=h=>{{let A=u(()=>e(o)?.x??0),T=u(()=>e(o)?.y??0),H=u(()=>e(o)?.returnFocus),B=u(()=>m.workspace_card_assignMicroKey_label()),O=u(()=>Tm(n(),f));Nc(h,{get x(){return e(A)},get y(){return e(T)},get returnFocus(){return e(H)},selection:"single",get ariaLabel(){return e(B)},get items(){return e(O)},onClickOutside:f})}};M(L,h=>{e(o)&&h(b)})}return d(r,p),qt(i)}var n0=I('<span class="flex size-4 shrink-0 items-center justify-center"><!></span>'),a0=I('<span data-workspace-card-pin-indicator="" aria-hidden="true"><!></span> <span class="sr-only"> </span>',1),s0=I('<span class="type-caption shrink-0 rounded-sm bg-muted-foreground/10 px-1.5 font-normal text-muted-foreground" data-workspace-card-trailing-label=""> </span>'),o0=I('<span data-workspace-card-pr-item=""><!></span>'),i0=I('<span class="flex shrink-0 items-center" data-workspace-card-pr-list=""><!></span>'),l0=I('<span data-workspace-card-time=""><!></span>'),c0=I('<span aria-hidden="true"><!></span>'),d0=I("<div><!> <!> <!> <!></div>"),u0=I('<div data-workspace-card-hover-surface=""><!></div>'),f0=I('<div role="group" data-workspace-card-row=""><!> <div class="relative z-10 flex shrink-0 items-center gap-1.5"><!> <!> <span class="sr-only"> </span></div> <div class="relative z-10 flex min-w-0 flex-1 items-center gap-2"><span class="flex min-w-0 flex-1 items-center gap-1" data-workspace-card-title-group=""><span dir="ltr" data-workspace-card-title=""><span class="wc-title-text svelte-1ct56pd"> </span></span> <!></span> <!> <!> <!></div> <!></div> <!> <!>',1),p0=I('<div class="relative z-10 flex shrink-0 items-center"><!></div>'),g0=I('<div><!> <!> <span class="font-medium truncate"> </span> <span class="shrink-0 text-muted-foreground">·</span> <span class="truncate text-xs text-muted-foreground"> </span> <!></div>'),v0=I('<div class="text-sm font-semibold truncate"> </div>'),hc=I('<span class="truncate"> </span>'),m0=I('<span class="text-muted-foreground">·</span>'),h0=I('<div class="flex items-center gap-1 truncate text-xs text-muted-foreground"><!> <!> <!></div>'),b0=I('<div><!> <!> <div class="flex items-center gap-2 text-xs"><!> <span class="truncate text-muted-foreground"> </span> <span> </span></div> <!></div>'),y0=I('<div class="flex items-center gap-2"><!> <span class="text-ui shrink-0 tabular-nums text-muted-foreground"> </span></div>'),_0=I('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span> <span class="tabular-nums"><span class="text-success"> </span> <span class="ml-1 text-danger"> </span></span></div>'),x0=I('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span></div>'),w0=I('<div class="flex items-center text-ui"><span> </span></div>'),k0=I('<div class="flex flex-col gap-1 px-3 pb-2.5"><!> <!> <!> <!></div>'),I0=I('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!></div>'),S0=I('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!> <!></div>'),C0=I('<div role="group"><!> <div class="flex items-start gap-2.5 px-3 pt-3 pb-2"><!> <div class="flex-1 min-w-0"><div class="text-sm font-medium"> </div> <div class="mt-0.5 line-clamp-2 text-xs leading-snug text-muted-foreground"> </div></div></div> <!> <!></div>');function mu(r,t){if(new.target)return Ht({component:mu,...r});Ut(t,!0);const n=()=>Ft(Xe,"$prMonitors$",l),a=()=>Ft($e,"$microConnected$",l),s=()=>Ft(Q,"$hidesOwnerActions$",l),o=()=>Ft(te,"$workspaceKeySlot$",l),[l,c]=ca();let f=y(t,"workspace",7),i=y(t,"phase",7),p=y(t,"stats",7),g=y(t,"variant",7,"compact"),L=y(t,"showTime",7,!0),b=y(t,"isRunning",7,!1),h=y(t,"isUnread",7,!1),A=y(t,"isWaiting",7),T=y(t,"isPinned",7,!1),H=y(t,"streamingAgentIds",23,()=>[]),B=y(t,"hasSpec",7,!1),O=y(t,"isAgentRunning",7,!1),D=y(t,"agentDigest",7),U=y(t,"trailingLabel",7),C=y(t,"title",7),F=y(t,"repoName",7),K=y(t,"branch",7),X=y(t,"onClick",7),de=y(t,"onAction",7),Pe=y(t,"onTogglePin",7),ue=y(t,"onMarkAsRead",7),Z=y(t,"onOpenInNewWindow",7),ge=y(t,"onHover",7),Me=y(t,"highlighted",7,!1),G=y(t,"selected",7,!1),fe=y(t,"highlightId",7),$=y(t,"suppressHover",7,!1),Ae=y(t,"isolateHoverReveal",7,!1),Se=y(t,"class",7),Ie=y(t,"actions",7);const Ye=Ns("");Ct(()=>{Ye.set(f()?.id??"")});const Xe=np(Ye),$e=qm(),te=Hg(Ye),Q=ap(Ye),tt=u(()=>Lm(f()??{})),J=u(()=>Nm(e(tt)));let V=u(()=>f()?Um.url.pathname===`/workspace/${f().id}`:!1),q=u(()=>f()?`workspace-hover-card-${f().id}`:void 0),ce=we(!1),_e=we(null),Y=we(null);Ct(()=>{if(!e(Y))return;const ne=ks(e(Y),{id:fe()});return()=>ne.destroy()});let he=we(null),Le=we(null),je=we(null),st=we(0),z=we(0),ie=u(()=>e(st)+(e(z)>0?e(z)+4:0));function Te(){const ne=e(he),pt=e(je);N(st,ne?Math.max(0,ne.scrollWidth-ne.clientWidth):0,!0),N(z,ne&&pt&&pt.getClientRects().length>0?Math.max(0,ne.getBoundingClientRect().right-pt.getBoundingClientRect().left):0,!0)}Ct(()=>{const ne=e(he),pt=e(Le),Dt=e(je);if(!ne||!pt||(Te(),typeof ResizeObserver>"u"))return;const mr=new ResizeObserver(Te);return mr.observe(ne),mr.observe(pt),Dt&&mr.observe(Dt),()=>mr.disconnect()});let Ge=null,ve=null,P=!1,j=!1,me=!1,qe=!1,Ce=!1,Ve=!1,ee=we(!1),ke=!1,at=null,et=we(null),gt=null,He;function ht(){Ge!==null&&(clearTimeout(Ge),Ge=null)}function ot(){ve!==null&&(clearTimeout(ve),ve=null),gt?.(),gt=null}function vt(){ot(),N(ee,!0),N(ce,!0),!Ce&&(Ce=!0,es.notifyOpened())}function ft(){ot(),clearTimeout(He),N(ee,!1),N(ce,!1),j=!1,qe=!1,Ce&&(Ce=!1,es.notifyClosed())}function Pt(){return P||j||me||qe}function At(){if(!e(ce)){ft();return}ot(),ve=setTimeout(()=>{ve=null,Pt()||ft()},Om),gt=es.deferClose(ft)}function Zt(){j=!0,ot()}function xt(){j=!1,!me&&!qe&&At()}function zt(){qe=!0,clearTimeout(He),ot()}function er(ne){const pt=ne.relatedTarget instanceof Node?ne.relatedTarget:null;if(pt&&le()?.contains(pt)||(qe=!1,pt&&e(_e)?.contains(pt)))return;if(pt){!P&&!j&&ft();return}const Dt=ne.target;clearTimeout(He),He=setTimeout(()=>{const mr=document.activeElement,yr=le()?.contains(mr)||e(_e)?.contains(mr);mr&&mr!==Dt&&yr||!P&&!j&&ft()},0)}function St(){at!==null&&clearTimeout(at),ke=!0,at=setTimeout(()=>{ke=!1,at=null},0)}function Gt(ne){const pt=ne.target,Dt=le();pt instanceof Node&&Dt?.contains(pt)||ne.type==="scroll"&&e(_e)&&pt instanceof Node&&!pt.contains(e(_e))||(ne.type==="pointerdown"&&St(),ht(),ft())}Ct(()=>{if(e(ee))return window.addEventListener("pointerdown",Gt,!0),window.addEventListener("scroll",Gt,!0),()=>{window.removeEventListener("pointerdown",Gt,!0),window.removeEventListener("scroll",Gt,!0)}});function Ot(ne){if(ne.key!=="Escape")return;const pt=ne.target;pt instanceof Node&&le()?.contains(pt)||(ne.preventDefault(),ne.stopPropagation(),Ve=me,ht(),ft())}Ct(()=>{if(e(ce))return window.addEventListener("keydown",Ot,!0),()=>window.removeEventListener("keydown",Ot,!0)});const pe=u(()=>f()?op.select(Mt.state,f().id):null),re=u(()=>e(pe)?e(pe):f()?.activePullRequest?f().activePullRequest:!f()?.prStatus||f().prNumber==null?null:{id:`legacy-pr-${f().prNumber}`,number:f().prNumber,url:f().prUrl??"",title:m.workspace_hoverCard_pullRequest_label(),status:f().prStatus,createdAt:f().updatedAt,updatedAt:f().updatedAt}),Ue=u(()=>sp(f())),rt=u(()=>{if(!f()||e(Ue))return[];const ne=f(),pt=ne.repositoryOwner&&ne.repositoryName?`${ne.repositoryOwner}/${ne.repositoryName}`:void 0;return Np({workspacePRs:ne.pullRequests,activePR:e(re),monitors:n(),workspaceRepo:pt,buildPrUrl:(Dt,mr)=>fv(Dt,ne.repositoryOwner,ne.repositoryName,mr),getDisplayTitle:Dt=>Dt.title})}),lt=u(()=>e(rt)[0]);function Oe(ne){const pt=ne.resource?.repository.provider==="gitlab"?`${ne.repo} !${ne.number}`:ne.repo?m.workspace_card_prBadge_repoLine_tooltip({repo:ne.repo,number:ne.number}):m.workspace_card_prBadge_label({number:` #${ne.number}`});return[ip(pt,ne),ne.title,ne.details].filter(Boolean).join(`
|
|
259
259
|
`)}function se(ne){ne.key==="Enter"&&X()?.(ne)}function le(){return e(q)?document.getElementById(e(q)):null}function ae(){return Array.from(le()?.querySelectorAll("button:not(:disabled), a[href]")??[])}function be(){const ne=e(_e)?.querySelector("[data-workspace-card-trigger]"),pt=le();if(!ne||!pt)return null;const Dt=Array.from(document.querySelectorAll('button:not(:disabled), a[href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])')).filter(yr=>yr.tabIndex>=0&&!pt.contains(yr)),mr=Dt.indexOf(ne);return mr>=0?Dt[mr+1]:null}function xe(ne){Ve=!!e(_e)?.contains(ne),ft(),ne.focus({preventScroll:!0})}function Be(){const ne=e(_e)?.querySelector("[data-workspace-card-trigger]");ne&&xe(ne)}async function Re(ne){if(ne.key==="Escape"&&e(ce)){ne.preventDefault(),ne.stopPropagation(),ft();return}ne.key!=="ArrowDown"||$()||!f()||(ne.preventDefault(),ne.stopPropagation(),N(ee,!0),N(ce,!0),await Zn(),ae()[0]?.focus({preventScroll:!0}))}function Ze(ne){const pt=ae(),Dt=ne.key==="Tab"&&ne.shiftKey&&ne.currentTarget===pt[0],yr=ne.key==="Tab"&&!ne.shiftKey&&ne.currentTarget===pt.at(-1)?be():null;ne.key!=="Escape"&&!Dt&&!yr||(ne.preventDefault(),ne.stopPropagation(),yr?xe(yr):Be())}function Je(){P=!0,ot(),es.settleDeferredCloses(),Te(),ge()?.(),f()&&!$()&&!me&&(ht(),N(ee,!0),Ge=setTimeout(()=>{Ge=null,vt()},es.currentOpenDelay))}function De(){P=!1,ht(),!me&&!qe&&At()}function Fe(){me=!0,ht(),ot(),!Ve&&(ke||f()&&!$()&&(N(ee,!0),N(ce,!0)))}function We(ne){const pt=ne.relatedTarget instanceof Node?ne.relatedTarget:null;pt&&e(_e)?.contains(pt)||(Ve=!1,me=!1,!(pt&&le()?.contains(pt))&&!P&&!j&&ft())}Ct(()=>{$()&&(ht(),ot(),ft())});let Qe=we(null),ut=we(!1),ct;Ct(()=>{const ne=f()?.id;ct!==ne&&(ct=ne,N(ut,!1)),e(Qe)&&e(Qe).workspaceId!==f()?.id&&wt()});function dt(ne){if(!f())return;const pt=Lc(ne);if(pt){if(N(ut,!1),bt().length===0){N(Qe,null);return}N(Qe,{...pt,returnFocus:ne.target instanceof HTMLElement?ne.target.closest("button")??e(_e)?.querySelector("button")??null:null,workspaceId:f().id},!0)}}function wt(){N(Qe,null),N(ut,!1)}Ct(()=>{e(ut)&&N(Qe,null)}),fs(()=>{ht(),ot(),at!==null&&(clearTimeout(at),at=null),ft()});function bt(){if(!f())return[];const ne=[];return Z()&&ne.push({id:"open-new-window",label:m.workspace_card_openNewWindow_label(),icon:zc,onClick:()=>{Z()?.(),wt()}}),ne.push(...Mm(f().id,{connected:a(),onClose:wt})),s()||(e(Ue)||ne.push({id:"transfer",label:m.workspace_card_transfer_label(),icon:Xp,onClick:()=>{Mt.dispatch(yg({workspaceId:f().id,workspaceTitle:f().title})),wt()}}),ne.push({id:"archive",label:m.workspace_card_archive_label(),icon:Hc,onClick:()=>{Mt.dispatch($c(f().id)),wt()}}),ne.push({id:"delete",label:m.workspace_card_deleteSpace_label(),icon:jc,destructive:!0,onClick:()=>{Mt.dispatch(ed(f().id)),wt()}})),ne}let Rt=u(()=>O()&&D()?D():i()?.subtitle??""),Jt=u(()=>p()&&p().tasks.total>0?p().tasks.completed/p().tasks.total:0),tr=u(()=>!!p()&&(p().tasks.total>0||p().files.changed>0||p().commits.total>0||p().pr.hasOpen||p().pr.hasMerged)),Yt=u(()=>e(Ue)?void 0:K()),Fr=u(()=>!p()||e(Ue)?"":p().pr.hasMerged?m.workspace_card_prMerged_label({number:p().pr.number??""}):p().pr.hasOpen?m.workspace_card_prOpen_label({number:p().pr.number?`#${p().pr.number}`:""}):""),Zr=u(()=>i()?.phase==="planning"?O()?{primary:{label:m.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:m.workspace_card_pause_label(),action:"pause"}}:B()||(p()?.tasks.total??0)>0?{primary:{label:m.workspace_card_approveStart_label(),action:"approve"},secondary:{label:m.workspace_card_viewSpec_label(),action:"view-spec"}}:{primary:{label:m.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:m.workspace_card_viewSpec_label(),action:"view-spec"}}:i()?.phase==="building"?{primary:{label:m.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:m.workspace_card_pause_label(),action:"pause"}}:i()?.phase==="reviewing"?{primary:{label:m.workspace_card_createPr_label(),action:"create-pr"},secondary:{label:m.workspace_card_showChanges_label(),action:"show-changes"}}:{primary:{label:m.workspace_card_archive_label(),action:"archive"},secondary:{label:m.workspace_card_showChanges_label(),action:"show-changes"}});const un={planning:"bg-muted/20 text-muted-foreground",building:"bg-info/15 text-info",reviewing:"bg-primary/15 text-primary",shipped:"bg-foreground/10 text-foreground"};var In={get workspace(){return f()},set workspace(ne){f(ne),_()},get phase(){return i()},set phase(ne){i(ne),_()},get stats(){return p()},set stats(ne){p(ne),_()},get variant(){return g()},set variant(ne="compact"){g(ne),_()},get showTime(){return L()},set showTime(ne=!0){L(ne),_()},get isRunning(){return b()},set isRunning(ne=!1){b(ne),_()},get isUnread(){return h()},set isUnread(ne=!1){h(ne),_()},get isWaiting(){return A()},set isWaiting(ne){A(ne),_()},get isPinned(){return T()},set isPinned(ne=!1){T(ne),_()},get streamingAgentIds(){return H()},set streamingAgentIds(ne=[]){H(ne),_()},get hasSpec(){return B()},set hasSpec(ne=!1){B(ne),_()},get isAgentRunning(){return O()},set isAgentRunning(ne=!1){O(ne),_()},get agentDigest(){return D()},set agentDigest(ne){D(ne),_()},get trailingLabel(){return U()},set trailingLabel(ne){U(ne),_()},get title(){return C()},set title(ne){C(ne),_()},get repoName(){return F()},set repoName(ne){F(ne),_()},get branch(){return K()},set branch(ne){K(ne),_()},get onClick(){return X()},set onClick(ne){X(ne),_()},get onAction(){return de()},set onAction(ne){de(ne),_()},get onTogglePin(){return Pe()},set onTogglePin(ne){Pe(ne),_()},get onMarkAsRead(){return ue()},set onMarkAsRead(ne){ue(ne),_()},get onOpenInNewWindow(){return Z()},set onOpenInNewWindow(ne){Z(ne),_()},get onHover(){return ge()},set onHover(ne){ge(ne),_()},get highlighted(){return Me()},set highlighted(ne=!1){Me(ne),_()},get selected(){return G()},set selected(ne=!1){G(ne),_()},get highlightId(){return fe()},set highlightId(ne){fe(ne),_()},get suppressHover(){return $()},set suppressHover(ne=!1){$(ne),_()},get isolateHoverReveal(){return Ae()},set isolateHoverReveal(ne=!1){Ae(ne),_()},get class(){return Se()},set class(ne){Se(ne),_()},get actions(){return Ie()},set actions(ne){Ie(ne),_()},$set:jt,$on:(ne,pt)=>Wt(t,ne,pt)},nn=kt(),Un=ze(nn);{var hn=ne=>{var pt=f0(),Dt=ze(pt);let mr;var yr=S(Dt);{let Ee=u(()=>f().title||m.workspace_links_untitled_label()),nt=u(()=>`workspace-status-state-${f().id}${T()?` workspace-pinned-state-${f().id}`:""}${e(ce)?` ${e(q)}`:""}`),Qt=u(()=>e(V)?"page":void 0);yt(yr,{variant:"plain",class:"absolute inset-0 z-0 h-auto w-auto rounded-md focus-visible:border-transparent focus-visible:bg-background/50 focus-visible:ring-0",get"aria-label"(){return e(Ee)},get"aria-describedby"(){return e(nt)},get"aria-current"(){return e(Qt)},"data-workspace-card-trigger":!0,onkeydown:Re,onclick:Nt=>{Nt.stopPropagation(),X()?.(Nt)}})}var bn=v(yr,2),Nr=S(bn);{var Sn=Ee=>{var nt=n0(),Qt=S(nt);{var Nt=rr=>{vu(rr,{get workspaceId(){return f().id},get slot(){return o()}})};M(Qt,rr=>{o()!==null&&rr(Nt)})}w(nt),d(Ee,nt)};M(Nr,Ee=>{a()&&Ee(Sn)})}var qn=v(Nr,2);No(qn,{get content(){return e(J).tooltip},side:"bottom",sideOffset:4,children:(Ee,nt)=>{Rm(Ee,{get status(){return e(tt)},size:14,decorative:!0,class:"justify-start"})},$$slots:{default:!0}});var $n=v(qn,2),ea=R($n,!0);w(bn);var qr=v(bn,2),yn=S(qr),or=S(yn),an=S(or),Vn=R(an,!0);gr(an,Ee=>N(Le,Ee),()=>e(Le)),w(or),gr(or,Ee=>N(he,Ee),()=>e(he));var _r=v(or,2);{var Tr=Ee=>{var nt=a0(),Qt=ze(nt),Nt=S(Qt);Et(Nt,{get icon(){return $i},size:"xs"}),w(Qt);var rr=v(Qt,2),Sr=R(rr,!0);k(Cn=>{mt(Qt,1,`wc-pin-indicator inline-flex shrink-0 items-center text-muted-foreground transition-opacity
|
|
260
|
-
${Pe()?Me()?"opacity-0":$()?"":Ae()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),oe(rr,"id",`workspace-pinned-state-${f().id??""}`),x(Sr,Cn)},[()=>m.layout_activeCard_pinned_header()]),d(Ee,nt)};M(_r,Ee=>{T()&&Ee(Tr)})}w(yn);var sn=v(yn,2);{var sa=Ee=>{var nt=s0(),Qt=R(nt,!0);k(()=>x(Qt,U())),d(Ee,nt)};M(sn,Ee=>{U()&&Ee(sa)})}var Qr=v(sn,2);{var Vr=Ee=>{const nt=u(()=>e(lt));var Qt=i0(),Nt=S(Qt);{let rr=u(()=>Oe(e(nt)));No(Nt,{get content(){return e(rr)},side:"bottom",sideOffset:4,children:(Sr,Cn)=>{var Kn=kt(),_n=ze(Kn);{var xr=Hr=>{{let wr=u(()=>Oe(e(nt)));yt(Hr,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(nt).foregroundClass??""}`},get"aria-label"(){return e(wr)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(nt).identity},get"data-pr-status"(){return e(nt).status},onclick:on=>{on.stopPropagation();const jr=f().id;Nf(async()=>{const{handleLink:$r}=await import("./
|
|
260
|
+
${Pe()?Me()?"opacity-0":$()?"":Ae()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),oe(rr,"id",`workspace-pinned-state-${f().id??""}`),x(Sr,Cn)},[()=>m.layout_activeCard_pinned_header()]),d(Ee,nt)};M(_r,Ee=>{T()&&Ee(Tr)})}w(yn);var sn=v(yn,2);{var sa=Ee=>{var nt=s0(),Qt=R(nt,!0);k(()=>x(Qt,U())),d(Ee,nt)};M(sn,Ee=>{U()&&Ee(sa)})}var Qr=v(sn,2);{var Vr=Ee=>{const nt=u(()=>e(lt));var Qt=i0(),Nt=S(Qt);{let rr=u(()=>Oe(e(nt)));No(Nt,{get content(){return e(rr)},side:"bottom",sideOffset:4,children:(Sr,Cn)=>{var Kn=kt(),_n=ze(Kn);{var xr=Hr=>{{let wr=u(()=>Oe(e(nt)));yt(Hr,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(nt).foregroundClass??""}`},get"aria-label"(){return e(wr)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(nt).identity},get"data-pr-status"(){return e(nt).status},onclick:on=>{on.stopPropagation();const jr=f().id;Nf(async()=>{const{handleLink:$r}=await import("./B6ZTfeOu.js").then(Gn=>Gn.V);return{handleLink:$r}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55]),import.meta.url).then(({handleLink:$r})=>$r(e(nt).url,{workspaceId:jr,event:on}))},children:(on,jr)=>{Et(on,{get icon(){return e(nt).statusIcon},size:14})},$$slots:{default:!0}})}},zr=Hr=>{var wr=o0(),on=S(wr);Et(on,{get icon(){return e(nt).statusIcon},size:14}),w(wr),k(jr=>{mt(wr,1,`inline-flex size-5 shrink-0 items-center justify-center rounded-sm ${e(nt).foregroundClass??""}`,"svelte-1ct56pd"),oe(wr,"aria-label",jr),oe(wr,"data-pr-identity",e(nt).identity),oe(wr,"data-pr-status",e(nt).status)},[()=>Oe(e(nt))]),d(Hr,wr)};M(_n,Hr=>{e(nt).url?Hr(xr):Hr(zr,-1)})}d(Sr,Kn)},$$slots:{default:!0}})}w(Qt),k(rr=>oe(Qt,"aria-label",rr),[()=>e(nt).resource?.repository.provider==="gitlab"?m.workspace_hoverCard_mergeRequest_label():m.workspace_hoverCard_pullRequest_label()]),d(Ee,Qt)};M(Qr,Ee=>{e(lt)&&Ee(Vr)})}var Cr=v(Qr,2);{var On=Ee=>{var nt=l0(),Qt=S(nt);{var Nt=Sr=>{{let Cn=u(()=>al(f()));vp(Sr,{get date(){return e(Cn)},class:"type-caption whitespace-nowrap tabular-nums text-muted-foreground",compact:!0})}},rr=u(()=>al(f())>0);M(Qt,Sr=>{e(rr)&&Sr(Nt)})}w(nt),k(()=>mt(nt,1,`wc-secondary shrink-0 ${Ie()||Pe()||h()&&ue()?Me()?"opacity-0":$()?"":Ae()?"group-hover/wc:opacity-0 group-hover/message:opacity-0":"group-hover:opacity-0 group-hover/message:opacity-0":""}`,"svelte-1ct56pd")),d(Ee,nt)};M(Cr,Ee=>{L()&&Ee(On)})}w(qr);var pa=v(qr,2);{var _a=Ee=>{var nt=d0(),Qt=S(nt);{var Nt=xr=>{{let zr=u(()=>T()?"text-primary-ink":"text-muted-foreground"),Hr=u(()=>T()?m.workspace_card_unpin_ariaLabel():m.workspace_card_pin_ariaLabel()),wr=u(()=>T()?m.workspace_card_unpin_tooltip():m.workspace_card_pin_tooltip());yt(xr,{variant:"plain",size:"icon-xs",iconOnly:!0,get class(){return`transition-all hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0
|
|
261
261
|
${e(zr)??""}`},onclick:on=>{on.stopPropagation(),Pe()?.(on)},get"aria-label"(){return e(Hr)},get title(){return e(wr)},children:(on,jr)=>{var $r=c0(),Gn=S($r);Et(Gn,{get icon(){return $i},size:"xs"}),w($r),d(on,$r)},$$slots:{default:!0}})}};M(Qt,xr=>{Pe()&&xr(Nt)})}var rr=v(Qt,2);{var Sr=xr=>{{let zr=u(()=>m.workspace_card_markAsRead_label()),Hr=u(()=>m.workspace_card_markAsRead_label());yt(xr,{variant:"plain",size:"icon-xs",iconOnly:!0,class:"text-muted-foreground hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0",onclick:wr=>{wr.stopPropagation(),ue()?.(wr)},get"aria-label"(){return e(zr)},get title(){return e(Hr)},children:(wr,on)=>{Et(wr,{get icon(){return Wc},size:"xs"})},$$slots:{default:!0}})}};M(rr,xr=>{h()&&ue()&&xr(Sr)})}var Cn=v(rr,2);dn(Cn,()=>Ie()??Ms);var Kn=v(Cn,2);{var _n=xr=>{{let zr=u(bt),Hr=u(()=>m.workspace_progressCard_actions_ariaLabel());xi(xr,{get items(){return e(zr)},get ariaLabel(){return e(Hr)},class:"flex size-5 cursor-pointer items-center justify-center rounded text-muted-foreground transition-colors hover:bg-muted/50 hover:text-foreground focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:outline-none",get open(){return e(ut)},set open(wr){N(ut,wr,!0)}})}};M(Kn,xr=>{Z()&&xr(_n)})}w(nt),gr(nt,xr=>N(je,xr),()=>e(je)),k(()=>mt(nt,1,`wc-actions absolute right-1 top-1/2 z-20 flex -translate-y-1/2 items-center gap-0.5 rounded-md bg-accent/95 px-0.5 focus-within:opacity-100
|
|
262
262
|
${Ae()?"group-focus-within/wc:opacity-100":"group-focus-within:opacity-100"}
|
|
263
263
|
${Me()?"opacity-100":$()?"opacity-0":Ae()?"opacity-0 group-hover/wc:opacity-100":"opacity-0 group-hover:opacity-100"}`,"svelte-1ct56pd")),d(Ee,nt)};M(pa,Ee=>{(Ie()||Z()||Pe()||h()&&ue())&&Ee(_a)})}w(Dt),gr(Dt,Ee=>N(_e,Ee),()=>e(_e)),Nn(Dt,(Ee,nt)=>ks?.(Ee,nt),()=>({id:fe()}));var Er=v(Dt,2);{var Mr=Ee=>{Dm(Ee,{get id(){return e(q)},get anchor(){return`--workspace-list-${f().id??""}`},position:"right",get anchorElement(){return e(_e)},class:"w-auto overflow-visible! rounded-lg border-0! bg-background! shadow-none!",onmouseenter:Zt,onmouseleave:xt,onfocusin:zt,onfocusout:er,children:(nt,Qt)=>{var Nt=u0(),rr=S(Nt);Bm(rr,{get workspace(){return f()},get activeAgentIds(){return H()},onkeydown:Ze}),w(Nt),gr(Nt,Sr=>N(et,Sr),()=>e(et)),wn("pointerenter",Nt,Zt),wn("pointerleave",Nt,xt),Ar("focusin",Nt,zt),Ar("focusout",Nt,er),d(nt,Nt)},$$slots:{default:!0}})};M(Er,Ee=>{e(ce)&&!$()&&Ee(Mr)})}var W=v(Er,2);{var Ne=Ee=>{const nt=u(bt);var Qt=kt(),Nt=ze(Qt);{var rr=Sr=>{{let Cn=u(()=>e(Qe)?.x??0),Kn=u(()=>e(Qe)?.y??0),_n=u(()=>e(Qe)?.returnFocus),xr=u(()=>m.workspace_progressCard_actions_ariaLabel());Nc(Sr,{get x(){return e(Cn)},get y(){return e(Kn)},get returnFocus(){return e(_n)},get ariaLabel(){return e(xr)},get items(){return e(nt)},onClickOutside:wt})}};M(Nt,Sr=>{e(nt).length>0&&Sr(rr)})}d(Ee,Qt)};M(W,Ee=>{e(Qe)&&Ee(Ne)})}k((Ee,nt,Qt)=>{mt(Dt,1,Ee,"svelte-1ct56pd"),oe(Dt,"data-pinned",T()),oe(Dt,"data-highlight-id",fe()),mr=Mn(Dt,"",mr,{"anchor-name":`--workspace-list-${f().id??""}`}),oe($n,"id",`workspace-status-state-${f().id??""}`),x(ea,e(J).accessibleName),mt(or,1,`wc-title type-body min-w-0 truncate font-normal!
|