gitifact 0.1.0 → 0.3.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 +9 -6
- package/dist/THIRD_PARTY_NOTICES.txt +0 -198
- package/dist/browser/assets/{BottomSheet-DUajo7ZC.js → BottomSheet-DFEd7qcJ.js} +1 -1
- package/dist/browser/assets/{Icon-BL6mvojd.js → IconButton-DQKowV1I.js} +2 -2
- package/dist/browser/assets/{MenuBottomSheet-uD8HCpnn.js → MenuBottomSheet-BKiLm4Gk.js} +1 -1
- package/dist/browser/assets/{Section-CxDofIgF.js → Section-CXNZYeQ6.js} +1 -1
- package/dist/browser/assets/{Text-DRvg_LY8.js → Text-LX6541eF.js} +2 -2
- package/dist/browser/assets/TimestampHoverCard-CEVz4ZE2.js +1 -0
- package/dist/browser/assets/{Tooltip-CSXUs0wo.js → Tooltip-CH5OxdmX.js} +1 -1
- package/dist/browser/assets/about-Dbyd48t6.js +1 -0
- package/dist/browser/assets/contributors._email-BMqQlPdF.js +1 -0
- package/dist/browser/assets/{contributors-DG1A_fxV.js → contributors.index-Dk42HR-l.js} +1 -1
- package/dist/browser/assets/features._featureId-zHnvA0Go.js +1 -0
- package/dist/browser/assets/{requirements-CSGZCMPA.js → features.index-xgyvTm5d.js} +1 -1
- package/dist/browser/assets/git-D8SQ9LAI.js +1 -0
- package/dist/browser/assets/git-nj7fScNQ.css +1 -0
- package/dist/browser/assets/guides._documentId-jvtVZl4b.js +1 -0
- package/dist/browser/assets/guides.index-DKNn9kCJ.js +1 -0
- package/dist/browser/assets/{ime-DpJB0Xdq.js → ime-u5HljzMu.js} +1 -1
- package/dist/browser/assets/index-CiEgP5lo.css +1 -0
- package/dist/browser/assets/index-Cul6rpdA.js +56 -0
- package/dist/browser/assets/page-header-9-i3H9WR.css +1 -0
- package/dist/browser/assets/page-header-pnZFm0-7.js +56 -0
- package/dist/browser/assets/product-B_C25r7E.js +75 -0
- package/dist/browser/assets/product-DIl1IXZo.css +1 -0
- package/dist/browser/assets/product.index-IBLtgiMT.js +1 -0
- package/dist/browser/assets/request-state-q7VzEh1O.js +3 -0
- package/dist/browser/assets/requirements-BmW8BEdu.js +1 -0
- package/dist/browser/assets/{routes-E_7O-5Bj.js → routes-BDsb61_V.js} +1 -1
- package/dist/browser/assets/useClipboard-D2fN4Nhs.js +1 -0
- package/dist/browser/assets/{useIsomorphicLayoutEffect-C7U2IcbD.js → useIsomorphicLayoutEffect-DPqcigQ0.js} +1 -1
- package/dist/browser/favicon.png +0 -0
- package/dist/browser/favicon.svg +5 -0
- package/dist/browser/index.html +24 -15
- package/dist/docs/commit.md +36 -0
- package/dist/docs/design.md +42 -0
- package/dist/docs/product.md +21 -0
- package/dist/docs/spec.md +54 -0
- package/dist/docs/workflow.md +42 -0
- package/dist/main.js +902 -469
- package/package.json +1 -1
- package/dist/browser/assets/IconButton-lHbix98V.js +0 -1
- package/dist/browser/assets/Table-DeD03NuQ.js +0 -3
- package/dist/browser/assets/TimestampHoverCard-CdwdDY2W.js +0 -1
- package/dist/browser/assets/about-BDnPkVlL.js +0 -1
- package/dist/browser/assets/features-8KaaKFr1.js +0 -1
- package/dist/browser/assets/git-BLYFkHAP.js +0 -1
- package/dist/browser/assets/index-CFjKQp32.js +0 -56
- package/dist/browser/assets/index-DnHDaIjm.css +0 -1
- package/dist/browser/assets/noto-sans-kr-0-800-normal-Bw_wPEW6.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-0-800-normal-CU2ZAuxN.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-1-800-normal-Bv79PX5h.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-1-800-normal-J_tKEQwZ.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-10-800-normal-DE_9FlHK.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-10-800-normal-DRiks4sP.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-100-800-normal-BwmJ5UQj.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-100-800-normal-DmRRRn-a.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-101-800-normal-B-hehSjp.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-101-800-normal-YdhdcxJt.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-102-800-normal-C6kOYHZD.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-102-800-normal-C_hmEXnv.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-103-800-normal-CmDrDQ9V.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-103-800-normal-c5SsBHZM.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-104-800-normal-CHG9R-zy.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-104-800-normal-DMx294uT.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-105-800-normal-BmLq4tHL.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-105-800-normal-fEWHmGbY.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-106-800-normal-CjjLA4cZ.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-106-800-normal-Du7jON9q.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-107-800-normal-5ie2GORa.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-107-800-normal-B-vw3liL.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-108-800-normal-BR9Zw7IY.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-108-800-normal-VCcXKMkT.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-109-800-normal-C7tEA3KS.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-109-800-normal-IlLk0ufL.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-11-800-normal-BinZyvQR.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-11-800-normal-CL9Ahwpo.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-110-800-normal-DEZBQ-5W.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-110-800-normal-Do0gAnv1.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-111-800-normal-Cxb-EKnN.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-111-800-normal-D1o1iTAW.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-112-800-normal-DvsOBbyY.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-112-800-normal-HV4h3xxa.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-113-800-normal-DXGusidw.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-113-800-normal-tbylWl5F.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-114-800-normal-BICMpgoW.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-114-800-normal-DU1U5ue1.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-115-800-normal-C1oRdW1M.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-115-800-normal-CLr-Zxv_.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-116-800-normal-C9sKyFCZ.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-116-800-normal-CtM3GUM6.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-117-800-normal-3A2aP5IS.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-117-800-normal-DwrcPOym.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-118-800-normal-CsMV-v3_.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-118-800-normal-DV16Oj1F.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-119-800-normal-Bxd2OEQS.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-119-800-normal-C3JA3uCT.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-12-800-normal-BLqjm9D5.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-12-800-normal-BdSxEe2g.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-13-800-normal-8rZnesK8.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-13-800-normal-BedB76c8.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-14-800-normal-BtiVONz_.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-14-800-normal-mA9SFjVh.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-15-800-normal-BYbeZAE2.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-15-800-normal-CXEvvUix.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-16-800-normal-B8OWqNF3.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-16-800-normal-CQuF5Ih3.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-17-800-normal-CTUGDjHX.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-17-800-normal-DNvAlAcZ.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-18-800-normal-Petpk6Wi.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-18-800-normal-ThFSRZa4.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-19-800-normal-BMyRF7fz.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-19-800-normal-BNNtnBhl.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-2-800-normal-CQ6iDWMP.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-2-800-normal-DrQB0PtS.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-20-800-normal-CuNmAe4n.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-20-800-normal-DdfIMDx9.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-21-800-normal-C08X3_0x.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-21-800-normal-Dn-tQ8Cr.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-22-800-normal-B6q-RFF5.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-22-800-normal-DZF106py.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-23-800-normal-B0lHlsqh.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-23-800-normal-DRCDT0r0.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-24-800-normal-C1wKob6w.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-24-800-normal-DG0Bfaz1.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-25-800-normal-BuWQxFvN.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-25-800-normal-DlN6uf6B.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-26-800-normal-BQPGMN-7.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-26-800-normal-CYgTLzoi.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-27-800-normal-DsrJXERC.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-27-800-normal-eDTiDgrj.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-28-800-normal-CmRY-nZ4.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-28-800-normal-CpLjKGyi.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-29-800-normal-BFNDreIt.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-29-800-normal-CDzh3Sik.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-3-800-normal-CAuXj4Ks.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-3-800-normal-DkylunKW.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-30-800-normal-D4A2u9et.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-30-800-normal-t7TpxFL5.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-31-800-normal-D1jtl7Q7.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-31-800-normal-DX9UFu0w.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-32-800-normal-B-9BPuXB.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-32-800-normal-Bm8HsYTW.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-33-800-normal-CBJnLOB4.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-33-800-normal-Lp3eLj8E.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-34-800-normal-BTn3_cSG.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-34-800-normal-C7F12ZiM.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-35-800-normal--n-itfth.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-35-800-normal-DMKFJwpr.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-36-800-normal-DP2FYFvb.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-36-800-normal-Udjkk8cw.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-37-800-normal-BJ3T0Ds4.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-37-800-normal-vbBvr6Mj.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-38-800-normal-DHyLtjF-.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-38-800-normal-DY5ycwVP.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-39-800-normal-BYRd7hnV.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-39-800-normal-BbTuYCr_.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-4-800-normal-DaMhz_mp.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-4-800-normal-DcaaVzHe.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-40-800-normal-kb_Elzoh.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-40-800-normal-pcG3sBn_.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-41-800-normal-B5pJMNX9.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-41-800-normal-Becq2RH9.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-42-800-normal-DFBF7PpF.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-42-800-normal-DkTTYUqF.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-43-800-normal-CijJp3m4.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-43-800-normal-DzNpr1oi.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-44-800-normal-8gcTNNZz.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-44-800-normal-DipWX1RS.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-45-800-normal-CNAISROp.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-45-800-normal-zw2L23b5.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-46-800-normal-B5EFObh7.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-46-800-normal-Be8SS2VS.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-47-800-normal-CWuA3LZo.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-47-800-normal-KHZYT9s5.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-48-800-normal-DOY1zu52.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-48-800-normal-X43Exj68.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-49-800-normal-BDUKdhR6.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-49-800-normal-CqO6w8TQ.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-5-800-normal-B6D-Yisg.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-5-800-normal-CYVng5-O.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-50-800-normal-278ctRQM.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-50-800-normal-D8iwvLic.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-51-800-normal-BaGYW3mn.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-51-800-normal-DVNzNOzs.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-52-800-normal-DFoNpPkV.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-52-800-normal-PYkRemOp.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-53-800-normal-Cal8VidM.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-53-800-normal-VTCBtYDl.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-54-800-normal-D87sXgkk.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-54-800-normal-IXtT1yi4.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-55-800-normal-BHlclLP6.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-55-800-normal-CDsENtgr.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-56-800-normal-BC24-4fs.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-56-800-normal-yP6meTAz.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-57-800-normal-DHZYjKKG.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-57-800-normal-Db3MU7be.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-58-800-normal-Bgj8xXYj.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-58-800-normal-DkonTaND.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-59-800-normal-CDotMClO.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-59-800-normal-F9A2zoTv.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-6-800-normal-0EETWYnS.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-6-800-normal-DvzBE-Ju.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-60-800-normal-CFYPd-h9.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-60-800-normal-CsKtzFP-.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-61-800-normal-CcpiOzGM.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-61-800-normal-Dr8kbSyF.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-62-800-normal-CUSp51L1.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-62-800-normal-juHSbMFI.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-63-800-normal-C-Jv8bed.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-63-800-normal-DyZHAD6M.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-64-800-normal-CcBn_W6-.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-64-800-normal-DZDmEpbV.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-65-800-normal-B6c9hlnM.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-65-800-normal-CUX4NhcL.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-66-800-normal-BicMJeOH.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-66-800-normal-C8Teepkx.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-67-800-normal-BDuNl8zH.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-67-800-normal-DV8QzaX3.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-68-800-normal-B-uLhfx0.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-68-800-normal-D5rgL5jh.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-69-800-normal-Cvs4DPNE.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-69-800-normal-DS_MTTAa.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-7-800-normal-BV0xbNLH.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-7-800-normal-DSoiWegj.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-70-800-normal-2_gMfyoa.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-70-800-normal-Ccivp_R5.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-71-800-normal-BKDmUMNW.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-71-800-normal-BodPXKoj.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-72-800-normal-DWkAPAKb.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-72-800-normal-D_-QJd8k.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-73-800-normal-BWGKteHn.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-73-800-normal-CoWOTZbQ.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-74-800-normal-ClYMONqb.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-74-800-normal-DO42epRW.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-75-800-normal-DeRDdZX1.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-75-800-normal-GBSDTxzy.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-76-800-normal-De3chvya.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-76-800-normal-G-QSyD_x.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-77-800-normal-BqaEcnIO.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-77-800-normal-D_prdc66.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-78-800-normal-CBVRfgq1.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-78-800-normal-CNFTj3Q6.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-79-800-normal-CHvPT7M2.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-79-800-normal-l-9QHPwU.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-8-800-normal-BVnjuvZV.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-8-800-normal-CW9POvIA.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-80-800-normal-BmDyH9qV.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-80-800-normal-CcFmOj-_.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-81-800-normal-BebVz-4m.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-81-800-normal-Chq57HAf.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-82-800-normal-PBYyv2iB.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-82-800-normal-T-Uuq98C.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-83-800-normal-Ebp3T0Cc.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-83-800-normal-YBUm2gi-.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-84-800-normal-B5fzB2_B.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-84-800-normal-CjUaLFZH.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-85-800-normal-B3EF-yy4.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-85-800-normal-BNXCj4iI.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-86-800-normal-CJ-r59U1.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-86-800-normal-DsjCgbm5.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-87-800-normal-BP7eds1i.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-87-800-normal-DLjlXPBa.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-88-800-normal-D3d48PyQ.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-88-800-normal-Yz-IPA9D.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-89-800-normal-C3brTUST.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-89-800-normal-DPV6dJIF.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-9-800-normal-BUEQgTu0.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-9-800-normal-DSOwaGDE.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-90-800-normal-BIRlwXwP.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-90-800-normal-Dynpszs5.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-91-800-normal-CXzl4gBc.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-91-800-normal-CgDxpVz2.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-92-800-normal-CBFbbVQL.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-92-800-normal-DlmY38cH.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-93-800-normal-D7ItOUjg.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-93-800-normal-D9xl1xM9.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-94-800-normal-B4_1-zLI.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-94-800-normal-D_inom35.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-95-800-normal-5wwFPIYQ.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-95-800-normal-LEtKc04Z.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-96-800-normal-BPumKL3d.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-96-800-normal-LcPZgb3x.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-97-800-normal-B6DuSXHl.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-97-800-normal-CM_R_M9F.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-98-800-normal-BIIfv0pl.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-98-800-normal-Db3f-61W.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-99-800-normal-Bw0sYswE.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-99-800-normal-iudhGOO-.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-cyrillic-800-normal-CfofMVm8.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-cyrillic-800-normal-DYNGV4gq.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-latin-800-normal-BYRGi1Y1.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-latin-800-normal-LOyLFpCE.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-latin-ext-800-normal-BLx4oR_u.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-latin-ext-800-normal-Ct5SpdHD.woff +0 -0
- package/dist/browser/assets/noto-sans-kr-vietnamese-800-normal-B93Gh2EH.woff2 +0 -0
- package/dist/browser/assets/noto-sans-kr-vietnamese-800-normal-DSdRDyh3.woff +0 -0
- package/dist/browser/assets/outfit-latin-800-normal-BRHLSPcU.woff +0 -0
- package/dist/browser/assets/page-header-BMoXdF8-.css +0 -1
- package/dist/browser/assets/page-header-_RNO4t-D.js +0 -56
- package/dist/browser/assets/product-C_SFSrKx.js +0 -75
- package/dist/browser/assets/product-f-WX-_YX.css +0 -1
- package/dist/skills/gitifact-workflow/SKILL.md +0 -157
- /package/dist/browser/{assets/outfit-latin-800-normal-CQna6-G7.woff2 → fonts/outfit-latin-800-normal.woff2} +0 -0
package/README.md
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
# Gitifact CLI
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> Current release: `gitifact@0.3.0` (unscoped). Requires Node.js 24.x and Git.
|
|
4
4
|
|
|
5
5
|
Git-backed requirements and change history for coding agents. New projects use `schemaVersion: 1`, Markdown specifications and per-feature change reasons. Requires Node.js 24.x and Git.
|
|
6
6
|
|
|
7
|
-
Install with `npm install -g gitifact`.
|
|
7
|
+
Install with `npm install -g gitifact`. Run `gitifact init`, then read the GITIFACT block it writes into the project's agent instruction file and follow it in the current session.
|
|
8
8
|
|
|
9
9
|
```sh
|
|
10
10
|
gitifact init --dry-run
|
|
11
11
|
gitifact init
|
|
12
|
-
gitifact
|
|
12
|
+
gitifact docs
|
|
13
|
+
gitifact docs spec
|
|
13
14
|
gitifact spec working
|
|
14
15
|
gitifact spec save --file input.json
|
|
15
16
|
gitifact spec changes
|
|
@@ -19,11 +20,13 @@ gitifact spec read --ref HEAD
|
|
|
19
20
|
gitifact spec diff --from BEFORE --to AFTER
|
|
20
21
|
```
|
|
21
22
|
|
|
22
|
-
Initialization creates
|
|
23
|
+
Initialization creates the configuration and the Git adoption baseline, then installs a managed block between `<!-- GITIFACT:START -->` and `<!-- GITIFACT:END -->` in the agent instruction files. Existing `AGENTS.md`, `CLAUDE.md`, `.claude/CLAUDE.md`, `.cursorrules`, `.hermes.md` and `HERMES.md` all receive the block, except files that only `@`-import another one; when none exist, `AGENTS.md` is created. `--agent claude|cursor|codex|hermes|all` targets one tool's file instead, `--remove-agents` removes the block, and `--skip-agents` leaves instruction files alone. Text outside the markers is never touched; re-running `init` refreshes the block after a CLI update and refuses files with a broken marker pair. Initialization requires Git, accepts an unborn repository, preserves unrelated work and staging, and never performs a commit. Existing legacy configuration requires an explicit separate transition.
|
|
24
|
+
|
|
25
|
+
`gitifact docs` lists the guidance topics (`workflow`, `spec`, `design`, `product`, `commit`) and `gitifact docs <topic>` prints the bundled Markdown for one. The block summarises the rules and points agents at these topics for the exact input formats.
|
|
23
26
|
|
|
24
27
|
The legacy `req`, `note`, `mode`, `brief`, `commit plan/apply` and `init --mode` commands and the `spec-preview` alias have been removed. Historical JSON projects require the old `gitifact@0.4.0` or earlier. `browser` serves requirement history, current features and contributors from Markdown/Git.
|
|
25
28
|
|
|
26
|
-
The `spec` commands use the
|
|
29
|
+
The `spec` commands use the input objects described by `gitifact docs spec` and `gitifact docs commit`. Their output envelope is `contract: "spec", version: 1`. For a project with schemaVersion 1, config bytes are bound to working stamps and commit plans. Creation and edits never imply user approval or implementation completion.
|
|
27
30
|
|
|
28
31
|
## Browser
|
|
29
32
|
|
|
@@ -62,6 +65,6 @@ MIT. Bundled dependency notices are included in `dist/THIRD_PARTY_NOTICES.txt`.
|
|
|
62
65
|
|
|
63
66
|
## Feature designs
|
|
64
67
|
|
|
65
|
-
The development build supports optional `design.md` next to requirements.md.
|
|
68
|
+
The development build supports optional `design.md` next to requirements.md. `gitifact docs design` tells agents to create both by default for new features. Add `{type: "set-design", feature, title, body}` to spec save operations; use `{type: "delete-design", feature}` to remove it. The CLI writes the owning S-ID, while explicit `gitifact-ref` annotations link actual R-IDs. Missing current references return warnings.
|
|
66
69
|
|
|
67
70
|
Commit reasons may add `designs: ["S-…"]` alongside `requirements`. For a design-only reason, use `requirements: []`. Design changes have `kind: "design"` and do not become requirement changes. Use spec commit; deprecated commit-plan/apply do not accept new design changes. The browser displays designs in feature tabs and specification history. This extension is not yet published.
|
|
@@ -52,204 +52,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
52
52
|
SOFTWARE.
|
|
53
53
|
|
|
54
54
|
|
|
55
|
-
-----
|
|
56
|
-
|
|
57
|
-
@fontsource/noto-sans-kr@5.3.0 (OFL-1.1)
|
|
58
|
-
|
|
59
|
-
Google Inc.
|
|
60
|
-
|
|
61
|
-
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
62
|
-
This license is copied below, and is also available with a FAQ at:
|
|
63
|
-
http://scripts.sil.org/OFL
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
-----------------------------------------------------------
|
|
67
|
-
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
68
|
-
-----------------------------------------------------------
|
|
69
|
-
|
|
70
|
-
PREAMBLE
|
|
71
|
-
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
72
|
-
development of collaborative font projects, to support the font creation
|
|
73
|
-
efforts of academic and linguistic communities, and to provide a free and
|
|
74
|
-
open framework in which fonts may be shared and improved in partnership
|
|
75
|
-
with others.
|
|
76
|
-
|
|
77
|
-
The OFL allows the licensed fonts to be used, studied, modified and
|
|
78
|
-
redistributed freely as long as they are not sold by themselves. The
|
|
79
|
-
fonts, including any derivative works, can be bundled, embedded,
|
|
80
|
-
redistributed and/or sold with any software provided that any reserved
|
|
81
|
-
names are not used by derivative works. The fonts and derivatives,
|
|
82
|
-
however, cannot be released under any other type of license. The
|
|
83
|
-
requirement for fonts to remain under this license does not apply
|
|
84
|
-
to any document created using the fonts or their derivatives.
|
|
85
|
-
|
|
86
|
-
DEFINITIONS
|
|
87
|
-
"Font Software" refers to the set of files released by the Copyright
|
|
88
|
-
Holder(s) under this license and clearly marked as such. This may
|
|
89
|
-
include source files, build scripts and documentation.
|
|
90
|
-
|
|
91
|
-
"Reserved Font Name" refers to any names specified as such after the
|
|
92
|
-
copyright statement(s).
|
|
93
|
-
|
|
94
|
-
"Original Version" refers to the collection of Font Software components as
|
|
95
|
-
distributed by the Copyright Holder(s).
|
|
96
|
-
|
|
97
|
-
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
98
|
-
or substituting -- in part or in whole -- any of the components of the
|
|
99
|
-
Original Version, by changing formats or by porting the Font Software to a
|
|
100
|
-
new environment.
|
|
101
|
-
|
|
102
|
-
"Author" refers to any designer, engineer, programmer, technical
|
|
103
|
-
writer or other person who contributed to the Font Software.
|
|
104
|
-
|
|
105
|
-
PERMISSION & CONDITIONS
|
|
106
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
107
|
-
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
108
|
-
redistribute, and sell modified and unmodified copies of the Font
|
|
109
|
-
Software, subject to the following conditions:
|
|
110
|
-
|
|
111
|
-
1) Neither the Font Software nor any of its individual components,
|
|
112
|
-
in Original or Modified Versions, may be sold by itself.
|
|
113
|
-
|
|
114
|
-
2) Original or Modified Versions of the Font Software may be bundled,
|
|
115
|
-
redistributed and/or sold with any software, provided that each copy
|
|
116
|
-
contains the above copyright notice and this license. These can be
|
|
117
|
-
included either as stand-alone text files, human-readable headers or
|
|
118
|
-
in the appropriate machine-readable metadata fields within text or
|
|
119
|
-
binary files as long as those fields can be easily viewed by the user.
|
|
120
|
-
|
|
121
|
-
3) No Modified Version of the Font Software may use the Reserved Font
|
|
122
|
-
Name(s) unless explicit written permission is granted by the corresponding
|
|
123
|
-
Copyright Holder. This restriction only applies to the primary font name as
|
|
124
|
-
presented to the users.
|
|
125
|
-
|
|
126
|
-
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
127
|
-
Software shall not be used to promote, endorse or advertise any
|
|
128
|
-
Modified Version, except to acknowledge the contribution(s) of the
|
|
129
|
-
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
130
|
-
permission.
|
|
131
|
-
|
|
132
|
-
5) The Font Software, modified or unmodified, in part or in whole,
|
|
133
|
-
must be distributed entirely under this license, and must not be
|
|
134
|
-
distributed under any other license. The requirement for fonts to
|
|
135
|
-
remain under this license does not apply to any document created
|
|
136
|
-
using the Font Software.
|
|
137
|
-
|
|
138
|
-
TERMINATION
|
|
139
|
-
This license becomes null and void if any of the above conditions are
|
|
140
|
-
not met.
|
|
141
|
-
|
|
142
|
-
DISCLAIMER
|
|
143
|
-
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
144
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
145
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
146
|
-
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
147
|
-
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
148
|
-
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
149
|
-
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
150
|
-
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
151
|
-
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
-----
|
|
155
|
-
|
|
156
|
-
@fontsource/outfit@5.3.0 (OFL-1.1)
|
|
157
|
-
|
|
158
|
-
Copyright 2021 The Outfit Project Authors (https://github.com/Outfitio/Outfit-Fonts)
|
|
159
|
-
|
|
160
|
-
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
161
|
-
This license is copied below, and is also available with a FAQ at:
|
|
162
|
-
http://scripts.sil.org/OFL
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
-----------------------------------------------------------
|
|
166
|
-
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
167
|
-
-----------------------------------------------------------
|
|
168
|
-
|
|
169
|
-
PREAMBLE
|
|
170
|
-
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
171
|
-
development of collaborative font projects, to support the font creation
|
|
172
|
-
efforts of academic and linguistic communities, and to provide a free and
|
|
173
|
-
open framework in which fonts may be shared and improved in partnership
|
|
174
|
-
with others.
|
|
175
|
-
|
|
176
|
-
The OFL allows the licensed fonts to be used, studied, modified and
|
|
177
|
-
redistributed freely as long as they are not sold by themselves. The
|
|
178
|
-
fonts, including any derivative works, can be bundled, embedded,
|
|
179
|
-
redistributed and/or sold with any software provided that any reserved
|
|
180
|
-
names are not used by derivative works. The fonts and derivatives,
|
|
181
|
-
however, cannot be released under any other type of license. The
|
|
182
|
-
requirement for fonts to remain under this license does not apply
|
|
183
|
-
to any document created using the fonts or their derivatives.
|
|
184
|
-
|
|
185
|
-
DEFINITIONS
|
|
186
|
-
"Font Software" refers to the set of files released by the Copyright
|
|
187
|
-
Holder(s) under this license and clearly marked as such. This may
|
|
188
|
-
include source files, build scripts and documentation.
|
|
189
|
-
|
|
190
|
-
"Reserved Font Name" refers to any names specified as such after the
|
|
191
|
-
copyright statement(s).
|
|
192
|
-
|
|
193
|
-
"Original Version" refers to the collection of Font Software components as
|
|
194
|
-
distributed by the Copyright Holder(s).
|
|
195
|
-
|
|
196
|
-
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
197
|
-
or substituting -- in part or in whole -- any of the components of the
|
|
198
|
-
Original Version, by changing formats or by porting the Font Software to a
|
|
199
|
-
new environment.
|
|
200
|
-
|
|
201
|
-
"Author" refers to any designer, engineer, programmer, technical
|
|
202
|
-
writer or other person who contributed to the Font Software.
|
|
203
|
-
|
|
204
|
-
PERMISSION & CONDITIONS
|
|
205
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
206
|
-
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
207
|
-
redistribute, and sell modified and unmodified copies of the Font
|
|
208
|
-
Software, subject to the following conditions:
|
|
209
|
-
|
|
210
|
-
1) Neither the Font Software nor any of its individual components,
|
|
211
|
-
in Original or Modified Versions, may be sold by itself.
|
|
212
|
-
|
|
213
|
-
2) Original or Modified Versions of the Font Software may be bundled,
|
|
214
|
-
redistributed and/or sold with any software, provided that each copy
|
|
215
|
-
contains the above copyright notice and this license. These can be
|
|
216
|
-
included either as stand-alone text files, human-readable headers or
|
|
217
|
-
in the appropriate machine-readable metadata fields within text or
|
|
218
|
-
binary files as long as those fields can be easily viewed by the user.
|
|
219
|
-
|
|
220
|
-
3) No Modified Version of the Font Software may use the Reserved Font
|
|
221
|
-
Name(s) unless explicit written permission is granted by the corresponding
|
|
222
|
-
Copyright Holder. This restriction only applies to the primary font name as
|
|
223
|
-
presented to the users.
|
|
224
|
-
|
|
225
|
-
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
226
|
-
Software shall not be used to promote, endorse or advertise any
|
|
227
|
-
Modified Version, except to acknowledge the contribution(s) of the
|
|
228
|
-
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
229
|
-
permission.
|
|
230
|
-
|
|
231
|
-
5) The Font Software, modified or unmodified, in part or in whole,
|
|
232
|
-
must be distributed entirely under this license, and must not be
|
|
233
|
-
distributed under any other license. The requirement for fonts to
|
|
234
|
-
remain under this license does not apply to any document created
|
|
235
|
-
using the Font Software.
|
|
236
|
-
|
|
237
|
-
TERMINATION
|
|
238
|
-
This license becomes null and void if any of the above conditions are
|
|
239
|
-
not met.
|
|
240
|
-
|
|
241
|
-
DISCLAIMER
|
|
242
|
-
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
243
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
244
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
245
|
-
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
246
|
-
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
247
|
-
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
248
|
-
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
249
|
-
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
250
|
-
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
251
|
-
|
|
252
|
-
|
|
253
55
|
-----
|
|
254
56
|
|
|
255
57
|
@formatjs/fast-memoize@3.1.7 (MIT)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as e,D as t,E as n,c as r,g as i,n as a}from"./themeProps-BV289t6M.js";import{g as o,t as s}from"./ime-DpJB0Xdq.js";import{t as c}from"./mergeProps-ptS-gIMz.js";import{t as l}from"./useMediaQuery-Bkz-2VBC.js";import{t as u}from"./useDevWarning-CHuvA0bI.js";import{t as d}from"./useScrollLock-0d-ttB5Z.js";var f=e(t(),1),p=/^(\d+(?:\.\d+)?|\.\d+)(px|%)$/i;function m(e,t){if(typeof e==`number`)return Number.isFinite(e)&&e>0&&e<=1?e*t:null;let n=p.exec(e.trim());if(n===null)return null;let r=Number.parseFloat(n[1]);return r>0?n[2].toLowerCase()===`%`?r/100*t:r:null}function h(e){return m(e,1)!==null}function g(e,t){let n=[];for(let r of e){let e=m(r,t);e!==null&&n.push(e)}return n}function _(e,t,n=48){let r=[0,...t.filter(t=>t>0&&t<e).map(t=>e-t)].sort((e,t)=>e-t),i=[];for(let e of r){let t=i[i.length-1];(t===void 0||e-t>=n)&&i.push(e)}return i}function v(e,t){return t.reduce((t,n)=>Math.abs(n-e)<Math.abs(t-e)?n:t,t[0])}var y=.3;function ee(e,t){if(e.length<2||t<=0)return null;let n=e[e.length-1];return t-n<=.25*t?n:null}function b(e,t,n,r){let i=r!==null,a=i?t[t.length-2]:t[t.length-1],o=i?r:n,s=i?y:0;return e<=a?1:e>=o?s:1-(1-s)*((e-a)/(o-a))}function x(e,t,n,r){let i=t;if(n>0){let e=t.filter(e=>e>=r);e.length>0&&(i=e)}else if(n<0){let e=t.filter(e=>e<=r);e.length>0&&(i=e)}return v(e,i)}var S=`--_sheet-keyboard-inset`,C=new Set([`button`,`checkbox`,`color`,`file`,`hidden`,`image`,`radio`,`range`,`reset`,`submit`]);function w(){return window.visualViewport?.height??window.innerHeight}function T(){return w()>=window.innerHeight-.5}function te(){let e=window.navigator.userAgent;return/iPad|iPhone|iPod/.test(e)||e.includes(`Macintosh`)&&window.navigator.maxTouchPoints>1}function E(e){return e instanceof HTMLTextAreaElement?!e.disabled&&!e.readOnly:e instanceof HTMLInputElement?!e.disabled&&!e.readOnly&&!C.has((e.getAttribute(`type`)??`text`).toLowerCase()):e instanceof HTMLElement&&e.matches(`[contenteditable]:not([contenteditable="false"])`)}function D(e,t){if(!(e instanceof Element))return null;let n=e.closest(`input, textarea, [contenteditable]:not([contenteditable="false"])`);if(t.contains(n)&&E(n))return n;let r=e.closest(`label`),i=r instanceof HTMLLabelElement?r.control:null;return t.contains(i)&&E(i)?i:null}function O({bodyRef:e,bottomClearance:t,isEnabled:n,isFullyExpanded:r,isPageScrollLocked:i,isSheetTraveling:a,isOpen:o,isPresented:s,sheetRef:c}){let l=(0,f.useRef)(!1),u=(0,f.useRef)(!1),d=(0,f.useRef)(r),p=(0,f.useRef)(o);d.current=r,p.current=o,(0,f.useEffect)(()=>{if(!n||!a)return;let e=c.current,t=document.activeElement;e&&t instanceof HTMLElement&&t!==e&&e.contains(t)&&(u.current=l.current,e.focus({preventScroll:!0}))},[n,a,c]),(0,f.useEffect)(()=>{if(!n||!s||o)return;let e=c.current,t=document.activeElement;e&&t instanceof HTMLElement&&t!==e&&e.contains(t)&&(u.current=l.current,t.blur())},[n,o,s,c]),(0,f.useEffect)(()=>{let r=e.current,a=c.current;if(!n||!s||!r)return;let o=null,f=null,m=te(),h=()=>{r.style.setProperty(S,`0px`),o=null,f=null,l.current=!1,u.current=!1},g=(e,t)=>{if(typeof r.scrollBy!=`function`){r.scrollTop+=e;return}let n=typeof window.matchMedia==`function`&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches;r.scrollBy({top:e,behavior:t&&!n?`smooth`:`instant`})},_=(e,n)=>{let i=r.getBoundingClientRect(),a=e.getBoundingClientRect(),o=w(),s=Math.max(0,i.bottom-o)>0?t:0,c=i.top,l=Math.min(i.bottom,o-s);l<=c||(a.bottom>l?g(a.bottom-l,n):a.top<c&&g(a.top-c,n))},v=e=>{let n=w();if(T()){h();return}if(Math.max(0,e.bodyBottom-n)===0){h();return}let i=Math.max(0,e.bodyBottom-(n-t));r.style.setProperty(S,`${i}px`)},y=e=>{if(!d.current)return;let t=D(e.relatedTarget,r);if(t){t!==document.activeElement&&t.focus({preventScroll:!0});return}let n=D(e.target,r);p.current&&n&&!e.relatedTarget&&a?.focus({preventScroll:!0})},ee=()=>{let e=document.activeElement;if(!d.current||!(e instanceof HTMLElement)||!r.contains(e)||!E(e)){if(u.current&&o){v(o);return}h();return}u.current=!1;let n=r.getBoundingClientRect(),a=w(),s=Math.max(0,n.bottom-a),c=s>0?t:0;o=s>0?{bodyBottom:n.bottom}:null,i&&s>0&&!l.current&&(f={x:window.scrollX,y:window.scrollY}),l.current=s>0;let p=s>0?Math.max(0,n.bottom-(a-c)):0;r.style.setProperty(S,`${p}px`),_(e,s>0)},b=0,x=()=>{cancelAnimationFrame(b),b=requestAnimationFrame(ee)},C=()=>{let e=f;if(e==null||window.scrollX===e.x&&window.scrollY===e.y)return;window.scrollTo(e.x,e.y);let t=document.activeElement;t instanceof HTMLElement&&r.contains(t)&&E(t)&&_(t,!1)},O=typeof ResizeObserver>`u`?null:new ResizeObserver(x),k=()=>{if(!O)return;O.disconnect();let e=new Set([r]);a&&e.add(a);for(let t of r.children)e.add(t);let t=document.activeElement;if(t instanceof HTMLElement&&r.contains(t))for(let n=t;n&&n!==r;n=n.parentElement)e.add(n);for(let t of e)O.observe(t)},A=typeof MutationObserver>`u`?null:new MutationObserver(e=>{e.every(e=>e.type===`attributes`&&e.target===r)||(k(),x())}),j=()=>{k(),x()},M=()=>{u.current=l.current,x()},ne=e=>{e.target===a&&e.propertyName===`transform`&&x()},N=window.visualViewport;return m&&document.addEventListener(`blur`,y,!0),r.addEventListener(`focusin`,j),r.addEventListener(`focusout`,M),a?.addEventListener(`transitionend`,ne),N?.addEventListener(`resize`,x),N?.addEventListener(`scroll`,x),window.addEventListener(`scroll`,C),window.addEventListener(`resize`,x),A?.observe(r,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),k(),x(),()=>{cancelAnimationFrame(b),m&&document.removeEventListener(`blur`,y,!0),r.removeEventListener(`focusin`,j),r.removeEventListener(`focusout`,M),a?.removeEventListener(`transitionend`,ne),N?.removeEventListener(`resize`,x),N?.removeEventListener(`scroll`,x),window.removeEventListener(`scroll`,C),window.removeEventListener(`resize`,x),O?.disconnect(),A?.disconnect(),r.style.removeProperty(S),l.current=!1,u.current=!1}},[e,t,n,i,s,c])}var k=1.2,A=48,j=.4,M=40;function ne(e){return e.syntheticTouch===!0}var N=.35,re=4,ie=8;function ae(){typeof navigator>`u`||typeof navigator.vibrate!=`function`||ue()||navigator.vibrate(8)}function oe(e,t){let n=t[0],r=Math.abs(e-n);for(let i of t){let t=Math.abs(e-i);t<r&&(r=t,n=i)}if(r>=M)return e;let i=r/M,a=1-i*i;return e+(n-e)*a}function se(e,t,n){return Math.max(0,e-t-n)}function ce(e){let t=Number.parseFloat(getComputedStyle(e).paddingBlockEnd);return Number.isFinite(t)?t:0}function le(e){if(!e)return 0;let t=ce(e);return Math.max(0,e.scrollHeight-e.clientHeight-t)-e.scrollTop}function P(e,t,n){return Math.max(0,e-n-t)}function ue(){return typeof window>`u`||!window.matchMedia?!1:window.matchMedia(`(prefers-reduced-motion: reduce)`).matches}function de({isOpen:e,canDismiss:t=!0,offscreenBlockEndInset:n=0,onDismiss:r,snapHeights:i,onSnap:a,onScrimOpacity:o}){let[s,c]=(0,f.useState)(0),[u,d]=(0,f.useState)(0),[p,m]=(0,f.useState)(!1),[h,g]=(0,f.useState)(0),[v,y]=(0,f.useState)(0),[S,C]=(0,f.useState)(0),w=(0,f.useRef)(0),T=(0,f.useRef)(0),[te,E]=(0,f.useState)(null),[D,O]=(0,f.useState)(!1),M=(0,f.useRef)(0),de=(0,f.useRef)(null),F=(0,f.useRef)(null),I=(0,f.useRef)(n);I.current=Math.max(0,n);let L=(0,f.useCallback)(e=>{let t=Math.max(0,e);w.current=t,C(t)},[]),R=(0,f.useCallback)(e=>{let t=Math.max(0,e);Math.abs(t-M.current)>.5&&(M.current=t,y(t))},[]),fe=(0,f.useCallback)(()=>{O(!0),de.current=null,E(null);let e=F.current;F.current=null,e!=null&&R(e)},[R]),z=(0,f.useCallback)((e,t,n,r,i,a,o)=>{let s=se(e,n,a);if(o&&Math.abs(r-t)>.5&&!ue()){F.current=s,de.current=i,E(i);return}F.current=null,de.current=null,E(null),O(Math.abs(i-n)>.5),R(s)},[R]),pe=(0,f.useRef)(0);pe.current=p?s:u;let B=(0,f.useRef)(e);B.current=e;let me=(0,f.useRef)(i);me.current=i;let he=(0,f.useRef)(r),ge=(0,f.useRef)(t),V=(0,f.useRef)(a),H=(0,f.useRef)(o);(0,f.useEffect)(()=>{he.current=r,ge.current=t,V.current=a,H.current=o});let U=(0,f.useRef)(null),W=(0,f.useRef)(0),G=(0,f.useRef)(null),K=(0,f.useRef)(null),q=(0,f.useRef)(null);(0,f.useLayoutEffect)(()=>{if(!D)return;G.current?.offsetHeight;let e=requestAnimationFrame(()=>{O(!1)});return()=>cancelAnimationFrame(e)},[D]);let J=(0,f.useCallback)(e=>{e<=0||!B.current||pe.current>0||(W.current=e,g(t=>t===e?t:e))},[]),_e=(0,f.useCallback)(e=>{if(q.current?.disconnect(),q.current=null,G.current=e,!e||typeof ResizeObserver>`u`){e&&J(e.getBoundingClientRect().height);return}J(e.getBoundingClientRect().height);let t=new ResizeObserver(e=>{let t=e[0];if(t){let e=t.borderBoxSize?.[0]?.blockSize;J(e??t.target.getBoundingClientRect().height)}});t.observe(e),q.current=t},[J]);(0,f.useEffect)(()=>()=>q.current?.disconnect(),[]),(0,f.useEffect)(()=>{e&&(c(0),d(0),m(!1),O(!1),L(0),T.current=0,M.current=0,de.current=null,F.current=null,y(0),E(null))},[e,L]);let Y=(0,f.useCallback)(()=>W.current>0?W.current:G.current?.getBoundingClientRect().height??0,[]),X=(0,f.useCallback)(e=>{let t=P(e,0,I.current),n=_(t,me.current?.()??[]);return{offsets:n,peekOffset:ee(n,t)}},[]),ve=(0,f.useCallback)(()=>{let e=G.current;if(!e)return W.current;let t=e.style.height;if(t===``)return e.getBoundingClientRect().height;e.style.height=``;let n=e.getBoundingClientRect().height;return e.style.height=t,n},[]),ye=(0,f.useCallback)(()=>{if(!B.current||U.current!=null||de.current!=null)return;let e=ve();if(e<=0)return;let{offsets:t,peekOffset:n}=X(e),r=Math.min(T.current,t.length-1),i=t[r],a=i===n?0:i,o=w.current;if(e===W.current&&Math.abs(i-pe.current)<=.5&&Math.abs(a-o)<=.5)return;W.current=e,g(e),T.current=r,z(o,i,a,i,o,le(K.current),!1),L(a),d(i),V.current?.(P(e,i,I.current));let s=t[t.length-1],c=P(e,s,I.current);H.current?.(b(i,t,s+c*j,n))},[ve,z,L,X]);(0,f.useEffect)(()=>{if(!(!e||typeof window>`u`))return window.addEventListener(`resize`,ye),window.addEventListener(`orientationchange`,ye),()=>{window.removeEventListener(`resize`,ye),window.removeEventListener(`orientationchange`,ye)}},[e,ye]);let Z=(0,f.useRef)(!1);(0,f.useLayoutEffect)(()=>{if(!Z.current){Z.current=!0;return}ye()},[ye,i]);let Q=(0,f.useCallback)(e=>{let t=U.current;if(t==null)return;U.current=null,e?.hasPointerCapture?.(t.pointerId)&&e.releasePointerCapture(t.pointerId),c(t.baseOffset),m(!1),z(t.baseLayoutOffset,t.baseOffset,t.baseLayoutOffset,t.renderedOffset,t.layoutOffset,t.naturalEndGap,!0);let{offsets:n,peekOffset:r}=X(t.height),i=n[n.length-1],a=i+P(t.height,i,I.current)*j;H.current?.(b(t.baseOffset,n,a,r))},[z,X]);(0,f.useEffect)(()=>{let e=()=>Q(),t=()=>{document.visibilityState===`hidden`&&Q()};return window.addEventListener(`blur`,e),document.addEventListener(`visibilitychange`,t),()=>{window.removeEventListener(`blur`,e),document.removeEventListener(`visibilitychange`,t)}},[Q]);let be=(0,f.useCallback)((e,t,n,r,i,a,o,s,l,u)=>{let{offsets:f,peekOffset:p}=X(n),m=f[f.length-1],h=P(n,m,I.current),g=Math.abs(t)>k&&i>A,_=e=>{let t=e===p?0:e;z(o,e,t,s,l,u,!0),L(t),T.current=Math.max(0,f.indexOf(e)),d(e),V.current?.(P(n,e,I.current));let r=m+h*j;H.current?.(b(e,f,r,p)),e!==a&&ae()};if(r>0&&g){ge.current?(z(o,a,o,o,o,u,!1),he.current()):_(m);return}if(r<0&&g){z(o,0,0,s,l,u,!0),L(0),T.current=0,c(0),d(0),V.current?.(P(n,0,I.current)),H.current?.(1),ae();return}if(e>m+h*j){ge.current?(z(o,a,o,o,o,u,!1),he.current()):_(m);return}_(x(e,f,r,a))},[z,L,X]),$=(0,f.useCallback)((e,t,n)=>{let r=e.currentTarget,i=ne(e);i||r.setPointerCapture?.(e.pointerId);let a=n??e.clientY,o=le(K.current),s=w.current;U.current={syntheticTouch:i,pointerId:e.pointerId,startCoord:a,lastCoord:e.clientY,lastTime:e.timeStamp,velocity:0,height:t,baseOffset:u,baseLayoutOffset:s,renderedOffset:u,layoutOffset:s,naturalEndGap:o},R(se(s,s,o)),c(u),m(!0)},[u,R]),xe=(0,f.useCallback)(e=>{e.button===0&&e.isPrimary&&(e.preventDefault(),$(e,Y()))},[$,Y]),Se=(0,f.useCallback)(e=>{U.current!=null&&(e.preventDefault(),Q(e.currentTarget))},[Q]),Ce=(0,f.useCallback)(e=>{U.current?.syntheticTouch||U.current?.pointerId===e.pointerId&&Q()},[Q]),we=(0,f.useCallback)(e=>{let t=U.current;if(!t||t.pointerId!==e.pointerId||t.syntheticTouch&&!ne(e))return;let n=e.clientY-t.startCoord,r=e.timeStamp-t.lastTime;r>0&&(t.velocity=(e.clientY-t.lastCoord)/r,t.lastCoord=e.clientY,t.lastTime=e.timeStamp);let{offsets:i,peekOffset:a}=X(t.height),o=t.baseOffset+n,s=i[i.length-1],l;l=o<0?Math.max(-48,o*N):o>s?o:oe(o,i);let u=l<t.baseOffset?0:t.baseLayoutOffset;t.renderedOffset=l,t.layoutOffset=u,c(l),R(se(t.baseLayoutOffset,u,t.naturalEndGap));let d=i[i.length-1],f=d+P(t.height,d,I.current)*j;H.current?.(b(l,i,f,a))},[X,R]),Te=(0,f.useCallback)(e=>{let t=U.current;if(!t||t.pointerId!==e.pointerId||t.syntheticTouch&&!ne(e))return;let n=e.currentTarget,r=e.clientY-t.startCoord,i=Math.max(0,t.baseOffset+r),a=r===0?0:r>0?1:-1;U.current=null,t.syntheticTouch||n.releasePointerCapture?.(e.pointerId),m(!1),be(i,t.velocity,t.height||1,a,Math.abs(r),t.baseOffset,t.baseLayoutOffset,t.renderedOffset,t.layoutOffset,t.naturalEndGap)},[be]),Ee=(0,f.useRef)(null),De=(0,f.useCallback)(e=>{if(e.button!==0||!e.isPrimary)return;let t=e.currentTarget;if(t.scrollTop>0){Ee.current=null;return}Ee.current={pointerId:e.pointerId,startCoord:e.clientY,scroller:t}},[]),Oe=(0,f.useCallback)(e=>{if(U.current){we(e);return}let t=Ee.current;if(!t||t.pointerId!==e.pointerId)return;let n=e.clientY-t.startCoord;n>ie&&t.scroller.scrollTop<=0?(Ee.current=null,$(e,Y(),t.startCoord),we(e)):n<0&&(Ee.current=null)},[$,we,Y]),ke=(0,f.useCallback)(e=>{Ee.current=null,!U.current?.syntheticTouch&&U.current&&Te(e)},[Te]),Ae=(0,f.useRef)(null),je=(0,f.useRef)(null),Me=(0,f.useRef)($),Ne=(0,f.useRef)(Q),Pe=(0,f.useRef)(we),Fe=(0,f.useRef)(Te),Ie=(0,f.useRef)(Y);(0,f.useEffect)(()=>{Me.current=$,Ne.current=Q,Pe.current=we,Fe.current=Te,Ie.current=Y});let Le=(0,f.useCallback)(e=>{let t=(e,t)=>({syntheticTouch:!0,pointerId:e.identifier,clientY:e.clientY,timeStamp:Date.now(),currentTarget:t,setPointerCapture:()=>{},releasePointerCapture:()=>{}}),n=e=>e.scrollTop<=0,r=e=>e.scrollTop+e.clientHeight>=e.scrollHeight-1,i=e=>{let t=e.currentTarget,i=e.changedTouches[0];if(!i){Ae.current=null;return}let a=n(t),o=r(t)&&pe.current>0;Ae.current={id:i.identifier,startY:i.clientY,top:a,bottom:o,contentEndY:null,promotedAtContentEnd:!1}},a=e=>{let i=e.currentTarget,a=Ae.current;if(U.current){let n=[...e.changedTouches].find(e=>e.identifier===U.current?.pointerId);if(!n)return;if(a?.promotedAtContentEnd&&a.contentEndY!=null){if(n.clientY>=a.contentEndY){a.contentEndY=null,a.promotedAtContentEnd=!1,Ne.current(i);return}Pe.current(t(n,i));return}e.preventDefault(),Pe.current(t(n,i));return}if(!a)return;let o=[...e.changedTouches].find(e=>e.identifier===a.id);if(!o)return;let s=o.clientY-a.startY,c=a.top&&s>ie&&n(i),l=a.bottom&&s<-8&&r(i);if(c||l){e.preventDefault(),Ae.current=null,Me.current(t(o,i),Ie.current(),a.startY),Pe.current(t(o,i));return}(a.top&&s<0||a.bottom&&s>0)&&(a.top=!1,a.bottom=!1),pe.current>0&&r(i)?a.contentEndY==null?a.contentEndY=o.clientY:a.contentEndY-o.clientY>=re&&(a.promotedAtContentEnd=!0,Me.current(t(o,i),Ie.current(),a.contentEndY),Pe.current(t(o,i))):a.contentEndY=null},o=e=>{Ae.current=null;let n=U.current?.pointerId;if(n==null)return;let r=[...e.changedTouches].find(e=>e.identifier===n),i=e.currentTarget;r?Fe.current(t(r,i)):e.touches.length===0&&Ne.current(i)},s=K.current;if(s&&je.current){let e=je.current;s.removeEventListener(`touchstart`,e.start),s.removeEventListener(`touchmove`,e.move),s.removeEventListener(`touchend`,e.end),s.removeEventListener(`touchcancel`,e.end)}K.current=e,e?(e.addEventListener(`touchstart`,i,{passive:!0}),e.addEventListener(`touchmove`,a,{passive:!1}),e.addEventListener(`touchend`,o,{passive:!0}),e.addEventListener(`touchcancel`,o,{passive:!0}),je.current={start:i,move:a,end:o}):je.current=null},[]),Re=l(`(prefers-reduced-motion: reduce)`),ze=(0,f.useCallback)(e=>{if(M.current<=0)return;let t=ce(e),n=Math.max(0,e.scrollHeight-e.clientHeight-t),r=Math.max(0,e.scrollTop-n);r<M.current-.5&&R(r)},[R]),Be=(0,f.useCallback)(e=>{U.current==null&&de.current==null&&ze(e.currentTarget)},[ze]),Ve=p?s:u;return{sheetRef:_e,contentProps:(0,f.useMemo)(()=>({style:{transform:Ve===0?void 0:`translateY(${Ve}px)`,transition:e&&(p||D||Re)?`none`:void 0,touchAction:`none`,overscrollBehavior:`contain`}}),[Ve,p,e,D,Re]),handleProps:(0,f.useMemo)(()=>({style:{touchAction:`none`,cursor:`grab`},onContextMenu:Se,onLostPointerCapture:Ce,onPointerDown:xe,onPointerMove:we,onPointerUp:Te,onPointerCancel:Te}),[Te,Se,Ce,xe,we]),bodyProps:(0,f.useMemo)(()=>({ref:Le,onContextMenu:Se,onLostPointerCapture:Ce,onPointerDown:De,onPointerMove:Oe,onPointerUp:ke,onPointerCancel:ke,onScroll:Be}),[Le,ke,De,Oe,Be,Se,Ce]),bodyElementRef:K,dragOffset:s,settledOffset:u,isDragging:p,sheetHeight:h,scrollPreservationInset:v,settlingLayoutOffset:te,settledLayoutOffset:S,completeScrollAreaSettle:fe}}var F=r(),I={hug:`92dvh`,capped:`62dvh`,tall:`92dvh`},L=48,R=48,fe=50;o[`--spacing-6`];function z(){return typeof window>`u`?0:window.innerHeight}function pe(e){let t=``;for(let n of e??[])t+=`${typeof n}:${n}|`;return t}var B={sheet:{kfzvcC:`x67bb7w`,kB7OPa:`x9f619`,kVAEAm:`x1n2onr6`,k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kAzted:`x2lwn1j`,kzqmXN:`xh8yej3`,ks0D6T:`x11gisft`,kWkggS:`x10xzikg`,kEafiO:`x11xkdxz`,kPef9Z:`x13fuv20`,kLZC3w:`x1pc3f07`,k2ei4v:`xgbv0en`,kVhnKS:`x1t7ytsu`,kGJrpR:`x1j92z86`,ke9TFa:`xw8tdv1`,k8ry5P:`x18b5jzi`,kBCPoo:`x1gejf6u`,krdFHd:`x81l70g`,kfmiAY:`x7hs6f1`,kGVxlE:`x1kcpxr7`,kI3sdo:`x1a2a7pz`,kVQacm:`xb3r6kr`,kGO01o:`x1wkw6tp`,k1K539:`x1if0o47`,k3aq6I:`xnn1q72 xhbqy3z`,kSiTet:`x1hc1fzr`,k1ekBW:`xwcsmn1`,kIyJzY:`x80gvsz`,kAMwcw:`xlr8y92`,k6sLGO:`x1q1rmc8`,k6CgDc:`xzg1mie`,$$css:!0},sheetClosing:{k3aq6I:`x1weeur4`,kAMwcw:`xv2sgk5`,$$css:!0},sheetFading:{kSiTet:`xg01cxk`,$$css:!0},sheetInactive:{kfzvcC:`x47corl`,$$css:!0},budget:{kZKoxP:`x1tpcejd`,$$css:!0},hugHeight:{kZKoxP:`xg7h5cd`,kskxy:`x14bu9tk`,$$css:!0}};function me(e){return e.kind===`open`?e.entering?`entering`:null:e.kind===`retained`?e.motion===`covered`?null:e.motion:e.kind===`exiting`?`exiting`:null}function he(e,t,n){if(e==null)return n(),()=>{};let r=!1,i=null,a=()=>{r||(r=!0,i!=null&&clearTimeout(i),e.removeEventListener(`transitionend`,o),e.removeEventListener(`transitioncancel`,o),n())},o=n=>{n.target===e&&n.propertyName===t&&a()};e.addEventListener(`transitionend`,o),e.addEventListener(`transitioncancel`,o);let s=getComputedStyle(e);if(e.style.transition.trim()===`none`||s.transition.trim()===`none`)return a(),()=>{};let c=s.transitionProperty.split(`,`).map(e=>e.trim()),l=s.transitionDuration.split(`,`).map(ge),u=s.transitionDelay.split(`,`).map(ge),d=!1,f=c.reduce((e,n,r)=>{if(n!==t&&n!==`all`)return e;let i=l[r%l.length],a=u[r%u.length];return i==null||a==null?(d=!0,e):Math.max(e,i+a)},0);return d?()=>{e.removeEventListener(`transitionend`,o),e.removeEventListener(`transitioncancel`,o)}:f<=0?(a(),()=>{}):(i=setTimeout(a,f+fe),()=>{i!=null&&clearTimeout(i),e.removeEventListener(`transitionend`,o),e.removeEventListener(`transitioncancel`,o)})}function ge(e){let t=e.trim();if(!/^-?(?:\d+|\d*\.\d+)(?:ms|s)$/.test(t))return null;let n=Number.parseFloat(e);return t.endsWith(`ms`)?n:n*1e3}function V({ref:e,state:t,height:r,children:o,snapPoints:s,className:l,style:d,tabIndex:p,xstyle:m,isSwipeDismissAllowed:_=!0,isPageScrollLocked:v=!1,onDismiss:y,onScrimOpacity:ee,onElementChange:b,onMotionStart:x,onMotionComplete:S,...C}){let w=(0,f.useRef)(null),T=(0,f.useRef)(t),te=(0,f.useRef)(!1),E=(0,f.useRef)(x),D=(0,f.useRef)(S),k=(0,f.useRef)(null),A=(0,f.useRef)(null),j=t.kind===`open`&&t.entering,M=T.current,ne=M.kind===`open`&&M.entering;j&&!ne?te.current=M.kind===`retained`:j||(te.current=!1),(0,f.useLayoutEffect)(()=>{T.current=t,E.current=x,D.current=S},[S,x,t]);let N=t.kind===`open`,re=t.kind!==`hidden`,ie=t.kind===`retained`,ae=ie||t.kind===`exiting`,oe=t.kind===`exiting`,se=ie&&t.motion===`fading`,ce=ie?t.alignmentOffset:0,le=pe(s),P=(0,f.useRef)(s);P.current=s;let{snapHeights:ue,ignoredSnapPointsMessage:fe}=(0,f.useMemo)(()=>{if(le===``)return{snapHeights:void 0,ignoredSnapPointsMessage:``};let e=(P.current??[]).filter(e=>!h(e));return{snapHeights:()=>g(P.current??[],z()),ignoredSnapPointsMessage:e.length===0?``:`snapPoints ignored ${JSON.stringify(e)}. A snap point is a viewport fraction above 0 and up to 1 (0.5 is half the screen), a px length ('320px'), or a percentage ('50%').`}},[le]);u(`BottomSheet`,fe,fe!==``);let{contentProps:ge,handleProps:V,bodyProps:H,bodyElementRef:U,sheetRef:W,dragOffset:G,settledOffset:K,isDragging:q,sheetHeight:J,scrollPreservationInset:_e,settlingLayoutOffset:Y,settledLayoutOffset:X,completeScrollAreaSettle:ve}=de({isOpen:N,canDismiss:_,offscreenBlockEndInset:L,onDismiss:y,snapHeights:ue,onScrimOpacity:ee}),ye=(0,f.useCallback)(e=>{W(e),w.current=e,b?.(e)},[b,W]);O({bodyRef:U,bottomClearance:R,isEnabled:r===`tall`,isFullyExpanded:K===0,isPageScrollLocked:v,isSheetTraveling:q&&G!==K,isOpen:N,isPresented:re,sheetRef:w}),(0,f.useImperativeHandle)(e,()=>w.current,[]);let Z=me(t);(0,f.useLayoutEffect)(()=>{if(Z!=null){if(k.current=null,A.current=null,Z===`entering`&&te.current){A.current=Z;return}return he(w.current,Z===`fading`?`opacity`:`transform`,()=>{k.current===Z?D.current?.(Z):A.current=Z})}},[Z]),(0,f.useLayoutEffect)(()=>{if(Y!=null)return he(w.current,`transform`,ve)},[ve,Y]),(0,f.useEffect)(()=>{if(Z!=null)return E.current?.(Z),k.current=Z,A.current===Z&&(A.current=null,D.current?.(Z)),()=>{k.current===Z&&(k.current=null),A.current===Z&&(A.current=null)}},[Z]);let Q=typeof r==`string`&&r in I?I[r]:typeof r==`number`?`${r}px`:r,be=J>0,$=ge.style.transform,xe;if(be){let e=q?G<K?0:X:Y??X,t=(q?G:K)-e;xe=e>0||q||Y!=null?`${Math.max(0,J-Math.max(0,e))}px`:void 0,$=t===0?void 0:`translateY(${t}px)`}let Se=ce>0?[$,`translateY(${ce}px)`].filter(Boolean).join(` `):$,Ce={...ge.style,transform:$,height:xe};return(0,F.jsxs)(`div`,{...C,ref:ye,tabIndex:p??-1,...c(a(`bottom-sheet`),n(B.sheet,i.reset,r===`hug`?B.hugHeight:B.budget,oe&&B.sheetClosing,se&&B.sheetFading,ae&&B.sheetInactive,m),l,{"--_sheet-budget":Q,...N?Ce:ie?{transform:Se,height:xe}:oe?{height:xe}:{},...d}),children:[(0,F.jsx)(`div`,{className:`x10l6tqk x13vifvy x1o0tod xtijo5x x1vjfegm x78zum5 x6s0dn4 xl56j7k xvpftlf xafqdz2 x5ve5x3 x1jm3nie x16khyan`,...V,"aria-hidden":`true`,children:(0,F.jsx)(`div`,{className:`x1m747yf x11c6zpc xjspbzw x1m4xfpy`})}),(0,F.jsx)(`div`,{...c({0:{className:`x1iyjqo2 x2lwn1j x9f619 x1odjw0f x8du1vd xx69xxh x10xzikg x18d9i69`},1:{className:`x1iyjqo2 x2lwn1j x9f619 x1odjw0f x8du1vd xx69xxh x10xzikg x18d9i69 xrw9175 x1s928wv xhkezso xu6fald x2q1x1w`}}[(r===`tall`)<<0],_e>0?{style:{paddingBlockEnd:`${_e}px`}}:{}),...H,children:o})]})}V.displayName=`BottomSheetPanel`;function H(){return(0,F.jsx)(`div`,{className:`xixxii4 x17y0mx6 x1ey2m1c x1kpxq89 x10xzikg xhtitgo x47corl x1cb67k9 xt2iwb0`,"data-sheet-edge-tint":``,"aria-hidden":`true`})}var U=(0,f.createContext)(null);U.displayName=`BottomSheetSwitcherContext`;function W(e,t){switch(e){case`active`:return{kind:`open`,entering:!1};case`entering`:return{kind:`open`,entering:!0};case`covered`:case`aligning`:case`fading`:return{kind:`retained`,motion:e,alignmentOffset:t};case`exiting`:return{kind:`exiting`};case`hidden`:return{kind:`hidden`}}}function G(e,t){let n=document.activeElement;if(n!=null&&e?.contains(n))return;let r=e?.querySelector(`[data-autofocus]`);r==null?t&&e?.focus({preventScroll:!0}):r.focus({preventScroll:!0})}function K({ref:e,isOpen:t,onOpenChange:n,label:r,children:i,height:a=`capped`,snapPoints:o,hasScrim:c=!0,finalFocusRef:l,purpose:p=`info`,xstyle:m,...h}){let g=(0,f.useRef)(null),_=(0,f.useRef)(null),v=(0,f.useRef)(null),[y,ee]=(0,f.useState)(t),b=t||y,x=t?{kind:`open`,entering:!1}:y?{kind:`exiting`}:{kind:`hidden`},S=(0,f.useCallback)(()=>{p!==`required`&&n(!1)},[n,p]),C=(0,f.useCallback)(()=>{p===`info`&&n(!1)},[n,p]),w=(0,f.useCallback)(e=>{_.current=e},[]),T=(0,f.useCallback)(e=>{g.current?.style.setProperty(`--_sheet-scrim-opacity`,String(e))},[]);(0,f.useEffect)(()=>{let e=g.current;e!=null&&t&&(ee(!0),e.style.setProperty(`--_sheet-scrim-opacity`,`1`),e.open||(c?(v.current=document.activeElement,e.showModal()):e.show(),G(_.current,c)))},[c,t]),(0,f.useEffect)(()=>{!t&&y&&c&&T(0)},[T,c,t,y]);let te=(0,f.useCallback)(e=>{if(e!==`exiting`||t)return;let n=g.current;n?.open&&n.close(),ee(!1),(l?.current??v.current)?.focus(),v.current=null},[l,t]);d(b&&c),u(`BottomSheet`,"requires a non-empty `label` for an accessible name; the open sheet has no built-in heading to derive one from.",t&&!r);let E=(0,f.useCallback)(e=>{e.preventDefault(),S()},[S]),D=(0,f.useCallback)(e=>{e.key===`Escape`&&(e.preventDefault(),!s(e.nativeEvent)&&S())},[S]),O=(0,f.useCallback)(e=>{c&&e.target===e.currentTarget&&C()},[C,c]);return(0,F.jsxs)(`dialog`,{...{0:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1s85apg x1a2a7pz`},8:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1a2a7pz x1lliihq`},4:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1s85apg x1a2a7pz xnixb3f xni466t xxiuuzi xc0dz0a xft5bk6 x15h3t91 x142juwg x1viac0w`},12:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1a2a7pz x1lliihq xnixb3f xni466t xxiuuzi xc0dz0a xft5bk6 x15h3t91 x142juwg x1viac0w`},2:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1s85apg x1a2a7pz x1cz9k3x`},10:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1a2a7pz x1lliihq x1cz9k3x`},6:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1s85apg x1a2a7pz xnixb3f xni466t xxiuuzi xc0dz0a xft5bk6 x142juwg x1viac0w x1cz9k3x`},14:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1a2a7pz x1lliihq xnixb3f xni466t xxiuuzi xc0dz0a xft5bk6 x142juwg x1viac0w x1cz9k3x`},1:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1s85apg x1a2a7pz x47corl xfo81ep xh8yej3 x5yr21d`},9:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1a2a7pz x1lliihq x47corl xfo81ep xh8yej3 x5yr21d`},5:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1s85apg x1a2a7pz xnixb3f xni466t xxiuuzi xc0dz0a xft5bk6 x15h3t91 x142juwg x1viac0w x47corl xfo81ep xh8yej3 x5yr21d`},13:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1a2a7pz x1lliihq xnixb3f xni466t xxiuuzi xc0dz0a xft5bk6 x15h3t91 x142juwg x1viac0w x47corl xfo81ep xh8yej3 x5yr21d`},3:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1s85apg x1a2a7pz x1cz9k3x x47corl xfo81ep xh8yej3 x5yr21d`},11:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1a2a7pz x1lliihq x1cz9k3x x47corl xfo81ep xh8yej3 x5yr21d`},7:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1s85apg x1a2a7pz xnixb3f xni466t xxiuuzi xc0dz0a xft5bk6 x142juwg x1viac0w x1cz9k3x x47corl xfo81ep xh8yej3 x5yr21d`},15:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1a2a7pz x1lliihq xnixb3f xni466t xxiuuzi xc0dz0a xft5bk6 x142juwg x1viac0w x1cz9k3x x47corl xfo81ep xh8yej3 x5yr21d`}}[!!b<<3|!!c<<2|!!(c&&!t&&y)<<1|!c<<0],ref:g,"aria-label":r,"aria-hidden":!t&&y?`true`:void 0,"aria-modal":c&&t?`true`:void 0,role:p===`required`?`alertdialog`:void 0,inert:!t&&y?!0:void 0,onCancel:E,onClick:O,onKeyDown:D,children:[(0,F.jsx)(`div`,{className:`x10l6tqk x17y0mx6 x1ey2m1c x78zum5 xl56j7k x47corl`,children:(0,F.jsx)(V,{...h,ref:e,state:x,height:a,snapPoints:o,isSwipeDismissAllowed:p===`info`,isPageScrollLocked:b&&c,xstyle:m,onDismiss:C,onScrimOpacity:T,onElementChange:w,onMotionComplete:te,children:i})}),(0,F.jsx)(H,{})]})}function q({switcher:e,ref:t,sheetId:n,label:r,children:i,height:a=`capped`,snapPoints:o,purpose:s=`info`,xstyle:c,...l}){let{activeSheet:d,hasScrim:p,onActiveSheetChange:m,getSheetPhase:h,getSheetAlignmentOffset:g,registerSheetElement:_,registerSheetLabel:v,registerSheetPurpose:y,onSheetEnterStart:ee,onSheetTransitionComplete:b,onSheetScrimOpacityChange:x}=e,S=typeof n==`string`&&n.length>0,C=S?h(n):`hidden`,w=W(C,S?g(n):0),T=C===`active`||C===`entering`,te=C===`covered`||C===`aligning`||C===`fading`||C===`exiting`,E=C!==`hidden`,D=C===`active`||C===`entering`,O=(0,f.useRef)(null),k=(0,f.useRef)(C),A=k.current,j=(0,f.useRef)(!1);(0,f.useLayoutEffect)(()=>{k.current=C},[C]);let M=(0,f.useCallback)(()=>{s===`info`&&S&&d===n&&m(null)},[d,S,m,s,n]),ne=(0,f.useCallback)(e=>{O.current=e,S&&_(n,e)},[S,_,n]),N=(0,f.useCallback)(e=>{e===`entering`&&S&&ee(n)},[S,ee,n]),re=(0,f.useCallback)(e=>{S&&b({sheetId:n,phase:e})},[S,b,n]),ie=(0,f.useCallback)(e=>{S&&x(n,e)},[S,x,n]);return(0,f.useLayoutEffect)(()=>{if(S)return v(n,r),()=>v(n,null)},[S,r,v,n]),(0,f.useLayoutEffect)(()=>{if(S)return y(n,s),()=>y(n,null)},[S,s,y,n]),(0,f.useEffect)(()=>{if(T){let e=A===`active`||A===`entering`;(!j.current||!e)&&G(O.current,p),j.current=!0}else C===`hidden`&&(j.current=!1)},[p,T,C,A]),u(`BottomSheet`,"requires a non-empty `label` for an accessible name; the open sheet has no built-in heading to derive one from.",T&&!r),(0,F.jsx)(`div`,{...{0:{className:`x10l6tqk x17y0mx6 x1ey2m1c x78zum5 xl56j7k x47corl`},2:{className:`x10l6tqk x17y0mx6 x1ey2m1c xl56j7k x47corl x1s85apg`},1:{className:`x10l6tqk x17y0mx6 x1ey2m1c x78zum5 xl56j7k x47corl x1vjfegm`},3:{className:`x10l6tqk x17y0mx6 x1ey2m1c xl56j7k x47corl x1s85apg x1vjfegm`}}[!E<<1|!!D<<0],hidden:!E,"aria-hidden":te?`true`:void 0,inert:te?!0:void 0,children:(0,F.jsx)(V,{...l,ref:t,state:w,height:a,snapPoints:o,isSwipeDismissAllowed:s===`info`,isPageScrollLocked:p,xstyle:c,onDismiss:M,onScrimOpacity:ie,onElementChange:ne,onMotionStart:N,onMotionComplete:re,children:(0,F.jsx)(U,{value:null,children:i})})})}function J(e){let t=(0,f.use)(U),n=e.sheetId,r=typeof n==`string`&&n.length>0;return u(`BottomSheet`,"requires a non-empty `sheetId` when nested in BottomSheetSwitcher; standalone `isOpen` / `onOpenChange` props are ignored there.",t!=null&&!r),u(`BottomSheet`,"`sheetId` only works inside BottomSheetSwitcher. Use `isOpen` and `onOpenChange` for a standalone sheet.",t==null&&n!=null),t==null?(0,F.jsx)(K,{...e}):(0,F.jsx)(q,{...e,switcher:t})}J.displayName=`BottomSheet`;export{J as BottomSheet};
|
|
1
|
+
import{A as e,D as t,E as n,c as r,g as i,n as a}from"./themeProps-BV289t6M.js";import{g as o,t as s}from"./ime-u5HljzMu.js";import{t as c}from"./mergeProps-ptS-gIMz.js";import{t as l}from"./useMediaQuery-Bkz-2VBC.js";import{t as u}from"./useDevWarning-CHuvA0bI.js";import{t as d}from"./useScrollLock-0d-ttB5Z.js";var f=e(t(),1),p=/^(\d+(?:\.\d+)?|\.\d+)(px|%)$/i;function m(e,t){if(typeof e==`number`)return Number.isFinite(e)&&e>0&&e<=1?e*t:null;let n=p.exec(e.trim());if(n===null)return null;let r=Number.parseFloat(n[1]);return r>0?n[2].toLowerCase()===`%`?r/100*t:r:null}function h(e){return m(e,1)!==null}function g(e,t){let n=[];for(let r of e){let e=m(r,t);e!==null&&n.push(e)}return n}function _(e,t,n=48){let r=[0,...t.filter(t=>t>0&&t<e).map(t=>e-t)].sort((e,t)=>e-t),i=[];for(let e of r){let t=i[i.length-1];(t===void 0||e-t>=n)&&i.push(e)}return i}function v(e,t){return t.reduce((t,n)=>Math.abs(n-e)<Math.abs(t-e)?n:t,t[0])}var y=.3;function ee(e,t){if(e.length<2||t<=0)return null;let n=e[e.length-1];return t-n<=.25*t?n:null}function b(e,t,n,r){let i=r!==null,a=i?t[t.length-2]:t[t.length-1],o=i?r:n,s=i?y:0;return e<=a?1:e>=o?s:1-(1-s)*((e-a)/(o-a))}function x(e,t,n,r){let i=t;if(n>0){let e=t.filter(e=>e>=r);e.length>0&&(i=e)}else if(n<0){let e=t.filter(e=>e<=r);e.length>0&&(i=e)}return v(e,i)}var S=`--_sheet-keyboard-inset`,C=new Set([`button`,`checkbox`,`color`,`file`,`hidden`,`image`,`radio`,`range`,`reset`,`submit`]);function w(){return window.visualViewport?.height??window.innerHeight}function T(){return w()>=window.innerHeight-.5}function te(){let e=window.navigator.userAgent;return/iPad|iPhone|iPod/.test(e)||e.includes(`Macintosh`)&&window.navigator.maxTouchPoints>1}function E(e){return e instanceof HTMLTextAreaElement?!e.disabled&&!e.readOnly:e instanceof HTMLInputElement?!e.disabled&&!e.readOnly&&!C.has((e.getAttribute(`type`)??`text`).toLowerCase()):e instanceof HTMLElement&&e.matches(`[contenteditable]:not([contenteditable="false"])`)}function D(e,t){if(!(e instanceof Element))return null;let n=e.closest(`input, textarea, [contenteditable]:not([contenteditable="false"])`);if(t.contains(n)&&E(n))return n;let r=e.closest(`label`),i=r instanceof HTMLLabelElement?r.control:null;return t.contains(i)&&E(i)?i:null}function O({bodyRef:e,bottomClearance:t,isEnabled:n,isFullyExpanded:r,isPageScrollLocked:i,isSheetTraveling:a,isOpen:o,isPresented:s,sheetRef:c}){let l=(0,f.useRef)(!1),u=(0,f.useRef)(!1),d=(0,f.useRef)(r),p=(0,f.useRef)(o);d.current=r,p.current=o,(0,f.useEffect)(()=>{if(!n||!a)return;let e=c.current,t=document.activeElement;e&&t instanceof HTMLElement&&t!==e&&e.contains(t)&&(u.current=l.current,e.focus({preventScroll:!0}))},[n,a,c]),(0,f.useEffect)(()=>{if(!n||!s||o)return;let e=c.current,t=document.activeElement;e&&t instanceof HTMLElement&&t!==e&&e.contains(t)&&(u.current=l.current,t.blur())},[n,o,s,c]),(0,f.useEffect)(()=>{let r=e.current,a=c.current;if(!n||!s||!r)return;let o=null,f=null,m=te(),h=()=>{r.style.setProperty(S,`0px`),o=null,f=null,l.current=!1,u.current=!1},g=(e,t)=>{if(typeof r.scrollBy!=`function`){r.scrollTop+=e;return}let n=typeof window.matchMedia==`function`&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches;r.scrollBy({top:e,behavior:t&&!n?`smooth`:`instant`})},_=(e,n)=>{let i=r.getBoundingClientRect(),a=e.getBoundingClientRect(),o=w(),s=Math.max(0,i.bottom-o)>0?t:0,c=i.top,l=Math.min(i.bottom,o-s);l<=c||(a.bottom>l?g(a.bottom-l,n):a.top<c&&g(a.top-c,n))},v=e=>{let n=w();if(T()){h();return}if(Math.max(0,e.bodyBottom-n)===0){h();return}let i=Math.max(0,e.bodyBottom-(n-t));r.style.setProperty(S,`${i}px`)},y=e=>{if(!d.current)return;let t=D(e.relatedTarget,r);if(t){t!==document.activeElement&&t.focus({preventScroll:!0});return}let n=D(e.target,r);p.current&&n&&!e.relatedTarget&&a?.focus({preventScroll:!0})},ee=()=>{let e=document.activeElement;if(!d.current||!(e instanceof HTMLElement)||!r.contains(e)||!E(e)){if(u.current&&o){v(o);return}h();return}u.current=!1;let n=r.getBoundingClientRect(),a=w(),s=Math.max(0,n.bottom-a),c=s>0?t:0;o=s>0?{bodyBottom:n.bottom}:null,i&&s>0&&!l.current&&(f={x:window.scrollX,y:window.scrollY}),l.current=s>0;let p=s>0?Math.max(0,n.bottom-(a-c)):0;r.style.setProperty(S,`${p}px`),_(e,s>0)},b=0,x=()=>{cancelAnimationFrame(b),b=requestAnimationFrame(ee)},C=()=>{let e=f;if(e==null||window.scrollX===e.x&&window.scrollY===e.y)return;window.scrollTo(e.x,e.y);let t=document.activeElement;t instanceof HTMLElement&&r.contains(t)&&E(t)&&_(t,!1)},O=typeof ResizeObserver>`u`?null:new ResizeObserver(x),k=()=>{if(!O)return;O.disconnect();let e=new Set([r]);a&&e.add(a);for(let t of r.children)e.add(t);let t=document.activeElement;if(t instanceof HTMLElement&&r.contains(t))for(let n=t;n&&n!==r;n=n.parentElement)e.add(n);for(let t of e)O.observe(t)},A=typeof MutationObserver>`u`?null:new MutationObserver(e=>{e.every(e=>e.type===`attributes`&&e.target===r)||(k(),x())}),j=()=>{k(),x()},M=()=>{u.current=l.current,x()},ne=e=>{e.target===a&&e.propertyName===`transform`&&x()},N=window.visualViewport;return m&&document.addEventListener(`blur`,y,!0),r.addEventListener(`focusin`,j),r.addEventListener(`focusout`,M),a?.addEventListener(`transitionend`,ne),N?.addEventListener(`resize`,x),N?.addEventListener(`scroll`,x),window.addEventListener(`scroll`,C),window.addEventListener(`resize`,x),A?.observe(r,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),k(),x(),()=>{cancelAnimationFrame(b),m&&document.removeEventListener(`blur`,y,!0),r.removeEventListener(`focusin`,j),r.removeEventListener(`focusout`,M),a?.removeEventListener(`transitionend`,ne),N?.removeEventListener(`resize`,x),N?.removeEventListener(`scroll`,x),window.removeEventListener(`scroll`,C),window.removeEventListener(`resize`,x),O?.disconnect(),A?.disconnect(),r.style.removeProperty(S),l.current=!1,u.current=!1}},[e,t,n,i,s,c])}var k=1.2,A=48,j=.4,M=40;function ne(e){return e.syntheticTouch===!0}var N=.35,re=4,ie=8;function ae(){typeof navigator>`u`||typeof navigator.vibrate!=`function`||ue()||navigator.vibrate(8)}function oe(e,t){let n=t[0],r=Math.abs(e-n);for(let i of t){let t=Math.abs(e-i);t<r&&(r=t,n=i)}if(r>=M)return e;let i=r/M,a=1-i*i;return e+(n-e)*a}function se(e,t,n){return Math.max(0,e-t-n)}function ce(e){let t=Number.parseFloat(getComputedStyle(e).paddingBlockEnd);return Number.isFinite(t)?t:0}function le(e){if(!e)return 0;let t=ce(e);return Math.max(0,e.scrollHeight-e.clientHeight-t)-e.scrollTop}function P(e,t,n){return Math.max(0,e-n-t)}function ue(){return typeof window>`u`||!window.matchMedia?!1:window.matchMedia(`(prefers-reduced-motion: reduce)`).matches}function de({isOpen:e,canDismiss:t=!0,offscreenBlockEndInset:n=0,onDismiss:r,snapHeights:i,onSnap:a,onScrimOpacity:o}){let[s,c]=(0,f.useState)(0),[u,d]=(0,f.useState)(0),[p,m]=(0,f.useState)(!1),[h,g]=(0,f.useState)(0),[v,y]=(0,f.useState)(0),[S,C]=(0,f.useState)(0),w=(0,f.useRef)(0),T=(0,f.useRef)(0),[te,E]=(0,f.useState)(null),[D,O]=(0,f.useState)(!1),M=(0,f.useRef)(0),de=(0,f.useRef)(null),F=(0,f.useRef)(null),I=(0,f.useRef)(n);I.current=Math.max(0,n);let L=(0,f.useCallback)(e=>{let t=Math.max(0,e);w.current=t,C(t)},[]),R=(0,f.useCallback)(e=>{let t=Math.max(0,e);Math.abs(t-M.current)>.5&&(M.current=t,y(t))},[]),fe=(0,f.useCallback)(()=>{O(!0),de.current=null,E(null);let e=F.current;F.current=null,e!=null&&R(e)},[R]),z=(0,f.useCallback)((e,t,n,r,i,a,o)=>{let s=se(e,n,a);if(o&&Math.abs(r-t)>.5&&!ue()){F.current=s,de.current=i,E(i);return}F.current=null,de.current=null,E(null),O(Math.abs(i-n)>.5),R(s)},[R]),pe=(0,f.useRef)(0);pe.current=p?s:u;let B=(0,f.useRef)(e);B.current=e;let me=(0,f.useRef)(i);me.current=i;let he=(0,f.useRef)(r),ge=(0,f.useRef)(t),V=(0,f.useRef)(a),H=(0,f.useRef)(o);(0,f.useEffect)(()=>{he.current=r,ge.current=t,V.current=a,H.current=o});let U=(0,f.useRef)(null),W=(0,f.useRef)(0),G=(0,f.useRef)(null),K=(0,f.useRef)(null),q=(0,f.useRef)(null);(0,f.useLayoutEffect)(()=>{if(!D)return;G.current?.offsetHeight;let e=requestAnimationFrame(()=>{O(!1)});return()=>cancelAnimationFrame(e)},[D]);let J=(0,f.useCallback)(e=>{e<=0||!B.current||pe.current>0||(W.current=e,g(t=>t===e?t:e))},[]),_e=(0,f.useCallback)(e=>{if(q.current?.disconnect(),q.current=null,G.current=e,!e||typeof ResizeObserver>`u`){e&&J(e.getBoundingClientRect().height);return}J(e.getBoundingClientRect().height);let t=new ResizeObserver(e=>{let t=e[0];if(t){let e=t.borderBoxSize?.[0]?.blockSize;J(e??t.target.getBoundingClientRect().height)}});t.observe(e),q.current=t},[J]);(0,f.useEffect)(()=>()=>q.current?.disconnect(),[]),(0,f.useEffect)(()=>{e&&(c(0),d(0),m(!1),O(!1),L(0),T.current=0,M.current=0,de.current=null,F.current=null,y(0),E(null))},[e,L]);let Y=(0,f.useCallback)(()=>W.current>0?W.current:G.current?.getBoundingClientRect().height??0,[]),X=(0,f.useCallback)(e=>{let t=P(e,0,I.current),n=_(t,me.current?.()??[]);return{offsets:n,peekOffset:ee(n,t)}},[]),ve=(0,f.useCallback)(()=>{let e=G.current;if(!e)return W.current;let t=e.style.height;if(t===``)return e.getBoundingClientRect().height;e.style.height=``;let n=e.getBoundingClientRect().height;return e.style.height=t,n},[]),ye=(0,f.useCallback)(()=>{if(!B.current||U.current!=null||de.current!=null)return;let e=ve();if(e<=0)return;let{offsets:t,peekOffset:n}=X(e),r=Math.min(T.current,t.length-1),i=t[r],a=i===n?0:i,o=w.current;if(e===W.current&&Math.abs(i-pe.current)<=.5&&Math.abs(a-o)<=.5)return;W.current=e,g(e),T.current=r,z(o,i,a,i,o,le(K.current),!1),L(a),d(i),V.current?.(P(e,i,I.current));let s=t[t.length-1],c=P(e,s,I.current);H.current?.(b(i,t,s+c*j,n))},[ve,z,L,X]);(0,f.useEffect)(()=>{if(!(!e||typeof window>`u`))return window.addEventListener(`resize`,ye),window.addEventListener(`orientationchange`,ye),()=>{window.removeEventListener(`resize`,ye),window.removeEventListener(`orientationchange`,ye)}},[e,ye]);let Z=(0,f.useRef)(!1);(0,f.useLayoutEffect)(()=>{if(!Z.current){Z.current=!0;return}ye()},[ye,i]);let Q=(0,f.useCallback)(e=>{let t=U.current;if(t==null)return;U.current=null,e?.hasPointerCapture?.(t.pointerId)&&e.releasePointerCapture(t.pointerId),c(t.baseOffset),m(!1),z(t.baseLayoutOffset,t.baseOffset,t.baseLayoutOffset,t.renderedOffset,t.layoutOffset,t.naturalEndGap,!0);let{offsets:n,peekOffset:r}=X(t.height),i=n[n.length-1],a=i+P(t.height,i,I.current)*j;H.current?.(b(t.baseOffset,n,a,r))},[z,X]);(0,f.useEffect)(()=>{let e=()=>Q(),t=()=>{document.visibilityState===`hidden`&&Q()};return window.addEventListener(`blur`,e),document.addEventListener(`visibilitychange`,t),()=>{window.removeEventListener(`blur`,e),document.removeEventListener(`visibilitychange`,t)}},[Q]);let be=(0,f.useCallback)((e,t,n,r,i,a,o,s,l,u)=>{let{offsets:f,peekOffset:p}=X(n),m=f[f.length-1],h=P(n,m,I.current),g=Math.abs(t)>k&&i>A,_=e=>{let t=e===p?0:e;z(o,e,t,s,l,u,!0),L(t),T.current=Math.max(0,f.indexOf(e)),d(e),V.current?.(P(n,e,I.current));let r=m+h*j;H.current?.(b(e,f,r,p)),e!==a&&ae()};if(r>0&&g){ge.current?(z(o,a,o,o,o,u,!1),he.current()):_(m);return}if(r<0&&g){z(o,0,0,s,l,u,!0),L(0),T.current=0,c(0),d(0),V.current?.(P(n,0,I.current)),H.current?.(1),ae();return}if(e>m+h*j){ge.current?(z(o,a,o,o,o,u,!1),he.current()):_(m);return}_(x(e,f,r,a))},[z,L,X]),$=(0,f.useCallback)((e,t,n)=>{let r=e.currentTarget,i=ne(e);i||r.setPointerCapture?.(e.pointerId);let a=n??e.clientY,o=le(K.current),s=w.current;U.current={syntheticTouch:i,pointerId:e.pointerId,startCoord:a,lastCoord:e.clientY,lastTime:e.timeStamp,velocity:0,height:t,baseOffset:u,baseLayoutOffset:s,renderedOffset:u,layoutOffset:s,naturalEndGap:o},R(se(s,s,o)),c(u),m(!0)},[u,R]),xe=(0,f.useCallback)(e=>{e.button===0&&e.isPrimary&&(e.preventDefault(),$(e,Y()))},[$,Y]),Se=(0,f.useCallback)(e=>{U.current!=null&&(e.preventDefault(),Q(e.currentTarget))},[Q]),Ce=(0,f.useCallback)(e=>{U.current?.syntheticTouch||U.current?.pointerId===e.pointerId&&Q()},[Q]),we=(0,f.useCallback)(e=>{let t=U.current;if(!t||t.pointerId!==e.pointerId||t.syntheticTouch&&!ne(e))return;let n=e.clientY-t.startCoord,r=e.timeStamp-t.lastTime;r>0&&(t.velocity=(e.clientY-t.lastCoord)/r,t.lastCoord=e.clientY,t.lastTime=e.timeStamp);let{offsets:i,peekOffset:a}=X(t.height),o=t.baseOffset+n,s=i[i.length-1],l;l=o<0?Math.max(-48,o*N):o>s?o:oe(o,i);let u=l<t.baseOffset?0:t.baseLayoutOffset;t.renderedOffset=l,t.layoutOffset=u,c(l),R(se(t.baseLayoutOffset,u,t.naturalEndGap));let d=i[i.length-1],f=d+P(t.height,d,I.current)*j;H.current?.(b(l,i,f,a))},[X,R]),Te=(0,f.useCallback)(e=>{let t=U.current;if(!t||t.pointerId!==e.pointerId||t.syntheticTouch&&!ne(e))return;let n=e.currentTarget,r=e.clientY-t.startCoord,i=Math.max(0,t.baseOffset+r),a=r===0?0:r>0?1:-1;U.current=null,t.syntheticTouch||n.releasePointerCapture?.(e.pointerId),m(!1),be(i,t.velocity,t.height||1,a,Math.abs(r),t.baseOffset,t.baseLayoutOffset,t.renderedOffset,t.layoutOffset,t.naturalEndGap)},[be]),Ee=(0,f.useRef)(null),De=(0,f.useCallback)(e=>{if(e.button!==0||!e.isPrimary)return;let t=e.currentTarget;if(t.scrollTop>0){Ee.current=null;return}Ee.current={pointerId:e.pointerId,startCoord:e.clientY,scroller:t}},[]),Oe=(0,f.useCallback)(e=>{if(U.current){we(e);return}let t=Ee.current;if(!t||t.pointerId!==e.pointerId)return;let n=e.clientY-t.startCoord;n>ie&&t.scroller.scrollTop<=0?(Ee.current=null,$(e,Y(),t.startCoord),we(e)):n<0&&(Ee.current=null)},[$,we,Y]),ke=(0,f.useCallback)(e=>{Ee.current=null,!U.current?.syntheticTouch&&U.current&&Te(e)},[Te]),Ae=(0,f.useRef)(null),je=(0,f.useRef)(null),Me=(0,f.useRef)($),Ne=(0,f.useRef)(Q),Pe=(0,f.useRef)(we),Fe=(0,f.useRef)(Te),Ie=(0,f.useRef)(Y);(0,f.useEffect)(()=>{Me.current=$,Ne.current=Q,Pe.current=we,Fe.current=Te,Ie.current=Y});let Le=(0,f.useCallback)(e=>{let t=(e,t)=>({syntheticTouch:!0,pointerId:e.identifier,clientY:e.clientY,timeStamp:Date.now(),currentTarget:t,setPointerCapture:()=>{},releasePointerCapture:()=>{}}),n=e=>e.scrollTop<=0,r=e=>e.scrollTop+e.clientHeight>=e.scrollHeight-1,i=e=>{let t=e.currentTarget,i=e.changedTouches[0];if(!i){Ae.current=null;return}let a=n(t),o=r(t)&&pe.current>0;Ae.current={id:i.identifier,startY:i.clientY,top:a,bottom:o,contentEndY:null,promotedAtContentEnd:!1}},a=e=>{let i=e.currentTarget,a=Ae.current;if(U.current){let n=[...e.changedTouches].find(e=>e.identifier===U.current?.pointerId);if(!n)return;if(a?.promotedAtContentEnd&&a.contentEndY!=null){if(n.clientY>=a.contentEndY){a.contentEndY=null,a.promotedAtContentEnd=!1,Ne.current(i);return}Pe.current(t(n,i));return}e.preventDefault(),Pe.current(t(n,i));return}if(!a)return;let o=[...e.changedTouches].find(e=>e.identifier===a.id);if(!o)return;let s=o.clientY-a.startY,c=a.top&&s>ie&&n(i),l=a.bottom&&s<-8&&r(i);if(c||l){e.preventDefault(),Ae.current=null,Me.current(t(o,i),Ie.current(),a.startY),Pe.current(t(o,i));return}(a.top&&s<0||a.bottom&&s>0)&&(a.top=!1,a.bottom=!1),pe.current>0&&r(i)?a.contentEndY==null?a.contentEndY=o.clientY:a.contentEndY-o.clientY>=re&&(a.promotedAtContentEnd=!0,Me.current(t(o,i),Ie.current(),a.contentEndY),Pe.current(t(o,i))):a.contentEndY=null},o=e=>{Ae.current=null;let n=U.current?.pointerId;if(n==null)return;let r=[...e.changedTouches].find(e=>e.identifier===n),i=e.currentTarget;r?Fe.current(t(r,i)):e.touches.length===0&&Ne.current(i)},s=K.current;if(s&&je.current){let e=je.current;s.removeEventListener(`touchstart`,e.start),s.removeEventListener(`touchmove`,e.move),s.removeEventListener(`touchend`,e.end),s.removeEventListener(`touchcancel`,e.end)}K.current=e,e?(e.addEventListener(`touchstart`,i,{passive:!0}),e.addEventListener(`touchmove`,a,{passive:!1}),e.addEventListener(`touchend`,o,{passive:!0}),e.addEventListener(`touchcancel`,o,{passive:!0}),je.current={start:i,move:a,end:o}):je.current=null},[]),Re=l(`(prefers-reduced-motion: reduce)`),ze=(0,f.useCallback)(e=>{if(M.current<=0)return;let t=ce(e),n=Math.max(0,e.scrollHeight-e.clientHeight-t),r=Math.max(0,e.scrollTop-n);r<M.current-.5&&R(r)},[R]),Be=(0,f.useCallback)(e=>{U.current==null&&de.current==null&&ze(e.currentTarget)},[ze]),Ve=p?s:u;return{sheetRef:_e,contentProps:(0,f.useMemo)(()=>({style:{transform:Ve===0?void 0:`translateY(${Ve}px)`,transition:e&&(p||D||Re)?`none`:void 0,touchAction:`none`,overscrollBehavior:`contain`}}),[Ve,p,e,D,Re]),handleProps:(0,f.useMemo)(()=>({style:{touchAction:`none`,cursor:`grab`},onContextMenu:Se,onLostPointerCapture:Ce,onPointerDown:xe,onPointerMove:we,onPointerUp:Te,onPointerCancel:Te}),[Te,Se,Ce,xe,we]),bodyProps:(0,f.useMemo)(()=>({ref:Le,onContextMenu:Se,onLostPointerCapture:Ce,onPointerDown:De,onPointerMove:Oe,onPointerUp:ke,onPointerCancel:ke,onScroll:Be}),[Le,ke,De,Oe,Be,Se,Ce]),bodyElementRef:K,dragOffset:s,settledOffset:u,isDragging:p,sheetHeight:h,scrollPreservationInset:v,settlingLayoutOffset:te,settledLayoutOffset:S,completeScrollAreaSettle:fe}}var F=r(),I={hug:`92dvh`,capped:`62dvh`,tall:`92dvh`},L=48,R=48,fe=50;o[`--spacing-6`];function z(){return typeof window>`u`?0:window.innerHeight}function pe(e){let t=``;for(let n of e??[])t+=`${typeof n}:${n}|`;return t}var B={sheet:{kfzvcC:`x67bb7w`,kB7OPa:`x9f619`,kVAEAm:`x1n2onr6`,k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kAzted:`x2lwn1j`,kzqmXN:`xh8yej3`,ks0D6T:`x11gisft`,kWkggS:`x10xzikg`,kEafiO:`x11xkdxz`,kPef9Z:`x13fuv20`,kLZC3w:`x1pc3f07`,k2ei4v:`xgbv0en`,kVhnKS:`x1t7ytsu`,kGJrpR:`x1j92z86`,ke9TFa:`xw8tdv1`,k8ry5P:`x18b5jzi`,kBCPoo:`x1gejf6u`,krdFHd:`x81l70g`,kfmiAY:`x7hs6f1`,kGVxlE:`x1kcpxr7`,kI3sdo:`x1a2a7pz`,kVQacm:`xb3r6kr`,kGO01o:`x1wkw6tp`,k1K539:`x1if0o47`,k3aq6I:`xnn1q72 xhbqy3z`,kSiTet:`x1hc1fzr`,k1ekBW:`xwcsmn1`,kIyJzY:`x80gvsz`,kAMwcw:`xlr8y92`,k6sLGO:`x1q1rmc8`,k6CgDc:`xzg1mie`,$$css:!0},sheetClosing:{k3aq6I:`x1weeur4`,kAMwcw:`xv2sgk5`,$$css:!0},sheetFading:{kSiTet:`xg01cxk`,$$css:!0},sheetInactive:{kfzvcC:`x47corl`,$$css:!0},budget:{kZKoxP:`x1tpcejd`,$$css:!0},hugHeight:{kZKoxP:`xg7h5cd`,kskxy:`x14bu9tk`,$$css:!0}};function me(e){return e.kind===`open`?e.entering?`entering`:null:e.kind===`retained`?e.motion===`covered`?null:e.motion:e.kind===`exiting`?`exiting`:null}function he(e,t,n){if(e==null)return n(),()=>{};let r=!1,i=null,a=()=>{r||(r=!0,i!=null&&clearTimeout(i),e.removeEventListener(`transitionend`,o),e.removeEventListener(`transitioncancel`,o),n())},o=n=>{n.target===e&&n.propertyName===t&&a()};e.addEventListener(`transitionend`,o),e.addEventListener(`transitioncancel`,o);let s=getComputedStyle(e);if(e.style.transition.trim()===`none`||s.transition.trim()===`none`)return a(),()=>{};let c=s.transitionProperty.split(`,`).map(e=>e.trim()),l=s.transitionDuration.split(`,`).map(ge),u=s.transitionDelay.split(`,`).map(ge),d=!1,f=c.reduce((e,n,r)=>{if(n!==t&&n!==`all`)return e;let i=l[r%l.length],a=u[r%u.length];return i==null||a==null?(d=!0,e):Math.max(e,i+a)},0);return d?()=>{e.removeEventListener(`transitionend`,o),e.removeEventListener(`transitioncancel`,o)}:f<=0?(a(),()=>{}):(i=setTimeout(a,f+fe),()=>{i!=null&&clearTimeout(i),e.removeEventListener(`transitionend`,o),e.removeEventListener(`transitioncancel`,o)})}function ge(e){let t=e.trim();if(!/^-?(?:\d+|\d*\.\d+)(?:ms|s)$/.test(t))return null;let n=Number.parseFloat(e);return t.endsWith(`ms`)?n:n*1e3}function V({ref:e,state:t,height:r,children:o,snapPoints:s,className:l,style:d,tabIndex:p,xstyle:m,isSwipeDismissAllowed:_=!0,isPageScrollLocked:v=!1,onDismiss:y,onScrimOpacity:ee,onElementChange:b,onMotionStart:x,onMotionComplete:S,...C}){let w=(0,f.useRef)(null),T=(0,f.useRef)(t),te=(0,f.useRef)(!1),E=(0,f.useRef)(x),D=(0,f.useRef)(S),k=(0,f.useRef)(null),A=(0,f.useRef)(null),j=t.kind===`open`&&t.entering,M=T.current,ne=M.kind===`open`&&M.entering;j&&!ne?te.current=M.kind===`retained`:j||(te.current=!1),(0,f.useLayoutEffect)(()=>{T.current=t,E.current=x,D.current=S},[S,x,t]);let N=t.kind===`open`,re=t.kind!==`hidden`,ie=t.kind===`retained`,ae=ie||t.kind===`exiting`,oe=t.kind===`exiting`,se=ie&&t.motion===`fading`,ce=ie?t.alignmentOffset:0,le=pe(s),P=(0,f.useRef)(s);P.current=s;let{snapHeights:ue,ignoredSnapPointsMessage:fe}=(0,f.useMemo)(()=>{if(le===``)return{snapHeights:void 0,ignoredSnapPointsMessage:``};let e=(P.current??[]).filter(e=>!h(e));return{snapHeights:()=>g(P.current??[],z()),ignoredSnapPointsMessage:e.length===0?``:`snapPoints ignored ${JSON.stringify(e)}. A snap point is a viewport fraction above 0 and up to 1 (0.5 is half the screen), a px length ('320px'), or a percentage ('50%').`}},[le]);u(`BottomSheet`,fe,fe!==``);let{contentProps:ge,handleProps:V,bodyProps:H,bodyElementRef:U,sheetRef:W,dragOffset:G,settledOffset:K,isDragging:q,sheetHeight:J,scrollPreservationInset:_e,settlingLayoutOffset:Y,settledLayoutOffset:X,completeScrollAreaSettle:ve}=de({isOpen:N,canDismiss:_,offscreenBlockEndInset:L,onDismiss:y,snapHeights:ue,onScrimOpacity:ee}),ye=(0,f.useCallback)(e=>{W(e),w.current=e,b?.(e)},[b,W]);O({bodyRef:U,bottomClearance:R,isEnabled:r===`tall`,isFullyExpanded:K===0,isPageScrollLocked:v,isSheetTraveling:q&&G!==K,isOpen:N,isPresented:re,sheetRef:w}),(0,f.useImperativeHandle)(e,()=>w.current,[]);let Z=me(t);(0,f.useLayoutEffect)(()=>{if(Z!=null){if(k.current=null,A.current=null,Z===`entering`&&te.current){A.current=Z;return}return he(w.current,Z===`fading`?`opacity`:`transform`,()=>{k.current===Z?D.current?.(Z):A.current=Z})}},[Z]),(0,f.useLayoutEffect)(()=>{if(Y!=null)return he(w.current,`transform`,ve)},[ve,Y]),(0,f.useEffect)(()=>{if(Z!=null)return E.current?.(Z),k.current=Z,A.current===Z&&(A.current=null,D.current?.(Z)),()=>{k.current===Z&&(k.current=null),A.current===Z&&(A.current=null)}},[Z]);let Q=typeof r==`string`&&r in I?I[r]:typeof r==`number`?`${r}px`:r,be=J>0,$=ge.style.transform,xe;if(be){let e=q?G<K?0:X:Y??X,t=(q?G:K)-e;xe=e>0||q||Y!=null?`${Math.max(0,J-Math.max(0,e))}px`:void 0,$=t===0?void 0:`translateY(${t}px)`}let Se=ce>0?[$,`translateY(${ce}px)`].filter(Boolean).join(` `):$,Ce={...ge.style,transform:$,height:xe};return(0,F.jsxs)(`div`,{...C,ref:ye,tabIndex:p??-1,...c(a(`bottom-sheet`),n(B.sheet,i.reset,r===`hug`?B.hugHeight:B.budget,oe&&B.sheetClosing,se&&B.sheetFading,ae&&B.sheetInactive,m),l,{"--_sheet-budget":Q,...N?Ce:ie?{transform:Se,height:xe}:oe?{height:xe}:{},...d}),children:[(0,F.jsx)(`div`,{className:`x10l6tqk x13vifvy x1o0tod xtijo5x x1vjfegm x78zum5 x6s0dn4 xl56j7k xvpftlf xafqdz2 x5ve5x3 x1jm3nie x16khyan`,...V,"aria-hidden":`true`,children:(0,F.jsx)(`div`,{className:`x1m747yf x11c6zpc xjspbzw x1m4xfpy`})}),(0,F.jsx)(`div`,{...c({0:{className:`x1iyjqo2 x2lwn1j x9f619 x1odjw0f x8du1vd xx69xxh x10xzikg x18d9i69`},1:{className:`x1iyjqo2 x2lwn1j x9f619 x1odjw0f x8du1vd xx69xxh x10xzikg x18d9i69 xrw9175 x1s928wv xhkezso xu6fald x2q1x1w`}}[(r===`tall`)<<0],_e>0?{style:{paddingBlockEnd:`${_e}px`}}:{}),...H,children:o})]})}V.displayName=`BottomSheetPanel`;function H(){return(0,F.jsx)(`div`,{className:`xixxii4 x17y0mx6 x1ey2m1c x1kpxq89 x10xzikg xhtitgo x47corl x1cb67k9 xt2iwb0`,"data-sheet-edge-tint":``,"aria-hidden":`true`})}var U=(0,f.createContext)(null);U.displayName=`BottomSheetSwitcherContext`;function W(e,t){switch(e){case`active`:return{kind:`open`,entering:!1};case`entering`:return{kind:`open`,entering:!0};case`covered`:case`aligning`:case`fading`:return{kind:`retained`,motion:e,alignmentOffset:t};case`exiting`:return{kind:`exiting`};case`hidden`:return{kind:`hidden`}}}function G(e,t){let n=document.activeElement;if(n!=null&&e?.contains(n))return;let r=e?.querySelector(`[data-autofocus]`);r==null?t&&e?.focus({preventScroll:!0}):r.focus({preventScroll:!0})}function K({ref:e,isOpen:t,onOpenChange:n,label:r,children:i,height:a=`capped`,snapPoints:o,hasScrim:c=!0,finalFocusRef:l,purpose:p=`info`,xstyle:m,...h}){let g=(0,f.useRef)(null),_=(0,f.useRef)(null),v=(0,f.useRef)(null),[y,ee]=(0,f.useState)(t),b=t||y,x=t?{kind:`open`,entering:!1}:y?{kind:`exiting`}:{kind:`hidden`},S=(0,f.useCallback)(()=>{p!==`required`&&n(!1)},[n,p]),C=(0,f.useCallback)(()=>{p===`info`&&n(!1)},[n,p]),w=(0,f.useCallback)(e=>{_.current=e},[]),T=(0,f.useCallback)(e=>{g.current?.style.setProperty(`--_sheet-scrim-opacity`,String(e))},[]);(0,f.useEffect)(()=>{let e=g.current;e!=null&&t&&(ee(!0),e.style.setProperty(`--_sheet-scrim-opacity`,`1`),e.open||(c?(v.current=document.activeElement,e.showModal()):e.show(),G(_.current,c)))},[c,t]),(0,f.useEffect)(()=>{!t&&y&&c&&T(0)},[T,c,t,y]);let te=(0,f.useCallback)(e=>{if(e!==`exiting`||t)return;let n=g.current;n?.open&&n.close(),ee(!1),(l?.current??v.current)?.focus(),v.current=null},[l,t]);d(b&&c),u(`BottomSheet`,"requires a non-empty `label` for an accessible name; the open sheet has no built-in heading to derive one from.",t&&!r);let E=(0,f.useCallback)(e=>{e.preventDefault(),S()},[S]),D=(0,f.useCallback)(e=>{e.key===`Escape`&&(e.preventDefault(),!s(e.nativeEvent)&&S())},[S]),O=(0,f.useCallback)(e=>{c&&e.target===e.currentTarget&&C()},[C,c]);return(0,F.jsxs)(`dialog`,{...{0:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1s85apg x1a2a7pz`},8:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1a2a7pz x1lliihq`},4:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1s85apg x1a2a7pz xnixb3f xni466t xxiuuzi xc0dz0a xft5bk6 x15h3t91 x142juwg x1viac0w`},12:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1a2a7pz x1lliihq xnixb3f xni466t xxiuuzi xc0dz0a xft5bk6 x15h3t91 x142juwg x1viac0w`},2:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1s85apg x1a2a7pz x1cz9k3x`},10:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1a2a7pz x1lliihq x1cz9k3x`},6:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1s85apg x1a2a7pz xnixb3f xni466t xxiuuzi xc0dz0a xft5bk6 x142juwg x1viac0w x1cz9k3x`},14:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1a2a7pz x1lliihq xnixb3f xni466t xxiuuzi xc0dz0a xft5bk6 x142juwg x1viac0w x1cz9k3x`},1:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1s85apg x1a2a7pz x47corl xfo81ep xh8yej3 x5yr21d`},9:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1a2a7pz x1lliihq x47corl xfo81ep xh8yej3 x5yr21d`},5:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1s85apg x1a2a7pz xnixb3f xni466t xxiuuzi xc0dz0a xft5bk6 x15h3t91 x142juwg x1viac0w x47corl xfo81ep xh8yej3 x5yr21d`},13:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1a2a7pz x1lliihq xnixb3f xni466t xxiuuzi xc0dz0a xft5bk6 x15h3t91 x142juwg x1viac0w x47corl xfo81ep xh8yej3 x5yr21d`},3:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1s85apg x1a2a7pz x1cz9k3x x47corl xfo81ep xh8yej3 x5yr21d`},11:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1a2a7pz x1lliihq x1cz9k3x x47corl xfo81ep xh8yej3 x5yr21d`},7:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1s85apg x1a2a7pz xnixb3f xni466t xxiuuzi xc0dz0a xft5bk6 x142juwg x1viac0w x1cz9k3x x47corl xfo81ep xh8yej3 x5yr21d`},15:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xjbqb8w x1rea2x4 x1a2a7pz x1lliihq xnixb3f xni466t xxiuuzi xc0dz0a xft5bk6 x142juwg x1viac0w x1cz9k3x x47corl xfo81ep xh8yej3 x5yr21d`}}[!!b<<3|!!c<<2|!!(c&&!t&&y)<<1|!c<<0],ref:g,"aria-label":r,"aria-hidden":!t&&y?`true`:void 0,"aria-modal":c&&t?`true`:void 0,role:p===`required`?`alertdialog`:void 0,inert:!t&&y?!0:void 0,onCancel:E,onClick:O,onKeyDown:D,children:[(0,F.jsx)(`div`,{className:`x10l6tqk x17y0mx6 x1ey2m1c x78zum5 xl56j7k x47corl`,children:(0,F.jsx)(V,{...h,ref:e,state:x,height:a,snapPoints:o,isSwipeDismissAllowed:p===`info`,isPageScrollLocked:b&&c,xstyle:m,onDismiss:C,onScrimOpacity:T,onElementChange:w,onMotionComplete:te,children:i})}),(0,F.jsx)(H,{})]})}function q({switcher:e,ref:t,sheetId:n,label:r,children:i,height:a=`capped`,snapPoints:o,purpose:s=`info`,xstyle:c,...l}){let{activeSheet:d,hasScrim:p,onActiveSheetChange:m,getSheetPhase:h,getSheetAlignmentOffset:g,registerSheetElement:_,registerSheetLabel:v,registerSheetPurpose:y,onSheetEnterStart:ee,onSheetTransitionComplete:b,onSheetScrimOpacityChange:x}=e,S=typeof n==`string`&&n.length>0,C=S?h(n):`hidden`,w=W(C,S?g(n):0),T=C===`active`||C===`entering`,te=C===`covered`||C===`aligning`||C===`fading`||C===`exiting`,E=C!==`hidden`,D=C===`active`||C===`entering`,O=(0,f.useRef)(null),k=(0,f.useRef)(C),A=k.current,j=(0,f.useRef)(!1);(0,f.useLayoutEffect)(()=>{k.current=C},[C]);let M=(0,f.useCallback)(()=>{s===`info`&&S&&d===n&&m(null)},[d,S,m,s,n]),ne=(0,f.useCallback)(e=>{O.current=e,S&&_(n,e)},[S,_,n]),N=(0,f.useCallback)(e=>{e===`entering`&&S&&ee(n)},[S,ee,n]),re=(0,f.useCallback)(e=>{S&&b({sheetId:n,phase:e})},[S,b,n]),ie=(0,f.useCallback)(e=>{S&&x(n,e)},[S,x,n]);return(0,f.useLayoutEffect)(()=>{if(S)return v(n,r),()=>v(n,null)},[S,r,v,n]),(0,f.useLayoutEffect)(()=>{if(S)return y(n,s),()=>y(n,null)},[S,s,y,n]),(0,f.useEffect)(()=>{if(T){let e=A===`active`||A===`entering`;(!j.current||!e)&&G(O.current,p),j.current=!0}else C===`hidden`&&(j.current=!1)},[p,T,C,A]),u(`BottomSheet`,"requires a non-empty `label` for an accessible name; the open sheet has no built-in heading to derive one from.",T&&!r),(0,F.jsx)(`div`,{...{0:{className:`x10l6tqk x17y0mx6 x1ey2m1c x78zum5 xl56j7k x47corl`},2:{className:`x10l6tqk x17y0mx6 x1ey2m1c xl56j7k x47corl x1s85apg`},1:{className:`x10l6tqk x17y0mx6 x1ey2m1c x78zum5 xl56j7k x47corl x1vjfegm`},3:{className:`x10l6tqk x17y0mx6 x1ey2m1c xl56j7k x47corl x1s85apg x1vjfegm`}}[!E<<1|!!D<<0],hidden:!E,"aria-hidden":te?`true`:void 0,inert:te?!0:void 0,children:(0,F.jsx)(V,{...l,ref:t,state:w,height:a,snapPoints:o,isSwipeDismissAllowed:s===`info`,isPageScrollLocked:p,xstyle:c,onDismiss:M,onScrimOpacity:ie,onElementChange:ne,onMotionStart:N,onMotionComplete:re,children:(0,F.jsx)(U,{value:null,children:i})})})}function J(e){let t=(0,f.use)(U),n=e.sheetId,r=typeof n==`string`&&n.length>0;return u(`BottomSheet`,"requires a non-empty `sheetId` when nested in BottomSheetSwitcher; standalone `isOpen` / `onOpenChange` props are ignored there.",t!=null&&!r),u(`BottomSheet`,"`sheetId` only works inside BottomSheetSwitcher. Use `isOpen` and `onOpenChange` for a standalone sheet.",t==null&&n!=null),t==null?(0,F.jsx)(K,{...e}):(0,F.jsx)(q,{...e,switcher:t})}J.displayName=`BottomSheet`;export{J as BottomSheet};
|