@intent-hq/web 2.370.0 → 2.370.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{B-kUJzil.js → 2fnkFLNz.js} +1 -1
- package/web/app/immutable/chunks/{DbCFTbwM.js → 37RwnxdA.js} +1 -1
- package/web/app/immutable/chunks/{D5_auhOU.js → 5LALF9-w.js} +2 -2
- package/web/app/immutable/chunks/{eCVtubQ8.js → 5eDYSo3l.js} +1 -1
- package/web/app/immutable/chunks/{BEV9WkWU.js → 5kePy1TE.js} +1 -1
- package/web/app/immutable/chunks/{EzpfJOSe.js → 61v4Xd-q.js} +1 -1
- package/web/app/immutable/chunks/{D9MwZkzV.js → 6VefuM40.js} +1 -1
- package/web/app/immutable/chunks/{1pIqWRUk.js → 711s5WU0.js} +1 -1
- package/web/app/immutable/chunks/{CwWm64yZ.js → 8kPgwy6s.js} +1 -1
- package/web/app/immutable/chunks/{DcUCHDGY.js → AsFm-iq9.js} +1 -1
- package/web/app/immutable/chunks/{DFr6bn5t.js → B-7g-jyw.js} +4 -4
- package/web/app/immutable/chunks/{ZIOU9Sxd.js → B1tKRs9e.js} +1 -1
- package/web/app/immutable/chunks/{CaHds95Q.js → B3s08q4i.js} +1 -1
- package/web/app/immutable/chunks/{1GrJvO3a.js → B4F8uEiO.js} +1 -1
- package/web/app/immutable/chunks/{vLtMR-kj.js → B4rTQlY3.js} +1 -1
- package/web/app/immutable/chunks/{B3Gso1ut.js → B7CIdOn0.js} +1 -1
- package/web/app/immutable/chunks/{CQ_NwL45.js → B7nQiJX-.js} +2 -2
- package/web/app/immutable/chunks/{B9BjyTgZ.js → BFgsQcq9.js} +1 -1
- package/web/app/immutable/chunks/{CBRZjI7P.js → BGndkjol.js} +2 -2
- package/web/app/immutable/chunks/{BSfkjlLx.js → BHCTYYXY.js} +1 -1
- package/web/app/immutable/chunks/{CYKOPxuJ.js → BIY9btQv.js} +1 -1
- package/web/app/immutable/chunks/{qi41b1Ac.js → BLaGtfsC.js} +1 -1
- package/web/app/immutable/chunks/{D6dNunKo.js → BLb6jd9K.js} +1 -1
- package/web/app/immutable/chunks/{DELYEsRi.js → BM1qSBOB.js} +2 -2
- package/web/app/immutable/chunks/{BVLa_5Le.js → BNv5miK-.js} +1 -1
- package/web/app/immutable/chunks/{gHT8Z5q-.js → BOHkf2gI.js} +1 -1
- package/web/app/immutable/chunks/{bb5Wjkri.js → BOROIf_S.js} +1 -1
- package/web/app/immutable/chunks/{t7yAUuZn.js → BOWO4Ybr.js} +2 -2
- package/web/app/immutable/chunks/{Bus1Z5ou.js → BPOdNeJW.js} +1 -1
- package/web/app/immutable/chunks/{C_E26DWe.js → BR1Dvtpp.js} +1 -1
- package/web/app/immutable/chunks/{C2Vj5Vs6.js → BR75pcGU.js} +1 -1
- package/web/app/immutable/chunks/{DSacn4II.js → BR9APAxb.js} +1 -1
- package/web/app/immutable/chunks/{THdp5Vpk.js → BROVvkEL.js} +1 -1
- package/web/app/immutable/chunks/{jG-4Z8qH.js → BS5Nujz5.js} +1 -1
- package/web/app/immutable/chunks/{D_hG-oZK.js → BTodhwDl.js} +1 -1
- package/web/app/immutable/chunks/{CSBGusi9.js → BWn2FCdq.js} +1 -1
- package/web/app/immutable/chunks/{VdR0DXlW.js → BWu7Gpqf.js} +47 -47
- package/web/app/immutable/chunks/{CGzD6XfW.js → BZJ31k0Z.js} +1 -1
- package/web/app/immutable/chunks/{CmW3Zqh6.js → BZWU4mlm.js} +2 -2
- package/web/app/immutable/chunks/{DrOwYgbZ.js → BZgI7WU1.js} +1 -1
- package/web/app/immutable/chunks/{DZIz7Wk9.js → BaGw_bDr.js} +1 -1
- package/web/app/immutable/chunks/{NQru5r2h.js → BcrA9Yen.js} +1 -1
- package/web/app/immutable/chunks/{BvZfa6RH.js → BdJsd1ki.js} +1 -1
- package/web/app/immutable/chunks/{gySpGbnA.js → Bfp4ruWu.js} +1 -1
- package/web/app/immutable/chunks/{B1hj1DGj.js → BgE7NCeJ.js} +1 -1
- package/web/app/immutable/chunks/BghZcrpF.js +1 -0
- package/web/app/immutable/chunks/{CY-vjmpy.js → BiVa9bC9.js} +1 -1
- package/web/app/immutable/chunks/{DB9n2KBT.js → Bj-9TYLg.js} +1 -1
- package/web/app/immutable/chunks/{CFNJHO2G.js → BkG4Behb.js} +1 -1
- package/web/app/immutable/chunks/{BzFy3u2D.js → BlQvrYPa.js} +1 -1
- package/web/app/immutable/chunks/{FtGWFokI.js → BldeOF88.js} +1 -1
- package/web/app/immutable/chunks/{CdOh_Fmv.js → BnA9v3pc.js} +1 -1
- package/web/app/immutable/chunks/{CnztNSaN.js → BoQ8Q7zJ.js} +1 -1
- package/web/app/immutable/chunks/{CPlH-52U.js → BpcFcSgh.js} +7 -7
- package/web/app/immutable/chunks/{CiZzqOpk.js → BpyEBWKW.js} +1 -1
- package/web/app/immutable/chunks/{DgMr61cU.js → Bq3GMUqF.js} +1 -1
- package/web/app/immutable/chunks/{TE7UDCh6.js → BrGoXwG8.js} +1 -1
- package/web/app/immutable/chunks/{CyWgrZMk.js → Bsyy-0lH.js} +5 -5
- package/web/app/immutable/chunks/{Chnr0_jK.js → Bvf6gH6c.js} +1 -1
- package/web/app/immutable/chunks/{CylWx-GB.js → BxN9s7AP.js} +1 -1
- package/web/app/immutable/chunks/{Dekzflbl.js → BxQi83db.js} +1 -1
- package/web/app/immutable/chunks/{BGT9uvaQ.js → Bzz0c_ry.js} +5 -5
- package/web/app/immutable/chunks/{zye35u-t.js → C-IS8SBb.js} +1 -1
- package/web/app/immutable/chunks/{DUGztmZo.js → C0jW3ncX.js} +1 -1
- package/web/app/immutable/chunks/{Bc7pHsTy.js → C1YR8Gnj.js} +1 -1
- package/web/app/immutable/chunks/{Blu9C_Vv.js → C289w7fG.js} +1 -1
- package/web/app/immutable/chunks/{C0wua3Vt.js → C2UYU20O.js} +1 -1
- package/web/app/immutable/chunks/{CgwFGLCK.js → C2wWLl1x.js} +1 -1
- package/web/app/immutable/chunks/{CjTGc2Y5.js → C30xT9-i.js} +2 -2
- package/web/app/immutable/chunks/{9-nUCsGi.js → C3pE6msh.js} +1 -1
- package/web/app/immutable/chunks/{CQHtdg39.js → C5T8uUpU.js} +1 -1
- package/web/app/immutable/chunks/{DeE0yn_3.js → C5pJ7DEG.js} +1 -1
- package/web/app/immutable/chunks/{CH7fgKro.js → C6P_twJN.js} +1 -1
- package/web/app/immutable/chunks/{UQXXh4U7.js → C6ROKFdp.js} +1 -1
- package/web/app/immutable/chunks/{YcqSYZ1W.js → C96BAoIR.js} +1 -1
- package/web/app/immutable/chunks/{BnNJN3Ls.js → C9AWL-_E.js} +1 -1
- package/web/app/immutable/chunks/{CzW29tkb.js → CAV1CzzW.js} +1 -1
- package/web/app/immutable/chunks/{CfUtc4-L.js → CDsbSWM0.js} +1 -1
- package/web/app/immutable/chunks/{DC_1j_gh.js → CELHofTd.js} +3 -3
- package/web/app/immutable/chunks/{Bg7YNbVH.js → CFdTsqjt.js} +1 -1
- package/web/app/immutable/chunks/{d1EmVp98.js → CGLbiObk.js} +1 -1
- package/web/app/immutable/chunks/{B-_ROixI.js → CHvjIWnN.js} +2 -2
- package/web/app/immutable/chunks/{CbRsc9i4.js → CI4_aI7e.js} +5 -5
- package/web/app/immutable/chunks/{C_-WdiR8.js → CKf0K7iH.js} +1 -1
- package/web/app/immutable/chunks/{CCrwZkau.js → CMYDhfVs.js} +1 -1
- package/web/app/immutable/chunks/{CmVXj6KK.js → CQCytUET.js} +2 -2
- package/web/app/immutable/chunks/CQIdhUGs.js +1 -0
- package/web/app/immutable/chunks/{D_-ztW_Y.js → CQiC3L5q.js} +1 -1
- package/web/app/immutable/chunks/{BwtGEQS3.js → CRhdiLrU.js} +1 -1
- package/web/app/immutable/chunks/{uCQEgTob.js → CTBZXNUF.js} +1 -1
- package/web/app/immutable/chunks/{BkFHmpuY.js → CUj3qXAR.js} +1 -1
- package/web/app/immutable/chunks/{Dv0Jc2Nv.js → CVpnQG0j.js} +1 -1
- package/web/app/immutable/chunks/{R2N5eDxY.js → CWOeseZJ.js} +2 -2
- package/web/app/immutable/chunks/{DtHX0_aW.js → CX-8a7xU.js} +2 -2
- package/web/app/immutable/chunks/{BhZDGIfe.js → CX-WDgpQ.js} +1 -1
- package/web/app/immutable/chunks/{DJFAYXyc.js → CZ0MIbMm.js} +1 -1
- package/web/app/immutable/chunks/{CUMRLgxB.js → C_WatYYk.js} +1 -1
- package/web/app/immutable/chunks/{CRY4aELR.js → CcCeOCLG.js} +4 -4
- package/web/app/immutable/chunks/{BX9hgO_H.js → CcYjFBrM.js} +6 -6
- package/web/app/immutable/chunks/{B_IEMfS6.js → Ce4DeuTo.js} +3 -3
- package/web/app/immutable/chunks/{CMLBE7U6.js → CmdzVgvT.js} +1 -1
- package/web/app/immutable/chunks/{Bvo32SXP.js → CnS7dtdu.js} +1 -1
- package/web/app/immutable/chunks/{9sCF_0su.js → Cnfa9ycD.js} +1 -1
- package/web/app/immutable/chunks/{Db8-C0Zq.js → CoDlIYWp.js} +1 -1
- package/web/app/immutable/chunks/{BSsEOl8-.js → CoZeNthD.js} +1 -1
- package/web/app/immutable/chunks/{D2dAlclh.js → Cov6EESF.js} +3 -3
- package/web/app/immutable/chunks/{DwXKCf3Q.js → CplGG62F.js} +1 -1
- package/web/app/immutable/chunks/CqCZk0ca.js +4 -0
- package/web/app/immutable/chunks/{qjcf4Gb9.js → Cr_u-KK4.js} +1 -1
- package/web/app/immutable/chunks/{BHaE4286.js → CvqKGiPA.js} +1 -1
- package/web/app/immutable/chunks/{B0SoVMRS.js → Cw0RkUSg.js} +1 -1
- package/web/app/immutable/chunks/{CzS5ny-g.js → Cxn7PlP-.js} +1 -1
- package/web/app/immutable/chunks/{Dsn82AW0.js → Cxs4PvAD.js} +1 -1
- package/web/app/immutable/chunks/{DtfuSWPd.js → Cy9k09g5.js} +1 -1
- package/web/app/immutable/chunks/{BAymCgEX.js → Cz-HgbT1.js} +1 -1
- package/web/app/immutable/chunks/{B9mj0qwd.js → CzM5SEDv.js} +1 -1
- package/web/app/immutable/chunks/{YV53nLSc.js → D2CiBsJQ.js} +1 -1
- package/web/app/immutable/chunks/{D1bivTve.js → D2dH0brU.js} +2 -2
- package/web/app/immutable/chunks/{DxyI4IUi.js → D2jpdqLS.js} +1 -1
- package/web/app/immutable/chunks/{CQAAihrI.js → D3VYu5tL.js} +1 -1
- package/web/app/immutable/chunks/{CKnpbRTh.js → D3gleuKc.js} +9 -9
- package/web/app/immutable/chunks/{CCsCF1Mh.js → D4D4msrU.js} +1 -1
- package/web/app/immutable/chunks/{DISyGoja.js → D5-1hxdu.js} +1 -1
- package/web/app/immutable/chunks/{BqxcrzZH.js → D5CXAAzn.js} +1 -1
- package/web/app/immutable/chunks/{Bi0vr71w.js → D5MxzPoI.js} +1 -1
- package/web/app/immutable/chunks/{DCW2c0FY.js → D5xUDbUx.js} +1 -1
- package/web/app/immutable/chunks/{BUA7BUyu.js → D6vwIrtC.js} +1 -1
- package/web/app/immutable/chunks/{BYMXwcID.js → D8-Qc246.js} +1 -1
- package/web/app/immutable/chunks/{CRNfAyhd.js → DAfOI1BG.js} +1 -1
- package/web/app/immutable/chunks/{BnhOIUmr.js → DDVgDlM2.js} +1 -1
- package/web/app/immutable/chunks/{CCSbqNiH.js → DExi1WR7.js} +1 -1
- package/web/app/immutable/chunks/DFMjHFLq.js +1 -0
- package/web/app/immutable/chunks/{NqK_XT0y.js → DFrynV0u.js} +1 -1
- package/web/app/immutable/chunks/{Dawt227W.js → DGQoqGp4.js} +1 -1
- package/web/app/immutable/chunks/{Bp098-aN.js → DJOX3PaT.js} +1 -1
- package/web/app/immutable/chunks/{BSD34ZVo.js → DLfLfqER.js} +1 -1
- package/web/app/immutable/chunks/{D1V2Et17.js → DMH0w6el.js} +1 -1
- package/web/app/immutable/chunks/{WlqVlpOk.js → DNF6envV.js} +1 -1
- package/web/app/immutable/chunks/{Iq8JI4_0.js → DNbpqTjh.js} +1 -1
- package/web/app/immutable/chunks/{DWEA_zul.js → DOiozQGI.js} +1 -1
- package/web/app/immutable/chunks/{Dp9fBXaC.js → DOwDDYVN.js} +1 -1
- package/web/app/immutable/chunks/{5lieSvED.js → DP7n2Ccw.js} +1 -1
- package/web/app/immutable/chunks/{C2YH0P-B.js → DPvT-ATr.js} +1 -1
- package/web/app/immutable/chunks/{BRRvOx4M.js → DQLMO9xD.js} +2 -2
- package/web/app/immutable/chunks/{sS3MW5B6.js → DQZlstPH.js} +1 -1
- package/web/app/immutable/chunks/{CADQyVDS.js → DTbH-mAR.js} +2 -2
- package/web/app/immutable/chunks/{CblB0zCN.js → DUAki0uS.js} +1 -1
- package/web/app/immutable/chunks/{fr0BmHL-.js → DUj14ka7.js} +1 -1
- package/web/app/immutable/chunks/{CbyU6cEf.js → DVu7tZ67.js} +1 -1
- package/web/app/immutable/chunks/{CBafvv8h.js → DWC3_76J.js} +1 -1
- package/web/app/immutable/chunks/{BpEHjU4g.js → DXtdMDwl.js} +1 -1
- package/web/app/immutable/chunks/{CR2m4w2U.js → DY9gJ8US.js} +1 -1
- package/web/app/immutable/chunks/{DIukqb9l.js → D_izGjgJ.js} +1 -1
- package/web/app/immutable/chunks/{D-NrCL67.js → D_pS9hme.js} +1 -1
- package/web/app/immutable/chunks/{Cj_UUgNI.js → DaqXt9wp.js} +1 -1
- package/web/app/immutable/chunks/{BvKqDQXM.js → DcnKM2c0.js} +1 -1
- package/web/app/immutable/chunks/{A4nvdmL6.js → DcsxLfDg.js} +1 -1
- package/web/app/immutable/chunks/{B2AfKG58.js → DgTfsal1.js} +2 -2
- package/web/app/immutable/chunks/{rB5UfCey.js → DiD2Cn17.js} +1 -1
- package/web/app/immutable/chunks/{R1s5ARST.js → Dk27S3e8.js} +1 -1
- package/web/app/immutable/chunks/{BmBa9vQp.js → DkkmguuG.js} +1 -1
- package/web/app/immutable/chunks/{CUdMuhJF.js → DlGpNWpV.js} +1 -1
- package/web/app/immutable/chunks/{Cv2YUgTX.js → DnV9eAGG.js} +1 -1
- package/web/app/immutable/chunks/{BulBKnVz.js → DnfgukfK.js} +1 -1
- package/web/app/immutable/chunks/{CA2ANaNj.js → Dnz4szur.js} +1 -1
- package/web/app/immutable/chunks/{Df-HaYIr.js → Do5lDWBq.js} +1 -1
- package/web/app/immutable/chunks/{Bqm2Rf6d.js → Dq9sK6wY.js} +1 -1
- package/web/app/immutable/chunks/{Caqml6gj.js → Dqa8MqiX.js} +1 -1
- package/web/app/immutable/chunks/{f686-QUd.js → DqvpZseI.js} +1 -1
- package/web/app/immutable/chunks/{cFozej4U.js → Dr1T9Ela.js} +3 -3
- package/web/app/immutable/chunks/{DksUdusM.js → DrBfRK-l.js} +2 -2
- package/web/app/immutable/chunks/{D0DIS-cT.js → DrMbcJpA.js} +1 -1
- package/web/app/immutable/chunks/{qvt-0QTi.js → DsGwNgOu.js} +3 -3
- package/web/app/immutable/chunks/{wgljT0D3.js → DuR22uzB.js} +1 -1
- package/web/app/immutable/chunks/DwEChUMY.js +1 -0
- package/web/app/immutable/chunks/{BG2RPA7A.js → DxOqqCxd.js} +2 -2
- package/web/app/immutable/chunks/{BDA31WCY.js → F6KnEzK2.js} +1 -1
- package/web/app/immutable/chunks/{UN8KT7fR.js → FhXVX7Hi.js} +1 -1
- package/web/app/immutable/chunks/{BCQ1W7zT.js → IbOrXYhr.js} +3 -3
- package/web/app/immutable/chunks/{DL1CE4TH.js → JvjGgKob.js} +1 -1
- package/web/app/immutable/chunks/{B-1iBpaq.js → Jx0QEit0.js} +1 -1
- package/web/app/immutable/chunks/{BgPtjifd.js → KEjNxHSN.js} +1 -1
- package/web/app/immutable/chunks/KvL2D8eF.js +1 -0
- package/web/app/immutable/chunks/{D6VfSAVQ.js → MmbRHAVV.js} +1 -1
- package/web/app/immutable/chunks/{D_r5h8IL.js → NgjMs0r6.js} +1 -1
- package/web/app/immutable/chunks/{DFBd8tOh.js → OK80LzXp.js} +1 -1
- package/web/app/immutable/chunks/{tDUnXf7O.js → QFEvVzf2.js} +1 -1
- package/web/app/immutable/chunks/RMFOakJ8.js +1 -0
- package/web/app/immutable/chunks/{ir8Qz45r.js → Rtb2u0aS.js} +1 -1
- package/web/app/immutable/chunks/{qHChsLZZ.js → S0vfIVN4.js} +1 -1
- package/web/app/immutable/chunks/{C1AEP5wW.js → SxNO1NUM.js} +1 -1
- package/web/app/immutable/chunks/{DZRLhNnQ.js → Tl9_Ag57.js} +1 -1
- package/web/app/immutable/chunks/{1DKpnRTj.js → YcLv7RIG.js} +1 -1
- package/web/app/immutable/chunks/{CgS_FiQI.js → YjkXFMdR.js} +1 -1
- package/web/app/immutable/chunks/{CbRNm5he.js → YlOhdwpJ.js} +1 -1
- package/web/app/immutable/chunks/{Hd1u2Z-S.js → ZiiliHwl.js} +3 -3
- package/web/app/immutable/chunks/{BinPWBvt.js → a-02PhaD.js} +1 -1
- package/web/app/immutable/chunks/{BmjF1SON.js → deZv7xr3.js} +2 -2
- package/web/app/immutable/chunks/{CqVZxU_G.js → e6y6K_3x.js} +1 -1
- package/web/app/immutable/chunks/{_EqQOSVK.js → eHZL9ha9.js} +2 -2
- package/web/app/immutable/chunks/{VJkCr9xp.js → eRIG79tn.js} +1 -1
- package/web/app/immutable/chunks/{1GGKXNxU.js → e_K38tqB.js} +1 -1
- package/web/app/immutable/chunks/{D69ZLPjW.js → hSiYrZoo.js} +1 -1
- package/web/app/immutable/chunks/{DvATy2o1.js → hqZSbKVs.js} +1 -1
- package/web/app/immutable/chunks/{DRy2oEmj.js → l3HuVu6N.js} +1 -1
- package/web/app/immutable/chunks/{Ev5lig9W.js → lUjoTdjg.js} +1 -1
- package/web/app/immutable/chunks/{CUNx-_2d.js → mPd0q3-n.js} +4 -4
- package/web/app/immutable/chunks/{B8_Ff8zl.js → mdamofpo.js} +7 -7
- package/web/app/immutable/chunks/{BDcauMkX.js → mwFmA_HW.js} +1 -1
- package/web/app/immutable/chunks/{BimRiD6s.js → nxYQz1Bp.js} +1 -1
- package/web/app/immutable/chunks/{DkJkWZTE.js → qOqJpb_a.js} +1 -1
- package/web/app/immutable/chunks/{Cgn_eC9-.js → rIUowGAi.js} +2 -2
- package/web/app/immutable/chunks/{DvrEye74.js → rei1qYSi.js} +1 -1
- package/web/app/immutable/chunks/{BR2t5nsF.js → wNJjv8Uj.js} +2 -2
- package/web/app/immutable/chunks/{MifrdpDQ.js → xIIgydKf.js} +1 -1
- package/web/app/immutable/chunks/{CqwiFk32.js → yGw_3prC.js} +1 -1
- package/web/app/immutable/chunks/{Cq4X6ptS.js → z2CLzpx7.js} +1 -1
- package/web/app/immutable/entry/{app.jT7Rd2u4.js → app.CC3URvKW.js} +2 -2
- package/web/app/immutable/entry/start.C3bg9se6.js +1 -0
- package/web/app/immutable/nodes/{0.9lwWQtfB.js → 0.C4aXi2Zc.js} +1 -1
- package/web/app/immutable/nodes/{1.Ck4yEk2l.js → 1.O03B6KYk.js} +1 -1
- package/web/app/immutable/nodes/{10.C4FEQjC7.js → 10.DSjz-a23.js} +17 -17
- package/web/app/immutable/nodes/{11.C-vXNNmX.js → 11.DUbB-MHX.js} +4 -4
- package/web/app/immutable/nodes/{13.DhKVmEQi.js → 13.DTamgdFN.js} +1 -1
- package/web/app/immutable/nodes/{14.INZu_e5k.js → 14.CzznX4mY.js} +1 -1
- package/web/app/immutable/nodes/{15.DdKSdQ-h.js → 15.BU8WwWus.js} +1 -1
- package/web/app/immutable/nodes/{16.Ad-t6nft.js → 16.D1WCmH9D.js} +1 -1
- package/web/app/immutable/nodes/{17.pLS5JsPi.js → 17.DXnAkOJb.js} +1 -1
- package/web/app/immutable/nodes/{18.DIVxEUeB.js → 18.BBYG39nr.js} +1 -1
- package/web/app/immutable/nodes/{19.BB9LuT5j.js → 19.C3kZuMc1.js} +2 -2
- package/web/app/immutable/nodes/2.SHzQR8g8.js +13 -0
- package/web/app/immutable/nodes/{20.BGTcjiLa.js → 20.DyC7cckU.js} +1 -1
- package/web/app/immutable/nodes/{3.DRJnaOSe.js → 3.D7EtacCx.js} +1 -1
- package/web/app/immutable/nodes/{4.p67SnElB.js → 4._-Ygm1PE.js} +1 -1
- package/web/app/immutable/nodes/{5.DRmIJA2c.js → 5.B5veLa-N.js} +1 -1
- package/web/app/immutable/nodes/{6.Bjeibumi.js → 6.BnrdHFCS.js} +2 -2
- package/web/app/immutable/nodes/{7.CjIaxqZ1.js → 7.DAUgpsnC.js} +1 -1
- package/web/app/immutable/nodes/{8.DAlxovqG.js → 8.Cj1FZ4Vr.js} +1 -1
- package/web/app/immutable/nodes/{9.BKQZzsCi.js → 9.BuIEgUbP.js} +11 -11
- package/web/app/version.json +1 -1
- package/web/index.html +12 -12
- package/web/app/immutable/chunks/-7AqlW5j.js +0 -1
- package/web/app/immutable/chunks/B1lYPzEU.js +0 -1
- package/web/app/immutable/chunks/C14Hgf8a.js +0 -1
- package/web/app/immutable/chunks/CK4eAyad.js +0 -1
- package/web/app/immutable/chunks/DBdkAKrm.js +0 -4
- package/web/app/immutable/chunks/UGr2VEtG.js +0 -1
- package/web/app/immutable/chunks/i8PKWJT0.js +0 -1
- package/web/app/immutable/entry/start.CSuXA93h.js +0 -1
- package/web/app/immutable/nodes/2.Bp80wZmn.js +0 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as l,v as h,t as k}from"./PVXvIyE8.js";import{
|
|
1
|
+
import{d as l,v as h,t as k}from"./PVXvIyE8.js";import{J5 as s,vw as w}from"./CI4_aI7e.js";import{i as W,d as E,e as c,n as i,b as m}from"./BOWO4Ybr.js";const A=new Set(["new","creating"]);function g(n){let t;try{t=decodeURIComponent(n)}catch{return null}return t.length===0||A.has(t)?null:t}function f(n){const t=/^\/workspace\/([^/?#]+)\/?(?:[?#].*)?$/.exec(n);return t?g(t[1]):null}function I(n){const t=/^\/workspace\/([^/?#]+)(?:[/?#].*)?$/.exec(n);return t?g(t[1]):null}function N(n,t){return t.length>0&&I(n)===t}function p(){return typeof window>"u"?null:window.location?.pathname??null}function d(n,t){const e=`/workspace/${encodeURIComponent(n)}`,a=t?new URLSearchParams(t).toString():"";return a?`${e}?${a}`:e}function R(n,t){const e=t?.presenceFollowRequestId;return e?w(n,e):w(n)}function P(n,t){return t?i(n,{state:t}):i(n)}function o(n){return n?.tabState?.currentTabId??null}async function S(n,t,e,a){m();const u=P(t,e),r={workspaceId:n,epoch:c(),startTabId:a};return await u,r}function b(n){return!n||W()||E()}function y(n,t){if(c()!==n.epoch||t!==n.startTabId&&t!==n.workspaceId)return!1;const e=p();return e===null||f(e)===n.workspaceId}async function v(n,t,e){if(b(n))return!1;const a=await S(n,t,e,o(s.state));return y(a,o(s.state))?(s.dispatch(R(n,e)),!0):!1}function*T(n,t,e){if(b(n))return!1;const a=o(yield*h(r=>r)),u=yield*l(S,n,t,e,a);return y(u,o(yield*h(r=>r)))?(yield*k(R(n,e)),!0):!1}function _(){m();const n=c(),t=o(s.state),e=p();return()=>c()===n&&o(s.state)===t&&p()===e}function O(n,t={}){return v(n,d(n,t.query),t.state)}function $(n,t={}){return T(n,d(n,t.query),t.state)}async function j(n){const t=f(n);t?await v(t,n,void 0):await i(n)}function*q(n){const t=f(n);t?yield*l(T,t,n,void 0):yield*l(i,n)}const U=Object.freeze(Object.defineProperty({__proto__:null,claimNavigation:_,navigateToAppRoute:j,navigateToAppRouteSaga:q,openAndShowWorkspace:O,showWorkspaceSaga:$,workspaceRoute:d},Symbol.toStringTag,{value:"Module"}));export{p as a,q as b,_ as c,$ as d,d as e,N as i,j as n,O as o,f as p,U as s,I as w};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Z as Q,n as j,az as
|
|
2
|
-
`)?$(t)||null:t:null}}}function v(e,t){const n=w(e),s=new Map(n.map(r=>[r.id,I(t,r)]));return ye(n,me(s)).map(({info:r,depth:d,parentAgentId:c})=>{const o=t.agentSessions?.byAgentId[r.id],a=V(r,o),{bucket:u,attentionKind:g,hasQuestion:k}=s.get(r.id)??I(t,r),f=Array.isArray(o?.waitingForAgentIds)?o.waitingForAgentIds.filter(p=>typeof p=="string"):[];return{id:r.id,name:r.name,bucket:u,lastActivityTs:r.lastActivity??null,line:Ie(X.select(t,r.id)),parentAgentId:c,depth:d,treePrefix:"",topLevel:K(a)==="topLevel",isBackground:ne(a),attentionKind:g,hasQuestion:k,isWaitingForAgents:o?.isWaitingForOtherAgents===!0||f.length>0||Array.isArray(o?.waitingOnHooks)&&o.waitingOnHooks.length>0||Array.isArray(o?.waitingOnPrMonitors)&&o.waitingOnPrMonitors.length>0||Array.isArray(o?.waitingOnScriptMonitors)&&o.waitingOnScriptMonitors.length>0,waitingForAgentIds:f}})}function we(e){const t=new Set;for(const i of e)for(const r of i.waitingForAgentIds)t.add(r);const n=i=>y.has(i.bucket)||i.isWaitingForAgents||t.has(i.id);return e.filter((i,r)=>{if(n(i))return!0;for(let d=r+1;d<e.length&&!(e[d].depth<=i.depth);d++)if(n(e[d]))return!0;return!1}).map((i,r,d)=>{if(i.depth===0)return{...i,treePrefix:""};let c=!0;for(let o=r+1;o<d.length&&!(d[o].depth<i.depth);o++)if(d[o].depth===i.depth){c=!1;break}return{...i,treePrefix:(i.depth>=2?"│ ":"")+(c?"└─":"├─")}})}const B=l.createSelector(e=>{const t=e.hud.attentionByWorkspaceId,n=re.select(e);return S.select(e).map(s=>{const i=String(s.id),r=n.indexOf(i),d=t[i]?.attention??(typeof s.attention=="string"&&F(s.attention)?s.attention:null),c=v(s,e),o=b(s),a=e.tokenUsage?.byWorkspaceId[i]?.totals,u=e.workspaceTasks?.byWorkspaceId[i]?.stats,g=typeof s.statusMessage=="string"&&s.statusMessage.trim().length>0?s.statusMessage:null;return{workspaceId:i,title:s.title,repoRef:s.repositoryName?`${s.repositoryOwner?`${s.repositoryOwner}/`:""}${s.repositoryName}`:s.branch,stateKey:o,attention:d,isUnread:d===se,isWaiting:s.waiting===!0,statusMessage:g,attentionSnippet:he(e,o,c),prNumber:typeof s.prNumber=="number"?s.prNumber:null,keySlot:r===-1?null:r,tasks:u?{total:u.total,completed:u.completed,inProgress:u.inProgress}:Ae,tokens:a?q(a):0,agents:we(c)}})}),R=4;function be(e,t,n){const s=e.agentSessions?.byAgentId[n.id];return!s||String(s.workspaceId)!==t||s.pendingDeleteAt||K(V(n,s))!=="topLevel"?!1:!h(e,n.id)}const ve=l.createSelector(e=>{const t={},n=e.hud.attentionByWorkspaceId;for(const s of S.select(e)){const i=String(s.id),r=new Map,d=(f,p)=>{const A=r.get(f)??[];A.includes(p)||A.push(p),r.set(f,A)},o=w(s).filter(f=>be(e,i,f));for(const f of o){const p=I(e,f);p.bucket==="failed"?d("failed",f.name):p.hasQuestion?d("question",f.name):p.attentionKind==="blocker"?d("blocker",f.name):p.attentionKind==="discussion"&&d("discussion",f.name),p.isRunning&&d("running",f.name)}const a=b(s);a==="failed"&&!r.has("failed")&&r.set("failed",[]),a==="blocked"&&!r.has("blocker")&&r.set("blocker",[]),a==="wait"&&!r.has("question")&&!r.has("blocker")&&!r.has("discussion")&&r.set("needs_input",[]);const u=n[i]?.attention??(typeof s.attention=="string"&&F(s.attention)?s.attention:null);u==="review_required"&&r.set("review",[]),u==="unread"&&r.set("unread",[]),s.activity==="agent_running"&&!r.has("running")&&r.set("running",[]);const g=oe.flatMap(f=>{const p=r.get(f);return p?[{category:f,count:Math.max(1,p.length),agentNames:p}]:[]});if(g.length===0)continue;const k=g.length>R;t[i]={agentCount:o.length,categories:g,visibleCategories:k?g.slice(0,R-1):g,hiddenCategoryCount:k?g.length-(R-1):0}}return t});l.createSelector(e=>{const t=e.hud.attentionByWorkspaceId;let n=0;for(const s of S.select(e)){let i=!1;for(const c of v(s,e))c.topLevel&&!c.isBackground&&!h(e,c.id)&&(c.bucket==="failed"||c.attentionKind!==null||c.hasQuestion)&&(n+=1,i=!0);const r=t[String(s.id)],d=r!==void 0&&P(r.attention);d&&(n+=1),G.has(b(s))&&!i&&!d&&(n+=1)}return n});function Te(e,t,n,s){const i=s.slice().sort((o,a)=>a.createdAt-o.createdAt);for(const o of i){const u=e.agentSessions?.byAgentId[o.agentId]?.metadata?.completionReport;if(typeof u=="string"&&u.trim().length>0)return u}const r=e.workspaceNotes?.byWorkspaceId[t]?.notes,d=r?m(r,n):void 0,c=d?.content||d?.contentPreview;return typeof c=="string"&&c.trim().length>0?c:null}const
|
|
1
|
+
import{Z as Q,n as j,az as z,aw as J,aH as X,w as $,b as Y}from"./C2wWLl1x.js";import{J5 as l,nM as m,nN as C,Je as q,bm as O,$ as Z,nz as _,rA as P,rY as ee,kg as te,rW as W,Jz as M,rf as ne,fM as K,rB as F,a1 as se,bk as oe,i as ie}from"./CI4_aI7e.js";import{m as x,a0 as re,l as ae}from"./CAV1CzzW.js";import{g as L}from"./DypB-Dwi.js";const ce=["[WORKSPACE EVENTS]","[TASK WAKE]","[AGENT MESSAGE]"];function de(e){const t=e.metadata;if(t&&typeof t=="object"){if(t.type==="question_answers")return!1;if(!Q(t))return!0}const n=j(e);return ce.some(s=>n.startsWith(s))}const U=1440*60*1e3;function le(e){let t=null;for(const n of e){if(de({id:n.id,timestamp:n.createdAt,metadata:n.metadata,contentBlocks:[{type:"text",text:n.preview.trimStart()}]}))continue;const s=Date.parse(n.createdAt);Number.isFinite(s)&&(t===null||s>t)&&(t=s)}return t}const ue=50,ge=20;function D(e,t){return e===null||t!==null&&t>e?t:e}async function De(e,t){let n,s=null;for(let i=0;i<ge;i++){const r=await e({limit:ue,nextToken:n});if(!r.ok)return null;const d=r.items;s===null&&d.length>0&&(s=d[d.length-1].id);const c=t?.newestId!=null?d.findIndex(a=>a.id===t.newestId):-1,o=le(c>=0?d.slice(c+1):d);if(c>=0)return{latest:D(o,t?.latest??null),newestId:s};if(o!==null)return{latest:D(o,t?.latest??null),newestId:s};if(typeof r.nextToken!="string")return{latest:null,newestId:s};n=r.nextToken}return{latest:t?.latest??null,newestId:s}}function E(e,t){return e!=null&&e<=t&&e>t-U}function fe(e,t){return e!=null&&Number.isFinite(e)&&e>0&&e<=t-U}function pe(e,t){const{workspaceId:n,agentId:s,authority:i,nativePairId:r,evidence:d}=e;if(!n||!s||!i||i!==t)return null;const c=JSON.stringify([n,s]);if(r!==c||d?.id!==c)return null;const o=d.clips.find(a=>a.status==="recording");return!o||o.discarding||!Number.isFinite(o.startedAt)||!Number.isFinite(o.pausedMs??0)||o.pausedAt!=null&&!Number.isFinite(o.pausedAt)?null:{workspaceId:n,agentId:s,clipId:o.id,startedAt:o.startedAt,pausedAt:o.pausedAt??null,pausedMs:o.pausedMs??0}}function Ee(e,t){return t!==void 0&&e!==t?"ignore":e?"stop":"start"}const Ne=l.createSelector(e=>{const t=e.dockConversation,n=t.workspaceId&&t.agentId?JSON.stringify([t.workspaceId,t.agentId]):null;return pe({workspaceId:t.workspaceId,agentId:t.agentId,authority:t.authority,nativePairId:t.nativeSpeech.pairId,evidence:n?m(t.evidence,n):null},L(e))});l.createSelector(e=>e.hud.active);l.createSelector(e=>e.hud.feed);l.createSelector(e=>e.hud.usage);l.createSelector(e=>e.hud.usageError);const He=l.createSelector(e=>e.hud.rateHistory),qe=l.createSelector(e=>C(e.workspace.workspaces)),Pe=l.createSelector(e=>{const t=e.hud.usage?.totals;return t?q(t):0}),Ke=l.createSelector(e=>e.hud.burnRatePerMin),Fe=l.createSelector(e=>e.hud.burnTrend),xe=l.createSelector(e=>{const{health:t,stats:n,lastUpdated:s,hostLocality:i}=e.daemonHealth,r=n?.hostname;return{online:t!=="down",uptimeSeconds:typeof n?.uptimeSeconds=="number"?n.uptimeSeconds:null,version:n?.version??null,fetchedAtMs:s?Date.parse(s):null,remoteHostname:i==="remote"&&r?r.split(".",1)[0]??r:null}}),Le=l.createSelector(e=>e.hud.gridFilter);l.createSelector(e=>e.hud.attentionByWorkspaceId);const Ue=l.createSelector((e,t)=>{const n=e.hud?.questionsByAgentId?.[t];if(!n)return!1;const s=e.agentSessions?.byAgentId[t]?.metadata??{};return!x(s,n.messageId)}),Ge=l.createSelector(e=>e.hud.takeoverRequestWorkspaceId);function ke(e,t){return t[String(e.id)]??e.displayStatus}const S=l.createSelector(e=>{const t=e.hud.displayStatusByWorkspaceId;return C(e.workspace.workspaces).filter(n=>n.status!==O.Archived&&n.status!==O.Retired&&n.status!==O.Deleted).map(n=>{const s=ke(n,t);return s&&s!==n.displayStatus?{...n,displayStatus:s}:n})});function w(e){const t=e.agentSummary;return!t||!Array.isArray(t.agents)?[]:t.agents.filter(n=>!!n&&typeof n=="object"&&typeof n.id=="string"&&n.status!=="deleted"&&!ae(n.id))}const Ve=l.createSelector(e=>{const t=Object.fromEntries(Z.map(n=>[n,0]));for(const n of S.select(e))for(const s of w(n))t[I(e,s).bucket]+=1;return t}),Qe=l.createSelector(e=>{const t={idle:0,unread:0,progress:0,attention:0,waiting:0,prOpen:0,prMerged:0,failed:0,completed:0,total:0};for(const n of B.select(e))switch(t.total+=1,n.isUnread&&(t.unread+=1),n.isWaiting&&(t.waiting+=1),n.stateKey){case"wait":case"blocked":t.attention+=1;break;case"failed":t.failed+=1;break;case"in_progress":t.progress+=1;break;case"complete":t.completed+=1;break;case"pr_open":case"pr_ready":case"pr_queued":t.prOpen+=1;break;case"pr_merged":t.prMerged+=1;break;default:t.idle+=1}return t}),Se=l.createSelector(e=>{const t={};for(const n of S.select(e))for(const s of w(n))typeof s.name=="string"&&s.name.length>0&&(t[s.id]=s.name);return t});function N(e){if(!e.sinceTs)return 0;const t=Date.parse(e.sinceTs);return Number.isFinite(t)?t:0}const je=l.createSelector(e=>{const t=e.hud.attentionByWorkspaceId,n=e.hud.questionsByAgentId,s=[];for(const i of S.select(e)){const r=String(i.id);let d=!1;for(const o of v(i,e)){const{bucket:a,attentionKind:u,hasQuestion:g}=o;if(a!=="needs-attention"&&a!=="failed"||!o.topLevel||o.isBackground||h(e,o.id))continue;const k=g?n[o.id]:void 0,f=u?_(e.agentSessions?.byAgentId[o.id])?.reason:void 0,p=k?"question":u??void 0;s.push({workspaceId:r,workspaceTitle:i.title,kind:a==="needs-attention"?"agent_waiting":"agent_failed",...a==="needs-attention"&&p?{signal:p}:{},agentName:o.name,message:k?.question??f??null,sinceTs:o.lastActivityTs}),d=!0}const c=t[r];c&&P(c.attention)&&(s.push({workspaceId:r,workspaceTitle:i.title,kind:"workspace_attention",attention:c.attention,message:null,sinceTs:c.raisedAtTs}),d=!0),G.has(b(i))&&!d&&s.push({workspaceId:r,workspaceTitle:i.title,kind:"workspace_attention",message:null,sinceTs:null})}return s.sort((i,r)=>N(r)-N(i))}),ze=l.createSelector(e=>{const t=Se.select(e);return e.hud.feed.map(n=>({...n,workspaceTitle:m(e.workspace.workspaces,n.source)?.title??null,resolvedAgentName:n.agentName??(n.agentId?t[n.agentId]??null:null)}))}),Ae={total:0,completed:0,inProgress:0};function b(e){const t=ee(e.displayStatus)?e.displayStatus:"not_started";return te(t)??"not_started"}const G=new Set(["wait","blocked","failed"]);function he(e,t,n){if(t==="failed"){const i=n.find(d=>d.bucket==="failed"&&!h(e,d.id)),r=i?e.agentSessions?.byAgentId[i.id]?.stopReason:null;return{kind:"failed",text:typeof r=="string"&&r.length>0?r:""}}if(t!=="wait"&&t!=="blocked")return null;const s=n.filter(i=>i.topLevel&&!i.isBackground&&!h(e,i.id));for(const i of s){if(!i.hasQuestion)continue;const r=e.hud.questionsByAgentId[i.id];if(r?.question)return{kind:"question",text:r.question}}for(const i of["blocker","discussion"])for(const r of s){if(r.attentionKind!==i)continue;const d=e.agentSessions?.byAgentId[r.id],c=_(d)?.reason;if(c)return{kind:i,text:c}}return{kind:"pending",text:""}}const y=new Set(["running","needs-attention","failed"]);function H(e){const t=typeof e.lastActivity=="string"?Date.parse(e.lastActivity):NaN;return Number.isFinite(t)?t:-1/0}function me(e){const t=n=>{const s=e.get(n.id)?.bucket;return s!==void 0&&y.has(s)?0:1};return(n,s)=>{const i=n.specialist==="spec-writer",r=s.specialist==="spec-writer";if(i!==r)return i?-1:1;const d=t(n)-t(s);if(d!==0)return d;const c=H(n),o=H(s);return c!==o?o-c:n.id<s.id?-1:n.id>s.id?1:0}}function ye(e,t){const n=new Set(e.map(o=>o.id)),s=new Map,i=[];for(const o of e){const a=typeof o.parentAgentId=="string"&&o.parentAgentId!==o.id&&n.has(o.parentAgentId)?o.parentAgentId:null;if(a){const u=s.get(a)??[];u.push(o),s.set(a,u)}else i.push(o)}i.sort(t);for(const o of s.values())o.sort(t);const r=[],d=new Set,c=(o,a,u)=>{if(!d.has(o.id)){d.add(o.id),r.push({info:o,depth:a,parentAgentId:u});for(const g of s.get(o.id)??[])c(g,a+1,o.id)}};for(const o of i)c(o,0,null);for(const o of e)c(o,0,null);return r}function I(e,t){const n=e.agentSessions?.byAgentId[t.id],s=n?.metadata??{},i=n?_(n)?.kind??null:null,r=n?z.select(e,t.id)||typeof n.status=="string"&&W(n.status):W(t.status),d=n?M(typeof n.status=="string"?n.status:t.status):null,c=!!n&&d!=="failed"&&d!=="done"&&(n.isWaitingForOtherAgents===!0||Array.isArray(n.waitingForAgentIds)&&n.waitingForAgentIds.length>0||Array.isArray(n.waitingOnHooks)&&n.waitingOnHooks.length>0||Array.isArray(n.waitingOnPrMonitors)&&n.waitingOnPrMonitors.length>0||Array.isArray(n.waitingOnScriptMonitors)&&n.waitingOnScriptMonitors.length>0),o=!!n&&(n.turnInFlight===!0||n.liveTurnOpen===!0);let a;n?c&&!o&&n.isStreaming!==!0&&n.isProcessing!==!0?a="idle":J.select(e,t.id)?a="running":r?a="idle":a=M(typeof n.status=="string"?n.status:t.status):a=t.isResponding===!0||t.isStreaming===!0?"running":M(t.status);const u=e.hud.questionsByAgentId[t.id],g=a!=="failed"&&!!u&&!x(s,u.messageId);return{bucket:a==="failed"?"failed":i!==null||g?"needs-attention":a,attentionKind:i,hasQuestion:g,isRunning:a==="running"}}function V(e,t){const n=i=>typeof i=="string"&&i!==e.id?i:null,s=i=>({isBackground:i?.isBackground,createdByAgentId:n(i?.createdByAgentId)});return{parentAgentId:n(e.parentAgentId)??n(t?.parentAgentId),isBackground:e.isBackground??t?.isBackground,metadata:s(t?.metadata),agentMetadata:s(t?.agentMetadata)}}function h(e,t){return e.agentSessions?.byAgentId[t]?.notificationsMuted===!0}function Ie(e){if(!e)return null;switch(e.kind){case"attention":return e.attention.reason??null;case"live-tool":case"last-tool":{const t=Y(e.toolUse.name,e.toolUse.input||{});return t.hidden?null:[t.verb,t.subject,t.path].filter(Boolean).join(" ").trim()||null}default:{const t=e.text||"";return t?t.includes(`
|
|
2
|
+
`)?$(t)||null:t:null}}}function v(e,t){const n=w(e),s=new Map(n.map(r=>[r.id,I(t,r)]));return ye(n,me(s)).map(({info:r,depth:d,parentAgentId:c})=>{const o=t.agentSessions?.byAgentId[r.id],a=V(r,o),{bucket:u,attentionKind:g,hasQuestion:k}=s.get(r.id)??I(t,r),f=Array.isArray(o?.waitingForAgentIds)?o.waitingForAgentIds.filter(p=>typeof p=="string"):[];return{id:r.id,name:r.name,bucket:u,lastActivityTs:r.lastActivity??null,line:Ie(X.select(t,r.id)),parentAgentId:c,depth:d,treePrefix:"",topLevel:K(a)==="topLevel",isBackground:ne(a),attentionKind:g,hasQuestion:k,isWaitingForAgents:o?.isWaitingForOtherAgents===!0||f.length>0||Array.isArray(o?.waitingOnHooks)&&o.waitingOnHooks.length>0||Array.isArray(o?.waitingOnPrMonitors)&&o.waitingOnPrMonitors.length>0||Array.isArray(o?.waitingOnScriptMonitors)&&o.waitingOnScriptMonitors.length>0,waitingForAgentIds:f}})}function we(e){const t=new Set;for(const i of e)for(const r of i.waitingForAgentIds)t.add(r);const n=i=>y.has(i.bucket)||i.isWaitingForAgents||t.has(i.id);return e.filter((i,r)=>{if(n(i))return!0;for(let d=r+1;d<e.length&&!(e[d].depth<=i.depth);d++)if(n(e[d]))return!0;return!1}).map((i,r,d)=>{if(i.depth===0)return{...i,treePrefix:""};let c=!0;for(let o=r+1;o<d.length&&!(d[o].depth<i.depth);o++)if(d[o].depth===i.depth){c=!1;break}return{...i,treePrefix:(i.depth>=2?"│ ":"")+(c?"└─":"├─")}})}const B=l.createSelector(e=>{const t=e.hud.attentionByWorkspaceId,n=re.select(e);return S.select(e).map(s=>{const i=String(s.id),r=n.indexOf(i),d=t[i]?.attention??(typeof s.attention=="string"&&F(s.attention)?s.attention:null),c=v(s,e),o=b(s),a=e.tokenUsage?.byWorkspaceId[i]?.totals,u=e.workspaceTasks?.byWorkspaceId[i]?.stats,g=typeof s.statusMessage=="string"&&s.statusMessage.trim().length>0?s.statusMessage:null;return{workspaceId:i,title:s.title,repoRef:s.repositoryName?`${s.repositoryOwner?`${s.repositoryOwner}/`:""}${s.repositoryName}`:s.branch,stateKey:o,attention:d,isUnread:d===se,isWaiting:s.waiting===!0,statusMessage:g,attentionSnippet:he(e,o,c),prNumber:typeof s.prNumber=="number"?s.prNumber:null,keySlot:r===-1?null:r,tasks:u?{total:u.total,completed:u.completed,inProgress:u.inProgress}:Ae,tokens:a?q(a):0,agents:we(c)}})}),R=4;function be(e,t,n){const s=e.agentSessions?.byAgentId[n.id];return!s||String(s.workspaceId)!==t||s.pendingDeleteAt||K(V(n,s))!=="topLevel"?!1:!h(e,n.id)}const ve=l.createSelector(e=>{const t={},n=e.hud.attentionByWorkspaceId;for(const s of S.select(e)){const i=String(s.id),r=new Map,d=(f,p)=>{const A=r.get(f)??[];A.includes(p)||A.push(p),r.set(f,A)},o=w(s).filter(f=>be(e,i,f));for(const f of o){const p=I(e,f);p.bucket==="failed"?d("failed",f.name):p.hasQuestion?d("question",f.name):p.attentionKind==="blocker"?d("blocker",f.name):p.attentionKind==="discussion"&&d("discussion",f.name),p.isRunning&&d("running",f.name)}const a=b(s);a==="failed"&&!r.has("failed")&&r.set("failed",[]),a==="blocked"&&!r.has("blocker")&&r.set("blocker",[]),a==="wait"&&!r.has("question")&&!r.has("blocker")&&!r.has("discussion")&&r.set("needs_input",[]);const u=n[i]?.attention??(typeof s.attention=="string"&&F(s.attention)?s.attention:null);u==="review_required"&&r.set("review",[]),u==="unread"&&r.set("unread",[]),s.activity==="agent_running"&&!r.has("running")&&r.set("running",[]);const g=oe.flatMap(f=>{const p=r.get(f);return p?[{category:f,count:Math.max(1,p.length),agentNames:p}]:[]});if(g.length===0)continue;const k=g.length>R;t[i]={agentCount:o.length,categories:g,visibleCategories:k?g.slice(0,R-1):g,hiddenCategoryCount:k?g.length-(R-1):0}}return t});l.createSelector(e=>{const t=e.hud.attentionByWorkspaceId;let n=0;for(const s of S.select(e)){let i=!1;for(const c of v(s,e))c.topLevel&&!c.isBackground&&!h(e,c.id)&&(c.bucket==="failed"||c.attentionKind!==null||c.hasQuestion)&&(n+=1,i=!0);const r=t[String(s.id)],d=r!==void 0&&P(r.attention);d&&(n+=1),G.has(b(s))&&!i&&!d&&(n+=1)}return n});function Te(e,t,n,s){const i=s.slice().sort((o,a)=>a.createdAt-o.createdAt);for(const o of i){const u=e.agentSessions?.byAgentId[o.agentId]?.metadata?.completionReport;if(typeof u=="string"&&u.trim().length>0)return u}const r=e.workspaceNotes?.byWorkspaceId[t]?.notes,d=r?m(r,n):void 0,c=d?.content||d?.contentPreview;return typeof c=="string"&&c.trim().length>0?c:null}const Je=l.createSelector((e,t)=>{const n=B.select(e).find(a=>a.workspaceId===t);if(!n)return null;const s=m(e.workspace.workspaces,t),i=s?v(s,e):[],r=new Map(i.map(a=>[a.id,a])),d=e.taskAgentAssociations?.byWorkspaceId[t]?.byNoteId??{},c=e.workspaceTasks?.byWorkspaceId[t],o=c?C(c.tasks).filter(a=>a.status!=="cancelled").map(a=>{const u=Object.values(d[a.id]??{});return{id:a.id,title:a.title,status:a.status,agents:u.map(g=>r.get(g.agentId)).filter(g=>!!g),report:a.status==="complete"?Te(e,t,a.id,u):null,...a.specLinked!==void 0?{specLinked:a.specLinked}:{},...a.dependsOn?{dependsOn:a.dependsOn}:{},...a.conflictsWith?{conflictsWith:a.conflictsWith}:{},...a.unmetDependsOn?{unmetDependsOn:a.unmetDependsOn}:{}}}):[];return{workspaceId:t,title:n.title,repoRef:n.repoRef,statusMessage:n.statusMessage,keySlot:n.keySlot,stats:n.tasks,tasks:o,activeAgents:i.filter(a=>y.has(a.bucket)),idleAgents:i.filter(a=>!y.has(a.bucket))}}),Oe=new Set(["failed","blocker","question","discussion","needs_input","review"]);function Me(e){for(const t of e?.categories??[])switch(t.category){case"failed":return"failure";case"blocker":return"blocker";case"question":return"question";case"review":return"review"}return"none"}const Re=3,Xe=l.createSelector((e,t="recent")=>{const n=B.select(e),s=ve.select(e),i=new Map(S.select(e).map(c=>[String(c.id),c])),r={action:[],unread:[],active:[]};for(const c of n){const o=i.get(c.workspaceId);if(!o||o.id===ie)continue;const a=e.hud.dockConversationAtByWorkspaceId[c.workspaceId];if(!E(a,e.hud.dockRecencyNow)&&!fe(a,e.hud.dockRecencyNow))continue;const u=s[c.workspaceId],g=u?.categories??[],k=g.some(T=>Oe.has(T.category)),f=c.isUnread,p=g.some(T=>T.category==="running"),A=k?"action":f?"unread":"active";r[A].push({workspace:o,badgeKind:Me(u),priorityGroup:A,isUnread:f,isRunning:p,isWaiting:c.isWaiting})}return[...r.action,...r.unread,...r.active].sort((c,o)=>e.hud.dockConversationAtByWorkspaceId[String(o.workspace.id)]-e.hud.dockConversationAtByWorkspaceId[String(c.workspace.id)]||String(c.workspace.id).localeCompare(String(o.workspace.id))).filter((c,o)=>{const a=o<Re||E(e.hud.dockConversationAtByWorkspaceId[String(c.workspace.id)],e.hud.dockRecencyNow);return t==="older"?!a:a})}),$e=l.createSelector(e=>e.hud.dockPlacement),Ye=l.createSelector(e=>e.hud.dockPlacementError),Ze=l.createSelector(e=>e.hud.dockFocusRequest),et=l.createSelector(e=>e.hud.dockCloseRequest),tt=l.createSelector(e=>e.hud.dockDragStartResult),nt=l.createSelector(e=>e.hud.dockResizeStartResult),st=l.createSelector(e=>({pending:e.hud.dockMachineSwitching,error:e.hud.dockMachineSwitchError})),ot=l.createSelector(e=>{const t=e.hud.dockEditorCompactRequest,n=e.dockConversation,s=n.workspaceId&&n.agentId?m(n.evidence,JSON.stringify([n.workspaceId,n.agentId])):null,i=!!n.nativeSpeech.activeId||!!s?.annotation||s?.clips.some(r=>r.status==="recording")||e.hardwareConsole.pttRecording||e.hardwareConsole.voiceTranscribing;return t&&!i&&e.hud.active&&t.conversationGeneration===n.generation&&t.authority===L(e)&&t.backendId===e.connections.windowBackendId&&t.workspaceId===e.dockConversation.workspaceId&&t.agentId===e.dockConversation.agentId?t:null});export{qe as A,Qe as B,ve as C,et as a,tt as b,ot as c,Ze as d,st as e,$e as f,Ye as g,Ne as h,de as i,nt as j,Xe as k,Ue as l,Ve as m,je as n,Ke as o,Fe as p,ze as q,Ee as r,De as s,Le as t,He as u,xe as v,Ge as w,Je as x,Pe as y,B as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as p}from"./
|
|
1
|
+
import{d as p}from"./DaqXt9wp.js";import{A as s,z as l}from"./wNJjv8Uj.js";import{selectScriptOutput as o,selectScriptById as f,selectCanReadScriptDefinition as m}from"./Bq3GMUqF.js";async function a(i,t,e,r=100){const n=s(o.select(i,t,e)).slice(-r);if(!t||!e)return n;const u=f.select(i,t,e);if(!m.select(i,t,u))return[];try{const c=l(await p.scripts.output(t,e,r));return c.length>0?c.slice(-r):n}catch{return n}}export{a as readScriptContextOutputLines};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b8 as te,aR as re,by as ne,ao as j,_ as H,ae as N,c0 as Ce,c5 as Oe,aG as se,bI as ae,bV as k,br as Ee,bH as L,aD as u,bs as oe,a5 as Pe,bA as Le,W as R,bn as ie,aA as g,aB as D,bo as Te,ay as ze,bS as Ne,c9 as z,be as Re,b$ as Fe,b_ as ke,bO as Ae}from"./CJxGDkBm.js";import{t as le,bo as m,bw as de,bp as ce,b as ue}from"./51_h0jm2.js";import{i as U}from"./PXCFrn2V.js";import{b as W,e as F}from"./CpPNoOk-.js";import{b as q}from"./NtFyWdpR.js";import{s as Be}from"./DxvSggY5.js";import{n as G,l as We,c as De}from"./BxwkoIbZ.js";import"./DKn1sQ32.js";import{a_ as Me}from"./CdOh_Fmv.js";function J(e,t,n=t){var o=new WeakSet;te(e,"input",async s=>{j&&e.type==="checkbox"&&H();var i=s?e.defaultValue:e.value;if(i=A(e)?B(i):i,n(i),N!==null&&o.add(N),await Ce(),i!==(i=t())){var f=e.selectionStart,c=e.selectionEnd,l=e.value.length;if(e.value=i??"",c!==null){var d=e.value.length;f===c&&c===l&&d>l?(e.selectionStart=d,e.selectionEnd=d):(e.selectionStart=f,e.selectionEnd=Math.min(c,d))}}}),(re&&e.defaultValue!==e.value||Oe(t)==null&&e.value)&&(n(A(e)?B(e.value):e.value),N!==null&&o.add(N)),ne(()=>{j&&e.type==="checkbox"&&H();var s=t();if(e===document.activeElement){var i=N;if(o.has(i))return}A(e)&&s===B(e.value)||e.type==="date"&&!s&&!e.value||s!==e.value&&(e.value=s??"")})}function A(e){var t=e.type;return t==="number"||t==="range"}function B(e){return e===""?null:+e}function Ve(e,t,n=t){te(e,"change",()=>{n(e.files)}),re&&e.files&&n(e.files),ne(()=>{e.files=t()})}const fe=Symbol("owned-popup-context"),ve=Symbol("owned-popup-close");function dt(e){ae(fe,e)}function Xe(){return se(fe)}function ct(e){ae(ve,e)}function Ye(){return se(ve)}function ut(e){const t=Xe(),n=e??Ye();return o=>({destroy:t?.register(o,n)})}function K(e,t,n){const o=t+n;return e<t?t-e:e>o?e-o:0}function je(e,t,n="y"){let o=null,s=Number.POSITIVE_INFINITY;for(let i=0;i<t.length;i+=1){const f=t[i];if(!f)continue;const c=K(e.x,f.left,f.width),l=K(e.y,f.top,f.height),d=n==="x"?c:n==="y"?l:Math.hypot(c,l);d<s&&(o=i,s=d)}return o}function ft(e,t={}){const n=t.axis??"y",o=new Map;let s=k(null),i=k(Ee([])),f=k(null),c=k(0),l;const d=()=>{u(f)&&L(s,je(u(f),u(i),n),!0)},p=b=>{const a=getComputedStyle(e),v=P=>Number.parseFloat(P)||0,_=a.boxSizing==="border-box",w=Number.parseFloat(a.width)+(_?0:v(a.paddingLeft)+v(a.paddingRight)+v(a.borderLeftWidth)+v(a.borderRightWidth)),E=Number.parseFloat(a.height)+(_?0:v(a.paddingTop)+v(a.paddingBottom)+v(a.borderTopWidth)+v(a.borderBottomWidth)),y=P=>Math.abs(P-1)<.001?1:P;return{x:y(w>0&&b.width/w||1),y:y(E>0&&b.height/E||1)}},S=()=>{const b=e.getBoundingClientRect(),{x:a,y:v}=p(b),_=[];for(const[w,E]of o){const y=E.getBoundingClientRect();_[w]={top:(y.top-b.top)/v-e.clientTop+e.scrollTop,left:(y.left-b.left)/a-e.clientLeft+e.scrollLeft,width:y.width/a,height:y.height/v}}L(i,_,!0),d()},I=typeof ResizeObserver>"u"?void 0:new ResizeObserver(()=>{S()});I?.observe(e);const C=()=>{L(c,u(c)+1)},O=b=>{const a=e.getBoundingClientRect(),{x:v,y:_}=p(a);L(f,{x:(b.clientX-a.left)/v-e.clientLeft+e.scrollLeft,y:(b.clientY-a.top)/_-e.clientTop+e.scrollTop},!0),l!==void 0&&cancelAnimationFrame(l),l=requestAnimationFrame(()=>{l=void 0,d()})},T=()=>{l!==void 0&&cancelAnimationFrame(l),l=void 0,L(f,null),L(s,null)};return e.addEventListener("pointerenter",C),e.addEventListener("pointermove",O),e.addEventListener("pointerleave",T),{get activeIndex(){return u(s)},get itemRects(){return u(i)},get pointerPosition(){return u(f)},get sessionId(){return u(c)},measure:S,setActiveIndex(b){L(s,b,!0)},registerItem(b,a){const v=o.get(b);v&&I?.unobserve?.(v),a?(o.set(b,a),I?.observe(a)):o.delete(b),S()},destroy(){l!==void 0&&cancelAnimationFrame(l),I?.disconnect(),e.removeEventListener("pointerenter",C),e.removeEventListener("pointermove",O),e.removeEventListener("pointerleave",T)}}}const vt=(e,t)=>{let n=t;return n.hover.registerItem(n.index,e),{update(o){(o.hover!==n.hover||o.index!==n.index)&&(n.hover.registerItem(n.index,null),o.hover.registerItem(o.index,e)),n=o},destroy(){n.hover.registerItem(n.index,null)}}},bt="p-1",gt="type-caption min-h-(--control-height-small) justify-start rounded-(--radius-row) px-2 py-1 text-left font-normal",mt="ml-auto first-line-icon w-(--menu-icon-size)";var He=new Set(["$$slots","$$events","$$legacy","tone","children","class"]),Ue=D("<p><!></p>");function be(e,t){if(new.target)return le({component:be,...e});oe(t,!0);let n=m(t,"tone",7,"helper"),o=m(t,"children",7),s=m(t,"class",7),i=ce(t,He);var f={get tone(){return n()},set tone(d="helper"){n(d),g()},get children(){return o()},set children(d){o(d),g()},get class(){return s()},set class(d){s(d),g()},$set:de,$on:(d,p)=>ue(t,d,p)},c=Ue();W(c,d=>({"data-slot":"input-message","data-tone":n(),role:n()==="error"?"alert":void 0,"aria-live":n()==="helper"?"polite":void 0,class:d,...i}),[()=>F("type-caption mt-1.5 pl-0.5 motion-reduce:transition-none",n()==="error"?"text-danger":"text-muted-foreground",s())]);var l=Pe(c);return Be(l,o),Le(c),G(1,c,()=>We,()=>({tier:"fast",y:-2,scale:1})),G(2,c,()=>De,()=>({tier:"fast"})),R(e,c),ie(f)}const ge="data-[state=hover]:bg-hover",Q=`border-border bg-transparent shadow-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover ${ge} read-only:text-muted-foreground disabled:cursor-not-allowed disabled:bg-transparent disabled:opacity-60 disabled:hover:bg-transparent aria-invalid:border-danger motion-reduce:transition-none`,ht=`border-border bg-transparent shadow-none outline-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover focus-within:outline-none focus-within:ring-0 ${ge} data-[disabled=true]:pointer-events-none data-[disabled=true]:bg-transparent data-[disabled=true]:opacity-60 data-[disabled=true]:hover:bg-transparent data-[invalid=true]:border-danger motion-reduce:transition-none`,Z="focus-visible:!bg-transparent focus-visible:!shadow-none focus-visible:outline-none",qe="h-auto min-h-0 min-w-0 w-full rounded-none border-0 bg-transparent p-0 text-inherit placeholder:text-inherit! shadow-none outline-none ring-0 hover:bg-transparent focus-visible:bg-transparent focus-visible:shadow-none focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-60 aria-invalid:ring-1 aria-invalid:ring-danger",Ge="focus-visible:outline-none focus-visible:shadow-none";function $(e){return e==="compact"?"h-(--control-height-small)":"h-(--control-height-medium)"}const Je="type-caption h-9 w-full min-w-0 rounded-(--radius-medium) border-0 bg-transparent px-3 text-foreground placeholder:text-muted-foreground/60! shadow-none outline-none ring-0 hover:bg-transparent focus-visible:bg-transparent focus-visible:shadow-none focus-visible:outline-none focus-visible:ring-0 disabled:cursor-not-allowed disabled:opacity-60 aria-invalid:ring-1 aria-invalid:ring-danger";var Ke=new Set(["$$slots","$$events","$$legacy","ref","id","value","type","size","files","variant","noFocusStyle","message","error","messageId","aria-describedby","aria-invalid","class","data-slot"]),ee=D("<input/>"),Qe=D("<!> <!>",1);function Ze(e,t){const n=Te();if(new.target)return le({component:Ze,...e});oe(t,!0);const o=Me();let s=m(t,"ref",15),i=m(t,"id",7),f=m(t,"value",15),c=m(t,"type",7),l=m(t,"size",7),d=m(t,"files",15),p=m(t,"variant",7,"default"),S=m(t,"noFocusStyle",7,!1),I=m(t,"message",7),C=m(t,"error",7),O=m(t,"messageId",23,()=>`${n}-message`),T=m(t,"aria-describedby",7),b=m(t,"aria-invalid",7),a=m(t,"class",7),v=m(t,"data-slot",7,"input"),_=ce(t,Ke);const w=z(()=>typeof l()=="string"?l():o),E=z(()=>typeof l()=="number"?l():void 0),y=z(()=>C()??I()),P=z(()=>[T(),u(y)?O():void 0].filter(Boolean).join(" ")||void 0),M=z(()=>C()?!0:b());function me(){s()?.focus()}function he(){s()?.blur()}function pe(){s()?.select()}function ye(r,h,x){s()?.setSelectionRange(r,h,x)}var xe={focus:me,blur:he,select:pe,setSelectionRange:ye,get ref(){return s()},set ref(r){s(r),g()},get id(){return i()},set id(r){i(r),g()},get value(){return f()},set value(r){f(r),g()},get type(){return c()},set type(r){c(r),g()},get size(){return l()},set size(r){l(r),g()},get files(){return d()},set files(r){d(r),g()},get variant(){return p()},set variant(r="default"){p(r),g()},get noFocusStyle(){return S()},set noFocusStyle(r=!1){S(r),g()},get message(){return I()},set message(r){I(r),g()},get error(){return C()},set error(r){C(r),g()},get messageId(){return O()},set messageId(r=`${n}-message`){O(r),g()},get"aria-describedby"(){return T()},set"aria-describedby"(r){T(r),g()},get"aria-invalid"(){return b()},set"aria-invalid"(r){b(r),g()},get class(){return a()},set class(r){a(r),g()},get"data-slot"(){return v()},set"data-slot"(r="input"){v(r),g()},$set:de,$on:(r,h)=>ue(t,r,h)},V=Qe(),X=ze(V);{var _e=r=>{var h=ee();W(h,x=>({id:i(),"data-slot":v(),"data-size":u(w),class:x,type:"file",size:u(E),"aria-describedby":u(P),"aria-invalid":u(M),..._}),[()=>F("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 file:mr-3 file:border-0 file:bg-transparent file:font-medium file:text-foreground",Q,"focus-visible:-outline-offset-2",$(u(w)),S()&&Z,a())],void 0,void 0,void 0,!0),q(h,x=>s(x),()=>s()),Ve(h,d),J(h,f),R(r,h)},we=r=>{var h=ee();W(h,x=>({id:i(),"data-slot":v(),"data-size":u(w),"data-variant":p()==="default"?void 0:p(),class:x,type:c(),size:u(E),"aria-describedby":u(P),"aria-invalid":u(M),autocorrect:"off",autocapitalize:"off",spellcheck:"false",..._}),[()=>p()==="inline"?F("selection:bg-primary selection:text-primary-foreground",qe,a()):p()==="search"?F("flex selection:bg-primary selection:text-primary-foreground",Je,a()):F("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 py-1",Q,Ge,$(u(w)),S()&&Z,a())],void 0,void 0,void 0,!0),q(h,x=>s(x),()=>s()),J(h,f),R(r,h)};U(X,r=>{c()==="file"?r(_e):r(we,-1)})}var Se=Ne(X,2);{var Ie=r=>{{let h=z(()=>C()?"error":"helper");be(r,{get id(){return O()},get tone(){return u(h)},children:(x,$e)=>{Re();var Y=Fe();ke(()=>Ae(Y,u(y))),R(x,Y)},$$slots:{default:!0}})}};U(Se,r=>{u(y)&&r(Ie)})}return R(e,V),ie(xe)}export{Ze as I,bt as O,be as a,mt as b,gt as c,Ve as d,J as e,ut as f,ft as g,Ye as h,Xe as i,dt as j,Q as k,Z as l,ht as m,$ as n,qe as o,vt as p,Je as q,ct as s,Ge as t};
|
|
1
|
+
import{b8 as te,aR as re,by as ne,ao as j,_ as H,ae as N,c0 as Ce,c5 as Oe,aG as se,bI as ae,bV as k,br as Ee,bH as L,aD as u,bs as oe,a5 as Pe,bA as Le,W as R,bn as ie,aA as g,aB as D,bo as Te,ay as ze,bS as Ne,c9 as z,be as Re,b$ as Fe,b_ as ke,bO as Ae}from"./CJxGDkBm.js";import{t as le,bo as m,bw as de,bp as ce,b as ue}from"./51_h0jm2.js";import{i as U}from"./PXCFrn2V.js";import{b as W,e as F}from"./CpPNoOk-.js";import{b as q}from"./NtFyWdpR.js";import{s as Be}from"./DxvSggY5.js";import{n as G,l as We,c as De}from"./BxwkoIbZ.js";import"./DKn1sQ32.js";import{a_ as Me}from"./BnA9v3pc.js";function J(e,t,n=t){var o=new WeakSet;te(e,"input",async s=>{j&&e.type==="checkbox"&&H();var i=s?e.defaultValue:e.value;if(i=A(e)?B(i):i,n(i),N!==null&&o.add(N),await Ce(),i!==(i=t())){var f=e.selectionStart,c=e.selectionEnd,l=e.value.length;if(e.value=i??"",c!==null){var d=e.value.length;f===c&&c===l&&d>l?(e.selectionStart=d,e.selectionEnd=d):(e.selectionStart=f,e.selectionEnd=Math.min(c,d))}}}),(re&&e.defaultValue!==e.value||Oe(t)==null&&e.value)&&(n(A(e)?B(e.value):e.value),N!==null&&o.add(N)),ne(()=>{j&&e.type==="checkbox"&&H();var s=t();if(e===document.activeElement){var i=N;if(o.has(i))return}A(e)&&s===B(e.value)||e.type==="date"&&!s&&!e.value||s!==e.value&&(e.value=s??"")})}function A(e){var t=e.type;return t==="number"||t==="range"}function B(e){return e===""?null:+e}function Ve(e,t,n=t){te(e,"change",()=>{n(e.files)}),re&&e.files&&n(e.files),ne(()=>{e.files=t()})}const fe=Symbol("owned-popup-context"),ve=Symbol("owned-popup-close");function dt(e){ae(fe,e)}function Xe(){return se(fe)}function ct(e){ae(ve,e)}function Ye(){return se(ve)}function ut(e){const t=Xe(),n=e??Ye();return o=>({destroy:t?.register(o,n)})}function K(e,t,n){const o=t+n;return e<t?t-e:e>o?e-o:0}function je(e,t,n="y"){let o=null,s=Number.POSITIVE_INFINITY;for(let i=0;i<t.length;i+=1){const f=t[i];if(!f)continue;const c=K(e.x,f.left,f.width),l=K(e.y,f.top,f.height),d=n==="x"?c:n==="y"?l:Math.hypot(c,l);d<s&&(o=i,s=d)}return o}function ft(e,t={}){const n=t.axis??"y",o=new Map;let s=k(null),i=k(Ee([])),f=k(null),c=k(0),l;const d=()=>{u(f)&&L(s,je(u(f),u(i),n),!0)},p=b=>{const a=getComputedStyle(e),v=P=>Number.parseFloat(P)||0,_=a.boxSizing==="border-box",w=Number.parseFloat(a.width)+(_?0:v(a.paddingLeft)+v(a.paddingRight)+v(a.borderLeftWidth)+v(a.borderRightWidth)),E=Number.parseFloat(a.height)+(_?0:v(a.paddingTop)+v(a.paddingBottom)+v(a.borderTopWidth)+v(a.borderBottomWidth)),y=P=>Math.abs(P-1)<.001?1:P;return{x:y(w>0&&b.width/w||1),y:y(E>0&&b.height/E||1)}},S=()=>{const b=e.getBoundingClientRect(),{x:a,y:v}=p(b),_=[];for(const[w,E]of o){const y=E.getBoundingClientRect();_[w]={top:(y.top-b.top)/v-e.clientTop+e.scrollTop,left:(y.left-b.left)/a-e.clientLeft+e.scrollLeft,width:y.width/a,height:y.height/v}}L(i,_,!0),d()},I=typeof ResizeObserver>"u"?void 0:new ResizeObserver(()=>{S()});I?.observe(e);const C=()=>{L(c,u(c)+1)},O=b=>{const a=e.getBoundingClientRect(),{x:v,y:_}=p(a);L(f,{x:(b.clientX-a.left)/v-e.clientLeft+e.scrollLeft,y:(b.clientY-a.top)/_-e.clientTop+e.scrollTop},!0),l!==void 0&&cancelAnimationFrame(l),l=requestAnimationFrame(()=>{l=void 0,d()})},T=()=>{l!==void 0&&cancelAnimationFrame(l),l=void 0,L(f,null),L(s,null)};return e.addEventListener("pointerenter",C),e.addEventListener("pointermove",O),e.addEventListener("pointerleave",T),{get activeIndex(){return u(s)},get itemRects(){return u(i)},get pointerPosition(){return u(f)},get sessionId(){return u(c)},measure:S,setActiveIndex(b){L(s,b,!0)},registerItem(b,a){const v=o.get(b);v&&I?.unobserve?.(v),a?(o.set(b,a),I?.observe(a)):o.delete(b),S()},destroy(){l!==void 0&&cancelAnimationFrame(l),I?.disconnect(),e.removeEventListener("pointerenter",C),e.removeEventListener("pointermove",O),e.removeEventListener("pointerleave",T)}}}const vt=(e,t)=>{let n=t;return n.hover.registerItem(n.index,e),{update(o){(o.hover!==n.hover||o.index!==n.index)&&(n.hover.registerItem(n.index,null),o.hover.registerItem(o.index,e)),n=o},destroy(){n.hover.registerItem(n.index,null)}}},bt="p-1",gt="type-caption min-h-(--control-height-small) justify-start rounded-(--radius-row) px-2 py-1 text-left font-normal",mt="ml-auto first-line-icon w-(--menu-icon-size)";var He=new Set(["$$slots","$$events","$$legacy","tone","children","class"]),Ue=D("<p><!></p>");function be(e,t){if(new.target)return le({component:be,...e});oe(t,!0);let n=m(t,"tone",7,"helper"),o=m(t,"children",7),s=m(t,"class",7),i=ce(t,He);var f={get tone(){return n()},set tone(d="helper"){n(d),g()},get children(){return o()},set children(d){o(d),g()},get class(){return s()},set class(d){s(d),g()},$set:de,$on:(d,p)=>ue(t,d,p)},c=Ue();W(c,d=>({"data-slot":"input-message","data-tone":n(),role:n()==="error"?"alert":void 0,"aria-live":n()==="helper"?"polite":void 0,class:d,...i}),[()=>F("type-caption mt-1.5 pl-0.5 motion-reduce:transition-none",n()==="error"?"text-danger":"text-muted-foreground",s())]);var l=Pe(c);return Be(l,o),Le(c),G(1,c,()=>We,()=>({tier:"fast",y:-2,scale:1})),G(2,c,()=>De,()=>({tier:"fast"})),R(e,c),ie(f)}const ge="data-[state=hover]:bg-hover",Q=`border-border bg-transparent shadow-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover ${ge} read-only:text-muted-foreground disabled:cursor-not-allowed disabled:bg-transparent disabled:opacity-60 disabled:hover:bg-transparent aria-invalid:border-danger motion-reduce:transition-none`,ht=`border-border bg-transparent shadow-none outline-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover focus-within:outline-none focus-within:ring-0 ${ge} data-[disabled=true]:pointer-events-none data-[disabled=true]:bg-transparent data-[disabled=true]:opacity-60 data-[disabled=true]:hover:bg-transparent data-[invalid=true]:border-danger motion-reduce:transition-none`,Z="focus-visible:!bg-transparent focus-visible:!shadow-none focus-visible:outline-none",qe="h-auto min-h-0 min-w-0 w-full rounded-none border-0 bg-transparent p-0 text-inherit placeholder:text-inherit! shadow-none outline-none ring-0 hover:bg-transparent focus-visible:bg-transparent focus-visible:shadow-none focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-60 aria-invalid:ring-1 aria-invalid:ring-danger",Ge="focus-visible:outline-none focus-visible:shadow-none";function $(e){return e==="compact"?"h-(--control-height-small)":"h-(--control-height-medium)"}const Je="type-caption h-9 w-full min-w-0 rounded-(--radius-medium) border-0 bg-transparent px-3 text-foreground placeholder:text-muted-foreground/60! shadow-none outline-none ring-0 hover:bg-transparent focus-visible:bg-transparent focus-visible:shadow-none focus-visible:outline-none focus-visible:ring-0 disabled:cursor-not-allowed disabled:opacity-60 aria-invalid:ring-1 aria-invalid:ring-danger";var Ke=new Set(["$$slots","$$events","$$legacy","ref","id","value","type","size","files","variant","noFocusStyle","message","error","messageId","aria-describedby","aria-invalid","class","data-slot"]),ee=D("<input/>"),Qe=D("<!> <!>",1);function Ze(e,t){const n=Te();if(new.target)return le({component:Ze,...e});oe(t,!0);const o=Me();let s=m(t,"ref",15),i=m(t,"id",7),f=m(t,"value",15),c=m(t,"type",7),l=m(t,"size",7),d=m(t,"files",15),p=m(t,"variant",7,"default"),S=m(t,"noFocusStyle",7,!1),I=m(t,"message",7),C=m(t,"error",7),O=m(t,"messageId",23,()=>`${n}-message`),T=m(t,"aria-describedby",7),b=m(t,"aria-invalid",7),a=m(t,"class",7),v=m(t,"data-slot",7,"input"),_=ce(t,Ke);const w=z(()=>typeof l()=="string"?l():o),E=z(()=>typeof l()=="number"?l():void 0),y=z(()=>C()??I()),P=z(()=>[T(),u(y)?O():void 0].filter(Boolean).join(" ")||void 0),M=z(()=>C()?!0:b());function me(){s()?.focus()}function he(){s()?.blur()}function pe(){s()?.select()}function ye(r,h,x){s()?.setSelectionRange(r,h,x)}var xe={focus:me,blur:he,select:pe,setSelectionRange:ye,get ref(){return s()},set ref(r){s(r),g()},get id(){return i()},set id(r){i(r),g()},get value(){return f()},set value(r){f(r),g()},get type(){return c()},set type(r){c(r),g()},get size(){return l()},set size(r){l(r),g()},get files(){return d()},set files(r){d(r),g()},get variant(){return p()},set variant(r="default"){p(r),g()},get noFocusStyle(){return S()},set noFocusStyle(r=!1){S(r),g()},get message(){return I()},set message(r){I(r),g()},get error(){return C()},set error(r){C(r),g()},get messageId(){return O()},set messageId(r=`${n}-message`){O(r),g()},get"aria-describedby"(){return T()},set"aria-describedby"(r){T(r),g()},get"aria-invalid"(){return b()},set"aria-invalid"(r){b(r),g()},get class(){return a()},set class(r){a(r),g()},get"data-slot"(){return v()},set"data-slot"(r="input"){v(r),g()},$set:de,$on:(r,h)=>ue(t,r,h)},V=Qe(),X=ze(V);{var _e=r=>{var h=ee();W(h,x=>({id:i(),"data-slot":v(),"data-size":u(w),class:x,type:"file",size:u(E),"aria-describedby":u(P),"aria-invalid":u(M),..._}),[()=>F("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 file:mr-3 file:border-0 file:bg-transparent file:font-medium file:text-foreground",Q,"focus-visible:-outline-offset-2",$(u(w)),S()&&Z,a())],void 0,void 0,void 0,!0),q(h,x=>s(x),()=>s()),Ve(h,d),J(h,f),R(r,h)},we=r=>{var h=ee();W(h,x=>({id:i(),"data-slot":v(),"data-size":u(w),"data-variant":p()==="default"?void 0:p(),class:x,type:c(),size:u(E),"aria-describedby":u(P),"aria-invalid":u(M),autocorrect:"off",autocapitalize:"off",spellcheck:"false",..._}),[()=>p()==="inline"?F("selection:bg-primary selection:text-primary-foreground",qe,a()):p()==="search"?F("flex selection:bg-primary selection:text-primary-foreground",Je,a()):F("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 py-1",Q,Ge,$(u(w)),S()&&Z,a())],void 0,void 0,void 0,!0),q(h,x=>s(x),()=>s()),J(h,f),R(r,h)};U(X,r=>{c()==="file"?r(_e):r(we,-1)})}var Se=Ne(X,2);{var Ie=r=>{{let h=z(()=>C()?"error":"helper");be(r,{get id(){return O()},get tone(){return u(h)},children:(x,$e)=>{Re();var Y=Fe();ke(()=>Ae(Y,u(y))),R(x,Y)},$$slots:{default:!0}})}};U(Se,r=>{u(y)&&r(Ie)})}return R(e,V),ie(xe)}export{Ze as I,bt as O,be as a,mt as b,gt as c,Ve as d,J as e,ut as f,ft as g,Ye as h,Xe as i,dt as j,Q as k,Z as l,ht as m,$ as n,qe as o,vt as p,Je as q,ct as s,Ge as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Jt}from"./
|
|
1
|
+
import{g as Jt}from"./37RwnxdA.js";import{g as Zt}from"./qOqJpb_a.js";import{s as $t}from"./Dqa8MqiX.js";import{b as C,a$ as e1,ay as Z,X as Ae,a1 as t1,aP as s1,bh as at,a_ as i1,aZ as r1,b0 as a1,V as n1,U as u1,Y as o1,z as l1,ax as c1,J as h1,aq as st,as as d1,$ as it,aW as rt,r as p1,a2 as f1,N as g1,am as b1,aU as k1,ab as A1,x as m1,aT as C1,p as S1}from"./mPd0q3-n.js";import{c as D1}from"./DnfgukfK.js";import{aR as T1}from"./CmdzVgvT.js";var E1="flowchart-",y1=["laneRole","laneIndex","drawnExtent"];function Wt(s){if(!s||typeof s!="object")return s;const i={...s};for(const a of y1)Reflect.deleteProperty(i,a);return i}C(Wt,"withoutInternalKeys");var Pe,x1=(Pe=class{constructor(){this.vertexCounter=0,this.config=Ae(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.droppedSubGraphMembers=[],this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=i1,this.setAccDescription=r1,this.setDiagramTitle=a1,this.getAccTitle=n1,this.getAccDescription=u1,this.getDiagramTitle=o1,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return l1.sanitizeText(i,this.config)}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}setDiagramId(i){this.diagramId=i}lookUpDomId(i){for(const a of this.vertices.values())if(a.id===i)return this.diagramId?`${this.diagramId}-${a.domId}`:a.domId;return this.diagramId?`${this.diagramId}-${i}`:i}addVertex(i,a,n,r,l,g,o={},m){if(!i||i.trim().length===0)return;let d;if(m!==void 0){let f;m.includes(`
|
|
2
2
|
`)?f=m+`
|
|
3
3
|
`:f=`{
|
|
4
4
|
`+m+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{U as be,aZ as we,Y as _e,b0 as De,V as Se,a_ as Ce,b as l,X as dt,aW as vt,B as Me,L as U,ay as st,z as Ee,P as Ie,r as $e,bh as Ye}from"./CUNx-_2d.js";import{g as It}from"./BdWqymET.js";import{t as Ae,d as Fe,m as Le,l as Oe,h as We,g as Zt,p as Qt,u as Pe,q as Ve,i as ze,v as Re,x as Ne,w as He,n as Be,e as Kt,j as Jt,k as te,s as ee,a as re}from"./C_E26DWe.js";function qe(t){return t}var Tt=1,Yt=2,Ft=3,xt=4,se=1e-6;function Ge(t){return"translate("+t+",0)"}function Xe(t){return"translate(0,"+t+")"}function je(t){return e=>+t(e)}function Ue(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),s=>+t(s)+e}function Ze(){return!this.__axis}function de(t,e){var s=[],r=null,i=null,g=6,y=6,b=3,S=typeof window<"u"&&window.devicePixelRatio>1?0:.5,L=t===Tt||t===xt?-1:1,_=t===xt||t===Yt?"x":"y",W=t===Tt||t===Ft?Ge:Xe;function w(D){var N=r??(e.ticks?e.ticks.apply(e,s):e.domain()),V=i??(e.tickFormat?e.tickFormat.apply(e,s):qe),k=Math.max(g,0)+b,M=e.range(),P=+M[0]+S,O=+M[M.length-1]+S,B=(e.bandwidth?Ue:je)(e.copy(),S),H=D.selection?D.selection():D,I=H.selectAll(".domain").data([null]),x=H.selectAll(".tick").data(N,e).order(),h=x.exit(),E=x.enter().append("g").attr("class","tick"),f=x.select("line"),T=x.select("text");I=I.merge(I.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),x=x.merge(E),f=f.merge(E.append("line").attr("stroke","currentColor").attr(_+"2",L*g)),T=T.merge(E.append("text").attr("fill","currentColor").attr(_,L*k).attr("dy",t===Tt?"0em":t===Ft?"0.71em":"0.32em")),D!==H&&(I=I.transition(D),x=x.transition(D),f=f.transition(D),T=T.transition(D),h=h.transition(D).attr("opacity",se).attr("transform",function(v){return isFinite(v=B(v))?W(v+S):this.getAttribute("transform")}),E.attr("opacity",se).attr("transform",function(v){var p=this.parentNode.__axis;return W((p&&isFinite(p=p(v))?p:B(v))+S)})),h.remove(),I.attr("d",t===xt||t===Yt?y?"M"+L*y+","+P+"H"+S+"V"+O+"H"+L*y:"M"+S+","+P+"V"+O:y?"M"+P+","+L*y+"V"+S+"H"+O+"V"+L*y:"M"+P+","+S+"H"+O),x.attr("opacity",1).attr("transform",function(v){return W(B(v)+S)}),f.attr(_+"2",L*g),T.attr(_,L*k).text(V),H.filter(Ze).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Yt?"start":t===xt?"end":"middle"),H.each(function(){this.__axis=B})}return w.scale=function(D){return arguments.length?(e=D,w):e},w.ticks=function(){return s=Array.from(arguments),w},w.tickArguments=function(D){return arguments.length?(s=D==null?[]:Array.from(D),w):s.slice()},w.tickValues=function(D){return arguments.length?(r=D==null?null:Array.from(D),w):r&&r.slice()},w.tickFormat=function(D){return arguments.length?(i=D,w):i},w.tickSize=function(D){return arguments.length?(g=y=+D,w):g},w.tickSizeInner=function(D){return arguments.length?(g=+D,w):g},w.tickSizeOuter=function(D){return arguments.length?(y=+D,w):y},w.tickPadding=function(D){return arguments.length?(b=+D,w):b},w.offset=function(D){return arguments.length?(S=+D,w):S},w}function Qe(t){return de(Tt,t)}function Ke(t){return de(Ft,t)}var bt={exports:{}},Je=bt.exports,ne;function tr(){return ne||(ne=1,(function(t,e){(function(s,r){t.exports=r()})(Je,(function(){var s="day";return function(r,i,g){var y=function(L){return L.add(4-L.isoWeekday(),s)},b=i.prototype;b.isoWeekYear=function(){return y(this).year()},b.isoWeek=function(L){if(!this.$utils().u(L))return this.add(7*(L-this.isoWeek()),s);var _,W,w,D,N=y(this),V=(_=this.isoWeekYear(),W=this.$u,w=(W?g.utc:g)().year(_).startOf("year"),D=4-w.isoWeekday(),w.isoWeekday()>4&&(D+=7),w.add(D,s));return N.diff(V,"week")+1},b.isoWeekday=function(L){return this.$utils().u(L)?this.day()||7:this.day(this.day()%7?L:L-7)};var S=b.startOf;b.startOf=function(L,_){var W=this.$utils(),w=!!W.u(_)||_;return W.p(L)==="isoweek"?w?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):S.bind(this)(L,_)}}}))})(bt)),bt.exports}var er=tr();const rr=It(er);var wt={exports:{}},sr=wt.exports,ie;function nr(){return ie||(ie=1,(function(t,e){(function(s,r){t.exports=r()})(sr,(function(){var s={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,g=/\d\d/,y=/\d\d?/,b=/\d*[^-_:/,()\s\d]+/,S={},L=function(k){return(k=+k)+(k>68?1900:2e3)},_=function(k){return function(M){this[k]=+M}},W=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=(function(M){if(!M||M==="Z")return 0;var P=M.match(/([+-]|\d\d)/g),O=60*P[1]+(+P[2]||0);return O===0?0:P[0]==="+"?-O:O})(k)}],w=function(k){var M=S[k];return M&&(M.indexOf?M:M.s.concat(M.f))},D=function(k,M){var P,O=S.meridiem;if(O){for(var B=1;B<=24;B+=1)if(k.indexOf(O(B,0,M))>-1){P=B>12;break}}else P=k===(M?"pm":"PM");return P},N={A:[b,function(k){this.afternoon=D(k,!1)}],a:[b,function(k){this.afternoon=D(k,!0)}],Q:[i,function(k){this.month=3*(k-1)+1}],S:[i,function(k){this.milliseconds=100*+k}],SS:[g,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],s:[y,_("seconds")],ss:[y,_("seconds")],m:[y,_("minutes")],mm:[y,_("minutes")],H:[y,_("hours")],h:[y,_("hours")],HH:[y,_("hours")],hh:[y,_("hours")],D:[y,_("day")],DD:[g,_("day")],Do:[b,function(k){var M=S.ordinal,P=k.match(/\d+/);if(this.day=P[0],M)for(var O=1;O<=31;O+=1)M(O).replace(/\[|\]/g,"")===k&&(this.day=O)}],w:[y,_("week")],ww:[g,_("week")],M:[y,_("month")],MM:[g,_("month")],MMM:[b,function(k){var M=w("months"),P=(w("monthsShort")||M.map((function(O){return O.slice(0,3)}))).indexOf(k)+1;if(P<1)throw new Error;this.month=P%12||P}],MMMM:[b,function(k){var M=w("months").indexOf(k)+1;if(M<1)throw new Error;this.month=M%12||M}],Y:[/[+-]?\d+/,_("year")],YY:[g,function(k){this.year=L(k)}],YYYY:[/\d{4}/,_("year")],Z:W,ZZ:W};function V(k){var M,P;M=k,P=S&&S.formats;for(var O=(k=M.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(f,T,v){var p=v&&v.toUpperCase();return T||P[v]||s[v]||P[p].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(a,d,m){return d||m.slice(1)}))}))).match(r),B=O.length,H=0;H<B;H+=1){var I=O[H],x=N[I],h=x&&x[0],E=x&&x[1];O[H]=E?{regex:h,parser:E}:I.replace(/^\[|\]$/g,"")}return function(f){for(var T={},v=0,p=0;v<B;v+=1){var a=O[v];if(typeof a=="string")p+=a.length;else{var d=a.regex,m=a.parser,u=f.slice(p),C=d.exec(u)[0];m.call(T,C),f=f.replace(C,"")}}return(function(n){var $=n.afternoon;if($!==void 0){var o=n.hours;$?o<12&&(n.hours+=12):o===12&&(n.hours=0),delete n.afternoon}})(T),T}}return function(k,M,P){P.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(L=k.parseTwoDigitYear);var O=M.prototype,B=O.parse;O.parse=function(H){var I=H.date,x=H.utc,h=H.args;this.$u=x;var E=h[1];if(typeof E=="string"){var f=h[2]===!0,T=h[3]===!0,v=f||T,p=h[2];T&&(p=h[2]),S=this.$locale(),!f&&p&&(S=P.Ls[p]),this.$d=(function(u,C,n,$){try{if(["x","X"].indexOf(C)>-1)return new Date((C==="X"?1e3:1)*u);var o=V(C)(u),G=o.year,c=o.month,Y=o.day,A=o.hours,R=o.minutes,F=o.seconds,q=o.milliseconds,z=o.zone,nt=o.week,at=new Date,yt=Y||(G||c?1:at.getDate()),lt=G||at.getFullYear(),X=0;G&&!c||(X=c>0?c-1:at.getMonth());var K,Z=A||0,ot=R||0,J=F||0,it=q||0;return z?new Date(Date.UTC(lt,X,yt,Z,ot,J,it+60*z.offset*1e3)):n?new Date(Date.UTC(lt,X,yt,Z,ot,J,it)):(K=new Date(lt,X,yt,Z,ot,J,it),nt&&(K=$(K).week(nt).toDate()),K)}catch{return new Date("")}})(I,E,x,P),this.init(),p&&p!==!0&&(this.$L=this.locale(p).$L),v&&I!=this.format(E)&&(this.$d=new Date("")),S={}}else if(E instanceof Array)for(var a=E.length,d=1;d<=a;d+=1){h[1]=E[d-1];var m=P.apply(this,h);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}d===a&&(this.$d=new Date(""))}else B.call(this,H)}}}))})(wt)),wt.exports}var ir=nr();const ar=It(ir);var _t={exports:{}},or=_t.exports,ae;function cr(){return ae||(ae=1,(function(t,e){(function(s,r){t.exports=r()})(or,(function(){return function(s,r){var i=r.prototype,g=i.format;i.format=function(y){var b=this,S=this.$locale();if(!this.isValid())return g.bind(this)(y);var L=this.$utils(),_=(y||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(W){switch(W){case"Q":return Math.ceil((b.$M+1)/3);case"Do":return S.ordinal(b.$D);case"gggg":return b.weekYear();case"GGGG":return b.isoWeekYear();case"wo":return S.ordinal(b.week(),"W");case"w":case"ww":return L.s(b.week(),W==="w"?1:2,"0");case"W":case"WW":return L.s(b.isoWeek(),W==="W"?1:2,"0");case"k":case"kk":return L.s(String(b.$H===0?24:b.$H),W==="k"?1:2,"0");case"X":return Math.floor(b.$d.getTime()/1e3);case"x":return b.$d.getTime();case"z":return"["+b.offsetName()+"]";case"zzz":return"["+b.offsetName("long")+"]";default:return W}}));return g.bind(this)(_)}}}))})(_t)),_t.exports}var lr=cr();const ur=It(lr);var Dt={exports:{}},dr=Dt.exports,oe;function fr(){return oe||(oe=1,(function(t,e){(function(s,r){t.exports=r()})(dr,(function(){var s,r,i=1e3,g=6e4,y=36e5,b=864e5,S=31536e6,L=2628e6,_=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,W=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,w={years:S,months:L,days:b,hours:y,minutes:g,seconds:i,milliseconds:1,weeks:6048e5},D=function(I){return I instanceof B},N=function(I,x,h){return new B(I,h,x.$l)},V=function(I){return r.p(I)+"s"},k=function(I){return I<0},M=function(I){return k(I)?Math.ceil(I):Math.floor(I)},P=function(I){return Math.abs(I)},O=function(I,x){return I?k(I)?{negative:!0,format:""+P(I)+x}:{negative:!1,format:""+I+x}:{negative:!1,format:""}},B=(function(){function I(h,E,f){var T=this;if(this.$d={},this.$l=f,h===void 0&&(this.$ms=0,this.parseFromMilliseconds()),E)return N(h*w[V(E)],this);if(typeof h=="number")return this.$ms=h,this.parseFromMilliseconds(),this;if(typeof h=="object")return Object.keys(h).forEach((function(a){T.$d[V(a)]=h[a]})),this.calMilliseconds(),this;if(typeof h=="string"){var v=h.match(_);if(v){var p=v.slice(2).map((function(a){return a!=null?Number(a):0}));return this.$d.years=p[0],this.$d.months=p[1],this.$d.weeks=p[2],this.$d.days=p[3],this.$d.hours=p[4],this.$d.minutes=p[5],this.$d.seconds=p[6],this.calMilliseconds(),this}}return this}var x=I.prototype;return x.calMilliseconds=function(){var h=this;this.$ms=Object.keys(this.$d).reduce((function(E,f){return E+(h.$d[f]||0)*w[f]}),0)},x.parseFromMilliseconds=function(){var h=this.$ms;this.$d.years=M(h/S),h%=S,this.$d.months=M(h/L),h%=L,this.$d.days=M(h/b),h%=b,this.$d.hours=M(h/y),h%=y,this.$d.minutes=M(h/g),h%=g,this.$d.seconds=M(h/i),h%=i,this.$d.milliseconds=h},x.toISOString=function(){var h=O(this.$d.years,"Y"),E=O(this.$d.months,"M"),f=+this.$d.days||0;this.$d.weeks&&(f+=7*this.$d.weeks);var T=O(f,"D"),v=O(this.$d.hours,"H"),p=O(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3,a=Math.round(1e3*a)/1e3);var d=O(a,"S"),m=h.negative||E.negative||T.negative||v.negative||p.negative||d.negative,u=v.format||p.format||d.format?"T":"",C=(m?"-":"")+"P"+h.format+E.format+T.format+u+v.format+p.format+d.format;return C==="P"||C==="-P"?"P0D":C},x.toJSON=function(){return this.toISOString()},x.format=function(h){var E=h||"YYYY-MM-DDTHH:mm:ss",f={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return E.replace(W,(function(T,v){return v||String(f[T])}))},x.as=function(h){return this.$ms/w[V(h)]},x.get=function(h){var E=this.$ms,f=V(h);return f==="milliseconds"?E%=1e3:E=f==="weeks"?M(E/w[f]):this.$d[f],E||0},x.add=function(h,E,f){var T;return T=E?h*w[V(E)]:D(h)?h.$ms:N(h,this).$ms,N(this.$ms+T*(f?-1:1),this)},x.subtract=function(h,E){return this.add(h,E,!0)},x.locale=function(h){var E=this.clone();return E.$l=h,E},x.clone=function(){return N(this.$ms,this)},x.humanize=function(h){return s().add(this.$ms,"ms").locale(this.$l).fromNow(!h)},x.valueOf=function(){return this.asMilliseconds()},x.milliseconds=function(){return this.get("milliseconds")},x.asMilliseconds=function(){return this.as("milliseconds")},x.seconds=function(){return this.get("seconds")},x.asSeconds=function(){return this.as("seconds")},x.minutes=function(){return this.get("minutes")},x.asMinutes=function(){return this.as("minutes")},x.hours=function(){return this.get("hours")},x.asHours=function(){return this.as("hours")},x.days=function(){return this.get("days")},x.asDays=function(){return this.as("days")},x.weeks=function(){return this.get("weeks")},x.asWeeks=function(){return this.as("weeks")},x.months=function(){return this.get("months")},x.asMonths=function(){return this.as("months")},x.years=function(){return this.get("years")},x.asYears=function(){return this.as("years")},I})(),H=function(I,x,h){return I.add(x.years()*h,"y").add(x.months()*h,"M").add(x.days()*h,"d").add(x.hours()*h,"h").add(x.minutes()*h,"m").add(x.seconds()*h,"s").add(x.milliseconds()*h,"ms")};return function(I,x,h){s=h,r=h().$utils(),h.duration=function(T,v){var p=h.locale();return N(T,{$l:p},v)},h.isDuration=D;var E=x.prototype.add,f=x.prototype.subtract;x.prototype.add=function(T,v){return D(T)?H(this,T,1):E.bind(this)(T,v)},x.prototype.subtract=function(T,v){return D(T)?H(this,T,-1):f.bind(this)(T,v)}}}))})(Dt)),Dt.exports}var hr=fr();const mr=It(hr);var Lt=(function(){var t=l(function(p,a,d,m){for(d=d||{},m=p.length;m--;d[p[m]]=a);return d},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],s=[1,26],r=[1,27],i=[1,28],g=[1,29],y=[1,30],b=[1,31],S=[1,32],L=[1,33],_=[1,34],W=[1,9],w=[1,10],D=[1,11],N=[1,12],V=[1,13],k=[1,14],M=[1,15],P=[1,16],O=[1,19],B=[1,20],H=[1,21],I=[1,22],x=[1,23],h=[1,25],E=[1,35],f={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:l(function(a,d,m,u,C,n,$){var o=n.length-1;switch(C){case 1:return n[o-1];case 2:this.$=[];break;case 3:n[o-1].push(n[o]),this.$=n[o-1];break;case 4:case 5:this.$=n[o];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setWeekend("friday");break;case 16:u.setWeekend("saturday");break;case 17:u.setDateFormat(n[o].substr(11)),this.$=n[o].substr(11);break;case 18:u.enableInclusiveEndDates(),this.$=n[o].substr(18);break;case 19:u.TopAxis(),this.$=n[o].substr(8);break;case 20:u.setAxisFormat(n[o].substr(11)),this.$=n[o].substr(11);break;case 21:u.setTickInterval(n[o].substr(13)),this.$=n[o].substr(13);break;case 22:u.setExcludes(n[o].substr(9)),this.$=n[o].substr(9);break;case 23:u.setIncludes(n[o].substr(9)),this.$=n[o].substr(9);break;case 24:u.setTodayMarker(n[o].substr(12)),this.$=n[o].substr(12);break;case 27:u.setDiagramTitle(n[o].substr(6)),this.$=n[o].substr(6);break;case 28:this.$=n[o].trim(),u.setAccTitle(this.$);break;case 29:case 30:this.$=n[o].trim(),u.setAccDescription(this.$);break;case 31:u.addSection(n[o].substr(8)),this.$=n[o].substr(8);break;case 33:u.addTask(n[o-1],n[o]),this.$="task";break;case 34:this.$=n[o-1],u.setClickEvent(n[o-1],n[o],null);break;case 35:this.$=n[o-2],u.setClickEvent(n[o-2],n[o-1],n[o]);break;case 36:this.$=n[o-2],u.setClickEvent(n[o-2],n[o-1],null),u.setLink(n[o-2],n[o]);break;case 37:this.$=n[o-3],u.setClickEvent(n[o-3],n[o-2],n[o-1]),u.setLink(n[o-3],n[o]);break;case 38:this.$=n[o-2],u.setClickEvent(n[o-2],n[o],null),u.setLink(n[o-2],n[o-1]);break;case 39:this.$=n[o-3],u.setClickEvent(n[o-3],n[o-1],n[o]),u.setLink(n[o-3],n[o-2]);break;case 40:this.$=n[o-1],u.setLink(n[o-1],n[o]);break;case 41:case 47:this.$=n[o-1]+" "+n[o];break;case 42:case 43:case 45:this.$=n[o-2]+" "+n[o-1]+" "+n[o];break;case 44:case 46:this.$=n[o-3]+" "+n[o-2]+" "+n[o-1]+" "+n[o];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:s,13:r,14:i,15:g,16:y,17:b,18:S,19:18,20:L,21:_,22:W,23:w,24:D,25:N,26:V,27:k,28:M,29:P,30:O,31:B,33:H,35:I,36:x,37:24,38:h,40:E},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:s,13:r,14:i,15:g,16:y,17:b,18:S,19:18,20:L,21:_,22:W,23:w,24:D,25:N,26:V,27:k,28:M,29:P,30:O,31:B,33:H,35:I,36:x,37:24,38:h,40:E},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:l(function(a,d){if(d.recoverable)this.trace(a);else{var m=new Error(a);throw m.hash=d,m}},"parseError"),parse:l(function(a){var d=this,m=[0],u=[],C=[null],n=[],$=this.table,o="",G=0,c=0,Y=2,A=1,R=n.slice.call(arguments,1),F=Object.create(this.lexer),q={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(q.yy[z]=this.yy[z]);F.setInput(a,q.yy),q.yy.lexer=F,q.yy.parser=this,typeof F.yylloc>"u"&&(F.yylloc={});var nt=F.yylloc;n.push(nt);var at=F.options&&F.options.ranges;typeof q.yy.parseError=="function"?this.parseError=q.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function yt(Q){m.length=m.length-2*Q,C.length=C.length-Q,n.length=n.length-Q}l(yt,"popStack");function lt(){var Q;return Q=u.pop()||F.lex()||A,typeof Q!="number"&&(Q instanceof Array&&(u=Q,Q=u.pop()),Q=d.symbols_[Q]||Q),Q}l(lt,"lex");for(var X,K,Z,ot,J={},it,tt,Ut,pt;;){if(K=m[m.length-1],this.defaultActions[K]?Z=this.defaultActions[K]:((X===null||typeof X>"u")&&(X=lt()),Z=$[K]&&$[K][X]),typeof Z>"u"||!Z.length||!Z[0]){var $t="";pt=[];for(it in $[K])this.terminals_[it]&&it>Y&&pt.push("'"+this.terminals_[it]+"'");F.showPosition?$t="Parse error on line "+(G+1)+`:
|
|
1
|
+
import{U as be,aZ as we,Y as _e,b0 as De,V as Se,a_ as Ce,b as l,X as dt,aW as vt,B as Me,L as U,ay as st,z as Ee,P as Ie,r as $e,bh as Ye}from"./mPd0q3-n.js";import{g as It}from"./BdWqymET.js";import{t as Ae,d as Fe,m as Le,l as Oe,h as We,g as Zt,p as Qt,u as Pe,q as Ve,i as ze,v as Re,x as Ne,w as He,n as Be,e as Kt,j as Jt,k as te,s as ee,a as re}from"./BR1Dvtpp.js";function qe(t){return t}var Tt=1,Yt=2,Ft=3,xt=4,se=1e-6;function Ge(t){return"translate("+t+",0)"}function Xe(t){return"translate(0,"+t+")"}function je(t){return e=>+t(e)}function Ue(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),s=>+t(s)+e}function Ze(){return!this.__axis}function de(t,e){var s=[],r=null,i=null,g=6,y=6,b=3,S=typeof window<"u"&&window.devicePixelRatio>1?0:.5,L=t===Tt||t===xt?-1:1,_=t===xt||t===Yt?"x":"y",W=t===Tt||t===Ft?Ge:Xe;function w(D){var N=r??(e.ticks?e.ticks.apply(e,s):e.domain()),V=i??(e.tickFormat?e.tickFormat.apply(e,s):qe),k=Math.max(g,0)+b,M=e.range(),P=+M[0]+S,O=+M[M.length-1]+S,B=(e.bandwidth?Ue:je)(e.copy(),S),H=D.selection?D.selection():D,I=H.selectAll(".domain").data([null]),x=H.selectAll(".tick").data(N,e).order(),h=x.exit(),E=x.enter().append("g").attr("class","tick"),f=x.select("line"),T=x.select("text");I=I.merge(I.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),x=x.merge(E),f=f.merge(E.append("line").attr("stroke","currentColor").attr(_+"2",L*g)),T=T.merge(E.append("text").attr("fill","currentColor").attr(_,L*k).attr("dy",t===Tt?"0em":t===Ft?"0.71em":"0.32em")),D!==H&&(I=I.transition(D),x=x.transition(D),f=f.transition(D),T=T.transition(D),h=h.transition(D).attr("opacity",se).attr("transform",function(v){return isFinite(v=B(v))?W(v+S):this.getAttribute("transform")}),E.attr("opacity",se).attr("transform",function(v){var p=this.parentNode.__axis;return W((p&&isFinite(p=p(v))?p:B(v))+S)})),h.remove(),I.attr("d",t===xt||t===Yt?y?"M"+L*y+","+P+"H"+S+"V"+O+"H"+L*y:"M"+S+","+P+"V"+O:y?"M"+P+","+L*y+"V"+S+"H"+O+"V"+L*y:"M"+P+","+S+"H"+O),x.attr("opacity",1).attr("transform",function(v){return W(B(v)+S)}),f.attr(_+"2",L*g),T.attr(_,L*k).text(V),H.filter(Ze).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Yt?"start":t===xt?"end":"middle"),H.each(function(){this.__axis=B})}return w.scale=function(D){return arguments.length?(e=D,w):e},w.ticks=function(){return s=Array.from(arguments),w},w.tickArguments=function(D){return arguments.length?(s=D==null?[]:Array.from(D),w):s.slice()},w.tickValues=function(D){return arguments.length?(r=D==null?null:Array.from(D),w):r&&r.slice()},w.tickFormat=function(D){return arguments.length?(i=D,w):i},w.tickSize=function(D){return arguments.length?(g=y=+D,w):g},w.tickSizeInner=function(D){return arguments.length?(g=+D,w):g},w.tickSizeOuter=function(D){return arguments.length?(y=+D,w):y},w.tickPadding=function(D){return arguments.length?(b=+D,w):b},w.offset=function(D){return arguments.length?(S=+D,w):S},w}function Qe(t){return de(Tt,t)}function Ke(t){return de(Ft,t)}var bt={exports:{}},Je=bt.exports,ne;function tr(){return ne||(ne=1,(function(t,e){(function(s,r){t.exports=r()})(Je,(function(){var s="day";return function(r,i,g){var y=function(L){return L.add(4-L.isoWeekday(),s)},b=i.prototype;b.isoWeekYear=function(){return y(this).year()},b.isoWeek=function(L){if(!this.$utils().u(L))return this.add(7*(L-this.isoWeek()),s);var _,W,w,D,N=y(this),V=(_=this.isoWeekYear(),W=this.$u,w=(W?g.utc:g)().year(_).startOf("year"),D=4-w.isoWeekday(),w.isoWeekday()>4&&(D+=7),w.add(D,s));return N.diff(V,"week")+1},b.isoWeekday=function(L){return this.$utils().u(L)?this.day()||7:this.day(this.day()%7?L:L-7)};var S=b.startOf;b.startOf=function(L,_){var W=this.$utils(),w=!!W.u(_)||_;return W.p(L)==="isoweek"?w?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):S.bind(this)(L,_)}}}))})(bt)),bt.exports}var er=tr();const rr=It(er);var wt={exports:{}},sr=wt.exports,ie;function nr(){return ie||(ie=1,(function(t,e){(function(s,r){t.exports=r()})(sr,(function(){var s={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,g=/\d\d/,y=/\d\d?/,b=/\d*[^-_:/,()\s\d]+/,S={},L=function(k){return(k=+k)+(k>68?1900:2e3)},_=function(k){return function(M){this[k]=+M}},W=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=(function(M){if(!M||M==="Z")return 0;var P=M.match(/([+-]|\d\d)/g),O=60*P[1]+(+P[2]||0);return O===0?0:P[0]==="+"?-O:O})(k)}],w=function(k){var M=S[k];return M&&(M.indexOf?M:M.s.concat(M.f))},D=function(k,M){var P,O=S.meridiem;if(O){for(var B=1;B<=24;B+=1)if(k.indexOf(O(B,0,M))>-1){P=B>12;break}}else P=k===(M?"pm":"PM");return P},N={A:[b,function(k){this.afternoon=D(k,!1)}],a:[b,function(k){this.afternoon=D(k,!0)}],Q:[i,function(k){this.month=3*(k-1)+1}],S:[i,function(k){this.milliseconds=100*+k}],SS:[g,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],s:[y,_("seconds")],ss:[y,_("seconds")],m:[y,_("minutes")],mm:[y,_("minutes")],H:[y,_("hours")],h:[y,_("hours")],HH:[y,_("hours")],hh:[y,_("hours")],D:[y,_("day")],DD:[g,_("day")],Do:[b,function(k){var M=S.ordinal,P=k.match(/\d+/);if(this.day=P[0],M)for(var O=1;O<=31;O+=1)M(O).replace(/\[|\]/g,"")===k&&(this.day=O)}],w:[y,_("week")],ww:[g,_("week")],M:[y,_("month")],MM:[g,_("month")],MMM:[b,function(k){var M=w("months"),P=(w("monthsShort")||M.map((function(O){return O.slice(0,3)}))).indexOf(k)+1;if(P<1)throw new Error;this.month=P%12||P}],MMMM:[b,function(k){var M=w("months").indexOf(k)+1;if(M<1)throw new Error;this.month=M%12||M}],Y:[/[+-]?\d+/,_("year")],YY:[g,function(k){this.year=L(k)}],YYYY:[/\d{4}/,_("year")],Z:W,ZZ:W};function V(k){var M,P;M=k,P=S&&S.formats;for(var O=(k=M.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(f,T,v){var p=v&&v.toUpperCase();return T||P[v]||s[v]||P[p].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(a,d,m){return d||m.slice(1)}))}))).match(r),B=O.length,H=0;H<B;H+=1){var I=O[H],x=N[I],h=x&&x[0],E=x&&x[1];O[H]=E?{regex:h,parser:E}:I.replace(/^\[|\]$/g,"")}return function(f){for(var T={},v=0,p=0;v<B;v+=1){var a=O[v];if(typeof a=="string")p+=a.length;else{var d=a.regex,m=a.parser,u=f.slice(p),C=d.exec(u)[0];m.call(T,C),f=f.replace(C,"")}}return(function(n){var $=n.afternoon;if($!==void 0){var o=n.hours;$?o<12&&(n.hours+=12):o===12&&(n.hours=0),delete n.afternoon}})(T),T}}return function(k,M,P){P.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(L=k.parseTwoDigitYear);var O=M.prototype,B=O.parse;O.parse=function(H){var I=H.date,x=H.utc,h=H.args;this.$u=x;var E=h[1];if(typeof E=="string"){var f=h[2]===!0,T=h[3]===!0,v=f||T,p=h[2];T&&(p=h[2]),S=this.$locale(),!f&&p&&(S=P.Ls[p]),this.$d=(function(u,C,n,$){try{if(["x","X"].indexOf(C)>-1)return new Date((C==="X"?1e3:1)*u);var o=V(C)(u),G=o.year,c=o.month,Y=o.day,A=o.hours,R=o.minutes,F=o.seconds,q=o.milliseconds,z=o.zone,nt=o.week,at=new Date,yt=Y||(G||c?1:at.getDate()),lt=G||at.getFullYear(),X=0;G&&!c||(X=c>0?c-1:at.getMonth());var K,Z=A||0,ot=R||0,J=F||0,it=q||0;return z?new Date(Date.UTC(lt,X,yt,Z,ot,J,it+60*z.offset*1e3)):n?new Date(Date.UTC(lt,X,yt,Z,ot,J,it)):(K=new Date(lt,X,yt,Z,ot,J,it),nt&&(K=$(K).week(nt).toDate()),K)}catch{return new Date("")}})(I,E,x,P),this.init(),p&&p!==!0&&(this.$L=this.locale(p).$L),v&&I!=this.format(E)&&(this.$d=new Date("")),S={}}else if(E instanceof Array)for(var a=E.length,d=1;d<=a;d+=1){h[1]=E[d-1];var m=P.apply(this,h);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}d===a&&(this.$d=new Date(""))}else B.call(this,H)}}}))})(wt)),wt.exports}var ir=nr();const ar=It(ir);var _t={exports:{}},or=_t.exports,ae;function cr(){return ae||(ae=1,(function(t,e){(function(s,r){t.exports=r()})(or,(function(){return function(s,r){var i=r.prototype,g=i.format;i.format=function(y){var b=this,S=this.$locale();if(!this.isValid())return g.bind(this)(y);var L=this.$utils(),_=(y||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(W){switch(W){case"Q":return Math.ceil((b.$M+1)/3);case"Do":return S.ordinal(b.$D);case"gggg":return b.weekYear();case"GGGG":return b.isoWeekYear();case"wo":return S.ordinal(b.week(),"W");case"w":case"ww":return L.s(b.week(),W==="w"?1:2,"0");case"W":case"WW":return L.s(b.isoWeek(),W==="W"?1:2,"0");case"k":case"kk":return L.s(String(b.$H===0?24:b.$H),W==="k"?1:2,"0");case"X":return Math.floor(b.$d.getTime()/1e3);case"x":return b.$d.getTime();case"z":return"["+b.offsetName()+"]";case"zzz":return"["+b.offsetName("long")+"]";default:return W}}));return g.bind(this)(_)}}}))})(_t)),_t.exports}var lr=cr();const ur=It(lr);var Dt={exports:{}},dr=Dt.exports,oe;function fr(){return oe||(oe=1,(function(t,e){(function(s,r){t.exports=r()})(dr,(function(){var s,r,i=1e3,g=6e4,y=36e5,b=864e5,S=31536e6,L=2628e6,_=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,W=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,w={years:S,months:L,days:b,hours:y,minutes:g,seconds:i,milliseconds:1,weeks:6048e5},D=function(I){return I instanceof B},N=function(I,x,h){return new B(I,h,x.$l)},V=function(I){return r.p(I)+"s"},k=function(I){return I<0},M=function(I){return k(I)?Math.ceil(I):Math.floor(I)},P=function(I){return Math.abs(I)},O=function(I,x){return I?k(I)?{negative:!0,format:""+P(I)+x}:{negative:!1,format:""+I+x}:{negative:!1,format:""}},B=(function(){function I(h,E,f){var T=this;if(this.$d={},this.$l=f,h===void 0&&(this.$ms=0,this.parseFromMilliseconds()),E)return N(h*w[V(E)],this);if(typeof h=="number")return this.$ms=h,this.parseFromMilliseconds(),this;if(typeof h=="object")return Object.keys(h).forEach((function(a){T.$d[V(a)]=h[a]})),this.calMilliseconds(),this;if(typeof h=="string"){var v=h.match(_);if(v){var p=v.slice(2).map((function(a){return a!=null?Number(a):0}));return this.$d.years=p[0],this.$d.months=p[1],this.$d.weeks=p[2],this.$d.days=p[3],this.$d.hours=p[4],this.$d.minutes=p[5],this.$d.seconds=p[6],this.calMilliseconds(),this}}return this}var x=I.prototype;return x.calMilliseconds=function(){var h=this;this.$ms=Object.keys(this.$d).reduce((function(E,f){return E+(h.$d[f]||0)*w[f]}),0)},x.parseFromMilliseconds=function(){var h=this.$ms;this.$d.years=M(h/S),h%=S,this.$d.months=M(h/L),h%=L,this.$d.days=M(h/b),h%=b,this.$d.hours=M(h/y),h%=y,this.$d.minutes=M(h/g),h%=g,this.$d.seconds=M(h/i),h%=i,this.$d.milliseconds=h},x.toISOString=function(){var h=O(this.$d.years,"Y"),E=O(this.$d.months,"M"),f=+this.$d.days||0;this.$d.weeks&&(f+=7*this.$d.weeks);var T=O(f,"D"),v=O(this.$d.hours,"H"),p=O(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3,a=Math.round(1e3*a)/1e3);var d=O(a,"S"),m=h.negative||E.negative||T.negative||v.negative||p.negative||d.negative,u=v.format||p.format||d.format?"T":"",C=(m?"-":"")+"P"+h.format+E.format+T.format+u+v.format+p.format+d.format;return C==="P"||C==="-P"?"P0D":C},x.toJSON=function(){return this.toISOString()},x.format=function(h){var E=h||"YYYY-MM-DDTHH:mm:ss",f={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return E.replace(W,(function(T,v){return v||String(f[T])}))},x.as=function(h){return this.$ms/w[V(h)]},x.get=function(h){var E=this.$ms,f=V(h);return f==="milliseconds"?E%=1e3:E=f==="weeks"?M(E/w[f]):this.$d[f],E||0},x.add=function(h,E,f){var T;return T=E?h*w[V(E)]:D(h)?h.$ms:N(h,this).$ms,N(this.$ms+T*(f?-1:1),this)},x.subtract=function(h,E){return this.add(h,E,!0)},x.locale=function(h){var E=this.clone();return E.$l=h,E},x.clone=function(){return N(this.$ms,this)},x.humanize=function(h){return s().add(this.$ms,"ms").locale(this.$l).fromNow(!h)},x.valueOf=function(){return this.asMilliseconds()},x.milliseconds=function(){return this.get("milliseconds")},x.asMilliseconds=function(){return this.as("milliseconds")},x.seconds=function(){return this.get("seconds")},x.asSeconds=function(){return this.as("seconds")},x.minutes=function(){return this.get("minutes")},x.asMinutes=function(){return this.as("minutes")},x.hours=function(){return this.get("hours")},x.asHours=function(){return this.as("hours")},x.days=function(){return this.get("days")},x.asDays=function(){return this.as("days")},x.weeks=function(){return this.get("weeks")},x.asWeeks=function(){return this.as("weeks")},x.months=function(){return this.get("months")},x.asMonths=function(){return this.as("months")},x.years=function(){return this.get("years")},x.asYears=function(){return this.as("years")},I})(),H=function(I,x,h){return I.add(x.years()*h,"y").add(x.months()*h,"M").add(x.days()*h,"d").add(x.hours()*h,"h").add(x.minutes()*h,"m").add(x.seconds()*h,"s").add(x.milliseconds()*h,"ms")};return function(I,x,h){s=h,r=h().$utils(),h.duration=function(T,v){var p=h.locale();return N(T,{$l:p},v)},h.isDuration=D;var E=x.prototype.add,f=x.prototype.subtract;x.prototype.add=function(T,v){return D(T)?H(this,T,1):E.bind(this)(T,v)},x.prototype.subtract=function(T,v){return D(T)?H(this,T,-1):f.bind(this)(T,v)}}}))})(Dt)),Dt.exports}var hr=fr();const mr=It(hr);var Lt=(function(){var t=l(function(p,a,d,m){for(d=d||{},m=p.length;m--;d[p[m]]=a);return d},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],s=[1,26],r=[1,27],i=[1,28],g=[1,29],y=[1,30],b=[1,31],S=[1,32],L=[1,33],_=[1,34],W=[1,9],w=[1,10],D=[1,11],N=[1,12],V=[1,13],k=[1,14],M=[1,15],P=[1,16],O=[1,19],B=[1,20],H=[1,21],I=[1,22],x=[1,23],h=[1,25],E=[1,35],f={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:l(function(a,d,m,u,C,n,$){var o=n.length-1;switch(C){case 1:return n[o-1];case 2:this.$=[];break;case 3:n[o-1].push(n[o]),this.$=n[o-1];break;case 4:case 5:this.$=n[o];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setWeekend("friday");break;case 16:u.setWeekend("saturday");break;case 17:u.setDateFormat(n[o].substr(11)),this.$=n[o].substr(11);break;case 18:u.enableInclusiveEndDates(),this.$=n[o].substr(18);break;case 19:u.TopAxis(),this.$=n[o].substr(8);break;case 20:u.setAxisFormat(n[o].substr(11)),this.$=n[o].substr(11);break;case 21:u.setTickInterval(n[o].substr(13)),this.$=n[o].substr(13);break;case 22:u.setExcludes(n[o].substr(9)),this.$=n[o].substr(9);break;case 23:u.setIncludes(n[o].substr(9)),this.$=n[o].substr(9);break;case 24:u.setTodayMarker(n[o].substr(12)),this.$=n[o].substr(12);break;case 27:u.setDiagramTitle(n[o].substr(6)),this.$=n[o].substr(6);break;case 28:this.$=n[o].trim(),u.setAccTitle(this.$);break;case 29:case 30:this.$=n[o].trim(),u.setAccDescription(this.$);break;case 31:u.addSection(n[o].substr(8)),this.$=n[o].substr(8);break;case 33:u.addTask(n[o-1],n[o]),this.$="task";break;case 34:this.$=n[o-1],u.setClickEvent(n[o-1],n[o],null);break;case 35:this.$=n[o-2],u.setClickEvent(n[o-2],n[o-1],n[o]);break;case 36:this.$=n[o-2],u.setClickEvent(n[o-2],n[o-1],null),u.setLink(n[o-2],n[o]);break;case 37:this.$=n[o-3],u.setClickEvent(n[o-3],n[o-2],n[o-1]),u.setLink(n[o-3],n[o]);break;case 38:this.$=n[o-2],u.setClickEvent(n[o-2],n[o],null),u.setLink(n[o-2],n[o-1]);break;case 39:this.$=n[o-3],u.setClickEvent(n[o-3],n[o-1],n[o]),u.setLink(n[o-3],n[o-2]);break;case 40:this.$=n[o-1],u.setLink(n[o-1],n[o]);break;case 41:case 47:this.$=n[o-1]+" "+n[o];break;case 42:case 43:case 45:this.$=n[o-2]+" "+n[o-1]+" "+n[o];break;case 44:case 46:this.$=n[o-3]+" "+n[o-2]+" "+n[o-1]+" "+n[o];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:s,13:r,14:i,15:g,16:y,17:b,18:S,19:18,20:L,21:_,22:W,23:w,24:D,25:N,26:V,27:k,28:M,29:P,30:O,31:B,33:H,35:I,36:x,37:24,38:h,40:E},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:s,13:r,14:i,15:g,16:y,17:b,18:S,19:18,20:L,21:_,22:W,23:w,24:D,25:N,26:V,27:k,28:M,29:P,30:O,31:B,33:H,35:I,36:x,37:24,38:h,40:E},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:l(function(a,d){if(d.recoverable)this.trace(a);else{var m=new Error(a);throw m.hash=d,m}},"parseError"),parse:l(function(a){var d=this,m=[0],u=[],C=[null],n=[],$=this.table,o="",G=0,c=0,Y=2,A=1,R=n.slice.call(arguments,1),F=Object.create(this.lexer),q={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(q.yy[z]=this.yy[z]);F.setInput(a,q.yy),q.yy.lexer=F,q.yy.parser=this,typeof F.yylloc>"u"&&(F.yylloc={});var nt=F.yylloc;n.push(nt);var at=F.options&&F.options.ranges;typeof q.yy.parseError=="function"?this.parseError=q.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function yt(Q){m.length=m.length-2*Q,C.length=C.length-Q,n.length=n.length-Q}l(yt,"popStack");function lt(){var Q;return Q=u.pop()||F.lex()||A,typeof Q!="number"&&(Q instanceof Array&&(u=Q,Q=u.pop()),Q=d.symbols_[Q]||Q),Q}l(lt,"lex");for(var X,K,Z,ot,J={},it,tt,Ut,pt;;){if(K=m[m.length-1],this.defaultActions[K]?Z=this.defaultActions[K]:((X===null||typeof X>"u")&&(X=lt()),Z=$[K]&&$[K][X]),typeof Z>"u"||!Z.length||!Z[0]){var $t="";pt=[];for(it in $[K])this.terminals_[it]&&it>Y&&pt.push("'"+this.terminals_[it]+"'");F.showPosition?$t="Parse error on line "+(G+1)+`:
|
|
2
2
|
`+F.showPosition()+`
|
|
3
3
|
Expecting `+pt.join(", ")+", got '"+(this.terminals_[X]||X)+"'":$t="Parse error on line "+(G+1)+": Unexpected "+(X==A?"end of input":"'"+(this.terminals_[X]||X)+"'"),this.parseError($t,{text:F.match,token:this.terminals_[X]||X,line:F.yylineno,loc:nt,expected:pt})}if(Z[0]instanceof Array&&Z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+K+", token: "+X);switch(Z[0]){case 1:m.push(X),C.push(F.yytext),n.push(F.yylloc),m.push(Z[1]),X=null,c=F.yyleng,o=F.yytext,G=F.yylineno,nt=F.yylloc;break;case 2:if(tt=this.productions_[Z[1]][1],J.$=C[C.length-tt],J._$={first_line:n[n.length-(tt||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(tt||1)].first_column,last_column:n[n.length-1].last_column},at&&(J._$.range=[n[n.length-(tt||1)].range[0],n[n.length-1].range[1]]),ot=this.performAction.apply(J,[o,c,G,q.yy,Z[1],C,n].concat(R)),typeof ot<"u")return ot;tt&&(m=m.slice(0,-1*tt*2),C=C.slice(0,-1*tt),n=n.slice(0,-1*tt)),m.push(this.productions_[Z[1]][0]),C.push(J.$),n.push(J._$),Ut=$[m[m.length-2]][m[m.length-1]],m.push(Ut);break;case 3:return!0}}return!0},"parse")},T=(function(){var p={EOF:1,parseError:l(function(d,m){if(this.yy.parser)this.yy.parser.parseError(d,m);else throw new Error(d)},"parseError"),setInput:l(function(a,d){return this.yy=d||this.yy||{},this._input=a,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:l(function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var d=a.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:l(function(a){var d=a.length,m=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var u=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),m.length-1&&(this.yylineno-=m.length-1);var C=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:m?(m.length===u.length?this.yylloc.first_column:0)+u[u.length-m.length].length-m[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(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:l(function(a){this.unput(this.match.slice(a))},"less"),pastInput:l(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var a=this.pastInput(),d=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as Ge,bo as w,bm as c,bw as qe,b as He,br as ir,bs as mt,bq as zr}from"./51_h0jm2.js";import{bs as Ke,ay as X,be as wt,b$ as lt,b_ as H,bO as Q,W as k,bS as y,aD as e,a7 as ht,bl as Ie,bn as je,c9 as f,aA as p,aB as te,ca as Re,c0 as xt,bH as l,a5 as ae,bA as ie,bV as q,br as Lt,bk as Wr,bj as Gr,bf as Mo,bo as qr,c5 as gt,aw as tr,bz as Do,cd as Zt}from"./CJxGDkBm.js";import{i as be}from"./PXCFrn2V.js";import{c as ee}from"./DGmOjLYi.js";import{g as Ir,i as Vo,e as yt,I as zo}from"./Bjy4ygfJ.js";import{f as _t,s as Oe,g as Wo}from"./CpPNoOk-.js";import{b as Ct}from"./NtFyWdpR.js";import{b as kr}from"./C1AEP5wW.js";import{k as Go}from"./C9UsZ4re.js";import{c as Ot}from"./ChTqQfQN.js";import{a as qo}from"./CC7to1B5.js";import{f as Ne}from"./CdOh_Fmv.js";import{F as Ho}from"./Cgn_eC9-.js";import{m as ct}from"./BAymCgEX.js";import{s as Ko}from"./DxvSggY5.js";import{cp as Hr,F as ye,a8 as jo,aZ as Zo,ar as Xo,cK as Jo,aM as Yo,a_ as rr,a0 as sr,a2 as lr,b1 as Kr,aw as Qo,aC as jr,cT as en,ci as Zr,bS as Xr,cn as tn}from"./DSQT151l.js";import"./D6dNunKo.js";import{J4 as Se,fS as rn,by as on,zM as nn,z2 as an,L5 as Pr,dP as sn,bS as ln,L4 as dn,uL as un,L2 as Er,gy as cn,u5 as fn,L3 as gn,KK as Lr,L1 as Fr}from"./CbRsc9i4.js";import"./BCBNqT5t.js";import{R as vn,g as Xt,h as vt,f as wn,e as et,l as Jr,d as Yr,K as pn,i as bn,k as mn,j as hn,M as Qr,E as _n}from"./DvrEye74.js";import{a as eo,B as Ft}from"./B5aYN90J.js";import{bL as yn}from"./BSsEOl8-.js";import{a5 as xn,w as Cn}from"./BR2t5nsF.js";import{m as In,z as kn}from"./BRRvOx4M.js";import{I as At}from"./DZIz7Wk9.js";import{d as Pn}from"./CQ409-Pj.js";import{H as En,I as Ln}from"./Bqd7fdCF.js";import{a as Fn,e as Sn,h as Rn,g as $n,k as Tn,p as Un,b as An}from"./CkrbZXJF.js";import{e as Bn}from"./BzFy3u2D.js";import{i as or}from"./CL3a4Hm1.js";import{i as On,a as Nn}from"./CBafvv8h.js";import{B as Mn}from"./vLtMR-kj.js";import"./THdp5Vpk.js";import{l as Ve}from"./DqFWZ_g1.js";import{M as to}from"./C0wua3Vt.js";import"./DKn1sQ32.js";import"./BGP1lrgu.js";import{b as Dn}from"./Bc7pHsTy.js";import"./CN-6Tr26.js";import{t as Vn,b as zn}from"./CXXVPWBH.js";import{T as Wn}from"./tDUnXf7O.js";import{c as Gn,d as qn}from"./BEV9WkWU.js";import{o as Sr,s as ft,n as Tt}from"./CIyUrgF0.js";import{g as Hn}from"./BrMXrCxP.js";import{f as Kn}from"./D6VfSAVQ.js";import{ay as jn,$ as Zn}from"./DFr6bn5t.js";import{aZ as Xn}from"./CgwFGLCK.js";function Jn(o,t){return o.loadURL(t)}function Yn(o){return{previousUrlProp:o||null}}function Rr(o,t){o.previousUrlProp=t}function Qn(o,t,n){const v=n||t;return o.previousUrlProp===v?null:(o.previousUrlProp=v,v)}function ea(o,t,n){return t?o.previousUrlProp===null?(o.previousUrlProp=t,{shouldLoad:!1,targetUrl:null}):t===o.previousUrlProp?{shouldLoad:!1,targetUrl:null}:n.webviewReady?(o.previousUrlProp=t,n.isValidBrowserUrl(t)?{shouldLoad:!0,targetUrl:t}:{shouldLoad:!1,targetUrl:null}):{shouldLoad:!1,targetUrl:null}:{shouldLoad:!1,targetUrl:null}}const ro=Ot("TabBoundsReporter"),ta=150;function Jt(o,t,n){!(t>0)||!(n>0)||window.electronAPI?.invoke("browser:report-tab-bounds",{tabId:o,width:t,height:n}).catch(v=>{ro.debug("Failed to report tab bounds",{tabId:o,error:v})})}function $r(o){window.electronAPI?.invoke("browser:report-tab-bounds",{tabId:o}).catch(t=>{ro.debug("Failed to clear tab bounds",{tabId:o,error:t})})}function oo(o,t){let n=t,v;const h=typeof ResizeObserver>"u"?void 0:new ResizeObserver(E=>{if(!n)return;const b=E[E.length-1]?.contentRect;if(!b)return;const S=n;clearTimeout(v),v=setTimeout(()=>{Jt(S,b.width,b.height)},ta)});if(h?.observe(o),n){const E=o.getBoundingClientRect();Jt(n,E.width,E.height)}return{update(E){if(E!==n&&(clearTimeout(v),n&&$r(n),n=E,n)){const b=o.getBoundingClientRect();Jt(n,b.width,b.height)}},destroy(){clearTimeout(v),h?.disconnect(),n&&$r(n)}}}function no(o){let t=o.trim();if(!t)return null;/^[a-z][a-z0-9+.-]*:\/\//i.test(t)||(t=(t.includes("localhost")||t.includes("127.0.0.1")||t.includes("0.0.0.0")?"http://":"https://")+t);try{return new URL(t),t}catch{return null}}function st(o,t=typeof window<"u"?window.location.origin:""){return o==="about:blank"||ao(o,t)}function ao(o,t=typeof window<"u"?window.location.origin:""){if(!o)return!1;try{const n=new URL(o);return eo.NAVIGATION_ALLOWED.includes(n.protocol)&&n.origin!==t}catch{return!1}}const Bt=[{id:"iphone-se",name:"iPhone SE",category:"phone",width:375,height:667},{id:"iphone-15",name:"iPhone 15",category:"phone",width:393,height:852},{id:"pixel-8",name:"Pixel 8",category:"phone",width:412,height:915},{id:"ipad-mini",name:"iPad Mini",category:"tablet",width:768,height:1024},{id:"ipad-pro-11",name:"iPad Pro 11″",category:"tablet",width:834,height:1194},{id:"desktop-1280x800",name:"1280 × 800",category:"desktop",width:1280,height:800},{id:"desktop-1440x900",name:"1440 × 900",category:"desktop",width:1440,height:900}];function ra(o){return{...o,width:o.height,height:o.width}}var oa=te('<span class="min-w-0 flex-1 truncate"> </span> <span class="type-caption ml-3 text-muted-foreground"> </span>',1),Yt=te("<!> <!> <!>",1),na=te('<span class="min-w-0 flex-1"> </span> <span class="type-caption text-muted-foreground"> </span>',1),Qt=te("<!> <!>",1);function dr(o,t){if(new.target)return Ge({component:dr,...o});Ke(t,!0);let n=w(t,"viewport",7),v=w(t,"onViewportChange",7),h=w(t,"onCustom",7);const E=["phone","tablet","desktop"],b=f(()=>n().mode==="fit"?"fit":n().mode==="preset"?n().presetId:"custom");function S(u){if(u==="fit")return v()({mode:"fit"});const P=Bt.find(Z=>Z.id===u);P&&v()({mode:"preset",presetId:P.id,width:P.width,height:P.height})}var A={get viewport(){return n()},set viewport(u){n(u),p()},get onViewportChange(){return v()},set onViewportChange(u){v(u),p()},get onCustom(){return h()},set onCustom(u){h(u),p()},$set:qe,$on:(u,P)=>He(t,u,P)},g=Yt(),s=X(g);ee(s,()=>vn,(u,P)=>{P(u,{get value(){return e(b)},onValueChange:S,children:(Z,C)=>{var I=Yt(),L=X(I);ee(L,()=>Xt,(N,z)=>{z(N,{value:"fit",children:(oe,ce)=>{wt();var D=lt();H(J=>Q(D,J),[()=>c.browser_viewport_fitPanel_label()]),k(oe,D)},$$slots:{default:!0}})});var U=y(L,2);Ir(U,17,()=>E,Vo,(N,z)=>{var oe=Yt(),ce=X(oe);ee(ce,()=>vt,(d,V)=>{V(d,{})});var D=y(ce,2);ee(D,()=>wn,(d,V)=>{V(d,{children:(i,R)=>{wt();var Y=lt();H(ue=>Q(Y,ue),[()=>e(z)==="phone"?c.browser_viewport_phoneGroup_label():e(z)==="tablet"?c.browser_viewport_tabletGroup_label():c.browser_viewport_desktopGroup_label()]),k(i,Y)},$$slots:{default:!0}})});var J=y(D,2);Ir(J,17,()=>Bt.filter(d=>d.category===e(z)),d=>d.id,(d,V)=>{var i=ht(),R=X(i);ee(R,()=>Xt,(Y,ue)=>{ue(Y,{get value(){return e(V).id},children:(W,K)=>{var pe=oa(),_=X(pe),$=Ie(_,!0),F=y(_,2),we=Ie(F,!0);H(x=>{Q($,e(V).name),Q(we,x)},[()=>c.browser_viewport_dimensions_label({width:Ve(e(V).width),height:Ve(e(V).height)})]),k(W,pe)},$$slots:{default:!0}})}),k(d,i)}),k(N,oe)});var re=y(U,2);{var de=N=>{var z=Qt(),oe=X(z);ee(oe,()=>vt,(D,J)=>{J(D,{})});var ce=y(oe,2);ee(ce,()=>Xt,(D,J)=>{J(D,{value:"custom",get onSelect(){return h()},children:(d,V)=>{var i=na(),R=X(i),Y=Ie(R,!0),ue=y(R,2),W=Ie(ue,!0);H((K,pe)=>{Q(Y,K),Q(W,pe)},[()=>c.browser_viewport_custom_label(),()=>c.browser_viewport_dimensions_label({width:Ve(n().width),height:Ve(n().height)})]),k(d,i)},$$slots:{default:!0}})}),k(N,z)};be(re,N=>{n().mode==="custom"&&N(de)})}k(Z,I)},$$slots:{default:!0}})});var O=y(s,2);{var j=u=>{var P=Qt(),Z=X(P);ee(Z,()=>vt,(I,L)=>{L(I,{})});var C=y(Z,2);ee(C,()=>et,(I,L)=>{L(I,{get onSelect(){return h()},children:(U,re)=>{wt();var de=lt();H(N=>Q(de,N),[()=>c.browser_viewport_custom_label()]),k(U,de)},$$slots:{default:!0}})}),k(u,P)};be(O,u=>{n().mode!=="custom"&&u(j)})}var B=y(O,2);{var T=u=>{var P=Qt(),Z=X(P);ee(Z,()=>vt,(I,L)=>{L(I,{})});var C=y(Z,2);{let I=f(()=>c.browser_viewport_rotate_label());ee(C,()=>to,(L,U)=>{U(L,{get icon(){return Hr},get label(){return e(I)},onSelect:()=>v()(ra(n()))})})}k(u,P)};be(B,u=>{n().mode!=="fit"&&u(T)})}return k(o,g),je(A)}var aa=te('<div class="grid grid-cols-2 gap-3"><label class="space-y-1 type-caption"><span> </span> <!></label> <label class="space-y-1 type-caption"><span> </span> <!></label></div>');function ur(o,t){if(new.target)return Ge({component:ur,...o});Ke(t,!0);let n=w(t,"open",15,!1),v=w(t,"viewport",7),h=w(t,"onViewportChange",7),E=w(t,"returnFocus",7);const b=320,S=3840;let A=q(1280),g=q(800),s=q(null);function O(u){return typeof u=="number"&&Number.isInteger(u)&&u>=b&&u<=S}const j=f(()=>O(e(A))&&O(e(g)));Re(()=>{if(n())return()=>{xt().then(()=>{E()?.isConnected&&E().focus()})}}),Re(()=>{n()||(l(A,v().mode==="fit"?1280:v().width,!0),l(g,v().mode==="fit"?800:v().height,!0))});function B(){!e(j)||e(A)===null||e(g)===null||(h()({mode:"custom",width:e(A),height:e(g)}),n(!1))}var T={get open(){return n()},set open(u=!1){n(u),p()},get viewport(){return v()},set viewport(u){v(u),p()},get onViewportChange(){return h()},set onViewportChange(u){h(u),p()},get returnFocus(){return E()},set returnFocus(u){E(u),p()},$set:qe,$on:(u,P)=>He(t,u,P)};{let u=f(()=>c.browser_viewport_custom_label()),P=f(()=>c.browser_viewport_sizeRange_description({min:Ve(b),max:Ve(S)})),Z=f(()=>c.browser_viewport_apply_label());Dn(o,{get title(){return e(u)},get description(){return e(P)},get submitLabel(){return e(Z)},get canSubmit(){return e(j)},onSubmit:B,get initialFocus(){return e(s)},get open(){return n()},set open(C){n(C)},children:(C,I)=>{var L=aa(),U=ae(L),re=ae(U),de=Ie(re,!0),N=y(re,2);{let J=f(()=>!O(e(A)));At(N,{type:"number",min:b,max:S,step:"1",get"aria-invalid"(){return e(J)},get value(){return e(A)},set value(d){l(A,d,!0)},get ref(){return e(s)},set ref(d){l(s,d,!0)}})}ie(U);var z=y(U,2),oe=ae(z),ce=Ie(oe,!0),D=y(oe,2);{let J=f(()=>!O(e(g)));At(D,{type:"number",min:b,max:S,step:"1",get"aria-invalid"(){return e(J)},get value(){return e(g)},set value(d){l(g,d,!0)}})}ie(z),ie(L),H((J,d)=>{Q(de,J),Q(ce,d)},[()=>c.browser_viewport_width_label(),()=>c.browser_viewport_height_label()]),k(C,L)},$$slots:{default:!0}})}return je(T)}var Ut=te("<!> <!>",1),it=te("<!> ",1),ia=te('<!> <span class="min-w-0 flex-1 truncate"> </span>',1),sa=te("<!> <!> <!> <!> <!>",1),la=te('<!> <span class="min-w-0 flex-1"> </span> <kbd class="type-caption ml-5 text-muted-foreground" aria-hidden="true">⌘⌥I</kbd>',1),da=te("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1);function io(o,t){if(new.target)return Ge({component:io,...o});Ke(t,!0);let n=w(t,"errorCount",7,0),v=w(t,"disabled",7,!1),h=w(t,"collapsed",7,!1),E=w(t,"canGoBack",7,!1),b=w(t,"canGoForward",7,!1),S=w(t,"canSelectElement",7,!1),A=w(t,"selectingElement",7,!1),g=w(t,"viewport",23,()=>({mode:"fit"})),s=w(t,"onGoBack",7),O=w(t,"onGoForward",7),j=w(t,"onToggleElementPicker",7),B=w(t,"onViewportChange",7),T=w(t,"onOpenExternal",7),u=w(t,"onCopyUrl",7),P=w(t,"onScreenshot",7),Z=w(t,"onOpenConsole",7),C=w(t,"onOpenSource",7),I=w(t,"onOpenInspector",7),L=w(t,"onReloadWithoutCache",7);const U=f(()=>n()>0?c.browser_overflow_triggerWithErrors_ariaLabel({count:Ve(n())}):c.browser_overflow_trigger_ariaLabel()),re=f(()=>g().mode==="preset"?Bt.find(i=>i.id===g().presetId):void 0),de=f(()=>g().mode==="fit"?c.browser_viewport_fitPanel_label():e(re)?.name??c.browser_viewport_dimensions_label({width:Ve(g().width),height:Ve(g().height)}));let N=q(!1),z=q(null),oe=q(!1);async function ce(){l(oe,!1),await xt(),l(N,!0)}var D={get errorCount(){return n()},set errorCount(i=0){n(i),p()},get disabled(){return v()},set disabled(i=!1){v(i),p()},get collapsed(){return h()},set collapsed(i=!1){h(i),p()},get canGoBack(){return E()},set canGoBack(i=!1){E(i),p()},get canGoForward(){return b()},set canGoForward(i=!1){b(i),p()},get canSelectElement(){return S()},set canSelectElement(i=!1){S(i),p()},get selectingElement(){return A()},set selectingElement(i=!1){A(i),p()},get viewport(){return g()},set viewport(i={mode:"fit"}){g(i),p()},get onGoBack(){return s()},set onGoBack(i){s(i),p()},get onGoForward(){return O()},set onGoForward(i){O(i),p()},get onToggleElementPicker(){return j()},set onToggleElementPicker(i){j(i),p()},get onViewportChange(){return B()},set onViewportChange(i){B(i),p()},get onOpenExternal(){return T()},set onOpenExternal(i){T(i),p()},get onCopyUrl(){return u()},set onCopyUrl(i){u(i),p()},get onScreenshot(){return P()},set onScreenshot(i){P(i),p()},get onOpenConsole(){return Z()},set onOpenConsole(i){Z(i),p()},get onOpenSource(){return C()},set onOpenSource(i){C(i),p()},get onOpenInspector(){return I()},set onOpenInspector(i){I(i),p()},get onReloadWithoutCache(){return L()},set onReloadWithoutCache(i){L(i),p()},$set:qe,$on:(i,R)=>He(t,i,R)},J=Ut(),d=X(J);ee(d,()=>Qr,(i,R)=>{R(i,{get open(){return e(oe)},set open(Y){l(oe,Y,!0)},children:(Y,ue)=>{var W=Ut(),K=X(W);{const _=($,F)=>{let we=()=>(F?.()).props;{let x=f(()=>c.browser_overflow_trigger_tooltip());Ne($,ir(we,{variant:"ghost-light",size:"icon-xs",class:"relative",get disabled(){return v()},get tooltip(){return e(x)},tooltipSide:"bottom",get"aria-label"(){return e(U)},"data-testid":"browser-overflow-trigger",get ref(){return e(z)},set ref(se){l(z,se,!0)},children:(se,G)=>{var ke=Ut(),Pe=X(ke);pn(Pe,{class:"size-3.5"});var ze=y(Pe,2);{var Ze=Be=>{Mn(Be,{variant:"destructive",class:"absolute -right-1.5 -top-1.5 h-4 min-w-4 px-1 text-xs leading-none","data-testid":"browser-console-error-badge",children:(Ee,tt)=>{wt();var $e=lt();H(De=>Q($e,De),[()=>n()>9?"9+":Ve(n())]),k(Ee,$e)},$$slots:{default:!0}})};be(ze,Be=>{n()>0&&Be(Ze)})}k(se,ke)},$$slots:{default:!0}}))}};ee(K,()=>Jr,($,F)=>{F($,{child:_,$$slots:{child:!0}})})}var pe=y(K,2);ee(pe,()=>Yr,(_,$)=>{$(_,{align:"end",class:"w-56",onCloseAutoFocus:F=>e(N)&&F.preventDefault(),children:(F,we)=>{var x=da(),se=X(x);{var G=fe=>{var me=sa(),xe=X(me);{let he=f(()=>!E());ee(xe,()=>et,(Ae,We)=>{We(Ae,{get disabled(){return e(he)},get onSelect(){return s()},children:(nt,rt)=>{var Me=it(),Ce=X(Me);ye(Ce,{get icon(){return sr},size:"xs",class:"w-4 text-muted-foreground"});var Je=y(Ce);H(Ye=>Q(Je,` ${Ye??""}`),[()=>c.browser_embedded_goBack_ariaLabel()]),k(nt,Me)},$$slots:{default:!0}})})}var Xe=y(xe,2);{let he=f(()=>!b());ee(Xe,()=>et,(Ae,We)=>{We(Ae,{get disabled(){return e(he)},get onSelect(){return O()},children:(nt,rt)=>{var Me=it(),Ce=X(Me);ye(Ce,{get icon(){return lr},size:"xs",class:"w-4 text-muted-foreground"});var Je=y(Ce);H(Ye=>Q(Je,` ${Ye??""}`),[()=>c.browser_embedded_goForward_ariaLabel()]),k(nt,Me)},$$slots:{default:!0}})})}var ge=y(Xe,2);{let he=f(()=>!S());ee(ge,()=>et,(Ae,We)=>{We(Ae,{get disabled(){return e(he)},onSelect:()=>void j()?.(),children:(nt,rt)=>{var Me=it(),Ce=X(Me);ye(Ce,{get icon(){return rr},size:"xs",class:"w-4 text-muted-foreground"});var Je=y(Ce);H(Ye=>Q(Je,` ${Ye??""}`),[()=>A()?c.browser_embedded_cancelElementSelection_ariaLabel():c.browser_embedded_selectElement_ariaLabel()]),k(nt,Me)},$$slots:{default:!0}})})}var ve=y(ge,2);ee(ve,()=>bn,(he,Ae)=>{Ae(he,{children:(We,nt)=>{var rt=Ut(),Me=X(rt);{let Je=f(()=>!B());ee(Me,()=>mn,(Ye,dt)=>{dt(Ye,{get disabled(){return e(Je)},children:(pt,Pt)=>{var ut=ia(),It=X(ut);ye(It,{get icon(){return Kr},size:"xs",class:"w-4 text-muted-foreground"});var Et=y(It,2),kt=Ie(Et,!0);H(Rt=>Q(kt,Rt),[()=>c.browser_viewport_trigger_ariaLabel({mode:e(de)})]),k(pt,ut)},$$slots:{default:!0}})})}var Ce=y(Me,2);ee(Ce,()=>hn,(Je,Ye)=>{Ye(Je,{class:"w-64",children:(dt,pt)=>{dr(dt,{get viewport(){return g()},onViewportChange:Pt=>B()?.(Pt),onCustom:ce})},$$slots:{default:!0}})}),k(We,rt)},$$slots:{default:!0}})});var Ue=y(ve,2);ee(Ue,()=>vt,(he,Ae)=>{Ae(he,{})}),k(fe,me)};be(se,fe=>{h()&&fe(G)})}var ke=y(se,2);ee(ke,()=>et,(fe,me)=>{me(fe,{onSelect:()=>void T()(),children:(xe,Xe)=>{var ge=it(),ve=X(ge);ye(ve,{get icon(){return jo},size:"xs",class:"w-4 text-muted-foreground"});var Ue=y(ve);H(he=>Q(Ue,` ${he??""}`),[()=>c.browser_overflow_openExternal_label()]),k(xe,ge)},$$slots:{default:!0}})});var Pe=y(ke,2);ee(Pe,()=>et,(fe,me)=>{me(fe,{onSelect:()=>void u()(),children:(xe,Xe)=>{var ge=it(),ve=X(ge);ye(ve,{get icon(){return Zo},size:"xs",class:"w-4 text-muted-foreground"});var Ue=y(ve);H(he=>Q(Ue,` ${he??""}`),[()=>c.browser_overflow_copyUrl_label()]),k(xe,ge)},$$slots:{default:!0}})});var ze=y(Pe,2);ee(ze,()=>vt,(fe,me)=>{me(fe,{})});var Ze=y(ze,2);ee(Ze,()=>et,(fe,me)=>{me(fe,{onSelect:()=>void P()(),children:(xe,Xe)=>{var ge=it(),ve=X(ge);ye(ve,{get icon(){return Xo},size:"xs",class:"w-4 text-muted-foreground"});var Ue=y(ve);H(he=>Q(Ue,` ${he??""}`),[()=>c.browser_overflow_screenshot_label()]),k(xe,ge)},$$slots:{default:!0}})});var Be=y(Ze,2);ee(Be,()=>vt,(fe,me)=>{me(fe,{})});var Ee=y(Be,2);ee(Ee,()=>et,(fe,me)=>{me(fe,{onSelect:()=>void Z()(),children:(xe,Xe)=>{var ge=it(),ve=X(ge);ye(ve,{get icon(){return Jo},size:"xs",class:"w-4 text-muted-foreground"});var Ue=y(ve);H(he=>Q(Ue,` ${he??""}`),[()=>c.browser_overflow_console_label()]),k(xe,ge)},$$slots:{default:!0}})});var tt=y(Ee,2);ee(tt,()=>et,(fe,me)=>{me(fe,{onSelect:()=>void C()(),children:(xe,Xe)=>{var ge=it(),ve=X(ge);ye(ve,{get icon(){return Yo},size:"xs",class:"w-4 text-muted-foreground"});var Ue=y(ve);H(he=>Q(Ue,` ${he??""}`),[()=>c.browser_overflow_source_label()]),k(xe,ge)},$$slots:{default:!0}})});var $e=y(tt,2);ee($e,()=>et,(fe,me)=>{me(fe,{onSelect:()=>void I()(),children:(xe,Xe)=>{var ge=la(),ve=X(ge);ye(ve,{get icon(){return rr},size:"xs",class:"w-4 text-muted-foreground"});var Ue=y(ve,2),he=Ie(Ue,!0);wt(2),H(Ae=>Q(he,Ae),[()=>c.browser_overflow_inspector_label()]),k(xe,ge)},$$slots:{default:!0}})});var De=y($e,2);ee(De,()=>vt,(fe,me)=>{me(fe,{})});var Te=y(De,2);ee(Te,()=>et,(fe,me)=>{me(fe,{onSelect:()=>void L()(),children:(xe,Xe)=>{var ge=it(),ve=X(ge);ye(ve,{get icon(){return Hr},size:"xs",class:"w-4 text-muted-foreground"});var Ue=y(ve);H(he=>Q(Ue,` ${he??""}`),[()=>c.browser_overflow_reloadWithoutCache_label()]),k(xe,ge)},$$slots:{default:!0}})}),k(F,x)},$$slots:{default:!0}})}),k(Y,W)},$$slots:{default:!0}})});var V=y(d,2);return ur(V,{get viewport(){return g()},onViewportChange:i=>B()?.(i),get returnFocus(){return e(z)},get open(){return e(N)},set open(i){l(N,i,!0)}}),k(o,J),je(D)}var ua=te('<span class="truncate"> </span> <!>',1),Tr=te("<!> <!>",1);function so(o,t){if(new.target)return Ge({component:so,...o});Ke(t,!0);let n=w(t,"viewport",7),v=w(t,"onViewportChange",7),h=q(!1),E=q(!1),b=q(null);const S=f(()=>n().mode==="preset"?Bt.find(P=>P.id===n().presetId):void 0),A=f(()=>n().mode==="fit"?"":c.browser_viewport_dimensions_label({width:Ve(n().width),height:Ve(n().height)})),g=f(()=>n().mode==="fit"?c.browser_viewport_fit_short_label():n().mode==="preset"&&e(S)?e(S).name:e(A)),s=f(()=>n().mode==="fit"?c.browser_viewport_fitPanel_label():e(g));async function O(){l(h,!1),await xt(),l(E,!0)}var j={get viewport(){return n()},set viewport(P){n(P),p()},get onViewportChange(){return v()},set onViewportChange(P){v(P),p()},$set:qe,$on:(P,Z)=>He(t,P,Z)},B=Tr(),T=X(B);ee(T,()=>Qr,(P,Z)=>{Z(P,{get open(){return e(h)},set open(C){l(h,C,!0)},children:(C,I)=>{var L=Tr(),U=X(L);{const de=(N,z)=>{let oe=()=>(z?.()).props;{let ce=f(()=>c.browser_viewport_trigger_ariaLabel({mode:e(s)}));Ne(N,ir(oe,{variant:"ghost-light",size:"xs",class:"h-6 max-w-36 gap-1 rounded-full bg-muted px-2 text-xs hover:bg-muted/80",get"aria-label"(){return e(ce)},"data-testid":"browser-viewport-trigger",get ref(){return e(b)},set ref(D){l(b,D,!0)},children:(D,J)=>{var d=ua(),V=X(d),i=Ie(V,!0),R=y(V,2);ye(R,{get icon(){return Qo},size:"xs",class:"shrink-0"}),H(()=>Q(i,e(g))),k(D,d)},$$slots:{default:!0}}))}};ee(U,()=>Jr,(N,z)=>{z(N,{child:de,$$slots:{child:!0}})})}var re=y(U,2);ee(re,()=>Yr,(de,N)=>{N(de,{align:"end",class:"w-64",onCloseAutoFocus:z=>e(E)&&z.preventDefault(),children:(z,oe)=>{dr(z,{get viewport(){return n()},get onViewportChange(){return v()},onCustom:O})},$$slots:{default:!0}})}),k(C,L)},$$slots:{default:!0}})});var u=y(T,2);return ur(u,{get viewport(){return n()},get onViewportChange(){return v()},get returnFocus(){return e(b)},get open(){return e(E)},set open(P){l(E,P,!0)}}),k(o,B),je(j)}var ca=te('<span data-browser-viewport-readout=""> </span> <!>',1),fa=te('<div data-browser-device-frame-container=""><div><div><!> <!></div> <!></div></div>');function lo(o,t){if(new.target)return Ge({component:lo,...o});Ke(t,!0);const n=320,v=3840,h=150,E=24;let b=w(t,"viewport",7),S=w(t,"onViewportChange",7),A=w(t,"chromeOutside",7,!1),g=w(t,"children",7),s=q(Lt(b().mode==="fit"?n:b().width)),O=q(Lt(b().mode==="fit"?n:b().height)),j,B=q(0),T=q(0),u=q(!1),P=null,Z=0,C=0,I=0,L=0,U;const re=f(()=>b().mode==="fit"),de=f(()=>c.browser_viewport_dimensions_label({width:Ve(e(s)),height:Ve(e(O))})),N=f(()=>A()?Math.max(0,e(T)-E):e(T)),z=f(()=>!e(re)&&e(B)>0&&e(N)>0?Math.min(1,e(B)/e(s),e(N)/e(O)):1),oe=f(()=>e(s)*e(z)),ce=f(()=>e(O)*e(z));Re(()=>{e(u)||b().mode==="fit"||(l(s,b().width,!0),l(O,b().height,!0))});function D(x){return Math.min(v,Math.max(n,Math.round(x)))}function J(){S()({mode:"custom",width:e(s),height:e(O)})}function d(){clearTimeout(U),U=setTimeout(J,h)}function V(x){e(re)||x.button!==0||(x.preventDefault(),l(u,!0),P=x.pointerId,Z=x.clientX,C=x.clientY,I=e(s),L=e(O),x.currentTarget instanceof HTMLElement&&x.currentTarget.setPointerCapture?.(x.pointerId))}function i(x){!e(u)||x.pointerId!==P||(l(s,D(I+x.clientX-Z),!0),l(O,D(L+x.clientY-C),!0),d())}function R(x){if(!e(u)||x.pointerId!==P)return;clearTimeout(U),l(u,!1),P=null;const se=x.currentTarget;se instanceof HTMLElement&&se.hasPointerCapture?.(x.pointerId)&&se.releasePointerCapture&&se.releasePointerCapture(x.pointerId),J()}Wr(()=>{const x=(G,ke)=>{l(B,G,!0),l(T,ke,!0)};x(j.clientWidth,j.clientHeight);const se=typeof ResizeObserver>"u"?void 0:new ResizeObserver(([G])=>{x(G?.contentRect.width??j.clientWidth,G?.contentRect.height??j.clientHeight)});return se?.observe(j),()=>se?.disconnect()}),Gr(()=>clearTimeout(U));var Y={get viewport(){return b()},set viewport(x){b(x),p()},get onViewportChange(){return S()},set onViewportChange(x){S(x),p()},get chromeOutside(){return A()},set chromeOutside(x=!1){A(x),p()},get children(){return g()},set children(x){g(x),p()},$set:qe,$on:(x,se)=>He(t,x,se)},ue=fa();{const x=G=>{var ke=ca(),Pe=X(ke),ze=Ie(Pe,!0),Ze=y(Pe,2);{let Be=f(()=>A()?"top-full":"bottom-0"),Ee=f(()=>c.browser_viewport_resizeHandle_ariaLabel());Ne(Ze,{type:"button",variant:"ghost",size:"icon-xs",iconOnly:!0,get class(){return`absolute right-0 z-20 size-5 cursor-nwse-resize touch-none border-0 bg-transparent p-0 after:absolute after:bottom-1 after:right-1 after:size-2 after:border-b-2 after:border-r-2 after:border-muted-foreground ${e(Be)??""}`},get"aria-label"(){return e(Ee)},"data-testid":"browser-device-resize-handle",onpointerdown:V,onpointermove:i,onpointerup:R,onpointercancel:R})}H(()=>{_t(Pe,1,`pointer-events-none absolute left-1/2 z-10 -translate-x-1/2 rounded bg-background/90 px-1.5 py-0.5 text-xs text-muted-foreground shadow-sm backdrop-blur ${A()?"top-full mt-0.5":"bottom-1"}`),Q(ze,e(de))}),k(G,ke)};var W=ae(ue),K=ae(W);let se;var pe=ae(K);Ko(pe,()=>g()??Mo);var _=y(pe,2);{var $=G=>{x(G)};be(_,G=>{!e(re)&&!A()&&G($)})}ie(K);var F=y(K,2);{var we=G=>{x(G)};be(F,G=>{!e(re)&&A()&&G(we)})}ie(W),ie(ue),Ct(ue,G=>j=G,()=>j),H(()=>{_t(W,1,`relative ${e(re)?"h-full w-full":""} ${A()&&!e(re)?"mb-6":""}`),_t(K,1,`relative overflow-hidden bg-background ${e(re)?"h-full w-full":e(u)?"ring-2 ring-primary/30":""}`),Oe(K,"data-browser-device-frame",e(re)?void 0:""),Oe(K,"data-width",e(re)?void 0:e(s)),Oe(K,"data-height",e(re)?void 0:e(O)),se=Wo(K,"",se,{width:e(re)?void 0:`${e(oe)}px`,height:e(re)?void 0:`${e(ce)}px`})})}return H(()=>_t(ue,1,`flex h-full w-full items-center justify-center overflow-hidden ${e(re)?"bg-background":"bg-muted/40"}`)),k(o,ue),je(Y)}const er=Ot("BrowserViewSlot"),Ur=()=>new Promise(o=>requestAnimationFrame(()=>o())),Ar=async()=>{await Ur(),await Ur()};function Br(o,t){return o===t?!0:!o||!t?!1:o.x===t.x&&o.y===t.y&&o.width===t.width&&o.height===t.height}function Or(o){const t=o.getBoundingClientRect();return t.width<=0||t.height<=0?null:{x:t.left,y:t.top,width:t.width,height:t.height}}function ga(o){return o.isConnected?typeof o.checkVisibility=="function"?o.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0}):!0:!1}function va(o,t){let n=Nr(o,t),v=`${t.workspaceId}\0${t.tabId}`;return{update(h){const E=`${h.workspaceId}\0${h.tabId}`;if(E===v){n.update(h);return}n.destroy(),v=E,n=Nr(o,h)},destroy(){n.destroy()}}}function Nr(o,t){let n=t;const v=Fn(o,{tabId:n.tabId,workspaceId:n.workspaceId,url:n.url,...n.pinned===void 0?{}:{pinned:n.pinned}});n.onWebview?.(v.webview);let h=null,E=Promise.resolve(),b="live",S=0,A=null,g=null,s=!1;const O=()=>{A?.remove(),A=null},j=C=>{h=C;const I=n.tabId;return E=Rn(I,C.rect,C.visible).catch(L=>er.debug("Could not place the browser page",{tabId:I,error:L})),E},B=()=>{if(g=null,s)return;const C=Or(o),I=n.visible&&C!==null&&ga(o)&&b!=="frozen"&&v.ready;v.ready&&(!h||h.visible!==I||C&&!Br(h.rect,C))&&(Br(h?.rect??null,C)||zn(),j({rect:C??h?.rect??null,visible:I})),g=requestAnimationFrame(B)};g=requestAnimationFrame(B);const T=async C=>{if(b="freezing",v.ready&&h?.visible)try{const I=await v.webview.capturePage?.();if(C!==S||s)return;const L=I?.toDataURL()??"";if(L){const U=document.createElement("img");if(U.alt="",U.setAttribute("aria-hidden","true"),U.dataset.browserViewSnapshot="",U.style.cssText="position:absolute;inset:0;width:100%;height:100%;pointer-events:none;",U.src=L,await U.decode().catch(()=>{}),C!==S||s||(O(),o.append(U),A=U,await Ar(),C!==S||s))return}}catch(I){er.debug("Could not snapshot the browser page",{tabId:n.tabId,error:I})}C!==S||s||(b="frozen")},u=async C=>{if(b="thawing",v.ready&&n.visible){const I=Or(o);I&&await j({rect:I,visible:!0}),await Ar()}C!==S||s||(O(),b="live")},P=Vn({element:o,onCoveredChange(C){const I=++S;C?T(I):u(I)}});return{update(C){n=C},destroy:()=>{const C=n.tabId;s=!0,g!==null&&cancelAnimationFrame(g),g=null,P(),O(),v.dispose(),n.onWebview?.(null),E.then(()=>Sn(C).catch(I=>er.debug("Could not take the browser page off screen",{tabId:C,error:I})))}}}var wa=te('<div class="relative h-full w-full overflow-hidden"></div>');function uo(o,t){if(new.target)return Ge({component:uo,...o});Ke(t,!0);let n=w(t,"tabId",7),v=w(t,"workspaceId",7),h=w(t,"url",7),E=w(t,"pinned",7),b=w(t,"visible",7),S=w(t,"webview",15,null);var A={get tabId(){return n()},set tabId(s){n(s),p()},get workspaceId(){return v()},set workspaceId(s){v(s),p()},get url(){return h()},set url(s){h(s),p()},get pinned(){return E()},set pinned(s){E(s),p()},get visible(){return b()},set visible(s){b(s),p()},get webview(){return S()},set webview(s=null){S(s),p()},$set:qe,$on:(s,O)=>He(t,s,O)},g=wa();return yt(g,(s,O)=>va?.(s,O),()=>({tabId:n(),workspaceId:v(),url:h(),...E()===void 0?{}:{pinned:E()},visible:b(),onWebview:s=>S(s)})),yt(g,(s,O)=>oo?.(s,O),n),H(()=>Oe(g,"data-browser-view-slot",n())),k(o,g),je(A)}function co(o,t){if(new.target)return Ge({component:co,...o});Ke(t,!0);let n=w(t,"active",7),v=w(t,"disabled",7),h=w(t,"onToggle",7);var E={get active(){return n()},set active(b){n(b),p()},get disabled(){return v()},set disabled(b){v(b),p()},get onToggle(){return h()},set onToggle(b){h(b),p()},$set:qe,$on:(b,S)=>He(t,b,S)};{let b=f(()=>n()?"bg-muted text-foreground":""),S=f(()=>n()?c.browser_embedded_cancelElementSelection_tooltip():c.browser_embedded_selectElement_tooltip()),A=f(()=>n()?c.browser_embedded_cancelElementSelection_ariaLabel():c.browser_embedded_selectElement_ariaLabel());Ne(o,{variant:"ghost-light",size:"icon-xs",get class(){return e(b)},get onclick(){return h()},get disabled(){return v()},get tooltip(){return e(S)},tooltipSide:"bottom",get"aria-label"(){return e(A)},get"aria-pressed"(){return n()},"data-testid":"browser-select-element",children:(g,s)=>{ye(g,{get icon(){return rr},size:"xs"})},$$slots:{default:!0}})}return je(E)}var pa=te('<span class="sr-only"> </span>'),ba=te('<p class="min-h-0 overflow-y-auto text-sm text-foreground [overflow-wrap:anywhere]"> </p> <!>',1),ma=te("<!> <!>",1),ha=te('<span class="inline-flex shrink-0"><!> <!></span>');function cr(o,t){const n=qr();if(new.target)return Ge({component:cr,...o});Ke(t,!0);let v=w(t,"label",7),h=w(t,"description",7),E=w(t,"ariaLabel",23,v),b=w(t,"tone",7,"info"),S=w(t,"actionLabel",7),A=w(t,"onAction",7),g=w(t,"actionFocusTarget",7),s=w(t,"descriptionId",7),O=q(!1),j=!1;async function B(){j=!0,l(O,!1),await xt(),g()?.focus(),A()?.()}var T={get label(){return v()},set label(I){v(I),p()},get description(){return h()},set description(I){h(I),p()},get ariaLabel(){return E()},set ariaLabel(I=v){E(I),p()},get tone(){return b()},set tone(I="info"){b(I),p()},get actionLabel(){return S()},set actionLabel(I){S(I),p()},get onAction(){return A()},set onAction(I){A(I),p()},get actionFocusTarget(){return g()},set actionFocusTarget(I){g(I),p()},get descriptionId(){return s()},set descriptionId(I){s(I),p()},$set:qe,$on:(I,L)=>He(t,I,L)},u=ha(),P=ae(u);{var Z=I=>{var L=pa(),U=Ie(L,!0);H(()=>{Oe(L,"id",n),Oe(L,"role",b()==="error"?"alert":"status"),Q(U,h())}),k(I,L)};be(P,I=>{s()||I(Z)})}var C=y(P,2);return ee(C,()=>qn,(I,L)=>{L(I,{get open(){return e(O)},set open(U){l(O,U,!0)},children:(U,re)=>{var de=ma(),N=X(de);{const oe=(ce,D)=>{let J=()=>(D?.()).props;{let d=f(()=>b()==="error"?"text-danger":b()==="warning"?"text-warning-ink":"text-muted-foreground"),V=f(()=>s()??n);Ne(ce,ir(J,{variant:"ghost-light",size:"icon-compact",wrapContent:!1,get class(){return e(d)},get"aria-label"(){return E()},get"aria-describedby"(){return e(V)},get tooltip(){return h()},get tooltipDisabled(){return e(O)},tooltipSide:"bottom",tooltipDelayDuration:300,children:(i,R)=>{{let Y=f(()=>b()==="error"?jr:b()==="warning"?en:Kr);ye(i,{get icon(){return e(Y)},size:"xs",class:"shrink-0"})}},$$slots:{default:!0}}))}};ee(N,()=>Wn,(ce,D)=>{D(ce,{child:oe,$$slots:{child:!0}})})}var z=y(N,2);ee(z,()=>Gn,(oe,ce)=>{ce(oe,{align:"end",class:"flex max-h-[var(--bits-popover-content-available-height,calc(100dvh-1rem))] w-72 max-w-[calc(100vw-1rem)] flex-col gap-3 p-3",get"aria-label"(){return E()},onCloseAutoFocus:D=>{j&&g()&&(D.preventDefault(),g().focus()),j=!1},children:(D,J)=>{var d=ba(),V=X(d),i=Ie(V,!0),R=y(V,2);{var Y=ue=>{Ne(ue,{variant:"secondary",size:"sm",class:"self-start",onclick:()=>void B(),children:(W,K)=>{wt();var pe=lt();H(()=>Q(pe,S())),k(W,pe)},$$slots:{default:!0}})};be(R,ue=>{S()&&A()&&ue(Y)})}H(()=>Q(i,h())),k(D,d)},$$slots:{default:!0}})}),k(U,de)},$$slots:{default:!0}})}),ie(u),H(()=>Oe(u,"data-browser-status",b())),k(o,u),je(T)}function _a(o,t,n){const v=n.width>0?t.width/n.width:1,h=n.height>0?t.height/n.height:1,E=Math.max(0,Math.floor(o.x*v)),b=Math.max(0,Math.floor(o.y*h)),S=Math.min(t.width,Math.ceil((o.x+o.width)*v)),A=Math.min(t.height,Math.ceil((o.y+o.height)*h));return{x:E,y:b,width:Math.max(0,S-E),height:Math.max(0,A-b)}}const ya=Sr({selector:ft().min(1),domPath:ft().min(1),tagName:ft().min(1),id:ft(),className:ft(),textSnippet:ft().max(120),rect:Sr({x:Tt().finite(),y:Tt().finite(),width:Tt().finite().nonnegative(),height:Tt().finite().nonnegative()}).strict(),pageUrl:ft().min(1),sourceRef:ft().min(1).optional()}).strict(),Mr="__INTENT_ELEMENT_PICKED__:";function xa(o){if(o==="__INTENT_ELEMENT_PICK_CANCELLED__")return{type:"cancelled"};if(!o.startsWith(Mr))return null;let t;try{t=JSON.parse(o.slice(Mr.length))}catch{t=null}const n=ya.safeParse(t);return n.success?{type:"picked",element:n.data}:{type:"malformed",issues:n.error.issues}}const Ca=String.raw`
|
|
1
|
+
import{t as Ge,bo as w,bm as c,bw as qe,b as He,br as ir,bs as mt,bq as zr}from"./51_h0jm2.js";import{bs as Ke,ay as X,be as wt,b$ as lt,b_ as H,bO as Q,W as k,bS as y,aD as e,a7 as ht,bl as Ie,bn as je,c9 as f,aA as p,aB as te,ca as Re,c0 as xt,bH as l,a5 as ae,bA as ie,bV as q,br as Lt,bk as Wr,bj as Gr,bf as Mo,bo as qr,c5 as gt,aw as tr,bz as Do,cd as Zt}from"./CJxGDkBm.js";import{i as be}from"./PXCFrn2V.js";import{c as ee}from"./DGmOjLYi.js";import{g as Ir,i as Vo,e as yt,I as zo}from"./Bjy4ygfJ.js";import{f as _t,s as Oe,g as Wo}from"./CpPNoOk-.js";import{b as Ct}from"./NtFyWdpR.js";import{b as kr}from"./SxNO1NUM.js";import{k as Go}from"./C9UsZ4re.js";import{c as Ot}from"./ChTqQfQN.js";import{a as qo}from"./CC7to1B5.js";import{f as Ne}from"./BnA9v3pc.js";import{F as Ho}from"./rIUowGAi.js";import{m as ct}from"./Cz-HgbT1.js";import{s as Ko}from"./DxvSggY5.js";import{cp as Hr,F as ye,a8 as jo,aZ as Zo,ar as Xo,cK as Jo,aM as Yo,a_ as rr,a0 as sr,a2 as lr,b1 as Kr,aw as Qo,aC as jr,cT as en,ci as Zr,bS as Xr,cn as tn}from"./DSQT151l.js";import"./BLb6jd9K.js";import{J5 as Se,fS as rn,by as on,zN as nn,z3 as an,L6 as Pr,dP as sn,bS as ln,L5 as dn,uM as un,L3 as Er,gy as cn,u6 as fn,L4 as gn,KL as Lr,L2 as Fr}from"./CI4_aI7e.js";import"./BCBNqT5t.js";import{R as vn,g as Xt,h as vt,f as wn,e as et,l as Jr,d as Yr,K as pn,i as bn,k as mn,j as hn,M as Qr,E as _n}from"./rei1qYSi.js";import{a as eo,B as Ft}from"./B5aYN90J.js";import{bL as yn}from"./CoZeNthD.js";import{a5 as xn,w as Cn}from"./wNJjv8Uj.js";import{m as In,z as kn}from"./DQLMO9xD.js";import{I as At}from"./BaGw_bDr.js";import{d as Pn}from"./CQ409-Pj.js";import{H as En,I as Ln}from"./Bqd7fdCF.js";import{a as Fn,e as Sn,h as Rn,g as $n,k as Tn,p as Un,b as An}from"./CkrbZXJF.js";import{e as Bn}from"./BlQvrYPa.js";import{i as or}from"./CL3a4Hm1.js";import{i as On,a as Nn}from"./DWC3_76J.js";import{B as Mn}from"./B4rTQlY3.js";import"./BROVvkEL.js";import{l as Ve}from"./DqFWZ_g1.js";import{M as to}from"./C2UYU20O.js";import"./DKn1sQ32.js";import"./BGP1lrgu.js";import{b as Dn}from"./C1YR8Gnj.js";import"./CN-6Tr26.js";import{t as Vn,b as zn}from"./CXXVPWBH.js";import{T as Wn}from"./QFEvVzf2.js";import{c as Gn,d as qn}from"./5kePy1TE.js";import{o as Sr,s as ft,n as Tt}from"./CIyUrgF0.js";import{g as Hn}from"./BrMXrCxP.js";import{f as Kn}from"./MmbRHAVV.js";import{ay as jn,$ as Zn}from"./B-7g-jyw.js";import{aZ as Xn}from"./C2wWLl1x.js";function Jn(o,t){return o.loadURL(t)}function Yn(o){return{previousUrlProp:o||null}}function Rr(o,t){o.previousUrlProp=t}function Qn(o,t,n){const v=n||t;return o.previousUrlProp===v?null:(o.previousUrlProp=v,v)}function ea(o,t,n){return t?o.previousUrlProp===null?(o.previousUrlProp=t,{shouldLoad:!1,targetUrl:null}):t===o.previousUrlProp?{shouldLoad:!1,targetUrl:null}:n.webviewReady?(o.previousUrlProp=t,n.isValidBrowserUrl(t)?{shouldLoad:!0,targetUrl:t}:{shouldLoad:!1,targetUrl:null}):{shouldLoad:!1,targetUrl:null}:{shouldLoad:!1,targetUrl:null}}const ro=Ot("TabBoundsReporter"),ta=150;function Jt(o,t,n){!(t>0)||!(n>0)||window.electronAPI?.invoke("browser:report-tab-bounds",{tabId:o,width:t,height:n}).catch(v=>{ro.debug("Failed to report tab bounds",{tabId:o,error:v})})}function $r(o){window.electronAPI?.invoke("browser:report-tab-bounds",{tabId:o}).catch(t=>{ro.debug("Failed to clear tab bounds",{tabId:o,error:t})})}function oo(o,t){let n=t,v;const h=typeof ResizeObserver>"u"?void 0:new ResizeObserver(E=>{if(!n)return;const b=E[E.length-1]?.contentRect;if(!b)return;const S=n;clearTimeout(v),v=setTimeout(()=>{Jt(S,b.width,b.height)},ta)});if(h?.observe(o),n){const E=o.getBoundingClientRect();Jt(n,E.width,E.height)}return{update(E){if(E!==n&&(clearTimeout(v),n&&$r(n),n=E,n)){const b=o.getBoundingClientRect();Jt(n,b.width,b.height)}},destroy(){clearTimeout(v),h?.disconnect(),n&&$r(n)}}}function no(o){let t=o.trim();if(!t)return null;/^[a-z][a-z0-9+.-]*:\/\//i.test(t)||(t=(t.includes("localhost")||t.includes("127.0.0.1")||t.includes("0.0.0.0")?"http://":"https://")+t);try{return new URL(t),t}catch{return null}}function st(o,t=typeof window<"u"?window.location.origin:""){return o==="about:blank"||ao(o,t)}function ao(o,t=typeof window<"u"?window.location.origin:""){if(!o)return!1;try{const n=new URL(o);return eo.NAVIGATION_ALLOWED.includes(n.protocol)&&n.origin!==t}catch{return!1}}const Bt=[{id:"iphone-se",name:"iPhone SE",category:"phone",width:375,height:667},{id:"iphone-15",name:"iPhone 15",category:"phone",width:393,height:852},{id:"pixel-8",name:"Pixel 8",category:"phone",width:412,height:915},{id:"ipad-mini",name:"iPad Mini",category:"tablet",width:768,height:1024},{id:"ipad-pro-11",name:"iPad Pro 11″",category:"tablet",width:834,height:1194},{id:"desktop-1280x800",name:"1280 × 800",category:"desktop",width:1280,height:800},{id:"desktop-1440x900",name:"1440 × 900",category:"desktop",width:1440,height:900}];function ra(o){return{...o,width:o.height,height:o.width}}var oa=te('<span class="min-w-0 flex-1 truncate"> </span> <span class="type-caption ml-3 text-muted-foreground"> </span>',1),Yt=te("<!> <!> <!>",1),na=te('<span class="min-w-0 flex-1"> </span> <span class="type-caption text-muted-foreground"> </span>',1),Qt=te("<!> <!>",1);function dr(o,t){if(new.target)return Ge({component:dr,...o});Ke(t,!0);let n=w(t,"viewport",7),v=w(t,"onViewportChange",7),h=w(t,"onCustom",7);const E=["phone","tablet","desktop"],b=f(()=>n().mode==="fit"?"fit":n().mode==="preset"?n().presetId:"custom");function S(u){if(u==="fit")return v()({mode:"fit"});const P=Bt.find(Z=>Z.id===u);P&&v()({mode:"preset",presetId:P.id,width:P.width,height:P.height})}var A={get viewport(){return n()},set viewport(u){n(u),p()},get onViewportChange(){return v()},set onViewportChange(u){v(u),p()},get onCustom(){return h()},set onCustom(u){h(u),p()},$set:qe,$on:(u,P)=>He(t,u,P)},g=Yt(),s=X(g);ee(s,()=>vn,(u,P)=>{P(u,{get value(){return e(b)},onValueChange:S,children:(Z,C)=>{var I=Yt(),L=X(I);ee(L,()=>Xt,(N,z)=>{z(N,{value:"fit",children:(oe,ce)=>{wt();var D=lt();H(J=>Q(D,J),[()=>c.browser_viewport_fitPanel_label()]),k(oe,D)},$$slots:{default:!0}})});var U=y(L,2);Ir(U,17,()=>E,Vo,(N,z)=>{var oe=Yt(),ce=X(oe);ee(ce,()=>vt,(d,V)=>{V(d,{})});var D=y(ce,2);ee(D,()=>wn,(d,V)=>{V(d,{children:(i,R)=>{wt();var Y=lt();H(ue=>Q(Y,ue),[()=>e(z)==="phone"?c.browser_viewport_phoneGroup_label():e(z)==="tablet"?c.browser_viewport_tabletGroup_label():c.browser_viewport_desktopGroup_label()]),k(i,Y)},$$slots:{default:!0}})});var J=y(D,2);Ir(J,17,()=>Bt.filter(d=>d.category===e(z)),d=>d.id,(d,V)=>{var i=ht(),R=X(i);ee(R,()=>Xt,(Y,ue)=>{ue(Y,{get value(){return e(V).id},children:(W,K)=>{var pe=oa(),_=X(pe),$=Ie(_,!0),F=y(_,2),we=Ie(F,!0);H(x=>{Q($,e(V).name),Q(we,x)},[()=>c.browser_viewport_dimensions_label({width:Ve(e(V).width),height:Ve(e(V).height)})]),k(W,pe)},$$slots:{default:!0}})}),k(d,i)}),k(N,oe)});var re=y(U,2);{var de=N=>{var z=Qt(),oe=X(z);ee(oe,()=>vt,(D,J)=>{J(D,{})});var ce=y(oe,2);ee(ce,()=>Xt,(D,J)=>{J(D,{value:"custom",get onSelect(){return h()},children:(d,V)=>{var i=na(),R=X(i),Y=Ie(R,!0),ue=y(R,2),W=Ie(ue,!0);H((K,pe)=>{Q(Y,K),Q(W,pe)},[()=>c.browser_viewport_custom_label(),()=>c.browser_viewport_dimensions_label({width:Ve(n().width),height:Ve(n().height)})]),k(d,i)},$$slots:{default:!0}})}),k(N,z)};be(re,N=>{n().mode==="custom"&&N(de)})}k(Z,I)},$$slots:{default:!0}})});var O=y(s,2);{var j=u=>{var P=Qt(),Z=X(P);ee(Z,()=>vt,(I,L)=>{L(I,{})});var C=y(Z,2);ee(C,()=>et,(I,L)=>{L(I,{get onSelect(){return h()},children:(U,re)=>{wt();var de=lt();H(N=>Q(de,N),[()=>c.browser_viewport_custom_label()]),k(U,de)},$$slots:{default:!0}})}),k(u,P)};be(O,u=>{n().mode!=="custom"&&u(j)})}var B=y(O,2);{var T=u=>{var P=Qt(),Z=X(P);ee(Z,()=>vt,(I,L)=>{L(I,{})});var C=y(Z,2);{let I=f(()=>c.browser_viewport_rotate_label());ee(C,()=>to,(L,U)=>{U(L,{get icon(){return Hr},get label(){return e(I)},onSelect:()=>v()(ra(n()))})})}k(u,P)};be(B,u=>{n().mode!=="fit"&&u(T)})}return k(o,g),je(A)}var aa=te('<div class="grid grid-cols-2 gap-3"><label class="space-y-1 type-caption"><span> </span> <!></label> <label class="space-y-1 type-caption"><span> </span> <!></label></div>');function ur(o,t){if(new.target)return Ge({component:ur,...o});Ke(t,!0);let n=w(t,"open",15,!1),v=w(t,"viewport",7),h=w(t,"onViewportChange",7),E=w(t,"returnFocus",7);const b=320,S=3840;let A=q(1280),g=q(800),s=q(null);function O(u){return typeof u=="number"&&Number.isInteger(u)&&u>=b&&u<=S}const j=f(()=>O(e(A))&&O(e(g)));Re(()=>{if(n())return()=>{xt().then(()=>{E()?.isConnected&&E().focus()})}}),Re(()=>{n()||(l(A,v().mode==="fit"?1280:v().width,!0),l(g,v().mode==="fit"?800:v().height,!0))});function B(){!e(j)||e(A)===null||e(g)===null||(h()({mode:"custom",width:e(A),height:e(g)}),n(!1))}var T={get open(){return n()},set open(u=!1){n(u),p()},get viewport(){return v()},set viewport(u){v(u),p()},get onViewportChange(){return h()},set onViewportChange(u){h(u),p()},get returnFocus(){return E()},set returnFocus(u){E(u),p()},$set:qe,$on:(u,P)=>He(t,u,P)};{let u=f(()=>c.browser_viewport_custom_label()),P=f(()=>c.browser_viewport_sizeRange_description({min:Ve(b),max:Ve(S)})),Z=f(()=>c.browser_viewport_apply_label());Dn(o,{get title(){return e(u)},get description(){return e(P)},get submitLabel(){return e(Z)},get canSubmit(){return e(j)},onSubmit:B,get initialFocus(){return e(s)},get open(){return n()},set open(C){n(C)},children:(C,I)=>{var L=aa(),U=ae(L),re=ae(U),de=Ie(re,!0),N=y(re,2);{let J=f(()=>!O(e(A)));At(N,{type:"number",min:b,max:S,step:"1",get"aria-invalid"(){return e(J)},get value(){return e(A)},set value(d){l(A,d,!0)},get ref(){return e(s)},set ref(d){l(s,d,!0)}})}ie(U);var z=y(U,2),oe=ae(z),ce=Ie(oe,!0),D=y(oe,2);{let J=f(()=>!O(e(g)));At(D,{type:"number",min:b,max:S,step:"1",get"aria-invalid"(){return e(J)},get value(){return e(g)},set value(d){l(g,d,!0)}})}ie(z),ie(L),H((J,d)=>{Q(de,J),Q(ce,d)},[()=>c.browser_viewport_width_label(),()=>c.browser_viewport_height_label()]),k(C,L)},$$slots:{default:!0}})}return je(T)}var Ut=te("<!> <!>",1),it=te("<!> ",1),ia=te('<!> <span class="min-w-0 flex-1 truncate"> </span>',1),sa=te("<!> <!> <!> <!> <!>",1),la=te('<!> <span class="min-w-0 flex-1"> </span> <kbd class="type-caption ml-5 text-muted-foreground" aria-hidden="true">⌘⌥I</kbd>',1),da=te("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1);function io(o,t){if(new.target)return Ge({component:io,...o});Ke(t,!0);let n=w(t,"errorCount",7,0),v=w(t,"disabled",7,!1),h=w(t,"collapsed",7,!1),E=w(t,"canGoBack",7,!1),b=w(t,"canGoForward",7,!1),S=w(t,"canSelectElement",7,!1),A=w(t,"selectingElement",7,!1),g=w(t,"viewport",23,()=>({mode:"fit"})),s=w(t,"onGoBack",7),O=w(t,"onGoForward",7),j=w(t,"onToggleElementPicker",7),B=w(t,"onViewportChange",7),T=w(t,"onOpenExternal",7),u=w(t,"onCopyUrl",7),P=w(t,"onScreenshot",7),Z=w(t,"onOpenConsole",7),C=w(t,"onOpenSource",7),I=w(t,"onOpenInspector",7),L=w(t,"onReloadWithoutCache",7);const U=f(()=>n()>0?c.browser_overflow_triggerWithErrors_ariaLabel({count:Ve(n())}):c.browser_overflow_trigger_ariaLabel()),re=f(()=>g().mode==="preset"?Bt.find(i=>i.id===g().presetId):void 0),de=f(()=>g().mode==="fit"?c.browser_viewport_fitPanel_label():e(re)?.name??c.browser_viewport_dimensions_label({width:Ve(g().width),height:Ve(g().height)}));let N=q(!1),z=q(null),oe=q(!1);async function ce(){l(oe,!1),await xt(),l(N,!0)}var D={get errorCount(){return n()},set errorCount(i=0){n(i),p()},get disabled(){return v()},set disabled(i=!1){v(i),p()},get collapsed(){return h()},set collapsed(i=!1){h(i),p()},get canGoBack(){return E()},set canGoBack(i=!1){E(i),p()},get canGoForward(){return b()},set canGoForward(i=!1){b(i),p()},get canSelectElement(){return S()},set canSelectElement(i=!1){S(i),p()},get selectingElement(){return A()},set selectingElement(i=!1){A(i),p()},get viewport(){return g()},set viewport(i={mode:"fit"}){g(i),p()},get onGoBack(){return s()},set onGoBack(i){s(i),p()},get onGoForward(){return O()},set onGoForward(i){O(i),p()},get onToggleElementPicker(){return j()},set onToggleElementPicker(i){j(i),p()},get onViewportChange(){return B()},set onViewportChange(i){B(i),p()},get onOpenExternal(){return T()},set onOpenExternal(i){T(i),p()},get onCopyUrl(){return u()},set onCopyUrl(i){u(i),p()},get onScreenshot(){return P()},set onScreenshot(i){P(i),p()},get onOpenConsole(){return Z()},set onOpenConsole(i){Z(i),p()},get onOpenSource(){return C()},set onOpenSource(i){C(i),p()},get onOpenInspector(){return I()},set onOpenInspector(i){I(i),p()},get onReloadWithoutCache(){return L()},set onReloadWithoutCache(i){L(i),p()},$set:qe,$on:(i,R)=>He(t,i,R)},J=Ut(),d=X(J);ee(d,()=>Qr,(i,R)=>{R(i,{get open(){return e(oe)},set open(Y){l(oe,Y,!0)},children:(Y,ue)=>{var W=Ut(),K=X(W);{const _=($,F)=>{let we=()=>(F?.()).props;{let x=f(()=>c.browser_overflow_trigger_tooltip());Ne($,ir(we,{variant:"ghost-light",size:"icon-xs",class:"relative",get disabled(){return v()},get tooltip(){return e(x)},tooltipSide:"bottom",get"aria-label"(){return e(U)},"data-testid":"browser-overflow-trigger",get ref(){return e(z)},set ref(se){l(z,se,!0)},children:(se,G)=>{var ke=Ut(),Pe=X(ke);pn(Pe,{class:"size-3.5"});var ze=y(Pe,2);{var Ze=Be=>{Mn(Be,{variant:"destructive",class:"absolute -right-1.5 -top-1.5 h-4 min-w-4 px-1 text-xs leading-none","data-testid":"browser-console-error-badge",children:(Ee,tt)=>{wt();var $e=lt();H(De=>Q($e,De),[()=>n()>9?"9+":Ve(n())]),k(Ee,$e)},$$slots:{default:!0}})};be(ze,Be=>{n()>0&&Be(Ze)})}k(se,ke)},$$slots:{default:!0}}))}};ee(K,()=>Jr,($,F)=>{F($,{child:_,$$slots:{child:!0}})})}var pe=y(K,2);ee(pe,()=>Yr,(_,$)=>{$(_,{align:"end",class:"w-56",onCloseAutoFocus:F=>e(N)&&F.preventDefault(),children:(F,we)=>{var x=da(),se=X(x);{var G=fe=>{var me=sa(),xe=X(me);{let he=f(()=>!E());ee(xe,()=>et,(Ae,We)=>{We(Ae,{get disabled(){return e(he)},get onSelect(){return s()},children:(nt,rt)=>{var Me=it(),Ce=X(Me);ye(Ce,{get icon(){return sr},size:"xs",class:"w-4 text-muted-foreground"});var Je=y(Ce);H(Ye=>Q(Je,` ${Ye??""}`),[()=>c.browser_embedded_goBack_ariaLabel()]),k(nt,Me)},$$slots:{default:!0}})})}var Xe=y(xe,2);{let he=f(()=>!b());ee(Xe,()=>et,(Ae,We)=>{We(Ae,{get disabled(){return e(he)},get onSelect(){return O()},children:(nt,rt)=>{var Me=it(),Ce=X(Me);ye(Ce,{get icon(){return lr},size:"xs",class:"w-4 text-muted-foreground"});var Je=y(Ce);H(Ye=>Q(Je,` ${Ye??""}`),[()=>c.browser_embedded_goForward_ariaLabel()]),k(nt,Me)},$$slots:{default:!0}})})}var ge=y(Xe,2);{let he=f(()=>!S());ee(ge,()=>et,(Ae,We)=>{We(Ae,{get disabled(){return e(he)},onSelect:()=>void j()?.(),children:(nt,rt)=>{var Me=it(),Ce=X(Me);ye(Ce,{get icon(){return rr},size:"xs",class:"w-4 text-muted-foreground"});var Je=y(Ce);H(Ye=>Q(Je,` ${Ye??""}`),[()=>A()?c.browser_embedded_cancelElementSelection_ariaLabel():c.browser_embedded_selectElement_ariaLabel()]),k(nt,Me)},$$slots:{default:!0}})})}var ve=y(ge,2);ee(ve,()=>bn,(he,Ae)=>{Ae(he,{children:(We,nt)=>{var rt=Ut(),Me=X(rt);{let Je=f(()=>!B());ee(Me,()=>mn,(Ye,dt)=>{dt(Ye,{get disabled(){return e(Je)},children:(pt,Pt)=>{var ut=ia(),It=X(ut);ye(It,{get icon(){return Kr},size:"xs",class:"w-4 text-muted-foreground"});var Et=y(It,2),kt=Ie(Et,!0);H(Rt=>Q(kt,Rt),[()=>c.browser_viewport_trigger_ariaLabel({mode:e(de)})]),k(pt,ut)},$$slots:{default:!0}})})}var Ce=y(Me,2);ee(Ce,()=>hn,(Je,Ye)=>{Ye(Je,{class:"w-64",children:(dt,pt)=>{dr(dt,{get viewport(){return g()},onViewportChange:Pt=>B()?.(Pt),onCustom:ce})},$$slots:{default:!0}})}),k(We,rt)},$$slots:{default:!0}})});var Ue=y(ve,2);ee(Ue,()=>vt,(he,Ae)=>{Ae(he,{})}),k(fe,me)};be(se,fe=>{h()&&fe(G)})}var ke=y(se,2);ee(ke,()=>et,(fe,me)=>{me(fe,{onSelect:()=>void T()(),children:(xe,Xe)=>{var ge=it(),ve=X(ge);ye(ve,{get icon(){return jo},size:"xs",class:"w-4 text-muted-foreground"});var Ue=y(ve);H(he=>Q(Ue,` ${he??""}`),[()=>c.browser_overflow_openExternal_label()]),k(xe,ge)},$$slots:{default:!0}})});var Pe=y(ke,2);ee(Pe,()=>et,(fe,me)=>{me(fe,{onSelect:()=>void u()(),children:(xe,Xe)=>{var ge=it(),ve=X(ge);ye(ve,{get icon(){return Zo},size:"xs",class:"w-4 text-muted-foreground"});var Ue=y(ve);H(he=>Q(Ue,` ${he??""}`),[()=>c.browser_overflow_copyUrl_label()]),k(xe,ge)},$$slots:{default:!0}})});var ze=y(Pe,2);ee(ze,()=>vt,(fe,me)=>{me(fe,{})});var Ze=y(ze,2);ee(Ze,()=>et,(fe,me)=>{me(fe,{onSelect:()=>void P()(),children:(xe,Xe)=>{var ge=it(),ve=X(ge);ye(ve,{get icon(){return Xo},size:"xs",class:"w-4 text-muted-foreground"});var Ue=y(ve);H(he=>Q(Ue,` ${he??""}`),[()=>c.browser_overflow_screenshot_label()]),k(xe,ge)},$$slots:{default:!0}})});var Be=y(Ze,2);ee(Be,()=>vt,(fe,me)=>{me(fe,{})});var Ee=y(Be,2);ee(Ee,()=>et,(fe,me)=>{me(fe,{onSelect:()=>void Z()(),children:(xe,Xe)=>{var ge=it(),ve=X(ge);ye(ve,{get icon(){return Jo},size:"xs",class:"w-4 text-muted-foreground"});var Ue=y(ve);H(he=>Q(Ue,` ${he??""}`),[()=>c.browser_overflow_console_label()]),k(xe,ge)},$$slots:{default:!0}})});var tt=y(Ee,2);ee(tt,()=>et,(fe,me)=>{me(fe,{onSelect:()=>void C()(),children:(xe,Xe)=>{var ge=it(),ve=X(ge);ye(ve,{get icon(){return Yo},size:"xs",class:"w-4 text-muted-foreground"});var Ue=y(ve);H(he=>Q(Ue,` ${he??""}`),[()=>c.browser_overflow_source_label()]),k(xe,ge)},$$slots:{default:!0}})});var $e=y(tt,2);ee($e,()=>et,(fe,me)=>{me(fe,{onSelect:()=>void I()(),children:(xe,Xe)=>{var ge=la(),ve=X(ge);ye(ve,{get icon(){return rr},size:"xs",class:"w-4 text-muted-foreground"});var Ue=y(ve,2),he=Ie(Ue,!0);wt(2),H(Ae=>Q(he,Ae),[()=>c.browser_overflow_inspector_label()]),k(xe,ge)},$$slots:{default:!0}})});var De=y($e,2);ee(De,()=>vt,(fe,me)=>{me(fe,{})});var Te=y(De,2);ee(Te,()=>et,(fe,me)=>{me(fe,{onSelect:()=>void L()(),children:(xe,Xe)=>{var ge=it(),ve=X(ge);ye(ve,{get icon(){return Hr},size:"xs",class:"w-4 text-muted-foreground"});var Ue=y(ve);H(he=>Q(Ue,` ${he??""}`),[()=>c.browser_overflow_reloadWithoutCache_label()]),k(xe,ge)},$$slots:{default:!0}})}),k(F,x)},$$slots:{default:!0}})}),k(Y,W)},$$slots:{default:!0}})});var V=y(d,2);return ur(V,{get viewport(){return g()},onViewportChange:i=>B()?.(i),get returnFocus(){return e(z)},get open(){return e(N)},set open(i){l(N,i,!0)}}),k(o,J),je(D)}var ua=te('<span class="truncate"> </span> <!>',1),Tr=te("<!> <!>",1);function so(o,t){if(new.target)return Ge({component:so,...o});Ke(t,!0);let n=w(t,"viewport",7),v=w(t,"onViewportChange",7),h=q(!1),E=q(!1),b=q(null);const S=f(()=>n().mode==="preset"?Bt.find(P=>P.id===n().presetId):void 0),A=f(()=>n().mode==="fit"?"":c.browser_viewport_dimensions_label({width:Ve(n().width),height:Ve(n().height)})),g=f(()=>n().mode==="fit"?c.browser_viewport_fit_short_label():n().mode==="preset"&&e(S)?e(S).name:e(A)),s=f(()=>n().mode==="fit"?c.browser_viewport_fitPanel_label():e(g));async function O(){l(h,!1),await xt(),l(E,!0)}var j={get viewport(){return n()},set viewport(P){n(P),p()},get onViewportChange(){return v()},set onViewportChange(P){v(P),p()},$set:qe,$on:(P,Z)=>He(t,P,Z)},B=Tr(),T=X(B);ee(T,()=>Qr,(P,Z)=>{Z(P,{get open(){return e(h)},set open(C){l(h,C,!0)},children:(C,I)=>{var L=Tr(),U=X(L);{const de=(N,z)=>{let oe=()=>(z?.()).props;{let ce=f(()=>c.browser_viewport_trigger_ariaLabel({mode:e(s)}));Ne(N,ir(oe,{variant:"ghost-light",size:"xs",class:"h-6 max-w-36 gap-1 rounded-full bg-muted px-2 text-xs hover:bg-muted/80",get"aria-label"(){return e(ce)},"data-testid":"browser-viewport-trigger",get ref(){return e(b)},set ref(D){l(b,D,!0)},children:(D,J)=>{var d=ua(),V=X(d),i=Ie(V,!0),R=y(V,2);ye(R,{get icon(){return Qo},size:"xs",class:"shrink-0"}),H(()=>Q(i,e(g))),k(D,d)},$$slots:{default:!0}}))}};ee(U,()=>Jr,(N,z)=>{z(N,{child:de,$$slots:{child:!0}})})}var re=y(U,2);ee(re,()=>Yr,(de,N)=>{N(de,{align:"end",class:"w-64",onCloseAutoFocus:z=>e(E)&&z.preventDefault(),children:(z,oe)=>{dr(z,{get viewport(){return n()},get onViewportChange(){return v()},onCustom:O})},$$slots:{default:!0}})}),k(C,L)},$$slots:{default:!0}})});var u=y(T,2);return ur(u,{get viewport(){return n()},get onViewportChange(){return v()},get returnFocus(){return e(b)},get open(){return e(E)},set open(P){l(E,P,!0)}}),k(o,B),je(j)}var ca=te('<span data-browser-viewport-readout=""> </span> <!>',1),fa=te('<div data-browser-device-frame-container=""><div><div><!> <!></div> <!></div></div>');function lo(o,t){if(new.target)return Ge({component:lo,...o});Ke(t,!0);const n=320,v=3840,h=150,E=24;let b=w(t,"viewport",7),S=w(t,"onViewportChange",7),A=w(t,"chromeOutside",7,!1),g=w(t,"children",7),s=q(Lt(b().mode==="fit"?n:b().width)),O=q(Lt(b().mode==="fit"?n:b().height)),j,B=q(0),T=q(0),u=q(!1),P=null,Z=0,C=0,I=0,L=0,U;const re=f(()=>b().mode==="fit"),de=f(()=>c.browser_viewport_dimensions_label({width:Ve(e(s)),height:Ve(e(O))})),N=f(()=>A()?Math.max(0,e(T)-E):e(T)),z=f(()=>!e(re)&&e(B)>0&&e(N)>0?Math.min(1,e(B)/e(s),e(N)/e(O)):1),oe=f(()=>e(s)*e(z)),ce=f(()=>e(O)*e(z));Re(()=>{e(u)||b().mode==="fit"||(l(s,b().width,!0),l(O,b().height,!0))});function D(x){return Math.min(v,Math.max(n,Math.round(x)))}function J(){S()({mode:"custom",width:e(s),height:e(O)})}function d(){clearTimeout(U),U=setTimeout(J,h)}function V(x){e(re)||x.button!==0||(x.preventDefault(),l(u,!0),P=x.pointerId,Z=x.clientX,C=x.clientY,I=e(s),L=e(O),x.currentTarget instanceof HTMLElement&&x.currentTarget.setPointerCapture?.(x.pointerId))}function i(x){!e(u)||x.pointerId!==P||(l(s,D(I+x.clientX-Z),!0),l(O,D(L+x.clientY-C),!0),d())}function R(x){if(!e(u)||x.pointerId!==P)return;clearTimeout(U),l(u,!1),P=null;const se=x.currentTarget;se instanceof HTMLElement&&se.hasPointerCapture?.(x.pointerId)&&se.releasePointerCapture&&se.releasePointerCapture(x.pointerId),J()}Wr(()=>{const x=(G,ke)=>{l(B,G,!0),l(T,ke,!0)};x(j.clientWidth,j.clientHeight);const se=typeof ResizeObserver>"u"?void 0:new ResizeObserver(([G])=>{x(G?.contentRect.width??j.clientWidth,G?.contentRect.height??j.clientHeight)});return se?.observe(j),()=>se?.disconnect()}),Gr(()=>clearTimeout(U));var Y={get viewport(){return b()},set viewport(x){b(x),p()},get onViewportChange(){return S()},set onViewportChange(x){S(x),p()},get chromeOutside(){return A()},set chromeOutside(x=!1){A(x),p()},get children(){return g()},set children(x){g(x),p()},$set:qe,$on:(x,se)=>He(t,x,se)},ue=fa();{const x=G=>{var ke=ca(),Pe=X(ke),ze=Ie(Pe,!0),Ze=y(Pe,2);{let Be=f(()=>A()?"top-full":"bottom-0"),Ee=f(()=>c.browser_viewport_resizeHandle_ariaLabel());Ne(Ze,{type:"button",variant:"ghost",size:"icon-xs",iconOnly:!0,get class(){return`absolute right-0 z-20 size-5 cursor-nwse-resize touch-none border-0 bg-transparent p-0 after:absolute after:bottom-1 after:right-1 after:size-2 after:border-b-2 after:border-r-2 after:border-muted-foreground ${e(Be)??""}`},get"aria-label"(){return e(Ee)},"data-testid":"browser-device-resize-handle",onpointerdown:V,onpointermove:i,onpointerup:R,onpointercancel:R})}H(()=>{_t(Pe,1,`pointer-events-none absolute left-1/2 z-10 -translate-x-1/2 rounded bg-background/90 px-1.5 py-0.5 text-xs text-muted-foreground shadow-sm backdrop-blur ${A()?"top-full mt-0.5":"bottom-1"}`),Q(ze,e(de))}),k(G,ke)};var W=ae(ue),K=ae(W);let se;var pe=ae(K);Ko(pe,()=>g()??Mo);var _=y(pe,2);{var $=G=>{x(G)};be(_,G=>{!e(re)&&!A()&&G($)})}ie(K);var F=y(K,2);{var we=G=>{x(G)};be(F,G=>{!e(re)&&A()&&G(we)})}ie(W),ie(ue),Ct(ue,G=>j=G,()=>j),H(()=>{_t(W,1,`relative ${e(re)?"h-full w-full":""} ${A()&&!e(re)?"mb-6":""}`),_t(K,1,`relative overflow-hidden bg-background ${e(re)?"h-full w-full":e(u)?"ring-2 ring-primary/30":""}`),Oe(K,"data-browser-device-frame",e(re)?void 0:""),Oe(K,"data-width",e(re)?void 0:e(s)),Oe(K,"data-height",e(re)?void 0:e(O)),se=Wo(K,"",se,{width:e(re)?void 0:`${e(oe)}px`,height:e(re)?void 0:`${e(ce)}px`})})}return H(()=>_t(ue,1,`flex h-full w-full items-center justify-center overflow-hidden ${e(re)?"bg-background":"bg-muted/40"}`)),k(o,ue),je(Y)}const er=Ot("BrowserViewSlot"),Ur=()=>new Promise(o=>requestAnimationFrame(()=>o())),Ar=async()=>{await Ur(),await Ur()};function Br(o,t){return o===t?!0:!o||!t?!1:o.x===t.x&&o.y===t.y&&o.width===t.width&&o.height===t.height}function Or(o){const t=o.getBoundingClientRect();return t.width<=0||t.height<=0?null:{x:t.left,y:t.top,width:t.width,height:t.height}}function ga(o){return o.isConnected?typeof o.checkVisibility=="function"?o.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0}):!0:!1}function va(o,t){let n=Nr(o,t),v=`${t.workspaceId}\0${t.tabId}`;return{update(h){const E=`${h.workspaceId}\0${h.tabId}`;if(E===v){n.update(h);return}n.destroy(),v=E,n=Nr(o,h)},destroy(){n.destroy()}}}function Nr(o,t){let n=t;const v=Fn(o,{tabId:n.tabId,workspaceId:n.workspaceId,url:n.url,...n.pinned===void 0?{}:{pinned:n.pinned}});n.onWebview?.(v.webview);let h=null,E=Promise.resolve(),b="live",S=0,A=null,g=null,s=!1;const O=()=>{A?.remove(),A=null},j=C=>{h=C;const I=n.tabId;return E=Rn(I,C.rect,C.visible).catch(L=>er.debug("Could not place the browser page",{tabId:I,error:L})),E},B=()=>{if(g=null,s)return;const C=Or(o),I=n.visible&&C!==null&&ga(o)&&b!=="frozen"&&v.ready;v.ready&&(!h||h.visible!==I||C&&!Br(h.rect,C))&&(Br(h?.rect??null,C)||zn(),j({rect:C??h?.rect??null,visible:I})),g=requestAnimationFrame(B)};g=requestAnimationFrame(B);const T=async C=>{if(b="freezing",v.ready&&h?.visible)try{const I=await v.webview.capturePage?.();if(C!==S||s)return;const L=I?.toDataURL()??"";if(L){const U=document.createElement("img");if(U.alt="",U.setAttribute("aria-hidden","true"),U.dataset.browserViewSnapshot="",U.style.cssText="position:absolute;inset:0;width:100%;height:100%;pointer-events:none;",U.src=L,await U.decode().catch(()=>{}),C!==S||s||(O(),o.append(U),A=U,await Ar(),C!==S||s))return}}catch(I){er.debug("Could not snapshot the browser page",{tabId:n.tabId,error:I})}C!==S||s||(b="frozen")},u=async C=>{if(b="thawing",v.ready&&n.visible){const I=Or(o);I&&await j({rect:I,visible:!0}),await Ar()}C!==S||s||(O(),b="live")},P=Vn({element:o,onCoveredChange(C){const I=++S;C?T(I):u(I)}});return{update(C){n=C},destroy:()=>{const C=n.tabId;s=!0,g!==null&&cancelAnimationFrame(g),g=null,P(),O(),v.dispose(),n.onWebview?.(null),E.then(()=>Sn(C).catch(I=>er.debug("Could not take the browser page off screen",{tabId:C,error:I})))}}}var wa=te('<div class="relative h-full w-full overflow-hidden"></div>');function uo(o,t){if(new.target)return Ge({component:uo,...o});Ke(t,!0);let n=w(t,"tabId",7),v=w(t,"workspaceId",7),h=w(t,"url",7),E=w(t,"pinned",7),b=w(t,"visible",7),S=w(t,"webview",15,null);var A={get tabId(){return n()},set tabId(s){n(s),p()},get workspaceId(){return v()},set workspaceId(s){v(s),p()},get url(){return h()},set url(s){h(s),p()},get pinned(){return E()},set pinned(s){E(s),p()},get visible(){return b()},set visible(s){b(s),p()},get webview(){return S()},set webview(s=null){S(s),p()},$set:qe,$on:(s,O)=>He(t,s,O)},g=wa();return yt(g,(s,O)=>va?.(s,O),()=>({tabId:n(),workspaceId:v(),url:h(),...E()===void 0?{}:{pinned:E()},visible:b(),onWebview:s=>S(s)})),yt(g,(s,O)=>oo?.(s,O),n),H(()=>Oe(g,"data-browser-view-slot",n())),k(o,g),je(A)}function co(o,t){if(new.target)return Ge({component:co,...o});Ke(t,!0);let n=w(t,"active",7),v=w(t,"disabled",7),h=w(t,"onToggle",7);var E={get active(){return n()},set active(b){n(b),p()},get disabled(){return v()},set disabled(b){v(b),p()},get onToggle(){return h()},set onToggle(b){h(b),p()},$set:qe,$on:(b,S)=>He(t,b,S)};{let b=f(()=>n()?"bg-muted text-foreground":""),S=f(()=>n()?c.browser_embedded_cancelElementSelection_tooltip():c.browser_embedded_selectElement_tooltip()),A=f(()=>n()?c.browser_embedded_cancelElementSelection_ariaLabel():c.browser_embedded_selectElement_ariaLabel());Ne(o,{variant:"ghost-light",size:"icon-xs",get class(){return e(b)},get onclick(){return h()},get disabled(){return v()},get tooltip(){return e(S)},tooltipSide:"bottom",get"aria-label"(){return e(A)},get"aria-pressed"(){return n()},"data-testid":"browser-select-element",children:(g,s)=>{ye(g,{get icon(){return rr},size:"xs"})},$$slots:{default:!0}})}return je(E)}var pa=te('<span class="sr-only"> </span>'),ba=te('<p class="min-h-0 overflow-y-auto text-sm text-foreground [overflow-wrap:anywhere]"> </p> <!>',1),ma=te("<!> <!>",1),ha=te('<span class="inline-flex shrink-0"><!> <!></span>');function cr(o,t){const n=qr();if(new.target)return Ge({component:cr,...o});Ke(t,!0);let v=w(t,"label",7),h=w(t,"description",7),E=w(t,"ariaLabel",23,v),b=w(t,"tone",7,"info"),S=w(t,"actionLabel",7),A=w(t,"onAction",7),g=w(t,"actionFocusTarget",7),s=w(t,"descriptionId",7),O=q(!1),j=!1;async function B(){j=!0,l(O,!1),await xt(),g()?.focus(),A()?.()}var T={get label(){return v()},set label(I){v(I),p()},get description(){return h()},set description(I){h(I),p()},get ariaLabel(){return E()},set ariaLabel(I=v){E(I),p()},get tone(){return b()},set tone(I="info"){b(I),p()},get actionLabel(){return S()},set actionLabel(I){S(I),p()},get onAction(){return A()},set onAction(I){A(I),p()},get actionFocusTarget(){return g()},set actionFocusTarget(I){g(I),p()},get descriptionId(){return s()},set descriptionId(I){s(I),p()},$set:qe,$on:(I,L)=>He(t,I,L)},u=ha(),P=ae(u);{var Z=I=>{var L=pa(),U=Ie(L,!0);H(()=>{Oe(L,"id",n),Oe(L,"role",b()==="error"?"alert":"status"),Q(U,h())}),k(I,L)};be(P,I=>{s()||I(Z)})}var C=y(P,2);return ee(C,()=>qn,(I,L)=>{L(I,{get open(){return e(O)},set open(U){l(O,U,!0)},children:(U,re)=>{var de=ma(),N=X(de);{const oe=(ce,D)=>{let J=()=>(D?.()).props;{let d=f(()=>b()==="error"?"text-danger":b()==="warning"?"text-warning-ink":"text-muted-foreground"),V=f(()=>s()??n);Ne(ce,ir(J,{variant:"ghost-light",size:"icon-compact",wrapContent:!1,get class(){return e(d)},get"aria-label"(){return E()},get"aria-describedby"(){return e(V)},get tooltip(){return h()},get tooltipDisabled(){return e(O)},tooltipSide:"bottom",tooltipDelayDuration:300,children:(i,R)=>{{let Y=f(()=>b()==="error"?jr:b()==="warning"?en:Kr);ye(i,{get icon(){return e(Y)},size:"xs",class:"shrink-0"})}},$$slots:{default:!0}}))}};ee(N,()=>Wn,(ce,D)=>{D(ce,{child:oe,$$slots:{child:!0}})})}var z=y(N,2);ee(z,()=>Gn,(oe,ce)=>{ce(oe,{align:"end",class:"flex max-h-[var(--bits-popover-content-available-height,calc(100dvh-1rem))] w-72 max-w-[calc(100vw-1rem)] flex-col gap-3 p-3",get"aria-label"(){return E()},onCloseAutoFocus:D=>{j&&g()&&(D.preventDefault(),g().focus()),j=!1},children:(D,J)=>{var d=ba(),V=X(d),i=Ie(V,!0),R=y(V,2);{var Y=ue=>{Ne(ue,{variant:"secondary",size:"sm",class:"self-start",onclick:()=>void B(),children:(W,K)=>{wt();var pe=lt();H(()=>Q(pe,S())),k(W,pe)},$$slots:{default:!0}})};be(R,ue=>{S()&&A()&&ue(Y)})}H(()=>Q(i,h())),k(D,d)},$$slots:{default:!0}})}),k(U,de)},$$slots:{default:!0}})}),ie(u),H(()=>Oe(u,"data-browser-status",b())),k(o,u),je(T)}function _a(o,t,n){const v=n.width>0?t.width/n.width:1,h=n.height>0?t.height/n.height:1,E=Math.max(0,Math.floor(o.x*v)),b=Math.max(0,Math.floor(o.y*h)),S=Math.min(t.width,Math.ceil((o.x+o.width)*v)),A=Math.min(t.height,Math.ceil((o.y+o.height)*h));return{x:E,y:b,width:Math.max(0,S-E),height:Math.max(0,A-b)}}const ya=Sr({selector:ft().min(1),domPath:ft().min(1),tagName:ft().min(1),id:ft(),className:ft(),textSnippet:ft().max(120),rect:Sr({x:Tt().finite(),y:Tt().finite(),width:Tt().finite().nonnegative(),height:Tt().finite().nonnegative()}).strict(),pageUrl:ft().min(1),sourceRef:ft().min(1).optional()}).strict(),Mr="__INTENT_ELEMENT_PICKED__:";function xa(o){if(o==="__INTENT_ELEMENT_PICK_CANCELLED__")return{type:"cancelled"};if(!o.startsWith(Mr))return null;let t;try{t=JSON.parse(o.slice(Mr.length))}catch{t=null}const n=ya.safeParse(t);return n.success?{type:"picked",element:n.data}:{type:"malformed",issues:n.error.issues}}const Ca=String.raw`
|
|
2
2
|
(function() {
|
|
3
3
|
var PICKED_PREFIX = '__INTENT_ELEMENT_PICKED__:';
|
|
4
4
|
var CANCELLED = '__INTENT_ELEMENT_PICK_CANCELLED__';
|