@intent-hq/web 2.385.2 → 2.387.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/{CBueLH7U.js → -2rOENSl.js} +1 -1
- package/web/app/immutable/chunks/{-8sNsc56.js → -hTxjwFO.js} +1 -1
- package/web/app/immutable/chunks/{DJPIUVkw.js → 0Kw0mmSW.js} +1 -1
- package/web/app/immutable/chunks/{deEweluJ.js → 6NStP9u7.js} +1 -1
- package/web/app/immutable/chunks/{BzirSHSv.js → 6uD0LviT.js} +1 -1
- package/web/app/immutable/chunks/{Dxd7AQYv.js → 9fNNDfgo.js} +1 -1
- package/web/app/immutable/chunks/{C9ew0Hx2.js → AXzVloaq.js} +1 -1
- package/web/app/immutable/chunks/{TT8yXpG-.js → AfZNmzF0.js} +1 -1
- package/web/app/immutable/chunks/{BSUnflvl.js → B-bGycam.js} +1 -1
- package/web/app/immutable/chunks/{Da-Blgd9.js → B0RPkrmZ.js} +1 -1
- package/web/app/immutable/chunks/{pomj9evG.js → B1TtNV9x.js} +1 -1
- package/web/app/immutable/chunks/{DPtj8tX0.js → B3QTKmHy.js} +1 -1
- package/web/app/immutable/chunks/{BdU-kPC9.js → B3ziY5oo.js} +2 -2
- package/web/app/immutable/chunks/{DE32K02M.js → B6-aVrNf.js} +4 -4
- package/web/app/immutable/chunks/{CMq0sOjt.js → B79iAtSu.js} +2 -2
- package/web/app/immutable/chunks/{B433f4mk.js → B7esq_NU.js} +1 -1
- package/web/app/immutable/chunks/{BByf3ILj.js → B9BALnhr.js} +1 -1
- package/web/app/immutable/chunks/{nw_ZiYCy.js → B9GWGWit.js} +1 -1
- package/web/app/immutable/chunks/{TC7OsYhy.js → BAAQt1ZW.js} +1 -1
- package/web/app/immutable/chunks/{DVz0ewou.js → BC5HDfRR.js} +1 -1
- package/web/app/immutable/chunks/BC6tIXxU.js +1 -0
- package/web/app/immutable/chunks/{l7vsMvdj.js → BFMlH_mp.js} +2 -2
- package/web/app/immutable/chunks/{f5nWqjrx.js → BFi0zRRv.js} +1 -1
- package/web/app/immutable/chunks/{DM1_VFfD.js → BH3eRhvI.js} +1 -1
- package/web/app/immutable/chunks/{BlIRL_82.js → BIfjK4Wy.js} +1 -1
- package/web/app/immutable/chunks/{BmC9h1kv.js → BJEUIKTL.js} +1 -1
- package/web/app/immutable/chunks/{SbTG0nwQ.js → BJbm_MWC.js} +1 -1
- package/web/app/immutable/chunks/{Mko8tFZb.js → BK0IkwFP.js} +2 -2
- package/web/app/immutable/chunks/{D7Dfbf5g.js → BLMhg4vm.js} +1 -1
- package/web/app/immutable/chunks/{Dvi4g0xk.js → BLhJfI63.js} +1 -1
- package/web/app/immutable/chunks/{C50zlWbZ.js → BNDTLRE1.js} +1 -1
- package/web/app/immutable/chunks/{A0KsbysW.js → BOyRg328.js} +1 -1
- package/web/app/immutable/chunks/{CJB-ebPL.js → BP-cDE7g.js} +1 -1
- package/web/app/immutable/chunks/{lD0hZ5-I.js → BPscmH6M.js} +1 -1
- package/web/app/immutable/chunks/{CEEUgGO1.js → BQ8hOnRo.js} +1 -1
- package/web/app/immutable/chunks/{BD9db4FR.js → BQhBnAuP.js} +1 -1
- package/web/app/immutable/chunks/{JM7CQkWC.js → BRRnx9NG.js} +1 -1
- package/web/app/immutable/chunks/{CPI5xBWX.js → BSt1DBgt.js} +1 -1
- package/web/app/immutable/chunks/{BoznPtpa.js → BSu_WKe5.js} +1 -1
- package/web/app/immutable/chunks/{8jMQM9h0.js → BUsnh1ZW.js} +1 -1
- package/web/app/immutable/chunks/{RHSH5iZ7.js → BVYisuIY.js} +1 -1
- package/web/app/immutable/chunks/{IkcYx7DF.js → BVmCM-pH.js} +1 -1
- package/web/app/immutable/chunks/{Dxfvrgme.js → BWJopR_X.js} +1 -1
- package/web/app/immutable/chunks/{CFmT7rsG.js → BXlN4FOb.js} +1 -1
- package/web/app/immutable/chunks/{BXJzIaQM.js → BaOiWDrc.js} +1 -1
- package/web/app/immutable/chunks/{C-PQQ8rb.js → Bajx4HLb.js} +1 -1
- package/web/app/immutable/chunks/{DhVTc7Ol.js → Bbae4OrB.js} +2 -2
- package/web/app/immutable/chunks/{BbuLzldI.js → Bbs1UlDC.js} +1 -1
- package/web/app/immutable/chunks/{DnKqeAaM.js → BcrN1yjB.js} +1 -1
- package/web/app/immutable/chunks/{sSXTMg2P.js → BfQFKWzJ.js} +1 -1
- package/web/app/immutable/chunks/{DSiGyv9Y.js → Bj4IsLvN.js} +1 -1
- package/web/app/immutable/chunks/{BCZTn_fp.js → BkcO6l5G.js} +1 -1
- package/web/app/immutable/chunks/{Cv0qomAl.js → Bl72eYFn.js} +1 -1
- package/web/app/immutable/chunks/{B5uejTJk.js → BlAMrm5X.js} +1 -1
- package/web/app/immutable/chunks/{7ZsTr9xa.js → BlJAndP6.js} +1 -1
- package/web/app/immutable/chunks/{pnbUAKkx.js → Blt813S0.js} +1 -1
- package/web/app/immutable/chunks/{D1fDU8Ti.js → Bm3beBRj.js} +1 -1
- package/web/app/immutable/chunks/{OGqbAD_O.js → BmM9C7Gu.js} +1 -1
- package/web/app/immutable/chunks/{CmyAIpbY.js → Bmm_g7di.js} +4 -4
- package/web/app/immutable/chunks/{CD-M_2xD.js → BoUQWR1c.js} +1 -1
- package/web/app/immutable/chunks/{BECK4OaG.js → BoZ2kJyE.js} +1 -1
- package/web/app/immutable/chunks/{wiGlLVr-.js → BpXDXz8J.js} +1 -1
- package/web/app/immutable/chunks/{7y3Z0Q49.js → BpwKnO7b.js} +3 -3
- package/web/app/immutable/chunks/{tLFaYuVN.js → Bq7euxCs.js} +1 -1
- package/web/app/immutable/chunks/{CI0C7_h-.js → Bsdq-idi.js} +1 -1
- package/web/app/immutable/chunks/{CfYakquS.js → Bsru2omj.js} +1 -1
- package/web/app/immutable/chunks/{D_VvdZe2.js → Bstq-Mm1.js} +1 -1
- package/web/app/immutable/chunks/{CPvH5Ru2.js → Bt11uxE8.js} +4 -4
- package/web/app/immutable/chunks/{BdEtT3Ti.js → BtchneSc.js} +1 -1
- package/web/app/immutable/chunks/{3qVSmuIV.js → Bu67WlMm.js} +1 -1
- package/web/app/immutable/chunks/{CvZTDgJa.js → BuTcdZo7.js} +1 -1
- package/web/app/immutable/chunks/{Bf_nrOhg.js → BuXXIZt7.js} +1 -1
- package/web/app/immutable/chunks/{DsfORPYa.js → BudPFdIj.js} +1 -1
- package/web/app/immutable/chunks/{SRhgUz9l.js → BuiwW61u.js} +1 -1
- package/web/app/immutable/chunks/{4PAYwk2I.js → BvjgIPau.js} +1 -1
- package/web/app/immutable/chunks/{DEs9kPtf.js → BxTCsbTV.js} +1 -1
- package/web/app/immutable/chunks/{BoG8wR7s.js → ByBw1QkA.js} +1 -1
- package/web/app/immutable/chunks/{CmTojxTj.js → Byr10Y9u.js} +1 -1
- package/web/app/immutable/chunks/{BLvtkZ8G.js → C-y1uW-U.js} +1 -1
- package/web/app/immutable/chunks/{B4I8lQNP.js → C07_BcWL.js} +1 -1
- package/web/app/immutable/chunks/{BHqp2vwo.js → C2zt__Wj.js} +1 -1
- package/web/app/immutable/chunks/{B3IS1jjn.js → C4t02ICg.js} +2 -2
- package/web/app/immutable/chunks/{2ZJE_wyo.js → C53ouDFl.js} +1 -1
- package/web/app/immutable/chunks/{DzqKdIr-.js → C6rcni5e.js} +1 -1
- package/web/app/immutable/chunks/{CAfPEsZt.js → C7ajdkO4.js} +1 -1
- package/web/app/immutable/chunks/{O49gK3tp.js → C8Wy-uTf.js} +1 -1
- package/web/app/immutable/chunks/{DYbZIRJE.js → CACH34FC.js} +1 -1
- package/web/app/immutable/chunks/{FVS6L2WV.js → CAiDxi6i.js} +3 -3
- package/web/app/immutable/chunks/{5-0LQoqd.js → CBbdbU2x.js} +1 -1
- package/web/app/immutable/chunks/{BTepRW_m.js → CCzan1r_.js} +4 -4
- package/web/app/immutable/chunks/{0pEQEOm6.js → CD9WEaPg.js} +1 -1
- package/web/app/immutable/chunks/{DV7x43jt.js → CEap7Fwz.js} +1 -1
- package/web/app/immutable/chunks/{BV1ayWTC.js → CG28d89U.js} +1 -1
- package/web/app/immutable/chunks/{C_SKcJv7.js → CGdXewiA.js} +1 -1
- package/web/app/immutable/chunks/{CjjWPVbV.js → CHApvLbz.js} +3 -3
- package/web/app/immutable/chunks/{DWa-2rkZ.js → CIWQMI37.js} +1 -1
- package/web/app/immutable/chunks/{zB9UbdEg.js → CIlqcFRn.js} +1 -1
- package/web/app/immutable/chunks/{BqARUxDK.js → CJ7hw6mW.js} +1 -1
- package/web/app/immutable/chunks/{DDb9H7X6.js → CKcb8dge.js} +3 -3
- package/web/app/immutable/chunks/{BzEFG3NN.js → CMsGHYhn.js} +1 -1
- package/web/app/immutable/chunks/{Dmx5wWLe.js → CNl453qs.js} +1 -1
- package/web/app/immutable/chunks/{B6eTPmJH.js → COVS9Crf.js} +1 -1
- package/web/app/immutable/chunks/{iCWz6IE9.js → CPdyCf2B.js} +1 -1
- package/web/app/immutable/chunks/{HC_j1BdV.js → CQA1q0F9.js} +1 -1
- package/web/app/immutable/chunks/{B5anfoVk.js → CS6HVyHp.js} +1 -1
- package/web/app/immutable/chunks/{DVJBGL7F.js → CSlvwZw1.js} +1 -1
- package/web/app/immutable/chunks/{BSygKG3g.js → CTVz-pXS.js} +3 -3
- package/web/app/immutable/chunks/{7KxcPj98.js → CTowDLQa.js} +1 -1
- package/web/app/immutable/chunks/{BQLaE7V5.js → CULu7FSf.js} +1 -1
- package/web/app/immutable/chunks/{C2YpPfAS.js → CUxtJz1o.js} +1 -1
- package/web/app/immutable/chunks/{CoJyxFcH.js → CV5qbjYN.js} +1 -1
- package/web/app/immutable/chunks/{0MXBpkLa.js → CVd7xnlx.js} +1 -1
- package/web/app/immutable/chunks/{7HiVLHLh.js → CW4vzFn_.js} +1 -1
- package/web/app/immutable/chunks/{CVuncf5f.js → CY2g-8Xo.js} +1 -1
- package/web/app/immutable/chunks/{CObW_WD-.js → CY4ZK6xA.js} +3 -3
- package/web/app/immutable/chunks/{rXKOJqUt.js → CZB2ndi9.js} +1 -1
- package/web/app/immutable/chunks/{CuPx_r7k.js → CZex5Cac.js} +1 -1
- package/web/app/immutable/chunks/{DAUvP6UD.js → C_4qh07f.js} +1 -1
- package/web/app/immutable/chunks/{B2jyBWIj.js → CbQ8NVeY.js} +1 -1
- package/web/app/immutable/chunks/{B5NaFcis.js → CbQYR4R2.js} +3 -3
- package/web/app/immutable/chunks/{D40Fo-pJ.js → CcgSaDDB.js} +1 -1
- package/web/app/immutable/chunks/CeeeYtIE.js +1 -0
- package/web/app/immutable/chunks/{CV2tdNDf.js → CfIVswBm.js} +1 -1
- package/web/app/immutable/chunks/{VeUh5OMZ.js → CfaCrhAh.js} +1 -1
- package/web/app/immutable/chunks/{C9p4fddz.js → CggFXl4B.js} +1 -1
- package/web/app/immutable/chunks/{6paLMka3.js → Chg0KuUy.js} +2 -2
- package/web/app/immutable/chunks/{CTW83wJs.js → Ci75CkmK.js} +1 -1
- package/web/app/immutable/chunks/{CWOQ_pUA.js → CisSEUth.js} +1 -1
- package/web/app/immutable/chunks/{2qYrAiyX.js → Ck8ZqpbB.js} +1 -1
- package/web/app/immutable/chunks/{DHcX7CG0.js → ClQE9kQf.js} +1 -1
- package/web/app/immutable/chunks/{CgCJQyTf.js → ClSbVEed.js} +1 -1
- package/web/app/immutable/chunks/{BLKFshyr.js → CmhKJ6Ie.js} +1 -1
- package/web/app/immutable/chunks/{lTwh0Wzj.js → CndJcn8K.js} +1 -1
- package/web/app/immutable/chunks/{Clo7aK1n.js → Co9CFvqw.js} +1 -1
- package/web/app/immutable/chunks/{3iG5yoX3.js → CoAfXTHr.js} +1 -1
- package/web/app/immutable/chunks/CoCy46Yy.js +1 -0
- package/web/app/immutable/chunks/{DLQIjfwi.js → CoOgBJzu.js} +1 -1
- package/web/app/immutable/chunks/{CQMFoUkp.js → Cq8MD_3v.js} +1 -1
- package/web/app/immutable/chunks/{DpITHrfz.js → CqGq5PHb.js} +1 -1
- package/web/app/immutable/chunks/{Bi_Yd73A.js → CrL2Nk6a.js} +1 -1
- package/web/app/immutable/chunks/{CzXIAWau.js → CrZlcn4Y.js} +1 -1
- package/web/app/immutable/chunks/{D-rRuAXZ.js → CrpUtGFn.js} +1 -1
- package/web/app/immutable/chunks/{CiWHn2aR.js → CrvtnK13.js} +2 -2
- package/web/app/immutable/chunks/{94vL4WlW.js → CrwLq8nY.js} +1 -1
- package/web/app/immutable/chunks/{CXZbeRE-.js → Cs-DtA5c.js} +1 -1
- package/web/app/immutable/chunks/{6xdvppss.js → CtDIyzmZ.js} +1 -1
- package/web/app/immutable/chunks/{CL4ty7oi.js → Cuqu6DgP.js} +1 -1
- package/web/app/immutable/chunks/{BIGqOuh0.js → Cw2fqKk9.js} +1 -1
- package/web/app/immutable/chunks/{9GO97JAL.js → CwCTYQp7.js} +1 -1
- package/web/app/immutable/chunks/{COWlXo8C.js → CxMr7p-O.js} +3 -3
- package/web/app/immutable/chunks/{CCyecAzB.js → Cyr0PKv3.js} +1 -1
- package/web/app/immutable/chunks/{BuFDqZnJ.js → CzTSi5lc.js} +1 -1
- package/web/app/immutable/chunks/{HU1Ksz8U.js → CzjElr82.js} +1 -1
- package/web/app/immutable/chunks/{ada9rZfE.js → D-DyBHf9.js} +1 -1
- package/web/app/immutable/chunks/{BTvTyEgq.js → D-aEx3GL.js} +2 -2
- package/web/app/immutable/chunks/{DbqTt-YM.js → D1R1FWjP.js} +1 -1
- package/web/app/immutable/chunks/{CYSndAne.js → D1YPh_5n.js} +1 -1
- package/web/app/immutable/chunks/{kAZ_zPIu.js → D24Of5Kd.js} +1 -1
- package/web/app/immutable/chunks/{C0Zo7HuP.js → D25lWS8Q.js} +1 -1
- package/web/app/immutable/chunks/{NC6gsHNQ.js → D2ch709U.js} +1 -1
- package/web/app/immutable/chunks/{BNa9zzEx.js → D2kIeaeO.js} +1 -1
- package/web/app/immutable/chunks/{BgDnzAo4.js → D2y-zN_4.js} +1 -1
- package/web/app/immutable/chunks/{fHygQTSC.js → D3waRWO1.js} +1 -1
- package/web/app/immutable/chunks/{DcOkWaeN.js → D48_y-cl.js} +1 -1
- package/web/app/immutable/chunks/{DX9N1RQz.js → D49zWKPf.js} +1 -1
- package/web/app/immutable/chunks/{4g_iHoQm.js → D5wnbxHp.js} +1 -1
- package/web/app/immutable/chunks/{CletI6Pa.js → D7AX9X0W.js} +1 -1
- package/web/app/immutable/chunks/{CCEmXQBN.js → DCL7QtVR.js} +1 -1
- package/web/app/immutable/chunks/{U7dpdlAf.js → DEQDOTA1.js} +1 -1
- package/web/app/immutable/chunks/{DlpH_aW2.js → DGK5CsQK.js} +1 -1
- package/web/app/immutable/chunks/{BrMDbquN.js → DGj-492Z.js} +2 -2
- package/web/app/immutable/chunks/{B8HnjSSF.js → DIEHuZ8f.js} +1 -1
- package/web/app/immutable/chunks/{Cy9hcA7q.js → DIoT8eB4.js} +1 -1
- package/web/app/immutable/chunks/{BPuz5cN_.js → DJivXy66.js} +2 -2
- package/web/app/immutable/chunks/{BXv1gq_o.js → DKeBnsgS.js} +1 -1
- package/web/app/immutable/chunks/DLO_0egf.js +1 -0
- package/web/app/immutable/chunks/{yDmmPu6L.js → DLttsd3i.js} +1 -1
- package/web/app/immutable/chunks/{BSgFpkqa.js → DMV5KQix.js} +1 -1
- package/web/app/immutable/chunks/DNZCPKpq.js +3 -0
- package/web/app/immutable/chunks/{BWCYowXB.js → DNnmVx8j.js} +1 -1
- package/web/app/immutable/chunks/DP0K41jk.js +1 -0
- package/web/app/immutable/chunks/{BmFHmusU.js → DP2r4UWt.js} +1 -1
- package/web/app/immutable/chunks/{B6d1Nolc.js → DPG1HUgG.js} +1 -1
- package/web/app/immutable/chunks/{BvbeTrka.js → DPjr22dV.js} +1 -1
- package/web/app/immutable/chunks/{LQRHF1eM.js → DPmNtGFj.js} +1 -1
- package/web/app/immutable/chunks/{bKvZbiNk.js → DQ8CqY9L.js} +2 -2
- package/web/app/immutable/chunks/{IwNEzJ15.js → DQpDIYyw.js} +1 -1
- package/web/app/immutable/chunks/{CrsbEWnE.js → DRLJuUwT.js} +1 -1
- package/web/app/immutable/chunks/{B5stdxh5.js → DRXgE6SQ.js} +1 -1
- package/web/app/immutable/chunks/{Ex_x2wO5.js → DU1ubslo.js} +1 -1
- package/web/app/immutable/chunks/{ClYR_2Js.js → DUFN_Pzm.js} +1 -1
- package/web/app/immutable/chunks/{CNSshwg_.js → DWqaYE81.js} +1 -1
- package/web/app/immutable/chunks/{BY0BGmY0.js → DXI99C-u.js} +1 -1
- package/web/app/immutable/chunks/{DI71nFp4.js → D_5u7gP_.js} +1 -1
- package/web/app/immutable/chunks/{D7P3vklT.js → D_AhXAPc.js} +1 -1
- package/web/app/immutable/chunks/{BMnuRHbZ.js → DaMlaKH_.js} +2 -2
- package/web/app/immutable/chunks/{CsmNoTJl.js → Db1BGAZN.js} +1 -1
- package/web/app/immutable/chunks/{COjWFpJP.js → DcRqMoeH.js} +1 -1
- package/web/app/immutable/chunks/{BO8Bp7Ht.js → Dd3UnPYB.js} +1 -1
- package/web/app/immutable/chunks/{C1AUaRa8.js → DdLy5J3P.js} +1 -1
- package/web/app/immutable/chunks/{B_75gRww.js → DezlVQ1h.js} +1 -1
- package/web/app/immutable/chunks/{DPR_clFy.js → Dga6E45c.js} +1 -1
- package/web/app/immutable/chunks/{Bu-RLSv9.js → DgtVALrr.js} +1 -1
- package/web/app/immutable/chunks/{CIJ-7Xzd.js → DhVLJG6D.js} +1 -1
- package/web/app/immutable/chunks/{C63WwVct.js → DkERMj5B.js} +1 -1
- package/web/app/immutable/chunks/{DGMrUmNq.js → DkJYBjJg.js} +1 -1
- package/web/app/immutable/chunks/{BSntxgH1.js → DkOk28fz.js} +1 -1
- package/web/app/immutable/chunks/{BDsciJGp.js → Dk_Hc5oq.js} +1 -1
- package/web/app/immutable/chunks/{DGv69LVd.js → DlfbUU6o.js} +1 -1
- package/web/app/immutable/chunks/{odj5qcEP.js → DlwTP-AJ.js} +1 -1
- package/web/app/immutable/chunks/{CU_-vK2M.js → Dm98YBgx.js} +3 -3
- package/web/app/immutable/chunks/{BhQMKzoM.js → DmWvRjk6.js} +1 -1
- package/web/app/immutable/chunks/{CDAnHxmJ.js → DmpdpJAo.js} +1 -1
- package/web/app/immutable/chunks/{DhLHwyRV.js → Dn_aCJkC.js} +1 -1
- package/web/app/immutable/chunks/{BVuLEX_p.js → Do-SaITx.js} +1 -1
- package/web/app/immutable/chunks/{c0c_b7yh.js → DoY7_Wfd.js} +1 -1
- package/web/app/immutable/chunks/{CXeB7YFK.js → DqEoTQds.js} +1 -1
- package/web/app/immutable/chunks/{B7y9pKDL.js → DtVrXGBM.js} +1 -1
- package/web/app/immutable/chunks/{Do2KlQU0.js → DtkIwON_.js} +1 -1
- package/web/app/immutable/chunks/{BRKjDAGC.js → DuoQQplG.js} +1 -1
- package/web/app/immutable/chunks/{B5tvpTFB.js → DwGyIIXK.js} +1 -1
- package/web/app/immutable/chunks/{DlUpt_0u.js → DwbEs_9r.js} +1 -1
- package/web/app/immutable/chunks/{COgn_CzG.js → DwiE5WsI.js} +1 -1
- package/web/app/immutable/chunks/{DiURwJNX.js → DxSE2XEK.js} +1 -1
- package/web/app/immutable/chunks/{Cp02CBjf.js → DxnZvDv0.js} +1 -1
- package/web/app/immutable/chunks/{418Agcsp.js → Dy9FYRX8.js} +1 -1
- package/web/app/immutable/chunks/{BKMQo7oP.js → DzTn7KcX.js} +1 -1
- package/web/app/immutable/chunks/{CXDUvPYf.js → ELYZilX0.js} +1 -1
- package/web/app/immutable/chunks/{7mo0aYB5.js → ExR0UceK.js} +1 -1
- package/web/app/immutable/chunks/{Bc1vJq_Z.js → FLpsgWeB.js} +1 -1
- package/web/app/immutable/chunks/{B5q4SHo9.js → GTsIF2uA.js} +1 -1
- package/web/app/immutable/chunks/{BwPwF85e.js → HLNbJ-7M.js} +1 -1
- package/web/app/immutable/chunks/{B2CniqS1.js → Hi2H4bj8.js} +1 -1
- package/web/app/immutable/chunks/{DZScoaNb.js → I9b9apiN.js} +1 -1
- package/web/app/immutable/chunks/{PhAbES0t.js → Idk978zJ.js} +1 -1
- package/web/app/immutable/chunks/{DQT1hnTe.js → Ii0VTY5h.js} +1 -1
- package/web/app/immutable/chunks/{jBG7W4tL.js → ItBm4ElA.js} +1 -1
- package/web/app/immutable/chunks/{BJgwBOBz.js → Jk9a4xPx.js} +1 -1
- package/web/app/immutable/chunks/{BW1iql_y.js → KtEuoG00.js} +1 -1
- package/web/app/immutable/chunks/{DtqPBHQj.js → L3K71tUU.js} +1 -1
- package/web/app/immutable/chunks/{Bv_xG3nA.js → Lk7a_7W9.js} +1 -1
- package/web/app/immutable/chunks/{nwO3KCpP.js → Mmc_61iE.js} +1 -1
- package/web/app/immutable/chunks/{DlU1rxYV.js → R5lmOJFS.js} +1 -1
- package/web/app/immutable/chunks/{B6FGs8l2.js → RTRAqswA.js} +1 -1
- package/web/app/immutable/chunks/{CTgU1bby.js → T-5C1GqS.js} +1 -1
- package/web/app/immutable/chunks/{B5qiyEpH.js → UYAhegVx.js} +1 -1
- package/web/app/immutable/chunks/{h8JtxU_T.js → UsbmbYa0.js} +1 -1
- package/web/app/immutable/chunks/{pMP23LzB.js → VcnbZvDh.js} +1 -1
- package/web/app/immutable/chunks/{gU2qspu9.js → WvHbj6rB.js} +1 -1
- package/web/app/immutable/chunks/{jnsEVh0o.js → XK8g38bo.js} +1 -1
- package/web/app/immutable/chunks/{B0qb2Ymj.js → Y2a1lhL9.js} +1 -1
- package/web/app/immutable/chunks/YLhFQnIu.js +1 -0
- package/web/app/immutable/chunks/{DLCFUd4s.js → YeOAvjnW.js} +1 -1
- package/web/app/immutable/chunks/{Dval4sTX.js → _3Ca9E4W.js} +1 -1
- package/web/app/immutable/chunks/{BZkfp4xg.js → _duPkHC1.js} +1 -1
- package/web/app/immutable/chunks/{BuBXySe4.js → aR8LYT4O.js} +1 -1
- package/web/app/immutable/chunks/{CIaruUrd.js → cEIzYo-d.js} +1 -1
- package/web/app/immutable/chunks/{dmZv6JOg.js → cPsAlOmH.js} +1 -1
- package/web/app/immutable/chunks/{jVbx5uZK.js → cc1gQUub.js} +1 -1
- package/web/app/immutable/chunks/{j67P3UNv.js → cpPIph2M.js} +2 -2
- package/web/app/immutable/chunks/{QRUY44Ff.js → d028N8d2.js} +1 -1
- package/web/app/immutable/chunks/{BDOuZgzG.js → ewL2yuZ8.js} +1 -1
- package/web/app/immutable/chunks/{BbLh3POL.js → g08hegP2.js} +1 -1
- package/web/app/immutable/chunks/{YHt5oaBn.js → gHZWxIPZ.js} +1 -1
- package/web/app/immutable/chunks/{BgQadJDW.js → gJJMUdOI.js} +1 -1
- package/web/app/immutable/chunks/{CGYPBD6G.js → gwv5JQYH.js} +1 -1
- package/web/app/immutable/chunks/{C8LrJXqa.js → iAKTK0Nq.js} +1 -1
- package/web/app/immutable/chunks/{B8QvP_8b.js → j5ppcWWU.js} +1 -1
- package/web/app/immutable/chunks/{BcKrkXju.js → jAIXVFR4.js} +1 -1
- package/web/app/immutable/chunks/{C2F2Vd1P.js → kvtKUeBe.js} +1 -1
- package/web/app/immutable/chunks/{BjlMkd10.js → lZ7zkdkp.js} +1 -1
- package/web/app/immutable/chunks/{B_4WsP9b.js → mUNs8NSR.js} +1 -1
- package/web/app/immutable/chunks/{C-zB-6G6.js → oBIu7LTI.js} +1 -1
- package/web/app/immutable/chunks/{BPxN1acN.js → oHUzFHtp.js} +2 -2
- package/web/app/immutable/chunks/{BVkAOJlr.js → pHYq50Ny.js} +1 -1
- package/web/app/immutable/chunks/{BvMBgdHo.js → pJyYpzre.js} +1 -1
- package/web/app/immutable/chunks/{DmvYOHFs.js → qm1BBGRe.js} +13 -13
- package/web/app/immutable/chunks/{BJO0de_7.js → qoDJOBiM.js} +1 -1
- package/web/app/immutable/chunks/{KReSIZSD.js → r2R1I-D0.js} +1 -1
- package/web/app/immutable/chunks/{Cp9EK0r2.js → rlNXEIUc.js} +1 -1
- package/web/app/immutable/chunks/{CR-JVxLD.js → scTXKJzg.js} +1 -1
- package/web/app/immutable/chunks/{BVl79jmM.js → tVmNccZ-.js} +1 -1
- package/web/app/immutable/chunks/{3uhIXwkT.js → w-7j2Qtq.js} +1 -1
- package/web/app/immutable/chunks/{CHto7_WH.js → x2AHvZeQ.js} +1 -1
- package/web/app/immutable/chunks/{DuAAGnM9.js → xPYDsdm4.js} +1 -1
- package/web/app/immutable/chunks/{Dp8FVKoA.js → xzksWQ-h.js} +1 -1
- package/web/app/immutable/chunks/{CA4P_FmX.js → ygDvZWWC.js} +1 -1
- package/web/app/immutable/chunks/{7OH6WUSt.js → z91bgOZ6.js} +1 -1
- package/web/app/immutable/chunks/{BtBQ5qfh.js → z_SeEaJQ.js} +1 -1
- package/web/app/immutable/chunks/{C-G2u0Oe.js → zxxqPN9_.js} +1 -1
- package/web/app/immutable/entry/{app.CgTOio8y.js → app.DOLk01Bm.js} +3 -3
- package/web/app/immutable/entry/start.CIQw0TYU.js +1 -0
- package/web/app/immutable/nodes/{0.C2oVsoB8.js → 0.qPBEcapg.js} +1 -1
- package/web/app/immutable/nodes/{1.riWgWdpy.js → 1.Bi3sNEdL.js} +1 -1
- package/web/app/immutable/nodes/10.DHyl6QAs.js +39 -0
- package/web/app/immutable/nodes/{11.exvXwEGT.js → 11.pqpLvrmB.js} +1 -1
- package/web/app/immutable/nodes/{12.D6rxlIQy.js → 12.C5GV0W_U.js} +1 -1
- package/web/app/immutable/nodes/{13.CHYsmiD_.js → 13.BpCKbOND.js} +1 -1
- package/web/app/immutable/nodes/{14.mG-YN9pn.js → 14.DomreN-2.js} +3 -3
- package/web/app/immutable/nodes/{15.D2k47bXC.js → 15.CKbUOFrf.js} +1 -1
- package/web/app/immutable/nodes/{16.BsFtzH0D.js → 16.BcdRdVBS.js} +1 -1
- package/web/app/immutable/nodes/{17.me_aOx8O.js → 17.C5h-oNNo.js} +1 -1
- package/web/app/immutable/nodes/{18.BO1oZWgm.js → 18.vgJOUK1N.js} +1 -1
- package/web/app/immutable/nodes/{19.DPrP9Wtk.js → 19.3QLuvvWY.js} +2 -2
- package/web/app/immutable/nodes/{2.BpY-66TB.js → 2.CSj73FLT.js} +4 -4
- package/web/app/immutable/nodes/{20.LbRPieV_.js → 20.CuOgTm-x.js} +1 -1
- package/web/app/immutable/nodes/{3.CriVb5Fs.js → 3.BUbQ5Tes.js} +1 -1
- package/web/app/immutable/nodes/{4.dRoX-MYE.js → 4.Byn29Mul.js} +1 -1
- package/web/app/immutable/nodes/{5.Bn3YBx-4.js → 5.CMHzkmR-.js} +1 -1
- package/web/app/immutable/nodes/{6.CgMdV-V1.js → 6.N0CPg2uE.js} +1 -1
- package/web/app/immutable/nodes/{7.FdAsp1bX.js → 7.4Szvqobl.js} +1 -1
- package/web/app/immutable/nodes/{8.Da7xrRMP.js → 8.BKw9KMbS.js} +1 -1
- package/web/app/immutable/nodes/{9.BnLzowQ-.js → 9.BBJWosck.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/Cp7Byf5d.js +0 -1
- package/web/app/immutable/chunks/DWIoipce.js +0 -1
- package/web/app/immutable/chunks/Dws-34a7.js +0 -1
- package/web/app/immutable/chunks/DxC0zTSc.js +0 -1
- package/web/app/immutable/chunks/Whej1Dge.js +0 -1
- package/web/app/immutable/entry/start.oAnCLCVf.js +0 -1
- package/web/app/immutable/nodes/10.DbjaWIBW.js +0 -39
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as O,bo as m,bw as R,b as T,bm as y}from"./
|
|
1
|
+
import{t as O,bo as m,bw as R,b as T,bm as y}from"./YLhFQnIu.js";import{bs as U,a7 as Y,ay as q,W as s,bn as J,aA as v,be as p,b$ as f,b_ as u,bO as d,a5 as P,bA as S,bS as Q,aD as V,aB as L,c9 as X,aG as Z,bI as tt}from"./3SdAC2_C.js";import{i as C}from"./YeOAvjnW.js";import{E as z}from"./Bj4IsLvN.js";import"./BQhBnAuP.js";import"./CGdXewiA.js";import"./DJivXy66.js";import{f as A}from"./Cw2fqKk9.js";import{F as et,a3 as at,bP as ot}from"./gwv5JQYH.js";import"./CrpUtGFn.js";import{I as st}from"./oBIu7LTI.js";import{j as nt,b as rt}from"./DP0K41jk.js";var it=L('<span aria-hidden="true"><!></span>'),lt=L('<div class="flex flex-wrap justify-center gap-2"><!> <!></div>');function ct(g,n){if(new.target)return O({component:ct,...g});U(n,!0);let o=m(n,"view",7),b=m(n,"canMove",7,!1),w=m(n,"waiting",7,!1),h=m(n,"onWait",7),x=m(n,"onMove",7);var I={get view(){return o()},set view(t){o(t),v()},get canMove(){return b()},set canMove(t=!1){b(t),v()},get waiting(){return w()},set waiting(t=!1){w(t),v()},get onWait(){return h()},set onWait(t){h(t),v()},get onMove(){return x()},set onMove(t){x(t),v()},$set:R,$on:(t,k)=>T(n,t,k)},H=Y(),$=q(H);{var j=t=>{z(t,{class:"h-full min-h-0",density:"compact","data-workspace-home-panel-notice":"starting",icon:_=>{var r=it(),e=P(r);st(e,{size:16}),S(r),s(_,r)},title:_=>{p();var r=f();u(e=>d(r,e),[()=>y.workspaceHome_starting_label()]),s(_,r)},$$slots:{icon:!0,title:!0}})},B=t=>{z(t,{class:"h-full",get"data-workspace-home-panel-notice"(){return o().state},icon:e=>{{let a=X(()=>o().state==="moving"?at:ot);et(e,{get icon(){return V(a)},class:"size-5"})}},title:e=>{p();var a=f();u(l=>d(a,l),[()=>rt(o().state==="moving"?"moving":"detached")]),s(e,a)},description:e=>{p();var a=f();u(l=>d(a,l),[()=>nt(o())]),s(e,a)},actions:e=>{var a=lt(),l=P(a);{var D=i=>{A(i,{variant:"outline",size:"sm",get disabled(){return w()},onclick:()=>h()?.(),children:(M,N)=>{p();var c=f();u(W=>d(c,W),[()=>y.workspaceHome_wait_label()]),s(M,c)},$$slots:{default:!0}})};C(l,i=>{o().canWait&&i(D)})}var G=Q(l,2);{var K=i=>{A(i,{variant:"outline",size:"sm",onclick:()=>x()?.(),children:(M,N)=>{p();var c=f();u(W=>d(c,W),[()=>y.workspaceHome_move_label()]),s(M,c)},$$slots:{default:!0}})};C(G,i=>{b()&&i(K)})}S(a),s(e,a)},$$slots:{icon:!0,title:!0,description:!0,actions:!0}})};C($,t=>{o().starting?t(j):t(B,-1)})}return s(g,H),J(I)}const E=Symbol("workspace-home-panel");function kt(g){tt(E,g)}function Mt(){return Z(E)}export{ct as W,Mt as g,kt as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Jx as o,bc as d}from"./
|
|
1
|
+
import{Jx as o,bc as d}from"./D5wnbxHp.js";const f=o.createSelector((t,r)=>t.uiHighlight.activeById[r.trim()]??0),m=o.createSelector((t,r)=>t.uiHighlight.durationMsById[r.trim()]),n="ui-highlight-pulse-ring";function u(t){return(t??"").trim()}function T(t,r={}){let s=u(r.id??t.dataset.highlightId),a=0,l;function c(){t.classList.remove(n)}function g(e){t.classList.remove(n),t.offsetWidth,t.classList.add(n),l&&clearTimeout(l),l=setTimeout(c,e??d)}function h(){if(!s)return;let e;try{e=o.state}catch{return}const i=f.select(e,s);i>0&&i!==a&&(a=i,g(m.select(e,s)))}const I=setInterval(h,100);return h(),{update(e={}){const i=u(e.id??t.dataset.highlightId);i!==s&&(s=i,a=0,c(),h())},destroy(){clearInterval(I),l&&clearTimeout(l),c()}}}export{T as h};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as gt}from"./SbTG0nwQ.js";import{nY as pt,br as vt}from"./4g_iHoQm.js";import{g as ht}from"./CMiilI_P.js";import{t as Te,bo as h,bw as Ue,b as Re,bm as m,br as _t}from"./Dws-34a7.js";import{ai as Ze,bs as Se,cb as bt,ca as ye,aD as e,a7 as ke,ay as oe,W as x,bn as Ne,bV as J,aA as _,a5 as ve,bS as O,bH as k,bA as he,b_ as Q,aj as Me,aw as Fe,bl as Ce,bO as ie,aB as X,c9 as E,be as Ie,b$ as ze,br as Qe}from"./3SdAC2_C.js";import{i as te}from"./DLCFUd4s.js";import{k as wt}from"./5-0LQoqd.js";import{s as Le,e as et,f as tt,g as yt}from"./BD9db4FR.js";import{b as Ke}from"./Dn334wJv.js";import{c as me}from"./B5tvpTFB.js";import{q as Xe,l as nt,d as rt,e as $e,K as at,h as ot,M as it}from"./jBG7W4tL.js";import{a as xt}from"./CC7to1B5.js";import{m as we}from"./rXKOJqUt.js";import{f as Ee}from"./BIGqOuh0.js";import"./BPuz5cN_.js";import{l as Be,f as lt,m as kt,a as Ct}from"./B8HnjSSF.js";import"./ChTqQfQN.js";import"./DcOkWaeN.js";import"./DWa-2rkZ.js";import{bK as He}from"./BTvTyEgq.js";import{t as De}from"./D-rRuAXZ.js";import{F as Ae,d3 as Lt,bW as Pt,bX as Mt,cq as At,bF as Et,cr as It,aZ as zt,a8 as $t}from"./CGYPBD6G.js";import{S as Tt}from"./Do2KlQU0.js";import{n as Ut,g as Rt}from"./Bc1vJq_Z.js";import{e as We}from"./C-zB-6G6.js";import{i as St,f as Nt}from"./C63WwVct.js";import{P as Kt}from"./BLKFshyr.js";import{h as Ot}from"./Mko8tFZb.js";import{t as Ft}from"./DAsc1V4f.js";function Bt(a,n){return a?.isExternalLink===!0&&typeof a.workspaceId=="string"&&a.workspaceId?a.workspaceId:n||void 0}function Ht(a,n,o){const u=a.label||a.id||"mention";if(a.type==="member")return gt(u);if(a.type==="note"&&a.id&&o){const s=Bt(a.meta,n),v=s?o(s,a.id)?.trim():void 0;if(v)return v}return u}function Gn(a,n,o){if(typeof document>"u"||!a.includes('data-type="note"'))return a;const u=document.createElement("template");u.innerHTML=a;let s=!1;for(const v of u.content.querySelectorAll('[data-mention][data-type="note"]')){let b=null;try{b=JSON.parse(v.getAttribute("data-meta")||"{}")}catch{b=null}const P=v.textContent??"",M=Ht({type:"note",id:v.getAttribute("data-id"),label:P,meta:b},n,o);M!==P&&(v.textContent=M,s=!0)}return s?u.innerHTML:a}const Jn=(a,n)=>{let o;try{o=ht().state}catch{return}const u=o?.workspaceNotes?.byWorkspaceId?.[a]?.notes;return u?pt(u,n)?.title:void 0};let Oe=null;var jt=X('<p class="mt-2 max-w-[90vw] rounded-md bg-black/60 px-3 py-1.5 text-center text-sm text-white"> </p>'),Dt=X('<div data-media-lightbox-root="" data-image-lightbox-root="" class="fixed inset-0 z-[1000] flex cursor-zoom-out flex-col items-center justify-center bg-black/80 p-4 backdrop-blur-sm" style="pointer-events: auto;" role="dialog" aria-modal="true" tabindex="-1"><div class="absolute right-4 top-4 z-[1002] flex items-center gap-1"><!> <!></div> <div class="flex min-h-0 w-full flex-1 items-center justify-center"><!></div> <!></div>');function Ye(a,n){if(new.target)return Te({component:Ye,...a});Se(n,!0);let o=h(n,"open",15,!1),u=h(n,"ariaLabel",7),s=h(n,"closeLabel",7),v=h(n,"onClose",7),b=h(n,"openerElement",7,null),P=h(n,"children",7),M=h(n,"actions",7),F=h(n,"caption",7),U=h(n,"onKeydown",7),R=h(n,"onCopy",7);const y=St(),f=Nt(()=>N());let A=J(null),S=J(null);const D=Symbol("media-lightbox");let V=!1;function N({handoff:r=!1}={}){o()&&(V=r,Oe?.source===D&&(Oe=null),o(!1),v()?.(),!r&&b()?.isConnected&&b().focus({preventScroll:!0}))}function d(r){Oe={source:D,close:()=>N({handoff:!0})},r.scrollIntoView({block:"nearest"}),r.click()}function B(r,p,L){return V?{duration:0}:Rt(r,{tier:"moderate"},L)}bt(()=>{if(!o())return;const r=Oe;V=r!==null&&r.source!==D,V&&r&&(Oe=null,r.close())});function Y(r){(r.target instanceof Element?r.target:null)?.closest('[data-media-lightbox-content], [role="toolbar"], button, input')||N()}function q(r){if(U()?.(r),r.defaultPrevented||r.key!=="Tab"||!e(A))return;const p=Array.from(e(A).querySelectorAll('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])')),L=p[0],I=p[p.length-1];!L||!I||(r.shiftKey&&document.activeElement===L?(r.preventDefault(),I.focus()):!r.shiftKey&&document.activeElement===I&&(r.preventDefault(),L.focus()))}ye(()=>{if(o())return Xe(()=>N())}),ye(()=>{!o()||!e(S)||requestAnimationFrame(()=>e(S)?.focus())});var g={handOffTo:d,get open(){return o()},set open(r=!1){o(r),_()},get ariaLabel(){return u()},set ariaLabel(r){u(r),_()},get closeLabel(){return s()},set closeLabel(r){s(r),_()},get onClose(){return v()},set onClose(r){v(r),_()},get openerElement(){return b()},set openerElement(r=null){b(r),_()},get children(){return P()},set children(r){P(r),_()},get actions(){return M()},set actions(r){M(r),_()},get caption(){return F()},set caption(r){F(r),_()},get onKeydown(){return U()},set onKeydown(r){U(r),_()},get onCopy(){return R()},set onCopy(r){R(r),_()},$set:Ue,$on:(r,p)=>Re(n,r,p)},i=ke(),w=oe(i);{var l=r=>{{let p=E(()=>y?.target()??"body");Kt(r,{get target(){return e(p)},zIndex:1e3,children:(L,I)=>{var z=Dt(),W=ve(z),ne=ve(W);{var re=C=>{var $=ke(),G=oe($);De(G,M),x(C,$)};te(ne,C=>{M()&&C(re)})}var ue=O(ne,2);Ee(ue,{variant:"ghost",size:"icon",class:"text-white hover:bg-white/20 hover:text-white",onclick:()=>N(),get"aria-label"(){return s()},get ref(){return e(S)},set ref(C){k(S,C,!0)},children:(C,$)=>{Ae(C,{get icon(){return Lt},size:"lg"})},$$slots:{default:!0}}),he(W),We(W,C=>f?.(C));var le=O(W,2),xe=ve(le);De(xe,P),he(le),We(le,C=>f?.(C));var se=O(le,2);{var ge=C=>{var $=jt(),G=Ce($,!0);Q(()=>ie(G,F())),x(C,$)};te(se,C=>{F()&&C(ge)})}he(z),Ke(z,C=>k(A,C),()=>e(A)),Q(()=>Le(z,"aria-label",u())),Me("click",z,Y),Me("keydown",z,q),Fe("copy",z,function(...C){R()?.apply(this,C)}),Ut(3,z,()=>B),x(L,z)},$$slots:{default:!0}})}};te(w,r=>{o()&&r(l)})}return x(a,i),Ne(g)}Ze(["click","keydown"]);function qe(a){if(!a.startsWith("workspace-file://"))return null;const o=a.slice(17).split(/[?#]/)[0].split("/"),u=o[0],s=o.slice(1);if(!u||s.length===0)return null;const v=[];for(const b of s){if(!b)return null;try{v.push(decodeURIComponent(b))}catch{return null}}return{workspaceId:u,path:v.join("/")}}function st(a){try{return new URL(a).protocol==="https:"}catch{return!1}}function Ve(a){const n=/^data:([^;,]+);base64,(.*)$/s.exec(a);return n?{mimeType:n[1],base64:n[2]}:null}function je(a){return st(a)||qe(a)!==null||/^workspace-asset:\/\/[^/?#]+/.test(a)||/^data:image\/[a-z0-9.+-]+(?:;[^,]*)?,/i.test(a)}function ct(a){if(a.length===0)return 0;let n=0;return a.endsWith("==")?n=2:a.endsWith("=")&&(n=1),Math.floor(a.length*3/4)-n}function Wt(a,n){const o=atob(a),u=new Uint8Array(o.length);for(let s=0;s<o.length;s++)u[s]=o.charCodeAt(s);return new Blob([u],{type:n})}const Vt={"image/png":"png","image/jpeg":"jpg","image/gif":"gif","image/webp":"webp","image/svg+xml":"svg","image/avif":"avif","image/bmp":"bmp"};function Zt(a){if(a.workspacePath){const s=a.workspacePath.split("/").pop();if(s)return s}const n=(a.imageName||"image").replace(/[/\\]/g,"_");if(/\.[A-Za-z0-9]+$/.test(n))return n;const o=a.mimeType?.split(";")[0].trim().toLowerCase(),u=o&&Vt[o]||"png";return`${n}.${u}`}var Xt=X('<div class="type-caption px-2 py-1 text-muted-foreground" data-testid="image-info-dimensions"> </div>'),Yt=X('<div class="type-caption px-2 py-1 text-muted-foreground" data-testid="image-info-size"> </div>'),qt=X("<!> <!> <!>",1),Gt=X("<!> <!> <!> <!>",1),Jt=X("<!> <!>",1);function ut(a,n){if(new.target)return Te({component:ut,...a});Se(n,!0);let o=h(n,"imageUrl",7),u=h(n,"imageName",7),s=h(n,"open",15,!1),v=h(n,"triggerClass",7),b=h(n,"contentClass",7);const P=E(()=>Ve(o())),M=E(()=>qe(o())),F=E(()=>st(o()));let U=J(null),R=J(null),y=null;function f(){if(y===o())return;const l=y=o();k(U,null),k(R,e(P)?ct(e(P).base64):null,!0);const r=new Image;r.onload=()=>{y===l&&k(U,{width:r.naturalWidth,height:r.naturalHeight},!0)},r.src=o(),e(P)||fetch(o()).then(p=>p.ok?p.blob():null).then(p=>{p&&y===l&&k(R,p.size,!0)}).catch(()=>{})}ye(()=>{s()&&f()}),ye(()=>{if(s())return Xe(()=>{s(!1)})});async function A(l=o()){const r=Ve(l);if(r)return Wt(r.base64,r.mimeType);const p=await fetch(l);if(!p.ok)throw new Error(`Image fetch failed: ${p.status}`);return await p.blob()}async function S(){let l=null;try{let r=o(),p=e(P)?.mimeType;if(!e(P)){const I=await A();p=I.type,l=URL.createObjectURL(I),r=l}const L=document.createElement("a");L.href=r,L.download=Zt({workspacePath:e(M)?.path,imageName:u(),mimeType:p}),document.body.appendChild(L);try{L.click()}finally{L.remove()}}catch{we.error(m.ui_imageActionsMenu_downloadFailed_error())}finally{l&&URL.revokeObjectURL(l)}}async function D(){if(e(M))try{await He(e(M).path),we.success(m.ui_imageActionsMenu_pathCopied_label())}catch{we.error(m.ui_imageActionsMenu_copyFailed_error())}}async function V(){if(e(F))try{await He(o()),we.success(m.ui_imageActionsMenu_linkCopied_label())}catch{we.error(m.ui_imageActionsMenu_copyFailed_error())}}async function N(l){let r,p;try{let L;if(l.type.split(";")[0].trim()==="image/svg+xml"){p=URL.createObjectURL(l);const W=new Image;W.src=p,await W.decode(),L=W}else L=r=await createImageBitmap(l);const I=document.createElement("canvas");I.width=L instanceof HTMLImageElement?L.naturalWidth:L.width,I.height=L instanceof HTMLImageElement?L.naturalHeight:L.height;const z=I.getContext("2d");if(!z)throw new Error("2d canvas context unavailable");return z.drawImage(L,0,0),await new Promise((W,ne)=>{I.toBlob(re=>re?W(re):ne(new Error("canvas toBlob failed")),"image/png")})}finally{r?.close(),p&&URL.revokeObjectURL(p)}}async function d(l=o()){try{let r=await A(l);r.type!=="image/png"&&(r=await N(r)),await navigator.clipboard.write([new ClipboardItem({"image/png":r})]),we.success(m.ui_imageActionsMenu_imageCopied_label())}catch{we.error(m.ui_imageActionsMenu_copyFailed_error())}}function B(l,r=o()){return l.defaultPrevented||!je(r)||l instanceof KeyboardEvent&&(l.key.toLowerCase()!=="c"||!(l.metaKey||l.ctrlKey)||l.altKey||l.shiftKey||l.isComposing)||xt(l.target)||document.getSelection()?.toString()?!1:(l.preventDefault(),l.stopPropagation(),l instanceof KeyboardEvent&&l.repeat||(d(r),s(!1)),!0)}var Y={handleCopy:B,get imageUrl(){return o()},set imageUrl(l){o(l),_()},get imageName(){return u()},set imageName(l){u(l),_()},get open(){return s()},set open(l=!1){s(l),_()},get triggerClass(){return v()},set triggerClass(l){v(l),_()},get contentClass(){return b()},set contentClass(l){b(l),_()},$set:Ue,$on:(l,r)=>Re(n,l,r)},q=ke(),g=oe(q);{var i=l=>{var r=ke(),p=oe(r);me(p,()=>it,(L,I)=>{I(L,{get open(){return s()},set open(z){s(z)},children:(z,W)=>{var ne=Jt(),re=oe(ne);{const le=(se,ge)=>{let C=()=>(ge?.()).props;{let $=E(()=>m.ui_imageActionsMenu_trigger_ariaLabel());Ee(se,_t(C,{variant:"plain",size:"icon-sm",wrapContent:!1,get active(){return s()},get"aria-label"(){return e($)},children:(G,j)=>{at(G,{class:"size-3.5"})},$$slots:{default:!0}}))}};let xe=E(()=>et("flex h-7 w-7 items-center justify-center rounded-md bg-black/60 text-white","hover:bg-black/75",v()));me(re,()=>nt,(se,ge)=>{ge(se,{get class(){return e(xe)},onclick:C=>C.stopPropagation(),onkeydown:C=>B(C),oncopy:C=>B(C),child:le,$$slots:{child:!0}})})}var ue=O(re,2);me(ue,()=>rt,(le,xe)=>{xe(le,{get class(){return b()},align:"end",onkeydown:se=>B(se),oncopy:se=>B(se),children:(se,ge)=>{var C=Gt(),$=oe(C);me($,()=>$e,(H,ee)=>{ee(H,{onSelect:()=>void S(),children:(K,Z)=>{Ie();var ae=ze();Q(ce=>ie(ae,ce),[()=>m.ui_imageActionsMenu_download_label()]),x(K,ae)},$$slots:{default:!0}})});var G=O($,2);me(G,()=>$e,(H,ee)=>{ee(H,{onSelect:()=>void d(),children:(K,Z)=>{Ie();var ae=ze();Q(ce=>ie(ae,ce),[()=>m.ui_imageActionsMenu_copyImage_label()]),x(K,ae)},$$slots:{default:!0}})});var j=O(G,2);{var de=H=>{var ee=ke(),K=oe(ee);me(K,()=>$e,(Z,ae)=>{ae(Z,{onSelect:()=>void D(),children:(ce,t)=>{Ie();var c=ze();Q(T=>ie(c,T),[()=>m.ui_imageActionsMenu_copyPath_label()]),x(ce,c)},$$slots:{default:!0}})}),x(H,ee)},_e=H=>{var ee=ke(),K=oe(ee);me(K,()=>$e,(Z,ae)=>{ae(Z,{onSelect:()=>void V(),children:(ce,t)=>{Ie();var c=ze();Q(T=>ie(c,T),[()=>m.ui_imageActionsMenu_copyLink_label()]),x(ce,c)},$$slots:{default:!0}})}),x(H,ee)};te(j,H=>{e(M)?H(de):e(F)&&H(_e,1)})}var fe=O(j,2);{var Pe=H=>{var ee=qt(),K=oe(ee);me(K,()=>ot,(c,T)=>{T(c,{})});var Z=O(K,2);{var ae=c=>{var T=Xt(),pe=Ce(T,!0);Q(be=>ie(pe,be),[()=>m.ui_imageActionsMenu_dimensions_label({width:Be(e(U).width),height:Be(e(U).height)})]),x(c,T)};te(Z,c=>{e(U)&&c(ae)})}var ce=O(Z,2);{var t=c=>{var T=Yt(),pe=Ce(T,!0);Q(be=>ie(pe,be),[()=>lt(e(R))]),x(c,T)};te(ce,c=>{e(R)!==null&&c(t)})}x(H,ee)};te(fe,H=>{(e(U)||e(R)!==null)&&H(Pe)})}x(se,C)},$$slots:{default:!0}})}),x(z,ne)},$$slots:{default:!0}})}),x(l,r)},w=E(()=>je(o()));te(g,l=>{e(w)&&l(i)})}return x(a,q),Ne(Y)}var Qt=X('<div role="application" tabindex="0" data-testid="zoom-pan-viewport"><div class="flex h-full w-full items-center justify-center will-change-transform" data-testid="zoom-pan-content"><!></div> <div class="absolute bottom-4 left-1/2 z-10 flex -translate-x-1/2 cursor-default items-center gap-2 rounded-full bg-black/60 px-3 py-1.5 backdrop-blur-sm" role="toolbar" tabindex="-1" data-testid="zoom-pan-controls"><!> <div class="w-36"><!></div> <!> <span class="min-w-12 text-center text-xs tabular-nums text-white/90" data-testid="zoom-pan-percent"> </span> <!></div></div>');function dt(a,n){if(new.target)return Te({component:dt,...a});Se(n,!0);let o=h(n,"children",7),u=h(n,"minZoom",7,.25),s=h(n,"maxZoom",7,8),v=h(n,"onScaleChange",7),b=h(n,"pannable",15,!1);const P=1.25,M=.0015,F=.01,U=4,R=.5;let y=J(1),f=J(0),A=J(0),S=J(!1),D=J(null),V=J(null),N=J(Qe({width:0,height:0})),d=J(Qe({width:0,height:0}));const B=E(()=>e(d).width*e(y)>e(N).width+R),Y=E(()=>e(d).height*e(y)>e(N).height+R);ye(()=>{v()?.(e(y))}),ye(()=>{b(e(B)||e(Y))});function q(){e(D)&&k(N,{width:e(D).clientWidth,height:e(D).clientHeight},!0);const t=e(V)?.firstElementChild;if(t instanceof HTMLElement)k(d,{width:t.offsetWidth,height:t.offsetHeight},!0);else if(t){const c=t.getBoundingClientRect();k(d,{width:c.width/e(y),height:c.height/e(y)},!0)}}function g(t,c,T){const pe=c*(1-e(y))/2,be=T*e(y)-c;return be<=R?pe:Math.min(pe+be/2,Math.max(pe-be/2,t))}function i(){k(f,g(e(f),e(N).width,e(d).width),!0),k(A,g(e(A),e(N).height,e(d).height),!0)}ye(()=>{const t=e(D),c=e(V);if(!t||!c||typeof ResizeObserver>"u")return;const T=new ResizeObserver(()=>{q(),i()});return T.observe(t),c.firstElementChild&&T.observe(c.firstElementChild),()=>T.disconnect()});let w=null,l=0,r=0,p=0,L=!1;const I=E(()=>kt(e(y),{style:"percent",maximumFractionDigits:0}));function z(t){return Math.min(s(),Math.max(u(),t))}function W(t,c,T){const pe=z(T),be=e(D)?.getBoundingClientRect(),Ge=be?t-be.left:0,Je=be?c-be.top:0;q(),k(f,Ge-(Ge-e(f))/e(y)*pe),k(A,Je-(Je-e(A))/e(y)*pe),k(y,pe,!0),i()}function ne(t){const c=e(D)?.getBoundingClientRect();c?W(c.left+c.width/2,c.top+c.height/2,t):(k(y,z(t),!0),i())}function re(){k(y,1),k(f,0),k(A,0)}function ue(t){t.preventDefault();const c=t.ctrlKey?F:M;W(t.clientX,t.clientY,e(y)*Math.exp(-t.deltaY*c))}ye(()=>{const t=e(D);if(t)return t.addEventListener("wheel",ue,{passive:!1}),()=>t.removeEventListener("wheel",ue)});function le(t){if(t.metaKey||t.ctrlKey||t.altKey)return!1;if(t.key==="+"||t.key==="=")ne(e(y)*P);else if(t.key==="-")ne(e(y)/P);else if(t.key==="0")re();else return!1;return t.preventDefault(),!0}function xe(t){if(t.button>0||(q(),!e(B)&&!e(Y)))return;t.preventDefault(),k(S,!0),w=t.pointerId,l=t.clientX,r=t.clientY,p=0;const c=t.currentTarget;typeof c.setPointerCapture=="function"&&c.setPointerCapture(t.pointerId)}function se(t){if(!e(S)||t.pointerId!==w)return;const c=t.clientX-l,T=t.clientY-r;p+=Math.abs(c)+Math.abs(T),k(f,e(f)+c),k(A,e(A)+T),i(),l=t.clientX,r=t.clientY}function ge(t){if(!e(S)||t.pointerId!==w)return;k(S,!1),w=null,p>U&&(L=!0);const c=t.currentTarget;typeof c.hasPointerCapture=="function"&&typeof c.releasePointerCapture=="function"&&c.hasPointerCapture(t.pointerId)&&c.releasePointerCapture(t.pointerId)}function C(t){L&&(L=!1,t.preventDefault(),t.stopPropagation())}function $(t){const c=Number.parseFloat(t.currentTarget.value);Number.isFinite(c)&&ne(c)}var G={handleKeydown:le,get children(){return o()},set children(t){o(t),_()},get minZoom(){return u()},set minZoom(t=.25){u(t),_()},get maxZoom(){return s()},set maxZoom(t=8){s(t),_()},get onScaleChange(){return v()},set onScaleChange(t){v(t),_()},get pannable(){return b()},set pannable(t=!1){b(t),_()},$set:Ue,$on:(t,c)=>Re(n,t,c)},j=Qt(),de=ve(j),_e=ve(de);De(_e,o),he(de),Ke(de,t=>k(V,t),()=>e(V));var fe=O(de,2),Pe=ve(fe);{let t=E(()=>m.ui_zoomPanViewport_zoomOut_ariaLabel()),c=E(()=>m.ui_zoomPanViewport_zoomOut_ariaLabel());Ee(Pe,{variant:"ghost",size:"icon-sm",class:"text-white hover:bg-white/20 hover:text-white",onclick:()=>ne(e(y)/P),get"aria-label"(){return e(t)},get title(){return e(c)},children:(T,pe)=>{Ae(T,{get icon(){return Pt}})},$$slots:{default:!0}})}var H=O(Pe,2),ee=ve(H);{let t=E(()=>m.ui_zoomPanViewport_zoomSlider_ariaLabel()),c=E(()=>m.ui_zoomPanViewport_zoomSlider_ariaLabel());Tt(ee,{class:"accent-white",get min(){return u()},get max(){return s()},step:"0.01",get value(){return e(y)},oninput:$,get"aria-label"(){return e(t)},get title(){return e(c)},"data-testid":"zoom-pan-slider"})}he(H);var K=O(H,2);{let t=E(()=>m.ui_zoomPanViewport_zoomIn_ariaLabel()),c=E(()=>m.ui_zoomPanViewport_zoomIn_ariaLabel());Ee(K,{variant:"ghost",size:"icon-sm",class:"text-white hover:bg-white/20 hover:text-white",onclick:()=>ne(e(y)*P),get"aria-label"(){return e(t)},get title(){return e(c)},children:(T,pe)=>{Ae(T,{get icon(){return Mt}})},$$slots:{default:!0}})}var Z=O(K,2),ae=Ce(Z,!0),ce=O(Z,2);{let t=E(()=>m.ui_zoomPanViewport_resetZoom_ariaLabel()),c=E(()=>m.ui_zoomPanViewport_resetZoom_ariaLabel());Ee(ce,{variant:"ghost",size:"icon-sm",class:"text-white hover:bg-white/20 hover:text-white",onclick:re,get"aria-label"(){return e(t)},get title(){return e(c)},children:(T,pe)=>{Ae(T,{get icon(){return At}})},$$slots:{default:!0}})}return he(fe),he(j),Ke(j,t=>k(D,t),()=>e(D)),Q((t,c)=>{tt(j,1,`relative h-full w-full touch-none select-none overflow-hidden ${e(S)?"cursor-grabbing":b()?"cursor-grab":""}`),Le(j,"aria-label",t),yt(de,`transform: translate(${e(f)??""}px, ${e(A)??""}px) scale(${e(y)??""}); transform-origin: 0 0;`),Le(fe,"aria-label",c),ie(ae,e(I))},[()=>m.ui_zoomPanViewport_viewport_ariaLabel(),()=>m.ui_zoomPanViewport_controls_ariaLabel()]),Me("pointerdown",j,xe),Me("pointermove",j,se),Me("pointerup",j,ge),Fe("pointercancel",j,ge),Fe("click",j,C,!0),Me("keydown",j,le),Me("pointerdown",fe,t=>t.stopPropagation()),x(a,j),Ne(G)}Ze(["pointerdown","pointermove","pointerup","keydown"]);const en="data-lightbox-gallery",ft="data-lightbox-opener",tn=`[${ft}], .markdown-content img`;function nn(a){return a.hasAttribute(ft)?!(a instanceof HTMLButtonElement&&a.disabled):a instanceof HTMLImageElement&&!a.closest("a")&&je(a.getAttribute("src")||"")}function rn(a,n){const o=a?.closest(`[${en}]`);if(!a||!o)return null;const u=Array.from(o.querySelectorAll(tn)).filter(nn),s=u.findIndex(v=>v===a||v.contains(a));return s<0?null:u[s+n]??null}var an=X('<img data-media-lightbox-content=""/>');function on(a,n){if(new.target)return Te({component:on,...a});Se(n,!0);const o=d=>{var B=ke(),Y=oe(B);{var q=g=>{Ke(ut(g,{get imageUrl(){return s()},get imageName(){return v()},triggerClass:"h-9 w-9 bg-white/0 hover:bg-white/20",contentClass:"z-[1003]",get open(){return e(f)},set open(i){k(f,i,!0)}}),i=>k(y,i,!0),()=>e(y))};te(Y,g=>{M()&&g(q)})}x(d,B)};let u=h(n,"open",15,!1),s=h(n,"imageUrl",7),v=h(n,"imageName",23,()=>m.ui_imageLightbox_image_alt()),b=h(n,"onClose",7),P=h(n,"openerElement",7,null),M=h(n,"showActionsMenu",7,!1),F=J(void 0),U=J(void 0),R=J(!1),y=J(void 0),f=J(!1);ye(()=>{u()||k(f,!1)});function A(d){D(d),!d.defaultPrevented&&(e(U)?.handleKeydown(d)||S(d))}function S(d){if(d.key!=="ArrowLeft"&&d.key!=="ArrowRight"||d.metaKey||d.ctrlKey||d.altKey||d.shiftKey||e(f)||d.target instanceof HTMLInputElement)return;const B=rn(P(),d.key==="ArrowLeft"?-1:1);B&&(d.preventDefault(),e(F)?.handOffTo(B))}function D(d){u()&&M()&&e(y)?.handleCopy(d)}function V(d){!M()||!je(s())||(d.preventDefault(),d.stopPropagation(),k(f,!0))}var N={get open(){return u()},set open(d=!1){u(d),_()},get imageUrl(){return s()},set imageUrl(d){s(d),_()},get imageName(){return v()},set imageName(d=m.ui_imageLightbox_image_alt()){v(d),_()},get onClose(){return b()},set onClose(d){b(d),_()},get openerElement(){return P()},set openerElement(d=null){P(d),_()},get showActionsMenu(){return M()},set showActionsMenu(d=!1){M(d),_()},$set:Ue,$on:(d,B)=>Re(n,d,B)};{let d=E(()=>m.ui_imageLightbox_preview_ariaLabel()),B=E(()=>m.ui_imageLightbox_close_ariaLabel());Ke(Ye(a,{get ariaLabel(){return e(d)},get closeLabel(){return e(B)},get onClose(){return b()},get openerElement(){return P()},get actions(){return o},onKeydown:A,onCopy:D,get open(){return u()},set open(Y){u(Y)},children:(Y,q)=>{var g=ke(),i=oe(g);wt(i,s,w=>{Ke(dt(w,{get pannable(){return e(R)},set pannable(l){k(R,l,!0)},children:(l,r)=>{var p=an();Q(()=>{Le(p,"src",s()),Le(p,"alt",v()),tt(p,1,`max-h-[90vh] max-w-[90vw] rounded-lg object-contain ${e(R)?"":"cursor-default"}`),Le(p,"draggable",!e(R))}),Me("contextmenu",p,V),x(l,p)},$$slots:{default:!0}}),l=>k(U,l,!0),()=>e(U))}),x(Y,g)},$$slots:{default:!0}}),Y=>k(F,Y,!0),()=>e(F))}return Ne(N)}Ze(["contextmenu"]);var ln=X('<div class="type-caption px-2 py-1 text-muted-foreground" data-testid="video-info-duration"> </div>'),sn=X('<div class="type-caption px-2 py-1 text-muted-foreground" data-testid="video-info-dimensions"> </div>'),cn=X('<div class="type-caption px-2 py-1 text-muted-foreground" data-testid="video-info-size"> </div>'),un=X("<!> <!> <!> <!>",1),dn=X("<!> <!> <!>",1),fn=X("<!> <!>",1);function mt(a,n){if(new.target)return Te({component:mt,...a});Se(n,!0);let o=h(n,"videoUrl",7),u=h(n,"videoName",7),s=h(n,"sourceKind",7),v=h(n,"mimeType",7),b=h(n,"open",15,!1),P=h(n,"triggerClass",7),M=h(n,"contentClass",7);const F=E(()=>Ve(o())),U=E(()=>qe(o())),R=E(()=>s()??(e(F)?"inline":e(U)?"workspace":"remote"));let y=J(null),f=J(null),A=J(null),S=null;function D(){if(S===o())return;const g=S=o();k(y,null),k(f,null),k(A,e(F)?ct(e(F).base64):null,!0);const i=document.createElement("video");i.preload="metadata",i.onloadedmetadata=()=>{S===g&&(Number.isFinite(i.duration)&&i.duration>0&&k(y,i.duration,!0),i.videoWidth>0&&i.videoHeight>0&&k(f,{width:i.videoWidth,height:i.videoHeight},!0))},i.src=o(),e(F)||fetch(o()).then(w=>w.ok?w.blob():null).then(w=>{w&&S===g&&k(A,w.size,!0)}).catch(()=>{})}function V(){const g=e(U)?.path.split("/").pop();if(g)return g;const i=(u()||"video").replace(/[/\\]/g,"_");if(/\.[A-Za-z0-9]+$/.test(i))return i;const w=(v()??e(F)?.mimeType)==="video/webm"?"webm":"mp4";return`${i}.${w}`}async function N(){let g=null;try{let i=o();if(!e(F)){const l=await fetch(o());if(!l.ok)throw new Error(`Video fetch failed: ${l.status}`);g=URL.createObjectURL(await l.blob()),i=g}const w=document.createElement("a");w.href=i,w.download=V(),document.body.appendChild(w),w.click(),w.remove(),g&&URL.revokeObjectURL(g)}catch{g&&URL.revokeObjectURL(g),we.error(m.ui_videoActionsMenu_downloadFailed_error())}}async function d(g,i){try{await He(g),we.success(i)}catch{we.error(m.ui_videoActionsMenu_copyFailed_error())}}ye(()=>{b()&&D()}),ye(()=>{if(b())return Xe(()=>{b(!1)})});var B={get videoUrl(){return o()},set videoUrl(g){o(g),_()},get videoName(){return u()},set videoName(g){u(g),_()},get sourceKind(){return s()},set sourceKind(g){s(g),_()},get mimeType(){return v()},set mimeType(g){v(g),_()},get open(){return b()},set open(g=!1){b(g),_()},get triggerClass(){return P()},set triggerClass(g){P(g),_()},get contentClass(){return M()},set contentClass(g){M(g),_()},$set:Ue,$on:(g,i)=>Re(n,g,i)},Y=ke(),q=oe(Y);return me(q,()=>it,(g,i)=>{i(g,{get open(){return b()},set open(w){b(w)},children:(w,l)=>{var r=fn(),p=oe(r);{let I=E(()=>et("flex h-7 w-7 items-center justify-center rounded-md bg-black/60 text-white","hover:bg-black/75",P())),z=E(()=>m.ui_videoActionsMenu_trigger_ariaLabel());me(p,()=>nt,(W,ne)=>{ne(W,{get class(){return e(I)},get"aria-label"(){return e(z)},onclick:re=>re.stopPropagation(),children:(re,ue)=>{at(re,{class:"size-3.5"})},$$slots:{default:!0}})})}var L=O(p,2);me(L,()=>rt,(I,z)=>{z(I,{get class(){return M()},align:"end",children:(W,ne)=>{var re=dn(),ue=oe(re);me(ue,()=>$e,($,G)=>{G($,{onSelect:()=>void N(),children:(j,de)=>{Ie();var _e=ze();Q(fe=>ie(_e,fe),[()=>m.ui_videoActionsMenu_download_label()]),x(j,_e)},$$slots:{default:!0}})});var le=O(ue,2);{var xe=$=>{var G=ke(),j=oe(G);me(j,()=>$e,(de,_e)=>{_e(de,{onSelect:()=>void d(e(U).path,m.ui_videoActionsMenu_pathCopied_label()),children:(fe,Pe)=>{Ie();var H=ze();Q(ee=>ie(H,ee),[()=>m.ui_videoActionsMenu_copyPath_label()]),x(fe,H)},$$slots:{default:!0}})}),x($,G)},se=$=>{var G=ke(),j=oe(G);me(j,()=>$e,(de,_e)=>{_e(de,{onSelect:()=>void d(o(),m.ui_videoActionsMenu_linkCopied_label()),children:(fe,Pe)=>{Ie();var H=ze();Q(ee=>ie(H,ee),[()=>m.ui_videoActionsMenu_copyLink_label()]),x(fe,H)},$$slots:{default:!0}})}),x($,G)};te(le,$=>{e(R)==="workspace"&&e(U)?$(xe):e(R)==="remote"&&$(se,1)})}var ge=O(le,2);{var C=$=>{var G=un(),j=oe(G);me(j,()=>ot,(K,Z)=>{Z(K,{})});var de=O(j,2);{var _e=K=>{var Z=ln(),ae=Ce(Z,!0);Q(ce=>ie(ae,ce),[()=>m.ui_videoActionsMenu_duration_label({duration:Ct(e(y)*1e3)})]),x(K,Z)};te(de,K=>{e(y)!==null&&K(_e)})}var fe=O(de,2);{var Pe=K=>{var Z=sn(),ae=Ce(Z,!0);Q(ce=>ie(ae,ce),[()=>m.ui_videoActionsMenu_dimensions_label({width:Be(e(f).width),height:Be(e(f).height)})]),x(K,Z)};te(fe,K=>{e(f)&&K(Pe)})}var H=O(fe,2);{var ee=K=>{var Z=cn(),ae=Ce(Z,!0);Q(ce=>ie(ae,ce),[()=>lt(e(A))]),x(K,Z)};te(H,K=>{e(A)!==null&&K(ee)})}x($,G)};te(ge,$=>{(e(y)!==null||e(f)||e(A)!==null)&&$(C)})}x(W,re)},$$slots:{default:!0}})}),x(w,r)},$$slots:{default:!0}})}),x(a,Y),Ne(B)}var mn=X('<p class="type-body text-white/80" role="status"> </p>'),gn=X('<div data-media-lightbox-content="" data-video-lightbox-root="" class="flex max-h-[90vh] max-w-[90vw] cursor-default flex-col items-center gap-3"><video controls="" preload="metadata" playsinline="" class="max-h-[85vh] max-w-[90vw] rounded-lg bg-black object-contain shadow-(--elevation-overlay)" data-testid="chat-video-player"> </video> <!></div>',2);function pn(a,n){if(new.target)return Te({component:pn,...a});Se(n,!0);const o=f=>{mt(f,{get videoUrl(){return s()},get videoName(){return v()},get sourceKind(){return P()},get mimeType(){return M()},triggerClass:"h-9 w-9 bg-white/0 hover:bg-white/20",contentClass:"z-[1003]"})};let u=h(n,"open",15,!1),s=h(n,"videoUrl",7),v=h(n,"videoName",23,()=>m.chat_videoBlock_fromAgent_label()),b=h(n,"poster",7),P=h(n,"sourceKind",7),M=h(n,"mimeType",7),F=h(n,"openerElement",7,null),U=h(n,"onClose",7),R=J(!1);ye(()=>{!u()||!s()||k(R,!1)});var y={get open(){return u()},set open(f=!1){u(f),_()},get videoUrl(){return s()},set videoUrl(f){s(f),_()},get videoName(){return v()},set videoName(f=m.chat_videoBlock_fromAgent_label()){v(f),_()},get poster(){return b()},set poster(f){b(f),_()},get sourceKind(){return P()},set sourceKind(f){P(f),_()},get mimeType(){return M()},set mimeType(f){M(f),_()},get openerElement(){return F()},set openerElement(f=null){F(f),_()},get onClose(){return U()},set onClose(f){U(f),_()},$set:Ue,$on:(f,A)=>Re(n,f,A)};{let f=E(()=>m.chat_videoBlock_dialog_title({name:v()})),A=E(()=>m.chat_videoBlock_close_ariaLabel());Ye(a,{get ariaLabel(){return e(f)},get closeLabel(){return e(A)},get openerElement(){return F()},get onClose(){return U()},get actions(){return o},get open(){return u()},set open(S){u(S)},children:(S,D)=>{var V=gn(),N=ve(V),d=Ce(N,!0),B=O(N,2);{var Y=q=>{var g=mn(),i=Ce(g,!0);Q(w=>ie(i,w),[()=>m.chat_videoBlock_unavailable_description()]),x(q,g)};te(B,q=>{e(R)&&q(Y)})}he(V),Q(q=>{Le(N,"src",s()),Le(N,"poster",b()),Le(N,"aria-label",v()),ie(d,q)},[()=>m.chat_videoBlock_unsupported_description()]),Fe("error",N,()=>k(R,!0)),x(S,V)},$$slots:{default:!0}})}return Ne(y)}var vn=X('<span class="block truncate text-foreground"> </span>'),hn=X("<!> ",1),_n=X("<!> <!>",1),bn=X('<span class="flex shrink-0 flex-wrap items-center gap-1"><!> <!></span>'),wn=X('<div class="type-caption flex w-fit min-w-0 max-w-full items-center gap-3 whitespace-normal py-1 text-muted-foreground" role="status" data-testid="media-unavailable"><span class="flex min-w-0 max-w-full flex-1 items-start gap-2"><span class="first-line-icon" aria-hidden="true"><!></span> <span class="min-w-0"><!> <span class="block break-words"> </span></span></span> <!></div>');function yn(a,n){if(new.target)return Te({component:yn,...a});Se(n,!0);let o=h(n,"name",7),u=h(n,"reason",7),s=h(n,"path",7),v=h(n,"workspaceId",7),b=h(n,"onRetry",7);const P=E(()=>u()==="missing"?m.ui_mediaUnavailable_missing_description():u()==="unsupported"?m.ui_mediaUnavailable_unsupported_description():u()==="other-workspace"?m.ui_mediaUnavailable_otherWorkspace_description():u()==="invalid-link"?m.ui_mediaUnavailable_invalidLink_description():m.ui_mediaUnavailable_loadFailed_description());function M(i){i.preventDefault(),i.stopPropagation()}function F(i){M(i),b()?.()}async function U(i){if(M(i),!!s())try{await He(s()),we.success(m.ui_imageActionsMenu_pathCopied_label())}catch{we.error(m.ui_imageActionsMenu_copyFailed_error())}}function R(i){if(M(i),!s()||!v())return;const w=s().split("/").map(encodeURIComponent).join("/");Ot(`intent://local/file/${w}`,{workspaceId:vt(v())})}var y={get name(){return o()},set name(i){o(i),_()},get reason(){return u()},set reason(i){u(i),_()},get path(){return s()},set path(i){s(i),_()},get workspaceId(){return v()},set workspaceId(i){v(i),_()},get onRetry(){return b()},set onRetry(i){b(i),_()},$set:Ue,$on:(i,w)=>Re(n,i,w)},f=wn(),A=ve(f),S=ve(A),D=ve(S);Ae(D,{get icon(){return Et},class:"size-3.5"}),he(S);var V=O(S,2),N=ve(V);{var d=i=>{var w=vn(),l=Ce(w,!0);We(w,(r,p)=>Ft?.(r,p),o),Q(()=>ie(l,o())),x(i,w)};te(N,i=>{o()&&i(d)})}var B=O(N,2),Y=Ce(B,!0);he(V),he(A);var q=O(A,2);{var g=i=>{var w=bn(),l=ve(w);{var r=I=>{{let z=E(()=>m.chat_shared_retry_label());Ee(I,{variant:"ghost",size:"icon-compact",get tooltip(){return e(z)},onclick:F,children:(W,ne)=>{Ae(W,{get icon(){return It},size:"xs"})},$$slots:{default:!0}})}};te(l,I=>{b()&&I(r)})}var p=O(l,2);{var L=I=>{var z=_n(),W=oe(z);{var ne=ue=>{Ee(ue,{variant:"ghost",size:"compact",onclick:R,children:(le,xe)=>{var se=hn(),ge=oe(se);Ae(ge,{get icon(){return $t},size:"xs"});var C=O(ge);Q($=>ie(C,` ${$??""}`),[()=>m.chat_changesPanel_openFile_tooltip()]),x(le,se)},$$slots:{default:!0}})};te(W,ue=>{v()&&u()!=="other-workspace"&&u()!=="invalid-link"&&ue(ne)})}var re=O(W,2);{let ue=E(()=>m.ui_imageActionsMenu_copyPath_label());Ee(re,{variant:"ghost",size:"icon-compact",get tooltip(){return e(ue)},onclick:U,children:(le,xe)=>{Ae(le,{get icon(){return zt},size:"xs"})},$$slots:{default:!0}})}x(I,z)};te(p,I=>{s()&&I(L)})}he(w),x(i,w)};te(q,i=>{(b()||s())&&i(g)})}return he(f),Q(()=>{Le(f,"data-reason",u()),ie(Y,e(P))}),x(a,f),Ne(y)}export{ut as I,Ye as M,mt as V,dt as Z,on as a,yn as b,pn as c,ct as d,Wt as e,je as f,Ht as m,qe as p,Gn as r,Jn as s};
|
|
1
|
+
import{$ as gt}from"./BJbm_MWC.js";import{nY as pt,br as vt}from"./D5wnbxHp.js";import{g as ht}from"./CMiilI_P.js";import{t as Te,bo as h,bw as Ue,b as Re,bm as m,br as _t}from"./YLhFQnIu.js";import{ai as Ze,bs as Se,cb as bt,ca as ye,aD as e,a7 as ke,ay as oe,W as x,bn as Ne,bV as J,aA as _,a5 as ve,bS as O,bH as k,bA as he,b_ as Q,aj as Me,aw as Fe,bl as Ce,bO as ie,aB as X,c9 as E,be as Ie,b$ as ze,br as Qe}from"./3SdAC2_C.js";import{i as te}from"./YeOAvjnW.js";import{k as wt}from"./CBbdbU2x.js";import{s as Le,e as et,f as tt,g as yt}from"./BQhBnAuP.js";import{b as Ke}from"./Dn334wJv.js";import{c as me}from"./DwGyIIXK.js";import{q as Xe,l as nt,d as rt,e as $e,K as at,h as ot,M as it}from"./ItBm4ElA.js";import{a as xt}from"./CC7to1B5.js";import{m as we}from"./CZB2ndi9.js";import{f as Ee}from"./Cw2fqKk9.js";import"./DJivXy66.js";import{l as Be,f as lt,m as kt,a as Ct}from"./DIEHuZ8f.js";import"./ChTqQfQN.js";import"./D48_y-cl.js";import"./CIWQMI37.js";import{bK as He}from"./D-aEx3GL.js";import{t as De}from"./CrpUtGFn.js";import{F as Ae,d3 as Lt,bW as Pt,bX as Mt,cq as At,bF as Et,cr as It,aZ as zt,a8 as $t}from"./gwv5JQYH.js";import{S as Tt}from"./DtkIwON_.js";import{n as Ut,g as Rt}from"./FLpsgWeB.js";import{e as We}from"./oBIu7LTI.js";import{i as St,f as Nt}from"./DkERMj5B.js";import{P as Kt}from"./CmhKJ6Ie.js";import{h as Ot}from"./BK0IkwFP.js";import{t as Ft}from"./DAsc1V4f.js";function Bt(a,n){return a?.isExternalLink===!0&&typeof a.workspaceId=="string"&&a.workspaceId?a.workspaceId:n||void 0}function Ht(a,n,o){const u=a.label||a.id||"mention";if(a.type==="member")return gt(u);if(a.type==="note"&&a.id&&o){const s=Bt(a.meta,n),v=s?o(s,a.id)?.trim():void 0;if(v)return v}return u}function Gn(a,n,o){if(typeof document>"u"||!a.includes('data-type="note"'))return a;const u=document.createElement("template");u.innerHTML=a;let s=!1;for(const v of u.content.querySelectorAll('[data-mention][data-type="note"]')){let b=null;try{b=JSON.parse(v.getAttribute("data-meta")||"{}")}catch{b=null}const P=v.textContent??"",M=Ht({type:"note",id:v.getAttribute("data-id"),label:P,meta:b},n,o);M!==P&&(v.textContent=M,s=!0)}return s?u.innerHTML:a}const Jn=(a,n)=>{let o;try{o=ht().state}catch{return}const u=o?.workspaceNotes?.byWorkspaceId?.[a]?.notes;return u?pt(u,n)?.title:void 0};let Oe=null;var jt=X('<p class="mt-2 max-w-[90vw] rounded-md bg-black/60 px-3 py-1.5 text-center text-sm text-white"> </p>'),Dt=X('<div data-media-lightbox-root="" data-image-lightbox-root="" class="fixed inset-0 z-[1000] flex cursor-zoom-out flex-col items-center justify-center bg-black/80 p-4 backdrop-blur-sm" style="pointer-events: auto;" role="dialog" aria-modal="true" tabindex="-1"><div class="absolute right-4 top-4 z-[1002] flex items-center gap-1"><!> <!></div> <div class="flex min-h-0 w-full flex-1 items-center justify-center"><!></div> <!></div>');function Ye(a,n){if(new.target)return Te({component:Ye,...a});Se(n,!0);let o=h(n,"open",15,!1),u=h(n,"ariaLabel",7),s=h(n,"closeLabel",7),v=h(n,"onClose",7),b=h(n,"openerElement",7,null),P=h(n,"children",7),M=h(n,"actions",7),F=h(n,"caption",7),U=h(n,"onKeydown",7),R=h(n,"onCopy",7);const y=St(),f=Nt(()=>N());let A=J(null),S=J(null);const D=Symbol("media-lightbox");let V=!1;function N({handoff:r=!1}={}){o()&&(V=r,Oe?.source===D&&(Oe=null),o(!1),v()?.(),!r&&b()?.isConnected&&b().focus({preventScroll:!0}))}function d(r){Oe={source:D,close:()=>N({handoff:!0})},r.scrollIntoView({block:"nearest"}),r.click()}function B(r,p,L){return V?{duration:0}:Rt(r,{tier:"moderate"},L)}bt(()=>{if(!o())return;const r=Oe;V=r!==null&&r.source!==D,V&&r&&(Oe=null,r.close())});function Y(r){(r.target instanceof Element?r.target:null)?.closest('[data-media-lightbox-content], [role="toolbar"], button, input')||N()}function q(r){if(U()?.(r),r.defaultPrevented||r.key!=="Tab"||!e(A))return;const p=Array.from(e(A).querySelectorAll('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])')),L=p[0],I=p[p.length-1];!L||!I||(r.shiftKey&&document.activeElement===L?(r.preventDefault(),I.focus()):!r.shiftKey&&document.activeElement===I&&(r.preventDefault(),L.focus()))}ye(()=>{if(o())return Xe(()=>N())}),ye(()=>{!o()||!e(S)||requestAnimationFrame(()=>e(S)?.focus())});var g={handOffTo:d,get open(){return o()},set open(r=!1){o(r),_()},get ariaLabel(){return u()},set ariaLabel(r){u(r),_()},get closeLabel(){return s()},set closeLabel(r){s(r),_()},get onClose(){return v()},set onClose(r){v(r),_()},get openerElement(){return b()},set openerElement(r=null){b(r),_()},get children(){return P()},set children(r){P(r),_()},get actions(){return M()},set actions(r){M(r),_()},get caption(){return F()},set caption(r){F(r),_()},get onKeydown(){return U()},set onKeydown(r){U(r),_()},get onCopy(){return R()},set onCopy(r){R(r),_()},$set:Ue,$on:(r,p)=>Re(n,r,p)},i=ke(),w=oe(i);{var l=r=>{{let p=E(()=>y?.target()??"body");Kt(r,{get target(){return e(p)},zIndex:1e3,children:(L,I)=>{var z=Dt(),W=ve(z),ne=ve(W);{var re=C=>{var $=ke(),G=oe($);De(G,M),x(C,$)};te(ne,C=>{M()&&C(re)})}var ue=O(ne,2);Ee(ue,{variant:"ghost",size:"icon",class:"text-white hover:bg-white/20 hover:text-white",onclick:()=>N(),get"aria-label"(){return s()},get ref(){return e(S)},set ref(C){k(S,C,!0)},children:(C,$)=>{Ae(C,{get icon(){return Lt},size:"lg"})},$$slots:{default:!0}}),he(W),We(W,C=>f?.(C));var le=O(W,2),xe=ve(le);De(xe,P),he(le),We(le,C=>f?.(C));var se=O(le,2);{var ge=C=>{var $=jt(),G=Ce($,!0);Q(()=>ie(G,F())),x(C,$)};te(se,C=>{F()&&C(ge)})}he(z),Ke(z,C=>k(A,C),()=>e(A)),Q(()=>Le(z,"aria-label",u())),Me("click",z,Y),Me("keydown",z,q),Fe("copy",z,function(...C){R()?.apply(this,C)}),Ut(3,z,()=>B),x(L,z)},$$slots:{default:!0}})}};te(w,r=>{o()&&r(l)})}return x(a,i),Ne(g)}Ze(["click","keydown"]);function qe(a){if(!a.startsWith("workspace-file://"))return null;const o=a.slice(17).split(/[?#]/)[0].split("/"),u=o[0],s=o.slice(1);if(!u||s.length===0)return null;const v=[];for(const b of s){if(!b)return null;try{v.push(decodeURIComponent(b))}catch{return null}}return{workspaceId:u,path:v.join("/")}}function st(a){try{return new URL(a).protocol==="https:"}catch{return!1}}function Ve(a){const n=/^data:([^;,]+);base64,(.*)$/s.exec(a);return n?{mimeType:n[1],base64:n[2]}:null}function je(a){return st(a)||qe(a)!==null||/^workspace-asset:\/\/[^/?#]+/.test(a)||/^data:image\/[a-z0-9.+-]+(?:;[^,]*)?,/i.test(a)}function ct(a){if(a.length===0)return 0;let n=0;return a.endsWith("==")?n=2:a.endsWith("=")&&(n=1),Math.floor(a.length*3/4)-n}function Wt(a,n){const o=atob(a),u=new Uint8Array(o.length);for(let s=0;s<o.length;s++)u[s]=o.charCodeAt(s);return new Blob([u],{type:n})}const Vt={"image/png":"png","image/jpeg":"jpg","image/gif":"gif","image/webp":"webp","image/svg+xml":"svg","image/avif":"avif","image/bmp":"bmp"};function Zt(a){if(a.workspacePath){const s=a.workspacePath.split("/").pop();if(s)return s}const n=(a.imageName||"image").replace(/[/\\]/g,"_");if(/\.[A-Za-z0-9]+$/.test(n))return n;const o=a.mimeType?.split(";")[0].trim().toLowerCase(),u=o&&Vt[o]||"png";return`${n}.${u}`}var Xt=X('<div class="type-caption px-2 py-1 text-muted-foreground" data-testid="image-info-dimensions"> </div>'),Yt=X('<div class="type-caption px-2 py-1 text-muted-foreground" data-testid="image-info-size"> </div>'),qt=X("<!> <!> <!>",1),Gt=X("<!> <!> <!> <!>",1),Jt=X("<!> <!>",1);function ut(a,n){if(new.target)return Te({component:ut,...a});Se(n,!0);let o=h(n,"imageUrl",7),u=h(n,"imageName",7),s=h(n,"open",15,!1),v=h(n,"triggerClass",7),b=h(n,"contentClass",7);const P=E(()=>Ve(o())),M=E(()=>qe(o())),F=E(()=>st(o()));let U=J(null),R=J(null),y=null;function f(){if(y===o())return;const l=y=o();k(U,null),k(R,e(P)?ct(e(P).base64):null,!0);const r=new Image;r.onload=()=>{y===l&&k(U,{width:r.naturalWidth,height:r.naturalHeight},!0)},r.src=o(),e(P)||fetch(o()).then(p=>p.ok?p.blob():null).then(p=>{p&&y===l&&k(R,p.size,!0)}).catch(()=>{})}ye(()=>{s()&&f()}),ye(()=>{if(s())return Xe(()=>{s(!1)})});async function A(l=o()){const r=Ve(l);if(r)return Wt(r.base64,r.mimeType);const p=await fetch(l);if(!p.ok)throw new Error(`Image fetch failed: ${p.status}`);return await p.blob()}async function S(){let l=null;try{let r=o(),p=e(P)?.mimeType;if(!e(P)){const I=await A();p=I.type,l=URL.createObjectURL(I),r=l}const L=document.createElement("a");L.href=r,L.download=Zt({workspacePath:e(M)?.path,imageName:u(),mimeType:p}),document.body.appendChild(L);try{L.click()}finally{L.remove()}}catch{we.error(m.ui_imageActionsMenu_downloadFailed_error())}finally{l&&URL.revokeObjectURL(l)}}async function D(){if(e(M))try{await He(e(M).path),we.success(m.ui_imageActionsMenu_pathCopied_label())}catch{we.error(m.ui_imageActionsMenu_copyFailed_error())}}async function V(){if(e(F))try{await He(o()),we.success(m.ui_imageActionsMenu_linkCopied_label())}catch{we.error(m.ui_imageActionsMenu_copyFailed_error())}}async function N(l){let r,p;try{let L;if(l.type.split(";")[0].trim()==="image/svg+xml"){p=URL.createObjectURL(l);const W=new Image;W.src=p,await W.decode(),L=W}else L=r=await createImageBitmap(l);const I=document.createElement("canvas");I.width=L instanceof HTMLImageElement?L.naturalWidth:L.width,I.height=L instanceof HTMLImageElement?L.naturalHeight:L.height;const z=I.getContext("2d");if(!z)throw new Error("2d canvas context unavailable");return z.drawImage(L,0,0),await new Promise((W,ne)=>{I.toBlob(re=>re?W(re):ne(new Error("canvas toBlob failed")),"image/png")})}finally{r?.close(),p&&URL.revokeObjectURL(p)}}async function d(l=o()){try{let r=await A(l);r.type!=="image/png"&&(r=await N(r)),await navigator.clipboard.write([new ClipboardItem({"image/png":r})]),we.success(m.ui_imageActionsMenu_imageCopied_label())}catch{we.error(m.ui_imageActionsMenu_copyFailed_error())}}function B(l,r=o()){return l.defaultPrevented||!je(r)||l instanceof KeyboardEvent&&(l.key.toLowerCase()!=="c"||!(l.metaKey||l.ctrlKey)||l.altKey||l.shiftKey||l.isComposing)||xt(l.target)||document.getSelection()?.toString()?!1:(l.preventDefault(),l.stopPropagation(),l instanceof KeyboardEvent&&l.repeat||(d(r),s(!1)),!0)}var Y={handleCopy:B,get imageUrl(){return o()},set imageUrl(l){o(l),_()},get imageName(){return u()},set imageName(l){u(l),_()},get open(){return s()},set open(l=!1){s(l),_()},get triggerClass(){return v()},set triggerClass(l){v(l),_()},get contentClass(){return b()},set contentClass(l){b(l),_()},$set:Ue,$on:(l,r)=>Re(n,l,r)},q=ke(),g=oe(q);{var i=l=>{var r=ke(),p=oe(r);me(p,()=>it,(L,I)=>{I(L,{get open(){return s()},set open(z){s(z)},children:(z,W)=>{var ne=Jt(),re=oe(ne);{const le=(se,ge)=>{let C=()=>(ge?.()).props;{let $=E(()=>m.ui_imageActionsMenu_trigger_ariaLabel());Ee(se,_t(C,{variant:"plain",size:"icon-sm",wrapContent:!1,get active(){return s()},get"aria-label"(){return e($)},children:(G,j)=>{at(G,{class:"size-3.5"})},$$slots:{default:!0}}))}};let xe=E(()=>et("flex h-7 w-7 items-center justify-center rounded-md bg-black/60 text-white","hover:bg-black/75",v()));me(re,()=>nt,(se,ge)=>{ge(se,{get class(){return e(xe)},onclick:C=>C.stopPropagation(),onkeydown:C=>B(C),oncopy:C=>B(C),child:le,$$slots:{child:!0}})})}var ue=O(re,2);me(ue,()=>rt,(le,xe)=>{xe(le,{get class(){return b()},align:"end",onkeydown:se=>B(se),oncopy:se=>B(se),children:(se,ge)=>{var C=Gt(),$=oe(C);me($,()=>$e,(H,ee)=>{ee(H,{onSelect:()=>void S(),children:(K,Z)=>{Ie();var ae=ze();Q(ce=>ie(ae,ce),[()=>m.ui_imageActionsMenu_download_label()]),x(K,ae)},$$slots:{default:!0}})});var G=O($,2);me(G,()=>$e,(H,ee)=>{ee(H,{onSelect:()=>void d(),children:(K,Z)=>{Ie();var ae=ze();Q(ce=>ie(ae,ce),[()=>m.ui_imageActionsMenu_copyImage_label()]),x(K,ae)},$$slots:{default:!0}})});var j=O(G,2);{var de=H=>{var ee=ke(),K=oe(ee);me(K,()=>$e,(Z,ae)=>{ae(Z,{onSelect:()=>void D(),children:(ce,t)=>{Ie();var c=ze();Q(T=>ie(c,T),[()=>m.ui_imageActionsMenu_copyPath_label()]),x(ce,c)},$$slots:{default:!0}})}),x(H,ee)},_e=H=>{var ee=ke(),K=oe(ee);me(K,()=>$e,(Z,ae)=>{ae(Z,{onSelect:()=>void V(),children:(ce,t)=>{Ie();var c=ze();Q(T=>ie(c,T),[()=>m.ui_imageActionsMenu_copyLink_label()]),x(ce,c)},$$slots:{default:!0}})}),x(H,ee)};te(j,H=>{e(M)?H(de):e(F)&&H(_e,1)})}var fe=O(j,2);{var Pe=H=>{var ee=qt(),K=oe(ee);me(K,()=>ot,(c,T)=>{T(c,{})});var Z=O(K,2);{var ae=c=>{var T=Xt(),pe=Ce(T,!0);Q(be=>ie(pe,be),[()=>m.ui_imageActionsMenu_dimensions_label({width:Be(e(U).width),height:Be(e(U).height)})]),x(c,T)};te(Z,c=>{e(U)&&c(ae)})}var ce=O(Z,2);{var t=c=>{var T=Yt(),pe=Ce(T,!0);Q(be=>ie(pe,be),[()=>lt(e(R))]),x(c,T)};te(ce,c=>{e(R)!==null&&c(t)})}x(H,ee)};te(fe,H=>{(e(U)||e(R)!==null)&&H(Pe)})}x(se,C)},$$slots:{default:!0}})}),x(z,ne)},$$slots:{default:!0}})}),x(l,r)},w=E(()=>je(o()));te(g,l=>{e(w)&&l(i)})}return x(a,q),Ne(Y)}var Qt=X('<div role="application" tabindex="0" data-testid="zoom-pan-viewport"><div class="flex h-full w-full items-center justify-center will-change-transform" data-testid="zoom-pan-content"><!></div> <div class="absolute bottom-4 left-1/2 z-10 flex -translate-x-1/2 cursor-default items-center gap-2 rounded-full bg-black/60 px-3 py-1.5 backdrop-blur-sm" role="toolbar" tabindex="-1" data-testid="zoom-pan-controls"><!> <div class="w-36"><!></div> <!> <span class="min-w-12 text-center text-xs tabular-nums text-white/90" data-testid="zoom-pan-percent"> </span> <!></div></div>');function dt(a,n){if(new.target)return Te({component:dt,...a});Se(n,!0);let o=h(n,"children",7),u=h(n,"minZoom",7,.25),s=h(n,"maxZoom",7,8),v=h(n,"onScaleChange",7),b=h(n,"pannable",15,!1);const P=1.25,M=.0015,F=.01,U=4,R=.5;let y=J(1),f=J(0),A=J(0),S=J(!1),D=J(null),V=J(null),N=J(Qe({width:0,height:0})),d=J(Qe({width:0,height:0}));const B=E(()=>e(d).width*e(y)>e(N).width+R),Y=E(()=>e(d).height*e(y)>e(N).height+R);ye(()=>{v()?.(e(y))}),ye(()=>{b(e(B)||e(Y))});function q(){e(D)&&k(N,{width:e(D).clientWidth,height:e(D).clientHeight},!0);const t=e(V)?.firstElementChild;if(t instanceof HTMLElement)k(d,{width:t.offsetWidth,height:t.offsetHeight},!0);else if(t){const c=t.getBoundingClientRect();k(d,{width:c.width/e(y),height:c.height/e(y)},!0)}}function g(t,c,T){const pe=c*(1-e(y))/2,be=T*e(y)-c;return be<=R?pe:Math.min(pe+be/2,Math.max(pe-be/2,t))}function i(){k(f,g(e(f),e(N).width,e(d).width),!0),k(A,g(e(A),e(N).height,e(d).height),!0)}ye(()=>{const t=e(D),c=e(V);if(!t||!c||typeof ResizeObserver>"u")return;const T=new ResizeObserver(()=>{q(),i()});return T.observe(t),c.firstElementChild&&T.observe(c.firstElementChild),()=>T.disconnect()});let w=null,l=0,r=0,p=0,L=!1;const I=E(()=>kt(e(y),{style:"percent",maximumFractionDigits:0}));function z(t){return Math.min(s(),Math.max(u(),t))}function W(t,c,T){const pe=z(T),be=e(D)?.getBoundingClientRect(),Ge=be?t-be.left:0,Je=be?c-be.top:0;q(),k(f,Ge-(Ge-e(f))/e(y)*pe),k(A,Je-(Je-e(A))/e(y)*pe),k(y,pe,!0),i()}function ne(t){const c=e(D)?.getBoundingClientRect();c?W(c.left+c.width/2,c.top+c.height/2,t):(k(y,z(t),!0),i())}function re(){k(y,1),k(f,0),k(A,0)}function ue(t){t.preventDefault();const c=t.ctrlKey?F:M;W(t.clientX,t.clientY,e(y)*Math.exp(-t.deltaY*c))}ye(()=>{const t=e(D);if(t)return t.addEventListener("wheel",ue,{passive:!1}),()=>t.removeEventListener("wheel",ue)});function le(t){if(t.metaKey||t.ctrlKey||t.altKey)return!1;if(t.key==="+"||t.key==="=")ne(e(y)*P);else if(t.key==="-")ne(e(y)/P);else if(t.key==="0")re();else return!1;return t.preventDefault(),!0}function xe(t){if(t.button>0||(q(),!e(B)&&!e(Y)))return;t.preventDefault(),k(S,!0),w=t.pointerId,l=t.clientX,r=t.clientY,p=0;const c=t.currentTarget;typeof c.setPointerCapture=="function"&&c.setPointerCapture(t.pointerId)}function se(t){if(!e(S)||t.pointerId!==w)return;const c=t.clientX-l,T=t.clientY-r;p+=Math.abs(c)+Math.abs(T),k(f,e(f)+c),k(A,e(A)+T),i(),l=t.clientX,r=t.clientY}function ge(t){if(!e(S)||t.pointerId!==w)return;k(S,!1),w=null,p>U&&(L=!0);const c=t.currentTarget;typeof c.hasPointerCapture=="function"&&typeof c.releasePointerCapture=="function"&&c.hasPointerCapture(t.pointerId)&&c.releasePointerCapture(t.pointerId)}function C(t){L&&(L=!1,t.preventDefault(),t.stopPropagation())}function $(t){const c=Number.parseFloat(t.currentTarget.value);Number.isFinite(c)&&ne(c)}var G={handleKeydown:le,get children(){return o()},set children(t){o(t),_()},get minZoom(){return u()},set minZoom(t=.25){u(t),_()},get maxZoom(){return s()},set maxZoom(t=8){s(t),_()},get onScaleChange(){return v()},set onScaleChange(t){v(t),_()},get pannable(){return b()},set pannable(t=!1){b(t),_()},$set:Ue,$on:(t,c)=>Re(n,t,c)},j=Qt(),de=ve(j),_e=ve(de);De(_e,o),he(de),Ke(de,t=>k(V,t),()=>e(V));var fe=O(de,2),Pe=ve(fe);{let t=E(()=>m.ui_zoomPanViewport_zoomOut_ariaLabel()),c=E(()=>m.ui_zoomPanViewport_zoomOut_ariaLabel());Ee(Pe,{variant:"ghost",size:"icon-sm",class:"text-white hover:bg-white/20 hover:text-white",onclick:()=>ne(e(y)/P),get"aria-label"(){return e(t)},get title(){return e(c)},children:(T,pe)=>{Ae(T,{get icon(){return Pt}})},$$slots:{default:!0}})}var H=O(Pe,2),ee=ve(H);{let t=E(()=>m.ui_zoomPanViewport_zoomSlider_ariaLabel()),c=E(()=>m.ui_zoomPanViewport_zoomSlider_ariaLabel());Tt(ee,{class:"accent-white",get min(){return u()},get max(){return s()},step:"0.01",get value(){return e(y)},oninput:$,get"aria-label"(){return e(t)},get title(){return e(c)},"data-testid":"zoom-pan-slider"})}he(H);var K=O(H,2);{let t=E(()=>m.ui_zoomPanViewport_zoomIn_ariaLabel()),c=E(()=>m.ui_zoomPanViewport_zoomIn_ariaLabel());Ee(K,{variant:"ghost",size:"icon-sm",class:"text-white hover:bg-white/20 hover:text-white",onclick:()=>ne(e(y)*P),get"aria-label"(){return e(t)},get title(){return e(c)},children:(T,pe)=>{Ae(T,{get icon(){return Mt}})},$$slots:{default:!0}})}var Z=O(K,2),ae=Ce(Z,!0),ce=O(Z,2);{let t=E(()=>m.ui_zoomPanViewport_resetZoom_ariaLabel()),c=E(()=>m.ui_zoomPanViewport_resetZoom_ariaLabel());Ee(ce,{variant:"ghost",size:"icon-sm",class:"text-white hover:bg-white/20 hover:text-white",onclick:re,get"aria-label"(){return e(t)},get title(){return e(c)},children:(T,pe)=>{Ae(T,{get icon(){return At}})},$$slots:{default:!0}})}return he(fe),he(j),Ke(j,t=>k(D,t),()=>e(D)),Q((t,c)=>{tt(j,1,`relative h-full w-full touch-none select-none overflow-hidden ${e(S)?"cursor-grabbing":b()?"cursor-grab":""}`),Le(j,"aria-label",t),yt(de,`transform: translate(${e(f)??""}px, ${e(A)??""}px) scale(${e(y)??""}); transform-origin: 0 0;`),Le(fe,"aria-label",c),ie(ae,e(I))},[()=>m.ui_zoomPanViewport_viewport_ariaLabel(),()=>m.ui_zoomPanViewport_controls_ariaLabel()]),Me("pointerdown",j,xe),Me("pointermove",j,se),Me("pointerup",j,ge),Fe("pointercancel",j,ge),Fe("click",j,C,!0),Me("keydown",j,le),Me("pointerdown",fe,t=>t.stopPropagation()),x(a,j),Ne(G)}Ze(["pointerdown","pointermove","pointerup","keydown"]);const en="data-lightbox-gallery",ft="data-lightbox-opener",tn=`[${ft}], .markdown-content img`;function nn(a){return a.hasAttribute(ft)?!(a instanceof HTMLButtonElement&&a.disabled):a instanceof HTMLImageElement&&!a.closest("a")&&je(a.getAttribute("src")||"")}function rn(a,n){const o=a?.closest(`[${en}]`);if(!a||!o)return null;const u=Array.from(o.querySelectorAll(tn)).filter(nn),s=u.findIndex(v=>v===a||v.contains(a));return s<0?null:u[s+n]??null}var an=X('<img data-media-lightbox-content=""/>');function on(a,n){if(new.target)return Te({component:on,...a});Se(n,!0);const o=d=>{var B=ke(),Y=oe(B);{var q=g=>{Ke(ut(g,{get imageUrl(){return s()},get imageName(){return v()},triggerClass:"h-9 w-9 bg-white/0 hover:bg-white/20",contentClass:"z-[1003]",get open(){return e(f)},set open(i){k(f,i,!0)}}),i=>k(y,i,!0),()=>e(y))};te(Y,g=>{M()&&g(q)})}x(d,B)};let u=h(n,"open",15,!1),s=h(n,"imageUrl",7),v=h(n,"imageName",23,()=>m.ui_imageLightbox_image_alt()),b=h(n,"onClose",7),P=h(n,"openerElement",7,null),M=h(n,"showActionsMenu",7,!1),F=J(void 0),U=J(void 0),R=J(!1),y=J(void 0),f=J(!1);ye(()=>{u()||k(f,!1)});function A(d){D(d),!d.defaultPrevented&&(e(U)?.handleKeydown(d)||S(d))}function S(d){if(d.key!=="ArrowLeft"&&d.key!=="ArrowRight"||d.metaKey||d.ctrlKey||d.altKey||d.shiftKey||e(f)||d.target instanceof HTMLInputElement)return;const B=rn(P(),d.key==="ArrowLeft"?-1:1);B&&(d.preventDefault(),e(F)?.handOffTo(B))}function D(d){u()&&M()&&e(y)?.handleCopy(d)}function V(d){!M()||!je(s())||(d.preventDefault(),d.stopPropagation(),k(f,!0))}var N={get open(){return u()},set open(d=!1){u(d),_()},get imageUrl(){return s()},set imageUrl(d){s(d),_()},get imageName(){return v()},set imageName(d=m.ui_imageLightbox_image_alt()){v(d),_()},get onClose(){return b()},set onClose(d){b(d),_()},get openerElement(){return P()},set openerElement(d=null){P(d),_()},get showActionsMenu(){return M()},set showActionsMenu(d=!1){M(d),_()},$set:Ue,$on:(d,B)=>Re(n,d,B)};{let d=E(()=>m.ui_imageLightbox_preview_ariaLabel()),B=E(()=>m.ui_imageLightbox_close_ariaLabel());Ke(Ye(a,{get ariaLabel(){return e(d)},get closeLabel(){return e(B)},get onClose(){return b()},get openerElement(){return P()},get actions(){return o},onKeydown:A,onCopy:D,get open(){return u()},set open(Y){u(Y)},children:(Y,q)=>{var g=ke(),i=oe(g);wt(i,s,w=>{Ke(dt(w,{get pannable(){return e(R)},set pannable(l){k(R,l,!0)},children:(l,r)=>{var p=an();Q(()=>{Le(p,"src",s()),Le(p,"alt",v()),tt(p,1,`max-h-[90vh] max-w-[90vw] rounded-lg object-contain ${e(R)?"":"cursor-default"}`),Le(p,"draggable",!e(R))}),Me("contextmenu",p,V),x(l,p)},$$slots:{default:!0}}),l=>k(U,l,!0),()=>e(U))}),x(Y,g)},$$slots:{default:!0}}),Y=>k(F,Y,!0),()=>e(F))}return Ne(N)}Ze(["contextmenu"]);var ln=X('<div class="type-caption px-2 py-1 text-muted-foreground" data-testid="video-info-duration"> </div>'),sn=X('<div class="type-caption px-2 py-1 text-muted-foreground" data-testid="video-info-dimensions"> </div>'),cn=X('<div class="type-caption px-2 py-1 text-muted-foreground" data-testid="video-info-size"> </div>'),un=X("<!> <!> <!> <!>",1),dn=X("<!> <!> <!>",1),fn=X("<!> <!>",1);function mt(a,n){if(new.target)return Te({component:mt,...a});Se(n,!0);let o=h(n,"videoUrl",7),u=h(n,"videoName",7),s=h(n,"sourceKind",7),v=h(n,"mimeType",7),b=h(n,"open",15,!1),P=h(n,"triggerClass",7),M=h(n,"contentClass",7);const F=E(()=>Ve(o())),U=E(()=>qe(o())),R=E(()=>s()??(e(F)?"inline":e(U)?"workspace":"remote"));let y=J(null),f=J(null),A=J(null),S=null;function D(){if(S===o())return;const g=S=o();k(y,null),k(f,null),k(A,e(F)?ct(e(F).base64):null,!0);const i=document.createElement("video");i.preload="metadata",i.onloadedmetadata=()=>{S===g&&(Number.isFinite(i.duration)&&i.duration>0&&k(y,i.duration,!0),i.videoWidth>0&&i.videoHeight>0&&k(f,{width:i.videoWidth,height:i.videoHeight},!0))},i.src=o(),e(F)||fetch(o()).then(w=>w.ok?w.blob():null).then(w=>{w&&S===g&&k(A,w.size,!0)}).catch(()=>{})}function V(){const g=e(U)?.path.split("/").pop();if(g)return g;const i=(u()||"video").replace(/[/\\]/g,"_");if(/\.[A-Za-z0-9]+$/.test(i))return i;const w=(v()??e(F)?.mimeType)==="video/webm"?"webm":"mp4";return`${i}.${w}`}async function N(){let g=null;try{let i=o();if(!e(F)){const l=await fetch(o());if(!l.ok)throw new Error(`Video fetch failed: ${l.status}`);g=URL.createObjectURL(await l.blob()),i=g}const w=document.createElement("a");w.href=i,w.download=V(),document.body.appendChild(w),w.click(),w.remove(),g&&URL.revokeObjectURL(g)}catch{g&&URL.revokeObjectURL(g),we.error(m.ui_videoActionsMenu_downloadFailed_error())}}async function d(g,i){try{await He(g),we.success(i)}catch{we.error(m.ui_videoActionsMenu_copyFailed_error())}}ye(()=>{b()&&D()}),ye(()=>{if(b())return Xe(()=>{b(!1)})});var B={get videoUrl(){return o()},set videoUrl(g){o(g),_()},get videoName(){return u()},set videoName(g){u(g),_()},get sourceKind(){return s()},set sourceKind(g){s(g),_()},get mimeType(){return v()},set mimeType(g){v(g),_()},get open(){return b()},set open(g=!1){b(g),_()},get triggerClass(){return P()},set triggerClass(g){P(g),_()},get contentClass(){return M()},set contentClass(g){M(g),_()},$set:Ue,$on:(g,i)=>Re(n,g,i)},Y=ke(),q=oe(Y);return me(q,()=>it,(g,i)=>{i(g,{get open(){return b()},set open(w){b(w)},children:(w,l)=>{var r=fn(),p=oe(r);{let I=E(()=>et("flex h-7 w-7 items-center justify-center rounded-md bg-black/60 text-white","hover:bg-black/75",P())),z=E(()=>m.ui_videoActionsMenu_trigger_ariaLabel());me(p,()=>nt,(W,ne)=>{ne(W,{get class(){return e(I)},get"aria-label"(){return e(z)},onclick:re=>re.stopPropagation(),children:(re,ue)=>{at(re,{class:"size-3.5"})},$$slots:{default:!0}})})}var L=O(p,2);me(L,()=>rt,(I,z)=>{z(I,{get class(){return M()},align:"end",children:(W,ne)=>{var re=dn(),ue=oe(re);me(ue,()=>$e,($,G)=>{G($,{onSelect:()=>void N(),children:(j,de)=>{Ie();var _e=ze();Q(fe=>ie(_e,fe),[()=>m.ui_videoActionsMenu_download_label()]),x(j,_e)},$$slots:{default:!0}})});var le=O(ue,2);{var xe=$=>{var G=ke(),j=oe(G);me(j,()=>$e,(de,_e)=>{_e(de,{onSelect:()=>void d(e(U).path,m.ui_videoActionsMenu_pathCopied_label()),children:(fe,Pe)=>{Ie();var H=ze();Q(ee=>ie(H,ee),[()=>m.ui_videoActionsMenu_copyPath_label()]),x(fe,H)},$$slots:{default:!0}})}),x($,G)},se=$=>{var G=ke(),j=oe(G);me(j,()=>$e,(de,_e)=>{_e(de,{onSelect:()=>void d(o(),m.ui_videoActionsMenu_linkCopied_label()),children:(fe,Pe)=>{Ie();var H=ze();Q(ee=>ie(H,ee),[()=>m.ui_videoActionsMenu_copyLink_label()]),x(fe,H)},$$slots:{default:!0}})}),x($,G)};te(le,$=>{e(R)==="workspace"&&e(U)?$(xe):e(R)==="remote"&&$(se,1)})}var ge=O(le,2);{var C=$=>{var G=un(),j=oe(G);me(j,()=>ot,(K,Z)=>{Z(K,{})});var de=O(j,2);{var _e=K=>{var Z=ln(),ae=Ce(Z,!0);Q(ce=>ie(ae,ce),[()=>m.ui_videoActionsMenu_duration_label({duration:Ct(e(y)*1e3)})]),x(K,Z)};te(de,K=>{e(y)!==null&&K(_e)})}var fe=O(de,2);{var Pe=K=>{var Z=sn(),ae=Ce(Z,!0);Q(ce=>ie(ae,ce),[()=>m.ui_videoActionsMenu_dimensions_label({width:Be(e(f).width),height:Be(e(f).height)})]),x(K,Z)};te(fe,K=>{e(f)&&K(Pe)})}var H=O(fe,2);{var ee=K=>{var Z=cn(),ae=Ce(Z,!0);Q(ce=>ie(ae,ce),[()=>lt(e(A))]),x(K,Z)};te(H,K=>{e(A)!==null&&K(ee)})}x($,G)};te(ge,$=>{(e(y)!==null||e(f)||e(A)!==null)&&$(C)})}x(W,re)},$$slots:{default:!0}})}),x(w,r)},$$slots:{default:!0}})}),x(a,Y),Ne(B)}var mn=X('<p class="type-body text-white/80" role="status"> </p>'),gn=X('<div data-media-lightbox-content="" data-video-lightbox-root="" class="flex max-h-[90vh] max-w-[90vw] cursor-default flex-col items-center gap-3"><video controls="" preload="metadata" playsinline="" class="max-h-[85vh] max-w-[90vw] rounded-lg bg-black object-contain shadow-(--elevation-overlay)" data-testid="chat-video-player"> </video> <!></div>',2);function pn(a,n){if(new.target)return Te({component:pn,...a});Se(n,!0);const o=f=>{mt(f,{get videoUrl(){return s()},get videoName(){return v()},get sourceKind(){return P()},get mimeType(){return M()},triggerClass:"h-9 w-9 bg-white/0 hover:bg-white/20",contentClass:"z-[1003]"})};let u=h(n,"open",15,!1),s=h(n,"videoUrl",7),v=h(n,"videoName",23,()=>m.chat_videoBlock_fromAgent_label()),b=h(n,"poster",7),P=h(n,"sourceKind",7),M=h(n,"mimeType",7),F=h(n,"openerElement",7,null),U=h(n,"onClose",7),R=J(!1);ye(()=>{!u()||!s()||k(R,!1)});var y={get open(){return u()},set open(f=!1){u(f),_()},get videoUrl(){return s()},set videoUrl(f){s(f),_()},get videoName(){return v()},set videoName(f=m.chat_videoBlock_fromAgent_label()){v(f),_()},get poster(){return b()},set poster(f){b(f),_()},get sourceKind(){return P()},set sourceKind(f){P(f),_()},get mimeType(){return M()},set mimeType(f){M(f),_()},get openerElement(){return F()},set openerElement(f=null){F(f),_()},get onClose(){return U()},set onClose(f){U(f),_()},$set:Ue,$on:(f,A)=>Re(n,f,A)};{let f=E(()=>m.chat_videoBlock_dialog_title({name:v()})),A=E(()=>m.chat_videoBlock_close_ariaLabel());Ye(a,{get ariaLabel(){return e(f)},get closeLabel(){return e(A)},get openerElement(){return F()},get onClose(){return U()},get actions(){return o},get open(){return u()},set open(S){u(S)},children:(S,D)=>{var V=gn(),N=ve(V),d=Ce(N,!0),B=O(N,2);{var Y=q=>{var g=mn(),i=Ce(g,!0);Q(w=>ie(i,w),[()=>m.chat_videoBlock_unavailable_description()]),x(q,g)};te(B,q=>{e(R)&&q(Y)})}he(V),Q(q=>{Le(N,"src",s()),Le(N,"poster",b()),Le(N,"aria-label",v()),ie(d,q)},[()=>m.chat_videoBlock_unsupported_description()]),Fe("error",N,()=>k(R,!0)),x(S,V)},$$slots:{default:!0}})}return Ne(y)}var vn=X('<span class="block truncate text-foreground"> </span>'),hn=X("<!> ",1),_n=X("<!> <!>",1),bn=X('<span class="flex shrink-0 flex-wrap items-center gap-1"><!> <!></span>'),wn=X('<div class="type-caption flex w-fit min-w-0 max-w-full items-center gap-3 whitespace-normal py-1 text-muted-foreground" role="status" data-testid="media-unavailable"><span class="flex min-w-0 max-w-full flex-1 items-start gap-2"><span class="first-line-icon" aria-hidden="true"><!></span> <span class="min-w-0"><!> <span class="block break-words"> </span></span></span> <!></div>');function yn(a,n){if(new.target)return Te({component:yn,...a});Se(n,!0);let o=h(n,"name",7),u=h(n,"reason",7),s=h(n,"path",7),v=h(n,"workspaceId",7),b=h(n,"onRetry",7);const P=E(()=>u()==="missing"?m.ui_mediaUnavailable_missing_description():u()==="unsupported"?m.ui_mediaUnavailable_unsupported_description():u()==="other-workspace"?m.ui_mediaUnavailable_otherWorkspace_description():u()==="invalid-link"?m.ui_mediaUnavailable_invalidLink_description():m.ui_mediaUnavailable_loadFailed_description());function M(i){i.preventDefault(),i.stopPropagation()}function F(i){M(i),b()?.()}async function U(i){if(M(i),!!s())try{await He(s()),we.success(m.ui_imageActionsMenu_pathCopied_label())}catch{we.error(m.ui_imageActionsMenu_copyFailed_error())}}function R(i){if(M(i),!s()||!v())return;const w=s().split("/").map(encodeURIComponent).join("/");Ot(`intent://local/file/${w}`,{workspaceId:vt(v())})}var y={get name(){return o()},set name(i){o(i),_()},get reason(){return u()},set reason(i){u(i),_()},get path(){return s()},set path(i){s(i),_()},get workspaceId(){return v()},set workspaceId(i){v(i),_()},get onRetry(){return b()},set onRetry(i){b(i),_()},$set:Ue,$on:(i,w)=>Re(n,i,w)},f=wn(),A=ve(f),S=ve(A),D=ve(S);Ae(D,{get icon(){return Et},class:"size-3.5"}),he(S);var V=O(S,2),N=ve(V);{var d=i=>{var w=vn(),l=Ce(w,!0);We(w,(r,p)=>Ft?.(r,p),o),Q(()=>ie(l,o())),x(i,w)};te(N,i=>{o()&&i(d)})}var B=O(N,2),Y=Ce(B,!0);he(V),he(A);var q=O(A,2);{var g=i=>{var w=bn(),l=ve(w);{var r=I=>{{let z=E(()=>m.chat_shared_retry_label());Ee(I,{variant:"ghost",size:"icon-compact",get tooltip(){return e(z)},onclick:F,children:(W,ne)=>{Ae(W,{get icon(){return It},size:"xs"})},$$slots:{default:!0}})}};te(l,I=>{b()&&I(r)})}var p=O(l,2);{var L=I=>{var z=_n(),W=oe(z);{var ne=ue=>{Ee(ue,{variant:"ghost",size:"compact",onclick:R,children:(le,xe)=>{var se=hn(),ge=oe(se);Ae(ge,{get icon(){return $t},size:"xs"});var C=O(ge);Q($=>ie(C,` ${$??""}`),[()=>m.chat_changesPanel_openFile_tooltip()]),x(le,se)},$$slots:{default:!0}})};te(W,ue=>{v()&&u()!=="other-workspace"&&u()!=="invalid-link"&&ue(ne)})}var re=O(W,2);{let ue=E(()=>m.ui_imageActionsMenu_copyPath_label());Ee(re,{variant:"ghost",size:"icon-compact",get tooltip(){return e(ue)},onclick:U,children:(le,xe)=>{Ae(le,{get icon(){return zt},size:"xs"})},$$slots:{default:!0}})}x(I,z)};te(p,I=>{s()&&I(L)})}he(w),x(i,w)};te(q,i=>{(b()||s())&&i(g)})}return he(f),Q(()=>{Le(f,"data-reason",u()),ie(Y,e(P))}),x(a,f),Ne(y)}export{ut as I,Ye as M,mt as V,dt as Z,on as a,yn as b,pn as c,ct as d,Wt as e,je as f,Ht as m,qe as p,Gn as r,Jn as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as t}from"./
|
|
1
|
+
import{l as t}from"./BpwKnO7b.js";const e=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],o={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["<!--","-->"]},brackets:[["<!--","-->"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${e.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:t.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${e.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:t.IndentAction.Indent}}]},m={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/@@@@/],[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@comment"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/[ \t\r\n]+/],[/[^<@]+/]],doctype:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],razorInSimpleState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3"}]],razorInEmbeddedState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],razorBlockCommentTopLevel:[[/\*@/,"@rematch","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorBlockComment:[[/\*@/,"comment.cs","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorRootTopLevel:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/[})]/,"@rematch","@pop"],{include:"razorCommon"}],razorRoot:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/\}/,"delimiter.bracket.cs","@pop"],[/\)/,"delimiter.parenthesis.cs","@pop"],{include:"razorCommon"}],razorCommon:[[/[a-zA-Z_]\w*/,{cases:{"@razorKeywords":{token:"keyword.cs"},"@default":"identifier.cs"}}],[/[\[\]]/,"delimiter.array.cs"],[/[ \t\r\n]+/],[/\/\/.*$/,"comment.cs"],[/@\*/,"comment.cs","@razorBlockComment"],[/"([^"]*)"/,"string.cs"],[/'([^']*)'/,"string.cs"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<\/)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/,"delimiter.cs"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.cs"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.cs"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.cs"],[/0[0-7']*[0-7]/,"number.octal.cs"],[/0[bB][0-1']*[0-1]/,"number.binary.cs"],[/\d[\d']*/,"number.cs"],[/\d/,"number.cs"]]},razorKeywords:["abstract","as","async","await","base","bool","break","by","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","descending","explicit","event","extern","else","enum","false","finally","fixed","float","for","foreach","from","goto","group","if","implicit","in","int","interface","internal","into","is","lock","long","nameof","new","null","namespace","object","operator","out","override","orderby","params","private","protected","public","readonly","ref","return","switch","struct","sbyte","sealed","short","sizeof","stackalloc","static","string","select","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","var","virtual","volatile","void","when","while","where","yield","model","inject"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/};export{o as conf,m as language};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aR as a,aP as u,aQ as r,m as N,a0 as w,l as x,ab as T,Y as A,b3 as C,aJ as M,ad as P,bM as m,bL as i,O as v,bZ as R,w as S,bN as s}from"./3SdAC2_C.js";import{B}from"./
|
|
1
|
+
import{aR as a,aP as u,aQ as r,m as N,a0 as w,l as x,ab as T,Y as A,b3 as C,aJ as M,ad as P,bM as m,bL as i,O as v,bZ as R,w as S,bN as s}from"./3SdAC2_C.js";import{B}from"./YLhFQnIu.js";import{i as c}from"./FLpsgWeB.js";function J(g,p,F,l,L,O){let b=a;a&&u();var e=null;a&&r.nodeType===N&&(e=r,u());var f=a?r:g,E=v,o=new B(f,!1);w(()=>{const t=p()||null;var h=t==="svg"?S:void 0;if(t===null){o.ensure(null,null),s(!0);return}return o.ensure(t,_=>{if(t){var y=a;if(e=a?e:T(t,h),A(e,e),l){var d=null;a&&C(t)&&e.append(d=document.createComment(""));var n=a?M(e):e.appendChild(P());a&&(n===null?m(!1):i(n)),c(E),l(e,n),d?.remove(),c(null)}v.nodes.end=e,y||_.before(e)}a&&i(_)}),s(!0),()=>{t&&s(!1)}},x),R(()=>{s(!0)}),b&&(m(!0),i(f))}export{J as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Jx as r,nY as p,nZ as i,mB as s,P as S}from"./
|
|
1
|
+
import{Jx as r,nY as p,nZ as i,mB as s,P as S}from"./D5wnbxHp.js";import{bm as o}from"./YLhFQnIu.js";const u={"Setup Script":()=>o.terminal_daemonName_setupScript_label(),Terminal:()=>o.terminal_quakeOverlay_terminal_fallback()};function T(e){if(e)return Object.hasOwn(u,e)?u[e]():e}function d(e){return e.customName||T(e.name)||o.terminal_quakeOverlay_terminal_fallback()}const f=r.createSelector((e,t,a,l)=>{const n=p(e.terminals.creationOutcomes,t);return n?.workspaceId===a&&n.resourceId===l?n:void 0});function m(e,t){return t?e.terminals.workspaces[t]||s:s}function c(e,t){return e.terminals.workspaces[t]||s}function k(e){return(e.customName||e.name)==="Setup"}const _=r.createSelector((e,t)=>e.terminals.workspaceHeights[t]??e.terminals.height),v=r.createSelector((e,t)=>m(e,t).activeTerminalId),O=r.createSelector((e,t)=>i(m(e,t).terminals)),g=r.createSelector((e,t)=>{if(!t)return null;const a=c(e,t).selectedScriptId;return a||null}),I=r.createSelector((e,t)=>c(e,t).isOpen),y=r.createSelector((e,t)=>c(e,t).activeTerminalId),N=r.createSelector((e,t)=>i(c(e,t).terminals)),b=r.createSelector((e,t)=>i(c(e,t).terminals).find(k)),A=r.createSelector((e,t)=>e.terminals.workspaces[t]||s),P=r.createSelector((e,t,a)=>c(e,t).placements[a]??e.terminals.workspacePlacements[t]?.[a]??S),W=r.createSelector((e,t)=>e.terminals.workspacePlacements[t]),E=r.createSelector((e,t,a)=>{const l=m(e,t),n=p(l.terminals,a);return e.userPreferences?.languagePreference,d(n??{})}),M=Object.freeze(Object.defineProperty({__proto__:null,selectActiveTerminalId:v,selectActiveTerminalIdForWorkspace:y,selectHydratedWorkspacePlacements:W,selectIsTerminalOverlayOpenForWorkspace:I,selectSelectedScriptId:g,selectTerminalCreationOutcome:f,selectTerminalDisplayName:E,selectTerminalOverlayHeight:_,selectTerminalPlacement:P,selectTerminals:O,selectTerminalsForWorkspace:N,selectWorkspaceSetupTerminal:b,selectWorkspaceTerminalState:A},Symbol.toStringTag,{value:"Module"}));export{W as a,I as b,f as c,E as d,_ as e,N as f,b as g,A as h,M as i,T as l,y as s,d as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as e}from"./
|
|
1
|
+
import{p as e}from"./BQhBnAuP.js";const o=[{id:"dialog-state-matrix",title:"Dialog states",states:["closed","open","entering","exiting","focused","disabled-close","destructive-flow","nested-content","long-content","scrolling","compact","zoom-200","outside-dismiss","escape-dismiss","focus-return","reduced-motion"],themes:["light","dark"],viewport:"both",reducedMotion:!0},{id:"dialog-open-state",title:"Dialog open state",states:["open-on-mount","focused","escape-dismiss","focus-return"],themes:["light","dark"],viewport:"both",reducedMotion:!0}];e({id:"dialog",source:"src/lib/components/ui/dialog/index.ts",publicImport:"$lib/components/ui/dialog",legacyImports:[],exports:["Close","Content","Description","Dialog","DialogClose","DialogContent","DialogDescription","DialogFooter","DialogHeader","DialogOverlay","DialogPortal","DialogTitle","DialogTrigger","Footer","Header","Overlay","Portal","Root","Title","Trigger","escapeBelongsToOpenPopup","useDialogPortalTarget"],usage:`<script lang="ts">
|
|
2
2
|
import * as Dialog from '$lib/components/ui/dialog';
|
|
3
3
|
<\/script>
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{k as qa,s as fa}from"./
|
|
1
|
+
import{k as qa,s as fa}from"./ClQE9kQf.js";import{p as ma,g as Ct,I as Wa,X as Qa,e as Nn}from"./oBIu7LTI.js";import{aB as Ga,cW as Ka,A as Va,a_ as xn,bZ as Ya,v as Xa}from"./ByBw1QkA.js";import{bm as c,t as Pt,bo as w,bw as Tt,b as Rt,bq as qn,bs as Re,br as Ja}from"./YLhFQnIu.js";import{bo as Wn,bs as Ot,a5 as O,bl as U,bS as b,bA as $,b_ as x,aD as e,W as l,ay as H,a7 as Oe,bO as L,bn as Lt,c9 as u,aA as k,aB as _,ca as ze,bH as h,b$ as Qt,bV as le,cd as Mt,br as va,be as un,c5 as Za,bi as En,bj as er,bf as hn,am as ta,ax as na,ai as tr,aj as nr,c0 as ar}from"./3SdAC2_C.js";import{i as M}from"./YeOAvjnW.js";import{t as _a}from"./CrpUtGFn.js";import{e as rr}from"./UsbmbYa0.js";import{s as q,g as en,f as ve,b as sr}from"./BQhBnAuP.js";import{a as or,n as ha}from"./FLpsgWeB.js";import{r as ir,o as lr,A as aa,L as dr}from"./Bbae4OrB.js";import{t as Dn}from"./DAsc1V4f.js";import{R as ra}from"./CZB2ndi9.js";import{I as ba}from"./DkERMj5B.js";import"./kvtKUeBe.js";import{aO as wn,cN as ur,ax as cr,aM as pr,cH as gr,cI as fr,as as mr,au as vr,aC as _r,aI as hr,s as br,O as wr,e8 as kr,X as xr,cy as yr,c4 as $r}from"./BJbm_MWC.js";import{Jx as J,cq as zn,co as wa,cr as kn,rv as Ar,DV as Sr,fV as ka,D_ as Ir,bF as Cr,A4 as Pr,mP as sa,ur as Tr,cu as Rr,v0 as oa,nL as Or,DF as Lr,DY as Nr,cc as Er}from"./D5wnbxHp.js";import{A as Dr,b as Mr}from"./CfaCrhAh.js";import{y as Fr}from"./Bqd7fdCF.js";import{l as zr}from"./DWqaYE81.js";import{f as ia}from"./CACH34FC.js";import{h as Br,g as jr}from"./Co9CFvqw.js";import{o as Hr,S as Ur}from"./CHApvLbz.js";import"./KtEuoG00.js";import{ae as qr,ah as Wr,f as Mn,a1 as Qr}from"./Cw2fqKk9.js";import{h as Gr,F as la}from"./DJivXy66.js";import"./WvHbj6rB.js";import{C as Kr,k as Vr,j as Yr,i as Xr}from"./ItBm4ElA.js";import{L as Jr}from"./D3waRWO1.js";import{c as de}from"./DwGyIIXK.js";import{c as Bn,b as da,d as jn,a as Hn,A as xa}from"./DNZCPKpq.js";import{l as Wt,b as Zr}from"./DIEHuZ8f.js";import{F as es,bb as ts}from"./D-aEx3GL.js";import{D as ns}from"./AXzVloaq.js";import{b as as}from"./DPG1HUgG.js";import{T as rs}from"./CrL2Nk6a.js";import"./BNDTLRE1.js";import{cl as ya,cP as ss,cO as os,bR as is,M as ls,F as yn,b5 as ds,au as us,aK as cs,aG as ps,cT as gs,be as fs,aA as ms,aL as vs,b1 as _s,ah as ua,a8 as hs,c6 as bs,ag as ws,cF as ks,an as xs,cS as ys,aD as $s}from"./gwv5JQYH.js";import{b as As}from"./Dn334wJv.js";import"./CIWQMI37.js";import{S as bn}from"./B1TtNV9x.js";import{E as Ss}from"./Bj4IsLvN.js";import"./CGdXewiA.js";import{f as Is}from"./Dd3UnPYB.js";import{P as Cs}from"./BpXDXz8J.js";import{b as Ps,P as Ts}from"./B9BALnhr.js";import{h as Rs,H as Os,g as Ls}from"./CwCTYQp7.js";const Ns=80,Es=10,Ds=new Ga(Ka,{renderer:{html({text:a}){return Va(a)},image({tokens:a}){return this.parser.parseInline(a)}}});function Qn(a){const n=document.createElement("template");n.innerHTML=Ds.parseInline(a,{async:!1});for(const o of n.content.querySelectorAll("br"))o.replaceWith(" ");return(n.content.textContent??"").replace(/\s+/g," ").trim()}function Ft(a){return a.replace(/!\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/\[([^\]]+)\]\([^)]*\)/g,"$1").replace(/`+([^`]*?)`+/g,"$1").replace(/<[^>]+>/g,"").replace(/\\([\\`*_[\]{}()#+\-.!>])/g,"$1").replace(/[*~]/g,"").replace(/(^|[^A-Za-z0-9])_+/g,"$1").replace(/_+([^A-Za-z0-9]|$)/g,"$1").replace(/\s+/g," ").trim()}function Un(a,n){return a.slice(n).replace(/^(?:[ \t]*(?:\r\n|\n|\r))+/,"")}function Sn(a,n){return!n||n.length>Ns||n.split(/\s+/).length>Es||/[.!?;]$/.test(n)?!1:!/^[ \t]*(?:[-+*][ \t]+|\d+[.)][ \t]+|>|```|~~~|\|)/.test(a)}function tl(a){const o=a.trim().match(/^\*\*([^\r\n]+)\*\*$/);if(!o)return null;const i=Ft(o[1]);return Sn(o[0],i)?i:null}function Gn(a,n=!1,o=!0){const i=a.match(/^(?:[ \t]*(?:\r\n|\n|\r))*/)?.[0]??"",r=a.slice(i.length).match(/^\*\*([^\r\n]+)\*\*[ \t]*(?:(?:\r\n|\n|\r)|$)/);if(!r)return null;if(n){const v=r[1],f=v.match(/\\+$/)?.[0].length??0;if(v!==v.trim()||v.includes("**")||v.startsWith("*")||v.endsWith("*")||f%2!==0)return null}const p=Ft(r[1]);return Sn(r[0],p)?{title:n&&o?Qn(r[1]):p,body:Un(a,i.length+r[0].length)}:null}function ca(a){const n=[];let o=a;for(;o.trim();){const i=Kn(o,!0),d=i.heading?{body:i.body}:Gn(o,!0,!1);if(!d)return null;n.push(o.slice(0,o.length-d.body.length)),o=d.body}return n.length?n:null}function nl(a){const n=[];let o=a;for(;o.trim();){const i=Kn(o,!0,Qn),d=i.heading?{title:i.heading,body:i.body}:Gn(o,!0);if(!d)return null;n.push(d.title),o=d.body}return n.length?n:null}function al(a){const n=Fs(a),o=[];let i=a;for(n.heading&&(o.push({title:n.heading,body:""}),i=n.body);i;){const d=Gn(i);if(!d||d.body.length>=i.length)break;o.push({title:d.title,body:""}),i=d.body}if(o.length===0){const d=a.trim(),r=Ft(d);return!d.includes(`
|
|
2
2
|
`)&&Sn(d,r)?[{title:r,body:""}]:d?[{title:null,body:d}]:[]}return o[o.length-1].body=i.trim(),o}function Ms(a){const n=a.replace(/^ {0,3}/,"");return!/^(?:\s|>|`{3}|~{3}|(?:[-+*]|\d+[.)])(?:[ \t]|$)|#{1,6}(?:[ \t]|$)|<|\[[^\]]*\]:)/.test(n)&&!/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})$/.test(n)}function Kn(a,n=!1,o=Ft){const i=a.match(/^(?:\uFEFF)?(?:[ \t]*(?:\r\n|\n|\r))*/)?.[0]??"",d=a.slice(i.length);if(n&&/^(?: {4}| {0,3}\t)/.test(d))return{heading:null,body:a};const r=d.match(/^[ \t]{0,3}#{1,6}[ \t]+([^\r\n]*?)(?:[ \t]+#+)?[ \t]*(?:\r\n|\n|\r|$)/);if(r&&Ft(r[1]))return{heading:o(r[1]),body:Un(a,i.length+r[0].length)};const p=d.match(/^([^\r\n]+)(?:\r\n|\n|\r)([ \t]{0,3})(?:=+|-+)[ \t]*(?:\r\n|\n|\r|$)/);return p&&(!n||Ms(p[1])&&!p[2].includes(" "))&&Ft(p[1])?{heading:o(p[1]),body:Un(a,i.length+p[0].length)}:{heading:null,body:a}}function Fs(a,{preserveInlineText:n=!1}={}){const o=n?Qn:Ft,i=Kn(a,!1,o);if(i.heading)return i;const d=a.match(/^(?:\uFEFF)?(?:[ \t]*(?:\r\n|\n|\r))*/)?.[0]??"",p=a.slice(d.length).match(/^([^\r\n]+)(?:\r\n|\n|\r)(?:[ \t]*(?:\r\n|\n|\r))+/);if(p){const v=Ft(p[1]),f=a.slice(d.length+p[0].length);if(f.trim()&&Sn(p[1],v))return{heading:o(p[1]),body:f}}return{heading:null,body:a}}const Gt="[--operational-row-inline-padding:var(--chat-operational-row-inline-padding,0.5rem)] [--operational-leading-slot-size:1.25rem] [--operational-leading-half-slot-size:0.625rem] [--operational-leading-gap:var(--chat-operational-leading-gap,0.5rem)]",rl="type-body font-family-child font-normal text-muted-foreground",sl=`${Gt} min-w-0 max-w-full pl-[calc(var(--operational-row-inline-padding)+var(--operational-leading-slot-size)+var(--operational-leading-gap))]`,ol=`${Gt} min-w-0 max-w-full pl-[calc(var(--operational-row-inline-padding)+var(--operational-leading-slot-size)+var(--operational-leading-gap))] pt-1.5`,il=`${Gt} min-w-0 max-w-full pl-[calc(var(--operational-row-inline-padding)+var(--operational-leading-slot-size)+var(--operational-leading-gap))] pt-1`,ll=`${Gt} relative min-w-0 max-w-full`,dl=`${Gt} min-w-0 max-w-full pl-[calc(var(--operational-row-inline-padding)+var(--operational-leading-slot-size)+var(--operational-leading-gap))]`,ul=`${Gt} operational-group-child-row ml-2 min-w-0 w-[calc(100%-0.5rem)] max-w-[calc(100%-0.5rem)]`,cl="pt-6",pl="text-muted-foreground",gl="text-muted-foreground",$a="font-normal text-muted-foreground",fl="tool-call-container group relative block w-full min-w-0 max-w-full overflow-hidden type-body font-family-child font-normal text-muted-foreground",ml="h-[16px]! w-[16px]! shrink-0",vl=`${Gt} relative grid h-7 w-full min-w-0 max-w-full grid-cols-[var(--operational-leading-slot-size)_minmax(0,1fr)_auto] items-center gap-[var(--operational-leading-gap)] overflow-hidden rounded-md px-[var(--operational-row-inline-padding)] type-body transition-colors duration-[var(--motion-fast)] motion-reduce:transition-none`,_l=`a11y-ignore pointer-events-none flex size-[var(--operational-leading-slot-size)] min-w-[var(--operational-leading-slot-size)] shrink-0 items-center justify-center [&_svg]:size-[16px]! ${$a}`,hl=`type-body block min-w-0 max-w-full truncate overflow-hidden text-ellipsis whitespace-nowrap border-0 bg-transparent p-0 text-left ${$a}`,bl="type-body flex min-w-0 shrink-0 items-center gap-1 whitespace-nowrap",wl="h-[16px]! w-[16px]! shrink-0 opacity-60 transition-transform duration-[var(--motion-fast)] motion-reduce:transition-none";function kl(a){return qa(a,{axis:"y",duration:ma()?0:150})}function cn(a){return a.type==="thinking"||a.type==="tool_use"||a.type==="content_group"}function xl(a){const n=a?.[0];return!n||cn(n)?"":"pt-4"}function yl(a,n,o=()=>!0){const i=a[n];if(!i||!o(i)||!cn(i))return!1;let d=n-1;for(;d>=0&&!o(a[d]);)d-=1;return d>=0&&cn(a[d])}function $l(a,n,o=()=>!0,i=!1){const d=a[n];if(!d||!o(d))return"";let r=n-1;for(;r>=0&&!o(a[r]);)r-=1;if(r<0)return"";const p=a[r];if(p.type==="thinking"&&d.type==="thinking")return i||ca(p.text??p.content??"")!==null&&ca(d.text??d.content??"")!==null?"":"pt-14";const v=cn(p),f=cn(d);return v&&f?"":p.type==="thinking"&&!f?"pt-6":v||f?"pt-4":"pt-1"}const Al="shrink-0 whitespace-nowrap text-ui text-subtle focus-visible:outline-none focus-visible:text-foreground";function zs(a){if(a?.status==="halted")return c.agent_node_halted_label();if(a?.status==="resuming")return c.agent_node_resuming_label();if(a?.placement?.target==="remote"||Fr(a?.placement?.target)){if(a.placementError)return c.remoteAgent_status_failed();if(a.cloudStart)return c.remoteAgent_status_starting();if(a.effectiveIsolation==="pending")return a.setup?.state==="pending"?c.remoteAgent_status_preparingCheckout():a.setup?.state==="running"?c.remoteAgent_status_runningSetup():c.remoteAgent_status_starting()}if(a?.placement&&a.effectiveIsolation==="pending")return c.agent_node_provisioning_label()}var Bs=_('<span class="owner-fill block h-full svelte-sxf8s9"></span>'),js=_('<span class="shrink-0 text-xs text-muted-foreground"> </span>'),Hs=_('<span class="flex items-center gap-2"><span class="group-key size-1.5 shrink-0 rounded-full svelte-sxf8s9"></span> <span class="min-w-0 flex-1"> </span> <!> <span> </span></span>'),Us=_('<dd class="col-span-2 pl-[1.125rem] text-xs text-muted-foreground wrap-anywhere"> </dd>'),qs=_(`<div class="grid grid-cols-[1fr_auto] items-baseline gap-x-3 py-0.5 text-sm"><dt class="relative min-w-0 pl-[1.125rem] wrap-anywhere before:absolute before:top-2 before:left-0 before:size-1 before:rounded-full before:bg-muted-foreground before:content-['']"> </dt> <dd> </dd> <!></div>`),Ws=_('<dl class="ml-3.5 text-foreground"></dl>'),Fn=_("<!> <!>",1),Qs=_('<span class="flex items-center gap-2"><span class="min-w-0 flex-1"> </span> <span class="shrink-0 tabular-nums text-muted-foreground"> </span></span>'),Gs=_('<div class="min-w-0"><dt class="truncate text-sm text-foreground"> </dt> <dd class="text-xs text-muted-foreground wrap-anywhere"> </dd></div>'),Ks=_('<dl class="ml-3.5 flex flex-col gap-2"></dl>'),Vs=_('<section class="min-w-0" data-testid="prompt-breakdown"><div class="mb-3 flex items-baseline justify-between gap-3"><h3 class="text-sm font-medium"> </h3> <span class="shrink-0 text-sm tabular-nums text-muted-foreground"> </span></div> <div class="owner-strip mb-2 flex h-1.5 w-full overflow-hidden svelte-sxf8s9" role="img"></div> <!></section>');function Aa(a,n){const o=Wn();if(new.target)return Pt({component:Aa,...a});Ot(n,!0);let i=w(n,"breakdown",7);const d="type-body font-normal text-foreground data-[state=open]:font-normal";function r(T){return Zr(T,{maximumFractionDigits:T<1e4?1:0})}function p(T){return T==="native"?c.agent_contextBreakdown_owner_native_label():T==="intent"?c.agent_contextBreakdown_owner_intent_label():c.agent_contextBreakdown_owner_user_label()}const v=u(()=>i().owners.map(T=>c.agent_contextBreakdown_ownerShare_label({owner:p(T.owner),tokens:r(T.estTokens)})).join(", "));var f={get breakdown(){return i()},set breakdown(T){i(T),k()},$set:Tt,$on:(T,m)=>Rt(n,T,m)},S=Vs(),y=O(S),g=O(y),E=U(g,!0),F=b(g,2),Ce=U(F,!0);$(y);var D=b(y,2);Ct(D,21,()=>i().owners,T=>T.owner,(T,m)=>{var me=Bs();let ue;x(()=>{q(me,"data-owner",e(m).owner),ue=en(me,"",ue,{"flex-grow":e(m).share})}),l(T,me)}),$(D);var P=b(D,2);return de(P,()=>xa,(T,m)=>{m(T,{type:"multiple",children:(me,ue)=>{var R=Fn(),_e=H(R);Ct(_e,17,()=>i().groups,pe=>pe.kind,(pe,K)=>{var W=Oe(),ne=H(W);de(ne,()=>Bn,(ge,Fe)=>{Fe(ge,{get value(){return e(K).kind},get"data-prompt-group"(){return e(K).kind},children:(ot,G)=>{var I=Fn(),ae=H(I);de(ae,()=>da,(he,N)=>{N(he,{level:4,children:(Le,X)=>{var Q=Oe(),Z=H(Q);de(Z,()=>jn,(V,oe)=>{oe(V,{inset:!1,class:d,children:(ee,Ne)=>{var be=Hs(),je=O(be),et=b(je,2),ut=U(et,!0),tt=b(et,2);{var at=ct=>{var Nt=js(),yt=U(Nt,!0);x(Y=>L(yt,Y),[()=>c.agent_contextBreakdown_notCounted_label()]),l(ct,Nt)};M(tt,ct=>{e(K).kind==="native"&&ct(at)})}var Ee=b(tt,2),Kt=U(Ee,!0);$(be),x((ct,Nt)=>{q(je,"data-kind",e(K).kind),L(ut,ct),ve(Ee,1,`shrink-0 tabular-nums ${e(K).kind==="native"?"text-muted-foreground":""}`),L(Kt,Nt)},[()=>p(e(K).kind),()=>r(e(K).estTokens)]),l(ee,be)},$$slots:{default:!0}})}),l(Le,Q)},$$slots:{default:!0}})});var Be=b(ae,2);de(Be,()=>Hn,(he,N)=>{N(he,{inset:!1,children:(Le,X)=>{var Q=Ws();Ct(Q,21,()=>e(K).rows,Z=>Z.key,(Z,V)=>{var oe=qs(),ee=O(oe),Ne=U(ee,!0),be=b(ee,2),je=U(be,!0),et=b(be,2);{var ut=tt=>{var at=Us(),Ee=U(at,!0);x(()=>L(Ee,e(V).hint)),l(tt,at)};M(et,tt=>{e(V).hint&&tt(ut)})}$(oe),x(tt=>{L(Ne,e(V).label),ve(be,1,`tabular-nums ${e(V).counted?"":"text-muted-foreground"}`),L(je,tt)},[()=>r(e(V).estTokens)]),l(Z,oe)}),$(Q),l(Le,Q)},$$slots:{default:!0}})}),l(ot,I)},$$slots:{default:!0}})}),l(pe,W)});var ce=b(_e,2);{var xe=pe=>{var K=Oe(),W=H(K);de(W,()=>Bn,(ne,ge)=>{ge(ne,{value:"hidden-skills",class:"mt-1",children:(Fe,ot)=>{var G=Fn(),I=H(G);de(I,()=>da,(Be,he)=>{he(Be,{level:4,children:(N,Le)=>{var X=Oe(),Q=H(X);de(Q,()=>jn,(Z,V)=>{V(Z,{inset:!1,class:d,children:(oe,ee)=>{var Ne=Qs(),be=O(Ne),je=U(be,!0),et=b(be,2),ut=U(et,!0);$(Ne),x((tt,at)=>{L(je,tt),L(ut,at)},[()=>c.agent_contextBreakdown_hiddenSkills_title(),()=>Wt(i().hiddenSkills.length)]),l(oe,Ne)},$$slots:{default:!0}})}),l(N,X)},$$slots:{default:!0}})});var ae=b(I,2);de(ae,()=>Hn,(Be,he)=>{he(Be,{inset:!1,children:(N,Le)=>{var X=Ks();Ct(X,21,()=>i().hiddenSkills,Q=>Q.name,(Q,Z)=>{var V=Gs(),oe=O(V),ee=U(oe,!0),Ne=b(oe,2),be=U(Ne,!0);$(V),x(je=>{L(ee,e(Z).name),L(be,je)},[()=>[e(Z).detail,e(Z).fix].filter(Boolean).join(" · ")]),l(Q,V)}),$(X),l(N,X)},$$slots:{default:!0}})}),l(Fe,G)},$$slots:{default:!0}})}),l(pe,K)};M(ce,pe=>{i().hiddenSkills.length>0&&pe(xe)})}l(me,R)},$$slots:{default:!0}})}),$(S),x((T,m)=>{q(S,"aria-labelledby",`${o}-title`),q(g,"id",`${o}-title`),L(E,T),L(Ce,m),q(D,"aria-label",e(v))},[()=>c.agent_contextBreakdown_title(),()=>c.agent_contextBreakdown_tokens_label({tokens:r(i().estTokens)})]),l(a,S),Lt(f)}const Ys=["intent","user"],Xs=["systemPrompt","toolDescription","provider"],Js=["native","user","intent"],$n=a=>typeof a=="object"&&a!==null&&!Array.isArray(a),An=a=>typeof a=="number"&&Number.isFinite(a)&&a>=0,Zs=a=>a==="intent"||a==="user";function eo(a,n){if(!$n(a))return null;const{id:o,label:i,owner:d,location:r,chars:p,estTokens:v,controlHint:f}=a;if(typeof o!="string"||typeof i!="string"||!Zs(d)||typeof r!="string"||!Xs.includes(r)||!An(p)||!An(v))return null;const S=$n(f)&&typeof f.text=="string"&&f.text;return{key:`${n}:${o}`,id:o,label:i,owner:d,chars:p,estTokens:v,counted:r!=="provider",...S?{hint:S}:{}}}function to(a){if(!$n(a))return null;const{name:n,reason:o,detail:i,fix:d}=a;return[n,o,i,d].some(r=>typeof r!="string")?null:{name:n,reason:o,detail:i,fix:d}}function no(a){if(!$n(a)||a.available!==!0)return null;const{totalChars:n,estTokens:o,sections:i,hiddenSkills:d}=a;if(!An(n)||!An(o)||!Array.isArray(i)||!Array.isArray(d))return null;const r=i.map(eo).filter(f=>f!==null).sort((f,S)=>S.chars-f.chars),p=Ys.map(f=>{const S=r.filter(g=>g.counted&&g.owner===f),y=S.reduce((g,E)=>g+E.chars,0);return{owner:f,chars:y,estTokens:S.reduce((g,E)=>g+E.estTokens,0),share:n>0?y/n:0}}).filter(f=>f.chars>0),v=Js.map(f=>{const S=r.filter(y=>f==="native"?!y.counted:y.counted&&y.owner===f);return{kind:f,chars:S.reduce((y,g)=>y+g.chars,0),estTokens:S.reduce((y,g)=>y+g.estTokens,0),rows:S}}).filter(f=>f.rows.length>0);return{totalChars:n,estTokens:o,rows:r,groups:v,owners:p,hiddenSkills:d.map(to).filter(f=>f!==null)}}async function ao(a){try{const n=await Gr("agent.getSession",{agentId:a});return no(n?.session?.promptBreakdown)}catch{return null}}const pa=es.map(a=>({key:a.path.replace(/^agentFeatures\./,""),label:a.label,description:a.description}));function ro(a){const n=a.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/[_-]+/g," ").toLowerCase().trim();return n.charAt(0).toUpperCase()+n.slice(1)}function so(a){const n=a??{},o=pa.map(r=>({key:r.key,label:r.label(),description:r.description(),enabled:n[r.key]===!0,known:!0})),i=new Set(pa.map(r=>r.key)),d=[];for(const[r,p]of Object.entries(n))i.has(r)||d.push({key:r,label:ro(r),description:null,enabled:p===!0,known:!1});return d.sort((r,p)=>r.label.localeCompare(p.label)),o.concat(d)}var oo=_('<div class="mb-6 border-b border-border pb-6"><!></div>'),io=_("<span> </span>"),lo=_('<!> <span class="sr-only"> </span>',1),uo=_('<div role="listitem" class="text-xs text-subtle" aria-hidden="true">—</div>'),co=_('<section class="min-w-0"><h4 class="text-sm font-medium mb-3"> </h4> <div role="list" class="space-y-2"></div></section>'),po=_('<div class="@container"><!> <section><h3 class="text-sm font-medium"> </h3> <p class="mb-4 mt-1 text-sm text-muted-foreground"> </p> <div class="grid grid-cols-1 gap-6 @min-[28rem]:grid-cols-2" data-testid="harness-features-list"></div></section></div>');function Sa(a,n){const o=Wn();if(new.target)return Pt({component:Sa,...a});Ot(n,!0);let i=w(n,"open",15,!1),d=w(n,"static",7,!1),r=w(n,"version",7),p=w(n,"features",7,null),v=w(n,"agentId",7),f=w(n,"breakdown",7),S=le(null);const y=u(()=>f()===void 0&&!!v());ze(()=>{if(!i()||!e(y)||!v())return;const D=v();let P=!0;return ao(D).then(T=>{P&&h(S,{agentId:D,view:T},!0)}),()=>{P=!1}});const g=u(()=>f()!==void 0?f():e(y)&&e(S)&&e(S).agentId===v()?e(S).view:null),E=u(()=>so(p())),F=u(()=>[{enabled:!0,label:c.chat_shared_valueOn_label(),rows:e(E).filter(D=>D.enabled)},{enabled:!1,label:c.chat_shared_valueOff_label(),rows:e(E).filter(D=>!D.enabled)}]);var Ce={get open(){return i()},set open(D=!1){i(D),k()},get static(){return d()},set static(D=!1){d(D),k()},get version(){return r()},set version(D){r(D),k()},get features(){return p()},set features(D=null){p(D),k()},get agentId(){return v()},set agentId(D){v(D),k()},get breakdown(){return f()},set breakdown(D){f(D),k()},$set:Tt,$on:(D,P)=>Rt(n,D,P)};{let D=u(()=>c.chat_harnessFeaturesModal_title({version:r()}));Kr(a,{get static(){return d()},get title(){return e(D)},size:"wide",get open(){return i()},set open(P){i(P)},children:(P,T)=>{var m=po(),me=O(m);{var ue=W=>{var ne=oo(),ge=O(ne);Aa(ge,{get breakdown(){return e(g)}}),$(ne),l(W,ne)};M(me,W=>{e(g)&&W(ue)})}var R=b(me,2),_e=O(R),ce=U(_e,!0),xe=b(_e,2),pe=U(xe,!0),K=b(xe,2);Ct(K,21,()=>e(F),W=>W.enabled,(W,ne)=>{var ge=co(),Fe=O(ge),ot=U(Fe,!0),G=b(Fe,2);Ct(G,21,()=>e(ne).rows,I=>I.key,(I,ae)=>{Jr(I,{role:"listitem",class:"min-h-0 px-0 py-0 [&_.truncate]:whitespace-normal","data-testid":"harness-feature-state",get"data-feature"(){return e(ae).key},get"data-enabled"(){return e(ae).enabled},title:he=>{var N=Oe(),Le=H(N);{var X=Z=>{var V=lo(),oe=H(V);qr(oe,{get content(){return e(ae).description},side:"top",size:"sm",children:(be,je)=>{var et=io(),ut=U(et,!0);x(()=>L(ut,e(ae).label)),l(be,et)},$$slots:{default:!0}});var ee=b(oe,2),Ne=U(ee,!0);x(()=>L(Ne,e(ae).description)),l(Z,V)},Q=Z=>{var V=Qt();x(()=>L(V,e(ae).label)),l(Z,V)};M(Le,Z=>{e(ae).description?Z(X):Z(Q,-1)})}l(he,N)},$$slots:{title:!0}})},I=>{var ae=uo();l(I,ae)}),$(G),$(ge),x(()=>{q(ge,"aria-label",e(ne).label),L(ot,e(ne).label)}),l(W,ge)}),$(K),$(R),$(m),x((W,ne)=>{q(R,"aria-labelledby",`${o}-capabilities`),q(_e,"id",`${o}-capabilities`),L(ce,W),L(pe,ne)},[()=>c.chat_harnessFeaturesModal_capabilities_title(),()=>c.chat_harnessFeaturesModal_description()]),l(P,m)},$$slots:{default:!0}})}return Lt(Ce)}var go=_('<p role="alert" class="type-body text-danger"> </p>');function Ia(a,n){if(new.target)return Pt({component:Ia,...a});Ot(n,!0);const o=()=>Re(g,"$outcome$",i),[i,d]=qn();let r=w(n,"open",15,!1),p=w(n,"agentName",7),v=w(n,"workspaceId",7),f=w(n,"agentId",7);const S=crypto.randomUUID(),y=Mt(""),g=xn(y,S),E=u(()=>o()?.workspaceId===v()&&o().agentId===f()?o():void 0),F=u(()=>e(E)?.status==="pending"),Ce=u(()=>e(E)?.status==="failed"?e(E).error:"");ze(()=>{const m=v();return f(),y.set(m),()=>J.dispatch(zn(m,S))}),ze(()=>{e(E)?.status==="succeeded"&&(r(!1),J.dispatch(wa(v(),S,e(E).requestId)))});function D(){const m=xn.select(J.state,v(),S);m?.agentId===f()&&m.status==="pending"||J.dispatch(kn(v(),S,crypto.randomUUID(),f(),{kind:"retire"}))}var P={get open(){return r()},set open(m=!1){r(m),k()},get agentName(){return p()},set agentName(m){p(m),k()},get workspaceId(){return v()},set workspaceId(m){v(m),k()},get agentId(){return f()},set agentId(m){f(m),k()},$set:Tt,$on:(m,me)=>Rt(n,m,me)};{const m=ce=>{var xe=Oe(),pe=H(xe);{var K=W=>{var ne=go(),ge=U(ne,!0);x(()=>L(ge,e(Ce))),l(W,ne)};M(pe,W=>{e(Ce)&&W(K)})}l(ce,xe)};let me=u(()=>c.modals_retireAgent_title()),ue=u(()=>c.modals_retireAgent_description({name:p()})),R=u(()=>c.modals_retireAgent_confirm_label()),_e=u(()=>c.modals_bulkActionConfirm_cancel_label());ns(a,{get title(){return e(me)},get description(){return e(ue)},get confirmLabel(){return e(R)},get cancelLabel(){return e(_e)},focusSubmit:!1,focusCancel:!0,get busy(){return e(F)},onConfirm:D,get open(){return r()},set open(ce){r(ce)},details:m,$$slots:{details:!0}})}var T=Lt(P);return d(),T}function fo({agentName:a,specialist:n}){const o=n?`{ topLevel: true, specialist: ${JSON.stringify(n)} }`:"{ topLevel: true }",i=n?`and keep the same specialist (${JSON.stringify(n)})`:"and, if you were created with a specialist, pass that exact same `specialist` value in the options";return`Please replace yourself with a fresh top-level agent and run a gradual, coordinated hand-off:
|
|
3
3
|
|
|
4
4
|
1. Create your replacement now: call \`ws.agent.create(${JSON.stringify(a)}, kickoffMessage, ${o})\`. The first argument must be your EXACT current name (${JSON.stringify(a)}) ${i}. Write the kickoff message as a thorough context hand-off: the overall goal, the current state of the work, key notes and files, decisions already made, and open threads.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as se,bo as a,bw as ie,b as ae}from"./
|
|
1
|
+
import{t as se,bo as a,bw as ie,b as ae}from"./YLhFQnIu.js";import{bs as le,bV as oe,br as ge,ca as ue,bH as q,a5 as p,bA as m,bS as V,aD as C,b_ as P,W as w,bn as ce,c9 as W,aA as l,bl as he,bO as de,aB as I}from"./3SdAC2_C.js";import{i as me}from"./YeOAvjnW.js";import{g as Y,i as fe}from"./oBIu7LTI.js";import{h as ve}from"./BKD7o1lQ.js";import{f as v,g as be}from"./BQhBnAuP.js";import{H as R}from"./CcNhqKh5.js";import{C as _e}from"./CZB2ndi9.js";function A(r){const t={"&":"&","<":"<",">":">",'"':""","'":"'"};return r.replace(/[&<>"']/g,n=>t[n])}const pe=300,Ce=2e6,xe=1e5,u=new Map;let X=0;function Q(r,t){return`${t}\0${r}`}function Z(r,t){const n=Q(r,t),s=u.get(n);return s===void 0?null:(u.delete(n),u.set(n,s),s)}function F(r){const t=u.get(r);t!==void 0&&(X-=r.length+t.length,u.delete(r))}function He(r,t){F(r);const n=r.length+t.length;if(!(n>xe)){for(;u.size>=pe||u.size>0&&X+n>Ce;){const s=u.keys().next().value;if(s===void 0)break;F(s)}u.set(r,t),X+=n}}function ye(){return new Promise(r=>{typeof requestIdleCallback=="function"?requestIdleCallback(()=>r(),{timeout:200}):setTimeout(r,0)})}function Ne(r,t){try{return t&&R.getLanguage(t)?R.highlight(r,{language:t}).value:R.highlightAuto(r).value}catch{return A(r)}}const k=new Map;function Le(r,t,n){const s=Q(r,t),f=u.get(s);if(f!==void 0)return Promise.resolve(f);const c=k.get(s);if(c)return c.staleChecks.push(n??(()=>!1)),c.promise;const g={staleChecks:[n??(()=>!1)],promise:Promise.resolve("")};return g.promise=ye().then(()=>{if(k.get(s)===g&&k.delete(s),g.staleChecks.every(x=>x()))return A(r);const b=Ne(r,t);return He(s,b),b}),k.set(s,g),g.promise}var we=I("<div> </div>"),ke=I('<div class="line-numbers-gutter select-none text-right flex-shrink-0 py-3 pl-3 pr-2 svelte-1irg7m4"></div>'),Ae=I("<div></div>"),Ie=I('<div><div class="absolute top-2 right-2 opacity-0 group-hover:opacity-100 transition-opacity z-10"><!></div> <div class="flex"><!> <div><pre><code></code></pre></div></div></div>');function Se(r,t){if(new.target)return se({component:Se,...r});le(t,!0);const n=a(t,"code",7,""),s=a(t,"language",7,"plaintext"),f=a(t,"showLineNumbers",7,!1),c=a(t,"startLineNumber",7,1),g=a(t,"highlightLines",23,()=>[]),b=a(t,"fileName",7,""),x=a(t,"filename",7,""),H=a(t,"maxHeight",7,void 0),S=a(t,"noBorder",7,!1),y=a(t,"noMargin",7,!1),M=a(t,"doScroll",7,!0),B=a(t,"className",7,"");let N=oe(ge(Z(n(),s())??A(n())));ue(()=>{const e=n(),i=s(),h=Z(e,i);if(h!==null){q(N,h,!0);return}q(N,A(e),!0);let o=!1;return Le(e,i,()=>o).then(d=>{o||q(N,d,!0)}),()=>{o=!0}});const j=W(()=>C(N).split(`
|
|
2
2
|
`)),U=W(()=>Array.from({length:C(j).length},(e,i)=>c()+i));var $={get code(){return n()},set code(e=""){n(e),l()},get language(){return s()},set language(e="plaintext"){s(e),l()},get showLineNumbers(){return f()},set showLineNumbers(e=!1){f(e),l()},get startLineNumber(){return c()},set startLineNumber(e=1){c(e),l()},get highlightLines(){return g()},set highlightLines(e=[]){g(e),l()},get fileName(){return b()},set fileName(e=""){b(e),l()},get filename(){return x()},set filename(e=""){x(e),l()},get maxHeight(){return H()},set maxHeight(e=void 0){H(e),l()},get noBorder(){return S()},set noBorder(e=!1){S(e),l()},get noMargin(){return y()},set noMargin(e=!1){y(e),l()},get doScroll(){return M()},set doScroll(e=!0){M(e),l()},get className(){return B()},set className(e=""){B(e),l()},$set:ie,$on:(e,i)=>ae(t,e,i)},_=Ie();let D;var G=p(_),ee=p(G);_e(ee,{get text(){return n()},size:"xs",class:"bg-background/80 hover:bg-hover text-muted-foreground hover:text-foreground backdrop-blur-sm"}),m(G);var J=V(G,2),K=p(J);{var te=e=>{var i=ke();Y(i,20,()=>C(U),h=>h,(h,o)=>{var d=we();let L;var re=he(d,!0);P(ne=>{L=v(d,1,"line-number svelte-1irg7m4",null,L,{highlighted:ne}),de(re,o)},[()=>g().includes(o)]),w(h,d)}),m(i),w(e,i)};me(K,e=>{f()&&e(te)})}var E=V(K,2),T=p(E);let O;var z=p(T);return Y(z,21,()=>C(j),fe,(e,i,h)=>{var o=Ae();let d;ve(o,()=>C(i)||" ",!0),m(o),P(L=>d=v(o,1,"code-line svelte-1irg7m4",null,d,{highlighted:L}),[()=>g().includes(c()+h)]),w(e,o)}),m(z),m(T),m(E),m(J),m(_),P(()=>{D=v(_,1,`code-block-container group rounded-md overflow-hidden relative ${B()??""}`,"svelte-1irg7m4",D,{"mt-3":!y(),"mb-5":!y(),"no-border":S()}),be(_,H()?`max-height: ${H()}px; overflow-y: auto;`:""),v(E,1,`flex-1 ${M()?"overflow-x-auto":""}`),O=v(T,1,"code-pre py-3 pr-3 bg-background! svelte-1irg7m4",null,O,{"pl-3":!f()}),v(z,1,`hljs language-${s()??""}`,"svelte-1irg7m4")}),w(r,_),ce($)}export{Se as C};
|