@recombine-ai/bosun 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.svelte-kit/tsconfig.json +8 -1
- package/build/client/_app/immutable/assets/0.DsHRdhUK.css +1 -0
- package/build/client/_app/immutable/assets/0.DsHRdhUK.css.br +0 -0
- package/build/client/_app/immutable/assets/0.DsHRdhUK.css.gz +0 -0
- package/build/client/_app/immutable/assets/10.BX46PfEJ.css.gz +0 -0
- package/build/client/_app/immutable/assets/18.C5apk4jm.css.gz +0 -0
- package/build/client/_app/immutable/assets/2.DxwYfh1z.css.gz +0 -0
- package/build/client/_app/immutable/assets/3.Dzh7_Q8n.css.gz +0 -0
- package/build/client/_app/immutable/assets/5.CZVw96CJ.css.gz +0 -0
- package/build/client/_app/immutable/assets/9.DlSPCZj0.css.gz +0 -0
- package/build/client/_app/immutable/assets/AgentSidebar.BL1i3rB_.css.gz +0 -0
- package/build/client/_app/immutable/assets/Input.CJ8KyccG.css.gz +0 -0
- package/build/client/_app/immutable/assets/Modal.tn0RQdqM.css.gz +0 -0
- package/build/client/_app/immutable/assets/Popper.CLTyHc88.css.gz +0 -0
- package/build/client/_app/immutable/assets/Tab.DlCfjMY1.css.gz +0 -0
- package/build/client/_app/immutable/assets/chat-content.Cabnnfyv.css.gz +0 -0
- package/build/client/_app/immutable/assets/editor.BMIWPGx3.css.gz +0 -0
- package/build/client/_app/immutable/chunks/0a4GbU-O.js +1 -0
- package/build/client/_app/immutable/chunks/0a4GbU-O.js.br +0 -0
- package/build/client/_app/immutable/chunks/0a4GbU-O.js.gz +0 -0
- package/build/client/_app/immutable/chunks/0cvrggvQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/18TZju1H.js +1 -0
- package/build/client/_app/immutable/chunks/18TZju1H.js.br +0 -0
- package/build/client/_app/immutable/chunks/18TZju1H.js.gz +0 -0
- package/build/client/_app/immutable/chunks/25W9uPmb.js.gz +0 -0
- package/build/client/_app/immutable/chunks/4Ik7cdeQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/5Rap-vPy.js.gz +0 -0
- package/build/client/_app/immutable/chunks/5qVV3FOd.js +1 -0
- package/build/client/_app/immutable/chunks/5qVV3FOd.js.br +0 -0
- package/build/client/_app/immutable/chunks/5qVV3FOd.js.gz +0 -0
- package/build/client/_app/immutable/chunks/8AHOieX7.js +33 -0
- package/build/client/_app/immutable/chunks/8AHOieX7.js.br +0 -0
- package/build/client/_app/immutable/chunks/8AHOieX7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B03wrqEc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B2CB3tIy.js +1 -0
- package/build/client/_app/immutable/chunks/B2CB3tIy.js.br +0 -0
- package/build/client/_app/immutable/chunks/B2CB3tIy.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B5zXfXm9.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B9Xyijhd.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BFG1Mk7z.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BFZvm_aX.js +1 -0
- package/build/client/_app/immutable/chunks/BFZvm_aX.js.br +0 -0
- package/build/client/_app/immutable/chunks/BFZvm_aX.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BIv9DU6q.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BKlk5iyT.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BMYSavKM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BQorBhFb.js +1 -0
- package/build/client/_app/immutable/chunks/BQorBhFb.js.br +0 -0
- package/build/client/_app/immutable/chunks/BQorBhFb.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BSkB5QuD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BU7aeYn4.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BY8d35y9.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B_c3zf-v.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B_fMsGYe.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BaJupSGV.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BaLxmfj-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bas80-m6.js +1 -0
- package/build/client/_app/immutable/chunks/Bas80-m6.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bas80-m6.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BbgtW0nn.js +8 -0
- package/build/client/_app/immutable/chunks/BbgtW0nn.js.br +0 -0
- package/build/client/_app/immutable/chunks/BbgtW0nn.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bc-ZgV77.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BfEKNvv3.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BhoEG2uc.js +1 -0
- package/build/client/_app/immutable/chunks/BhoEG2uc.js.br +0 -0
- package/build/client/_app/immutable/chunks/BhoEG2uc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bhzvs7bI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bio4gycK.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BjbsXXMP.js +1 -0
- package/build/client/_app/immutable/chunks/BjbsXXMP.js.br +0 -0
- package/build/client/_app/immutable/chunks/BjbsXXMP.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BoFRg7Ot.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BoYwKlhd.js +1 -0
- package/build/client/_app/immutable/chunks/BoYwKlhd.js.br +0 -0
- package/build/client/_app/immutable/chunks/BoYwKlhd.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bqgm2twL.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BrgZPUOV.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BsTHnhdd.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C1FmrZbK.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C3xZmy9H.js +1 -0
- package/build/client/_app/immutable/chunks/C3xZmy9H.js.br +0 -0
- package/build/client/_app/immutable/chunks/C3xZmy9H.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C4mbwMvt.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C5WLch3f.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CAFoob5N.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DYY6aMTA.js → CAOT34jI.js} +1 -1
- package/build/client/_app/immutable/chunks/CAOT34jI.js.br +0 -0
- package/build/client/_app/immutable/chunks/CAOT34jI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{B394X4Dm.js → CByqsLTI.js} +1 -1
- package/build/client/_app/immutable/chunks/CByqsLTI.js.br +0 -0
- package/build/client/_app/immutable/chunks/CByqsLTI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CCSDG5nI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CDGzqUPQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CDntyWJ8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CFKIUWau.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CFOPXBzS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CGS76TsG.js +1 -0
- package/build/client/_app/immutable/chunks/CGS76TsG.js.br +2 -0
- package/build/client/_app/immutable/chunks/CGS76TsG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CGinwM47.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CHE9OFXA.js +1 -0
- package/build/client/_app/immutable/chunks/CHE9OFXA.js.br +0 -0
- package/build/client/_app/immutable/chunks/CHE9OFXA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CIXWWiNs.js +1 -0
- package/build/client/_app/immutable/chunks/CIXWWiNs.js.br +0 -0
- package/build/client/_app/immutable/chunks/CIXWWiNs.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CLLBncYj.js.gz +0 -0
- package/build/client/_app/immutable/chunks/COyEY5Pt.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CPajHgWi.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CQd8uuj9.js +1 -0
- package/build/client/_app/immutable/chunks/CQd8uuj9.js.br +2 -0
- package/build/client/_app/immutable/chunks/CQd8uuj9.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CV_MnPl-.js +1 -0
- package/build/client/_app/immutable/chunks/CV_MnPl-.js.br +0 -0
- package/build/client/_app/immutable/chunks/CV_MnPl-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CVwtpugi.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CX-rkNHf.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CXOwvkN_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CaligHlp.js +1 -0
- package/build/client/_app/immutable/chunks/CaligHlp.js.br +0 -0
- package/build/client/_app/immutable/chunks/CaligHlp.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CbvL5X4R.js +4 -0
- package/build/client/_app/immutable/chunks/CbvL5X4R.js.br +0 -0
- package/build/client/_app/immutable/chunks/CbvL5X4R.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CdQndTaG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Ce3n6wWz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cg7bfA9N.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CjrpbQ5G.js +1 -0
- package/build/client/_app/immutable/chunks/CjrpbQ5G.js.br +0 -0
- package/build/client/_app/immutable/chunks/CjrpbQ5G.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cp1zYvxS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CpIb_Oan.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cpb6xl2v.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cphgjts3.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CrxwEwqu.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CwNk8-XU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CwmAWymP.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cx0HrUMB.js +11 -0
- package/build/client/_app/immutable/chunks/Cx0HrUMB.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cx0HrUMB.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CynZnIyI.js +2 -0
- package/build/client/_app/immutable/chunks/CynZnIyI.js.br +0 -0
- package/build/client/_app/immutable/chunks/CynZnIyI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CzKuDChf.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D-MeaMDU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D3h14YRZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D5C2fndG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DDMPVpvs.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DDwshQtU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DHHC89bH.js +1 -0
- package/build/client/_app/immutable/chunks/DHHC89bH.js.br +2 -0
- package/build/client/_app/immutable/chunks/DHHC89bH.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DHaeiCBh.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DLQqXQ6R.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DRIMs3uA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DSZPf7rp.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DTECt2xU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DUeN9t8P.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DVqtH_YB.js +1 -0
- package/build/client/_app/immutable/chunks/DVqtH_YB.js.br +0 -0
- package/build/client/_app/immutable/chunks/DVqtH_YB.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DWH0347h.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DXyYeYxl.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DZxMt77D.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DaV9XiwS.js +1 -0
- package/build/client/_app/immutable/chunks/DaV9XiwS.js.br +0 -0
- package/build/client/_app/immutable/chunks/DaV9XiwS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dd3NCNK9.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DfzH4Xui.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DgyLZaXg.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DjDhNM9l.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DkeWvyEi.js +1 -0
- package/build/client/_app/immutable/chunks/DkeWvyEi.js.br +0 -0
- package/build/client/_app/immutable/chunks/DkeWvyEi.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DnHyzjbg.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DrQuvNYM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Drc7WvVn.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DwJ7jVG9.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DyP6w7ZV.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{8mHyIC1B.js → JcG4w2gF.js} +1 -1
- package/build/client/_app/immutable/chunks/JcG4w2gF.js.br +0 -0
- package/build/client/_app/immutable/chunks/JcG4w2gF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/M-7sJE5g.js +2 -0
- package/build/client/_app/immutable/chunks/M-7sJE5g.js.br +0 -0
- package/build/client/_app/immutable/chunks/M-7sJE5g.js.gz +0 -0
- package/build/client/_app/immutable/chunks/OA8UcISh.js +1 -0
- package/build/client/_app/immutable/chunks/OA8UcISh.js.br +0 -0
- package/build/client/_app/immutable/chunks/OA8UcISh.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Ps08lWnD.js +1 -0
- package/build/client/_app/immutable/chunks/Ps08lWnD.js.br +0 -0
- package/build/client/_app/immutable/chunks/Ps08lWnD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Tw7wswEv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/YWi4-JPR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ZGfwyPNq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Zznr-cwX.js.gz +0 -0
- package/build/client/_app/immutable/chunks/bynEV6cE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/d-TWvvCu.js +1 -0
- package/build/client/_app/immutable/chunks/d-TWvvCu.js.br +0 -0
- package/build/client/_app/immutable/chunks/d-TWvvCu.js.gz +0 -0
- package/build/client/_app/immutable/chunks/dUCx_-0o.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ddC1NP9R.js.gz +0 -0
- package/build/client/_app/immutable/chunks/deUWdS0T.js.gz +0 -0
- package/build/client/_app/immutable/chunks/gULlE0tz.js +1 -0
- package/build/client/_app/immutable/chunks/gULlE0tz.js.br +2 -0
- package/build/client/_app/immutable/chunks/gULlE0tz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/hS1PAb5I.js +2 -0
- package/build/client/_app/immutable/chunks/hS1PAb5I.js.br +0 -0
- package/build/client/_app/immutable/chunks/hS1PAb5I.js.gz +0 -0
- package/build/client/_app/immutable/chunks/i9-g7ZhI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/nf6ki56Z.js.gz +0 -0
- package/build/client/_app/immutable/chunks/pnP8ivHi.js.gz +0 -0
- package/build/client/_app/immutable/chunks/rUNN04Wq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/tGk8EFnU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/wZR3OpgZ.js +1 -0
- package/build/client/_app/immutable/chunks/wZR3OpgZ.js.br +2 -0
- package/build/client/_app/immutable/chunks/wZR3OpgZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/xC2C8d09.js +1 -0
- package/build/client/_app/immutable/chunks/xC2C8d09.js.br +0 -0
- package/build/client/_app/immutable/chunks/xC2C8d09.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.4nlNBoFO.js +2 -0
- package/build/client/_app/immutable/entry/app.4nlNBoFO.js.br +0 -0
- package/build/client/_app/immutable/entry/app.4nlNBoFO.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.Du6iPGlG.js +1 -0
- package/build/client/_app/immutable/entry/start.Du6iPGlG.js.br +2 -0
- package/build/client/_app/immutable/entry/start.Du6iPGlG.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{0.DsSFrs8j.js → 0.DXz9KfRr.js} +2 -2
- package/build/client/_app/immutable/nodes/0.DXz9KfRr.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.DXz9KfRr.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.C14tFTfE.js +1 -0
- package/build/client/_app/immutable/nodes/1.C14tFTfE.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.C14tFTfE.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.D2pJamM_.js +5 -0
- package/build/client/_app/immutable/nodes/10.D2pJamM_.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.D2pJamM_.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{11.BVI-eEdV.js → 11.CsTD16Gn.js} +1 -1
- package/build/client/_app/immutable/nodes/11.CsTD16Gn.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.CsTD16Gn.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{12.BHSGZYEC.js → 12.DYXd_leK.js} +1 -1
- package/build/client/_app/immutable/nodes/12.DYXd_leK.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.DYXd_leK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{13.CZ_7M4AF.js → 13.DQMjAUKq.js} +1 -1
- package/build/client/_app/immutable/nodes/13.DQMjAUKq.js.br +1 -0
- package/build/client/_app/immutable/nodes/13.DQMjAUKq.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{14.D96_XEm-.js → 14.C59tyoG0.js} +1 -1
- package/build/client/_app/immutable/nodes/14.C59tyoG0.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.C59tyoG0.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.yHpdn4IC.js +1 -0
- package/build/client/_app/immutable/nodes/15.yHpdn4IC.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.yHpdn4IC.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{16.MpUk9w5x.js → 16.DRwcAQjb.js} +1 -1
- package/build/client/_app/immutable/nodes/16.DRwcAQjb.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.DRwcAQjb.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.tRxMrZSc.js +4 -0
- package/build/client/_app/immutable/nodes/17.tRxMrZSc.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.tRxMrZSc.js.gz +0 -0
- package/build/client/_app/immutable/nodes/18.h3m2E_FB.js +11 -0
- package/build/client/_app/immutable/nodes/18.h3m2E_FB.js.br +0 -0
- package/build/client/_app/immutable/nodes/18.h3m2E_FB.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.DC1Zz78t.js +35 -0
- package/build/client/_app/immutable/nodes/2.DC1Zz78t.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.DC1Zz78t.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.CwOiRWmo.js +1 -0
- package/build/client/_app/immutable/nodes/3.CwOiRWmo.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.CwOiRWmo.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.C3SmjDhF.js +1 -0
- package/build/client/_app/immutable/nodes/4.C3SmjDhF.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.C3SmjDhF.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.26wwTN6d.js +1 -0
- package/build/client/_app/immutable/nodes/5.26wwTN6d.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.26wwTN6d.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.DYzKzkhv.js +1 -0
- package/build/client/_app/immutable/nodes/6.DYzKzkhv.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.DYzKzkhv.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{7.CkeP1yO3.js → 7.7N4iPidV.js} +1 -1
- package/build/client/_app/immutable/nodes/7.7N4iPidV.js.br +1 -0
- package/build/client/_app/immutable/nodes/7.7N4iPidV.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.lyH0lIKf.js +2 -0
- package/build/client/_app/immutable/nodes/8.lyH0lIKf.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.lyH0lIKf.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.UnSjcLjn.js +2 -0
- package/build/client/_app/immutable/nodes/9.UnSjcLjn.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.UnSjcLjn.js.gz +0 -0
- package/build/client/_app/immutable/workers/css.worker-BRIrhzkG.js.gz +0 -0
- package/build/client/_app/immutable/workers/editor.worker-DX6ApQqM.js.gz +0 -0
- package/build/client/_app/immutable/workers/html.worker-CBI4EQBP.js.gz +0 -0
- package/build/client/_app/immutable/workers/json.worker-CIZWV9vN.js.gz +0 -0
- package/build/client/_app/immutable/workers/ts.worker-Ds4I2Msu.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/client/fonts.css.gz +0 -0
- package/build/client/recombine.svg.gz +0 -0
- package/build/client/telescope-icon.svg.gz +0 -0
- package/build/client/ui/arrow_tests.svg.gz +0 -0
- package/build/client/ui/paperclip.svg.gz +0 -0
- package/build/client/ui/send.svg.gz +0 -0
- package/build/server/chunks/0-D0-90TbM.js +9 -0
- package/build/server/chunks/0-D0-90TbM.js.map +1 -0
- package/build/server/chunks/1-DHJzzXji.js +9 -0
- package/build/server/chunks/{1-D6-Ps83z.js.map → 1-DHJzzXji.js.map} +1 -1
- package/build/server/chunks/10-3jjzakty.js +9 -0
- package/build/server/chunks/10-3jjzakty.js.map +1 -0
- package/build/server/chunks/{11-D9ueFvgV.js → 11-CB5q84io.js} +3 -3
- package/build/server/chunks/{11-D9ueFvgV.js.map → 11-CB5q84io.js.map} +1 -1
- package/build/server/chunks/{12-s9qxLZI8.js → 12-CfqC_Y1R.js} +3 -3
- package/build/server/chunks/{12-s9qxLZI8.js.map → 12-CfqC_Y1R.js.map} +1 -1
- package/build/server/chunks/{13-DSBw3elU.js → 13-ByddfU7G.js} +3 -3
- package/build/server/chunks/{13-DSBw3elU.js.map → 13-ByddfU7G.js.map} +1 -1
- package/build/server/chunks/{14-Dys1MDrz.js → 14-Dk7DCwHC.js} +3 -3
- package/build/server/chunks/{14-Dys1MDrz.js.map → 14-Dk7DCwHC.js.map} +1 -1
- package/build/server/chunks/15-ICdGKEie.js +9 -0
- package/build/server/chunks/15-ICdGKEie.js.map +1 -0
- package/build/server/chunks/{16-BRBiMoCX.js → 16-Y9KLA9UF.js} +3 -3
- package/build/server/chunks/{16-BRBiMoCX.js.map → 16-Y9KLA9UF.js.map} +1 -1
- package/build/server/chunks/17-Bozc5IJF.js +9 -0
- package/build/server/chunks/17-Bozc5IJF.js.map +1 -0
- package/build/server/chunks/18-DoqpHfoi.js +9 -0
- package/build/server/chunks/18-DoqpHfoi.js.map +1 -0
- package/build/server/chunks/2-DhghCZp5.js +9 -0
- package/build/server/chunks/2-DhghCZp5.js.map +1 -0
- package/build/server/chunks/3-Cx4tDHgq.js +9 -0
- package/build/server/chunks/3-Cx4tDHgq.js.map +1 -0
- package/build/server/chunks/4-DCqFV5Ug.js +9 -0
- package/build/server/chunks/4-DCqFV5Ug.js.map +1 -0
- package/build/server/chunks/5-CwrZ3RpM.js +9 -0
- package/build/server/chunks/5-CwrZ3RpM.js.map +1 -0
- package/build/server/chunks/6-BtuvKB8a.js +9 -0
- package/build/server/chunks/6-BtuvKB8a.js.map +1 -0
- package/build/server/chunks/{7-BixmjuY5.js → 7-olXOjo4r.js} +3 -3
- package/build/server/chunks/{7-BixmjuY5.js.map → 7-olXOjo4r.js.map} +1 -1
- package/build/server/chunks/8-Di6Wb0mD.js +9 -0
- package/build/server/chunks/8-Di6Wb0mD.js.map +1 -0
- package/build/server/chunks/9-CXT-H9KT.js +9 -0
- package/build/server/chunks/9-CXT-H9KT.js.map +1 -0
- package/build/server/chunks/{AgentSidebar-DqMxRWln.js → AgentSidebar-XdGj1sqT.js} +32 -24
- package/build/server/chunks/AgentSidebar-XdGj1sqT.js.map +1 -0
- package/build/server/chunks/{Button-qfXYs6Cv.js → Button-Dsy3QY7B.js} +5 -5
- package/build/server/chunks/Button-Dsy3QY7B.js.map +1 -0
- package/build/server/chunks/{ChatStepTrace-Bvxmgz7y.js → ChatStepTrace-ZynTuQTL.js} +98 -266
- package/build/server/chunks/ChatStepTrace-ZynTuQTL.js.map +1 -0
- package/build/server/chunks/{ContextEditor-CsiHhmH8.js → ContextEditor-D5B2mO8Z.js} +6 -5
- package/build/server/chunks/ContextEditor-D5B2mO8Z.js.map +1 -0
- package/build/server/chunks/{Dropdown-DroDbZQ6.js → Dropdown-7dp1qEYv.js} +4 -4
- package/build/server/chunks/Dropdown-7dp1qEYv.js.map +1 -0
- package/build/server/chunks/{Icon-SOvOgynh.js → Icon-CXFHkSIr.js} +7 -7
- package/build/server/chunks/Icon-CXFHkSIr.js.map +1 -0
- package/build/server/chunks/{Input-D-7S8dEO.js → Input-CHFlfduw.js} +4 -4
- package/build/server/chunks/Input-CHFlfduw.js.map +1 -0
- package/build/server/chunks/{Modal-CBKUwUGm.js → Modal-DtVsRmmO.js} +131 -93
- package/build/server/chunks/Modal-DtVsRmmO.js.map +1 -0
- package/build/server/chunks/{Tab-DMBlstpi.js → Tab-CD1H0E3P.js} +6 -7
- package/build/server/chunks/Tab-CD1H0E3P.js.map +1 -0
- package/build/server/chunks/{_layout.svelte-DuOlsMHY.js → _layout.svelte-2zFP7RWi.js} +60 -59
- package/build/server/chunks/_layout.svelte-2zFP7RWi.js.map +1 -0
- package/build/server/chunks/{_layout.svelte-B3_pVwfN.js → _layout.svelte-C5eqrEen.js} +10 -9
- package/build/server/chunks/_layout.svelte-C5eqrEen.js.map +1 -0
- package/build/server/chunks/{_layout.svelte-BnUNGsUV.js → _layout.svelte-C7JgNCIu.js} +15 -15
- package/build/server/chunks/_layout.svelte-C7JgNCIu.js.map +1 -0
- package/build/server/chunks/{_layout.svelte-CqwbWo_W.js → _layout.svelte-Cgnhhd3c.js} +139 -151
- package/build/server/chunks/_layout.svelte-Cgnhhd3c.js.map +1 -0
- package/build/server/chunks/_page.svelte-BhU1G2ip.js +1040 -0
- package/build/server/chunks/_page.svelte-BhU1G2ip.js.map +1 -0
- package/build/server/chunks/{_page.svelte-B8NFVmqA.js → _page.svelte-BsIw3yWt.js} +7 -8
- package/build/server/chunks/_page.svelte-BsIw3yWt.js.map +1 -0
- package/build/server/chunks/{_page.svelte-BB_XBfMx.js → _page.svelte-C9wKPt_S.js} +6 -7
- package/build/server/chunks/_page.svelte-C9wKPt_S.js.map +1 -0
- package/build/server/chunks/{_page.svelte-c2LBV2K4.js → _page.svelte-CY4SZM-i.js} +180 -170
- package/build/server/chunks/_page.svelte-CY4SZM-i.js.map +1 -0
- package/build/server/chunks/{_page.svelte-Tl1k8pGd.js → _page.svelte-Cwut2PVb.js} +16 -16
- package/build/server/chunks/_page.svelte-Cwut2PVb.js.map +1 -0
- package/build/server/chunks/{_page.svelte-BaDwHJpC.js → _page.svelte-DbV3HGn5.js} +3 -4
- package/build/server/chunks/_page.svelte-DbV3HGn5.js.map +1 -0
- package/build/server/chunks/{_page.svelte-Ch8DnIjK.js → _page.svelte-DdmEn1df.js} +114 -139
- package/build/server/chunks/_page.svelte-DdmEn1df.js.map +1 -0
- package/build/server/chunks/{_page.svelte-DASkT6Tk.js → _page.svelte-DiI_KSHV.js} +16 -25
- package/build/server/chunks/_page.svelte-DiI_KSHV.js.map +1 -0
- package/build/server/chunks/{_server.ts-DviONucl.js → _server.ts-CtO28tLc.js} +2 -2
- package/build/server/chunks/{_server.ts-DviONucl.js.map → _server.ts-CtO28tLc.js.map} +1 -1
- package/build/server/chunks/{_server.ts-CUTB_pVv.js → _server.ts-D_eo_OAK.js} +2 -2
- package/build/server/chunks/{_server.ts-CUTB_pVv.js.map → _server.ts-D_eo_OAK.js.map} +1 -1
- package/build/server/chunks/{agents-context-DJAK2Ml6.js → agents-context-rV2narXG.js} +2 -2
- package/build/server/chunks/agents-context-rV2narXG.js.map +1 -0
- package/build/server/chunks/{client-tqD_VlIn.js → client-DzvEkq51.js} +14 -2
- package/build/server/chunks/client-DzvEkq51.js.map +1 -0
- package/build/server/chunks/{edit-workspace-context-BQXwYkgE.js → edit-workspace-context-B1nYQ5hD.js} +2 -3
- package/build/server/chunks/edit-workspace-context-B1nYQ5hD.js.map +1 -0
- package/build/server/chunks/error.svelte-DA-yulF5.js +15 -0
- package/build/server/chunks/error.svelte-DA-yulF5.js.map +1 -0
- package/build/server/chunks/{events-Hd1jvlZp.js → events-BQ65tUJo.js} +15 -18
- package/build/server/chunks/events-BQ65tUJo.js.map +1 -0
- package/build/server/chunks/{hooks-BJphIAi-.js → hooks.universal-BJphIAi-.js} +1 -1
- package/build/server/chunks/hooks.universal-BJphIAi-.js.map +1 -0
- package/build/server/chunks/index-CSpGrMM2.js +4062 -0
- package/build/server/chunks/index-CSpGrMM2.js.map +1 -0
- package/build/server/chunks/{index-Djsj11qr.js → index-NcxaM188.js} +26 -4
- package/build/server/chunks/index-NcxaM188.js.map +1 -0
- package/build/server/chunks/{index-server-BI-Ep7Rw.js → index-server-DsYEXu5n.js} +2 -3
- package/build/server/chunks/index-server-DsYEXu5n.js.map +1 -0
- package/build/server/chunks/{index3-Cp9d5nmD.js → index2-DO4B3D-P.js} +5 -5
- package/build/server/chunks/index2-DO4B3D-P.js.map +1 -0
- package/build/server/chunks/{index-BSa6KzSq.js → index3-qVi61CNf.js} +2 -2
- package/build/server/chunks/{index-BSa6KzSq.js.map → index3-qVi61CNf.js.map} +1 -1
- package/build/server/chunks/{log-content.svelte-B3ZvaoLs.js → log-content.svelte-CfQzj-v_.js} +2 -2
- package/build/server/chunks/{log-content.svelte-B3ZvaoLs.js.map → log-content.svelte-CfQzj-v_.js.map} +1 -1
- package/build/server/chunks/root-CDJwhpIB.js +1152 -0
- package/build/server/chunks/root-CDJwhpIB.js.map +1 -0
- package/build/server/chunks/{source-selection-hOQHZ-fn.js → source-selection-eA--VEKo.js} +17 -2
- package/build/server/chunks/source-selection-eA--VEKo.js.map +1 -0
- package/build/server/chunks/state.svelte-DT7cgvTK.js +11 -0
- package/build/server/chunks/state.svelte-DT7cgvTK.js.map +1 -0
- package/build/server/index.js +2467 -2815
- package/build/server/index.js.map +1 -1
- package/build/server/manifest.js +22 -22
- package/build/server/manifest.js.map +1 -1
- package/package.json +1 -1
- package/src/backend/lib/get-agent-factories.ts +1 -1
- package/src/backend/roleplay/router.ts +14 -8
- package/src/backend/roleplay/scheduler.ts +1 -1
- package/src/backend/tests/emulate-agents.ts +1 -0
- package/build/client/_app/immutable/assets/0.DkT7Ji57.css +0 -1
- package/build/client/_app/immutable/assets/0.DkT7Ji57.css.br +0 -0
- package/build/client/_app/immutable/assets/0.DkT7Ji57.css.gz +0 -0
- package/build/client/_app/immutable/assets/ChatStepTrace.CDucuryp.css +0 -1
- package/build/client/_app/immutable/assets/ChatStepTrace.CDucuryp.css.br +0 -0
- package/build/client/_app/immutable/assets/ChatStepTrace.CDucuryp.css.gz +0 -0
- package/build/client/_app/immutable/chunks/3HVf2z3Q.js +0 -1
- package/build/client/_app/immutable/chunks/3HVf2z3Q.js.br +0 -0
- package/build/client/_app/immutable/chunks/3HVf2z3Q.js.gz +0 -0
- package/build/client/_app/immutable/chunks/8mHyIC1B.js.br +0 -0
- package/build/client/_app/immutable/chunks/8mHyIC1B.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B394X4Dm.js.br +0 -0
- package/build/client/_app/immutable/chunks/B394X4Dm.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B5CoBEt2.js +0 -1330
- package/build/client/_app/immutable/chunks/B5CoBEt2.js.br +0 -0
- package/build/client/_app/immutable/chunks/B5CoBEt2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B7r4ghJg.js +0 -1
- package/build/client/_app/immutable/chunks/B7r4ghJg.js.br +0 -2
- package/build/client/_app/immutable/chunks/B7r4ghJg.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BEJ5fU19.js +0 -1
- package/build/client/_app/immutable/chunks/BEJ5fU19.js.br +0 -0
- package/build/client/_app/immutable/chunks/BEJ5fU19.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BFchB-2I.js +0 -1
- package/build/client/_app/immutable/chunks/BFchB-2I.js.br +0 -0
- package/build/client/_app/immutable/chunks/BFchB-2I.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BRMnbBOX.js +0 -1
- package/build/client/_app/immutable/chunks/BRMnbBOX.js.br +0 -0
- package/build/client/_app/immutable/chunks/BRMnbBOX.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BUApaBEI.js +0 -1
- package/build/client/_app/immutable/chunks/BUApaBEI.js.br +0 -0
- package/build/client/_app/immutable/chunks/BUApaBEI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bb9ZigkD.js +0 -2
- package/build/client/_app/immutable/chunks/Bb9ZigkD.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bb9ZigkD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BiBGf8wR.js +0 -1
- package/build/client/_app/immutable/chunks/BiBGf8wR.js.br +0 -0
- package/build/client/_app/immutable/chunks/BiBGf8wR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bk5z628g.js +0 -1
- package/build/client/_app/immutable/chunks/Bk5z628g.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bk5z628g.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BmJonxL2.js +0 -1
- package/build/client/_app/immutable/chunks/BmJonxL2.js.br +0 -0
- package/build/client/_app/immutable/chunks/BmJonxL2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C1rQHXql.js +0 -1
- package/build/client/_app/immutable/chunks/C1rQHXql.js.br +0 -0
- package/build/client/_app/immutable/chunks/C1rQHXql.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C3cmQ-ZQ.js +0 -1
- package/build/client/_app/immutable/chunks/C3cmQ-ZQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/C3cmQ-ZQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C8-d_pGN.js +0 -11
- package/build/client/_app/immutable/chunks/C8-d_pGN.js.br +0 -0
- package/build/client/_app/immutable/chunks/C8-d_pGN.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CAnrK2Rl.js +0 -5
- package/build/client/_app/immutable/chunks/CAnrK2Rl.js.br +0 -0
- package/build/client/_app/immutable/chunks/CAnrK2Rl.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CB3MYTwM.js +0 -2
- package/build/client/_app/immutable/chunks/CB3MYTwM.js.br +0 -0
- package/build/client/_app/immutable/chunks/CB3MYTwM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CD54oo-Q.js +0 -1
- package/build/client/_app/immutable/chunks/CD54oo-Q.js.br +0 -0
- package/build/client/_app/immutable/chunks/CD54oo-Q.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CJHvtD7r.js +0 -8
- package/build/client/_app/immutable/chunks/CJHvtD7r.js.br +0 -0
- package/build/client/_app/immutable/chunks/CJHvtD7r.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CMN-Rq6J.js +0 -1
- package/build/client/_app/immutable/chunks/CMN-Rq6J.js.br +0 -0
- package/build/client/_app/immutable/chunks/CMN-Rq6J.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CWj6FrbW.js +0 -1
- package/build/client/_app/immutable/chunks/CWj6FrbW.js.br +0 -0
- package/build/client/_app/immutable/chunks/CWj6FrbW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CmatTLDp.js +0 -1
- package/build/client/_app/immutable/chunks/CmatTLDp.js.br +0 -0
- package/build/client/_app/immutable/chunks/CmatTLDp.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CnRh8Bgk.js +0 -33
- package/build/client/_app/immutable/chunks/CnRh8Bgk.js.br +0 -0
- package/build/client/_app/immutable/chunks/CnRh8Bgk.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cob_zFH5.js +0 -1
- package/build/client/_app/immutable/chunks/Cob_zFH5.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cob_zFH5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DAyj7AJo.js +0 -1
- package/build/client/_app/immutable/chunks/DAyj7AJo.js.br +0 -0
- package/build/client/_app/immutable/chunks/DAyj7AJo.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DCT4VKzQ.js +0 -1
- package/build/client/_app/immutable/chunks/DCT4VKzQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/DCT4VKzQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DJH8-Pxb.js +0 -1
- package/build/client/_app/immutable/chunks/DJH8-Pxb.js.br +0 -0
- package/build/client/_app/immutable/chunks/DJH8-Pxb.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DMtzEpj5.js +0 -2
- package/build/client/_app/immutable/chunks/DMtzEpj5.js.br +0 -0
- package/build/client/_app/immutable/chunks/DMtzEpj5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DT74mAuZ.js +0 -1
- package/build/client/_app/immutable/chunks/DT74mAuZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/DT74mAuZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DYY6aMTA.js.br +0 -0
- package/build/client/_app/immutable/chunks/DYY6aMTA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D_iTaAhh.js +0 -1
- package/build/client/_app/immutable/chunks/D_iTaAhh.js.br +0 -0
- package/build/client/_app/immutable/chunks/D_iTaAhh.js.gz +0 -0
- package/build/client/_app/immutable/chunks/hp4PFHFv.js +0 -1
- package/build/client/_app/immutable/chunks/hp4PFHFv.js.br +0 -2
- package/build/client/_app/immutable/chunks/hp4PFHFv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/rHISuZrQ.js +0 -1
- package/build/client/_app/immutable/chunks/rHISuZrQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/rHISuZrQ.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.DoUqDuhT.js +0 -2
- package/build/client/_app/immutable/entry/app.DoUqDuhT.js.br +0 -0
- package/build/client/_app/immutable/entry/app.DoUqDuhT.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.Ck039vGm.js +0 -1
- package/build/client/_app/immutable/entry/start.Ck039vGm.js.br +0 -2
- package/build/client/_app/immutable/entry/start.Ck039vGm.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.DsSFrs8j.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.DsSFrs8j.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.mgTJXkii.js +0 -1
- package/build/client/_app/immutable/nodes/1.mgTJXkii.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.mgTJXkii.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.CNlp77FZ.js +0 -5
- package/build/client/_app/immutable/nodes/10.CNlp77FZ.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.CNlp77FZ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.BVI-eEdV.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.BVI-eEdV.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.BHSGZYEC.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.BHSGZYEC.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.CZ_7M4AF.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.CZ_7M4AF.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.D96_XEm-.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.D96_XEm-.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.DJq8KQca.js +0 -1
- package/build/client/_app/immutable/nodes/15.DJq8KQca.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.DJq8KQca.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.MpUk9w5x.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.MpUk9w5x.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.CgqWHP0Y.js +0 -4
- package/build/client/_app/immutable/nodes/17.CgqWHP0Y.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.CgqWHP0Y.js.gz +0 -0
- package/build/client/_app/immutable/nodes/18.BV7lLFx7.js +0 -11
- package/build/client/_app/immutable/nodes/18.BV7lLFx7.js.br +0 -0
- package/build/client/_app/immutable/nodes/18.BV7lLFx7.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.COX-RTiI.js +0 -35
- package/build/client/_app/immutable/nodes/2.COX-RTiI.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.COX-RTiI.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.CCDyeAHw.js +0 -1
- package/build/client/_app/immutable/nodes/3.CCDyeAHw.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.CCDyeAHw.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.Cd9dzHLx.js +0 -1
- package/build/client/_app/immutable/nodes/4.Cd9dzHLx.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.Cd9dzHLx.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.BqUmLlVD.js +0 -1
- package/build/client/_app/immutable/nodes/5.BqUmLlVD.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.BqUmLlVD.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.kgmUVW62.js +0 -1
- package/build/client/_app/immutable/nodes/6.kgmUVW62.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.kgmUVW62.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.CkeP1yO3.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.CkeP1yO3.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.CaESldgZ.js +0 -2
- package/build/client/_app/immutable/nodes/8.CaESldgZ.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.CaESldgZ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.DatTKw7a.js +0 -2
- package/build/client/_app/immutable/nodes/9.DatTKw7a.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.DatTKw7a.js.gz +0 -0
- package/build/server/chunks/0-CXtwDtnz.js +0 -9
- package/build/server/chunks/0-CXtwDtnz.js.map +0 -1
- package/build/server/chunks/1-D6-Ps83z.js +0 -9
- package/build/server/chunks/10-BWSo2Lz2.js +0 -9
- package/build/server/chunks/10-BWSo2Lz2.js.map +0 -1
- package/build/server/chunks/15-D8gRuCBg.js +0 -9
- package/build/server/chunks/15-D8gRuCBg.js.map +0 -1
- package/build/server/chunks/17-CH4MLdY7.js +0 -9
- package/build/server/chunks/17-CH4MLdY7.js.map +0 -1
- package/build/server/chunks/18-C48_VgcC.js +0 -9
- package/build/server/chunks/18-C48_VgcC.js.map +0 -1
- package/build/server/chunks/2-CSbZQChk.js +0 -9
- package/build/server/chunks/2-CSbZQChk.js.map +0 -1
- package/build/server/chunks/3-DMPvS2tl.js +0 -9
- package/build/server/chunks/3-DMPvS2tl.js.map +0 -1
- package/build/server/chunks/4-DJMua_Cs.js +0 -9
- package/build/server/chunks/4-DJMua_Cs.js.map +0 -1
- package/build/server/chunks/5-QQH3C-Ro.js +0 -9
- package/build/server/chunks/5-QQH3C-Ro.js.map +0 -1
- package/build/server/chunks/6-BdiDB4wj.js +0 -9
- package/build/server/chunks/6-BdiDB4wj.js.map +0 -1
- package/build/server/chunks/8-msXmgb8C.js +0 -9
- package/build/server/chunks/8-msXmgb8C.js.map +0 -1
- package/build/server/chunks/9-BtgYu4El.js +0 -9
- package/build/server/chunks/9-BtgYu4El.js.map +0 -1
- package/build/server/chunks/AgentSidebar-DqMxRWln.js.map +0 -1
- package/build/server/chunks/Button-qfXYs6Cv.js.map +0 -1
- package/build/server/chunks/ChatStepTrace-Bvxmgz7y.js.map +0 -1
- package/build/server/chunks/ContextEditor-CsiHhmH8.js.map +0 -1
- package/build/server/chunks/Dropdown-DroDbZQ6.js.map +0 -1
- package/build/server/chunks/Icon-SOvOgynh.js.map +0 -1
- package/build/server/chunks/Input-D-7S8dEO.js.map +0 -1
- package/build/server/chunks/Modal-CBKUwUGm.js.map +0 -1
- package/build/server/chunks/Tab-DMBlstpi.js.map +0 -1
- package/build/server/chunks/_layout.svelte-B3_pVwfN.js.map +0 -1
- package/build/server/chunks/_layout.svelte-BnUNGsUV.js.map +0 -1
- package/build/server/chunks/_layout.svelte-CqwbWo_W.js.map +0 -1
- package/build/server/chunks/_layout.svelte-DuOlsMHY.js.map +0 -1
- package/build/server/chunks/_page.svelte-B8NFVmqA.js.map +0 -1
- package/build/server/chunks/_page.svelte-BB_XBfMx.js.map +0 -1
- package/build/server/chunks/_page.svelte-BaDwHJpC.js.map +0 -1
- package/build/server/chunks/_page.svelte-Ch8DnIjK.js.map +0 -1
- package/build/server/chunks/_page.svelte-DASkT6Tk.js.map +0 -1
- package/build/server/chunks/_page.svelte-Tl1k8pGd.js.map +0 -1
- package/build/server/chunks/_page.svelte-VFizsKQC.js +0 -763
- package/build/server/chunks/_page.svelte-VFizsKQC.js.map +0 -1
- package/build/server/chunks/_page.svelte-c2LBV2K4.js.map +0 -1
- package/build/server/chunks/agents-context-DJAK2Ml6.js.map +0 -1
- package/build/server/chunks/client-tqD_VlIn.js.map +0 -1
- package/build/server/chunks/context-B0vutJuA.js +0 -1819
- package/build/server/chunks/context-B0vutJuA.js.map +0 -1
- package/build/server/chunks/edit-workspace-context-BQXwYkgE.js.map +0 -1
- package/build/server/chunks/error.svelte-DZg1sSW2.js +0 -14
- package/build/server/chunks/error.svelte-DZg1sSW2.js.map +0 -1
- package/build/server/chunks/events-Hd1jvlZp.js.map +0 -1
- package/build/server/chunks/hooks-BJphIAi-.js.map +0 -1
- package/build/server/chunks/index-Djsj11qr.js.map +0 -1
- package/build/server/chunks/index-server-BI-Ep7Rw.js.map +0 -1
- package/build/server/chunks/index2-BpEbpEAf.js +0 -828
- package/build/server/chunks/index2-BpEbpEAf.js.map +0 -1
- package/build/server/chunks/index3-Cp9d5nmD.js.map +0 -1
- package/build/server/chunks/source-selection-hOQHZ-fn.js.map +0 -1
- package/build/server/chunks/state.svelte-DbqYHGBV.js +0 -10
- package/build/server/chunks/state.svelte-DbqYHGBV.js.map +0 -1
- package/build/server/chunks/utils-KcIDVAAe.js +0 -238
- package/build/server/chunks/utils-KcIDVAAe.js.map +0 -1
|
@@ -1,1819 +0,0 @@
|
|
|
1
|
-
const BROWSER = false;
|
|
2
|
-
|
|
3
|
-
var is_array = Array.isArray;
|
|
4
|
-
var index_of = Array.prototype.indexOf;
|
|
5
|
-
var array_from = Array.from;
|
|
6
|
-
var define_property = Object.defineProperty;
|
|
7
|
-
var get_descriptor = Object.getOwnPropertyDescriptor;
|
|
8
|
-
var object_prototype = Object.prototype;
|
|
9
|
-
var array_prototype = Array.prototype;
|
|
10
|
-
var get_prototype_of = Object.getPrototypeOf;
|
|
11
|
-
var is_extensible = Object.isExtensible;
|
|
12
|
-
const noop = () => {
|
|
13
|
-
};
|
|
14
|
-
function run_all(arr) {
|
|
15
|
-
for (var i = 0; i < arr.length; i++) {
|
|
16
|
-
arr[i]();
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
function deferred() {
|
|
20
|
-
var resolve;
|
|
21
|
-
var reject;
|
|
22
|
-
var promise = new Promise((res, rej) => {
|
|
23
|
-
resolve = res;
|
|
24
|
-
reject = rej;
|
|
25
|
-
});
|
|
26
|
-
return { promise, resolve, reject };
|
|
27
|
-
}
|
|
28
|
-
function fallback(value, fallback2, lazy = false) {
|
|
29
|
-
return value === void 0 ? lazy ? (
|
|
30
|
-
/** @type {() => V} */
|
|
31
|
-
fallback2()
|
|
32
|
-
) : (
|
|
33
|
-
/** @type {V} */
|
|
34
|
-
fallback2
|
|
35
|
-
) : value;
|
|
36
|
-
}
|
|
37
|
-
function equals(value) {
|
|
38
|
-
return value === this.v;
|
|
39
|
-
}
|
|
40
|
-
function safe_not_equal(a, b) {
|
|
41
|
-
return a != a ? b == b : a !== b || a !== null && typeof a === "object" || typeof a === "function";
|
|
42
|
-
}
|
|
43
|
-
function safe_equals(value) {
|
|
44
|
-
return !safe_not_equal(value, this.v);
|
|
45
|
-
}
|
|
46
|
-
const DERIVED = 1 << 1;
|
|
47
|
-
const EFFECT = 1 << 2;
|
|
48
|
-
const RENDER_EFFECT = 1 << 3;
|
|
49
|
-
const BLOCK_EFFECT = 1 << 4;
|
|
50
|
-
const BRANCH_EFFECT = 1 << 5;
|
|
51
|
-
const ROOT_EFFECT = 1 << 6;
|
|
52
|
-
const BOUNDARY_EFFECT = 1 << 7;
|
|
53
|
-
const CLEAN = 1 << 10;
|
|
54
|
-
const DIRTY = 1 << 11;
|
|
55
|
-
const MAYBE_DIRTY = 1 << 12;
|
|
56
|
-
const INERT = 1 << 13;
|
|
57
|
-
const DESTROYED = 1 << 14;
|
|
58
|
-
const EFFECT_RAN = 1 << 15;
|
|
59
|
-
const EFFECT_TRANSPARENT = 1 << 16;
|
|
60
|
-
const INSPECT_EFFECT = 1 << 17;
|
|
61
|
-
const HEAD_EFFECT = 1 << 18;
|
|
62
|
-
const EFFECT_PRESERVED = 1 << 19;
|
|
63
|
-
const USER_EFFECT = 1 << 20;
|
|
64
|
-
const UNOWNED = 1 << 8;
|
|
65
|
-
const DISCONNECTED = 1 << 9;
|
|
66
|
-
const WAS_MARKED = 1 << 15;
|
|
67
|
-
const REACTION_IS_UPDATING = 1 << 21;
|
|
68
|
-
const ASYNC = 1 << 22;
|
|
69
|
-
const ERROR_VALUE = 1 << 23;
|
|
70
|
-
const STATE_SYMBOL = Symbol("$state");
|
|
71
|
-
const LEGACY_PROPS = Symbol("legacy props");
|
|
72
|
-
const STALE_REACTION = new class StaleReactionError extends Error {
|
|
73
|
-
name = "StaleReactionError";
|
|
74
|
-
message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
|
|
75
|
-
}();
|
|
76
|
-
const COMMENT_NODE = 8;
|
|
77
|
-
function lifecycle_outside_component(name) {
|
|
78
|
-
{
|
|
79
|
-
throw new Error(`https://svelte.dev/e/lifecycle_outside_component`);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
function effect_update_depth_exceeded() {
|
|
83
|
-
{
|
|
84
|
-
throw new Error(`https://svelte.dev/e/effect_update_depth_exceeded`);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
function hydration_failed() {
|
|
88
|
-
{
|
|
89
|
-
throw new Error(`https://svelte.dev/e/hydration_failed`);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
function state_descriptors_fixed() {
|
|
93
|
-
{
|
|
94
|
-
throw new Error(`https://svelte.dev/e/state_descriptors_fixed`);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
function state_prototype_fixed() {
|
|
98
|
-
{
|
|
99
|
-
throw new Error(`https://svelte.dev/e/state_prototype_fixed`);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
function state_unsafe_mutation() {
|
|
103
|
-
{
|
|
104
|
-
throw new Error(`https://svelte.dev/e/state_unsafe_mutation`);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
function svelte_boundary_reset_onerror() {
|
|
108
|
-
{
|
|
109
|
-
throw new Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
const HYDRATION_START = "[";
|
|
113
|
-
const HYDRATION_START_ELSE = "[!";
|
|
114
|
-
const HYDRATION_END = "]";
|
|
115
|
-
const HYDRATION_ERROR = {};
|
|
116
|
-
const ELEMENT_IS_NAMESPACED = 1;
|
|
117
|
-
const ELEMENT_PRESERVE_ATTRIBUTE_CASE = 1 << 1;
|
|
118
|
-
const ELEMENT_IS_INPUT = 1 << 2;
|
|
119
|
-
const UNINITIALIZED = Symbol();
|
|
120
|
-
let tracing_mode_flag = false;
|
|
121
|
-
let component_context = null;
|
|
122
|
-
function set_component_context(context) {
|
|
123
|
-
component_context = context;
|
|
124
|
-
}
|
|
125
|
-
function push$1(props, runes = false, fn) {
|
|
126
|
-
component_context = {
|
|
127
|
-
p: component_context,
|
|
128
|
-
c: null,
|
|
129
|
-
e: null,
|
|
130
|
-
s: props,
|
|
131
|
-
x: null,
|
|
132
|
-
l: null
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
function pop$1(component) {
|
|
136
|
-
var context = (
|
|
137
|
-
/** @type {ComponentContext} */
|
|
138
|
-
component_context
|
|
139
|
-
);
|
|
140
|
-
var effects = context.e;
|
|
141
|
-
if (effects !== null) {
|
|
142
|
-
context.e = null;
|
|
143
|
-
for (var fn of effects) {
|
|
144
|
-
create_user_effect(fn);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
component_context = context.p;
|
|
148
|
-
return (
|
|
149
|
-
/** @type {T} */
|
|
150
|
-
{}
|
|
151
|
-
);
|
|
152
|
-
}
|
|
153
|
-
function is_runes() {
|
|
154
|
-
return true;
|
|
155
|
-
}
|
|
156
|
-
let micro_tasks = [];
|
|
157
|
-
function run_micro_tasks() {
|
|
158
|
-
var tasks = micro_tasks;
|
|
159
|
-
micro_tasks = [];
|
|
160
|
-
run_all(tasks);
|
|
161
|
-
}
|
|
162
|
-
function queue_micro_task(fn) {
|
|
163
|
-
if (micro_tasks.length === 0 && !is_flushing_sync) {
|
|
164
|
-
var tasks = micro_tasks;
|
|
165
|
-
queueMicrotask(() => {
|
|
166
|
-
if (tasks === micro_tasks) run_micro_tasks();
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
|
-
micro_tasks.push(fn);
|
|
170
|
-
}
|
|
171
|
-
function flush_tasks() {
|
|
172
|
-
while (micro_tasks.length > 0) {
|
|
173
|
-
run_micro_tasks();
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
const adjustments = /* @__PURE__ */ new WeakMap();
|
|
177
|
-
function handle_error(error) {
|
|
178
|
-
var effect = active_effect;
|
|
179
|
-
if (effect === null) {
|
|
180
|
-
active_reaction.f |= ERROR_VALUE;
|
|
181
|
-
return error;
|
|
182
|
-
}
|
|
183
|
-
if ((effect.f & EFFECT_RAN) === 0) {
|
|
184
|
-
if ((effect.f & BOUNDARY_EFFECT) === 0) {
|
|
185
|
-
if (!effect.parent && error instanceof Error) {
|
|
186
|
-
apply_adjustments(error);
|
|
187
|
-
}
|
|
188
|
-
throw error;
|
|
189
|
-
}
|
|
190
|
-
effect.b.error(error);
|
|
191
|
-
} else {
|
|
192
|
-
invoke_error_boundary(error, effect);
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
function invoke_error_boundary(error, effect) {
|
|
196
|
-
while (effect !== null) {
|
|
197
|
-
if ((effect.f & BOUNDARY_EFFECT) !== 0) {
|
|
198
|
-
try {
|
|
199
|
-
effect.b.error(error);
|
|
200
|
-
return;
|
|
201
|
-
} catch (e) {
|
|
202
|
-
error = e;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
effect = effect.parent;
|
|
206
|
-
}
|
|
207
|
-
if (error instanceof Error) {
|
|
208
|
-
apply_adjustments(error);
|
|
209
|
-
}
|
|
210
|
-
throw error;
|
|
211
|
-
}
|
|
212
|
-
function apply_adjustments(error) {
|
|
213
|
-
const adjusted = adjustments.get(error);
|
|
214
|
-
if (adjusted) {
|
|
215
|
-
define_property(error, "message", {
|
|
216
|
-
value: adjusted.message
|
|
217
|
-
});
|
|
218
|
-
define_property(error, "stack", {
|
|
219
|
-
value: adjusted.stack
|
|
220
|
-
});
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
const batches = /* @__PURE__ */ new Set();
|
|
224
|
-
let current_batch = null;
|
|
225
|
-
let batch_values = null;
|
|
226
|
-
let effect_pending_updates = /* @__PURE__ */ new Set();
|
|
227
|
-
let queued_root_effects = [];
|
|
228
|
-
let last_scheduled_effect = null;
|
|
229
|
-
let is_flushing = false;
|
|
230
|
-
let is_flushing_sync = false;
|
|
231
|
-
class Batch {
|
|
232
|
-
committed = false;
|
|
233
|
-
/**
|
|
234
|
-
* The current values of any sources that are updated in this batch
|
|
235
|
-
* They keys of this map are identical to `this.#previous`
|
|
236
|
-
* @type {Map<Source, any>}
|
|
237
|
-
*/
|
|
238
|
-
current = /* @__PURE__ */ new Map();
|
|
239
|
-
/**
|
|
240
|
-
* The values of any sources that are updated in this batch _before_ those updates took place.
|
|
241
|
-
* They keys of this map are identical to `this.#current`
|
|
242
|
-
* @type {Map<Source, any>}
|
|
243
|
-
*/
|
|
244
|
-
#previous = /* @__PURE__ */ new Map();
|
|
245
|
-
/**
|
|
246
|
-
* When the batch is committed (and the DOM is updated), we need to remove old branches
|
|
247
|
-
* and append new ones by calling the functions added inside (if/each/key/etc) blocks
|
|
248
|
-
* @type {Set<() => void>}
|
|
249
|
-
*/
|
|
250
|
-
#callbacks = /* @__PURE__ */ new Set();
|
|
251
|
-
/**
|
|
252
|
-
* The number of async effects that are currently in flight
|
|
253
|
-
*/
|
|
254
|
-
#pending = 0;
|
|
255
|
-
/**
|
|
256
|
-
* The number of async effects that are currently in flight, _not_ inside a pending boundary
|
|
257
|
-
*/
|
|
258
|
-
#blocking_pending = 0;
|
|
259
|
-
/**
|
|
260
|
-
* A deferred that resolves when the batch is committed, used with `settled()`
|
|
261
|
-
* TODO replace with Promise.withResolvers once supported widely enough
|
|
262
|
-
* @type {{ promise: Promise<void>, resolve: (value?: any) => void, reject: (reason: unknown) => void } | null}
|
|
263
|
-
*/
|
|
264
|
-
#deferred = null;
|
|
265
|
-
/**
|
|
266
|
-
* Deferred effects (which run after async work has completed) that are DIRTY
|
|
267
|
-
* @type {Effect[]}
|
|
268
|
-
*/
|
|
269
|
-
#dirty_effects = [];
|
|
270
|
-
/**
|
|
271
|
-
* Deferred effects that are MAYBE_DIRTY
|
|
272
|
-
* @type {Effect[]}
|
|
273
|
-
*/
|
|
274
|
-
#maybe_dirty_effects = [];
|
|
275
|
-
/**
|
|
276
|
-
* A set of branches that still exist, but will be destroyed when this batch
|
|
277
|
-
* is committed — we skip over these during `process`
|
|
278
|
-
* @type {Set<Effect>}
|
|
279
|
-
*/
|
|
280
|
-
skipped_effects = /* @__PURE__ */ new Set();
|
|
281
|
-
/**
|
|
282
|
-
*
|
|
283
|
-
* @param {Effect[]} root_effects
|
|
284
|
-
*/
|
|
285
|
-
process(root_effects) {
|
|
286
|
-
queued_root_effects = [];
|
|
287
|
-
this.apply();
|
|
288
|
-
var target = {
|
|
289
|
-
parent: null,
|
|
290
|
-
effect: null,
|
|
291
|
-
effects: [],
|
|
292
|
-
render_effects: [],
|
|
293
|
-
block_effects: []
|
|
294
|
-
};
|
|
295
|
-
for (const root of root_effects) {
|
|
296
|
-
this.#traverse_effect_tree(root, target);
|
|
297
|
-
}
|
|
298
|
-
this.#resolve();
|
|
299
|
-
if (this.#blocking_pending > 0) {
|
|
300
|
-
this.#defer_effects(target.effects);
|
|
301
|
-
this.#defer_effects(target.render_effects);
|
|
302
|
-
this.#defer_effects(target.block_effects);
|
|
303
|
-
} else {
|
|
304
|
-
current_batch = null;
|
|
305
|
-
flush_queued_effects(target.render_effects);
|
|
306
|
-
flush_queued_effects(target.effects);
|
|
307
|
-
}
|
|
308
|
-
batch_values = null;
|
|
309
|
-
}
|
|
310
|
-
/**
|
|
311
|
-
* Traverse the effect tree, executing effects or stashing
|
|
312
|
-
* them for later execution as appropriate
|
|
313
|
-
* @param {Effect} root
|
|
314
|
-
* @param {EffectTarget} target
|
|
315
|
-
*/
|
|
316
|
-
#traverse_effect_tree(root, target) {
|
|
317
|
-
root.f ^= CLEAN;
|
|
318
|
-
var effect = root.first;
|
|
319
|
-
while (effect !== null) {
|
|
320
|
-
var flags = effect.f;
|
|
321
|
-
var is_branch = (flags & (BRANCH_EFFECT | ROOT_EFFECT)) !== 0;
|
|
322
|
-
var is_skippable_branch = is_branch && (flags & CLEAN) !== 0;
|
|
323
|
-
var skip = is_skippable_branch || (flags & INERT) !== 0 || this.skipped_effects.has(effect);
|
|
324
|
-
if ((effect.f & BOUNDARY_EFFECT) !== 0 && effect.b?.is_pending()) {
|
|
325
|
-
target = {
|
|
326
|
-
parent: target,
|
|
327
|
-
effect,
|
|
328
|
-
effects: [],
|
|
329
|
-
render_effects: [],
|
|
330
|
-
block_effects: []
|
|
331
|
-
};
|
|
332
|
-
}
|
|
333
|
-
if (!skip && effect.fn !== null) {
|
|
334
|
-
if (is_branch) {
|
|
335
|
-
effect.f ^= CLEAN;
|
|
336
|
-
} else if ((flags & EFFECT) !== 0) {
|
|
337
|
-
target.effects.push(effect);
|
|
338
|
-
} else if (is_dirty(effect)) {
|
|
339
|
-
if ((effect.f & BLOCK_EFFECT) !== 0) target.block_effects.push(effect);
|
|
340
|
-
update_effect(effect);
|
|
341
|
-
}
|
|
342
|
-
var child = effect.first;
|
|
343
|
-
if (child !== null) {
|
|
344
|
-
effect = child;
|
|
345
|
-
continue;
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
var parent = effect.parent;
|
|
349
|
-
effect = effect.next;
|
|
350
|
-
while (effect === null && parent !== null) {
|
|
351
|
-
if (parent === target.effect) {
|
|
352
|
-
this.#defer_effects(target.effects);
|
|
353
|
-
this.#defer_effects(target.render_effects);
|
|
354
|
-
this.#defer_effects(target.block_effects);
|
|
355
|
-
target = /** @type {EffectTarget} */
|
|
356
|
-
target.parent;
|
|
357
|
-
}
|
|
358
|
-
effect = parent.next;
|
|
359
|
-
parent = parent.parent;
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
/**
|
|
364
|
-
* @param {Effect[]} effects
|
|
365
|
-
*/
|
|
366
|
-
#defer_effects(effects) {
|
|
367
|
-
for (const e of effects) {
|
|
368
|
-
const target = (e.f & DIRTY) !== 0 ? this.#dirty_effects : this.#maybe_dirty_effects;
|
|
369
|
-
target.push(e);
|
|
370
|
-
set_signal_status(e, CLEAN);
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
/**
|
|
374
|
-
* Associate a change to a given source with the current
|
|
375
|
-
* batch, noting its previous and current values
|
|
376
|
-
* @param {Source} source
|
|
377
|
-
* @param {any} value
|
|
378
|
-
*/
|
|
379
|
-
capture(source2, value) {
|
|
380
|
-
if (!this.#previous.has(source2)) {
|
|
381
|
-
this.#previous.set(source2, value);
|
|
382
|
-
}
|
|
383
|
-
this.current.set(source2, source2.v);
|
|
384
|
-
batch_values?.set(source2, source2.v);
|
|
385
|
-
}
|
|
386
|
-
activate() {
|
|
387
|
-
current_batch = this;
|
|
388
|
-
}
|
|
389
|
-
deactivate() {
|
|
390
|
-
current_batch = null;
|
|
391
|
-
batch_values = null;
|
|
392
|
-
}
|
|
393
|
-
flush() {
|
|
394
|
-
if (queued_root_effects.length > 0) {
|
|
395
|
-
this.activate();
|
|
396
|
-
flush_effects();
|
|
397
|
-
if (current_batch !== null && current_batch !== this) {
|
|
398
|
-
return;
|
|
399
|
-
}
|
|
400
|
-
} else {
|
|
401
|
-
this.#resolve();
|
|
402
|
-
}
|
|
403
|
-
this.deactivate();
|
|
404
|
-
for (const update of effect_pending_updates) {
|
|
405
|
-
effect_pending_updates.delete(update);
|
|
406
|
-
update();
|
|
407
|
-
if (current_batch !== null) {
|
|
408
|
-
break;
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
#resolve() {
|
|
413
|
-
if (this.#blocking_pending === 0) {
|
|
414
|
-
for (const fn of this.#callbacks) fn();
|
|
415
|
-
this.#callbacks.clear();
|
|
416
|
-
}
|
|
417
|
-
if (this.#pending === 0) {
|
|
418
|
-
this.#commit();
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
#commit() {
|
|
422
|
-
if (batches.size > 1) {
|
|
423
|
-
this.#previous.clear();
|
|
424
|
-
var previous_batch_values = batch_values;
|
|
425
|
-
var is_earlier = true;
|
|
426
|
-
var dummy_target = {
|
|
427
|
-
parent: null,
|
|
428
|
-
effect: null,
|
|
429
|
-
effects: [],
|
|
430
|
-
render_effects: [],
|
|
431
|
-
block_effects: []
|
|
432
|
-
};
|
|
433
|
-
for (const batch of batches) {
|
|
434
|
-
if (batch === this) {
|
|
435
|
-
is_earlier = false;
|
|
436
|
-
continue;
|
|
437
|
-
}
|
|
438
|
-
const sources = [];
|
|
439
|
-
for (const [source2, value] of this.current) {
|
|
440
|
-
if (batch.current.has(source2)) {
|
|
441
|
-
if (is_earlier && value !== batch.current.get(source2)) {
|
|
442
|
-
batch.current.set(source2, value);
|
|
443
|
-
} else {
|
|
444
|
-
continue;
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
sources.push(source2);
|
|
448
|
-
}
|
|
449
|
-
if (sources.length === 0) {
|
|
450
|
-
continue;
|
|
451
|
-
}
|
|
452
|
-
const others = [...batch.current.keys()].filter((s) => !this.current.has(s));
|
|
453
|
-
if (others.length > 0) {
|
|
454
|
-
const marked = /* @__PURE__ */ new Set();
|
|
455
|
-
const checked = /* @__PURE__ */ new Map();
|
|
456
|
-
for (const source2 of sources) {
|
|
457
|
-
mark_effects(source2, others, marked, checked);
|
|
458
|
-
}
|
|
459
|
-
if (queued_root_effects.length > 0) {
|
|
460
|
-
current_batch = batch;
|
|
461
|
-
batch.apply();
|
|
462
|
-
for (const root of queued_root_effects) {
|
|
463
|
-
batch.#traverse_effect_tree(root, dummy_target);
|
|
464
|
-
}
|
|
465
|
-
queued_root_effects = [];
|
|
466
|
-
batch.deactivate();
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
current_batch = null;
|
|
471
|
-
batch_values = previous_batch_values;
|
|
472
|
-
}
|
|
473
|
-
this.committed = true;
|
|
474
|
-
batches.delete(this);
|
|
475
|
-
this.#deferred?.resolve();
|
|
476
|
-
}
|
|
477
|
-
/**
|
|
478
|
-
*
|
|
479
|
-
* @param {boolean} blocking
|
|
480
|
-
*/
|
|
481
|
-
increment(blocking) {
|
|
482
|
-
this.#pending += 1;
|
|
483
|
-
if (blocking) this.#blocking_pending += 1;
|
|
484
|
-
}
|
|
485
|
-
/**
|
|
486
|
-
*
|
|
487
|
-
* @param {boolean} blocking
|
|
488
|
-
*/
|
|
489
|
-
decrement(blocking) {
|
|
490
|
-
this.#pending -= 1;
|
|
491
|
-
if (blocking) this.#blocking_pending -= 1;
|
|
492
|
-
for (const e of this.#dirty_effects) {
|
|
493
|
-
set_signal_status(e, DIRTY);
|
|
494
|
-
schedule_effect(e);
|
|
495
|
-
}
|
|
496
|
-
for (const e of this.#maybe_dirty_effects) {
|
|
497
|
-
set_signal_status(e, MAYBE_DIRTY);
|
|
498
|
-
schedule_effect(e);
|
|
499
|
-
}
|
|
500
|
-
this.#dirty_effects = [];
|
|
501
|
-
this.#maybe_dirty_effects = [];
|
|
502
|
-
this.flush();
|
|
503
|
-
}
|
|
504
|
-
/** @param {() => void} fn */
|
|
505
|
-
add_callback(fn) {
|
|
506
|
-
this.#callbacks.add(fn);
|
|
507
|
-
}
|
|
508
|
-
settled() {
|
|
509
|
-
return (this.#deferred ??= deferred()).promise;
|
|
510
|
-
}
|
|
511
|
-
static ensure() {
|
|
512
|
-
if (current_batch === null) {
|
|
513
|
-
const batch = current_batch = new Batch();
|
|
514
|
-
batches.add(current_batch);
|
|
515
|
-
if (!is_flushing_sync) {
|
|
516
|
-
Batch.enqueue(() => {
|
|
517
|
-
if (current_batch !== batch) {
|
|
518
|
-
return;
|
|
519
|
-
}
|
|
520
|
-
batch.flush();
|
|
521
|
-
});
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
return current_batch;
|
|
525
|
-
}
|
|
526
|
-
/** @param {() => void} task */
|
|
527
|
-
static enqueue(task) {
|
|
528
|
-
queue_micro_task(task);
|
|
529
|
-
}
|
|
530
|
-
apply() {
|
|
531
|
-
return;
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
function flushSync(fn) {
|
|
535
|
-
var was_flushing_sync = is_flushing_sync;
|
|
536
|
-
is_flushing_sync = true;
|
|
537
|
-
try {
|
|
538
|
-
var result;
|
|
539
|
-
if (fn) ;
|
|
540
|
-
while (true) {
|
|
541
|
-
flush_tasks();
|
|
542
|
-
if (queued_root_effects.length === 0) {
|
|
543
|
-
current_batch?.flush();
|
|
544
|
-
if (queued_root_effects.length === 0) {
|
|
545
|
-
last_scheduled_effect = null;
|
|
546
|
-
return (
|
|
547
|
-
/** @type {T} */
|
|
548
|
-
result
|
|
549
|
-
);
|
|
550
|
-
}
|
|
551
|
-
}
|
|
552
|
-
flush_effects();
|
|
553
|
-
}
|
|
554
|
-
} finally {
|
|
555
|
-
is_flushing_sync = was_flushing_sync;
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
function flush_effects() {
|
|
559
|
-
var was_updating_effect = is_updating_effect;
|
|
560
|
-
is_flushing = true;
|
|
561
|
-
try {
|
|
562
|
-
var flush_count = 0;
|
|
563
|
-
set_is_updating_effect(true);
|
|
564
|
-
while (queued_root_effects.length > 0) {
|
|
565
|
-
var batch = Batch.ensure();
|
|
566
|
-
if (flush_count++ > 1e3) {
|
|
567
|
-
var updates, entry;
|
|
568
|
-
if (BROWSER) ;
|
|
569
|
-
infinite_loop_guard();
|
|
570
|
-
}
|
|
571
|
-
batch.process(queued_root_effects);
|
|
572
|
-
old_values.clear();
|
|
573
|
-
}
|
|
574
|
-
} finally {
|
|
575
|
-
is_flushing = false;
|
|
576
|
-
set_is_updating_effect(was_updating_effect);
|
|
577
|
-
last_scheduled_effect = null;
|
|
578
|
-
}
|
|
579
|
-
}
|
|
580
|
-
function infinite_loop_guard() {
|
|
581
|
-
try {
|
|
582
|
-
effect_update_depth_exceeded();
|
|
583
|
-
} catch (error) {
|
|
584
|
-
invoke_error_boundary(error, last_scheduled_effect);
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
let eager_block_effects = null;
|
|
588
|
-
function flush_queued_effects(effects) {
|
|
589
|
-
var length = effects.length;
|
|
590
|
-
if (length === 0) return;
|
|
591
|
-
var i = 0;
|
|
592
|
-
while (i < length) {
|
|
593
|
-
var effect = effects[i++];
|
|
594
|
-
if ((effect.f & (DESTROYED | INERT)) === 0 && is_dirty(effect)) {
|
|
595
|
-
eager_block_effects = /* @__PURE__ */ new Set();
|
|
596
|
-
update_effect(effect);
|
|
597
|
-
if (effect.deps === null && effect.first === null && effect.nodes_start === null) {
|
|
598
|
-
if (effect.teardown === null && effect.ac === null) {
|
|
599
|
-
unlink_effect(effect);
|
|
600
|
-
} else {
|
|
601
|
-
effect.fn = null;
|
|
602
|
-
}
|
|
603
|
-
}
|
|
604
|
-
if (eager_block_effects?.size > 0) {
|
|
605
|
-
old_values.clear();
|
|
606
|
-
for (const e of eager_block_effects) {
|
|
607
|
-
if ((e.f & (DESTROYED | INERT)) !== 0) continue;
|
|
608
|
-
const ordered_effects = [e];
|
|
609
|
-
let ancestor = e.parent;
|
|
610
|
-
while (ancestor !== null) {
|
|
611
|
-
if (eager_block_effects.has(ancestor)) {
|
|
612
|
-
eager_block_effects.delete(ancestor);
|
|
613
|
-
ordered_effects.push(ancestor);
|
|
614
|
-
}
|
|
615
|
-
ancestor = ancestor.parent;
|
|
616
|
-
}
|
|
617
|
-
for (let j = ordered_effects.length - 1; j >= 0; j--) {
|
|
618
|
-
const e2 = ordered_effects[j];
|
|
619
|
-
if ((e2.f & (DESTROYED | INERT)) !== 0) continue;
|
|
620
|
-
update_effect(e2);
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
eager_block_effects.clear();
|
|
624
|
-
}
|
|
625
|
-
}
|
|
626
|
-
}
|
|
627
|
-
eager_block_effects = null;
|
|
628
|
-
}
|
|
629
|
-
function mark_effects(value, sources, marked, checked) {
|
|
630
|
-
if (marked.has(value)) return;
|
|
631
|
-
marked.add(value);
|
|
632
|
-
if (value.reactions !== null) {
|
|
633
|
-
for (const reaction of value.reactions) {
|
|
634
|
-
const flags = reaction.f;
|
|
635
|
-
if ((flags & DERIVED) !== 0) {
|
|
636
|
-
mark_effects(
|
|
637
|
-
/** @type {Derived} */
|
|
638
|
-
reaction,
|
|
639
|
-
sources,
|
|
640
|
-
marked,
|
|
641
|
-
checked
|
|
642
|
-
);
|
|
643
|
-
} else if ((flags & (ASYNC | BLOCK_EFFECT)) !== 0 && (flags & DIRTY) === 0 && // we may have scheduled this one already
|
|
644
|
-
depends_on(reaction, sources, checked)) {
|
|
645
|
-
set_signal_status(reaction, DIRTY);
|
|
646
|
-
schedule_effect(
|
|
647
|
-
/** @type {Effect} */
|
|
648
|
-
reaction
|
|
649
|
-
);
|
|
650
|
-
}
|
|
651
|
-
}
|
|
652
|
-
}
|
|
653
|
-
}
|
|
654
|
-
function depends_on(reaction, sources, checked) {
|
|
655
|
-
const depends = checked.get(reaction);
|
|
656
|
-
if (depends !== void 0) return depends;
|
|
657
|
-
if (reaction.deps !== null) {
|
|
658
|
-
for (const dep of reaction.deps) {
|
|
659
|
-
if (sources.includes(dep)) {
|
|
660
|
-
return true;
|
|
661
|
-
}
|
|
662
|
-
if ((dep.f & DERIVED) !== 0 && depends_on(
|
|
663
|
-
/** @type {Derived} */
|
|
664
|
-
dep,
|
|
665
|
-
sources,
|
|
666
|
-
checked
|
|
667
|
-
)) {
|
|
668
|
-
checked.set(
|
|
669
|
-
/** @type {Derived} */
|
|
670
|
-
dep,
|
|
671
|
-
true
|
|
672
|
-
);
|
|
673
|
-
return true;
|
|
674
|
-
}
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
checked.set(reaction, false);
|
|
678
|
-
return false;
|
|
679
|
-
}
|
|
680
|
-
function schedule_effect(signal) {
|
|
681
|
-
var effect = last_scheduled_effect = signal;
|
|
682
|
-
while (effect.parent !== null) {
|
|
683
|
-
effect = effect.parent;
|
|
684
|
-
var flags = effect.f;
|
|
685
|
-
if (is_flushing && effect === active_effect && (flags & BLOCK_EFFECT) !== 0) {
|
|
686
|
-
return;
|
|
687
|
-
}
|
|
688
|
-
if ((flags & (ROOT_EFFECT | BRANCH_EFFECT)) !== 0) {
|
|
689
|
-
if ((flags & CLEAN) === 0) return;
|
|
690
|
-
effect.f ^= CLEAN;
|
|
691
|
-
}
|
|
692
|
-
}
|
|
693
|
-
queued_root_effects.push(effect);
|
|
694
|
-
}
|
|
695
|
-
function destroy_derived_effects(derived) {
|
|
696
|
-
var effects = derived.effects;
|
|
697
|
-
if (effects !== null) {
|
|
698
|
-
derived.effects = null;
|
|
699
|
-
for (var i = 0; i < effects.length; i += 1) {
|
|
700
|
-
destroy_effect(
|
|
701
|
-
/** @type {Effect} */
|
|
702
|
-
effects[i]
|
|
703
|
-
);
|
|
704
|
-
}
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
function get_derived_parent_effect(derived) {
|
|
708
|
-
var parent = derived.parent;
|
|
709
|
-
while (parent !== null) {
|
|
710
|
-
if ((parent.f & DERIVED) === 0) {
|
|
711
|
-
return (
|
|
712
|
-
/** @type {Effect} */
|
|
713
|
-
parent
|
|
714
|
-
);
|
|
715
|
-
}
|
|
716
|
-
parent = parent.parent;
|
|
717
|
-
}
|
|
718
|
-
return null;
|
|
719
|
-
}
|
|
720
|
-
function execute_derived(derived) {
|
|
721
|
-
var value;
|
|
722
|
-
var prev_active_effect = active_effect;
|
|
723
|
-
set_active_effect(get_derived_parent_effect(derived));
|
|
724
|
-
{
|
|
725
|
-
try {
|
|
726
|
-
derived.f &= ~WAS_MARKED;
|
|
727
|
-
destroy_derived_effects(derived);
|
|
728
|
-
value = update_reaction(derived);
|
|
729
|
-
} finally {
|
|
730
|
-
set_active_effect(prev_active_effect);
|
|
731
|
-
}
|
|
732
|
-
}
|
|
733
|
-
return value;
|
|
734
|
-
}
|
|
735
|
-
function update_derived(derived) {
|
|
736
|
-
var value = execute_derived(derived);
|
|
737
|
-
if (!derived.equals(value)) {
|
|
738
|
-
derived.v = value;
|
|
739
|
-
derived.wv = increment_write_version();
|
|
740
|
-
}
|
|
741
|
-
if (is_destroying_effect) {
|
|
742
|
-
return;
|
|
743
|
-
}
|
|
744
|
-
if (batch_values !== null) {
|
|
745
|
-
batch_values.set(derived, derived.v);
|
|
746
|
-
} else {
|
|
747
|
-
var status = (skip_reaction || (derived.f & UNOWNED) !== 0) && derived.deps !== null ? MAYBE_DIRTY : CLEAN;
|
|
748
|
-
set_signal_status(derived, status);
|
|
749
|
-
}
|
|
750
|
-
}
|
|
751
|
-
const old_values = /* @__PURE__ */ new Map();
|
|
752
|
-
function source(v, stack) {
|
|
753
|
-
var signal = {
|
|
754
|
-
f: 0,
|
|
755
|
-
// TODO ideally we could skip this altogether, but it causes type errors
|
|
756
|
-
v,
|
|
757
|
-
reactions: null,
|
|
758
|
-
equals,
|
|
759
|
-
rv: 0,
|
|
760
|
-
wv: 0
|
|
761
|
-
};
|
|
762
|
-
return signal;
|
|
763
|
-
}
|
|
764
|
-
// @__NO_SIDE_EFFECTS__
|
|
765
|
-
function state(v, stack) {
|
|
766
|
-
const s = source(v);
|
|
767
|
-
push_reaction_value(s);
|
|
768
|
-
return s;
|
|
769
|
-
}
|
|
770
|
-
// @__NO_SIDE_EFFECTS__
|
|
771
|
-
function mutable_source(initial_value, immutable = false, trackable = true) {
|
|
772
|
-
const s = source(initial_value);
|
|
773
|
-
if (!immutable) {
|
|
774
|
-
s.equals = safe_equals;
|
|
775
|
-
}
|
|
776
|
-
return s;
|
|
777
|
-
}
|
|
778
|
-
function set(source2, value, should_proxy = false) {
|
|
779
|
-
if (active_reaction !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
|
|
780
|
-
// to ensure we error if state is set inside an inspect effect
|
|
781
|
-
(!untracking || (active_reaction.f & INSPECT_EFFECT) !== 0) && is_runes() && (active_reaction.f & (DERIVED | BLOCK_EFFECT | ASYNC | INSPECT_EFFECT)) !== 0 && !current_sources?.includes(source2)) {
|
|
782
|
-
state_unsafe_mutation();
|
|
783
|
-
}
|
|
784
|
-
let new_value = should_proxy ? proxy(value) : value;
|
|
785
|
-
return internal_set(source2, new_value);
|
|
786
|
-
}
|
|
787
|
-
function internal_set(source2, value) {
|
|
788
|
-
if (!source2.equals(value)) {
|
|
789
|
-
var old_value = source2.v;
|
|
790
|
-
if (is_destroying_effect) {
|
|
791
|
-
old_values.set(source2, value);
|
|
792
|
-
} else {
|
|
793
|
-
old_values.set(source2, old_value);
|
|
794
|
-
}
|
|
795
|
-
source2.v = value;
|
|
796
|
-
var batch = Batch.ensure();
|
|
797
|
-
batch.capture(source2, old_value);
|
|
798
|
-
if ((source2.f & DERIVED) !== 0) {
|
|
799
|
-
if ((source2.f & DIRTY) !== 0) {
|
|
800
|
-
execute_derived(
|
|
801
|
-
/** @type {Derived} */
|
|
802
|
-
source2
|
|
803
|
-
);
|
|
804
|
-
}
|
|
805
|
-
set_signal_status(source2, (source2.f & UNOWNED) === 0 ? CLEAN : MAYBE_DIRTY);
|
|
806
|
-
}
|
|
807
|
-
source2.wv = increment_write_version();
|
|
808
|
-
mark_reactions(source2, DIRTY);
|
|
809
|
-
if (active_effect !== null && (active_effect.f & CLEAN) !== 0 && (active_effect.f & (BRANCH_EFFECT | ROOT_EFFECT)) === 0) {
|
|
810
|
-
if (untracked_writes === null) {
|
|
811
|
-
set_untracked_writes([source2]);
|
|
812
|
-
} else {
|
|
813
|
-
untracked_writes.push(source2);
|
|
814
|
-
}
|
|
815
|
-
}
|
|
816
|
-
}
|
|
817
|
-
return value;
|
|
818
|
-
}
|
|
819
|
-
function increment(source2) {
|
|
820
|
-
set(source2, source2.v + 1);
|
|
821
|
-
}
|
|
822
|
-
function mark_reactions(signal, status) {
|
|
823
|
-
var reactions = signal.reactions;
|
|
824
|
-
if (reactions === null) return;
|
|
825
|
-
var length = reactions.length;
|
|
826
|
-
for (var i = 0; i < length; i++) {
|
|
827
|
-
var reaction = reactions[i];
|
|
828
|
-
var flags = reaction.f;
|
|
829
|
-
var not_dirty = (flags & DIRTY) === 0;
|
|
830
|
-
if (not_dirty) {
|
|
831
|
-
set_signal_status(reaction, status);
|
|
832
|
-
}
|
|
833
|
-
if ((flags & DERIVED) !== 0) {
|
|
834
|
-
if ((flags & WAS_MARKED) === 0) {
|
|
835
|
-
reaction.f |= WAS_MARKED;
|
|
836
|
-
mark_reactions(
|
|
837
|
-
/** @type {Derived} */
|
|
838
|
-
reaction,
|
|
839
|
-
MAYBE_DIRTY
|
|
840
|
-
);
|
|
841
|
-
}
|
|
842
|
-
} else if (not_dirty) {
|
|
843
|
-
if ((flags & BLOCK_EFFECT) !== 0) {
|
|
844
|
-
if (eager_block_effects !== null) {
|
|
845
|
-
eager_block_effects.add(
|
|
846
|
-
/** @type {Effect} */
|
|
847
|
-
reaction
|
|
848
|
-
);
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
schedule_effect(
|
|
852
|
-
/** @type {Effect} */
|
|
853
|
-
reaction
|
|
854
|
-
);
|
|
855
|
-
}
|
|
856
|
-
}
|
|
857
|
-
}
|
|
858
|
-
function proxy(value) {
|
|
859
|
-
if (typeof value !== "object" || value === null || STATE_SYMBOL in value) {
|
|
860
|
-
return value;
|
|
861
|
-
}
|
|
862
|
-
const prototype = get_prototype_of(value);
|
|
863
|
-
if (prototype !== object_prototype && prototype !== array_prototype) {
|
|
864
|
-
return value;
|
|
865
|
-
}
|
|
866
|
-
var sources = /* @__PURE__ */ new Map();
|
|
867
|
-
var is_proxied_array = is_array(value);
|
|
868
|
-
var version = /* @__PURE__ */ state(0);
|
|
869
|
-
var parent_version = update_version;
|
|
870
|
-
var with_parent = (fn) => {
|
|
871
|
-
if (update_version === parent_version) {
|
|
872
|
-
return fn();
|
|
873
|
-
}
|
|
874
|
-
var reaction = active_reaction;
|
|
875
|
-
var version2 = update_version;
|
|
876
|
-
set_active_reaction(null);
|
|
877
|
-
set_update_version(parent_version);
|
|
878
|
-
var result = fn();
|
|
879
|
-
set_active_reaction(reaction);
|
|
880
|
-
set_update_version(version2);
|
|
881
|
-
return result;
|
|
882
|
-
};
|
|
883
|
-
if (is_proxied_array) {
|
|
884
|
-
sources.set("length", /* @__PURE__ */ state(
|
|
885
|
-
/** @type {any[]} */
|
|
886
|
-
value.length
|
|
887
|
-
));
|
|
888
|
-
}
|
|
889
|
-
return new Proxy(
|
|
890
|
-
/** @type {any} */
|
|
891
|
-
value,
|
|
892
|
-
{
|
|
893
|
-
defineProperty(_, prop, descriptor) {
|
|
894
|
-
if (!("value" in descriptor) || descriptor.configurable === false || descriptor.enumerable === false || descriptor.writable === false) {
|
|
895
|
-
state_descriptors_fixed();
|
|
896
|
-
}
|
|
897
|
-
var s = sources.get(prop);
|
|
898
|
-
if (s === void 0) {
|
|
899
|
-
s = with_parent(() => {
|
|
900
|
-
var s2 = /* @__PURE__ */ state(descriptor.value);
|
|
901
|
-
sources.set(prop, s2);
|
|
902
|
-
return s2;
|
|
903
|
-
});
|
|
904
|
-
} else {
|
|
905
|
-
set(s, descriptor.value, true);
|
|
906
|
-
}
|
|
907
|
-
return true;
|
|
908
|
-
},
|
|
909
|
-
deleteProperty(target, prop) {
|
|
910
|
-
var s = sources.get(prop);
|
|
911
|
-
if (s === void 0) {
|
|
912
|
-
if (prop in target) {
|
|
913
|
-
const s2 = with_parent(() => /* @__PURE__ */ state(UNINITIALIZED));
|
|
914
|
-
sources.set(prop, s2);
|
|
915
|
-
increment(version);
|
|
916
|
-
}
|
|
917
|
-
} else {
|
|
918
|
-
set(s, UNINITIALIZED);
|
|
919
|
-
increment(version);
|
|
920
|
-
}
|
|
921
|
-
return true;
|
|
922
|
-
},
|
|
923
|
-
get(target, prop, receiver) {
|
|
924
|
-
if (prop === STATE_SYMBOL) {
|
|
925
|
-
return value;
|
|
926
|
-
}
|
|
927
|
-
var s = sources.get(prop);
|
|
928
|
-
var exists = prop in target;
|
|
929
|
-
if (s === void 0 && (!exists || get_descriptor(target, prop)?.writable)) {
|
|
930
|
-
s = with_parent(() => {
|
|
931
|
-
var p = proxy(exists ? target[prop] : UNINITIALIZED);
|
|
932
|
-
var s2 = /* @__PURE__ */ state(p);
|
|
933
|
-
return s2;
|
|
934
|
-
});
|
|
935
|
-
sources.set(prop, s);
|
|
936
|
-
}
|
|
937
|
-
if (s !== void 0) {
|
|
938
|
-
var v = get(s);
|
|
939
|
-
return v === UNINITIALIZED ? void 0 : v;
|
|
940
|
-
}
|
|
941
|
-
return Reflect.get(target, prop, receiver);
|
|
942
|
-
},
|
|
943
|
-
getOwnPropertyDescriptor(target, prop) {
|
|
944
|
-
var descriptor = Reflect.getOwnPropertyDescriptor(target, prop);
|
|
945
|
-
if (descriptor && "value" in descriptor) {
|
|
946
|
-
var s = sources.get(prop);
|
|
947
|
-
if (s) descriptor.value = get(s);
|
|
948
|
-
} else if (descriptor === void 0) {
|
|
949
|
-
var source2 = sources.get(prop);
|
|
950
|
-
var value2 = source2?.v;
|
|
951
|
-
if (source2 !== void 0 && value2 !== UNINITIALIZED) {
|
|
952
|
-
return {
|
|
953
|
-
enumerable: true,
|
|
954
|
-
configurable: true,
|
|
955
|
-
value: value2,
|
|
956
|
-
writable: true
|
|
957
|
-
};
|
|
958
|
-
}
|
|
959
|
-
}
|
|
960
|
-
return descriptor;
|
|
961
|
-
},
|
|
962
|
-
has(target, prop) {
|
|
963
|
-
if (prop === STATE_SYMBOL) {
|
|
964
|
-
return true;
|
|
965
|
-
}
|
|
966
|
-
var s = sources.get(prop);
|
|
967
|
-
var has = s !== void 0 && s.v !== UNINITIALIZED || Reflect.has(target, prop);
|
|
968
|
-
if (s !== void 0 || active_effect !== null && (!has || get_descriptor(target, prop)?.writable)) {
|
|
969
|
-
if (s === void 0) {
|
|
970
|
-
s = with_parent(() => {
|
|
971
|
-
var p = has ? proxy(target[prop]) : UNINITIALIZED;
|
|
972
|
-
var s2 = /* @__PURE__ */ state(p);
|
|
973
|
-
return s2;
|
|
974
|
-
});
|
|
975
|
-
sources.set(prop, s);
|
|
976
|
-
}
|
|
977
|
-
var value2 = get(s);
|
|
978
|
-
if (value2 === UNINITIALIZED) {
|
|
979
|
-
return false;
|
|
980
|
-
}
|
|
981
|
-
}
|
|
982
|
-
return has;
|
|
983
|
-
},
|
|
984
|
-
set(target, prop, value2, receiver) {
|
|
985
|
-
var s = sources.get(prop);
|
|
986
|
-
var has = prop in target;
|
|
987
|
-
if (is_proxied_array && prop === "length") {
|
|
988
|
-
for (var i = value2; i < /** @type {Source<number>} */
|
|
989
|
-
s.v; i += 1) {
|
|
990
|
-
var other_s = sources.get(i + "");
|
|
991
|
-
if (other_s !== void 0) {
|
|
992
|
-
set(other_s, UNINITIALIZED);
|
|
993
|
-
} else if (i in target) {
|
|
994
|
-
other_s = with_parent(() => /* @__PURE__ */ state(UNINITIALIZED));
|
|
995
|
-
sources.set(i + "", other_s);
|
|
996
|
-
}
|
|
997
|
-
}
|
|
998
|
-
}
|
|
999
|
-
if (s === void 0) {
|
|
1000
|
-
if (!has || get_descriptor(target, prop)?.writable) {
|
|
1001
|
-
s = with_parent(() => /* @__PURE__ */ state(void 0));
|
|
1002
|
-
set(s, proxy(value2));
|
|
1003
|
-
sources.set(prop, s);
|
|
1004
|
-
}
|
|
1005
|
-
} else {
|
|
1006
|
-
has = s.v !== UNINITIALIZED;
|
|
1007
|
-
var p = with_parent(() => proxy(value2));
|
|
1008
|
-
set(s, p);
|
|
1009
|
-
}
|
|
1010
|
-
var descriptor = Reflect.getOwnPropertyDescriptor(target, prop);
|
|
1011
|
-
if (descriptor?.set) {
|
|
1012
|
-
descriptor.set.call(receiver, value2);
|
|
1013
|
-
}
|
|
1014
|
-
if (!has) {
|
|
1015
|
-
if (is_proxied_array && typeof prop === "string") {
|
|
1016
|
-
var ls = (
|
|
1017
|
-
/** @type {Source<number>} */
|
|
1018
|
-
sources.get("length")
|
|
1019
|
-
);
|
|
1020
|
-
var n = Number(prop);
|
|
1021
|
-
if (Number.isInteger(n) && n >= ls.v) {
|
|
1022
|
-
set(ls, n + 1);
|
|
1023
|
-
}
|
|
1024
|
-
}
|
|
1025
|
-
increment(version);
|
|
1026
|
-
}
|
|
1027
|
-
return true;
|
|
1028
|
-
},
|
|
1029
|
-
ownKeys(target) {
|
|
1030
|
-
get(version);
|
|
1031
|
-
var own_keys = Reflect.ownKeys(target).filter((key2) => {
|
|
1032
|
-
var source3 = sources.get(key2);
|
|
1033
|
-
return source3 === void 0 || source3.v !== UNINITIALIZED;
|
|
1034
|
-
});
|
|
1035
|
-
for (var [key, source2] of sources) {
|
|
1036
|
-
if (source2.v !== UNINITIALIZED && !(key in target)) {
|
|
1037
|
-
own_keys.push(key);
|
|
1038
|
-
}
|
|
1039
|
-
}
|
|
1040
|
-
return own_keys;
|
|
1041
|
-
},
|
|
1042
|
-
setPrototypeOf() {
|
|
1043
|
-
state_prototype_fixed();
|
|
1044
|
-
}
|
|
1045
|
-
}
|
|
1046
|
-
);
|
|
1047
|
-
}
|
|
1048
|
-
var $window;
|
|
1049
|
-
var first_child_getter;
|
|
1050
|
-
var next_sibling_getter;
|
|
1051
|
-
function init_operations() {
|
|
1052
|
-
if ($window !== void 0) {
|
|
1053
|
-
return;
|
|
1054
|
-
}
|
|
1055
|
-
$window = window;
|
|
1056
|
-
var element_prototype = Element.prototype;
|
|
1057
|
-
var node_prototype = Node.prototype;
|
|
1058
|
-
var text_prototype = Text.prototype;
|
|
1059
|
-
first_child_getter = get_descriptor(node_prototype, "firstChild").get;
|
|
1060
|
-
next_sibling_getter = get_descriptor(node_prototype, "nextSibling").get;
|
|
1061
|
-
if (is_extensible(element_prototype)) {
|
|
1062
|
-
element_prototype.__click = void 0;
|
|
1063
|
-
element_prototype.__className = void 0;
|
|
1064
|
-
element_prototype.__attributes = null;
|
|
1065
|
-
element_prototype.__style = void 0;
|
|
1066
|
-
element_prototype.__e = void 0;
|
|
1067
|
-
}
|
|
1068
|
-
if (is_extensible(text_prototype)) {
|
|
1069
|
-
text_prototype.__t = void 0;
|
|
1070
|
-
}
|
|
1071
|
-
}
|
|
1072
|
-
function create_text(value = "") {
|
|
1073
|
-
return document.createTextNode(value);
|
|
1074
|
-
}
|
|
1075
|
-
// @__NO_SIDE_EFFECTS__
|
|
1076
|
-
function get_first_child(node) {
|
|
1077
|
-
return first_child_getter.call(node);
|
|
1078
|
-
}
|
|
1079
|
-
// @__NO_SIDE_EFFECTS__
|
|
1080
|
-
function get_next_sibling(node) {
|
|
1081
|
-
return next_sibling_getter.call(node);
|
|
1082
|
-
}
|
|
1083
|
-
function clear_text_content(node) {
|
|
1084
|
-
node.textContent = "";
|
|
1085
|
-
}
|
|
1086
|
-
function without_reactive_context(fn) {
|
|
1087
|
-
var previous_reaction = active_reaction;
|
|
1088
|
-
var previous_effect = active_effect;
|
|
1089
|
-
set_active_reaction(null);
|
|
1090
|
-
set_active_effect(null);
|
|
1091
|
-
try {
|
|
1092
|
-
return fn();
|
|
1093
|
-
} finally {
|
|
1094
|
-
set_active_reaction(previous_reaction);
|
|
1095
|
-
set_active_effect(previous_effect);
|
|
1096
|
-
}
|
|
1097
|
-
}
|
|
1098
|
-
function push_effect(effect, parent_effect) {
|
|
1099
|
-
var parent_last = parent_effect.last;
|
|
1100
|
-
if (parent_last === null) {
|
|
1101
|
-
parent_effect.last = parent_effect.first = effect;
|
|
1102
|
-
} else {
|
|
1103
|
-
parent_last.next = effect;
|
|
1104
|
-
effect.prev = parent_last;
|
|
1105
|
-
parent_effect.last = effect;
|
|
1106
|
-
}
|
|
1107
|
-
}
|
|
1108
|
-
function create_effect(type, fn, sync, push2 = true) {
|
|
1109
|
-
var parent = active_effect;
|
|
1110
|
-
if (parent !== null && (parent.f & INERT) !== 0) {
|
|
1111
|
-
type |= INERT;
|
|
1112
|
-
}
|
|
1113
|
-
var effect = {
|
|
1114
|
-
ctx: component_context,
|
|
1115
|
-
deps: null,
|
|
1116
|
-
nodes_start: null,
|
|
1117
|
-
nodes_end: null,
|
|
1118
|
-
f: type | DIRTY,
|
|
1119
|
-
first: null,
|
|
1120
|
-
fn,
|
|
1121
|
-
last: null,
|
|
1122
|
-
next: null,
|
|
1123
|
-
parent,
|
|
1124
|
-
b: parent && parent.b,
|
|
1125
|
-
prev: null,
|
|
1126
|
-
teardown: null,
|
|
1127
|
-
transitions: null,
|
|
1128
|
-
wv: 0,
|
|
1129
|
-
ac: null
|
|
1130
|
-
};
|
|
1131
|
-
if (sync) {
|
|
1132
|
-
try {
|
|
1133
|
-
update_effect(effect);
|
|
1134
|
-
effect.f |= EFFECT_RAN;
|
|
1135
|
-
} catch (e2) {
|
|
1136
|
-
destroy_effect(effect);
|
|
1137
|
-
throw e2;
|
|
1138
|
-
}
|
|
1139
|
-
} else if (fn !== null) {
|
|
1140
|
-
schedule_effect(effect);
|
|
1141
|
-
}
|
|
1142
|
-
if (push2) {
|
|
1143
|
-
var e = effect;
|
|
1144
|
-
if (sync && e.deps === null && e.teardown === null && e.nodes_start === null && e.first === e.last && // either `null`, or a singular child
|
|
1145
|
-
(e.f & EFFECT_PRESERVED) === 0) {
|
|
1146
|
-
e = e.first;
|
|
1147
|
-
if ((type & BLOCK_EFFECT) !== 0 && (type & EFFECT_TRANSPARENT) !== 0 && e !== null) {
|
|
1148
|
-
e.f |= EFFECT_TRANSPARENT;
|
|
1149
|
-
}
|
|
1150
|
-
}
|
|
1151
|
-
if (e !== null) {
|
|
1152
|
-
e.parent = parent;
|
|
1153
|
-
if (parent !== null) {
|
|
1154
|
-
push_effect(e, parent);
|
|
1155
|
-
}
|
|
1156
|
-
if (active_reaction !== null && (active_reaction.f & DERIVED) !== 0 && (type & ROOT_EFFECT) === 0) {
|
|
1157
|
-
var derived = (
|
|
1158
|
-
/** @type {Derived} */
|
|
1159
|
-
active_reaction
|
|
1160
|
-
);
|
|
1161
|
-
(derived.effects ??= []).push(e);
|
|
1162
|
-
}
|
|
1163
|
-
}
|
|
1164
|
-
}
|
|
1165
|
-
return effect;
|
|
1166
|
-
}
|
|
1167
|
-
function effect_tracking() {
|
|
1168
|
-
return active_reaction !== null && !untracking;
|
|
1169
|
-
}
|
|
1170
|
-
function create_user_effect(fn) {
|
|
1171
|
-
return create_effect(EFFECT | USER_EFFECT, fn, false);
|
|
1172
|
-
}
|
|
1173
|
-
function component_root(fn) {
|
|
1174
|
-
Batch.ensure();
|
|
1175
|
-
const effect = create_effect(ROOT_EFFECT | EFFECT_PRESERVED, fn, true);
|
|
1176
|
-
return (options = {}) => {
|
|
1177
|
-
return new Promise((fulfil) => {
|
|
1178
|
-
if (options.outro) {
|
|
1179
|
-
pause_effect(effect, () => {
|
|
1180
|
-
destroy_effect(effect);
|
|
1181
|
-
fulfil(void 0);
|
|
1182
|
-
});
|
|
1183
|
-
} else {
|
|
1184
|
-
destroy_effect(effect);
|
|
1185
|
-
fulfil(void 0);
|
|
1186
|
-
}
|
|
1187
|
-
});
|
|
1188
|
-
};
|
|
1189
|
-
}
|
|
1190
|
-
function render_effect(fn, flags = 0) {
|
|
1191
|
-
return create_effect(RENDER_EFFECT | flags, fn, true);
|
|
1192
|
-
}
|
|
1193
|
-
function block(fn, flags = 0) {
|
|
1194
|
-
var effect = create_effect(BLOCK_EFFECT | flags, fn, true);
|
|
1195
|
-
return effect;
|
|
1196
|
-
}
|
|
1197
|
-
function branch(fn, push2 = true) {
|
|
1198
|
-
return create_effect(BRANCH_EFFECT | EFFECT_PRESERVED, fn, true, push2);
|
|
1199
|
-
}
|
|
1200
|
-
function execute_effect_teardown(effect) {
|
|
1201
|
-
var teardown = effect.teardown;
|
|
1202
|
-
if (teardown !== null) {
|
|
1203
|
-
const previously_destroying_effect = is_destroying_effect;
|
|
1204
|
-
const previous_reaction = active_reaction;
|
|
1205
|
-
set_is_destroying_effect(true);
|
|
1206
|
-
set_active_reaction(null);
|
|
1207
|
-
try {
|
|
1208
|
-
teardown.call(null);
|
|
1209
|
-
} finally {
|
|
1210
|
-
set_is_destroying_effect(previously_destroying_effect);
|
|
1211
|
-
set_active_reaction(previous_reaction);
|
|
1212
|
-
}
|
|
1213
|
-
}
|
|
1214
|
-
}
|
|
1215
|
-
function destroy_effect_children(signal, remove_dom = false) {
|
|
1216
|
-
var effect = signal.first;
|
|
1217
|
-
signal.first = signal.last = null;
|
|
1218
|
-
while (effect !== null) {
|
|
1219
|
-
const controller = effect.ac;
|
|
1220
|
-
if (controller !== null) {
|
|
1221
|
-
without_reactive_context(() => {
|
|
1222
|
-
controller.abort(STALE_REACTION);
|
|
1223
|
-
});
|
|
1224
|
-
}
|
|
1225
|
-
var next = effect.next;
|
|
1226
|
-
if ((effect.f & ROOT_EFFECT) !== 0) {
|
|
1227
|
-
effect.parent = null;
|
|
1228
|
-
} else {
|
|
1229
|
-
destroy_effect(effect, remove_dom);
|
|
1230
|
-
}
|
|
1231
|
-
effect = next;
|
|
1232
|
-
}
|
|
1233
|
-
}
|
|
1234
|
-
function destroy_block_effect_children(signal) {
|
|
1235
|
-
var effect = signal.first;
|
|
1236
|
-
while (effect !== null) {
|
|
1237
|
-
var next = effect.next;
|
|
1238
|
-
if ((effect.f & BRANCH_EFFECT) === 0) {
|
|
1239
|
-
destroy_effect(effect);
|
|
1240
|
-
}
|
|
1241
|
-
effect = next;
|
|
1242
|
-
}
|
|
1243
|
-
}
|
|
1244
|
-
function destroy_effect(effect, remove_dom = true) {
|
|
1245
|
-
var removed = false;
|
|
1246
|
-
if ((remove_dom || (effect.f & HEAD_EFFECT) !== 0) && effect.nodes_start !== null && effect.nodes_end !== null) {
|
|
1247
|
-
remove_effect_dom(
|
|
1248
|
-
effect.nodes_start,
|
|
1249
|
-
/** @type {TemplateNode} */
|
|
1250
|
-
effect.nodes_end
|
|
1251
|
-
);
|
|
1252
|
-
removed = true;
|
|
1253
|
-
}
|
|
1254
|
-
destroy_effect_children(effect, remove_dom && !removed);
|
|
1255
|
-
remove_reactions(effect, 0);
|
|
1256
|
-
set_signal_status(effect, DESTROYED);
|
|
1257
|
-
var transitions = effect.transitions;
|
|
1258
|
-
if (transitions !== null) {
|
|
1259
|
-
for (const transition of transitions) {
|
|
1260
|
-
transition.stop();
|
|
1261
|
-
}
|
|
1262
|
-
}
|
|
1263
|
-
execute_effect_teardown(effect);
|
|
1264
|
-
var parent = effect.parent;
|
|
1265
|
-
if (parent !== null && parent.first !== null) {
|
|
1266
|
-
unlink_effect(effect);
|
|
1267
|
-
}
|
|
1268
|
-
effect.next = effect.prev = effect.teardown = effect.ctx = effect.deps = effect.fn = effect.nodes_start = effect.nodes_end = effect.ac = null;
|
|
1269
|
-
}
|
|
1270
|
-
function remove_effect_dom(node, end) {
|
|
1271
|
-
while (node !== null) {
|
|
1272
|
-
var next = node === end ? null : (
|
|
1273
|
-
/** @type {TemplateNode} */
|
|
1274
|
-
/* @__PURE__ */ get_next_sibling(node)
|
|
1275
|
-
);
|
|
1276
|
-
node.remove();
|
|
1277
|
-
node = next;
|
|
1278
|
-
}
|
|
1279
|
-
}
|
|
1280
|
-
function unlink_effect(effect) {
|
|
1281
|
-
var parent = effect.parent;
|
|
1282
|
-
var prev = effect.prev;
|
|
1283
|
-
var next = effect.next;
|
|
1284
|
-
if (prev !== null) prev.next = next;
|
|
1285
|
-
if (next !== null) next.prev = prev;
|
|
1286
|
-
if (parent !== null) {
|
|
1287
|
-
if (parent.first === effect) parent.first = next;
|
|
1288
|
-
if (parent.last === effect) parent.last = prev;
|
|
1289
|
-
}
|
|
1290
|
-
}
|
|
1291
|
-
function pause_effect(effect, callback, destroy = true) {
|
|
1292
|
-
var transitions = [];
|
|
1293
|
-
pause_children(effect, transitions, true);
|
|
1294
|
-
run_out_transitions(transitions, () => {
|
|
1295
|
-
if (destroy) destroy_effect(effect);
|
|
1296
|
-
if (callback) callback();
|
|
1297
|
-
});
|
|
1298
|
-
}
|
|
1299
|
-
function run_out_transitions(transitions, fn) {
|
|
1300
|
-
var remaining = transitions.length;
|
|
1301
|
-
if (remaining > 0) {
|
|
1302
|
-
var check = () => --remaining || fn();
|
|
1303
|
-
for (var transition of transitions) {
|
|
1304
|
-
transition.out(check);
|
|
1305
|
-
}
|
|
1306
|
-
} else {
|
|
1307
|
-
fn();
|
|
1308
|
-
}
|
|
1309
|
-
}
|
|
1310
|
-
function pause_children(effect, transitions, local) {
|
|
1311
|
-
if ((effect.f & INERT) !== 0) return;
|
|
1312
|
-
effect.f ^= INERT;
|
|
1313
|
-
if (effect.transitions !== null) {
|
|
1314
|
-
for (const transition of effect.transitions) {
|
|
1315
|
-
if (transition.is_global || local) {
|
|
1316
|
-
transitions.push(transition);
|
|
1317
|
-
}
|
|
1318
|
-
}
|
|
1319
|
-
}
|
|
1320
|
-
var child = effect.first;
|
|
1321
|
-
while (child !== null) {
|
|
1322
|
-
var sibling = child.next;
|
|
1323
|
-
var transparent = (child.f & EFFECT_TRANSPARENT) !== 0 || // If this is a branch effect without a block effect parent,
|
|
1324
|
-
// it means the parent block effect was pruned. In that case,
|
|
1325
|
-
// transparency information was transferred to the branch effect.
|
|
1326
|
-
(child.f & BRANCH_EFFECT) !== 0 && (effect.f & BLOCK_EFFECT) !== 0;
|
|
1327
|
-
pause_children(child, transitions, transparent ? local : false);
|
|
1328
|
-
child = sibling;
|
|
1329
|
-
}
|
|
1330
|
-
}
|
|
1331
|
-
function move_effect(effect, fragment) {
|
|
1332
|
-
var node = effect.nodes_start;
|
|
1333
|
-
var end = effect.nodes_end;
|
|
1334
|
-
while (node !== null) {
|
|
1335
|
-
var next = node === end ? null : (
|
|
1336
|
-
/** @type {TemplateNode} */
|
|
1337
|
-
/* @__PURE__ */ get_next_sibling(node)
|
|
1338
|
-
);
|
|
1339
|
-
fragment.append(node);
|
|
1340
|
-
node = next;
|
|
1341
|
-
}
|
|
1342
|
-
}
|
|
1343
|
-
let is_updating_effect = false;
|
|
1344
|
-
function set_is_updating_effect(value) {
|
|
1345
|
-
is_updating_effect = value;
|
|
1346
|
-
}
|
|
1347
|
-
let is_destroying_effect = false;
|
|
1348
|
-
function set_is_destroying_effect(value) {
|
|
1349
|
-
is_destroying_effect = value;
|
|
1350
|
-
}
|
|
1351
|
-
let active_reaction = null;
|
|
1352
|
-
let untracking = false;
|
|
1353
|
-
function set_active_reaction(reaction) {
|
|
1354
|
-
active_reaction = reaction;
|
|
1355
|
-
}
|
|
1356
|
-
let active_effect = null;
|
|
1357
|
-
function set_active_effect(effect) {
|
|
1358
|
-
active_effect = effect;
|
|
1359
|
-
}
|
|
1360
|
-
let current_sources = null;
|
|
1361
|
-
function push_reaction_value(value) {
|
|
1362
|
-
if (active_reaction !== null && true) {
|
|
1363
|
-
if (current_sources === null) {
|
|
1364
|
-
current_sources = [value];
|
|
1365
|
-
} else {
|
|
1366
|
-
current_sources.push(value);
|
|
1367
|
-
}
|
|
1368
|
-
}
|
|
1369
|
-
}
|
|
1370
|
-
let new_deps = null;
|
|
1371
|
-
let skipped_deps = 0;
|
|
1372
|
-
let untracked_writes = null;
|
|
1373
|
-
function set_untracked_writes(value) {
|
|
1374
|
-
untracked_writes = value;
|
|
1375
|
-
}
|
|
1376
|
-
let write_version = 1;
|
|
1377
|
-
let read_version = 0;
|
|
1378
|
-
let update_version = read_version;
|
|
1379
|
-
function set_update_version(value) {
|
|
1380
|
-
update_version = value;
|
|
1381
|
-
}
|
|
1382
|
-
let skip_reaction = false;
|
|
1383
|
-
function increment_write_version() {
|
|
1384
|
-
return ++write_version;
|
|
1385
|
-
}
|
|
1386
|
-
function is_dirty(reaction) {
|
|
1387
|
-
var flags = reaction.f;
|
|
1388
|
-
if ((flags & DIRTY) !== 0) {
|
|
1389
|
-
return true;
|
|
1390
|
-
}
|
|
1391
|
-
if ((flags & MAYBE_DIRTY) !== 0) {
|
|
1392
|
-
var dependencies = reaction.deps;
|
|
1393
|
-
var is_unowned = (flags & UNOWNED) !== 0;
|
|
1394
|
-
if (flags & DERIVED) {
|
|
1395
|
-
reaction.f &= ~WAS_MARKED;
|
|
1396
|
-
}
|
|
1397
|
-
if (dependencies !== null) {
|
|
1398
|
-
var i;
|
|
1399
|
-
var dependency;
|
|
1400
|
-
var is_disconnected = (flags & DISCONNECTED) !== 0;
|
|
1401
|
-
var is_unowned_connected = is_unowned && active_effect !== null && !skip_reaction;
|
|
1402
|
-
var length = dependencies.length;
|
|
1403
|
-
if ((is_disconnected || is_unowned_connected) && (active_effect === null || (active_effect.f & DESTROYED) === 0)) {
|
|
1404
|
-
var derived = (
|
|
1405
|
-
/** @type {Derived} */
|
|
1406
|
-
reaction
|
|
1407
|
-
);
|
|
1408
|
-
var parent = derived.parent;
|
|
1409
|
-
for (i = 0; i < length; i++) {
|
|
1410
|
-
dependency = dependencies[i];
|
|
1411
|
-
if (is_disconnected || !dependency?.reactions?.includes(derived)) {
|
|
1412
|
-
(dependency.reactions ??= []).push(derived);
|
|
1413
|
-
}
|
|
1414
|
-
}
|
|
1415
|
-
if (is_disconnected) {
|
|
1416
|
-
derived.f ^= DISCONNECTED;
|
|
1417
|
-
}
|
|
1418
|
-
if (is_unowned_connected && parent !== null && (parent.f & UNOWNED) === 0) {
|
|
1419
|
-
derived.f ^= UNOWNED;
|
|
1420
|
-
}
|
|
1421
|
-
}
|
|
1422
|
-
for (i = 0; i < length; i++) {
|
|
1423
|
-
dependency = dependencies[i];
|
|
1424
|
-
if (is_dirty(
|
|
1425
|
-
/** @type {Derived} */
|
|
1426
|
-
dependency
|
|
1427
|
-
)) {
|
|
1428
|
-
update_derived(
|
|
1429
|
-
/** @type {Derived} */
|
|
1430
|
-
dependency
|
|
1431
|
-
);
|
|
1432
|
-
}
|
|
1433
|
-
if (dependency.wv > reaction.wv) {
|
|
1434
|
-
return true;
|
|
1435
|
-
}
|
|
1436
|
-
}
|
|
1437
|
-
}
|
|
1438
|
-
if (!is_unowned || active_effect !== null && !skip_reaction) {
|
|
1439
|
-
set_signal_status(reaction, CLEAN);
|
|
1440
|
-
}
|
|
1441
|
-
}
|
|
1442
|
-
return false;
|
|
1443
|
-
}
|
|
1444
|
-
function schedule_possible_effect_self_invalidation(signal, effect, root = true) {
|
|
1445
|
-
var reactions = signal.reactions;
|
|
1446
|
-
if (reactions === null) return;
|
|
1447
|
-
if (current_sources?.includes(signal)) {
|
|
1448
|
-
return;
|
|
1449
|
-
}
|
|
1450
|
-
for (var i = 0; i < reactions.length; i++) {
|
|
1451
|
-
var reaction = reactions[i];
|
|
1452
|
-
if ((reaction.f & DERIVED) !== 0) {
|
|
1453
|
-
schedule_possible_effect_self_invalidation(
|
|
1454
|
-
/** @type {Derived} */
|
|
1455
|
-
reaction,
|
|
1456
|
-
effect,
|
|
1457
|
-
false
|
|
1458
|
-
);
|
|
1459
|
-
} else if (effect === reaction) {
|
|
1460
|
-
if (root) {
|
|
1461
|
-
set_signal_status(reaction, DIRTY);
|
|
1462
|
-
} else if ((reaction.f & CLEAN) !== 0) {
|
|
1463
|
-
set_signal_status(reaction, MAYBE_DIRTY);
|
|
1464
|
-
}
|
|
1465
|
-
schedule_effect(
|
|
1466
|
-
/** @type {Effect} */
|
|
1467
|
-
reaction
|
|
1468
|
-
);
|
|
1469
|
-
}
|
|
1470
|
-
}
|
|
1471
|
-
}
|
|
1472
|
-
function update_reaction(reaction) {
|
|
1473
|
-
var previous_deps = new_deps;
|
|
1474
|
-
var previous_skipped_deps = skipped_deps;
|
|
1475
|
-
var previous_untracked_writes = untracked_writes;
|
|
1476
|
-
var previous_reaction = active_reaction;
|
|
1477
|
-
var previous_skip_reaction = skip_reaction;
|
|
1478
|
-
var previous_sources = current_sources;
|
|
1479
|
-
var previous_component_context = component_context;
|
|
1480
|
-
var previous_untracking = untracking;
|
|
1481
|
-
var previous_update_version = update_version;
|
|
1482
|
-
var flags = reaction.f;
|
|
1483
|
-
new_deps = /** @type {null | Value[]} */
|
|
1484
|
-
null;
|
|
1485
|
-
skipped_deps = 0;
|
|
1486
|
-
untracked_writes = null;
|
|
1487
|
-
skip_reaction = (flags & UNOWNED) !== 0 && (untracking || !is_updating_effect || active_reaction === null);
|
|
1488
|
-
active_reaction = (flags & (BRANCH_EFFECT | ROOT_EFFECT)) === 0 ? reaction : null;
|
|
1489
|
-
current_sources = null;
|
|
1490
|
-
set_component_context(reaction.ctx);
|
|
1491
|
-
untracking = false;
|
|
1492
|
-
update_version = ++read_version;
|
|
1493
|
-
if (reaction.ac !== null) {
|
|
1494
|
-
without_reactive_context(() => {
|
|
1495
|
-
reaction.ac.abort(STALE_REACTION);
|
|
1496
|
-
});
|
|
1497
|
-
reaction.ac = null;
|
|
1498
|
-
}
|
|
1499
|
-
try {
|
|
1500
|
-
reaction.f |= REACTION_IS_UPDATING;
|
|
1501
|
-
var fn = (
|
|
1502
|
-
/** @type {Function} */
|
|
1503
|
-
reaction.fn
|
|
1504
|
-
);
|
|
1505
|
-
var result = fn();
|
|
1506
|
-
var deps = reaction.deps;
|
|
1507
|
-
if (new_deps !== null) {
|
|
1508
|
-
var i;
|
|
1509
|
-
remove_reactions(reaction, skipped_deps);
|
|
1510
|
-
if (deps !== null && skipped_deps > 0) {
|
|
1511
|
-
deps.length = skipped_deps + new_deps.length;
|
|
1512
|
-
for (i = 0; i < new_deps.length; i++) {
|
|
1513
|
-
deps[skipped_deps + i] = new_deps[i];
|
|
1514
|
-
}
|
|
1515
|
-
} else {
|
|
1516
|
-
reaction.deps = deps = new_deps;
|
|
1517
|
-
}
|
|
1518
|
-
if (!skip_reaction || // Deriveds that already have reactions can cleanup, so we still add them as reactions
|
|
1519
|
-
(flags & DERIVED) !== 0 && /** @type {import('#client').Derived} */
|
|
1520
|
-
reaction.reactions !== null) {
|
|
1521
|
-
for (i = skipped_deps; i < deps.length; i++) {
|
|
1522
|
-
(deps[i].reactions ??= []).push(reaction);
|
|
1523
|
-
}
|
|
1524
|
-
}
|
|
1525
|
-
} else if (deps !== null && skipped_deps < deps.length) {
|
|
1526
|
-
remove_reactions(reaction, skipped_deps);
|
|
1527
|
-
deps.length = skipped_deps;
|
|
1528
|
-
}
|
|
1529
|
-
if (is_runes() && untracked_writes !== null && !untracking && deps !== null && (reaction.f & (DERIVED | MAYBE_DIRTY | DIRTY)) === 0) {
|
|
1530
|
-
for (i = 0; i < /** @type {Source[]} */
|
|
1531
|
-
untracked_writes.length; i++) {
|
|
1532
|
-
schedule_possible_effect_self_invalidation(
|
|
1533
|
-
untracked_writes[i],
|
|
1534
|
-
/** @type {Effect} */
|
|
1535
|
-
reaction
|
|
1536
|
-
);
|
|
1537
|
-
}
|
|
1538
|
-
}
|
|
1539
|
-
if (previous_reaction !== null && previous_reaction !== reaction) {
|
|
1540
|
-
read_version++;
|
|
1541
|
-
if (untracked_writes !== null) {
|
|
1542
|
-
if (previous_untracked_writes === null) {
|
|
1543
|
-
previous_untracked_writes = untracked_writes;
|
|
1544
|
-
} else {
|
|
1545
|
-
previous_untracked_writes.push(.../** @type {Source[]} */
|
|
1546
|
-
untracked_writes);
|
|
1547
|
-
}
|
|
1548
|
-
}
|
|
1549
|
-
}
|
|
1550
|
-
if ((reaction.f & ERROR_VALUE) !== 0) {
|
|
1551
|
-
reaction.f ^= ERROR_VALUE;
|
|
1552
|
-
}
|
|
1553
|
-
return result;
|
|
1554
|
-
} catch (error) {
|
|
1555
|
-
return handle_error(error);
|
|
1556
|
-
} finally {
|
|
1557
|
-
reaction.f ^= REACTION_IS_UPDATING;
|
|
1558
|
-
new_deps = previous_deps;
|
|
1559
|
-
skipped_deps = previous_skipped_deps;
|
|
1560
|
-
untracked_writes = previous_untracked_writes;
|
|
1561
|
-
active_reaction = previous_reaction;
|
|
1562
|
-
skip_reaction = previous_skip_reaction;
|
|
1563
|
-
current_sources = previous_sources;
|
|
1564
|
-
set_component_context(previous_component_context);
|
|
1565
|
-
untracking = previous_untracking;
|
|
1566
|
-
update_version = previous_update_version;
|
|
1567
|
-
}
|
|
1568
|
-
}
|
|
1569
|
-
function remove_reaction(signal, dependency) {
|
|
1570
|
-
let reactions = dependency.reactions;
|
|
1571
|
-
if (reactions !== null) {
|
|
1572
|
-
var index = index_of.call(reactions, signal);
|
|
1573
|
-
if (index !== -1) {
|
|
1574
|
-
var new_length = reactions.length - 1;
|
|
1575
|
-
if (new_length === 0) {
|
|
1576
|
-
reactions = dependency.reactions = null;
|
|
1577
|
-
} else {
|
|
1578
|
-
reactions[index] = reactions[new_length];
|
|
1579
|
-
reactions.pop();
|
|
1580
|
-
}
|
|
1581
|
-
}
|
|
1582
|
-
}
|
|
1583
|
-
if (reactions === null && (dependency.f & DERIVED) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
1584
|
-
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
1585
|
-
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
1586
|
-
(new_deps === null || !new_deps.includes(dependency))) {
|
|
1587
|
-
set_signal_status(dependency, MAYBE_DIRTY);
|
|
1588
|
-
if ((dependency.f & (UNOWNED | DISCONNECTED)) === 0) {
|
|
1589
|
-
dependency.f ^= DISCONNECTED;
|
|
1590
|
-
}
|
|
1591
|
-
destroy_derived_effects(
|
|
1592
|
-
/** @type {Derived} **/
|
|
1593
|
-
dependency
|
|
1594
|
-
);
|
|
1595
|
-
remove_reactions(
|
|
1596
|
-
/** @type {Derived} **/
|
|
1597
|
-
dependency,
|
|
1598
|
-
0
|
|
1599
|
-
);
|
|
1600
|
-
}
|
|
1601
|
-
}
|
|
1602
|
-
function remove_reactions(signal, start_index) {
|
|
1603
|
-
var dependencies = signal.deps;
|
|
1604
|
-
if (dependencies === null) return;
|
|
1605
|
-
for (var i = start_index; i < dependencies.length; i++) {
|
|
1606
|
-
remove_reaction(signal, dependencies[i]);
|
|
1607
|
-
}
|
|
1608
|
-
}
|
|
1609
|
-
function update_effect(effect) {
|
|
1610
|
-
var flags = effect.f;
|
|
1611
|
-
if ((flags & DESTROYED) !== 0) {
|
|
1612
|
-
return;
|
|
1613
|
-
}
|
|
1614
|
-
set_signal_status(effect, CLEAN);
|
|
1615
|
-
var previous_effect = active_effect;
|
|
1616
|
-
var was_updating_effect = is_updating_effect;
|
|
1617
|
-
active_effect = effect;
|
|
1618
|
-
is_updating_effect = true;
|
|
1619
|
-
try {
|
|
1620
|
-
if ((flags & BLOCK_EFFECT) !== 0) {
|
|
1621
|
-
destroy_block_effect_children(effect);
|
|
1622
|
-
} else {
|
|
1623
|
-
destroy_effect_children(effect);
|
|
1624
|
-
}
|
|
1625
|
-
execute_effect_teardown(effect);
|
|
1626
|
-
var teardown = update_reaction(effect);
|
|
1627
|
-
effect.teardown = typeof teardown === "function" ? teardown : null;
|
|
1628
|
-
effect.wv = write_version;
|
|
1629
|
-
var dep;
|
|
1630
|
-
if (BROWSER && tracing_mode_flag && (effect.f & DIRTY) !== 0 && effect.deps !== null) ;
|
|
1631
|
-
} finally {
|
|
1632
|
-
is_updating_effect = was_updating_effect;
|
|
1633
|
-
active_effect = previous_effect;
|
|
1634
|
-
}
|
|
1635
|
-
}
|
|
1636
|
-
function get(signal) {
|
|
1637
|
-
var flags = signal.f;
|
|
1638
|
-
var is_derived = (flags & DERIVED) !== 0;
|
|
1639
|
-
if (active_reaction !== null && !untracking) {
|
|
1640
|
-
var destroyed = active_effect !== null && (active_effect.f & DESTROYED) !== 0;
|
|
1641
|
-
if (!destroyed && !current_sources?.includes(signal)) {
|
|
1642
|
-
var deps = active_reaction.deps;
|
|
1643
|
-
if ((active_reaction.f & REACTION_IS_UPDATING) !== 0) {
|
|
1644
|
-
if (signal.rv < read_version) {
|
|
1645
|
-
signal.rv = read_version;
|
|
1646
|
-
if (new_deps === null && deps !== null && deps[skipped_deps] === signal) {
|
|
1647
|
-
skipped_deps++;
|
|
1648
|
-
} else if (new_deps === null) {
|
|
1649
|
-
new_deps = [signal];
|
|
1650
|
-
} else if (!skip_reaction || !new_deps.includes(signal)) {
|
|
1651
|
-
new_deps.push(signal);
|
|
1652
|
-
}
|
|
1653
|
-
}
|
|
1654
|
-
} else {
|
|
1655
|
-
(active_reaction.deps ??= []).push(signal);
|
|
1656
|
-
var reactions = signal.reactions;
|
|
1657
|
-
if (reactions === null) {
|
|
1658
|
-
signal.reactions = [active_reaction];
|
|
1659
|
-
} else if (!reactions.includes(active_reaction)) {
|
|
1660
|
-
reactions.push(active_reaction);
|
|
1661
|
-
}
|
|
1662
|
-
}
|
|
1663
|
-
}
|
|
1664
|
-
} else if (is_derived && /** @type {Derived} */
|
|
1665
|
-
signal.deps === null && /** @type {Derived} */
|
|
1666
|
-
signal.effects === null) {
|
|
1667
|
-
var derived = (
|
|
1668
|
-
/** @type {Derived} */
|
|
1669
|
-
signal
|
|
1670
|
-
);
|
|
1671
|
-
var parent = derived.parent;
|
|
1672
|
-
if (parent !== null && (parent.f & UNOWNED) === 0) {
|
|
1673
|
-
derived.f ^= UNOWNED;
|
|
1674
|
-
}
|
|
1675
|
-
}
|
|
1676
|
-
if (is_destroying_effect) {
|
|
1677
|
-
if (old_values.has(signal)) {
|
|
1678
|
-
return old_values.get(signal);
|
|
1679
|
-
}
|
|
1680
|
-
if (is_derived) {
|
|
1681
|
-
derived = /** @type {Derived} */
|
|
1682
|
-
signal;
|
|
1683
|
-
var value = derived.v;
|
|
1684
|
-
if ((derived.f & CLEAN) === 0 && derived.reactions !== null || depends_on_old_values(derived)) {
|
|
1685
|
-
value = execute_derived(derived);
|
|
1686
|
-
}
|
|
1687
|
-
old_values.set(derived, value);
|
|
1688
|
-
return value;
|
|
1689
|
-
}
|
|
1690
|
-
} else if (is_derived) {
|
|
1691
|
-
derived = /** @type {Derived} */
|
|
1692
|
-
signal;
|
|
1693
|
-
if (batch_values?.has(derived)) {
|
|
1694
|
-
return batch_values.get(derived);
|
|
1695
|
-
}
|
|
1696
|
-
if (is_dirty(derived)) {
|
|
1697
|
-
update_derived(derived);
|
|
1698
|
-
}
|
|
1699
|
-
}
|
|
1700
|
-
if (batch_values?.has(signal)) {
|
|
1701
|
-
return batch_values.get(signal);
|
|
1702
|
-
}
|
|
1703
|
-
if ((signal.f & ERROR_VALUE) !== 0) {
|
|
1704
|
-
throw signal.v;
|
|
1705
|
-
}
|
|
1706
|
-
return signal.v;
|
|
1707
|
-
}
|
|
1708
|
-
function depends_on_old_values(derived) {
|
|
1709
|
-
if (derived.v === UNINITIALIZED) return true;
|
|
1710
|
-
if (derived.deps === null) return false;
|
|
1711
|
-
for (const dep of derived.deps) {
|
|
1712
|
-
if (old_values.has(dep)) {
|
|
1713
|
-
return true;
|
|
1714
|
-
}
|
|
1715
|
-
if ((dep.f & DERIVED) !== 0 && depends_on_old_values(
|
|
1716
|
-
/** @type {Derived} */
|
|
1717
|
-
dep
|
|
1718
|
-
)) {
|
|
1719
|
-
return true;
|
|
1720
|
-
}
|
|
1721
|
-
}
|
|
1722
|
-
return false;
|
|
1723
|
-
}
|
|
1724
|
-
function untrack(fn) {
|
|
1725
|
-
var previous_untracking = untracking;
|
|
1726
|
-
try {
|
|
1727
|
-
untracking = true;
|
|
1728
|
-
return fn();
|
|
1729
|
-
} finally {
|
|
1730
|
-
untracking = previous_untracking;
|
|
1731
|
-
}
|
|
1732
|
-
}
|
|
1733
|
-
const STATUS_MASK = -7169;
|
|
1734
|
-
function set_signal_status(signal, status) {
|
|
1735
|
-
signal.f = signal.f & STATUS_MASK | status;
|
|
1736
|
-
}
|
|
1737
|
-
const ATTR_REGEX = /[&"<]/g;
|
|
1738
|
-
const CONTENT_REGEX = /[&<]/g;
|
|
1739
|
-
function escape_html(value, is_attr) {
|
|
1740
|
-
const str = String(value ?? "");
|
|
1741
|
-
const pattern = is_attr ? ATTR_REGEX : CONTENT_REGEX;
|
|
1742
|
-
pattern.lastIndex = 0;
|
|
1743
|
-
let escaped = "";
|
|
1744
|
-
let last = 0;
|
|
1745
|
-
while (pattern.test(str)) {
|
|
1746
|
-
const i = pattern.lastIndex - 1;
|
|
1747
|
-
const ch = str[i];
|
|
1748
|
-
escaped += str.substring(last, i) + (ch === "&" ? "&" : ch === '"' ? """ : "<");
|
|
1749
|
-
last = i + 1;
|
|
1750
|
-
}
|
|
1751
|
-
return escaped + str.substring(last);
|
|
1752
|
-
}
|
|
1753
|
-
function subscribe_to_store(store, run, invalidate) {
|
|
1754
|
-
if (store == null) {
|
|
1755
|
-
run(void 0);
|
|
1756
|
-
return noop;
|
|
1757
|
-
}
|
|
1758
|
-
const unsub = untrack(
|
|
1759
|
-
() => store.subscribe(
|
|
1760
|
-
run,
|
|
1761
|
-
// @ts-expect-error
|
|
1762
|
-
invalidate
|
|
1763
|
-
)
|
|
1764
|
-
);
|
|
1765
|
-
return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;
|
|
1766
|
-
}
|
|
1767
|
-
var ssr_context = null;
|
|
1768
|
-
function set_ssr_context(v) {
|
|
1769
|
-
ssr_context = v;
|
|
1770
|
-
}
|
|
1771
|
-
function createContext() {
|
|
1772
|
-
const key = {};
|
|
1773
|
-
return [() => getContext(key), (context) => setContext(key, context)];
|
|
1774
|
-
}
|
|
1775
|
-
function getContext(key) {
|
|
1776
|
-
const context_map = get_or_init_context_map();
|
|
1777
|
-
const result = (
|
|
1778
|
-
/** @type {T} */
|
|
1779
|
-
context_map.get(key)
|
|
1780
|
-
);
|
|
1781
|
-
return result;
|
|
1782
|
-
}
|
|
1783
|
-
function setContext(key, context) {
|
|
1784
|
-
get_or_init_context_map().set(key, context);
|
|
1785
|
-
return context;
|
|
1786
|
-
}
|
|
1787
|
-
function hasContext(key) {
|
|
1788
|
-
return get_or_init_context_map().has(key);
|
|
1789
|
-
}
|
|
1790
|
-
function getAllContexts() {
|
|
1791
|
-
return get_or_init_context_map();
|
|
1792
|
-
}
|
|
1793
|
-
function get_or_init_context_map(name) {
|
|
1794
|
-
if (ssr_context === null) {
|
|
1795
|
-
lifecycle_outside_component();
|
|
1796
|
-
}
|
|
1797
|
-
return ssr_context.c ??= new Map(get_parent_context(ssr_context) || void 0);
|
|
1798
|
-
}
|
|
1799
|
-
function push(fn) {
|
|
1800
|
-
ssr_context = { p: ssr_context, c: null, r: null };
|
|
1801
|
-
}
|
|
1802
|
-
function pop() {
|
|
1803
|
-
ssr_context = /** @type {SSRContext} */
|
|
1804
|
-
ssr_context.p;
|
|
1805
|
-
}
|
|
1806
|
-
function get_parent_context(ssr_context2) {
|
|
1807
|
-
let parent = ssr_context2.p;
|
|
1808
|
-
while (parent !== null) {
|
|
1809
|
-
const context_map = parent.c;
|
|
1810
|
-
if (context_map !== null) {
|
|
1811
|
-
return context_map;
|
|
1812
|
-
}
|
|
1813
|
-
parent = parent.p;
|
|
1814
|
-
}
|
|
1815
|
-
return null;
|
|
1816
|
-
}
|
|
1817
|
-
|
|
1818
|
-
export { is_array as $, move_effect as A, Batch as B, COMMENT_NODE as C, effect_pending_updates as D, destroy_effect as E, invoke_error_boundary as F, queue_micro_task as G, HYDRATION_START as H, svelte_boundary_reset_onerror as I, effect_tracking as J, source as K, LEGACY_PROPS as L, render_effect as M, HYDRATION_END as N, HYDRATION_START_ELSE as O, untrack as P, increment as Q, push$1 as R, pop$1 as S, EFFECT_TRANSPARENT as T, EFFECT_PRESERVED as U, BOUNDARY_EFFECT as V, BROWSER as W, escape_html as X, noop as Y, safe_not_equal as Z, subscribe_to_store as _, get_first_child as a, without_reactive_context as a0, set_ssr_context as a1, ssr_context as a2, push as a3, pop as a4, STALE_REACTION as a5, ELEMENT_PRESERVE_ATTRIBUTE_CASE as a6, ELEMENT_IS_INPUT as a7, ELEMENT_IS_NAMESPACED as a8, UNINITIALIZED as a9, createContext as aa, getContext as ab, hasContext as ac, getAllContexts as ad, fallback as ae, get_next_sibling as b, HYDRATION_ERROR as c, define_property as d, clear_text_content as e, flushSync as f, get as g, hydration_failed as h, init_operations as i, array_from as j, component_root as k, create_text as l, mutable_source as m, setContext as n, internal_set as o, active_effect as p, block as q, branch as r, set as s, pause_effect as t, set_active_effect as u, set_active_reaction as v, set_component_context as w, handle_error as x, active_reaction as y, component_context as z };
|
|
1819
|
-
//# sourceMappingURL=context-B0vutJuA.js.map
|