@intent-hq/web 2.352.0 → 2.352.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/assets/14.DqC-ohbL.css +1 -0
- package/web/app/immutable/chunks/{DJnc5r8U.js → -iXO69ce.js} +1 -1
- package/web/app/immutable/chunks/{B_sYr-qY.js → 2VuBywRP.js} +1 -1
- package/web/app/immutable/chunks/{DF7SJcHw.js → 3XzoopWe.js} +1 -1
- package/web/app/immutable/chunks/{DFbFLnMx.js → 3gLoJ45p.js} +1 -1
- package/web/app/immutable/chunks/{-lzAI0Yg.js → 42g-QhQV.js} +2 -2
- package/web/app/immutable/chunks/{CMeXe72Y.js → 4YiJ0ND9.js} +1 -1
- package/web/app/immutable/chunks/{BhzNHo5H.js → 7H-n9zof.js} +1 -1
- package/web/app/immutable/chunks/{CDJiCuQl.js → 7y1QtJjP.js} +1 -1
- package/web/app/immutable/chunks/{6dKWFbhS.js → 9BnYs1hu.js} +1 -1
- package/web/app/immutable/chunks/{BReF7PxO.js → 9G_vzB9L.js} +1 -1
- package/web/app/immutable/chunks/{C4rL7fPq.js → 9ZrH1aY4.js} +1 -1
- package/web/app/immutable/chunks/{DE-3_OpQ.js → A-WQk-3j.js} +1 -1
- package/web/app/immutable/chunks/{D1z1qVWr.js → B--Bllfx.js} +1 -1
- package/web/app/immutable/chunks/{BO5Pq4fi.js → B1uicwDR.js} +1 -1
- package/web/app/immutable/chunks/{BA4kNZus.js → B2EPbB5o.js} +1 -1
- package/web/app/immutable/chunks/{Cjd2lqUF.js → B51SDTRI.js} +1 -1
- package/web/app/immutable/chunks/{CgbHaDpG.js → B6YGydaZ.js} +1 -1
- package/web/app/immutable/chunks/{lwGMtA_8.js → B93i7ayb.js} +1 -1
- package/web/app/immutable/chunks/{DEo5mzFE.js → B96uZ9bz.js} +4 -4
- package/web/app/immutable/chunks/{D1PZlLC_.js → B9pVpwXj.js} +1 -1
- package/web/app/immutable/chunks/{hQlemDzn.js → BANZxiwI.js} +1 -1
- package/web/app/immutable/chunks/{ChYZv5SJ.js → BBAAgrj4.js} +1 -1
- package/web/app/immutable/chunks/{BfmiyhX4.js → BDxUZFPM.js} +1 -1
- package/web/app/immutable/chunks/{CnTu6sc6.js → BEWd3Wd2.js} +1 -1
- package/web/app/immutable/chunks/{Qpp-eumr.js → BFe96yI4.js} +1 -1
- package/web/app/immutable/chunks/{CRZhk1kc.js → BHl6gZVr.js} +1 -1
- package/web/app/immutable/chunks/{DyLYtK5N.js → BKkglBqM.js} +1 -1
- package/web/app/immutable/chunks/{4dL6nLyL.js → BLkznJGy.js} +1 -1
- package/web/app/immutable/chunks/{CDFph9XW.js → BLx2u3_L.js} +1 -1
- package/web/app/immutable/chunks/{BotG4DRY.js → BM-quT2Y.js} +1 -1
- package/web/app/immutable/chunks/{B7oLLIgw.js → BMFTNhcT.js} +4 -4
- package/web/app/immutable/chunks/{Bmm9qguf.js → BMY_-gp1.js} +1 -1
- package/web/app/immutable/chunks/{BeeeYKV6.js → BN8E3HGF.js} +1 -1
- package/web/app/immutable/chunks/{CmpBd6Tg.js → BOh3NU76.js} +1 -1
- package/web/app/immutable/chunks/{BQYuNS07.js → BPxJwcRN.js} +1 -1
- package/web/app/immutable/chunks/{C79qeQUX.js → BQ_vw_jH.js} +1 -1
- package/web/app/immutable/chunks/{JxvzDmDF.js → BQi20dkR.js} +1 -1
- package/web/app/immutable/chunks/{D1nX-Mgh.js → BRCIAK0M.js} +1 -1
- package/web/app/immutable/chunks/{sbDqysXr.js → BRF08a2k.js} +1 -1
- package/web/app/immutable/chunks/{B32BlPhm.js → BSlI9zJ7.js} +1 -1
- package/web/app/immutable/chunks/{C2Y-3LOO.js → BTn81WXW.js} +1 -1
- package/web/app/immutable/chunks/{Bs7PlXA3.js → BVywtjLl.js} +1 -1
- package/web/app/immutable/chunks/{jOuwgRm6.js → BW4tbUu2.js} +1 -1
- package/web/app/immutable/chunks/{ceF1L-gS.js → BWbAywHh.js} +1 -1
- package/web/app/immutable/chunks/{hRTaoCvf.js → BWcjZ4Fj.js} +1 -1
- package/web/app/immutable/chunks/{OyCLeO1d.js → BXBvjtiY.js} +1 -1
- package/web/app/immutable/chunks/{C-_Lx3Nm.js → BXpZ7iBl.js} +1 -1
- package/web/app/immutable/chunks/{B5oIPQ5b.js → BYzh_tA7.js} +1 -1
- package/web/app/immutable/chunks/{DCOf4rfq.js → B_-41aBJ.js} +1 -1
- package/web/app/immutable/chunks/{D5fTH_R4.js → Bax3V5fr.js} +1 -1
- package/web/app/immutable/chunks/{B6eIRRKX.js → Bbx-xmDT.js} +2 -2
- package/web/app/immutable/chunks/{DQuLjWyg.js → Bdisv45z.js} +1 -1
- package/web/app/immutable/chunks/{9zOi9r5I.js → Bdq4y4cj.js} +1 -1
- package/web/app/immutable/chunks/{BJ4sw9rR.js → BeMtjFt-.js} +1 -1
- package/web/app/immutable/chunks/{Dcd40P4V.js → BgFp_75_.js} +1 -1
- package/web/app/immutable/chunks/{vgvfRyJV.js → BgRO_jMm.js} +1 -1
- package/web/app/immutable/chunks/{DkkZo56B.js → Bh0pGToL.js} +1 -1
- package/web/app/immutable/chunks/{3DUg3Vrc.js → BiVCDDwc.js} +1 -1
- package/web/app/immutable/chunks/{BS0GmsgM.js → BigTi-DL.js} +1 -1
- package/web/app/immutable/chunks/{Cnntv_QI.js → BiwSch_R.js} +1 -1
- package/web/app/immutable/chunks/{DaVLGnNn.js → BjVdTOP4.js} +1 -1
- package/web/app/immutable/chunks/{4fLmPVdQ.js → BjlLvkns.js} +1 -1
- package/web/app/immutable/chunks/{DsPTvO1D.js → BlLJ5NFL.js} +1 -1
- package/web/app/immutable/chunks/{Da2MW7PY.js → Bmj12UUL.js} +1 -1
- package/web/app/immutable/chunks/{DdSHHwG-.js → BmnyoS7_.js} +1 -1
- package/web/app/immutable/chunks/{BIQ14Jou.js → BoRMZRdC.js} +1 -1
- package/web/app/immutable/chunks/{CSDwAwlx.js → Bp-VyqNC.js} +1 -1
- package/web/app/immutable/chunks/{BYO1ou6X.js → BpwAjMRH.js} +1 -1
- package/web/app/immutable/chunks/{BszXPYBq.js → Bt7pQW1u.js} +1 -1
- package/web/app/immutable/chunks/{BlsliAvk.js → BwKG6cFP.js} +1 -1
- package/web/app/immutable/chunks/{IsZH9joj.js → BzK5IDDm.js} +1 -1
- package/web/app/immutable/chunks/{DifK42p0.js → BzZzLv4Q.js} +1 -1
- package/web/app/immutable/chunks/{HZ9TCfKK.js → Bzfr2EHI.js} +1 -1
- package/web/app/immutable/chunks/{DXBnJ5oH.js → C0Xfm4kR.js} +1 -1
- package/web/app/immutable/chunks/{Cbew16AD.js → C1enlV3Q.js} +1 -1
- package/web/app/immutable/chunks/{DhPqduTn.js → C35re5In.js} +1 -1
- package/web/app/immutable/chunks/{bl5nff1M.js → C3gqOCHk.js} +1 -1
- package/web/app/immutable/chunks/{C12ljpSn.js → C70D7FhU.js} +1 -1
- package/web/app/immutable/chunks/{CUHqJ1Vg.js → C7XJXaB7.js} +4 -4
- package/web/app/immutable/chunks/{CNgwOiTE.js → C8B0zONc.js} +1 -1
- package/web/app/immutable/chunks/{D4uvglha.js → C96vib0x.js} +1 -1
- package/web/app/immutable/chunks/{Co5bimwo.js → CCVYeY-e.js} +1 -1
- package/web/app/immutable/chunks/{XHXZbc0Q.js → CFhL5yzr.js} +1 -1
- package/web/app/immutable/chunks/{C7lasS44.js → CFkpeGQ5.js} +1 -1
- package/web/app/immutable/chunks/{D7LYGcjf.js → CFtzUtOD.js} +1 -1
- package/web/app/immutable/chunks/{CPjC-KKN.js → CGwcLPH6.js} +1 -1
- package/web/app/immutable/chunks/{CGuBCqy6.js → CHOnTvs1.js} +1 -1
- package/web/app/immutable/chunks/{B8PxK7sP.js → CJtCxj01.js} +1 -1
- package/web/app/immutable/chunks/{DlNogvkm.js → CNRbDA27.js} +1 -1
- package/web/app/immutable/chunks/{DV_c4cZz.js → CNqgoGJU.js} +1 -1
- package/web/app/immutable/chunks/{IH85nSha.js → COSepW13.js} +1 -1
- package/web/app/immutable/chunks/{DHnebSEV.js → COgZvOvQ.js} +1 -1
- package/web/app/immutable/chunks/{EbPgJF03.js → CP9ivNHa.js} +1 -1
- package/web/app/immutable/chunks/{GVSL2sGk.js → CPHJOAlO.js} +1 -1
- package/web/app/immutable/chunks/{CDvr6QES.js → CPnIka8O.js} +1 -1
- package/web/app/immutable/chunks/{BXyNrc2B.js → CQANJb_H.js} +1 -1
- package/web/app/immutable/chunks/{D0ArSCdC.js → CROLa_Im.js} +1 -1
- package/web/app/immutable/chunks/{OXVbQQSu.js → CTknV-EG.js} +1 -1
- package/web/app/immutable/chunks/{BAp1A2ZH.js → CV4M1NA3.js} +1 -1
- package/web/app/immutable/chunks/{CPY58-tp.js → CVnLnlH1.js} +1 -1
- package/web/app/immutable/chunks/{DS2QhtLm.js → CVtHgVrS.js} +1 -1
- package/web/app/immutable/chunks/{Bvd0DfwC.js → CWqKPDkJ.js} +1 -1
- package/web/app/immutable/chunks/{DMVl8bez.js → CZNy5do6.js} +1 -1
- package/web/app/immutable/chunks/{CbIRB05A.js → CZucG27k.js} +12 -12
- package/web/app/immutable/chunks/CZyKzFn6.js +1 -0
- package/web/app/immutable/chunks/C_bpTLt9.js +1 -0
- package/web/app/immutable/chunks/{BEpQx2rq.js → C_f5SDUL.js} +1 -1
- package/web/app/immutable/chunks/{CZ8DhcrQ.js → C_ny7WcD.js} +1 -1
- package/web/app/immutable/chunks/{WSPGY2Jm.js → Cce8c6OS.js} +1 -1
- package/web/app/immutable/chunks/{i4rQF8gq.js → Cfc1whKN.js} +1 -1
- package/web/app/immutable/chunks/{CLi8c-Jc.js → CgSWRIvD.js} +1 -1
- package/web/app/immutable/chunks/{Bfba9qCM.js → CgXne1WE.js} +1 -1
- package/web/app/immutable/chunks/{Da7V4qRA.js → ChCN1Gu-.js} +1 -1
- package/web/app/immutable/chunks/{BQpZAVZ0.js → Ci1iDxHS.js} +1 -1
- package/web/app/immutable/chunks/{DD4J0jul.js → CiFdZ1u1.js} +1 -1
- package/web/app/immutable/chunks/{DTNUQDFX.js → CjyVjWQm.js} +1 -1
- package/web/app/immutable/chunks/{Kn9ZbRDu.js → CkLrBTU_.js} +1 -1
- package/web/app/immutable/chunks/{COO6ldt4.js → Cki2vNyW.js} +1 -1
- package/web/app/immutable/chunks/{BMYSQl-k.js → ClT9lHTq.js} +1 -1
- package/web/app/immutable/chunks/{B3Wey9bw.js → CoW2v1qV.js} +1 -1
- package/web/app/immutable/chunks/{B6lWPidK.js → CodBnHd8.js} +1 -1
- package/web/app/immutable/chunks/{D76YpzZQ.js → Cp-IRK5Y.js} +1 -1
- package/web/app/immutable/chunks/CqyTmKyd.js +1 -0
- package/web/app/immutable/chunks/{vSkHI-FK.js → CsfjhBJJ.js} +2 -2
- package/web/app/immutable/chunks/{C1WXXen7.js → CtZw5rYt.js} +1 -1
- package/web/app/immutable/chunks/{iqwxOx7o.js → CuiSWPlc.js} +1 -1
- package/web/app/immutable/chunks/{C1X9EbCK.js → Cujcdo3J.js} +3 -3
- package/web/app/immutable/chunks/{HtolvgCH.js → Cv4LBZVV.js} +1 -1
- package/web/app/immutable/chunks/{BodHilN5.js → CwChgvHr.js} +1 -1
- package/web/app/immutable/chunks/{BgOj6lPu.js → CwFEdD3h.js} +1 -1
- package/web/app/immutable/chunks/{4gwN8kRi.js → D-4WuS6g.js} +1 -1
- package/web/app/immutable/chunks/{XJEHWeE3.js → D-qjRHfG.js} +1 -1
- package/web/app/immutable/chunks/{BMQBnpVJ.js → D0Jvqbyo.js} +1 -1
- package/web/app/immutable/chunks/{B9Ccf4_O.js → D0MGMinc.js} +1 -1
- package/web/app/immutable/chunks/{D16yE-CH.js → D3MP9WT1.js} +2 -2
- package/web/app/immutable/chunks/{Dzmm4LX6.js → D4V4ch-K.js} +2 -2
- package/web/app/immutable/chunks/{CDhg3msv.js → D56uFwAO.js} +2 -2
- package/web/app/immutable/chunks/{Db2Jl7w7.js → D66Wwf7O.js} +1 -1
- package/web/app/immutable/chunks/D7ppHbEC.js +1 -0
- package/web/app/immutable/chunks/{DVdgjGW2.js → D9uk5SNv.js} +1 -1
- package/web/app/immutable/chunks/{B48wzP5i.js → DC3B_5LT.js} +1 -1
- package/web/app/immutable/chunks/{CRrFC3B8.js → DCJF1EsI.js} +1 -1
- package/web/app/immutable/chunks/{BROObX9U.js → DCn-eN19.js} +1 -1
- package/web/app/immutable/chunks/{Buh7J53B.js → DGIV4Vo-.js} +1 -1
- package/web/app/immutable/chunks/{CH2B1dsg.js → DHwoF-g6.js} +1 -1
- package/web/app/immutable/chunks/{DrPWazGq.js → DI6jgBJE.js} +1 -1
- package/web/app/immutable/chunks/{DeLItg2s.js → DJy3Z5wg.js} +1 -1
- package/web/app/immutable/chunks/{BAj9Av-i.js → DK3sBN-X.js} +1 -1
- package/web/app/immutable/chunks/{CZwN60O3.js → DKy3ij-K.js} +1 -1
- package/web/app/immutable/chunks/{BGkKDEs0.js → DMgU3Vk3.js} +1 -1
- package/web/app/immutable/chunks/{CltuTtDv.js → DN1kdXB2.js} +1 -1
- package/web/app/immutable/chunks/{BAkYMES1.js → DNFzjXTg.js} +1 -1
- package/web/app/immutable/chunks/{DRDTrHX3.js → DOiBG4Xt.js} +1 -1
- package/web/app/immutable/chunks/{C1l_AdDU.js → DPcZSvbx.js} +1 -1
- package/web/app/immutable/chunks/{B87_3X7t.js → DQI5zOsq.js} +1 -1
- package/web/app/immutable/chunks/{hmNmIDzu.js → DSFNjfq2.js} +1 -1
- package/web/app/immutable/chunks/{SAoHFFQz.js → DUfd5L3a.js} +1 -1
- package/web/app/immutable/chunks/{D8Uhwh7R.js → DVzpe44v.js} +1 -1
- package/web/app/immutable/chunks/{BgasfqLM.js → DWMg25J9.js} +1 -1
- package/web/app/immutable/chunks/{9cOnZvFz.js → DWtjDbhy.js} +1 -1
- package/web/app/immutable/chunks/{CrxGBxMK.js → D_ZD5RNe.js} +1 -1
- package/web/app/immutable/chunks/{CVxBES9o.js → DbMr_M0v.js} +1 -1
- package/web/app/immutable/chunks/{B82ywBwW.js → DbX7gvUZ.js} +1 -1
- package/web/app/immutable/chunks/{C-d_8VyS.js → Dbym7Ujf.js} +2 -2
- package/web/app/immutable/chunks/{B4qnea7H.js → Dd1JOibt.js} +1 -1
- package/web/app/immutable/chunks/{BnfhlAnU.js → De5x5gzU.js} +1 -1
- package/web/app/immutable/chunks/{CbBwTVsV.js → DefRdJrZ.js} +1 -1
- package/web/app/immutable/chunks/{HpSr1h8y.js → DfP8-E4c.js} +1 -1
- package/web/app/immutable/chunks/{D0fcdSwZ.js → Dj891R26.js} +3 -3
- package/web/app/immutable/chunks/{BzNn-vV2.js → Djzf9L5n.js} +1 -1
- package/web/app/immutable/chunks/{B58e63dk.js → Dk5pYfFx.js} +1 -1
- package/web/app/immutable/chunks/{B8u7Bszh.js → DkCcVZv8.js} +1 -1
- package/web/app/immutable/chunks/{vj4vOyOm.js → DkVzCi0x.js} +1 -1
- package/web/app/immutable/chunks/{Cs1vro6u.js → DkwBBG07.js} +1 -1
- package/web/app/immutable/chunks/{CGtiJZ6Q.js → DlUEqLkC.js} +2 -2
- package/web/app/immutable/chunks/{DBGsU6bn.js → DliR8x2J.js} +1 -1
- package/web/app/immutable/chunks/{CMbQPqLg.js → Dnr4oHmH.js} +1 -1
- package/web/app/immutable/chunks/{CacD4jQL.js → Do4lV0Gm.js} +1 -1
- package/web/app/immutable/chunks/{CmSGn2AH.js → Dp-INXxI.js} +1 -1
- package/web/app/immutable/chunks/{61CqOAVf.js → DqpQ10ho.js} +3 -3
- package/web/app/immutable/chunks/{DgGohlQK.js → DrMo8olQ.js} +1 -1
- package/web/app/immutable/chunks/{D8eSz7L_.js → Drru83uz.js} +1 -1
- package/web/app/immutable/chunks/{CYYbdMIM.js → DsGIBuOx.js} +1 -1
- package/web/app/immutable/chunks/{j5tG0B2t.js → DuIO-fff.js} +1 -1
- package/web/app/immutable/chunks/{vJ7Dp7-k.js → DvLxeXQt.js} +1 -1
- package/web/app/immutable/chunks/{fEnLQxJ4.js → DxKz2kXi.js} +1 -1
- package/web/app/immutable/chunks/{Cep-BDRS.js → DxwEJH0_.js} +1 -1
- package/web/app/immutable/chunks/{DoWpanLy.js → EFc0Q3Ph.js} +1 -1
- package/web/app/immutable/chunks/{jK-m9hL8.js → FoPHB-pC.js} +1 -1
- package/web/app/immutable/chunks/{Bw0E8NsL.js → Ghi6Ot-2.js} +1 -1
- package/web/app/immutable/chunks/{DNBLhM9P.js → GvPMNA5h.js} +1 -1
- package/web/app/immutable/chunks/{B3I1nFXA.js → KLtatjN6.js} +1 -1
- package/web/app/immutable/chunks/{Cx8Xjey1.js → KRzw34LA.js} +3 -3
- package/web/app/immutable/chunks/{_L5AdDNH.js → NA-6snAa.js} +1 -1
- package/web/app/immutable/chunks/{hwFphMxp.js → NeYI0LTt.js} +1 -1
- package/web/app/immutable/chunks/{tSZXsoGb.js → Oljw-CHa.js} +1 -1
- package/web/app/immutable/chunks/{CZkLaz_S.js → Onx6XErR.js} +3 -3
- package/web/app/immutable/chunks/{6J2j9GGS.js → P8wRK4co.js} +1 -1
- package/web/app/immutable/chunks/{DLHLuX0B.js → RQbokbVe.js} +1 -1
- package/web/app/immutable/chunks/{B1s_9zgm.js → S5Sbp0zl.js} +2 -2
- package/web/app/immutable/chunks/{DXIggtiA.js → StdfQQmZ.js} +1 -1
- package/web/app/immutable/chunks/{DjaIRWIW.js → VW0lVlpA.js} +1 -1
- package/web/app/immutable/chunks/{DR5IxY_q.js → WJn4wQtU.js} +1 -1
- package/web/app/immutable/chunks/{gWBpiwO7.js → WXBZRbJY.js} +1 -1
- package/web/app/immutable/chunks/{C_Q5e0bX.js → XQd1JSku.js} +1 -1
- package/web/app/immutable/chunks/{6cjeTxFJ.js → YpeHZXNr.js} +1 -1
- package/web/app/immutable/chunks/{AnpLuuuk.js → ZlqIk0xQ.js} +1 -1
- package/web/app/immutable/chunks/{CzoxGXV9.js → _JYhOJCj.js} +1 -1
- package/web/app/immutable/chunks/{Ci51i12B.js → _OiZv6Vf.js} +1 -1
- package/web/app/immutable/chunks/{xeIBXGKb.js → aSeQxvml.js} +1 -1
- package/web/app/immutable/chunks/{Dbd3M4VX.js → cFAs9x9A.js} +4 -4
- package/web/app/immutable/chunks/{ztG-0WIA.js → cIN3tPpg.js} +1 -1
- package/web/app/immutable/chunks/{DevaRANM.js → cVQbeQMu.js} +3 -3
- package/web/app/immutable/chunks/{CWr4n77L.js → eM0lx0Fs.js} +3 -3
- package/web/app/immutable/chunks/{CaZWRaBD.js → eSVAw_jr.js} +1 -1
- package/web/app/immutable/chunks/{D6eYnkBB.js → elwoNDMK.js} +1 -1
- package/web/app/immutable/chunks/{iYz7qSVO.js → fSyO2umz.js} +1 -1
- package/web/app/immutable/chunks/{Dfo7IcH5.js → g6dwab4X.js} +1 -1
- package/web/app/immutable/chunks/{BR9y4bsr.js → gqGuWn1w.js} +2 -2
- package/web/app/immutable/chunks/{xpT8lZyG.js → i5dViSDM.js} +2 -2
- package/web/app/immutable/chunks/{BM7Fn-M6.js → iJ00-f4f.js} +1 -1
- package/web/app/immutable/chunks/{Bz6dDdb9.js → k-x0h0G_.js} +1 -1
- package/web/app/immutable/chunks/{DEo3brV5.js → mDC9F6Wl.js} +2 -2
- package/web/app/immutable/chunks/{CfdX4Lfl.js → mNUHj1rI.js} +1 -1
- package/web/app/immutable/chunks/{Qg7vTeHw.js → nLAho21u.js} +1 -1
- package/web/app/immutable/chunks/{DlySFqed.js → o0XOKzhL.js} +1 -1
- package/web/app/immutable/chunks/{CUolE7JW.js → otE5vrME.js} +1 -1
- package/web/app/immutable/chunks/{42Hi6Nev.js → qXbpTVv4.js} +1 -1
- package/web/app/immutable/chunks/{D62BIRhv.js → szbQDjlS.js} +1 -1
- package/web/app/immutable/chunks/{D529OnQb.js → u0caEYlz.js} +1 -1
- package/web/app/immutable/chunks/{DUy6xMdY.js → vydwWxv4.js} +1 -1
- package/web/app/immutable/chunks/{CYqtKpzf.js → wm8arB5J.js} +1 -1
- package/web/app/immutable/chunks/{CLL457e6.js → xC5Mhger.js} +1 -1
- package/web/app/immutable/chunks/{Bi2Crhsq.js → xMccKwo6.js} +1 -1
- package/web/app/immutable/chunks/{CZd1y8kW.js → xS92bFN5.js} +1 -1
- package/web/app/immutable/entry/{app.RSzHSDgw.js → app.BaibgLwt.js} +3 -3
- package/web/app/immutable/entry/start.Co6iWbEi.js +1 -0
- package/web/app/immutable/nodes/{0.Da435p_w.js → 0.BTXCY2oK.js} +1 -1
- package/web/app/immutable/nodes/{1.D1nY11Eo.js → 1.DyWs24Kf.js} +1 -1
- package/web/app/immutable/nodes/{10.C15wfgwX.js → 10.Do5sGDsB.js} +1 -1
- package/web/app/immutable/nodes/{11.TMR29QT0.js → 11.Dg8bLTdG.js} +1 -1
- package/web/app/immutable/nodes/{12.Dkcg23hr.js → 12.Bgh3OszP.js} +1 -1
- package/web/app/immutable/nodes/{13.BANT9s8o.js → 13.B7xRzQQj.js} +3 -3
- package/web/app/immutable/nodes/14.B61dmkg6.js +3 -0
- package/web/app/immutable/nodes/{15.BXSdgmt8.js → 15.JAWW7FfP.js} +1 -1
- package/web/app/immutable/nodes/{16.Cp3myrhK.js → 16.B1iP7QfQ.js} +1 -1
- package/web/app/immutable/nodes/{17.AJ0Z4n7s.js → 17.D5xXxywZ.js} +1 -1
- package/web/app/immutable/nodes/{18.BYytq5r4.js → 18.C1KajwpW.js} +2 -2
- package/web/app/immutable/nodes/{2.B_tahnsH.js → 2.DXqEHhPy.js} +4 -4
- package/web/app/immutable/nodes/{3.l2wlNZto.js → 3.BA7C_i6W.js} +1 -1
- package/web/app/immutable/nodes/{4.DSLW-lsR.js → 4.COIJYDGD.js} +1 -1
- package/web/app/immutable/nodes/{5.DaH-2DbB.js → 5.CPq3hRgd.js} +1 -1
- package/web/app/immutable/nodes/{6.CWNY9M3R.js → 6.CgfGy-y1.js} +1 -1
- package/web/app/immutable/nodes/{7.DI6SUPGK.js → 7.CIkuIOzY.js} +1 -1
- package/web/app/immutable/nodes/{8.j51qyATM.js → 8.C8xVLEh-.js} +4 -4
- package/web/app/immutable/nodes/{9.C4rF4IYL.js → 9.BUk--8nH.js} +5 -5
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +49 -49
- package/web/index.html +18 -18
- package/web/app/immutable/assets/14.CU62PBbE.css +0 -1
- package/web/app/immutable/chunks/A4OD-mjJ.js +0 -1
- package/web/app/immutable/chunks/BUAFIktJ.js +0 -1
- package/web/app/immutable/chunks/C5H4Pe0T.js +0 -1
- package/web/app/immutable/chunks/Ce8ODqPP.js +0 -1
- package/web/app/immutable/entry/start.BVuekftv.js +0 -1
- package/web/app/immutable/nodes/14.DChhRykH.js +0 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{U as be,aZ as we,Y as _e,b0 as De,V as Se,a_ as Ce,b as l,X as dt,aW as vt,B as Me,L as U,ay as st,z as Ee,P as Ie,r as $e,bh as Ye}from"./DEo5mzFE.js";import{g as It}from"./BdWqymET.js";import{t as Ae,d as Fe,m as Le,l as Oe,h as We,g as Zt,p as Qt,u as Pe,q as Ve,i as ze,v as Re,x as Ne,w as He,n as Be,e as Kt,j as Jt,k as te,s as ee,a as re}from"./BodHilN5.js";function qe(t){return t}var Tt=1,Yt=2,Ft=3,xt=4,se=1e-6;function Ge(t){return"translate("+t+",0)"}function Xe(t){return"translate(0,"+t+")"}function je(t){return e=>+t(e)}function Ue(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),s=>+t(s)+e}function Ze(){return!this.__axis}function de(t,e){var s=[],r=null,i=null,g=6,y=6,b=3,S=typeof window<"u"&&window.devicePixelRatio>1?0:.5,L=t===Tt||t===xt?-1:1,_=t===xt||t===Yt?"x":"y",W=t===Tt||t===Ft?Ge:Xe;function w(D){var N=r??(e.ticks?e.ticks.apply(e,s):e.domain()),V=i??(e.tickFormat?e.tickFormat.apply(e,s):qe),k=Math.max(g,0)+b,M=e.range(),P=+M[0]+S,O=+M[M.length-1]+S,B=(e.bandwidth?Ue:je)(e.copy(),S),H=D.selection?D.selection():D,I=H.selectAll(".domain").data([null]),x=H.selectAll(".tick").data(N,e).order(),h=x.exit(),E=x.enter().append("g").attr("class","tick"),f=x.select("line"),T=x.select("text");I=I.merge(I.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),x=x.merge(E),f=f.merge(E.append("line").attr("stroke","currentColor").attr(_+"2",L*g)),T=T.merge(E.append("text").attr("fill","currentColor").attr(_,L*k).attr("dy",t===Tt?"0em":t===Ft?"0.71em":"0.32em")),D!==H&&(I=I.transition(D),x=x.transition(D),f=f.transition(D),T=T.transition(D),h=h.transition(D).attr("opacity",se).attr("transform",function(v){return isFinite(v=B(v))?W(v+S):this.getAttribute("transform")}),E.attr("opacity",se).attr("transform",function(v){var p=this.parentNode.__axis;return W((p&&isFinite(p=p(v))?p:B(v))+S)})),h.remove(),I.attr("d",t===xt||t===Yt?y?"M"+L*y+","+P+"H"+S+"V"+O+"H"+L*y:"M"+S+","+P+"V"+O:y?"M"+P+","+L*y+"V"+S+"H"+O+"V"+L*y:"M"+P+","+S+"H"+O),x.attr("opacity",1).attr("transform",function(v){return W(B(v)+S)}),f.attr(_+"2",L*g),T.attr(_,L*k).text(V),H.filter(Ze).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Yt?"start":t===xt?"end":"middle"),H.each(function(){this.__axis=B})}return w.scale=function(D){return arguments.length?(e=D,w):e},w.ticks=function(){return s=Array.from(arguments),w},w.tickArguments=function(D){return arguments.length?(s=D==null?[]:Array.from(D),w):s.slice()},w.tickValues=function(D){return arguments.length?(r=D==null?null:Array.from(D),w):r&&r.slice()},w.tickFormat=function(D){return arguments.length?(i=D,w):i},w.tickSize=function(D){return arguments.length?(g=y=+D,w):g},w.tickSizeInner=function(D){return arguments.length?(g=+D,w):g},w.tickSizeOuter=function(D){return arguments.length?(y=+D,w):y},w.tickPadding=function(D){return arguments.length?(b=+D,w):b},w.offset=function(D){return arguments.length?(S=+D,w):S},w}function Qe(t){return de(Tt,t)}function Ke(t){return de(Ft,t)}var bt={exports:{}},Je=bt.exports,ne;function tr(){return ne||(ne=1,(function(t,e){(function(s,r){t.exports=r()})(Je,(function(){var s="day";return function(r,i,g){var y=function(L){return L.add(4-L.isoWeekday(),s)},b=i.prototype;b.isoWeekYear=function(){return y(this).year()},b.isoWeek=function(L){if(!this.$utils().u(L))return this.add(7*(L-this.isoWeek()),s);var _,W,w,D,N=y(this),V=(_=this.isoWeekYear(),W=this.$u,w=(W?g.utc:g)().year(_).startOf("year"),D=4-w.isoWeekday(),w.isoWeekday()>4&&(D+=7),w.add(D,s));return N.diff(V,"week")+1},b.isoWeekday=function(L){return this.$utils().u(L)?this.day()||7:this.day(this.day()%7?L:L-7)};var S=b.startOf;b.startOf=function(L,_){var W=this.$utils(),w=!!W.u(_)||_;return W.p(L)==="isoweek"?w?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):S.bind(this)(L,_)}}}))})(bt)),bt.exports}var er=tr();const rr=It(er);var wt={exports:{}},sr=wt.exports,ie;function nr(){return ie||(ie=1,(function(t,e){(function(s,r){t.exports=r()})(sr,(function(){var s={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,g=/\d\d/,y=/\d\d?/,b=/\d*[^-_:/,()\s\d]+/,S={},L=function(k){return(k=+k)+(k>68?1900:2e3)},_=function(k){return function(M){this[k]=+M}},W=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=(function(M){if(!M||M==="Z")return 0;var P=M.match(/([+-]|\d\d)/g),O=60*P[1]+(+P[2]||0);return O===0?0:P[0]==="+"?-O:O})(k)}],w=function(k){var M=S[k];return M&&(M.indexOf?M:M.s.concat(M.f))},D=function(k,M){var P,O=S.meridiem;if(O){for(var B=1;B<=24;B+=1)if(k.indexOf(O(B,0,M))>-1){P=B>12;break}}else P=k===(M?"pm":"PM");return P},N={A:[b,function(k){this.afternoon=D(k,!1)}],a:[b,function(k){this.afternoon=D(k,!0)}],Q:[i,function(k){this.month=3*(k-1)+1}],S:[i,function(k){this.milliseconds=100*+k}],SS:[g,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],s:[y,_("seconds")],ss:[y,_("seconds")],m:[y,_("minutes")],mm:[y,_("minutes")],H:[y,_("hours")],h:[y,_("hours")],HH:[y,_("hours")],hh:[y,_("hours")],D:[y,_("day")],DD:[g,_("day")],Do:[b,function(k){var M=S.ordinal,P=k.match(/\d+/);if(this.day=P[0],M)for(var O=1;O<=31;O+=1)M(O).replace(/\[|\]/g,"")===k&&(this.day=O)}],w:[y,_("week")],ww:[g,_("week")],M:[y,_("month")],MM:[g,_("month")],MMM:[b,function(k){var M=w("months"),P=(w("monthsShort")||M.map((function(O){return O.slice(0,3)}))).indexOf(k)+1;if(P<1)throw new Error;this.month=P%12||P}],MMMM:[b,function(k){var M=w("months").indexOf(k)+1;if(M<1)throw new Error;this.month=M%12||M}],Y:[/[+-]?\d+/,_("year")],YY:[g,function(k){this.year=L(k)}],YYYY:[/\d{4}/,_("year")],Z:W,ZZ:W};function V(k){var M,P;M=k,P=S&&S.formats;for(var O=(k=M.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(f,T,v){var p=v&&v.toUpperCase();return T||P[v]||s[v]||P[p].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(a,d,m){return d||m.slice(1)}))}))).match(r),B=O.length,H=0;H<B;H+=1){var I=O[H],x=N[I],h=x&&x[0],E=x&&x[1];O[H]=E?{regex:h,parser:E}:I.replace(/^\[|\]$/g,"")}return function(f){for(var T={},v=0,p=0;v<B;v+=1){var a=O[v];if(typeof a=="string")p+=a.length;else{var d=a.regex,m=a.parser,u=f.slice(p),C=d.exec(u)[0];m.call(T,C),f=f.replace(C,"")}}return(function(n){var $=n.afternoon;if($!==void 0){var o=n.hours;$?o<12&&(n.hours+=12):o===12&&(n.hours=0),delete n.afternoon}})(T),T}}return function(k,M,P){P.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(L=k.parseTwoDigitYear);var O=M.prototype,B=O.parse;O.parse=function(H){var I=H.date,x=H.utc,h=H.args;this.$u=x;var E=h[1];if(typeof E=="string"){var f=h[2]===!0,T=h[3]===!0,v=f||T,p=h[2];T&&(p=h[2]),S=this.$locale(),!f&&p&&(S=P.Ls[p]),this.$d=(function(u,C,n,$){try{if(["x","X"].indexOf(C)>-1)return new Date((C==="X"?1e3:1)*u);var o=V(C)(u),G=o.year,c=o.month,Y=o.day,A=o.hours,R=o.minutes,F=o.seconds,q=o.milliseconds,z=o.zone,nt=o.week,at=new Date,yt=Y||(G||c?1:at.getDate()),lt=G||at.getFullYear(),X=0;G&&!c||(X=c>0?c-1:at.getMonth());var K,Z=A||0,ot=R||0,J=F||0,it=q||0;return z?new Date(Date.UTC(lt,X,yt,Z,ot,J,it+60*z.offset*1e3)):n?new Date(Date.UTC(lt,X,yt,Z,ot,J,it)):(K=new Date(lt,X,yt,Z,ot,J,it),nt&&(K=$(K).week(nt).toDate()),K)}catch{return new Date("")}})(I,E,x,P),this.init(),p&&p!==!0&&(this.$L=this.locale(p).$L),v&&I!=this.format(E)&&(this.$d=new Date("")),S={}}else if(E instanceof Array)for(var a=E.length,d=1;d<=a;d+=1){h[1]=E[d-1];var m=P.apply(this,h);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}d===a&&(this.$d=new Date(""))}else B.call(this,H)}}}))})(wt)),wt.exports}var ir=nr();const ar=It(ir);var _t={exports:{}},or=_t.exports,ae;function cr(){return ae||(ae=1,(function(t,e){(function(s,r){t.exports=r()})(or,(function(){return function(s,r){var i=r.prototype,g=i.format;i.format=function(y){var b=this,S=this.$locale();if(!this.isValid())return g.bind(this)(y);var L=this.$utils(),_=(y||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(W){switch(W){case"Q":return Math.ceil((b.$M+1)/3);case"Do":return S.ordinal(b.$D);case"gggg":return b.weekYear();case"GGGG":return b.isoWeekYear();case"wo":return S.ordinal(b.week(),"W");case"w":case"ww":return L.s(b.week(),W==="w"?1:2,"0");case"W":case"WW":return L.s(b.isoWeek(),W==="W"?1:2,"0");case"k":case"kk":return L.s(String(b.$H===0?24:b.$H),W==="k"?1:2,"0");case"X":return Math.floor(b.$d.getTime()/1e3);case"x":return b.$d.getTime();case"z":return"["+b.offsetName()+"]";case"zzz":return"["+b.offsetName("long")+"]";default:return W}}));return g.bind(this)(_)}}}))})(_t)),_t.exports}var lr=cr();const ur=It(lr);var Dt={exports:{}},dr=Dt.exports,oe;function fr(){return oe||(oe=1,(function(t,e){(function(s,r){t.exports=r()})(dr,(function(){var s,r,i=1e3,g=6e4,y=36e5,b=864e5,S=31536e6,L=2628e6,_=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,W=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,w={years:S,months:L,days:b,hours:y,minutes:g,seconds:i,milliseconds:1,weeks:6048e5},D=function(I){return I instanceof B},N=function(I,x,h){return new B(I,h,x.$l)},V=function(I){return r.p(I)+"s"},k=function(I){return I<0},M=function(I){return k(I)?Math.ceil(I):Math.floor(I)},P=function(I){return Math.abs(I)},O=function(I,x){return I?k(I)?{negative:!0,format:""+P(I)+x}:{negative:!1,format:""+I+x}:{negative:!1,format:""}},B=(function(){function I(h,E,f){var T=this;if(this.$d={},this.$l=f,h===void 0&&(this.$ms=0,this.parseFromMilliseconds()),E)return N(h*w[V(E)],this);if(typeof h=="number")return this.$ms=h,this.parseFromMilliseconds(),this;if(typeof h=="object")return Object.keys(h).forEach((function(a){T.$d[V(a)]=h[a]})),this.calMilliseconds(),this;if(typeof h=="string"){var v=h.match(_);if(v){var p=v.slice(2).map((function(a){return a!=null?Number(a):0}));return this.$d.years=p[0],this.$d.months=p[1],this.$d.weeks=p[2],this.$d.days=p[3],this.$d.hours=p[4],this.$d.minutes=p[5],this.$d.seconds=p[6],this.calMilliseconds(),this}}return this}var x=I.prototype;return x.calMilliseconds=function(){var h=this;this.$ms=Object.keys(this.$d).reduce((function(E,f){return E+(h.$d[f]||0)*w[f]}),0)},x.parseFromMilliseconds=function(){var h=this.$ms;this.$d.years=M(h/S),h%=S,this.$d.months=M(h/L),h%=L,this.$d.days=M(h/b),h%=b,this.$d.hours=M(h/y),h%=y,this.$d.minutes=M(h/g),h%=g,this.$d.seconds=M(h/i),h%=i,this.$d.milliseconds=h},x.toISOString=function(){var h=O(this.$d.years,"Y"),E=O(this.$d.months,"M"),f=+this.$d.days||0;this.$d.weeks&&(f+=7*this.$d.weeks);var T=O(f,"D"),v=O(this.$d.hours,"H"),p=O(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3,a=Math.round(1e3*a)/1e3);var d=O(a,"S"),m=h.negative||E.negative||T.negative||v.negative||p.negative||d.negative,u=v.format||p.format||d.format?"T":"",C=(m?"-":"")+"P"+h.format+E.format+T.format+u+v.format+p.format+d.format;return C==="P"||C==="-P"?"P0D":C},x.toJSON=function(){return this.toISOString()},x.format=function(h){var E=h||"YYYY-MM-DDTHH:mm:ss",f={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return E.replace(W,(function(T,v){return v||String(f[T])}))},x.as=function(h){return this.$ms/w[V(h)]},x.get=function(h){var E=this.$ms,f=V(h);return f==="milliseconds"?E%=1e3:E=f==="weeks"?M(E/w[f]):this.$d[f],E||0},x.add=function(h,E,f){var T;return T=E?h*w[V(E)]:D(h)?h.$ms:N(h,this).$ms,N(this.$ms+T*(f?-1:1),this)},x.subtract=function(h,E){return this.add(h,E,!0)},x.locale=function(h){var E=this.clone();return E.$l=h,E},x.clone=function(){return N(this.$ms,this)},x.humanize=function(h){return s().add(this.$ms,"ms").locale(this.$l).fromNow(!h)},x.valueOf=function(){return this.asMilliseconds()},x.milliseconds=function(){return this.get("milliseconds")},x.asMilliseconds=function(){return this.as("milliseconds")},x.seconds=function(){return this.get("seconds")},x.asSeconds=function(){return this.as("seconds")},x.minutes=function(){return this.get("minutes")},x.asMinutes=function(){return this.as("minutes")},x.hours=function(){return this.get("hours")},x.asHours=function(){return this.as("hours")},x.days=function(){return this.get("days")},x.asDays=function(){return this.as("days")},x.weeks=function(){return this.get("weeks")},x.asWeeks=function(){return this.as("weeks")},x.months=function(){return this.get("months")},x.asMonths=function(){return this.as("months")},x.years=function(){return this.get("years")},x.asYears=function(){return this.as("years")},I})(),H=function(I,x,h){return I.add(x.years()*h,"y").add(x.months()*h,"M").add(x.days()*h,"d").add(x.hours()*h,"h").add(x.minutes()*h,"m").add(x.seconds()*h,"s").add(x.milliseconds()*h,"ms")};return function(I,x,h){s=h,r=h().$utils(),h.duration=function(T,v){var p=h.locale();return N(T,{$l:p},v)},h.isDuration=D;var E=x.prototype.add,f=x.prototype.subtract;x.prototype.add=function(T,v){return D(T)?H(this,T,1):E.bind(this)(T,v)},x.prototype.subtract=function(T,v){return D(T)?H(this,T,-1):f.bind(this)(T,v)}}}))})(Dt)),Dt.exports}var hr=fr();const mr=It(hr);var Lt=(function(){var t=l(function(p,a,d,m){for(d=d||{},m=p.length;m--;d[p[m]]=a);return d},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],s=[1,26],r=[1,27],i=[1,28],g=[1,29],y=[1,30],b=[1,31],S=[1,32],L=[1,33],_=[1,34],W=[1,9],w=[1,10],D=[1,11],N=[1,12],V=[1,13],k=[1,14],M=[1,15],P=[1,16],O=[1,19],B=[1,20],H=[1,21],I=[1,22],x=[1,23],h=[1,25],E=[1,35],f={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:l(function(a,d,m,u,C,n,$){var o=n.length-1;switch(C){case 1:return n[o-1];case 2:this.$=[];break;case 3:n[o-1].push(n[o]),this.$=n[o-1];break;case 4:case 5:this.$=n[o];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setWeekend("friday");break;case 16:u.setWeekend("saturday");break;case 17:u.setDateFormat(n[o].substr(11)),this.$=n[o].substr(11);break;case 18:u.enableInclusiveEndDates(),this.$=n[o].substr(18);break;case 19:u.TopAxis(),this.$=n[o].substr(8);break;case 20:u.setAxisFormat(n[o].substr(11)),this.$=n[o].substr(11);break;case 21:u.setTickInterval(n[o].substr(13)),this.$=n[o].substr(13);break;case 22:u.setExcludes(n[o].substr(9)),this.$=n[o].substr(9);break;case 23:u.setIncludes(n[o].substr(9)),this.$=n[o].substr(9);break;case 24:u.setTodayMarker(n[o].substr(12)),this.$=n[o].substr(12);break;case 27:u.setDiagramTitle(n[o].substr(6)),this.$=n[o].substr(6);break;case 28:this.$=n[o].trim(),u.setAccTitle(this.$);break;case 29:case 30:this.$=n[o].trim(),u.setAccDescription(this.$);break;case 31:u.addSection(n[o].substr(8)),this.$=n[o].substr(8);break;case 33:u.addTask(n[o-1],n[o]),this.$="task";break;case 34:this.$=n[o-1],u.setClickEvent(n[o-1],n[o],null);break;case 35:this.$=n[o-2],u.setClickEvent(n[o-2],n[o-1],n[o]);break;case 36:this.$=n[o-2],u.setClickEvent(n[o-2],n[o-1],null),u.setLink(n[o-2],n[o]);break;case 37:this.$=n[o-3],u.setClickEvent(n[o-3],n[o-2],n[o-1]),u.setLink(n[o-3],n[o]);break;case 38:this.$=n[o-2],u.setClickEvent(n[o-2],n[o],null),u.setLink(n[o-2],n[o-1]);break;case 39:this.$=n[o-3],u.setClickEvent(n[o-3],n[o-1],n[o]),u.setLink(n[o-3],n[o-2]);break;case 40:this.$=n[o-1],u.setLink(n[o-1],n[o]);break;case 41:case 47:this.$=n[o-1]+" "+n[o];break;case 42:case 43:case 45:this.$=n[o-2]+" "+n[o-1]+" "+n[o];break;case 44:case 46:this.$=n[o-3]+" "+n[o-2]+" "+n[o-1]+" "+n[o];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:s,13:r,14:i,15:g,16:y,17:b,18:S,19:18,20:L,21:_,22:W,23:w,24:D,25:N,26:V,27:k,28:M,29:P,30:O,31:B,33:H,35:I,36:x,37:24,38:h,40:E},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:s,13:r,14:i,15:g,16:y,17:b,18:S,19:18,20:L,21:_,22:W,23:w,24:D,25:N,26:V,27:k,28:M,29:P,30:O,31:B,33:H,35:I,36:x,37:24,38:h,40:E},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:l(function(a,d){if(d.recoverable)this.trace(a);else{var m=new Error(a);throw m.hash=d,m}},"parseError"),parse:l(function(a){var d=this,m=[0],u=[],C=[null],n=[],$=this.table,o="",G=0,c=0,Y=2,A=1,R=n.slice.call(arguments,1),F=Object.create(this.lexer),q={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(q.yy[z]=this.yy[z]);F.setInput(a,q.yy),q.yy.lexer=F,q.yy.parser=this,typeof F.yylloc>"u"&&(F.yylloc={});var nt=F.yylloc;n.push(nt);var at=F.options&&F.options.ranges;typeof q.yy.parseError=="function"?this.parseError=q.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function yt(Q){m.length=m.length-2*Q,C.length=C.length-Q,n.length=n.length-Q}l(yt,"popStack");function lt(){var Q;return Q=u.pop()||F.lex()||A,typeof Q!="number"&&(Q instanceof Array&&(u=Q,Q=u.pop()),Q=d.symbols_[Q]||Q),Q}l(lt,"lex");for(var X,K,Z,ot,J={},it,tt,Ut,pt;;){if(K=m[m.length-1],this.defaultActions[K]?Z=this.defaultActions[K]:((X===null||typeof X>"u")&&(X=lt()),Z=$[K]&&$[K][X]),typeof Z>"u"||!Z.length||!Z[0]){var $t="";pt=[];for(it in $[K])this.terminals_[it]&&it>Y&&pt.push("'"+this.terminals_[it]+"'");F.showPosition?$t="Parse error on line "+(G+1)+`:
|
|
1
|
+
import{U as be,aZ as we,Y as _e,b0 as De,V as Se,a_ as Ce,b as l,X as dt,aW as vt,B as Me,L as U,ay as st,z as Ee,P as Ie,r as $e,bh as Ye}from"./B96uZ9bz.js";import{g as It}from"./BdWqymET.js";import{t as Ae,d as Fe,m as Le,l as Oe,h as We,g as Zt,p as Qt,u as Pe,q as Ve,i as ze,v as Re,x as Ne,w as He,n as Be,e as Kt,j as Jt,k as te,s as ee,a as re}from"./CwChgvHr.js";function qe(t){return t}var Tt=1,Yt=2,Ft=3,xt=4,se=1e-6;function Ge(t){return"translate("+t+",0)"}function Xe(t){return"translate(0,"+t+")"}function je(t){return e=>+t(e)}function Ue(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),s=>+t(s)+e}function Ze(){return!this.__axis}function de(t,e){var s=[],r=null,i=null,g=6,y=6,b=3,S=typeof window<"u"&&window.devicePixelRatio>1?0:.5,L=t===Tt||t===xt?-1:1,_=t===xt||t===Yt?"x":"y",W=t===Tt||t===Ft?Ge:Xe;function w(D){var N=r??(e.ticks?e.ticks.apply(e,s):e.domain()),V=i??(e.tickFormat?e.tickFormat.apply(e,s):qe),k=Math.max(g,0)+b,M=e.range(),P=+M[0]+S,O=+M[M.length-1]+S,B=(e.bandwidth?Ue:je)(e.copy(),S),H=D.selection?D.selection():D,I=H.selectAll(".domain").data([null]),x=H.selectAll(".tick").data(N,e).order(),h=x.exit(),E=x.enter().append("g").attr("class","tick"),f=x.select("line"),T=x.select("text");I=I.merge(I.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),x=x.merge(E),f=f.merge(E.append("line").attr("stroke","currentColor").attr(_+"2",L*g)),T=T.merge(E.append("text").attr("fill","currentColor").attr(_,L*k).attr("dy",t===Tt?"0em":t===Ft?"0.71em":"0.32em")),D!==H&&(I=I.transition(D),x=x.transition(D),f=f.transition(D),T=T.transition(D),h=h.transition(D).attr("opacity",se).attr("transform",function(v){return isFinite(v=B(v))?W(v+S):this.getAttribute("transform")}),E.attr("opacity",se).attr("transform",function(v){var p=this.parentNode.__axis;return W((p&&isFinite(p=p(v))?p:B(v))+S)})),h.remove(),I.attr("d",t===xt||t===Yt?y?"M"+L*y+","+P+"H"+S+"V"+O+"H"+L*y:"M"+S+","+P+"V"+O:y?"M"+P+","+L*y+"V"+S+"H"+O+"V"+L*y:"M"+P+","+S+"H"+O),x.attr("opacity",1).attr("transform",function(v){return W(B(v)+S)}),f.attr(_+"2",L*g),T.attr(_,L*k).text(V),H.filter(Ze).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Yt?"start":t===xt?"end":"middle"),H.each(function(){this.__axis=B})}return w.scale=function(D){return arguments.length?(e=D,w):e},w.ticks=function(){return s=Array.from(arguments),w},w.tickArguments=function(D){return arguments.length?(s=D==null?[]:Array.from(D),w):s.slice()},w.tickValues=function(D){return arguments.length?(r=D==null?null:Array.from(D),w):r&&r.slice()},w.tickFormat=function(D){return arguments.length?(i=D,w):i},w.tickSize=function(D){return arguments.length?(g=y=+D,w):g},w.tickSizeInner=function(D){return arguments.length?(g=+D,w):g},w.tickSizeOuter=function(D){return arguments.length?(y=+D,w):y},w.tickPadding=function(D){return arguments.length?(b=+D,w):b},w.offset=function(D){return arguments.length?(S=+D,w):S},w}function Qe(t){return de(Tt,t)}function Ke(t){return de(Ft,t)}var bt={exports:{}},Je=bt.exports,ne;function tr(){return ne||(ne=1,(function(t,e){(function(s,r){t.exports=r()})(Je,(function(){var s="day";return function(r,i,g){var y=function(L){return L.add(4-L.isoWeekday(),s)},b=i.prototype;b.isoWeekYear=function(){return y(this).year()},b.isoWeek=function(L){if(!this.$utils().u(L))return this.add(7*(L-this.isoWeek()),s);var _,W,w,D,N=y(this),V=(_=this.isoWeekYear(),W=this.$u,w=(W?g.utc:g)().year(_).startOf("year"),D=4-w.isoWeekday(),w.isoWeekday()>4&&(D+=7),w.add(D,s));return N.diff(V,"week")+1},b.isoWeekday=function(L){return this.$utils().u(L)?this.day()||7:this.day(this.day()%7?L:L-7)};var S=b.startOf;b.startOf=function(L,_){var W=this.$utils(),w=!!W.u(_)||_;return W.p(L)==="isoweek"?w?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):S.bind(this)(L,_)}}}))})(bt)),bt.exports}var er=tr();const rr=It(er);var wt={exports:{}},sr=wt.exports,ie;function nr(){return ie||(ie=1,(function(t,e){(function(s,r){t.exports=r()})(sr,(function(){var s={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,g=/\d\d/,y=/\d\d?/,b=/\d*[^-_:/,()\s\d]+/,S={},L=function(k){return(k=+k)+(k>68?1900:2e3)},_=function(k){return function(M){this[k]=+M}},W=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=(function(M){if(!M||M==="Z")return 0;var P=M.match(/([+-]|\d\d)/g),O=60*P[1]+(+P[2]||0);return O===0?0:P[0]==="+"?-O:O})(k)}],w=function(k){var M=S[k];return M&&(M.indexOf?M:M.s.concat(M.f))},D=function(k,M){var P,O=S.meridiem;if(O){for(var B=1;B<=24;B+=1)if(k.indexOf(O(B,0,M))>-1){P=B>12;break}}else P=k===(M?"pm":"PM");return P},N={A:[b,function(k){this.afternoon=D(k,!1)}],a:[b,function(k){this.afternoon=D(k,!0)}],Q:[i,function(k){this.month=3*(k-1)+1}],S:[i,function(k){this.milliseconds=100*+k}],SS:[g,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],s:[y,_("seconds")],ss:[y,_("seconds")],m:[y,_("minutes")],mm:[y,_("minutes")],H:[y,_("hours")],h:[y,_("hours")],HH:[y,_("hours")],hh:[y,_("hours")],D:[y,_("day")],DD:[g,_("day")],Do:[b,function(k){var M=S.ordinal,P=k.match(/\d+/);if(this.day=P[0],M)for(var O=1;O<=31;O+=1)M(O).replace(/\[|\]/g,"")===k&&(this.day=O)}],w:[y,_("week")],ww:[g,_("week")],M:[y,_("month")],MM:[g,_("month")],MMM:[b,function(k){var M=w("months"),P=(w("monthsShort")||M.map((function(O){return O.slice(0,3)}))).indexOf(k)+1;if(P<1)throw new Error;this.month=P%12||P}],MMMM:[b,function(k){var M=w("months").indexOf(k)+1;if(M<1)throw new Error;this.month=M%12||M}],Y:[/[+-]?\d+/,_("year")],YY:[g,function(k){this.year=L(k)}],YYYY:[/\d{4}/,_("year")],Z:W,ZZ:W};function V(k){var M,P;M=k,P=S&&S.formats;for(var O=(k=M.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(f,T,v){var p=v&&v.toUpperCase();return T||P[v]||s[v]||P[p].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(a,d,m){return d||m.slice(1)}))}))).match(r),B=O.length,H=0;H<B;H+=1){var I=O[H],x=N[I],h=x&&x[0],E=x&&x[1];O[H]=E?{regex:h,parser:E}:I.replace(/^\[|\]$/g,"")}return function(f){for(var T={},v=0,p=0;v<B;v+=1){var a=O[v];if(typeof a=="string")p+=a.length;else{var d=a.regex,m=a.parser,u=f.slice(p),C=d.exec(u)[0];m.call(T,C),f=f.replace(C,"")}}return(function(n){var $=n.afternoon;if($!==void 0){var o=n.hours;$?o<12&&(n.hours+=12):o===12&&(n.hours=0),delete n.afternoon}})(T),T}}return function(k,M,P){P.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(L=k.parseTwoDigitYear);var O=M.prototype,B=O.parse;O.parse=function(H){var I=H.date,x=H.utc,h=H.args;this.$u=x;var E=h[1];if(typeof E=="string"){var f=h[2]===!0,T=h[3]===!0,v=f||T,p=h[2];T&&(p=h[2]),S=this.$locale(),!f&&p&&(S=P.Ls[p]),this.$d=(function(u,C,n,$){try{if(["x","X"].indexOf(C)>-1)return new Date((C==="X"?1e3:1)*u);var o=V(C)(u),G=o.year,c=o.month,Y=o.day,A=o.hours,R=o.minutes,F=o.seconds,q=o.milliseconds,z=o.zone,nt=o.week,at=new Date,yt=Y||(G||c?1:at.getDate()),lt=G||at.getFullYear(),X=0;G&&!c||(X=c>0?c-1:at.getMonth());var K,Z=A||0,ot=R||0,J=F||0,it=q||0;return z?new Date(Date.UTC(lt,X,yt,Z,ot,J,it+60*z.offset*1e3)):n?new Date(Date.UTC(lt,X,yt,Z,ot,J,it)):(K=new Date(lt,X,yt,Z,ot,J,it),nt&&(K=$(K).week(nt).toDate()),K)}catch{return new Date("")}})(I,E,x,P),this.init(),p&&p!==!0&&(this.$L=this.locale(p).$L),v&&I!=this.format(E)&&(this.$d=new Date("")),S={}}else if(E instanceof Array)for(var a=E.length,d=1;d<=a;d+=1){h[1]=E[d-1];var m=P.apply(this,h);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}d===a&&(this.$d=new Date(""))}else B.call(this,H)}}}))})(wt)),wt.exports}var ir=nr();const ar=It(ir);var _t={exports:{}},or=_t.exports,ae;function cr(){return ae||(ae=1,(function(t,e){(function(s,r){t.exports=r()})(or,(function(){return function(s,r){var i=r.prototype,g=i.format;i.format=function(y){var b=this,S=this.$locale();if(!this.isValid())return g.bind(this)(y);var L=this.$utils(),_=(y||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(W){switch(W){case"Q":return Math.ceil((b.$M+1)/3);case"Do":return S.ordinal(b.$D);case"gggg":return b.weekYear();case"GGGG":return b.isoWeekYear();case"wo":return S.ordinal(b.week(),"W");case"w":case"ww":return L.s(b.week(),W==="w"?1:2,"0");case"W":case"WW":return L.s(b.isoWeek(),W==="W"?1:2,"0");case"k":case"kk":return L.s(String(b.$H===0?24:b.$H),W==="k"?1:2,"0");case"X":return Math.floor(b.$d.getTime()/1e3);case"x":return b.$d.getTime();case"z":return"["+b.offsetName()+"]";case"zzz":return"["+b.offsetName("long")+"]";default:return W}}));return g.bind(this)(_)}}}))})(_t)),_t.exports}var lr=cr();const ur=It(lr);var Dt={exports:{}},dr=Dt.exports,oe;function fr(){return oe||(oe=1,(function(t,e){(function(s,r){t.exports=r()})(dr,(function(){var s,r,i=1e3,g=6e4,y=36e5,b=864e5,S=31536e6,L=2628e6,_=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,W=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,w={years:S,months:L,days:b,hours:y,minutes:g,seconds:i,milliseconds:1,weeks:6048e5},D=function(I){return I instanceof B},N=function(I,x,h){return new B(I,h,x.$l)},V=function(I){return r.p(I)+"s"},k=function(I){return I<0},M=function(I){return k(I)?Math.ceil(I):Math.floor(I)},P=function(I){return Math.abs(I)},O=function(I,x){return I?k(I)?{negative:!0,format:""+P(I)+x}:{negative:!1,format:""+I+x}:{negative:!1,format:""}},B=(function(){function I(h,E,f){var T=this;if(this.$d={},this.$l=f,h===void 0&&(this.$ms=0,this.parseFromMilliseconds()),E)return N(h*w[V(E)],this);if(typeof h=="number")return this.$ms=h,this.parseFromMilliseconds(),this;if(typeof h=="object")return Object.keys(h).forEach((function(a){T.$d[V(a)]=h[a]})),this.calMilliseconds(),this;if(typeof h=="string"){var v=h.match(_);if(v){var p=v.slice(2).map((function(a){return a!=null?Number(a):0}));return this.$d.years=p[0],this.$d.months=p[1],this.$d.weeks=p[2],this.$d.days=p[3],this.$d.hours=p[4],this.$d.minutes=p[5],this.$d.seconds=p[6],this.calMilliseconds(),this}}return this}var x=I.prototype;return x.calMilliseconds=function(){var h=this;this.$ms=Object.keys(this.$d).reduce((function(E,f){return E+(h.$d[f]||0)*w[f]}),0)},x.parseFromMilliseconds=function(){var h=this.$ms;this.$d.years=M(h/S),h%=S,this.$d.months=M(h/L),h%=L,this.$d.days=M(h/b),h%=b,this.$d.hours=M(h/y),h%=y,this.$d.minutes=M(h/g),h%=g,this.$d.seconds=M(h/i),h%=i,this.$d.milliseconds=h},x.toISOString=function(){var h=O(this.$d.years,"Y"),E=O(this.$d.months,"M"),f=+this.$d.days||0;this.$d.weeks&&(f+=7*this.$d.weeks);var T=O(f,"D"),v=O(this.$d.hours,"H"),p=O(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3,a=Math.round(1e3*a)/1e3);var d=O(a,"S"),m=h.negative||E.negative||T.negative||v.negative||p.negative||d.negative,u=v.format||p.format||d.format?"T":"",C=(m?"-":"")+"P"+h.format+E.format+T.format+u+v.format+p.format+d.format;return C==="P"||C==="-P"?"P0D":C},x.toJSON=function(){return this.toISOString()},x.format=function(h){var E=h||"YYYY-MM-DDTHH:mm:ss",f={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return E.replace(W,(function(T,v){return v||String(f[T])}))},x.as=function(h){return this.$ms/w[V(h)]},x.get=function(h){var E=this.$ms,f=V(h);return f==="milliseconds"?E%=1e3:E=f==="weeks"?M(E/w[f]):this.$d[f],E||0},x.add=function(h,E,f){var T;return T=E?h*w[V(E)]:D(h)?h.$ms:N(h,this).$ms,N(this.$ms+T*(f?-1:1),this)},x.subtract=function(h,E){return this.add(h,E,!0)},x.locale=function(h){var E=this.clone();return E.$l=h,E},x.clone=function(){return N(this.$ms,this)},x.humanize=function(h){return s().add(this.$ms,"ms").locale(this.$l).fromNow(!h)},x.valueOf=function(){return this.asMilliseconds()},x.milliseconds=function(){return this.get("milliseconds")},x.asMilliseconds=function(){return this.as("milliseconds")},x.seconds=function(){return this.get("seconds")},x.asSeconds=function(){return this.as("seconds")},x.minutes=function(){return this.get("minutes")},x.asMinutes=function(){return this.as("minutes")},x.hours=function(){return this.get("hours")},x.asHours=function(){return this.as("hours")},x.days=function(){return this.get("days")},x.asDays=function(){return this.as("days")},x.weeks=function(){return this.get("weeks")},x.asWeeks=function(){return this.as("weeks")},x.months=function(){return this.get("months")},x.asMonths=function(){return this.as("months")},x.years=function(){return this.get("years")},x.asYears=function(){return this.as("years")},I})(),H=function(I,x,h){return I.add(x.years()*h,"y").add(x.months()*h,"M").add(x.days()*h,"d").add(x.hours()*h,"h").add(x.minutes()*h,"m").add(x.seconds()*h,"s").add(x.milliseconds()*h,"ms")};return function(I,x,h){s=h,r=h().$utils(),h.duration=function(T,v){var p=h.locale();return N(T,{$l:p},v)},h.isDuration=D;var E=x.prototype.add,f=x.prototype.subtract;x.prototype.add=function(T,v){return D(T)?H(this,T,1):E.bind(this)(T,v)},x.prototype.subtract=function(T,v){return D(T)?H(this,T,-1):f.bind(this)(T,v)}}}))})(Dt)),Dt.exports}var hr=fr();const mr=It(hr);var Lt=(function(){var t=l(function(p,a,d,m){for(d=d||{},m=p.length;m--;d[p[m]]=a);return d},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],s=[1,26],r=[1,27],i=[1,28],g=[1,29],y=[1,30],b=[1,31],S=[1,32],L=[1,33],_=[1,34],W=[1,9],w=[1,10],D=[1,11],N=[1,12],V=[1,13],k=[1,14],M=[1,15],P=[1,16],O=[1,19],B=[1,20],H=[1,21],I=[1,22],x=[1,23],h=[1,25],E=[1,35],f={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:l(function(a,d,m,u,C,n,$){var o=n.length-1;switch(C){case 1:return n[o-1];case 2:this.$=[];break;case 3:n[o-1].push(n[o]),this.$=n[o-1];break;case 4:case 5:this.$=n[o];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setWeekend("friday");break;case 16:u.setWeekend("saturday");break;case 17:u.setDateFormat(n[o].substr(11)),this.$=n[o].substr(11);break;case 18:u.enableInclusiveEndDates(),this.$=n[o].substr(18);break;case 19:u.TopAxis(),this.$=n[o].substr(8);break;case 20:u.setAxisFormat(n[o].substr(11)),this.$=n[o].substr(11);break;case 21:u.setTickInterval(n[o].substr(13)),this.$=n[o].substr(13);break;case 22:u.setExcludes(n[o].substr(9)),this.$=n[o].substr(9);break;case 23:u.setIncludes(n[o].substr(9)),this.$=n[o].substr(9);break;case 24:u.setTodayMarker(n[o].substr(12)),this.$=n[o].substr(12);break;case 27:u.setDiagramTitle(n[o].substr(6)),this.$=n[o].substr(6);break;case 28:this.$=n[o].trim(),u.setAccTitle(this.$);break;case 29:case 30:this.$=n[o].trim(),u.setAccDescription(this.$);break;case 31:u.addSection(n[o].substr(8)),this.$=n[o].substr(8);break;case 33:u.addTask(n[o-1],n[o]),this.$="task";break;case 34:this.$=n[o-1],u.setClickEvent(n[o-1],n[o],null);break;case 35:this.$=n[o-2],u.setClickEvent(n[o-2],n[o-1],n[o]);break;case 36:this.$=n[o-2],u.setClickEvent(n[o-2],n[o-1],null),u.setLink(n[o-2],n[o]);break;case 37:this.$=n[o-3],u.setClickEvent(n[o-3],n[o-2],n[o-1]),u.setLink(n[o-3],n[o]);break;case 38:this.$=n[o-2],u.setClickEvent(n[o-2],n[o],null),u.setLink(n[o-2],n[o-1]);break;case 39:this.$=n[o-3],u.setClickEvent(n[o-3],n[o-1],n[o]),u.setLink(n[o-3],n[o-2]);break;case 40:this.$=n[o-1],u.setLink(n[o-1],n[o]);break;case 41:case 47:this.$=n[o-1]+" "+n[o];break;case 42:case 43:case 45:this.$=n[o-2]+" "+n[o-1]+" "+n[o];break;case 44:case 46:this.$=n[o-3]+" "+n[o-2]+" "+n[o-1]+" "+n[o];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:s,13:r,14:i,15:g,16:y,17:b,18:S,19:18,20:L,21:_,22:W,23:w,24:D,25:N,26:V,27:k,28:M,29:P,30:O,31:B,33:H,35:I,36:x,37:24,38:h,40:E},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:s,13:r,14:i,15:g,16:y,17:b,18:S,19:18,20:L,21:_,22:W,23:w,24:D,25:N,26:V,27:k,28:M,29:P,30:O,31:B,33:H,35:I,36:x,37:24,38:h,40:E},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:l(function(a,d){if(d.recoverable)this.trace(a);else{var m=new Error(a);throw m.hash=d,m}},"parseError"),parse:l(function(a){var d=this,m=[0],u=[],C=[null],n=[],$=this.table,o="",G=0,c=0,Y=2,A=1,R=n.slice.call(arguments,1),F=Object.create(this.lexer),q={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(q.yy[z]=this.yy[z]);F.setInput(a,q.yy),q.yy.lexer=F,q.yy.parser=this,typeof F.yylloc>"u"&&(F.yylloc={});var nt=F.yylloc;n.push(nt);var at=F.options&&F.options.ranges;typeof q.yy.parseError=="function"?this.parseError=q.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function yt(Q){m.length=m.length-2*Q,C.length=C.length-Q,n.length=n.length-Q}l(yt,"popStack");function lt(){var Q;return Q=u.pop()||F.lex()||A,typeof Q!="number"&&(Q instanceof Array&&(u=Q,Q=u.pop()),Q=d.symbols_[Q]||Q),Q}l(lt,"lex");for(var X,K,Z,ot,J={},it,tt,Ut,pt;;){if(K=m[m.length-1],this.defaultActions[K]?Z=this.defaultActions[K]:((X===null||typeof X>"u")&&(X=lt()),Z=$[K]&&$[K][X]),typeof Z>"u"||!Z.length||!Z[0]){var $t="";pt=[];for(it in $[K])this.terminals_[it]&&it>Y&&pt.push("'"+this.terminals_[it]+"'");F.showPosition?$t="Parse error on line "+(G+1)+`:
|
|
2
2
|
`+F.showPosition()+`
|
|
3
3
|
Expecting `+pt.join(", ")+", got '"+(this.terminals_[X]||X)+"'":$t="Parse error on line "+(G+1)+": Unexpected "+(X==A?"end of input":"'"+(this.terminals_[X]||X)+"'"),this.parseError($t,{text:F.match,token:this.terminals_[X]||X,line:F.yylineno,loc:nt,expected:pt})}if(Z[0]instanceof Array&&Z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+K+", token: "+X);switch(Z[0]){case 1:m.push(X),C.push(F.yytext),n.push(F.yylloc),m.push(Z[1]),X=null,c=F.yyleng,o=F.yytext,G=F.yylineno,nt=F.yylloc;break;case 2:if(tt=this.productions_[Z[1]][1],J.$=C[C.length-tt],J._$={first_line:n[n.length-(tt||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(tt||1)].first_column,last_column:n[n.length-1].last_column},at&&(J._$.range=[n[n.length-(tt||1)].range[0],n[n.length-1].range[1]]),ot=this.performAction.apply(J,[o,c,G,q.yy,Z[1],C,n].concat(R)),typeof ot<"u")return ot;tt&&(m=m.slice(0,-1*tt*2),C=C.slice(0,-1*tt),n=n.slice(0,-1*tt)),m.push(this.productions_[Z[1]][0]),C.push(J.$),n.push(J._$),Ut=$[m[m.length-2]][m[m.length-1]],m.push(Ut);break;case 3:return!0}}return!0},"parse")},T=(function(){var p={EOF:1,parseError:l(function(d,m){if(this.yy.parser)this.yy.parser.parseError(d,m);else throw new Error(d)},"parseError"),setInput:l(function(a,d){return this.yy=d||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:l(function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var d=a.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:l(function(a){var d=a.length,m=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),m.length-1&&(this.yylineno-=m.length-1);var C=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:m?(m.length===u.length?this.yylloc.first_column:0)+u[u.length-m.length].length-m[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:l(function(a){this.unput(this.match.slice(a))},"less"),pastInput:l(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var a=this.pastInput(),d=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as l,r as m,d as a}from"./
|
|
1
|
+
import{g as l,r as m,d as a}from"./DrMo8olQ.js";import{p}from"./VW0lVlpA.js";import{b as t,ay as o}from"./B96uZ9bz.js";import{M as u,b as c}from"./Oljw-CHa.js";var f=c().RailroadPeg.parser.LangiumParser,i=t(e=>{const r=e.alternatives.map(d);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformOrderedChoice"),d=t(e=>{const r=e.elements.map(P);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),P=t(e=>{const r=g(e.suffix);return e.operator?{type:"special",text:e.operator==="&"?`&${s(r)}`:`!${s(r)}`}:r},"transformPrefix"),s=t(e=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),g=t(e=>{const r=y(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw new Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),y=t(e=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return i(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw new Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),v=t(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=t(e=>{p(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(v(r)))},"populateDb"),b={parse:t(e=>{a.clear(),o.debug("[PEG Parser] Starting Langium parse");const r=f.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const n=r.value;o.debug("[PEG Parser] Parsed rules:",n.rules.length),h(n),o.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:a}},$={parser:b,db:a,renderer:m,styles:l};export{$ as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var $l=Object.defineProperty;var Ol=(r,t,n)=>t in r?$l(r,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[t]=n;var kn=(r,t,n)=>Ol(r,typeof t!="symbol"?t+"":t,n);import{t as It,bq as g,by as St,b as Tt,bo as f,bs as Kn,bu as dr,bt as ql,br as ha}from"./BUAFIktJ.js";import{ai as aa,bs as Ct,ca as sr,aD as e,bH as j,ay as xe,bS as T,a7 as Rt,W as u,a5 as z,bA as R,bn as At,c9 as s,bV as we,aA as m,b_ as $,aj as Sr,aB as I,be as gr,b$ as Or,bO as J,bf as or,c0 as Cn,bl as oe,bj as jn,c6 as Dl,bo as za,br as Yr,am as Dn,ax as Bn,bk as as,aw as va,bz as ss,cb as ms,c5 as Ha,aC as xr,cd as _o,bv as Bl}from"./DYhIMPy1.js";import{i as B}from"./Bvd0DfwC.js";import{g as Tr,e as _n,p as ps,i as Yn,I as Fl,h as eo,X as _i,o as zl}from"./vJ7Dp7-k.js";import{I as Kt,F as qa,c as ea,j as Wl,s as yi,p as to,y as Hl,u as Ul,t as $r,g as oa,B as ws,E as os,S as jl}from"./DCOf4rfq.js";import{s as te,f as ze,g as _a,c as kt,e as ar,b as ya,p as Vl,S as Kl,C as Gl}from"./COO6ldt4.js";import{b as cn}from"./BaIAhI85.js";import{f as Xe,ae as ro,a_ as Ql}from"./hwFphMxp.js";import{J as Zl,O as Jl,Q as xs}from"./B1s_9zgm.js";import"./Co5bimwo.js";import"./CGuBCqy6.js";import"./hmNmIDzu.js";import{s as Ln}from"./CnTu6sc6.js";import{F as jt,a0 as zs,bc as Tn,cF as no,aq as bi,aV as wi,aG as Xl,c4 as Yl,a2 as is,aJ as ed,cI as td,cH as rd,$ as vs,as as ao,I as yo,af as nd,bq as ad,aO as sd,aT as od,bF as id,ak as ld,cx as dd,ay as bo,aL as wo,bX as ks,aE as Ua,cR as cd,c6 as ud,bj as fd,b as gd,ck as md,ac as pd,b6 as Is,cm as xa,cA as vd,a as hd}from"./CfdX4Lfl.js";import{c as xi,A as _d,x as yd}from"./B6lWPidK.js";import{b as Ss,V as xo}from"./Dfo7IcH5.js";import{a as ki,b7 as Pr,A as Ga,ao as Ii,s as bd,n as Si,d as wd,I as xd,R as kd,ax as Id,a0 as Sd}from"./CUHqJ1Vg.js";import{bX as Ti,j as Qa,a6 as Ws,al as ls,F as Td,au as Za,aN as Cd,aQ as ko}from"./Da7V4qRA.js";import{t as ia,o as Ad}from"./BhzNHo5H.js";import{c3 as Ja,aC as Da,cQ as Ci,cS as Vn,bU as hs,j as Md,cJ as Ai,cP as _s,cO as Mi,cM as Pi,g as Nn,aa as Pd,ab as Rd,ax as Ed,s as Nd,K as Ld,W as Io,v as Ri,dO as $d,at as Od,k as qd,u as Ts,a6 as Dd,n as Bd,O as Fd,o as zd,S as Wd,R as Hd,a0 as Ud,q as Ei,r as Ni,l as jd,cT as Vd,a4 as Kd,D as Gd,x as Qd,V as So}from"./D1PZlLC_.js";import{Iv as yt,oA as Zd,t9 as Xa,np as To,v1 as Li,v3 as $i,ro as Jd,x$ as ds,uk as Oi,nk as qi,bf as Ya,y0 as Xd,q2 as Yd,sG as ec,uW as Di,nj as tc,mq as rc,i as nc,ys as ac,yp as sc,yr as oc}from"./iYz7qSVO.js";import{a2 as ic,x as Cs,a0 as lc,O as As,V as dc,_ as cc,j as uc,o as ka,M as fa,p as fc,F as gc,u as mc,s as pc,L as Ms,J as vc,y as hc,K as _c,Z as Ma,Q as ja,N as Co,m as Ao,E as yc,c as Ps,B as Mo,z as bc,v as Po,H as Pa,P as wc,G as xc,i as kc,R as Ic,T as Sc,A as Tc,g as Cc,b as Ac,D as Mc,f as Pc,e as Rc,a as Ec,C as Nc,h as Lc,U as Bi,a3 as $c,t as Oc,k as qc,d as Ro}from"./CZkLaz_S.js";import{i as Dc,e as Bc}from"./Bz6dDdb9.js";import{g as Rs}from"./BvFAWM27.js";import{M as Ia,C as Ra}from"./Dbd3M4VX.js";import{C as Eo}from"./HpSr1h8y.js";import"./B9Ccf4_O.js";import{P as Fc}from"./BAj9Av-i.js";import"./DVdgjGW2.js";import{c as Fi}from"./ChTqQfQN.js";import{S as zc}from"./hQlemDzn.js";import{D as No,M as Wc}from"./DEo5mzFE.js";import{b as Hc,s as na,c as cs}from"./4fLmPVdQ.js";import{O as es,y as Es,E as Ns,B as Ls,N as Uc,m as jc,l as Vc,d as us,C as Lo,f as Kc,e as Gc,g as Qc}from"./D8eSz7L_.js";import{a as zi,s as $o}from"./BsieX9dN.js";import{f as Zc}from"./BdWqymET.js";import{c as dn}from"./C5H4Pe0T.js";import{P as Jc}from"./Buh7J53B.js";import{v as $s,t as Os,K as Oo,h as Xc}from"./Dzmm4LX6.js";import{R as Hs,C as ys,k as Yc,h as eu,g as tu,i as qo,P as ru}from"./IH85nSha.js";import"./CRrFC3B8.js";import{R as Do,x as Na,o as Wi}from"./BR9y4bsr.js";import{B as nu}from"./HZ9TCfKK.js";import{o as Hi,r as au,e as su}from"./DrPWazGq.js";import{o as Ui}from"./D16yE-CH.js";import{g as so}from"./Db2Jl7w7.js";import{a as ou,M as iu}from"./BXyNrc2B.js";import{c as Sa}from"./BgOj6lPu.js";import{A as lu}from"./DQuLjWyg.js";import{f as du,d as cu}from"./SAoHFFQz.js";import{a8 as uu,N as fu,Y as gu,K as Bo,X as mu,v as pu}from"./DevaRANM.js";import{a as vu}from"./CC7to1B5.js";import{k as hu}from"./CLi8c-Jc.js";import{S as _u}from"./DlySFqed.js";import{u as yu,a as bu,c as Fo,S as wu}from"./DfxQWSVU.js";import{T as Us}from"./B87_3X7t.js";import"./DS2QhtLm.js";import{g as xu}from"./DyLYtK5N.js";import{a as ku}from"./CrxGBxMK.js";import{b as Iu}from"./jK-m9hL8.js";import{b as zo}from"./p7znhYIU.js";import{g as Su,i as Tu,a as Cu}from"./D8Uhwh7R.js";import{n as Wo,o as Ho,b as ma,s as Ta,_ as qs,e as Au}from"./CIyUrgF0.js";import{b7 as Un,L as Mu}from"./CZ8DhcrQ.js";import{x as Pu}from"./DV_c4cZz.js";import{c as Ru}from"./-lzAI0Yg.js";function Eu(r){if(!r||typeof r!="object")return null;const t=r;if(t.type!=="script_monitor_wake"||t.source!=="system")return null;const{scriptName:n,scriptId:a,runId:o,monitorId:i,workspaceId:d,reason:c}=t;if(typeof n!="string"||typeof a!="string"||!a||typeof o!="string"||!o||typeof i!="string"||!i||typeof d!="string"||!d||c!=="finished"&&c!=="ttl-expired"&&c!=="output-match"&&c!=="line-count")return null;const h=t.trigger;return{scriptName:n,scriptId:a,runId:o,monitorId:i,workspaceId:d,reason:c,...c==="output-match"&&typeof h?.matchedLine=="string"?{matchedLine:h.matchedLine}:{}}}function Nu(r){return r?.type==="script_monitor_wake"&&!("remoteAgentId"in r)}function Lu(r,t,n,a=!1){if(!r||!t)return{edit:!1,remove:!1,sendNow:!1};const o=r.messageMetadata?.fromPrincipalId??r.author?.principalId,i=uu(r)&&r.author?.principalId!==null&&o===t;return{edit:i,remove:i||t===n||a,sendNow:(i||a)&&!ji(r)}}function Ca(r,t){if(t)return r.find(n=>n.editing&&n.editingMessageId?n.editingMessageId===t:n.id===t)}function ji(r){return Nu(r.messageMetadata)&&typeof r.messageMetadata?.monitorId=="string"}function Uo(r,t=Date.now()){const n=r.messageMetadata,a=n?.fromPrincipalId,o=n&&Object.hasOwn(n,"humanAuthor")&&!(typeof a=="string"&&a.length>0),i=r.holdKind!==void 0&&Date.parse(r.holdUntil??"")>t;return!r.editing&&!i&&!o&&!ji(r)}const G_="pl-3.5! pr-2!";var $u=I('<span class="tile-remove-slot svelte-d8pwpf"><!></span>'),jo=I('<span class="attachment-status svelte-d8pwpf"> </span>'),Ou=I('<div class="file-image tile svelte-d8pwpf" data-kind="file"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),qu=I("<!><span> </span>",1),Du=I('<img alt="" draggable="false"/>'),Bu=I('<span class="summary svelte-d8pwpf" data-clip-summary=""> </span>'),Fu=I('<span class="clip svelte-d8pwpf"><span class="record-dot svelte-d8pwpf" aria-hidden="true"></span><span class="duration svelte-d8pwpf"> </span><!></span>'),zu=I('<div class="tile svelte-d8pwpf"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),Wu=I('<div class="attachment-row svelte-d8pwpf" role="group" data-dock-media-attachments=""></div>'),Hu=I("<!> <!> <!>",1),Uu=I('<img draggable="false" class="svelte-d8pwpf"/>'),ju=I('<video controls="" playsinline="" class="svelte-d8pwpf"></video>',2),Vu=I('<div class="media-viewer svelte-d8pwpf"><!></div>'),Ku=I("<!> <!>",1);function Gu(r,t){if(new.target)return It({component:Gu,...r});Ct(t,!0);const n=(O,ye=or,pe=or)=>{var A=$u(),ge=z(A);Xe(ge,{variant:"secondary",size:"icon-sm",class:"tile-action tile-remove",get disabled(){return i()},get"aria-label"(){return pe()},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return pe()},onclick:()=>q(ye()),children:(Te,Be)=>{Ss(Te,{glyph:"x"})},$$slots:{default:!0}}),R(A),u(O,A)};let a=g(t,"items",7),o=g(t,"labels",7),i=g(t,"disabled",7,!1),d=g(t,"onMarkUp",7),c=g(t,"onEdit",7),h=g(t,"onRemove",7),v=g(t,"onRetry",7),b=g(t,"onCopy",7),k=g(t,"onMenu",7);const N=O=>O.owner==="attachment"?2:{image:0,clip:1,file:2}[O.kind],Y=s(()=>[...a()].sort((O,ye)=>N(O)-N(ye)));let S=we(null),D=we(!1),ie=we(null),X=null;const M=s(()=>a().find(O=>O.id===e(ie)));sr(()=>{(!e(M)||e(M).kind==="image"&&!W(e(M)))&&j(D,!1)});function W(O){return O.kind==="image"&&O.status!=="placing"&&O.status!=="failed"&&O.url.trim().length>0}function E(O){return O.kind==="image"?o().image(O.markCount):O.kind==="clip"?O.summary?`${o().clip(O.duration)} ${O.summary}`:o().clip(O.duration):O.name}function ne(O,ye){if(!(i()||O.kind==="file"||O.kind==="image"&&!W(O)||O.kind==="clip"&&(!O.url||O.recording))){if((O.kind==="clip"||O.kind==="image")&&c()){c()(O.id);return}X=ye,j(ie,O.id,!0),j(D,!0)}}async function q(O){i()||(e(ie)===O&&j(D,!1),h()(O),await Cn(),(!document.activeElement||document.activeElement===document.body)&&e(S)?.querySelector("button:not(:disabled)")?.focus())}function F(O){const ye=a().find(pe=>pe.id===O);i()||!ye||!W(ye)||(j(D,!1),c()?c()(O):d()(O))}function ae(O,ye){O.key!=="Delete"||i()||(O.preventDefault(),O.stopPropagation(),q(ye))}function C(O){return O.status==="placing"||O.status==="failed"?!1:O.kind==="image"?!!O.file||W(O):O.kind==="clip"&&!O.recording&&!!O.url}function ee(O,ye){const pe=Zl()?O.metaKey:O.ctrlKey,A=O.key.toLowerCase();if(pe&&!O.shiftKey&&!O.altKey&&(A==="c"||A==="x")){if(!b()||!C(ye)||(O.preventDefault(),O.stopPropagation(),A==="x"&&i()))return;b()(ye.id,A==="x");return}ae(O,ye.id)}function le(O,ye){!k()||!C(ye)||(O.preventDefault(),k()(ye.id))}var me={get items(){return a()},set items(O){a(O),m()},get labels(){return o()},set labels(O){o(O),m()},get disabled(){return i()},set disabled(O=!1){i(O),m()},get onMarkUp(){return d()},set onMarkUp(O){d(O),m()},get onEdit(){return c()},set onEdit(O){c(O),m()},get onRemove(){return h()},set onRemove(O){h(O),m()},get onRetry(){return v()},set onRetry(O){v(O),m()},get onCopy(){return b()},set onCopy(O){b(O),m()},get onMenu(){return k()},set onMenu(O){k(O),m()},$set:St,$on:(O,ye)=>Tt(t,O,ye)},_e=Ku(),Re=xe(_e);{var Le=O=>{var ye=Wu();Tr(ye,21,()=>e(Y),pe=>pe.id,(pe,A)=>{var ge=Rt(),Te=xe(ge);{var Be=P=>{var Q=Ou(),re=z(Q);{let G=s(()=>i()||e(A).status==="placing");ki(re,{get id(){return e(A).id},get name(){return e(A).file.name},get type(){return e(A).file.imageMimeType},get imageData(){return e(A).file.imageData},get imageMimeType(){return e(A).file.imageMimeType},variant:"thumbnail",thumbnailClass:"size-full",class:"size-full",get disabled(){return e(G)},get placementStatus(){return e(A).status},get placementError(){return e(A).error}})}var se=T(re,2);{var ce=G=>{var Ee=jo(),De=oe(Ee,!0);$(()=>{te(Ee,"data-failed",e(A).status==="failed"||void 0),te(Ee,"role",e(A).status==="failed"?"alert":"status"),te(Ee,"title",e(A).error),J(De,e(A).status==="failed"?e(A).error??o().attachmentFailed:o().attachmentPending)}),u(G,Ee)};B(se,G=>{e(A).status&&G(ce)})}var w=T(se,2),Se=z(w);{var Ae=G=>{Xe(G,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>v()?.(e(A).id),children:(Ee,De)=>{jt(Ee,{get icon(){return zs},size:16})},$$slots:{default:!0}})};B(Se,G=>{e(A).status==="failed"&&v()&&G(Ae)})}var L=T(Se,2);{let G=s(()=>f.chat_attachmentPreview_remove_ariaLabel({name:e(A).file.name}));n(L,()=>e(A).id,()=>e(G))}R(w),R(Q),$(()=>te(Q,"data-attachment-id",e(A).id)),Sr("keydown",Q,G=>ee(G,e(A))),Sr("contextmenu",Q,G=>le(G,e(A))),Kt(1,Q,()=>qa,()=>({tier:"fast",y:3,scale:.98})),Kt(2,Q,()=>ea,()=>({tier:"fast"})),u(P,Q)},Ce=P=>{const Q=s(()=>e(A).kind==="image"&&!W(e(A))&&e(A).status!=="failed");var re=zu(),se=z(re);{var ce=ve=>{Xe(ve,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile file",get"aria-label"(){return e(A).name},get disabled(){return i()},onkeydown:Oe=>ae(Oe,e(A).id),children:(Oe,U)=>{var ue=qu(),ot=xe(ue);jt(ot,{get icon(){return Tn},size:20});var xt=T(ot),mt=oe(xt,!0);$(()=>J(mt,e(A).name)),u(Oe,ue)},$$slots:{default:!0}})},w=ve=>{{let Oe=s(()=>E(e(A))),U=s(()=>i()||e(A).kind==="clip"&&(e(A).recording||!e(A).url));Xe(ve,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile",get"aria-label"(){return e(Oe)},get disabled(){return e(U)},onkeydown:ue=>ee(ue,e(A)),onclick:ue=>{ue.currentTarget instanceof HTMLElement&&ne(e(A),ue.currentTarget)},children:(ue,ot)=>{var xt=Rt(),mt=xe(xt);{var Ft=je=>{var bt=Du();$(()=>te(bt,"src",e(A).url)),u(je,bt)},pt=je=>{var bt=Fu(),at=T(z(bt)),dt=oe(at,!0),$e=T(at);{var ft=K=>{var _=Bu(),he=oe(_,!0);$(()=>J(he,e(A).summary)),u(K,_)};B($e,K=>{e(A).summary&&K(ft)})}R(bt),$(()=>J(dt,e(A).duration)),u(je,bt)};B(mt,je=>{e(A).kind==="image"?je(Ft):je(pt,-1)})}u(ue,xt)},$$slots:{default:!0}})}},Se=s(()=>e(A).kind!=="image"||W(e(A)));B(se,ve=>{e(A).kind==="file"?ve(ce):e(Se)&&ve(w,1)})}var Ae=T(se,2);{var L=ve=>{var Oe=jo(),U=oe(Oe,!0);$(()=>{te(Oe,"data-failed",e(A).status==="failed"||void 0),te(Oe,"role",e(A).status==="failed"?"alert":"status"),te(Oe,"title",e(A).error),J(U,e(A).status==="failed"?e(A).error??o().attachmentFailed:o().attachmentPending)}),u(ve,Oe)};B(Ae,ve=>{(e(A).status||e(Q))&&ve(L)})}var G=T(Ae,2),Ee=z(G);{var De=ve=>{Xe(ve,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>v()?.(e(A).id),children:(Oe,U)=>{jt(Oe,{get icon(){return zs},size:16})},$$slots:{default:!0}})},Je=ve=>{{let Oe=s(()=>c()?o().edit:o().markUp),U=s(()=>c()?o().edit:o().markUp);Xe(ve,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return e(Oe)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(U)},onclick:()=>F(e(A).id),children:(ue,ot)=>{Ss(ue,{glyph:"pencil"})},$$slots:{default:!0}})}},Ge=s(()=>W(e(A))),Bt=ve=>{{let Oe=s(()=>c()?o().edit:o().play),U=s(()=>c()?o().edit:o().play);Xe(ve,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return e(Oe)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(U)},onclick:ue=>{ue.currentTarget instanceof HTMLElement&&ne(e(A),ue.currentTarget)},children:(ue,ot)=>{{let xt=s(()=>c()?"pencil":"play");Ss(ue,{get glyph(){return e(xt)}})}},$$slots:{default:!0}})}};B(Ee,ve=>{e(A).status==="failed"&&v()?ve(De):e(Ge)?ve(Je,1):e(A).kind==="clip"&&!e(A).recording&&e(A).url&&ve(Bt,2)})}var ke=T(Ee,2);n(ke,()=>e(A).id,()=>o().remove),R(G),R(re),$(()=>{te(re,"data-kind",e(A).kind),te(re,"data-attachment-id",e(A).id),te(re,"aria-busy",e(Q)||void 0)}),Sr("contextmenu",re,ve=>le(ve,e(A))),Kt(1,re,()=>qa,()=>({tier:"fast",y:3,scale:.98})),Kt(2,re,()=>ea,()=>({tier:"fast"})),u(P,re)};B(Te,P=>{e(A).kind==="image"&&e(A).file?P(Be):P(Ce,-1)})}u(pe,ge)}),R(ye),cn(ye,pe=>j(S,pe),()=>e(S)),$(()=>te(ye,"aria-label",o().attachments)),u(O,ye)};B(Re,O=>{e(Y).length&&O(Le)})}var Ke=T(Re,2);{const O=pe=>{var A=Rt(),ge=xe(A);{var Te=Be=>{var Ce=Hu(),P=xe(Ce);{var Q=w=>{Xe(w,{variant:"primary",get disabled(){return i()},onclick:()=>e(M)&&F(e(M).id),children:(Se,Ae)=>{gr();var L=Or();$(()=>J(L,o().markUp)),u(Se,L)},$$slots:{default:!0}})},re=s(()=>W(e(M)));B(P,w=>{e(re)&&w(Q)})}var se=T(P,2);Xe(se,{variant:"secondary",get disabled(){return i()},onclick:()=>e(M)&&q(e(M).id),children:(w,Se)=>{gr();var Ae=Or();$(()=>J(Ae,o().remove)),u(w,Ae)},$$slots:{default:!0}});var ce=T(se,2);Xe(ce,{variant:"ghost-light",onclick:()=>{j(D,!1)},children:(w,Se)=>{gr();var Ae=Or();$(()=>J(Ae,o().done)),u(w,Ae)},$$slots:{default:!0}}),u(Be,Ce)};B(ge,Be=>{e(M)&&e(M).kind!=="file"&&Be(Te)})}u(pe,A)};let ye=s(()=>e(M)?E(e(M)):o().attachments);xi(Ke,{get title(){return e(ye)},size:"wide",showCloseButton:!1,onCloseAutoFocus:pe=>{pe.preventDefault(),X?.isConnected?X.focus():e(S)?.querySelector("button:not(:disabled)")?.focus()},get open(){return e(D)},set open(pe){j(D,pe,!0)},footer:O,children:(pe,A)=>{var ge=Rt(),Te=xe(ge);{var Be=Ce=>{var P=Vu(),Q=z(P);{var re=w=>{var Se=Uu();$(Ae=>{te(Se,"src",e(M).url),te(Se,"alt",Ae)},[()=>E(e(M))]),u(w,Se)},se=s(()=>e(M).kind==="image"&&W(e(M))),ce=w=>{var Se=ju();$(Ae=>{te(Se,"src",e(M).url),te(Se,"aria-label",Ae)},[()=>E(e(M))]),u(w,Se)};B(Q,w=>{e(se)?w(re):e(M).kind==="clip"&&e(M).url&&w(ce,1)})}R(P),u(Ce,P)};B(Te,Ce=>{e(M)&&e(M).kind!=="file"&&Ce(Be)})}u(pe,ge)},$$slots:{footer:!0,default:!0}})}return u(r,_e),At(me)}aa(["keydown","contextmenu"]);var Qu=I("<!> ",1),Zu=I('<div class="flex flex-col gap-2 px-4 py-3 bg-muted/30 border border-border rounded-lg my-4"><div class="flex items-center justify-between gap-2"><div class="flex items-center gap-2"><div class="shrink-0 text-subtle"><!></div> <div class="font-medium text-sm"> </div></div> <div class="flex items-center gap-1"><!> <!></div></div> <div class="text-xs text-subtle"> </div> <pre class="text-xs bg-background/50 rounded p-2 overflow-x-auto max-h-40 overflow-y-auto font-mono"> </pre></div>');function Vi(r,t){if(new.target)return It({component:Vi,...r});Ct(t,!0);let n=g(t,"name",7),a=g(t,"description",7),o=g(t,"content",7),i=g(t,"onUseScript",7),d=we(!1);function c(){navigator.clipboard.writeText(o()),j(d,!0),setTimeout(()=>{j(d,!1)},2e3)}function h(){i()?.({name:n(),description:a(),content:o()})}var v={get name(){return n()},set name(C){n(C),m()},get description(){return a()},set description(C){a(C),m()},get content(){return o()},set content(C){o(C),m()},get onUseScript(){return i()},set onUseScript(C){i(C),m()},$set:St,$on:(C,ee)=>Tt(t,C,ee)},b=Zu(),k=z(b),N=z(k),Y=z(N),S=z(Y);jt(S,{get icon(){return no},size:"sm"}),R(Y);var D=T(Y,2),ie=oe(D,!0);R(N);var X=T(N,2),M=z(X);Xe(M,{variant:"ghost-light",size:"sm",onclick:c,class:"h-7 px-2",children:(C,ee)=>{var le=Qu(),me=xe(le);{let Re=s(()=>e(d)?bi:wi);jt(me,{get icon(){return e(Re)},class:"mr-1"})}var _e=T(me);$(Re=>J(_e,` ${Re??""}`),[()=>e(d)?f.chat_shared_copied_label():f.chat_shared_copy_label()]),u(C,le)},$$slots:{default:!0}});var W=T(M,2);{var E=C=>{Xe(C,{variant:"ghost-light",size:"sm",onclick:h,class:"h-7 px-2",children:(ee,le)=>{gr();var me=Or();$(_e=>J(me,_e),[()=>f.chat_setupScriptCard_useScript_label()]),u(ee,me)},$$slots:{default:!0}})};B(W,C=>{i()&&C(E)})}R(X),R(k);var ne=T(k,2),q=oe(ne,!0),F=T(ne,2),ae=oe(F,!0);return R(b),$(()=>{J(ie,n()),J(q,a()),J(ae,o())}),u(r,b),At(v)}const wr={toolStart:/(?:\x1B\[\d+m)?🔧\s+(?:Tool call:\s+)?(.+?)(?:\x1B\[0m)?$/,toolDetail:/(?:[└├]─\s+(.+)$|^\s{3,}(.+)$)/,toolResult:/(?:\x1B\[\d+m)?📋\s+Tool result:\s+(.+?)(?:\x1B\[0m)?$/,toolSuccess:/[✓✔✅]\s+(.+)$/,toolError:/[❌✗❎]\s+(.+)$/,sessionInfo:/[Ss]ession:\s*([a-f0-9-]+)/,resumedSession:/📂?\s*Resumed session/i,assistantMarker:/🤖/,systemMarker:/💻/,userMarker:/👤/,thinkingMarker:/🤔\s*Thinking/i,waitingMarker:/^⏳\s+Running/i,indexingProgress:/^Indexing:\s*\[.*\]\s*\d+%/,agentDigest:/<agent_digest>([\s\S]*?)<\/agent_digest>/,setupScript:/<setup_script\s+name="([^"]+)"\s+description="([^"]+)">([\s\S]*?)<\/setup_script>/};class Ju{constructor(){kn(this,"buffer","");kn(this,"currentToolName",null);kn(this,"currentToolId",null);kn(this,"lastToolId",null);kn(this,"currentToolParams",[]);kn(this,"currentToolResultContent",[]);kn(this,"inToolResult",!1);kn(this,"inCodeBlock",!1);kn(this,"codeBlockLanguage","");kn(this,"codeBlockContent","");kn(this,"characterBuffer","");kn(this,"inCharacterMode",!1);kn(this,"emittedToolIds",new Set)}parseChunk(t){if(this.isMarkerLine(t.trim())){const o=[];if(this.inToolResult&&this.currentToolResultContent.length>0){const c=this.currentToolResultContent.some(v=>v.startsWith("❌")||v.startsWith("Error:")),h=this.currentToolResultContent.map(v=>v.replace(/^❌\s*/,"").replace(/^Error:\s*/,"")).join(`
|
|
1
|
+
var $l=Object.defineProperty;var Ol=(r,t,n)=>t in r?$l(r,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[t]=n;var kn=(r,t,n)=>Ol(r,typeof t!="symbol"?t+"":t,n);import{t as It,bq as g,by as St,b as Tt,bo as f,bs as Kn,bu as dr,bt as ql,br as ha}from"./D7ppHbEC.js";import{ai as aa,bs as Ct,ca as sr,aD as e,bH as j,ay as xe,bS as T,a7 as Rt,W as u,a5 as z,bA as R,bn as At,c9 as s,bV as we,aA as m,b_ as $,aj as Sr,aB as I,be as gr,b$ as Or,bO as J,bf as or,c0 as Cn,bl as oe,bj as jn,c6 as Dl,bo as za,br as Yr,am as Dn,ax as Bn,bk as as,aw as va,bz as ss,cb as ms,c5 as Ha,aC as xr,cd as _o,bv as Bl}from"./DYhIMPy1.js";import{i as B}from"./CWqKPDkJ.js";import{g as Tr,e as _n,p as ps,i as Yn,I as Fl,h as eo,X as _i,o as zl}from"./DvLxeXQt.js";import{I as Kt,F as qa,c as ea,j as Wl,s as yi,p as to,y as Hl,u as Ul,t as $r,g as oa,B as ws,E as os,S as jl}from"./B_-41aBJ.js";import{s as te,f as ze,g as _a,c as kt,e as ar,b as ya,p as Vl,S as Kl,C as Gl}from"./Cki2vNyW.js";import{b as cn}from"./BaIAhI85.js";import{f as Xe,ae as ro,a_ as Ql}from"./NeYI0LTt.js";import{J as Zl,O as Jl,Q as xs}from"./S5Sbp0zl.js";import"./CCVYeY-e.js";import"./CHOnTvs1.js";import"./DSFNjfq2.js";import{s as Ln}from"./BEWd3Wd2.js";import{F as jt,a0 as zs,bc as Tn,cF as no,aq as bi,aV as wi,aG as Xl,c4 as Yl,a2 as is,aJ as ed,cI as td,cH as rd,$ as vs,as as ao,I as yo,af as nd,bq as ad,aO as sd,aT as od,bF as id,ak as ld,cx as dd,ay as bo,aL as wo,bX as ks,aE as Ua,cR as cd,c6 as ud,bj as fd,b as gd,ck as md,ac as pd,b6 as Is,cm as xa,cA as vd,a as hd}from"./mNUHj1rI.js";import{c as xi,A as _d,x as yd}from"./CodBnHd8.js";import{b as Ss,V as xo}from"./g6dwab4X.js";import{a as ki,b7 as Pr,A as Ga,ao as Ii,s as bd,n as Si,d as wd,I as xd,R as kd,ax as Id,a0 as Sd}from"./C7XJXaB7.js";import{bX as Ti,j as Qa,a6 as Ws,al as ls,F as Td,au as Za,aN as Cd,aQ as ko}from"./ChCN1Gu-.js";import{t as ia,o as Ad}from"./7H-n9zof.js";import{c3 as Ja,aC as Da,cQ as Ci,cS as Vn,bU as hs,j as Md,cJ as Ai,cP as _s,cO as Mi,cM as Pi,g as Nn,aa as Pd,ab as Rd,ax as Ed,s as Nd,K as Ld,W as Io,v as Ri,dO as $d,at as Od,k as qd,u as Ts,a6 as Dd,n as Bd,O as Fd,o as zd,S as Wd,R as Hd,a0 as Ud,q as Ei,r as Ni,l as jd,cT as Vd,a4 as Kd,D as Gd,x as Qd,V as So}from"./B9pVpwXj.js";import{Iv as yt,oA as Zd,t9 as Xa,np as To,v1 as Li,v3 as $i,ro as Jd,x$ as ds,uk as Oi,nk as qi,bf as Ya,y0 as Xd,q2 as Yd,sG as ec,uW as Di,nj as tc,mq as rc,i as nc,ys as ac,yp as sc,yr as oc}from"./fSyO2umz.js";import{a2 as ic,x as Cs,a0 as lc,O as As,V as dc,_ as cc,j as uc,o as ka,M as fa,p as fc,F as gc,u as mc,s as pc,L as Ms,J as vc,y as hc,K as _c,Z as Ma,Q as ja,N as Co,m as Ao,E as yc,c as Ps,B as Mo,z as bc,v as Po,H as Pa,P as wc,G as xc,i as kc,R as Ic,T as Sc,A as Tc,g as Cc,b as Ac,D as Mc,f as Pc,e as Rc,a as Ec,C as Nc,h as Lc,U as Bi,a3 as $c,t as Oc,k as qc,d as Ro}from"./Onx6XErR.js";import{i as Dc,e as Bc}from"./k-x0h0G_.js";import{g as Rs}from"./BvFAWM27.js";import{M as Ia,C as Ra}from"./cFAs9x9A.js";import{C as Eo}from"./DfP8-E4c.js";import"./D0MGMinc.js";import{P as Fc}from"./DK3sBN-X.js";import"./D9uk5SNv.js";import{c as Fi}from"./ChTqQfQN.js";import{S as zc}from"./BANZxiwI.js";import{D as No,M as Wc}from"./B96uZ9bz.js";import{b as Hc,s as na,c as cs}from"./BjlLvkns.js";import{O as es,y as Es,E as Ns,B as Ls,N as Uc,m as jc,l as Vc,d as us,C as Lo,f as Kc,e as Gc,g as Qc}from"./Drru83uz.js";import{a as zi,s as $o}from"./BsieX9dN.js";import{f as Zc}from"./BdWqymET.js";import{c as dn}from"./CqyTmKyd.js";import{P as Jc}from"./DGIV4Vo-.js";import{v as $s,t as Os,K as Oo,h as Xc}from"./D4V4ch-K.js";import{R as Hs,C as ys,k as Yc,h as eu,g as tu,i as qo,P as ru}from"./COSepW13.js";import"./DCJF1EsI.js";import{R as Do,x as Na,o as Wi}from"./gqGuWn1w.js";import{B as nu}from"./Bzfr2EHI.js";import{o as Hi,r as au,e as su}from"./DI6jgBJE.js";import{o as Ui}from"./D3MP9WT1.js";import{g as so}from"./D66Wwf7O.js";import{a as ou,M as iu}from"./CQANJb_H.js";import{c as Sa}from"./CwFEdD3h.js";import{A as lu}from"./Bdisv45z.js";import{f as du,d as cu}from"./DUfd5L3a.js";import{a8 as uu,N as fu,Y as gu,K as Bo,X as mu,v as pu}from"./cVQbeQMu.js";import{a as vu}from"./CC7to1B5.js";import{k as hu}from"./CgSWRIvD.js";import{S as _u}from"./o0XOKzhL.js";import{u as yu,a as bu,c as Fo,S as wu}from"./DfxQWSVU.js";import{T as Us}from"./DQI5zOsq.js";import"./CVtHgVrS.js";import{g as xu}from"./BKkglBqM.js";import{a as ku}from"./D_ZD5RNe.js";import{b as Iu}from"./FoPHB-pC.js";import{b as zo}from"./p7znhYIU.js";import{g as Su,i as Tu,a as Cu}from"./DVzpe44v.js";import{n as Wo,o as Ho,b as ma,s as Ta,_ as qs,e as Au}from"./CIyUrgF0.js";import{b7 as Un,L as Mu}from"./C_ny7WcD.js";import{x as Pu}from"./CNqgoGJU.js";import{c as Ru}from"./42g-QhQV.js";function Eu(r){if(!r||typeof r!="object")return null;const t=r;if(t.type!=="script_monitor_wake"||t.source!=="system")return null;const{scriptName:n,scriptId:a,runId:o,monitorId:i,workspaceId:d,reason:c}=t;if(typeof n!="string"||typeof a!="string"||!a||typeof o!="string"||!o||typeof i!="string"||!i||typeof d!="string"||!d||c!=="finished"&&c!=="ttl-expired"&&c!=="output-match"&&c!=="line-count")return null;const h=t.trigger;return{scriptName:n,scriptId:a,runId:o,monitorId:i,workspaceId:d,reason:c,...c==="output-match"&&typeof h?.matchedLine=="string"?{matchedLine:h.matchedLine}:{}}}function Nu(r){return r?.type==="script_monitor_wake"&&!("remoteAgentId"in r)}function Lu(r,t,n,a=!1){if(!r||!t)return{edit:!1,remove:!1,sendNow:!1};const o=r.messageMetadata?.fromPrincipalId??r.author?.principalId,i=uu(r)&&r.author?.principalId!==null&&o===t;return{edit:i,remove:i||t===n||a,sendNow:(i||a)&&!ji(r)}}function Ca(r,t){if(t)return r.find(n=>n.editing&&n.editingMessageId?n.editingMessageId===t:n.id===t)}function ji(r){return Nu(r.messageMetadata)&&typeof r.messageMetadata?.monitorId=="string"}function Uo(r,t=Date.now()){const n=r.messageMetadata,a=n?.fromPrincipalId,o=n&&Object.hasOwn(n,"humanAuthor")&&!(typeof a=="string"&&a.length>0),i=r.holdKind!==void 0&&Date.parse(r.holdUntil??"")>t;return!r.editing&&!i&&!o&&!ji(r)}const G_="pl-3.5! pr-2!";var $u=I('<span class="tile-remove-slot svelte-d8pwpf"><!></span>'),jo=I('<span class="attachment-status svelte-d8pwpf"> </span>'),Ou=I('<div class="file-image tile svelte-d8pwpf" data-kind="file"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),qu=I("<!><span> </span>",1),Du=I('<img alt="" draggable="false"/>'),Bu=I('<span class="summary svelte-d8pwpf" data-clip-summary=""> </span>'),Fu=I('<span class="clip svelte-d8pwpf"><span class="record-dot svelte-d8pwpf" aria-hidden="true"></span><span class="duration svelte-d8pwpf"> </span><!></span>'),zu=I('<div class="tile svelte-d8pwpf"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),Wu=I('<div class="attachment-row svelte-d8pwpf" role="group" data-dock-media-attachments=""></div>'),Hu=I("<!> <!> <!>",1),Uu=I('<img draggable="false" class="svelte-d8pwpf"/>'),ju=I('<video controls="" playsinline="" class="svelte-d8pwpf"></video>',2),Vu=I('<div class="media-viewer svelte-d8pwpf"><!></div>'),Ku=I("<!> <!>",1);function Gu(r,t){if(new.target)return It({component:Gu,...r});Ct(t,!0);const n=(O,ye=or,pe=or)=>{var A=$u(),ge=z(A);Xe(ge,{variant:"secondary",size:"icon-sm",class:"tile-action tile-remove",get disabled(){return i()},get"aria-label"(){return pe()},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return pe()},onclick:()=>q(ye()),children:(Te,Be)=>{Ss(Te,{glyph:"x"})},$$slots:{default:!0}}),R(A),u(O,A)};let a=g(t,"items",7),o=g(t,"labels",7),i=g(t,"disabled",7,!1),d=g(t,"onMarkUp",7),c=g(t,"onEdit",7),h=g(t,"onRemove",7),v=g(t,"onRetry",7),b=g(t,"onCopy",7),k=g(t,"onMenu",7);const N=O=>O.owner==="attachment"?2:{image:0,clip:1,file:2}[O.kind],Y=s(()=>[...a()].sort((O,ye)=>N(O)-N(ye)));let S=we(null),D=we(!1),ie=we(null),X=null;const M=s(()=>a().find(O=>O.id===e(ie)));sr(()=>{(!e(M)||e(M).kind==="image"&&!W(e(M)))&&j(D,!1)});function W(O){return O.kind==="image"&&O.status!=="placing"&&O.status!=="failed"&&O.url.trim().length>0}function E(O){return O.kind==="image"?o().image(O.markCount):O.kind==="clip"?O.summary?`${o().clip(O.duration)} ${O.summary}`:o().clip(O.duration):O.name}function ne(O,ye){if(!(i()||O.kind==="file"||O.kind==="image"&&!W(O)||O.kind==="clip"&&(!O.url||O.recording))){if((O.kind==="clip"||O.kind==="image")&&c()){c()(O.id);return}X=ye,j(ie,O.id,!0),j(D,!0)}}async function q(O){i()||(e(ie)===O&&j(D,!1),h()(O),await Cn(),(!document.activeElement||document.activeElement===document.body)&&e(S)?.querySelector("button:not(:disabled)")?.focus())}function F(O){const ye=a().find(pe=>pe.id===O);i()||!ye||!W(ye)||(j(D,!1),c()?c()(O):d()(O))}function ae(O,ye){O.key!=="Delete"||i()||(O.preventDefault(),O.stopPropagation(),q(ye))}function C(O){return O.status==="placing"||O.status==="failed"?!1:O.kind==="image"?!!O.file||W(O):O.kind==="clip"&&!O.recording&&!!O.url}function ee(O,ye){const pe=Zl()?O.metaKey:O.ctrlKey,A=O.key.toLowerCase();if(pe&&!O.shiftKey&&!O.altKey&&(A==="c"||A==="x")){if(!b()||!C(ye)||(O.preventDefault(),O.stopPropagation(),A==="x"&&i()))return;b()(ye.id,A==="x");return}ae(O,ye.id)}function le(O,ye){!k()||!C(ye)||(O.preventDefault(),k()(ye.id))}var me={get items(){return a()},set items(O){a(O),m()},get labels(){return o()},set labels(O){o(O),m()},get disabled(){return i()},set disabled(O=!1){i(O),m()},get onMarkUp(){return d()},set onMarkUp(O){d(O),m()},get onEdit(){return c()},set onEdit(O){c(O),m()},get onRemove(){return h()},set onRemove(O){h(O),m()},get onRetry(){return v()},set onRetry(O){v(O),m()},get onCopy(){return b()},set onCopy(O){b(O),m()},get onMenu(){return k()},set onMenu(O){k(O),m()},$set:St,$on:(O,ye)=>Tt(t,O,ye)},_e=Ku(),Re=xe(_e);{var Le=O=>{var ye=Wu();Tr(ye,21,()=>e(Y),pe=>pe.id,(pe,A)=>{var ge=Rt(),Te=xe(ge);{var Be=P=>{var Q=Ou(),re=z(Q);{let G=s(()=>i()||e(A).status==="placing");ki(re,{get id(){return e(A).id},get name(){return e(A).file.name},get type(){return e(A).file.imageMimeType},get imageData(){return e(A).file.imageData},get imageMimeType(){return e(A).file.imageMimeType},variant:"thumbnail",thumbnailClass:"size-full",class:"size-full",get disabled(){return e(G)},get placementStatus(){return e(A).status},get placementError(){return e(A).error}})}var se=T(re,2);{var ce=G=>{var Ee=jo(),De=oe(Ee,!0);$(()=>{te(Ee,"data-failed",e(A).status==="failed"||void 0),te(Ee,"role",e(A).status==="failed"?"alert":"status"),te(Ee,"title",e(A).error),J(De,e(A).status==="failed"?e(A).error??o().attachmentFailed:o().attachmentPending)}),u(G,Ee)};B(se,G=>{e(A).status&&G(ce)})}var w=T(se,2),Se=z(w);{var Ae=G=>{Xe(G,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>v()?.(e(A).id),children:(Ee,De)=>{jt(Ee,{get icon(){return zs},size:16})},$$slots:{default:!0}})};B(Se,G=>{e(A).status==="failed"&&v()&&G(Ae)})}var L=T(Se,2);{let G=s(()=>f.chat_attachmentPreview_remove_ariaLabel({name:e(A).file.name}));n(L,()=>e(A).id,()=>e(G))}R(w),R(Q),$(()=>te(Q,"data-attachment-id",e(A).id)),Sr("keydown",Q,G=>ee(G,e(A))),Sr("contextmenu",Q,G=>le(G,e(A))),Kt(1,Q,()=>qa,()=>({tier:"fast",y:3,scale:.98})),Kt(2,Q,()=>ea,()=>({tier:"fast"})),u(P,Q)},Ce=P=>{const Q=s(()=>e(A).kind==="image"&&!W(e(A))&&e(A).status!=="failed");var re=zu(),se=z(re);{var ce=ve=>{Xe(ve,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile file",get"aria-label"(){return e(A).name},get disabled(){return i()},onkeydown:Oe=>ae(Oe,e(A).id),children:(Oe,U)=>{var ue=qu(),ot=xe(ue);jt(ot,{get icon(){return Tn},size:20});var xt=T(ot),mt=oe(xt,!0);$(()=>J(mt,e(A).name)),u(Oe,ue)},$$slots:{default:!0}})},w=ve=>{{let Oe=s(()=>E(e(A))),U=s(()=>i()||e(A).kind==="clip"&&(e(A).recording||!e(A).url));Xe(ve,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile",get"aria-label"(){return e(Oe)},get disabled(){return e(U)},onkeydown:ue=>ee(ue,e(A)),onclick:ue=>{ue.currentTarget instanceof HTMLElement&&ne(e(A),ue.currentTarget)},children:(ue,ot)=>{var xt=Rt(),mt=xe(xt);{var Ft=je=>{var bt=Du();$(()=>te(bt,"src",e(A).url)),u(je,bt)},pt=je=>{var bt=Fu(),at=T(z(bt)),dt=oe(at,!0),$e=T(at);{var ft=K=>{var _=Bu(),he=oe(_,!0);$(()=>J(he,e(A).summary)),u(K,_)};B($e,K=>{e(A).summary&&K(ft)})}R(bt),$(()=>J(dt,e(A).duration)),u(je,bt)};B(mt,je=>{e(A).kind==="image"?je(Ft):je(pt,-1)})}u(ue,xt)},$$slots:{default:!0}})}},Se=s(()=>e(A).kind!=="image"||W(e(A)));B(se,ve=>{e(A).kind==="file"?ve(ce):e(Se)&&ve(w,1)})}var Ae=T(se,2);{var L=ve=>{var Oe=jo(),U=oe(Oe,!0);$(()=>{te(Oe,"data-failed",e(A).status==="failed"||void 0),te(Oe,"role",e(A).status==="failed"?"alert":"status"),te(Oe,"title",e(A).error),J(U,e(A).status==="failed"?e(A).error??o().attachmentFailed:o().attachmentPending)}),u(ve,Oe)};B(Ae,ve=>{(e(A).status||e(Q))&&ve(L)})}var G=T(Ae,2),Ee=z(G);{var De=ve=>{Xe(ve,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>v()?.(e(A).id),children:(Oe,U)=>{jt(Oe,{get icon(){return zs},size:16})},$$slots:{default:!0}})},Je=ve=>{{let Oe=s(()=>c()?o().edit:o().markUp),U=s(()=>c()?o().edit:o().markUp);Xe(ve,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return e(Oe)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(U)},onclick:()=>F(e(A).id),children:(ue,ot)=>{Ss(ue,{glyph:"pencil"})},$$slots:{default:!0}})}},Ge=s(()=>W(e(A))),Bt=ve=>{{let Oe=s(()=>c()?o().edit:o().play),U=s(()=>c()?o().edit:o().play);Xe(ve,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return e(Oe)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(U)},onclick:ue=>{ue.currentTarget instanceof HTMLElement&&ne(e(A),ue.currentTarget)},children:(ue,ot)=>{{let xt=s(()=>c()?"pencil":"play");Ss(ue,{get glyph(){return e(xt)}})}},$$slots:{default:!0}})}};B(Ee,ve=>{e(A).status==="failed"&&v()?ve(De):e(Ge)?ve(Je,1):e(A).kind==="clip"&&!e(A).recording&&e(A).url&&ve(Bt,2)})}var ke=T(Ee,2);n(ke,()=>e(A).id,()=>o().remove),R(G),R(re),$(()=>{te(re,"data-kind",e(A).kind),te(re,"data-attachment-id",e(A).id),te(re,"aria-busy",e(Q)||void 0)}),Sr("contextmenu",re,ve=>le(ve,e(A))),Kt(1,re,()=>qa,()=>({tier:"fast",y:3,scale:.98})),Kt(2,re,()=>ea,()=>({tier:"fast"})),u(P,re)};B(Te,P=>{e(A).kind==="image"&&e(A).file?P(Be):P(Ce,-1)})}u(pe,ge)}),R(ye),cn(ye,pe=>j(S,pe),()=>e(S)),$(()=>te(ye,"aria-label",o().attachments)),u(O,ye)};B(Re,O=>{e(Y).length&&O(Le)})}var Ke=T(Re,2);{const O=pe=>{var A=Rt(),ge=xe(A);{var Te=Be=>{var Ce=Hu(),P=xe(Ce);{var Q=w=>{Xe(w,{variant:"primary",get disabled(){return i()},onclick:()=>e(M)&&F(e(M).id),children:(Se,Ae)=>{gr();var L=Or();$(()=>J(L,o().markUp)),u(Se,L)},$$slots:{default:!0}})},re=s(()=>W(e(M)));B(P,w=>{e(re)&&w(Q)})}var se=T(P,2);Xe(se,{variant:"secondary",get disabled(){return i()},onclick:()=>e(M)&&q(e(M).id),children:(w,Se)=>{gr();var Ae=Or();$(()=>J(Ae,o().remove)),u(w,Ae)},$$slots:{default:!0}});var ce=T(se,2);Xe(ce,{variant:"ghost-light",onclick:()=>{j(D,!1)},children:(w,Se)=>{gr();var Ae=Or();$(()=>J(Ae,o().done)),u(w,Ae)},$$slots:{default:!0}}),u(Be,Ce)};B(ge,Be=>{e(M)&&e(M).kind!=="file"&&Be(Te)})}u(pe,A)};let ye=s(()=>e(M)?E(e(M)):o().attachments);xi(Ke,{get title(){return e(ye)},size:"wide",showCloseButton:!1,onCloseAutoFocus:pe=>{pe.preventDefault(),X?.isConnected?X.focus():e(S)?.querySelector("button:not(:disabled)")?.focus()},get open(){return e(D)},set open(pe){j(D,pe,!0)},footer:O,children:(pe,A)=>{var ge=Rt(),Te=xe(ge);{var Be=Ce=>{var P=Vu(),Q=z(P);{var re=w=>{var Se=Uu();$(Ae=>{te(Se,"src",e(M).url),te(Se,"alt",Ae)},[()=>E(e(M))]),u(w,Se)},se=s(()=>e(M).kind==="image"&&W(e(M))),ce=w=>{var Se=ju();$(Ae=>{te(Se,"src",e(M).url),te(Se,"aria-label",Ae)},[()=>E(e(M))]),u(w,Se)};B(Q,w=>{e(se)?w(re):e(M).kind==="clip"&&e(M).url&&w(ce,1)})}R(P),u(Ce,P)};B(Te,Ce=>{e(M)&&e(M).kind!=="file"&&Ce(Be)})}u(pe,ge)},$$slots:{footer:!0,default:!0}})}return u(r,_e),At(me)}aa(["keydown","contextmenu"]);var Qu=I("<!> ",1),Zu=I('<div class="flex flex-col gap-2 px-4 py-3 bg-muted/30 border border-border rounded-lg my-4"><div class="flex items-center justify-between gap-2"><div class="flex items-center gap-2"><div class="shrink-0 text-subtle"><!></div> <div class="font-medium text-sm"> </div></div> <div class="flex items-center gap-1"><!> <!></div></div> <div class="text-xs text-subtle"> </div> <pre class="text-xs bg-background/50 rounded p-2 overflow-x-auto max-h-40 overflow-y-auto font-mono"> </pre></div>');function Vi(r,t){if(new.target)return It({component:Vi,...r});Ct(t,!0);let n=g(t,"name",7),a=g(t,"description",7),o=g(t,"content",7),i=g(t,"onUseScript",7),d=we(!1);function c(){navigator.clipboard.writeText(o()),j(d,!0),setTimeout(()=>{j(d,!1)},2e3)}function h(){i()?.({name:n(),description:a(),content:o()})}var v={get name(){return n()},set name(C){n(C),m()},get description(){return a()},set description(C){a(C),m()},get content(){return o()},set content(C){o(C),m()},get onUseScript(){return i()},set onUseScript(C){i(C),m()},$set:St,$on:(C,ee)=>Tt(t,C,ee)},b=Zu(),k=z(b),N=z(k),Y=z(N),S=z(Y);jt(S,{get icon(){return no},size:"sm"}),R(Y);var D=T(Y,2),ie=oe(D,!0);R(N);var X=T(N,2),M=z(X);Xe(M,{variant:"ghost-light",size:"sm",onclick:c,class:"h-7 px-2",children:(C,ee)=>{var le=Qu(),me=xe(le);{let Re=s(()=>e(d)?bi:wi);jt(me,{get icon(){return e(Re)},class:"mr-1"})}var _e=T(me);$(Re=>J(_e,` ${Re??""}`),[()=>e(d)?f.chat_shared_copied_label():f.chat_shared_copy_label()]),u(C,le)},$$slots:{default:!0}});var W=T(M,2);{var E=C=>{Xe(C,{variant:"ghost-light",size:"sm",onclick:h,class:"h-7 px-2",children:(ee,le)=>{gr();var me=Or();$(_e=>J(me,_e),[()=>f.chat_setupScriptCard_useScript_label()]),u(ee,me)},$$slots:{default:!0}})};B(W,C=>{i()&&C(E)})}R(X),R(k);var ne=T(k,2),q=oe(ne,!0),F=T(ne,2),ae=oe(F,!0);return R(b),$(()=>{J(ie,n()),J(q,a()),J(ae,o())}),u(r,b),At(v)}const wr={toolStart:/(?:\x1B\[\d+m)?🔧\s+(?:Tool call:\s+)?(.+?)(?:\x1B\[0m)?$/,toolDetail:/(?:[└├]─\s+(.+)$|^\s{3,}(.+)$)/,toolResult:/(?:\x1B\[\d+m)?📋\s+Tool result:\s+(.+?)(?:\x1B\[0m)?$/,toolSuccess:/[✓✔✅]\s+(.+)$/,toolError:/[❌✗❎]\s+(.+)$/,sessionInfo:/[Ss]ession:\s*([a-f0-9-]+)/,resumedSession:/📂?\s*Resumed session/i,assistantMarker:/🤖/,systemMarker:/💻/,userMarker:/👤/,thinkingMarker:/🤔\s*Thinking/i,waitingMarker:/^⏳\s+Running/i,indexingProgress:/^Indexing:\s*\[.*\]\s*\d+%/,agentDigest:/<agent_digest>([\s\S]*?)<\/agent_digest>/,setupScript:/<setup_script\s+name="([^"]+)"\s+description="([^"]+)">([\s\S]*?)<\/setup_script>/};class Ju{constructor(){kn(this,"buffer","");kn(this,"currentToolName",null);kn(this,"currentToolId",null);kn(this,"lastToolId",null);kn(this,"currentToolParams",[]);kn(this,"currentToolResultContent",[]);kn(this,"inToolResult",!1);kn(this,"inCodeBlock",!1);kn(this,"codeBlockLanguage","");kn(this,"codeBlockContent","");kn(this,"characterBuffer","");kn(this,"inCharacterMode",!1);kn(this,"emittedToolIds",new Set)}parseChunk(t){if(this.isMarkerLine(t.trim())){const o=[];if(this.inToolResult&&this.currentToolResultContent.length>0){const c=this.currentToolResultContent.some(v=>v.startsWith("❌")||v.startsWith("Error:")),h=this.currentToolResultContent.map(v=>v.replace(/^❌\s*/,"").replace(/^Error:\s*/,"")).join(`
|
|
2
2
|
`);o.push({type:"tool_result",content:h,metadata:{toolId:this.currentToolId,isError:c}}),this.lastToolId=this.currentToolId,this.currentToolId=null,this.inToolResult=!1,this.currentToolResultContent=[]}const i=t.indexOf("🤖"),d=t.substring(i+2);if(this.inCharacterMode=!0,this.characterBuffer="",d&&d.trim()&&d!==`
|
|
3
3
|
`){const c=d.replace(/^\n/,"");c&&(this.characterBuffer=c)}return o}if(this.inCharacterMode){if(t.trim()===""&&this.characterBuffer==="")return[];if(t.includes(`
|
|
4
4
|
`)&&this.characterBuffer.length>0){const o=t.substring(0,t.indexOf(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Ar=Object.defineProperty;var cr=s=>{throw TypeError(s)};var Hr=(s,t,e)=>t in s?Ar(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var m=(s,t,e)=>Hr(s,typeof t!="symbol"?t+"":t,e),Ce=(s,t,e)=>t.has(s)||cr("Cannot "+e);var n=(s,t,e)=>(Ce(s,t,"read from private field"),e?e.call(s):t.get(s)),d=(s,t,e)=>t.has(s)?cr("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(s):t.set(s,e),F=(s,t,e,r)=>(Ce(s,t,"write to private field"),r?r.call(s,e):t.set(s,e),e),et=(s,t,e)=>(Ce(s,t,"access private method"),e);import{t as V,bq as v,by as M,b as W,br as k,bt as L}from"./BUAFIktJ.js";import{aD as o,bH as f,bV as T,c9 as y,ca as X,c5 as ht,bs as A,a7 as O,ay as E,W as z,bn as H,aA as S,bf as J,bi as ut,cb as Lr,bo as ie,a5 as nt,bA as it,aB as tt,bS as fe}from"./DYhIMPy1.js";import{i as B}from"./Bvd0DfwC.js";import{s as U}from"./CnTu6sc6.js";import{c as ct}from"./BgOj6lPu.js";import{aL as Or,e as kr,aU as Xr,a$ as ur,av as D,aX as ze,h as le,aZ as Ur,an as K,D as Yr,ay as $r,aA as Ir,aQ as Y,aJ as Fr,az as j}from"./hwFphMxp.js";import{b as lt,e as Br,p as jr}from"./COO6ldt4.js";function qr(s,t){if(Or(s)){const r=s();return r===void 0?t:r}return s===void 0?t:s}function we(s,t){let e=T(null);const r=y(()=>qr(t,250));function i(...l){if(o(e))o(e).timeout&&clearTimeout(o(e).timeout);else{let a,c;const u=new Promise((p,h)=>{a=p,c=h});f(e,{timeout:null,runner:null,promise:u,resolve:a,reject:c},!0)}return o(e).runner=async()=>{if(!o(e))return;const a=o(e);f(e,null);try{a.resolve(await s.apply(this,l))}catch(c){a.reject(c)}},o(e).timeout=setTimeout(o(e).runner,o(r)),o(e).promise}return i.cancel=async()=>{(!o(e)||o(e).timeout===null)&&(await new Promise(l=>setTimeout(l,0)),!o(e)||o(e).timeout===null)||(clearTimeout(o(e).timeout),o(e).reject("Cancelled"),f(e,null))},i.runScheduledNow=async()=>{(!o(e)||!o(e).timeout)&&(await new Promise(l=>setTimeout(l,0)),!o(e)||!o(e).timeout)||(clearTimeout(o(e).timeout),o(e).timeout=null,await o(e).runner?.())},Object.defineProperty(i,"pending",{enumerable:!0,get(){return!!o(e)?.timeout}}),i}var rt;class $e{constructor(){d(this,rt,T(!1));X(()=>(ht(()=>f(n(this,rt),!0)),()=>{f(n(this,rt),!1)}))}get current(){return o(n(this,rt))}}rt=new WeakMap;var dt,ft;class at{constructor(t,e){d(this,dt);d(this,ft);F(this,dt,t),F(this,ft,e),this.handler=this.handler.bind(this),X(this.handler)}handler(){let t=0;const e=n(this,dt).call(this);if(!e)return;const r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n(this,ft))});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}}dt=new WeakMap,ft=new WeakMap;var pt,Q,bt,Z,q,mt,gt,De;class Gr{constructor(t){d(this,gt);m(this,"opts");m(this,"present");d(this,pt);d(this,Q,T(!1));d(this,bt,!1);d(this,Z,T(void 0));d(this,q,null);d(this,mt,y(()=>o(n(this,Q))));this.opts=t,this.present=this.opts.open,f(n(this,Q),t.open.current,!0),F(this,pt,new kr({ref:this.opts.ref,afterTick:this.opts.open})),Xr(()=>et(this,gt,De).call(this)),ur(()=>this.present.current,e=>{if(!n(this,bt)){F(this,bt,!0);return}et(this,gt,De).call(this),e&&f(n(this,Q),!0),f(n(this,Z),e?"starting":"ending",!0),e&&F(this,q,window.requestAnimationFrame(()=>{F(this,q,null),this.present.current&&f(n(this,Z),void 0)})),n(this,pt).run(()=>{e===this.present.current&&(e||f(n(this,Q),!1),f(n(this,Z),void 0))})})}get isPresent(){return o(n(this,mt))}set isPresent(t){f(n(this,mt),t)}get transitionStatus(){return o(n(this,Z))}}pt=new WeakMap,Q=new WeakMap,bt=new WeakMap,Z=new WeakMap,q=new WeakMap,mt=new WeakMap,gt=new WeakSet,De=function(){n(this,q)!==null&&(window.cancelAnimationFrame(n(this,q)),F(this,q,null))};function ae(s,t){if(new.target)return V({component:ae,...s});A(t,!0);let e=v(t,"open",7),r=v(t,"forceMount",7),i=v(t,"presence",7),l=v(t,"ref",7);const a=new Gr({open:D(()=>e()),ref:l()});var c={get open(){return e()},set open(P){e(P),S()},get forceMount(){return r()},set forceMount(P){r(P),S()},get presence(){return i()},set presence(P){i(P),S()},get ref(){return l()},set ref(P){l(P),S()},$set:M,$on:(P,w)=>W(t,P,w)},u=O(),p=E(u);{var h=P=>{var w=O(),x=E(w);U(x,()=>i()??J,()=>({present:a.isPresent,transitionStatus:a.transitionStatus})),z(P,w)};B(p,P=>{(r()||e()||a.isPresent)&&P(h)})}return z(s,u),H(c)}function Jr(s,t,e){return Math.min(e,Math.max(t,s))}var vt,me,dr;class Qr{constructor(t,e){d(this,me);m(this,"state");d(this,vt);this.state=ze(t),F(this,vt,e),this.dispatch=this.dispatch.bind(this)}dispatch(t){this.state.current=et(this,me,dr).call(this,t)}}vt=new WeakMap,me=new WeakSet,dr=function(t){return n(this,vt)[this.state.current][t]??this.state.current};const ce=$r({component:"scroll-area",parts:["root","viewport","corner","thumb","scrollbar"]}),he=new le("ScrollArea.Root"),ue=new le("ScrollArea.Scrollbar"),Pe=new le("ScrollArea.ScrollbarVisible"),Ie=new le("ScrollArea.ScrollbarAxis"),fr=new le("ScrollArea.ScrollbarShared");var St,wt,Pt,yt,xt,_t,Tt,Nt,Ct,zt;const Be=class Be{constructor(t){m(this,"opts");m(this,"attachment");d(this,St,T(null));d(this,wt,T(null));d(this,Pt,T(null));d(this,yt,T(null));d(this,xt,T(null));d(this,_t,T(0));d(this,Tt,T(0));d(this,Nt,T(!1));d(this,Ct,T(!1));m(this,"domContext");d(this,zt,y(()=>({id:this.opts.id.current,dir:this.opts.dir.current,style:{position:"relative","--bits-scroll-area-corner-height":`${this.cornerHeight}px`,"--bits-scroll-area-corner-width":`${this.cornerWidth}px`},[ce.root]:"",...this.attachment})));this.opts=t,this.attachment=K(t.ref,e=>this.scrollAreaNode=e),this.domContext=new Yr(t.ref)}static create(t){return he.set(new Be(t))}get scrollAreaNode(){return o(n(this,St))}set scrollAreaNode(t){f(n(this,St),t,!0)}get viewportNode(){return o(n(this,wt))}set viewportNode(t){f(n(this,wt),t,!0)}get contentNode(){return o(n(this,Pt))}set contentNode(t){f(n(this,Pt),t,!0)}get scrollbarXNode(){return o(n(this,yt))}set scrollbarXNode(t){f(n(this,yt),t,!0)}get scrollbarYNode(){return o(n(this,xt))}set scrollbarYNode(t){f(n(this,xt),t,!0)}get cornerWidth(){return o(n(this,_t))}set cornerWidth(t){f(n(this,_t),t,!0)}get cornerHeight(){return o(n(this,Tt))}set cornerHeight(t){f(n(this,Tt),t,!0)}get scrollbarXEnabled(){return o(n(this,Nt))}set scrollbarXEnabled(t){f(n(this,Nt),t,!0)}get scrollbarYEnabled(){return o(n(this,Ct))}set scrollbarYEnabled(t){f(n(this,Ct),t,!0)}get props(){return o(n(this,zt))}set props(t){f(n(this,zt),t)}};St=new WeakMap,wt=new WeakMap,Pt=new WeakMap,yt=new WeakMap,xt=new WeakMap,_t=new WeakMap,Tt=new WeakMap,Nt=new WeakMap,Ct=new WeakMap,zt=new WeakMap;let Ee=Be;var ge,ve,Dt,Et;const je=class je{constructor(t,e){m(this,"opts");m(this,"root");m(this,"attachment");d(this,ge,ze(Ur()));d(this,ve,ze(null));m(this,"contentAttachment",K(n(this,ve),t=>this.root.contentNode=t));d(this,Dt,y(()=>({id:this.opts.id.current,style:{overflowX:this.root.scrollbarXEnabled?"scroll":"hidden",overflowY:this.root.scrollbarYEnabled?"scroll":"hidden"},[ce.viewport]:"",...this.attachment})));d(this,Et,y(()=>({id:n(this,ge).current,"data-scroll-area-content":"",style:{minWidth:this.root.scrollbarXEnabled?"fit-content":void 0},...this.contentAttachment})));this.opts=t,this.root=e,this.attachment=K(t.ref,r=>this.root.viewportNode=r)}static create(t){return new je(t,he.get())}get props(){return o(n(this,Dt))}set props(t){f(n(this,Dt),t)}get contentProps(){return o(n(this,Et))}set contentProps(t){f(n(this,Et),t)}};ge=new WeakMap,ve=new WeakMap,Dt=new WeakMap,Et=new WeakMap;let Re=je;var Rt,Vt;const qe=class qe{constructor(t,e){m(this,"opts");m(this,"root");d(this,Rt,y(()=>this.opts.orientation.current==="horizontal"));d(this,Vt,T(!1));this.opts=t,this.root=e,ur(()=>this.isHorizontal,r=>r?(this.root.scrollbarXEnabled=!0,()=>{this.root.scrollbarXEnabled=!1}):(this.root.scrollbarYEnabled=!0,()=>{this.root.scrollbarYEnabled=!1}))}static create(t){return ue.set(new qe(t,he.get()))}get isHorizontal(){return o(n(this,Rt))}set isHorizontal(t){f(n(this,Rt),t)}get hasThumb(){return o(n(this,Vt))}set hasThumb(t){f(n(this,Vt),t,!0)}};Rt=new WeakMap,Vt=new WeakMap;let Ve=qe;var Mt,Wt;const Ge=class Ge{constructor(t){m(this,"scrollbar");m(this,"root");d(this,Mt,T(!1));d(this,Wt,y(()=>({"data-state":this.isVisible?"visible":"hidden"})));this.scrollbar=t,this.root=t.root,X(()=>{const e=this.root.scrollAreaNode,r=this.root.opts.scrollHideDelay.current;let i=0;if(!e)return;const l=()=>{this.root.domContext.clearTimeout(i),ht(()=>this.isVisible=!0)},a=()=>{i&&this.root.domContext.clearTimeout(i),i=this.root.domContext.setTimeout(()=>{ht(()=>{this.scrollbar.hasThumb=!1,this.isVisible=!1})},r)},c=Ir(ut(e,"pointerenter",l),ut(e,"pointerleave",a));return()=>{this.root.domContext.getWindow().clearTimeout(i),c()}})}static create(){return new Ge(ue.get())}get isVisible(){return o(n(this,Mt))}set isVisible(t){f(n(this,Mt),t,!0)}get props(){return o(n(this,Wt))}set props(t){f(n(this,Wt),t)}};Mt=new WeakMap,Wt=new WeakMap;let Me=Ge;var At,Ht;const Je=class Je{constructor(t){m(this,"scrollbar");m(this,"root");m(this,"machine",new Qr("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}}));d(this,At,y(()=>this.machine.state.current==="hidden"));d(this,Ht,y(()=>({"data-state":this.machine.state.current==="hidden"?"hidden":"visible",onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave})));this.scrollbar=t,this.root=t.root;const e=we(()=>this.machine.dispatch("SCROLL_END"),100);X(()=>{const r=this.machine.state.current,i=this.root.opts.scrollHideDelay.current;if(r==="idle"){const l=this.root.domContext.setTimeout(()=>this.machine.dispatch("HIDE"),i);return()=>this.root.domContext.clearTimeout(l)}}),X(()=>{const r=this.root.viewportNode;if(!r)return;const i=this.scrollbar.isHorizontal?"scrollLeft":"scrollTop";let l=r[i];return ut(r,"scroll",()=>{const u=r[i];l!==u&&(this.machine.dispatch("SCROLL"),e()),l=u})}),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this)}static create(){return new Je(ue.get())}get isHidden(){return o(n(this,At))}set isHidden(t){f(n(this,At),t)}onpointerenter(t){this.machine.dispatch("POINTER_ENTER")}onpointerleave(t){this.machine.dispatch("POINTER_LEAVE")}get props(){return o(n(this,Ht))}set props(t){f(n(this,Ht),t)}};At=new WeakMap,Ht=new WeakMap;let We=Je;var Lt,Ot;const Qe=class Qe{constructor(t){m(this,"scrollbar");m(this,"root");d(this,Lt,T(!1));d(this,Ot,y(()=>({"data-state":this.isVisible?"visible":"hidden"})));this.scrollbar=t,this.root=t.root;const e=we(()=>{const r=this.root.viewportNode;if(!r)return;const i=r.offsetWidth<r.scrollWidth,l=r.offsetHeight<r.scrollHeight;this.isVisible=this.scrollbar.isHorizontal?i:l},10);new at(()=>this.root.viewportNode,e),new at(()=>this.root.contentNode,e)}static create(){return new Qe(ue.get())}get isVisible(){return o(n(this,Lt))}set isVisible(t){f(n(this,Lt),t,!0)}get props(){return o(n(this,Ot))}set props(t){f(n(this,Ot),t)}};Lt=new WeakMap,Ot=new WeakMap;let pe=Qe;var kt,Xt,Ut,Yt,$t,It;const Ze=class Ze{constructor(t){m(this,"scrollbar");m(this,"root");d(this,kt,T(null));d(this,Xt,T(0));d(this,Ut,T({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}));d(this,Yt,y(()=>pr(this.sizes.viewport,this.sizes.content)));d(this,$t,y(()=>this.thumbRatio>0&&this.thumbRatio<1));d(this,It,T(""));this.scrollbar=t,this.root=t.root,X(()=>{this.scrollbar.hasThumb=this.hasThumb}),X(()=>{!this.scrollbar.hasThumb&&this.thumbNode&&(this.prevTransformStyle=this.thumbNode.style.transform)})}static create(){return Pe.set(new Ze(ue.get()))}get thumbNode(){return o(n(this,kt))}set thumbNode(t){f(n(this,kt),t,!0)}get pointerOffset(){return o(n(this,Xt))}set pointerOffset(t){f(n(this,Xt),t,!0)}get sizes(){return o(n(this,Ut))}set sizes(t){f(n(this,Ut),t)}get thumbRatio(){return o(n(this,Yt))}set thumbRatio(t){f(n(this,Yt),t)}get hasThumb(){return o(n(this,$t))}set hasThumb(t){f(n(this,$t),t)}get prevTransformStyle(){return o(n(this,It))}set prevTransformStyle(t){f(n(this,It),t,!0)}setSizes(t){this.sizes=t}getScrollPosition(t,e){return Zr({pointerPos:t,pointerOffset:this.pointerOffset,sizes:this.sizes,dir:e})}onThumbPointerUp(){this.pointerOffset=0}onThumbPointerDown(t){this.pointerOffset=t}xOnThumbPositionChange(){if(!(this.root.viewportNode&&this.thumbNode))return;const t=this.root.viewportNode.scrollLeft,r=`translate3d(${hr({scrollPos:t,sizes:this.sizes,dir:this.root.opts.dir.current})}px, 0, 0)`;this.thumbNode.style.transform=r,this.prevTransformStyle=r}xOnWheelScroll(t){this.root.viewportNode&&(this.root.viewportNode.scrollLeft=t)}xOnDragScroll(t){this.root.viewportNode&&(this.root.viewportNode.scrollLeft=this.getScrollPosition(t,this.root.opts.dir.current))}yOnThumbPositionChange(){if(!(this.root.viewportNode&&this.thumbNode))return;const t=this.root.viewportNode.scrollTop,r=`translate3d(0, ${hr({scrollPos:t,sizes:this.sizes})}px, 0)`;this.thumbNode.style.transform=r,this.prevTransformStyle=r}yOnWheelScroll(t){this.root.viewportNode&&(this.root.viewportNode.scrollTop=t)}yOnDragScroll(t){this.root.viewportNode&&(this.root.viewportNode.scrollTop=this.getScrollPosition(t,this.root.opts.dir.current))}};kt=new WeakMap,Xt=new WeakMap,Ut=new WeakMap,Yt=new WeakMap,$t=new WeakMap,It=new WeakMap;let Ae=Ze;var Ft,Bt,jt;const Ke=class Ke{constructor(t,e){m(this,"opts");m(this,"scrollbarVis");m(this,"root");m(this,"scrollbar");m(this,"attachment");d(this,Ft,T());m(this,"onThumbPointerDown",t=>{this.scrollbarVis.onThumbPointerDown(t.x)});m(this,"onDragScroll",t=>{this.scrollbarVis.xOnDragScroll(t.x)});m(this,"onThumbPointerUp",()=>{this.scrollbarVis.onThumbPointerUp()});m(this,"onThumbPositionChange",()=>{this.scrollbarVis.xOnThumbPositionChange()});m(this,"onWheelScroll",(t,e)=>{if(!this.root.viewportNode)return;const r=this.root.viewportNode.scrollLeft+t.deltaX;this.scrollbarVis.xOnWheelScroll(r),mr(r,e)&&t.preventDefault()});m(this,"onResize",()=>{this.scrollbar.opts.ref.current&&this.root.viewportNode&&this.computedStyle&&this.scrollbarVis.setSizes({content:this.root.viewportNode.scrollWidth,viewport:this.root.viewportNode.offsetWidth,scrollbar:{size:this.scrollbar.opts.ref.current.clientWidth,paddingStart:be(this.computedStyle.paddingLeft),paddingEnd:be(this.computedStyle.paddingRight)}})});d(this,Bt,y(()=>ye(this.scrollbarVis.sizes)));d(this,jt,y(()=>({id:this.scrollbar.opts.id.current,"data-orientation":"horizontal",style:{bottom:0,left:this.root.opts.dir.current==="rtl"?"var(--bits-scroll-area-corner-width)":0,right:this.root.opts.dir.current==="ltr"?"var(--bits-scroll-area-corner-width)":0,"--bits-scroll-area-thumb-width":`${this.thumbSize}px`},...this.attachment})));this.opts=t,this.scrollbarVis=e,this.root=e.root,this.scrollbar=e.scrollbar,this.attachment=K(this.scrollbar.opts.ref,r=>this.root.scrollbarXNode=r),X(()=>{this.scrollbar.opts.ref.current&&this.opts.mounted.current&&(this.computedStyle=getComputedStyle(this.scrollbar.opts.ref.current))}),X(()=>{this.onResize()})}static create(t){return Ie.set(new Ke(t,Pe.get()))}get computedStyle(){return o(n(this,Ft))}set computedStyle(t){f(n(this,Ft),t,!0)}get thumbSize(){return o(n(this,Bt))}set thumbSize(t){f(n(this,Bt),t)}get props(){return o(n(this,jt))}set props(t){f(n(this,jt),t)}};Ft=new WeakMap,Bt=new WeakMap,jt=new WeakMap;let He=Ke;var qt,Gt,Jt;const tr=class tr{constructor(t,e){m(this,"opts");m(this,"scrollbarVis");m(this,"root");m(this,"scrollbar");m(this,"attachment");d(this,qt,T());d(this,Gt,y(()=>ye(this.scrollbarVis.sizes)));d(this,Jt,y(()=>({id:this.scrollbar.opts.id.current,"data-orientation":"vertical",style:{top:0,right:this.root.opts.dir.current==="ltr"?0:void 0,left:this.root.opts.dir.current==="rtl"?0:void 0,bottom:"var(--bits-scroll-area-corner-height)","--bits-scroll-area-thumb-height":`${this.thumbSize}px`},...this.attachment})));this.opts=t,this.scrollbarVis=e,this.root=e.root,this.scrollbar=e.scrollbar,this.attachment=K(this.scrollbar.opts.ref,r=>this.root.scrollbarYNode=r),X(()=>{this.scrollbar.opts.ref.current&&this.opts.mounted.current&&(this.computedStyle=getComputedStyle(this.scrollbar.opts.ref.current))}),X(()=>{this.onResize()}),this.onThumbPointerDown=this.onThumbPointerDown.bind(this),this.onDragScroll=this.onDragScroll.bind(this),this.onThumbPointerUp=this.onThumbPointerUp.bind(this),this.onThumbPositionChange=this.onThumbPositionChange.bind(this),this.onWheelScroll=this.onWheelScroll.bind(this),this.onResize=this.onResize.bind(this)}static create(t){return Ie.set(new tr(t,Pe.get()))}get computedStyle(){return o(n(this,qt))}set computedStyle(t){f(n(this,qt),t,!0)}onThumbPointerDown(t){this.scrollbarVis.onThumbPointerDown(t.y)}onDragScroll(t){this.scrollbarVis.yOnDragScroll(t.y)}onThumbPointerUp(){this.scrollbarVis.onThumbPointerUp()}onThumbPositionChange(){this.scrollbarVis.yOnThumbPositionChange()}onWheelScroll(t,e){if(!this.root.viewportNode)return;const r=this.root.viewportNode.scrollTop+t.deltaY;this.scrollbarVis.yOnWheelScroll(r),mr(r,e)&&t.preventDefault()}onResize(){this.scrollbar.opts.ref.current&&this.root.viewportNode&&this.computedStyle&&this.scrollbarVis.setSizes({content:this.root.viewportNode.scrollHeight,viewport:this.root.viewportNode.offsetHeight,scrollbar:{size:this.scrollbar.opts.ref.current.clientHeight,paddingStart:be(this.computedStyle.paddingTop),paddingEnd:be(this.computedStyle.paddingBottom)}})}get thumbSize(){return o(n(this,Gt))}set thumbSize(t){f(n(this,Gt),t)}get props(){return o(n(this,Jt))}set props(t){f(n(this,Jt),t)}};qt=new WeakMap,Gt=new WeakMap,Jt=new WeakMap;let Le=tr;var Qt,Zt,Kt,te,ke,ee;const er=class er{constructor(t){d(this,te);m(this,"scrollbarState");m(this,"root");m(this,"scrollbarVis");m(this,"scrollbar");d(this,Qt,T(null));d(this,Zt,T(""));m(this,"handleResize");m(this,"handleThumbPositionChange");m(this,"handleWheelScroll");m(this,"handleThumbPointerDown");m(this,"handleThumbPointerUp");d(this,Kt,y(()=>this.scrollbarVis.sizes.content-this.scrollbarVis.sizes.viewport));d(this,ee,y(()=>Y({...this.scrollbarState.props,style:{position:"absolute",...this.scrollbarState.props.style},[ce.scrollbar]:"",onpointerdown:this.onpointerdown,onpointermove:this.onpointermove,onpointerup:this.onpointerup,onlostpointercapture:this.onlostpointercapture})));this.scrollbarState=t,this.root=t.root,this.scrollbarVis=t.scrollbarVis,this.scrollbar=t.scrollbarVis.scrollbar,this.handleResize=we(()=>this.scrollbarState.onResize(),10),this.handleThumbPositionChange=this.scrollbarState.onThumbPositionChange,this.handleWheelScroll=this.scrollbarState.onWheelScroll,this.handleThumbPointerDown=this.scrollbarState.onThumbPointerDown,this.handleThumbPointerUp=this.scrollbarState.onThumbPointerUp,X(()=>{const e=this.maxScrollPos,r=this.scrollbar.opts.ref.current;this.root.viewportNode;const i=a=>{const c=a.target;r?.contains(c)&&this.handleWheelScroll(a,e)};return ut(this.root.domContext.getDocument(),"wheel",i,{passive:!1})}),Lr(()=>{this.scrollbarVis.sizes,ht(()=>this.handleThumbPositionChange())}),new at(()=>this.scrollbar.opts.ref.current,this.handleResize),new at(()=>this.root.contentNode,this.handleResize),this.onpointerdown=this.onpointerdown.bind(this),this.onpointermove=this.onpointermove.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onlostpointercapture=this.onlostpointercapture.bind(this)}static create(){return fr.set(new er(Ie.get()))}get rect(){return o(n(this,Qt))}set rect(t){f(n(this,Qt),t)}get prevWebkitUserSelect(){return o(n(this,Zt))}set prevWebkitUserSelect(t){f(n(this,Zt),t,!0)}get maxScrollPos(){return o(n(this,Kt))}set maxScrollPos(t){f(n(this,Kt),t)}handleDragScroll(t){if(!this.rect)return;const e=t.clientX-this.rect.left,r=t.clientY-this.rect.top;this.scrollbarState.onDragScroll({x:e,y:r})}onpointerdown(t){if(t.button!==0)return;t.target.setPointerCapture(t.pointerId),this.rect=this.scrollbar.opts.ref.current?.getBoundingClientRect()??null,this.prevWebkitUserSelect=this.root.domContext.getDocument().body.style.webkitUserSelect,this.root.domContext.getDocument().body.style.webkitUserSelect="none",this.root.viewportNode&&(this.root.viewportNode.style.scrollBehavior="auto"),this.handleDragScroll(t)}onpointermove(t){this.handleDragScroll(t)}onpointerup(t){const e=t.target;e.hasPointerCapture(t.pointerId)&&e.releasePointerCapture(t.pointerId),et(this,te,ke).call(this)}onlostpointercapture(t){et(this,te,ke).call(this)}get props(){return o(n(this,ee))}set props(t){f(n(this,ee),t)}};Qt=new WeakMap,Zt=new WeakMap,Kt=new WeakMap,te=new WeakSet,ke=function(){this.rect!==null&&(this.root.domContext.getDocument().body.style.webkitUserSelect=this.prevWebkitUserSelect,this.root.viewportNode&&(this.root.viewportNode.style.scrollBehavior=""),this.rect=null)},ee=new WeakMap;let Oe=er;var re,G,Se,oe;const rr=class rr{constructor(t,e){m(this,"opts");m(this,"scrollbarState");m(this,"attachment");d(this,re);d(this,G,T());d(this,Se,we(()=>{o(n(this,G))&&(o(n(this,G))(),f(n(this,G),void 0))},100));d(this,oe,y(()=>({id:this.opts.id.current,"data-state":this.scrollbarState.scrollbarVis.hasThumb?"visible":"hidden",style:{width:"var(--bits-scroll-area-thumb-width)",height:"var(--bits-scroll-area-thumb-height)",transform:this.scrollbarState.scrollbarVis.prevTransformStyle},onpointerdowncapture:this.onpointerdowncapture,onpointerup:this.onpointerup,[ce.thumb]:"",...this.attachment})));this.opts=t,this.scrollbarState=e,F(this,re,e.root),this.attachment=K(this.opts.ref,r=>this.scrollbarState.scrollbarVis.thumbNode=r),X(()=>{const r=n(this,re).viewportNode;if(!r)return;const i=()=>{if(n(this,Se).call(this),!o(n(this,G))){const a=Kr(r,this.scrollbarState.handleThumbPositionChange);f(n(this,G),a,!0),this.scrollbarState.handleThumbPositionChange()}};return ht(()=>this.scrollbarState.handleThumbPositionChange()),ut(r,"scroll",i)}),this.onpointerdowncapture=this.onpointerdowncapture.bind(this),this.onpointerup=this.onpointerup.bind(this)}static create(t){return new rr(t,fr.get())}onpointerdowncapture(t){const e=t.target;if(!e)return;const r=e.getBoundingClientRect(),i=t.clientX-r.left,l=t.clientY-r.top;this.scrollbarState.handleThumbPointerDown({x:i,y:l})}onpointerup(t){this.scrollbarState.handleThumbPointerUp()}get props(){return o(n(this,oe))}set props(t){f(n(this,oe),t)}};re=new WeakMap,G=new WeakMap,Se=new WeakMap,oe=new WeakMap;let Xe=rr;var ot,st,se,ne;const or=class or{constructor(t,e){m(this,"opts");m(this,"root");m(this,"attachment");d(this,ot,T(0));d(this,st,T(0));d(this,se,y(()=>!!(o(n(this,ot))&&o(n(this,st)))));d(this,ne,y(()=>({id:this.opts.id.current,style:{width:o(n(this,ot)),height:o(n(this,st)),position:"absolute",right:this.root.opts.dir.current==="ltr"?0:void 0,left:this.root.opts.dir.current==="rtl"?0:void 0,bottom:0},[ce.corner]:"",...this.attachment})));this.opts=t,this.root=e,this.attachment=K(this.opts.ref),new at(()=>this.root.scrollbarXNode,()=>{const r=this.root.scrollbarXNode?.offsetHeight||0;this.root.cornerHeight=r,f(n(this,st),r,!0)}),new at(()=>this.root.scrollbarYNode,()=>{const r=this.root.scrollbarYNode?.offsetWidth||0;this.root.cornerWidth=r,f(n(this,ot),r,!0)})}static create(t){return new or(t,he.get())}get hasSize(){return o(n(this,se))}set hasSize(t){f(n(this,se),t)}get props(){return o(n(this,ne))}set props(t){f(n(this,ne),t)}};ot=new WeakMap,st=new WeakMap,se=new WeakMap,ne=new WeakMap;let Ue=or;function be(s){return s?Number.parseInt(s,10):0}function pr(s,t){const e=s/t;return Number.isNaN(e)?0:e}function ye(s){const t=pr(s.viewport,s.content),e=s.scrollbar.paddingStart+s.scrollbar.paddingEnd,r=(s.scrollbar.size-e)*t;return Math.max(r,18)}function Zr({pointerPos:s,pointerOffset:t,sizes:e,dir:r="ltr"}){const i=ye(e),l=i/2,a=t||l,c=i-a,u=e.scrollbar.paddingStart+a,p=e.scrollbar.size-e.scrollbar.paddingEnd-c,h=e.content-e.viewport,P=r==="ltr"?[0,h]:[h*-1,0];return br([u,p],P)(s)}function hr({scrollPos:s,sizes:t,dir:e="ltr"}){const r=ye(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,l=t.scrollbar.size-i,a=t.content-t.viewport,c=l-r,u=e==="ltr"?[0,a]:[a*-1,0],p=Jr(s,u[0],u[1]);return br([0,a],[0,c])(p)}function br(s,t){return e=>{if(s[0]===s[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(s[1]-s[0]);return t[0]+r*(e-s[0])}}function mr(s,t){return s>0&&s<t}function Kr(s,t){let e={left:s.scrollLeft,top:s.scrollTop},r=0;const i=Fr(s);return(function l(){const a={left:s.scrollLeft,top:s.scrollTop},c=e.left!==a.left,u=e.top!==a.top;(c||u)&&t(),e=a,r=i.requestAnimationFrame(l)})(),()=>i.cancelAnimationFrame(r)}var to=new Set(["$$slots","$$events","$$legacy","ref","id","type","dir","scrollHideDelay","children","child"]),eo=tt("<div><!></div>");function gr(s,t){const e=ie();if(new.target)return V({component:gr,...s});A(t,!0);let r=v(t,"ref",15,null),i=v(t,"id",23,()=>j(e)),l=v(t,"type",7,"hover"),a=v(t,"dir",7,"ltr"),c=v(t,"scrollHideDelay",7,600),u=v(t,"children",7),p=v(t,"child",7),h=k(t,to);const P=Ee.create({type:D(()=>l()),dir:D(()=>a()),scrollHideDelay:D(()=>c()),id:D(()=>i()),ref:D(()=>r(),_=>r(_))}),w=y(()=>Y(h,P.props));var x={get ref(){return r()},set ref(_=null){r(_),S()},get id(){return i()},set id(_=j(e)){i(_),S()},get type(){return l()},set type(_="hover"){l(_),S()},get dir(){return a()},set dir(_="ltr"){a(_),S()},get scrollHideDelay(){return c()},set scrollHideDelay(_=600){c(_),S()},get children(){return u()},set children(_){u(_),S()},get child(){return p()},set child(_){p(_),S()},$set:M,$on:(_,$)=>W(t,_,$)},g=O(),C=E(g);{var b=_=>{var $=O(),N=E($);U(N,p,()=>({props:o(w)})),z(_,$)},R=_=>{var $=eo();lt($,()=>({...o(w)}));var N=nt($);U(N,()=>u()??J),it($),z(_,$)};B(C,_=>{p()?_(b):_(R,-1)})}return z(s,g),H(x)}var ro=new Set(["$$slots","$$events","$$legacy","ref","id","children"]),oo=tt("<div><div><!></div></div>");function vr(s,t){const e=ie();if(new.target)return V({component:vr,...s});A(t,!0);let r=v(t,"ref",15,null),i=v(t,"id",23,()=>j(e)),l=v(t,"children",7),a=k(t,ro);const c=Re.create({id:D(()=>i()),ref:D(()=>r(),g=>r(g))}),u=y(()=>Y(a,c.props)),p=y(()=>Y({},c.contentProps));var h={get ref(){return r()},set ref(g=null){r(g),S()},get id(){return i()},set id(g=j(e)){i(g),S()},get children(){return l()},set children(g){l(g),S()},$set:M,$on:(g,C)=>W(t,g,C)},P=oo();lt(P,()=>({...o(u)}));var w=nt(P);lt(w,()=>({...o(p)}));var x=nt(w);return U(x,()=>l()??J),it(w),it(P),z(s,P),H(h)}var so=new Set(["$$slots","$$events","$$legacy","child","children"]),no=tt("<div><!></div>");function Fe(s,t){if(new.target)return V({component:Fe,...s});A(t,!0);let e=v(t,"child",7),r=v(t,"children",7),i=k(t,so);const l=Oe.create(),a=y(()=>Y(i,l.props));var c={get child(){return e()},set child(w){e(w),S()},get children(){return r()},set children(w){r(w),S()},$set:M,$on:(w,x)=>W(t,w,x)},u=O(),p=E(u);{var h=w=>{var x=O(),g=E(x);U(g,e,()=>({props:o(a)})),z(w,x)},P=w=>{var x=no();lt(x,()=>({...o(a)}));var g=nt(x);U(g,()=>r()??J),it(x),z(w,x)};B(p,w=>{e()?w(h):w(P,-1)})}return z(s,u),H(c)}var io=new Set(["$$slots","$$events","$$legacy"]);function Sr(s,t){if(new.target)return V({component:Sr,...s});A(t,!0);let e=k(t,io);const r=new $e,i=He.create({mounted:D(()=>r.current)}),l=y(()=>Y(e,i.props));var a={$set:M,$on:(c,u)=>W(t,c,u)};return Fe(s,L(()=>o(l))),H(a)}var lo=new Set(["$$slots","$$events","$$legacy"]);function wr(s,t){if(new.target)return V({component:wr,...s});A(t,!0);let e=k(t,lo);const r=new $e,i=Le.create({mounted:D(()=>r.current)}),l=y(()=>Y(e,i.props));var a={$set:M,$on:(c,u)=>W(t,c,u)};return Fe(s,L(()=>o(l))),H(a)}var ao=new Set(["$$slots","$$events","$$legacy"]);function de(s,t){if(new.target)return V({component:de,...s});A(t,!0);let e=k(t,ao);const r=Ae.create();var i={$set:M,$on:(p,h)=>W(t,p,h)},l=O(),a=E(l);{var c=p=>{Sr(p,L(()=>e))},u=p=>{wr(p,L(()=>e))};B(a,p=>{r.scrollbar.opts.orientation.current==="horizontal"?p(c):p(u,-1)})}return z(s,l),H(i)}var co=new Set(["$$slots","$$events","$$legacy","forceMount"]);function Pr(s,t){if(new.target)return V({component:Pr,...s});A(t,!0);let e=v(t,"forceMount",7,!1),r=k(t,co);const i=pe.create(),l=y(()=>Y(r,i.props));var a={get forceMount(){return e()},set forceMount(c=!1){e(c),S()},$set:M,$on:(c,u)=>W(t,c,u)};{const c=p=>{de(p,L(()=>o(l)))};let u=y(()=>e()||i.isVisible);ae(s,{get open(){return o(u)},get ref(){return i.scrollbar.opts.ref},presence:c,$$slots:{presence:!0}})}return H(a)}var ho=new Set(["$$slots","$$events","$$legacy","forceMount"]);function yr(s,t){if(new.target)return V({component:yr,...s});A(t,!0);let e=v(t,"forceMount",7,!1),r=k(t,ho);const i=We.create(),l=y(()=>Y(r,i.props));var a={get forceMount(){return e()},set forceMount(c=!1){e(c),S()},$set:M,$on:(c,u)=>W(t,c,u)};{const c=p=>{de(p,L(()=>o(l)))};let u=y(()=>e()||!i.isHidden);ae(s,L(()=>o(l),{get open(){return o(u)},get ref(){return i.scrollbar.opts.ref},presence:c,$$slots:{presence:!0}}))}return H(a)}var uo=new Set(["$$slots","$$events","$$legacy","forceMount"]);function xr(s,t){if(new.target)return V({component:xr,...s});A(t,!0);let e=v(t,"forceMount",7,!1),r=k(t,uo);const i=Me.create(),l=pe.create(),a=y(()=>Y(r,i.props,l.props,{"data-state":i.isVisible?"visible":"hidden"})),c=y(()=>e()||i.isVisible&&l.isVisible);var u={get forceMount(){return e()},set forceMount(p=!1){e(p),S()},$set:M,$on:(p,h)=>W(t,p,h)};return ae(s,{get open(){return o(c)},get ref(){return l.scrollbar.opts.ref},presence:h=>{de(h,L(()=>o(a)))},$$slots:{presence:!0}}),H(u)}var fo=new Set(["$$slots","$$events","$$legacy","ref","id","orientation"]);function _r(s,t){const e=ie();if(new.target)return V({component:_r,...s});A(t,!0);let r=v(t,"ref",15,null),i=v(t,"id",23,()=>j(e)),l=v(t,"orientation",7),a=k(t,fo);const c=Ve.create({orientation:D(()=>l()),id:D(()=>i()),ref:D(()=>r(),b=>r(b))}),u=y(()=>c.root.opts.type.current);var p={get ref(){return r()},set ref(b=null){r(b),S()},get id(){return i()},set id(b=j(e)){i(b),S()},get orientation(){return l()},set orientation(b){l(b),S()},$set:M,$on:(b,R)=>W(t,b,R)},h=O(),P=E(h);{var w=b=>{xr(b,L(()=>a,{get id(){return i()}}))},x=b=>{yr(b,L(()=>a,{get id(){return i()}}))},g=b=>{Pr(b,L(()=>a,{get id(){return i()}}))},C=b=>{de(b,L(()=>a,{get id(){return i()}}))};B(P,b=>{o(u)==="hover"?b(w):o(u)==="scroll"?b(x,1):o(u)==="auto"?b(g,2):o(u)==="always"&&b(C,3)})}return z(s,h),H(p)}var po=new Set(["$$slots","$$events","$$legacy","ref","id","child","children","present"]),bo=tt("<div><!></div>");function Tr(s,t){if(new.target)return V({component:Tr,...s});A(t,!0);let e=v(t,"ref",15,null),r=v(t,"id",7),i=v(t,"child",7),l=v(t,"children",7),a=v(t,"present",7),c=k(t,po);const u=new $e,p=Xe.create({id:D(()=>r()),ref:D(()=>e(),b=>e(b)),mounted:D(()=>u.current)}),h=y(()=>Y(c,p.props,{style:{hidden:!a()}}));var P={get ref(){return e()},set ref(b=null){e(b),S()},get id(){return r()},set id(b){r(b),S()},get child(){return i()},set child(b){i(b),S()},get children(){return l()},set children(b){l(b),S()},get present(){return a()},set present(b){a(b),S()},$set:M,$on:(b,R)=>W(t,b,R)},w=O(),x=E(w);{var g=b=>{var R=O(),_=E(R);U(_,i,()=>({props:o(h)})),z(b,R)},C=b=>{var R=bo();lt(R,()=>({...o(h)}));var _=nt(R);U(_,()=>l()??J),it(R),z(b,R)};B(x,b=>{i()?b(g):b(C,-1)})}return z(s,w),H(P)}var mo=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount"]);function Nr(s,t){const e=ie();if(new.target)return V({component:Nr,...s});A(t,!0);let r=v(t,"id",23,()=>j(e)),i=v(t,"ref",15,null),l=v(t,"forceMount",7,!1),a=k(t,mo);const c=Pe.get();var u={get id(){return r()},set id(p=j(e)){r(p),S()},get ref(){return i()},set ref(p=null){i(p),S()},get forceMount(){return l()},set forceMount(p=!1){l(p),S()},$set:M,$on:(p,h)=>W(t,p,h)};{const p=(P,w)=>{let x=()=>(w?.()).present;Tr(P,L(()=>a,{get id(){return r()},get present(){return x()},get ref(){return i()},set ref(g){i(g)}}))};let h=y(()=>l()||c.hasThumb);ae(s,{get open(){return o(h)},get ref(){return c.scrollbar.opts.ref},presence:p,$$slots:{presence:!0}})}return H(u)}var go=new Set(["$$slots","$$events","$$legacy","ref","id","children","child"]),vo=tt("<div><!></div>");function Cr(s,t){if(new.target)return V({component:Cr,...s});A(t,!0);let e=v(t,"ref",15,null),r=v(t,"id",7),i=v(t,"children",7),l=v(t,"child",7),a=k(t,go);const c=Ue.create({id:D(()=>r()),ref:D(()=>e(),g=>e(g))}),u=y(()=>Y(a,c.props));var p={get ref(){return e()},set ref(g=null){e(g),S()},get id(){return r()},set id(g){r(g),S()},get children(){return i()},set children(g){i(g),S()},get child(){return l()},set child(g){l(g),S()},$set:M,$on:(g,C)=>W(t,g,C)},h=O(),P=E(h);{var w=g=>{var C=O(),b=E(C);U(b,l,()=>({props:o(u)})),z(g,C)},x=g=>{var C=vo();lt(C,()=>({...o(u)}));var b=nt(C);U(b,()=>i()??J),it(C),z(g,C)};B(P,g=>{l()?g(w):g(x,-1)})}return z(s,h),H(p)}var So=new Set(["$$slots","$$events","$$legacy","ref","id"]);function zr(s,t){const e=ie();if(new.target)return V({component:zr,...s});A(t,!0);let r=v(t,"ref",15,null),i=v(t,"id",23,()=>j(e)),l=k(t,So);const a=he.get(),c=y(()=>!!(a.scrollbarXNode&&a.scrollbarYNode)),u=y(()=>a.opts.type.current!=="scroll"&&o(c));var p={get ref(){return r()},set ref(x=null){r(x),S()},get id(){return i()},set id(x=j(e)){i(x),S()},$set:M,$on:(x,g)=>W(t,x,g)},h=O(),P=E(h);{var w=x=>{Cr(x,L(()=>l,{get id(){return i()},get ref(){return r()},set ref(g){r(g)}}))};B(P,x=>{o(u)&&x(w)})}return z(s,h),H(p)}var wo=new Set(["$$slots","$$events","$$legacy","ref","class","orientation","children"]),Po=tt("<!> <!>",1);function Ye(s,t){if(new.target)return V({component:Ye,...s});A(t,!0);let e=v(t,"ref",15,null),r=v(t,"class",7),i=v(t,"orientation",7,"vertical"),l=v(t,"children",7),a=k(t,wo);var c={get ref(){return e()},set ref(h=null){e(h),S()},get class(){return r()},set class(h){r(h),S()},get orientation(){return i()},set orientation(h="vertical"){i(h),S()},get children(){return l()},set children(h){l(h),S()},$set:M,$on:(h,P)=>W(t,h,P)},u=O(),p=E(u);return ct(p,()=>_r,(h,P)=>{P(h,L({"data-slot":"scroll-area-scrollbar",get orientation(){return i()},get class(){return r()},forceMount:!0},()=>a,{get ref(){return e()},set ref(w){e(w)},children:(w,x)=>{var g=Po(),C=E(g);U(C,()=>l()??J);var b=fe(C,2);ct(b,()=>Nr,(R,_)=>{_(R,{"data-slot":"scroll-area-thumb"})}),z(w,g)},$$slots:{default:!0}}))}),z(s,u),H(c)}var yo=new Set(["$$slots","$$events","$$legacy","ref","class","orientation","scrollbarXClasses","scrollbarYClasses","fadeEdges","children"]),xo=tt("<!> <!> <!> <!>",1);function _o(s,t){if(new.target)return V({component:_o,...s});A(t,!0);let e=v(t,"ref",15,null),r=v(t,"class",7),i=v(t,"orientation",7,"vertical"),l=v(t,"scrollbarXClasses",7,""),a=v(t,"scrollbarYClasses",7,""),c=v(t,"fadeEdges",7,!0),u=v(t,"children",7),p=k(t,yo),h=T(null),P=T(!0),w=T(!0),x=T(!0),g=T(!0);function C(){o(h)&&(f(P,o(h).scrollTop<=0),f(w,o(h).scrollTop+o(h).clientHeight>=o(h).scrollHeight-1),f(x,o(h).scrollLeft<=0),f(g,o(h).scrollLeft+o(h).clientWidth>=o(h).scrollWidth-1))}let b=y(()=>{if(!c())return;const N=[];return i()!=="horizontal"&&(!o(P)||!o(w))&&N.push(`linear-gradient(to bottom, ${o(P)?"black 0":"transparent 0, black 12px"}, ${o(w)?"black 100%":"black calc(100% - 12px), transparent 100%"})`),i()!=="vertical"&&(!o(x)||!o(g))&&N.push(`linear-gradient(to right, ${o(x)?"black 0":"transparent 0, black 12px"}, ${o(g)?"black 100%":"black calc(100% - 12px), transparent 100%"})`),N.length?N.join(", "):void 0});X(()=>{if(!o(h))return;C();const N=new ResizeObserver(C);return N.observe(o(h)),o(h).firstElementChild&&N.observe(o(h).firstElementChild),()=>N.disconnect()});var R={get ref(){return e()},set ref(N=null){e(N),S()},get class(){return r()},set class(N){r(N),S()},get orientation(){return i()},set orientation(N="vertical"){i(N),S()},get scrollbarXClasses(){return l()},set scrollbarXClasses(N=""){l(N),S()},get scrollbarYClasses(){return a()},set scrollbarYClasses(N=""){a(N),S()},get fadeEdges(){return c()},set fadeEdges(N=!0){c(N),S()},get children(){return u()},set children(N){u(N),S()},$set:M,$on:(N,xe)=>W(t,N,xe)},_=O(),$=E(_);{let N=y(()=>Br("relative overflow-hidden",r()));ct($,()=>gr,(xe,Dr)=>{Dr(xe,L({"data-slot":"scroll-area",get"data-orientation"(){return i()},get class(){return o(N)},type:"scroll"},()=>p,{get ref(){return e()},set ref(_e){e(_e)},children:(_e,No)=>{var sr=xo(),nr=E(sr);{let I=y(()=>o(b)?`mask-image: ${o(b)}; -webkit-mask-image: ${o(b)};`:void 0);ct(nr,()=>vr,(Te,Mr)=>{Mr(Te,{"data-slot":"scroll-area-viewport",tabindex:0,class:"size-full rounded-[inherit] transition-[mask-image] duration-(--motion-fast) focus-visible:outline focus-visible:-outline-offset-1 motion-reduce:transition-none",get style(){return o(I)},onscroll:C,get ref(){return o(h)},set ref(Ne){f(h,Ne,!0)},children:(Ne,Co)=>{var ar=O(),Wr=E(ar);U(Wr,()=>u()??J),z(Ne,ar)},$$slots:{default:!0}})})}var ir=fe(nr,2);{var Er=I=>{Ye(I,{orientation:"vertical",get class(){return a()}})};B(ir,I=>{(i()==="vertical"||i()==="both")&&I(Er)})}var lr=fe(ir,2);{var Rr=I=>{Ye(I,{orientation:"horizontal",get class(){return l()}})};B(lr,I=>{(i()==="horizontal"||i()==="both")&&I(Rr)})}var Vr=fe(lr,2);ct(Vr,()=>zr,(I,Te)=>{Te(I,{})}),z(_e,sr)},$$slots:{default:!0}}))})}return z(s,_),H(R)}const To=[{id:"scroll-area-orientations",title:"Scroll area orientations and overflow",states:["vertical","horizontal","both","keyboard-focus","long-content","no-overflow","scrollbar-resting","scrollbar-scrolling","scrollbar-hover","native-opt-out","compact","zoom-200","light","dark","reduced-motion"],themes:["light","dark"],viewport:"both",reducedMotion:!0}];jr({id:"scroll-area",source:"src/lib/components/ui/scroll-area/index.ts",publicImport:"$lib/components/ui/scroll-area",legacyImports:[],exports:["Root","ScrollArea","ScrollAreaScrollbar","Scrollbar","scrollAreaMetadata"],usage:`<script lang="ts">
|
|
1
|
+
var Ar=Object.defineProperty;var cr=s=>{throw TypeError(s)};var Hr=(s,t,e)=>t in s?Ar(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var m=(s,t,e)=>Hr(s,typeof t!="symbol"?t+"":t,e),Ce=(s,t,e)=>t.has(s)||cr("Cannot "+e);var n=(s,t,e)=>(Ce(s,t,"read from private field"),e?e.call(s):t.get(s)),d=(s,t,e)=>t.has(s)?cr("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(s):t.set(s,e),F=(s,t,e,r)=>(Ce(s,t,"write to private field"),r?r.call(s,e):t.set(s,e),e),et=(s,t,e)=>(Ce(s,t,"access private method"),e);import{t as V,bq as v,by as M,b as W,br as k,bt as L}from"./D7ppHbEC.js";import{aD as o,bH as f,bV as T,c9 as y,ca as X,c5 as ht,bs as A,a7 as O,ay as E,W as z,bn as H,aA as S,bf as J,bi as ut,cb as Lr,bo as ie,a5 as nt,bA as it,aB as tt,bS as fe}from"./DYhIMPy1.js";import{i as B}from"./CWqKPDkJ.js";import{s as U}from"./BEWd3Wd2.js";import{c as ct}from"./CwFEdD3h.js";import{aL as Or,e as kr,aU as Xr,a$ as ur,av as D,aX as ze,h as le,aZ as Ur,an as K,D as Yr,ay as $r,aA as Ir,aQ as Y,aJ as Fr,az as j}from"./NeYI0LTt.js";import{b as lt,e as Br,p as jr}from"./Cki2vNyW.js";function qr(s,t){if(Or(s)){const r=s();return r===void 0?t:r}return s===void 0?t:s}function we(s,t){let e=T(null);const r=y(()=>qr(t,250));function i(...l){if(o(e))o(e).timeout&&clearTimeout(o(e).timeout);else{let a,c;const u=new Promise((p,h)=>{a=p,c=h});f(e,{timeout:null,runner:null,promise:u,resolve:a,reject:c},!0)}return o(e).runner=async()=>{if(!o(e))return;const a=o(e);f(e,null);try{a.resolve(await s.apply(this,l))}catch(c){a.reject(c)}},o(e).timeout=setTimeout(o(e).runner,o(r)),o(e).promise}return i.cancel=async()=>{(!o(e)||o(e).timeout===null)&&(await new Promise(l=>setTimeout(l,0)),!o(e)||o(e).timeout===null)||(clearTimeout(o(e).timeout),o(e).reject("Cancelled"),f(e,null))},i.runScheduledNow=async()=>{(!o(e)||!o(e).timeout)&&(await new Promise(l=>setTimeout(l,0)),!o(e)||!o(e).timeout)||(clearTimeout(o(e).timeout),o(e).timeout=null,await o(e).runner?.())},Object.defineProperty(i,"pending",{enumerable:!0,get(){return!!o(e)?.timeout}}),i}var rt;class $e{constructor(){d(this,rt,T(!1));X(()=>(ht(()=>f(n(this,rt),!0)),()=>{f(n(this,rt),!1)}))}get current(){return o(n(this,rt))}}rt=new WeakMap;var dt,ft;class at{constructor(t,e){d(this,dt);d(this,ft);F(this,dt,t),F(this,ft,e),this.handler=this.handler.bind(this),X(this.handler)}handler(){let t=0;const e=n(this,dt).call(this);if(!e)return;const r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n(this,ft))});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}}dt=new WeakMap,ft=new WeakMap;var pt,Q,bt,Z,q,mt,gt,De;class Gr{constructor(t){d(this,gt);m(this,"opts");m(this,"present");d(this,pt);d(this,Q,T(!1));d(this,bt,!1);d(this,Z,T(void 0));d(this,q,null);d(this,mt,y(()=>o(n(this,Q))));this.opts=t,this.present=this.opts.open,f(n(this,Q),t.open.current,!0),F(this,pt,new kr({ref:this.opts.ref,afterTick:this.opts.open})),Xr(()=>et(this,gt,De).call(this)),ur(()=>this.present.current,e=>{if(!n(this,bt)){F(this,bt,!0);return}et(this,gt,De).call(this),e&&f(n(this,Q),!0),f(n(this,Z),e?"starting":"ending",!0),e&&F(this,q,window.requestAnimationFrame(()=>{F(this,q,null),this.present.current&&f(n(this,Z),void 0)})),n(this,pt).run(()=>{e===this.present.current&&(e||f(n(this,Q),!1),f(n(this,Z),void 0))})})}get isPresent(){return o(n(this,mt))}set isPresent(t){f(n(this,mt),t)}get transitionStatus(){return o(n(this,Z))}}pt=new WeakMap,Q=new WeakMap,bt=new WeakMap,Z=new WeakMap,q=new WeakMap,mt=new WeakMap,gt=new WeakSet,De=function(){n(this,q)!==null&&(window.cancelAnimationFrame(n(this,q)),F(this,q,null))};function ae(s,t){if(new.target)return V({component:ae,...s});A(t,!0);let e=v(t,"open",7),r=v(t,"forceMount",7),i=v(t,"presence",7),l=v(t,"ref",7);const a=new Gr({open:D(()=>e()),ref:l()});var c={get open(){return e()},set open(P){e(P),S()},get forceMount(){return r()},set forceMount(P){r(P),S()},get presence(){return i()},set presence(P){i(P),S()},get ref(){return l()},set ref(P){l(P),S()},$set:M,$on:(P,w)=>W(t,P,w)},u=O(),p=E(u);{var h=P=>{var w=O(),x=E(w);U(x,()=>i()??J,()=>({present:a.isPresent,transitionStatus:a.transitionStatus})),z(P,w)};B(p,P=>{(r()||e()||a.isPresent)&&P(h)})}return z(s,u),H(c)}function Jr(s,t,e){return Math.min(e,Math.max(t,s))}var vt,me,dr;class Qr{constructor(t,e){d(this,me);m(this,"state");d(this,vt);this.state=ze(t),F(this,vt,e),this.dispatch=this.dispatch.bind(this)}dispatch(t){this.state.current=et(this,me,dr).call(this,t)}}vt=new WeakMap,me=new WeakSet,dr=function(t){return n(this,vt)[this.state.current][t]??this.state.current};const ce=$r({component:"scroll-area",parts:["root","viewport","corner","thumb","scrollbar"]}),he=new le("ScrollArea.Root"),ue=new le("ScrollArea.Scrollbar"),Pe=new le("ScrollArea.ScrollbarVisible"),Ie=new le("ScrollArea.ScrollbarAxis"),fr=new le("ScrollArea.ScrollbarShared");var St,wt,Pt,yt,xt,_t,Tt,Nt,Ct,zt;const Be=class Be{constructor(t){m(this,"opts");m(this,"attachment");d(this,St,T(null));d(this,wt,T(null));d(this,Pt,T(null));d(this,yt,T(null));d(this,xt,T(null));d(this,_t,T(0));d(this,Tt,T(0));d(this,Nt,T(!1));d(this,Ct,T(!1));m(this,"domContext");d(this,zt,y(()=>({id:this.opts.id.current,dir:this.opts.dir.current,style:{position:"relative","--bits-scroll-area-corner-height":`${this.cornerHeight}px`,"--bits-scroll-area-corner-width":`${this.cornerWidth}px`},[ce.root]:"",...this.attachment})));this.opts=t,this.attachment=K(t.ref,e=>this.scrollAreaNode=e),this.domContext=new Yr(t.ref)}static create(t){return he.set(new Be(t))}get scrollAreaNode(){return o(n(this,St))}set scrollAreaNode(t){f(n(this,St),t,!0)}get viewportNode(){return o(n(this,wt))}set viewportNode(t){f(n(this,wt),t,!0)}get contentNode(){return o(n(this,Pt))}set contentNode(t){f(n(this,Pt),t,!0)}get scrollbarXNode(){return o(n(this,yt))}set scrollbarXNode(t){f(n(this,yt),t,!0)}get scrollbarYNode(){return o(n(this,xt))}set scrollbarYNode(t){f(n(this,xt),t,!0)}get cornerWidth(){return o(n(this,_t))}set cornerWidth(t){f(n(this,_t),t,!0)}get cornerHeight(){return o(n(this,Tt))}set cornerHeight(t){f(n(this,Tt),t,!0)}get scrollbarXEnabled(){return o(n(this,Nt))}set scrollbarXEnabled(t){f(n(this,Nt),t,!0)}get scrollbarYEnabled(){return o(n(this,Ct))}set scrollbarYEnabled(t){f(n(this,Ct),t,!0)}get props(){return o(n(this,zt))}set props(t){f(n(this,zt),t)}};St=new WeakMap,wt=new WeakMap,Pt=new WeakMap,yt=new WeakMap,xt=new WeakMap,_t=new WeakMap,Tt=new WeakMap,Nt=new WeakMap,Ct=new WeakMap,zt=new WeakMap;let Ee=Be;var ge,ve,Dt,Et;const je=class je{constructor(t,e){m(this,"opts");m(this,"root");m(this,"attachment");d(this,ge,ze(Ur()));d(this,ve,ze(null));m(this,"contentAttachment",K(n(this,ve),t=>this.root.contentNode=t));d(this,Dt,y(()=>({id:this.opts.id.current,style:{overflowX:this.root.scrollbarXEnabled?"scroll":"hidden",overflowY:this.root.scrollbarYEnabled?"scroll":"hidden"},[ce.viewport]:"",...this.attachment})));d(this,Et,y(()=>({id:n(this,ge).current,"data-scroll-area-content":"",style:{minWidth:this.root.scrollbarXEnabled?"fit-content":void 0},...this.contentAttachment})));this.opts=t,this.root=e,this.attachment=K(t.ref,r=>this.root.viewportNode=r)}static create(t){return new je(t,he.get())}get props(){return o(n(this,Dt))}set props(t){f(n(this,Dt),t)}get contentProps(){return o(n(this,Et))}set contentProps(t){f(n(this,Et),t)}};ge=new WeakMap,ve=new WeakMap,Dt=new WeakMap,Et=new WeakMap;let Re=je;var Rt,Vt;const qe=class qe{constructor(t,e){m(this,"opts");m(this,"root");d(this,Rt,y(()=>this.opts.orientation.current==="horizontal"));d(this,Vt,T(!1));this.opts=t,this.root=e,ur(()=>this.isHorizontal,r=>r?(this.root.scrollbarXEnabled=!0,()=>{this.root.scrollbarXEnabled=!1}):(this.root.scrollbarYEnabled=!0,()=>{this.root.scrollbarYEnabled=!1}))}static create(t){return ue.set(new qe(t,he.get()))}get isHorizontal(){return o(n(this,Rt))}set isHorizontal(t){f(n(this,Rt),t)}get hasThumb(){return o(n(this,Vt))}set hasThumb(t){f(n(this,Vt),t,!0)}};Rt=new WeakMap,Vt=new WeakMap;let Ve=qe;var Mt,Wt;const Ge=class Ge{constructor(t){m(this,"scrollbar");m(this,"root");d(this,Mt,T(!1));d(this,Wt,y(()=>({"data-state":this.isVisible?"visible":"hidden"})));this.scrollbar=t,this.root=t.root,X(()=>{const e=this.root.scrollAreaNode,r=this.root.opts.scrollHideDelay.current;let i=0;if(!e)return;const l=()=>{this.root.domContext.clearTimeout(i),ht(()=>this.isVisible=!0)},a=()=>{i&&this.root.domContext.clearTimeout(i),i=this.root.domContext.setTimeout(()=>{ht(()=>{this.scrollbar.hasThumb=!1,this.isVisible=!1})},r)},c=Ir(ut(e,"pointerenter",l),ut(e,"pointerleave",a));return()=>{this.root.domContext.getWindow().clearTimeout(i),c()}})}static create(){return new Ge(ue.get())}get isVisible(){return o(n(this,Mt))}set isVisible(t){f(n(this,Mt),t,!0)}get props(){return o(n(this,Wt))}set props(t){f(n(this,Wt),t)}};Mt=new WeakMap,Wt=new WeakMap;let Me=Ge;var At,Ht;const Je=class Je{constructor(t){m(this,"scrollbar");m(this,"root");m(this,"machine",new Qr("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}}));d(this,At,y(()=>this.machine.state.current==="hidden"));d(this,Ht,y(()=>({"data-state":this.machine.state.current==="hidden"?"hidden":"visible",onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave})));this.scrollbar=t,this.root=t.root;const e=we(()=>this.machine.dispatch("SCROLL_END"),100);X(()=>{const r=this.machine.state.current,i=this.root.opts.scrollHideDelay.current;if(r==="idle"){const l=this.root.domContext.setTimeout(()=>this.machine.dispatch("HIDE"),i);return()=>this.root.domContext.clearTimeout(l)}}),X(()=>{const r=this.root.viewportNode;if(!r)return;const i=this.scrollbar.isHorizontal?"scrollLeft":"scrollTop";let l=r[i];return ut(r,"scroll",()=>{const u=r[i];l!==u&&(this.machine.dispatch("SCROLL"),e()),l=u})}),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this)}static create(){return new Je(ue.get())}get isHidden(){return o(n(this,At))}set isHidden(t){f(n(this,At),t)}onpointerenter(t){this.machine.dispatch("POINTER_ENTER")}onpointerleave(t){this.machine.dispatch("POINTER_LEAVE")}get props(){return o(n(this,Ht))}set props(t){f(n(this,Ht),t)}};At=new WeakMap,Ht=new WeakMap;let We=Je;var Lt,Ot;const Qe=class Qe{constructor(t){m(this,"scrollbar");m(this,"root");d(this,Lt,T(!1));d(this,Ot,y(()=>({"data-state":this.isVisible?"visible":"hidden"})));this.scrollbar=t,this.root=t.root;const e=we(()=>{const r=this.root.viewportNode;if(!r)return;const i=r.offsetWidth<r.scrollWidth,l=r.offsetHeight<r.scrollHeight;this.isVisible=this.scrollbar.isHorizontal?i:l},10);new at(()=>this.root.viewportNode,e),new at(()=>this.root.contentNode,e)}static create(){return new Qe(ue.get())}get isVisible(){return o(n(this,Lt))}set isVisible(t){f(n(this,Lt),t,!0)}get props(){return o(n(this,Ot))}set props(t){f(n(this,Ot),t)}};Lt=new WeakMap,Ot=new WeakMap;let pe=Qe;var kt,Xt,Ut,Yt,$t,It;const Ze=class Ze{constructor(t){m(this,"scrollbar");m(this,"root");d(this,kt,T(null));d(this,Xt,T(0));d(this,Ut,T({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}));d(this,Yt,y(()=>pr(this.sizes.viewport,this.sizes.content)));d(this,$t,y(()=>this.thumbRatio>0&&this.thumbRatio<1));d(this,It,T(""));this.scrollbar=t,this.root=t.root,X(()=>{this.scrollbar.hasThumb=this.hasThumb}),X(()=>{!this.scrollbar.hasThumb&&this.thumbNode&&(this.prevTransformStyle=this.thumbNode.style.transform)})}static create(){return Pe.set(new Ze(ue.get()))}get thumbNode(){return o(n(this,kt))}set thumbNode(t){f(n(this,kt),t,!0)}get pointerOffset(){return o(n(this,Xt))}set pointerOffset(t){f(n(this,Xt),t,!0)}get sizes(){return o(n(this,Ut))}set sizes(t){f(n(this,Ut),t)}get thumbRatio(){return o(n(this,Yt))}set thumbRatio(t){f(n(this,Yt),t)}get hasThumb(){return o(n(this,$t))}set hasThumb(t){f(n(this,$t),t)}get prevTransformStyle(){return o(n(this,It))}set prevTransformStyle(t){f(n(this,It),t,!0)}setSizes(t){this.sizes=t}getScrollPosition(t,e){return Zr({pointerPos:t,pointerOffset:this.pointerOffset,sizes:this.sizes,dir:e})}onThumbPointerUp(){this.pointerOffset=0}onThumbPointerDown(t){this.pointerOffset=t}xOnThumbPositionChange(){if(!(this.root.viewportNode&&this.thumbNode))return;const t=this.root.viewportNode.scrollLeft,r=`translate3d(${hr({scrollPos:t,sizes:this.sizes,dir:this.root.opts.dir.current})}px, 0, 0)`;this.thumbNode.style.transform=r,this.prevTransformStyle=r}xOnWheelScroll(t){this.root.viewportNode&&(this.root.viewportNode.scrollLeft=t)}xOnDragScroll(t){this.root.viewportNode&&(this.root.viewportNode.scrollLeft=this.getScrollPosition(t,this.root.opts.dir.current))}yOnThumbPositionChange(){if(!(this.root.viewportNode&&this.thumbNode))return;const t=this.root.viewportNode.scrollTop,r=`translate3d(0, ${hr({scrollPos:t,sizes:this.sizes})}px, 0)`;this.thumbNode.style.transform=r,this.prevTransformStyle=r}yOnWheelScroll(t){this.root.viewportNode&&(this.root.viewportNode.scrollTop=t)}yOnDragScroll(t){this.root.viewportNode&&(this.root.viewportNode.scrollTop=this.getScrollPosition(t,this.root.opts.dir.current))}};kt=new WeakMap,Xt=new WeakMap,Ut=new WeakMap,Yt=new WeakMap,$t=new WeakMap,It=new WeakMap;let Ae=Ze;var Ft,Bt,jt;const Ke=class Ke{constructor(t,e){m(this,"opts");m(this,"scrollbarVis");m(this,"root");m(this,"scrollbar");m(this,"attachment");d(this,Ft,T());m(this,"onThumbPointerDown",t=>{this.scrollbarVis.onThumbPointerDown(t.x)});m(this,"onDragScroll",t=>{this.scrollbarVis.xOnDragScroll(t.x)});m(this,"onThumbPointerUp",()=>{this.scrollbarVis.onThumbPointerUp()});m(this,"onThumbPositionChange",()=>{this.scrollbarVis.xOnThumbPositionChange()});m(this,"onWheelScroll",(t,e)=>{if(!this.root.viewportNode)return;const r=this.root.viewportNode.scrollLeft+t.deltaX;this.scrollbarVis.xOnWheelScroll(r),mr(r,e)&&t.preventDefault()});m(this,"onResize",()=>{this.scrollbar.opts.ref.current&&this.root.viewportNode&&this.computedStyle&&this.scrollbarVis.setSizes({content:this.root.viewportNode.scrollWidth,viewport:this.root.viewportNode.offsetWidth,scrollbar:{size:this.scrollbar.opts.ref.current.clientWidth,paddingStart:be(this.computedStyle.paddingLeft),paddingEnd:be(this.computedStyle.paddingRight)}})});d(this,Bt,y(()=>ye(this.scrollbarVis.sizes)));d(this,jt,y(()=>({id:this.scrollbar.opts.id.current,"data-orientation":"horizontal",style:{bottom:0,left:this.root.opts.dir.current==="rtl"?"var(--bits-scroll-area-corner-width)":0,right:this.root.opts.dir.current==="ltr"?"var(--bits-scroll-area-corner-width)":0,"--bits-scroll-area-thumb-width":`${this.thumbSize}px`},...this.attachment})));this.opts=t,this.scrollbarVis=e,this.root=e.root,this.scrollbar=e.scrollbar,this.attachment=K(this.scrollbar.opts.ref,r=>this.root.scrollbarXNode=r),X(()=>{this.scrollbar.opts.ref.current&&this.opts.mounted.current&&(this.computedStyle=getComputedStyle(this.scrollbar.opts.ref.current))}),X(()=>{this.onResize()})}static create(t){return Ie.set(new Ke(t,Pe.get()))}get computedStyle(){return o(n(this,Ft))}set computedStyle(t){f(n(this,Ft),t,!0)}get thumbSize(){return o(n(this,Bt))}set thumbSize(t){f(n(this,Bt),t)}get props(){return o(n(this,jt))}set props(t){f(n(this,jt),t)}};Ft=new WeakMap,Bt=new WeakMap,jt=new WeakMap;let He=Ke;var qt,Gt,Jt;const tr=class tr{constructor(t,e){m(this,"opts");m(this,"scrollbarVis");m(this,"root");m(this,"scrollbar");m(this,"attachment");d(this,qt,T());d(this,Gt,y(()=>ye(this.scrollbarVis.sizes)));d(this,Jt,y(()=>({id:this.scrollbar.opts.id.current,"data-orientation":"vertical",style:{top:0,right:this.root.opts.dir.current==="ltr"?0:void 0,left:this.root.opts.dir.current==="rtl"?0:void 0,bottom:"var(--bits-scroll-area-corner-height)","--bits-scroll-area-thumb-height":`${this.thumbSize}px`},...this.attachment})));this.opts=t,this.scrollbarVis=e,this.root=e.root,this.scrollbar=e.scrollbar,this.attachment=K(this.scrollbar.opts.ref,r=>this.root.scrollbarYNode=r),X(()=>{this.scrollbar.opts.ref.current&&this.opts.mounted.current&&(this.computedStyle=getComputedStyle(this.scrollbar.opts.ref.current))}),X(()=>{this.onResize()}),this.onThumbPointerDown=this.onThumbPointerDown.bind(this),this.onDragScroll=this.onDragScroll.bind(this),this.onThumbPointerUp=this.onThumbPointerUp.bind(this),this.onThumbPositionChange=this.onThumbPositionChange.bind(this),this.onWheelScroll=this.onWheelScroll.bind(this),this.onResize=this.onResize.bind(this)}static create(t){return Ie.set(new tr(t,Pe.get()))}get computedStyle(){return o(n(this,qt))}set computedStyle(t){f(n(this,qt),t,!0)}onThumbPointerDown(t){this.scrollbarVis.onThumbPointerDown(t.y)}onDragScroll(t){this.scrollbarVis.yOnDragScroll(t.y)}onThumbPointerUp(){this.scrollbarVis.onThumbPointerUp()}onThumbPositionChange(){this.scrollbarVis.yOnThumbPositionChange()}onWheelScroll(t,e){if(!this.root.viewportNode)return;const r=this.root.viewportNode.scrollTop+t.deltaY;this.scrollbarVis.yOnWheelScroll(r),mr(r,e)&&t.preventDefault()}onResize(){this.scrollbar.opts.ref.current&&this.root.viewportNode&&this.computedStyle&&this.scrollbarVis.setSizes({content:this.root.viewportNode.scrollHeight,viewport:this.root.viewportNode.offsetHeight,scrollbar:{size:this.scrollbar.opts.ref.current.clientHeight,paddingStart:be(this.computedStyle.paddingTop),paddingEnd:be(this.computedStyle.paddingBottom)}})}get thumbSize(){return o(n(this,Gt))}set thumbSize(t){f(n(this,Gt),t)}get props(){return o(n(this,Jt))}set props(t){f(n(this,Jt),t)}};qt=new WeakMap,Gt=new WeakMap,Jt=new WeakMap;let Le=tr;var Qt,Zt,Kt,te,ke,ee;const er=class er{constructor(t){d(this,te);m(this,"scrollbarState");m(this,"root");m(this,"scrollbarVis");m(this,"scrollbar");d(this,Qt,T(null));d(this,Zt,T(""));m(this,"handleResize");m(this,"handleThumbPositionChange");m(this,"handleWheelScroll");m(this,"handleThumbPointerDown");m(this,"handleThumbPointerUp");d(this,Kt,y(()=>this.scrollbarVis.sizes.content-this.scrollbarVis.sizes.viewport));d(this,ee,y(()=>Y({...this.scrollbarState.props,style:{position:"absolute",...this.scrollbarState.props.style},[ce.scrollbar]:"",onpointerdown:this.onpointerdown,onpointermove:this.onpointermove,onpointerup:this.onpointerup,onlostpointercapture:this.onlostpointercapture})));this.scrollbarState=t,this.root=t.root,this.scrollbarVis=t.scrollbarVis,this.scrollbar=t.scrollbarVis.scrollbar,this.handleResize=we(()=>this.scrollbarState.onResize(),10),this.handleThumbPositionChange=this.scrollbarState.onThumbPositionChange,this.handleWheelScroll=this.scrollbarState.onWheelScroll,this.handleThumbPointerDown=this.scrollbarState.onThumbPointerDown,this.handleThumbPointerUp=this.scrollbarState.onThumbPointerUp,X(()=>{const e=this.maxScrollPos,r=this.scrollbar.opts.ref.current;this.root.viewportNode;const i=a=>{const c=a.target;r?.contains(c)&&this.handleWheelScroll(a,e)};return ut(this.root.domContext.getDocument(),"wheel",i,{passive:!1})}),Lr(()=>{this.scrollbarVis.sizes,ht(()=>this.handleThumbPositionChange())}),new at(()=>this.scrollbar.opts.ref.current,this.handleResize),new at(()=>this.root.contentNode,this.handleResize),this.onpointerdown=this.onpointerdown.bind(this),this.onpointermove=this.onpointermove.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onlostpointercapture=this.onlostpointercapture.bind(this)}static create(){return fr.set(new er(Ie.get()))}get rect(){return o(n(this,Qt))}set rect(t){f(n(this,Qt),t)}get prevWebkitUserSelect(){return o(n(this,Zt))}set prevWebkitUserSelect(t){f(n(this,Zt),t,!0)}get maxScrollPos(){return o(n(this,Kt))}set maxScrollPos(t){f(n(this,Kt),t)}handleDragScroll(t){if(!this.rect)return;const e=t.clientX-this.rect.left,r=t.clientY-this.rect.top;this.scrollbarState.onDragScroll({x:e,y:r})}onpointerdown(t){if(t.button!==0)return;t.target.setPointerCapture(t.pointerId),this.rect=this.scrollbar.opts.ref.current?.getBoundingClientRect()??null,this.prevWebkitUserSelect=this.root.domContext.getDocument().body.style.webkitUserSelect,this.root.domContext.getDocument().body.style.webkitUserSelect="none",this.root.viewportNode&&(this.root.viewportNode.style.scrollBehavior="auto"),this.handleDragScroll(t)}onpointermove(t){this.handleDragScroll(t)}onpointerup(t){const e=t.target;e.hasPointerCapture(t.pointerId)&&e.releasePointerCapture(t.pointerId),et(this,te,ke).call(this)}onlostpointercapture(t){et(this,te,ke).call(this)}get props(){return o(n(this,ee))}set props(t){f(n(this,ee),t)}};Qt=new WeakMap,Zt=new WeakMap,Kt=new WeakMap,te=new WeakSet,ke=function(){this.rect!==null&&(this.root.domContext.getDocument().body.style.webkitUserSelect=this.prevWebkitUserSelect,this.root.viewportNode&&(this.root.viewportNode.style.scrollBehavior=""),this.rect=null)},ee=new WeakMap;let Oe=er;var re,G,Se,oe;const rr=class rr{constructor(t,e){m(this,"opts");m(this,"scrollbarState");m(this,"attachment");d(this,re);d(this,G,T());d(this,Se,we(()=>{o(n(this,G))&&(o(n(this,G))(),f(n(this,G),void 0))},100));d(this,oe,y(()=>({id:this.opts.id.current,"data-state":this.scrollbarState.scrollbarVis.hasThumb?"visible":"hidden",style:{width:"var(--bits-scroll-area-thumb-width)",height:"var(--bits-scroll-area-thumb-height)",transform:this.scrollbarState.scrollbarVis.prevTransformStyle},onpointerdowncapture:this.onpointerdowncapture,onpointerup:this.onpointerup,[ce.thumb]:"",...this.attachment})));this.opts=t,this.scrollbarState=e,F(this,re,e.root),this.attachment=K(this.opts.ref,r=>this.scrollbarState.scrollbarVis.thumbNode=r),X(()=>{const r=n(this,re).viewportNode;if(!r)return;const i=()=>{if(n(this,Se).call(this),!o(n(this,G))){const a=Kr(r,this.scrollbarState.handleThumbPositionChange);f(n(this,G),a,!0),this.scrollbarState.handleThumbPositionChange()}};return ht(()=>this.scrollbarState.handleThumbPositionChange()),ut(r,"scroll",i)}),this.onpointerdowncapture=this.onpointerdowncapture.bind(this),this.onpointerup=this.onpointerup.bind(this)}static create(t){return new rr(t,fr.get())}onpointerdowncapture(t){const e=t.target;if(!e)return;const r=e.getBoundingClientRect(),i=t.clientX-r.left,l=t.clientY-r.top;this.scrollbarState.handleThumbPointerDown({x:i,y:l})}onpointerup(t){this.scrollbarState.handleThumbPointerUp()}get props(){return o(n(this,oe))}set props(t){f(n(this,oe),t)}};re=new WeakMap,G=new WeakMap,Se=new WeakMap,oe=new WeakMap;let Xe=rr;var ot,st,se,ne;const or=class or{constructor(t,e){m(this,"opts");m(this,"root");m(this,"attachment");d(this,ot,T(0));d(this,st,T(0));d(this,se,y(()=>!!(o(n(this,ot))&&o(n(this,st)))));d(this,ne,y(()=>({id:this.opts.id.current,style:{width:o(n(this,ot)),height:o(n(this,st)),position:"absolute",right:this.root.opts.dir.current==="ltr"?0:void 0,left:this.root.opts.dir.current==="rtl"?0:void 0,bottom:0},[ce.corner]:"",...this.attachment})));this.opts=t,this.root=e,this.attachment=K(this.opts.ref),new at(()=>this.root.scrollbarXNode,()=>{const r=this.root.scrollbarXNode?.offsetHeight||0;this.root.cornerHeight=r,f(n(this,st),r,!0)}),new at(()=>this.root.scrollbarYNode,()=>{const r=this.root.scrollbarYNode?.offsetWidth||0;this.root.cornerWidth=r,f(n(this,ot),r,!0)})}static create(t){return new or(t,he.get())}get hasSize(){return o(n(this,se))}set hasSize(t){f(n(this,se),t)}get props(){return o(n(this,ne))}set props(t){f(n(this,ne),t)}};ot=new WeakMap,st=new WeakMap,se=new WeakMap,ne=new WeakMap;let Ue=or;function be(s){return s?Number.parseInt(s,10):0}function pr(s,t){const e=s/t;return Number.isNaN(e)?0:e}function ye(s){const t=pr(s.viewport,s.content),e=s.scrollbar.paddingStart+s.scrollbar.paddingEnd,r=(s.scrollbar.size-e)*t;return Math.max(r,18)}function Zr({pointerPos:s,pointerOffset:t,sizes:e,dir:r="ltr"}){const i=ye(e),l=i/2,a=t||l,c=i-a,u=e.scrollbar.paddingStart+a,p=e.scrollbar.size-e.scrollbar.paddingEnd-c,h=e.content-e.viewport,P=r==="ltr"?[0,h]:[h*-1,0];return br([u,p],P)(s)}function hr({scrollPos:s,sizes:t,dir:e="ltr"}){const r=ye(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,l=t.scrollbar.size-i,a=t.content-t.viewport,c=l-r,u=e==="ltr"?[0,a]:[a*-1,0],p=Jr(s,u[0],u[1]);return br([0,a],[0,c])(p)}function br(s,t){return e=>{if(s[0]===s[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(s[1]-s[0]);return t[0]+r*(e-s[0])}}function mr(s,t){return s>0&&s<t}function Kr(s,t){let e={left:s.scrollLeft,top:s.scrollTop},r=0;const i=Fr(s);return(function l(){const a={left:s.scrollLeft,top:s.scrollTop},c=e.left!==a.left,u=e.top!==a.top;(c||u)&&t(),e=a,r=i.requestAnimationFrame(l)})(),()=>i.cancelAnimationFrame(r)}var to=new Set(["$$slots","$$events","$$legacy","ref","id","type","dir","scrollHideDelay","children","child"]),eo=tt("<div><!></div>");function gr(s,t){const e=ie();if(new.target)return V({component:gr,...s});A(t,!0);let r=v(t,"ref",15,null),i=v(t,"id",23,()=>j(e)),l=v(t,"type",7,"hover"),a=v(t,"dir",7,"ltr"),c=v(t,"scrollHideDelay",7,600),u=v(t,"children",7),p=v(t,"child",7),h=k(t,to);const P=Ee.create({type:D(()=>l()),dir:D(()=>a()),scrollHideDelay:D(()=>c()),id:D(()=>i()),ref:D(()=>r(),_=>r(_))}),w=y(()=>Y(h,P.props));var x={get ref(){return r()},set ref(_=null){r(_),S()},get id(){return i()},set id(_=j(e)){i(_),S()},get type(){return l()},set type(_="hover"){l(_),S()},get dir(){return a()},set dir(_="ltr"){a(_),S()},get scrollHideDelay(){return c()},set scrollHideDelay(_=600){c(_),S()},get children(){return u()},set children(_){u(_),S()},get child(){return p()},set child(_){p(_),S()},$set:M,$on:(_,$)=>W(t,_,$)},g=O(),C=E(g);{var b=_=>{var $=O(),N=E($);U(N,p,()=>({props:o(w)})),z(_,$)},R=_=>{var $=eo();lt($,()=>({...o(w)}));var N=nt($);U(N,()=>u()??J),it($),z(_,$)};B(C,_=>{p()?_(b):_(R,-1)})}return z(s,g),H(x)}var ro=new Set(["$$slots","$$events","$$legacy","ref","id","children"]),oo=tt("<div><div><!></div></div>");function vr(s,t){const e=ie();if(new.target)return V({component:vr,...s});A(t,!0);let r=v(t,"ref",15,null),i=v(t,"id",23,()=>j(e)),l=v(t,"children",7),a=k(t,ro);const c=Re.create({id:D(()=>i()),ref:D(()=>r(),g=>r(g))}),u=y(()=>Y(a,c.props)),p=y(()=>Y({},c.contentProps));var h={get ref(){return r()},set ref(g=null){r(g),S()},get id(){return i()},set id(g=j(e)){i(g),S()},get children(){return l()},set children(g){l(g),S()},$set:M,$on:(g,C)=>W(t,g,C)},P=oo();lt(P,()=>({...o(u)}));var w=nt(P);lt(w,()=>({...o(p)}));var x=nt(w);return U(x,()=>l()??J),it(w),it(P),z(s,P),H(h)}var so=new Set(["$$slots","$$events","$$legacy","child","children"]),no=tt("<div><!></div>");function Fe(s,t){if(new.target)return V({component:Fe,...s});A(t,!0);let e=v(t,"child",7),r=v(t,"children",7),i=k(t,so);const l=Oe.create(),a=y(()=>Y(i,l.props));var c={get child(){return e()},set child(w){e(w),S()},get children(){return r()},set children(w){r(w),S()},$set:M,$on:(w,x)=>W(t,w,x)},u=O(),p=E(u);{var h=w=>{var x=O(),g=E(x);U(g,e,()=>({props:o(a)})),z(w,x)},P=w=>{var x=no();lt(x,()=>({...o(a)}));var g=nt(x);U(g,()=>r()??J),it(x),z(w,x)};B(p,w=>{e()?w(h):w(P,-1)})}return z(s,u),H(c)}var io=new Set(["$$slots","$$events","$$legacy"]);function Sr(s,t){if(new.target)return V({component:Sr,...s});A(t,!0);let e=k(t,io);const r=new $e,i=He.create({mounted:D(()=>r.current)}),l=y(()=>Y(e,i.props));var a={$set:M,$on:(c,u)=>W(t,c,u)};return Fe(s,L(()=>o(l))),H(a)}var lo=new Set(["$$slots","$$events","$$legacy"]);function wr(s,t){if(new.target)return V({component:wr,...s});A(t,!0);let e=k(t,lo);const r=new $e,i=Le.create({mounted:D(()=>r.current)}),l=y(()=>Y(e,i.props));var a={$set:M,$on:(c,u)=>W(t,c,u)};return Fe(s,L(()=>o(l))),H(a)}var ao=new Set(["$$slots","$$events","$$legacy"]);function de(s,t){if(new.target)return V({component:de,...s});A(t,!0);let e=k(t,ao);const r=Ae.create();var i={$set:M,$on:(p,h)=>W(t,p,h)},l=O(),a=E(l);{var c=p=>{Sr(p,L(()=>e))},u=p=>{wr(p,L(()=>e))};B(a,p=>{r.scrollbar.opts.orientation.current==="horizontal"?p(c):p(u,-1)})}return z(s,l),H(i)}var co=new Set(["$$slots","$$events","$$legacy","forceMount"]);function Pr(s,t){if(new.target)return V({component:Pr,...s});A(t,!0);let e=v(t,"forceMount",7,!1),r=k(t,co);const i=pe.create(),l=y(()=>Y(r,i.props));var a={get forceMount(){return e()},set forceMount(c=!1){e(c),S()},$set:M,$on:(c,u)=>W(t,c,u)};{const c=p=>{de(p,L(()=>o(l)))};let u=y(()=>e()||i.isVisible);ae(s,{get open(){return o(u)},get ref(){return i.scrollbar.opts.ref},presence:c,$$slots:{presence:!0}})}return H(a)}var ho=new Set(["$$slots","$$events","$$legacy","forceMount"]);function yr(s,t){if(new.target)return V({component:yr,...s});A(t,!0);let e=v(t,"forceMount",7,!1),r=k(t,ho);const i=We.create(),l=y(()=>Y(r,i.props));var a={get forceMount(){return e()},set forceMount(c=!1){e(c),S()},$set:M,$on:(c,u)=>W(t,c,u)};{const c=p=>{de(p,L(()=>o(l)))};let u=y(()=>e()||!i.isHidden);ae(s,L(()=>o(l),{get open(){return o(u)},get ref(){return i.scrollbar.opts.ref},presence:c,$$slots:{presence:!0}}))}return H(a)}var uo=new Set(["$$slots","$$events","$$legacy","forceMount"]);function xr(s,t){if(new.target)return V({component:xr,...s});A(t,!0);let e=v(t,"forceMount",7,!1),r=k(t,uo);const i=Me.create(),l=pe.create(),a=y(()=>Y(r,i.props,l.props,{"data-state":i.isVisible?"visible":"hidden"})),c=y(()=>e()||i.isVisible&&l.isVisible);var u={get forceMount(){return e()},set forceMount(p=!1){e(p),S()},$set:M,$on:(p,h)=>W(t,p,h)};return ae(s,{get open(){return o(c)},get ref(){return l.scrollbar.opts.ref},presence:h=>{de(h,L(()=>o(a)))},$$slots:{presence:!0}}),H(u)}var fo=new Set(["$$slots","$$events","$$legacy","ref","id","orientation"]);function _r(s,t){const e=ie();if(new.target)return V({component:_r,...s});A(t,!0);let r=v(t,"ref",15,null),i=v(t,"id",23,()=>j(e)),l=v(t,"orientation",7),a=k(t,fo);const c=Ve.create({orientation:D(()=>l()),id:D(()=>i()),ref:D(()=>r(),b=>r(b))}),u=y(()=>c.root.opts.type.current);var p={get ref(){return r()},set ref(b=null){r(b),S()},get id(){return i()},set id(b=j(e)){i(b),S()},get orientation(){return l()},set orientation(b){l(b),S()},$set:M,$on:(b,R)=>W(t,b,R)},h=O(),P=E(h);{var w=b=>{xr(b,L(()=>a,{get id(){return i()}}))},x=b=>{yr(b,L(()=>a,{get id(){return i()}}))},g=b=>{Pr(b,L(()=>a,{get id(){return i()}}))},C=b=>{de(b,L(()=>a,{get id(){return i()}}))};B(P,b=>{o(u)==="hover"?b(w):o(u)==="scroll"?b(x,1):o(u)==="auto"?b(g,2):o(u)==="always"&&b(C,3)})}return z(s,h),H(p)}var po=new Set(["$$slots","$$events","$$legacy","ref","id","child","children","present"]),bo=tt("<div><!></div>");function Tr(s,t){if(new.target)return V({component:Tr,...s});A(t,!0);let e=v(t,"ref",15,null),r=v(t,"id",7),i=v(t,"child",7),l=v(t,"children",7),a=v(t,"present",7),c=k(t,po);const u=new $e,p=Xe.create({id:D(()=>r()),ref:D(()=>e(),b=>e(b)),mounted:D(()=>u.current)}),h=y(()=>Y(c,p.props,{style:{hidden:!a()}}));var P={get ref(){return e()},set ref(b=null){e(b),S()},get id(){return r()},set id(b){r(b),S()},get child(){return i()},set child(b){i(b),S()},get children(){return l()},set children(b){l(b),S()},get present(){return a()},set present(b){a(b),S()},$set:M,$on:(b,R)=>W(t,b,R)},w=O(),x=E(w);{var g=b=>{var R=O(),_=E(R);U(_,i,()=>({props:o(h)})),z(b,R)},C=b=>{var R=bo();lt(R,()=>({...o(h)}));var _=nt(R);U(_,()=>l()??J),it(R),z(b,R)};B(x,b=>{i()?b(g):b(C,-1)})}return z(s,w),H(P)}var mo=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount"]);function Nr(s,t){const e=ie();if(new.target)return V({component:Nr,...s});A(t,!0);let r=v(t,"id",23,()=>j(e)),i=v(t,"ref",15,null),l=v(t,"forceMount",7,!1),a=k(t,mo);const c=Pe.get();var u={get id(){return r()},set id(p=j(e)){r(p),S()},get ref(){return i()},set ref(p=null){i(p),S()},get forceMount(){return l()},set forceMount(p=!1){l(p),S()},$set:M,$on:(p,h)=>W(t,p,h)};{const p=(P,w)=>{let x=()=>(w?.()).present;Tr(P,L(()=>a,{get id(){return r()},get present(){return x()},get ref(){return i()},set ref(g){i(g)}}))};let h=y(()=>l()||c.hasThumb);ae(s,{get open(){return o(h)},get ref(){return c.scrollbar.opts.ref},presence:p,$$slots:{presence:!0}})}return H(u)}var go=new Set(["$$slots","$$events","$$legacy","ref","id","children","child"]),vo=tt("<div><!></div>");function Cr(s,t){if(new.target)return V({component:Cr,...s});A(t,!0);let e=v(t,"ref",15,null),r=v(t,"id",7),i=v(t,"children",7),l=v(t,"child",7),a=k(t,go);const c=Ue.create({id:D(()=>r()),ref:D(()=>e(),g=>e(g))}),u=y(()=>Y(a,c.props));var p={get ref(){return e()},set ref(g=null){e(g),S()},get id(){return r()},set id(g){r(g),S()},get children(){return i()},set children(g){i(g),S()},get child(){return l()},set child(g){l(g),S()},$set:M,$on:(g,C)=>W(t,g,C)},h=O(),P=E(h);{var w=g=>{var C=O(),b=E(C);U(b,l,()=>({props:o(u)})),z(g,C)},x=g=>{var C=vo();lt(C,()=>({...o(u)}));var b=nt(C);U(b,()=>i()??J),it(C),z(g,C)};B(P,g=>{l()?g(w):g(x,-1)})}return z(s,h),H(p)}var So=new Set(["$$slots","$$events","$$legacy","ref","id"]);function zr(s,t){const e=ie();if(new.target)return V({component:zr,...s});A(t,!0);let r=v(t,"ref",15,null),i=v(t,"id",23,()=>j(e)),l=k(t,So);const a=he.get(),c=y(()=>!!(a.scrollbarXNode&&a.scrollbarYNode)),u=y(()=>a.opts.type.current!=="scroll"&&o(c));var p={get ref(){return r()},set ref(x=null){r(x),S()},get id(){return i()},set id(x=j(e)){i(x),S()},$set:M,$on:(x,g)=>W(t,x,g)},h=O(),P=E(h);{var w=x=>{Cr(x,L(()=>l,{get id(){return i()},get ref(){return r()},set ref(g){r(g)}}))};B(P,x=>{o(u)&&x(w)})}return z(s,h),H(p)}var wo=new Set(["$$slots","$$events","$$legacy","ref","class","orientation","children"]),Po=tt("<!> <!>",1);function Ye(s,t){if(new.target)return V({component:Ye,...s});A(t,!0);let e=v(t,"ref",15,null),r=v(t,"class",7),i=v(t,"orientation",7,"vertical"),l=v(t,"children",7),a=k(t,wo);var c={get ref(){return e()},set ref(h=null){e(h),S()},get class(){return r()},set class(h){r(h),S()},get orientation(){return i()},set orientation(h="vertical"){i(h),S()},get children(){return l()},set children(h){l(h),S()},$set:M,$on:(h,P)=>W(t,h,P)},u=O(),p=E(u);return ct(p,()=>_r,(h,P)=>{P(h,L({"data-slot":"scroll-area-scrollbar",get orientation(){return i()},get class(){return r()},forceMount:!0},()=>a,{get ref(){return e()},set ref(w){e(w)},children:(w,x)=>{var g=Po(),C=E(g);U(C,()=>l()??J);var b=fe(C,2);ct(b,()=>Nr,(R,_)=>{_(R,{"data-slot":"scroll-area-thumb"})}),z(w,g)},$$slots:{default:!0}}))}),z(s,u),H(c)}var yo=new Set(["$$slots","$$events","$$legacy","ref","class","orientation","scrollbarXClasses","scrollbarYClasses","fadeEdges","children"]),xo=tt("<!> <!> <!> <!>",1);function _o(s,t){if(new.target)return V({component:_o,...s});A(t,!0);let e=v(t,"ref",15,null),r=v(t,"class",7),i=v(t,"orientation",7,"vertical"),l=v(t,"scrollbarXClasses",7,""),a=v(t,"scrollbarYClasses",7,""),c=v(t,"fadeEdges",7,!0),u=v(t,"children",7),p=k(t,yo),h=T(null),P=T(!0),w=T(!0),x=T(!0),g=T(!0);function C(){o(h)&&(f(P,o(h).scrollTop<=0),f(w,o(h).scrollTop+o(h).clientHeight>=o(h).scrollHeight-1),f(x,o(h).scrollLeft<=0),f(g,o(h).scrollLeft+o(h).clientWidth>=o(h).scrollWidth-1))}let b=y(()=>{if(!c())return;const N=[];return i()!=="horizontal"&&(!o(P)||!o(w))&&N.push(`linear-gradient(to bottom, ${o(P)?"black 0":"transparent 0, black 12px"}, ${o(w)?"black 100%":"black calc(100% - 12px), transparent 100%"})`),i()!=="vertical"&&(!o(x)||!o(g))&&N.push(`linear-gradient(to right, ${o(x)?"black 0":"transparent 0, black 12px"}, ${o(g)?"black 100%":"black calc(100% - 12px), transparent 100%"})`),N.length?N.join(", "):void 0});X(()=>{if(!o(h))return;C();const N=new ResizeObserver(C);return N.observe(o(h)),o(h).firstElementChild&&N.observe(o(h).firstElementChild),()=>N.disconnect()});var R={get ref(){return e()},set ref(N=null){e(N),S()},get class(){return r()},set class(N){r(N),S()},get orientation(){return i()},set orientation(N="vertical"){i(N),S()},get scrollbarXClasses(){return l()},set scrollbarXClasses(N=""){l(N),S()},get scrollbarYClasses(){return a()},set scrollbarYClasses(N=""){a(N),S()},get fadeEdges(){return c()},set fadeEdges(N=!0){c(N),S()},get children(){return u()},set children(N){u(N),S()},$set:M,$on:(N,xe)=>W(t,N,xe)},_=O(),$=E(_);{let N=y(()=>Br("relative overflow-hidden",r()));ct($,()=>gr,(xe,Dr)=>{Dr(xe,L({"data-slot":"scroll-area",get"data-orientation"(){return i()},get class(){return o(N)},type:"scroll"},()=>p,{get ref(){return e()},set ref(_e){e(_e)},children:(_e,No)=>{var sr=xo(),nr=E(sr);{let I=y(()=>o(b)?`mask-image: ${o(b)}; -webkit-mask-image: ${o(b)};`:void 0);ct(nr,()=>vr,(Te,Mr)=>{Mr(Te,{"data-slot":"scroll-area-viewport",tabindex:0,class:"size-full rounded-[inherit] transition-[mask-image] duration-(--motion-fast) focus-visible:outline focus-visible:-outline-offset-1 motion-reduce:transition-none",get style(){return o(I)},onscroll:C,get ref(){return o(h)},set ref(Ne){f(h,Ne,!0)},children:(Ne,Co)=>{var ar=O(),Wr=E(ar);U(Wr,()=>u()??J),z(Ne,ar)},$$slots:{default:!0}})})}var ir=fe(nr,2);{var Er=I=>{Ye(I,{orientation:"vertical",get class(){return a()}})};B(ir,I=>{(i()==="vertical"||i()==="both")&&I(Er)})}var lr=fe(ir,2);{var Rr=I=>{Ye(I,{orientation:"horizontal",get class(){return l()}})};B(lr,I=>{(i()==="horizontal"||i()==="both")&&I(Rr)})}var Vr=fe(lr,2);ct(Vr,()=>zr,(I,Te)=>{Te(I,{})}),z(_e,sr)},$$slots:{default:!0}}))})}return z(s,_),H(R)}const To=[{id:"scroll-area-orientations",title:"Scroll area orientations and overflow",states:["vertical","horizontal","both","keyboard-focus","long-content","no-overflow","scrollbar-resting","scrollbar-scrolling","scrollbar-hover","native-opt-out","compact","zoom-200","light","dark","reduced-motion"],themes:["light","dark"],viewport:"both",reducedMotion:!0}];jr({id:"scroll-area",source:"src/lib/components/ui/scroll-area/index.ts",publicImport:"$lib/components/ui/scroll-area",legacyImports:[],exports:["Root","ScrollArea","ScrollAreaScrollbar","Scrollbar","scrollAreaMetadata"],usage:`<script lang="ts">
|
|
2
2
|
import { ScrollArea } from '$lib/components/ui/scroll-area';
|
|
3
3
|
<\/script>
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var g=Object.defineProperty;var v=(h,e,s)=>e in h?g(h,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):h[e]=s;var a=(h,e,s)=>v(h,typeof e!="symbol"?e+"":e,s);import{p as c}from"./
|
|
1
|
+
var g=Object.defineProperty;var v=(h,e,s)=>e in h?g(h,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):h[e]=s;var a=(h,e,s)=>v(h,typeof e!="symbol"?e+"":e,s);import{p as c}from"./Cp-IRK5Y.js";import{applyCustomMonacoTheme as f,revertMonacoTheme as I}from"./DkCcVZv8.js";import{d as y}from"./B0Z-1lwJ.js";import{Bx as r}from"./fSyO2umz.js";const u="custom-vscode-theme",l="theme-preset-id",d="theme-preset-set",o=typeof window<"u",n=class n{constructor(){a(this,"currentTheme","system");a(this,"fixedDarkAppearance",o&&["dock","dock-annotation","dock-capture-editor"].includes(document.documentElement.dataset.auxiliaryWindow??""));a(this,"mediaQuery",null);a(this,"customTheme",null);a(this,"presetDarkTheme",null);a(this,"presetLightTheme",null);a(this,"appliedCSSVariableKeys",[]);a(this,"activePresetId",null);a(this,"handleSystemThemeChange",()=>{this.currentTheme==="system"&&this.applyTheme()});o&&(this.mediaQuery=window.matchMedia("(prefers-color-scheme: dark)"),this.loadTheme(),this.setupListeners())}static getInstance(){return n.instance||(n.instance=new n),n.instance}static resetInstance(){n.instance?.dispose(),n.instance=null}loadTheme(){const e=r.getItem("theme");e&&(this.currentTheme=e),this.activePresetId=r.getItem(l);const s=r.getItem(d);if(s)try{const{dark:t,light:i}=JSON.parse(s);this.presetDarkTheme=c(t),this.presetLightTheme=c(i)}catch{r.removeItem(d),this.activePresetId=null,r.removeItem(l)}if(!this.presetDarkTheme){const t=r.getItem(u);if(t)try{const i=JSON.parse(t);this.customTheme=c(i)}catch{r.removeItem(u),this.activePresetId=null,r.removeItem(l)}}this.applyTheme()}setupListeners(){this.mediaQuery&&this.mediaQuery.addEventListener("change",this.handleSystemThemeChange)}dispose(){this.mediaQuery?.removeEventListener("change",this.handleSystemThemeChange),this.mediaQuery=null}setTheme(e,s={}){if(!o)return;const{persist:t=!0}=s;this.currentTheme=e,t&&r.setItem("theme",e),this.applyTheme()}getTheme(){return this.currentTheme}setCustomTheme(e){if(!o)return;const s=c(e);this.customTheme=s,this.activePresetId=null,this.presetDarkTheme=null,this.presetLightTheme=null,r.removeItem(l),r.removeItem(d),r.setJSON(u,e),this.applyTheme()}setPresetTheme(e,s,t){o&&(this.presetDarkTheme=c(s),this.presetLightTheme=c(t),this.activePresetId=e,this.customTheme=null,r.removeItem(u),r.setItem(l,e),r.setJSON(d,{dark:s,light:t}),this.applyTheme())}clearCustomTheme(){o&&(this.customTheme=null,this.presetDarkTheme=null,this.presetLightTheme=null,this.activePresetId=null,r.removeItem(u),r.removeItem(l),r.removeItem(d),this.removeCSSVariableOverrides(),this.applyTheme())}hasCustomTheme(){return this.getActiveTheme()!==null}getCustomThemeName(){return this.getActiveTheme()?.name??null}getActivePresetId(){return this.activePresetId}resolveIsDark(){if(this.fixedDarkAppearance)return!0;const e=this.mediaQuery?.matches??!1;return this.currentTheme==="system"?e:this.currentTheme==="dark"}getActiveTheme(){return this.presetDarkTheme&&this.presetLightTheme?this.resolveIsDark()?this.presetDarkTheme:this.presetLightTheme:this.fixedDarkAppearance&&this.customTheme?.type==="light"?null:this.customTheme}applyTheme(){if(!o)return;const e=document.documentElement,s=this.mediaQuery?.matches??!1,t=this.getActiveTheme(),i=this.isDark();e.classList.remove("dark","light"),e.classList.add(i?"dark":"light"),e.style.setProperty("color-scheme",i?"dark":"light"),t?this.applyCSSVariableOverrides(t.cssVariables):this.removeCSSVariableOverrides(),i&&!s&&!t?e.setAttribute("data-theme-override","true"):e.removeAttribute("data-theme-override");const p=document.querySelector('meta[name="theme-color"]');p&&p.setAttribute("content",i?"#0a0a0a":"#ffffff"),t?f(t.monacoTheme):I(i),y("theme-changed",{theme:this.currentTheme,isDark:i,customThemeName:t?.name??null,activePresetId:this.activePresetId,terminalColors:t?.terminalColors??null})}applyCSSVariableOverrides(e){const s=document.documentElement;this.removeCSSVariableOverrides();const t=[];for(const[i,T]of Object.entries(e))s.style.setProperty(i,T),t.push(i);this.appliedCSSVariableKeys=t}removeCSSVariableOverrides(){const e=document.documentElement;for(const s of this.appliedCSSVariableKeys)e.style.removeProperty(s);this.appliedCSSVariableKeys=[]}toggleTheme(){if(!o)return;const e=["light","dark","system"],t=(e.indexOf(this.currentTheme)+1)%e.length;this.setTheme(e[t])}isDark(){return this.fixedDarkAppearance?!0:this.customTheme?this.customTheme.type==="dark":this.resolveIsDark()}};a(n,"instance",null);let m=n;const E={setTheme:(...h)=>m.getInstance().setTheme(...h),getTheme:()=>m.getInstance().getTheme(),setCustomTheme:(...h)=>m.getInstance().setCustomTheme(...h),setPresetTheme:(...h)=>m.getInstance().setPresetTheme(...h),clearCustomTheme:()=>m.getInstance().clearCustomTheme(),hasCustomTheme:()=>m.getInstance().hasCustomTheme(),getCustomThemeName:()=>m.getInstance().getCustomThemeName(),getActivePresetId:()=>m.getInstance().getActivePresetId(),toggleTheme:()=>m.getInstance().toggleTheme(),isDark:()=>m.getInstance().isDark()};export{m as T,E as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as F,bq as l,bo as u,by as G,b as H,bu as re,bs as se}from"./
|
|
1
|
+
import{t as F,bq as l,bo as u,by as G,b as H,bu as re,bs as se}from"./D7ppHbEC.js";import{bs as J,a5 as P,bl as I,bS as m,bA as $,be as z,b$ as N,b_ as k,bO as _,W as v,aD as ae,bn as K,aA as p,c9 as ne,aB as B,c5 as R,a7 as oe,ay as ie}from"./DYhIMPy1.js";import{i as q}from"./CWqKPDkJ.js";import{s as W}from"./Cki2vNyW.js";import{f as A}from"./NeYI0LTt.js";import"./S5Sbp0zl.js";import{D as ce}from"./9G_vzB9L.js";import{T as de}from"./Dbym7Ujf.js";import{Iv as ue,iM as le}from"./fSyO2umz.js";var pe=B('<p class="text-sm text-muted-foreground"> </p>'),j=B('<p role="status" class="text-sm"> </p>'),ge=B('<div class="flex max-h-[min(calc(100dvh-8rem),calc(var(--toast-max-height,100dvh)-2rem))] min-h-0 min-w-0 flex-col gap-3" role="group"><div class="min-h-0 space-y-3 overflow-y-auto break-words" role="region" tabindex="0"><p class="font-medium break-words"> </p> <p class="text-sm text-muted-foreground"> </p> <!> <!> <!> <!></div> <div class="flex shrink-0 flex-wrap gap-2"><!> <!> <!></div></div>');function L(y,r){if(new.target)return F({component:L,...y});J(r,!0);let a=l(r,"request",7),g=l(r,"pending",7,!1),b=l(r,"settingUp",7,!1),c=l(r,"guidance",7),d=l(r,"checklist",7),i=l(r,"onDecision",7);var C={get request(){return a()},set request(e){a(e),p()},get pending(){return g()},set pending(e=!1){g(e),p()},get settingUp(){return b()},set settingUp(e=!1){b(e),p()},get guidance(){return c()},set guidance(e){c(e),p()},get checklist(){return d()},set checklist(e){d(e),p()},get onDecision(){return i()},set onDecision(e){i(e),p()},$set:G,$on:(e,t)=>H(r,e,t)},x=ge(),f=P(x),w=P(f),U=I(w,!0),D=m(w,2),n=I(D,!0),h=m(D,2);{var Q=e=>{var t=pe(),s=I(t,!0);k(o=>_(s,o),[()=>u.desktop_consent_claimPrimary({computer:a().computerName})]),v(e,t)};q(h,e=>{a().claimsPrimary&&e(Q)})}var O=m(h,2);{var V=e=>{ce(e,{get checklist(){return d()}})};q(O,e=>{d()&&e(V)})}var S=m(O,2);{var X=e=>{var t=j(),s=I(t,!0);k(()=>_(s,c())),v(e,t)};q(S,e=>{c()&&e(X)})}var Y=m(S,2);{var Z=e=>{var t=j(),s=I(t,!0);k(o=>_(s,o),[()=>u.desktop_consent_pending()]),v(e,t)};q(Y,e=>{g()&&!b()&&e(Z)})}$(f);var T=m(f,2),E=P(T);A(E,{size:"compact",variant:"primary",get disabled(){return g()},onclick:()=>i()("allow_once"),children:(e,t)=>{z();var s=N();k(o=>_(s,o),[()=>u.desktop_consent_once()]),v(e,s)},$$slots:{default:!0}});var M=m(E,2);A(M,{size:"compact",variant:"outline",get disabled(){return g()},onclick:()=>i()("allow_future"),children:(e,t)=>{z();var s=N();k(o=>_(s,o),[()=>u.desktop_consent_future()]),v(e,s)},$$slots:{default:!0}});var ee=m(M,2);{let e=ne(()=>g()&&!b());A(ee,{size:"compact",variant:"ghost",get disabled(){return ae(e)},onclick:()=>i()("deny"),children:(t,s)=>{z();var o=N();k(te=>_(o,te),[()=>u.desktop_consent_deny()]),v(t,o)},$$slots:{default:!0}})}return $(T),$(x),k((e,t,s,o)=>{W(x,"aria-label",e),W(f,"aria-label",t),_(U,s),_(n,o)},[()=>u.desktop_consent_title(),()=>u.desktop_consent_title(),()=>u.desktop_consent_request({agent:a().agentName,computer:a().computerName}),()=>u.desktop_consent_description()]),v(y,x),K(C)}function me(y,r){if(new.target)return F({component:me,...y});J(r,!0);const a=()=>re(C,"$entry",g),[g,b]=se();let c=l(r,"workspaceId",7),d=l(r,"agentId",7),i=l(r,"requestId",7);const C=de(R(()=>c()),R(()=>d()));var x={get workspaceId(){return c()},set workspaceId(n){c(n),p()},get agentId(){return d()},set agentId(n){d(n),p()},get requestId(){return i()},set requestId(n){i(n),p()},$set:G,$on:(n,h)=>H(r,n,h)},f=oe(),w=ie(f);{var U=n=>{L(n,{get request(){return a().pending},get pending(){return a().submitting},get settingUp(){return a().settingUp},get guidance(){return a().error},get checklist(){return a().osChecklist},onDecision:h=>ue.dispatch(le(c(),d(),i(),h))})};q(w,n=>{a()?.pending?.requestId===i()&&n(U)})}v(y,f);var D=K(x);return b(),D}export{me as default};
|