spec-cat 0.1.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/.output/nitro.json +15 -0
- package/.output/public/_nuxt/2EtD6e53.js +1 -0
- package/.output/public/_nuxt/2UxHyX5q.js +1 -0
- package/.output/public/_nuxt/3e1v2bzS.js +1 -0
- package/.output/public/_nuxt/4A_iFExJ.js +1 -0
- package/.output/public/_nuxt/5FxpIoe_.js +1 -0
- package/.output/public/_nuxt/5X7smno1.js +1 -0
- package/.output/public/_nuxt/5i3qLPDT.js +1 -0
- package/.output/public/_nuxt/83L43bj1.js +1 -0
- package/.output/public/_nuxt/85-TOEBH.js +1 -0
- package/.output/public/_nuxt/B0m2ddpp.js +1 -0
- package/.output/public/_nuxt/B1dDrJ26.js +1 -0
- package/.output/public/_nuxt/B1yitclQ.js +1 -0
- package/.output/public/_nuxt/B2wdmh_w.js +126 -0
- package/.output/public/_nuxt/B6aJPvgy.js +1 -0
- package/.output/public/_nuxt/B7c-h3xW.js +1 -0
- package/.output/public/_nuxt/B7mTdjB0.js +1 -0
- package/.output/public/_nuxt/B93PlW-d.js +1 -0
- package/.output/public/_nuxt/BBf5iR-q.js +1 -0
- package/.output/public/_nuxt/BEDo0Tqx.js +1 -0
- package/.output/public/_nuxt/BERRCDM3.js +1 -0
- package/.output/public/_nuxt/BETggiCN.js +1 -0
- package/.output/public/_nuxt/BEwlwnbL.js +1 -0
- package/.output/public/_nuxt/BFfxhgS-.js +1 -0
- package/.output/public/_nuxt/BGHnOYBU.js +1 -0
- package/.output/public/_nuxt/BGJmEYvX.js +1 -0
- package/.output/public/_nuxt/BH7IYjvW.js +1 -0
- package/.output/public/_nuxt/BIGW1oBm.js +1 -0
- package/.output/public/_nuxt/BJDFO7_C.js +1 -0
- package/.output/public/_nuxt/BLmx8bSh.js +1 -0
- package/.output/public/_nuxt/BLtJtn59.js +1 -0
- package/.output/public/_nuxt/BM1_JUlF.js +1 -0
- package/.output/public/_nuxt/BMWR74SV.js +1 -0
- package/.output/public/_nuxt/BPQ3VLAy.js +1 -0
- package/.output/public/_nuxt/BQ8w6xss.js +1 -0
- package/.output/public/_nuxt/BR5kRUq4.js +1 -0
- package/.output/public/_nuxt/BRHolxvo.js +1 -0
- package/.output/public/_nuxt/BRZ36xJF.js +1 -0
- package/.output/public/_nuxt/BTJTHyun.js +1 -0
- package/.output/public/_nuxt/BTifaqeh.js +1 -0
- package/.output/public/_nuxt/BUOk7wkI.js +1 -0
- package/.output/public/_nuxt/BUw7H-hv.js +1 -0
- package/.output/public/_nuxt/BV7otONQ.js +1 -0
- package/.output/public/_nuxt/BVQ-GDCI.js +1 -0
- package/.output/public/_nuxt/BWvSN4gD.js +1 -0
- package/.output/public/_nuxt/BXkSAIEj.js +1 -0
- package/.output/public/_nuxt/BYV0-3_D.js +1 -0
- package/.output/public/_nuxt/BYunw83y.js +1 -0
- package/.output/public/_nuxt/BZvkOJ9d.js +1 -0
- package/.output/public/_nuxt/B_m7g4N7.js +1 -0
- package/.output/public/_nuxt/Ba13S78F.js +1 -0
- package/.output/public/_nuxt/BcOcwvcX.js +1 -0
- package/.output/public/_nuxt/BcVCzyr7.js +1 -0
- package/.output/public/_nuxt/BdImnpbu.js +1 -0
- package/.output/public/_nuxt/BdnUsdx6.js +1 -0
- package/.output/public/_nuxt/BfHTSMKl.js +1 -0
- package/.output/public/_nuxt/BfjtVDDH.js +1 -0
- package/.output/public/_nuxt/BgDCqdQA.js +1 -0
- package/.output/public/_nuxt/BhOHFoWU.js +1 -0
- package/.output/public/_nuxt/BhRPY-oY.js +1 -0
- package/.output/public/_nuxt/Bhrxn6JZ.js +1 -0
- package/.output/public/_nuxt/BkioyH1T.js +1 -0
- package/.output/public/_nuxt/Bkuqu6BP.js +1 -0
- package/.output/public/_nuxt/BmXAJ9_W.js +1 -0
- package/.output/public/_nuxt/Bmn6On1c.js +1 -0
- package/.output/public/_nuxt/Bp3cYrEr.js +1 -0
- package/.output/public/_nuxt/Bp6g37R7.js +1 -0
- package/.output/public/_nuxt/BqTXFGrv.js +1 -0
- package/.output/public/_nuxt/BqYA7rlc.js +1 -0
- package/.output/public/_nuxt/Bqlz6CoK.js +1 -0
- package/.output/public/_nuxt/Br6cN0cg.js +1 -0
- package/.output/public/_nuxt/BrzmwbiE.js +1 -0
- package/.output/public/_nuxt/BsS91CYL.js +1 -0
- package/.output/public/_nuxt/BspZqrRM.js +1 -0
- package/.output/public/_nuxt/BtCnVYZw.js +1 -0
- package/.output/public/_nuxt/BtOb2qkB.js +1 -0
- package/.output/public/_nuxt/BthQWCQV.js +1 -0
- package/.output/public/_nuxt/BtqSS_iP.js +1 -0
- package/.output/public/_nuxt/BtvRca6l.js +1 -0
- package/.output/public/_nuxt/Buea-lGh.js +1 -0
- package/.output/public/_nuxt/Bv_4Rxtq.js +1 -0
- package/.output/public/_nuxt/BvosqTnx.js +1 -0
- package/.output/public/_nuxt/BvzEVeQv.js +1 -0
- package/.output/public/_nuxt/Bw305WKR.js +1 -0
- package/.output/public/_nuxt/BwcbSlWF.js +4 -0
- package/.output/public/_nuxt/BxgE0vQu.js +1 -0
- package/.output/public/_nuxt/BzJJZx-M.js +1 -0
- package/.output/public/_nuxt/BzTr9Aqm.js +1 -0
- package/.output/public/_nuxt/C-HG3fhB.js +1 -0
- package/.output/public/_nuxt/C-SQnVFl.js +1 -0
- package/.output/public/_nuxt/C-sUppwS.js +1 -0
- package/.output/public/_nuxt/C0HS_06l.js +1 -0
- package/.output/public/_nuxt/C0hk2d4L.js +1 -0
- package/.output/public/_nuxt/C151Ov-r.js +1 -0
- package/.output/public/_nuxt/C2t-YnRu.js +1 -0
- package/.output/public/_nuxt/C39BiMTA.js +1 -0
- package/.output/public/_nuxt/C3B-1QV4.js +1 -0
- package/.output/public/_nuxt/C3Wv6jpd.js +1 -0
- package/.output/public/_nuxt/C3mMm8J8.js +1 -0
- package/.output/public/_nuxt/C47S-Tmv.js +1 -0
- package/.output/public/_nuxt/C4EeE6gA.js +1 -0
- package/.output/public/_nuxt/C4IJs8-o.js +1 -0
- package/.output/public/_nuxt/C4gqWexZ.js +1 -0
- package/.output/public/_nuxt/C5YyOfLZ.js +1 -0
- package/.output/public/_nuxt/C5wk2twv.js +1 -0
- package/.output/public/_nuxt/C7zT0LnQ.js +1 -0
- package/.output/public/_nuxt/C8M2exoo.js +1 -0
- package/.output/public/_nuxt/C8lEn-DE.js +1 -0
- package/.output/public/_nuxt/C98Dy4si.js +1 -0
- package/.output/public/_nuxt/C9XAeP06.js +1 -0
- package/.output/public/_nuxt/C9dUb6Cb.js +1 -0
- package/.output/public/_nuxt/C9oPPf7i.js +1 -0
- package/.output/public/_nuxt/C9tS-k6U.js +1 -0
- package/.output/public/_nuxt/CDVJQ6XC.js +1 -0
- package/.output/public/_nuxt/CDx5xZoG.js +1 -0
- package/.output/public/_nuxt/CEL-wOlO.js +1 -0
- package/.output/public/_nuxt/CEu0bR-o.js +1 -0
- package/.output/public/_nuxt/CF10PKvl.js +1 -0
- package/.output/public/_nuxt/CFHQjOhq.js +1 -0
- package/.output/public/_nuxt/CG6Dc4jp.js +1 -0
- package/.output/public/_nuxt/CG8Ifv2g.js +1 -0
- package/.output/public/_nuxt/CGscLIrv.js +1 -0
- package/.output/public/_nuxt/CH1njM8p.js +1 -0
- package/.output/public/_nuxt/CHLpvVh8.js +1 -0
- package/.output/public/_nuxt/CHM0blh-.js +1 -0
- package/.output/public/_nuxt/CJc9bBzg.js +1 -0
- package/.output/public/_nuxt/CKIfxQSi.js +1 -0
- package/.output/public/_nuxt/CLZrNe3w.js +1 -0
- package/.output/public/_nuxt/CLxacb5B.js +1 -0
- package/.output/public/_nuxt/CMTm3GFP.js +1 -0
- package/.output/public/_nuxt/CMjwMIkn.js +1 -0
- package/.output/public/_nuxt/CO1LY3CK.js +1 -0
- package/.output/public/_nuxt/COTT6rNZ.js +1 -0
- package/.output/public/_nuxt/COcwbKMJ.js +1 -0
- package/.output/public/_nuxt/COkxafJQ.js +1 -0
- package/.output/public/_nuxt/COt5Ahok.js +1 -0
- package/.output/public/_nuxt/CQ8jqdy-.js +1 -0
- package/.output/public/_nuxt/CS3Unz2-.js +1 -0
- package/.output/public/_nuxt/CSXwinHm.js +1 -0
- package/.output/public/_nuxt/CTRr51gU.js +1 -0
- package/.output/public/_nuxt/CVO1_9PV.js +1 -0
- package/.output/public/_nuxt/CVdnzihN.js +1 -0
- package/.output/public/_nuxt/CW8IKDeL.js +1 -0
- package/.output/public/_nuxt/CXZktZb0.js +1 -0
- package/.output/public/_nuxt/CXtECtnM.js +1 -0
- package/.output/public/_nuxt/CYsAdtH9.js +1 -0
- package/.output/public/_nuxt/CZhp0h8q.js +1 -0
- package/.output/public/_nuxt/CafNBF8u.js +1 -0
- package/.output/public/_nuxt/CbFg5uaA.js +1 -0
- package/.output/public/_nuxt/CbfX1IO0.js +1 -0
- package/.output/public/_nuxt/CeAyd5Ju.js +1 -0
- package/.output/public/_nuxt/CeZK1NFH.js +1 -0
- package/.output/public/_nuxt/CenWIFCC.js +1 -0
- package/.output/public/_nuxt/CfQXZHmo.js +1 -0
- package/.output/public/_nuxt/Cg-RD9OK.js +1 -0
- package/.output/public/_nuxt/ChMvpjG-.js +1 -0
- package/.output/public/_nuxt/Cj5Yp3dK.js +1 -0
- package/.output/public/_nuxt/CjoLj4QM.js +1 -0
- package/.output/public/_nuxt/CkByrt1z.js +1 -0
- package/.output/public/_nuxt/CkXjmgJE.js +1 -0
- package/.output/public/_nuxt/CklMAg4u.js +1 -0
- package/.output/public/_nuxt/Cl0AqbOI.js +1 -0
- package/.output/public/_nuxt/Cm3UrAx6.js +1 -0
- package/.output/public/_nuxt/CmIQRyeF.js +1 -0
- package/.output/public/_nuxt/Cmh6b_Ma.js +1 -0
- package/.output/public/_nuxt/Cn7AkR1O.js +1 -0
- package/.output/public/_nuxt/CnnebwVN.js +1 -0
- package/.output/public/_nuxt/CnnmHF94.js +1 -0
- package/.output/public/_nuxt/CnsnAmq5.js +1 -0
- package/.output/public/_nuxt/Co6uUVPk.js +1 -0
- package/.output/public/_nuxt/CoDkCxhg.js +1 -0
- package/.output/public/_nuxt/Cp-IABpG.js +1 -0
- package/.output/public/_nuxt/CpOuai2O.js +1 -0
- package/.output/public/_nuxt/Cq5zzVJU.js +1 -0
- package/.output/public/_nuxt/CquLrc37.js +1 -0
- package/.output/public/_nuxt/CsfeWuGM.js +1 -0
- package/.output/public/_nuxt/Csfq5Kiy.js +1 -0
- package/.output/public/_nuxt/CuPHTKiy.js +1 -0
- package/.output/public/_nuxt/CufHLc7y.js +1 -0
- package/.output/public/_nuxt/Cuk6v7N8.js +1 -0
- package/.output/public/_nuxt/Cvjx9yec.js +1 -0
- package/.output/public/_nuxt/CwoSXNpI.js +1 -0
- package/.output/public/_nuxt/CxGSJlkm.js +1 -0
- package/.output/public/_nuxt/CxLEBnE3.js +1 -0
- package/.output/public/_nuxt/CxbxFI8M.js +1 -0
- package/.output/public/_nuxt/CyktbL80.js +1 -0
- package/.output/public/_nuxt/CylS5w8V.js +1 -0
- package/.output/public/_nuxt/CzTSHFRz.js +1 -0
- package/.output/public/_nuxt/D-2ljcwZ.js +1 -0
- package/.output/public/_nuxt/D0YGMca9.js +1 -0
- package/.output/public/_nuxt/D0r3Knsf.js +1 -0
- package/.output/public/_nuxt/D17OF-Vu.js +1 -0
- package/.output/public/_nuxt/D1j8_8rp.js +1 -0
- package/.output/public/_nuxt/D3lLCCz7.js +1 -0
- package/.output/public/_nuxt/D4_iv3hh.js +1 -0
- package/.output/public/_nuxt/D4h5O-jR.js +1 -0
- package/.output/public/_nuxt/D5-asLiD.js +1 -0
- package/.output/public/_nuxt/D53aC0YG.js +1 -0
- package/.output/public/_nuxt/D5KoaKCx.js +1 -0
- package/.output/public/_nuxt/D7o27uSR.js +1 -0
- package/.output/public/_nuxt/D7oLnXFd.js +1 -0
- package/.output/public/_nuxt/D82EKSYY.js +1 -0
- package/.output/public/_nuxt/D87Tk5Gz.js +1 -0
- package/.output/public/_nuxt/D8_7TLub.js +1 -0
- package/.output/public/_nuxt/D93ZcfNL.js +1 -0
- package/.output/public/_nuxt/D97Zzqfu.js +1 -0
- package/.output/public/_nuxt/DAi9KRSo.js +1 -0
- package/.output/public/_nuxt/DBab5Zcv.js +153 -0
- package/.output/public/_nuxt/DEthMvLe.js +1 -0
- package/.output/public/_nuxt/DFQXde-d.js +1 -0
- package/.output/public/_nuxt/DFWUc33u.js +1 -0
- package/.output/public/_nuxt/DFXneXwc.js +1 -0
- package/.output/public/_nuxt/DGP4VlC8.js +1 -0
- package/.output/public/_nuxt/DGztddWO.js +1 -0
- package/.output/public/_nuxt/DH5Ifo-i.js +1 -0
- package/.output/public/_nuxt/DHCkPAjA.js +1 -0
- package/.output/public/_nuxt/DHJKELXO.js +1 -0
- package/.output/public/_nuxt/DHQR4-dF.js +1 -0
- package/.output/public/_nuxt/DJjDtW9f.js +1 -0
- package/.output/public/_nuxt/DM8c43g1.js +1 -0
- package/.output/public/_nuxt/DMwsHuHA.js +1 -0
- package/.output/public/_nuxt/DMzUqQB5.js +1 -0
- package/.output/public/_nuxt/DPfMkruS.js +1 -0
- package/.output/public/_nuxt/DQwYQDb2.js +1 -0
- package/.output/public/_nuxt/DQyhUUbL.js +1 -0
- package/.output/public/_nuxt/DRg8JJMk.js +1 -0
- package/.output/public/_nuxt/DRw_LuNl.js +1 -0
- package/.output/public/_nuxt/DU1UobuO.js +1 -0
- package/.output/public/_nuxt/DUszq2jm.js +1 -0
- package/.output/public/_nuxt/DV7GczEv.js +1 -0
- package/.output/public/_nuxt/DVFEvuxE.js +1 -0
- package/.output/public/_nuxt/DVMEJ2y_.js +1 -0
- package/.output/public/_nuxt/DVxCFoDh.js +1 -0
- package/.output/public/_nuxt/DWedfzmr.js +1 -0
- package/.output/public/_nuxt/DWrx1Km3.js +1 -0
- package/.output/public/_nuxt/DXbdFlpD.js +1 -0
- package/.output/public/_nuxt/DXmwc3jG.js +1 -0
- package/.output/public/_nuxt/DXvB9xmW.js +1 -0
- package/.output/public/_nuxt/DYoxhk2S.js +1 -0
- package/.output/public/_nuxt/DZf3V79B.js +1 -0
- package/.output/public/_nuxt/DZu-aV2c.js +1 -0
- package/.output/public/_nuxt/DZxFcAj9.js +1 -0
- package/.output/public/_nuxt/D_Q5rh1f.js +1 -0
- package/.output/public/_nuxt/Da5cRb03.js +1 -0
- package/.output/public/_nuxt/DcaNXYhu.js +1 -0
- package/.output/public/_nuxt/Dd19v3D-.js +1 -0
- package/.output/public/_nuxt/DdkO51Og.js +1 -0
- package/.output/public/_nuxt/Ddv68eIx.js +1 -0
- package/.output/public/_nuxt/Des-eS-w.js +1 -0
- package/.output/public/_nuxt/Df6bDoY_.js +1 -0
- package/.output/public/_nuxt/Dg5xB15N.js +1 -0
- package/.output/public/_nuxt/DhmSosst.js +1 -0
- package/.output/public/_nuxt/DkFqJrB1.js +1 -0
- package/.output/public/_nuxt/DkwncUOv.js +1 -0
- package/.output/public/_nuxt/DlAUqK2U.js +1 -0
- package/.output/public/_nuxt/DnULxvSX.js +1 -0
- package/.output/public/_nuxt/Dpen1YoG.js +1 -0
- package/.output/public/_nuxt/Dph4kLrZ.js +1 -0
- package/.output/public/_nuxt/DqQDbK_p.js +1 -0
- package/.output/public/_nuxt/DqwNpetd.js +1 -0
- package/.output/public/_nuxt/DsOJ9woJ.js +1 -0
- package/.output/public/_nuxt/Dspwwk_N.js +1 -0
- package/.output/public/_nuxt/DsumFeuD.js +1 -0
- package/.output/public/_nuxt/Dv7Oe6Be.js +1 -0
- package/.output/public/_nuxt/Dx-B1_4e.js +1 -0
- package/.output/public/_nuxt/DxNHbxmM.js +1 -0
- package/.output/public/_nuxt/DxSwrfjg.js +1 -0
- package/.output/public/_nuxt/DyxjwDmM.js +1 -0
- package/.output/public/_nuxt/Dzze3sRP.js +1 -0
- package/.output/public/_nuxt/E3gJ1_iC.js +1 -0
- package/.output/public/_nuxt/GsRaNv29.js +1 -0
- package/.output/public/_nuxt/IF9eRakj.js +1 -0
- package/.output/public/_nuxt/IeuSbFQv.js +1 -0
- package/.output/public/_nuxt/KNuzSjk0.js +1 -0
- package/.output/public/_nuxt/L9t79GZl.js +1 -0
- package/.output/public/_nuxt/MzD3tlZU.js +1 -0
- package/.output/public/_nuxt/P80f7IUj.js +1 -0
- package/.output/public/_nuxt/Pmp26Uib.js +1 -0
- package/.output/public/_nuxt/QIJgUcNo.js +1 -0
- package/.output/public/_nuxt/RNghxpo_.js +1 -0
- package/.output/public/_nuxt/TsXTqZ29.js +1 -0
- package/.output/public/_nuxt/VCDPK7BO.js +1 -0
- package/.output/public/_nuxt/VOosw3JB.js +1 -0
- package/.output/public/_nuxt/W9tJ9s81.js +1 -0
- package/.output/public/_nuxt/YqXBG_HV.js +1 -0
- package/.output/public/_nuxt/Yzrsuije.js +1 -0
- package/.output/public/_nuxt/_ykCGR6B.js +1 -0
- package/.output/public/_nuxt/bCR0ucgS.js +1 -0
- package/.output/public/_nuxt/bN70gL4F.js +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -0
- package/.output/public/_nuxt/builds/meta/21578a05-1b7e-4847-a8ff-7480800ea4a6.json +1 -0
- package/.output/public/_nuxt/default.DcjOo57q.css +1 -0
- package/.output/public/_nuxt/dwOrl1Do.js +1 -0
- package/.output/public/_nuxt/entry.CFLOfmis.css +1 -0
- package/.output/public/_nuxt/error-404.DuOyHzDc.css +1 -0
- package/.output/public/_nuxt/error-500.MhEffcqa.css +1 -0
- package/.output/public/_nuxt/fKv21gyL.js +1 -0
- package/.output/public/_nuxt/fuZLfV_i.js +1 -0
- package/.output/public/_nuxt/g9-lgVsj.js +1 -0
- package/.output/public/_nuxt/gcz8RCvz.js +1 -0
- package/.output/public/_nuxt/hJgmCMqR.js +1 -0
- package/.output/public/_nuxt/hegEt444.js +1 -0
- package/.output/public/_nuxt/k_qm7-4y.js +1 -0
- package/.output/public/_nuxt/lXgVvXCa.js +1 -0
- package/.output/public/_nuxt/m17aaUwq.js +1 -0
- package/.output/public/_nuxt/mWjccvbQ.js +1 -0
- package/.output/public/_nuxt/mjskCLCv.js +1 -0
- package/.output/public/_nuxt/n2N0HUVH.js +1 -0
- package/.output/public/_nuxt/qdsjHGoJ.js +1 -0
- package/.output/public/_nuxt/rGO070M0.js +1 -0
- package/.output/public/_nuxt/u5AG7uiY.js +1 -0
- package/.output/public/_nuxt/uYugtg8r.js +1 -0
- package/.output/public/_nuxt/vGWfd6FD.js +1 -0
- package/.output/public/_nuxt/wDzz0qaB.js +1 -0
- package/.output/public/_nuxt/yv6CvBhz.js +1 -0
- package/.output/public/app-logo.svg +1 -0
- package/.output/server/chunks/_/chat.mjs +9 -0
- package/.output/server/chunks/_/chat.mjs.map +1 -0
- package/.output/server/chunks/_/claudeProvider.mjs +159 -0
- package/.output/server/chunks/_/claudeProvider.mjs.map +1 -0
- package/.output/server/chunks/_/codexProvider.mjs +757 -0
- package/.output/server/chunks/_/codexProvider.mjs.map +1 -0
- package/.output/server/chunks/_/error-500.mjs +19 -0
- package/.output/server/chunks/_/error-500.mjs.map +1 -0
- package/.output/server/chunks/_/git.mjs +707 -0
- package/.output/server/chunks/_/git.mjs.map +1 -0
- package/.output/server/chunks/_/git2.mjs +33 -0
- package/.output/server/chunks/_/git2.mjs.map +1 -0
- package/.output/server/chunks/_/providerProcessError.mjs +119 -0
- package/.output/server/chunks/_/providerProcessError.mjs.map +1 -0
- package/.output/server/chunks/_/validateWorktree.mjs +19 -0
- package/.output/server/chunks/_/validateWorktree.mjs.map +1 -0
- package/.output/server/chunks/build/client.precomputed.mjs +4 -0
- package/.output/server/chunks/build/client.precomputed.mjs.map +1 -0
- package/.output/server/chunks/nitro/nitro.mjs +15584 -0
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -0
- package/.output/server/chunks/routes/_ws.mjs +575 -0
- package/.output/server/chunks/routes/_ws.mjs.map +1 -0
- package/.output/server/chunks/routes/api/ai/providers.get.mjs +34 -0
- package/.output/server/chunks/routes/api/ai/providers.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/auto-mode/status.get.mjs +35 -0
- package/.output/server/chunks/routes/api/auto-mode/status.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/auto-mode/toggle.post.mjs +45 -0
- package/.output/server/chunks/routes/api/auto-mode/toggle.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/chat/compare.get.mjs +70 -0
- package/.output/server/chunks/routes/api/chat/compare.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/chat/context.get.mjs +147 -0
- package/.output/server/chunks/routes/api/chat/context.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/chat/finalize.post.mjs +173 -0
- package/.output/server/chunks/routes/api/chat/finalize.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/chat/generate-commit-message.post.mjs +92 -0
- package/.output/server/chunks/routes/api/chat/generate-commit-message.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/chat/preview-sync.post.mjs +59 -0
- package/.output/server/chunks/routes/api/chat/preview-sync.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/chat/preview.delete.mjs +63 -0
- package/.output/server/chunks/routes/api/chat/preview.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/chat/preview.post.mjs +91 -0
- package/.output/server/chunks/routes/api/chat/preview.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/chat/rebase.post.mjs +109 -0
- package/.output/server/chunks/routes/api/chat/rebase.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/chat/worktree-commit.post.mjs +69 -0
- package/.output/server/chunks/routes/api/chat/worktree-commit.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/chat/worktree.delete.mjs +72 -0
- package/.output/server/chunks/routes/api/chat/worktree.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/chat/worktree.post.mjs +99 -0
- package/.output/server/chunks/routes/api/chat/worktree.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/chat.post.mjs +217 -0
- package/.output/server/chunks/routes/api/chat.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/conversations/_conversationId/archive.post.mjs +119 -0
- package/.output/server/chunks/routes/api/conversations/_conversationId/archive.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/conversations/archives/_archiveId/restore.post.mjs +125 -0
- package/.output/server/chunks/routes/api/conversations/archives/_archiveId/restore.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/conversations/archives/_archiveId_.delete.mjs +56 -0
- package/.output/server/chunks/routes/api/conversations/archives/_archiveId_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/conversations/archives.get.mjs +54 -0
- package/.output/server/chunks/routes/api/conversations/archives.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/conversations.get.mjs +33 -0
- package/.output/server/chunks/routes/api/conversations.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/conversations.post.mjs +45 -0
- package/.output/server/chunks/routes/api/conversations.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/cwd.get.mjs +34 -0
- package/.output/server/chunks/routes/api/cwd.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/branch-rename.post.mjs +91 -0
- package/.output/server/chunks/routes/api/git/branch-rename.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/branch.delete.mjs +108 -0
- package/.output/server/chunks/routes/api/git/branch.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/branches.get.mjs +115 -0
- package/.output/server/chunks/routes/api/git/branches.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/checkout.post.mjs +110 -0
- package/.output/server/chunks/routes/api/git/checkout.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/cherry-pick.post.mjs +79 -0
- package/.output/server/chunks/routes/api/git/cherry-pick.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/clean.post.mjs +65 -0
- package/.output/server/chunks/routes/api/git/clean.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/commit/_id_.get.mjs +63 -0
- package/.output/server/chunks/routes/api/git/commit/_id_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/commit.post.mjs +95 -0
- package/.output/server/chunks/routes/api/git/commit.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/diff.get.mjs +83 -0
- package/.output/server/chunks/routes/api/git/diff.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/fetch.post.mjs +82 -0
- package/.output/server/chunks/routes/api/git/fetch.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/file-diff.get.mjs +84 -0
- package/.output/server/chunks/routes/api/git/file-diff.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/graph.get.mjs +146 -0
- package/.output/server/chunks/routes/api/git/graph.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/log.get.mjs +166 -0
- package/.output/server/chunks/routes/api/git/log.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/merge-base.get.mjs +105 -0
- package/.output/server/chunks/routes/api/git/merge-base.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/merge.post.mjs +91 -0
- package/.output/server/chunks/routes/api/git/merge.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/pull.post.mjs +86 -0
- package/.output/server/chunks/routes/api/git/pull.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/push.post.mjs +91 -0
- package/.output/server/chunks/routes/api/git/push.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/rebase.post.mjs +82 -0
- package/.output/server/chunks/routes/api/git/rebase.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/remote.delete.mjs +70 -0
- package/.output/server/chunks/routes/api/git/remote.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/remote.post.mjs +76 -0
- package/.output/server/chunks/routes/api/git/remote.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/remote.put.mjs +79 -0
- package/.output/server/chunks/routes/api/git/remote.put.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/remotes.get.mjs +63 -0
- package/.output/server/chunks/routes/api/git/remotes.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/reset.post.mjs +83 -0
- package/.output/server/chunks/routes/api/git/reset.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/revert.post.mjs +76 -0
- package/.output/server/chunks/routes/api/git/revert.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/show.get.mjs +82 -0
- package/.output/server/chunks/routes/api/git/show.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/stage.post.mjs +73 -0
- package/.output/server/chunks/routes/api/git/stage.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/stash-apply.post.mjs +74 -0
- package/.output/server/chunks/routes/api/git/stash-apply.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/stash-branch.post.mjs +80 -0
- package/.output/server/chunks/routes/api/git/stash-branch.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/stash-drop.post.mjs +71 -0
- package/.output/server/chunks/routes/api/git/stash-drop.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/stash-pop.post.mjs +74 -0
- package/.output/server/chunks/routes/api/git/stash-pop.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/stash.get.mjs +62 -0
- package/.output/server/chunks/routes/api/git/stash.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/stash.post.mjs +71 -0
- package/.output/server/chunks/routes/api/git/stash.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/state.get.mjs +70 -0
- package/.output/server/chunks/routes/api/git/state.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/status.get.mjs +121 -0
- package/.output/server/chunks/routes/api/git/status.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/tag/_name_.get.mjs +70 -0
- package/.output/server/chunks/routes/api/git/tag/_name_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/tag-push.post.mjs +73 -0
- package/.output/server/chunks/routes/api/git/tag-push.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/tag.delete.mjs +76 -0
- package/.output/server/chunks/routes/api/git/tag.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/tag.post.mjs +87 -0
- package/.output/server/chunks/routes/api/git/tag.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/unstage.post.mjs +74 -0
- package/.output/server/chunks/routes/api/git/unstage.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/index.get.mjs +41 -0
- package/.output/server/chunks/routes/api/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/index.get2.mjs +168 -0
- package/.output/server/chunks/routes/api/index.get2.mjs.map +1 -0
- package/.output/server/chunks/routes/api/index.post.mjs +150 -0
- package/.output/server/chunks/routes/api/index.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/rebase/abort.post.mjs +49 -0
- package/.output/server/chunks/routes/api/rebase/abort.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/rebase/ai-resolve.post.mjs +79 -0
- package/.output/server/chunks/routes/api/rebase/ai-resolve.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/rebase/conflicts.get.mjs +69 -0
- package/.output/server/chunks/routes/api/rebase/conflicts.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/rebase/continue-sync.post.mjs +76 -0
- package/.output/server/chunks/routes/api/rebase/continue-sync.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/rebase/continue.post.mjs +136 -0
- package/.output/server/chunks/routes/api/rebase/continue.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/rebase/resolve.put.mjs +52 -0
- package/.output/server/chunks/routes/api/rebase/resolve.put.mjs.map +1 -0
- package/.output/server/chunks/routes/api/repository/status.get.mjs +132 -0
- package/.output/server/chunks/routes/api/repository/status.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/settings.get.mjs +54 -0
- package/.output/server/chunks/routes/api/settings.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/settings.post.mjs +49 -0
- package/.output/server/chunks/routes/api/settings.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/skills/_skillId/prompt.post.mjs +64 -0
- package/.output/server/chunks/routes/api/skills/_skillId/prompt.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/specs/_featureId/_...filename_.get.mjs +61 -0
- package/.output/server/chunks/routes/api/specs/_featureId/_...filename_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/specs/_featureId/_...filename_.put.mjs +65 -0
- package/.output/server/chunks/routes/api/specs/_featureId/_...filename_.put.mjs.map +1 -0
- package/.output/server/chunks/routes/api/specs/features.get.mjs +110 -0
- package/.output/server/chunks/routes/api/specs/features.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/specs/reindex.post.mjs +43 -0
- package/.output/server/chunks/routes/api/specs/reindex.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/specs/search.get.mjs +72 -0
- package/.output/server/chunks/routes/api/specs/search.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/specs/status.get.mjs +32 -0
- package/.output/server/chunks/routes/api/specs/status.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/worktrees/_name/switch.post.mjs +77 -0
- package/.output/server/chunks/routes/api/worktrees/_name/switch.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/worktrees/_name_.delete.mjs +99 -0
- package/.output/server/chunks/routes/api/worktrees/_name_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/auto-mode-ws.mjs +65 -0
- package/.output/server/chunks/routes/auto-mode-ws.mjs.map +1 -0
- package/.output/server/chunks/routes/git-watcher-ws.mjs +155 -0
- package/.output/server/chunks/routes/git-watcher-ws.mjs.map +1 -0
- package/.output/server/chunks/routes/renderer.mjs +417 -0
- package/.output/server/chunks/routes/renderer.mjs.map +1 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
- package/.output/server/index.mjs +26 -0
- package/.output/server/index.mjs.map +1 -0
- package/.output/server/node_modules/@babel/parser/lib/index.js +14582 -0
- package/.output/server/node_modules/@babel/parser/package.json +50 -0
- package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6763 -0
- package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
- package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +689 -0
- package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
- package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1413 -0
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
- package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1868 -0
- package/.output/server/node_modules/@vue/reactivity/package.json +55 -0
- package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6770 -0
- package/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
- package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1732 -0
- package/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
- package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +879 -0
- package/.output/server/node_modules/@vue/server-renderer/package.json +55 -0
- package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +604 -0
- package/.output/server/node_modules/@vue/shared/package.json +47 -0
- package/.output/server/node_modules/chokidar/handler.js +632 -0
- package/.output/server/node_modules/chokidar/index.js +822 -0
- package/.output/server/node_modules/chokidar/package.json +63 -0
- package/.output/server/node_modules/devalue/index.js +4 -0
- package/.output/server/node_modules/devalue/package.json +37 -0
- package/.output/server/node_modules/devalue/src/base64.js +110 -0
- package/.output/server/node_modules/devalue/src/constants.js +6 -0
- package/.output/server/node_modules/devalue/src/parse.js +234 -0
- package/.output/server/node_modules/devalue/src/stringify.js +265 -0
- package/.output/server/node_modules/devalue/src/uneval.js +407 -0
- package/.output/server/node_modules/devalue/src/utils.js +118 -0
- package/.output/server/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
- package/.output/server/node_modules/entities/dist/commonjs/decode.js +568 -0
- package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
- package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
- package/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
- package/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
- package/.output/server/node_modules/entities/dist/commonjs/package.json +3 -0
- package/.output/server/node_modules/entities/package.json +120 -0
- package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
- package/.output/server/node_modules/estree-walker/package.json +37 -0
- package/.output/server/node_modules/hookable/dist/index.mjs +266 -0
- package/.output/server/node_modules/hookable/package.json +52 -0
- package/.output/server/node_modules/readdirp/index.js +272 -0
- package/.output/server/node_modules/readdirp/package.json +66 -0
- package/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
- package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
- package/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
- package/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
- package/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
- package/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
- package/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
- package/.output/server/node_modules/source-map-js/lib/util.js +594 -0
- package/.output/server/node_modules/source-map-js/package.json +71 -0
- package/.output/server/node_modules/source-map-js/source-map.js +8 -0
- package/.output/server/node_modules/ufo/dist/index.mjs +645 -0
- package/.output/server/node_modules/ufo/package.json +48 -0
- package/.output/server/node_modules/unhead/dist/parser.mjs +508 -0
- package/.output/server/node_modules/unhead/dist/plugins.mjs +101 -0
- package/.output/server/node_modules/unhead/dist/server.mjs +180 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +43 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CApf5sj3.mjs +148 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CGCfDSEL.mjs +180 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CYpwL2hc.mjs +194 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CbpEuj3y.mjs +71 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +196 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.ckV6dpEQ.mjs +166 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +38 -0
- package/.output/server/node_modules/unhead/dist/utils.mjs +5 -0
- package/.output/server/node_modules/unhead/package.json +105 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
- package/.output/server/node_modules/vue/index.js +7 -0
- package/.output/server/node_modules/vue/index.mjs +1 -0
- package/.output/server/node_modules/vue/package.json +112 -0
- package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
- package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +301 -0
- package/.output/server/node_modules/vue-bundle-renderer/package.json +55 -0
- package/.output/server/node_modules/yaml/dist/compose/compose-collection.js +90 -0
- package/.output/server/node_modules/yaml/dist/compose/compose-doc.js +45 -0
- package/.output/server/node_modules/yaml/dist/compose/compose-node.js +105 -0
- package/.output/server/node_modules/yaml/dist/compose/compose-scalar.js +88 -0
- package/.output/server/node_modules/yaml/dist/compose/composer.js +222 -0
- package/.output/server/node_modules/yaml/dist/compose/resolve-block-map.js +117 -0
- package/.output/server/node_modules/yaml/dist/compose/resolve-block-scalar.js +200 -0
- package/.output/server/node_modules/yaml/dist/compose/resolve-block-seq.js +51 -0
- package/.output/server/node_modules/yaml/dist/compose/resolve-end.js +39 -0
- package/.output/server/node_modules/yaml/dist/compose/resolve-flow-collection.js +209 -0
- package/.output/server/node_modules/yaml/dist/compose/resolve-flow-scalar.js +225 -0
- package/.output/server/node_modules/yaml/dist/compose/resolve-props.js +148 -0
- package/.output/server/node_modules/yaml/dist/compose/util-contains-newline.js +36 -0
- package/.output/server/node_modules/yaml/dist/compose/util-empty-scalar-position.js +28 -0
- package/.output/server/node_modules/yaml/dist/compose/util-flow-indent-check.js +17 -0
- package/.output/server/node_modules/yaml/dist/compose/util-map-includes.js +15 -0
- package/.output/server/node_modules/yaml/dist/doc/Document.js +337 -0
- package/.output/server/node_modules/yaml/dist/doc/anchors.js +76 -0
- package/.output/server/node_modules/yaml/dist/doc/applyReviver.js +57 -0
- package/.output/server/node_modules/yaml/dist/doc/createNode.js +90 -0
- package/.output/server/node_modules/yaml/dist/doc/directives.js +178 -0
- package/.output/server/node_modules/yaml/dist/errors.js +62 -0
- package/.output/server/node_modules/yaml/dist/index.js +50 -0
- package/.output/server/node_modules/yaml/dist/log.js +19 -0
- package/.output/server/node_modules/yaml/dist/nodes/Alias.js +116 -0
- package/.output/server/node_modules/yaml/dist/nodes/Collection.js +151 -0
- package/.output/server/node_modules/yaml/dist/nodes/Node.js +40 -0
- package/.output/server/node_modules/yaml/dist/nodes/Pair.js +39 -0
- package/.output/server/node_modules/yaml/dist/nodes/Scalar.js +27 -0
- package/.output/server/node_modules/yaml/dist/nodes/YAMLMap.js +147 -0
- package/.output/server/node_modules/yaml/dist/nodes/YAMLSeq.js +115 -0
- package/.output/server/node_modules/yaml/dist/nodes/addPairToJSMap.js +65 -0
- package/.output/server/node_modules/yaml/dist/nodes/identity.js +53 -0
- package/.output/server/node_modules/yaml/dist/nodes/toJS.js +39 -0
- package/.output/server/node_modules/yaml/dist/parse/cst-scalar.js +218 -0
- package/.output/server/node_modules/yaml/dist/parse/cst-stringify.js +63 -0
- package/.output/server/node_modules/yaml/dist/parse/cst-visit.js +99 -0
- package/.output/server/node_modules/yaml/dist/parse/cst.js +112 -0
- package/.output/server/node_modules/yaml/dist/parse/lexer.js +719 -0
- package/.output/server/node_modules/yaml/dist/parse/line-counter.js +41 -0
- package/.output/server/node_modules/yaml/dist/parse/parser.js +972 -0
- package/.output/server/node_modules/yaml/dist/public-api.js +107 -0
- package/.output/server/node_modules/yaml/dist/schema/Schema.js +39 -0
- package/.output/server/node_modules/yaml/dist/schema/common/map.js +19 -0
- package/.output/server/node_modules/yaml/dist/schema/common/null.js +17 -0
- package/.output/server/node_modules/yaml/dist/schema/common/seq.js +19 -0
- package/.output/server/node_modules/yaml/dist/schema/common/string.js +16 -0
- package/.output/server/node_modules/yaml/dist/schema/core/bool.js +21 -0
- package/.output/server/node_modules/yaml/dist/schema/core/float.js +47 -0
- package/.output/server/node_modules/yaml/dist/schema/core/int.js +42 -0
- package/.output/server/node_modules/yaml/dist/schema/core/schema.js +25 -0
- package/.output/server/node_modules/yaml/dist/schema/json/schema.js +64 -0
- package/.output/server/node_modules/yaml/dist/schema/tags.js +99 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/binary.js +70 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/bool.js +29 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/float.js +50 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/int.js +76 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/merge.js +68 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/omap.js +77 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +82 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/schema.js +41 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/set.js +96 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +105 -0
- package/.output/server/node_modules/yaml/dist/stringify/foldFlowLines.js +151 -0
- package/.output/server/node_modules/yaml/dist/stringify/stringify.js +131 -0
- package/.output/server/node_modules/yaml/dist/stringify/stringifyCollection.js +145 -0
- package/.output/server/node_modules/yaml/dist/stringify/stringifyComment.js +24 -0
- package/.output/server/node_modules/yaml/dist/stringify/stringifyDocument.js +87 -0
- package/.output/server/node_modules/yaml/dist/stringify/stringifyNumber.js +26 -0
- package/.output/server/node_modules/yaml/dist/stringify/stringifyPair.js +152 -0
- package/.output/server/node_modules/yaml/dist/stringify/stringifyString.js +338 -0
- package/.output/server/node_modules/yaml/dist/visit.js +236 -0
- package/.output/server/node_modules/yaml/package.json +97 -0
- package/.output/server/package.json +29 -0
- package/README.md +136 -0
- package/bin/spec-cat.js +80 -0
- package/package.json +82 -0
|
@@ -0,0 +1,1868 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @vue/reactivity v3.5.27
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/
|
|
6
|
+
'use strict';
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
|
+
|
|
10
|
+
var shared = require('@vue/shared');
|
|
11
|
+
|
|
12
|
+
let activeEffectScope;
|
|
13
|
+
class EffectScope {
|
|
14
|
+
constructor(detached = false) {
|
|
15
|
+
this.detached = detached;
|
|
16
|
+
/**
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
|
+
this._active = true;
|
|
20
|
+
/**
|
|
21
|
+
* @internal track `on` calls, allow `on` call multiple times
|
|
22
|
+
*/
|
|
23
|
+
this._on = 0;
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
this.effects = [];
|
|
28
|
+
/**
|
|
29
|
+
* @internal
|
|
30
|
+
*/
|
|
31
|
+
this.cleanups = [];
|
|
32
|
+
this._isPaused = false;
|
|
33
|
+
this.parent = activeEffectScope;
|
|
34
|
+
if (!detached && activeEffectScope) {
|
|
35
|
+
this.index = (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(
|
|
36
|
+
this
|
|
37
|
+
) - 1;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
get active() {
|
|
41
|
+
return this._active;
|
|
42
|
+
}
|
|
43
|
+
pause() {
|
|
44
|
+
if (this._active) {
|
|
45
|
+
this._isPaused = true;
|
|
46
|
+
let i, l;
|
|
47
|
+
if (this.scopes) {
|
|
48
|
+
for (i = 0, l = this.scopes.length; i < l; i++) {
|
|
49
|
+
this.scopes[i].pause();
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
for (i = 0, l = this.effects.length; i < l; i++) {
|
|
53
|
+
this.effects[i].pause();
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Resumes the effect scope, including all child scopes and effects.
|
|
59
|
+
*/
|
|
60
|
+
resume() {
|
|
61
|
+
if (this._active) {
|
|
62
|
+
if (this._isPaused) {
|
|
63
|
+
this._isPaused = false;
|
|
64
|
+
let i, l;
|
|
65
|
+
if (this.scopes) {
|
|
66
|
+
for (i = 0, l = this.scopes.length; i < l; i++) {
|
|
67
|
+
this.scopes[i].resume();
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
for (i = 0, l = this.effects.length; i < l; i++) {
|
|
71
|
+
this.effects[i].resume();
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
run(fn) {
|
|
77
|
+
if (this._active) {
|
|
78
|
+
const currentEffectScope = activeEffectScope;
|
|
79
|
+
try {
|
|
80
|
+
activeEffectScope = this;
|
|
81
|
+
return fn();
|
|
82
|
+
} finally {
|
|
83
|
+
activeEffectScope = currentEffectScope;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* This should only be called on non-detached scopes
|
|
89
|
+
* @internal
|
|
90
|
+
*/
|
|
91
|
+
on() {
|
|
92
|
+
if (++this._on === 1) {
|
|
93
|
+
this.prevScope = activeEffectScope;
|
|
94
|
+
activeEffectScope = this;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* This should only be called on non-detached scopes
|
|
99
|
+
* @internal
|
|
100
|
+
*/
|
|
101
|
+
off() {
|
|
102
|
+
if (this._on > 0 && --this._on === 0) {
|
|
103
|
+
activeEffectScope = this.prevScope;
|
|
104
|
+
this.prevScope = void 0;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
stop(fromParent) {
|
|
108
|
+
if (this._active) {
|
|
109
|
+
this._active = false;
|
|
110
|
+
let i, l;
|
|
111
|
+
for (i = 0, l = this.effects.length; i < l; i++) {
|
|
112
|
+
this.effects[i].stop();
|
|
113
|
+
}
|
|
114
|
+
this.effects.length = 0;
|
|
115
|
+
for (i = 0, l = this.cleanups.length; i < l; i++) {
|
|
116
|
+
this.cleanups[i]();
|
|
117
|
+
}
|
|
118
|
+
this.cleanups.length = 0;
|
|
119
|
+
if (this.scopes) {
|
|
120
|
+
for (i = 0, l = this.scopes.length; i < l; i++) {
|
|
121
|
+
this.scopes[i].stop(true);
|
|
122
|
+
}
|
|
123
|
+
this.scopes.length = 0;
|
|
124
|
+
}
|
|
125
|
+
if (!this.detached && this.parent && !fromParent) {
|
|
126
|
+
const last = this.parent.scopes.pop();
|
|
127
|
+
if (last && last !== this) {
|
|
128
|
+
this.parent.scopes[this.index] = last;
|
|
129
|
+
last.index = this.index;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
this.parent = void 0;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
function effectScope(detached) {
|
|
137
|
+
return new EffectScope(detached);
|
|
138
|
+
}
|
|
139
|
+
function getCurrentScope() {
|
|
140
|
+
return activeEffectScope;
|
|
141
|
+
}
|
|
142
|
+
function onScopeDispose(fn, failSilently = false) {
|
|
143
|
+
if (activeEffectScope) {
|
|
144
|
+
activeEffectScope.cleanups.push(fn);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
let activeSub;
|
|
149
|
+
const EffectFlags = {
|
|
150
|
+
"ACTIVE": 1,
|
|
151
|
+
"1": "ACTIVE",
|
|
152
|
+
"RUNNING": 2,
|
|
153
|
+
"2": "RUNNING",
|
|
154
|
+
"TRACKING": 4,
|
|
155
|
+
"4": "TRACKING",
|
|
156
|
+
"NOTIFIED": 8,
|
|
157
|
+
"8": "NOTIFIED",
|
|
158
|
+
"DIRTY": 16,
|
|
159
|
+
"16": "DIRTY",
|
|
160
|
+
"ALLOW_RECURSE": 32,
|
|
161
|
+
"32": "ALLOW_RECURSE",
|
|
162
|
+
"PAUSED": 64,
|
|
163
|
+
"64": "PAUSED",
|
|
164
|
+
"EVALUATED": 128,
|
|
165
|
+
"128": "EVALUATED"
|
|
166
|
+
};
|
|
167
|
+
const pausedQueueEffects = /* @__PURE__ */ new WeakSet();
|
|
168
|
+
class ReactiveEffect {
|
|
169
|
+
constructor(fn) {
|
|
170
|
+
this.fn = fn;
|
|
171
|
+
/**
|
|
172
|
+
* @internal
|
|
173
|
+
*/
|
|
174
|
+
this.deps = void 0;
|
|
175
|
+
/**
|
|
176
|
+
* @internal
|
|
177
|
+
*/
|
|
178
|
+
this.depsTail = void 0;
|
|
179
|
+
/**
|
|
180
|
+
* @internal
|
|
181
|
+
*/
|
|
182
|
+
this.flags = 1 | 4;
|
|
183
|
+
/**
|
|
184
|
+
* @internal
|
|
185
|
+
*/
|
|
186
|
+
this.next = void 0;
|
|
187
|
+
/**
|
|
188
|
+
* @internal
|
|
189
|
+
*/
|
|
190
|
+
this.cleanup = void 0;
|
|
191
|
+
this.scheduler = void 0;
|
|
192
|
+
if (activeEffectScope && activeEffectScope.active) {
|
|
193
|
+
activeEffectScope.effects.push(this);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
pause() {
|
|
197
|
+
this.flags |= 64;
|
|
198
|
+
}
|
|
199
|
+
resume() {
|
|
200
|
+
if (this.flags & 64) {
|
|
201
|
+
this.flags &= -65;
|
|
202
|
+
if (pausedQueueEffects.has(this)) {
|
|
203
|
+
pausedQueueEffects.delete(this);
|
|
204
|
+
this.trigger();
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* @internal
|
|
210
|
+
*/
|
|
211
|
+
notify() {
|
|
212
|
+
if (this.flags & 2 && !(this.flags & 32)) {
|
|
213
|
+
return;
|
|
214
|
+
}
|
|
215
|
+
if (!(this.flags & 8)) {
|
|
216
|
+
batch(this);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
run() {
|
|
220
|
+
if (!(this.flags & 1)) {
|
|
221
|
+
return this.fn();
|
|
222
|
+
}
|
|
223
|
+
this.flags |= 2;
|
|
224
|
+
cleanupEffect(this);
|
|
225
|
+
prepareDeps(this);
|
|
226
|
+
const prevEffect = activeSub;
|
|
227
|
+
const prevShouldTrack = shouldTrack;
|
|
228
|
+
activeSub = this;
|
|
229
|
+
shouldTrack = true;
|
|
230
|
+
try {
|
|
231
|
+
return this.fn();
|
|
232
|
+
} finally {
|
|
233
|
+
cleanupDeps(this);
|
|
234
|
+
activeSub = prevEffect;
|
|
235
|
+
shouldTrack = prevShouldTrack;
|
|
236
|
+
this.flags &= -3;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
stop() {
|
|
240
|
+
if (this.flags & 1) {
|
|
241
|
+
for (let link = this.deps; link; link = link.nextDep) {
|
|
242
|
+
removeSub(link);
|
|
243
|
+
}
|
|
244
|
+
this.deps = this.depsTail = void 0;
|
|
245
|
+
cleanupEffect(this);
|
|
246
|
+
this.onStop && this.onStop();
|
|
247
|
+
this.flags &= -2;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
trigger() {
|
|
251
|
+
if (this.flags & 64) {
|
|
252
|
+
pausedQueueEffects.add(this);
|
|
253
|
+
} else if (this.scheduler) {
|
|
254
|
+
this.scheduler();
|
|
255
|
+
} else {
|
|
256
|
+
this.runIfDirty();
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* @internal
|
|
261
|
+
*/
|
|
262
|
+
runIfDirty() {
|
|
263
|
+
if (isDirty(this)) {
|
|
264
|
+
this.run();
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
get dirty() {
|
|
268
|
+
return isDirty(this);
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
let batchDepth = 0;
|
|
272
|
+
let batchedSub;
|
|
273
|
+
let batchedComputed;
|
|
274
|
+
function batch(sub, isComputed = false) {
|
|
275
|
+
sub.flags |= 8;
|
|
276
|
+
if (isComputed) {
|
|
277
|
+
sub.next = batchedComputed;
|
|
278
|
+
batchedComputed = sub;
|
|
279
|
+
return;
|
|
280
|
+
}
|
|
281
|
+
sub.next = batchedSub;
|
|
282
|
+
batchedSub = sub;
|
|
283
|
+
}
|
|
284
|
+
function startBatch() {
|
|
285
|
+
batchDepth++;
|
|
286
|
+
}
|
|
287
|
+
function endBatch() {
|
|
288
|
+
if (--batchDepth > 0) {
|
|
289
|
+
return;
|
|
290
|
+
}
|
|
291
|
+
if (batchedComputed) {
|
|
292
|
+
let e = batchedComputed;
|
|
293
|
+
batchedComputed = void 0;
|
|
294
|
+
while (e) {
|
|
295
|
+
const next = e.next;
|
|
296
|
+
e.next = void 0;
|
|
297
|
+
e.flags &= -9;
|
|
298
|
+
e = next;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
let error;
|
|
302
|
+
while (batchedSub) {
|
|
303
|
+
let e = batchedSub;
|
|
304
|
+
batchedSub = void 0;
|
|
305
|
+
while (e) {
|
|
306
|
+
const next = e.next;
|
|
307
|
+
e.next = void 0;
|
|
308
|
+
e.flags &= -9;
|
|
309
|
+
if (e.flags & 1) {
|
|
310
|
+
try {
|
|
311
|
+
;
|
|
312
|
+
e.trigger();
|
|
313
|
+
} catch (err) {
|
|
314
|
+
if (!error) error = err;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
e = next;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
if (error) throw error;
|
|
321
|
+
}
|
|
322
|
+
function prepareDeps(sub) {
|
|
323
|
+
for (let link = sub.deps; link; link = link.nextDep) {
|
|
324
|
+
link.version = -1;
|
|
325
|
+
link.prevActiveLink = link.dep.activeLink;
|
|
326
|
+
link.dep.activeLink = link;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
function cleanupDeps(sub) {
|
|
330
|
+
let head;
|
|
331
|
+
let tail = sub.depsTail;
|
|
332
|
+
let link = tail;
|
|
333
|
+
while (link) {
|
|
334
|
+
const prev = link.prevDep;
|
|
335
|
+
if (link.version === -1) {
|
|
336
|
+
if (link === tail) tail = prev;
|
|
337
|
+
removeSub(link);
|
|
338
|
+
removeDep(link);
|
|
339
|
+
} else {
|
|
340
|
+
head = link;
|
|
341
|
+
}
|
|
342
|
+
link.dep.activeLink = link.prevActiveLink;
|
|
343
|
+
link.prevActiveLink = void 0;
|
|
344
|
+
link = prev;
|
|
345
|
+
}
|
|
346
|
+
sub.deps = head;
|
|
347
|
+
sub.depsTail = tail;
|
|
348
|
+
}
|
|
349
|
+
function isDirty(sub) {
|
|
350
|
+
for (let link = sub.deps; link; link = link.nextDep) {
|
|
351
|
+
if (link.dep.version !== link.version || link.dep.computed && (refreshComputed(link.dep.computed) || link.dep.version !== link.version)) {
|
|
352
|
+
return true;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
if (sub._dirty) {
|
|
356
|
+
return true;
|
|
357
|
+
}
|
|
358
|
+
return false;
|
|
359
|
+
}
|
|
360
|
+
function refreshComputed(computed) {
|
|
361
|
+
if (computed.flags & 4 && !(computed.flags & 16)) {
|
|
362
|
+
return;
|
|
363
|
+
}
|
|
364
|
+
computed.flags &= -17;
|
|
365
|
+
if (computed.globalVersion === globalVersion) {
|
|
366
|
+
return;
|
|
367
|
+
}
|
|
368
|
+
computed.globalVersion = globalVersion;
|
|
369
|
+
if (!computed.isSSR && computed.flags & 128 && (!computed.deps && !computed._dirty || !isDirty(computed))) {
|
|
370
|
+
return;
|
|
371
|
+
}
|
|
372
|
+
computed.flags |= 2;
|
|
373
|
+
const dep = computed.dep;
|
|
374
|
+
const prevSub = activeSub;
|
|
375
|
+
const prevShouldTrack = shouldTrack;
|
|
376
|
+
activeSub = computed;
|
|
377
|
+
shouldTrack = true;
|
|
378
|
+
try {
|
|
379
|
+
prepareDeps(computed);
|
|
380
|
+
const value = computed.fn(computed._value);
|
|
381
|
+
if (dep.version === 0 || shared.hasChanged(value, computed._value)) {
|
|
382
|
+
computed.flags |= 128;
|
|
383
|
+
computed._value = value;
|
|
384
|
+
dep.version++;
|
|
385
|
+
}
|
|
386
|
+
} catch (err) {
|
|
387
|
+
dep.version++;
|
|
388
|
+
throw err;
|
|
389
|
+
} finally {
|
|
390
|
+
activeSub = prevSub;
|
|
391
|
+
shouldTrack = prevShouldTrack;
|
|
392
|
+
cleanupDeps(computed);
|
|
393
|
+
computed.flags &= -3;
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
function removeSub(link, soft = false) {
|
|
397
|
+
const { dep, prevSub, nextSub } = link;
|
|
398
|
+
if (prevSub) {
|
|
399
|
+
prevSub.nextSub = nextSub;
|
|
400
|
+
link.prevSub = void 0;
|
|
401
|
+
}
|
|
402
|
+
if (nextSub) {
|
|
403
|
+
nextSub.prevSub = prevSub;
|
|
404
|
+
link.nextSub = void 0;
|
|
405
|
+
}
|
|
406
|
+
if (dep.subs === link) {
|
|
407
|
+
dep.subs = prevSub;
|
|
408
|
+
if (!prevSub && dep.computed) {
|
|
409
|
+
dep.computed.flags &= -5;
|
|
410
|
+
for (let l = dep.computed.deps; l; l = l.nextDep) {
|
|
411
|
+
removeSub(l, true);
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
if (!soft && !--dep.sc && dep.map) {
|
|
416
|
+
dep.map.delete(dep.key);
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
function removeDep(link) {
|
|
420
|
+
const { prevDep, nextDep } = link;
|
|
421
|
+
if (prevDep) {
|
|
422
|
+
prevDep.nextDep = nextDep;
|
|
423
|
+
link.prevDep = void 0;
|
|
424
|
+
}
|
|
425
|
+
if (nextDep) {
|
|
426
|
+
nextDep.prevDep = prevDep;
|
|
427
|
+
link.nextDep = void 0;
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
function effect(fn, options) {
|
|
431
|
+
if (fn.effect instanceof ReactiveEffect) {
|
|
432
|
+
fn = fn.effect.fn;
|
|
433
|
+
}
|
|
434
|
+
const e = new ReactiveEffect(fn);
|
|
435
|
+
if (options) {
|
|
436
|
+
shared.extend(e, options);
|
|
437
|
+
}
|
|
438
|
+
try {
|
|
439
|
+
e.run();
|
|
440
|
+
} catch (err) {
|
|
441
|
+
e.stop();
|
|
442
|
+
throw err;
|
|
443
|
+
}
|
|
444
|
+
const runner = e.run.bind(e);
|
|
445
|
+
runner.effect = e;
|
|
446
|
+
return runner;
|
|
447
|
+
}
|
|
448
|
+
function stop(runner) {
|
|
449
|
+
runner.effect.stop();
|
|
450
|
+
}
|
|
451
|
+
let shouldTrack = true;
|
|
452
|
+
const trackStack = [];
|
|
453
|
+
function pauseTracking() {
|
|
454
|
+
trackStack.push(shouldTrack);
|
|
455
|
+
shouldTrack = false;
|
|
456
|
+
}
|
|
457
|
+
function enableTracking() {
|
|
458
|
+
trackStack.push(shouldTrack);
|
|
459
|
+
shouldTrack = true;
|
|
460
|
+
}
|
|
461
|
+
function resetTracking() {
|
|
462
|
+
const last = trackStack.pop();
|
|
463
|
+
shouldTrack = last === void 0 ? true : last;
|
|
464
|
+
}
|
|
465
|
+
function onEffectCleanup(fn, failSilently = false) {
|
|
466
|
+
if (activeSub instanceof ReactiveEffect) {
|
|
467
|
+
activeSub.cleanup = fn;
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
function cleanupEffect(e) {
|
|
471
|
+
const { cleanup } = e;
|
|
472
|
+
e.cleanup = void 0;
|
|
473
|
+
if (cleanup) {
|
|
474
|
+
const prevSub = activeSub;
|
|
475
|
+
activeSub = void 0;
|
|
476
|
+
try {
|
|
477
|
+
cleanup();
|
|
478
|
+
} finally {
|
|
479
|
+
activeSub = prevSub;
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
let globalVersion = 0;
|
|
485
|
+
class Link {
|
|
486
|
+
constructor(sub, dep) {
|
|
487
|
+
this.sub = sub;
|
|
488
|
+
this.dep = dep;
|
|
489
|
+
this.version = dep.version;
|
|
490
|
+
this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
class Dep {
|
|
494
|
+
// TODO isolatedDeclarations "__v_skip"
|
|
495
|
+
constructor(computed) {
|
|
496
|
+
this.computed = computed;
|
|
497
|
+
this.version = 0;
|
|
498
|
+
/**
|
|
499
|
+
* Link between this dep and the current active effect
|
|
500
|
+
*/
|
|
501
|
+
this.activeLink = void 0;
|
|
502
|
+
/**
|
|
503
|
+
* Doubly linked list representing the subscribing effects (tail)
|
|
504
|
+
*/
|
|
505
|
+
this.subs = void 0;
|
|
506
|
+
/**
|
|
507
|
+
* For object property deps cleanup
|
|
508
|
+
*/
|
|
509
|
+
this.map = void 0;
|
|
510
|
+
this.key = void 0;
|
|
511
|
+
/**
|
|
512
|
+
* Subscriber counter
|
|
513
|
+
*/
|
|
514
|
+
this.sc = 0;
|
|
515
|
+
/**
|
|
516
|
+
* @internal
|
|
517
|
+
*/
|
|
518
|
+
this.__v_skip = true;
|
|
519
|
+
}
|
|
520
|
+
track(debugInfo) {
|
|
521
|
+
if (!activeSub || !shouldTrack || activeSub === this.computed) {
|
|
522
|
+
return;
|
|
523
|
+
}
|
|
524
|
+
let link = this.activeLink;
|
|
525
|
+
if (link === void 0 || link.sub !== activeSub) {
|
|
526
|
+
link = this.activeLink = new Link(activeSub, this);
|
|
527
|
+
if (!activeSub.deps) {
|
|
528
|
+
activeSub.deps = activeSub.depsTail = link;
|
|
529
|
+
} else {
|
|
530
|
+
link.prevDep = activeSub.depsTail;
|
|
531
|
+
activeSub.depsTail.nextDep = link;
|
|
532
|
+
activeSub.depsTail = link;
|
|
533
|
+
}
|
|
534
|
+
addSub(link);
|
|
535
|
+
} else if (link.version === -1) {
|
|
536
|
+
link.version = this.version;
|
|
537
|
+
if (link.nextDep) {
|
|
538
|
+
const next = link.nextDep;
|
|
539
|
+
next.prevDep = link.prevDep;
|
|
540
|
+
if (link.prevDep) {
|
|
541
|
+
link.prevDep.nextDep = next;
|
|
542
|
+
}
|
|
543
|
+
link.prevDep = activeSub.depsTail;
|
|
544
|
+
link.nextDep = void 0;
|
|
545
|
+
activeSub.depsTail.nextDep = link;
|
|
546
|
+
activeSub.depsTail = link;
|
|
547
|
+
if (activeSub.deps === link) {
|
|
548
|
+
activeSub.deps = next;
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
return link;
|
|
553
|
+
}
|
|
554
|
+
trigger(debugInfo) {
|
|
555
|
+
this.version++;
|
|
556
|
+
globalVersion++;
|
|
557
|
+
this.notify(debugInfo);
|
|
558
|
+
}
|
|
559
|
+
notify(debugInfo) {
|
|
560
|
+
startBatch();
|
|
561
|
+
try {
|
|
562
|
+
if (false) ;
|
|
563
|
+
for (let link = this.subs; link; link = link.prevSub) {
|
|
564
|
+
if (link.sub.notify()) {
|
|
565
|
+
;
|
|
566
|
+
link.sub.dep.notify();
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
} finally {
|
|
570
|
+
endBatch();
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
function addSub(link) {
|
|
575
|
+
link.dep.sc++;
|
|
576
|
+
if (link.sub.flags & 4) {
|
|
577
|
+
const computed = link.dep.computed;
|
|
578
|
+
if (computed && !link.dep.subs) {
|
|
579
|
+
computed.flags |= 4 | 16;
|
|
580
|
+
for (let l = computed.deps; l; l = l.nextDep) {
|
|
581
|
+
addSub(l);
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
const currentTail = link.dep.subs;
|
|
585
|
+
if (currentTail !== link) {
|
|
586
|
+
link.prevSub = currentTail;
|
|
587
|
+
if (currentTail) currentTail.nextSub = link;
|
|
588
|
+
}
|
|
589
|
+
link.dep.subs = link;
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
const targetMap = /* @__PURE__ */ new WeakMap();
|
|
593
|
+
const ITERATE_KEY = /* @__PURE__ */ Symbol(
|
|
594
|
+
""
|
|
595
|
+
);
|
|
596
|
+
const MAP_KEY_ITERATE_KEY = /* @__PURE__ */ Symbol(
|
|
597
|
+
""
|
|
598
|
+
);
|
|
599
|
+
const ARRAY_ITERATE_KEY = /* @__PURE__ */ Symbol(
|
|
600
|
+
""
|
|
601
|
+
);
|
|
602
|
+
function track(target, type, key) {
|
|
603
|
+
if (shouldTrack && activeSub) {
|
|
604
|
+
let depsMap = targetMap.get(target);
|
|
605
|
+
if (!depsMap) {
|
|
606
|
+
targetMap.set(target, depsMap = /* @__PURE__ */ new Map());
|
|
607
|
+
}
|
|
608
|
+
let dep = depsMap.get(key);
|
|
609
|
+
if (!dep) {
|
|
610
|
+
depsMap.set(key, dep = new Dep());
|
|
611
|
+
dep.map = depsMap;
|
|
612
|
+
dep.key = key;
|
|
613
|
+
}
|
|
614
|
+
{
|
|
615
|
+
dep.track();
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
function trigger(target, type, key, newValue, oldValue, oldTarget) {
|
|
620
|
+
const depsMap = targetMap.get(target);
|
|
621
|
+
if (!depsMap) {
|
|
622
|
+
globalVersion++;
|
|
623
|
+
return;
|
|
624
|
+
}
|
|
625
|
+
const run = (dep) => {
|
|
626
|
+
if (dep) {
|
|
627
|
+
{
|
|
628
|
+
dep.trigger();
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
};
|
|
632
|
+
startBatch();
|
|
633
|
+
if (type === "clear") {
|
|
634
|
+
depsMap.forEach(run);
|
|
635
|
+
} else {
|
|
636
|
+
const targetIsArray = shared.isArray(target);
|
|
637
|
+
const isArrayIndex = targetIsArray && shared.isIntegerKey(key);
|
|
638
|
+
if (targetIsArray && key === "length") {
|
|
639
|
+
const newLength = Number(newValue);
|
|
640
|
+
depsMap.forEach((dep, key2) => {
|
|
641
|
+
if (key2 === "length" || key2 === ARRAY_ITERATE_KEY || !shared.isSymbol(key2) && key2 >= newLength) {
|
|
642
|
+
run(dep);
|
|
643
|
+
}
|
|
644
|
+
});
|
|
645
|
+
} else {
|
|
646
|
+
if (key !== void 0 || depsMap.has(void 0)) {
|
|
647
|
+
run(depsMap.get(key));
|
|
648
|
+
}
|
|
649
|
+
if (isArrayIndex) {
|
|
650
|
+
run(depsMap.get(ARRAY_ITERATE_KEY));
|
|
651
|
+
}
|
|
652
|
+
switch (type) {
|
|
653
|
+
case "add":
|
|
654
|
+
if (!targetIsArray) {
|
|
655
|
+
run(depsMap.get(ITERATE_KEY));
|
|
656
|
+
if (shared.isMap(target)) {
|
|
657
|
+
run(depsMap.get(MAP_KEY_ITERATE_KEY));
|
|
658
|
+
}
|
|
659
|
+
} else if (isArrayIndex) {
|
|
660
|
+
run(depsMap.get("length"));
|
|
661
|
+
}
|
|
662
|
+
break;
|
|
663
|
+
case "delete":
|
|
664
|
+
if (!targetIsArray) {
|
|
665
|
+
run(depsMap.get(ITERATE_KEY));
|
|
666
|
+
if (shared.isMap(target)) {
|
|
667
|
+
run(depsMap.get(MAP_KEY_ITERATE_KEY));
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
break;
|
|
671
|
+
case "set":
|
|
672
|
+
if (shared.isMap(target)) {
|
|
673
|
+
run(depsMap.get(ITERATE_KEY));
|
|
674
|
+
}
|
|
675
|
+
break;
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
endBatch();
|
|
680
|
+
}
|
|
681
|
+
function getDepFromReactive(object, key) {
|
|
682
|
+
const depMap = targetMap.get(object);
|
|
683
|
+
return depMap && depMap.get(key);
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
function reactiveReadArray(array) {
|
|
687
|
+
const raw = toRaw(array);
|
|
688
|
+
if (raw === array) return raw;
|
|
689
|
+
track(raw, "iterate", ARRAY_ITERATE_KEY);
|
|
690
|
+
return isShallow(array) ? raw : raw.map(toReactive);
|
|
691
|
+
}
|
|
692
|
+
function shallowReadArray(arr) {
|
|
693
|
+
track(arr = toRaw(arr), "iterate", ARRAY_ITERATE_KEY);
|
|
694
|
+
return arr;
|
|
695
|
+
}
|
|
696
|
+
function toWrapped(target, item) {
|
|
697
|
+
if (isReadonly(target)) {
|
|
698
|
+
return isReactive(target) ? toReadonly(toReactive(item)) : toReadonly(item);
|
|
699
|
+
}
|
|
700
|
+
return toReactive(item);
|
|
701
|
+
}
|
|
702
|
+
const arrayInstrumentations = {
|
|
703
|
+
__proto__: null,
|
|
704
|
+
[Symbol.iterator]() {
|
|
705
|
+
return iterator(this, Symbol.iterator, (item) => toWrapped(this, item));
|
|
706
|
+
},
|
|
707
|
+
concat(...args) {
|
|
708
|
+
return reactiveReadArray(this).concat(
|
|
709
|
+
...args.map((x) => shared.isArray(x) ? reactiveReadArray(x) : x)
|
|
710
|
+
);
|
|
711
|
+
},
|
|
712
|
+
entries() {
|
|
713
|
+
return iterator(this, "entries", (value) => {
|
|
714
|
+
value[1] = toWrapped(this, value[1]);
|
|
715
|
+
return value;
|
|
716
|
+
});
|
|
717
|
+
},
|
|
718
|
+
every(fn, thisArg) {
|
|
719
|
+
return apply(this, "every", fn, thisArg, void 0, arguments);
|
|
720
|
+
},
|
|
721
|
+
filter(fn, thisArg) {
|
|
722
|
+
return apply(
|
|
723
|
+
this,
|
|
724
|
+
"filter",
|
|
725
|
+
fn,
|
|
726
|
+
thisArg,
|
|
727
|
+
(v) => v.map((item) => toWrapped(this, item)),
|
|
728
|
+
arguments
|
|
729
|
+
);
|
|
730
|
+
},
|
|
731
|
+
find(fn, thisArg) {
|
|
732
|
+
return apply(
|
|
733
|
+
this,
|
|
734
|
+
"find",
|
|
735
|
+
fn,
|
|
736
|
+
thisArg,
|
|
737
|
+
(item) => toWrapped(this, item),
|
|
738
|
+
arguments
|
|
739
|
+
);
|
|
740
|
+
},
|
|
741
|
+
findIndex(fn, thisArg) {
|
|
742
|
+
return apply(this, "findIndex", fn, thisArg, void 0, arguments);
|
|
743
|
+
},
|
|
744
|
+
findLast(fn, thisArg) {
|
|
745
|
+
return apply(
|
|
746
|
+
this,
|
|
747
|
+
"findLast",
|
|
748
|
+
fn,
|
|
749
|
+
thisArg,
|
|
750
|
+
(item) => toWrapped(this, item),
|
|
751
|
+
arguments
|
|
752
|
+
);
|
|
753
|
+
},
|
|
754
|
+
findLastIndex(fn, thisArg) {
|
|
755
|
+
return apply(this, "findLastIndex", fn, thisArg, void 0, arguments);
|
|
756
|
+
},
|
|
757
|
+
// flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
|
|
758
|
+
forEach(fn, thisArg) {
|
|
759
|
+
return apply(this, "forEach", fn, thisArg, void 0, arguments);
|
|
760
|
+
},
|
|
761
|
+
includes(...args) {
|
|
762
|
+
return searchProxy(this, "includes", args);
|
|
763
|
+
},
|
|
764
|
+
indexOf(...args) {
|
|
765
|
+
return searchProxy(this, "indexOf", args);
|
|
766
|
+
},
|
|
767
|
+
join(separator) {
|
|
768
|
+
return reactiveReadArray(this).join(separator);
|
|
769
|
+
},
|
|
770
|
+
// keys() iterator only reads `length`, no optimization required
|
|
771
|
+
lastIndexOf(...args) {
|
|
772
|
+
return searchProxy(this, "lastIndexOf", args);
|
|
773
|
+
},
|
|
774
|
+
map(fn, thisArg) {
|
|
775
|
+
return apply(this, "map", fn, thisArg, void 0, arguments);
|
|
776
|
+
},
|
|
777
|
+
pop() {
|
|
778
|
+
return noTracking(this, "pop");
|
|
779
|
+
},
|
|
780
|
+
push(...args) {
|
|
781
|
+
return noTracking(this, "push", args);
|
|
782
|
+
},
|
|
783
|
+
reduce(fn, ...args) {
|
|
784
|
+
return reduce(this, "reduce", fn, args);
|
|
785
|
+
},
|
|
786
|
+
reduceRight(fn, ...args) {
|
|
787
|
+
return reduce(this, "reduceRight", fn, args);
|
|
788
|
+
},
|
|
789
|
+
shift() {
|
|
790
|
+
return noTracking(this, "shift");
|
|
791
|
+
},
|
|
792
|
+
// slice could use ARRAY_ITERATE but also seems to beg for range tracking
|
|
793
|
+
some(fn, thisArg) {
|
|
794
|
+
return apply(this, "some", fn, thisArg, void 0, arguments);
|
|
795
|
+
},
|
|
796
|
+
splice(...args) {
|
|
797
|
+
return noTracking(this, "splice", args);
|
|
798
|
+
},
|
|
799
|
+
toReversed() {
|
|
800
|
+
return reactiveReadArray(this).toReversed();
|
|
801
|
+
},
|
|
802
|
+
toSorted(comparer) {
|
|
803
|
+
return reactiveReadArray(this).toSorted(comparer);
|
|
804
|
+
},
|
|
805
|
+
toSpliced(...args) {
|
|
806
|
+
return reactiveReadArray(this).toSpliced(...args);
|
|
807
|
+
},
|
|
808
|
+
unshift(...args) {
|
|
809
|
+
return noTracking(this, "unshift", args);
|
|
810
|
+
},
|
|
811
|
+
values() {
|
|
812
|
+
return iterator(this, "values", (item) => toWrapped(this, item));
|
|
813
|
+
}
|
|
814
|
+
};
|
|
815
|
+
function iterator(self, method, wrapValue) {
|
|
816
|
+
const arr = shallowReadArray(self);
|
|
817
|
+
const iter = arr[method]();
|
|
818
|
+
if (arr !== self && !isShallow(self)) {
|
|
819
|
+
iter._next = iter.next;
|
|
820
|
+
iter.next = () => {
|
|
821
|
+
const result = iter._next();
|
|
822
|
+
if (!result.done) {
|
|
823
|
+
result.value = wrapValue(result.value);
|
|
824
|
+
}
|
|
825
|
+
return result;
|
|
826
|
+
};
|
|
827
|
+
}
|
|
828
|
+
return iter;
|
|
829
|
+
}
|
|
830
|
+
const arrayProto = Array.prototype;
|
|
831
|
+
function apply(self, method, fn, thisArg, wrappedRetFn, args) {
|
|
832
|
+
const arr = shallowReadArray(self);
|
|
833
|
+
const needsWrap = arr !== self && !isShallow(self);
|
|
834
|
+
const methodFn = arr[method];
|
|
835
|
+
if (methodFn !== arrayProto[method]) {
|
|
836
|
+
const result2 = methodFn.apply(self, args);
|
|
837
|
+
return needsWrap ? toReactive(result2) : result2;
|
|
838
|
+
}
|
|
839
|
+
let wrappedFn = fn;
|
|
840
|
+
if (arr !== self) {
|
|
841
|
+
if (needsWrap) {
|
|
842
|
+
wrappedFn = function(item, index) {
|
|
843
|
+
return fn.call(this, toWrapped(self, item), index, self);
|
|
844
|
+
};
|
|
845
|
+
} else if (fn.length > 2) {
|
|
846
|
+
wrappedFn = function(item, index) {
|
|
847
|
+
return fn.call(this, item, index, self);
|
|
848
|
+
};
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
const result = methodFn.call(arr, wrappedFn, thisArg);
|
|
852
|
+
return needsWrap && wrappedRetFn ? wrappedRetFn(result) : result;
|
|
853
|
+
}
|
|
854
|
+
function reduce(self, method, fn, args) {
|
|
855
|
+
const arr = shallowReadArray(self);
|
|
856
|
+
let wrappedFn = fn;
|
|
857
|
+
if (arr !== self) {
|
|
858
|
+
if (!isShallow(self)) {
|
|
859
|
+
wrappedFn = function(acc, item, index) {
|
|
860
|
+
return fn.call(this, acc, toWrapped(self, item), index, self);
|
|
861
|
+
};
|
|
862
|
+
} else if (fn.length > 3) {
|
|
863
|
+
wrappedFn = function(acc, item, index) {
|
|
864
|
+
return fn.call(this, acc, item, index, self);
|
|
865
|
+
};
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
return arr[method](wrappedFn, ...args);
|
|
869
|
+
}
|
|
870
|
+
function searchProxy(self, method, args) {
|
|
871
|
+
const arr = toRaw(self);
|
|
872
|
+
track(arr, "iterate", ARRAY_ITERATE_KEY);
|
|
873
|
+
const res = arr[method](...args);
|
|
874
|
+
if ((res === -1 || res === false) && isProxy(args[0])) {
|
|
875
|
+
args[0] = toRaw(args[0]);
|
|
876
|
+
return arr[method](...args);
|
|
877
|
+
}
|
|
878
|
+
return res;
|
|
879
|
+
}
|
|
880
|
+
function noTracking(self, method, args = []) {
|
|
881
|
+
pauseTracking();
|
|
882
|
+
startBatch();
|
|
883
|
+
const res = toRaw(self)[method].apply(self, args);
|
|
884
|
+
endBatch();
|
|
885
|
+
resetTracking();
|
|
886
|
+
return res;
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
const isNonTrackableKeys = /* @__PURE__ */ shared.makeMap(`__proto__,__v_isRef,__isVue`);
|
|
890
|
+
const builtInSymbols = new Set(
|
|
891
|
+
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((key) => key !== "arguments" && key !== "caller").map((key) => Symbol[key]).filter(shared.isSymbol)
|
|
892
|
+
);
|
|
893
|
+
function hasOwnProperty(key) {
|
|
894
|
+
if (!shared.isSymbol(key)) key = String(key);
|
|
895
|
+
const obj = toRaw(this);
|
|
896
|
+
track(obj, "has", key);
|
|
897
|
+
return obj.hasOwnProperty(key);
|
|
898
|
+
}
|
|
899
|
+
class BaseReactiveHandler {
|
|
900
|
+
constructor(_isReadonly = false, _isShallow = false) {
|
|
901
|
+
this._isReadonly = _isReadonly;
|
|
902
|
+
this._isShallow = _isShallow;
|
|
903
|
+
}
|
|
904
|
+
get(target, key, receiver) {
|
|
905
|
+
if (key === "__v_skip") return target["__v_skip"];
|
|
906
|
+
const isReadonly2 = this._isReadonly, isShallow2 = this._isShallow;
|
|
907
|
+
if (key === "__v_isReactive") {
|
|
908
|
+
return !isReadonly2;
|
|
909
|
+
} else if (key === "__v_isReadonly") {
|
|
910
|
+
return isReadonly2;
|
|
911
|
+
} else if (key === "__v_isShallow") {
|
|
912
|
+
return isShallow2;
|
|
913
|
+
} else if (key === "__v_raw") {
|
|
914
|
+
if (receiver === (isReadonly2 ? isShallow2 ? shallowReadonlyMap : readonlyMap : isShallow2 ? shallowReactiveMap : reactiveMap).get(target) || // receiver is not the reactive proxy, but has the same prototype
|
|
915
|
+
// this means the receiver is a user proxy of the reactive proxy
|
|
916
|
+
Object.getPrototypeOf(target) === Object.getPrototypeOf(receiver)) {
|
|
917
|
+
return target;
|
|
918
|
+
}
|
|
919
|
+
return;
|
|
920
|
+
}
|
|
921
|
+
const targetIsArray = shared.isArray(target);
|
|
922
|
+
if (!isReadonly2) {
|
|
923
|
+
let fn;
|
|
924
|
+
if (targetIsArray && (fn = arrayInstrumentations[key])) {
|
|
925
|
+
return fn;
|
|
926
|
+
}
|
|
927
|
+
if (key === "hasOwnProperty") {
|
|
928
|
+
return hasOwnProperty;
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
const res = Reflect.get(
|
|
932
|
+
target,
|
|
933
|
+
key,
|
|
934
|
+
// if this is a proxy wrapping a ref, return methods using the raw ref
|
|
935
|
+
// as receiver so that we don't have to call `toRaw` on the ref in all
|
|
936
|
+
// its class methods
|
|
937
|
+
isRef(target) ? target : receiver
|
|
938
|
+
);
|
|
939
|
+
if (shared.isSymbol(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) {
|
|
940
|
+
return res;
|
|
941
|
+
}
|
|
942
|
+
if (!isReadonly2) {
|
|
943
|
+
track(target, "get", key);
|
|
944
|
+
}
|
|
945
|
+
if (isShallow2) {
|
|
946
|
+
return res;
|
|
947
|
+
}
|
|
948
|
+
if (isRef(res)) {
|
|
949
|
+
const value = targetIsArray && shared.isIntegerKey(key) ? res : res.value;
|
|
950
|
+
return isReadonly2 && shared.isObject(value) ? readonly(value) : value;
|
|
951
|
+
}
|
|
952
|
+
if (shared.isObject(res)) {
|
|
953
|
+
return isReadonly2 ? readonly(res) : reactive(res);
|
|
954
|
+
}
|
|
955
|
+
return res;
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
class MutableReactiveHandler extends BaseReactiveHandler {
|
|
959
|
+
constructor(isShallow2 = false) {
|
|
960
|
+
super(false, isShallow2);
|
|
961
|
+
}
|
|
962
|
+
set(target, key, value, receiver) {
|
|
963
|
+
let oldValue = target[key];
|
|
964
|
+
const isArrayWithIntegerKey = shared.isArray(target) && shared.isIntegerKey(key);
|
|
965
|
+
if (!this._isShallow) {
|
|
966
|
+
const isOldValueReadonly = isReadonly(oldValue);
|
|
967
|
+
if (!isShallow(value) && !isReadonly(value)) {
|
|
968
|
+
oldValue = toRaw(oldValue);
|
|
969
|
+
value = toRaw(value);
|
|
970
|
+
}
|
|
971
|
+
if (!isArrayWithIntegerKey && isRef(oldValue) && !isRef(value)) {
|
|
972
|
+
if (isOldValueReadonly) {
|
|
973
|
+
return true;
|
|
974
|
+
} else {
|
|
975
|
+
oldValue.value = value;
|
|
976
|
+
return true;
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
const hadKey = isArrayWithIntegerKey ? Number(key) < target.length : shared.hasOwn(target, key);
|
|
981
|
+
const result = Reflect.set(
|
|
982
|
+
target,
|
|
983
|
+
key,
|
|
984
|
+
value,
|
|
985
|
+
isRef(target) ? target : receiver
|
|
986
|
+
);
|
|
987
|
+
if (target === toRaw(receiver)) {
|
|
988
|
+
if (!hadKey) {
|
|
989
|
+
trigger(target, "add", key, value);
|
|
990
|
+
} else if (shared.hasChanged(value, oldValue)) {
|
|
991
|
+
trigger(target, "set", key, value);
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
return result;
|
|
995
|
+
}
|
|
996
|
+
deleteProperty(target, key) {
|
|
997
|
+
const hadKey = shared.hasOwn(target, key);
|
|
998
|
+
target[key];
|
|
999
|
+
const result = Reflect.deleteProperty(target, key);
|
|
1000
|
+
if (result && hadKey) {
|
|
1001
|
+
trigger(target, "delete", key, void 0);
|
|
1002
|
+
}
|
|
1003
|
+
return result;
|
|
1004
|
+
}
|
|
1005
|
+
has(target, key) {
|
|
1006
|
+
const result = Reflect.has(target, key);
|
|
1007
|
+
if (!shared.isSymbol(key) || !builtInSymbols.has(key)) {
|
|
1008
|
+
track(target, "has", key);
|
|
1009
|
+
}
|
|
1010
|
+
return result;
|
|
1011
|
+
}
|
|
1012
|
+
ownKeys(target) {
|
|
1013
|
+
track(
|
|
1014
|
+
target,
|
|
1015
|
+
"iterate",
|
|
1016
|
+
shared.isArray(target) ? "length" : ITERATE_KEY
|
|
1017
|
+
);
|
|
1018
|
+
return Reflect.ownKeys(target);
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
class ReadonlyReactiveHandler extends BaseReactiveHandler {
|
|
1022
|
+
constructor(isShallow2 = false) {
|
|
1023
|
+
super(true, isShallow2);
|
|
1024
|
+
}
|
|
1025
|
+
set(target, key) {
|
|
1026
|
+
return true;
|
|
1027
|
+
}
|
|
1028
|
+
deleteProperty(target, key) {
|
|
1029
|
+
return true;
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
const mutableHandlers = /* @__PURE__ */ new MutableReactiveHandler();
|
|
1033
|
+
const readonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler();
|
|
1034
|
+
const shallowReactiveHandlers = /* @__PURE__ */ new MutableReactiveHandler(true);
|
|
1035
|
+
const shallowReadonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler(true);
|
|
1036
|
+
|
|
1037
|
+
const toShallow = (value) => value;
|
|
1038
|
+
const getProto = (v) => Reflect.getPrototypeOf(v);
|
|
1039
|
+
function createIterableMethod(method, isReadonly2, isShallow2) {
|
|
1040
|
+
return function(...args) {
|
|
1041
|
+
const target = this["__v_raw"];
|
|
1042
|
+
const rawTarget = toRaw(target);
|
|
1043
|
+
const targetIsMap = shared.isMap(rawTarget);
|
|
1044
|
+
const isPair = method === "entries" || method === Symbol.iterator && targetIsMap;
|
|
1045
|
+
const isKeyOnly = method === "keys" && targetIsMap;
|
|
1046
|
+
const innerIterator = target[method](...args);
|
|
1047
|
+
const wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive;
|
|
1048
|
+
!isReadonly2 && track(
|
|
1049
|
+
rawTarget,
|
|
1050
|
+
"iterate",
|
|
1051
|
+
isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY
|
|
1052
|
+
);
|
|
1053
|
+
return shared.extend(
|
|
1054
|
+
// inheriting all iterator properties
|
|
1055
|
+
Object.create(innerIterator),
|
|
1056
|
+
{
|
|
1057
|
+
// iterator protocol
|
|
1058
|
+
next() {
|
|
1059
|
+
const { value, done } = innerIterator.next();
|
|
1060
|
+
return done ? { value, done } : {
|
|
1061
|
+
value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value),
|
|
1062
|
+
done
|
|
1063
|
+
};
|
|
1064
|
+
}
|
|
1065
|
+
}
|
|
1066
|
+
);
|
|
1067
|
+
};
|
|
1068
|
+
}
|
|
1069
|
+
function createReadonlyMethod(type) {
|
|
1070
|
+
return function(...args) {
|
|
1071
|
+
return type === "delete" ? false : type === "clear" ? void 0 : this;
|
|
1072
|
+
};
|
|
1073
|
+
}
|
|
1074
|
+
function createInstrumentations(readonly, shallow) {
|
|
1075
|
+
const instrumentations = {
|
|
1076
|
+
get(key) {
|
|
1077
|
+
const target = this["__v_raw"];
|
|
1078
|
+
const rawTarget = toRaw(target);
|
|
1079
|
+
const rawKey = toRaw(key);
|
|
1080
|
+
if (!readonly) {
|
|
1081
|
+
if (shared.hasChanged(key, rawKey)) {
|
|
1082
|
+
track(rawTarget, "get", key);
|
|
1083
|
+
}
|
|
1084
|
+
track(rawTarget, "get", rawKey);
|
|
1085
|
+
}
|
|
1086
|
+
const { has } = getProto(rawTarget);
|
|
1087
|
+
const wrap = shallow ? toShallow : readonly ? toReadonly : toReactive;
|
|
1088
|
+
if (has.call(rawTarget, key)) {
|
|
1089
|
+
return wrap(target.get(key));
|
|
1090
|
+
} else if (has.call(rawTarget, rawKey)) {
|
|
1091
|
+
return wrap(target.get(rawKey));
|
|
1092
|
+
} else if (target !== rawTarget) {
|
|
1093
|
+
target.get(key);
|
|
1094
|
+
}
|
|
1095
|
+
},
|
|
1096
|
+
get size() {
|
|
1097
|
+
const target = this["__v_raw"];
|
|
1098
|
+
!readonly && track(toRaw(target), "iterate", ITERATE_KEY);
|
|
1099
|
+
return target.size;
|
|
1100
|
+
},
|
|
1101
|
+
has(key) {
|
|
1102
|
+
const target = this["__v_raw"];
|
|
1103
|
+
const rawTarget = toRaw(target);
|
|
1104
|
+
const rawKey = toRaw(key);
|
|
1105
|
+
if (!readonly) {
|
|
1106
|
+
if (shared.hasChanged(key, rawKey)) {
|
|
1107
|
+
track(rawTarget, "has", key);
|
|
1108
|
+
}
|
|
1109
|
+
track(rawTarget, "has", rawKey);
|
|
1110
|
+
}
|
|
1111
|
+
return key === rawKey ? target.has(key) : target.has(key) || target.has(rawKey);
|
|
1112
|
+
},
|
|
1113
|
+
forEach(callback, thisArg) {
|
|
1114
|
+
const observed = this;
|
|
1115
|
+
const target = observed["__v_raw"];
|
|
1116
|
+
const rawTarget = toRaw(target);
|
|
1117
|
+
const wrap = shallow ? toShallow : readonly ? toReadonly : toReactive;
|
|
1118
|
+
!readonly && track(rawTarget, "iterate", ITERATE_KEY);
|
|
1119
|
+
return target.forEach((value, key) => {
|
|
1120
|
+
return callback.call(thisArg, wrap(value), wrap(key), observed);
|
|
1121
|
+
});
|
|
1122
|
+
}
|
|
1123
|
+
};
|
|
1124
|
+
shared.extend(
|
|
1125
|
+
instrumentations,
|
|
1126
|
+
readonly ? {
|
|
1127
|
+
add: createReadonlyMethod("add"),
|
|
1128
|
+
set: createReadonlyMethod("set"),
|
|
1129
|
+
delete: createReadonlyMethod("delete"),
|
|
1130
|
+
clear: createReadonlyMethod("clear")
|
|
1131
|
+
} : {
|
|
1132
|
+
add(value) {
|
|
1133
|
+
if (!shallow && !isShallow(value) && !isReadonly(value)) {
|
|
1134
|
+
value = toRaw(value);
|
|
1135
|
+
}
|
|
1136
|
+
const target = toRaw(this);
|
|
1137
|
+
const proto = getProto(target);
|
|
1138
|
+
const hadKey = proto.has.call(target, value);
|
|
1139
|
+
if (!hadKey) {
|
|
1140
|
+
target.add(value);
|
|
1141
|
+
trigger(target, "add", value, value);
|
|
1142
|
+
}
|
|
1143
|
+
return this;
|
|
1144
|
+
},
|
|
1145
|
+
set(key, value) {
|
|
1146
|
+
if (!shallow && !isShallow(value) && !isReadonly(value)) {
|
|
1147
|
+
value = toRaw(value);
|
|
1148
|
+
}
|
|
1149
|
+
const target = toRaw(this);
|
|
1150
|
+
const { has, get } = getProto(target);
|
|
1151
|
+
let hadKey = has.call(target, key);
|
|
1152
|
+
if (!hadKey) {
|
|
1153
|
+
key = toRaw(key);
|
|
1154
|
+
hadKey = has.call(target, key);
|
|
1155
|
+
}
|
|
1156
|
+
const oldValue = get.call(target, key);
|
|
1157
|
+
target.set(key, value);
|
|
1158
|
+
if (!hadKey) {
|
|
1159
|
+
trigger(target, "add", key, value);
|
|
1160
|
+
} else if (shared.hasChanged(value, oldValue)) {
|
|
1161
|
+
trigger(target, "set", key, value);
|
|
1162
|
+
}
|
|
1163
|
+
return this;
|
|
1164
|
+
},
|
|
1165
|
+
delete(key) {
|
|
1166
|
+
const target = toRaw(this);
|
|
1167
|
+
const { has, get } = getProto(target);
|
|
1168
|
+
let hadKey = has.call(target, key);
|
|
1169
|
+
if (!hadKey) {
|
|
1170
|
+
key = toRaw(key);
|
|
1171
|
+
hadKey = has.call(target, key);
|
|
1172
|
+
}
|
|
1173
|
+
get ? get.call(target, key) : void 0;
|
|
1174
|
+
const result = target.delete(key);
|
|
1175
|
+
if (hadKey) {
|
|
1176
|
+
trigger(target, "delete", key, void 0);
|
|
1177
|
+
}
|
|
1178
|
+
return result;
|
|
1179
|
+
},
|
|
1180
|
+
clear() {
|
|
1181
|
+
const target = toRaw(this);
|
|
1182
|
+
const hadItems = target.size !== 0;
|
|
1183
|
+
const result = target.clear();
|
|
1184
|
+
if (hadItems) {
|
|
1185
|
+
trigger(
|
|
1186
|
+
target,
|
|
1187
|
+
"clear",
|
|
1188
|
+
void 0,
|
|
1189
|
+
void 0);
|
|
1190
|
+
}
|
|
1191
|
+
return result;
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
);
|
|
1195
|
+
const iteratorMethods = [
|
|
1196
|
+
"keys",
|
|
1197
|
+
"values",
|
|
1198
|
+
"entries",
|
|
1199
|
+
Symbol.iterator
|
|
1200
|
+
];
|
|
1201
|
+
iteratorMethods.forEach((method) => {
|
|
1202
|
+
instrumentations[method] = createIterableMethod(method, readonly, shallow);
|
|
1203
|
+
});
|
|
1204
|
+
return instrumentations;
|
|
1205
|
+
}
|
|
1206
|
+
function createInstrumentationGetter(isReadonly2, shallow) {
|
|
1207
|
+
const instrumentations = createInstrumentations(isReadonly2, shallow);
|
|
1208
|
+
return (target, key, receiver) => {
|
|
1209
|
+
if (key === "__v_isReactive") {
|
|
1210
|
+
return !isReadonly2;
|
|
1211
|
+
} else if (key === "__v_isReadonly") {
|
|
1212
|
+
return isReadonly2;
|
|
1213
|
+
} else if (key === "__v_raw") {
|
|
1214
|
+
return target;
|
|
1215
|
+
}
|
|
1216
|
+
return Reflect.get(
|
|
1217
|
+
shared.hasOwn(instrumentations, key) && key in target ? instrumentations : target,
|
|
1218
|
+
key,
|
|
1219
|
+
receiver
|
|
1220
|
+
);
|
|
1221
|
+
};
|
|
1222
|
+
}
|
|
1223
|
+
const mutableCollectionHandlers = {
|
|
1224
|
+
get: /* @__PURE__ */ createInstrumentationGetter(false, false)
|
|
1225
|
+
};
|
|
1226
|
+
const shallowCollectionHandlers = {
|
|
1227
|
+
get: /* @__PURE__ */ createInstrumentationGetter(false, true)
|
|
1228
|
+
};
|
|
1229
|
+
const readonlyCollectionHandlers = {
|
|
1230
|
+
get: /* @__PURE__ */ createInstrumentationGetter(true, false)
|
|
1231
|
+
};
|
|
1232
|
+
const shallowReadonlyCollectionHandlers = {
|
|
1233
|
+
get: /* @__PURE__ */ createInstrumentationGetter(true, true)
|
|
1234
|
+
};
|
|
1235
|
+
|
|
1236
|
+
const reactiveMap = /* @__PURE__ */ new WeakMap();
|
|
1237
|
+
const shallowReactiveMap = /* @__PURE__ */ new WeakMap();
|
|
1238
|
+
const readonlyMap = /* @__PURE__ */ new WeakMap();
|
|
1239
|
+
const shallowReadonlyMap = /* @__PURE__ */ new WeakMap();
|
|
1240
|
+
function targetTypeMap(rawType) {
|
|
1241
|
+
switch (rawType) {
|
|
1242
|
+
case "Object":
|
|
1243
|
+
case "Array":
|
|
1244
|
+
return 1 /* COMMON */;
|
|
1245
|
+
case "Map":
|
|
1246
|
+
case "Set":
|
|
1247
|
+
case "WeakMap":
|
|
1248
|
+
case "WeakSet":
|
|
1249
|
+
return 2 /* COLLECTION */;
|
|
1250
|
+
default:
|
|
1251
|
+
return 0 /* INVALID */;
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
function getTargetType(value) {
|
|
1255
|
+
return value["__v_skip"] || !Object.isExtensible(value) ? 0 /* INVALID */ : targetTypeMap(shared.toRawType(value));
|
|
1256
|
+
}
|
|
1257
|
+
// @__NO_SIDE_EFFECTS__
|
|
1258
|
+
function reactive(target) {
|
|
1259
|
+
if (/* @__PURE__ */ isReadonly(target)) {
|
|
1260
|
+
return target;
|
|
1261
|
+
}
|
|
1262
|
+
return createReactiveObject(
|
|
1263
|
+
target,
|
|
1264
|
+
false,
|
|
1265
|
+
mutableHandlers,
|
|
1266
|
+
mutableCollectionHandlers,
|
|
1267
|
+
reactiveMap
|
|
1268
|
+
);
|
|
1269
|
+
}
|
|
1270
|
+
// @__NO_SIDE_EFFECTS__
|
|
1271
|
+
function shallowReactive(target) {
|
|
1272
|
+
return createReactiveObject(
|
|
1273
|
+
target,
|
|
1274
|
+
false,
|
|
1275
|
+
shallowReactiveHandlers,
|
|
1276
|
+
shallowCollectionHandlers,
|
|
1277
|
+
shallowReactiveMap
|
|
1278
|
+
);
|
|
1279
|
+
}
|
|
1280
|
+
// @__NO_SIDE_EFFECTS__
|
|
1281
|
+
function readonly(target) {
|
|
1282
|
+
return createReactiveObject(
|
|
1283
|
+
target,
|
|
1284
|
+
true,
|
|
1285
|
+
readonlyHandlers,
|
|
1286
|
+
readonlyCollectionHandlers,
|
|
1287
|
+
readonlyMap
|
|
1288
|
+
);
|
|
1289
|
+
}
|
|
1290
|
+
// @__NO_SIDE_EFFECTS__
|
|
1291
|
+
function shallowReadonly(target) {
|
|
1292
|
+
return createReactiveObject(
|
|
1293
|
+
target,
|
|
1294
|
+
true,
|
|
1295
|
+
shallowReadonlyHandlers,
|
|
1296
|
+
shallowReadonlyCollectionHandlers,
|
|
1297
|
+
shallowReadonlyMap
|
|
1298
|
+
);
|
|
1299
|
+
}
|
|
1300
|
+
function createReactiveObject(target, isReadonly2, baseHandlers, collectionHandlers, proxyMap) {
|
|
1301
|
+
if (!shared.isObject(target)) {
|
|
1302
|
+
return target;
|
|
1303
|
+
}
|
|
1304
|
+
if (target["__v_raw"] && !(isReadonly2 && target["__v_isReactive"])) {
|
|
1305
|
+
return target;
|
|
1306
|
+
}
|
|
1307
|
+
const targetType = getTargetType(target);
|
|
1308
|
+
if (targetType === 0 /* INVALID */) {
|
|
1309
|
+
return target;
|
|
1310
|
+
}
|
|
1311
|
+
const existingProxy = proxyMap.get(target);
|
|
1312
|
+
if (existingProxy) {
|
|
1313
|
+
return existingProxy;
|
|
1314
|
+
}
|
|
1315
|
+
const proxy = new Proxy(
|
|
1316
|
+
target,
|
|
1317
|
+
targetType === 2 /* COLLECTION */ ? collectionHandlers : baseHandlers
|
|
1318
|
+
);
|
|
1319
|
+
proxyMap.set(target, proxy);
|
|
1320
|
+
return proxy;
|
|
1321
|
+
}
|
|
1322
|
+
// @__NO_SIDE_EFFECTS__
|
|
1323
|
+
function isReactive(value) {
|
|
1324
|
+
if (/* @__PURE__ */ isReadonly(value)) {
|
|
1325
|
+
return /* @__PURE__ */ isReactive(value["__v_raw"]);
|
|
1326
|
+
}
|
|
1327
|
+
return !!(value && value["__v_isReactive"]);
|
|
1328
|
+
}
|
|
1329
|
+
// @__NO_SIDE_EFFECTS__
|
|
1330
|
+
function isReadonly(value) {
|
|
1331
|
+
return !!(value && value["__v_isReadonly"]);
|
|
1332
|
+
}
|
|
1333
|
+
// @__NO_SIDE_EFFECTS__
|
|
1334
|
+
function isShallow(value) {
|
|
1335
|
+
return !!(value && value["__v_isShallow"]);
|
|
1336
|
+
}
|
|
1337
|
+
// @__NO_SIDE_EFFECTS__
|
|
1338
|
+
function isProxy(value) {
|
|
1339
|
+
return value ? !!value["__v_raw"] : false;
|
|
1340
|
+
}
|
|
1341
|
+
// @__NO_SIDE_EFFECTS__
|
|
1342
|
+
function toRaw(observed) {
|
|
1343
|
+
const raw = observed && observed["__v_raw"];
|
|
1344
|
+
return raw ? /* @__PURE__ */ toRaw(raw) : observed;
|
|
1345
|
+
}
|
|
1346
|
+
function markRaw(value) {
|
|
1347
|
+
if (!shared.hasOwn(value, "__v_skip") && Object.isExtensible(value)) {
|
|
1348
|
+
shared.def(value, "__v_skip", true);
|
|
1349
|
+
}
|
|
1350
|
+
return value;
|
|
1351
|
+
}
|
|
1352
|
+
const toReactive = (value) => shared.isObject(value) ? /* @__PURE__ */ reactive(value) : value;
|
|
1353
|
+
const toReadonly = (value) => shared.isObject(value) ? /* @__PURE__ */ readonly(value) : value;
|
|
1354
|
+
|
|
1355
|
+
// @__NO_SIDE_EFFECTS__
|
|
1356
|
+
function isRef(r) {
|
|
1357
|
+
return r ? r["__v_isRef"] === true : false;
|
|
1358
|
+
}
|
|
1359
|
+
// @__NO_SIDE_EFFECTS__
|
|
1360
|
+
function ref(value) {
|
|
1361
|
+
return createRef(value, false);
|
|
1362
|
+
}
|
|
1363
|
+
// @__NO_SIDE_EFFECTS__
|
|
1364
|
+
function shallowRef(value) {
|
|
1365
|
+
return createRef(value, true);
|
|
1366
|
+
}
|
|
1367
|
+
function createRef(rawValue, shallow) {
|
|
1368
|
+
if (/* @__PURE__ */ isRef(rawValue)) {
|
|
1369
|
+
return rawValue;
|
|
1370
|
+
}
|
|
1371
|
+
return new RefImpl(rawValue, shallow);
|
|
1372
|
+
}
|
|
1373
|
+
class RefImpl {
|
|
1374
|
+
constructor(value, isShallow2) {
|
|
1375
|
+
this.dep = new Dep();
|
|
1376
|
+
this["__v_isRef"] = true;
|
|
1377
|
+
this["__v_isShallow"] = false;
|
|
1378
|
+
this._rawValue = isShallow2 ? value : toRaw(value);
|
|
1379
|
+
this._value = isShallow2 ? value : toReactive(value);
|
|
1380
|
+
this["__v_isShallow"] = isShallow2;
|
|
1381
|
+
}
|
|
1382
|
+
get value() {
|
|
1383
|
+
{
|
|
1384
|
+
this.dep.track();
|
|
1385
|
+
}
|
|
1386
|
+
return this._value;
|
|
1387
|
+
}
|
|
1388
|
+
set value(newValue) {
|
|
1389
|
+
const oldValue = this._rawValue;
|
|
1390
|
+
const useDirectValue = this["__v_isShallow"] || isShallow(newValue) || isReadonly(newValue);
|
|
1391
|
+
newValue = useDirectValue ? newValue : toRaw(newValue);
|
|
1392
|
+
if (shared.hasChanged(newValue, oldValue)) {
|
|
1393
|
+
this._rawValue = newValue;
|
|
1394
|
+
this._value = useDirectValue ? newValue : toReactive(newValue);
|
|
1395
|
+
{
|
|
1396
|
+
this.dep.trigger();
|
|
1397
|
+
}
|
|
1398
|
+
}
|
|
1399
|
+
}
|
|
1400
|
+
}
|
|
1401
|
+
function triggerRef(ref2) {
|
|
1402
|
+
if (ref2.dep) {
|
|
1403
|
+
{
|
|
1404
|
+
ref2.dep.trigger();
|
|
1405
|
+
}
|
|
1406
|
+
}
|
|
1407
|
+
}
|
|
1408
|
+
function unref(ref2) {
|
|
1409
|
+
return /* @__PURE__ */ isRef(ref2) ? ref2.value : ref2;
|
|
1410
|
+
}
|
|
1411
|
+
function toValue(source) {
|
|
1412
|
+
return shared.isFunction(source) ? source() : unref(source);
|
|
1413
|
+
}
|
|
1414
|
+
const shallowUnwrapHandlers = {
|
|
1415
|
+
get: (target, key, receiver) => key === "__v_raw" ? target : unref(Reflect.get(target, key, receiver)),
|
|
1416
|
+
set: (target, key, value, receiver) => {
|
|
1417
|
+
const oldValue = target[key];
|
|
1418
|
+
if (/* @__PURE__ */ isRef(oldValue) && !/* @__PURE__ */ isRef(value)) {
|
|
1419
|
+
oldValue.value = value;
|
|
1420
|
+
return true;
|
|
1421
|
+
} else {
|
|
1422
|
+
return Reflect.set(target, key, value, receiver);
|
|
1423
|
+
}
|
|
1424
|
+
}
|
|
1425
|
+
};
|
|
1426
|
+
function proxyRefs(objectWithRefs) {
|
|
1427
|
+
return isReactive(objectWithRefs) ? objectWithRefs : new Proxy(objectWithRefs, shallowUnwrapHandlers);
|
|
1428
|
+
}
|
|
1429
|
+
class CustomRefImpl {
|
|
1430
|
+
constructor(factory) {
|
|
1431
|
+
this["__v_isRef"] = true;
|
|
1432
|
+
this._value = void 0;
|
|
1433
|
+
const dep = this.dep = new Dep();
|
|
1434
|
+
const { get, set } = factory(dep.track.bind(dep), dep.trigger.bind(dep));
|
|
1435
|
+
this._get = get;
|
|
1436
|
+
this._set = set;
|
|
1437
|
+
}
|
|
1438
|
+
get value() {
|
|
1439
|
+
return this._value = this._get();
|
|
1440
|
+
}
|
|
1441
|
+
set value(newVal) {
|
|
1442
|
+
this._set(newVal);
|
|
1443
|
+
}
|
|
1444
|
+
}
|
|
1445
|
+
function customRef(factory) {
|
|
1446
|
+
return new CustomRefImpl(factory);
|
|
1447
|
+
}
|
|
1448
|
+
// @__NO_SIDE_EFFECTS__
|
|
1449
|
+
function toRefs(object) {
|
|
1450
|
+
const ret = shared.isArray(object) ? new Array(object.length) : {};
|
|
1451
|
+
for (const key in object) {
|
|
1452
|
+
ret[key] = propertyToRef(object, key);
|
|
1453
|
+
}
|
|
1454
|
+
return ret;
|
|
1455
|
+
}
|
|
1456
|
+
class ObjectRefImpl {
|
|
1457
|
+
constructor(_object, _key, _defaultValue) {
|
|
1458
|
+
this._object = _object;
|
|
1459
|
+
this._key = _key;
|
|
1460
|
+
this._defaultValue = _defaultValue;
|
|
1461
|
+
this["__v_isRef"] = true;
|
|
1462
|
+
this._value = void 0;
|
|
1463
|
+
this._raw = toRaw(_object);
|
|
1464
|
+
let shallow = true;
|
|
1465
|
+
let obj = _object;
|
|
1466
|
+
if (!shared.isArray(_object) || !shared.isIntegerKey(String(_key))) {
|
|
1467
|
+
do {
|
|
1468
|
+
shallow = !isProxy(obj) || isShallow(obj);
|
|
1469
|
+
} while (shallow && (obj = obj["__v_raw"]));
|
|
1470
|
+
}
|
|
1471
|
+
this._shallow = shallow;
|
|
1472
|
+
}
|
|
1473
|
+
get value() {
|
|
1474
|
+
let val = this._object[this._key];
|
|
1475
|
+
if (this._shallow) {
|
|
1476
|
+
val = unref(val);
|
|
1477
|
+
}
|
|
1478
|
+
return this._value = val === void 0 ? this._defaultValue : val;
|
|
1479
|
+
}
|
|
1480
|
+
set value(newVal) {
|
|
1481
|
+
if (this._shallow && /* @__PURE__ */ isRef(this._raw[this._key])) {
|
|
1482
|
+
const nestedRef = this._object[this._key];
|
|
1483
|
+
if (/* @__PURE__ */ isRef(nestedRef)) {
|
|
1484
|
+
nestedRef.value = newVal;
|
|
1485
|
+
return;
|
|
1486
|
+
}
|
|
1487
|
+
}
|
|
1488
|
+
this._object[this._key] = newVal;
|
|
1489
|
+
}
|
|
1490
|
+
get dep() {
|
|
1491
|
+
return getDepFromReactive(this._raw, this._key);
|
|
1492
|
+
}
|
|
1493
|
+
}
|
|
1494
|
+
class GetterRefImpl {
|
|
1495
|
+
constructor(_getter) {
|
|
1496
|
+
this._getter = _getter;
|
|
1497
|
+
this["__v_isRef"] = true;
|
|
1498
|
+
this["__v_isReadonly"] = true;
|
|
1499
|
+
this._value = void 0;
|
|
1500
|
+
}
|
|
1501
|
+
get value() {
|
|
1502
|
+
return this._value = this._getter();
|
|
1503
|
+
}
|
|
1504
|
+
}
|
|
1505
|
+
// @__NO_SIDE_EFFECTS__
|
|
1506
|
+
function toRef(source, key, defaultValue) {
|
|
1507
|
+
if (/* @__PURE__ */ isRef(source)) {
|
|
1508
|
+
return source;
|
|
1509
|
+
} else if (shared.isFunction(source)) {
|
|
1510
|
+
return new GetterRefImpl(source);
|
|
1511
|
+
} else if (shared.isObject(source) && arguments.length > 1) {
|
|
1512
|
+
return propertyToRef(source, key, defaultValue);
|
|
1513
|
+
} else {
|
|
1514
|
+
return /* @__PURE__ */ ref(source);
|
|
1515
|
+
}
|
|
1516
|
+
}
|
|
1517
|
+
function propertyToRef(source, key, defaultValue) {
|
|
1518
|
+
return new ObjectRefImpl(source, key, defaultValue);
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1521
|
+
class ComputedRefImpl {
|
|
1522
|
+
constructor(fn, setter, isSSR) {
|
|
1523
|
+
this.fn = fn;
|
|
1524
|
+
this.setter = setter;
|
|
1525
|
+
/**
|
|
1526
|
+
* @internal
|
|
1527
|
+
*/
|
|
1528
|
+
this._value = void 0;
|
|
1529
|
+
/**
|
|
1530
|
+
* @internal
|
|
1531
|
+
*/
|
|
1532
|
+
this.dep = new Dep(this);
|
|
1533
|
+
/**
|
|
1534
|
+
* @internal
|
|
1535
|
+
*/
|
|
1536
|
+
this.__v_isRef = true;
|
|
1537
|
+
// TODO isolatedDeclarations "__v_isReadonly"
|
|
1538
|
+
// A computed is also a subscriber that tracks other deps
|
|
1539
|
+
/**
|
|
1540
|
+
* @internal
|
|
1541
|
+
*/
|
|
1542
|
+
this.deps = void 0;
|
|
1543
|
+
/**
|
|
1544
|
+
* @internal
|
|
1545
|
+
*/
|
|
1546
|
+
this.depsTail = void 0;
|
|
1547
|
+
/**
|
|
1548
|
+
* @internal
|
|
1549
|
+
*/
|
|
1550
|
+
this.flags = 16;
|
|
1551
|
+
/**
|
|
1552
|
+
* @internal
|
|
1553
|
+
*/
|
|
1554
|
+
this.globalVersion = globalVersion - 1;
|
|
1555
|
+
/**
|
|
1556
|
+
* @internal
|
|
1557
|
+
*/
|
|
1558
|
+
this.next = void 0;
|
|
1559
|
+
// for backwards compat
|
|
1560
|
+
this.effect = this;
|
|
1561
|
+
this["__v_isReadonly"] = !setter;
|
|
1562
|
+
this.isSSR = isSSR;
|
|
1563
|
+
}
|
|
1564
|
+
/**
|
|
1565
|
+
* @internal
|
|
1566
|
+
*/
|
|
1567
|
+
notify() {
|
|
1568
|
+
this.flags |= 16;
|
|
1569
|
+
if (!(this.flags & 8) && // avoid infinite self recursion
|
|
1570
|
+
activeSub !== this) {
|
|
1571
|
+
batch(this, true);
|
|
1572
|
+
return true;
|
|
1573
|
+
}
|
|
1574
|
+
}
|
|
1575
|
+
get value() {
|
|
1576
|
+
const link = this.dep.track();
|
|
1577
|
+
refreshComputed(this);
|
|
1578
|
+
if (link) {
|
|
1579
|
+
link.version = this.dep.version;
|
|
1580
|
+
}
|
|
1581
|
+
return this._value;
|
|
1582
|
+
}
|
|
1583
|
+
set value(newValue) {
|
|
1584
|
+
if (this.setter) {
|
|
1585
|
+
this.setter(newValue);
|
|
1586
|
+
}
|
|
1587
|
+
}
|
|
1588
|
+
}
|
|
1589
|
+
// @__NO_SIDE_EFFECTS__
|
|
1590
|
+
function computed(getterOrOptions, debugOptions, isSSR = false) {
|
|
1591
|
+
let getter;
|
|
1592
|
+
let setter;
|
|
1593
|
+
if (shared.isFunction(getterOrOptions)) {
|
|
1594
|
+
getter = getterOrOptions;
|
|
1595
|
+
} else {
|
|
1596
|
+
getter = getterOrOptions.get;
|
|
1597
|
+
setter = getterOrOptions.set;
|
|
1598
|
+
}
|
|
1599
|
+
const cRef = new ComputedRefImpl(getter, setter, isSSR);
|
|
1600
|
+
return cRef;
|
|
1601
|
+
}
|
|
1602
|
+
|
|
1603
|
+
const TrackOpTypes = {
|
|
1604
|
+
"GET": "get",
|
|
1605
|
+
"HAS": "has",
|
|
1606
|
+
"ITERATE": "iterate"
|
|
1607
|
+
};
|
|
1608
|
+
const TriggerOpTypes = {
|
|
1609
|
+
"SET": "set",
|
|
1610
|
+
"ADD": "add",
|
|
1611
|
+
"DELETE": "delete",
|
|
1612
|
+
"CLEAR": "clear"
|
|
1613
|
+
};
|
|
1614
|
+
const ReactiveFlags = {
|
|
1615
|
+
"SKIP": "__v_skip",
|
|
1616
|
+
"IS_REACTIVE": "__v_isReactive",
|
|
1617
|
+
"IS_READONLY": "__v_isReadonly",
|
|
1618
|
+
"IS_SHALLOW": "__v_isShallow",
|
|
1619
|
+
"RAW": "__v_raw",
|
|
1620
|
+
"IS_REF": "__v_isRef"
|
|
1621
|
+
};
|
|
1622
|
+
|
|
1623
|
+
const WatchErrorCodes = {
|
|
1624
|
+
"WATCH_GETTER": 2,
|
|
1625
|
+
"2": "WATCH_GETTER",
|
|
1626
|
+
"WATCH_CALLBACK": 3,
|
|
1627
|
+
"3": "WATCH_CALLBACK",
|
|
1628
|
+
"WATCH_CLEANUP": 4,
|
|
1629
|
+
"4": "WATCH_CLEANUP"
|
|
1630
|
+
};
|
|
1631
|
+
const INITIAL_WATCHER_VALUE = {};
|
|
1632
|
+
const cleanupMap = /* @__PURE__ */ new WeakMap();
|
|
1633
|
+
let activeWatcher = void 0;
|
|
1634
|
+
function getCurrentWatcher() {
|
|
1635
|
+
return activeWatcher;
|
|
1636
|
+
}
|
|
1637
|
+
function onWatcherCleanup(cleanupFn, failSilently = false, owner = activeWatcher) {
|
|
1638
|
+
if (owner) {
|
|
1639
|
+
let cleanups = cleanupMap.get(owner);
|
|
1640
|
+
if (!cleanups) cleanupMap.set(owner, cleanups = []);
|
|
1641
|
+
cleanups.push(cleanupFn);
|
|
1642
|
+
}
|
|
1643
|
+
}
|
|
1644
|
+
function watch(source, cb, options = shared.EMPTY_OBJ) {
|
|
1645
|
+
const { immediate, deep, once, scheduler, augmentJob, call } = options;
|
|
1646
|
+
const reactiveGetter = (source2) => {
|
|
1647
|
+
if (deep) return source2;
|
|
1648
|
+
if (isShallow(source2) || deep === false || deep === 0)
|
|
1649
|
+
return traverse(source2, 1);
|
|
1650
|
+
return traverse(source2);
|
|
1651
|
+
};
|
|
1652
|
+
let effect;
|
|
1653
|
+
let getter;
|
|
1654
|
+
let cleanup;
|
|
1655
|
+
let boundCleanup;
|
|
1656
|
+
let forceTrigger = false;
|
|
1657
|
+
let isMultiSource = false;
|
|
1658
|
+
if (isRef(source)) {
|
|
1659
|
+
getter = () => source.value;
|
|
1660
|
+
forceTrigger = isShallow(source);
|
|
1661
|
+
} else if (isReactive(source)) {
|
|
1662
|
+
getter = () => reactiveGetter(source);
|
|
1663
|
+
forceTrigger = true;
|
|
1664
|
+
} else if (shared.isArray(source)) {
|
|
1665
|
+
isMultiSource = true;
|
|
1666
|
+
forceTrigger = source.some((s) => isReactive(s) || isShallow(s));
|
|
1667
|
+
getter = () => source.map((s) => {
|
|
1668
|
+
if (isRef(s)) {
|
|
1669
|
+
return s.value;
|
|
1670
|
+
} else if (isReactive(s)) {
|
|
1671
|
+
return reactiveGetter(s);
|
|
1672
|
+
} else if (shared.isFunction(s)) {
|
|
1673
|
+
return call ? call(s, 2) : s();
|
|
1674
|
+
} else ;
|
|
1675
|
+
});
|
|
1676
|
+
} else if (shared.isFunction(source)) {
|
|
1677
|
+
if (cb) {
|
|
1678
|
+
getter = call ? () => call(source, 2) : source;
|
|
1679
|
+
} else {
|
|
1680
|
+
getter = () => {
|
|
1681
|
+
if (cleanup) {
|
|
1682
|
+
pauseTracking();
|
|
1683
|
+
try {
|
|
1684
|
+
cleanup();
|
|
1685
|
+
} finally {
|
|
1686
|
+
resetTracking();
|
|
1687
|
+
}
|
|
1688
|
+
}
|
|
1689
|
+
const currentEffect = activeWatcher;
|
|
1690
|
+
activeWatcher = effect;
|
|
1691
|
+
try {
|
|
1692
|
+
return call ? call(source, 3, [boundCleanup]) : source(boundCleanup);
|
|
1693
|
+
} finally {
|
|
1694
|
+
activeWatcher = currentEffect;
|
|
1695
|
+
}
|
|
1696
|
+
};
|
|
1697
|
+
}
|
|
1698
|
+
} else {
|
|
1699
|
+
getter = shared.NOOP;
|
|
1700
|
+
}
|
|
1701
|
+
if (cb && deep) {
|
|
1702
|
+
const baseGetter = getter;
|
|
1703
|
+
const depth = deep === true ? Infinity : deep;
|
|
1704
|
+
getter = () => traverse(baseGetter(), depth);
|
|
1705
|
+
}
|
|
1706
|
+
const scope = getCurrentScope();
|
|
1707
|
+
const watchHandle = () => {
|
|
1708
|
+
effect.stop();
|
|
1709
|
+
if (scope && scope.active) {
|
|
1710
|
+
shared.remove(scope.effects, effect);
|
|
1711
|
+
}
|
|
1712
|
+
};
|
|
1713
|
+
if (once && cb) {
|
|
1714
|
+
const _cb = cb;
|
|
1715
|
+
cb = (...args) => {
|
|
1716
|
+
_cb(...args);
|
|
1717
|
+
watchHandle();
|
|
1718
|
+
};
|
|
1719
|
+
}
|
|
1720
|
+
let oldValue = isMultiSource ? new Array(source.length).fill(INITIAL_WATCHER_VALUE) : INITIAL_WATCHER_VALUE;
|
|
1721
|
+
const job = (immediateFirstRun) => {
|
|
1722
|
+
if (!(effect.flags & 1) || !effect.dirty && !immediateFirstRun) {
|
|
1723
|
+
return;
|
|
1724
|
+
}
|
|
1725
|
+
if (cb) {
|
|
1726
|
+
const newValue = effect.run();
|
|
1727
|
+
if (deep || forceTrigger || (isMultiSource ? newValue.some((v, i) => shared.hasChanged(v, oldValue[i])) : shared.hasChanged(newValue, oldValue))) {
|
|
1728
|
+
if (cleanup) {
|
|
1729
|
+
cleanup();
|
|
1730
|
+
}
|
|
1731
|
+
const currentWatcher = activeWatcher;
|
|
1732
|
+
activeWatcher = effect;
|
|
1733
|
+
try {
|
|
1734
|
+
const args = [
|
|
1735
|
+
newValue,
|
|
1736
|
+
// pass undefined as the old value when it's changed for the first time
|
|
1737
|
+
oldValue === INITIAL_WATCHER_VALUE ? void 0 : isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE ? [] : oldValue,
|
|
1738
|
+
boundCleanup
|
|
1739
|
+
];
|
|
1740
|
+
oldValue = newValue;
|
|
1741
|
+
call ? call(cb, 3, args) : (
|
|
1742
|
+
// @ts-expect-error
|
|
1743
|
+
cb(...args)
|
|
1744
|
+
);
|
|
1745
|
+
} finally {
|
|
1746
|
+
activeWatcher = currentWatcher;
|
|
1747
|
+
}
|
|
1748
|
+
}
|
|
1749
|
+
} else {
|
|
1750
|
+
effect.run();
|
|
1751
|
+
}
|
|
1752
|
+
};
|
|
1753
|
+
if (augmentJob) {
|
|
1754
|
+
augmentJob(job);
|
|
1755
|
+
}
|
|
1756
|
+
effect = new ReactiveEffect(getter);
|
|
1757
|
+
effect.scheduler = scheduler ? () => scheduler(job, false) : job;
|
|
1758
|
+
boundCleanup = (fn) => onWatcherCleanup(fn, false, effect);
|
|
1759
|
+
cleanup = effect.onStop = () => {
|
|
1760
|
+
const cleanups = cleanupMap.get(effect);
|
|
1761
|
+
if (cleanups) {
|
|
1762
|
+
if (call) {
|
|
1763
|
+
call(cleanups, 4);
|
|
1764
|
+
} else {
|
|
1765
|
+
for (const cleanup2 of cleanups) cleanup2();
|
|
1766
|
+
}
|
|
1767
|
+
cleanupMap.delete(effect);
|
|
1768
|
+
}
|
|
1769
|
+
};
|
|
1770
|
+
if (cb) {
|
|
1771
|
+
if (immediate) {
|
|
1772
|
+
job(true);
|
|
1773
|
+
} else {
|
|
1774
|
+
oldValue = effect.run();
|
|
1775
|
+
}
|
|
1776
|
+
} else if (scheduler) {
|
|
1777
|
+
scheduler(job.bind(null, true), true);
|
|
1778
|
+
} else {
|
|
1779
|
+
effect.run();
|
|
1780
|
+
}
|
|
1781
|
+
watchHandle.pause = effect.pause.bind(effect);
|
|
1782
|
+
watchHandle.resume = effect.resume.bind(effect);
|
|
1783
|
+
watchHandle.stop = watchHandle;
|
|
1784
|
+
return watchHandle;
|
|
1785
|
+
}
|
|
1786
|
+
function traverse(value, depth = Infinity, seen) {
|
|
1787
|
+
if (depth <= 0 || !shared.isObject(value) || value["__v_skip"]) {
|
|
1788
|
+
return value;
|
|
1789
|
+
}
|
|
1790
|
+
seen = seen || /* @__PURE__ */ new Map();
|
|
1791
|
+
if ((seen.get(value) || 0) >= depth) {
|
|
1792
|
+
return value;
|
|
1793
|
+
}
|
|
1794
|
+
seen.set(value, depth);
|
|
1795
|
+
depth--;
|
|
1796
|
+
if (isRef(value)) {
|
|
1797
|
+
traverse(value.value, depth, seen);
|
|
1798
|
+
} else if (shared.isArray(value)) {
|
|
1799
|
+
for (let i = 0; i < value.length; i++) {
|
|
1800
|
+
traverse(value[i], depth, seen);
|
|
1801
|
+
}
|
|
1802
|
+
} else if (shared.isSet(value) || shared.isMap(value)) {
|
|
1803
|
+
value.forEach((v) => {
|
|
1804
|
+
traverse(v, depth, seen);
|
|
1805
|
+
});
|
|
1806
|
+
} else if (shared.isPlainObject(value)) {
|
|
1807
|
+
for (const key in value) {
|
|
1808
|
+
traverse(value[key], depth, seen);
|
|
1809
|
+
}
|
|
1810
|
+
for (const key of Object.getOwnPropertySymbols(value)) {
|
|
1811
|
+
if (Object.prototype.propertyIsEnumerable.call(value, key)) {
|
|
1812
|
+
traverse(value[key], depth, seen);
|
|
1813
|
+
}
|
|
1814
|
+
}
|
|
1815
|
+
}
|
|
1816
|
+
return value;
|
|
1817
|
+
}
|
|
1818
|
+
|
|
1819
|
+
exports.ARRAY_ITERATE_KEY = ARRAY_ITERATE_KEY;
|
|
1820
|
+
exports.EffectFlags = EffectFlags;
|
|
1821
|
+
exports.EffectScope = EffectScope;
|
|
1822
|
+
exports.ITERATE_KEY = ITERATE_KEY;
|
|
1823
|
+
exports.MAP_KEY_ITERATE_KEY = MAP_KEY_ITERATE_KEY;
|
|
1824
|
+
exports.ReactiveEffect = ReactiveEffect;
|
|
1825
|
+
exports.ReactiveFlags = ReactiveFlags;
|
|
1826
|
+
exports.TrackOpTypes = TrackOpTypes;
|
|
1827
|
+
exports.TriggerOpTypes = TriggerOpTypes;
|
|
1828
|
+
exports.WatchErrorCodes = WatchErrorCodes;
|
|
1829
|
+
exports.computed = computed;
|
|
1830
|
+
exports.customRef = customRef;
|
|
1831
|
+
exports.effect = effect;
|
|
1832
|
+
exports.effectScope = effectScope;
|
|
1833
|
+
exports.enableTracking = enableTracking;
|
|
1834
|
+
exports.getCurrentScope = getCurrentScope;
|
|
1835
|
+
exports.getCurrentWatcher = getCurrentWatcher;
|
|
1836
|
+
exports.isProxy = isProxy;
|
|
1837
|
+
exports.isReactive = isReactive;
|
|
1838
|
+
exports.isReadonly = isReadonly;
|
|
1839
|
+
exports.isRef = isRef;
|
|
1840
|
+
exports.isShallow = isShallow;
|
|
1841
|
+
exports.markRaw = markRaw;
|
|
1842
|
+
exports.onEffectCleanup = onEffectCleanup;
|
|
1843
|
+
exports.onScopeDispose = onScopeDispose;
|
|
1844
|
+
exports.onWatcherCleanup = onWatcherCleanup;
|
|
1845
|
+
exports.pauseTracking = pauseTracking;
|
|
1846
|
+
exports.proxyRefs = proxyRefs;
|
|
1847
|
+
exports.reactive = reactive;
|
|
1848
|
+
exports.reactiveReadArray = reactiveReadArray;
|
|
1849
|
+
exports.readonly = readonly;
|
|
1850
|
+
exports.ref = ref;
|
|
1851
|
+
exports.resetTracking = resetTracking;
|
|
1852
|
+
exports.shallowReactive = shallowReactive;
|
|
1853
|
+
exports.shallowReadArray = shallowReadArray;
|
|
1854
|
+
exports.shallowReadonly = shallowReadonly;
|
|
1855
|
+
exports.shallowRef = shallowRef;
|
|
1856
|
+
exports.stop = stop;
|
|
1857
|
+
exports.toRaw = toRaw;
|
|
1858
|
+
exports.toReactive = toReactive;
|
|
1859
|
+
exports.toReadonly = toReadonly;
|
|
1860
|
+
exports.toRef = toRef;
|
|
1861
|
+
exports.toRefs = toRefs;
|
|
1862
|
+
exports.toValue = toValue;
|
|
1863
|
+
exports.track = track;
|
|
1864
|
+
exports.traverse = traverse;
|
|
1865
|
+
exports.trigger = trigger;
|
|
1866
|
+
exports.triggerRef = triggerRef;
|
|
1867
|
+
exports.unref = unref;
|
|
1868
|
+
exports.watch = watch;
|