@chrisjowen/wheelhouse 0.1.0 → 0.2.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/README.md +87 -56
- package/build/client/_app/immutable/assets/0.CKUND0qa.css +1 -0
- package/build/client/_app/immutable/assets/0.CKUND0qa.css.br +0 -0
- package/build/client/_app/immutable/assets/0.CKUND0qa.css.gz +0 -0
- package/build/client/_app/immutable/assets/DocSheet.CaO2v_qh.css +1 -0
- package/build/client/_app/immutable/assets/DocSheet.CaO2v_qh.css.br +0 -0
- package/build/client/_app/immutable/assets/DocSheet.CaO2v_qh.css.gz +0 -0
- package/build/client/_app/immutable/chunks/08Q01-Mc.js +1 -0
- package/build/client/_app/immutable/chunks/08Q01-Mc.js.br +0 -0
- package/build/client/_app/immutable/chunks/08Q01-Mc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/0TvUxbRv.js +1 -0
- package/build/client/_app/immutable/chunks/0TvUxbRv.js.br +2 -0
- package/build/client/_app/immutable/chunks/0TvUxbRv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/3Of2kn6M.js +5 -0
- package/build/client/_app/immutable/chunks/3Of2kn6M.js.br +0 -0
- package/build/client/_app/immutable/chunks/3Of2kn6M.js.gz +0 -0
- package/build/client/_app/immutable/chunks/5fVeMNeJ.js +1 -0
- package/build/client/_app/immutable/chunks/5fVeMNeJ.js.br +0 -0
- package/build/client/_app/immutable/chunks/5fVeMNeJ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/A8GZ5Uuc.js +1 -0
- package/build/client/_app/immutable/chunks/A8GZ5Uuc.js.br +0 -0
- package/build/client/_app/immutable/chunks/A8GZ5Uuc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/AHy1Hzhf.js +1 -0
- package/build/client/_app/immutable/chunks/AHy1Hzhf.js.br +0 -0
- package/build/client/_app/immutable/chunks/AHy1Hzhf.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B3jXa2LJ.js +1 -0
- package/build/client/_app/immutable/chunks/B3jXa2LJ.js.br +0 -0
- package/build/client/_app/immutable/chunks/B3jXa2LJ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BEDHe9fo.js +1 -0
- package/build/client/_app/immutable/chunks/BEDHe9fo.js.br +0 -0
- package/build/client/_app/immutable/chunks/BEDHe9fo.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BJ_s8GdZ.js +2 -0
- package/build/client/_app/immutable/chunks/BJ_s8GdZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/BJ_s8GdZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BKd0HUNP.js +1 -0
- package/build/client/_app/immutable/chunks/BKd0HUNP.js.br +1 -0
- package/build/client/_app/immutable/chunks/BKd0HUNP.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BLL4xbEj.js +1 -0
- package/build/client/_app/immutable/chunks/BLL4xbEj.js.br +0 -0
- package/build/client/_app/immutable/chunks/BLL4xbEj.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BUUcNufp.js +1 -0
- package/build/client/_app/immutable/chunks/BUUcNufp.js.br +0 -0
- package/build/client/_app/immutable/chunks/BUUcNufp.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BVXUMEgB.js +1 -0
- package/build/client/_app/immutable/chunks/BVXUMEgB.js.br +0 -0
- package/build/client/_app/immutable/chunks/BVXUMEgB.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BY5XjwMm.js +1 -0
- package/build/client/_app/immutable/chunks/BY5XjwMm.js.br +0 -0
- package/build/client/_app/immutable/chunks/BY5XjwMm.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BdZ-2OIO.js +1 -0
- package/build/client/_app/immutable/chunks/BdZ-2OIO.js.br +0 -0
- package/build/client/_app/immutable/chunks/BdZ-2OIO.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BdvB_H6l.js +1 -0
- package/build/client/_app/immutable/chunks/BdvB_H6l.js.br +0 -0
- package/build/client/_app/immutable/chunks/BdvB_H6l.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BkLV0FAz.js +1 -0
- package/build/client/_app/immutable/chunks/BkLV0FAz.js.br +0 -0
- package/build/client/_app/immutable/chunks/BkLV0FAz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bm8huziG.js +1 -0
- package/build/client/_app/immutable/chunks/Bm8huziG.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bm8huziG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BnMEvq-8.js +1 -0
- package/build/client/_app/immutable/chunks/BnMEvq-8.js.br +0 -0
- package/build/client/_app/immutable/chunks/BnMEvq-8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BngQrigD.js +1 -0
- package/build/client/_app/immutable/chunks/BngQrigD.js.br +0 -0
- package/build/client/_app/immutable/chunks/BngQrigD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BqQtpLRF.js +5 -0
- package/build/client/_app/immutable/chunks/BqQtpLRF.js.br +0 -0
- package/build/client/_app/immutable/chunks/BqQtpLRF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bx2K4OII.js +1 -0
- package/build/client/_app/immutable/chunks/Bx2K4OII.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bx2K4OII.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bypc6r1_.js +1 -0
- package/build/client/_app/immutable/chunks/Bypc6r1_.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bypc6r1_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C16DfZ5a.js +1 -0
- package/build/client/_app/immutable/chunks/C16DfZ5a.js.br +1 -0
- package/build/client/_app/immutable/chunks/C16DfZ5a.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C3Yi7wCu.js +1 -0
- package/build/client/_app/immutable/chunks/C3Yi7wCu.js.br +0 -0
- package/build/client/_app/immutable/chunks/C3Yi7wCu.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C3e5IrpE.js +1 -0
- package/build/client/_app/immutable/chunks/C3e5IrpE.js.br +0 -0
- package/build/client/_app/immutable/chunks/C3e5IrpE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C3o9xHsB.js +1 -0
- package/build/client/_app/immutable/chunks/C3o9xHsB.js.br +0 -0
- package/build/client/_app/immutable/chunks/C3o9xHsB.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C6q0X9xa.js +1 -0
- package/build/client/_app/immutable/chunks/C6q0X9xa.js.br +0 -0
- package/build/client/_app/immutable/chunks/C6q0X9xa.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C74jQQYs.js +1 -0
- package/build/client/_app/immutable/chunks/C74jQQYs.js.br +0 -0
- package/build/client/_app/immutable/chunks/C74jQQYs.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CBHYGBBU.js +4 -0
- package/build/client/_app/immutable/chunks/CBHYGBBU.js.br +0 -0
- package/build/client/_app/immutable/chunks/CBHYGBBU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CD3hbDYc.js +1 -0
- package/build/client/_app/immutable/chunks/CD3hbDYc.js.br +0 -0
- package/build/client/_app/immutable/chunks/CD3hbDYc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CE3Ue5FU.js +1 -0
- package/build/client/_app/immutable/chunks/CE3Ue5FU.js.br +0 -0
- package/build/client/_app/immutable/chunks/CE3Ue5FU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CGGuNYjO.js +1 -0
- package/build/client/_app/immutable/chunks/CGGuNYjO.js.br +0 -0
- package/build/client/_app/immutable/chunks/CGGuNYjO.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CH_9Gtej.js +1 -0
- package/build/client/_app/immutable/chunks/CH_9Gtej.js.br +0 -0
- package/build/client/_app/immutable/chunks/CH_9Gtej.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CIj4gWfs.js +1 -0
- package/build/client/_app/immutable/chunks/CIj4gWfs.js.br +0 -0
- package/build/client/_app/immutable/chunks/CIj4gWfs.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CJ3NIasv.js +1 -0
- package/build/client/_app/immutable/chunks/CJ3NIasv.js.br +0 -0
- package/build/client/_app/immutable/chunks/CJ3NIasv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CKEJURpk.js +1 -0
- package/build/client/_app/immutable/chunks/CKEJURpk.js.br +0 -0
- package/build/client/_app/immutable/chunks/CKEJURpk.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CPmGhju_.js +1 -0
- package/build/client/_app/immutable/chunks/CPmGhju_.js.br +1 -0
- package/build/client/_app/immutable/chunks/CPmGhju_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CXcL7cOb.js +1 -0
- package/build/client/_app/immutable/chunks/CXcL7cOb.js.br +0 -0
- package/build/client/_app/immutable/chunks/CXcL7cOb.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CXgAyvD-.js +1 -0
- package/build/client/_app/immutable/chunks/CXgAyvD-.js.br +0 -0
- package/build/client/_app/immutable/chunks/CXgAyvD-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CZBcpBnY.js +1 -0
- package/build/client/_app/immutable/chunks/CZBcpBnY.js.br +0 -0
- package/build/client/_app/immutable/chunks/CZBcpBnY.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CZPeboo-.js +1 -0
- package/build/client/_app/immutable/chunks/CZPeboo-.js.br +0 -0
- package/build/client/_app/immutable/chunks/CZPeboo-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cb-gOV5k.js +1 -0
- package/build/client/_app/immutable/chunks/Cb-gOV5k.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cb-gOV5k.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cl72MTSX.js +1 -0
- package/build/client/_app/immutable/chunks/Cl72MTSX.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cl72MTSX.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cl7r7DFs.js +1 -0
- package/build/client/_app/immutable/chunks/Cl7r7DFs.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cl7r7DFs.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cm8CSK8p.js +1 -0
- package/build/client/_app/immutable/chunks/Cm8CSK8p.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cm8CSK8p.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cng04DK0.js +1 -0
- package/build/client/_app/immutable/chunks/Cng04DK0.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cng04DK0.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CqOnPLsz.js +1 -0
- package/build/client/_app/immutable/chunks/CqOnPLsz.js.br +0 -0
- package/build/client/_app/immutable/chunks/CqOnPLsz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cqy1lT7e.js +1 -0
- package/build/client/_app/immutable/chunks/Cqy1lT7e.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cqy1lT7e.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CrjvgIhR.js +1 -0
- package/build/client/_app/immutable/chunks/CrjvgIhR.js.br +0 -0
- package/build/client/_app/immutable/chunks/CrjvgIhR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CsRBDrRN.js +1 -0
- package/build/client/_app/immutable/chunks/CsRBDrRN.js.br +0 -0
- package/build/client/_app/immutable/chunks/CsRBDrRN.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CwwFbl61.js +62 -0
- package/build/client/_app/immutable/chunks/CwwFbl61.js.br +0 -0
- package/build/client/_app/immutable/chunks/CwwFbl61.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D0JSbOCt.js +1 -0
- package/build/client/_app/immutable/chunks/D0JSbOCt.js.br +0 -0
- package/build/client/_app/immutable/chunks/D0JSbOCt.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D25j-NnT.js +1 -0
- package/build/client/_app/immutable/chunks/D25j-NnT.js.br +0 -0
- package/build/client/_app/immutable/chunks/D25j-NnT.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D5hwKKRv.js +1 -0
- package/build/client/_app/immutable/chunks/D5hwKKRv.js.br +0 -0
- package/build/client/_app/immutable/chunks/D5hwKKRv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DBxUIz0k.js +1 -0
- package/build/client/_app/immutable/chunks/DBxUIz0k.js.br +0 -0
- package/build/client/_app/immutable/chunks/DBxUIz0k.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DH7t4M9x.js +1 -0
- package/build/client/_app/immutable/chunks/DH7t4M9x.js.br +0 -0
- package/build/client/_app/immutable/chunks/DH7t4M9x.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DIsXG5DF.js +1 -0
- package/build/client/_app/immutable/chunks/DIsXG5DF.js.br +0 -0
- package/build/client/_app/immutable/chunks/DIsXG5DF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DNgh8jh8.js +1 -0
- package/build/client/_app/immutable/chunks/DNgh8jh8.js.br +0 -0
- package/build/client/_app/immutable/chunks/DNgh8jh8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DOWSzKHL.js +1 -0
- package/build/client/_app/immutable/chunks/DOWSzKHL.js.br +0 -0
- package/build/client/_app/immutable/chunks/DOWSzKHL.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DSbOoIPC.js +1 -0
- package/build/client/_app/immutable/chunks/DSbOoIPC.js.br +0 -0
- package/build/client/_app/immutable/chunks/DSbOoIPC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DUYBhCSA.js +1 -0
- package/build/client/_app/immutable/chunks/DUYBhCSA.js.br +0 -0
- package/build/client/_app/immutable/chunks/DUYBhCSA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DfDxKk91.js +2 -0
- package/build/client/_app/immutable/chunks/DfDxKk91.js.br +0 -0
- package/build/client/_app/immutable/chunks/DfDxKk91.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DhfQd5fc.js +1 -0
- package/build/client/_app/immutable/chunks/DhfQd5fc.js.br +0 -0
- package/build/client/_app/immutable/chunks/DhfQd5fc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DmYFgZ4g.js +6 -0
- package/build/client/_app/immutable/chunks/DmYFgZ4g.js.br +0 -0
- package/build/client/_app/immutable/chunks/DmYFgZ4g.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dn-83VwV.js +1 -0
- package/build/client/_app/immutable/chunks/Dn-83VwV.js.br +1 -0
- package/build/client/_app/immutable/chunks/Dn-83VwV.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dnnuh6qK.js +1 -0
- package/build/client/_app/immutable/chunks/Dnnuh6qK.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dnnuh6qK.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DocaGLjv.js +1 -0
- package/build/client/_app/immutable/chunks/DocaGLjv.js.br +0 -0
- package/build/client/_app/immutable/chunks/DocaGLjv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dqlbq2bD.js +2 -0
- package/build/client/_app/immutable/chunks/Dqlbq2bD.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dqlbq2bD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DugIbHkD.js +1 -0
- package/build/client/_app/immutable/chunks/DugIbHkD.js.br +0 -0
- package/build/client/_app/immutable/chunks/DugIbHkD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dy07EIjs.js +1 -0
- package/build/client/_app/immutable/chunks/Dy07EIjs.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dy07EIjs.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dy_X9Fgu.js +1 -0
- package/build/client/_app/immutable/chunks/Dy_X9Fgu.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dy_X9Fgu.js.gz +0 -0
- package/build/client/_app/immutable/chunks/I26VQaTs.js +2 -0
- package/build/client/_app/immutable/chunks/I26VQaTs.js.br +0 -0
- package/build/client/_app/immutable/chunks/I26VQaTs.js.gz +0 -0
- package/build/client/_app/immutable/chunks/IsTbwoyV.js +1 -0
- package/build/client/_app/immutable/chunks/IsTbwoyV.js.br +0 -0
- package/build/client/_app/immutable/chunks/IsTbwoyV.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Km1CymxJ.js +1 -0
- package/build/client/_app/immutable/chunks/Km1CymxJ.js.br +0 -0
- package/build/client/_app/immutable/chunks/Km1CymxJ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Me06-nC7.js +1 -0
- package/build/client/_app/immutable/chunks/Me06-nC7.js.br +0 -0
- package/build/client/_app/immutable/chunks/Me06-nC7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/PQApLOOr.js +1 -0
- package/build/client/_app/immutable/chunks/PQApLOOr.js.br +0 -0
- package/build/client/_app/immutable/chunks/PQApLOOr.js.gz +0 -0
- package/build/client/_app/immutable/chunks/WcvPAxq7.js +1 -0
- package/build/client/_app/immutable/chunks/WcvPAxq7.js.br +0 -0
- package/build/client/_app/immutable/chunks/WcvPAxq7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ZoG8qKMx.js +1 -0
- package/build/client/_app/immutable/chunks/ZoG8qKMx.js.br +0 -0
- package/build/client/_app/immutable/chunks/ZoG8qKMx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/cZnJ0mAm.js +7 -0
- package/build/client/_app/immutable/chunks/cZnJ0mAm.js.br +0 -0
- package/build/client/_app/immutable/chunks/cZnJ0mAm.js.gz +0 -0
- package/build/client/_app/immutable/chunks/qb_JS6rP.js +1 -0
- package/build/client/_app/immutable/chunks/qb_JS6rP.js.br +0 -0
- package/build/client/_app/immutable/chunks/qb_JS6rP.js.gz +0 -0
- package/build/client/_app/immutable/chunks/riwaJFkb.js +3 -0
- package/build/client/_app/immutable/chunks/riwaJFkb.js.br +0 -0
- package/build/client/_app/immutable/chunks/riwaJFkb.js.gz +0 -0
- package/build/client/_app/immutable/chunks/wDLVOANX.js +2 -0
- package/build/client/_app/immutable/chunks/wDLVOANX.js.br +0 -0
- package/build/client/_app/immutable/chunks/wDLVOANX.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.CNnpPQtw.js +2 -0
- package/build/client/_app/immutable/entry/app.CNnpPQtw.js.br +0 -0
- package/build/client/_app/immutable/entry/app.CNnpPQtw.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.BGpEqKH0.js +1 -0
- package/build/client/_app/immutable/entry/start.BGpEqKH0.js.br +0 -0
- package/build/client/_app/immutable/entry/start.BGpEqKH0.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.CGlGdRWB.js +8 -0
- package/build/client/_app/immutable/nodes/0.CGlGdRWB.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.CGlGdRWB.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.B4M0q1v4.js +1 -0
- package/build/client/_app/immutable/nodes/1.B4M0q1v4.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.B4M0q1v4.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.LJhhE6c8.js +3 -0
- package/build/client/_app/immutable/nodes/10.LJhhE6c8.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.LJhhE6c8.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.CM_xAozz.js +1 -0
- package/build/client/_app/immutable/nodes/11.CM_xAozz.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.CM_xAozz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.UENbuJYy.js +14 -0
- package/build/client/_app/immutable/nodes/12.UENbuJYy.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.UENbuJYy.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.NbAfy9an.js +150 -0
- package/build/client/_app/immutable/nodes/13.NbAfy9an.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.NbAfy9an.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.BgyPK-jf.js +11 -0
- package/build/client/_app/immutable/nodes/15.BgyPK-jf.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.BgyPK-jf.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.DcgniGJK.js +9 -0
- package/build/client/_app/immutable/nodes/16.DcgniGJK.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.DcgniGJK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.CB9DXHxS.js +2 -0
- package/build/client/_app/immutable/nodes/17.CB9DXHxS.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.CB9DXHxS.js.gz +0 -0
- package/build/client/_app/immutable/nodes/18.BHa-KoGE.js +6 -0
- package/build/client/_app/immutable/nodes/18.BHa-KoGE.js.br +0 -0
- package/build/client/_app/immutable/nodes/18.BHa-KoGE.js.gz +0 -0
- package/build/client/_app/immutable/nodes/19._VaGaWBD.js +1 -0
- package/build/client/_app/immutable/nodes/19._VaGaWBD.js.br +0 -0
- package/build/client/_app/immutable/nodes/19._VaGaWBD.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.DKxd0T79.js +14 -0
- package/build/client/_app/immutable/nodes/2.DKxd0T79.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.DKxd0T79.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.C10FVhEw.js +10 -0
- package/build/client/_app/immutable/nodes/20.C10FVhEw.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.C10FVhEw.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.BhyJIr3P.js +6 -0
- package/build/client/_app/immutable/nodes/21.BhyJIr3P.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.BhyJIr3P.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.CcRoRYc-.js +5 -0
- package/build/client/_app/immutable/nodes/3.CcRoRYc-.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.CcRoRYc-.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.BulJqGnt.js +1 -0
- package/build/client/_app/immutable/nodes/4.BulJqGnt.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.BulJqGnt.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.BT3hraTU.js +1 -0
- package/build/client/_app/immutable/nodes/5.BT3hraTU.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.BT3hraTU.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.DtNMha3Y.js +7 -0
- package/build/client/_app/immutable/nodes/6.DtNMha3Y.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.DtNMha3Y.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.Bv6Vn8eC.js +4 -0
- package/build/client/_app/immutable/nodes/7.Bv6Vn8eC.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.Bv6Vn8eC.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.DgQz7-Cb.js +1 -0
- package/build/client/_app/immutable/nodes/9.DgQz7-Cb.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.DgQz7-Cb.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/handler.js +7 -7
- package/build/index.js +7 -7
- package/build/server/chunks/chunks/AllowanceMeter.js-DBpmESX6.js +42 -0
- package/build/server/chunks/chunks/DecisionCard.js-B1YgF5EF.js +446 -0
- package/build/server/chunks/chunks/DictateTextarea.js-CbkGsd1h.js +415 -0
- package/build/server/chunks/chunks/DocSheet.js-BPPDMi3P.js +50 -0
- package/build/server/chunks/chunks/EtaLine.js-5SCP9O1f.js +79 -0
- package/build/server/chunks/chunks/EveryProjectSwitch.js-DzcwkHh4.js +200 -0
- package/build/server/chunks/chunks/Icon.js-CVZZ-yuB.js +129 -0
- package/build/server/chunks/chunks/InsightsNav.js-Cmn5y1to.js +18 -0
- package/build/server/chunks/chunks/InstallPlugin.js-B46b-IrK.js +45 -0
- package/build/server/chunks/chunks/LinkedText.js-COjHV297.js +43 -0
- package/build/server/chunks/chunks/ProjectBanner.js-ByPp7Y_e.js +111 -0
- package/build/server/chunks/chunks/ProjectStateMark.js-BkRD8cX4.js +61 -0
- package/build/server/chunks/chunks/QuestionList.js-CppuauNj.js +187 -0
- package/build/server/chunks/chunks/ResizableRail.js-BS8hRLV0.js +395 -0
- package/build/server/chunks/chunks/SettingsNav.js-BtJIv5cc.js +22 -0
- package/build/server/chunks/chunks/SlotContent.js-B4p1QLQN.js +748 -0
- package/build/server/chunks/chunks/StageTrack.js-DHvZX7Bl.js +111 -0
- package/build/server/chunks/chunks/TimeBar.js-CUFKEJW9.js +32 -0
- package/build/server/chunks/chunks/TimeLegend.js-B3Wl61jM.js +29 -0
- package/build/server/chunks/chunks/aliases.svelte.js-C_vCoKdk.js +138 -0
- package/build/server/chunks/chunks/arrow-down.js-Bt3fQooI.js +18 -0
- package/build/server/chunks/chunks/arrow-left.js-BKiSMzvI.js +18 -0
- package/build/server/chunks/chunks/arrow-right.js-CNYqcx0M.js +18 -0
- package/build/server/chunks/chunks/arrow-up.js-DHbXk79z.js +18 -0
- package/build/server/chunks/chunks/attachments.js-BAnnqpd-.js +48 -0
- package/build/server/chunks/chunks/bell.js-CXJp-3UZ.js +150 -0
- package/build/server/chunks/chunks/berths.js-CuAE9lHW.js +268 -0
- package/build/server/chunks/chunks/book-open.js-C2rohN3N.js +23 -0
- package/build/server/chunks/chunks/button.js-BF2PsvWw.js +7311 -0
- package/build/server/chunks/chunks/chat.svelte.js--pRzj_Xo.js +545 -0
- package/build/server/chunks/chunks/check.js-32sYHVxG.js +15 -0
- package/build/server/chunks/chunks/checks.js-DR3fVVpO.js +242 -0
- package/build/server/chunks/chunks/chevron-down.js-CH53s_me.js +15 -0
- package/build/server/chunks/chunks/chevron-left.js-D5RHY-kD.js +15 -0
- package/build/server/chunks/chunks/chevron-right.js-DCBAqAae.js +15 -0
- package/build/server/chunks/chunks/circle-alert.js-XTuAj7ZH.js +23 -0
- package/build/server/chunks/chunks/circle-dashed.js-fXv_bIo-.js +24 -0
- package/build/server/chunks/chunks/circle-dot.js-C950Kosw.js +18 -0
- package/build/server/chunks/chunks/client.js-B_5mNqUe.js +24 -0
- package/build/server/chunks/chunks/clock.js-CHhHTWK_.js +18 -0
- package/build/server/chunks/chunks/compass.js-k2sRSGWn.js +23 -0
- package/build/server/chunks/chunks/detail.js-DDoqeh1A.js +144 -0
- package/build/server/chunks/chunks/docpath.js-D27w_pf9.js +47 -0
- package/build/server/chunks/chunks/external-link.js-BQs1euhR.js +24 -0
- package/build/server/chunks/chunks/file-text.js-CnuVvHlB.js +26 -0
- package/build/server/chunks/chunks/gauge.js-Cbb1aqE7.js +35 -0
- package/build/server/chunks/chunks/git-pull-request.js-BMzktlcs.js +20 -0
- package/build/server/chunks/chunks/hand.js-BA9yKAan.js +25 -0
- package/build/server/chunks/chunks/harbour.js-PHLHOFea.js +117 -0
- package/build/server/chunks/chunks/html.js-FW6Ia4bL.js +8 -0
- package/build/server/chunks/chunks/http.js-CBM8xgUM.js +25 -0
- package/build/server/chunks/chunks/http2.js-fIdVBJaD.js +26 -0
- package/build/server/chunks/chunks/inbox.js-Dv8a1ecX.js +184 -0
- package/build/server/chunks/chunks/inbox.svelte.js-n7K3YnGB.js +171 -0
- package/build/server/chunks/chunks/index-server.js-DsObimPA.js +9 -0
- package/build/server/chunks/chunks/index-server2.js-Fb2GE8KQ.js +17 -0
- package/build/server/chunks/chunks/index.js-B0NFhRTN.js +1524 -0
- package/build/server/chunks/chunks/index2.js-Bxt1T6_K.js +46 -0
- package/build/server/chunks/chunks/internal.js-BlgsFxfY.js +146 -0
- package/build/server/chunks/chunks/live.svelte.js-By2dseJB.js +253 -0
- package/build/server/chunks/chunks/loader-circle.js-rQHvIWN7.js +16 -0
- package/build/server/chunks/chunks/markdown.js-CApgGpeX.js +2634 -0
- package/build/server/chunks/chunks/message-circle-question-mark.js-DbmaS9k_.js +25 -0
- package/build/server/chunks/chunks/message-square-text.js-CyRiNGB8.js +25 -0
- package/build/server/chunks/chunks/message-square.js-XK15WVZq.js +22 -0
- package/build/server/chunks/chunks/messages-square.js-BXH8BHfd.js +28 -0
- package/build/server/chunks/chunks/minus.js-DKvkj8VD.js +15 -0
- package/build/server/chunks/chunks/monitor-play.js-4ed3ghDf.js +28 -0
- package/build/server/chunks/chunks/nav.js-DwnXJgxd.js +29 -0
- package/build/server/chunks/chunks/plus.js-caVrjGZc.js +15 -0
- package/build/server/chunks/chunks/preview.js-hrimfbCG.js +69 -0
- package/build/server/chunks/chunks/prreview.js-Cg9LDxJp.js +92 -0
- package/build/server/chunks/chunks/repo.js-CuWUNKbP.js +33 -0
- package/build/server/chunks/chunks/requests.js-DiL4Poa9.js +42 -0
- package/build/server/chunks/chunks/restart.js-Dv1_ODgZ.js +12 -0
- package/build/server/chunks/chunks/root.js-60iebdW4.js +3105 -0
- package/build/server/chunks/chunks/rotate-cw.js-M4SHOpYI.js +21 -0
- package/build/server/chunks/chunks/runtime.js-BuGWYyZZ.js +16470 -0
- package/build/server/chunks/chunks/scale.js-S5g8YUqL.js +21 -0
- package/build/server/chunks/chunks/scroll-lock.js-Ci_ylINL.js +2811 -0
- package/build/server/chunks/chunks/service.js-DQK1kj-4.js +914 -0
- package/build/server/chunks/chunks/settings.js-C_6kvzhM.js +862 -0
- package/build/server/chunks/chunks/square-terminal.js-D9D9_9_V.js +30 -0
- package/build/server/chunks/chunks/store.js-XXOawxPN.js +317 -0
- package/build/server/chunks/chunks/tone.js-Dxsl-adt.js +31 -0
- package/build/server/chunks/chunks/triangle-alert.js-ClLszsZE.js +25 -0
- package/build/server/chunks/chunks/uploads.js-D45pIvPk.js +107 -0
- package/build/server/chunks/chunks/urls.js-BrlC6XZ8.js +8 -0
- package/build/server/chunks/chunks/utils.js-BJgm9WbO.js +2985 -0
- package/build/server/chunks/chunks/vault.js-CTaWe09z.js +162 -0
- package/build/server/chunks/chunks/view.js-CrOFjYk4.js +76 -0
- package/build/server/chunks/chunks/views.js-DyGxvskG.js +124 -0
- package/build/server/chunks/chunks/words.js-Cte4wOB4.js +48 -0
- package/build/server/chunks/chunks/x.js-YxaUOlq9.js +18 -0
- package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-DSkVUNdc.js +90 -0
- package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-CYnLRjOH.js +106 -0
- package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-CG8IGmSp.js +49 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-fmzKkrXb.js +83 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-BgIU3add.js +119 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-Ba9E_53E.js +45 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-BQZBERsR.js +51 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-BnT3VHSx.js +44 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-DRYHwJ7R.js +66 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-BD2B1ByG.js +54 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-DB-m2WWH.js +44 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_day_/_id_/_name_/_server.ts.js-CK3swjFX.js +32 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_server.ts.js-WCE63uer.js +40 -0
- package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-D5-3acjK.js +36 -0
- package/build/server/chunks/entries/endpoints/api/gateway/_server.ts.js-B2I7jHdc.js +100 -0
- package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-BFSqEG5B.js +36 -0
- package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-BpUaHfsf.js +60 -0
- package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-BNRD4HyF.js +51 -0
- package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-7808SNDM.js +36 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-B-cQTShG.js +71 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-CPAHSih2.js +23 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-DW3M1pzH.js +59 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-DDTSw0pX.js +35 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-BlD-1l6V.js +36 -0
- package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-IT-jeApI.js +35 -0
- package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-DQqKN2MF.js +38 -0
- package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-D7rx-bwI.js +23 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-BC0HjK9M.js +41 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-aVmcjStV.js +50 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-BuHN_WYU.js +62 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-Dx0x7sws.js +49 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-CcCDMmmF.js +72 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-BsOOyTNM.js +55 -0
- package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-DGyU8Zmu.js +55 -0
- package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-1B8fEiat.js +44 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-D4CKazw-.js +41 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-CUKo26Ia.js +60 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-BOa2lgvP.js +48 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-BmI8Ofms.js +93 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-C2mJi22c.js +110 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/review/_server.ts.js-8pN6fHl8.js +43 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/review/ask/_server.ts.js-D6D9O8Su.js +49 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/review/check/_server.ts.js-BAaCwzOf.js +48 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/review/guide/_server.ts.js-DfP2iNta.js +48 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/review/runs/_run_/stop/_server.ts.js-DZDaSSYT.js +41 -0
- package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-CJNUplXf.js +54 -0
- package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-CVqjWsw8.js +23 -0
- package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-CE2zzWtC.js +23 -0
- package/build/server/chunks/entries/endpoints/projects/_server.ts.js-uMp6dcat.js +7 -0
- package/build/server/chunks/entries/fallbacks/error.svelte.js-DnpcUjRk.js +15 -0
- package/build/server/chunks/entries/hooks.server.js-FjSdw_QS.js +54 -0
- package/build/server/chunks/entries/pages/_layout.server.ts.js-BkWAC802.js +22 -0
- package/build/server/chunks/entries/pages/_layout.svelte.js-DstinFjN.js +8746 -0
- package/build/server/chunks/entries/pages/_page.server.ts.js-BXkuWJh7.js +16 -0
- package/build/server/chunks/entries/pages/_page.svelte.js-ehBbQlco.js +2194 -0
- package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-B2YZfjBk.js +11 -0
- package/build/server/chunks/entries/pages/decisions/_page.svelte.js-C3NsHXP-.js +184 -0
- package/build/server/chunks/entries/pages/files/_page.server.ts.js-CT3pm5a6.js +17 -0
- package/build/server/chunks/entries/pages/files/_page.svelte.js-Bj-5ZaJn.js +61 -0
- package/build/server/chunks/entries/pages/harbour/_page.server.ts.js-CcLkegHq.js +46 -0
- package/build/server/chunks/entries/pages/harbour/_page.svelte.js-hBC6QUHZ.js +580 -0
- package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-BazCFIuz.js +11 -0
- package/build/server/chunks/entries/pages/headroom/_page.svelte.js-BLFQjLz8.js +149 -0
- package/build/server/chunks/entries/pages/inbox/_page.svelte.js-rjm303kf.js +185 -0
- package/build/server/chunks/entries/pages/plugins/_page.server.ts.js-D_nxVVQ0.js +11 -0
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-BRQpg3kQ.js +16 -0
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.svelte.js-DazeLLT8.js +52 -0
- package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-BIypd_XU.js +23 -0
- package/build/server/chunks/entries/pages/projects/_id_/_page.svelte.js-DJajtLup.js +945 -0
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-BwAOIwUv.js +21 -0
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.svelte.js-Cm8mxt61.js +74 -0
- package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-CnfqlJgl.js +27 -0
- package/build/server/chunks/entries/pages/projects/_id_/passage/_page.svelte.js-CuMA-rCM.js +433 -0
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-CG14M19O.js +15 -0
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.svelte.js-mtGQO-dJ.js +1880 -0
- package/build/server/chunks/entries/pages/settings/_page.server.ts.js-DnBg1UuM.js +11 -0
- package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-Zgfe-LX9.js +11 -0
- package/build/server/chunks/entries/pages/settings/gateway/_page.svelte.js-BmbSSxk6.js +208 -0
- package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-DZ4oJmnj.js +19 -0
- package/build/server/chunks/entries/pages/settings/plugins/_page.svelte.js-gBZCjZlg.js +1847 -0
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-Dm-tgyir.js +17 -0
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.svelte.js-BFGxdrrb.js +220 -0
- package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-Llp3a0Fb.js +25 -0
- package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-LgJMZ2RE.js +2107 -0
- package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-DuWuEdZ2.js +24 -0
- package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.svelte.js-BOMmvf6G.js +80 -0
- package/build/server/chunks/entries/pages/tasks/_id_/review/_page.server.ts.js-BMQF9I9c.js +15 -0
- package/build/server/chunks/entries/pages/tasks/_id_/review/_page.svelte.js-k659tqiw.js +657 -0
- package/build/server/chunks/entries/pages/time/_page.server.ts.js-DstGu3ji.js +11 -0
- package/build/server/chunks/entries/pages/time/_page.svelte.js-Ckn0YUW_.js +108 -0
- package/build/server/chunks/handler-BRidfBIY.js +1474 -0
- package/build/server/chunks/index.js-Dhoi5wa_.js +4296 -0
- package/build/server/chunks/manifest.js-CF4aVg77.js +537 -0
- package/build/server/chunks/nodes/0.js-B2yTHeOL.js +41 -0
- package/build/server/chunks/nodes/1.js-BoD2_1or.js +9 -0
- package/build/server/chunks/nodes/10.js-C2XmTW8j.js +43 -0
- package/build/server/chunks/nodes/11.js-CAJnQkWH.js +42 -0
- package/build/server/chunks/nodes/12.js-Cu57dOUj.js +43 -0
- package/build/server/chunks/nodes/13.js-1g1BRnk_.js +42 -0
- package/build/server/chunks/nodes/14.js-Cl3VZ6XR.js +12 -0
- package/build/server/chunks/nodes/15.js-BqL5jpLU.js +41 -0
- package/build/server/chunks/nodes/16.js-DibdTAKZ.js +41 -0
- package/build/server/chunks/nodes/17.js-BUFA5Avk.js +44 -0
- package/build/server/chunks/nodes/18.js-cxLrKmMx.js +42 -0
- package/build/server/chunks/nodes/19.js-DMbI3mDp.js +42 -0
- package/build/server/chunks/nodes/2.js-8QSIq2KZ.js +41 -0
- package/build/server/chunks/nodes/20.js-BNXpftag.js +42 -0
- package/build/server/chunks/nodes/21.js-DdJK6h7p.js +41 -0
- package/build/server/chunks/nodes/3.js-DHT7fiTy.js +41 -0
- package/build/server/chunks/nodes/4.js-DvjrLz8n.js +41 -0
- package/build/server/chunks/nodes/5.js-CvUGUQbi.js +45 -0
- package/build/server/chunks/nodes/6.js-ptKHsAn6.js +41 -0
- package/build/server/chunks/nodes/7.js-BigF9SYG.js +9 -0
- package/build/server/chunks/nodes/8.js-D32pPbKa.js +12 -0
- package/build/server/chunks/nodes/9.js-DkS4HHqV.js +41 -0
- package/dist/cli.js +2156 -62
- package/dist/wh-vault.js +1007 -0
- package/package.json +5 -3
- package/plugins/github-issues/.wheelhouse-plugin/plugin.json +44 -0
- package/plugins/github-issues/README.md +16 -0
- package/plugins/github-issues/wheelhouse/server/index.js +463 -0
- package/plugins/project-links/.wheelhouse-plugin/plugin.json +25 -0
- package/plugins/project-links/README.md +17 -0
- package/plugins/project-links/wheelhouse/server/index.js +278 -0
- package/plugins/project-links/wheelhouse/ui/index.js +87 -0
- package/plugins/vault/.wheelhouse-plugin/plugin.json +22 -0
- package/plugins/vault/README.md +18 -0
- package/plugins/vault/wheelhouse/server/index.js +297 -0
- package/build/client/_app/immutable/assets/0.DaQhCSel.css +0 -1
- package/build/client/_app/immutable/assets/0.DaQhCSel.css.br +0 -0
- package/build/client/_app/immutable/assets/0.DaQhCSel.css.gz +0 -0
- package/build/client/_app/immutable/assets/12.DT1C9nmd.css +0 -1
- package/build/client/_app/immutable/assets/12.DT1C9nmd.css.br +0 -0
- package/build/client/_app/immutable/assets/12.DT1C9nmd.css.gz +0 -0
- package/build/client/_app/immutable/assets/14.CjNfSPQ6.css +0 -1
- package/build/client/_app/immutable/assets/14.CjNfSPQ6.css.br +0 -0
- package/build/client/_app/immutable/assets/14.CjNfSPQ6.css.gz +0 -0
- package/build/client/_app/immutable/chunks/36FDwM1G.js +0 -1
- package/build/client/_app/immutable/chunks/36FDwM1G.js.br +0 -0
- package/build/client/_app/immutable/chunks/36FDwM1G.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B1XxiJam.js +0 -1
- package/build/client/_app/immutable/chunks/B1XxiJam.js.br +0 -0
- package/build/client/_app/immutable/chunks/B1XxiJam.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B2wEHue2.js +0 -1
- package/build/client/_app/immutable/chunks/B2wEHue2.js.br +0 -0
- package/build/client/_app/immutable/chunks/B2wEHue2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BAurN1n6.js +0 -2
- package/build/client/_app/immutable/chunks/BAurN1n6.js.br +0 -0
- package/build/client/_app/immutable/chunks/BAurN1n6.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BEAYWcbT.js +0 -1
- package/build/client/_app/immutable/chunks/BEAYWcbT.js.br +0 -0
- package/build/client/_app/immutable/chunks/BEAYWcbT.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BGINfGsV.js +0 -1
- package/build/client/_app/immutable/chunks/BGINfGsV.js.br +0 -4
- package/build/client/_app/immutable/chunks/BGINfGsV.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BHsdHLbF.js +0 -1
- package/build/client/_app/immutable/chunks/BHsdHLbF.js.br +0 -0
- package/build/client/_app/immutable/chunks/BHsdHLbF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BR5v76-T.js +0 -1
- package/build/client/_app/immutable/chunks/BR5v76-T.js.br +0 -0
- package/build/client/_app/immutable/chunks/BR5v76-T.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BUo4hMcM.js +0 -1
- package/build/client/_app/immutable/chunks/BUo4hMcM.js.br +0 -0
- package/build/client/_app/immutable/chunks/BUo4hMcM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BVVO3JPx.js +0 -1
- package/build/client/_app/immutable/chunks/BVVO3JPx.js.br +0 -0
- package/build/client/_app/immutable/chunks/BVVO3JPx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BZm5e4fE.js +0 -1
- package/build/client/_app/immutable/chunks/BZm5e4fE.js.br +0 -0
- package/build/client/_app/immutable/chunks/BZm5e4fE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bfi4vm-w.js +0 -1
- package/build/client/_app/immutable/chunks/Bfi4vm-w.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bfi4vm-w.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BiTivU7x.js +0 -1
- package/build/client/_app/immutable/chunks/BiTivU7x.js.br +0 -0
- package/build/client/_app/immutable/chunks/BiTivU7x.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BiuLIp4b.js +0 -1
- package/build/client/_app/immutable/chunks/BiuLIp4b.js.br +0 -0
- package/build/client/_app/immutable/chunks/BiuLIp4b.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bns_F-QV.js +0 -1
- package/build/client/_app/immutable/chunks/Bns_F-QV.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bns_F-QV.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Brlpgp90.js +0 -1
- package/build/client/_app/immutable/chunks/Brlpgp90.js.br +0 -0
- package/build/client/_app/immutable/chunks/Brlpgp90.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BunkbzFG.js +0 -1
- package/build/client/_app/immutable/chunks/BunkbzFG.js.br +0 -0
- package/build/client/_app/immutable/chunks/BunkbzFG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BwOfqJw9.js +0 -1
- package/build/client/_app/immutable/chunks/BwOfqJw9.js.br +0 -0
- package/build/client/_app/immutable/chunks/BwOfqJw9.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C-xrRA1Y.js +0 -1
- package/build/client/_app/immutable/chunks/C-xrRA1Y.js.br +0 -0
- package/build/client/_app/immutable/chunks/C-xrRA1Y.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C2_XZrIO.js +0 -7
- package/build/client/_app/immutable/chunks/C2_XZrIO.js.br +0 -0
- package/build/client/_app/immutable/chunks/C2_XZrIO.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C2d4bDYU.js +0 -1
- package/build/client/_app/immutable/chunks/C2d4bDYU.js.br +0 -0
- package/build/client/_app/immutable/chunks/C2d4bDYU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C6BQPSOs.js +0 -62
- package/build/client/_app/immutable/chunks/C6BQPSOs.js.br +0 -0
- package/build/client/_app/immutable/chunks/C6BQPSOs.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CDphfOBv.js +0 -1
- package/build/client/_app/immutable/chunks/CDphfOBv.js.br +0 -0
- package/build/client/_app/immutable/chunks/CDphfOBv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CHoQMvOZ.js +0 -1
- package/build/client/_app/immutable/chunks/CHoQMvOZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/CHoQMvOZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CIE0U5Ih.js +0 -1
- package/build/client/_app/immutable/chunks/CIE0U5Ih.js.br +0 -0
- package/build/client/_app/immutable/chunks/CIE0U5Ih.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CLs9Rkbg.js +0 -1
- package/build/client/_app/immutable/chunks/CLs9Rkbg.js.br +0 -0
- package/build/client/_app/immutable/chunks/CLs9Rkbg.js.gz +0 -0
- package/build/client/_app/immutable/chunks/COQ3aAYj.js +0 -1
- package/build/client/_app/immutable/chunks/COQ3aAYj.js.br +0 -0
- package/build/client/_app/immutable/chunks/COQ3aAYj.js.gz +0 -0
- package/build/client/_app/immutable/chunks/COiIt96y.js +0 -1
- package/build/client/_app/immutable/chunks/COiIt96y.js.br +0 -0
- package/build/client/_app/immutable/chunks/COiIt96y.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CQ7gIAH8.js +0 -1
- package/build/client/_app/immutable/chunks/CQ7gIAH8.js.br +0 -2
- package/build/client/_app/immutable/chunks/CQ7gIAH8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CQlHU-Rx.js +0 -1
- package/build/client/_app/immutable/chunks/CQlHU-Rx.js.br +0 -0
- package/build/client/_app/immutable/chunks/CQlHU-Rx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CXfdgbLv.js +0 -1
- package/build/client/_app/immutable/chunks/CXfdgbLv.js.br +0 -0
- package/build/client/_app/immutable/chunks/CXfdgbLv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CeYIQAXD.js +0 -1
- package/build/client/_app/immutable/chunks/CeYIQAXD.js.br +0 -0
- package/build/client/_app/immutable/chunks/CeYIQAXD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CewXGI4o.js +0 -14
- package/build/client/_app/immutable/chunks/CewXGI4o.js.br +0 -0
- package/build/client/_app/immutable/chunks/CewXGI4o.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CfdzAfq2.js +0 -1
- package/build/client/_app/immutable/chunks/CfdzAfq2.js.br +0 -0
- package/build/client/_app/immutable/chunks/CfdzAfq2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CkFDaaNz.js +0 -1
- package/build/client/_app/immutable/chunks/CkFDaaNz.js.br +0 -0
- package/build/client/_app/immutable/chunks/CkFDaaNz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CkLriSVx.js +0 -1
- package/build/client/_app/immutable/chunks/CkLriSVx.js.br +0 -0
- package/build/client/_app/immutable/chunks/CkLriSVx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Clzs_eXS.js +0 -5
- package/build/client/_app/immutable/chunks/Clzs_eXS.js.br +0 -0
- package/build/client/_app/immutable/chunks/Clzs_eXS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CrCQ2NNA.js +0 -1
- package/build/client/_app/immutable/chunks/CrCQ2NNA.js.br +0 -0
- package/build/client/_app/immutable/chunks/CrCQ2NNA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CrgqcyB_.js +0 -1
- package/build/client/_app/immutable/chunks/CrgqcyB_.js.br +0 -0
- package/build/client/_app/immutable/chunks/CrgqcyB_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CtlVBKf-.js +0 -1
- package/build/client/_app/immutable/chunks/CtlVBKf-.js.br +0 -0
- package/build/client/_app/immutable/chunks/CtlVBKf-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D4aeBIhU.js +0 -1
- package/build/client/_app/immutable/chunks/D4aeBIhU.js.br +0 -0
- package/build/client/_app/immutable/chunks/D4aeBIhU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D8Hx-_mj.js +0 -1
- package/build/client/_app/immutable/chunks/D8Hx-_mj.js.br +0 -3
- package/build/client/_app/immutable/chunks/D8Hx-_mj.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DC8T2WRZ.js +0 -1
- package/build/client/_app/immutable/chunks/DC8T2WRZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/DC8T2WRZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DGy76IbW.js +0 -2
- package/build/client/_app/immutable/chunks/DGy76IbW.js.br +0 -0
- package/build/client/_app/immutable/chunks/DGy76IbW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DIABVMrA.js +0 -1
- package/build/client/_app/immutable/chunks/DIABVMrA.js.br +0 -0
- package/build/client/_app/immutable/chunks/DIABVMrA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DLith9Yi.js +0 -1
- package/build/client/_app/immutable/chunks/DLith9Yi.js.br +0 -0
- package/build/client/_app/immutable/chunks/DLith9Yi.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DPTtvukI.js +0 -1
- package/build/client/_app/immutable/chunks/DPTtvukI.js.br +0 -0
- package/build/client/_app/immutable/chunks/DPTtvukI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Da92_52d.js +0 -1
- package/build/client/_app/immutable/chunks/Da92_52d.js.br +0 -0
- package/build/client/_app/immutable/chunks/Da92_52d.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Db0WMrvR.js +0 -1
- package/build/client/_app/immutable/chunks/Db0WMrvR.js.br +0 -0
- package/build/client/_app/immutable/chunks/Db0WMrvR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dlb_KqyS.js +0 -2
- package/build/client/_app/immutable/chunks/Dlb_KqyS.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dlb_KqyS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DmcreR7o.js +0 -1
- package/build/client/_app/immutable/chunks/DmcreR7o.js.br +0 -0
- package/build/client/_app/immutable/chunks/DmcreR7o.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dq9kJk5R.js +0 -1
- package/build/client/_app/immutable/chunks/Dq9kJk5R.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dq9kJk5R.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DxGQT-Hz.js +0 -1
- package/build/client/_app/immutable/chunks/DxGQT-Hz.js.br +0 -0
- package/build/client/_app/immutable/chunks/DxGQT-Hz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ET-O1REu.js +0 -1
- package/build/client/_app/immutable/chunks/ET-O1REu.js.br +0 -0
- package/build/client/_app/immutable/chunks/ET-O1REu.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Ewrw42Vq.js +0 -1
- package/build/client/_app/immutable/chunks/Ewrw42Vq.js.br +0 -0
- package/build/client/_app/immutable/chunks/Ewrw42Vq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/FQ69txbU.js +0 -1
- package/build/client/_app/immutable/chunks/FQ69txbU.js.br +0 -0
- package/build/client/_app/immutable/chunks/FQ69txbU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/L-6wuY5f.js +0 -2
- package/build/client/_app/immutable/chunks/L-6wuY5f.js.br +0 -0
- package/build/client/_app/immutable/chunks/L-6wuY5f.js.gz +0 -0
- package/build/client/_app/immutable/chunks/M201SoVK.js +0 -1
- package/build/client/_app/immutable/chunks/M201SoVK.js.br +0 -1
- package/build/client/_app/immutable/chunks/M201SoVK.js.gz +0 -0
- package/build/client/_app/immutable/chunks/OeqXO44y.js +0 -1
- package/build/client/_app/immutable/chunks/OeqXO44y.js.br +0 -0
- package/build/client/_app/immutable/chunks/OeqXO44y.js.gz +0 -0
- package/build/client/_app/immutable/chunks/PPVm8Dsz.js +0 -1
- package/build/client/_app/immutable/chunks/PPVm8Dsz.js.br +0 -0
- package/build/client/_app/immutable/chunks/PPVm8Dsz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/QAFSHLn2.js +0 -1
- package/build/client/_app/immutable/chunks/QAFSHLn2.js.br +0 -0
- package/build/client/_app/immutable/chunks/QAFSHLn2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Tm9AblHs.js +0 -1
- package/build/client/_app/immutable/chunks/Tm9AblHs.js.br +0 -0
- package/build/client/_app/immutable/chunks/Tm9AblHs.js.gz +0 -0
- package/build/client/_app/immutable/chunks/bvY4yrzM.js +0 -4
- package/build/client/_app/immutable/chunks/bvY4yrzM.js.br +0 -0
- package/build/client/_app/immutable/chunks/bvY4yrzM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/eMSiEzFi.js +0 -1
- package/build/client/_app/immutable/chunks/eMSiEzFi.js.br +0 -0
- package/build/client/_app/immutable/chunks/eMSiEzFi.js.gz +0 -0
- package/build/client/_app/immutable/chunks/iVpzjqp1.js +0 -1
- package/build/client/_app/immutable/chunks/iVpzjqp1.js.br +0 -0
- package/build/client/_app/immutable/chunks/iVpzjqp1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/m3YfhLk1.js +0 -1
- package/build/client/_app/immutable/chunks/m3YfhLk1.js.br +0 -0
- package/build/client/_app/immutable/chunks/m3YfhLk1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/p7x6PRF0.js +0 -1
- package/build/client/_app/immutable/chunks/p7x6PRF0.js.br +0 -0
- package/build/client/_app/immutable/chunks/p7x6PRF0.js.gz +0 -0
- package/build/client/_app/immutable/chunks/t4rxsdjl.js +0 -74
- package/build/client/_app/immutable/chunks/t4rxsdjl.js.br +0 -0
- package/build/client/_app/immutable/chunks/t4rxsdjl.js.gz +0 -0
- package/build/client/_app/immutable/chunks/uD7-7yV9.js +0 -1
- package/build/client/_app/immutable/chunks/uD7-7yV9.js.br +0 -4
- package/build/client/_app/immutable/chunks/uD7-7yV9.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.D22_AlD8.js +0 -2
- package/build/client/_app/immutable/entry/app.D22_AlD8.js.br +0 -0
- package/build/client/_app/immutable/entry/app.D22_AlD8.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.xwa7znED.js +0 -1
- package/build/client/_app/immutable/entry/start.xwa7znED.js.br +0 -0
- package/build/client/_app/immutable/entry/start.xwa7znED.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.DsfUbybd.js +0 -5
- package/build/client/_app/immutable/nodes/0.DsfUbybd.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.DsfUbybd.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.9tnApS8T.js +0 -1
- package/build/client/_app/immutable/nodes/1.9tnApS8T.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.9tnApS8T.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.CbyVViLq.js +0 -14
- package/build/client/_app/immutable/nodes/10.CbyVViLq.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.CbyVViLq.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.xg5UTCOx.js +0 -77
- package/build/client/_app/immutable/nodes/11.xg5UTCOx.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.xg5UTCOx.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.C6hLGaov.js +0 -32
- package/build/client/_app/immutable/nodes/12.C6hLGaov.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.C6hLGaov.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.DHbTeLkm.js +0 -5
- package/build/client/_app/immutable/nodes/13.DHbTeLkm.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.DHbTeLkm.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.BMIOGjF-.js +0 -1
- package/build/client/_app/immutable/nodes/14.BMIOGjF-.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.BMIOGjF-.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.DYSMqa5A.js +0 -10
- package/build/client/_app/immutable/nodes/15.DYSMqa5A.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.DYSMqa5A.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.B0mX0t_j.js +0 -6
- package/build/client/_app/immutable/nodes/16.B0mX0t_j.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.B0mX0t_j.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.CSYV0jmk.js +0 -4
- package/build/client/_app/immutable/nodes/2.CSYV0jmk.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.CSYV0jmk.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.X5qqsIUa.js +0 -5
- package/build/client/_app/immutable/nodes/3.X5qqsIUa.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.X5qqsIUa.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.Di4k8SR2.js +0 -3
- package/build/client/_app/immutable/nodes/4.Di4k8SR2.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.Di4k8SR2.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.DMFYTxVa.js +0 -7
- package/build/client/_app/immutable/nodes/5.DMFYTxVa.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.DMFYTxVa.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.6yDAURLV.js +0 -4
- package/build/client/_app/immutable/nodes/6.6yDAURLV.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.6yDAURLV.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.xxvMU05c.js +0 -1
- package/build/client/_app/immutable/nodes/7.xxvMU05c.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.xxvMU05c.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.GSaWotW8.js +0 -1
- package/build/client/_app/immutable/nodes/8.GSaWotW8.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.GSaWotW8.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.CEiUwDDg.js +0 -1
- package/build/client/_app/immutable/nodes/9.CEiUwDDg.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.CEiUwDDg.js.gz +0 -0
- package/build/server/chunks/chunks/AllowanceMeter.js-C9jRsAGU.js +0 -42
- package/build/server/chunks/chunks/DecisionCard.js-u1VQ9s_v.js +0 -350
- package/build/server/chunks/chunks/DictateTextarea.js-BlEnOzcN.js +0 -85
- package/build/server/chunks/chunks/EtaLine.js-Pa4_VV6V.js +0 -79
- package/build/server/chunks/chunks/Icon.js-D7CY3joB.js +0 -129
- package/build/server/chunks/chunks/InsightsNav.js-BlxFBJfj.js +0 -22
- package/build/server/chunks/chunks/MicButton.js-BZSQAyuM.js +0 -336
- package/build/server/chunks/chunks/QuestionList.js-DglKezUe.js +0 -259
- package/build/server/chunks/chunks/SlotContent.js-YqZXXtRz.js +0 -1977
- package/build/server/chunks/chunks/StageTrack.js-BaorW-yk.js +0 -59
- package/build/server/chunks/chunks/TimeBar.js-k38rc7ZI.js +0 -32
- package/build/server/chunks/chunks/TimeLegend.js-BQVvgsvs.js +0 -29
- package/build/server/chunks/chunks/access.js-CS2pJasF.js +0 -816
- package/build/server/chunks/chunks/anchor.js-ByXDBfbi.js +0 -20
- package/build/server/chunks/chunks/arrow-down.js-DXDJc9EE.js +0 -18
- package/build/server/chunks/chunks/arrow-left.js-6Yey35CE.js +0 -18
- package/build/server/chunks/chunks/arrow-right.js-CfbPWRqu.js +0 -18
- package/build/server/chunks/chunks/arrow-up.js-AhghNbhW.js +0 -18
- package/build/server/chunks/chunks/bell.js-CAlv92RY.js +0 -143
- package/build/server/chunks/chunks/blocks.js-BL9jLCe-.js +0 -710
- package/build/server/chunks/chunks/bus.svelte.js-DRTptEhF.js +0 -9
- package/build/server/chunks/chunks/button.js-HeBqLheH.js +0 -7311
- package/build/server/chunks/chunks/chat.svelte.js-Cgdbtjbw.js +0 -537
- package/build/server/chunks/chunks/check.js-bmUhmMEz.js +0 -15
- package/build/server/chunks/chunks/checks.js-BnIxIaus.js +0 -175
- package/build/server/chunks/chunks/chevron-down.js-D75hVSIe.js +0 -15
- package/build/server/chunks/chunks/chevron-right.js-yhLg_GaH.js +0 -15
- package/build/server/chunks/chunks/circle-dashed.js-Bm3gZCXK.js +0 -24
- package/build/server/chunks/chunks/client.js-BUNengrw.js +0 -24
- package/build/server/chunks/chunks/clock.js-D7JTvRbC.js +0 -18
- package/build/server/chunks/chunks/compass.js-Tq6uiG8I.js +0 -23
- package/build/server/chunks/chunks/detail.js-CSjOmiVi.js +0 -133
- package/build/server/chunks/chunks/external-link.js-WxVF0xXO.js +0 -24
- package/build/server/chunks/chunks/file-text.js-CAo3vdqd.js +0 -26
- package/build/server/chunks/chunks/gauge.js-Dw9bgE72.js +0 -35
- package/build/server/chunks/chunks/git-pull-request.js-Cx1w8BQr.js +0 -20
- package/build/server/chunks/chunks/hammer.js-fp_Kidfj.js +0 -24
- package/build/server/chunks/chunks/hand.js-xkYPYJZj.js +0 -37
- package/build/server/chunks/chunks/harbour.js-xu7EfIHk.js +0 -113
- package/build/server/chunks/chunks/http.js-TzZuOtxn.js +0 -25
- package/build/server/chunks/chunks/http2.js-Cr9xuMRL.js +0 -26
- package/build/server/chunks/chunks/inbox.js-CW2sFmx9.js +0 -114
- package/build/server/chunks/chunks/inbox.svelte.js-OoKhjjWM.js +0 -134
- package/build/server/chunks/chunks/index-server.js-CtyUzIGY.js +0 -17
- package/build/server/chunks/chunks/index-server2.js-DMc-UvjC.js +0 -19
- package/build/server/chunks/chunks/index.js-Bn6j9diM.js +0 -1524
- package/build/server/chunks/chunks/index2.js-CXaRTuov.js +0 -46
- package/build/server/chunks/chunks/internal.js-Co-6PAQm.js +0 -146
- package/build/server/chunks/chunks/live.svelte.js-BRUTNc9D.js +0 -196
- package/build/server/chunks/chunks/loader-circle.js-IYRaUYWq.js +0 -16
- package/build/server/chunks/chunks/message-circle-question-mark.js-DwrMi0ty.js +0 -25
- package/build/server/chunks/chunks/message-square-text.js-N5uEmy8L.js +0 -25
- package/build/server/chunks/chunks/message-square.js-Hp-6BHgG.js +0 -22
- package/build/server/chunks/chunks/minus.js-bsfnwE-h.js +0 -15
- package/build/server/chunks/chunks/monitor-play.js-B7qbbPH6.js +0 -28
- package/build/server/chunks/chunks/preview.js-CVD-Kwks.js +0 -68
- package/build/server/chunks/chunks/prreview.js-C5XxDIu2.js +0 -85
- package/build/server/chunks/chunks/root.js-CQzYN4Pu.js +0 -3105
- package/build/server/chunks/chunks/runtime.js-C0n924wq.js +0 -13280
- package/build/server/chunks/chunks/scale.js-vP4G0lZM.js +0 -21
- package/build/server/chunks/chunks/shield-check.js-PJLnCKD9.js +0 -23
- package/build/server/chunks/chunks/spec.js-B0yI1XqG.js +0 -307
- package/build/server/chunks/chunks/split.js-BsCU24rQ.js +0 -20
- package/build/server/chunks/chunks/square-terminal.js-D5Z4Sl2-.js +0 -47
- package/build/server/chunks/chunks/tone.js-r2qFVrZC.js +0 -30
- package/build/server/chunks/chunks/trash.js-DYFbRevY.js +0 -46
- package/build/server/chunks/chunks/triangle-alert.js-DuE40HSU.js +0 -38
- package/build/server/chunks/chunks/utils.js-DTSGDHlH.js +0 -2956
- package/build/server/chunks/chunks/view.js-BtcLmKUY.js +0 -76
- package/build/server/chunks/chunks/view2.js-BdUXqNlY.js +0 -87
- package/build/server/chunks/chunks/views.js-B0wP-tuB.js +0 -137
- package/build/server/chunks/chunks/waypoints.js-D3HN7bje.js +0 -67
- package/build/server/chunks/chunks/x.js-tlds9Ooz.js +0 -18
- package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-DNHG661Q.js +0 -93
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-XBUQePMq.js +0 -74
- package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-D1tzpRWy.js +0 -110
- package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-DqhQUZUA.js +0 -42
- package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-LsZer0Bi.js +0 -35
- package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-DQob0XkJ.js +0 -57
- package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-DgFjtYYL.js +0 -45
- package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-DOoA4rRW.js +0 -35
- package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-DZQsFY87.js +0 -27
- package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-DuSzTlq5.js +0 -27
- package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-C15XwPXH.js +0 -51
- package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js--gavJO4f.js +0 -27
- package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-CsTy_jT6.js +0 -27
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-BWOcGtOU.js +0 -32
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-Kjwbc2wm.js +0 -41
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-BTIb8CUb.js +0 -53
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-Vh52yDJ9.js +0 -40
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-LJDJLrpB.js +0 -63
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-CdDBYH6K.js +0 -46
- package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-DoElFmWK.js +0 -46
- package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-KiiPnPLF.js +0 -35
- package/build/server/chunks/entries/endpoints/api/specs/_id_/_server.ts.js-LMXTPr04.js +0 -59
- package/build/server/chunks/entries/endpoints/api/specs/_id_/build-request/_server.ts.js-bqjJGIjt.js +0 -47
- package/build/server/chunks/entries/endpoints/api/specs/_id_/comments/_comment_/_server.ts.js-DD1qQE9w.js +0 -36
- package/build/server/chunks/entries/endpoints/api/specs/_id_/comments/_server.ts.js-Bby1xkpH.js +0 -57
- package/build/server/chunks/entries/endpoints/api/specs/_id_/images/_name_/_server.ts.js-CPX8OLQa.js +0 -49
- package/build/server/chunks/entries/endpoints/api/specs/_id_/images/_server.ts.js-BjBV4SVl.js +0 -55
- package/build/server/chunks/entries/endpoints/api/specs/_id_/sent/_server.ts.js-BAqm0IW0.js +0 -36
- package/build/server/chunks/entries/endpoints/api/specs/_id_/turn/_server.ts.js-CNFIHA70.js +0 -82
- package/build/server/chunks/entries/endpoints/api/specs/_server.ts.js-Bix9PKKr.js +0 -40
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-CT7cLDQU.js +0 -32
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-zCsm8UJT.js +0 -51
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-ccyEPbua.js +0 -39
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-eZPQtK6T.js +0 -84
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-CW76hSLW.js +0 -102
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/review/_server.ts.js-Cjuig1dr.js +0 -34
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/review/ask/_server.ts.js-C04r1OFS.js +0 -40
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/review/check/_server.ts.js-Ca5VNJtJ.js +0 -39
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/review/guide/_server.ts.js-BKLIKSUM.js +0 -39
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/review/runs/_run_/stop/_server.ts.js-C-D9zXgK.js +0 -32
- package/build/server/chunks/entries/fallbacks/error.svelte.js-DlN_tCrh.js +0 -15
- package/build/server/chunks/entries/hooks.server.js-Cgq1_RNe.js +0 -40
- package/build/server/chunks/entries/pages/_layout.server.ts.js-B7EWMhm1.js +0 -20
- package/build/server/chunks/entries/pages/_layout.svelte.js-BJuZaosz.js +0 -10454
- package/build/server/chunks/entries/pages/_page.server.ts.js-CrjekE3C.js +0 -16
- package/build/server/chunks/entries/pages/_page.svelte.js-BI4c5H0n.js +0 -3699
- package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-Olm_zS-k.js +0 -11
- package/build/server/chunks/entries/pages/decisions/_page.svelte.js-ClTz3O_K.js +0 -167
- package/build/server/chunks/entries/pages/harbour/_page.server.ts.js-CVhhNUGy.js +0 -20
- package/build/server/chunks/entries/pages/harbour/_page.svelte.js-43FRNSVK.js +0 -1346
- package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-Bv8GukD1.js +0 -11
- package/build/server/chunks/entries/pages/headroom/_page.svelte.js-zmKQdAwy.js +0 -135
- package/build/server/chunks/entries/pages/inbox/_page.svelte.js-wTvAFPNM.js +0 -175
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-BJRmRxez.js +0 -15
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.svelte.js-DfAqJJ3i.js +0 -55
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-DawJ61h-.js +0 -15
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.svelte.js-B472Pugu.js +0 -66
- package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-Cm-4qkeb.js +0 -14
- package/build/server/chunks/entries/pages/projects/_id_/passage/_page.svelte.js-CWjEArXY.js +0 -394
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-DWNW8L5o.js +0 -15
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.svelte.js-iHacn81K.js +0 -1859
- package/build/server/chunks/entries/pages/projects/_page.server.ts.js-BVDM5Frg.js +0 -37
- package/build/server/chunks/entries/pages/projects/_page.svelte.js-B_NQ-Wg3.js +0 -270
- package/build/server/chunks/entries/pages/spec/_page.server.ts.js-B3atEUDm.js +0 -31
- package/build/server/chunks/entries/pages/spec/_page.svelte.js-BJjweG9u.js +0 -1561
- package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-BDQIO7Ft.js +0 -25
- package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-Dr2wwDJG.js +0 -2063
- package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-Bw-3fcQ6.js +0 -24
- package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.svelte.js-DOyZ1QzI.js +0 -145
- package/build/server/chunks/entries/pages/tasks/_id_/review/_page.server.ts.js-CJek9uLa.js +0 -15
- package/build/server/chunks/entries/pages/tasks/_id_/review/_page.svelte.js-BDaRELgE.js +0 -692
- package/build/server/chunks/entries/pages/time/_page.server.ts.js-An6F-Ydg.js +0 -11
- package/build/server/chunks/entries/pages/time/_page.svelte.js-CSXGxvVs.js +0 -107
- package/build/server/chunks/handler-BnRz5A8m.js +0 -1474
- package/build/server/chunks/index.js-C8djlQGs.js +0 -4296
- package/build/server/chunks/manifest.js-YAglwkb0.js +0 -434
- package/build/server/chunks/nodes/0.js-lkzICUiD.js +0 -32
- package/build/server/chunks/nodes/1.js-BJHI215Q.js +0 -9
- package/build/server/chunks/nodes/10.js-BWB-fD67.js +0 -33
- package/build/server/chunks/nodes/11.js-DWkXu85W.js +0 -33
- package/build/server/chunks/nodes/12.js-CKTx5eRx.js +0 -37
- package/build/server/chunks/nodes/13.js-C9YUj8Wf.js +0 -33
- package/build/server/chunks/nodes/14.js-CvfRHrCy.js +0 -33
- package/build/server/chunks/nodes/15.js-D_eEoMQb.js +0 -33
- package/build/server/chunks/nodes/16.js-BQhgpvij.js +0 -32
- package/build/server/chunks/nodes/2.js-C-3t-e-a.js +0 -32
- package/build/server/chunks/nodes/3.js-DgwKYi6C.js +0 -32
- package/build/server/chunks/nodes/4.js-DRDQ1cZ6.js +0 -34
- package/build/server/chunks/nodes/5.js-Bn5aoN6C.js +0 -32
- package/build/server/chunks/nodes/6.js-lazTWxVv.js +0 -9
- package/build/server/chunks/nodes/7.js-PUjlFfxr.js +0 -32
- package/build/server/chunks/nodes/8.js-DYPhaWV-.js +0 -34
- package/build/server/chunks/nodes/9.js-C2q_Jaiu.js +0 -32
- /package/build/client/_app/immutable/assets/{15.KLSHp5Yu.css → 20.KLSHp5Yu.css} +0 -0
- /package/build/client/_app/immutable/assets/{15.KLSHp5Yu.css.br → 20.KLSHp5Yu.css.br} +0 -0
- /package/build/client/_app/immutable/assets/{15.KLSHp5Yu.css.gz → 20.KLSHp5Yu.css.gz} +0 -0
- /package/build/client/_app/immutable/assets/{4.5dJKCkOT.css → 5.5dJKCkOT.css} +0 -0
- /package/build/client/_app/immutable/assets/{4.5dJKCkOT.css.br → 5.5dJKCkOT.css.br} +0 -0
- /package/build/client/_app/immutable/assets/{4.5dJKCkOT.css.gz → 5.5dJKCkOT.css.gz} +0 -0
- /package/build/client/_app/immutable/assets/{MicButton.Dga9zAug.css → DictateTextarea.Dga9zAug.css} +0 -0
- /package/build/client/_app/immutable/assets/{MicButton.Dga9zAug.css.br → DictateTextarea.Dga9zAug.css.br} +0 -0
- /package/build/client/_app/immutable/assets/{MicButton.Dga9zAug.css.gz → DictateTextarea.Dga9zAug.css.gz} +0 -0
|
@@ -0,0 +1,2811 @@
|
|
|
1
|
+
import { af as hasContext, a3 as getContext, Z as setContext, _ as derived, ag as getAllContexts, ah as run, ai as ATTACHMENT_KEY, ac as spread_props, a7 as clsx } from './index.js-B0NFhRTN.js';
|
|
2
|
+
import { I as Icon } from './Icon.js-CVZZ-yuB.js';
|
|
3
|
+
import { t as tick, m as mount, u as unmount } from './index-server2.js-Fb2GE8KQ.js';
|
|
4
|
+
import { o as on } from './root.js-60iebdW4.js';
|
|
5
|
+
import { c as createSubscriber, S as SvelteMap } from './index-server.js-DsObimPA.js';
|
|
6
|
+
|
|
7
|
+
// http://www.w3.org/TR/CSS21/grammar.html
|
|
8
|
+
// https://github.com/visionmedia/css-parse/pull/49#issuecomment-30088027
|
|
9
|
+
var COMMENT_REGEX = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;
|
|
10
|
+
|
|
11
|
+
var NEWLINE_REGEX = /\n/g;
|
|
12
|
+
var WHITESPACE_REGEX = /^\s*/;
|
|
13
|
+
|
|
14
|
+
// declaration
|
|
15
|
+
var PROPERTY_REGEX = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/;
|
|
16
|
+
var COLON_REGEX = /^:\s*/;
|
|
17
|
+
var VALUE_REGEX = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/;
|
|
18
|
+
var SEMICOLON_REGEX = /^[;\s]*/;
|
|
19
|
+
|
|
20
|
+
// https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String/Trim#Polyfill
|
|
21
|
+
var TRIM_REGEX = /^\s+|\s+$/g;
|
|
22
|
+
|
|
23
|
+
// strings
|
|
24
|
+
var NEWLINE = '\n';
|
|
25
|
+
var FORWARD_SLASH = '/';
|
|
26
|
+
var ASTERISK = '*';
|
|
27
|
+
var EMPTY_STRING = '';
|
|
28
|
+
|
|
29
|
+
// types
|
|
30
|
+
var TYPE_COMMENT = 'comment';
|
|
31
|
+
var TYPE_DECLARATION = 'declaration';
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @param {String} style
|
|
35
|
+
* @param {Object} [options]
|
|
36
|
+
* @return {Object[]}
|
|
37
|
+
* @throws {TypeError}
|
|
38
|
+
* @throws {Error}
|
|
39
|
+
*/
|
|
40
|
+
function index (style, options) {
|
|
41
|
+
if (typeof style !== 'string') {
|
|
42
|
+
throw new TypeError('First argument must be a string');
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
if (!style) return [];
|
|
46
|
+
|
|
47
|
+
options = options || {};
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Positional.
|
|
51
|
+
*/
|
|
52
|
+
var lineno = 1;
|
|
53
|
+
var column = 1;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Update lineno and column based on `str`.
|
|
57
|
+
*
|
|
58
|
+
* @param {String} str
|
|
59
|
+
*/
|
|
60
|
+
function updatePosition(str) {
|
|
61
|
+
var lines = str.match(NEWLINE_REGEX);
|
|
62
|
+
if (lines) lineno += lines.length;
|
|
63
|
+
var i = str.lastIndexOf(NEWLINE);
|
|
64
|
+
column = ~i ? str.length - i : column + str.length;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Mark position and patch `node.position`.
|
|
69
|
+
*
|
|
70
|
+
* @return {Function}
|
|
71
|
+
*/
|
|
72
|
+
function position() {
|
|
73
|
+
var start = { line: lineno, column: column };
|
|
74
|
+
return function (node) {
|
|
75
|
+
node.position = new Position(start);
|
|
76
|
+
whitespace();
|
|
77
|
+
return node;
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Store position information for a node.
|
|
83
|
+
*
|
|
84
|
+
* @constructor
|
|
85
|
+
* @property {Object} start
|
|
86
|
+
* @property {Object} end
|
|
87
|
+
* @property {undefined|String} source
|
|
88
|
+
*/
|
|
89
|
+
function Position(start) {
|
|
90
|
+
this.start = start;
|
|
91
|
+
this.end = { line: lineno, column: column };
|
|
92
|
+
this.source = options.source;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Non-enumerable source string.
|
|
97
|
+
*/
|
|
98
|
+
Position.prototype.content = style;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Error `msg`.
|
|
102
|
+
*
|
|
103
|
+
* @param {String} msg
|
|
104
|
+
* @throws {Error}
|
|
105
|
+
*/
|
|
106
|
+
function error(msg) {
|
|
107
|
+
var err = new Error(
|
|
108
|
+
options.source + ':' + lineno + ':' + column + ': ' + msg
|
|
109
|
+
);
|
|
110
|
+
err.reason = msg;
|
|
111
|
+
err.filename = options.source;
|
|
112
|
+
err.line = lineno;
|
|
113
|
+
err.column = column;
|
|
114
|
+
err.source = style;
|
|
115
|
+
|
|
116
|
+
if (options.silent) ; else {
|
|
117
|
+
throw err;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Match `re` and return captures.
|
|
123
|
+
*
|
|
124
|
+
* @param {RegExp} re
|
|
125
|
+
* @return {undefined|Array}
|
|
126
|
+
*/
|
|
127
|
+
function match(re) {
|
|
128
|
+
var m = re.exec(style);
|
|
129
|
+
if (!m) return;
|
|
130
|
+
var str = m[0];
|
|
131
|
+
updatePosition(str);
|
|
132
|
+
style = style.slice(str.length);
|
|
133
|
+
return m;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Parse whitespace.
|
|
138
|
+
*/
|
|
139
|
+
function whitespace() {
|
|
140
|
+
match(WHITESPACE_REGEX);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Parse comments.
|
|
145
|
+
*
|
|
146
|
+
* @param {Object[]} [rules]
|
|
147
|
+
* @return {Object[]}
|
|
148
|
+
*/
|
|
149
|
+
function comments(rules) {
|
|
150
|
+
var c;
|
|
151
|
+
rules = rules || [];
|
|
152
|
+
while ((c = comment())) {
|
|
153
|
+
if (c !== false) {
|
|
154
|
+
rules.push(c);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
return rules;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Parse comment.
|
|
162
|
+
*
|
|
163
|
+
* @return {Object}
|
|
164
|
+
* @throws {Error}
|
|
165
|
+
*/
|
|
166
|
+
function comment() {
|
|
167
|
+
var pos = position();
|
|
168
|
+
if (FORWARD_SLASH != style.charAt(0) || ASTERISK != style.charAt(1)) return;
|
|
169
|
+
|
|
170
|
+
var i = 2;
|
|
171
|
+
while (
|
|
172
|
+
EMPTY_STRING != style.charAt(i) &&
|
|
173
|
+
(ASTERISK != style.charAt(i) || FORWARD_SLASH != style.charAt(i + 1))
|
|
174
|
+
) {
|
|
175
|
+
++i;
|
|
176
|
+
}
|
|
177
|
+
i += 2;
|
|
178
|
+
|
|
179
|
+
if (EMPTY_STRING === style.charAt(i - 1)) {
|
|
180
|
+
return error('End of comment missing');
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
var str = style.slice(2, i - 2);
|
|
184
|
+
column += 2;
|
|
185
|
+
updatePosition(str);
|
|
186
|
+
style = style.slice(i);
|
|
187
|
+
column += 2;
|
|
188
|
+
|
|
189
|
+
return pos({
|
|
190
|
+
type: TYPE_COMMENT,
|
|
191
|
+
comment: str
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Parse declaration.
|
|
197
|
+
*
|
|
198
|
+
* @return {Object}
|
|
199
|
+
* @throws {Error}
|
|
200
|
+
*/
|
|
201
|
+
function declaration() {
|
|
202
|
+
var pos = position();
|
|
203
|
+
|
|
204
|
+
// prop
|
|
205
|
+
var prop = match(PROPERTY_REGEX);
|
|
206
|
+
if (!prop) return;
|
|
207
|
+
comment();
|
|
208
|
+
|
|
209
|
+
// :
|
|
210
|
+
if (!match(COLON_REGEX)) return error("property missing ':'");
|
|
211
|
+
|
|
212
|
+
// val
|
|
213
|
+
var val = match(VALUE_REGEX);
|
|
214
|
+
|
|
215
|
+
var ret = pos({
|
|
216
|
+
type: TYPE_DECLARATION,
|
|
217
|
+
property: trim(prop[0].replace(COMMENT_REGEX, EMPTY_STRING)),
|
|
218
|
+
value: val
|
|
219
|
+
? trim(val[0].replace(COMMENT_REGEX, EMPTY_STRING))
|
|
220
|
+
: EMPTY_STRING
|
|
221
|
+
});
|
|
222
|
+
|
|
223
|
+
// ;
|
|
224
|
+
match(SEMICOLON_REGEX);
|
|
225
|
+
|
|
226
|
+
return ret;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Parse declarations.
|
|
231
|
+
*
|
|
232
|
+
* @return {Object[]}
|
|
233
|
+
*/
|
|
234
|
+
function declarations() {
|
|
235
|
+
var decls = [];
|
|
236
|
+
|
|
237
|
+
comments(decls);
|
|
238
|
+
|
|
239
|
+
// declarations
|
|
240
|
+
var decl;
|
|
241
|
+
while ((decl = declaration())) {
|
|
242
|
+
if (decl !== false) {
|
|
243
|
+
decls.push(decl);
|
|
244
|
+
comments(decls);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
return decls;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
whitespace();
|
|
252
|
+
return declarations();
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Trim `str`.
|
|
257
|
+
*
|
|
258
|
+
* @param {String} str
|
|
259
|
+
* @return {String}
|
|
260
|
+
*/
|
|
261
|
+
function trim(str) {
|
|
262
|
+
return str ? str.replace(TRIM_REGEX, EMPTY_STRING) : EMPTY_STRING;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Parses inline style to object.
|
|
267
|
+
*
|
|
268
|
+
* @param style - Inline style.
|
|
269
|
+
* @param iterator - Iterator.
|
|
270
|
+
* @returns - Style object or null.
|
|
271
|
+
*
|
|
272
|
+
* @example Parsing inline style to object:
|
|
273
|
+
*
|
|
274
|
+
* ```js
|
|
275
|
+
* import parse from 'style-to-object';
|
|
276
|
+
* parse('line-height: 42;'); // { 'line-height': '42' }
|
|
277
|
+
* ```
|
|
278
|
+
*/
|
|
279
|
+
function StyleToObject(style, iterator) {
|
|
280
|
+
let styleObject = null;
|
|
281
|
+
if (!style || typeof style !== 'string') {
|
|
282
|
+
return styleObject;
|
|
283
|
+
}
|
|
284
|
+
const declarations = index(style);
|
|
285
|
+
const hasIterator = typeof iterator === 'function';
|
|
286
|
+
declarations.forEach((declaration) => {
|
|
287
|
+
if (declaration.type !== 'declaration') {
|
|
288
|
+
return;
|
|
289
|
+
}
|
|
290
|
+
const { property, value } = declaration;
|
|
291
|
+
if (hasIterator) {
|
|
292
|
+
iterator(property, value, declaration);
|
|
293
|
+
}
|
|
294
|
+
else if (value) {
|
|
295
|
+
styleObject = styleObject || {};
|
|
296
|
+
styleObject[property] = value;
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
return styleObject;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
/*!
|
|
303
|
+
* tabbable 6.5.0
|
|
304
|
+
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
305
|
+
*/
|
|
306
|
+
// NOTE: separate `:not()` selectors has broader browser support than the newer
|
|
307
|
+
// `:not([inert], [inert] *)` (Feb 2023)
|
|
308
|
+
var candidateSelectors = ['input:not([inert]):not([inert] *)', 'select:not([inert]):not([inert] *)', 'textarea:not([inert]):not([inert] *)', 'a[href]:not([inert]):not([inert] *)', 'area[href]:not([inert]):not([inert] *)', 'button:not([inert]):not([inert] *)', '[tabindex]:not(slot):not([inert]):not([inert] *)', 'audio[controls]:not([inert]):not([inert] *)', 'video[controls]:not([inert]):not([inert] *)', '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', 'details>summary:first-of-type:not([inert]):not([inert] *)', 'details:not([inert]):not([inert] *)'];
|
|
309
|
+
var candidateSelector = /* #__PURE__ */candidateSelectors.join(',');
|
|
310
|
+
var NoElement = typeof Element === 'undefined';
|
|
311
|
+
var matches = NoElement ? function () {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
|
|
312
|
+
var getRootNode = !NoElement && Element.prototype.getRootNode ? function (element) {
|
|
313
|
+
var _element$getRootNode;
|
|
314
|
+
return element === null || element === void 0 ? void 0 : (_element$getRootNode = element.getRootNode) === null || _element$getRootNode === void 0 ? void 0 : _element$getRootNode.call(element);
|
|
315
|
+
} : function (element) {
|
|
316
|
+
return element === null || element === void 0 ? void 0 : element.ownerDocument;
|
|
317
|
+
};
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Determines if a node is inert or in an inert ancestor.
|
|
321
|
+
* @param {Node} [node]
|
|
322
|
+
* @param {boolean} [lookUp] If true and `node` is not inert, looks up at ancestors to
|
|
323
|
+
* see if any of them are inert. If false, only `node` itself is considered.
|
|
324
|
+
* @returns {boolean} True if inert itself or by way of being in an inert ancestor.
|
|
325
|
+
* False if `node` is falsy.
|
|
326
|
+
*/
|
|
327
|
+
var _isInert = function isInert(node, lookUp) {
|
|
328
|
+
var _node$getAttribute;
|
|
329
|
+
if (lookUp === void 0) {
|
|
330
|
+
lookUp = true;
|
|
331
|
+
}
|
|
332
|
+
// CAREFUL: JSDom does not support inert at all, so we can't use the `HTMLElement.inert`
|
|
333
|
+
// JS API property; we have to check the attribute, which can either be empty or 'true';
|
|
334
|
+
// if it's `null` (not specified) or 'false', it's an active element
|
|
335
|
+
var inertAtt = node === null || node === void 0 ? void 0 : (_node$getAttribute = node.getAttribute) === null || _node$getAttribute === void 0 ? void 0 : _node$getAttribute.call(node, 'inert');
|
|
336
|
+
var inert = inertAtt === '' || inertAtt === 'true';
|
|
337
|
+
|
|
338
|
+
// NOTE: this could also be handled with `node.matches('[inert], :is([inert] *)')`
|
|
339
|
+
// if it weren't for `matches()` not being a function on shadow roots; the following
|
|
340
|
+
// code works for any kind of node
|
|
341
|
+
var result = inert || lookUp && node && (
|
|
342
|
+
// closest does not exist on shadow roots, so we fall back to a manual
|
|
343
|
+
// lookup upward, in case it is not defined.
|
|
344
|
+
typeof node.closest === 'function' ? node.closest('[inert]') : _isInert(node.parentNode));
|
|
345
|
+
return result;
|
|
346
|
+
};
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* Determines if a node's content is editable.
|
|
350
|
+
* @param {Element} [node]
|
|
351
|
+
* @returns True if it's content-editable; false if it's not or `node` is falsy.
|
|
352
|
+
*/
|
|
353
|
+
var isContentEditable = function isContentEditable(node) {
|
|
354
|
+
var _node$getAttribute2;
|
|
355
|
+
// CAREFUL: JSDom does not support the `HTMLElement.isContentEditable` API so we have
|
|
356
|
+
// to use the attribute directly to check for this, which can either be empty or 'true';
|
|
357
|
+
// if it's `null` (not specified) or 'false', it's a non-editable element
|
|
358
|
+
var attValue = node === null || node === void 0 ? void 0 : (_node$getAttribute2 = node.getAttribute) === null || _node$getAttribute2 === void 0 ? void 0 : _node$getAttribute2.call(node, 'contenteditable');
|
|
359
|
+
return attValue === '' || attValue === 'true';
|
|
360
|
+
};
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* @param {Element} el container to check in
|
|
364
|
+
* @param {boolean} includeContainer add container to check
|
|
365
|
+
* @param {(node: Element) => boolean} filter filter candidates
|
|
366
|
+
* @returns {Element[]}
|
|
367
|
+
*/
|
|
368
|
+
var getCandidates = function getCandidates(el, includeContainer, filter) {
|
|
369
|
+
// even if `includeContainer=false`, we still have to check it for inertness because
|
|
370
|
+
// if it's inert (either by itself or via its parent), then all its children are inert
|
|
371
|
+
if (_isInert(el)) {
|
|
372
|
+
return [];
|
|
373
|
+
}
|
|
374
|
+
var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));
|
|
375
|
+
if (includeContainer && matches.call(el, candidateSelector)) {
|
|
376
|
+
candidates.unshift(el);
|
|
377
|
+
}
|
|
378
|
+
candidates = candidates.filter(filter);
|
|
379
|
+
return candidates;
|
|
380
|
+
};
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* @callback GetShadowRoot
|
|
384
|
+
* @param {Element} element to check for shadow root
|
|
385
|
+
* @returns {ShadowRoot|boolean} ShadowRoot if available or boolean indicating if a shadowRoot is attached but not available.
|
|
386
|
+
*/
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* @callback ShadowRootFilter
|
|
390
|
+
* @param {Element} shadowHostNode the element which contains shadow content
|
|
391
|
+
* @returns {boolean} true if a shadow root could potentially contain valid candidates.
|
|
392
|
+
*/
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* @typedef {Object} CandidateScope
|
|
396
|
+
* @property {Element} scopeParent contains inner candidates
|
|
397
|
+
* @property {Element[]} candidates list of candidates found in the scope parent
|
|
398
|
+
*/
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* @typedef {Object} IterativeOptions
|
|
402
|
+
* @property {GetShadowRoot|boolean} getShadowRoot true if shadow support is enabled; falsy if not;
|
|
403
|
+
* if a function, implies shadow support is enabled and either returns the shadow root of an element
|
|
404
|
+
* or a boolean stating if it has an undisclosed shadow root
|
|
405
|
+
* @property {(node: Element) => boolean} filter filter candidates
|
|
406
|
+
* @property {boolean} flatten if true then result will flatten any CandidateScope into the returned list
|
|
407
|
+
* @property {ShadowRootFilter} shadowRootFilter filter shadow roots;
|
|
408
|
+
*/
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* @param {Element[]} elements list of element containers to match candidates from
|
|
412
|
+
* @param {boolean} includeContainer add container list to check
|
|
413
|
+
* @param {IterativeOptions} options
|
|
414
|
+
* @returns {Array.<Element|CandidateScope>}
|
|
415
|
+
*/
|
|
416
|
+
var _getCandidatesIteratively = function getCandidatesIteratively(elements, includeContainer, options) {
|
|
417
|
+
var candidates = [];
|
|
418
|
+
var elementsToCheck = Array.from(elements);
|
|
419
|
+
while (elementsToCheck.length) {
|
|
420
|
+
var element = elementsToCheck.shift();
|
|
421
|
+
if (_isInert(element, false)) {
|
|
422
|
+
// no need to look up since we're drilling down
|
|
423
|
+
// anything inside this container will also be inert
|
|
424
|
+
continue;
|
|
425
|
+
}
|
|
426
|
+
if (element.tagName === 'SLOT') {
|
|
427
|
+
// add shadow dom slot scope (slot itself cannot be focusable)
|
|
428
|
+
var assigned = element.assignedElements();
|
|
429
|
+
var content = assigned.length ? assigned : element.children;
|
|
430
|
+
var nestedCandidates = _getCandidatesIteratively(content, true, options);
|
|
431
|
+
if (options.flatten) {
|
|
432
|
+
candidates.push.apply(candidates, nestedCandidates);
|
|
433
|
+
} else {
|
|
434
|
+
candidates.push({
|
|
435
|
+
scopeParent: element,
|
|
436
|
+
candidates: nestedCandidates
|
|
437
|
+
});
|
|
438
|
+
}
|
|
439
|
+
} else {
|
|
440
|
+
// check candidate element
|
|
441
|
+
var validCandidate = matches.call(element, candidateSelector);
|
|
442
|
+
if (validCandidate && options.filter(element) && (includeContainer || !elements.includes(element))) {
|
|
443
|
+
candidates.push(element);
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
// iterate over shadow content if possible
|
|
447
|
+
var shadowRoot = element.shadowRoot ||
|
|
448
|
+
// check for an undisclosed shadow
|
|
449
|
+
typeof options.getShadowRoot === 'function' && options.getShadowRoot(element);
|
|
450
|
+
|
|
451
|
+
// no inert look up because we're already drilling down and checking for inertness
|
|
452
|
+
// on the way down, so all containers to this root node should have already been
|
|
453
|
+
// vetted as non-inert
|
|
454
|
+
var validShadowRoot = !_isInert(shadowRoot, false) && (!options.shadowRootFilter || options.shadowRootFilter(element));
|
|
455
|
+
if (shadowRoot && validShadowRoot) {
|
|
456
|
+
// add shadow dom scope IIF a shadow root node was given; otherwise, an undisclosed
|
|
457
|
+
// shadow exists, so look at light dom children as fallback BUT create a scope for any
|
|
458
|
+
// child candidates found because they're likely slotted elements (elements that are
|
|
459
|
+
// children of the web component element (which has the shadow), in the light dom, but
|
|
460
|
+
// slotted somewhere _inside_ the undisclosed shadow) -- the scope is created below,
|
|
461
|
+
// _after_ we return from this recursive call
|
|
462
|
+
var _nestedCandidates = _getCandidatesIteratively(shadowRoot === true ? element.children : shadowRoot.children, true, options);
|
|
463
|
+
if (options.flatten) {
|
|
464
|
+
candidates.push.apply(candidates, _nestedCandidates);
|
|
465
|
+
} else {
|
|
466
|
+
candidates.push({
|
|
467
|
+
scopeParent: element,
|
|
468
|
+
candidates: _nestedCandidates
|
|
469
|
+
});
|
|
470
|
+
}
|
|
471
|
+
} else {
|
|
472
|
+
// there's not shadow so just dig into the element's (light dom) children
|
|
473
|
+
// __without__ giving the element special scope treatment
|
|
474
|
+
elementsToCheck.unshift.apply(elementsToCheck, element.children);
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
return candidates;
|
|
479
|
+
};
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* @private
|
|
483
|
+
* Determines if the node has an explicitly specified `tabindex` attribute.
|
|
484
|
+
* @param {HTMLElement} node
|
|
485
|
+
* @returns {boolean} True if so; false if not.
|
|
486
|
+
*/
|
|
487
|
+
var hasTabIndex = function hasTabIndex(node) {
|
|
488
|
+
return !isNaN(parseInt(node.getAttribute('tabindex'), 10));
|
|
489
|
+
};
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* Determine the tab index of a given node.
|
|
493
|
+
* @param {HTMLElement} node
|
|
494
|
+
* @returns {number} Tab order (negative, 0, or positive number).
|
|
495
|
+
* @throws {Error} If `node` is falsy.
|
|
496
|
+
*/
|
|
497
|
+
var getTabIndex = function getTabIndex(node) {
|
|
498
|
+
if (!node) {
|
|
499
|
+
throw new Error('No node provided');
|
|
500
|
+
}
|
|
501
|
+
if (node.tabIndex < 0) {
|
|
502
|
+
// in Chrome, <details/>, <audio controls/> and <video controls/> elements get a default
|
|
503
|
+
// `tabIndex` of -1 when the 'tabindex' attribute isn't specified in the DOM,
|
|
504
|
+
// yet they are still part of the regular tab order; in FF, they get a default
|
|
505
|
+
// `tabIndex` of 0; since Chrome still puts those elements in the regular tab
|
|
506
|
+
// order, consider their tab index to be 0.
|
|
507
|
+
// Also browsers do not return `tabIndex` correctly for contentEditable nodes;
|
|
508
|
+
// so if they don't have a tabindex attribute specifically set, assume it's 0.
|
|
509
|
+
if ((/^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || isContentEditable(node)) && !hasTabIndex(node)) {
|
|
510
|
+
return 0;
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
return node.tabIndex;
|
|
514
|
+
};
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* Determine the tab index of a given node __for sort order purposes__.
|
|
518
|
+
* @param {HTMLElement} node
|
|
519
|
+
* @param {boolean} [isScope] True for a custom element with shadow root or slot that, by default,
|
|
520
|
+
* has tabIndex -1, but needs to be sorted by document order in order for its content to be
|
|
521
|
+
* inserted into the correct sort position.
|
|
522
|
+
* @returns {number} Tab order (negative, 0, or positive number).
|
|
523
|
+
*/
|
|
524
|
+
var getSortOrderTabIndex = function getSortOrderTabIndex(node, isScope) {
|
|
525
|
+
var tabIndex = getTabIndex(node);
|
|
526
|
+
if (tabIndex < 0 && isScope && !hasTabIndex(node)) {
|
|
527
|
+
return 0;
|
|
528
|
+
}
|
|
529
|
+
return tabIndex;
|
|
530
|
+
};
|
|
531
|
+
var sortOrderedTabbables = function sortOrderedTabbables(a, b) {
|
|
532
|
+
return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;
|
|
533
|
+
};
|
|
534
|
+
var isInput = function isInput(node) {
|
|
535
|
+
return node.tagName === 'INPUT';
|
|
536
|
+
};
|
|
537
|
+
var isHiddenInput = function isHiddenInput(node) {
|
|
538
|
+
return isInput(node) && node.type === 'hidden';
|
|
539
|
+
};
|
|
540
|
+
var isDetailsWithSummary = function isDetailsWithSummary(node) {
|
|
541
|
+
var r = node.tagName === 'DETAILS' && Array.prototype.slice.apply(node.children).some(function (child) {
|
|
542
|
+
return child.tagName === 'SUMMARY';
|
|
543
|
+
});
|
|
544
|
+
return r;
|
|
545
|
+
};
|
|
546
|
+
var getCheckedRadio = function getCheckedRadio(nodes, form) {
|
|
547
|
+
for (var i = 0; i < nodes.length; i++) {
|
|
548
|
+
if (nodes[i].checked && nodes[i].form === form) {
|
|
549
|
+
return nodes[i];
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
};
|
|
553
|
+
var isTabbableRadio = function isTabbableRadio(node) {
|
|
554
|
+
if (!node.name) {
|
|
555
|
+
return true;
|
|
556
|
+
}
|
|
557
|
+
var radioScope = node.form || getRootNode(node);
|
|
558
|
+
var queryRadios = function queryRadios(name) {
|
|
559
|
+
return radioScope.querySelectorAll('input[type="radio"][name="' + name + '"]');
|
|
560
|
+
};
|
|
561
|
+
var radioSet;
|
|
562
|
+
if (typeof window !== 'undefined' && typeof window.CSS !== 'undefined' && typeof window.CSS.escape === 'function') {
|
|
563
|
+
radioSet = queryRadios(window.CSS.escape(node.name));
|
|
564
|
+
} else {
|
|
565
|
+
try {
|
|
566
|
+
radioSet = queryRadios(node.name);
|
|
567
|
+
} catch (err) {
|
|
568
|
+
// eslint-disable-next-line no-console
|
|
569
|
+
console.error('Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s', err.message);
|
|
570
|
+
return false;
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
var checked = getCheckedRadio(radioSet, node.form);
|
|
574
|
+
return !checked || checked === node;
|
|
575
|
+
};
|
|
576
|
+
var isRadio = function isRadio(node) {
|
|
577
|
+
return isInput(node) && node.type === 'radio';
|
|
578
|
+
};
|
|
579
|
+
var isNonTabbableRadio = function isNonTabbableRadio(node) {
|
|
580
|
+
return isRadio(node) && !isTabbableRadio(node);
|
|
581
|
+
};
|
|
582
|
+
|
|
583
|
+
// determines if a node is ultimately attached to the window's document
|
|
584
|
+
var isNodeAttached = function isNodeAttached(node) {
|
|
585
|
+
var _nodeRoot;
|
|
586
|
+
// The root node is the shadow root if the node is in a shadow DOM; some document otherwise
|
|
587
|
+
// (but NOT _the_ document; see second 'If' comment below for more).
|
|
588
|
+
// If rootNode is shadow root, it'll have a host, which is the element to which the shadow
|
|
589
|
+
// is attached, and the one we need to check if it's in the document or not (because the
|
|
590
|
+
// shadow, and all nodes it contains, is never considered in the document since shadows
|
|
591
|
+
// behave like self-contained DOMs; but if the shadow's HOST, which is part of the document,
|
|
592
|
+
// is hidden, or is not in the document itself but is detached, it will affect the shadow's
|
|
593
|
+
// visibility, including all the nodes it contains). The host could be any normal node,
|
|
594
|
+
// or a custom element (i.e. web component). Either way, that's the one that is considered
|
|
595
|
+
// part of the document, not the shadow root, nor any of its children (i.e. the node being
|
|
596
|
+
// tested).
|
|
597
|
+
// To further complicate things, we have to look all the way up until we find a shadow HOST
|
|
598
|
+
// that is attached (or find none) because the node might be in nested shadows...
|
|
599
|
+
// If rootNode is not a shadow root, it won't have a host, and so rootNode should be the
|
|
600
|
+
// document (per the docs) and while it's a Document-type object, that document does not
|
|
601
|
+
// appear to be the same as the node's `ownerDocument` for some reason, so it's safer
|
|
602
|
+
// to ignore the rootNode at this point, and use `node.ownerDocument`. Otherwise,
|
|
603
|
+
// using `rootNode.contains(node)` will _always_ be true we'll get false-positives when
|
|
604
|
+
// node is actually detached.
|
|
605
|
+
// NOTE: If `nodeRootHost` or `node` happens to be the `document` itself (which is possible
|
|
606
|
+
// if a tabbable/focusable node was quickly added to the DOM, focused, and then removed
|
|
607
|
+
// from the DOM as in https://github.com/focus-trap/focus-trap-react/issues/905), then
|
|
608
|
+
// `ownerDocument` will be `null`, hence the optional chaining on it.
|
|
609
|
+
var nodeRoot = node && getRootNode(node);
|
|
610
|
+
var nodeRootHost = (_nodeRoot = nodeRoot) === null || _nodeRoot === void 0 ? void 0 : _nodeRoot.host;
|
|
611
|
+
|
|
612
|
+
// in some cases, a detached node will return itself as the root instead of a document or
|
|
613
|
+
// shadow root object, in which case, we shouldn't try to look further up the host chain
|
|
614
|
+
var attached = false;
|
|
615
|
+
if (nodeRoot && nodeRoot !== node) {
|
|
616
|
+
var _nodeRootHost, _nodeRootHost$ownerDo, _node$ownerDocument;
|
|
617
|
+
attached = !!((_nodeRootHost = nodeRootHost) !== null && _nodeRootHost !== void 0 && (_nodeRootHost$ownerDo = _nodeRootHost.ownerDocument) !== null && _nodeRootHost$ownerDo !== void 0 && _nodeRootHost$ownerDo.contains(nodeRootHost) || node !== null && node !== void 0 && (_node$ownerDocument = node.ownerDocument) !== null && _node$ownerDocument !== void 0 && _node$ownerDocument.contains(node));
|
|
618
|
+
while (!attached && nodeRootHost) {
|
|
619
|
+
var _nodeRoot2, _nodeRootHost2, _nodeRootHost2$ownerD;
|
|
620
|
+
// since it's not attached and we have a root host, the node MUST be in a nested shadow DOM,
|
|
621
|
+
// which means we need to get the host's host and check if that parent host is contained
|
|
622
|
+
// in (i.e. attached to) the document
|
|
623
|
+
nodeRoot = getRootNode(nodeRootHost);
|
|
624
|
+
nodeRootHost = (_nodeRoot2 = nodeRoot) === null || _nodeRoot2 === void 0 ? void 0 : _nodeRoot2.host;
|
|
625
|
+
attached = !!((_nodeRootHost2 = nodeRootHost) !== null && _nodeRootHost2 !== void 0 && (_nodeRootHost2$ownerD = _nodeRootHost2.ownerDocument) !== null && _nodeRootHost2$ownerD !== void 0 && _nodeRootHost2$ownerD.contains(nodeRootHost));
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
return attached;
|
|
629
|
+
};
|
|
630
|
+
var isZeroArea = function isZeroArea(node) {
|
|
631
|
+
var _node$getBoundingClie = node.getBoundingClientRect(),
|
|
632
|
+
width = _node$getBoundingClie.width,
|
|
633
|
+
height = _node$getBoundingClie.height;
|
|
634
|
+
return width === 0 && height === 0;
|
|
635
|
+
};
|
|
636
|
+
var isHidden = function isHidden(node, _ref) {
|
|
637
|
+
var displayCheck = _ref.displayCheck,
|
|
638
|
+
getShadowRoot = _ref.getShadowRoot;
|
|
639
|
+
if (displayCheck === 'full-native') {
|
|
640
|
+
if ('checkVisibility' in node) {
|
|
641
|
+
// Chrome >= 105, Edge >= 105, Firefox >= 106, Safari >= 17.4
|
|
642
|
+
// @see https://developer.mozilla.org/en-US/docs/Web/API/Element/checkVisibility#browser_compatibility
|
|
643
|
+
var visible = node.checkVisibility({
|
|
644
|
+
// Checking opacity might be desirable for some use cases, but natively,
|
|
645
|
+
// opacity zero elements _are_ focusable and tabbable.
|
|
646
|
+
checkOpacity: false,
|
|
647
|
+
opacityProperty: false,
|
|
648
|
+
contentVisibilityAuto: true,
|
|
649
|
+
visibilityProperty: true,
|
|
650
|
+
// This is an alias for `visibilityProperty`. Contemporary browsers
|
|
651
|
+
// support both. However, this alias has wider browser support (Chrome
|
|
652
|
+
// >= 105 and Firefox >= 106, vs. Chrome >= 121 and Firefox >= 122), so
|
|
653
|
+
// we include it anyway.
|
|
654
|
+
checkVisibilityCSS: true
|
|
655
|
+
});
|
|
656
|
+
return !visible;
|
|
657
|
+
}
|
|
658
|
+
// Fall through to manual visibility checks
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
// NOTE: visibility will be `undefined` if node is detached from the document
|
|
662
|
+
// (see notes about this further down), which means we will consider it visible
|
|
663
|
+
// (this is legacy behavior from a very long way back)
|
|
664
|
+
// NOTE: we check this regardless of `displayCheck="none"` because this is a
|
|
665
|
+
// _visibility_ check, not a _display_ check
|
|
666
|
+
var _getComputedStyle = getComputedStyle(node),
|
|
667
|
+
visibility = _getComputedStyle.visibility;
|
|
668
|
+
if (visibility === 'hidden' || visibility === 'collapse') {
|
|
669
|
+
return true;
|
|
670
|
+
}
|
|
671
|
+
var isDirectSummary = matches.call(node, 'details>summary:first-of-type');
|
|
672
|
+
var nodeUnderDetails = isDirectSummary ? node.parentElement : node;
|
|
673
|
+
if (matches.call(nodeUnderDetails, 'details:not([open]) *')) {
|
|
674
|
+
return true;
|
|
675
|
+
}
|
|
676
|
+
if (!displayCheck || displayCheck === 'full' ||
|
|
677
|
+
// full-native can run this branch when it falls through in case
|
|
678
|
+
// Element#checkVisibility is unsupported
|
|
679
|
+
displayCheck === 'full-native' || displayCheck === 'legacy-full') {
|
|
680
|
+
if (typeof getShadowRoot === 'function') {
|
|
681
|
+
// figure out if we should consider the node to be in an undisclosed shadow and use the
|
|
682
|
+
// 'non-zero-area' fallback
|
|
683
|
+
var originalNode = node;
|
|
684
|
+
while (node) {
|
|
685
|
+
var parentElement = node.parentElement;
|
|
686
|
+
var rootNode = getRootNode(node);
|
|
687
|
+
if (parentElement && !parentElement.shadowRoot && getShadowRoot(parentElement) === true // check if there's an undisclosed shadow
|
|
688
|
+
) {
|
|
689
|
+
// node has an undisclosed shadow which means we can only treat it as a black box, so we
|
|
690
|
+
// fall back to a non-zero-area test
|
|
691
|
+
return isZeroArea(node);
|
|
692
|
+
} else if (node.assignedSlot) {
|
|
693
|
+
// iterate up slot
|
|
694
|
+
node = node.assignedSlot;
|
|
695
|
+
} else if (!parentElement && rootNode !== node.ownerDocument) {
|
|
696
|
+
// cross shadow boundary
|
|
697
|
+
node = rootNode.host;
|
|
698
|
+
} else {
|
|
699
|
+
// iterate up normal dom
|
|
700
|
+
node = parentElement;
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
node = originalNode;
|
|
704
|
+
}
|
|
705
|
+
// else, `getShadowRoot` might be true, but all that does is enable shadow DOM support
|
|
706
|
+
// (i.e. it does not also presume that all nodes might have undisclosed shadows); or
|
|
707
|
+
// it might be a falsy value, which means shadow DOM support is disabled
|
|
708
|
+
|
|
709
|
+
// Since we didn't find it sitting in an undisclosed shadow (or shadows are disabled)
|
|
710
|
+
// now we can just test to see if it would normally be visible or not, provided it's
|
|
711
|
+
// attached to the main document.
|
|
712
|
+
// NOTE: We must consider case where node is inside a shadow DOM and given directly to
|
|
713
|
+
// `isTabbable()` or `isFocusable()` -- regardless of `getShadowRoot` option setting.
|
|
714
|
+
|
|
715
|
+
if (isNodeAttached(node)) {
|
|
716
|
+
// this works wherever the node is: if there's at least one client rect, it's
|
|
717
|
+
// somehow displayed; it also covers the CSS 'display: contents' case where the
|
|
718
|
+
// node itself is hidden in place of its contents; and there's no need to search
|
|
719
|
+
// up the hierarchy either
|
|
720
|
+
return !node.getClientRects().length;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
// Else, the node isn't attached to the document, which means the `getClientRects()`
|
|
724
|
+
// API will __always__ return zero rects (this can happen, for example, if React
|
|
725
|
+
// is used to render nodes onto a detached tree, as confirmed in this thread:
|
|
726
|
+
// https://github.com/facebook/react/issues/9117#issuecomment-284228870)
|
|
727
|
+
//
|
|
728
|
+
// It also means that even window.getComputedStyle(node).display will return `undefined`
|
|
729
|
+
// because styles are only computed for nodes that are in the document.
|
|
730
|
+
//
|
|
731
|
+
// NOTE: THIS HAS BEEN THE CASE FOR YEARS. It is not new, nor is it caused by tabbable
|
|
732
|
+
// somehow. Though it was never stated officially, anyone who has ever used tabbable
|
|
733
|
+
// APIs on nodes in detached containers has actually implicitly used tabbable in what
|
|
734
|
+
// was later (as of v5.2.0 on Apr 9, 2021) called `displayCheck="none"` mode -- essentially
|
|
735
|
+
// considering __everything__ to be visible because of the innability to determine styles.
|
|
736
|
+
//
|
|
737
|
+
// v6.0.0: As of this major release, the default 'full' option __no longer treats detached
|
|
738
|
+
// nodes as visible with the 'none' fallback.__
|
|
739
|
+
if (displayCheck !== 'legacy-full') {
|
|
740
|
+
return true; // hidden
|
|
741
|
+
}
|
|
742
|
+
// else, fallback to 'none' mode and consider the node visible
|
|
743
|
+
} else if (displayCheck === 'non-zero-area') {
|
|
744
|
+
// NOTE: Even though this tests that the node's client rect is non-zero to determine
|
|
745
|
+
// whether it's displayed, and that a detached node will __always__ have a zero-area
|
|
746
|
+
// client rect, we don't special-case for whether the node is attached or not. In
|
|
747
|
+
// this mode, we do want to consider nodes that have a zero area to be hidden at all
|
|
748
|
+
// times, and that includes attached or not.
|
|
749
|
+
return isZeroArea(node);
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
// visible, as far as we can tell, or per current `displayCheck=none` mode, we assume
|
|
753
|
+
// it's visible
|
|
754
|
+
return false;
|
|
755
|
+
};
|
|
756
|
+
|
|
757
|
+
// form fields (nested) inside a disabled fieldset are not focusable/tabbable
|
|
758
|
+
// unless they are in the _first_ <legend> element of the top-most disabled
|
|
759
|
+
// fieldset
|
|
760
|
+
var isDisabledFromFieldset = function isDisabledFromFieldset(node) {
|
|
761
|
+
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {
|
|
762
|
+
var parentNode = node.parentElement;
|
|
763
|
+
// check if `node` is contained in a disabled <fieldset>
|
|
764
|
+
while (parentNode) {
|
|
765
|
+
if (parentNode.tagName === 'FIELDSET' && parentNode.disabled) {
|
|
766
|
+
// look for the first <legend> among the children of the disabled <fieldset>
|
|
767
|
+
for (var i = 0; i < parentNode.children.length; i++) {
|
|
768
|
+
var child = parentNode.children.item(i);
|
|
769
|
+
// when the first <legend> (in document order) is found
|
|
770
|
+
if (child.tagName === 'LEGEND') {
|
|
771
|
+
// if its parent <fieldset> is not nested in another disabled <fieldset>,
|
|
772
|
+
// return whether `node` is a descendant of its first <legend>
|
|
773
|
+
return matches.call(parentNode, 'fieldset[disabled] *') ? true : !child.contains(node);
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
// the disabled <fieldset> containing `node` has no <legend>
|
|
777
|
+
return true;
|
|
778
|
+
}
|
|
779
|
+
parentNode = parentNode.parentElement;
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
// else, node's tabbable/focusable state should not be affected by a fieldset's
|
|
784
|
+
// enabled/disabled state
|
|
785
|
+
return false;
|
|
786
|
+
};
|
|
787
|
+
var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable(options, node) {
|
|
788
|
+
if (node.disabled || isHiddenInput(node) || isHidden(node, options) ||
|
|
789
|
+
// For a details element with a summary, the summary element gets the focus
|
|
790
|
+
isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {
|
|
791
|
+
return false;
|
|
792
|
+
}
|
|
793
|
+
return true;
|
|
794
|
+
};
|
|
795
|
+
var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable(options, node) {
|
|
796
|
+
if (isNonTabbableRadio(node) || getTabIndex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) {
|
|
797
|
+
return false;
|
|
798
|
+
}
|
|
799
|
+
return true;
|
|
800
|
+
};
|
|
801
|
+
var isShadowRootTabbable = function isShadowRootTabbable(shadowHostNode) {
|
|
802
|
+
var tabIndex = parseInt(shadowHostNode.getAttribute('tabindex'), 10);
|
|
803
|
+
if (isNaN(tabIndex) || tabIndex >= 0) {
|
|
804
|
+
return true;
|
|
805
|
+
}
|
|
806
|
+
// If a custom element has an explicit negative tabindex,
|
|
807
|
+
// browsers will not allow tab targeting said element's children.
|
|
808
|
+
return false;
|
|
809
|
+
};
|
|
810
|
+
|
|
811
|
+
/**
|
|
812
|
+
* @param {Array.<Element|CandidateScope>} candidates
|
|
813
|
+
* @returns Element[]
|
|
814
|
+
*/
|
|
815
|
+
var _sortByOrder = function sortByOrder(candidates) {
|
|
816
|
+
var regularTabbables = [];
|
|
817
|
+
var orderedTabbables = [];
|
|
818
|
+
candidates.forEach(function (item, i) {
|
|
819
|
+
var isScope = !!item.scopeParent;
|
|
820
|
+
var element = isScope ? item.scopeParent : item;
|
|
821
|
+
var candidateTabindex = getSortOrderTabIndex(element, isScope);
|
|
822
|
+
var elements = isScope ? _sortByOrder(item.candidates) : element;
|
|
823
|
+
if (candidateTabindex === 0) {
|
|
824
|
+
isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);
|
|
825
|
+
} else {
|
|
826
|
+
orderedTabbables.push({
|
|
827
|
+
documentOrder: i,
|
|
828
|
+
tabIndex: candidateTabindex,
|
|
829
|
+
item: item,
|
|
830
|
+
isScope: isScope,
|
|
831
|
+
content: elements
|
|
832
|
+
});
|
|
833
|
+
}
|
|
834
|
+
});
|
|
835
|
+
return orderedTabbables.sort(sortOrderedTabbables).reduce(function (acc, sortable) {
|
|
836
|
+
sortable.isScope ? acc.push.apply(acc, sortable.content) : acc.push(sortable.content);
|
|
837
|
+
return acc;
|
|
838
|
+
}, []).concat(regularTabbables);
|
|
839
|
+
};
|
|
840
|
+
var tabbable = function tabbable(container, options) {
|
|
841
|
+
options = options || {};
|
|
842
|
+
var candidates;
|
|
843
|
+
if (options.getShadowRoot) {
|
|
844
|
+
candidates = _getCandidatesIteratively([container], options.includeContainer, {
|
|
845
|
+
filter: isNodeMatchingSelectorTabbable.bind(null, options),
|
|
846
|
+
flatten: false,
|
|
847
|
+
getShadowRoot: options.getShadowRoot,
|
|
848
|
+
shadowRootFilter: isShadowRootTabbable
|
|
849
|
+
});
|
|
850
|
+
} else {
|
|
851
|
+
candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));
|
|
852
|
+
}
|
|
853
|
+
return _sortByOrder(candidates);
|
|
854
|
+
};
|
|
855
|
+
var focusable = function focusable(container, options) {
|
|
856
|
+
options = options || {};
|
|
857
|
+
var candidates;
|
|
858
|
+
if (options.getShadowRoot) {
|
|
859
|
+
candidates = _getCandidatesIteratively([container], options.includeContainer, {
|
|
860
|
+
filter: isNodeMatchingSelectorFocusable.bind(null, options),
|
|
861
|
+
flatten: true,
|
|
862
|
+
getShadowRoot: options.getShadowRoot
|
|
863
|
+
});
|
|
864
|
+
} else {
|
|
865
|
+
candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorFocusable.bind(null, options));
|
|
866
|
+
}
|
|
867
|
+
return candidates;
|
|
868
|
+
};
|
|
869
|
+
var isTabbable = function isTabbable(node, options) {
|
|
870
|
+
options = options || {};
|
|
871
|
+
if (!node) {
|
|
872
|
+
throw new Error('No node provided');
|
|
873
|
+
}
|
|
874
|
+
if (matches.call(node, candidateSelector) === false) {
|
|
875
|
+
return false;
|
|
876
|
+
}
|
|
877
|
+
return isNodeMatchingSelectorTabbable(options, node);
|
|
878
|
+
};
|
|
879
|
+
var focusableCandidateSelector = /* #__PURE__ */candidateSelectors.concat('iframe:not([inert]):not([inert] *)').join(',');
|
|
880
|
+
var isFocusable = function isFocusable(node, options) {
|
|
881
|
+
options = options || {};
|
|
882
|
+
if (!node) {
|
|
883
|
+
throw new Error('No node provided');
|
|
884
|
+
}
|
|
885
|
+
if (matches.call(node, focusableCandidateSelector) === false) {
|
|
886
|
+
return false;
|
|
887
|
+
}
|
|
888
|
+
return isNodeMatchingSelectorFocusable(options, node);
|
|
889
|
+
};
|
|
890
|
+
|
|
891
|
+
function Circle_arrow_up($$renderer, $$props) {
|
|
892
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
893
|
+
const iconData = {
|
|
894
|
+
"name": "circle-arrow-up",
|
|
895
|
+
"size": 24,
|
|
896
|
+
"node": [
|
|
897
|
+
["circle", { "cx": "12", "cy": "12", "r": "10" }],
|
|
898
|
+
["path", { "d": "m16 12-4-4-4 4" }],
|
|
899
|
+
["path", { "d": "M12 16V8" }]
|
|
900
|
+
],
|
|
901
|
+
"aliases": ["arrow-up-circle"]
|
|
902
|
+
};
|
|
903
|
+
Icon($$renderer, spread_props([props, { icon: iconData }]));
|
|
904
|
+
}
|
|
905
|
+
function Refresh_cw($$renderer, $$props) {
|
|
906
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
907
|
+
const iconData = {
|
|
908
|
+
"name": "refresh-cw",
|
|
909
|
+
"size": 24,
|
|
910
|
+
"node": [
|
|
911
|
+
[
|
|
912
|
+
"path",
|
|
913
|
+
{ "d": "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8" }
|
|
914
|
+
],
|
|
915
|
+
["path", { "d": "M21 3v5h-5" }],
|
|
916
|
+
[
|
|
917
|
+
"path",
|
|
918
|
+
{ "d": "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16" }
|
|
919
|
+
],
|
|
920
|
+
["path", { "d": "M8 16H3v5" }]
|
|
921
|
+
]
|
|
922
|
+
};
|
|
923
|
+
Icon($$renderer, spread_props([props, { icon: iconData }]));
|
|
924
|
+
}
|
|
925
|
+
function isFunction(value) {
|
|
926
|
+
return typeof value === "function";
|
|
927
|
+
}
|
|
928
|
+
function isObject(value) {
|
|
929
|
+
return value !== null && typeof value === "object";
|
|
930
|
+
}
|
|
931
|
+
const CLASS_VALUE_PRIMITIVE_TYPES = ["string", "number", "bigint", "boolean"];
|
|
932
|
+
function isClassValue(value) {
|
|
933
|
+
if (value === null || value === void 0)
|
|
934
|
+
return true;
|
|
935
|
+
if (CLASS_VALUE_PRIMITIVE_TYPES.includes(typeof value))
|
|
936
|
+
return true;
|
|
937
|
+
if (Array.isArray(value))
|
|
938
|
+
return value.every((item) => isClassValue(item));
|
|
939
|
+
if (typeof value === "object") {
|
|
940
|
+
if (Object.getPrototypeOf(value) !== Object.prototype)
|
|
941
|
+
return false;
|
|
942
|
+
return true;
|
|
943
|
+
}
|
|
944
|
+
return false;
|
|
945
|
+
}
|
|
946
|
+
const BoxSymbol = /* @__PURE__ */ Symbol("box");
|
|
947
|
+
const isWritableSymbol = /* @__PURE__ */ Symbol("is-writable");
|
|
948
|
+
function boxWith(getter, setter) {
|
|
949
|
+
const derived$1 = derived(getter);
|
|
950
|
+
if (setter) {
|
|
951
|
+
return {
|
|
952
|
+
[BoxSymbol]: true,
|
|
953
|
+
[isWritableSymbol]: true,
|
|
954
|
+
get current() {
|
|
955
|
+
return derived$1();
|
|
956
|
+
},
|
|
957
|
+
set current(v) {
|
|
958
|
+
setter(v);
|
|
959
|
+
}
|
|
960
|
+
};
|
|
961
|
+
}
|
|
962
|
+
return {
|
|
963
|
+
[BoxSymbol]: true,
|
|
964
|
+
get current() {
|
|
965
|
+
return getter();
|
|
966
|
+
}
|
|
967
|
+
};
|
|
968
|
+
}
|
|
969
|
+
function isBox(value) {
|
|
970
|
+
return isObject(value) && BoxSymbol in value;
|
|
971
|
+
}
|
|
972
|
+
function isWritableBox(value) {
|
|
973
|
+
return isBox(value) && isWritableSymbol in value;
|
|
974
|
+
}
|
|
975
|
+
function boxFrom(value) {
|
|
976
|
+
if (isBox(value)) return value;
|
|
977
|
+
if (isFunction(value)) return boxWith(value);
|
|
978
|
+
return simpleBox(value);
|
|
979
|
+
}
|
|
980
|
+
function boxFlatten(boxes) {
|
|
981
|
+
return Object.entries(boxes).reduce(
|
|
982
|
+
(acc, [key, b]) => {
|
|
983
|
+
if (!isBox(b)) {
|
|
984
|
+
return Object.assign(acc, { [key]: b });
|
|
985
|
+
}
|
|
986
|
+
if (isWritableBox(b)) {
|
|
987
|
+
Object.defineProperty(acc, key, {
|
|
988
|
+
get() {
|
|
989
|
+
return b.current;
|
|
990
|
+
},
|
|
991
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
992
|
+
set(v) {
|
|
993
|
+
b.current = v;
|
|
994
|
+
}
|
|
995
|
+
});
|
|
996
|
+
} else {
|
|
997
|
+
Object.defineProperty(acc, key, {
|
|
998
|
+
get() {
|
|
999
|
+
return b.current;
|
|
1000
|
+
}
|
|
1001
|
+
});
|
|
1002
|
+
}
|
|
1003
|
+
return acc;
|
|
1004
|
+
},
|
|
1005
|
+
{}
|
|
1006
|
+
);
|
|
1007
|
+
}
|
|
1008
|
+
function toReadonlyBox(b) {
|
|
1009
|
+
if (!isWritableBox(b)) return b;
|
|
1010
|
+
return {
|
|
1011
|
+
[BoxSymbol]: true,
|
|
1012
|
+
get current() {
|
|
1013
|
+
return b.current;
|
|
1014
|
+
}
|
|
1015
|
+
};
|
|
1016
|
+
}
|
|
1017
|
+
function simpleBox(initialValue) {
|
|
1018
|
+
let current = initialValue;
|
|
1019
|
+
return {
|
|
1020
|
+
[BoxSymbol]: true,
|
|
1021
|
+
[isWritableSymbol]: true,
|
|
1022
|
+
get current() {
|
|
1023
|
+
return current;
|
|
1024
|
+
},
|
|
1025
|
+
set current(v) {
|
|
1026
|
+
current = v;
|
|
1027
|
+
}
|
|
1028
|
+
};
|
|
1029
|
+
}
|
|
1030
|
+
function composeHandlers(...handlers) {
|
|
1031
|
+
return function(e) {
|
|
1032
|
+
for (const handler of handlers) {
|
|
1033
|
+
if (!handler)
|
|
1034
|
+
continue;
|
|
1035
|
+
if (e.defaultPrevented)
|
|
1036
|
+
return;
|
|
1037
|
+
if (typeof handler === "function") {
|
|
1038
|
+
handler.call(this, e);
|
|
1039
|
+
} else {
|
|
1040
|
+
handler.current?.call(this, e);
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
};
|
|
1044
|
+
}
|
|
1045
|
+
const NUMBER_CHAR_RE = /\d/;
|
|
1046
|
+
const STR_SPLITTERS = ["-", "_", "/", "."];
|
|
1047
|
+
function isUppercase(char = "") {
|
|
1048
|
+
if (NUMBER_CHAR_RE.test(char))
|
|
1049
|
+
return void 0;
|
|
1050
|
+
return char !== char.toLowerCase();
|
|
1051
|
+
}
|
|
1052
|
+
function splitByCase(str) {
|
|
1053
|
+
const parts = [];
|
|
1054
|
+
let buff = "";
|
|
1055
|
+
let previousUpper;
|
|
1056
|
+
let previousSplitter;
|
|
1057
|
+
for (const char of str) {
|
|
1058
|
+
const isSplitter = STR_SPLITTERS.includes(char);
|
|
1059
|
+
if (isSplitter === true) {
|
|
1060
|
+
parts.push(buff);
|
|
1061
|
+
buff = "";
|
|
1062
|
+
previousUpper = void 0;
|
|
1063
|
+
continue;
|
|
1064
|
+
}
|
|
1065
|
+
const isUpper = isUppercase(char);
|
|
1066
|
+
if (previousSplitter === false) {
|
|
1067
|
+
if (previousUpper === false && isUpper === true) {
|
|
1068
|
+
parts.push(buff);
|
|
1069
|
+
buff = char;
|
|
1070
|
+
previousUpper = isUpper;
|
|
1071
|
+
continue;
|
|
1072
|
+
}
|
|
1073
|
+
if (previousUpper === true && isUpper === false && buff.length > 1) {
|
|
1074
|
+
const lastChar = buff.at(-1);
|
|
1075
|
+
parts.push(buff.slice(0, Math.max(0, buff.length - 1)));
|
|
1076
|
+
buff = lastChar + char;
|
|
1077
|
+
previousUpper = isUpper;
|
|
1078
|
+
continue;
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
buff += char;
|
|
1082
|
+
previousUpper = isUpper;
|
|
1083
|
+
previousSplitter = isSplitter;
|
|
1084
|
+
}
|
|
1085
|
+
parts.push(buff);
|
|
1086
|
+
return parts;
|
|
1087
|
+
}
|
|
1088
|
+
function pascalCase(str) {
|
|
1089
|
+
if (!str)
|
|
1090
|
+
return "";
|
|
1091
|
+
return splitByCase(str).map((p) => upperFirst(p)).join("");
|
|
1092
|
+
}
|
|
1093
|
+
function camelCase(str) {
|
|
1094
|
+
return lowerFirst(pascalCase(str || ""));
|
|
1095
|
+
}
|
|
1096
|
+
function upperFirst(str) {
|
|
1097
|
+
return str ? str[0].toUpperCase() + str.slice(1) : "";
|
|
1098
|
+
}
|
|
1099
|
+
function lowerFirst(str) {
|
|
1100
|
+
return str ? str[0].toLowerCase() + str.slice(1) : "";
|
|
1101
|
+
}
|
|
1102
|
+
function cssToStyleObj(css) {
|
|
1103
|
+
if (!css)
|
|
1104
|
+
return {};
|
|
1105
|
+
const styleObj = {};
|
|
1106
|
+
function iterator(name, value) {
|
|
1107
|
+
if (name.startsWith("-moz-") || name.startsWith("-webkit-") || name.startsWith("-ms-") || name.startsWith("-o-")) {
|
|
1108
|
+
styleObj[pascalCase(name)] = value;
|
|
1109
|
+
return;
|
|
1110
|
+
}
|
|
1111
|
+
if (name.startsWith("--")) {
|
|
1112
|
+
styleObj[name] = value;
|
|
1113
|
+
return;
|
|
1114
|
+
}
|
|
1115
|
+
styleObj[camelCase(name)] = value;
|
|
1116
|
+
}
|
|
1117
|
+
StyleToObject(css, iterator);
|
|
1118
|
+
return styleObj;
|
|
1119
|
+
}
|
|
1120
|
+
function executeCallbacks(...callbacks) {
|
|
1121
|
+
return (...args) => {
|
|
1122
|
+
for (const callback of callbacks) {
|
|
1123
|
+
if (typeof callback === "function") {
|
|
1124
|
+
callback(...args);
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
};
|
|
1128
|
+
}
|
|
1129
|
+
function createParser(matcher, replacer) {
|
|
1130
|
+
const regex = RegExp(matcher, "g");
|
|
1131
|
+
return (str) => {
|
|
1132
|
+
if (typeof str !== "string") {
|
|
1133
|
+
throw new TypeError(`expected an argument of type string, but got ${typeof str}`);
|
|
1134
|
+
}
|
|
1135
|
+
if (!str.match(regex))
|
|
1136
|
+
return str;
|
|
1137
|
+
return str.replace(regex, replacer);
|
|
1138
|
+
};
|
|
1139
|
+
}
|
|
1140
|
+
const camelToKebab = createParser(/[A-Z]/, (match) => `-${match.toLowerCase()}`);
|
|
1141
|
+
function styleToCSS(styleObj) {
|
|
1142
|
+
if (!styleObj || typeof styleObj !== "object" || Array.isArray(styleObj)) {
|
|
1143
|
+
throw new TypeError(`expected an argument of type object, but got ${typeof styleObj}`);
|
|
1144
|
+
}
|
|
1145
|
+
return Object.keys(styleObj).map((property) => `${camelToKebab(property)}: ${styleObj[property]};`).join("\n");
|
|
1146
|
+
}
|
|
1147
|
+
function styleToString(style = {}) {
|
|
1148
|
+
return styleToCSS(style).replace("\n", " ");
|
|
1149
|
+
}
|
|
1150
|
+
const EVENT_LIST = [
|
|
1151
|
+
"onabort",
|
|
1152
|
+
"onanimationcancel",
|
|
1153
|
+
"onanimationend",
|
|
1154
|
+
"onanimationiteration",
|
|
1155
|
+
"onanimationstart",
|
|
1156
|
+
"onauxclick",
|
|
1157
|
+
"onbeforeinput",
|
|
1158
|
+
"onbeforetoggle",
|
|
1159
|
+
"onblur",
|
|
1160
|
+
"oncancel",
|
|
1161
|
+
"oncanplay",
|
|
1162
|
+
"oncanplaythrough",
|
|
1163
|
+
"onchange",
|
|
1164
|
+
"onclick",
|
|
1165
|
+
"onclose",
|
|
1166
|
+
"oncompositionend",
|
|
1167
|
+
"oncompositionstart",
|
|
1168
|
+
"oncompositionupdate",
|
|
1169
|
+
"oncontextlost",
|
|
1170
|
+
"oncontextmenu",
|
|
1171
|
+
"oncontextrestored",
|
|
1172
|
+
"oncopy",
|
|
1173
|
+
"oncuechange",
|
|
1174
|
+
"oncut",
|
|
1175
|
+
"ondblclick",
|
|
1176
|
+
"ondrag",
|
|
1177
|
+
"ondragend",
|
|
1178
|
+
"ondragenter",
|
|
1179
|
+
"ondragleave",
|
|
1180
|
+
"ondragover",
|
|
1181
|
+
"ondragstart",
|
|
1182
|
+
"ondrop",
|
|
1183
|
+
"ondurationchange",
|
|
1184
|
+
"onemptied",
|
|
1185
|
+
"onended",
|
|
1186
|
+
"onerror",
|
|
1187
|
+
"onfocus",
|
|
1188
|
+
"onfocusin",
|
|
1189
|
+
"onfocusout",
|
|
1190
|
+
"onformdata",
|
|
1191
|
+
"ongotpointercapture",
|
|
1192
|
+
"oninput",
|
|
1193
|
+
"oninvalid",
|
|
1194
|
+
"onkeydown",
|
|
1195
|
+
"onkeypress",
|
|
1196
|
+
"onkeyup",
|
|
1197
|
+
"onload",
|
|
1198
|
+
"onloadeddata",
|
|
1199
|
+
"onloadedmetadata",
|
|
1200
|
+
"onloadstart",
|
|
1201
|
+
"onlostpointercapture",
|
|
1202
|
+
"onmousedown",
|
|
1203
|
+
"onmouseenter",
|
|
1204
|
+
"onmouseleave",
|
|
1205
|
+
"onmousemove",
|
|
1206
|
+
"onmouseout",
|
|
1207
|
+
"onmouseover",
|
|
1208
|
+
"onmouseup",
|
|
1209
|
+
"onpaste",
|
|
1210
|
+
"onpause",
|
|
1211
|
+
"onplay",
|
|
1212
|
+
"onplaying",
|
|
1213
|
+
"onpointercancel",
|
|
1214
|
+
"onpointerdown",
|
|
1215
|
+
"onpointerenter",
|
|
1216
|
+
"onpointerleave",
|
|
1217
|
+
"onpointermove",
|
|
1218
|
+
"onpointerout",
|
|
1219
|
+
"onpointerover",
|
|
1220
|
+
"onpointerup",
|
|
1221
|
+
"onprogress",
|
|
1222
|
+
"onratechange",
|
|
1223
|
+
"onreset",
|
|
1224
|
+
"onresize",
|
|
1225
|
+
"onscroll",
|
|
1226
|
+
"onscrollend",
|
|
1227
|
+
"onsecuritypolicyviolation",
|
|
1228
|
+
"onseeked",
|
|
1229
|
+
"onseeking",
|
|
1230
|
+
"onselect",
|
|
1231
|
+
"onselectionchange",
|
|
1232
|
+
"onselectstart",
|
|
1233
|
+
"onslotchange",
|
|
1234
|
+
"onstalled",
|
|
1235
|
+
"onsubmit",
|
|
1236
|
+
"onsuspend",
|
|
1237
|
+
"ontimeupdate",
|
|
1238
|
+
"ontoggle",
|
|
1239
|
+
"ontouchcancel",
|
|
1240
|
+
"ontouchend",
|
|
1241
|
+
"ontouchmove",
|
|
1242
|
+
"ontouchstart",
|
|
1243
|
+
"ontransitioncancel",
|
|
1244
|
+
"ontransitionend",
|
|
1245
|
+
"ontransitionrun",
|
|
1246
|
+
"ontransitionstart",
|
|
1247
|
+
"onvolumechange",
|
|
1248
|
+
"onwaiting",
|
|
1249
|
+
"onwebkitanimationend",
|
|
1250
|
+
"onwebkitanimationiteration",
|
|
1251
|
+
"onwebkitanimationstart",
|
|
1252
|
+
"onwebkittransitionend",
|
|
1253
|
+
"onwheel"
|
|
1254
|
+
];
|
|
1255
|
+
const EVENT_LIST_SET = new Set(EVENT_LIST);
|
|
1256
|
+
function isEventHandler(key) {
|
|
1257
|
+
return EVENT_LIST_SET.has(key);
|
|
1258
|
+
}
|
|
1259
|
+
function mergeProps(...args) {
|
|
1260
|
+
const result = { ...args[0] };
|
|
1261
|
+
for (let i = 1; i < args.length; i++) {
|
|
1262
|
+
const props = args[i];
|
|
1263
|
+
if (!props)
|
|
1264
|
+
continue;
|
|
1265
|
+
for (const key of Object.keys(props)) {
|
|
1266
|
+
const a = result[key];
|
|
1267
|
+
const b = props[key];
|
|
1268
|
+
const aIsFunction = typeof a === "function";
|
|
1269
|
+
const bIsFunction = typeof b === "function";
|
|
1270
|
+
if (aIsFunction && typeof bIsFunction && isEventHandler(key)) {
|
|
1271
|
+
const aHandler = a;
|
|
1272
|
+
const bHandler = b;
|
|
1273
|
+
result[key] = composeHandlers(aHandler, bHandler);
|
|
1274
|
+
} else if (aIsFunction && bIsFunction) {
|
|
1275
|
+
result[key] = executeCallbacks(a, b);
|
|
1276
|
+
} else if (key === "class") {
|
|
1277
|
+
const aIsClassValue = isClassValue(a);
|
|
1278
|
+
const bIsClassValue = isClassValue(b);
|
|
1279
|
+
if (aIsClassValue && bIsClassValue) {
|
|
1280
|
+
result[key] = clsx(a, b);
|
|
1281
|
+
} else if (aIsClassValue) {
|
|
1282
|
+
result[key] = clsx(a);
|
|
1283
|
+
} else if (bIsClassValue) {
|
|
1284
|
+
result[key] = clsx(b);
|
|
1285
|
+
}
|
|
1286
|
+
} else if (key === "style") {
|
|
1287
|
+
const aIsObject = typeof a === "object";
|
|
1288
|
+
const bIsObject = typeof b === "object";
|
|
1289
|
+
const aIsString = typeof a === "string";
|
|
1290
|
+
const bIsString = typeof b === "string";
|
|
1291
|
+
if (aIsObject && bIsObject) {
|
|
1292
|
+
result[key] = { ...a, ...b };
|
|
1293
|
+
} else if (aIsObject && bIsString) {
|
|
1294
|
+
const parsedStyle = cssToStyleObj(b);
|
|
1295
|
+
result[key] = { ...a, ...parsedStyle };
|
|
1296
|
+
} else if (aIsString && bIsObject) {
|
|
1297
|
+
const parsedStyle = cssToStyleObj(a);
|
|
1298
|
+
result[key] = { ...parsedStyle, ...b };
|
|
1299
|
+
} else if (aIsString && bIsString) {
|
|
1300
|
+
const parsedStyleA = cssToStyleObj(a);
|
|
1301
|
+
const parsedStyleB = cssToStyleObj(b);
|
|
1302
|
+
result[key] = { ...parsedStyleA, ...parsedStyleB };
|
|
1303
|
+
} else if (aIsObject) {
|
|
1304
|
+
result[key] = a;
|
|
1305
|
+
} else if (bIsObject) {
|
|
1306
|
+
result[key] = b;
|
|
1307
|
+
} else if (aIsString) {
|
|
1308
|
+
result[key] = a;
|
|
1309
|
+
} else if (bIsString) {
|
|
1310
|
+
result[key] = b;
|
|
1311
|
+
}
|
|
1312
|
+
} else {
|
|
1313
|
+
result[key] = b !== void 0 ? b : a;
|
|
1314
|
+
}
|
|
1315
|
+
}
|
|
1316
|
+
for (const key of Object.getOwnPropertySymbols(props)) {
|
|
1317
|
+
const a = result[key];
|
|
1318
|
+
const b = props[key];
|
|
1319
|
+
result[key] = b !== void 0 ? b : a;
|
|
1320
|
+
}
|
|
1321
|
+
}
|
|
1322
|
+
if (typeof result.style === "object") {
|
|
1323
|
+
result.style = styleToString(result.style).replaceAll("\n", " ");
|
|
1324
|
+
}
|
|
1325
|
+
if (result.hidden === false) {
|
|
1326
|
+
result.hidden = void 0;
|
|
1327
|
+
delete result.hidden;
|
|
1328
|
+
}
|
|
1329
|
+
if (result.disabled === false) {
|
|
1330
|
+
result.disabled = void 0;
|
|
1331
|
+
delete result.disabled;
|
|
1332
|
+
}
|
|
1333
|
+
return result;
|
|
1334
|
+
}
|
|
1335
|
+
const defaultWindow = void 0;
|
|
1336
|
+
function getActiveElement$1(document2) {
|
|
1337
|
+
let activeElement = document2.activeElement;
|
|
1338
|
+
while (activeElement?.shadowRoot) {
|
|
1339
|
+
const node = activeElement.shadowRoot.activeElement;
|
|
1340
|
+
if (node === activeElement)
|
|
1341
|
+
break;
|
|
1342
|
+
else
|
|
1343
|
+
activeElement = node;
|
|
1344
|
+
}
|
|
1345
|
+
return activeElement;
|
|
1346
|
+
}
|
|
1347
|
+
class ActiveElement {
|
|
1348
|
+
#document;
|
|
1349
|
+
#subscribe;
|
|
1350
|
+
constructor(options = {}) {
|
|
1351
|
+
const { window: window2 = defaultWindow, document: document2 = window2?.document } = options;
|
|
1352
|
+
if (window2 === void 0) return;
|
|
1353
|
+
this.#document = document2;
|
|
1354
|
+
this.#subscribe = createSubscriber();
|
|
1355
|
+
}
|
|
1356
|
+
get current() {
|
|
1357
|
+
this.#subscribe?.();
|
|
1358
|
+
if (!this.#document) return null;
|
|
1359
|
+
return getActiveElement$1(this.#document);
|
|
1360
|
+
}
|
|
1361
|
+
}
|
|
1362
|
+
new ActiveElement();
|
|
1363
|
+
class Context {
|
|
1364
|
+
#name;
|
|
1365
|
+
#key;
|
|
1366
|
+
/**
|
|
1367
|
+
* @param name The name of the context.
|
|
1368
|
+
* This is used for generating the context key and error messages.
|
|
1369
|
+
*/
|
|
1370
|
+
constructor(name) {
|
|
1371
|
+
this.#name = name;
|
|
1372
|
+
this.#key = Symbol(name);
|
|
1373
|
+
}
|
|
1374
|
+
/**
|
|
1375
|
+
* The key used to get and set the context.
|
|
1376
|
+
*
|
|
1377
|
+
* It is not recommended to use this value directly.
|
|
1378
|
+
* Instead, use the methods provided by this class.
|
|
1379
|
+
*/
|
|
1380
|
+
get key() {
|
|
1381
|
+
return this.#key;
|
|
1382
|
+
}
|
|
1383
|
+
/**
|
|
1384
|
+
* Checks whether this has been set in the context of a parent component.
|
|
1385
|
+
*
|
|
1386
|
+
* Must be called during component initialisation.
|
|
1387
|
+
*/
|
|
1388
|
+
exists() {
|
|
1389
|
+
return hasContext(this.#key);
|
|
1390
|
+
}
|
|
1391
|
+
/**
|
|
1392
|
+
* Retrieves the context that belongs to the closest parent component.
|
|
1393
|
+
*
|
|
1394
|
+
* Must be called during component initialisation.
|
|
1395
|
+
*
|
|
1396
|
+
* @throws An error if the context does not exist.
|
|
1397
|
+
*/
|
|
1398
|
+
get() {
|
|
1399
|
+
const context = getContext(this.#key);
|
|
1400
|
+
if (context === void 0) {
|
|
1401
|
+
throw new Error(`Context "${this.#name}" not found`);
|
|
1402
|
+
}
|
|
1403
|
+
return context;
|
|
1404
|
+
}
|
|
1405
|
+
/**
|
|
1406
|
+
* Retrieves the context that belongs to the closest parent component,
|
|
1407
|
+
* or the given fallback value if the context does not exist.
|
|
1408
|
+
*
|
|
1409
|
+
* Must be called during component initialisation.
|
|
1410
|
+
*/
|
|
1411
|
+
getOr(fallback) {
|
|
1412
|
+
const context = getContext(this.#key);
|
|
1413
|
+
if (context === void 0) {
|
|
1414
|
+
return fallback;
|
|
1415
|
+
}
|
|
1416
|
+
return context;
|
|
1417
|
+
}
|
|
1418
|
+
/**
|
|
1419
|
+
* Associates the given value with the current component and returns it.
|
|
1420
|
+
*
|
|
1421
|
+
* Must be called during component initialisation.
|
|
1422
|
+
*/
|
|
1423
|
+
set(context) {
|
|
1424
|
+
return setContext(this.#key, context);
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
function runWatcher(sources, flush, effect, options = {}) {
|
|
1428
|
+
const { lazy = false } = options;
|
|
1429
|
+
}
|
|
1430
|
+
function watch(sources, effect, options) {
|
|
1431
|
+
runWatcher(sources, "post", effect, options);
|
|
1432
|
+
}
|
|
1433
|
+
function watchPre(sources, effect, options) {
|
|
1434
|
+
runWatcher(sources, "pre", effect, options);
|
|
1435
|
+
}
|
|
1436
|
+
watch.pre = watchPre;
|
|
1437
|
+
function afterTick(fn) {
|
|
1438
|
+
tick().then(fn);
|
|
1439
|
+
}
|
|
1440
|
+
const ELEMENT_NODE = 1;
|
|
1441
|
+
const DOCUMENT_NODE = 9;
|
|
1442
|
+
const DOCUMENT_FRAGMENT_NODE = 11;
|
|
1443
|
+
function isHTMLElement$1(node) {
|
|
1444
|
+
return isObject(node) && node.nodeType === ELEMENT_NODE && typeof node.nodeName === "string";
|
|
1445
|
+
}
|
|
1446
|
+
function isDocument(node) {
|
|
1447
|
+
return isObject(node) && node.nodeType === DOCUMENT_NODE;
|
|
1448
|
+
}
|
|
1449
|
+
function isWindow(node) {
|
|
1450
|
+
return isObject(node) && node.constructor?.name === "VisualViewport";
|
|
1451
|
+
}
|
|
1452
|
+
function isNode(node) {
|
|
1453
|
+
return isObject(node) && node.nodeType !== void 0;
|
|
1454
|
+
}
|
|
1455
|
+
function isShadowRoot(node) {
|
|
1456
|
+
return isNode(node) && node.nodeType === DOCUMENT_FRAGMENT_NODE && "host" in node;
|
|
1457
|
+
}
|
|
1458
|
+
function contains(parent, child) {
|
|
1459
|
+
if (!parent || !child)
|
|
1460
|
+
return false;
|
|
1461
|
+
if (!isHTMLElement$1(parent) || !isHTMLElement$1(child))
|
|
1462
|
+
return false;
|
|
1463
|
+
const rootNode = child.getRootNode?.();
|
|
1464
|
+
if (parent === child)
|
|
1465
|
+
return true;
|
|
1466
|
+
if (parent.contains(child))
|
|
1467
|
+
return true;
|
|
1468
|
+
if (rootNode && isShadowRoot(rootNode)) {
|
|
1469
|
+
let next = child;
|
|
1470
|
+
while (next) {
|
|
1471
|
+
if (parent === next)
|
|
1472
|
+
return true;
|
|
1473
|
+
next = next.parentNode || next.host;
|
|
1474
|
+
}
|
|
1475
|
+
}
|
|
1476
|
+
return false;
|
|
1477
|
+
}
|
|
1478
|
+
function getDocument(node) {
|
|
1479
|
+
if (isDocument(node))
|
|
1480
|
+
return node;
|
|
1481
|
+
if (isWindow(node))
|
|
1482
|
+
return node.document;
|
|
1483
|
+
return node?.ownerDocument ?? document;
|
|
1484
|
+
}
|
|
1485
|
+
function getWindow(node) {
|
|
1486
|
+
if (isShadowRoot(node))
|
|
1487
|
+
return getWindow(node.host);
|
|
1488
|
+
if (isDocument(node))
|
|
1489
|
+
return node.defaultView ?? window;
|
|
1490
|
+
if (isHTMLElement$1(node))
|
|
1491
|
+
return node.ownerDocument?.defaultView ?? window;
|
|
1492
|
+
return window;
|
|
1493
|
+
}
|
|
1494
|
+
function getActiveElement(rootNode) {
|
|
1495
|
+
let activeElement = rootNode.activeElement;
|
|
1496
|
+
while (activeElement?.shadowRoot) {
|
|
1497
|
+
const el = activeElement.shadowRoot.activeElement;
|
|
1498
|
+
if (el === activeElement)
|
|
1499
|
+
break;
|
|
1500
|
+
else
|
|
1501
|
+
activeElement = el;
|
|
1502
|
+
}
|
|
1503
|
+
return activeElement;
|
|
1504
|
+
}
|
|
1505
|
+
class DOMContext {
|
|
1506
|
+
element;
|
|
1507
|
+
#root = derived(() => {
|
|
1508
|
+
if (!this.element.current) return document;
|
|
1509
|
+
const rootNode = this.element.current.getRootNode() ?? document;
|
|
1510
|
+
return rootNode;
|
|
1511
|
+
});
|
|
1512
|
+
get root() {
|
|
1513
|
+
return this.#root();
|
|
1514
|
+
}
|
|
1515
|
+
set root($$value) {
|
|
1516
|
+
return this.#root($$value);
|
|
1517
|
+
}
|
|
1518
|
+
constructor(element) {
|
|
1519
|
+
if (typeof element === "function") {
|
|
1520
|
+
this.element = boxWith(element);
|
|
1521
|
+
} else {
|
|
1522
|
+
this.element = element;
|
|
1523
|
+
}
|
|
1524
|
+
}
|
|
1525
|
+
getDocument = () => {
|
|
1526
|
+
return getDocument(this.root);
|
|
1527
|
+
};
|
|
1528
|
+
getWindow = () => {
|
|
1529
|
+
return this.getDocument().defaultView ?? window;
|
|
1530
|
+
};
|
|
1531
|
+
getActiveElement = () => {
|
|
1532
|
+
return getActiveElement(this.root);
|
|
1533
|
+
};
|
|
1534
|
+
isActiveElement = (node) => {
|
|
1535
|
+
return node === this.getActiveElement();
|
|
1536
|
+
};
|
|
1537
|
+
getElementById(id) {
|
|
1538
|
+
return this.root.getElementById(id);
|
|
1539
|
+
}
|
|
1540
|
+
querySelector = (selector) => {
|
|
1541
|
+
if (!this.root) return null;
|
|
1542
|
+
return this.root.querySelector(selector);
|
|
1543
|
+
};
|
|
1544
|
+
querySelectorAll = (selector) => {
|
|
1545
|
+
if (!this.root) return [];
|
|
1546
|
+
return this.root.querySelectorAll(selector);
|
|
1547
|
+
};
|
|
1548
|
+
setTimeout = (callback, delay) => {
|
|
1549
|
+
return this.getWindow().setTimeout(callback, delay);
|
|
1550
|
+
};
|
|
1551
|
+
clearTimeout = (timeoutId) => {
|
|
1552
|
+
return this.getWindow().clearTimeout(timeoutId);
|
|
1553
|
+
};
|
|
1554
|
+
}
|
|
1555
|
+
function createAttachmentKey() {
|
|
1556
|
+
return Symbol(ATTACHMENT_KEY);
|
|
1557
|
+
}
|
|
1558
|
+
function attachRef(ref, onChange) {
|
|
1559
|
+
return {
|
|
1560
|
+
[createAttachmentKey()]: (node) => {
|
|
1561
|
+
if (isBox(ref)) {
|
|
1562
|
+
ref.current = node;
|
|
1563
|
+
run(() => onChange?.(node));
|
|
1564
|
+
return () => {
|
|
1565
|
+
if ("isConnected" in node && node.isConnected)
|
|
1566
|
+
return;
|
|
1567
|
+
ref.current = null;
|
|
1568
|
+
onChange?.(null);
|
|
1569
|
+
};
|
|
1570
|
+
}
|
|
1571
|
+
ref(node);
|
|
1572
|
+
run(() => onChange?.(node));
|
|
1573
|
+
return () => {
|
|
1574
|
+
if ("isConnected" in node && node.isConnected)
|
|
1575
|
+
return;
|
|
1576
|
+
ref(null);
|
|
1577
|
+
onChange?.(null);
|
|
1578
|
+
};
|
|
1579
|
+
}
|
|
1580
|
+
};
|
|
1581
|
+
}
|
|
1582
|
+
function boolToStr(condition) {
|
|
1583
|
+
return condition ? "true" : "false";
|
|
1584
|
+
}
|
|
1585
|
+
function boolToEmptyStrOrUndef(condition) {
|
|
1586
|
+
return condition ? "" : void 0;
|
|
1587
|
+
}
|
|
1588
|
+
function getDataOpenClosed(condition) {
|
|
1589
|
+
return condition ? "open" : "closed";
|
|
1590
|
+
}
|
|
1591
|
+
function getDataTransitionAttrs(state) {
|
|
1592
|
+
if (state === "starting")
|
|
1593
|
+
return { "data-starting-style": "" };
|
|
1594
|
+
if (state === "ending")
|
|
1595
|
+
return { "data-ending-style": "" };
|
|
1596
|
+
return {};
|
|
1597
|
+
}
|
|
1598
|
+
function getAriaChecked(checked, indeterminate) {
|
|
1599
|
+
if (indeterminate)
|
|
1600
|
+
return "mixed";
|
|
1601
|
+
return checked ? "true" : "false";
|
|
1602
|
+
}
|
|
1603
|
+
class BitsAttrs {
|
|
1604
|
+
#variant;
|
|
1605
|
+
#prefix;
|
|
1606
|
+
attrs;
|
|
1607
|
+
constructor(config) {
|
|
1608
|
+
this.#variant = config.getVariant ? config.getVariant() : null;
|
|
1609
|
+
this.#prefix = this.#variant ? `data-${this.#variant}-` : `data-${config.component}-`;
|
|
1610
|
+
this.getAttr = this.getAttr.bind(this);
|
|
1611
|
+
this.selector = this.selector.bind(this);
|
|
1612
|
+
this.attrs = Object.fromEntries(config.parts.map((part) => [part, this.getAttr(part)]));
|
|
1613
|
+
}
|
|
1614
|
+
getAttr(part, variantOverride) {
|
|
1615
|
+
if (variantOverride)
|
|
1616
|
+
return `data-${variantOverride}-${part}`;
|
|
1617
|
+
return `${this.#prefix}${part}`;
|
|
1618
|
+
}
|
|
1619
|
+
selector(part, variantOverride) {
|
|
1620
|
+
return `[${this.getAttr(part, variantOverride)}]`;
|
|
1621
|
+
}
|
|
1622
|
+
}
|
|
1623
|
+
function createBitsAttrs(config) {
|
|
1624
|
+
const bitsAttrs = new BitsAttrs(config);
|
|
1625
|
+
return {
|
|
1626
|
+
...bitsAttrs.attrs,
|
|
1627
|
+
selector: bitsAttrs.selector,
|
|
1628
|
+
getAttr: bitsAttrs.getAttr
|
|
1629
|
+
};
|
|
1630
|
+
}
|
|
1631
|
+
const ARROW_DOWN = "ArrowDown";
|
|
1632
|
+
const ARROW_LEFT = "ArrowLeft";
|
|
1633
|
+
const ARROW_RIGHT = "ArrowRight";
|
|
1634
|
+
const ARROW_UP = "ArrowUp";
|
|
1635
|
+
const END = "End";
|
|
1636
|
+
const ENTER = "Enter";
|
|
1637
|
+
const ESCAPE = "Escape";
|
|
1638
|
+
const HOME = "Home";
|
|
1639
|
+
const PAGE_DOWN = "PageDown";
|
|
1640
|
+
const PAGE_UP = "PageUp";
|
|
1641
|
+
const SPACE = " ";
|
|
1642
|
+
const TAB = "Tab";
|
|
1643
|
+
const isBrowser = typeof document !== "undefined";
|
|
1644
|
+
const isIOS = getIsIOS();
|
|
1645
|
+
function getIsIOS() {
|
|
1646
|
+
return isBrowser && window?.navigator?.userAgent && (/iP(ad|hone|od)/.test(window.navigator.userAgent) || // The new iPad Pro Gen3 does not identify itself as iPad, but as Macintosh.
|
|
1647
|
+
window?.navigator?.maxTouchPoints > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
|
|
1648
|
+
}
|
|
1649
|
+
function isHTMLElement(element) {
|
|
1650
|
+
return element instanceof HTMLElement;
|
|
1651
|
+
}
|
|
1652
|
+
function isElement(element) {
|
|
1653
|
+
return element instanceof Element;
|
|
1654
|
+
}
|
|
1655
|
+
function isElementOrSVGElement(element) {
|
|
1656
|
+
return element instanceof Element || element instanceof SVGElement;
|
|
1657
|
+
}
|
|
1658
|
+
function isTouch(e) {
|
|
1659
|
+
return e.pointerType === "touch";
|
|
1660
|
+
}
|
|
1661
|
+
function isFocusVisible(element) {
|
|
1662
|
+
return element.matches(":focus-visible");
|
|
1663
|
+
}
|
|
1664
|
+
function isNotNull(value) {
|
|
1665
|
+
return value !== null;
|
|
1666
|
+
}
|
|
1667
|
+
function isSelectableInput(element) {
|
|
1668
|
+
return element instanceof HTMLInputElement && "select" in element;
|
|
1669
|
+
}
|
|
1670
|
+
class AnimationsComplete {
|
|
1671
|
+
#opts;
|
|
1672
|
+
#currentFrame = null;
|
|
1673
|
+
#observer = null;
|
|
1674
|
+
#runId = 0;
|
|
1675
|
+
constructor(opts) {
|
|
1676
|
+
this.#opts = opts;
|
|
1677
|
+
}
|
|
1678
|
+
#cleanup() {
|
|
1679
|
+
if (this.#currentFrame !== null) {
|
|
1680
|
+
window.cancelAnimationFrame(this.#currentFrame);
|
|
1681
|
+
this.#currentFrame = null;
|
|
1682
|
+
}
|
|
1683
|
+
this.#observer?.disconnect();
|
|
1684
|
+
this.#observer = null;
|
|
1685
|
+
this.#runId++;
|
|
1686
|
+
}
|
|
1687
|
+
run(fn) {
|
|
1688
|
+
this.#cleanup();
|
|
1689
|
+
const node = this.#opts.ref.current;
|
|
1690
|
+
if (!node)
|
|
1691
|
+
return;
|
|
1692
|
+
if (typeof node.getAnimations !== "function") {
|
|
1693
|
+
this.#executeCallback(fn);
|
|
1694
|
+
return;
|
|
1695
|
+
}
|
|
1696
|
+
const runId = this.#runId;
|
|
1697
|
+
const executeIfCurrent = () => {
|
|
1698
|
+
if (runId !== this.#runId)
|
|
1699
|
+
return;
|
|
1700
|
+
this.#executeCallback(fn);
|
|
1701
|
+
};
|
|
1702
|
+
const waitForAnimations = () => {
|
|
1703
|
+
if (runId !== this.#runId)
|
|
1704
|
+
return;
|
|
1705
|
+
const animations = node.getAnimations();
|
|
1706
|
+
if (animations.length === 0) {
|
|
1707
|
+
executeIfCurrent();
|
|
1708
|
+
return;
|
|
1709
|
+
}
|
|
1710
|
+
Promise.all(animations.map((animation) => animation.finished)).then(() => {
|
|
1711
|
+
executeIfCurrent();
|
|
1712
|
+
}).catch(() => {
|
|
1713
|
+
if (runId !== this.#runId)
|
|
1714
|
+
return;
|
|
1715
|
+
const currentAnimations = node.getAnimations();
|
|
1716
|
+
const hasRunningAnimations = currentAnimations.some((animation) => animation.pending || animation.playState !== "finished");
|
|
1717
|
+
if (hasRunningAnimations) {
|
|
1718
|
+
waitForAnimations();
|
|
1719
|
+
return;
|
|
1720
|
+
}
|
|
1721
|
+
executeIfCurrent();
|
|
1722
|
+
});
|
|
1723
|
+
};
|
|
1724
|
+
const requestWaitForAnimations = () => {
|
|
1725
|
+
this.#currentFrame = window.requestAnimationFrame(() => {
|
|
1726
|
+
this.#currentFrame = null;
|
|
1727
|
+
waitForAnimations();
|
|
1728
|
+
});
|
|
1729
|
+
};
|
|
1730
|
+
if (!this.#opts.afterTick.current) {
|
|
1731
|
+
requestWaitForAnimations();
|
|
1732
|
+
return;
|
|
1733
|
+
}
|
|
1734
|
+
this.#currentFrame = window.requestAnimationFrame(() => {
|
|
1735
|
+
this.#currentFrame = null;
|
|
1736
|
+
const startingStyleAttr = "data-starting-style";
|
|
1737
|
+
if (!node.hasAttribute(startingStyleAttr)) {
|
|
1738
|
+
requestWaitForAnimations();
|
|
1739
|
+
return;
|
|
1740
|
+
}
|
|
1741
|
+
this.#observer = new MutationObserver(() => {
|
|
1742
|
+
if (runId !== this.#runId)
|
|
1743
|
+
return;
|
|
1744
|
+
if (node.hasAttribute(startingStyleAttr))
|
|
1745
|
+
return;
|
|
1746
|
+
this.#observer?.disconnect();
|
|
1747
|
+
this.#observer = null;
|
|
1748
|
+
requestWaitForAnimations();
|
|
1749
|
+
});
|
|
1750
|
+
this.#observer.observe(node, {
|
|
1751
|
+
attributes: true,
|
|
1752
|
+
attributeFilter: [startingStyleAttr]
|
|
1753
|
+
});
|
|
1754
|
+
});
|
|
1755
|
+
}
|
|
1756
|
+
#executeCallback(fn) {
|
|
1757
|
+
const execute = () => {
|
|
1758
|
+
fn();
|
|
1759
|
+
};
|
|
1760
|
+
if (this.#opts.afterTick) {
|
|
1761
|
+
afterTick(execute);
|
|
1762
|
+
} else {
|
|
1763
|
+
execute();
|
|
1764
|
+
}
|
|
1765
|
+
}
|
|
1766
|
+
}
|
|
1767
|
+
class PresenceManager {
|
|
1768
|
+
#opts;
|
|
1769
|
+
#enabled;
|
|
1770
|
+
#afterAnimations;
|
|
1771
|
+
#shouldRender = false;
|
|
1772
|
+
#transitionStatus = void 0;
|
|
1773
|
+
#hasMounted = false;
|
|
1774
|
+
#transitionFrame = null;
|
|
1775
|
+
constructor(opts) {
|
|
1776
|
+
this.#opts = opts;
|
|
1777
|
+
this.#shouldRender = opts.open.current;
|
|
1778
|
+
this.#enabled = opts.enabled ?? true;
|
|
1779
|
+
this.#afterAnimations = new AnimationsComplete({ ref: this.#opts.ref, afterTick: this.#opts.open });
|
|
1780
|
+
watch(() => this.#opts.open.current, (isOpen) => {
|
|
1781
|
+
if (!this.#hasMounted) {
|
|
1782
|
+
this.#hasMounted = true;
|
|
1783
|
+
return;
|
|
1784
|
+
}
|
|
1785
|
+
this.#clearTransitionFrame();
|
|
1786
|
+
if (!isOpen && this.#opts.shouldSkipExitAnimation?.()) {
|
|
1787
|
+
this.#shouldRender = false;
|
|
1788
|
+
this.#transitionStatus = void 0;
|
|
1789
|
+
this.#opts.onComplete?.();
|
|
1790
|
+
return;
|
|
1791
|
+
}
|
|
1792
|
+
if (isOpen) this.#shouldRender = true;
|
|
1793
|
+
this.#transitionStatus = isOpen ? "starting" : "ending";
|
|
1794
|
+
if (isOpen) {
|
|
1795
|
+
this.#transitionFrame = window.requestAnimationFrame(() => {
|
|
1796
|
+
this.#transitionFrame = null;
|
|
1797
|
+
if (this.#opts.open.current) {
|
|
1798
|
+
this.#transitionStatus = void 0;
|
|
1799
|
+
}
|
|
1800
|
+
});
|
|
1801
|
+
}
|
|
1802
|
+
if (!this.#enabled) {
|
|
1803
|
+
if (!isOpen) {
|
|
1804
|
+
this.#shouldRender = false;
|
|
1805
|
+
}
|
|
1806
|
+
this.#transitionStatus = void 0;
|
|
1807
|
+
this.#opts.onComplete?.();
|
|
1808
|
+
return;
|
|
1809
|
+
}
|
|
1810
|
+
this.#afterAnimations.run(() => {
|
|
1811
|
+
if (isOpen === this.#opts.open.current) {
|
|
1812
|
+
if (!this.#opts.open.current) {
|
|
1813
|
+
this.#shouldRender = false;
|
|
1814
|
+
}
|
|
1815
|
+
this.#transitionStatus = void 0;
|
|
1816
|
+
this.#opts.onComplete?.();
|
|
1817
|
+
}
|
|
1818
|
+
});
|
|
1819
|
+
});
|
|
1820
|
+
}
|
|
1821
|
+
get shouldRender() {
|
|
1822
|
+
return this.#shouldRender;
|
|
1823
|
+
}
|
|
1824
|
+
get transitionStatus() {
|
|
1825
|
+
return this.#transitionStatus;
|
|
1826
|
+
}
|
|
1827
|
+
#clearTransitionFrame() {
|
|
1828
|
+
if (this.#transitionFrame === null) return;
|
|
1829
|
+
window.cancelAnimationFrame(this.#transitionFrame);
|
|
1830
|
+
this.#transitionFrame = null;
|
|
1831
|
+
}
|
|
1832
|
+
}
|
|
1833
|
+
function noop() {
|
|
1834
|
+
}
|
|
1835
|
+
function createId(prefixOrUid, uid) {
|
|
1836
|
+
return `bits-${prefixOrUid}`;
|
|
1837
|
+
}
|
|
1838
|
+
const BitsConfigContext = new Context("BitsConfig");
|
|
1839
|
+
function getBitsConfig() {
|
|
1840
|
+
const fallback = new BitsConfigState(null, {});
|
|
1841
|
+
return BitsConfigContext.getOr(fallback).opts;
|
|
1842
|
+
}
|
|
1843
|
+
class BitsConfigState {
|
|
1844
|
+
opts;
|
|
1845
|
+
constructor(parent, opts) {
|
|
1846
|
+
const resolveConfigOption = createConfigResolver(parent, opts);
|
|
1847
|
+
this.opts = {
|
|
1848
|
+
defaultPortalTo: resolveConfigOption((config) => config.defaultPortalTo),
|
|
1849
|
+
defaultLocale: resolveConfigOption((config) => config.defaultLocale)
|
|
1850
|
+
};
|
|
1851
|
+
}
|
|
1852
|
+
}
|
|
1853
|
+
function createConfigResolver(parent, currentOpts) {
|
|
1854
|
+
return (getter) => {
|
|
1855
|
+
const configOption = boxWith(() => {
|
|
1856
|
+
const value = getter(currentOpts)?.current;
|
|
1857
|
+
if (value !== void 0)
|
|
1858
|
+
return value;
|
|
1859
|
+
if (parent === null)
|
|
1860
|
+
return void 0;
|
|
1861
|
+
return getter(parent.opts)?.current;
|
|
1862
|
+
});
|
|
1863
|
+
return configOption;
|
|
1864
|
+
};
|
|
1865
|
+
}
|
|
1866
|
+
function createPropResolver(configOption, fallback) {
|
|
1867
|
+
return (getProp) => {
|
|
1868
|
+
const config = getBitsConfig();
|
|
1869
|
+
return boxWith(() => {
|
|
1870
|
+
const propValue = getProp();
|
|
1871
|
+
if (propValue !== void 0)
|
|
1872
|
+
return propValue;
|
|
1873
|
+
const option = configOption(config).current;
|
|
1874
|
+
if (option !== void 0)
|
|
1875
|
+
return option;
|
|
1876
|
+
return fallback;
|
|
1877
|
+
});
|
|
1878
|
+
};
|
|
1879
|
+
}
|
|
1880
|
+
const resolvePortalToProp = createPropResolver((config) => config.defaultPortalTo, "body");
|
|
1881
|
+
function Portal($$renderer, $$props) {
|
|
1882
|
+
$$renderer.component(($$renderer2) => {
|
|
1883
|
+
let { to: toProp, children, disabled } = $$props;
|
|
1884
|
+
const to = resolvePortalToProp(() => toProp);
|
|
1885
|
+
getAllContexts();
|
|
1886
|
+
let target = derived(getTarget);
|
|
1887
|
+
function getTarget() {
|
|
1888
|
+
if (!isBrowser || disabled) return null;
|
|
1889
|
+
let localTarget = null;
|
|
1890
|
+
if (typeof to.current === "string") {
|
|
1891
|
+
const target2 = document.querySelector(to.current);
|
|
1892
|
+
localTarget = target2;
|
|
1893
|
+
} else {
|
|
1894
|
+
localTarget = to.current;
|
|
1895
|
+
}
|
|
1896
|
+
return localTarget;
|
|
1897
|
+
}
|
|
1898
|
+
let instance;
|
|
1899
|
+
function unmountInstance() {
|
|
1900
|
+
if (instance) {
|
|
1901
|
+
unmount();
|
|
1902
|
+
instance = null;
|
|
1903
|
+
}
|
|
1904
|
+
}
|
|
1905
|
+
watch([() => target(), () => disabled], ([target2, disabled2]) => {
|
|
1906
|
+
if (!target2 || disabled2) {
|
|
1907
|
+
unmountInstance();
|
|
1908
|
+
return;
|
|
1909
|
+
}
|
|
1910
|
+
instance = mount();
|
|
1911
|
+
return () => {
|
|
1912
|
+
unmountInstance();
|
|
1913
|
+
};
|
|
1914
|
+
});
|
|
1915
|
+
if (disabled) {
|
|
1916
|
+
$$renderer2.push("<!--[0-->");
|
|
1917
|
+
children?.($$renderer2);
|
|
1918
|
+
$$renderer2.push(`<!---->`);
|
|
1919
|
+
} else {
|
|
1920
|
+
$$renderer2.push("<!--[-1-->");
|
|
1921
|
+
}
|
|
1922
|
+
$$renderer2.push(`<!--]-->`);
|
|
1923
|
+
});
|
|
1924
|
+
}
|
|
1925
|
+
function debounce(fn, wait = 500) {
|
|
1926
|
+
let timeout = null;
|
|
1927
|
+
const debounced = (...args) => {
|
|
1928
|
+
if (timeout !== null) {
|
|
1929
|
+
clearTimeout(timeout);
|
|
1930
|
+
}
|
|
1931
|
+
timeout = setTimeout(() => {
|
|
1932
|
+
fn(...args);
|
|
1933
|
+
}, wait);
|
|
1934
|
+
};
|
|
1935
|
+
debounced.destroy = () => {
|
|
1936
|
+
if (timeout !== null) {
|
|
1937
|
+
clearTimeout(timeout);
|
|
1938
|
+
timeout = null;
|
|
1939
|
+
}
|
|
1940
|
+
};
|
|
1941
|
+
return debounced;
|
|
1942
|
+
}
|
|
1943
|
+
function isOrContainsTarget(node, target) {
|
|
1944
|
+
return node === target || node.contains(target);
|
|
1945
|
+
}
|
|
1946
|
+
function getOwnerDocument(el) {
|
|
1947
|
+
return el?.ownerDocument ?? document;
|
|
1948
|
+
}
|
|
1949
|
+
function isClickTrulyOutside(event, contentNode) {
|
|
1950
|
+
const { clientX, clientY } = event;
|
|
1951
|
+
const rect = contentNode.getBoundingClientRect();
|
|
1952
|
+
return clientX < rect.left || clientX > rect.right || clientY < rect.top || clientY > rect.bottom;
|
|
1953
|
+
}
|
|
1954
|
+
const CONTEXT_MENU_TRIGGER_ATTR = "data-context-menu-trigger";
|
|
1955
|
+
const CONTEXT_MENU_CONTENT_ATTR = "data-context-menu-content";
|
|
1956
|
+
globalThis.bitsDismissableLayers ??= /* @__PURE__ */ new Map();
|
|
1957
|
+
class DismissibleLayerState {
|
|
1958
|
+
static create(opts) {
|
|
1959
|
+
return new DismissibleLayerState(opts);
|
|
1960
|
+
}
|
|
1961
|
+
opts;
|
|
1962
|
+
#interactOutsideProp;
|
|
1963
|
+
#behaviorType;
|
|
1964
|
+
#interceptedEvents = { pointerdown: false };
|
|
1965
|
+
#isResponsibleLayer = false;
|
|
1966
|
+
#capturedPointerDown = null;
|
|
1967
|
+
#isFocusInsideDOMTree = false;
|
|
1968
|
+
#documentObj = void 0;
|
|
1969
|
+
#onFocusOutside;
|
|
1970
|
+
#unsubClickListener = noop;
|
|
1971
|
+
/**
|
|
1972
|
+
* Set once the layer is torn down. Deferred work scheduled before teardown can
|
|
1973
|
+
* still run afterwards, so every such callback must short-circuit on this
|
|
1974
|
+
* before reading `this.opts.ref.current` — reading a destroyed `$derived`
|
|
1975
|
+
* triggers Svelte's `derived_inert` warning. A class field rather than a
|
|
1976
|
+
* constructor local so the class-field handlers below can see it too.
|
|
1977
|
+
*/
|
|
1978
|
+
#destroyed = false;
|
|
1979
|
+
constructor(opts) {
|
|
1980
|
+
this.opts = opts;
|
|
1981
|
+
this.#behaviorType = opts.interactOutsideBehavior;
|
|
1982
|
+
this.#interactOutsideProp = opts.onInteractOutside;
|
|
1983
|
+
this.#onFocusOutside = opts.onFocusOutside;
|
|
1984
|
+
let unsubEvents = noop;
|
|
1985
|
+
let registeredNode = null;
|
|
1986
|
+
const cleanup = () => {
|
|
1987
|
+
registeredNode = null;
|
|
1988
|
+
this.#resetState();
|
|
1989
|
+
globalThis.bitsDismissableLayers.delete(this);
|
|
1990
|
+
this.#handleInteractOutside.destroy();
|
|
1991
|
+
this.#unsubClickListener();
|
|
1992
|
+
unsubEvents();
|
|
1993
|
+
};
|
|
1994
|
+
watch([() => this.opts.enabled.current, () => this.opts.ref.current], ([enabled, node]) => {
|
|
1995
|
+
const nextNode = enabled ? node : null;
|
|
1996
|
+
if (registeredNode === nextNode) return;
|
|
1997
|
+
cleanup();
|
|
1998
|
+
if (!nextNode) return;
|
|
1999
|
+
registeredNode = nextNode;
|
|
2000
|
+
this.#documentObj = getOwnerDocument(nextNode);
|
|
2001
|
+
globalThis.bitsDismissableLayers.set(this, this.#behaviorType);
|
|
2002
|
+
unsubEvents = this.#addEventListeners();
|
|
2003
|
+
});
|
|
2004
|
+
}
|
|
2005
|
+
#handleFocus = (event) => {
|
|
2006
|
+
if (event.defaultPrevented) return;
|
|
2007
|
+
if (this.#destroyed || !this.opts.ref.current) return;
|
|
2008
|
+
afterTick(() => {
|
|
2009
|
+
if (this.#destroyed) return;
|
|
2010
|
+
if (!this.opts.ref.current || this.#isTargetWithinLayer(event.target)) return;
|
|
2011
|
+
if (event.target && !this.#isFocusInsideDOMTree) {
|
|
2012
|
+
this.#onFocusOutside.current?.(event);
|
|
2013
|
+
}
|
|
2014
|
+
});
|
|
2015
|
+
};
|
|
2016
|
+
#addEventListeners() {
|
|
2017
|
+
const document2 = this.#documentObj;
|
|
2018
|
+
const onPointerDownCapture = (event) => {
|
|
2019
|
+
run(() => {
|
|
2020
|
+
this.#markInterceptedEvent(event);
|
|
2021
|
+
this.#markResponsibleLayer(event);
|
|
2022
|
+
});
|
|
2023
|
+
};
|
|
2024
|
+
const onPointerDown = (event) => {
|
|
2025
|
+
if (event.cancelBubble || event !== this.#capturedPointerDown) return;
|
|
2026
|
+
this.#markNonInterceptedEvent(event);
|
|
2027
|
+
if (event.pointerType === "touch") {
|
|
2028
|
+
this.#handleInteractOutside.destroy();
|
|
2029
|
+
this.#interactOutside(event);
|
|
2030
|
+
} else {
|
|
2031
|
+
this.#handleInteractOutside(event);
|
|
2032
|
+
}
|
|
2033
|
+
};
|
|
2034
|
+
document2.addEventListener("pointerdown", onPointerDownCapture, true);
|
|
2035
|
+
document2.addEventListener("pointerdown", onPointerDown);
|
|
2036
|
+
return executeCallbacks(() => document2.removeEventListener("pointerdown", onPointerDownCapture, true), () => document2.removeEventListener("pointerdown", onPointerDown), on(document2, "focusin", this.#handleFocus));
|
|
2037
|
+
}
|
|
2038
|
+
#handleDismiss = (e) => {
|
|
2039
|
+
let event = e;
|
|
2040
|
+
if (event.defaultPrevented) {
|
|
2041
|
+
event = createWrappedEvent(e);
|
|
2042
|
+
}
|
|
2043
|
+
this.#interactOutsideProp.current(e);
|
|
2044
|
+
};
|
|
2045
|
+
#interactOutside = (e) => {
|
|
2046
|
+
if (!this.opts.ref.current) {
|
|
2047
|
+
this.#unsubClickListener();
|
|
2048
|
+
return;
|
|
2049
|
+
}
|
|
2050
|
+
const isEventValid = this.opts.isValidEvent.current(e, this.opts.ref.current) || isValidEvent(e, this.opts.ref.current);
|
|
2051
|
+
if (!this.#isResponsibleLayer || this.#isAnyEventIntercepted() || !isEventValid) {
|
|
2052
|
+
this.#unsubClickListener();
|
|
2053
|
+
return;
|
|
2054
|
+
}
|
|
2055
|
+
let event = e;
|
|
2056
|
+
if (event.defaultPrevented) {
|
|
2057
|
+
event = createWrappedEvent(event);
|
|
2058
|
+
}
|
|
2059
|
+
if (this.#behaviorType.current !== "close" && this.#behaviorType.current !== "defer-otherwise-close") {
|
|
2060
|
+
this.#unsubClickListener();
|
|
2061
|
+
return;
|
|
2062
|
+
}
|
|
2063
|
+
if (e.pointerType === "touch") {
|
|
2064
|
+
this.#unsubClickListener();
|
|
2065
|
+
let backup = null;
|
|
2066
|
+
let unsubClick = noop;
|
|
2067
|
+
const dismiss = (event2) => {
|
|
2068
|
+
unsubClick();
|
|
2069
|
+
this.#handleDismiss(event2);
|
|
2070
|
+
};
|
|
2071
|
+
unsubClick = executeCallbacks(
|
|
2072
|
+
on(this.#documentObj, "click", dismiss, { once: true }),
|
|
2073
|
+
on(
|
|
2074
|
+
this.#documentObj,
|
|
2075
|
+
"click",
|
|
2076
|
+
(event2) => {
|
|
2077
|
+
backup = setTimeout(() => dismiss(event2), 0);
|
|
2078
|
+
},
|
|
2079
|
+
{ once: true, capture: true }
|
|
2080
|
+
),
|
|
2081
|
+
() => {
|
|
2082
|
+
if (backup !== null) clearTimeout(backup);
|
|
2083
|
+
backup = null;
|
|
2084
|
+
}
|
|
2085
|
+
);
|
|
2086
|
+
this.#unsubClickListener = unsubClick;
|
|
2087
|
+
} else {
|
|
2088
|
+
this.#interactOutsideProp.current(event);
|
|
2089
|
+
}
|
|
2090
|
+
};
|
|
2091
|
+
#handleInteractOutside = debounce(this.#interactOutside, 10);
|
|
2092
|
+
#markInterceptedEvent = (e) => {
|
|
2093
|
+
this.#interceptedEvents[e.type] = true;
|
|
2094
|
+
};
|
|
2095
|
+
#markNonInterceptedEvent = (e) => {
|
|
2096
|
+
this.#interceptedEvents[e.type] = false;
|
|
2097
|
+
};
|
|
2098
|
+
#markResponsibleLayer = (event) => {
|
|
2099
|
+
this.#capturedPointerDown = event;
|
|
2100
|
+
if (!this.opts.ref.current) return;
|
|
2101
|
+
this.#isResponsibleLayer = isResponsibleLayer(this.opts.ref.current);
|
|
2102
|
+
};
|
|
2103
|
+
#isTargetWithinLayer = (target) => {
|
|
2104
|
+
if (!this.opts.ref.current) return false;
|
|
2105
|
+
return isOrContainsTarget(this.opts.ref.current, target);
|
|
2106
|
+
};
|
|
2107
|
+
/**
|
|
2108
|
+
* Resets the per-interaction state. Must stay synchronous.
|
|
2109
|
+
*
|
|
2110
|
+
* This was a `debounce(..., 20)` from when it was also wired to a capture-phase
|
|
2111
|
+
* interaction-end listener and had to land after the 10ms `#handleInteractOutside`
|
|
2112
|
+
* debounce. That listener is gone, but the debounce stayed on the `cleanup()` path —
|
|
2113
|
+
* and because `watch` runs `cleanup()` once per open (`ref` goes null -> node), every
|
|
2114
|
+
* layer scheduled a reset 20ms into its own lifetime. An outside `pointerdown` landing
|
|
2115
|
+
* 10-20ms after that cleanup would have its `#isResponsibleLayer` flag cleared by the
|
|
2116
|
+
* stale reset in the gap before the debounced `#handleInteractOutside` ran, which then
|
|
2117
|
+
* bailed and left the layer open. `cleanup()` destroys `#handleInteractOutside` anyway,
|
|
2118
|
+
* so nothing is left in flight that needs to observe the pre-reset state.
|
|
2119
|
+
*/
|
|
2120
|
+
#resetState = () => {
|
|
2121
|
+
for (const eventType in this.#interceptedEvents) {
|
|
2122
|
+
this.#interceptedEvents[eventType] = false;
|
|
2123
|
+
}
|
|
2124
|
+
this.#isResponsibleLayer = false;
|
|
2125
|
+
this.#capturedPointerDown = null;
|
|
2126
|
+
};
|
|
2127
|
+
#isAnyEventIntercepted() {
|
|
2128
|
+
const i = Object.values(this.#interceptedEvents).some(Boolean);
|
|
2129
|
+
return i;
|
|
2130
|
+
}
|
|
2131
|
+
#onfocuscapture = () => {
|
|
2132
|
+
this.#isFocusInsideDOMTree = true;
|
|
2133
|
+
};
|
|
2134
|
+
#onblurcapture = () => {
|
|
2135
|
+
this.#isFocusInsideDOMTree = false;
|
|
2136
|
+
};
|
|
2137
|
+
props = {
|
|
2138
|
+
onfocuscapture: this.#onfocuscapture,
|
|
2139
|
+
onblurcapture: this.#onblurcapture
|
|
2140
|
+
};
|
|
2141
|
+
}
|
|
2142
|
+
function getTopMostDismissableLayer(layersArr = [...globalThis.bitsDismissableLayers]) {
|
|
2143
|
+
return layersArr.findLast(([_, { current: behaviorType }]) => behaviorType === "close" || behaviorType === "ignore");
|
|
2144
|
+
}
|
|
2145
|
+
function isResponsibleLayer(node) {
|
|
2146
|
+
const layersArr = [...globalThis.bitsDismissableLayers];
|
|
2147
|
+
const topMostLayer = getTopMostDismissableLayer(layersArr);
|
|
2148
|
+
if (topMostLayer) return topMostLayer[0].opts.ref.current === node;
|
|
2149
|
+
const [firstLayerNode] = layersArr[0];
|
|
2150
|
+
return firstLayerNode.opts.ref.current === node;
|
|
2151
|
+
}
|
|
2152
|
+
function isValidEvent(e, node) {
|
|
2153
|
+
const target = e.target;
|
|
2154
|
+
if (!isElementOrSVGElement(target)) return false;
|
|
2155
|
+
const targetIsContextMenuTrigger = Boolean(target.closest(`[${CONTEXT_MENU_TRIGGER_ATTR}]`));
|
|
2156
|
+
const nodeIsContextMenu = Boolean(node.closest(`[${CONTEXT_MENU_CONTENT_ATTR}]`));
|
|
2157
|
+
if ("button" in e && e.button > 0 && !targetIsContextMenuTrigger) return false;
|
|
2158
|
+
if ("button" in e && e.button === 0 && targetIsContextMenuTrigger && nodeIsContextMenu) {
|
|
2159
|
+
return true;
|
|
2160
|
+
}
|
|
2161
|
+
if (targetIsContextMenuTrigger && nodeIsContextMenu) return false;
|
|
2162
|
+
const ownerDocument = getOwnerDocument(target);
|
|
2163
|
+
const isValid = ownerDocument.documentElement.contains(target) && !isOrContainsTarget(node, target) && isClickTrulyOutside(e, node);
|
|
2164
|
+
return isValid;
|
|
2165
|
+
}
|
|
2166
|
+
function createWrappedEvent(e) {
|
|
2167
|
+
const capturedCurrentTarget = e.currentTarget;
|
|
2168
|
+
const capturedTarget = e.target;
|
|
2169
|
+
let newEvent;
|
|
2170
|
+
if (e instanceof PointerEvent) {
|
|
2171
|
+
newEvent = new PointerEvent(e.type, e);
|
|
2172
|
+
} else {
|
|
2173
|
+
newEvent = new PointerEvent("pointerdown", e);
|
|
2174
|
+
}
|
|
2175
|
+
let isPrevented = false;
|
|
2176
|
+
const wrappedEvent = new Proxy(newEvent, {
|
|
2177
|
+
get: (target, prop) => {
|
|
2178
|
+
if (prop === "currentTarget") {
|
|
2179
|
+
return capturedCurrentTarget;
|
|
2180
|
+
}
|
|
2181
|
+
if (prop === "target") {
|
|
2182
|
+
return capturedTarget;
|
|
2183
|
+
}
|
|
2184
|
+
if (prop === "preventDefault") {
|
|
2185
|
+
return () => {
|
|
2186
|
+
isPrevented = true;
|
|
2187
|
+
if (typeof target.preventDefault === "function") {
|
|
2188
|
+
target.preventDefault();
|
|
2189
|
+
}
|
|
2190
|
+
};
|
|
2191
|
+
}
|
|
2192
|
+
if (prop === "defaultPrevented") {
|
|
2193
|
+
return isPrevented;
|
|
2194
|
+
}
|
|
2195
|
+
if (prop in target) {
|
|
2196
|
+
return target[prop];
|
|
2197
|
+
}
|
|
2198
|
+
return e[prop];
|
|
2199
|
+
}
|
|
2200
|
+
});
|
|
2201
|
+
return wrappedEvent;
|
|
2202
|
+
}
|
|
2203
|
+
function Dismissible_layer($$renderer, $$props) {
|
|
2204
|
+
$$renderer.component(($$renderer2) => {
|
|
2205
|
+
let {
|
|
2206
|
+
interactOutsideBehavior = "close",
|
|
2207
|
+
onInteractOutside = noop,
|
|
2208
|
+
onFocusOutside = noop,
|
|
2209
|
+
id,
|
|
2210
|
+
children,
|
|
2211
|
+
enabled,
|
|
2212
|
+
isValidEvent: isValidEvent2 = () => false,
|
|
2213
|
+
ref
|
|
2214
|
+
} = $$props;
|
|
2215
|
+
const dismissibleLayerState = DismissibleLayerState.create({
|
|
2216
|
+
id: boxWith(() => id),
|
|
2217
|
+
interactOutsideBehavior: boxWith(() => interactOutsideBehavior),
|
|
2218
|
+
onInteractOutside: boxWith(() => onInteractOutside),
|
|
2219
|
+
enabled: boxWith(() => enabled),
|
|
2220
|
+
onFocusOutside: boxWith(() => onFocusOutside),
|
|
2221
|
+
isValidEvent: boxWith(() => isValidEvent2),
|
|
2222
|
+
ref
|
|
2223
|
+
});
|
|
2224
|
+
children?.($$renderer2, { props: dismissibleLayerState.props });
|
|
2225
|
+
$$renderer2.push(`<!---->`);
|
|
2226
|
+
});
|
|
2227
|
+
}
|
|
2228
|
+
globalThis.bitsEscapeLayers ??= /* @__PURE__ */ new Map();
|
|
2229
|
+
class EscapeLayerState {
|
|
2230
|
+
static create(opts) {
|
|
2231
|
+
return new EscapeLayerState(opts);
|
|
2232
|
+
}
|
|
2233
|
+
opts;
|
|
2234
|
+
domContext;
|
|
2235
|
+
constructor(opts) {
|
|
2236
|
+
this.opts = opts;
|
|
2237
|
+
this.domContext = new DOMContext(this.opts.ref);
|
|
2238
|
+
let unsubEvents = noop;
|
|
2239
|
+
watch(() => opts.enabled.current, (enabled) => {
|
|
2240
|
+
if (enabled) {
|
|
2241
|
+
globalThis.bitsEscapeLayers.set(this, opts.escapeKeydownBehavior);
|
|
2242
|
+
unsubEvents = this.#addEventListener();
|
|
2243
|
+
}
|
|
2244
|
+
return () => {
|
|
2245
|
+
unsubEvents();
|
|
2246
|
+
globalThis.bitsEscapeLayers.delete(this);
|
|
2247
|
+
};
|
|
2248
|
+
});
|
|
2249
|
+
}
|
|
2250
|
+
#addEventListener = () => {
|
|
2251
|
+
return on(this.domContext.getDocument(), "keydown", this.#onkeydown, { passive: false });
|
|
2252
|
+
};
|
|
2253
|
+
#onkeydown = (e) => {
|
|
2254
|
+
if (e.key !== ESCAPE || !isResponsibleEscapeLayer(this)) return;
|
|
2255
|
+
const clonedEvent = new KeyboardEvent(e.type, e);
|
|
2256
|
+
e.preventDefault();
|
|
2257
|
+
const behaviorType = this.opts.escapeKeydownBehavior.current;
|
|
2258
|
+
if (behaviorType !== "close" && behaviorType !== "defer-otherwise-close") return;
|
|
2259
|
+
this.opts.onEscapeKeydown.current(clonedEvent);
|
|
2260
|
+
};
|
|
2261
|
+
}
|
|
2262
|
+
function isResponsibleEscapeLayer(instance) {
|
|
2263
|
+
const layersArr = [...globalThis.bitsEscapeLayers];
|
|
2264
|
+
const topMostLayer = layersArr.findLast(([_, { current: behaviorType }]) => behaviorType === "close" || behaviorType === "ignore");
|
|
2265
|
+
if (topMostLayer) return topMostLayer[0] === instance;
|
|
2266
|
+
const [firstLayerNode] = layersArr[0];
|
|
2267
|
+
return firstLayerNode === instance;
|
|
2268
|
+
}
|
|
2269
|
+
function Escape_layer($$renderer, $$props) {
|
|
2270
|
+
$$renderer.component(($$renderer2) => {
|
|
2271
|
+
let {
|
|
2272
|
+
escapeKeydownBehavior = "close",
|
|
2273
|
+
onEscapeKeydown = noop,
|
|
2274
|
+
children,
|
|
2275
|
+
enabled,
|
|
2276
|
+
ref
|
|
2277
|
+
} = $$props;
|
|
2278
|
+
EscapeLayerState.create({
|
|
2279
|
+
escapeKeydownBehavior: boxWith(() => escapeKeydownBehavior),
|
|
2280
|
+
onEscapeKeydown: boxWith(() => onEscapeKeydown),
|
|
2281
|
+
enabled: boxWith(() => enabled),
|
|
2282
|
+
ref
|
|
2283
|
+
});
|
|
2284
|
+
children?.($$renderer2);
|
|
2285
|
+
$$renderer2.push(`<!---->`);
|
|
2286
|
+
});
|
|
2287
|
+
}
|
|
2288
|
+
class FocusScopeManager {
|
|
2289
|
+
static instance;
|
|
2290
|
+
#scopeStack = simpleBox([]);
|
|
2291
|
+
#focusHistory = /* @__PURE__ */ new WeakMap();
|
|
2292
|
+
#preFocusHistory = /* @__PURE__ */ new WeakMap();
|
|
2293
|
+
static getInstance() {
|
|
2294
|
+
if (!this.instance) {
|
|
2295
|
+
this.instance = new FocusScopeManager();
|
|
2296
|
+
}
|
|
2297
|
+
return this.instance;
|
|
2298
|
+
}
|
|
2299
|
+
register(scope) {
|
|
2300
|
+
const current = this.getActive();
|
|
2301
|
+
if (current && current !== scope) {
|
|
2302
|
+
current.pause();
|
|
2303
|
+
}
|
|
2304
|
+
const activeElement = getActiveElement(document);
|
|
2305
|
+
if (activeElement && activeElement !== document.body) {
|
|
2306
|
+
this.#preFocusHistory.set(scope, activeElement);
|
|
2307
|
+
}
|
|
2308
|
+
this.#scopeStack.current = this.#scopeStack.current.filter((s) => s !== scope);
|
|
2309
|
+
this.#scopeStack.current.unshift(scope);
|
|
2310
|
+
}
|
|
2311
|
+
unregister(scope) {
|
|
2312
|
+
this.#scopeStack.current = this.#scopeStack.current.filter((s) => s !== scope);
|
|
2313
|
+
const next = this.getActive();
|
|
2314
|
+
if (next) {
|
|
2315
|
+
next.resume();
|
|
2316
|
+
}
|
|
2317
|
+
}
|
|
2318
|
+
getActive() {
|
|
2319
|
+
return this.#scopeStack.current[0];
|
|
2320
|
+
}
|
|
2321
|
+
setFocusMemory(scope, element) {
|
|
2322
|
+
this.#focusHistory.set(scope, element);
|
|
2323
|
+
}
|
|
2324
|
+
getFocusMemory(scope) {
|
|
2325
|
+
return this.#focusHistory.get(scope);
|
|
2326
|
+
}
|
|
2327
|
+
isActiveScope(scope) {
|
|
2328
|
+
return this.getActive() === scope;
|
|
2329
|
+
}
|
|
2330
|
+
setPreFocusMemory(scope, element) {
|
|
2331
|
+
this.#preFocusHistory.set(scope, element);
|
|
2332
|
+
}
|
|
2333
|
+
getPreFocusMemory(scope) {
|
|
2334
|
+
return this.#preFocusHistory.get(scope);
|
|
2335
|
+
}
|
|
2336
|
+
clearPreFocusMemory(scope) {
|
|
2337
|
+
this.#preFocusHistory.delete(scope);
|
|
2338
|
+
}
|
|
2339
|
+
}
|
|
2340
|
+
class FocusScope {
|
|
2341
|
+
#paused = false;
|
|
2342
|
+
#container = null;
|
|
2343
|
+
#manager = FocusScopeManager.getInstance();
|
|
2344
|
+
#cleanupFns = [];
|
|
2345
|
+
#opts;
|
|
2346
|
+
constructor(opts) {
|
|
2347
|
+
this.#opts = opts;
|
|
2348
|
+
}
|
|
2349
|
+
get paused() {
|
|
2350
|
+
return this.#paused;
|
|
2351
|
+
}
|
|
2352
|
+
pause() {
|
|
2353
|
+
this.#paused = true;
|
|
2354
|
+
}
|
|
2355
|
+
resume() {
|
|
2356
|
+
this.#paused = false;
|
|
2357
|
+
}
|
|
2358
|
+
#cleanup() {
|
|
2359
|
+
for (const fn of this.#cleanupFns) {
|
|
2360
|
+
fn();
|
|
2361
|
+
}
|
|
2362
|
+
this.#cleanupFns = [];
|
|
2363
|
+
}
|
|
2364
|
+
mount(container) {
|
|
2365
|
+
if (this.#container) {
|
|
2366
|
+
this.unmount();
|
|
2367
|
+
}
|
|
2368
|
+
this.#container = container;
|
|
2369
|
+
this.#manager.register(this);
|
|
2370
|
+
this.#setupEventListeners();
|
|
2371
|
+
this.#handleOpenAutoFocus();
|
|
2372
|
+
}
|
|
2373
|
+
unmount() {
|
|
2374
|
+
if (!this.#container) return;
|
|
2375
|
+
this.#cleanup();
|
|
2376
|
+
this.#handleCloseAutoFocus();
|
|
2377
|
+
this.#manager.unregister(this);
|
|
2378
|
+
this.#manager.clearPreFocusMemory(this);
|
|
2379
|
+
this.#container = null;
|
|
2380
|
+
}
|
|
2381
|
+
#handleOpenAutoFocus() {
|
|
2382
|
+
if (!this.#container) return;
|
|
2383
|
+
const event = new CustomEvent("focusScope.onOpenAutoFocus", { bubbles: false, cancelable: true });
|
|
2384
|
+
this.#opts.onOpenAutoFocus.current(event);
|
|
2385
|
+
if (!event.defaultPrevented) {
|
|
2386
|
+
requestAnimationFrame(() => {
|
|
2387
|
+
if (!this.#container || this.#paused || !this.#manager.isActiveScope(this) || this.#container.contains(getActiveElement(this.#container.ownerDocument))) {
|
|
2388
|
+
return;
|
|
2389
|
+
}
|
|
2390
|
+
const firstTabbable = this.#getFirstTabbable();
|
|
2391
|
+
if (firstTabbable) {
|
|
2392
|
+
firstTabbable.focus();
|
|
2393
|
+
this.#manager.setFocusMemory(this, firstTabbable);
|
|
2394
|
+
} else {
|
|
2395
|
+
this.#container.focus();
|
|
2396
|
+
}
|
|
2397
|
+
});
|
|
2398
|
+
}
|
|
2399
|
+
}
|
|
2400
|
+
#handleCloseAutoFocus() {
|
|
2401
|
+
const event = new CustomEvent("focusScope.onCloseAutoFocus", { bubbles: false, cancelable: true });
|
|
2402
|
+
this.#opts.onCloseAutoFocus.current?.(event);
|
|
2403
|
+
if (!event.defaultPrevented) {
|
|
2404
|
+
const preFocusedElement = this.#manager.getPreFocusMemory(this);
|
|
2405
|
+
if (preFocusedElement && preFocusedElement.isConnected) {
|
|
2406
|
+
try {
|
|
2407
|
+
preFocusedElement.focus();
|
|
2408
|
+
} catch {
|
|
2409
|
+
document.body.focus();
|
|
2410
|
+
}
|
|
2411
|
+
}
|
|
2412
|
+
}
|
|
2413
|
+
}
|
|
2414
|
+
#setupEventListeners() {
|
|
2415
|
+
if (!this.#container || !this.#opts.trap.current) return;
|
|
2416
|
+
const container = this.#container;
|
|
2417
|
+
const doc = container.ownerDocument;
|
|
2418
|
+
const handleFocus = (e) => {
|
|
2419
|
+
if (this.#paused || !this.#manager.isActiveScope(this)) return;
|
|
2420
|
+
const target = e.composedPath()[0];
|
|
2421
|
+
if (!target) return;
|
|
2422
|
+
const isInside = container.contains(target);
|
|
2423
|
+
if (isInside) {
|
|
2424
|
+
this.#manager.setFocusMemory(this, target);
|
|
2425
|
+
} else {
|
|
2426
|
+
const lastFocused = this.#manager.getFocusMemory(this);
|
|
2427
|
+
if (lastFocused && container.contains(lastFocused) && isFocusable(lastFocused)) {
|
|
2428
|
+
e.preventDefault();
|
|
2429
|
+
lastFocused.focus();
|
|
2430
|
+
} else {
|
|
2431
|
+
const firstTabbable = this.#getFirstTabbable();
|
|
2432
|
+
const firstFocusable = this.#getAllFocusables()[0];
|
|
2433
|
+
(firstTabbable || firstFocusable || container).focus();
|
|
2434
|
+
}
|
|
2435
|
+
}
|
|
2436
|
+
};
|
|
2437
|
+
const handleKeydown = (e) => {
|
|
2438
|
+
if (!this.#opts.loop || this.#paused || e.key !== "Tab") return;
|
|
2439
|
+
if (!this.#manager.isActiveScope(this)) return;
|
|
2440
|
+
const tabbables = this.#getTabbables();
|
|
2441
|
+
if (tabbables.length === 0) return;
|
|
2442
|
+
const first = tabbables[0];
|
|
2443
|
+
const last = tabbables[tabbables.length - 1];
|
|
2444
|
+
if (!e.shiftKey && getActiveElement(doc) === last) {
|
|
2445
|
+
e.preventDefault();
|
|
2446
|
+
first.focus();
|
|
2447
|
+
} else if (e.shiftKey && getActiveElement(doc) === first) {
|
|
2448
|
+
e.preventDefault();
|
|
2449
|
+
last.focus();
|
|
2450
|
+
}
|
|
2451
|
+
};
|
|
2452
|
+
this.#cleanupFns.push(on(doc, "focusin", handleFocus, { capture: true }), on(container, "keydown", handleKeydown));
|
|
2453
|
+
const observer = new MutationObserver(() => {
|
|
2454
|
+
const lastFocused = this.#manager.getFocusMemory(this);
|
|
2455
|
+
if (lastFocused && !container.contains(lastFocused)) {
|
|
2456
|
+
const firstTabbable = this.#getFirstTabbable();
|
|
2457
|
+
const firstFocusable = this.#getAllFocusables()[0];
|
|
2458
|
+
const elementToFocus = firstTabbable || firstFocusable;
|
|
2459
|
+
if (elementToFocus) {
|
|
2460
|
+
elementToFocus.focus();
|
|
2461
|
+
this.#manager.setFocusMemory(this, elementToFocus);
|
|
2462
|
+
} else {
|
|
2463
|
+
container.focus();
|
|
2464
|
+
}
|
|
2465
|
+
}
|
|
2466
|
+
});
|
|
2467
|
+
observer.observe(container, { childList: true, subtree: true });
|
|
2468
|
+
this.#cleanupFns.push(() => observer.disconnect());
|
|
2469
|
+
}
|
|
2470
|
+
#getTabbables() {
|
|
2471
|
+
if (!this.#container) return [];
|
|
2472
|
+
return tabbable(this.#container, { includeContainer: false, getShadowRoot: true });
|
|
2473
|
+
}
|
|
2474
|
+
#getFirstTabbable() {
|
|
2475
|
+
const tabbables = this.#getTabbables();
|
|
2476
|
+
return tabbables[0] || null;
|
|
2477
|
+
}
|
|
2478
|
+
#getAllFocusables() {
|
|
2479
|
+
if (!this.#container) return [];
|
|
2480
|
+
return focusable(this.#container, { includeContainer: false, getShadowRoot: true });
|
|
2481
|
+
}
|
|
2482
|
+
static use(opts) {
|
|
2483
|
+
let scope = null;
|
|
2484
|
+
watch([() => opts.ref.current, () => opts.enabled.current], ([ref, enabled]) => {
|
|
2485
|
+
if (ref && enabled) {
|
|
2486
|
+
if (!scope) {
|
|
2487
|
+
scope = new FocusScope(opts);
|
|
2488
|
+
}
|
|
2489
|
+
scope.mount(ref);
|
|
2490
|
+
} else if (scope) {
|
|
2491
|
+
scope.unmount();
|
|
2492
|
+
scope = null;
|
|
2493
|
+
}
|
|
2494
|
+
});
|
|
2495
|
+
return {
|
|
2496
|
+
get props() {
|
|
2497
|
+
return { tabindex: -1 };
|
|
2498
|
+
}
|
|
2499
|
+
};
|
|
2500
|
+
}
|
|
2501
|
+
}
|
|
2502
|
+
function Focus_scope($$renderer, $$props) {
|
|
2503
|
+
$$renderer.component(($$renderer2) => {
|
|
2504
|
+
let {
|
|
2505
|
+
enabled = false,
|
|
2506
|
+
trapFocus = false,
|
|
2507
|
+
loop = false,
|
|
2508
|
+
onCloseAutoFocus = noop,
|
|
2509
|
+
onOpenAutoFocus = noop,
|
|
2510
|
+
focusScope,
|
|
2511
|
+
ref
|
|
2512
|
+
} = $$props;
|
|
2513
|
+
const focusScopeState = FocusScope.use({
|
|
2514
|
+
enabled: boxWith(() => enabled),
|
|
2515
|
+
trap: boxWith(() => trapFocus),
|
|
2516
|
+
loop,
|
|
2517
|
+
onCloseAutoFocus: boxWith(() => onCloseAutoFocus),
|
|
2518
|
+
onOpenAutoFocus: boxWith(() => onOpenAutoFocus),
|
|
2519
|
+
ref
|
|
2520
|
+
});
|
|
2521
|
+
focusScope?.($$renderer2, { props: focusScopeState.props });
|
|
2522
|
+
$$renderer2.push(`<!---->`);
|
|
2523
|
+
});
|
|
2524
|
+
}
|
|
2525
|
+
const noopPointer = () => {
|
|
2526
|
+
};
|
|
2527
|
+
globalThis.bitsTextSelectionLayers ??= /* @__PURE__ */ new Map();
|
|
2528
|
+
class TextSelectionLayerState {
|
|
2529
|
+
static create(opts) {
|
|
2530
|
+
return new TextSelectionLayerState(opts);
|
|
2531
|
+
}
|
|
2532
|
+
opts;
|
|
2533
|
+
domContext;
|
|
2534
|
+
#unsubSelectionLock = noop;
|
|
2535
|
+
#enabledSnapshot = false;
|
|
2536
|
+
#onPointerDownSnapshot = noopPointer;
|
|
2537
|
+
#onPointerUpSnapshot = noopPointer;
|
|
2538
|
+
constructor(opts) {
|
|
2539
|
+
this.opts = opts;
|
|
2540
|
+
this.domContext = new DOMContext(opts.ref);
|
|
2541
|
+
let unsubEvents = noop;
|
|
2542
|
+
watch(
|
|
2543
|
+
() => [
|
|
2544
|
+
this.opts.enabled.current,
|
|
2545
|
+
this.opts.onPointerDown.current,
|
|
2546
|
+
this.opts.onPointerUp.current
|
|
2547
|
+
],
|
|
2548
|
+
([enabled, onPointerDown, onPointerUp]) => {
|
|
2549
|
+
this.#enabledSnapshot = enabled;
|
|
2550
|
+
this.#onPointerDownSnapshot = onPointerDown;
|
|
2551
|
+
this.#onPointerUpSnapshot = onPointerUp;
|
|
2552
|
+
if (enabled) {
|
|
2553
|
+
globalThis.bitsTextSelectionLayers.set(this, this.opts.enabled);
|
|
2554
|
+
unsubEvents();
|
|
2555
|
+
unsubEvents = this.#addEventListeners();
|
|
2556
|
+
}
|
|
2557
|
+
return () => {
|
|
2558
|
+
this.#enabledSnapshot = false;
|
|
2559
|
+
unsubEvents();
|
|
2560
|
+
this.#resetSelectionLock();
|
|
2561
|
+
globalThis.bitsTextSelectionLayers.delete(this);
|
|
2562
|
+
};
|
|
2563
|
+
}
|
|
2564
|
+
);
|
|
2565
|
+
}
|
|
2566
|
+
#addEventListeners() {
|
|
2567
|
+
return executeCallbacks(on(this.domContext.getDocument(), "pointerdown", this.#pointerdown), on(this.domContext.getDocument(), "pointerup", this.#pointerup));
|
|
2568
|
+
}
|
|
2569
|
+
#pointerup = (e) => {
|
|
2570
|
+
this.#resetSelectionLock();
|
|
2571
|
+
if (e.defaultPrevented) return;
|
|
2572
|
+
this.#onPointerUpSnapshot(e);
|
|
2573
|
+
};
|
|
2574
|
+
#pointerdown = (e) => {
|
|
2575
|
+
if (!this.#enabledSnapshot) return;
|
|
2576
|
+
this.#resetSelectionLock();
|
|
2577
|
+
const node = this.opts.ref.current;
|
|
2578
|
+
const target = e.target;
|
|
2579
|
+
if (!isHTMLElement(node) || !isHTMLElement(target)) return;
|
|
2580
|
+
if (!isHighestLayer(this) || !contains(node, target)) return;
|
|
2581
|
+
this.#onPointerDownSnapshot(e);
|
|
2582
|
+
if (e.defaultPrevented) return;
|
|
2583
|
+
this.#unsubSelectionLock = preventTextSelectionOverflow(node, this.domContext.getDocument().body);
|
|
2584
|
+
};
|
|
2585
|
+
#resetSelectionLock = () => {
|
|
2586
|
+
this.#unsubSelectionLock();
|
|
2587
|
+
this.#unsubSelectionLock = noop;
|
|
2588
|
+
};
|
|
2589
|
+
}
|
|
2590
|
+
const getUserSelect = (node) => node.style.userSelect || node.style.webkitUserSelect;
|
|
2591
|
+
function preventTextSelectionOverflow(node, body) {
|
|
2592
|
+
const originalBodyUserSelect = getUserSelect(body);
|
|
2593
|
+
const originalNodeUserSelect = getUserSelect(node);
|
|
2594
|
+
setUserSelect(body, "none");
|
|
2595
|
+
setUserSelect(node, "text");
|
|
2596
|
+
return () => {
|
|
2597
|
+
setUserSelect(body, originalBodyUserSelect);
|
|
2598
|
+
setUserSelect(node, originalNodeUserSelect);
|
|
2599
|
+
};
|
|
2600
|
+
}
|
|
2601
|
+
function setUserSelect(node, value) {
|
|
2602
|
+
node.style.userSelect = value;
|
|
2603
|
+
node.style.webkitUserSelect = value;
|
|
2604
|
+
}
|
|
2605
|
+
function isHighestLayer(instance) {
|
|
2606
|
+
const layersArr = [...globalThis.bitsTextSelectionLayers];
|
|
2607
|
+
if (!layersArr.length) return false;
|
|
2608
|
+
const highestLayer = layersArr.at(-1);
|
|
2609
|
+
if (!highestLayer) return false;
|
|
2610
|
+
return highestLayer[0] === instance;
|
|
2611
|
+
}
|
|
2612
|
+
function Text_selection_layer($$renderer, $$props) {
|
|
2613
|
+
$$renderer.component(($$renderer2) => {
|
|
2614
|
+
let {
|
|
2615
|
+
preventOverflowTextSelection = true,
|
|
2616
|
+
onPointerDown = noop,
|
|
2617
|
+
onPointerUp = noop,
|
|
2618
|
+
id,
|
|
2619
|
+
children,
|
|
2620
|
+
enabled,
|
|
2621
|
+
ref
|
|
2622
|
+
} = $$props;
|
|
2623
|
+
TextSelectionLayerState.create({
|
|
2624
|
+
id: boxWith(() => id),
|
|
2625
|
+
onPointerDown: boxWith(() => onPointerDown),
|
|
2626
|
+
onPointerUp: boxWith(() => onPointerUp),
|
|
2627
|
+
enabled: boxWith(() => enabled && preventOverflowTextSelection),
|
|
2628
|
+
ref
|
|
2629
|
+
});
|
|
2630
|
+
children?.($$renderer2);
|
|
2631
|
+
$$renderer2.push(`<!---->`);
|
|
2632
|
+
});
|
|
2633
|
+
}
|
|
2634
|
+
globalThis.bitsIdCounter ??= { current: 0 };
|
|
2635
|
+
function useId(prefix = "bits") {
|
|
2636
|
+
globalThis.bitsIdCounter.current++;
|
|
2637
|
+
return `${prefix}-${globalThis.bitsIdCounter.current}`;
|
|
2638
|
+
}
|
|
2639
|
+
class SharedState {
|
|
2640
|
+
#factory;
|
|
2641
|
+
#subscribers = 0;
|
|
2642
|
+
#state;
|
|
2643
|
+
#scope;
|
|
2644
|
+
constructor(factory) {
|
|
2645
|
+
this.#factory = factory;
|
|
2646
|
+
}
|
|
2647
|
+
#dispose() {
|
|
2648
|
+
this.#subscribers -= 1;
|
|
2649
|
+
if (this.#scope && this.#subscribers <= 0) {
|
|
2650
|
+
this.#scope();
|
|
2651
|
+
this.#state = void 0;
|
|
2652
|
+
this.#scope = void 0;
|
|
2653
|
+
}
|
|
2654
|
+
}
|
|
2655
|
+
get(...args) {
|
|
2656
|
+
this.#subscribers += 1;
|
|
2657
|
+
if (this.#state === void 0) {
|
|
2658
|
+
this.#scope = () => {
|
|
2659
|
+
};
|
|
2660
|
+
}
|
|
2661
|
+
return this.#state;
|
|
2662
|
+
}
|
|
2663
|
+
}
|
|
2664
|
+
const lockMap = new SvelteMap();
|
|
2665
|
+
const MANAGED_PROPERTIES = [
|
|
2666
|
+
"padding-right",
|
|
2667
|
+
"margin-right",
|
|
2668
|
+
"overflow",
|
|
2669
|
+
"overflow-x",
|
|
2670
|
+
"overflow-y",
|
|
2671
|
+
"pointer-events",
|
|
2672
|
+
"--scrollbar-width"
|
|
2673
|
+
];
|
|
2674
|
+
let initialProperties = null;
|
|
2675
|
+
const modifiedProperties = /* @__PURE__ */ new Set();
|
|
2676
|
+
let cleanupTimeoutId = null;
|
|
2677
|
+
let isInCleanupTransition = false;
|
|
2678
|
+
function setManagedProperty(style, property, value) {
|
|
2679
|
+
style.setProperty(property, value);
|
|
2680
|
+
modifiedProperties.add(property);
|
|
2681
|
+
if (property === "overflow") {
|
|
2682
|
+
modifiedProperties.add("overflow-x");
|
|
2683
|
+
modifiedProperties.add("overflow-y");
|
|
2684
|
+
}
|
|
2685
|
+
}
|
|
2686
|
+
const anyLocked = boxWith(() => {
|
|
2687
|
+
for (const value of lockMap.values()) {
|
|
2688
|
+
if (value) return true;
|
|
2689
|
+
}
|
|
2690
|
+
return false;
|
|
2691
|
+
});
|
|
2692
|
+
let cleanupScheduledAt = null;
|
|
2693
|
+
const bodyLockStackCount = new SharedState(() => {
|
|
2694
|
+
function resetBodyStyle(documentObj) {
|
|
2695
|
+
return;
|
|
2696
|
+
}
|
|
2697
|
+
function cancelPendingCleanup() {
|
|
2698
|
+
if (cleanupTimeoutId === null) return;
|
|
2699
|
+
window.clearTimeout(cleanupTimeoutId);
|
|
2700
|
+
cleanupTimeoutId = null;
|
|
2701
|
+
}
|
|
2702
|
+
function scheduleCleanupIfNoNewLocks(delay, callback) {
|
|
2703
|
+
cancelPendingCleanup();
|
|
2704
|
+
isInCleanupTransition = true;
|
|
2705
|
+
cleanupScheduledAt = Date.now();
|
|
2706
|
+
const currentCleanupId = cleanupScheduledAt;
|
|
2707
|
+
const cleanupFn = () => {
|
|
2708
|
+
cleanupTimeoutId = null;
|
|
2709
|
+
if (cleanupScheduledAt !== currentCleanupId) return;
|
|
2710
|
+
if (!isAnyLocked(lockMap)) {
|
|
2711
|
+
isInCleanupTransition = false;
|
|
2712
|
+
callback();
|
|
2713
|
+
} else {
|
|
2714
|
+
isInCleanupTransition = false;
|
|
2715
|
+
}
|
|
2716
|
+
};
|
|
2717
|
+
const actualDelay = delay === null ? 24 : delay;
|
|
2718
|
+
cleanupTimeoutId = window.setTimeout(cleanupFn, actualDelay);
|
|
2719
|
+
}
|
|
2720
|
+
function ensureInitialStyleCaptured() {
|
|
2721
|
+
if (initialProperties === null && lockMap.size === 0 && !isInCleanupTransition) {
|
|
2722
|
+
document.body.hasAttribute("style");
|
|
2723
|
+
initialProperties = /* @__PURE__ */ new Map();
|
|
2724
|
+
for (const prop of MANAGED_PROPERTIES) {
|
|
2725
|
+
initialProperties.set(prop, {
|
|
2726
|
+
value: document.body.style.getPropertyValue(prop),
|
|
2727
|
+
priority: document.body.style.getPropertyPriority(prop)
|
|
2728
|
+
});
|
|
2729
|
+
}
|
|
2730
|
+
}
|
|
2731
|
+
}
|
|
2732
|
+
watch(() => anyLocked.current, () => {
|
|
2733
|
+
if (!anyLocked.current) return;
|
|
2734
|
+
ensureInitialStyleCaptured();
|
|
2735
|
+
isInCleanupTransition = false;
|
|
2736
|
+
const htmlStyle = getComputedStyle(document.documentElement);
|
|
2737
|
+
const bodyStyle = getComputedStyle(document.body);
|
|
2738
|
+
const hasStableGutter = htmlStyle.scrollbarGutter?.includes("stable") || bodyStyle.scrollbarGutter?.includes("stable");
|
|
2739
|
+
const verticalScrollbarWidth = window.innerWidth - document.documentElement.clientWidth;
|
|
2740
|
+
const paddingRight = Number.parseInt(bodyStyle.paddingRight ?? "0", 10);
|
|
2741
|
+
const config = {
|
|
2742
|
+
padding: paddingRight + verticalScrollbarWidth,
|
|
2743
|
+
margin: Number.parseInt(bodyStyle.marginRight ?? "0", 10)
|
|
2744
|
+
};
|
|
2745
|
+
if (verticalScrollbarWidth > 0 && !hasStableGutter) {
|
|
2746
|
+
setManagedProperty(document.body.style, "padding-right", `${config.padding}px`);
|
|
2747
|
+
setManagedProperty(document.body.style, "margin-right", `${config.margin}px`);
|
|
2748
|
+
setManagedProperty(document.body.style, "--scrollbar-width", `${verticalScrollbarWidth}px`);
|
|
2749
|
+
}
|
|
2750
|
+
setManagedProperty(document.body.style, "overflow", "hidden");
|
|
2751
|
+
if (isIOS) {
|
|
2752
|
+
on(
|
|
2753
|
+
document,
|
|
2754
|
+
"touchmove",
|
|
2755
|
+
(e) => {
|
|
2756
|
+
if (e.target !== document.documentElement) return;
|
|
2757
|
+
if (e.touches.length > 1) return;
|
|
2758
|
+
e.preventDefault();
|
|
2759
|
+
},
|
|
2760
|
+
{ passive: false }
|
|
2761
|
+
);
|
|
2762
|
+
}
|
|
2763
|
+
afterTick(() => {
|
|
2764
|
+
setManagedProperty(document.body.style, "pointer-events", "none");
|
|
2765
|
+
setManagedProperty(document.body.style, "overflow", "hidden");
|
|
2766
|
+
});
|
|
2767
|
+
});
|
|
2768
|
+
return {
|
|
2769
|
+
get lockMap() {
|
|
2770
|
+
return lockMap;
|
|
2771
|
+
},
|
|
2772
|
+
resetBodyStyle,
|
|
2773
|
+
scheduleCleanupIfNoNewLocks,
|
|
2774
|
+
cancelPendingCleanup,
|
|
2775
|
+
ensureInitialStyleCaptured
|
|
2776
|
+
};
|
|
2777
|
+
});
|
|
2778
|
+
class BodyScrollLock {
|
|
2779
|
+
#id = useId();
|
|
2780
|
+
#initialState;
|
|
2781
|
+
#restoreScrollDelay = () => null;
|
|
2782
|
+
#countState;
|
|
2783
|
+
locked;
|
|
2784
|
+
constructor(initialState, restoreScrollDelay = () => null) {
|
|
2785
|
+
this.#initialState = initialState;
|
|
2786
|
+
this.#restoreScrollDelay = restoreScrollDelay;
|
|
2787
|
+
this.#countState = bodyLockStackCount.get();
|
|
2788
|
+
if (!this.#countState) return;
|
|
2789
|
+
this.#countState.cancelPendingCleanup();
|
|
2790
|
+
this.#countState.ensureInitialStyleCaptured();
|
|
2791
|
+
this.#countState.lockMap.set(this.#id, this.#initialState ?? false);
|
|
2792
|
+
this.locked = boxWith(() => this.#countState.lockMap.get(this.#id) ?? false, (v) => this.#countState.lockMap.set(this.#id, v));
|
|
2793
|
+
}
|
|
2794
|
+
}
|
|
2795
|
+
function isAnyLocked(map) {
|
|
2796
|
+
for (const [_, value] of map) {
|
|
2797
|
+
if (value) return true;
|
|
2798
|
+
}
|
|
2799
|
+
return false;
|
|
2800
|
+
}
|
|
2801
|
+
function Scroll_lock($$renderer, $$props) {
|
|
2802
|
+
$$renderer.component(($$renderer2) => {
|
|
2803
|
+
let { preventScroll = true, restoreScrollDelay = null } = $$props;
|
|
2804
|
+
if (preventScroll) {
|
|
2805
|
+
new BodyScrollLock(preventScroll, () => restoreScrollDelay);
|
|
2806
|
+
}
|
|
2807
|
+
});
|
|
2808
|
+
}
|
|
2809
|
+
|
|
2810
|
+
export { Refresh_cw as $, ARROW_DOWN as A, isFocusVisible as B, Context as C, DOMContext as D, ENTER as E, tabbable as F, useId as G, HOME as H, isWritableSymbol as I, BoxSymbol as J, isFocusable as K, focusable as L, isSelectableInput as M, cssToStyleObj as N, isNotNull as O, PresenceManager as P, styleToString as Q, getWindow as R, SPACE as S, TAB as T, ARROW_RIGHT as U, ARROW_LEFT as V, defaultWindow as W, boxFlatten as X, toReadonlyBox as Y, isBox as Z, isWritableBox as _, Portal as a, Scroll_lock as a0, Focus_scope as a1, Escape_layer as a2, Dismissible_layer as a3, Text_selection_layer as a4, getAriaChecked as a5, boxWith as b, createBitsAttrs as c, createId as d, attachRef as e, boolToStr as f, getDataOpenClosed as g, boxFrom as h, isTouch as i, Circle_arrow_up as j, isElement as k, isTabbable as l, mergeProps as m, noop as n, getDataTransitionAttrs as o, getDocument as p, boolToEmptyStrOrUndef as q, afterTick as r, simpleBox as s, isHTMLElement as t, PAGE_UP as u, ARROW_UP as v, watch as w, PAGE_DOWN as x, END as y, isElementOrSVGElement as z };
|
|
2811
|
+
//# sourceMappingURL=scroll-lock.js-Ci_ylINL.js.map
|