@intent-hq/web 2.385.2 → 2.386.0
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/assets/0.DSZNT9Vm.css +1 -0
- package/web/app/immutable/chunks/{B5NaFcis.js → -8AxW0IA.js} +3 -3
- package/web/app/immutable/chunks/{CBueLH7U.js → -VR23WhZ.js} +1 -1
- package/web/app/immutable/chunks/{U7dpdlAf.js → 0b3rkAam.js} +1 -1
- package/web/app/immutable/chunks/{sSXTMg2P.js → 0y7aytZM.js} +1 -1
- package/web/app/immutable/chunks/{B6d1Nolc.js → 21kfe-mS.js} +1 -1
- package/web/app/immutable/chunks/{BvMBgdHo.js → 24f6N9l0.js} +1 -1
- package/web/app/immutable/chunks/{DcOkWaeN.js → 2aKRVAvL.js} +1 -1
- package/web/app/immutable/chunks/{IwNEzJ15.js → 3IpMTtMx.js} +1 -1
- package/web/app/immutable/chunks/{SbTG0nwQ.js → 3Kr2ijlK.js} +1 -1
- package/web/app/immutable/chunks/{CD-M_2xD.js → 3LCOBHm6.js} +1 -1
- package/web/app/immutable/chunks/{CTW83wJs.js → 3Qz3qAhk.js} +1 -1
- package/web/app/immutable/chunks/{CU_-vK2M.js → 6SOEgr71.js} +3 -3
- package/web/app/immutable/chunks/{gU2qspu9.js → 77KTvr2w.js} +1 -1
- package/web/app/immutable/chunks/{DAUvP6UD.js → 7EQMYysM.js} +1 -1
- package/web/app/immutable/chunks/{DlU1rxYV.js → 7i0OJtNQ.js} +1 -1
- package/web/app/immutable/chunks/{B6FGs8l2.js → 8jO_MBKF.js} +1 -1
- package/web/app/immutable/chunks/{C50zlWbZ.js → 9AJtSub0.js} +1 -1
- package/web/app/immutable/chunks/{7HiVLHLh.js → 9R_52XLX.js} +1 -1
- package/web/app/immutable/chunks/{DGMrUmNq.js → A3z9XWMi.js} +1 -1
- package/web/app/immutable/chunks/{CIJ-7Xzd.js → B-4i031c.js} +1 -1
- package/web/app/immutable/chunks/{B3IS1jjn.js → B-MjuJTx.js} +2 -2
- package/web/app/immutable/chunks/{BW1iql_y.js → B0kNPCxU.js} +1 -1
- package/web/app/immutable/chunks/{CYSndAne.js → B18ybwa0.js} +1 -1
- package/web/app/immutable/chunks/{pnbUAKkx.js → B1xM1EBM.js} +1 -1
- package/web/app/immutable/chunks/B2LBPAIA.js +1 -0
- package/web/app/immutable/chunks/{DuAAGnM9.js → B2OS2WTh.js} +1 -1
- package/web/app/immutable/chunks/{BjlMkd10.js → B3JbrKDZ.js} +1 -1
- package/web/app/immutable/chunks/{C2F2Vd1P.js → B3OJ_2Dd.js} +1 -1
- package/web/app/immutable/chunks/{-8sNsc56.js → B4F7GG5Q.js} +1 -1
- package/web/app/immutable/chunks/{CrsbEWnE.js → B8foSZsl.js} +1 -1
- package/web/app/immutable/chunks/{deEweluJ.js → B9kUdNbG.js} +1 -1
- package/web/app/immutable/chunks/{BTepRW_m.js → BB-hf8IY.js} +4 -4
- package/web/app/immutable/chunks/{TC7OsYhy.js → BCFB88Wl.js} +1 -1
- package/web/app/immutable/chunks/{jnsEVh0o.js → BCVhFPNJ.js} +1 -1
- package/web/app/immutable/chunks/{DYbZIRJE.js → BCiWc-GH.js} +1 -1
- package/web/app/immutable/chunks/{BD9db4FR.js → BCuI_zgX.js} +1 -1
- package/web/app/immutable/chunks/{D7P3vklT.js → BD7jFvJp.js} +1 -1
- package/web/app/immutable/chunks/{CObW_WD-.js → BDbFQqI8.js} +3 -3
- package/web/app/immutable/chunks/{0pEQEOm6.js → BE08e7Se.js} +1 -1
- package/web/app/immutable/chunks/{HU1Ksz8U.js → BGo6FK-0.js} +1 -1
- package/web/app/immutable/chunks/{CXZbeRE-.js → BHJpo3VA.js} +1 -1
- package/web/app/immutable/chunks/{ClYR_2Js.js → BIcof04i.js} +1 -1
- package/web/app/immutable/chunks/{Clo7aK1n.js → BIkt0YE0.js} +1 -1
- package/web/app/immutable/chunks/{ada9rZfE.js → BKFxm3WK.js} +1 -1
- package/web/app/immutable/chunks/{94vL4WlW.js → BNFvOw36.js} +1 -1
- package/web/app/immutable/chunks/{CzXIAWau.js → BNJkKc31.js} +1 -1
- package/web/app/immutable/chunks/{CTgU1bby.js → BOnTc4ny.js} +1 -1
- package/web/app/immutable/chunks/{7ZsTr9xa.js → BPDyvu9A.js} +1 -1
- package/web/app/immutable/chunks/{c0c_b7yh.js → BPpACIC2.js} +1 -1
- package/web/app/immutable/chunks/{zB9UbdEg.js → BRPJcG-m.js} +1 -1
- package/web/app/immutable/chunks/{C63WwVct.js → BRdQpeCl.js} +1 -1
- package/web/app/immutable/chunks/{DxC0zTSc.js → BUTuN2nE.js} +1 -1
- package/web/app/immutable/chunks/{CWOQ_pUA.js → BVcaPXq9.js} +1 -1
- package/web/app/immutable/chunks/{CoJyxFcH.js → BVyOECUU.js} +1 -1
- package/web/app/immutable/chunks/{DiURwJNX.js → BW2en5Js.js} +1 -1
- package/web/app/immutable/chunks/{BO8Bp7Ht.js → BWI85bGY.js} +1 -1
- package/web/app/immutable/chunks/{rXKOJqUt.js → BXHbm15d.js} +1 -1
- package/web/app/immutable/chunks/{CQMFoUkp.js → BYJh9adv.js} +1 -1
- package/web/app/immutable/chunks/{nw_ZiYCy.js → BYYtBM5R.js} +1 -1
- package/web/app/immutable/chunks/{YHt5oaBn.js → Bax102l4.js} +1 -1
- package/web/app/immutable/chunks/{bKvZbiNk.js → Bb-hI5du.js} +2 -2
- package/web/app/immutable/chunks/{3iG5yoX3.js → Bb8ARnaK.js} +1 -1
- package/web/app/immutable/chunks/{CJB-ebPL.js → BbWnSSTS.js} +1 -1
- package/web/app/immutable/chunks/{B0qb2Ymj.js → BbfEcBPg.js} +1 -1
- package/web/app/immutable/chunks/{CNSshwg_.js → BcYVm7io.js} +1 -1
- package/web/app/immutable/chunks/{DlpH_aW2.js → BdY8OnZP.js} +1 -1
- package/web/app/immutable/chunks/{BrMDbquN.js → BdlYeRHB.js} +2 -2
- package/web/app/immutable/chunks/{Dxd7AQYv.js → BeUuk8D1.js} +1 -1
- package/web/app/immutable/chunks/{Da-Blgd9.js → Bf_4e4N2.js} +1 -1
- package/web/app/immutable/chunks/{BVkAOJlr.js → BhYFIrRM.js} +1 -1
- package/web/app/immutable/chunks/{BWCYowXB.js → BhtJVlVx.js} +1 -1
- package/web/app/immutable/chunks/{0MXBpkLa.js → Bj4j6g-o.js} +1 -1
- package/web/app/immutable/chunks/{BJO0de_7.js → BjdIR-od.js} +1 -1
- package/web/app/immutable/chunks/{DVz0ewou.js → Bk14_fvY.js} +1 -1
- package/web/app/immutable/chunks/{Bc1vJq_Z.js → BlRGZv8u.js} +1 -1
- package/web/app/immutable/chunks/{Bi_Yd73A.js → BmLlDCoW.js} +1 -1
- package/web/app/immutable/chunks/{Ex_x2wO5.js → Bn4F-JIh.js} +1 -1
- package/web/app/immutable/chunks/{Bu-RLSv9.js → BoEcbLG-.js} +1 -1
- package/web/app/immutable/chunks/{DE32K02M.js → BolJpU8l.js} +4 -4
- package/web/app/immutable/chunks/{BwPwF85e.js → BpLxj3s3.js} +1 -1
- package/web/app/immutable/chunks/{D7Dfbf5g.js → BqCTtUhB.js} +1 -1
- package/web/app/immutable/chunks/{CmyAIpbY.js → BqrahRdk.js} +4 -4
- package/web/app/immutable/chunks/{Dval4sTX.js → BrDfJqC4.js} +1 -1
- package/web/app/immutable/chunks/{CCEmXQBN.js → BtMIAxno.js} +1 -1
- package/web/app/immutable/chunks/{CiWHn2aR.js → BthojcF8.js} +2 -2
- package/web/app/immutable/chunks/{DtqPBHQj.js → Btst3lgy.js} +1 -1
- package/web/app/immutable/chunks/{D-rRuAXZ.js → Bu3PKqut.js} +1 -1
- package/web/app/immutable/chunks/{pomj9evG.js → Bv_0mmoe.js} +1 -1
- package/web/app/immutable/chunks/{BQLaE7V5.js → BwVjpKmH.js} +1 -1
- package/web/app/immutable/chunks/{Mko8tFZb.js → BweHPPaS.js} +2 -2
- package/web/app/immutable/chunks/{418Agcsp.js → Bx7gCv2M.js} +1 -1
- package/web/app/immutable/chunks/{B8QvP_8b.js → BxU747mj.js} +1 -1
- package/web/app/immutable/chunks/{kAZ_zPIu.js → ByZL9dMf.js} +1 -1
- package/web/app/immutable/chunks/{B5q4SHo9.js → C1La-Fme.js} +1 -1
- package/web/app/immutable/chunks/{CletI6Pa.js → C21Z9LLF.js} +1 -1
- package/web/app/immutable/chunks/{BgDnzAo4.js → C4M_mNFP.js} +1 -1
- package/web/app/immutable/chunks/{BXJzIaQM.js → C6Wi6O6n.js} +1 -1
- package/web/app/immutable/chunks/{Cv0qomAl.js → C6afU4he.js} +1 -1
- package/web/app/immutable/chunks/{KReSIZSD.js → C6rz0msZ.js} +1 -1
- package/web/app/immutable/chunks/{CPI5xBWX.js → C8TrySMt.js} +1 -1
- package/web/app/immutable/chunks/{DI71nFp4.js → C9ij7Z2h.js} +1 -1
- package/web/app/immutable/chunks/{BY0BGmY0.js → CB8gRmKb.js} +1 -1
- package/web/app/immutable/chunks/{BVl79jmM.js → CDxGu9F5.js} +1 -1
- package/web/app/immutable/chunks/{BRKjDAGC.js → CDxV78M0.js} +1 -1
- package/web/app/immutable/chunks/{BTvTyEgq.js → CFB2mNds.js} +2 -2
- package/web/app/immutable/chunks/{IkcYx7DF.js → CF_a5Llj.js} +1 -1
- package/web/app/immutable/chunks/{OGqbAD_O.js → CFdI48b2.js} +1 -1
- package/web/app/immutable/chunks/{HC_j1BdV.js → CGHwi-2H.js} +1 -1
- package/web/app/immutable/chunks/{CI0C7_h-.js → CGUVvS8r.js} +1 -1
- package/web/app/immutable/chunks/CH-Qi35K.js +1 -0
- package/web/app/immutable/chunks/{BPuz5cN_.js → CIKXOyvw.js} +2 -2
- package/web/app/immutable/chunks/{4g_iHoQm.js → CIoJPvjg.js} +1 -1
- package/web/app/immutable/chunks/{CA4P_FmX.js → CJEwuNO9.js} +1 -1
- package/web/app/immutable/chunks/{Cy9hcA7q.js → CJke1tnU.js} +1 -1
- package/web/app/immutable/chunks/{BgQadJDW.js → CLqqc_hU.js} +1 -1
- package/web/app/immutable/chunks/{DPtj8tX0.js → CM9GoLV5.js} +1 -1
- package/web/app/immutable/chunks/{C9ew0Hx2.js → COBhx_l-.js} +1 -1
- package/web/app/immutable/chunks/{BMnuRHbZ.js → COS4Sgoi.js} +2 -2
- package/web/app/immutable/chunks/{DbqTt-YM.js → COSIRxZC.js} +1 -1
- package/web/app/immutable/chunks/{CPvH5Ru2.js → COlfJVPs.js} +4 -4
- package/web/app/immutable/chunks/{A0KsbysW.js → COsxNPUV.js} +1 -1
- package/web/app/immutable/chunks/{QRUY44Ff.js → CPWMushE.js} +1 -1
- package/web/app/immutable/chunks/{tLFaYuVN.js → CQ5BHnSj.js} +1 -1
- package/web/app/immutable/chunks/{B_75gRww.js → CRUcTVFP.js} +1 -1
- package/web/app/immutable/chunks/{C9p4fddz.js → CSb1CnpN.js} +1 -1
- package/web/app/immutable/chunks/{B5stdxh5.js → CTTICX_5.js} +1 -1
- package/web/app/immutable/chunks/{jBG7W4tL.js → CTqRHXfu.js} +1 -1
- package/web/app/immutable/chunks/{h8JtxU_T.js → CUA9hM4m.js} +1 -1
- package/web/app/immutable/chunks/{BXv1gq_o.js → CUeOEnqq.js} +1 -1
- package/web/app/immutable/chunks/{NC6gsHNQ.js → CW979n9w.js} +1 -1
- package/web/app/immutable/chunks/{FVS6L2WV.js → CY0EK8Cm.js} +3 -3
- package/web/app/immutable/chunks/{C1AUaRa8.js → CYq58ltZ.js} +1 -1
- package/web/app/immutable/chunks/{LQRHF1eM.js → CZ5zON0R.js} +1 -1
- package/web/app/immutable/chunks/{DQT1hnTe.js → C_wfHKmM.js} +1 -1
- package/web/app/immutable/chunks/{BmFHmusU.js → CaHWSiOY.js} +1 -1
- package/web/app/immutable/chunks/{iCWz6IE9.js → CaMRSd1-.js} +1 -1
- package/web/app/immutable/chunks/{DWa-2rkZ.js → CdGl_2eX.js} +1 -1
- package/web/app/immutable/chunks/{C8LrJXqa.js → Cerl373K.js} +1 -1
- package/web/app/immutable/chunks/{CvZTDgJa.js → CfnXjWQL.js} +1 -1
- package/web/app/immutable/chunks/ChKOG1mU.js +3 -0
- package/web/app/immutable/chunks/{CHto7_WH.js → ChOMtuod.js} +1 -1
- package/web/app/immutable/chunks/{CuPx_r7k.js → CjLfgoGI.js} +1 -1
- package/web/app/immutable/chunks/{2ZJE_wyo.js → CnMzOGNL.js} +1 -1
- package/web/app/immutable/chunks/{CmTojxTj.js → CnQVxh95.js} +1 -1
- package/web/app/immutable/chunks/{BuBXySe4.js → Cpgxz5sK.js} +1 -1
- package/web/app/immutable/chunks/{BmC9h1kv.js → Cpw2gXhG.js} +1 -1
- package/web/app/immutable/chunks/{Do2KlQU0.js → CsilY7l9.js} +1 -1
- package/web/app/immutable/chunks/{C-zB-6G6.js → CueOVPTy.js} +1 -1
- package/web/app/immutable/chunks/{VeUh5OMZ.js → CvSLeFQo.js} +1 -1
- package/web/app/immutable/chunks/{COgn_CzG.js → CvusaaYc.js} +1 -1
- package/web/app/immutable/chunks/{BECK4OaG.js → Cwg3XF5F.js} +1 -1
- package/web/app/immutable/chunks/{CDAnHxmJ.js → CyHe7TdT.js} +1 -1
- package/web/app/immutable/chunks/{B2CniqS1.js → D22j4iWy.js} +1 -1
- package/web/app/immutable/chunks/{BSUnflvl.js → D2Tzo4Hp.js} +1 -1
- package/web/app/immutable/chunks/{CMq0sOjt.js → D5A9atQX.js} +2 -2
- package/web/app/immutable/chunks/{CL4ty7oi.js → D5evzUZd.js} +1 -1
- package/web/app/immutable/chunks/{DJPIUVkw.js → D5xlMOwU.js} +1 -1
- package/web/app/immutable/chunks/{2qYrAiyX.js → D6_ybykj.js} +1 -1
- package/web/app/immutable/chunks/{CGYPBD6G.js → D7yetF0v.js} +1 -1
- package/web/app/immutable/chunks/{B5anfoVk.js → D9_wDL10.js} +1 -1
- package/web/app/immutable/chunks/{BhQMKzoM.js → DAI6QH7D.js} +1 -1
- package/web/app/immutable/chunks/{BLKFshyr.js → DAVG7sIL.js} +1 -1
- package/web/app/immutable/chunks/{BCZTn_fp.js → DBwdk2-0.js} +1 -1
- package/web/app/immutable/chunks/{BDOuZgzG.js → DC1xYxUn.js} +1 -1
- package/web/app/immutable/chunks/{TT8yXpG-.js → DDdsJrHq.js} +1 -1
- package/web/app/immutable/chunks/{D_VvdZe2.js → DEKjIPd8.js} +1 -1
- package/web/app/immutable/chunks/{Dvi4g0xk.js → DFKO8V-Y.js} +1 -1
- package/web/app/immutable/chunks/{BSgFpkqa.js → DGdWzkgm.js} +1 -1
- package/web/app/immutable/chunks/{BVuLEX_p.js → DIQ-xR1q.js} +1 -1
- package/web/app/immutable/chunks/{CFmT7rsG.js → DIWzdBfB.js} +1 -1
- package/web/app/immutable/chunks/{DhLHwyRV.js → DIad5c9_.js} +1 -1
- package/web/app/immutable/chunks/{B6eTPmJH.js → DJJ2Xrlq.js} +1 -1
- package/web/app/immutable/chunks/{4PAYwk2I.js → DJb2lMGn.js} +1 -1
- package/web/app/immutable/chunks/{DHcX7CG0.js → DKupjKLn.js} +1 -1
- package/web/app/immutable/chunks/{RHSH5iZ7.js → DNDJdxKs.js} +1 -1
- package/web/app/immutable/chunks/{Dp8FVKoA.js → DOLX5oss.js} +1 -1
- package/web/app/immutable/chunks/{7mo0aYB5.js → DOZ82gYM.js} +1 -1
- package/web/app/immutable/chunks/{lD0hZ5-I.js → DOir9M0E.js} +1 -1
- package/web/app/immutable/chunks/{3uhIXwkT.js → DQBViT5w.js} +1 -1
- package/web/app/immutable/chunks/{Dxfvrgme.js → DQvAX2eX.js} +1 -1
- package/web/app/immutable/chunks/{CgCJQyTf.js → DSDM77x3.js} +1 -1
- package/web/app/immutable/chunks/{O49gK3tp.js → DU1c0itA.js} +1 -1
- package/web/app/immutable/chunks/DWvCfaBg.js +1 -0
- package/web/app/immutable/chunks/{7y3Z0Q49.js → DX2U4Mz9.js} +3 -3
- package/web/app/immutable/chunks/{DLQIjfwi.js → DXDbxM_W.js} +1 -1
- package/web/app/immutable/chunks/{D40Fo-pJ.js → DY1YVoxv.js} +1 -1
- package/web/app/immutable/chunks/{8jMQM9h0.js → DY5rw8pn.js} +1 -1
- package/web/app/immutable/chunks/{BPxN1acN.js → DZSbMOPJ.js} +2 -2
- package/web/app/immutable/chunks/{CCyecAzB.js → DZjSAGjX.js} +1 -1
- package/web/app/immutable/chunks/Da8rtzmJ.js +1 -0
- package/web/app/immutable/chunks/{BdU-kPC9.js → DaOKbar2.js} +2 -2
- package/web/app/immutable/chunks/{CfYakquS.js → DbUDL_oo.js} +1 -1
- package/web/app/immutable/chunks/{DGv69LVd.js → Dbr8gjWS.js} +1 -1
- package/web/app/immutable/chunks/{COWlXo8C.js → DbxqdYAO.js} +3 -3
- package/web/app/immutable/chunks/{6xdvppss.js → DcLVN86K.js} +1 -1
- package/web/app/immutable/chunks/{BqARUxDK.js → DcMTwn77.js} +1 -1
- package/web/app/immutable/chunks/{DhVTc7Ol.js → DdRupUfV.js} +2 -2
- package/web/app/immutable/chunks/{wiGlLVr-.js → Dde9Z_vp.js} +1 -1
- package/web/app/immutable/chunks/{odj5qcEP.js → DdjeekcY.js} +1 -1
- package/web/app/immutable/chunks/{BJgwBOBz.js → Dduwpj0a.js} +1 -1
- package/web/app/immutable/chunks/{CV2tdNDf.js → De0cdeOU.js} +1 -1
- package/web/app/immutable/chunks/{B4I8lQNP.js → De2a277N.js} +1 -1
- package/web/app/immutable/chunks/{C_SKcJv7.js → DeY70dof.js} +1 -1
- package/web/app/immutable/chunks/{DSiGyv9Y.js → Df4a242o.js} +1 -1
- package/web/app/immutable/chunks/{BLvtkZ8G.js → DfgH7-YK.js} +1 -1
- package/web/app/immutable/chunks/{7OH6WUSt.js → DgjIVRdE.js} +1 -1
- package/web/app/immutable/chunks/{DVJBGL7F.js → DgzMHcMD.js} +1 -1
- package/web/app/immutable/chunks/{DEs9kPtf.js → Dh-HeAnQ.js} +1 -1
- package/web/app/immutable/chunks/{j67P3UNv.js → Dh438xC0.js} +2 -2
- package/web/app/immutable/chunks/{BZkfp4xg.js → DhaHSPPQ.js} +1 -1
- package/web/app/immutable/chunks/{B433f4mk.js → Di_ao8Rc.js} +1 -1
- package/web/app/immutable/chunks/{CIaruUrd.js → DjNuITHM.js} +1 -1
- package/web/app/immutable/chunks/{BSntxgH1.js → Djah0WfC.js} +1 -1
- package/web/app/immutable/chunks/{BbLh3POL.js → DlMrAlfA.js} +1 -1
- package/web/app/immutable/chunks/{BzirSHSv.js → Dm3wAkDL.js} +1 -1
- package/web/app/immutable/chunks/{B5qiyEpH.js → DpESY8ko.js} +1 -1
- package/web/app/immutable/chunks/{B_4WsP9b.js → DpvQ3NRH.js} +1 -1
- package/web/app/immutable/chunks/{JM7CQkWC.js → Dpvv-9m3.js} +1 -1
- package/web/app/immutable/chunks/{nwO3KCpP.js → DpxbS0Pj.js} +1 -1
- package/web/app/immutable/chunks/{BIGqOuh0.js → Drf1gLyo.js} +1 -1
- package/web/app/immutable/chunks/{Cp9EK0r2.js → DrkDJmY5.js} +1 -1
- package/web/app/immutable/chunks/{DpITHrfz.js → DsOS7N8Z.js} +1 -1
- package/web/app/immutable/chunks/{6paLMka3.js → Dt3xwKL6.js} +2 -2
- package/web/app/immutable/chunks/{CEEUgGO1.js → DtQHtXEW.js} +1 -1
- package/web/app/immutable/chunks/{DDb9H7X6.js → DvnO7gWT.js} +3 -3
- package/web/app/immutable/chunks/{BdEtT3Ti.js → DxWgWHgi.js} +1 -1
- package/web/app/immutable/chunks/{SRhgUz9l.js → DxuwadpA.js} +1 -1
- package/web/app/immutable/chunks/{DnKqeAaM.js → DyLERSuu.js} +1 -1
- package/web/app/immutable/chunks/{pMP23LzB.js → DyXOhKE5.js} +1 -1
- package/web/app/immutable/chunks/{BlIRL_82.js → Dyx6ysl7.js} +1 -1
- package/web/app/immutable/chunks/{CR-JVxLD.js → DzBJS0Lp.js} +1 -1
- package/web/app/immutable/chunks/{Bv_xG3nA.js → DzpuLv6U.js} +1 -1
- package/web/app/immutable/chunks/{BcKrkXju.js → E1uoF1cW.js} +1 -1
- package/web/app/immutable/chunks/{DsfORPYa.js → E8oicBhU.js} +1 -1
- package/web/app/immutable/chunks/{DV7x43jt.js → EQgYvydQ.js} +1 -1
- package/web/app/immutable/chunks/{9GO97JAL.js → FQkCsxt2.js} +1 -1
- package/web/app/immutable/chunks/{l7vsMvdj.js → HcbkpXC1.js} +2 -2
- package/web/app/immutable/chunks/{jVbx5uZK.js → HeVxSGdr.js} +1 -1
- package/web/app/immutable/chunks/{BoznPtpa.js → IG43rVtJ.js} +1 -1
- package/web/app/immutable/chunks/{CAfPEsZt.js → Ksiiix3Q.js} +1 -1
- package/web/app/immutable/chunks/{DlUpt_0u.js → LdXAlc1O.js} +1 -1
- package/web/app/immutable/chunks/{BzEFG3NN.js → Ly7eBIj5.js} +1 -1
- package/web/app/immutable/chunks/{B2jyBWIj.js → MoxNukrR.js} +1 -1
- package/web/app/immutable/chunks/{C-PQQ8rb.js → Nrq0Uf9_.js} +1 -1
- package/web/app/immutable/chunks/{DPR_clFy.js → OMssb4xF.js} +1 -1
- package/web/app/immutable/chunks/{C0Zo7HuP.js → PkPZtGfM.js} +1 -1
- package/web/app/immutable/chunks/{D1fDU8Ti.js → Pyf1FzKM.js} +1 -1
- package/web/app/immutable/chunks/{3qVSmuIV.js → QA00-uqv.js} +1 -1
- package/web/app/immutable/chunks/{BSygKG3g.js → QIFiwjW0.js} +3 -3
- package/web/app/immutable/chunks/{B5uejTJk.js → TN7R9Ny0.js} +1 -1
- package/web/app/immutable/chunks/{CVuncf5f.js → TXPMw3n4.js} +1 -1
- package/web/app/immutable/chunks/{B7y9pKDL.js → TyVpf8MX.js} +1 -1
- package/web/app/immutable/chunks/{fHygQTSC.js → UQ6MIVTw.js} +1 -1
- package/web/app/immutable/chunks/{yDmmPu6L.js → UnM4qztD.js} +1 -1
- package/web/app/immutable/chunks/{PhAbES0t.js → UqcU95a7.js} +1 -1
- package/web/app/immutable/chunks/{DLCFUd4s.js → VTJf_qPn.js} +1 -1
- package/web/app/immutable/chunks/{B8HnjSSF.js → W05hyx94.js} +1 -1
- package/web/app/immutable/chunks/{C2YpPfAS.js → XMluVOSf.js} +1 -1
- package/web/app/immutable/chunks/{BtBQ5qfh.js → Y4bYs1dr.js} +1 -1
- package/web/app/immutable/chunks/{B5tvpTFB.js → Y_tkjygB.js} +1 -1
- package/web/app/immutable/chunks/{DzqKdIr-.js → YbqMJoDi.js} +1 -1
- package/web/app/immutable/chunks/{CXeB7YFK.js → Z8DHXl17.js} +1 -1
- package/web/app/immutable/chunks/{CjjWPVbV.js → _HPNXgkR.js} +3 -3
- package/web/app/immutable/chunks/{Bf_nrOhg.js → aixoUWDq.js} +1 -1
- package/web/app/immutable/chunks/{BoG8wR7s.js → awY5HvZY.js} +1 -1
- package/web/app/immutable/chunks/{5-0LQoqd.js → bIL0xbKX.js} +1 -1
- package/web/app/immutable/chunks/{BByf3ILj.js → bojY7ttK.js} +1 -1
- package/web/app/immutable/chunks/{dmZv6JOg.js → cfiNEg68.js} +1 -1
- package/web/app/immutable/chunks/{DZScoaNb.js → dFhS46gw.js} +1 -1
- package/web/app/immutable/chunks/{DM1_VFfD.js → fC3yz20p.js} +1 -1
- package/web/app/immutable/chunks/{f5nWqjrx.js → h5ZeHogL.js} +1 -1
- package/web/app/immutable/chunks/{CsmNoTJl.js → hRfDutUE.js} +1 -1
- package/web/app/immutable/chunks/{C-G2u0Oe.js → hstOawAs.js} +1 -1
- package/web/app/immutable/chunks/{BbuLzldI.js → i8jM24jD.js} +1 -1
- package/web/app/immutable/chunks/{DmvYOHFs.js → ico0GHoP.js} +13 -13
- package/web/app/immutable/chunks/{Cp02CBjf.js → jyNUu-ZR.js} +1 -1
- package/web/app/immutable/chunks/{BDsciJGp.js → kAav5o2h.js} +1 -1
- package/web/app/immutable/chunks/{BV1ayWTC.js → lSLkjC_I.js} +1 -1
- package/web/app/immutable/chunks/{BuFDqZnJ.js → mRUS_S7Z.js} +1 -1
- package/web/app/immutable/chunks/{BHqp2vwo.js → maZzJmVw.js} +1 -1
- package/web/app/immutable/chunks/{BvbeTrka.js → r5JNAzEM.js} +1 -1
- package/web/app/immutable/chunks/{CXDUvPYf.js → rsUVVEzx.js} +1 -1
- package/web/app/immutable/chunks/{lTwh0Wzj.js → tHETzssD.js} +1 -1
- package/web/app/immutable/chunks/{Dmx5wWLe.js → v7JbBbwR.js} +1 -1
- package/web/app/immutable/chunks/{Cp7Byf5d.js → wBNgrgMC.js} +1 -1
- package/web/app/immutable/chunks/{DX9N1RQz.js → x-RVzKqZ.js} +1 -1
- package/web/app/immutable/chunks/{BKMQo7oP.js → yMcNgg0D.js} +1 -1
- package/web/app/immutable/chunks/{BNa9zzEx.js → yqEyUNVG.js} +1 -1
- package/web/app/immutable/chunks/{COjWFpJP.js → yy2JFRyT.js} +1 -1
- package/web/app/immutable/chunks/{7KxcPj98.js → zFAkpaJn.js} +1 -1
- package/web/app/immutable/entry/{app.CgTOio8y.js → app.gkm8TnXW.js} +3 -3
- package/web/app/immutable/entry/start.CMMmzvCE.js +1 -0
- package/web/app/immutable/nodes/{0.C2oVsoB8.js → 0.xKtnYOA2.js} +1 -1
- package/web/app/immutable/nodes/{1.riWgWdpy.js → 1.BMx4VsW1.js} +1 -1
- package/web/app/immutable/nodes/{10.DbjaWIBW.js → 10.HyXPJR8g.js} +5 -5
- package/web/app/immutable/nodes/{11.exvXwEGT.js → 11._cAIrch_.js} +1 -1
- package/web/app/immutable/nodes/{12.D6rxlIQy.js → 12.DOoAvwLA.js} +1 -1
- package/web/app/immutable/nodes/{13.CHYsmiD_.js → 13.Coj_sRB4.js} +1 -1
- package/web/app/immutable/nodes/{14.mG-YN9pn.js → 14.AVrz3ZLQ.js} +3 -3
- package/web/app/immutable/nodes/{15.D2k47bXC.js → 15.BGK-JRWm.js} +1 -1
- package/web/app/immutable/nodes/{16.BsFtzH0D.js → 16.CMkcwVoI.js} +1 -1
- package/web/app/immutable/nodes/{17.me_aOx8O.js → 17.BS5un5d0.js} +1 -1
- package/web/app/immutable/nodes/{18.BO1oZWgm.js → 18._hTG2-17.js} +1 -1
- package/web/app/immutable/nodes/{19.DPrP9Wtk.js → 19.DuCFyr_N.js} +2 -2
- package/web/app/immutable/nodes/{2.BpY-66TB.js → 2.uAqDAg4D.js} +4 -4
- package/web/app/immutable/nodes/{20.LbRPieV_.js → 20.C1pW6BvW.js} +1 -1
- package/web/app/immutable/nodes/{3.CriVb5Fs.js → 3.M-EbuqKW.js} +1 -1
- package/web/app/immutable/nodes/{4.dRoX-MYE.js → 4.ByPZ1Nrn.js} +1 -1
- package/web/app/immutable/nodes/{5.Bn3YBx-4.js → 5.DKAjjuf7.js} +1 -1
- package/web/app/immutable/nodes/{6.CgMdV-V1.js → 6.DOc_YxMK.js} +1 -1
- package/web/app/immutable/nodes/{7.FdAsp1bX.js → 7.gFNAyoNX.js} +1 -1
- package/web/app/immutable/nodes/{8.Da7xrRMP.js → 8.C_Kp8pWz.js} +1 -1
- package/web/app/immutable/nodes/{9.BnLzowQ-.js → 9.C6HX35Sq.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +49 -49
- package/web/index.html +19 -19
- package/web/app/immutable/assets/0.BmwjvpSF.css +0 -1
- package/web/app/immutable/chunks/CCIZBeez.js +0 -1
- package/web/app/immutable/chunks/CXdnCPBf.js +0 -3
- package/web/app/immutable/chunks/DWIoipce.js +0 -1
- package/web/app/immutable/chunks/Dws-34a7.js +0 -1
- package/web/app/immutable/chunks/Whej1Dge.js +0 -1
- package/web/app/immutable/entry/start.oAnCLCVf.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as Xt,bo as de,_ as aa,bw as Yt,bs as ge,bq as pr,b as Jt,bm as d}from"./Dws-34a7.js";import{bs as Zt,ca as se,aD as e,bH as c,a5 as F,bA as $,W as s,bn as Gt,bV as j,c9 as i,aA as ce,c6 as Bt,ay as ve,be as ot,b$ as ct,b_ as I,bO as m,bS as g,bl as C,aB as x,bj as oa,aw as ut,ai as ia,c5 as ur,a as Lr,a7 as Ue,aj as yt,cd as na,br as la,bf as sa}from"./3SdAC2_C.js";import{i as Y}from"./DLCFUd4s.js";import{k as Mr}from"./5-0LQoqd.js";import{g as Ut}from"./C-zB-6G6.js";import{c as Nt}from"./B5tvpTFB.js";import{s as Qe,g as jt,f as Kt}from"./BD9db4FR.js";import{b as Rr}from"./Dn334wJv.js";import{Jx as R,nY as jr,wf as Ur,we as Vr,LN as da,LO as ca,eK as ua,eL as fa,Ld as yr,m6 as nr,Cy as kr,sH as $r,ok as va,A3 as pa,ad as Ir,n_ as ga,K4 as ma,Kk as _a,ny as ha,iX as wa,vH as ba,Aw as xa,Lc as Pa}from"./4g_iHoQm.js";import{g as ya}from"./DWGXN6Nr.js";import{a as ka,h as $a,j as Ia,c as Sa,d as Ca,i as Fa,e as Da,f as Sr,g as Ta,b as lr}from"./BlIRL_82.js";import{bO as Ea,b$ as La,dH as Ma}from"./SbTG0nwQ.js";import{w as Cr,d as Ra}from"./wEnqV1Ol.js";import{f as ja}from"./B6eTPmJH.js";import{m as sr}from"./rXKOJqUt.js";import{f as Te}from"./BIGqOuh0.js";import{h as Ua}from"./BPuz5cN_.js";import"./D-rRuAXZ.js";import{F as dt,ac as Va,au as za,aZ as Aa,b3 as Ot,ct as Wa,cu as Na,bm as Ha,cS as Ba,c9 as Oa}from"./CGYPBD6G.js";import{E as qa,b as Ka,S as Fr}from"./jBG7W4tL.js";import{c as Xa}from"./ChTqQfQN.js";import"./DcOkWaeN.js";import{$ as Ya}from"./DmvYOHFs.js";import{i as dr,b as Ja,a as Za}from"./H2jLkRRS.js";import{C as fr,p as Ga}from"./CDAnHxmJ.js";import{M as Qa}from"./CObW_WD-.js";import{l as cr,m as zr}from"./B8HnjSSF.js";import"./C_SKcJv7.js";import"./DWa-2rkZ.js";import{M as Ht}from"./Bv_xG3nA.js";import{V as eo}from"./BSgFpkqa.js";import{bT as to,b7 as ro}from"./BoG8wR7s.js";import{g as ao}from"./B2CniqS1.js";import{H as oo}from"./Bqd7fdCF.js";import{g as io,W as no}from"./DlU1rxYV.js";import{b as lo,h as so}from"./DxC0zTSc.js";import{t as co}from"./Cp7Byf5d.js";const Dr=1024*1024,uo=5e3;function fo(A,_){if(A.length>Dr||new TextEncoder().encode(A).byteLength>Dr){_(null);return}let re;try{re=new Worker(new URL("/app/immutable/workers/html-file-preview.worker-BfFljPK-.js",import.meta.url),{type:"module"})}catch{_(null);return}let He=!1;const ee=setTimeout(()=>O(null),uo);function P(){He||(He=!0,clearTimeout(ee),re.terminate())}function O(ae){He||(P(),_(ae))}return re.onmessage=({data:ae})=>O(ae),re.onerror=ae=>{ae.preventDefault(),O(null)},re.postMessage(A),P}const Ar=R.createSelector((A,_)=>jr(A.pdfPreview.previews,_));var vo=x('<div class="flex shrink-0 flex-wrap items-center justify-center gap-2 border-b border-border p-2"><!> <span aria-live="polite"> </span> <!> <!> <span> </span> <!></div> <div class="min-h-0 flex-1 overflow-auto p-4"><canvas class="mx-auto block" role="img"></canvas></div>',1),po=x('<div class="flex h-full min-h-0 flex-col" data-testid="pdf-viewer"><!></div>');function vr(A,_){if(new.target)return Xt({component:vr,...A});Zt(_,!0);const re=()=>ge(ye,"$preview",He),[He,ee]=pr();let P=de(_,"workspaceId",7),O=de(_,"filePath",7),ae=de(_,"gitRootId",7);const Ee=crypto.randomUUID(),ye=Ar(Ee),be=new WeakMap;let oe=j(null),et=j(void 0),U=j(1),H=j(1),pe=j(!0),xe=j(!1),Le=j(null),W=j(0);const ke=i(()=>re()?.error??e(Le)),Ce=i(()=>e(ke)==="missing"?d.file_pdf_missing_error():e(ke)==="large"?d.file_pdf_large_error():e(ke)==="invalid"?d.file_pdf_invalid_error():e(ke)==="password"?d.file_pdf_password_error():d.file_pdf_load_error());se(()=>{const v=P(),f=O();e(W);const ie=crypto.randomUUID();return R.dispatch(Ur(Ee,ie,v,f,...ae()?[{gitRootId:ae()}]:[])),()=>{R.dispatch(Vr(Ee,ie))}}),se(()=>{const v=re()?.url;let f=!1,ie;if(c(oe,null),c(Le,null),c(pe,!0),c(U,1),c(H,1),!!v)return(async()=>{try{const{loadPdfDocument:y}=await aa(async()=>{const{loadPdfDocument:N}=await import("./cb1JHFKl.js");return{loadPdfDocument:N}},[],import.meta.url);if(f)return;ie=y(v);const J=await ie.promise;f||c(oe,J)}catch(y){if(f)return;c(Le,y instanceof Error&&y.name==="PasswordException"?"password":y instanceof Error&&y.name==="InvalidPDFException"?"invalid":"load",!0)}finally{f||c(pe,!1)}})(),()=>{f=!0,ie?.destroy()}}),se(()=>{const v=e(oe),f=e(et),ie=e(U),y=e(H);if(!v||!f)return;let J=!1,N,D;const fe=()=>{if(!D)return;const Z=(be.get(D)??1)-1;Z?be.set(D,Z):(be.delete(D),D.cleanup()),D=void 0};return c(xe,!0),(async()=>{try{if(D=await v.getPage(ie),be.set(D,(be.get(D)??0)+1),J){fe();return}const Z=D.getViewport({scale:y}),ne=Math.min(window.devicePixelRatio||1,2,Math.sqrt(16e6/(Z.width*Z.height)));f.width=Math.ceil(Z.width*ne),f.height=Math.ceil(Z.height*ne),f.style.width=`${Z.width}px`,f.style.height=`${Z.height}px`,N=D.render({canvas:f,viewport:Z,transform:[ne,0,0,ne,0,0]}),await N.promise}catch{J||c(Le,"invalid")}finally{J||c(xe,!1)}})(),()=>{J=!0,N?.cancel(),N?N.promise.then(fe,fe):fe()}});var qe={get workspaceId(){return P()},set workspaceId(v){P(v),ce()},get filePath(){return O()},set filePath(v){O(v),ce()},get gitRootId(){return ae()},set gitRootId(v){ae(v),ce()},$set:Yt,$on:(v,f)=>Jt(_,v,f)},Ve=po(),Ke=F(Ve);{var ue=v=>{{const f=y=>{ot();var J=ct();I(()=>m(J,e(Ce))),s(y,J)};let ie=i(()=>d.ui_combobox_retry_label());qa(v,{onRetry:()=>Bt(W),get retryLabel(){return e(ie)},class:"m-auto",message:f,$$slots:{message:!0}})}},a=v=>{{let f=i(()=>d.file_pdf_loading_label());Ka(v,{get label(){return e(f)},count:1,class:"p-4"})}},l=v=>{var f=vo(),ie=ve(f),y=F(ie);{let me=i(()=>e(U)<=1);Te(y,{variant:"ghost",size:"compact",get disabled(){return e(me)},onclick:()=>Bt(U,-1),children:(Me,tt)=>{ot();var _e=ct();I(Re=>m(_e,Re),[()=>d.file_pdf_previous_label()]),s(Me,_e)},$$slots:{default:!0}})}var J=g(y,2),N=C(J,!0),D=g(J,2);{let me=i(()=>e(U)>=e(oe).numPages);Te(D,{variant:"ghost",size:"compact",get disabled(){return e(me)},onclick:()=>Bt(U),children:(Me,tt)=>{ot();var _e=ct();I(Re=>m(_e,Re),[()=>d.file_pdf_next_label()]),s(Me,_e)},$$slots:{default:!0}})}var fe=g(D,2);{let me=i(()=>e(H)<=.25);Te(fe,{variant:"ghost",size:"compact",get disabled(){return e(me)},onclick:()=>c(H,Math.max(.25,e(H)-.25),!0),children:(Me,tt)=>{ot();var _e=ct();I(Re=>m(_e,Re),[()=>d.editor_fileViewer_zoomOut_tooltip()]),s(Me,_e)},$$slots:{default:!0}})}var Z=g(fe,2),ne=C(Z,!0),ft=g(Z,2);{let me=i(()=>e(H)>=3);Te(ft,{variant:"ghost",size:"compact",get disabled(){return e(me)},onclick:()=>c(H,Math.min(3,e(H)+.25),!0),children:(Me,tt)=>{ot();var _e=ct();I(Re=>m(_e,Re),[()=>d.editor_fileViewer_zoomIn_tooltip()]),s(Me,_e)},$$slots:{default:!0}})}$(ie);var vt=g(ie,2),pt=F(vt);let bt;Rr(pt,me=>c(et,me),()=>e(et)),$(vt),I((me,Me,tt)=>{m(N,me),m(ne,Me),Qe(vt,"aria-busy",e(xe)),Qe(pt,"aria-label",tt),bt=jt(pt,"",bt,{visibility:e(xe)?"hidden":"visible"})},[()=>d.file_pdf_page_label({page:cr(e(U)),total:cr(e(oe).numPages)}),()=>zr(e(H),{style:"percent"}),()=>d.file_pdf_canvas_ariaLabel({name:O(),page:cr(e(U))})]),s(v,f)};Y(Ke,v=>{e(ke)?v(ue):e(pe)||re()?.status==="loading"?v(a,1):e(oe)&&v(l,2)})}$(Ve),s(A,Ve);var q=Gt(qe);return ee(),q}const go=R.createSelector((A,_)=>jr(A.videoPreview.previews,_));var mo=x('<p role="status"> </p>'),_o=x('<p role="alert"> </p>'),ho=x('<div class="flex flex-col items-center gap-3 p-6 text-center text-sm text-subtle"><p class="break-all"> </p> <!> <!></div>'),wo=x('<video controls="" preload="metadata" playsinline="" class="max-w-full max-h-full" data-testid="file-video"> </video>',2),bo=x('<div class="min-h-0 flex-1 flex items-center justify-center bg-background"><!></div>');function Wr(A,_){if(new.target)return Xt({component:Wr,...A});Zt(_,!0);const re=()=>ge(et,"$preview",He),[He,ee]=pr();let P=de(_,"sourceUrl",7),O=de(_,"fileName",7),ae=de(_,"allowDownload",7),Ee=de(_,"downloading",7),ye=de(_,"onDownload",7),be=j(null);const oe=crypto.randomUUID(),et=go(oe),U=i(()=>re()?.status==="loading"),H=i(()=>e(be)??re()?.error);let pe=!1,xe=!1;oa(()=>{xe=!0,R.dispatch(da(oe))});function Le(){if(xe||e(U))return;const a=P().startsWith("workspace-file://")?new URL(P()):null;if(pe||!a||!a.pathname.toLowerCase().endsWith(".mp4")){c(be,"unsupported");return}pe=!0,a.searchParams.set("preview","h264"),R.dispatch(ca(oe,a.hostname,a.toString()))}function W(a){if(xe)return;const l=a.currentTarget.error?.code;l===2?c(be,"network"):l!==1&&Le()}var ke={get sourceUrl(){return P()},set sourceUrl(a){P(a),ce()},get fileName(){return O()},set fileName(a){O(a),ce()},get allowDownload(){return ae()},set allowDownload(a){ae(a),ce()},get downloading(){return Ee()},set downloading(a){Ee(a),ce()},get onDownload(){return ye()},set onDownload(a){ye(a),ce()},$set:Yt,$on:(a,l)=>Jt(_,a,l)},Ce=bo(),qe=F(Ce);{var Ve=a=>{var l=ho(),q=F(l),v=C(q,!0),f=g(q,2);{var ie=D=>{var fe=mo(),Z=C(fe,!0);I(ne=>m(Z,ne),[()=>d.editor_fileViewer_videoPreparing_label()]),s(D,fe)},y=D=>{var fe=_o(),Z=C(fe,!0);I(ne=>m(Z,ne),[()=>e(H)==="network"?d.editor_fileViewer_videoLoad_error():d.editor_fileViewer_videoUnsupported_label()]),s(D,fe)};Y(f,D=>{e(U)?D(ie):D(y,-1)})}var J=g(f,2);{var N=D=>{Te(D,{variant:"secondary",size:"sm",get onclick(){return ye()},get disabled(){return Ee()},children:(fe,Z)=>{ot();var ne=ct();I(ft=>m(ne,ft),[()=>d.layout_fileTab_downloadFile_label()]),s(fe,ne)},$$slots:{default:!0}})};Y(J,D=>{ae()&&D(N)})}$(l),I(()=>m(v,O())),s(a,l)},Ke=a=>{var l=wo(),q=C(l,!0);I(v=>{Qe(l,"src",re()?.url??P()),m(q,v)},[()=>d.editor_fileViewer_videoUnsupported_label()]),ut("error",l,W),ut("loadedmetadata",l,v=>{v.currentTarget.videoWidth===0&&Le()}),s(a,l)};Y(qe,a=>{e(H)||e(U)?a(Ve):a(Ke,-1)})}$(Ce),s(A,Ce);var ue=Gt(ke);return ee(),ue}var xo=x('<!> <span class="text-xs text-subtle min-w-[50px] text-center"> </span> <!> <div class="w-px h-5 bg-border mx-1"></div>',1),Po=x('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="w-px h-5 bg-border mx-1"></div> <!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),yo=x('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),ko=x('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3"></path></svg></div> <div class="text-sm text-subtle mb-4"> </div> <audio controls="" class="w-full max-w-md"><source/> </audio></div>'),$o=x("<!> ",1),Io=x('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"></path></svg></div> <p class="text-sm text-subtle mb-4"> </p> <!></div>'),So=x('<th class="border border-border px-2 py-1 text-left text-xs font-medium bg-muted"> </th>'),Co=x('<td class="border border-border px-2 py-1 text-xs"> </td>'),Fo=x("<tr></tr>"),Do=x('<div class="flex-1 overflow-auto p-4"><table class="w-full border-collapse"><thead><tr></tr></thead><tbody></tbody></table></div>'),To=x('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),Eo=x('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),Lo=x('<div class="h-full flex flex-col"><!></div>');function qt(A,_){if(new.target)return Xt({component:qt,...A});Zt(_,!0);const re=t=>{var o=xo(),u=ve(o);{let V=i(()=>d.editor_fileViewer_zoomOut_tooltip());Te(u,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:fe,get title(){return e(V)},children:(T,K)=>{dt(T,{get icon(){return Wa},size:"sm"})},$$slots:{default:!0}})}var w=g(u,2),k=C(w,!0),E=g(w,2);{let V=i(()=>d.editor_fileViewer_zoomIn_tooltip());Te(E,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:D,get title(){return e(V)},children:(T,K)=>{dt(T,{get icon(){return Na},size:"sm"})},$$slots:{default:!0}})}ot(2),I(()=>m(k,e(Le))),s(t,o)},He=Xa("FileViewer");let ee=de(_,"filePath",7),P=de(_,"fileContent",7,""),O=de(_,"sourceUrl",7),ae=de(_,"language",7),Ee=de(_,"isBinary",7),ye=de(_,"allowDownload",7,!0),be=de(_,"onDownload",7),oe=de(_,"downloading",7,!1);const et=t=>{const o=t.split(".").pop()?.toLowerCase()||"";return["png","jpg","jpeg","gif","webp","bmp","ico","avif"].includes(o)?"image":o==="svg"?"svg":["mp4","webm","ogg","mov","avi"].includes(o)?"video":["mp3","wav","ogg","m4a","flac"].includes(o)?"audio":o==="pdf"?"pdf":["md","markdown"].includes(o)?"markdown":o==="json"?"json":o==="csv"?"csv":["yaml","yml"].includes(o)?"yaml":o==="xml"?"xml":["zip","tar","gz","rar","7z","bz2"].includes(o)?"archive":["exe","dll","so","dylib","wasm"].includes(o)?"binary":"text"},U=i(()=>et(ee())),H=i(()=>ee().split("/").pop()||d.editor_fileViewer_unknown_fallback());let pe=j(100),xe=j(0);const Le=i(()=>zr(e(pe)/100,{style:"percent",maximumFractionDigits:0}));let W=j(!1),ke=j(0),Ce=j(0),qe=j(0),Ve=j(0),Ke=j(!1),ue=null;function a(){const t=ue;ue=null,c(Ke,!1),t?.viewport.hasPointerCapture(t.pointerId)&&t.viewport.releasePointerCapture(t.pointerId)}function l(t){if(t.button!==0||!t.isPrimary||ue)return;const o=t.currentTarget;o.setPointerCapture(t.pointerId),ue={pointerId:t.pointerId,x:t.clientX,y:t.clientY,viewport:o},c(Ke,!0),t.preventDefault()}function q(t){if(!(!ue||t.pointerId!==ue.pointerId)){if((t.buttons&1)===0){a();return}c(qe,ue.viewport.scrollLeft,!0),c(Ve,ue.viewport.scrollTop,!0),c(ke,e(ke)+(t.clientX-ue.x)),c(Ce,e(Ce)+(t.clientY-ue.y)),ue.x=t.clientX,ue.y=t.clientY}}function v(t){t.pointerId===ue?.pointerId&&a()}se(()=>{ee(),O(),e(pe),e(xe),c(qe,0),c(Ve,0)}),se(()=>(ee(),O(),ur(()=>{a(),c(ke,0),c(Ce,0)}),a));const f=t=>{const o=t.split(".").pop()?.toLowerCase();return o==="jpg"||o==="jpeg"?"image/jpeg":o==="png"?"image/png":o==="gif"?"image/gif":o==="webp"?"image/webp":"application/octet-stream"},ie=t=>{const o=t.split(".").pop()?.toLowerCase();if(o==="mp4")return"video/mp4";if(o==="webm")return"video/webm"},y=()=>{if(O())return O();if(typeof P()=="string")return P().startsWith("data:")||P().startsWith("http")?P():Ee()?`data:${f(ee())};base64,${P()}`:`data:${f(ee())};base64,${P()}`;if(P()instanceof ArrayBuffer){const o=new Uint8Array(P()).reduce((w,k)=>w+String.fromCharCode(k),""),u=btoa(o);return`data:${f(ee())};base64,${u}`}return""},J=()=>{if(O())return O();const t=ie(ee());if(!t)return"";if(typeof P()=="string")return P().startsWith("data:")||P().startsWith("http")?P():`data:${t};base64,${P()}`;const o=new Uint8Array(P()),u=[],w=32768;for(let k=0;k<o.length;k+=w)u.push(String.fromCharCode(...o.subarray(k,k+w)));return`data:${t};base64,${btoa(u.join(""))}`},N=()=>{const t=typeof P()=="string"?new TextEncoder().encode(P()):new Uint8Array(P()),o=[],u=32768;for(let w=0;w<t.length;w+=u)o.push(String.fromCharCode(...t.subarray(w,w+u)));return`data:image/svg+xml;base64,${btoa(o.join(""))}`},D=()=>{c(pe,Math.min(e(pe)+25,500),!0)},fe=()=>{c(pe,Math.max(e(pe)-25,25),!0)},Z=()=>{c(xe,(e(xe)+90)%360)},ne=()=>{if(!ye()||oe())return;if(be()){be()();return}const t=document.createElement("a");t.href=e(U)==="video"?J():e(U)==="svg"?N():y(),t.download=e(H),t.click()},ft=async()=>{try{const t=y(),o=new Image;o.crossOrigin="anonymous";const u=await new Promise((w,k)=>{o.onload=()=>{const E=document.createElement("canvas");E.width=o.naturalWidth,E.height=o.naturalHeight;const V=E.getContext("2d");if(!V){k(new Error("Failed to get canvas context"));return}V.drawImage(o,0,0),E.toBlob(T=>{T?w(T):k(new Error("Failed to create blob from canvas"))},"image/png",1)},o.onerror=()=>k(new Error("Failed to load image")),o.src=t});await navigator.clipboard.write([new ClipboardItem({"image/png":u})]),c(W,!0),setTimeout(()=>c(W,!1),2e3)}catch(t){He.error("Failed to copy image:",t)}},vt=t=>{try{const o=JSON.parse(t);return JSON.stringify(o,null,2)}catch{return t}},pt=t=>t.split(`
|
|
1
|
+
import{t as Xt,bo as de,_ as aa,bw as Yt,bs as ge,bq as pr,b as Jt,bm as d}from"./DWvCfaBg.js";import{bs as Zt,ca as se,aD as e,bH as c,a5 as F,bA as $,W as s,bn as Gt,bV as j,c9 as i,aA as ce,c6 as Bt,ay as ve,be as ot,b$ as ct,b_ as I,bO as m,bS as g,bl as C,aB as x,bj as oa,aw as ut,ai as ia,c5 as ur,a as Lr,a7 as Ue,aj as yt,cd as na,br as la,bf as sa}from"./3SdAC2_C.js";import{i as Y}from"./VTJf_qPn.js";import{k as Mr}from"./bIL0xbKX.js";import{g as Ut}from"./CueOVPTy.js";import{c as Nt}from"./Y_tkjygB.js";import{s as Qe,g as jt,f as Kt}from"./BCuI_zgX.js";import{b as Rr}from"./Dn334wJv.js";import{Jx as R,nY as jr,wf as Ur,we as Vr,LN as da,LO as ca,eK as ua,eL as fa,Ld as yr,m6 as nr,Cy as kr,sH as $r,ok as va,A3 as pa,ad as Ir,n_ as ga,K4 as ma,Kk as _a,ny as ha,iX as wa,vH as ba,Aw as xa,Lc as Pa}from"./CIoJPvjg.js";import{g as ya}from"./DWGXN6Nr.js";import{a as ka,h as $a,j as Ia,c as Sa,d as Ca,i as Fa,e as Da,f as Sr,g as Ta,b as lr}from"./Dyx6ysl7.js";import{bO as Ea,b$ as La,dH as Ma}from"./3Kr2ijlK.js";import{w as Cr,d as Ra}from"./wEnqV1Ol.js";import{f as ja}from"./DJJ2Xrlq.js";import{m as sr}from"./BXHbm15d.js";import{f as Te}from"./Drf1gLyo.js";import{h as Ua}from"./CIKXOyvw.js";import"./Bu3PKqut.js";import{F as dt,ac as Va,au as za,aZ as Aa,b3 as Ot,ct as Wa,cu as Na,bm as Ha,cS as Ba,c9 as Oa}from"./D7yetF0v.js";import{E as qa,b as Ka,S as Fr}from"./CTqRHXfu.js";import{c as Xa}from"./ChTqQfQN.js";import"./2aKRVAvL.js";import{$ as Ya}from"./ico0GHoP.js";import{i as dr,b as Ja,a as Za}from"./H2jLkRRS.js";import{C as fr,p as Ga}from"./CyHe7TdT.js";import{M as Qa}from"./BDbFQqI8.js";import{l as cr,m as zr}from"./W05hyx94.js";import"./DeY70dof.js";import"./CdGl_2eX.js";import{M as Ht}from"./DzpuLv6U.js";import{V as eo}from"./DGdWzkgm.js";import{bT as to,b7 as ro}from"./awY5HvZY.js";import{g as ao}from"./D22j4iWy.js";import{H as oo}from"./Bqd7fdCF.js";import{g as io,W as no}from"./7i0OJtNQ.js";import{b as lo,h as so}from"./BUTuN2nE.js";import{t as co}from"./wBNgrgMC.js";const Dr=1024*1024,uo=5e3;function fo(A,_){if(A.length>Dr||new TextEncoder().encode(A).byteLength>Dr){_(null);return}let re;try{re=new Worker(new URL("/app/immutable/workers/html-file-preview.worker-BfFljPK-.js",import.meta.url),{type:"module"})}catch{_(null);return}let He=!1;const ee=setTimeout(()=>O(null),uo);function P(){He||(He=!0,clearTimeout(ee),re.terminate())}function O(ae){He||(P(),_(ae))}return re.onmessage=({data:ae})=>O(ae),re.onerror=ae=>{ae.preventDefault(),O(null)},re.postMessage(A),P}const Ar=R.createSelector((A,_)=>jr(A.pdfPreview.previews,_));var vo=x('<div class="flex shrink-0 flex-wrap items-center justify-center gap-2 border-b border-border p-2"><!> <span aria-live="polite"> </span> <!> <!> <span> </span> <!></div> <div class="min-h-0 flex-1 overflow-auto p-4"><canvas class="mx-auto block" role="img"></canvas></div>',1),po=x('<div class="flex h-full min-h-0 flex-col" data-testid="pdf-viewer"><!></div>');function vr(A,_){if(new.target)return Xt({component:vr,...A});Zt(_,!0);const re=()=>ge(ye,"$preview",He),[He,ee]=pr();let P=de(_,"workspaceId",7),O=de(_,"filePath",7),ae=de(_,"gitRootId",7);const Ee=crypto.randomUUID(),ye=Ar(Ee),be=new WeakMap;let oe=j(null),et=j(void 0),U=j(1),H=j(1),pe=j(!0),xe=j(!1),Le=j(null),W=j(0);const ke=i(()=>re()?.error??e(Le)),Ce=i(()=>e(ke)==="missing"?d.file_pdf_missing_error():e(ke)==="large"?d.file_pdf_large_error():e(ke)==="invalid"?d.file_pdf_invalid_error():e(ke)==="password"?d.file_pdf_password_error():d.file_pdf_load_error());se(()=>{const v=P(),f=O();e(W);const ie=crypto.randomUUID();return R.dispatch(Ur(Ee,ie,v,f,...ae()?[{gitRootId:ae()}]:[])),()=>{R.dispatch(Vr(Ee,ie))}}),se(()=>{const v=re()?.url;let f=!1,ie;if(c(oe,null),c(Le,null),c(pe,!0),c(U,1),c(H,1),!!v)return(async()=>{try{const{loadPdfDocument:y}=await aa(async()=>{const{loadPdfDocument:N}=await import("./cb1JHFKl.js");return{loadPdfDocument:N}},[],import.meta.url);if(f)return;ie=y(v);const J=await ie.promise;f||c(oe,J)}catch(y){if(f)return;c(Le,y instanceof Error&&y.name==="PasswordException"?"password":y instanceof Error&&y.name==="InvalidPDFException"?"invalid":"load",!0)}finally{f||c(pe,!1)}})(),()=>{f=!0,ie?.destroy()}}),se(()=>{const v=e(oe),f=e(et),ie=e(U),y=e(H);if(!v||!f)return;let J=!1,N,D;const fe=()=>{if(!D)return;const Z=(be.get(D)??1)-1;Z?be.set(D,Z):(be.delete(D),D.cleanup()),D=void 0};return c(xe,!0),(async()=>{try{if(D=await v.getPage(ie),be.set(D,(be.get(D)??0)+1),J){fe();return}const Z=D.getViewport({scale:y}),ne=Math.min(window.devicePixelRatio||1,2,Math.sqrt(16e6/(Z.width*Z.height)));f.width=Math.ceil(Z.width*ne),f.height=Math.ceil(Z.height*ne),f.style.width=`${Z.width}px`,f.style.height=`${Z.height}px`,N=D.render({canvas:f,viewport:Z,transform:[ne,0,0,ne,0,0]}),await N.promise}catch{J||c(Le,"invalid")}finally{J||c(xe,!1)}})(),()=>{J=!0,N?.cancel(),N?N.promise.then(fe,fe):fe()}});var qe={get workspaceId(){return P()},set workspaceId(v){P(v),ce()},get filePath(){return O()},set filePath(v){O(v),ce()},get gitRootId(){return ae()},set gitRootId(v){ae(v),ce()},$set:Yt,$on:(v,f)=>Jt(_,v,f)},Ve=po(),Ke=F(Ve);{var ue=v=>{{const f=y=>{ot();var J=ct();I(()=>m(J,e(Ce))),s(y,J)};let ie=i(()=>d.ui_combobox_retry_label());qa(v,{onRetry:()=>Bt(W),get retryLabel(){return e(ie)},class:"m-auto",message:f,$$slots:{message:!0}})}},a=v=>{{let f=i(()=>d.file_pdf_loading_label());Ka(v,{get label(){return e(f)},count:1,class:"p-4"})}},l=v=>{var f=vo(),ie=ve(f),y=F(ie);{let me=i(()=>e(U)<=1);Te(y,{variant:"ghost",size:"compact",get disabled(){return e(me)},onclick:()=>Bt(U,-1),children:(Me,tt)=>{ot();var _e=ct();I(Re=>m(_e,Re),[()=>d.file_pdf_previous_label()]),s(Me,_e)},$$slots:{default:!0}})}var J=g(y,2),N=C(J,!0),D=g(J,2);{let me=i(()=>e(U)>=e(oe).numPages);Te(D,{variant:"ghost",size:"compact",get disabled(){return e(me)},onclick:()=>Bt(U),children:(Me,tt)=>{ot();var _e=ct();I(Re=>m(_e,Re),[()=>d.file_pdf_next_label()]),s(Me,_e)},$$slots:{default:!0}})}var fe=g(D,2);{let me=i(()=>e(H)<=.25);Te(fe,{variant:"ghost",size:"compact",get disabled(){return e(me)},onclick:()=>c(H,Math.max(.25,e(H)-.25),!0),children:(Me,tt)=>{ot();var _e=ct();I(Re=>m(_e,Re),[()=>d.editor_fileViewer_zoomOut_tooltip()]),s(Me,_e)},$$slots:{default:!0}})}var Z=g(fe,2),ne=C(Z,!0),ft=g(Z,2);{let me=i(()=>e(H)>=3);Te(ft,{variant:"ghost",size:"compact",get disabled(){return e(me)},onclick:()=>c(H,Math.min(3,e(H)+.25),!0),children:(Me,tt)=>{ot();var _e=ct();I(Re=>m(_e,Re),[()=>d.editor_fileViewer_zoomIn_tooltip()]),s(Me,_e)},$$slots:{default:!0}})}$(ie);var vt=g(ie,2),pt=F(vt);let bt;Rr(pt,me=>c(et,me),()=>e(et)),$(vt),I((me,Me,tt)=>{m(N,me),m(ne,Me),Qe(vt,"aria-busy",e(xe)),Qe(pt,"aria-label",tt),bt=jt(pt,"",bt,{visibility:e(xe)?"hidden":"visible"})},[()=>d.file_pdf_page_label({page:cr(e(U)),total:cr(e(oe).numPages)}),()=>zr(e(H),{style:"percent"}),()=>d.file_pdf_canvas_ariaLabel({name:O(),page:cr(e(U))})]),s(v,f)};Y(Ke,v=>{e(ke)?v(ue):e(pe)||re()?.status==="loading"?v(a,1):e(oe)&&v(l,2)})}$(Ve),s(A,Ve);var q=Gt(qe);return ee(),q}const go=R.createSelector((A,_)=>jr(A.videoPreview.previews,_));var mo=x('<p role="status"> </p>'),_o=x('<p role="alert"> </p>'),ho=x('<div class="flex flex-col items-center gap-3 p-6 text-center text-sm text-subtle"><p class="break-all"> </p> <!> <!></div>'),wo=x('<video controls="" preload="metadata" playsinline="" class="max-w-full max-h-full" data-testid="file-video"> </video>',2),bo=x('<div class="min-h-0 flex-1 flex items-center justify-center bg-background"><!></div>');function Wr(A,_){if(new.target)return Xt({component:Wr,...A});Zt(_,!0);const re=()=>ge(et,"$preview",He),[He,ee]=pr();let P=de(_,"sourceUrl",7),O=de(_,"fileName",7),ae=de(_,"allowDownload",7),Ee=de(_,"downloading",7),ye=de(_,"onDownload",7),be=j(null);const oe=crypto.randomUUID(),et=go(oe),U=i(()=>re()?.status==="loading"),H=i(()=>e(be)??re()?.error);let pe=!1,xe=!1;oa(()=>{xe=!0,R.dispatch(da(oe))});function Le(){if(xe||e(U))return;const a=P().startsWith("workspace-file://")?new URL(P()):null;if(pe||!a||!a.pathname.toLowerCase().endsWith(".mp4")){c(be,"unsupported");return}pe=!0,a.searchParams.set("preview","h264"),R.dispatch(ca(oe,a.hostname,a.toString()))}function W(a){if(xe)return;const l=a.currentTarget.error?.code;l===2?c(be,"network"):l!==1&&Le()}var ke={get sourceUrl(){return P()},set sourceUrl(a){P(a),ce()},get fileName(){return O()},set fileName(a){O(a),ce()},get allowDownload(){return ae()},set allowDownload(a){ae(a),ce()},get downloading(){return Ee()},set downloading(a){Ee(a),ce()},get onDownload(){return ye()},set onDownload(a){ye(a),ce()},$set:Yt,$on:(a,l)=>Jt(_,a,l)},Ce=bo(),qe=F(Ce);{var Ve=a=>{var l=ho(),q=F(l),v=C(q,!0),f=g(q,2);{var ie=D=>{var fe=mo(),Z=C(fe,!0);I(ne=>m(Z,ne),[()=>d.editor_fileViewer_videoPreparing_label()]),s(D,fe)},y=D=>{var fe=_o(),Z=C(fe,!0);I(ne=>m(Z,ne),[()=>e(H)==="network"?d.editor_fileViewer_videoLoad_error():d.editor_fileViewer_videoUnsupported_label()]),s(D,fe)};Y(f,D=>{e(U)?D(ie):D(y,-1)})}var J=g(f,2);{var N=D=>{Te(D,{variant:"secondary",size:"sm",get onclick(){return ye()},get disabled(){return Ee()},children:(fe,Z)=>{ot();var ne=ct();I(ft=>m(ne,ft),[()=>d.layout_fileTab_downloadFile_label()]),s(fe,ne)},$$slots:{default:!0}})};Y(J,D=>{ae()&&D(N)})}$(l),I(()=>m(v,O())),s(a,l)},Ke=a=>{var l=wo(),q=C(l,!0);I(v=>{Qe(l,"src",re()?.url??P()),m(q,v)},[()=>d.editor_fileViewer_videoUnsupported_label()]),ut("error",l,W),ut("loadedmetadata",l,v=>{v.currentTarget.videoWidth===0&&Le()}),s(a,l)};Y(qe,a=>{e(H)||e(U)?a(Ve):a(Ke,-1)})}$(Ce),s(A,Ce);var ue=Gt(ke);return ee(),ue}var xo=x('<!> <span class="text-xs text-subtle min-w-[50px] text-center"> </span> <!> <div class="w-px h-5 bg-border mx-1"></div>',1),Po=x('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="w-px h-5 bg-border mx-1"></div> <!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),yo=x('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),ko=x('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3"></path></svg></div> <div class="text-sm text-subtle mb-4"> </div> <audio controls="" class="w-full max-w-md"><source/> </audio></div>'),$o=x("<!> ",1),Io=x('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"></path></svg></div> <p class="text-sm text-subtle mb-4"> </p> <!></div>'),So=x('<th class="border border-border px-2 py-1 text-left text-xs font-medium bg-muted"> </th>'),Co=x('<td class="border border-border px-2 py-1 text-xs"> </td>'),Fo=x("<tr></tr>"),Do=x('<div class="flex-1 overflow-auto p-4"><table class="w-full border-collapse"><thead><tr></tr></thead><tbody></tbody></table></div>'),To=x('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),Eo=x('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),Lo=x('<div class="h-full flex flex-col"><!></div>');function qt(A,_){if(new.target)return Xt({component:qt,...A});Zt(_,!0);const re=t=>{var o=xo(),u=ve(o);{let V=i(()=>d.editor_fileViewer_zoomOut_tooltip());Te(u,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:fe,get title(){return e(V)},children:(T,K)=>{dt(T,{get icon(){return Wa},size:"sm"})},$$slots:{default:!0}})}var w=g(u,2),k=C(w,!0),E=g(w,2);{let V=i(()=>d.editor_fileViewer_zoomIn_tooltip());Te(E,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:D,get title(){return e(V)},children:(T,K)=>{dt(T,{get icon(){return Na},size:"sm"})},$$slots:{default:!0}})}ot(2),I(()=>m(k,e(Le))),s(t,o)},He=Xa("FileViewer");let ee=de(_,"filePath",7),P=de(_,"fileContent",7,""),O=de(_,"sourceUrl",7),ae=de(_,"language",7),Ee=de(_,"isBinary",7),ye=de(_,"allowDownload",7,!0),be=de(_,"onDownload",7),oe=de(_,"downloading",7,!1);const et=t=>{const o=t.split(".").pop()?.toLowerCase()||"";return["png","jpg","jpeg","gif","webp","bmp","ico","avif"].includes(o)?"image":o==="svg"?"svg":["mp4","webm","ogg","mov","avi"].includes(o)?"video":["mp3","wav","ogg","m4a","flac"].includes(o)?"audio":o==="pdf"?"pdf":["md","markdown"].includes(o)?"markdown":o==="json"?"json":o==="csv"?"csv":["yaml","yml"].includes(o)?"yaml":o==="xml"?"xml":["zip","tar","gz","rar","7z","bz2"].includes(o)?"archive":["exe","dll","so","dylib","wasm"].includes(o)?"binary":"text"},U=i(()=>et(ee())),H=i(()=>ee().split("/").pop()||d.editor_fileViewer_unknown_fallback());let pe=j(100),xe=j(0);const Le=i(()=>zr(e(pe)/100,{style:"percent",maximumFractionDigits:0}));let W=j(!1),ke=j(0),Ce=j(0),qe=j(0),Ve=j(0),Ke=j(!1),ue=null;function a(){const t=ue;ue=null,c(Ke,!1),t?.viewport.hasPointerCapture(t.pointerId)&&t.viewport.releasePointerCapture(t.pointerId)}function l(t){if(t.button!==0||!t.isPrimary||ue)return;const o=t.currentTarget;o.setPointerCapture(t.pointerId),ue={pointerId:t.pointerId,x:t.clientX,y:t.clientY,viewport:o},c(Ke,!0),t.preventDefault()}function q(t){if(!(!ue||t.pointerId!==ue.pointerId)){if((t.buttons&1)===0){a();return}c(qe,ue.viewport.scrollLeft,!0),c(Ve,ue.viewport.scrollTop,!0),c(ke,e(ke)+(t.clientX-ue.x)),c(Ce,e(Ce)+(t.clientY-ue.y)),ue.x=t.clientX,ue.y=t.clientY}}function v(t){t.pointerId===ue?.pointerId&&a()}se(()=>{ee(),O(),e(pe),e(xe),c(qe,0),c(Ve,0)}),se(()=>(ee(),O(),ur(()=>{a(),c(ke,0),c(Ce,0)}),a));const f=t=>{const o=t.split(".").pop()?.toLowerCase();return o==="jpg"||o==="jpeg"?"image/jpeg":o==="png"?"image/png":o==="gif"?"image/gif":o==="webp"?"image/webp":"application/octet-stream"},ie=t=>{const o=t.split(".").pop()?.toLowerCase();if(o==="mp4")return"video/mp4";if(o==="webm")return"video/webm"},y=()=>{if(O())return O();if(typeof P()=="string")return P().startsWith("data:")||P().startsWith("http")?P():Ee()?`data:${f(ee())};base64,${P()}`:`data:${f(ee())};base64,${P()}`;if(P()instanceof ArrayBuffer){const o=new Uint8Array(P()).reduce((w,k)=>w+String.fromCharCode(k),""),u=btoa(o);return`data:${f(ee())};base64,${u}`}return""},J=()=>{if(O())return O();const t=ie(ee());if(!t)return"";if(typeof P()=="string")return P().startsWith("data:")||P().startsWith("http")?P():`data:${t};base64,${P()}`;const o=new Uint8Array(P()),u=[],w=32768;for(let k=0;k<o.length;k+=w)u.push(String.fromCharCode(...o.subarray(k,k+w)));return`data:${t};base64,${btoa(u.join(""))}`},N=()=>{const t=typeof P()=="string"?new TextEncoder().encode(P()):new Uint8Array(P()),o=[],u=32768;for(let w=0;w<t.length;w+=u)o.push(String.fromCharCode(...t.subarray(w,w+u)));return`data:image/svg+xml;base64,${btoa(o.join(""))}`},D=()=>{c(pe,Math.min(e(pe)+25,500),!0)},fe=()=>{c(pe,Math.max(e(pe)-25,25),!0)},Z=()=>{c(xe,(e(xe)+90)%360)},ne=()=>{if(!ye()||oe())return;if(be()){be()();return}const t=document.createElement("a");t.href=e(U)==="video"?J():e(U)==="svg"?N():y(),t.download=e(H),t.click()},ft=async()=>{try{const t=y(),o=new Image;o.crossOrigin="anonymous";const u=await new Promise((w,k)=>{o.onload=()=>{const E=document.createElement("canvas");E.width=o.naturalWidth,E.height=o.naturalHeight;const V=E.getContext("2d");if(!V){k(new Error("Failed to get canvas context"));return}V.drawImage(o,0,0),E.toBlob(T=>{T?w(T):k(new Error("Failed to create blob from canvas"))},"image/png",1)},o.onerror=()=>k(new Error("Failed to load image")),o.src=t});await navigator.clipboard.write([new ClipboardItem({"image/png":u})]),c(W,!0),setTimeout(()=>c(W,!1),2e3)}catch(t){He.error("Failed to copy image:",t)}},vt=t=>{try{const o=JSON.parse(t);return JSON.stringify(o,null,2)}catch{return t}},pt=t=>t.split(`
|
|
2
2
|
`).map(u=>u.split(",").map(w=>w.trim()));var bt={get filePath(){return ee()},set filePath(t){ee(t),ce()},get fileContent(){return P()},set fileContent(t=""){P(t),ce()},get sourceUrl(){return O()},set sourceUrl(t){O(t),ce()},get language(){return ae()},set language(t){ae(t),ce()},get isBinary(){return Ee()},set isBinary(t){Ee(t),ce()},get allowDownload(){return ye()},set allowDownload(t=!0){ye(t),ce()},get onDownload(){return be()},set onDownload(t){be(t),ce()},get downloading(){return oe()},set downloading(t=!1){oe(t),ce()},$set:Yt,$on:(t,o)=>Jt(_,t,o)},me=Lo();ut("blur",Lr,a);var Me=F(me);{var tt=t=>{var o=Po(),u=F(o),w=F(u);re(w);var k=g(w,2);{let Pe=i(()=>d.editor_fileViewer_rotate_tooltip());Te(k,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:Z,get title(){return e(Pe)},children:(Ae,Ye)=>{dt(Ae,{get icon(){return Va},size:"sm"})},$$slots:{default:!0}})}var E=g(k,4);{let Pe=i(()=>d.editor_fileViewer_copyImage_tooltip());Te(E,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:ft,get title(){return e(Pe)},children:(Ae,Ye)=>{var rt=Ue(),Je=ve(rt);{var $t=Fe=>{dt(Fe,{get icon(){return za},size:"sm",class:"text-green-500"})},Vt=Fe=>{dt(Fe,{get icon(){return Aa},size:"sm"})};Y(Je,Fe=>{e(W)?Fe($t):Fe(Vt,-1)})}s(Ae,rt)},$$slots:{default:!0}})}var V=g(E,2);{let Pe=i(()=>!ye()||oe()),Ae=i(()=>d.editor_fileViewer_download_tooltip());Te(V,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:ne,get disabled(){return e(Pe)},get title(){return e(Ae)},children:(Ye,rt)=>{dt(Ye,{get icon(){return Ot},size:"sm"})},$$slots:{default:!0}})}var T=g(V,2),K=C(T,!0);$(u);var L=g(u,2),he=C(L);$(o),I(Pe=>{m(K,e(H)),Kt(L,1,`relative min-h-0 flex-1 overflow-auto bg-checkered flex items-center justify-center p-4 select-none ${e(Ke)?"cursor-grabbing":"cursor-grab"}`,"svelte-1uj35xu"),jt(L,`--pan-scroll-x: ${e(qe)??""}px; --pan-scroll-y: ${e(Ve)??""}px;`),Qe(he,"src",Pe),Qe(he,"alt",e(H)),jt(he,`translate: ${e(ke)??""}px ${e(Ce)??""}px; transform: scale(${e(pe)/100}) rotate(${e(xe)??""}deg); transition: transform 0.2s;`)},[()=>y()]),yt("pointerdown",L,l),yt("pointermove",L,q),yt("pointerup",L,v),ut("pointercancel",L,v),ut("lostpointercapture",L,v),s(t,o)},_e=t=>{var o=yo(),u=F(o),w=F(u);re(w);var k=g(w,2);{let L=i(()=>!ye()||oe()),he=i(()=>d.editor_fileViewer_download_tooltip());Te(k,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:ne,get disabled(){return e(L)},get title(){return e(he)},children:(Pe,Ae)=>{dt(Pe,{get icon(){return Ot},size:"sm"})},$$slots:{default:!0}})}var E=g(k,2),V=C(E,!0);$(u);var T=g(u,2),K=C(T);$(o),I(L=>{m(V,e(H)),Kt(T,1,`relative min-h-0 flex-1 overflow-auto bg-checkered flex items-center justify-center p-4 select-none ${e(Ke)?"cursor-grabbing":"cursor-grab"}`,"svelte-1uj35xu"),jt(T,`--pan-scroll-x: ${e(qe)??""}px; --pan-scroll-y: ${e(Ve)??""}px;`),Qe(K,"src",L),Qe(K,"alt",e(H)),jt(K,`translate: ${e(ke)??""}px ${e(Ce)??""}px; transform: scale(${e(pe)/100});`)},[()=>N()]),yt("pointerdown",T,l),yt("pointermove",T,q),yt("pointerup",T,v),ut("pointercancel",T,v),ut("lostpointercapture",T,v),s(t,o)},Re=t=>{const o=i(J);var u=Ue(),w=ve(u);Mr(w,()=>ee()+e(o),k=>{Wr(k,{get sourceUrl(){return e(o)},get fileName(){return e(H)},get allowDownload(){return ye()},get downloading(){return oe()},onDownload:ne})}),s(t,u)},Qt=t=>{var o=ko(),u=g(F(o),2),w=C(u,!0),k=g(u,2),E=F(k),V=g(E);$(k),$(o),I((T,K)=>{m(w,e(H)),Qe(E,"src",T),m(V,` ${K??""}`)},[()=>y(),()=>d.editor_fileViewer_audioUnsupported_label()]),s(t,o)},kt=t=>{var o=Io(),u=g(F(o),2),w=C(u,!0),k=g(u,2);{let E=i(()=>!ye()||oe());Te(k,{size:"sm",variant:"secondary",onclick:ne,get disabled(){return e(E)},children:(V,T)=>{var K=$o(),L=ve(K);dt(L,{get icon(){return Ot},size:"sm",class:"mr-2"});var he=g(L);I(Pe=>m(he,` ${Pe??""}`),[()=>d.editor_fileViewer_downloadPdf_label()]),s(V,K)},$$slots:{default:!0}})}$(o),I(E=>m(w,E),[()=>d.editor_fileViewer_pdfUnavailable_label()]),s(t,o)},er=t=>{{let o=i(()=>vt(P().toString()));fr(t,{get value(){return e(o)},language:"json",get fileName(){return ee()},lineNumbers:!0,readOnly:!0})}},tr=t=>{const o=i(()=>pt(P().toString()));var u=Do(),w=F(u),k=F(w),E=F(k);Ut(E,23,()=>e(o)[0]||[],(T,K)=>`header-${K}-${T}`,(T,K)=>{var L=So(),he=C(L,!0);I(()=>m(he,e(K))),s(T,L)}),$(E),$(k);var V=g(k);Ut(V,23,()=>e(o).slice(1),(T,K)=>`row-${K}`,(T,K,L)=>{var he=Fo();Ut(he,23,()=>e(K),(Pe,Ae)=>`cell-${e(L)}-${Ae}`,(Pe,Ae)=>{var Ye=Co(),rt=C(Ye,!0);I(()=>m(rt,e(Ae))),s(Pe,Ye)}),$(he),s(T,he)}),$(V),$(w),$(u),s(t,u)},Xe=t=>{var o=To(),u=g(F(o),2),w=C(u,!0),k=g(u,2),E=C(k,!0);$(o),I(V=>{m(w,e(H)),m(E,V)},[()=>d.editor_fileViewer_archive_label()]),s(t,o)},ze=t=>{var o=Eo(),u=g(F(o),2),w=C(u,!0),k=g(u,2),E=C(k,!0);$(o),I(V=>{m(w,e(H)),m(E,V)},[()=>d.editor_fileViewer_binary_label()]),s(t,o)},rr=t=>{{let o=i(()=>P().toString());fr(t,{get value(){return e(o)},get language(){return ae()},get fileName(){return ee()},lineNumbers:!0,highlightActiveLine:!0})}};Y(Me,t=>{e(U)==="image"?t(tt):e(U)==="svg"?t(_e,1):e(U)==="video"?t(Re,2):e(U)==="audio"?t(Qt,3):e(U)==="pdf"?t(kt,4):e(U)==="json"?t(er,5):e(U)==="csv"?t(tr,6):e(U)==="archive"?t(Xe,7):e(U)==="binary"?t(ze,8):t(rr,-1)})}return $(me),s(A,me),Gt(bt)}ia(["pointerdown","pointermove","pointerup"]);const Mo=/access denied|permission denied|outside (?:the )?workspace/i,Ro=/file not found|no such file or directory/i;function jo(A){return Mo.test(A)?"access-denied":A===d.files_read_notFound_error()||Ro.test(A)?"not-found":"generic"}function Uo(A){switch(A){case"access-denied":return d.layout_fileTab_errorAccessDenied_label();case"not-found":return d.layout_fileTab_errorNotFound_label();case"generic":return d.layout_fileTab_errorGeneric_label()}}var Vo=x("<!> <!>",1),zo=x("<!> <!> <!>",1),Ao=x('<div class="flex flex-col items-center justify-center h-full text-subtle gap-2"><p> </p> <p class="text-xs"> </p></div>'),Tr=x('<div class="flex h-full items-center justify-center p-4 text-subtle"><p role="alert"> </p></div>'),Wo=x('<div class="flex h-full items-center justify-center text-subtle"><p> </p></div>'),Er=x('<div class="flex items-center justify-center h-full text-subtle"><p> </p></div>'),No=x('<div class="flex items-center gap-3"><!> <!></div>'),Ho=x('<div class="flex flex-col h-full"><div class="flex-1 p-4 space-y-2"></div></div>'),Bo=x('<p class="text-xs"> </p>'),Oo=x("<li><!></li>"),qo=x('<p class="text-xs mt-2"> </p> <ul class="flex flex-col items-center gap-1"></ul>',1),Ko=x('<div class="flex flex-col items-center justify-center h-full text-subtle gap-2"><p class="text-danger" role="alert"> </p> <p class="text-xs font-mono"> </p> <!> <!></div>'),Xo=x('<div class="flex flex-col items-center justify-center h-full text-subtle gap-3 p-4"><p> </p> <p class="text-xs break-all"> </p> <!></div>'),Yo=x('<div class="h-full overflow-auto p-4"><!></div>'),Jo=x("<div><!></div>"),Zo=x('<iframe sandbox="" referrerpolicy="no-referrer"></iframe>'),Go=x('<div class="absolute inset-0 flex items-center justify-center text-subtle" role="status"> </div>'),Qo=x('<div class="relative size-full"><!> <!> <!></div>');function ei(A,_){if(new.target)return Xt({component:ei,...A});Zt(_,!0);const re=()=>ge(tr,"$workspace",W),He=()=>ge(D,"$fileContentStore",W),ee=()=>ge(fe,"$fileLoadingStore",W),P=()=>ge(Z,"$fileSavingStore",W),O=()=>ge(ne,"$fileErrorStore",W),ae=()=>ge(ft,"$fileErrorInfoStore",W),Ee=()=>ge(vt,"$homeView$",W),ye=()=>ge(pt,"$fileNotFoundCandidatesStore",W),be=()=>ge(bt,"$isFileBinaryStore",W),oe=()=>ge(me,"$isFileDirtyStore",W),et=()=>ge(Me,"$fileLastUpdatedStore",W),U=()=>ge(tt,"$ftChanges$",W),H=()=>ge(er,"$gutterRead$",W),pe=()=>ge(Ke,"$lineWrapping",W),xe=()=>ge(ue,"$diffIndicators",W),Le=()=>ge(Qt,"$rootMediaPreview",W),[W,ke]=pr(),Ce=(r,n=sa)=>{var b=Or,S=qr;{let le=i(()=>xe()?e(rt):[]),$e=i(()=>n()&&v());Rr(fr(r,{get value(){return b()},set value(G){S(G)},get language(){return e(or)},get readOnly(){return e(y)},get fileName(){return a().filePath},get workspaceId(){return l()},get filePath(){return a().filePath},get lineWrapping(){return pe()},get lineChanges(){return e(le)},get jumpTo(){return e($t)},get externalContentVersion(){return e(Pe)},get isPanelFocused(){return e($e)}}),G=>c(Ye,G,!0),()=>e(Ye))}},qe=r=>{var n=Vo(),b=ve(n);{var S=G=>{var Be=Ue(),Ze=ve(Be);Nt(Ze,()=>Ht,(nt,Tt)=>{Tt(nt,{get icon(){return Ha},get label(){return e(Ae)},disabled:!0})}),s(G,Be)};Y(b,G=>{!e(It)&&!e(y)&&!e(L)&&G(S)})}var le=g(b,2);{var $e=G=>{{let Be=i(()=>e(_t)?d.ui_viewSettings_htmlPreview_label():void 0),Ze=i(()=>!e(We)),nt=i(()=>!e(y)&&!e(We));eo(G,{embedded:!0,showFold:!1,showSplit:!1,get showPreview(){return e(wr)},get previewLabel(){return e(Be)},get previewEnabled(){return e(Fe)},onTogglePreview:()=>c(Fe,!e(Fe)),get showWrap(){return e(Ze)},get wrapEnabled(){return pe()},onToggleWrap:()=>R.dispatch(_a()),get showDiff(){return e(nt)},get diffEnabled(){return xe()},onToggleDiff:()=>R.dispatch(ma())})}};Y(le,G=>{a().filePath&&!e(It)&&!e(L)&&G($e)})}s(r,n)},Ve=r=>{var n=Ue(),b=ve(n);{var S=le=>{var $e=zo(),G=ve($e);{var Be=Oe=>{var at=Ue(),ht=ve(at);{let Et=i(()=>d.layout_fileTab_goToChanges_tooltip());Nt(ht,()=>Ht,(Lt,Mt)=>{Mt(Lt,{get icon(){return Oa},get label(){return e(Et)},onclick:Jr})})}s(Oe,at)};Y(G,Oe=>{e(Br)&&Oe(Be)})}var Ze=g(G,2);{var nt=Oe=>{var at=Ue(),ht=ve(at);{let Et=i(()=>d.layout_fileTab_downloadFile_label()),Lt=i(()=>!e(Ct)||e(mt));Nt(ht,()=>Ht,(Mt,ir)=>{ir(Mt,{get icon(){return Ot},get label(){return e(Et)},onclick:At,get disabled(){return e(Lt)}})})}s(Oe,at)};Y(Ze,Oe=>{e(it)&&Oe(nt)})}var Tt=g(Ze,2);{let Oe=i(()=>d.layout_fileTab_deleteFile_tooltip());Nt(Tt,()=>Ht,(at,ht)=>{ht(at,{get icon(){return Ba},get label(){return e(Oe)},onclick:Zr,destructive:!0})})}s(le,$e)};Y(b,le=>{a().filePath&&!e(It)&&!e(y)&&le(S)})}s(r,n)},Ke=to(),ue=ro();let a=de(_,"tab",7),l=de(_,"workspaceId",7),q=de(_,"isActive",7),v=de(_,"isPanelFocused",7);se(()=>{const r=l();if(!(!q()||!r||e(f)))return R.dispatch(ua(r,"files")),()=>R.dispatch(fa(r,"files"))});const f=i(()=>typeof a().data?.gitRootId=="string"?a().data.gitRootId:void 0),ie=i(()=>typeof a().data?.gitRootPath=="string"?a().data.gitRootPath:void 0),y=i(()=>!!e(f)),J=i(()=>a().filePath?ja(a().filePath,e(f)):a().filePath),N=na(e(J));se(()=>{N.set(e(J))});const D=ka(l(),N),fe=$a(l(),N),Z=Ia(l(),N),ne=Sa(l(),N),ft=Ca(l(),N),vt=co(l()),pt=Fa(l(),N),bt=Da(l(),N),me=Sr(l(),N),Me=Ta(l(),N),tt=Ea(l()),_e=ya(),Re=crypto.randomUUID(),Qt=Ar(Re),kt=`file-gutter:${crypto.randomUUID()}`,er=La(l(),kt),tr=Ma(l()),Xe=i(()=>re()?.worktreePath||re()?.repositoryPath||re()?.path||null),ze=i(He),rr=io();se(()=>{e(ze)!==null&&e(ze)!==void 0&&rr?.markContentLoaded()});const t=i(ee),o=i(P),u=i(O),w=i(()=>e(u)?jo(e(u)):"generic"),k=i(()=>e(u)?lo(ae()):null);let E=j(0),V=!1;se(()=>{const r=Ee();if(!r||r.unavailable){V=!1;return}e(k)&&!V&&(V=!0,ur(()=>Bt(E)))});const T=5,K=i(()=>(ye()??[]).slice(0,T)),L=i(be),he=i(oe),Pe=i(et),Ae=i(()=>e(o)?d.ui_saveIndicator_saving_tooltip():e(he)?d.ui_saveIndicator_autoSaving_tooltip():d.ui_saveIndicator_saved_tooltip());let Ye=j(null),rt=j(la([])),Je=j(null),$t=j(void 0),Vt=j(void 0),Fe=j(!0),gr=j(null);se(()=>{const r=a().data?.line,n=a().data?.jumpTimestamp;!r||n!==void 0&&n===e(Vt)||(c(Vt,n,!0),c($t,{line:r},!0),c(Fe,!1))});const gt=i(()=>e(f)?Cr(a().filePath,e(ie)):null),It=i(()=>e(f)?!e(gt):!!(a().filePath&&(Ja(a().filePath)||e(Xe)&&Za(a().filePath,e(Xe))))),St=i(()=>a().filePath&&e(Xe)?dr(a().filePath)?a().filePath:`${e(Xe)}/${a().filePath}`:null),xt=i(()=>!!a().filePath&&/\.pdf$/i.test(a().filePath)),Pt=i(()=>!!a().filePath&&/\.(?:png|jpe?g|gif|webp|mp4|webm)$/i.test(a().filePath)),it=i(()=>l()&&/^[A-Za-z0-9._-]+$/.test(l())?Cr(a().filePath,e(Xe)):null),Nr=i(()=>!e(f)&&e(it)?e(it).split("/").slice(0,-1).join("/"):void 0),ar=i(()=>e(xt)||e(Pt)?e(it):null),mr=i(()=>e(f)&&e(Pt)?{png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",mp4:"video/mp4",webm:"video/webm"}[a().filePath?.split(".").pop()?.toLowerCase()??""]:void 0);se(()=>{if(!q()||!e(f)||!e(gt)||!e(mr))return;const r=crypto.randomUUID();return R.dispatch(Ur(Re,r,l(),e(gt),{gitRootId:e(f),mimeType:e(mr)})),()=>R.dispatch(Vr(Re,r))});let mt=j(!1);const Ct=i(()=>!!e(it)&&!e(t)&&(!e(Pt)||e(Je)===e(it))),_r=i(()=>e(Je)&&l()?`workspace-file://${l()}/${e(Je).split("/").map(encodeURIComponent).join("/")}`:null),or=i(()=>a().filePath?ga(a().filePath):"plaintext"),hr=i(()=>e(or)==="markdown"),_t=i(()=>/\.html?$/i.test(a().filePath??""));let Ft=j(void 0);const zt=i(()=>e(Ft)?.source===e(ze)),wr=i(()=>e(hr)||e(_t)&&!(e(zt)&&e(Ft)?.document===null)),We=i(()=>e(wr)&&e(Fe));se(()=>{if(!q()||!e(_t)||!e(We)||e(L)||e(u))return;const r=e(ze);if(!(r===null||e(zt)))return fo(r,n=>{c(Ft,{source:r,document:n}),n===null&&c(Fe,!1)})}),se(()=>{e(_t)&&!e(We)&&a().filePath&&c(gr,a().filePath,!0)}),se(()=>{if(!e(_t)||!e(We)||!q()||!v())return;function r(n){const b=n.detail?.line;b&&(c($t,{line:b},!0),c(Fe,!1))}return window.addEventListener("workspace:go-to-line",r),()=>window.removeEventListener("workspace:go-to-line",r)}),se(()=>{if(!q()||e(xt)||e(f))return;const r=e(ar),n=a().filePath,b=l(),S=a().id;if(c(Je,null),!r||!n||!b)return;let le=!1;const $e=()=>!le&&l()===b&&a().id===S&&a().filePath===n;return(async()=>{let G=!1;try{G=(await Ua("file.stat",{workspaceId:b,path:r}))?.isFile===!0}catch{}if(!$e())return;if(G){c(Je,r,!0);return}if(!/\.(?:png|jpe?g|gif|webp|mp4|webm)$/i.test(r)){c(Je,r,!0);return}const{candidates:Be,truncated:Ze}=await Ya(b,r);if($e()){if(!Ze&&Be.length===1){R.dispatch(yr(b,n,Be[0],S));return}c(Je,r,!0)}})(),()=>{le=!0}});function Hr(r,n){return!!(r.file===n||r.relativePath===n||r.relativePath&&n.endsWith("/"+r.relativePath)||r.file&&n.endsWith("/"+r.file)||r.relativePath&&r.relativePath.endsWith("/"+n)||r.file&&r.file.endsWith("/"+n))}const Dt=i(()=>e(y)||!a().filePath?null:U().find(r=>Hr(r,a().filePath))??null),Br=i(()=>!!e(Dt));se(()=>{if(e(y))return;const r=l(),n=a().filePath,b=e(Xe);return()=>{if(!r||!n)return;const S=lr.select(R.state,r,n);if(S?.kind!=="editable-text")return;const le=nr(S.localContent),$e=Sr.select(R.state,r,n),G=dr(n)?n:b?`${b}/${n}`:null;$e&&G&&R.dispatch(kr(r,n,G,le))}}),se(()=>{const r=a().filePath,n=e(St),b=l();if(e(E),!q())return;const S=!e(f)&&!!r&&dr(r)&&!e(Xe);r&&b&&!e(It)&&!e(Pt)&&!e(xt)&&!S&&(e(f)&&e(gt)&&e(J)?R.dispatch($r(b,e(J),n??r,{gitRoot:{id:e(f),relativePath:e(gt)}})):R.dispatch($r(b,r,n??r)))});function Or(){return e(ze)??""}function qr(r){e(y)||e(L)||!a().filePath||!l()||!e(St)||R.dispatch(Pa(l(),a().filePath,nr(r)))}function Kr(){if(e(y)||e(L)||!a().filePath||!e(St)||e(ze)===null||e(o))return;const r=lr.select(R.state,l(),a().filePath);r?.kind==="editable-text"&&R.dispatch(kr(l(),a().filePath,e(St),nr(r.localContent)))}function Xr(r){const n=a().filePath;!n||!l()||(R.dispatch(xa(l(),n)),R.dispatch(yr(l(),n,r,a().id)))}se(()=>{const r=a().filePath,n=e(Dt);if(!r||!n){c(rt,[],!0);return}if(!q())return;const b=l(),S=crypto.randomUUID();return R.dispatch(va(b,kt,S,{kind:"diffs",path:r,staged:n.stage==="staged"})),()=>{R.dispatch(pa(b,kt,S))}}),se(()=>{const r=H(),n=r?.result?.kind==="diffs"?r.result.chunks:[],b=n.find(S=>S.file===a().filePath)??n[0];c(rt,b?Ga(b.chunks.map(S=>({oldStart:S.oldStart,oldLines:S.oldLines,newStart:S.newStart,newLines:S.newLines,lines:S.lines.map(le=>(le.type===Ir.Addition?"+":le.type===Ir.Deletion?"-":" ")+le.content)}))):[],!0)});function Yr(r){const n=/Mac|iPhone|iPad|iPod/.test(navigator.userAgent),b=$e=>oo(r,ao($e),n);if(b("editor.save")){r.preventDefault(),e(he)&&!e(o)&&Kr();return}const S=b("editor.undo")?"undo":b("editor.redo")?"redo":b("editor.toggle-task-list")?"toggle-task-list":b("editor.copy")?"copy":b("editor.select-all")?"select-all":null;if(!S||e(y)&&S!=="copy"&&S!=="select-all")return;S!=="toggle-task-list"&&e(Ye)?.runShortcut(S)&&r.preventDefault()}function Jr(r){if(!a().filePath||!e(Dt))return;const n=r?.metaKey||r?.ctrlKey||!1,S=r?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;R.dispatch(ba(l(),e(Dt),{filePath:a().filePath,changeId:e(Dt).id,openInAdjacentPanel:n,sourcePanelId:S}))}async function At(){const r=e(it);if(!(e(y)||!r||!l()||!e(Ct)||e(mt))){c(mt,!0);try{const n=await Ra(l(),r,e(Xe));!n?.success&&!n?.canceled&&sr.error(n?.error?.message||d.layout_fileTab_downloadFailed_error())}catch{sr.error(d.layout_fileTab_downloadFailed_error())}finally{c(mt,!1)}}}function Zr(){const r=e(St);if(e(y)||!a().filePath||!l()||!r)return;const n=ha(lr.select(R.state,l(),a().filePath));if(!n){sr.error(d.ui_reversibleActions_failed_error({message:d.fileExplorer_tree_undoUnavailable_error()}));return}R.dispatch(wa(l(),a().filePath,{absolutePath:r,tabId:a().id,snapshot:n}))}se(()=>{if(!_e||!q())return;const r={isDirty:!e(y)&&e(he),isSaving:!e(y)&&e(o)};ur(()=>{_e.registerActions({display:qe,actions:Ve}),_e.registerState(r)})});var Gr={get tab(){return a()},set tab(r){a(r),ce()},get workspaceId(){return l()},set workspaceId(r){l(r),ce()},get isActive(){return q()},set isActive(r){q(r),ce()},get isPanelFocused(){return v()},set isPanelFocused(r){v(r),ce()},$set:Yt,$on:(r,n)=>Jt(_,r,n)},br=Ue();ut("keydown",Lr,r=>q()&&Yr(r));var Qr=ve(br);{var ea=r=>{var n=Ue(),b=ve(n);Mr(b,()=>a().filePath,S=>{var le=Ue(),$e=ve(le);{var G=h=>{var p=Ao(),M=F(p),X=C(M,!0),z=g(M,2),je=C(z,!0);$(p),I(te=>{m(X,te),m(je,a().filePath)},[()=>d.layout_fileTab_outsideWorkspace_label()]),s(h,p)},Be=h=>{var p=Ue(),M=ve(p);{var X=z=>{vr(z,{get workspaceId(){return l()},get filePath(){return e(gt)},get gitRootId(){return e(f)}})};Y(M,z=>{q()&&z(X)})}s(h,p)},Ze=h=>{var p=Ue(),M=ve(p);{var X=te=>{var Ie=Tr(),B=F(Ie),we=C(B,!0);$(Ie),I(Q=>m(we,Q),[()=>d.layout_fileTab_errorLoading_label()]),s(te,Ie)},z=te=>{qt(te,{get filePath(){return a().filePath},get sourceUrl(){return Le().url},allowDownload:!1})},je=te=>{var Ie=Wo(),B=F(Ie),we=C(B,!0);$(Ie),I(Q=>m(we,Q),[()=>d.layout_fileTab_preparing_label()]),s(te,Ie)};Y(M,te=>{Le()?.error?te(X):Le()?.url?te(z,1):te(je,-1)})}s(h,p)},nt=h=>{var p=Ue(),M=ve(p);{var X=z=>{vr(z,{get workspaceId(){return l()},get filePath(){return e(ar)}})};Y(M,z=>{q()&&z(X)})}s(h,p)},Tt=h=>{var p=Tr(),M=F(p),X=C(M,!0);$(p),I(z=>m(X,z),[()=>d.file_pdf_load_error()]),s(h,p)},Oe=h=>{{let p=i(()=>e(Je)??a().filePath),M=i(()=>!e(y)&&e(Ct));qt(h,{get filePath(){return e(p)},get sourceUrl(){return e(_r)},onDownload:At,get allowDownload(){return e(M)},get downloading(){return e(mt)}})}},at=h=>{var p=Er(),M=F(p),X=C(M,!0);$(p),I(z=>m(X,z),[()=>d.layout_fileTab_preparing_label()]),s(h,p)},ht=h=>{var p=Ho(),M=F(p);Ut(M,20,()=>[...Array(20).keys()],X=>X,(X,z)=>{var je=No(),te=F(je);Fr(te,{class:"h-3 w-8 shrink-0"});var Ie=g(te,2);Fr(Ie,{class:"h-3",style:`width: ${30+Math.random()*60}%`}),$(je),s(X,je)}),$(M),$(p),s(h,p)},Et=h=>{{let p=i(()=>so(e(k)));no(h,{get view(){return e(p)}})}},Lt=h=>{var p=Ko(),M=F(p),X=C(M,!0),z=g(M,2),je=C(z,!0),te=g(z,2);{var Ie=Q=>{var lt=Bo(),Ge=C(lt,!0);I(()=>m(Ge,e(u))),s(Q,lt)};Y(te,Q=>{e(w)==="generic"&&Q(Ie)})}var B=g(te,2);{var we=Q=>{var lt=qo(),Ge=ve(lt),Rt=C(Ge,!0),Wt=g(Ge,2);Ut(Wt,20,()=>e(K),wt=>wt,(wt,De)=>{var Se=Oo(),Ne=F(Se);Te(Ne,{variant:"link",size:"compact",class:"h-auto p-0 font-mono text-xs",onclick:()=>Xr(De),children:(st,xr)=>{ot();var Pr=ct();I(()=>m(Pr,De)),s(st,Pr)},$$slots:{default:!0}}),$(Se),s(wt,Se)}),$(Wt),I(wt=>m(Rt,wt),[()=>d.layout_fileTab_didYouMean_label()]),s(Q,lt)};Y(B,Q=>{e(K).length>0&&Q(we)})}$(p),I(Q=>{m(X,Q),m(je,a().filePath)},[()=>Uo(e(w))]),s(h,p)},Mt=h=>{var p=Xo(),M=F(p),X=C(M,!0),z=g(M,2),je=C(z,!0),te=g(z,2);{var Ie=B=>{{let we=i(()=>!e(Ct)||e(mt));Te(B,{variant:"secondary",size:"sm",onclick:At,get disabled(){return e(we)},children:(Q,lt)=>{ot();var Ge=ct();I(Rt=>m(Ge,Rt),[()=>d.layout_fileTab_downloadFile_label()]),s(Q,Ge)},$$slots:{default:!0}})}};Y(te,B=>{!e(y)&&e(it)&&B(Ie)})}$(p),I(B=>{m(X,B),m(je,a().filePath)},[()=>d.editor_fileViewer_binary_label()]),s(h,p)},ir=h=>{const p=i(()=>a().filePath?.toLowerCase().endsWith(".svg"));var M=Ue(),X=ve(M);{var z=B=>{{let we=i(()=>a().filePath||""),Q=i(()=>!e(y)&&e(Ct));qt(B,{get filePath(){return e(we)},get fileContent(){return e(ze)},get language(){return e(or)},get isBinary(){return e(L)},onDownload:At,get allowDownload(){return e(Q)},get downloading(){return e(mt)}})}},je=B=>{var we=Yo(),Q=F(we);Qa(Q,{get content(){return e(ze)},get workspaceId(){return l()},get relativeMediaBase(){return e(Nr)},renderRichFencesAsCode:!0,renderDiagrams:!0}),$(we),s(B,we)},te=B=>{var we=Qo(),Q=F(we);{var lt=De=>{var Se=Jo();let Ne;var st=F(Se);Ce(st,()=>!e(We)),$(Se),I(()=>{Ne=Kt(Se,1,"size-full",null,Ne,{invisible:e(We)}),Se.inert=e(We)}),s(De,Se)};Y(Q,De=>{(!e(We)||e(gr)===a().filePath)&&De(lt)})}var Ge=g(Q,2);{var Rt=De=>{const Se=i(()=>e(We)&&e(zt));var Ne=Zo();let st;I(xr=>{Qe(Ne,"title",xr),Qe(Ne,"srcdoc",e(Ft).document),st=Kt(Ne,1,"absolute inset-0 block size-full border-0 bg-background",null,st,{invisible:!e(Se)}),Ne.inert=!e(Se)},[()=>d.ui_viewSettings_htmlPreview_label()]),s(De,Ne)};Y(Ge,De=>{e(Ft)?.document!=null&&De(Rt)})}var Wt=g(Ge,2);{var wt=De=>{var Se=Go(),Ne=C(Se,!0);I(st=>m(Ne,st),[()=>d.layout_fileTab_preparing_label()]),s(De,Se)};Y(Wt,De=>{e(We)&&!e(zt)&&De(wt)})}$(we),s(B,we)},Ie=B=>{Ce(B,()=>!0)};Y(X,B=>{e(p)?B(z):e(hr)&&e(We)?B(je,1):e(_t)?B(te,2):B(Ie,-1)})}s(h,M)},ra=h=>{var p=Er(),M=F(p),X=C(M,!0);$(p),I(z=>m(X,z),[()=>d.layout_fileTab_preparing_label()]),s(h,p)};Y($e,h=>{e(It)?h(G):e(f)&&e(xt)&&e(gt)?h(Be,1):e(f)&&e(Pt)?h(Ze,2):e(xt)&&e(ar)?h(nt,3):e(xt)?h(Tt,4):e(_r)?h(Oe,5):e(Pt)?h(at,6):e(t)&&(!e(_t)||e(ze)===null)?h(ht,7):e(k)?h(Et,8):e(u)?h(Lt,9):e(L)?h(Mt,10):e(ze)!==null?h(ir,11):h(ra,-1)})}s(S,le)}),s(r,n)};Y(Qr,r=>{a().filePath&&r(ea)})}s(A,br);var ta=Gt(Gr);return ke(),ta}export{ei as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/D40Fo-pJ.js","/app/immutable/chunks/Dws-34a7.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/DLCFUd4s.js","/app/immutable/chunks/5-0LQoqd.js","/app/immutable/chunks/pnbUAKkx.js","/app/immutable/chunks/C-zB-6G6.js","/app/immutable/chunks/D-rRuAXZ.js","/app/immutable/chunks/BD9db4FR.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/B5tvpTFB.js","/app/immutable/chunks/rXKOJqUt.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/BIGqOuh0.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/BPuz5cN_.js","/app/immutable/chunks/7KxcPj98.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/B8HnjSSF.js","/app/immutable/chunks/DcOkWaeN.js","/app/immutable/chunks/4g_iHoQm.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/8jMQM9h0.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/CGYPBD6G.js","/app/immutable/chunks/Bc1vJq_Z.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/jBG7W4tL.js","/app/immutable/chunks/D_VvdZe2.js","/app/immutable/chunks/C63WwVct.js","/app/immutable/chunks/C2F2Vd1P.js","/app/immutable/chunks/CrsbEWnE.js","/app/immutable/chunks/DWa-2rkZ.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/gU2qspu9.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/BW1iql_y.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/DSiGyv9Y.js","/app/immutable/chunks/C_SKcJv7.js","/app/immutable/chunks/BNa9zzEx.js","/app/immutable/chunks/COgn_CzG.js","/app/immutable/chunks/BjLb7AHW.js","/app/immutable/chunks/zB9UbdEg.js","/app/immutable/chunks/DAsc1V4f.js","/app/immutable/chunks/BsieX9dN.js","/app/immutable/chunks/h8JtxU_T.js","/app/immutable/assets/SettingsPage.CKvEnOAL.css","/app/immutable/chunks/DbqTt-YM.js","/app/immutable/chunks/goTpbPhD.js","/app/immutable/chunks/COWlXo8C.js","/app/immutable/chunks/DJPIUVkw.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/tLFaYuVN.js","/app/immutable/chunks/SbTG0nwQ.js","/app/immutable/chunks/Dval4sTX.js","/app/immutable/chunks/D-62MVd3.js","/app/immutable/chunks/BV1ayWTC.js","/app/immutable/chunks/CL3a4Hm1.js","/app/immutable/chunks/CTgU1bby.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/BTvTyEgq.js","/app/immutable/chunks/bKvZbiNk.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/B_4WsP9b.js","/app/immutable/chunks/DtqPBHQj.js","/app/immutable/chunks/B6eTPmJH.js","/app/immutable/chunks/PhAbES0t.js","/app/immutable/chunks/Do2KlQU0.js","/app/immutable/assets/slider.kL-wkHnx.css","/app/immutable/chunks/BLKFshyr.js","/app/immutable/chunks/Mko8tFZb.js","/app/immutable/chunks/yDmmPu6L.js","/app/immutable/chunks/CQcEqK4G.js","/app/immutable/chunks/A0KsbysW.js","/app/immutable/chunks/B6d1Nolc.js","/app/immutable/chunks/sSXTMg2P.js","/app/immutable/chunks/Bi_Yd73A.js","/app/immutable/chunks/C50zlWbZ.js","/app/immutable/assets/DockScreenshotEditorWindow.DNkBhnHK.css","/app/immutable/assets/dock-tokens.C3wiNkmL.css","/app/immutable/chunks/BoG8wR7s.js","/app/immutable/chunks/CjjWPVbV.js","/app/immutable/chunks/BECK4OaG.js","/app/immutable/chunks/B433f4mk.js","/app/immutable/assets/select-viewport.CV-KWLNP.css","/app/immutable/chunks/CWOQ_pUA.js","/app/immutable/chunks/CTW83wJs.js","/app/immutable/chunks/wiGlLVr-.js","/app/immutable/chunks/BByf3ILj.js","/app/immutable/chunks/BzW_moTi.js","/app/immutable/chunks/9GO97JAL.js","/app/immutable/chunks/CXdnCPBf.js","/app/immutable/chunks/DGMrUmNq.js","/app/immutable/chunks/C9ew0Hx2.js","/app/immutable/chunks/BJgwBOBz.js","/app/immutable/assets/checkbox.D429NJZk.css","/app/immutable/chunks/pomj9evG.js","/app/immutable/chunks/DYbZIRJE.js","/app/immutable/chunks/CiWHn2aR.js","/app/immutable/chunks/ClYR_2Js.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/B5uejTJk.js","/app/immutable/chunks/CoJyxFcH.js","/app/immutable/assets/directory-picker-service.Eai7L_H2.css","/app/immutable/chunks/BSygKG3g.js","/app/immutable/chunks/Da-Blgd9.js","/app/immutable/chunks/6paLMka3.js","/app/immutable/chunks/VeUh5OMZ.js","/app/immutable/chunks/BvbeTrka.js","/app/immutable/assets/AgentAvatar.CZKKHyEm.css","/app/immutable/assets/avatar-state.BzFIexJN.css","/app/immutable/chunks/B2CniqS1.js","/app/immutable/assets/TipTapEditor.BmeA7Qtk.css","/app/immutable/chunks/U7dpdlAf.js","/app/immutable/chunks/CR-JVxLD.js","/app/immutable/chunks/fHygQTSC.js","/app/immutable/assets/image-context-items.D_hsaikk.css","/app/immutable/chunks/nw_ZiYCy.js","/app/immutable/chunks/LQRHF1eM.js","/app/immutable/assets/AttachmentPreview.DWUPhcKi.css","/app/immutable/chunks/CmyAIpbY.js","/app/immutable/chunks/DGv69LVd.js","/app/immutable/chunks/DHcX7CG0.js","/app/immutable/chunks/Bu13V5mO.js","/app/immutable/chunks/Bv_xG3nA.js","/app/immutable/chunks/jnsEVh0o.js","/app/immutable/chunks/DhVTc7Ol.js","/app/immutable/chunks/DiURwJNX.js","/app/immutable/chunks/BKD7o1lQ.js","/app/immutable/assets/TaskStatusIcon.sfU2TZ7a.css","/app/immutable/chunks/CNSshwg_.js","/app/immutable/chunks/Clo7aK1n.js","/app/immutable/chunks/BO8Bp7Ht.js","/app/immutable/assets/AgentCard.Cna0hri3.css","/app/immutable/chunks/Dxd7AQYv.js","/app/immutable/chunks/DEB8jcix.js","/app/immutable/chunks/lwn02icp.js","/app/immutable/chunks/CV2tdNDf.js","/app/immutable/assets/TrackedChangeDiffViewer.CveSjyPc.css","/app/immutable/chunks/BlIRL_82.js","/app/immutable/chunks/B0qb2Ymj.js","/app/immutable/chunks/CcNhqKh5.js","/app/immutable/assets/syntax-highlighting.CrQGLq0X.css","/app/immutable/assets/CodeBlock.BezhEtUo.css","/app/immutable/chunks/DE32K02M.js","/app/immutable/chunks/BbIcudMY.js","/app/immutable/chunks/B_75gRww.js","/app/immutable/assets/DiagramPresentation.C2GLYoBN.css","/app/immutable/chunks/Whej1Dge.js","/app/immutable/chunks/CMq0sOjt.js","/app/immutable/chunks/DgAgTFcK.js","/app/immutable/chunks/C-BsEdGZ.js","/app/immutable/chunks/CObW_WD-.js","/app/immutable/assets/MarkdownViewer.D2MexjjT.css","/app/immutable/chunks/BPxN1acN.js","/app/immutable/chunks/CI0C7_h-.js","/app/immutable/chunks/3iG5yoX3.js","/app/immutable/chunks/B5NaFcis.js","/app/immutable/assets/workspace-key-menu.DrT-Fxqq.css","/app/immutable/chunks/A0p6PvBn.js","/app/immutable/chunks/YqTahsxp.js","/app/immutable/chunks/B6FGs8l2.js","/app/immutable/chunks/Dvi4g0xk.js","/app/immutable/chunks/DpITHrfz.js","/app/immutable/assets/StreamingDiagramRenderer.BShsSvPz.css","/app/immutable/assets/chat-search.Cjb73igJ.css","/app/immutable/chunks/BTepRW_m.js","/app/immutable/chunks/BwPwF85e.js","/app/immutable/chunks/CletI6Pa.js","/app/immutable/chunks/j67P3UNv.js","/app/immutable/chunks/D4WPlvMg.js","/app/immutable/chunks/B2jyBWIj.js","/app/immutable/chunks/BzirSHSv.js","/app/immutable/chunks/DM1_VFfD.js","/app/immutable/chunks/BQLaE7V5.js","/app/immutable/chunks/BXJzIaQM.js","/app/immutable/assets/AgentAvatarStack.DOhClFuX.css","/app/immutable/chunks/Bu-RLSv9.js","/app/immutable/assets/conversation-turns.P_pkAsRX.css","/app/immutable/chunks/pMP23LzB.js","/app/immutable/chunks/4PAYwk2I.js","/app/immutable/chunks/BdEtT3Ti.js","/app/immutable/chunks/deEweluJ.js","/app/immutable/chunks/JM7CQkWC.js","/app/immutable/chunks/D7P3vklT.js","/app/immutable/chunks/BhQMKzoM.js","/app/immutable/chunks/94vL4WlW.js","/app/immutable/chunks/H2jLkRRS.js","/app/immutable/chunks/DuAAGnM9.js","/app/immutable/assets/WorkspaceSetupCard.DNLkSKZg.css","/app/immutable/chunks/D7Dfbf5g.js","/app/immutable/chunks/DL6gGkHp.js","/app/immutable/assets/DockRecordingEditor.BX1NXczK.css","/app/immutable/chunks/C9p4fddz.js","/app/immutable/chunks/C-G2u0Oe.js","/app/immutable/chunks/6xdvppss.js","/app/immutable/assets/ChatPanel.B73KM22O.css","/app/immutable/assets/HomeWorkspaceDetail.Dp5EWw2P.css","/app/immutable/chunks/lD0hZ5-I.js","/app/immutable/chunks/Cp02CBjf.js","/app/immutable/chunks/CQ409-Pj.js","/app/immutable/chunks/nwO3KCpP.js","/app/immutable/chunks/CXXVPWBH.js","/app/immutable/chunks/DWGXN6Nr.js","/app/immutable/chunks/FVS6L2WV.js","/app/immutable/chunks/C8LrJXqa.js","/app/immutable/chunks/DxC0zTSc.js","/app/immutable/assets/BrowserTabType.DojB6H-_.css","/app/immutable/chunks/B5q4SHo9.js","/app/immutable/chunks/BMnuRHbZ.js","/app/immutable/chunks/D3yXvqwY.js","/app/immutable/chunks/DDb9H7X6.js","/app/immutable/chunks/BSUnflvl.js","/app/immutable/chunks/BjlMkd10.js","/app/immutable/chunks/CEEUgGO1.js","/app/immutable/chunks/7y3Z0Q49.js","/app/immutable/assets/register.CUyDR59i.css","/app/immutable/assets/terminal-manager.MhP_vFvK.css","/app/immutable/chunks/BRKjDAGC.js","/app/immutable/assets/confirm-script-deletion.CqNa5NIC.css","/app/immutable/chunks/DI71nFp4.js","/app/immutable/assets/Terminal.Ddek5eNE.css","/app/immutable/chunks/Cp7Byf5d.js","/app/immutable/chunks/7ZsTr9xa.js","/app/immutable/chunks/DmvYOHFs.js","/app/immutable/chunks/HU1Ksz8U.js","/app/immutable/chunks/B3IS1jjn.js","/app/immutable/chunks/DX9N1RQz.js","/app/immutable/chunks/BgQadJDW.js","/app/immutable/chunks/CSiaiLHL.js","/app/immutable/chunks/CD-M_2xD.js","/app/immutable/chunks/B_QPRXJ5.js","/app/immutable/chunks/B8QvP_8b.js","/app/immutable/chunks/BIv0yV05.js","/app/immutable/chunks/BO4HougN.js","/app/immutable/chunks/DPtj8tX0.js","/app/immutable/assets/AgentOverviewTabType.DU1WpoFR.css","/app/immutable/chunks/CvZTDgJa.js","/app/immutable/chunks/CVuncf5f.js","/app/immutable/chunks/Ex_x2wO5.js","/app/immutable/chunks/BuBXySe4.js","/app/immutable/chunks/BSntxgH1.js","/app/immutable/assets/DiscussionTabType.D3Laoutn.css","/app/immutable/chunks/CU_-vK2M.js","/app/immutable/chunks/CDAnHxmJ.js","/app/immutable/chunks/BHqp2vwo.js","/app/immutable/assets/CodeEditor.Bq04Rj-N.css","/app/immutable/chunks/CIaruUrd.js","/app/immutable/assets/LineChangesBadge.CJ0J_Z0k.css","/app/immutable/chunks/BVl79jmM.js","/app/immutable/assets/NoteTabType.AG_iwaNn.css","/app/immutable/chunks/DlpH_aW2.js","/app/immutable/chunks/wEnqV1Ol.js","/app/immutable/chunks/BSgFpkqa.js","/app/immutable/chunks/DlU1rxYV.js","/app/immutable/assets/FileTabType.BUKcoHE1.css","/app/immutable/chunks/DnKqeAaM.js","/app/immutable/chunks/CBueLH7U.js","/app/immutable/chunks/Cp9EK0r2.js","/app/immutable/chunks/B4I8lQNP.js","/app/immutable/assets/ChatChangesPanel.BQqG1JnE.css","/app/immutable/chunks/BCZTn_fp.js","/app/immutable/chunks/TC7OsYhy.js","/app/immutable/chunks/BWCYowXB.js","/app/immutable/chunks/C0Zo7HuP.js","/app/immutable/chunks/CYSndAne.js","/app/immutable/chunks/CPI5xBWX.js","/app/immutable/chunks/BZ9svoQk.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{bm as e,_ as c,t as Te,bo as ie,bw as he,b as ke}from"./Dws-34a7.js";import{t as u}from"./CHto7_WH.js";import{bD as ue,bv as Ve,cK as Ne,aO as $e,cn as Me,aV as ge,bg as Ke,aN as Be,aM as Ge,bs as He,bL as qe,b_ as Fe,bJ as je,F as Ue}from"./CGYPBD6G.js";import{R as H}from"./CJB-ebPL.js";import{bs as we,ca as Q,bH as v,aD as t,bV as K,br as ze,a7 as q,ay as M,W as p,bn as Le,c9 as b,aA as ne,a5 as X,bA as Z,bS as ye,aw as Ye,aB as W,be as F,b$ as x,b_ as I,bO as E,bl as Je,bk as Qe}from"./3SdAC2_C.js";import{i as D}from"./DLCFUd4s.js";import{s as fe}from"./BD9db4FR.js";import{L as me}from"./fHygQTSC.js";import{C as Xe,L as be}from"./jBG7W4tL.js";import{I as Ze}from"./C63WwVct.js";import"./C2F2Vd1P.js";import"./BW1iql_y.js";import{f as le}from"./BIGqOuh0.js";import{v as Ie}from"./BPuz5cN_.js";import"./gU2qspu9.js";import"./D-rRuAXZ.js";import{I as ve}from"./C-zB-6G6.js";import{I as et}from"./Bqd7fdCF.js";import"./7KxcPj98.js";import{a as tt}from"./BdWqymET.js";function xt(){u.register({type:"workspace",loadComponent:()=>c(()=>import("./D40Fo-pJ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209]),import.meta.url),defaultWidthTier:"wide",icon:ue,get defaultTitle(){return e.workspace_page_workspaceResource_label()},get categoryLabel(){return e.workspace_page_workspaceResource_label()},renameable:!1}),u.register({type:"browser",loadComponent:()=>c(()=>import("./lD0hZ5-I.js"),__vite__mapDeps([210,1,2,3,11,6,7,8,9,10,15,211,22,23,24,25,26,18,13,4,71,14,16,17,19,12,20,21,27,28,29,30,31,32,45,33,34,35,36,37,38,39,40,41,42,43,44,46,58,72,64,62,65,68,60,59,73,74,75,76,63,77,78,181,92,57,61,182,212,123,213,125,52,136,86,214,99,100,215,109,110,111,112,113,216,217,102,218,219]),import.meta.url),defaultWidthTier:"wide",icon:Ve,get defaultTitle(){return e.layout_tabTypes_browser_title()},get categoryLabel(){return e.layout_tabTypes_browser_category()},sidebarTabId:"browser",renameable:!1}),u.register({type:"terminal",loadComponent:()=>c(()=>import("./B5q4SHo9.js"),__vite__mapDeps([220,1,2,3,4,11,28,7,8,9,10,6,64,18,22,23,24,25,26,13,62,16,17,19,65,20,221,15,222,223,59,60,57,58,61,63,224,225,226,227,228,112,212,191,229,14,12,21,27,29,30,31,32,213,230,72,68,73,74,75,76,77,78,36,42,43,40,41,217,231,38,35,39,136,33,34,37,44,45,46,215,232,149,233,234,102,218]),import.meta.url),defaultWidthTier:"medium",icon:Ne,get defaultTitle(){return e.layout_tabTypes_terminal_title()},get categoryLabel(){return e.layout_tabTypes_terminal_category()},sidebarTabId:"terminals",renameable:!1}),u.register({type:"code-review",loadComponent:()=>c(()=>import("./7ZsTr9xa.js"),__vite__mapDeps([235,1,2,22,23,24,25,9,7,26,18,13,3,29,6,8,10,64,28,11,62,16,17,19,65,20,216,76,63,78,92,72,68,60,59,73,74,75,77,58,57,61,217,181,12,14,15,4,21,27,30,31,32,182,102,236,237,178,84,87,179,180,130,132,133,142,230,167,238,218,239,36,42,43,40,41,113,112,172,206,191,213,143,135,71,240,241,242,243,244,199,151,109,110,111,245,246,224,225,226,227,228,140,153,154,35,164,82,69,70,33,34,37,38,39,44,45,46,79,80,81,50,51,117,165,125,52]),import.meta.url),defaultWidthTier:"wide",icon:$e,get defaultTitle(){return e.layout_tabTypes_codeReview_title()},get categoryLabel(){return e.layout_tabTypes_codeReview_category()},renameable:!1}),u.register({type:"agent-overview",loadComponent:()=>c(()=>import("./DPtj8tX0.js"),__vite__mapDeps([247,1,2,3,6,7,8,9,10,15,14,16,13,17,18,19,11,4,119,120,121,75,22,23,24,25,26,76,63,77,64,28,62,65,20,78,58,122,12,21,27,29,30,31,32,158,81,51,178,84,87,68,60,59,179,180,130,92,72,73,74,57,61,132,133,142,109,110,111,112,113,248]),import.meta.url),defaultWidthTier:"narrow",icon:Me,get defaultTitle(){return e.layout_tabTypes_agentOverview_title()},get categoryLabel(){return e.layout_tabTypes_agents_category()},renameable:!1}),u.register({type:"agent",loadComponent:()=>c(()=>import("./CvZTDgJa.js"),__vite__mapDeps([249,1,2,3,4,6,7,8,9,10,11,15,72,22,23,24,25,26,18,13,64,28,62,16,17,19,65,20,68,60,59,73,74,75,76,63,77,78,58,250,14,251,238,12,21,27,29,30,31,32,237,102,57,61,133,205,44,45,215,240,132,92,241,103,35,36,47,48,49,42,43,50,51,52,53,104,38,39,105,86,34,37,40,41,71,82,33,46,106,107,81,108,95,96,109,110,111,112,113,114,115,194,54,55,56,66,67,69,70,79,80,83,84,85,87,88,89,90,91,93,94,97,98,99,100,101,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,195,196,197,198,199,200,201,202,203,204,206,207,208,217,216]),import.meta.url),defaultWidthTier:"chat",icon:ge,get defaultTitle(){return e.layout_tabTypes_agent_title()},get categoryLabel(){return e.layout_tabTypes_agents_category()},sidebarTabId:"agents",renameable:!0}),u.register({type:"discussion",loadComponent:()=>c(()=>import("./BuBXySe4.js"),__vite__mapDeps([252,1,2,3,4,11,8,9,7,10,16,13,17,18,19,38,6,29,35,15,36,14,39,33,34,37,27,40,41,28,42,31,43,44,45,46,21,22,23,24,25,26,217,12,20,30,32,64,62,65,72,68,60,59,73,74,75,76,63,77,78,58,92,57,61,194,88,89,66,114,120,121,125,52,161,82,164,140,69,70,71,79,80,81,50,51,117,165,99,100,48,236,216,181,182,102,237,178,84,87,179,180,130,132,133,142,230,167,238,218,239,113,112,172,206,191,213,143,135,240,241,242,243,244,199,151,109,110,111,245,246,224,225,226,227,228,129,131,253,98,94,95,49,96,97,118,215,254]),import.meta.url),defaultWidthTier:"chat",icon:ge,get defaultTitle(){return e.workspace_discussion_title()},get categoryLabel(){return e.workspace_discussion_list_label()},sidebarTabId:"people",renameable:!1}),u.register({type:"note",loadComponent:()=>c(()=>import("./CU_-vK2M.js"),__vite__mapDeps([255,1,2,3,11,64,18,9,22,23,24,25,7,26,13,28,8,10,6,62,16,17,19,65,20,215,181,92,72,68,60,59,73,74,75,76,63,77,78,58,57,61,12,14,15,4,21,27,29,30,31,32,182,35,36,81,88,89,50,51,33,34,37,38,39,40,41,42,43,44,45,46,117,120,121,138,139,140,141,116,71,52,69,70,79,80,82,67,118,114,119,122,123,100,124,236,216,217,102,237,178,84,87,179,180,130,132,133,142,230,167,238,218,239,113,112,172,206,191,213,143,135,240,241,242,243,244,199,151,109,110,111,245,246,224,225,226,227,228,146,55,147,148,149,150,256,257,258,108,95,49,96,163,195,259,260,153,154,106,48,107,261,156,157,158,159,152,155,162,184,192,136,197,198,174,164,165,262]),import.meta.url),defaultWidthTier:"medium",icon:H.note,get defaultTitle(){return e.layout_tabTypes_note_title()},get categoryLabel(){return e.layout_tabTypes_context_category()},sidebarTabId:"notes",renameable:!0}),u.register({type:"file",loadComponent:()=>c(()=>import("./DlpH_aW2.js"),__vite__mapDeps([263,1,2,3,4,6,7,8,9,10,11,15,22,23,24,25,26,18,13,215,151,64,28,62,16,17,19,65,20,264,68,60,59,199,77,12,14,21,27,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,236,61,57,58,63,92,72,73,74,75,76,78,216,217,181,182,102,237,178,84,87,179,180,130,132,133,142,230,167,238,218,239,113,112,172,206,191,213,143,135,71,240,241,242,243,244,109,110,111,245,246,224,225,226,227,228,256,257,117,258,164,140,82,69,70,79,80,81,50,51,165,136,265,123,266,234,267]),import.meta.url),defaultWidthTier:"wide",icon:Ke,get defaultTitle(){return e.layout_tabTypes_file_title()},get categoryLabel(){return e.layout_tabTypes_files_category()},sidebarTabId:"files",renameable:!0}),u.register({type:"diff",loadComponent:()=>c(()=>import("./DnKqeAaM.js"),__vite__mapDeps([268,1,2,3,4,11,163,22,23,24,25,9,7,26,18,13,215,64,28,8,10,6,62,16,17,19,65,20,146,55,15,132,59,92,72,68,60,73,74,75,76,63,77,78,58,57,61,21,133,147,148,14,149,35,29,36,150,269,151,33,34,37,27,38,39,40,41,42,31,43,44,45,46,117,136,265,197,198,174,12,30,32,199,121]),import.meta.url),defaultWidthTier:"wide",icon:Be,get defaultTitle(){return e.layout_tabTypes_diff_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},sidebarTabId:"files",renameable:!1}),u.register({type:"changes",loadComponent:()=>c(()=>import("./Cp9EK0r2.js"),__vite__mapDeps([270,1,2,4,15,22,23,24,25,9,7,26,18,13,163,215,64,28,11,3,8,10,6,62,16,17,19,65,20,216,76,63,78,92,72,68,60,59,73,74,75,77,58,57,61,217,181,12,14,21,27,29,30,31,32,182,102,271,160,259,260,146,55,132,133,147,148,149,35,36,150,269,151,33,34,37,38,39,40,41,42,43,44,45,46,117,120,121,106,48,49,107,134,135,71,126,143,178,84,87,179,180,130,142,236,237,230,167,238,218,239,113,112,172,206,191,213,240,241,242,243,244,199,109,110,111,245,246,224,225,226,227,228,272,265]),import.meta.url),defaultWidthTier:"wide",icon:H.changes,get defaultTitle(){return e.layout_tabTypes_changes_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},sidebarTabId:"changes",renameable:!1}),u.register({type:"local-changes",loadComponent:()=>c(()=>import("./BCZTn_fp.js"),__vite__mapDeps([273,1,2,15,22,23,24,25,9,7,26,18,13,163,215,64,28,11,3,8,10,6,62,16,17,19,65,20,271,29,160,259,260,92,72,68,60,59,73,74,75,76,63,77,78,58,57,61,146,55,132,21,133,147,148,14,4,149,35,36,150,269,151,33,34,37,27,38,39,40,41,42,31,43,44,45,46,117,120,121,106,30,48,49,107,12,32,134,135,71,126,143,181,182,216,217,102,178,84,87,179,180,130,142,236,237,230,167,238,218,239,113,112,172,206,191,213,240,241,242,243,244,199,109,110,111,245,246,224,225,226,227,228,272,265]),import.meta.url),defaultWidthTier:"wide",icon:H.changes,get defaultTitle(){return e.layout_tabTypes_localChanges_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},sidebarTabId:"changes",renameable:!1}),u.register({type:"chat-changes",loadComponent:()=>c(()=>import("./TC7OsYhy.js"),__vite__mapDeps([274,1,2,3,271,6,7,8,9,10,29,15,22,23,24,25,26,18,13,160,64,28,11,62,16,17,19,65,20,259,260,92,72,68,60,59,73,74,75,76,63,77,78,58,57,61,146,55,132,21,133,147,148,14,4,149,35,36,150,269,151,33,34,37,27,38,39,40,41,42,31,43,44,45,46,117,120,121,106,30,48,49,107,12,32,134,135,71,126,143,181,182,216,217,102,178,84,87,179,180,130,142,236,237,230,167,238,218,239,113,112,172,206,191,213,240,241,242,243,244,199,109,110,111,245,246,224,225,226,227,228,272]),import.meta.url),defaultWidthTier:"wide",icon:H.changes,get defaultTitle(){return e.layout_tabTypes_chatChanges_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},renameable:!1}),u.register({type:"activity-changes",loadComponent:()=>c(()=>import("./BWCYowXB.js"),__vite__mapDeps([275,1,2,3,4,11,62,241,24,59,146,8,9,7,10,55,15,132,16,13,17,18,19,22,23,25,26,92,64,28,6,65,20,72,68,60,73,74,75,76,63,77,78,58,57,61,21,133,147,148,14,149,35,29,36,150,269,151,33,34,37,27,38,39,40,41,42,31,43,44,45,46,117,215,136,265,197,198,174,12,30,32,199,121]),import.meta.url),defaultWidthTier:"wide",icon:H.changes,get defaultTitle(){return e.layout_tabTypes_activityChanges_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},renameable:!1}),u.register({type:"hook-script",loadComponent:()=>c(()=>import("./C0Zo7HuP.js"),__vite__mapDeps([276,1,2,3,152,6,7,8,9,10,140,153,59,154,12,13,14,15,16,17,18,19,11,4,20,21,22,23,24,25,26,27,28,29,30,31,32,155,167,64,62,65,76,63,77]),import.meta.url),defaultWidthTier:"medium",icon:Ge,get defaultTitle(){return e.chat_backgroundHooks_viewScript_label()},get categoryLabel(){return e.layout_tabTypes_panel_category()},renameable:!1}),u.register({type:"settings",loadComponent:()=>c(()=>import("./CYSndAne.js"),__vite__mapDeps([277,1,2]),import.meta.url),defaultWidthTier:"narrow",icon:He,get defaultTitle(){return e.layout_tabTypes_settings_title()},get categoryLabel(){return e.layout_tabTypes_settings_category()},renameable:!1}),u.register({type:"overview",loadComponent:()=>c(()=>import("./CPI5xBWX.js"),__vite__mapDeps([278,1,2]),import.meta.url),defaultWidthTier:"narrow",icon:ue,get defaultTitle(){return e.layout_tabTypes_overview_title()},get categoryLabel(){return e.layout_tabTypes_overview_category()},renameable:!1})}async function Wt(y){if(y?.restoreStatus!=="restored")return;const _=new Set(Object.values(y.panels).flatMap(r=>{const k=r.tabs.find(l=>l.id===r.activeTabId);return k?[k.type]:[]}));await Promise.allSettled([..._].map(r=>u.loadComponent(r)))}var at=W("<!> <!>",1),rt=W('<img class="h-auto w-full max-w-64 rounded-lg" width="512" height="512"/>'),ot=W('<div class="flex aspect-square w-full max-w-64 items-center justify-center"><!></div>'),st=W('<div class="flex justify-center" data-testid="passkey-qr"><!></div>'),it=W('<div class="flex justify-center py-4 text-muted-foreground"><!></div>'),nt=W('<p class="type-caption text-muted-foreground" data-testid="passkey-pin-advice"> </p>'),lt=W('<form id="passkey-pin-form" class="flex flex-col gap-3"><!> <!></form>');function Pe(y,_){if(new.target)return Te({component:Pe,...y});we(_,!0);let r=ie(_,"payload",7),k=ie(_,"static",7,!1),l=ie(_,"onRespond",7),f=K(!1),A=K(""),U=K("");const a=b(()=>r()?.view??null);Q(()=>{v(f,r()!==null)}),Q(()=>{t(a)?.step!=="pin"&&v(A,"")});let z=K(0),Y=K(ze(Date.now()));Q(()=>{const i=t(a)?.step==="pin"&&t(a).kind==="device"?t(a).retryAfterMs:void 0;if(typeof i!="number"){v(z,0);return}const T=Date.now();v(Y,T,!0),v(z,T+i);const w=setInterval(()=>{v(Y,Date.now(),!0),t(Y)>=t(z)&&clearInterval(w)},250);return()=>clearInterval(w)});const ee=b(()=>Math.max(0,Math.ceil((t(z)-t(Y))/1e3))),_e=b(()=>t(a)?.step==="pin"&&(t(a).kind==="device"?t(ee)>0:typeof t(a).retryAfterMs=="number"));Q(()=>{const i=t(a)?.step==="qr"?t(a).data:"";if(!i){v(U,"");return}let T=!0;return c(async()=>{const{default:w}=await import("./BZ9svoQk.js").then(C=>C.b);return{default:w}},__vite__mapDeps([279,59]),import.meta.url).then(({default:w})=>w.toDataURL(i,{width:512,margin:2})).then(w=>{T&&v(U,w,!0)}),()=>{T=!1}});const Ee=b(()=>r()?r().kind==="create"?e.passkeys_dialog_createTitle_label({site:r().rpId}):e.passkeys_dialog_getTitle_label({site:r().rpId}):"");function De(i){switch(i){case"bluetooth-off":return e.passkeys_dialog_bluetoothOff_error();case"bluetooth-missing":return e.passkeys_dialog_bluetoothMissing_error();case"pin-locked":return e.passkeys_dialog_pinLocked_error();case"timeout":return e.passkeys_dialog_timeout_error();case"already-registered":return e.passkeys_dialog_alreadyRegistered_error();case"unavailable":return e.passkeys_dialog_unavailable_error();case"device-locked":return e.passkeys_dialog_deviceLocked_error();case"device-already-registered":return e.passkeys_dialog_deviceAlreadyRegistered_error();case"device-no-passkey":return e.passkeys_dialog_deviceNoPasskey_error({site:r()?.rpId??""});case"device-old-pin-wrong":return e.passkeys_dialog_deviceOldPinWrong_error();case"device-failed":return e.passkeys_dialog_deviceFailed_error();default:return e.passkeys_dialog_failed_error()}}const Ae=b(()=>{if(!(!t(a)||!r()))switch(t(a).step){case"choose-transport":return r().kind==="create"?e.passkeys_dialog_chooseCreate_description():e.passkeys_dialog_chooseGet_description();case"qr":case"progress":switch(t(a).progress){case"waiting-for-phone":return e.passkeys_dialog_waitingForPhone_description();case"connecting":return e.passkeys_dialog_connecting_description();case"waiting-for-approval":return e.passkeys_dialog_waitingForApproval_description();case"touch-key":return e.passkeys_dialog_touchKey_description();case"processing":return e.passkeys_dialog_processing_description();default:return t(a).step==="progress"&&t(a).transport==="usb"?e.passkeys_dialog_insertKey_description():e.passkeys_dialog_starting_description()}case"pin":return t(a).kind==="usb"?e.passkeys_dialog_pin_description():t(a).oldPin?e.passkeys_dialog_deviceOldPin_description():e.passkeys_dialog_devicePin_description();case"choose-account":return e.passkeys_dialog_chooseAccount_description();case"error":return De(t(a).reason)}}),de=b(()=>t(a)?.step==="pin"&&t(a).kind==="device"?t(a).oldPin?e.passkeys_dialog_deviceOldPin_label():e.passkeys_dialog_devicePin_label():e.passkeys_dialog_pin_label()),Ce=b(()=>{if(t(a)?.step==="pin"){if(t(a).kind==="device"){if(t(ee)>0)return e.passkeys_dialog_devicePinWait_error({seconds:t(ee)})}else if(typeof t(a).retryAfterMs=="number")return e.passkeys_dialog_pinRetryAfter_error();if(t(a).wrongPin)return typeof t(a).attemptsLeft=="number"?t(a).attemptsLeft===1?e.passkeys_dialog_wrongPinAttempts_one({count:t(a).attemptsLeft}):e.passkeys_dialog_wrongPinAttempts_many({count:t(a).attemptsLeft}):e.passkeys_dialog_wrongPin_error()}}),Oe=b(()=>{if(t(a)?.step!=="choose-transport")return[];const i=t(a).hybrid==="bluetooth-off"?e.passkeys_dialog_bluetoothOff_description():t(a).hybrid==="bluetooth-missing"?e.passkeys_dialog_bluetoothMissing_description():void 0;return[...t(a).device?[{id:"device",label:e.passkeys_dialog_thisDevice_label(),note:void 0,icon:qe}]:[],{id:"hybrid",label:e.passkeys_dialog_phone_label(),note:i,icon:Fe},{id:"usb",label:e.passkeys_dialog_securityKey_label(),note:void 0,icon:je}]});function te(){l()({action:"cancel"})}function Re(i){if(i.preventDefault(),!t(A))return;const T=t(A);v(A,""),l()({action:"pin",pin:T})}var xe={get payload(){return r()},set payload(i){r(i),ne()},get static(){return k()},set static(i=!1){k(i),ne()},get onRespond(){return l()},set onRespond(i){l(i),ne()},$set:he,$on:(i,T)=>ke(_,i,T)},pe=q(),We=M(pe);{var Se=i=>{{const T=C=>{var ae=q(),J=M(ae);{var re=P=>{le(P,{variant:"secondary",onclick:te,children:(S,B)=>{F();var V=x();I(d=>E(V,d),[()=>e.passkeys_dialog_close_label()]),p(S,V)},$$slots:{default:!0}})},oe=P=>{var S=at(),B=M(S);le(B,{variant:"ghost",onclick:te,children:(n,m)=>{F();var s=x();I(L=>E(s,L),[()=>e.passkeys_dialog_cancel_label()]),p(n,s)},$$slots:{default:!0}});var V=ye(B,2);{var d=n=>{{let m=b(()=>!t(A)||t(_e));le(n,{variant:"primary",type:"submit",form:"passkey-pin-form",get disabled(){return t(m)},children:(s,L)=>{F();var o=x();I(g=>E(o,g),[()=>e.passkeys_dialog_continue_label()]),p(s,o)},$$slots:{default:!0}})}};D(V,n=>{t(a).step==="pin"&&n(d)})}p(P,S)};D(J,P=>{t(a).step==="error"?P(re):P(oe,-1)})}p(C,ae)};let w=b(()=>t(a).step==="error"?e.passkeys_dialog_close_label():e.passkeys_dialog_cancel_label());Xe(i,{get static(){return k()},get title(){return t(Ee)},get description(){return t(Ae)},size:"sm",dismissOnInteractOutside:!1,get closeLabel(){return t(w)},onClose:te,get open(){return t(f)},set open(C){v(f,C,!0)},footer:T,children:(C,ae)=>{var J=q(),re=M(J);{var oe=d=>{{const n=(s,L)=>{let o=()=>(L?.()).item;me(s,{leading:h=>{Ue(h,{get icon(){return o().icon},fw:!0})},title:h=>{F();var R=x();I(()=>E(R,o().label)),p(h,R)},description:h=>{var R=q(),se=M(R);{var G=$=>{var ce=x();I(()=>E(ce,o().note)),p($,ce)};D(se,$=>{o().note&&$(G)})}p(h,R)},$$slots:{leading:!0,title:!0,description:!0}})};let m=b(()=>e.passkeys_dialog_transports_ariaLabel());be(d,{get items(){return t(Oe)},getKey:s=>s.id,getText:s=>s.label,get ariaLabel(){return t(m)},onActivate:s=>l()({action:"transport",transport:s.id}),row:n,$$slots:{row:!0}})}},P=d=>{var n=st(),m=X(n);{var s=o=>{var g=rt();I(O=>{fe(g,"src",t(U)),fe(g,"alt",O)},[()=>e.passkeys_dialog_qrImage_ariaLabel()]),p(o,g)},L=o=>{var g=ot(),O=X(g);ve(O,{size:20}),Z(g),p(o,g)};D(m,o=>{t(U)?o(s):o(L,-1)})}Z(n),p(d,n)},S=d=>{var n=it(),m=X(n);ve(m,{size:20}),Z(n),p(d,n)},B=d=>{var n=lt(),m=X(n);{let o=b(()=>t(a).kind==="device"?"numeric":void 0);Ze(m,{type:"password",get inputmode(){return t(o)},autocomplete:"off",get"aria-label"(){return t(de)},get placeholder(){return t(de)},get error(){return t(Ce)},get disabled(){return t(_e)},autofocus:!0,get value(){return t(A)},set value(g){v(A,g,!0)}})}var s=ye(m,2);{var L=o=>{var g=nt(),O=Je(g,!0);I(N=>E(O,N),[()=>e.passkeys_dialog_devicePinAdvice_description()]),p(o,g)};D(s,o=>{t(a).firstPasskey&&o(L)})}Z(n),Ye("submit",n,Re),p(d,n)},V=d=>{{const n=(s,L)=>{let o=()=>(L?.()).item;me(s,{title:N=>{F();var h=x();I(()=>E(h,o().userDisplayName||o().userName)),p(N,h)},description:N=>{var h=q(),R=M(h);{var se=G=>{var $=x();I(()=>E($,o().userName)),p(G,$)};D(R,G=>{o().userDisplayName&&o().userName&&G(se)})}p(N,h)},$$slots:{title:!0,description:!0}})};let m=b(()=>e.passkeys_dialog_accounts_ariaLabel());be(d,{get items(){return t(a).accounts},getKey:s=>s.index,getText:s=>s.userDisplayName||s.userName,get ariaLabel(){return t(m)},onActivate:s=>l()({action:"choose",index:s.index}),row:n,$$slots:{row:!0}})}};D(re,d=>{t(a).step==="choose-transport"?d(oe):t(a).step==="qr"?d(P,1):t(a).step==="progress"?d(S,2):t(a).step==="pin"?d(B,3):t(a).step==="choose-account"&&d(V,4)})}p(C,J)},$$slots:{footer:!0,default:!0}})}};D(We,i=>{r()&&t(a)&&i(Se)})}return p(y,pe),Le(xe)}const _t=new tt("PasskeyDialog"),j=et.PASSKEYS;function dt(y){const _=Ie();if(!_)return()=>{};const r=_.on(j.DIALOG_SHOW,l=>{const f=l;!f||typeof f.ceremonyId!="string"||!f.view||y.onShow(f)}),k=_.on(j.DIALOG_CLOSE,l=>{const f=l;f&&typeof f.ceremonyId=="string"&&y.onClose(f.ceremonyId)});return()=>{_.offById(j.DIALOG_SHOW,r),_.offById(j.DIALOG_CLOSE,k)}}function pt(y){const _=Ie();_&&_.invoke(j.DIALOG_RESPOND,y).catch(()=>{_t.warn("Passkey dialog response failed",{action:y.action})})}function ct(y,_){if(new.target)return Te({component:ct,...y});we(_,!0);let r=K(null);Qe(()=>dt({onShow:l=>{v(r,l,!0)},onClose:l=>{t(r)?.ceremonyId===l&&v(r,null)}}));var k={$set:he,$on:(l,f)=>ke(_,l,f)};return Pe(y,{get payload(){return t(r)},onRespond:l=>{t(r)&&pt({...l,ceremonyId:t(r).ceremonyId})}}),Le(k)}export{ct as P,Wt as p,xt as r};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/DY1YVoxv.js","/app/immutable/chunks/DWvCfaBg.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/VTJf_qPn.js","/app/immutable/chunks/bIL0xbKX.js","/app/immutable/chunks/B1xM1EBM.js","/app/immutable/chunks/CueOVPTy.js","/app/immutable/chunks/Bu3PKqut.js","/app/immutable/chunks/BCuI_zgX.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/Y_tkjygB.js","/app/immutable/chunks/BXHbm15d.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/Drf1gLyo.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/CIKXOyvw.js","/app/immutable/chunks/zFAkpaJn.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/W05hyx94.js","/app/immutable/chunks/2aKRVAvL.js","/app/immutable/chunks/CIoJPvjg.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/DY5rw8pn.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/D7yetF0v.js","/app/immutable/chunks/BlRGZv8u.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/CTqRHXfu.js","/app/immutable/chunks/DEKjIPd8.js","/app/immutable/chunks/BRdQpeCl.js","/app/immutable/chunks/B3OJ_2Dd.js","/app/immutable/chunks/B8foSZsl.js","/app/immutable/chunks/CdGl_2eX.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/77KTvr2w.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/B0kNPCxU.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/Df4a242o.js","/app/immutable/chunks/DeY70dof.js","/app/immutable/chunks/yqEyUNVG.js","/app/immutable/chunks/CvusaaYc.js","/app/immutable/chunks/BjLb7AHW.js","/app/immutable/chunks/BRPJcG-m.js","/app/immutable/chunks/DAsc1V4f.js","/app/immutable/chunks/BsieX9dN.js","/app/immutable/chunks/CUA9hM4m.js","/app/immutable/assets/SettingsPage.CKvEnOAL.css","/app/immutable/chunks/COSIRxZC.js","/app/immutable/chunks/goTpbPhD.js","/app/immutable/chunks/DbxqdYAO.js","/app/immutable/chunks/D5xlMOwU.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/CQ5BHnSj.js","/app/immutable/chunks/3Kr2ijlK.js","/app/immutable/chunks/BrDfJqC4.js","/app/immutable/chunks/D-62MVd3.js","/app/immutable/chunks/lSLkjC_I.js","/app/immutable/chunks/CL3a4Hm1.js","/app/immutable/chunks/BOnTc4ny.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/CFB2mNds.js","/app/immutable/chunks/Bb-hI5du.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/DpvQ3NRH.js","/app/immutable/chunks/Btst3lgy.js","/app/immutable/chunks/DJJ2Xrlq.js","/app/immutable/chunks/UqcU95a7.js","/app/immutable/chunks/CsilY7l9.js","/app/immutable/assets/slider.kL-wkHnx.css","/app/immutable/chunks/DAVG7sIL.js","/app/immutable/chunks/BweHPPaS.js","/app/immutable/chunks/UnM4qztD.js","/app/immutable/chunks/CQcEqK4G.js","/app/immutable/chunks/COsxNPUV.js","/app/immutable/chunks/21kfe-mS.js","/app/immutable/chunks/0y7aytZM.js","/app/immutable/chunks/BmLlDCoW.js","/app/immutable/chunks/9AJtSub0.js","/app/immutable/assets/DockScreenshotEditorWindow.DNkBhnHK.css","/app/immutable/assets/dock-tokens.C3wiNkmL.css","/app/immutable/chunks/awY5HvZY.js","/app/immutable/chunks/_HPNXgkR.js","/app/immutable/chunks/Cwg3XF5F.js","/app/immutable/chunks/Di_ao8Rc.js","/app/immutable/assets/select-viewport.CV-KWLNP.css","/app/immutable/chunks/BVcaPXq9.js","/app/immutable/chunks/3Qz3qAhk.js","/app/immutable/chunks/Dde9Z_vp.js","/app/immutable/chunks/bojY7ttK.js","/app/immutable/chunks/BzW_moTi.js","/app/immutable/chunks/FQkCsxt2.js","/app/immutable/chunks/ChKOG1mU.js","/app/immutable/chunks/A3z9XWMi.js","/app/immutable/chunks/COBhx_l-.js","/app/immutable/chunks/Dduwpj0a.js","/app/immutable/assets/checkbox.D429NJZk.css","/app/immutable/chunks/Bv_0mmoe.js","/app/immutable/chunks/BCiWc-GH.js","/app/immutable/chunks/BthojcF8.js","/app/immutable/chunks/BIcof04i.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/TN7R9Ny0.js","/app/immutable/chunks/BVyOECUU.js","/app/immutable/assets/directory-picker-service.Eai7L_H2.css","/app/immutable/chunks/QIFiwjW0.js","/app/immutable/chunks/Bf_4e4N2.js","/app/immutable/chunks/Dt3xwKL6.js","/app/immutable/chunks/CvSLeFQo.js","/app/immutable/chunks/r5JNAzEM.js","/app/immutable/assets/AgentAvatar.CZKKHyEm.css","/app/immutable/assets/avatar-state.BzFIexJN.css","/app/immutable/chunks/D22j4iWy.js","/app/immutable/assets/TipTapEditor.BmeA7Qtk.css","/app/immutable/chunks/0b3rkAam.js","/app/immutable/chunks/DzBJS0Lp.js","/app/immutable/chunks/UQ6MIVTw.js","/app/immutable/assets/image-context-items.D_hsaikk.css","/app/immutable/chunks/BYYtBM5R.js","/app/immutable/chunks/CZ5zON0R.js","/app/immutable/assets/AttachmentPreview.DWUPhcKi.css","/app/immutable/chunks/BqrahRdk.js","/app/immutable/chunks/Dbr8gjWS.js","/app/immutable/chunks/DKupjKLn.js","/app/immutable/chunks/Bu13V5mO.js","/app/immutable/chunks/DzpuLv6U.js","/app/immutable/chunks/BCVhFPNJ.js","/app/immutable/chunks/DdRupUfV.js","/app/immutable/chunks/BW2en5Js.js","/app/immutable/chunks/BKD7o1lQ.js","/app/immutable/assets/TaskStatusIcon.sfU2TZ7a.css","/app/immutable/chunks/BcYVm7io.js","/app/immutable/chunks/BIkt0YE0.js","/app/immutable/chunks/BWI85bGY.js","/app/immutable/assets/AgentCard.Cna0hri3.css","/app/immutable/chunks/BeUuk8D1.js","/app/immutable/chunks/DEB8jcix.js","/app/immutable/chunks/lwn02icp.js","/app/immutable/chunks/De0cdeOU.js","/app/immutable/assets/TrackedChangeDiffViewer.CveSjyPc.css","/app/immutable/chunks/Dyx6ysl7.js","/app/immutable/chunks/BbfEcBPg.js","/app/immutable/chunks/CcNhqKh5.js","/app/immutable/assets/syntax-highlighting.CrQGLq0X.css","/app/immutable/assets/CodeBlock.BezhEtUo.css","/app/immutable/chunks/BolJpU8l.js","/app/immutable/chunks/BbIcudMY.js","/app/immutable/chunks/CRUcTVFP.js","/app/immutable/assets/DiagramPresentation.C2GLYoBN.css","/app/immutable/chunks/Da8rtzmJ.js","/app/immutable/chunks/D5A9atQX.js","/app/immutable/chunks/DgAgTFcK.js","/app/immutable/chunks/C-BsEdGZ.js","/app/immutable/chunks/BDbFQqI8.js","/app/immutable/assets/MarkdownViewer.D2MexjjT.css","/app/immutable/chunks/DZSbMOPJ.js","/app/immutable/chunks/CGUVvS8r.js","/app/immutable/chunks/Bb8ARnaK.js","/app/immutable/chunks/-8AxW0IA.js","/app/immutable/assets/workspace-key-menu.DrT-Fxqq.css","/app/immutable/chunks/A0p6PvBn.js","/app/immutable/chunks/YqTahsxp.js","/app/immutable/chunks/8jO_MBKF.js","/app/immutable/chunks/DFKO8V-Y.js","/app/immutable/chunks/DsOS7N8Z.js","/app/immutable/assets/StreamingDiagramRenderer.BShsSvPz.css","/app/immutable/assets/chat-search.Cjb73igJ.css","/app/immutable/chunks/BB-hf8IY.js","/app/immutable/chunks/BpLxj3s3.js","/app/immutable/chunks/C21Z9LLF.js","/app/immutable/chunks/Dh438xC0.js","/app/immutable/chunks/D4WPlvMg.js","/app/immutable/chunks/MoxNukrR.js","/app/immutable/chunks/Dm3wAkDL.js","/app/immutable/chunks/fC3yz20p.js","/app/immutable/chunks/BwVjpKmH.js","/app/immutable/chunks/C6Wi6O6n.js","/app/immutable/assets/AgentAvatarStack.DOhClFuX.css","/app/immutable/chunks/BoEcbLG-.js","/app/immutable/assets/conversation-turns.P_pkAsRX.css","/app/immutable/chunks/DyXOhKE5.js","/app/immutable/chunks/DJb2lMGn.js","/app/immutable/chunks/DxWgWHgi.js","/app/immutable/chunks/B9kUdNbG.js","/app/immutable/chunks/Dpvv-9m3.js","/app/immutable/chunks/BD7jFvJp.js","/app/immutable/chunks/DAI6QH7D.js","/app/immutable/chunks/BNFvOw36.js","/app/immutable/chunks/H2jLkRRS.js","/app/immutable/chunks/B2OS2WTh.js","/app/immutable/assets/WorkspaceSetupCard.DNLkSKZg.css","/app/immutable/chunks/BqCTtUhB.js","/app/immutable/chunks/DL6gGkHp.js","/app/immutable/assets/DockRecordingEditor.BX1NXczK.css","/app/immutable/chunks/CSb1CnpN.js","/app/immutable/chunks/hstOawAs.js","/app/immutable/chunks/DcLVN86K.js","/app/immutable/assets/ChatPanel.B73KM22O.css","/app/immutable/assets/HomeWorkspaceDetail.Dp5EWw2P.css","/app/immutable/chunks/DOir9M0E.js","/app/immutable/chunks/jyNUu-ZR.js","/app/immutable/chunks/CQ409-Pj.js","/app/immutable/chunks/DpxbS0Pj.js","/app/immutable/chunks/CXXVPWBH.js","/app/immutable/chunks/DWGXN6Nr.js","/app/immutable/chunks/CY0EK8Cm.js","/app/immutable/chunks/Cerl373K.js","/app/immutable/chunks/BUTuN2nE.js","/app/immutable/assets/BrowserTabType.DojB6H-_.css","/app/immutable/chunks/C1La-Fme.js","/app/immutable/chunks/COS4Sgoi.js","/app/immutable/chunks/D3yXvqwY.js","/app/immutable/chunks/DvnO7gWT.js","/app/immutable/chunks/D2Tzo4Hp.js","/app/immutable/chunks/B3JbrKDZ.js","/app/immutable/chunks/DtQHtXEW.js","/app/immutable/chunks/DX2U4Mz9.js","/app/immutable/assets/register.CUyDR59i.css","/app/immutable/assets/terminal-manager.MhP_vFvK.css","/app/immutable/chunks/CDxV78M0.js","/app/immutable/assets/confirm-script-deletion.CqNa5NIC.css","/app/immutable/chunks/C9ij7Z2h.js","/app/immutable/assets/Terminal.Ddek5eNE.css","/app/immutable/chunks/wBNgrgMC.js","/app/immutable/chunks/BPDyvu9A.js","/app/immutable/chunks/ico0GHoP.js","/app/immutable/chunks/BGo6FK-0.js","/app/immutable/chunks/B-MjuJTx.js","/app/immutable/chunks/x-RVzKqZ.js","/app/immutable/chunks/CLqqc_hU.js","/app/immutable/chunks/CSiaiLHL.js","/app/immutable/chunks/3LCOBHm6.js","/app/immutable/chunks/B_QPRXJ5.js","/app/immutable/chunks/BxU747mj.js","/app/immutable/chunks/BIv0yV05.js","/app/immutable/chunks/BO4HougN.js","/app/immutable/chunks/CM9GoLV5.js","/app/immutable/assets/AgentOverviewTabType.DU1WpoFR.css","/app/immutable/chunks/CfnXjWQL.js","/app/immutable/chunks/TXPMw3n4.js","/app/immutable/chunks/Bn4F-JIh.js","/app/immutable/chunks/Cpgxz5sK.js","/app/immutable/chunks/Djah0WfC.js","/app/immutable/assets/DiscussionTabType.D3Laoutn.css","/app/immutable/chunks/6SOEgr71.js","/app/immutable/chunks/CyHe7TdT.js","/app/immutable/chunks/maZzJmVw.js","/app/immutable/assets/CodeEditor.Bq04Rj-N.css","/app/immutable/chunks/DjNuITHM.js","/app/immutable/assets/LineChangesBadge.CJ0J_Z0k.css","/app/immutable/chunks/CDxGu9F5.js","/app/immutable/assets/NoteTabType.AG_iwaNn.css","/app/immutable/chunks/BdY8OnZP.js","/app/immutable/chunks/wEnqV1Ol.js","/app/immutable/chunks/DGdWzkgm.js","/app/immutable/chunks/7i0OJtNQ.js","/app/immutable/assets/FileTabType.BUKcoHE1.css","/app/immutable/chunks/DyLERSuu.js","/app/immutable/chunks/-VR23WhZ.js","/app/immutable/chunks/DrkDJmY5.js","/app/immutable/chunks/De2a277N.js","/app/immutable/assets/ChatChangesPanel.BQqG1JnE.css","/app/immutable/chunks/DBwdk2-0.js","/app/immutable/chunks/BCFB88Wl.js","/app/immutable/chunks/BhtJVlVx.js","/app/immutable/chunks/PkPZtGfM.js","/app/immutable/chunks/B18ybwa0.js","/app/immutable/chunks/C8TrySMt.js","/app/immutable/chunks/BZ9svoQk.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{bm as e,_ as c,t as Te,bo as ie,bw as he,b as ke}from"./DWvCfaBg.js";import{t as u}from"./ChOMtuod.js";import{bD as ue,bv as Ve,cK as Ne,aO as $e,cn as Me,aV as ge,bg as Ke,aN as Be,aM as Ge,bs as He,bL as qe,b_ as Fe,bJ as je,F as Ue}from"./D7yetF0v.js";import{R as H}from"./BbWnSSTS.js";import{bs as we,ca as Q,bH as v,aD as t,bV as K,br as ze,a7 as q,ay as M,W as p,bn as Le,c9 as b,aA as ne,a5 as X,bA as Z,bS as ye,aw as Ye,aB as W,be as F,b$ as x,b_ as I,bO as E,bl as Je,bk as Qe}from"./3SdAC2_C.js";import{i as D}from"./VTJf_qPn.js";import{s as fe}from"./BCuI_zgX.js";import{L as me}from"./UQ6MIVTw.js";import{C as Xe,L as be}from"./CTqRHXfu.js";import{I as Ze}from"./BRdQpeCl.js";import"./B3OJ_2Dd.js";import"./B0kNPCxU.js";import{f as le}from"./Drf1gLyo.js";import{v as Ie}from"./CIKXOyvw.js";import"./77KTvr2w.js";import"./Bu3PKqut.js";import{I as ve}from"./CueOVPTy.js";import{I as et}from"./Bqd7fdCF.js";import"./zFAkpaJn.js";import{a as tt}from"./BdWqymET.js";function xt(){u.register({type:"workspace",loadComponent:()=>c(()=>import("./DY1YVoxv.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209]),import.meta.url),defaultWidthTier:"wide",icon:ue,get defaultTitle(){return e.workspace_page_workspaceResource_label()},get categoryLabel(){return e.workspace_page_workspaceResource_label()},renameable:!1}),u.register({type:"browser",loadComponent:()=>c(()=>import("./DOir9M0E.js"),__vite__mapDeps([210,1,2,3,11,6,7,8,9,10,15,211,22,23,24,25,26,18,13,4,71,14,16,17,19,12,20,21,27,28,29,30,31,32,45,33,34,35,36,37,38,39,40,41,42,43,44,46,58,72,64,62,65,68,60,59,73,74,75,76,63,77,78,181,92,57,61,182,212,123,213,125,52,136,86,214,99,100,215,109,110,111,112,113,216,217,102,218,219]),import.meta.url),defaultWidthTier:"wide",icon:Ve,get defaultTitle(){return e.layout_tabTypes_browser_title()},get categoryLabel(){return e.layout_tabTypes_browser_category()},sidebarTabId:"browser",renameable:!1}),u.register({type:"terminal",loadComponent:()=>c(()=>import("./C1La-Fme.js"),__vite__mapDeps([220,1,2,3,4,11,28,7,8,9,10,6,64,18,22,23,24,25,26,13,62,16,17,19,65,20,221,15,222,223,59,60,57,58,61,63,224,225,226,227,228,112,212,191,229,14,12,21,27,29,30,31,32,213,230,72,68,73,74,75,76,77,78,36,42,43,40,41,217,231,38,35,39,136,33,34,37,44,45,46,215,232,149,233,234,102,218]),import.meta.url),defaultWidthTier:"medium",icon:Ne,get defaultTitle(){return e.layout_tabTypes_terminal_title()},get categoryLabel(){return e.layout_tabTypes_terminal_category()},sidebarTabId:"terminals",renameable:!1}),u.register({type:"code-review",loadComponent:()=>c(()=>import("./BPDyvu9A.js"),__vite__mapDeps([235,1,2,22,23,24,25,9,7,26,18,13,3,29,6,8,10,64,28,11,62,16,17,19,65,20,216,76,63,78,92,72,68,60,59,73,74,75,77,58,57,61,217,181,12,14,15,4,21,27,30,31,32,182,102,236,237,178,84,87,179,180,130,132,133,142,230,167,238,218,239,36,42,43,40,41,113,112,172,206,191,213,143,135,71,240,241,242,243,244,199,151,109,110,111,245,246,224,225,226,227,228,140,153,154,35,164,82,69,70,33,34,37,38,39,44,45,46,79,80,81,50,51,117,165,125,52]),import.meta.url),defaultWidthTier:"wide",icon:$e,get defaultTitle(){return e.layout_tabTypes_codeReview_title()},get categoryLabel(){return e.layout_tabTypes_codeReview_category()},renameable:!1}),u.register({type:"agent-overview",loadComponent:()=>c(()=>import("./CM9GoLV5.js"),__vite__mapDeps([247,1,2,3,6,7,8,9,10,15,14,16,13,17,18,19,11,4,119,120,121,75,22,23,24,25,26,76,63,77,64,28,62,65,20,78,58,122,12,21,27,29,30,31,32,158,81,51,178,84,87,68,60,59,179,180,130,92,72,73,74,57,61,132,133,142,109,110,111,112,113,248]),import.meta.url),defaultWidthTier:"narrow",icon:Me,get defaultTitle(){return e.layout_tabTypes_agentOverview_title()},get categoryLabel(){return e.layout_tabTypes_agents_category()},renameable:!1}),u.register({type:"agent",loadComponent:()=>c(()=>import("./CfnXjWQL.js"),__vite__mapDeps([249,1,2,3,4,6,7,8,9,10,11,15,72,22,23,24,25,26,18,13,64,28,62,16,17,19,65,20,68,60,59,73,74,75,76,63,77,78,58,250,14,251,238,12,21,27,29,30,31,32,237,102,57,61,133,205,44,45,215,240,132,92,241,103,35,36,47,48,49,42,43,50,51,52,53,104,38,39,105,86,34,37,40,41,71,82,33,46,106,107,108,95,96,81,109,110,111,112,113,114,115,194,54,55,56,66,67,69,70,79,80,83,84,85,87,88,89,90,91,93,94,97,98,99,100,101,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,195,196,197,198,199,200,201,202,203,204,206,207,208,217,216]),import.meta.url),defaultWidthTier:"chat",icon:ge,get defaultTitle(){return e.layout_tabTypes_agent_title()},get categoryLabel(){return e.layout_tabTypes_agents_category()},sidebarTabId:"agents",renameable:!0}),u.register({type:"discussion",loadComponent:()=>c(()=>import("./Cpgxz5sK.js"),__vite__mapDeps([252,1,2,3,4,11,8,9,7,10,16,13,17,18,19,38,6,29,35,15,36,14,39,33,34,37,27,40,41,28,42,31,43,44,45,46,21,22,23,24,25,26,217,12,20,30,32,64,62,65,72,68,60,59,73,74,75,76,63,77,78,58,92,57,61,194,88,89,66,114,120,121,125,52,161,82,164,140,69,70,71,79,80,81,50,51,117,165,99,100,48,236,216,181,182,102,237,178,84,87,179,180,130,132,133,142,230,167,238,218,239,113,112,172,206,191,213,143,135,240,241,242,243,244,199,151,109,110,111,245,246,224,225,226,227,228,129,131,253,98,94,95,49,96,97,118,215,254]),import.meta.url),defaultWidthTier:"chat",icon:ge,get defaultTitle(){return e.workspace_discussion_title()},get categoryLabel(){return e.workspace_discussion_list_label()},sidebarTabId:"people",renameable:!1}),u.register({type:"note",loadComponent:()=>c(()=>import("./6SOEgr71.js"),__vite__mapDeps([255,1,2,3,11,64,18,9,22,23,24,25,7,26,13,28,8,10,6,62,16,17,19,65,20,215,181,92,72,68,60,59,73,74,75,76,63,77,78,58,57,61,12,14,15,4,21,27,29,30,31,32,182,35,36,81,88,89,50,51,33,34,37,38,39,40,41,42,43,44,45,46,117,120,121,138,139,140,141,116,71,52,69,70,79,80,82,67,118,114,119,122,123,100,124,236,216,217,102,237,178,84,87,179,180,130,132,133,142,230,167,238,218,239,113,112,172,206,191,213,143,135,240,241,242,243,244,199,151,109,110,111,245,246,224,225,226,227,228,146,55,147,148,149,150,256,257,258,108,95,49,96,163,195,259,260,153,154,106,48,107,261,156,157,158,159,152,155,162,184,192,136,197,198,174,164,165,262]),import.meta.url),defaultWidthTier:"medium",icon:H.note,get defaultTitle(){return e.layout_tabTypes_note_title()},get categoryLabel(){return e.layout_tabTypes_context_category()},sidebarTabId:"notes",renameable:!0}),u.register({type:"file",loadComponent:()=>c(()=>import("./BdY8OnZP.js"),__vite__mapDeps([263,1,2,3,4,6,7,8,9,10,11,15,22,23,24,25,26,18,13,215,151,64,28,62,16,17,19,65,20,264,68,60,59,199,77,12,14,21,27,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,236,61,57,58,63,92,72,73,74,75,76,78,216,217,181,182,102,237,178,84,87,179,180,130,132,133,142,230,167,238,218,239,113,112,172,206,191,213,143,135,71,240,241,242,243,244,109,110,111,245,246,224,225,226,227,228,256,257,117,258,164,140,82,69,70,79,80,81,50,51,165,136,265,123,266,234,267]),import.meta.url),defaultWidthTier:"wide",icon:Ke,get defaultTitle(){return e.layout_tabTypes_file_title()},get categoryLabel(){return e.layout_tabTypes_files_category()},sidebarTabId:"files",renameable:!0}),u.register({type:"diff",loadComponent:()=>c(()=>import("./DyLERSuu.js"),__vite__mapDeps([268,1,2,3,4,11,163,22,23,24,25,9,7,26,18,13,215,64,28,8,10,6,62,16,17,19,65,20,146,55,15,132,59,92,72,68,60,73,74,75,76,63,77,78,58,57,61,21,133,147,148,14,149,35,29,36,150,269,151,33,34,37,27,38,39,40,41,42,31,43,44,45,46,117,136,265,197,198,174,12,30,32,199,121]),import.meta.url),defaultWidthTier:"wide",icon:Be,get defaultTitle(){return e.layout_tabTypes_diff_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},sidebarTabId:"files",renameable:!1}),u.register({type:"changes",loadComponent:()=>c(()=>import("./DrkDJmY5.js"),__vite__mapDeps([270,1,2,4,15,22,23,24,25,9,7,26,18,13,163,215,64,28,11,3,8,10,6,62,16,17,19,65,20,216,76,63,78,92,72,68,60,59,73,74,75,77,58,57,61,217,181,12,14,21,27,29,30,31,32,182,102,271,160,259,260,146,55,132,133,147,148,149,35,36,150,269,151,33,34,37,38,39,40,41,42,43,44,45,46,117,120,121,106,48,49,107,134,135,71,126,143,178,84,87,179,180,130,142,236,237,230,167,238,218,239,113,112,172,206,191,213,240,241,242,243,244,199,109,110,111,245,246,224,225,226,227,228,272,265]),import.meta.url),defaultWidthTier:"wide",icon:H.changes,get defaultTitle(){return e.layout_tabTypes_changes_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},sidebarTabId:"changes",renameable:!1}),u.register({type:"local-changes",loadComponent:()=>c(()=>import("./DBwdk2-0.js"),__vite__mapDeps([273,1,2,15,22,23,24,25,9,7,26,18,13,163,215,64,28,11,3,8,10,6,62,16,17,19,65,20,271,29,160,259,260,92,72,68,60,59,73,74,75,76,63,77,78,58,57,61,146,55,132,21,133,147,148,14,4,149,35,36,150,269,151,33,34,37,27,38,39,40,41,42,31,43,44,45,46,117,120,121,106,30,48,49,107,12,32,134,135,71,126,143,181,182,216,217,102,178,84,87,179,180,130,142,236,237,230,167,238,218,239,113,112,172,206,191,213,240,241,242,243,244,199,109,110,111,245,246,224,225,226,227,228,272,265]),import.meta.url),defaultWidthTier:"wide",icon:H.changes,get defaultTitle(){return e.layout_tabTypes_localChanges_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},sidebarTabId:"changes",renameable:!1}),u.register({type:"chat-changes",loadComponent:()=>c(()=>import("./BCFB88Wl.js"),__vite__mapDeps([274,1,2,3,271,6,7,8,9,10,29,15,22,23,24,25,26,18,13,160,64,28,11,62,16,17,19,65,20,259,260,92,72,68,60,59,73,74,75,76,63,77,78,58,57,61,146,55,132,21,133,147,148,14,4,149,35,36,150,269,151,33,34,37,27,38,39,40,41,42,31,43,44,45,46,117,120,121,106,30,48,49,107,12,32,134,135,71,126,143,181,182,216,217,102,178,84,87,179,180,130,142,236,237,230,167,238,218,239,113,112,172,206,191,213,240,241,242,243,244,199,109,110,111,245,246,224,225,226,227,228,272]),import.meta.url),defaultWidthTier:"wide",icon:H.changes,get defaultTitle(){return e.layout_tabTypes_chatChanges_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},renameable:!1}),u.register({type:"activity-changes",loadComponent:()=>c(()=>import("./BhtJVlVx.js"),__vite__mapDeps([275,1,2,3,4,11,62,241,24,59,146,8,9,7,10,55,15,132,16,13,17,18,19,22,23,25,26,92,64,28,6,65,20,72,68,60,73,74,75,76,63,77,78,58,57,61,21,133,147,148,14,149,35,29,36,150,269,151,33,34,37,27,38,39,40,41,42,31,43,44,45,46,117,215,136,265,197,198,174,12,30,32,199,121]),import.meta.url),defaultWidthTier:"wide",icon:H.changes,get defaultTitle(){return e.layout_tabTypes_activityChanges_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},renameable:!1}),u.register({type:"hook-script",loadComponent:()=>c(()=>import("./PkPZtGfM.js"),__vite__mapDeps([276,1,2,3,152,6,7,8,9,10,140,153,59,154,12,13,14,15,16,17,18,19,11,4,20,21,22,23,24,25,26,27,28,29,30,31,32,155,167,64,62,65,76,63,77]),import.meta.url),defaultWidthTier:"medium",icon:Ge,get defaultTitle(){return e.chat_backgroundHooks_viewScript_label()},get categoryLabel(){return e.layout_tabTypes_panel_category()},renameable:!1}),u.register({type:"settings",loadComponent:()=>c(()=>import("./B18ybwa0.js"),__vite__mapDeps([277,1,2]),import.meta.url),defaultWidthTier:"narrow",icon:He,get defaultTitle(){return e.layout_tabTypes_settings_title()},get categoryLabel(){return e.layout_tabTypes_settings_category()},renameable:!1}),u.register({type:"overview",loadComponent:()=>c(()=>import("./C8TrySMt.js"),__vite__mapDeps([278,1,2]),import.meta.url),defaultWidthTier:"narrow",icon:ue,get defaultTitle(){return e.layout_tabTypes_overview_title()},get categoryLabel(){return e.layout_tabTypes_overview_category()},renameable:!1})}async function Wt(y){if(y?.restoreStatus!=="restored")return;const _=new Set(Object.values(y.panels).flatMap(r=>{const k=r.tabs.find(l=>l.id===r.activeTabId);return k?[k.type]:[]}));await Promise.allSettled([..._].map(r=>u.loadComponent(r)))}var at=W("<!> <!>",1),rt=W('<img class="h-auto w-full max-w-64 rounded-lg" width="512" height="512"/>'),ot=W('<div class="flex aspect-square w-full max-w-64 items-center justify-center"><!></div>'),st=W('<div class="flex justify-center" data-testid="passkey-qr"><!></div>'),it=W('<div class="flex justify-center py-4 text-muted-foreground"><!></div>'),nt=W('<p class="type-caption text-muted-foreground" data-testid="passkey-pin-advice"> </p>'),lt=W('<form id="passkey-pin-form" class="flex flex-col gap-3"><!> <!></form>');function Pe(y,_){if(new.target)return Te({component:Pe,...y});we(_,!0);let r=ie(_,"payload",7),k=ie(_,"static",7,!1),l=ie(_,"onRespond",7),f=K(!1),A=K(""),U=K("");const a=b(()=>r()?.view??null);Q(()=>{v(f,r()!==null)}),Q(()=>{t(a)?.step!=="pin"&&v(A,"")});let z=K(0),Y=K(ze(Date.now()));Q(()=>{const i=t(a)?.step==="pin"&&t(a).kind==="device"?t(a).retryAfterMs:void 0;if(typeof i!="number"){v(z,0);return}const T=Date.now();v(Y,T,!0),v(z,T+i);const w=setInterval(()=>{v(Y,Date.now(),!0),t(Y)>=t(z)&&clearInterval(w)},250);return()=>clearInterval(w)});const ee=b(()=>Math.max(0,Math.ceil((t(z)-t(Y))/1e3))),_e=b(()=>t(a)?.step==="pin"&&(t(a).kind==="device"?t(ee)>0:typeof t(a).retryAfterMs=="number"));Q(()=>{const i=t(a)?.step==="qr"?t(a).data:"";if(!i){v(U,"");return}let T=!0;return c(async()=>{const{default:w}=await import("./BZ9svoQk.js").then(C=>C.b);return{default:w}},__vite__mapDeps([279,59]),import.meta.url).then(({default:w})=>w.toDataURL(i,{width:512,margin:2})).then(w=>{T&&v(U,w,!0)}),()=>{T=!1}});const Ee=b(()=>r()?r().kind==="create"?e.passkeys_dialog_createTitle_label({site:r().rpId}):e.passkeys_dialog_getTitle_label({site:r().rpId}):"");function De(i){switch(i){case"bluetooth-off":return e.passkeys_dialog_bluetoothOff_error();case"bluetooth-missing":return e.passkeys_dialog_bluetoothMissing_error();case"pin-locked":return e.passkeys_dialog_pinLocked_error();case"timeout":return e.passkeys_dialog_timeout_error();case"already-registered":return e.passkeys_dialog_alreadyRegistered_error();case"unavailable":return e.passkeys_dialog_unavailable_error();case"device-locked":return e.passkeys_dialog_deviceLocked_error();case"device-already-registered":return e.passkeys_dialog_deviceAlreadyRegistered_error();case"device-no-passkey":return e.passkeys_dialog_deviceNoPasskey_error({site:r()?.rpId??""});case"device-old-pin-wrong":return e.passkeys_dialog_deviceOldPinWrong_error();case"device-failed":return e.passkeys_dialog_deviceFailed_error();default:return e.passkeys_dialog_failed_error()}}const Ae=b(()=>{if(!(!t(a)||!r()))switch(t(a).step){case"choose-transport":return r().kind==="create"?e.passkeys_dialog_chooseCreate_description():e.passkeys_dialog_chooseGet_description();case"qr":case"progress":switch(t(a).progress){case"waiting-for-phone":return e.passkeys_dialog_waitingForPhone_description();case"connecting":return e.passkeys_dialog_connecting_description();case"waiting-for-approval":return e.passkeys_dialog_waitingForApproval_description();case"touch-key":return e.passkeys_dialog_touchKey_description();case"processing":return e.passkeys_dialog_processing_description();default:return t(a).step==="progress"&&t(a).transport==="usb"?e.passkeys_dialog_insertKey_description():e.passkeys_dialog_starting_description()}case"pin":return t(a).kind==="usb"?e.passkeys_dialog_pin_description():t(a).oldPin?e.passkeys_dialog_deviceOldPin_description():e.passkeys_dialog_devicePin_description();case"choose-account":return e.passkeys_dialog_chooseAccount_description();case"error":return De(t(a).reason)}}),de=b(()=>t(a)?.step==="pin"&&t(a).kind==="device"?t(a).oldPin?e.passkeys_dialog_deviceOldPin_label():e.passkeys_dialog_devicePin_label():e.passkeys_dialog_pin_label()),Ce=b(()=>{if(t(a)?.step==="pin"){if(t(a).kind==="device"){if(t(ee)>0)return e.passkeys_dialog_devicePinWait_error({seconds:t(ee)})}else if(typeof t(a).retryAfterMs=="number")return e.passkeys_dialog_pinRetryAfter_error();if(t(a).wrongPin)return typeof t(a).attemptsLeft=="number"?t(a).attemptsLeft===1?e.passkeys_dialog_wrongPinAttempts_one({count:t(a).attemptsLeft}):e.passkeys_dialog_wrongPinAttempts_many({count:t(a).attemptsLeft}):e.passkeys_dialog_wrongPin_error()}}),Oe=b(()=>{if(t(a)?.step!=="choose-transport")return[];const i=t(a).hybrid==="bluetooth-off"?e.passkeys_dialog_bluetoothOff_description():t(a).hybrid==="bluetooth-missing"?e.passkeys_dialog_bluetoothMissing_description():void 0;return[...t(a).device?[{id:"device",label:e.passkeys_dialog_thisDevice_label(),note:void 0,icon:qe}]:[],{id:"hybrid",label:e.passkeys_dialog_phone_label(),note:i,icon:Fe},{id:"usb",label:e.passkeys_dialog_securityKey_label(),note:void 0,icon:je}]});function te(){l()({action:"cancel"})}function Re(i){if(i.preventDefault(),!t(A))return;const T=t(A);v(A,""),l()({action:"pin",pin:T})}var xe={get payload(){return r()},set payload(i){r(i),ne()},get static(){return k()},set static(i=!1){k(i),ne()},get onRespond(){return l()},set onRespond(i){l(i),ne()},$set:he,$on:(i,T)=>ke(_,i,T)},pe=q(),We=M(pe);{var Se=i=>{{const T=C=>{var ae=q(),J=M(ae);{var re=P=>{le(P,{variant:"secondary",onclick:te,children:(S,B)=>{F();var V=x();I(d=>E(V,d),[()=>e.passkeys_dialog_close_label()]),p(S,V)},$$slots:{default:!0}})},oe=P=>{var S=at(),B=M(S);le(B,{variant:"ghost",onclick:te,children:(n,m)=>{F();var s=x();I(L=>E(s,L),[()=>e.passkeys_dialog_cancel_label()]),p(n,s)},$$slots:{default:!0}});var V=ye(B,2);{var d=n=>{{let m=b(()=>!t(A)||t(_e));le(n,{variant:"primary",type:"submit",form:"passkey-pin-form",get disabled(){return t(m)},children:(s,L)=>{F();var o=x();I(g=>E(o,g),[()=>e.passkeys_dialog_continue_label()]),p(s,o)},$$slots:{default:!0}})}};D(V,n=>{t(a).step==="pin"&&n(d)})}p(P,S)};D(J,P=>{t(a).step==="error"?P(re):P(oe,-1)})}p(C,ae)};let w=b(()=>t(a).step==="error"?e.passkeys_dialog_close_label():e.passkeys_dialog_cancel_label());Xe(i,{get static(){return k()},get title(){return t(Ee)},get description(){return t(Ae)},size:"sm",dismissOnInteractOutside:!1,get closeLabel(){return t(w)},onClose:te,get open(){return t(f)},set open(C){v(f,C,!0)},footer:T,children:(C,ae)=>{var J=q(),re=M(J);{var oe=d=>{{const n=(s,L)=>{let o=()=>(L?.()).item;me(s,{leading:h=>{Ue(h,{get icon(){return o().icon},fw:!0})},title:h=>{F();var R=x();I(()=>E(R,o().label)),p(h,R)},description:h=>{var R=q(),se=M(R);{var G=$=>{var ce=x();I(()=>E(ce,o().note)),p($,ce)};D(se,$=>{o().note&&$(G)})}p(h,R)},$$slots:{leading:!0,title:!0,description:!0}})};let m=b(()=>e.passkeys_dialog_transports_ariaLabel());be(d,{get items(){return t(Oe)},getKey:s=>s.id,getText:s=>s.label,get ariaLabel(){return t(m)},onActivate:s=>l()({action:"transport",transport:s.id}),row:n,$$slots:{row:!0}})}},P=d=>{var n=st(),m=X(n);{var s=o=>{var g=rt();I(O=>{fe(g,"src",t(U)),fe(g,"alt",O)},[()=>e.passkeys_dialog_qrImage_ariaLabel()]),p(o,g)},L=o=>{var g=ot(),O=X(g);ve(O,{size:20}),Z(g),p(o,g)};D(m,o=>{t(U)?o(s):o(L,-1)})}Z(n),p(d,n)},S=d=>{var n=it(),m=X(n);ve(m,{size:20}),Z(n),p(d,n)},B=d=>{var n=lt(),m=X(n);{let o=b(()=>t(a).kind==="device"?"numeric":void 0);Ze(m,{type:"password",get inputmode(){return t(o)},autocomplete:"off",get"aria-label"(){return t(de)},get placeholder(){return t(de)},get error(){return t(Ce)},get disabled(){return t(_e)},autofocus:!0,get value(){return t(A)},set value(g){v(A,g,!0)}})}var s=ye(m,2);{var L=o=>{var g=nt(),O=Je(g,!0);I(N=>E(O,N),[()=>e.passkeys_dialog_devicePinAdvice_description()]),p(o,g)};D(s,o=>{t(a).firstPasskey&&o(L)})}Z(n),Ye("submit",n,Re),p(d,n)},V=d=>{{const n=(s,L)=>{let o=()=>(L?.()).item;me(s,{title:N=>{F();var h=x();I(()=>E(h,o().userDisplayName||o().userName)),p(N,h)},description:N=>{var h=q(),R=M(h);{var se=G=>{var $=x();I(()=>E($,o().userName)),p(G,$)};D(R,G=>{o().userDisplayName&&o().userName&&G(se)})}p(N,h)},$$slots:{title:!0,description:!0}})};let m=b(()=>e.passkeys_dialog_accounts_ariaLabel());be(d,{get items(){return t(a).accounts},getKey:s=>s.index,getText:s=>s.userDisplayName||s.userName,get ariaLabel(){return t(m)},onActivate:s=>l()({action:"choose",index:s.index}),row:n,$$slots:{row:!0}})}};D(re,d=>{t(a).step==="choose-transport"?d(oe):t(a).step==="qr"?d(P,1):t(a).step==="progress"?d(S,2):t(a).step==="pin"?d(B,3):t(a).step==="choose-account"&&d(V,4)})}p(C,J)},$$slots:{footer:!0,default:!0}})}};D(We,i=>{r()&&t(a)&&i(Se)})}return p(y,pe),Le(xe)}const _t=new tt("PasskeyDialog"),j=et.PASSKEYS;function dt(y){const _=Ie();if(!_)return()=>{};const r=_.on(j.DIALOG_SHOW,l=>{const f=l;!f||typeof f.ceremonyId!="string"||!f.view||y.onShow(f)}),k=_.on(j.DIALOG_CLOSE,l=>{const f=l;f&&typeof f.ceremonyId=="string"&&y.onClose(f.ceremonyId)});return()=>{_.offById(j.DIALOG_SHOW,r),_.offById(j.DIALOG_CLOSE,k)}}function pt(y){const _=Ie();_&&_.invoke(j.DIALOG_RESPOND,y).catch(()=>{_t.warn("Passkey dialog response failed",{action:y.action})})}function ct(y,_){if(new.target)return Te({component:ct,...y});we(_,!0);let r=K(null);Qe(()=>dt({onShow:l=>{v(r,l,!0)},onClose:l=>{t(r)?.ceremonyId===l&&v(r,null)}}));var k={$set:he,$on:(l,f)=>ke(_,l,f)};return Pe(y,{get payload(){return t(r)},onRespond:l=>{t(r)&&pt({...l,ceremonyId:t(r).ceremonyId})}}),Le(k)}export{ct as P,Wt as p,xt as r};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Cr=Object.defineProperty;var xr=(e,t,n)=>t in e?Cr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var b=(e,t,n)=>xr(e,typeof t!="symbol"?t+"":t,n);import{t as oo,bo as M,bw as ro,b as so,bs as di,bq as Lr,bm as $e}from"./
|
|
1
|
+
var Cr=Object.defineProperty;var xr=(e,t,n)=>t in e?Cr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var b=(e,t,n)=>xr(e,typeof t!="symbol"?t+"":t,n);import{t as oo,bo as M,bw as ro,b as so,bs as di,bq as Lr,bm as $e}from"./DWvCfaBg.js";import{bs as ao,a5 as Me,ay as ui,bS as Xe,aD as C,bA as ke,b_ as Ie,bO as it,W as de,bl as Xt,be as Dn,bn as lo,c9 as oe,aA as I,b$ as uo,aB as ge,ai as wr,bV as Te,br as kr,ca as je,bH as Q,c5 as dt,bk as Er,bj as Rr,aj as Ar,c0 as ci}from"./3SdAC2_C.js";import{i as we}from"./VTJf_qPn.js";import{f as hi,g as mn,s as fi}from"./BCuI_zgX.js";import{b as Hr}from"./goTpbPhD.js";import{b as pi}from"./Dn334wJv.js";import{h as Dr,c as rt,J as co,Y as B,Z as Zt,a as ho,k as fo,_ as Je,H as po,j as go,aW as Tr,ak as mo,U as Mr,f as Ir,e as vo,T as Fr,g as Nr,S as Pr,ad as Qe,ac as Ve,C as zr,G as bo,F as Ur,I as _r,N as mt,ar as Or,a8 as Ht,am as Dt,x as K,w as Ue,ax as wt,ay as So,D as Br,d as Vr,aj as yo,aa as ct,l as Tn,b as gi,B as mi,z as vi,aU as Wr,aA as ft,al as Gr,V as Le,X as Ut,W as $r,a9 as Tt,E as jr,i as qr,av as Co,af as Kr,ab as bi,y as xo,ap as kt,ae as Et,an as ot,aq as Lo,O as vn,ao as Si,ai as bn,n as Xr,aS as yi}from"./BqrahRdk.js";import{h as Ye}from"./DEB8jcix.js";import{g as Yr,i as Jr}from"./CueOVPTy.js";import{F as Sn,c9 as Qr,bi as Zr,ax as es,aw as ts}from"./D7yetF0v.js";import{f as Mn}from"./Drf1gLyo.js";import"./CIKXOyvw.js";import{g as ns}from"./BrDfJqC4.js";import{c as is}from"./2aKRVAvL.js";import{P as os}from"./De0cdeOU.js";import{l as Ci}from"./W05hyx94.js";class rs extends Dr{constructor(){super(...arguments),this.tokenize=as}equals(t,n,i){return i.ignoreWhitespace?((!i.newlineIsToken||!t.includes(`
|
|
2
2
|
`))&&(t=t.trim()),(!i.newlineIsToken||!n.includes(`
|
|
3
3
|
`))&&(n=n.trim())):i.ignoreNewlineAtEof&&!i.newlineIsToken&&(t.endsWith(`
|
|
4
4
|
`)&&(t=t.slice(0,-1)),n.endsWith(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aG as r}from"./3SdAC2_C.js";import{br as e}from"./
|
|
1
|
+
import{aG as r}from"./3SdAC2_C.js";import{br as e}from"./CIoJPvjg.js";const n=Symbol("workspace-route-context");function s(t){return t&&t!=="new"?e(t):null}function u(t,o){return t?.startsWith("/workspace/")?s(o):null}function p(){try{return r(n)}catch{return}}export{n as W,s as a,p as g,u as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as z,bo as n,bw as D,bp as E,b as F}from"./
|
|
1
|
+
import{t as z,bo as n,bw as D,bp as E,b as F}from"./DWvCfaBg.js";import{bs as G,a5 as s,bS as p,bA as i,W as d,bn as I,aA as o,aB as v}from"./3SdAC2_C.js";import{i as g}from"./VTJf_qPn.js";import{t as c}from"./Bu3PKqut.js";import{b as J,e as K}from"./BCuI_zgX.js";var L=new Set(["$$slots","$$events","$$legacy","title","description","counter","leading","actions","class"]),M=v('<div class="flex shrink-0 items-center"><!></div>'),O=v('<div data-slot="screen-header-counter" class="type-caption mb-1 text-muted-foreground"><!></div>'),Q=v('<div data-slot="screen-header-description" class="mt-1 text-sm text-muted-foreground"><!></div>'),R=v('<div data-slot="screen-header-actions" class="flex shrink-0 items-center gap-1"><!></div>'),T=v('<header><!> <div class="min-w-0 flex-1"><!> <div data-slot="screen-header-title" class="min-w-0"><!></div> <!></div> <!></header>');function U(y,a){if(new.target)return z({component:U,...y});G(a,!0);let h=n(a,"title",7),l=n(a,"description",7),_=n(a,"counter",7),m=n(a,"leading",7),u=n(a,"actions",7),b=n(a,"class",7),A=E(a,L);var C={get title(){return h()},set title(e){h(e),o()},get description(){return l()},set description(e){l(e),o()},get counter(){return _()},set counter(e){_(e),o()},get leading(){return m()},set leading(e){m(e),o()},get actions(){return u()},set actions(e){u(e),o()},get class(){return b()},set class(e){b(e),o()},$set:D,$on:(e,t)=>F(a,e,t)},f=T();J(f,e=>({"data-slot":"screen-header",class:e,...A}),[()=>K("flex min-w-0 shrink-0 items-start gap-3 px-5 pt-5",b())]);var S=s(f);{var B=e=>{var t=M(),r=s(t);c(r,m),i(t),d(e,t)};g(S,e=>{m()&&e(B)})}var x=p(S,2),k=s(x);{var H=e=>{var t=O(),r=s(t);c(r,_),i(t),d(e,t)};g(k,e=>{_()&&e(H)})}var w=p(k,2),N=s(w);c(N,h),i(w);var P=p(w,2);{var W=e=>{var t=Q(),r=s(t);c(r,l),i(t),d(e,t)};g(P,e=>{l()&&e(W)})}i(x);var j=p(x,2);{var q=e=>{var t=R(),r=s(t);c(r,u),i(t),d(e,t)};g(j,e=>{u()&&e(q)})}return i(f),d(y,f),I(C)}export{U as S};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{bm as y,t as wt,bo as K,bw as xt,bq as Tt,b as kt,bs as D}from"./
|
|
1
|
+
import{bm as y,t as wt,bo as K,bw as xt,bq as Tt,b as kt,bs as D}from"./DWvCfaBg.js";import{bs as It,ca as Q,aD as t,a7 as At,ay as X,W as w,bn as Pt,bS as N,c9 as f,aA as M,aB as T,a5 as I,bA as A,bl as P,b_ as F,bO as S}from"./3SdAC2_C.js";import{i as B}from"./VTJf_qPn.js";import{k as St}from"./bIL0xbKX.js";import{c as Wt}from"./Y_tkjygB.js";import{C as q}from"./DypB-Dwi.js";import{L as $t}from"./CSiaiLHL.js";import"./BeUuk8D1.js";import"./BCuI_zgX.js";import"./Bu3PKqut.js";import{bg as Dt}from"./D7yetF0v.js";import"./CIKXOyvw.js";/* empty css */import{Jx as E,K5 as Nt,Kk as Ft,Ka as Bt,vx as Et}from"./CIoJPvjg.js";import{T as Lt}from"./-VR23WhZ.js";import{g as Ut}from"./DWGXN6Nr.js";import{dH as Ot}from"./3Kr2ijlK.js";import{bT as jt,bN as Ht,b8 as Kt}from"./awY5HvZY.js";import"./CdGl_2eX.js";import{M as Mt}from"./DzpuLv6U.js";import{V as Vt}from"./DGdWzkgm.js";import{O as qt}from"./DAI6QH7D.js";import{c as Rt}from"./ChTqQfQN.js";import{i as Gt}from"./H2jLkRRS.js";const x=new $t({category:"change-converters"});function V(e,n){return e.path||e.file||e.filePath||e.relativePath||n?.filePath}function Y(e,n){return{additions:e.additions??n?.additions??0,deletions:e.deletions??n?.deletions??0,binary:e.binary??!1}}function Jt(e,n){if(n.actor?.type==="agent"&&n.actor.id){const r=n.actor;return{agentId:r.id,agentName:r.name||y.fileTracking_changeTimeline_agent_fallback(),sessionId:r.sessionId||e.sessionId||"",turnNumber:r.turnNumber??e.turnNumber??0,messageId:r.messageId,timestamp:new Date(n.timestamp).getTime()}}if(e.agentId)return{agentId:e.agentId,agentName:e.agentName||y.fileTracking_changeTimeline_agent_fallback(),sessionId:e.sessionId||"",turnNumber:e.turnNumber||0,timestamp:new Date(n.timestamp).getTime()}}function Z(e,n){return{timestamp:new Date(e.timestamp).getTime(),manual:e.actor?.type==="user",agent:Jt(n,e)}}function tt(e,n){return{oldContent:n?.oldContent??e.oldContent,newContent:n?.newContent??e.newContent,diff:e.diff??n?.diff}}function et(e,n,r){return r!==void 0?`${e}-${n}-${r}`:`${e}-${n}`}function zt(e){try{const n=e.data||{},r=e.codeChange;x.debug("Converting event to TrackedChange",{eventType:e.type,eventId:e.id,hasData:!!n,hasCodeChange:!!r});const c=V(n,r);if(e.type.startsWith("file:")&&c){const d=Y(n,r);return x.debug("Creating TrackedChange for file event",{filePath:c,stats:d,hasDiff:!!(n.diff||r?.diff)}),[{id:et("event",e.id),file:c,relativePath:c,stage:q.Unstaged,stats:d,attribution:Z(e,n),content:tt(n,r)}]}return(e.type==="agent:completed"||e.type.startsWith("agent:"))&&n.fileChanges&&Array.isArray(n.fileChanges)?(x.debug("Creating TrackedChanges for agent event",{eventType:e.type,fileChangesCount:n.fileChanges.length,agentId:n.agentId}),n.fileChanges.filter(d=>V(d)?!0:(x.warn("Skipping file change without path",{change:d}),!1)).map((d,s)=>{const v=V(d);if(!v)throw new Error("file change without path");return{id:et("event",e.id,s),file:v,relativePath:v,stage:q.Unstaged,stats:Y(d),attribution:Z(e,n),content:tt(d)}})):(x.debug("No TrackedChanges created for event",{eventType:e.type,eventId:e.id,hasFilePath:!!c,hasFileChanges:!!(n.fileChanges&&Array.isArray(n.fileChanges))}),[])}catch(n){return x.error("Error converting event to TrackedChange",n instanceof Error?n:new Error(String(n)),{eventType:e.type,eventId:e.id}),[]}}function Qt(e){if(!e)return{oldContent:"",newContent:""};const n=[],r=[],c=e.split(`
|
|
2
2
|
`);c.length>0&&c[c.length-1]===""&&c.pop();let d=!1;for(const s of c)if(!(s.startsWith("diff --git")||s.startsWith("index ")||s.startsWith("--- ")||s.startsWith("+++ ")||s.startsWith("\"))){if(s.startsWith("@@")){d=!0;continue}d&&(s.startsWith("+")?r.push(s.slice(1)):s.startsWith("-")?n.push(s.slice(1)):s.startsWith(" ")?(n.push(s.slice(1)),r.push(s.slice(1))):s===""&&(n.push(""),r.push("")))}return{oldContent:n.join(`
|
|
3
3
|
`),newContent:r.join(`
|
|
4
4
|
`)}}var Xt=T("<!> <!>",1),Yt=T('<div class="flex items-center gap-1.5 px-3 py-1.5 text-xs text-subtle bg-muted/50 border-b border-border"><span> </span></div>'),Zt=T('<div class="flex flex-col h-full"><!> <div class="flex-1 min-h-0"><!></div></div>'),te=T('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><p class="text-sm"> </p> <p class="text-xs opacity-70"> </p></div>'),ee=T('<p class="text-xs opacity-70"> </p>'),ne=T('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><p class="text-sm"> </p> <!></div>');function ae(e,n){if(new.target)return wt({component:ae,...e});It(n,!0);const r=()=>D(lt,"$workspace",v),c=()=>D(st,"$foldUnchanged",v),d=()=>D(rt,"$lineWrapping",v),s=()=>D(ot,"$diffSideBySide",v),[v,nt]=Tt(),at=a=>{Vt(a,{embedded:!0,get foldEnabled(){return c()},onToggleFold:()=>E.dispatch(Bt()),get wrapEnabled(){return d()},onToggleWrap:()=>E.dispatch(Ft()),get splitEnabled(){return s()},onToggleSplit:()=>E.dispatch(Nt())})},it=a=>{var i=Xt(),g=X(i);{let m=f(()=>y.layout_diffHeader_goToFile_tooltip());Wt(g,()=>Mt,(l,h)=>{h(l,{get icon(){return Dt},get label(){return t(m)},onclick:$=>ut()})})}var C=N(g,2);{var b=m=>{qt(m,{get filePath(){return t(G)},get workspaceId(){return _()},isDirectory:!1,embedded:!0,get workspaceFolderPath(){return t(O)}})};B(C,m=>{t(G)&&m(b)})}w(a,i)},rt=jt(),st=Ht(),ot=Kt(),dt=Rt("ActivityChangesTabType");let L=K(n,"tab",7),_=K(n,"workspaceId",7),U=K(n,"isActive",7);const R=Ut(),lt=Ot(_()),O=f(()=>r()?.worktreePath||r()?.repositoryPath||void 0),o=f(()=>L().data?.event),ct=f(()=>t(o)?zt(t(o)):[]),u=f(()=>t(ct)[0]),p=f(()=>t(u)?.relativePath||t(u)?.file||null),G=f(()=>t(p)&&t(O)?Gt(t(p))?t(p):`${t(O)}/${t(p)}`:null),j=f(()=>()=>{if(!t(o))return null;const a=t(o).data,i=t(o).codeChange;return a?.diff||i?.diff||t(u)?.content?.diff||null}),J=f(()=>()=>t(u)?.content?!!(t(u).content.oldContent&&t(u).content.newContent):!1);function ft(a){if(!a)return;const i=a.match(/@@ -(\d+)/);return i?parseInt(i[1],10):void 0}const k=f(()=>{if(t(J)()&&t(u)?.content)return{oldContent:t(u).content.oldContent??"",newContent:t(u).content.newContent??""};const a=t(j)();return a?Qt(a):null}),W=f(()=>ft(t(j)())),pt=f(()=>t(W)!==void 0&&t(W)>1),gt=f(()=>{const a=t(p)||"",i=t(o)?.data||{};return{id:`activity-${t(o)?.id||"unknown"}-${a}`,file:a,relativePath:a,stage:q.Committed,status:t(u)?.status||"modified",stats:{additions:i?.additions||t(u)?.stats?.additions||0,deletions:i?.deletions||t(u)?.stats?.deletions||0},attribution:{timestamp:t(o)?.timestamp?new Date(t(o).timestamp).getTime():Date.now()},content:t(k)?{oldContent:t(k).oldContent,newContent:t(k).newContent}:void 0}});function ut(a){if(!t(p))return;const g={type:"file",title:t(p).split("/").pop()||t(p),closable:!0,filePath:t(p),workspaceId:_()};E.dispatch(Et(_(),g))}Q(()=>{!R||!U()||R.registerActions({display:at,actions:it})}),Q(()=>{if(t(o)){const a=t(o).data;dt.debug("Activity event diff info",{eventType:t(o).type,eventId:t(o).id,filePath:t(p),hasDiffString:!!t(j)(),hasOldNewContent:t(J)(),hasDiffContents:!!t(k),dataAdditions:a?.additions,dataDeletions:a?.deletions})}});var ht={get tab(){return L()},set tab(a){L(a),M()},get workspaceId(){return _()},set workspaceId(a){_(a),M()},get isActive(){return U()},set isActive(a){U(a),M()},$set:xt,$on:(a,i)=>kt(n,a,i)},z=At(),mt=X(z);{var vt=a=>{var i=Zt(),g=I(i);{var C=l=>{var h=Yt(),$=I(h),H=P($,!0);A(h),F(_t=>S(H,_t),[()=>y.layout_activityChanges_partialDiff_label({line:t(W)??0})]),w(l,h)};B(g,l=>{t(pt)&&l(C)})}var b=N(g,2),m=I(b);St(m,()=>`${t(o)?.id}-${t(p)}`,l=>{{let h=f(()=>s()?"split":"unified");Lt(l,{get change(){return t(gt)},get workspaceId(){return _()},get viewMode(){return t(h)},get foldUnchanged(){return c()},get lineWrapping(){return d()},get lineOffset(){return t(W)}})}}),A(b),A(i),w(a,i)},Ct=a=>{var i=te(),g=I(i),C=P(g,!0),b=N(g,2),m=P(b,!0);A(i),F((l,h)=>{S(C,l),S(m,h)},[()=>y.layout_activityChanges_noDiffStored_label(),()=>y.layout_activityChanges_diffNotCaptured_description()]),w(a,i)},bt=a=>{var i=ne(),g=I(i),C=P(g,!0),b=N(g,2);{var m=l=>{var h=ee(),$=P(h,!0);F(H=>S($,H),[()=>y.layout_activityChanges_eventType_label({type:t(o).type})]),w(l,h)};B(b,l=>{t(o)&&l(m)})}A(i),F(l=>S(C,l),[()=>y.layout_activityChanges_noChanges_label()]),w(a,i)};B(mt,a=>{t(p)&&t(k)?a(vt):t(p)?a(Ct,1):a(bt,-1)})}w(e,z);var yt=Pt(ht);return nt(),yt}export{ae as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as ze}from"./BKMQo7oP.js";import{s as Xe}from"./-8sNsc56.js";import{b as m,W as Be,a_ as Je,V as Ze,aZ as et,U as tt,b0 as st,Y as it,X as Ne,ay as qe,r as rt,am as nt,aU as at,ab as lt,aG as ct,_ as ot,a1 as ht,aP as ut,bh as ft}from"./DE32K02M.js";var Ce=(function(){var e=m(function($,i,n,o){for(n=n||{},o=$.length;o--;n[$[o]]=i);return n},"o"),r=[1,3],u=[1,4],h=[1,5],f=[1,6],a=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],c=[1,22],S=[2,7],d=[1,26],_=[1,27],b=[1,28],q=[1,29],C=[1,33],A=[1,34],V=[1,35],v=[1,36],L=[1,37],x=[1,38],w=[1,24],D=[1,31],O=[1,32],M=[1,30],R=[1,39],g=[1,40],p=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],P=[1,61],X=[89,90],Ae=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Ee=[27,29],Ve=[1,70],ve=[1,71],Le=[1,72],xe=[1,73],we=[1,74],De=[1,75],Oe=[1,76],ee=[1,83],U=[1,80],te=[1,84],se=[1,85],ie=[1,86],re=[1,87],ne=[1,88],ae=[1,89],le=[1,90],ce=[1,91],oe=[1,92],pe=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[63,64],Me=[1,101],Fe=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],T=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],B=[1,110],Q=[1,106],H=[1,107],K=[1,108],W=[1,109],j=[1,111],he=[1,116],ue=[1,117],fe=[1,114],me=[1,115],Se={trace:m(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:m(function(i,n,o,s,E,t,de){var l=t.length-1;switch(E){case 4:this.$=t[l].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[l].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[l-3],t[l-4]);break;case 22:s.addRequirement(t[l-5],t[l-6]),s.setClass([t[l-5]],t[l-3]);break;case 23:s.setNewReqId(t[l-2]);break;case 24:s.setNewReqText(t[l-2]);break;case 25:s.setNewReqRisk(t[l-2]);break;case 26:s.setNewReqVerifyMethod(t[l-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[l-3]);break;case 43:s.addElement(t[l-5]),s.setClass([t[l-5]],t[l-3]);break;case 44:s.setNewElementType(t[l-2]);break;case 45:s.setNewElementDocRef(t[l-2]);break;case 48:s.addRelationship(t[l-2],t[l],t[l-4]);break;case 49:s.addRelationship(t[l-2],t[l-4],t[l]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[l-2],s.defineClass(t[l-1],t[l]);break;case 58:s.setClass(t[l-1],t[l]);break;case 59:s.setClass([t[l-2]],t[l]);break;case 60:case 62:this.$=[t[l]];break;case 61:case 63:this.$=t[l-2].concat([t[l]]);break;case 64:this.$=t[l-2],s.setCssStyle(t[l-1],t[l]);break;case 65:this.$=[t[l]];break;case 66:t[l-2].push(t[l]),this.$=t[l-2];break;case 68:this.$=t[l-1]+t[l];break}},"anonymous"),table:[{3:1,4:2,6:r,9:u,11:h,13:f},{1:[3]},{3:8,4:2,5:[1,7],6:r,9:u,11:h,13:f},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(a,[2,6]),{3:12,4:2,6:r,9:u,11:h,13:f},{1:[2,2]},{4:17,5:c,7:13,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},e(a,[2,4]),e(a,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:c,7:42,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:43,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:44,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:45,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:46,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:47,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:48,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:49,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:50,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(p,[2,17]),e(p,[2,18]),e(p,[2,19]),e(p,[2,20]),{30:60,33:62,75:P,89:R,90:g},{30:63,33:62,75:P,89:R,90:g},{30:64,33:62,75:P,89:R,90:g},e(X,[2,29]),e(X,[2,30]),e(X,[2,31]),e(X,[2,32]),e(X,[2,33]),e(X,[2,34]),e(Ae,[2,81]),e(Ae,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(Ee,[2,79]),e(Ee,[2,80]),{27:[1,67],29:[1,68]},e(Ee,[2,85]),e(Ee,[2,86]),{62:69,65:Ve,66:ve,67:Le,68:xe,69:we,70:De,71:Oe},{62:77,65:Ve,66:ve,67:Le,68:xe,69:we,70:De,71:Oe},{30:78,33:62,75:P,89:R,90:g},{73:79,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,60]),e(pe,[2,62]),{73:93,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},{30:94,33:62,75:P,76:U,89:R,90:g},{5:[1,95]},{30:96,33:62,75:P,89:R,90:g},{5:[1,97]},{30:98,33:62,75:P,89:R,90:g},{63:[1,99]},e(Y,[2,50]),e(Y,[2,51]),e(Y,[2,52]),e(Y,[2,53]),e(Y,[2,54]),e(Y,[2,55]),e(Y,[2,56]),{64:[1,100]},e(p,[2,59],{76:U}),e(p,[2,64],{76:Me}),{33:103,75:[1,102],89:R,90:g},e(Fe,[2,65],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),e(T,[2,67]),e(T,[2,69]),e(T,[2,70]),e(T,[2,71]),e(T,[2,72]),e(T,[2,73]),e(T,[2,74]),e(T,[2,75]),e(T,[2,76]),e(T,[2,77]),e(T,[2,78]),e(p,[2,57],{76:Me}),e(p,[2,58],{76:U}),{5:B,28:105,31:Q,34:H,36:K,38:W,40:j},{27:[1,112],76:U},{5:he,40:ue,56:113,57:fe,59:me},{27:[1,118],76:U},{33:119,89:R,90:g},{33:120,89:R,90:g},{75:ee,78:121,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,61]),e(pe,[2,63]),e(T,[2,68]),e(p,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:B,28:126,31:Q,34:H,36:K,38:W,40:j},e(p,[2,28]),{5:[1,127]},e(p,[2,42]),{32:[1,128]},{32:[1,129]},{5:he,40:ue,56:130,57:fe,59:me},e(p,[2,47]),{5:[1,131]},e(p,[2,48]),e(p,[2,49]),e(Fe,[2,66],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),{33:132,89:R,90:g},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(p,[2,27]),{5:B,28:145,31:Q,34:H,36:K,38:W,40:j},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(p,[2,46]),{5:he,40:ue,56:152,57:fe,59:me},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(p,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(p,[2,43]),{5:B,28:159,31:Q,34:H,36:K,38:W,40:j},{5:B,28:160,31:Q,34:H,36:K,38:W,40:j},{5:B,28:161,31:Q,34:H,36:K,38:W,40:j},{5:B,28:162,31:Q,34:H,36:K,38:W,40:j},{5:he,40:ue,56:163,57:fe,59:me},{5:he,40:ue,56:164,57:fe,59:me},e(p,[2,23]),e(p,[2,24]),e(p,[2,25]),e(p,[2,26]),e(p,[2,44]),e(p,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:m(function(i,n){if(n.recoverable)this.trace(i);else{var o=new Error(i);throw o.hash=n,o}},"parseError"),parse:m(function(i){var n=this,o=[0],s=[],E=[null],t=[],de=this.table,l="",ge=0,$e=0,Ke=2,Pe=1,We=t.slice.call(arguments,1),y=Object.create(this.lexer),G={yy:{}};for(var be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,be)&&(G.yy[be]=this.yy[be]);y.setInput(i,G.yy),G.yy.lexer=y,G.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var Ie=y.yylloc;t.push(Ie);var je=y.options&&y.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ge(k){o.length=o.length-2*k,E.length=E.length-k,t.length=t.length-k}m(Ge,"popStack");function Ue(){var k;return k=s.pop()||y.lex()||Pe,typeof k!="number"&&(k instanceof Array&&(s=k,k=s.pop()),k=n.symbols_[k]||k),k}m(Ue,"lex");for(var I,z,N,ke,J={},ye,F,Ye,_e;;){if(z=o[o.length-1],this.defaultActions[z]?N=this.defaultActions[z]:((I===null||typeof I>"u")&&(I=Ue()),N=de[z]&&de[z][I]),typeof N>"u"||!N.length||!N[0]){var Te="";_e=[];for(ye in de[z])this.terminals_[ye]&&ye>Ke&&_e.push("'"+this.terminals_[ye]+"'");y.showPosition?Te="Parse error on line "+(ge+1)+`:
|
|
1
|
+
import{g as ze}from"./yMcNgg0D.js";import{s as Xe}from"./B4F7GG5Q.js";import{b as m,W as Be,a_ as Je,V as Ze,aZ as et,U as tt,b0 as st,Y as it,X as Ne,ay as qe,r as rt,am as nt,aU as at,ab as lt,aG as ct,_ as ot,a1 as ht,aP as ut,bh as ft}from"./BolJpU8l.js";var Ce=(function(){var e=m(function($,i,n,o){for(n=n||{},o=$.length;o--;n[$[o]]=i);return n},"o"),r=[1,3],u=[1,4],h=[1,5],f=[1,6],a=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],c=[1,22],S=[2,7],d=[1,26],_=[1,27],b=[1,28],q=[1,29],C=[1,33],A=[1,34],V=[1,35],v=[1,36],L=[1,37],x=[1,38],w=[1,24],D=[1,31],O=[1,32],M=[1,30],R=[1,39],g=[1,40],p=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],P=[1,61],X=[89,90],Ae=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Ee=[27,29],Ve=[1,70],ve=[1,71],Le=[1,72],xe=[1,73],we=[1,74],De=[1,75],Oe=[1,76],ee=[1,83],U=[1,80],te=[1,84],se=[1,85],ie=[1,86],re=[1,87],ne=[1,88],ae=[1,89],le=[1,90],ce=[1,91],oe=[1,92],pe=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[63,64],Me=[1,101],Fe=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],T=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],B=[1,110],Q=[1,106],H=[1,107],K=[1,108],W=[1,109],j=[1,111],he=[1,116],ue=[1,117],fe=[1,114],me=[1,115],Se={trace:m(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:m(function(i,n,o,s,E,t,de){var l=t.length-1;switch(E){case 4:this.$=t[l].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[l].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[l-3],t[l-4]);break;case 22:s.addRequirement(t[l-5],t[l-6]),s.setClass([t[l-5]],t[l-3]);break;case 23:s.setNewReqId(t[l-2]);break;case 24:s.setNewReqText(t[l-2]);break;case 25:s.setNewReqRisk(t[l-2]);break;case 26:s.setNewReqVerifyMethod(t[l-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[l-3]);break;case 43:s.addElement(t[l-5]),s.setClass([t[l-5]],t[l-3]);break;case 44:s.setNewElementType(t[l-2]);break;case 45:s.setNewElementDocRef(t[l-2]);break;case 48:s.addRelationship(t[l-2],t[l],t[l-4]);break;case 49:s.addRelationship(t[l-2],t[l-4],t[l]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[l-2],s.defineClass(t[l-1],t[l]);break;case 58:s.setClass(t[l-1],t[l]);break;case 59:s.setClass([t[l-2]],t[l]);break;case 60:case 62:this.$=[t[l]];break;case 61:case 63:this.$=t[l-2].concat([t[l]]);break;case 64:this.$=t[l-2],s.setCssStyle(t[l-1],t[l]);break;case 65:this.$=[t[l]];break;case 66:t[l-2].push(t[l]),this.$=t[l-2];break;case 68:this.$=t[l-1]+t[l];break}},"anonymous"),table:[{3:1,4:2,6:r,9:u,11:h,13:f},{1:[3]},{3:8,4:2,5:[1,7],6:r,9:u,11:h,13:f},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(a,[2,6]),{3:12,4:2,6:r,9:u,11:h,13:f},{1:[2,2]},{4:17,5:c,7:13,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},e(a,[2,4]),e(a,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:c,7:42,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:43,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:44,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:45,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:46,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:47,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:48,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:49,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:50,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(p,[2,17]),e(p,[2,18]),e(p,[2,19]),e(p,[2,20]),{30:60,33:62,75:P,89:R,90:g},{30:63,33:62,75:P,89:R,90:g},{30:64,33:62,75:P,89:R,90:g},e(X,[2,29]),e(X,[2,30]),e(X,[2,31]),e(X,[2,32]),e(X,[2,33]),e(X,[2,34]),e(Ae,[2,81]),e(Ae,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(Ee,[2,79]),e(Ee,[2,80]),{27:[1,67],29:[1,68]},e(Ee,[2,85]),e(Ee,[2,86]),{62:69,65:Ve,66:ve,67:Le,68:xe,69:we,70:De,71:Oe},{62:77,65:Ve,66:ve,67:Le,68:xe,69:we,70:De,71:Oe},{30:78,33:62,75:P,89:R,90:g},{73:79,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,60]),e(pe,[2,62]),{73:93,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},{30:94,33:62,75:P,76:U,89:R,90:g},{5:[1,95]},{30:96,33:62,75:P,89:R,90:g},{5:[1,97]},{30:98,33:62,75:P,89:R,90:g},{63:[1,99]},e(Y,[2,50]),e(Y,[2,51]),e(Y,[2,52]),e(Y,[2,53]),e(Y,[2,54]),e(Y,[2,55]),e(Y,[2,56]),{64:[1,100]},e(p,[2,59],{76:U}),e(p,[2,64],{76:Me}),{33:103,75:[1,102],89:R,90:g},e(Fe,[2,65],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),e(T,[2,67]),e(T,[2,69]),e(T,[2,70]),e(T,[2,71]),e(T,[2,72]),e(T,[2,73]),e(T,[2,74]),e(T,[2,75]),e(T,[2,76]),e(T,[2,77]),e(T,[2,78]),e(p,[2,57],{76:Me}),e(p,[2,58],{76:U}),{5:B,28:105,31:Q,34:H,36:K,38:W,40:j},{27:[1,112],76:U},{5:he,40:ue,56:113,57:fe,59:me},{27:[1,118],76:U},{33:119,89:R,90:g},{33:120,89:R,90:g},{75:ee,78:121,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,61]),e(pe,[2,63]),e(T,[2,68]),e(p,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:B,28:126,31:Q,34:H,36:K,38:W,40:j},e(p,[2,28]),{5:[1,127]},e(p,[2,42]),{32:[1,128]},{32:[1,129]},{5:he,40:ue,56:130,57:fe,59:me},e(p,[2,47]),{5:[1,131]},e(p,[2,48]),e(p,[2,49]),e(Fe,[2,66],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),{33:132,89:R,90:g},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(p,[2,27]),{5:B,28:145,31:Q,34:H,36:K,38:W,40:j},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(p,[2,46]),{5:he,40:ue,56:152,57:fe,59:me},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(p,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(p,[2,43]),{5:B,28:159,31:Q,34:H,36:K,38:W,40:j},{5:B,28:160,31:Q,34:H,36:K,38:W,40:j},{5:B,28:161,31:Q,34:H,36:K,38:W,40:j},{5:B,28:162,31:Q,34:H,36:K,38:W,40:j},{5:he,40:ue,56:163,57:fe,59:me},{5:he,40:ue,56:164,57:fe,59:me},e(p,[2,23]),e(p,[2,24]),e(p,[2,25]),e(p,[2,26]),e(p,[2,44]),e(p,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:m(function(i,n){if(n.recoverable)this.trace(i);else{var o=new Error(i);throw o.hash=n,o}},"parseError"),parse:m(function(i){var n=this,o=[0],s=[],E=[null],t=[],de=this.table,l="",ge=0,$e=0,Ke=2,Pe=1,We=t.slice.call(arguments,1),y=Object.create(this.lexer),G={yy:{}};for(var be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,be)&&(G.yy[be]=this.yy[be]);y.setInput(i,G.yy),G.yy.lexer=y,G.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var Ie=y.yylloc;t.push(Ie);var je=y.options&&y.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ge(k){o.length=o.length-2*k,E.length=E.length-k,t.length=t.length-k}m(Ge,"popStack");function Ue(){var k;return k=s.pop()||y.lex()||Pe,typeof k!="number"&&(k instanceof Array&&(s=k,k=s.pop()),k=n.symbols_[k]||k),k}m(Ue,"lex");for(var I,z,N,ke,J={},ye,F,Ye,_e;;){if(z=o[o.length-1],this.defaultActions[z]?N=this.defaultActions[z]:((I===null||typeof I>"u")&&(I=Ue()),N=de[z]&&de[z][I]),typeof N>"u"||!N.length||!N[0]){var Te="";_e=[];for(ye in de[z])this.terminals_[ye]&&ye>Ke&&_e.push("'"+this.terminals_[ye]+"'");y.showPosition?Te="Parse error on line "+(ge+1)+`:
|
|
2
2
|
`+y.showPosition()+`
|
|
3
3
|
Expecting `+_e.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Te="Parse error on line "+(ge+1)+": Unexpected "+(I==Pe?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Te,{text:y.match,token:this.terminals_[I]||I,line:y.yylineno,loc:Ie,expected:_e})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+I);switch(N[0]){case 1:o.push(I),E.push(y.yytext),t.push(y.yylloc),o.push(N[1]),I=null,$e=y.yyleng,l=y.yytext,ge=y.yylineno,Ie=y.yylloc;break;case 2:if(F=this.productions_[N[1]][1],J.$=E[E.length-F],J._$={first_line:t[t.length-(F||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(F||1)].first_column,last_column:t[t.length-1].last_column},je&&(J._$.range=[t[t.length-(F||1)].range[0],t[t.length-1].range[1]]),ke=this.performAction.apply(J,[l,$e,ge,G.yy,N[1],E,t].concat(We)),typeof ke<"u")return ke;F&&(o=o.slice(0,-1*F*2),E=E.slice(0,-1*F),t=t.slice(0,-1*F)),o.push(this.productions_[N[1]][0]),E.push(J.$),t.push(J._$),Ye=de[o[o.length-2]][o[o.length-1]],o.push(Ye);break;case 3:return!0}}return!0},"parse")},He=(function(){var $={EOF:1,parseError:m(function(n,o){if(this.yy.parser)this.yy.parser.parseError(n,o);else throw new Error(n)},"parseError"),setInput:m(function(i,n){return this.yy=n||this.yy||{},this._input=i,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:m(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:m(function(i){var n=i.length,o=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var s=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),o.length-1&&(this.yylineno-=o.length-1);var E=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:o?(o.length===s.length?this.yylloc.first_column:0)+s[s.length-o.length].length-o[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:m(function(){return this._more=!0,this},"more"),reject:m(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:m(function(i){this.unput(this.match.slice(i))},"less"),pastInput:m(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:m(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:m(function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as E,bw as J,bs as p,bq as B,b as L}from"./
|
|
1
|
+
import{t as E,bw as J,bs as p,bq as B,b as L}from"./DWvCfaBg.js";import{bs as R,ca as c,bk as W,bn as X}from"./3SdAC2_C.js";import{q as h,p as m,s as y,m as V}from"./BXHbm15d.js";import"./BCuI_zgX.js";import"./Bu3PKqut.js";import"./CIKXOyvw.js";import"./ChTqQfQN.js";import"./2aKRVAvL.js";import{Jx as t,J3 as b,p2 as a,qX as j,kn as g}from"./CIoJPvjg.js";function z(N,T){if(new.target)return E({component:z,...N});R(T,!0);const r=()=>p(v,"$ownsNotice$",l),D=()=>p(x,"$toastVisible$",l),u=()=>p(O,"$status$",l),S=()=>p(k,"$dismissedAt$",l),[l,U]=B(),o=t.createSelector(s=>{const e=s.machineRail;return!e.enabled||e.shownId===""||e.shownId===s.connections.windowBackendId}),v=o(),x=h(),O=m(),k=y(),A=1440*60*1e3;let i,$;const _=new Set;function I(s){_.add(s),V.dismiss(s)}function f(){if(!o.select(t.state))return;i!==void 0&&I(i);const s=V.update({onDismiss:()=>{i!==s||!o.select(t.state)||(n(),m.select(t.state)==="downloaded"?t.dispatch(g(Date.now())):t.dispatch(a()))},onAutoDismiss:()=>{i!==s||!o.select(t.state)||(n(),t.dispatch(a()))}},{duration:1/0,onDismiss:e=>{if(_.delete(e.id)||i!==e.id||!o.select(t.state))return;if(i=void 0,m.select(t.state)==="downloaded"&&o.select(t.state)){t.dispatch(g(Date.now()));return}t.dispatch(a())}});i=s}function n(){i!==void 0&&(I(i),i=void 0)}c(()=>{r()&&D()&&i===void 0&&f()}),c(()=>{const s=u();if(!r()){n(),$=void 0;return}if(s!==$){if(s==="downloading")i===void 0&&f(),h.select(t.state)||t.dispatch(b());else if(s==="downloaded"){const e=y.select(t.state);e==null||Date.now()-e>=A?(i===void 0&&f(),h.select(t.state)||t.dispatch(b())):(n(),t.dispatch(a()))}s==="idle"&&(n(),t.dispatch(a())),$=s}}),c(()=>{u()==="downloaded"&&!D()&&S()!==null&&n()}),c(()=>{const s=u(),e=S();if(!r()||s!=="downloaded"||e==null)return;const d=Date.now()-e,w=A-d;if(w<=0)return;const M=setTimeout(()=>{m.select(t.state)==="downloaded"&&o.select(t.state)&&(f(),t.dispatch(b()))},w);return()=>clearTimeout(M)}),c(()=>{const s=u();if(r()&&(s==="not-available"||s==="error")){const d=setTimeout(()=>{o.select(t.state)&&(n(),t.dispatch(a()))},s==="error"?5500:3500);return()=>clearTimeout(d)}}),W(()=>(t.dispatch(j()),()=>{n()}));var q={$set:J,$on:(s,e)=>L(T,s,e)},C=X(q);return U(),C}export{z as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as r}from"./CL3a4Hm1.js";import{w as a,I as e}from"./Bqd7fdCF.js";import{Jx as s}from"./
|
|
1
|
+
import{i as r}from"./CL3a4Hm1.js";import{w as a,I as e}from"./Bqd7fdCF.js";import{Jx as s}from"./CIoJPvjg.js";import{c as t}from"./Pyf1FzKM.js";function C(o,i){return t(s,o,{navigate:i,...a("windowChrome")?{closeWindow:()=>r(e.WINDOW.CLOSE)}:{}})}export{C as closeActiveTab};
|