@tempoxyz/id 0.0.0-stage → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +121 -2
- package/dist/App.d.ts +121 -0
- package/dist/App.d.ts.map +1 -0
- package/dist/App.js +132 -0
- package/dist/App.js.map +1 -0
- package/dist/app/client/.assetsignore +2 -0
- package/dist/app/client/_headers +4 -0
- package/dist/app/client/assets/Account-BYLpNFf3.css +1 -0
- package/dist/app/client/assets/Account-BllJah07.js +1 -0
- package/dist/app/client/assets/Amount-E_7snI0-.js +1 -0
- package/dist/app/client/assets/Amount-ZdtluGf-.css +1 -0
- package/dist/app/client/assets/Approval-CgV5JHlb.css +1 -0
- package/dist/app/client/assets/Approval-yKflypU2.js +1 -0
- package/dist/app/client/assets/ArrowUp-CRvqfMNU.js +1 -0
- package/dist/app/client/assets/Authentication-BAXhOh_4.js +2 -0
- package/dist/app/client/assets/BRLA-CZvVDNYr.png +0 -0
- package/dist/app/client/assets/BRZ-Cn3jEi9t.svg +1 -0
- package/dist/app/client/assets/CHFAU-DCedc4aH.png +0 -0
- package/dist/app/client/assets/Callout-B736759d.js +1 -0
- package/dist/app/client/assets/Callout-DBfEmP7q.css +1 -0
- package/dist/app/client/assets/Check-DVgD8tDG.js +1 -0
- package/dist/app/client/assets/ChevronRight-CsXtIZCB.js +1 -0
- package/dist/app/client/assets/ChooseAccount-BjxfQjPK.js +1 -0
- package/dist/app/client/assets/ChooseAccount-DL3wgJhE.css +1 -0
- package/dist/app/client/assets/Client-JrABNovb.js +1 -0
- package/dist/app/client/assets/Close-CRvWlhqc.js +1 -0
- package/dist/app/client/assets/Cloud-DgJsrqpQ.js +1 -0
- package/dist/app/client/assets/CodeInput-79Ctx8ZA.js +1 -0
- package/dist/app/client/assets/CodeInput-BqRteSwD.css +1 -0
- package/dist/app/client/assets/DLUSD-BnRXm3EI.png +0 -0
- package/dist/app/client/assets/Deposit-CclrAoXL.css +1 -0
- package/dist/app/client/assets/Deposit-c7uYn2Eb.js +1 -0
- package/dist/app/client/assets/DevTools-BYkmtuV5.css +1 -0
- package/dist/app/client/assets/DevTools-BgnzDGo2.js +1 -0
- package/dist/app/client/assets/DeviceApproval-BBUVv58e.js +1 -0
- package/dist/app/client/assets/DeviceApproval-BffFLD8F.css +1 -0
- package/dist/app/client/assets/EURAU-sjieTTB9.svg +1 -0
- package/dist/app/client/assets/EURC.e-CxYiiwkz.svg +1 -0
- package/dist/app/client/assets/Fingerprint-BNCA6qOJ.js +1 -0
- package/dist/app/client/assets/GBPA-DI_25xSG.svg +4 -0
- package/dist/app/client/assets/GUSD-BDEP2Qb-.svg +1 -0
- package/dist/app/client/assets/GeistMono-Variable-BRXCGrxA.woff2 +0 -0
- package/dist/app/client/assets/Globe-f0eWzcEI.js +1 -0
- package/dist/app/client/assets/Grant-5a-n1gJH.css +1 -0
- package/dist/app/client/assets/Grant-Dp7mpcEi.js +1 -0
- package/dist/app/client/assets/Hex-C9KeV7_9.css +1 -0
- package/dist/app/client/assets/Hex-CSp2U46W.js +10 -0
- package/dist/app/client/assets/IconChip-DpZHa1JW.js +1 -0
- package/dist/app/client/assets/IconChip-yqaQ2y_d.css +1 -0
- package/dist/app/client/assets/InputGroup-BlZvt9In.css +1 -0
- package/dist/app/client/assets/InputGroup-CsOeBnpB.js +1 -0
- package/dist/app/client/assets/Inter-cyrillic-e3OmmzmJ.woff2 +0 -0
- package/dist/app/client/assets/Inter-cyrillic-ext-DOWZeO4Q.woff2 +0 -0
- package/dist/app/client/assets/Inter-greek-BD3ujQlX.woff2 +0 -0
- package/dist/app/client/assets/Inter-greek-ext-CXEwbus4.woff2 +0 -0
- package/dist/app/client/assets/Inter-latin-BDFm4vTb.woff2 +0 -0
- package/dist/app/client/assets/Inter-latin-ext-E7a9JEPe.woff2 +0 -0
- package/dist/app/client/assets/Inter-symbols-DEch7Rxr.woff2 +0 -0
- package/dist/app/client/assets/Inter-vietnamese-Bg9723vR.woff2 +0 -0
- package/dist/app/client/assets/Loader-Cm9YJNNJ.js +1 -0
- package/dist/app/client/assets/MACH-sK0r79kQ.svg +4 -0
- package/dist/app/client/assets/OUSD-BFXgVo-Z.svg +5 -0
- package/dist/app/client/assets/OUSD.dark-BbbjMvA1.svg +17 -0
- package/dist/app/client/assets/OUSD.light-B_zpSz_c.svg +17 -0
- package/dist/app/client/assets/PRIME-CiFp2-3e.svg +14 -0
- package/dist/app/client/assets/PopoverPopup-DprRXRQe.js +1 -0
- package/dist/app/client/assets/Rows-DPGTUdA8.css +1 -0
- package/dist/app/client/assets/Rows-Qqo3evtk.js +1 -0
- package/dist/app/client/assets/SBC-BTYkbkiD.svg +1 -0
- package/dist/app/client/assets/SEKAU-CB5Fc6o8.svg +5 -0
- package/dist/app/client/assets/Separator-CZUjVQOL.js +1 -0
- package/dist/app/client/assets/SignIn-HdaDzFmq.js +1 -0
- package/dist/app/client/assets/SignIn-mlBTwUq4.css +1 -0
- package/dist/app/client/assets/Stack-CkkvkOzj.js +1 -0
- package/dist/app/client/assets/Stack-D7Yt22Ed.css +1 -0
- package/dist/app/client/assets/Tag-BMh6ajrW.css +1 -0
- package/dist/app/client/assets/Tag-CLOVANTX.js +1 -0
- package/dist/app/client/assets/ToolbarRootContext-Zty_Dh3J.js +1 -0
- package/dist/app/client/assets/Tooltip-CLATV6YU.js +1 -0
- package/dist/app/client/assets/Tooltip-d3y9ESUJ.css +1 -0
- package/dist/app/client/assets/USD1-COVcO_PB.svg +30 -0
- package/dist/app/client/assets/USDB-Ckwb6UQw.svg +11 -0
- package/dist/app/client/assets/USDC.e-3nMsKAMC.svg +1 -0
- package/dist/app/client/assets/USDT0-ia60Dw0e.svg +1 -0
- package/dist/app/client/assets/USDY-CB4iet2q.svg +16 -0
- package/dist/app/client/assets/USDe-BXHQCd92.svg +1 -0
- package/dist/app/client/assets/Upgrade-D0_aO5AP.js +1 -0
- package/dist/app/client/assets/WalletUpgrade-BPsPNQsd.js +1 -0
- package/dist/app/client/assets/WalletUpgrade-C04kW0Jl.css +1 -0
- package/dist/app/client/assets/YLDS-CRh8Zw0g.svg +3 -0
- package/dist/app/client/assets/___-I98bns4o.css +1 -0
- package/dist/app/client/assets/___.flows-XOlLwMIy.js +5 -0
- package/dist/app/client/assets/alphaUSD-CpCFoVuh.svg +1 -0
- package/dist/app/client/assets/authorize-C-MlCyaM.js +1 -0
- package/dist/app/client/assets/betaUSD-9A8AjgYg.svg +1 -0
- package/dist/app/client/assets/cUSD-WsQfa-iC.svg +1 -0
- package/dist/app/client/assets/cbBTC-DvUDqrDi.svg +1 -0
- package/dist/app/client/assets/choose-account-nXR-SKa2.js +1 -0
- package/dist/app/client/assets/deposit-G8tiLPN4.js +1 -0
- package/dist/app/client/assets/device-BojBF7hZ.js +1 -0
- package/dist/app/client/assets/error-KiOpX7GD.js +1 -0
- package/dist/app/client/assets/frxUSD-n9pTpinR.svg +1 -0
- package/dist/app/client/assets/getPseudoElementBounds-BsLy4zf_.js +1 -0
- package/dist/app/client/assets/goUSD-D9kUvHsF.svg +5 -0
- package/dist/app/client/assets/iUSD-CWCJAq9X.svg +1 -0
- package/dist/app/client/assets/index-BZH0M7Nf.js +13 -0
- package/dist/app/client/assets/index-CIYxHmYA.css +1 -0
- package/dist/app/client/assets/login-DUjpk60p.js +1 -0
- package/dist/app/client/assets/pathUSD-BvaO6ooS.svg +25 -0
- package/dist/app/client/assets/preload-helper-Bs9KvdYl.js +1 -0
- package/dist/app/client/assets/rUSD-B-xuFS7T.svg +1 -0
- package/dist/app/client/assets/reUSD-CkIUs0Lx.svg +1 -0
- package/dist/app/client/assets/removable-DMiA3t_o.js +1 -0
- package/dist/app/client/assets/reset-co-CHrff.css +1 -0
- package/dist/app/client/assets/rolldown-runtime-WkwZ5CU-.js +1 -0
- package/dist/app/client/assets/routes-CK8cthzA.js +1 -0
- package/dist/app/client/assets/sUSDe-j9GOnH7I.svg +1 -0
- package/dist/app/client/assets/siUSD-C10QUNYS.svg +1 -0
- package/dist/app/client/assets/stcUSD-DIntDJeh.svg +1 -0
- package/dist/app/client/assets/syrupUSDC-DhYwZqdM.svg +5 -0
- package/dist/app/client/assets/thetaUSD-Dgmksf6G.svg +1 -0
- package/dist/app/client/assets/useNavigate-CB6S2u4J.js +1 -0
- package/dist/app/client/assets/useQuery-BpHfPhTT.js +1 -0
- package/dist/app/client/assets/useRegisterFieldControl-DsslqY-V.js +1 -0
- package/dist/app/client/assets/wYLDS-CaCKDrO-.svg +10 -0
- package/dist/app/client/assets/wsrUSD-B2Ey0bDQ.svg +1 -0
- package/dist/app/client/assets/zyzz-DYC-X0_B.css +1 -0
- package/dist/app/client/assets/zyzz.config-DX_D_7j3.js +2 -0
- package/dist/app/db/auth.d.ts +3412 -0
- package/dist/app/db/auth.d.ts.map +1 -0
- package/dist/app/db/auth.js +349 -0
- package/dist/app/db/auth.js.map +1 -0
- package/dist/app/db/schema.d.ts +1091 -0
- package/dist/app/db/schema.d.ts.map +1 -0
- package/dist/app/db/schema.js +183 -0
- package/dist/app/db/schema.js.map +1 -0
- package/dist/app/db/table.d.ts +8 -0
- package/dist/app/db/table.d.ts.map +1 -0
- package/dist/app/db/table.js +28 -0
- package/dist/app/db/table.js.map +1 -0
- package/dist/app/server/.vite/manifest.json +2093 -0
- package/dist/app/server/assets/Account-BYLpNFf3.css +1 -0
- package/dist/app/server/assets/Account-G_SUeRU3.js +2 -0
- package/dist/app/server/assets/Account-G_SUeRU3.js.map +1 -0
- package/dist/app/server/assets/Amount-Cgwdr3Xt.js +2 -0
- package/dist/app/server/assets/Amount-Cgwdr3Xt.js.map +1 -0
- package/dist/app/server/assets/Amount-ZdtluGf-.css +1 -0
- package/dist/app/server/assets/Approval-CgV5JHlb.css +1 -0
- package/dist/app/server/assets/Approval-DvkB9tWA.js +2 -0
- package/dist/app/server/assets/Approval-DvkB9tWA.js.map +1 -0
- package/dist/app/server/assets/ArrowUp-DpK_zNgZ.js +2 -0
- package/dist/app/server/assets/ArrowUp-DpK_zNgZ.js.map +1 -0
- package/dist/app/server/assets/Authentication-BOkhlNQu.js +2 -0
- package/dist/app/server/assets/Authentication-BOkhlNQu.js.map +1 -0
- package/dist/app/server/assets/Authentication-C3oNZAVX.js +2 -0
- package/dist/app/server/assets/Authentication-C3oNZAVX.js.map +1 -0
- package/dist/app/server/assets/BRLA-CZvVDNYr.png +0 -0
- package/dist/app/server/assets/BRZ-Cn3jEi9t.svg +1 -0
- package/dist/app/server/assets/Bytes-C7CRVS3J.js +4 -0
- package/dist/app/server/assets/Bytes-C7CRVS3J.js.map +1 -0
- package/dist/app/server/assets/CHFAU-DCedc4aH.png +0 -0
- package/dist/app/server/assets/Callout-DBfEmP7q.css +1 -0
- package/dist/app/server/assets/Callout-tQoAitWq.js +2 -0
- package/dist/app/server/assets/Callout-tQoAitWq.js.map +1 -0
- package/dist/app/server/assets/ChainList-C4A_7e-9.js +6 -0
- package/dist/app/server/assets/ChainList-C4A_7e-9.js.map +1 -0
- package/dist/app/server/assets/ChainName-BMnJyJrd.js +2 -0
- package/dist/app/server/assets/ChainName-BMnJyJrd.js.map +1 -0
- package/dist/app/server/assets/Check-DU_oR3Ev.js +2 -0
- package/dist/app/server/assets/Check-DU_oR3Ev.js.map +1 -0
- package/dist/app/server/assets/ChevronRight-DTBnw-W6.js +2 -0
- package/dist/app/server/assets/ChevronRight-DTBnw-W6.js.map +1 -0
- package/dist/app/server/assets/ChooseAccount-BizJvMrY.js +2 -0
- package/dist/app/server/assets/ChooseAccount-BizJvMrY.js.map +1 -0
- package/dist/app/server/assets/ChooseAccount-DL3wgJhE.css +1 -0
- package/dist/app/server/assets/Client-Dx3KrpJZ.js +2 -0
- package/dist/app/server/assets/Client-Dx3KrpJZ.js.map +1 -0
- package/dist/app/server/assets/ClientOnly-CKLiu67O.js +2 -0
- package/dist/app/server/assets/ClientOnly-CKLiu67O.js.map +1 -0
- package/dist/app/server/assets/Close-DUeE37ev.js +2 -0
- package/dist/app/server/assets/Close-DUeE37ev.js.map +1 -0
- package/dist/app/server/assets/Cloud-CLB3rTTy.js +2 -0
- package/dist/app/server/assets/Cloud-CLB3rTTy.js.map +1 -0
- package/dist/app/server/assets/CodeInput-BqRteSwD.css +1 -0
- package/dist/app/server/assets/CodeInput-FsPzVuLU.js +2 -0
- package/dist/app/server/assets/CodeInput-FsPzVuLU.js.map +1 -0
- package/dist/app/server/assets/Credential-DFjcrdyI.js +2 -0
- package/dist/app/server/assets/Credential-DFjcrdyI.js.map +1 -0
- package/dist/app/server/assets/DLUSD-BnRXm3EI.png +0 -0
- package/dist/app/server/assets/Deposit-CclrAoXL.css +1 -0
- package/dist/app/server/assets/Deposit-ChYGRfW2.js +2 -0
- package/dist/app/server/assets/Deposit-ChYGRfW2.js.map +1 -0
- package/dist/app/server/assets/DevTools-BYkmtuV5.css +1 -0
- package/dist/app/server/assets/DevTools-ZJVXqrIK.js +2 -0
- package/dist/app/server/assets/DevTools-ZJVXqrIK.js.map +1 -0
- package/dist/app/server/assets/DeviceApproval-BffFLD8F.css +1 -0
- package/dist/app/server/assets/DeviceApproval-Bqe3Mi78.js +2 -0
- package/dist/app/server/assets/DeviceApproval-Bqe3Mi78.js.map +1 -0
- package/dist/app/server/assets/EURAU-sjieTTB9.svg +1 -0
- package/dist/app/server/assets/EURC.e-CxYiiwkz.svg +1 -0
- package/dist/app/server/assets/ExecutionError-CDszGSF1.js +9 -0
- package/dist/app/server/assets/ExecutionError-CDszGSF1.js.map +1 -0
- package/dist/app/server/assets/Fingerprint-DhOPOdRr.js +2 -0
- package/dist/app/server/assets/Fingerprint-DhOPOdRr.js.map +1 -0
- package/dist/app/server/assets/GBPA-DI_25xSG.svg +4 -0
- package/dist/app/server/assets/GUSD-BDEP2Qb-.svg +1 -0
- package/dist/app/server/assets/GeistMono-Variable-BRXCGrxA.woff2 +0 -0
- package/dist/app/server/assets/Globe-2CxqxU-7.js +2 -0
- package/dist/app/server/assets/Globe-2CxqxU-7.js.map +1 -0
- package/dist/app/server/assets/Grant-5a-n1gJH.css +1 -0
- package/dist/app/server/assets/Grant-D_tun0mF.js +2 -0
- package/dist/app/server/assets/Grant-D_tun0mF.js.map +1 -0
- package/dist/app/server/assets/Hex-C9KeV7_9.css +1 -0
- package/dist/app/server/assets/Hex-Z6m_0Y0m.js +11 -0
- package/dist/app/server/assets/Hex-Z6m_0Y0m.js.map +1 -0
- package/dist/app/server/assets/IconChip-C9ZrmGB5.js +2 -0
- package/dist/app/server/assets/IconChip-C9ZrmGB5.js.map +1 -0
- package/dist/app/server/assets/IconChip-yqaQ2y_d.css +1 -0
- package/dist/app/server/assets/InputGroup-BlZvt9In.css +1 -0
- package/dist/app/server/assets/InputGroup-hpjuLuR7.js +2 -0
- package/dist/app/server/assets/InputGroup-hpjuLuR7.js.map +1 -0
- package/dist/app/server/assets/Inter-cyrillic-e3OmmzmJ.woff2 +0 -0
- package/dist/app/server/assets/Inter-cyrillic-ext-DOWZeO4Q.woff2 +0 -0
- package/dist/app/server/assets/Inter-greek-BD3ujQlX.woff2 +0 -0
- package/dist/app/server/assets/Inter-greek-ext-CXEwbus4.woff2 +0 -0
- package/dist/app/server/assets/Inter-latin-BDFm4vTb.woff2 +0 -0
- package/dist/app/server/assets/Inter-latin-ext-E7a9JEPe.woff2 +0 -0
- package/dist/app/server/assets/Inter-symbols-DEch7Rxr.woff2 +0 -0
- package/dist/app/server/assets/Inter-vietnamese-Bg9723vR.woff2 +0 -0
- package/dist/app/server/assets/Loader-DnKC9P5p.js +2 -0
- package/dist/app/server/assets/Loader-DnKC9P5p.js.map +1 -0
- package/dist/app/server/assets/MACH-sK0r79kQ.svg +4 -0
- package/dist/app/server/assets/Match-CyVdYcSf.js +2 -0
- package/dist/app/server/assets/Match-CyVdYcSf.js.map +1 -0
- package/dist/app/server/assets/OUSD-BFXgVo-Z.svg +5 -0
- package/dist/app/server/assets/OUSD.dark-BbbjMvA1.svg +17 -0
- package/dist/app/server/assets/OUSD.light-B_zpSz_c.svg +17 -0
- package/dist/app/server/assets/PRIME-CiFp2-3e.svg +14 -0
- package/dist/app/server/assets/PopoverPopup-CwqeQelI.js +2 -0
- package/dist/app/server/assets/PopoverPopup-CwqeQelI.js.map +1 -0
- package/dist/app/server/assets/Rows-CQKQwTI1.js +2 -0
- package/dist/app/server/assets/Rows-CQKQwTI1.js.map +1 -0
- package/dist/app/server/assets/Rows-DPGTUdA8.css +1 -0
- package/dist/app/server/assets/SBC-BTYkbkiD.svg +1 -0
- package/dist/app/server/assets/SEKAU-CB5Fc6o8.svg +5 -0
- package/dist/app/server/assets/Separator-DrI7KRAs.js +2 -0
- package/dist/app/server/assets/Separator-DrI7KRAs.js.map +1 -0
- package/dist/app/server/assets/SignIn-DfeeLEmN.js +2 -0
- package/dist/app/server/assets/SignIn-DfeeLEmN.js.map +1 -0
- package/dist/app/server/assets/SignIn-mlBTwUq4.css +1 -0
- package/dist/app/server/assets/Stack-D7Yt22Ed.css +1 -0
- package/dist/app/server/assets/Stack-DGktaLZc.js +2 -0
- package/dist/app/server/assets/Stack-DGktaLZc.js.map +1 -0
- package/dist/app/server/assets/Tag-9vSRBpph.js +2 -0
- package/dist/app/server/assets/Tag-9vSRBpph.js.map +1 -0
- package/dist/app/server/assets/Tag-BMh6ajrW.css +1 -0
- package/dist/app/server/assets/ToolbarRootContext-BH_CFSWd.js +2 -0
- package/dist/app/server/assets/ToolbarRootContext-BH_CFSWd.js.map +1 -0
- package/dist/app/server/assets/Tooltip-DLX41peb.js +2 -0
- package/dist/app/server/assets/Tooltip-DLX41peb.js.map +1 -0
- package/dist/app/server/assets/Tooltip-d3y9ESUJ.css +1 -0
- package/dist/app/server/assets/USD1-COVcO_PB.svg +30 -0
- package/dist/app/server/assets/USDB-Ckwb6UQw.svg +11 -0
- package/dist/app/server/assets/USDC.e-3nMsKAMC.svg +1 -0
- package/dist/app/server/assets/USDT0-ia60Dw0e.svg +1 -0
- package/dist/app/server/assets/USDY-CB4iet2q.svg +16 -0
- package/dist/app/server/assets/USDe-BXHQCd92.svg +1 -0
- package/dist/app/server/assets/Upgrade-Dbfm2nm0.js +2 -0
- package/dist/app/server/assets/Upgrade-Dbfm2nm0.js.map +1 -0
- package/dist/app/server/assets/WalletUpgrade-C04kW0Jl.css +1 -0
- package/dist/app/server/assets/WalletUpgrade-CWKc5fYt.js +2 -0
- package/dist/app/server/assets/WalletUpgrade-CWKc5fYt.js.map +1 -0
- package/dist/app/server/assets/YLDS-CRh8Zw0g.svg +3 -0
- package/dist/app/server/assets/___-I98bns4o.css +1 -0
- package/dist/app/server/assets/___.flows-Cc-awUoC.js +6 -0
- package/dist/app/server/assets/___.flows-Cc-awUoC.js.map +1 -0
- package/dist/app/server/assets/_tanstack-start-manifest_v-U7TrtUSA.js +1 -0
- package/dist/app/server/assets/_zyzz__2Fhome_2Frunner_2Fwork_2Fid_2Fid_2Fsrc_2Fapp_2Froutes_2F_5B__5D.flows-B1pPOqsM.css +1 -0
- package/dist/app/server/assets/_zyzz__2Fhome_2Frunner_2Fwork_2Fid_2Fid_2Fsrc_2Fapp_2Froutes_2F_5B__5D.flows.tsx-CKALi9oD.js +2 -0
- package/dist/app/server/assets/_zyzz__2Fhome_2Frunner_2Fwork_2Fid_2Fid_2Fsrc_2Fapp_2Froutes_2F_5B__5D.flows.tsx-CKALi9oD.js.map +1 -0
- package/dist/app/server/assets/_zyzz_shared-BbDIEd_j.css +1 -0
- package/dist/app/server/assets/alphaUSD-CpCFoVuh.svg +1 -0
- package/dist/app/server/assets/arktype-aI7TBD0R-D1R3Byo5.js +2 -0
- package/dist/app/server/assets/arktype-aI7TBD0R-D1R3Byo5.js.map +1 -0
- package/dist/app/server/assets/async-local-storage-DlOvwxXd.js +2 -0
- package/dist/app/server/assets/async-local-storage-DlOvwxXd.js.map +1 -0
- package/dist/app/server/assets/authorize-BXzTo2Pb.js +2 -0
- package/dist/app/server/assets/authorize-BXzTo2Pb.js.map +1 -0
- package/dist/app/server/assets/authorize-BzoUqOdA.js +2 -0
- package/dist/app/server/assets/authorize-BzoUqOdA.js.map +1 -0
- package/dist/app/server/assets/authorize-DXYo-K2n-rmQQ42x1.js +56 -0
- package/dist/app/server/assets/authorize-DXYo-K2n-rmQQ42x1.js.map +1 -0
- package/dist/app/server/assets/authorize-DfjPYJqS.css +1 -0
- package/dist/app/server/assets/betaUSD-9A8AjgYg.svg +1 -0
- package/dist/app/server/assets/bun-sqlite-dialect-DoOVo4ja-CtyBkVMb.js +2 -0
- package/dist/app/server/assets/bun-sqlite-dialect-DoOVo4ja-CtyBkVMb.js.map +1 -0
- package/dist/app/server/assets/cUSD-WsQfa-iC.svg +1 -0
- package/dist/app/server/assets/call-dzi0xjZd.js +31 -0
- package/dist/app/server/assets/call-dzi0xjZd.js.map +1 -0
- package/dist/app/server/assets/cbBTC-DvUDqrDi.svg +1 -0
- package/dist/app/server/assets/ccip-DjD8z_3B.js +2 -0
- package/dist/app/server/assets/ccip-DjD8z_3B.js.map +1 -0
- package/dist/app/server/assets/choose-account-_X7xq5am.js +2 -0
- package/dist/app/server/assets/choose-account-_X7xq5am.js.map +1 -0
- package/dist/app/server/assets/choose-account-lqA5SLx9.css +1 -0
- package/dist/app/server/assets/choose-account-zm-5Qs3e.js +2 -0
- package/dist/app/server/assets/choose-account-zm-5Qs3e.js.map +1 -0
- package/dist/app/server/assets/compiled-query-Ds2NVcFT.js +2 -0
- package/dist/app/server/assets/compiled-query-Ds2NVcFT.js.map +1 -0
- package/dist/app/server/assets/convert-BIC8n32x.js +2 -0
- package/dist/app/server/assets/convert-BIC8n32x.js.map +1 -0
- package/dist/app/server/assets/cookie-DxViaO10.js +2 -0
- package/dist/app/server/assets/cookie-DxViaO10.js.map +1 -0
- package/dist/app/server/assets/core-BBrZXfrB.js +56 -0
- package/dist/app/server/assets/core-BBrZXfrB.js.map +1 -0
- package/dist/app/server/assets/d1-sqlite-dialect-m0f01-4z-Cv-csE1u.js +2 -0
- package/dist/app/server/assets/d1-sqlite-dialect-m0f01-4z-Cv-csE1u.js.map +1 -0
- package/dist/app/server/assets/decodeFunctionData-bP6V2ai4.js +2 -0
- package/dist/app/server/assets/decodeFunctionData-bP6V2ai4.js.map +1 -0
- package/dist/app/server/assets/default-u_dwuiYb-DOrMMcg9.js +2 -0
- package/dist/app/server/assets/default-u_dwuiYb-DOrMMcg9.js.map +1 -0
- package/dist/app/server/assets/deposit-BBaNI01u.js +2 -0
- package/dist/app/server/assets/deposit-BBaNI01u.js.map +1 -0
- package/dist/app/server/assets/deposit-LWS6ZTuf.js +2 -0
- package/dist/app/server/assets/deposit-LWS6ZTuf.js.map +1 -0
- package/dist/app/server/assets/deposit-oFx15XCA.css +1 -0
- package/dist/app/server/assets/device-CrXlusjr.js +2 -0
- package/dist/app/server/assets/device-CrXlusjr.js.map +1 -0
- package/dist/app/server/assets/device-DdFMgYe2.js +2 -0
- package/dist/app/server/assets/device-DdFMgYe2.js.map +1 -0
- package/dist/app/server/assets/device-tMCpu5zk.css +1 -0
- package/dist/app/server/assets/dist-CR6FW-yS.js +1 -0
- package/dist/app/server/assets/dist-CoH0hD1s.js +15 -0
- package/dist/app/server/assets/dist-CoH0hD1s.js.map +1 -0
- package/dist/app/server/assets/dist-DcICI3fd.js +2 -0
- package/dist/app/server/assets/dist-DcICI3fd.js.map +1 -0
- package/dist/app/server/assets/effect-QlVUlMFu-mXPkuQTb.js +2 -0
- package/dist/app/server/assets/effect-QlVUlMFu-mXPkuQTb.js.map +1 -0
- package/dist/app/server/assets/empty-plugin-adapters-BaGcmrjC.js +2 -0
- package/dist/app/server/assets/empty-plugin-adapters-BaGcmrjC.js.map +1 -0
- package/dist/app/server/assets/error-CXy8gqdE.css +1 -0
- package/dist/app/server/assets/error-DXDT2AHy.js +2 -0
- package/dist/app/server/assets/error-DXDT2AHy.js.map +1 -0
- package/dist/app/server/assets/error-bnVzy9tx.js +2 -0
- package/dist/app/server/assets/error-bnVzy9tx.js.map +1 -0
- package/dist/app/server/assets/esm-C6SW--yt.js +4 -0
- package/dist/app/server/assets/esm-C6SW--yt.js.map +1 -0
- package/dist/app/server/assets/factory-dvoOlKer.js +5 -0
- package/dist/app/server/assets/factory-dvoOlKer.js.map +1 -0
- package/dist/app/server/assets/frxUSD-n9pTpinR.svg +1 -0
- package/dist/app/server/assets/get-id-field-OwLpfjj2.js +6 -0
- package/dist/app/server/assets/get-id-field-OwLpfjj2.js.map +1 -0
- package/dist/app/server/assets/getPseudoElementBounds-PkWU72kn.js +2 -0
- package/dist/app/server/assets/getPseudoElementBounds-PkWU72kn.js.map +1 -0
- package/dist/app/server/assets/goUSD-D9kUvHsF.svg +5 -0
- package/dist/app/server/assets/iUSD-CWCJAq9X.svg +1 -0
- package/dist/app/server/assets/index-CLddUTqr-CC33CMvS.js +2 -0
- package/dist/app/server/assets/index-CLddUTqr-CC33CMvS.js.map +1 -0
- package/dist/app/server/assets/index-DZEfthgZ-Ec2MMQ_e.js +2 -0
- package/dist/app/server/assets/index-DZEfthgZ-Ec2MMQ_e.js.map +1 -0
- package/dist/app/server/assets/kysely-adapter-B8tQwTcu.js +1 -0
- package/dist/app/server/assets/lazyRouteComponent-DPOOPZw_.js +2 -0
- package/dist/app/server/assets/lazyRouteComponent-DPOOPZw_.js.map +1 -0
- package/dist/app/server/assets/load-server-Dr0IlySo.js +3 -0
- package/dist/app/server/assets/load-server-Dr0IlySo.js.map +1 -0
- package/dist/app/server/assets/login-BLq3tEEr.js +2 -0
- package/dist/app/server/assets/login-BLq3tEEr.js.map +1 -0
- package/dist/app/server/assets/login-DCIrAbED.js +2 -0
- package/dist/app/server/assets/login-DCIrAbED.js.map +1 -0
- package/dist/app/server/assets/login-msDnt3yT.css +1 -0
- package/dist/app/server/assets/matchContext-ByrIUj4L.js +2 -0
- package/dist/app/server/assets/matchContext-ByrIUj4L.js.map +1 -0
- package/dist/app/server/assets/node-sqlite-dialect-BowWLXvK.js +2 -0
- package/dist/app/server/assets/node-sqlite-dialect-BowWLXvK.js.map +1 -0
- package/dist/app/server/assets/pathUSD-BvaO6ooS.svg +25 -0
- package/dist/app/server/assets/rUSD-B-xuFS7T.svg +1 -0
- package/dist/app/server/assets/reUSD-CkIUs0Lx.svg +1 -0
- package/dist/app/server/assets/react-dom-DYzj0HXX.js +2 -0
- package/dist/app/server/assets/react-dom-DYzj0HXX.js.map +1 -0
- package/dist/app/server/assets/removable-BCLTvPOx.js +2 -0
- package/dist/app/server/assets/removable-BCLTvPOx.js.map +1 -0
- package/dist/app/server/assets/reset-DZWeTZeQ.js +2 -0
- package/dist/app/server/assets/reset-DZWeTZeQ.js.map +1 -0
- package/dist/app/server/assets/reset-co-CHrff.css +1 -0
- package/dist/app/server/assets/resolveError-CZXXvCJR.js +2 -0
- package/dist/app/server/assets/resolveError-CZXXvCJR.js.map +1 -0
- package/dist/app/server/assets/rolldown-runtime-BWaJ3C7D.js +1 -0
- package/dist/app/server/assets/router-Bqz5X4Qw.js +2 -0
- package/dist/app/server/assets/router-Bqz5X4Qw.js.map +1 -0
- package/dist/app/server/assets/router-CclzitkY.css +1 -0
- package/dist/app/server/assets/routes-BLQdKqcZ.js +2 -0
- package/dist/app/server/assets/routes-BLQdKqcZ.js.map +1 -0
- package/dist/app/server/assets/routes-BgiIzrOt.css +1 -0
- package/dist/app/server/assets/routes-Bv6WzsSR.js +2 -0
- package/dist/app/server/assets/routes-Bv6WzsSR.js.map +1 -0
- package/dist/app/server/assets/sUSDe-j9GOnH7I.svg +1 -0
- package/dist/app/server/assets/schema-check-oLqvHR8y.js +9 -0
- package/dist/app/server/assets/schema-check-oLqvHR8y.js.map +1 -0
- package/dist/app/server/assets/secp256k1-yg8eeIYU.js +2 -0
- package/dist/app/server/assets/secp256k1-yg8eeIYU.js.map +1 -0
- package/dist/app/server/assets/server-RRUiOef2.js +76 -0
- package/dist/app/server/assets/server-RRUiOef2.js.map +1 -0
- package/dist/app/server/assets/siUSD-C10QUNYS.svg +1 -0
- package/dist/app/server/assets/sqlite-adapter-C_LAV4e3.js +2 -0
- package/dist/app/server/assets/sqlite-adapter-C_LAV4e3.js.map +1 -0
- package/dist/app/server/assets/sqlite-introspector-DSCAP82F-Crx7Ny14.js +6 -0
- package/dist/app/server/assets/sqlite-introspector-DSCAP82F-Crx7Ny14.js.map +1 -0
- package/dist/app/server/assets/standard-json-DY77efq0.js +2 -0
- package/dist/app/server/assets/standard-json-DY77efq0.js.map +1 -0
- package/dist/app/server/assets/standard-json-ig2t0wRt.js +2 -0
- package/dist/app/server/assets/standard-json-ig2t0wRt.js.map +1 -0
- package/dist/app/server/assets/standard-json-t-LNckA6.js +2 -0
- package/dist/app/server/assets/standard-json-t-LNckA6.js.map +1 -0
- package/dist/app/server/assets/standard-openapi-CONmVRl8.js +2 -0
- package/dist/app/server/assets/standard-openapi-CONmVRl8.js.map +1 -0
- package/dist/app/server/assets/start-C63VetBp.js +2 -0
- package/dist/app/server/assets/start-C63VetBp.js.map +1 -0
- package/dist/app/server/assets/stcUSD-DIntDJeh.svg +1 -0
- package/dist/app/server/assets/sury-CWZTCd75-CDaOS2oM.js +2 -0
- package/dist/app/server/assets/sury-CWZTCd75-CDaOS2oM.js.map +1 -0
- package/dist/app/server/assets/syrupUSDC-DhYwZqdM.svg +5 -0
- package/dist/app/server/assets/thetaUSD-Dgmksf6G.svg +1 -0
- package/dist/app/server/assets/typebox-Dei93FPO-D_lCVdAz.js +2 -0
- package/dist/app/server/assets/typebox-Dei93FPO-D_lCVdAz.js.map +1 -0
- package/dist/app/server/assets/useNavigate-D6d1w7KE.js +2 -0
- package/dist/app/server/assets/useNavigate-D6d1w7KE.js.map +1 -0
- package/dist/app/server/assets/useQuery-BRpCr5vj.js +2 -0
- package/dist/app/server/assets/useQuery-BRpCr5vj.js.map +1 -0
- package/dist/app/server/assets/useRegisterFieldControl-cJesrOWK.js +2 -0
- package/dist/app/server/assets/useRegisterFieldControl-cJesrOWK.js.map +1 -0
- package/dist/app/server/assets/utils-C4ZXZIZW.js +2 -0
- package/dist/app/server/assets/utils-C4ZXZIZW.js.map +1 -0
- package/dist/app/server/assets/utils-D57zfcg-.js +2 -0
- package/dist/app/server/assets/utils-D57zfcg-.js.map +1 -0
- package/dist/app/server/assets/valibot--1zFm7rT-CIKoH3MS.js +2 -0
- package/dist/app/server/assets/valibot--1zFm7rT-CIKoH3MS.js.map +1 -0
- package/dist/app/server/assets/valibot-D_HTw1Gn-BdPyLkXt.js +2 -0
- package/dist/app/server/assets/valibot-D_HTw1Gn-BdPyLkXt.js.map +1 -0
- package/dist/app/server/assets/wYLDS-CaCKDrO-.svg +10 -0
- package/dist/app/server/assets/wsrUSD-B2Ey0bDQ.svg +1 -0
- package/dist/app/server/assets/zod-Bwrt9trS-BezI5Gi1.js +2 -0
- package/dist/app/server/assets/zod-Bwrt9trS-BezI5Gi1.js.map +1 -0
- package/dist/app/server/assets/zod-DSgpEGAE-DZ7M_Q33.js +2 -0
- package/dist/app/server/assets/zod-DSgpEGAE-DZ7M_Q33.js.map +1 -0
- package/dist/app/server/assets/zyzz-6R2K52xP.css +1 -0
- package/dist/app/server/assets/zyzz.config-CJRpjn0E.js +3 -0
- package/dist/app/server/assets/zyzz.config-CJRpjn0E.js.map +1 -0
- package/dist/app/server/index.js +532 -0
- package/dist/app/server/index.js.map +1 -0
- package/dist/app/server/wrangler.json +1 -0
- package/dist/cli/Admin.d.ts +34 -0
- package/dist/cli/Admin.d.ts.map +1 -0
- package/dist/cli/Admin.js +61 -0
- package/dist/cli/Admin.js.map +1 -0
- package/dist/cli/Apps.d.ts +9 -0
- package/dist/cli/Apps.d.ts.map +1 -0
- package/dist/cli/Apps.js +34 -0
- package/dist/cli/Apps.js.map +1 -0
- package/dist/cli/Cli.d.ts +13 -0
- package/dist/cli/Cli.d.ts.map +1 -0
- package/dist/cli/Cli.js +26 -0
- package/dist/cli/Cli.js.map +1 -0
- package/dist/cli/Project.d.ts +17 -0
- package/dist/cli/Project.d.ts.map +1 -0
- package/dist/cli/Project.js +90 -0
- package/dist/cli/Project.js.map +1 -0
- package/dist/cli/Realms.d.ts +24 -0
- package/dist/cli/Realms.d.ts.map +1 -0
- package/dist/cli/Realms.js +48 -0
- package/dist/cli/Realms.js.map +1 -0
- package/dist/cli/Session.d.ts +79 -0
- package/dist/cli/Session.d.ts.map +1 -0
- package/dist/cli/Session.js +229 -0
- package/dist/cli/Session.js.map +1 -0
- package/dist/cli/User.d.ts +24 -0
- package/dist/cli/User.d.ts.map +1 -0
- package/dist/cli/User.js +34 -0
- package/dist/cli/User.js.map +1 -0
- package/dist/cli/V1.d.ts +32 -0
- package/dist/cli/V1.d.ts.map +1 -0
- package/dist/cli/V1.js +38 -0
- package/dist/cli/V1.js.map +1 -0
- package/dist/cli/bin.d.ts +3 -0
- package/dist/cli/bin.d.ts.map +1 -0
- package/dist/cli/bin.js +46 -0
- package/dist/cli/bin.js.map +1 -0
- package/dist/cli/commands/admin/apps/create.d.ts +23 -0
- package/dist/cli/commands/admin/apps/create.d.ts.map +1 -0
- package/dist/cli/commands/admin/apps/create.js +84 -0
- package/dist/cli/commands/admin/apps/create.js.map +1 -0
- package/dist/cli/commands/admin/apps/delete.d.ts +15 -0
- package/dist/cli/commands/admin/apps/delete.d.ts.map +1 -0
- package/dist/cli/commands/admin/apps/delete.js +41 -0
- package/dist/cli/commands/admin/apps/delete.js.map +1 -0
- package/dist/cli/commands/admin/apps/index.d.ts +5 -0
- package/dist/cli/commands/admin/apps/index.d.ts.map +1 -0
- package/dist/cli/commands/admin/apps/index.js +14 -0
- package/dist/cli/commands/admin/apps/index.js.map +1 -0
- package/dist/cli/commands/admin/apps/list.d.ts +10 -0
- package/dist/cli/commands/admin/apps/list.d.ts.map +1 -0
- package/dist/cli/commands/admin/apps/list.js +26 -0
- package/dist/cli/commands/admin/apps/list.js.map +1 -0
- package/dist/cli/commands/admin/apps/rotate-secret.d.ts +17 -0
- package/dist/cli/commands/admin/apps/rotate-secret.d.ts.map +1 -0
- package/dist/cli/commands/admin/apps/rotate-secret.js +47 -0
- package/dist/cli/commands/admin/apps/rotate-secret.js.map +1 -0
- package/dist/cli/commands/admin/apps/update.d.ts +20 -0
- package/dist/cli/commands/admin/apps/update.d.ts.map +1 -0
- package/dist/cli/commands/admin/apps/update.js +71 -0
- package/dist/cli/commands/admin/apps/update.js.map +1 -0
- package/dist/cli/commands/admin/index.d.ts +5 -0
- package/dist/cli/commands/admin/index.d.ts.map +1 -0
- package/dist/cli/commands/admin/index.js +13 -0
- package/dist/cli/commands/admin/index.js.map +1 -0
- package/dist/cli/commands/admin/migrate.d.ts +10 -0
- package/dist/cli/commands/admin/migrate.d.ts.map +1 -0
- package/dist/cli/commands/admin/migrate.js +20 -0
- package/dist/cli/commands/admin/migrate.js.map +1 -0
- package/dist/cli/commands/admin/realms/add.d.ts +13 -0
- package/dist/cli/commands/admin/realms/add.d.ts.map +1 -0
- package/dist/cli/commands/admin/realms/add.js +42 -0
- package/dist/cli/commands/admin/realms/add.js.map +1 -0
- package/dist/cli/commands/admin/realms/index.d.ts +5 -0
- package/dist/cli/commands/admin/realms/index.d.ts.map +1 -0
- package/dist/cli/commands/admin/realms/index.js +13 -0
- package/dist/cli/commands/admin/realms/index.js.map +1 -0
- package/dist/cli/commands/admin/realms/list.d.ts +14 -0
- package/dist/cli/commands/admin/realms/list.d.ts.map +1 -0
- package/dist/cli/commands/admin/realms/list.js +36 -0
- package/dist/cli/commands/admin/realms/list.js.map +1 -0
- package/dist/cli/commands/admin/realms/passkeys/index.d.ts +5 -0
- package/dist/cli/commands/admin/realms/passkeys/index.d.ts.map +1 -0
- package/dist/cli/commands/admin/realms/passkeys/index.js +13 -0
- package/dist/cli/commands/admin/realms/passkeys/index.js.map +1 -0
- package/dist/cli/commands/admin/realms/passkeys/set.d.ts +17 -0
- package/dist/cli/commands/admin/realms/passkeys/set.d.ts.map +1 -0
- package/dist/cli/commands/admin/realms/passkeys/set.js +46 -0
- package/dist/cli/commands/admin/realms/passkeys/set.js.map +1 -0
- package/dist/cli/commands/admin/realms/privy/index.d.ts +5 -0
- package/dist/cli/commands/admin/realms/privy/index.d.ts.map +1 -0
- package/dist/cli/commands/admin/realms/privy/index.js +13 -0
- package/dist/cli/commands/admin/realms/privy/index.js.map +1 -0
- package/dist/cli/commands/admin/realms/privy/set.d.ts +19 -0
- package/dist/cli/commands/admin/realms/privy/set.d.ts.map +1 -0
- package/dist/cli/commands/admin/realms/privy/set.js +66 -0
- package/dist/cli/commands/admin/realms/privy/set.js.map +1 -0
- package/dist/cli/commands/admin/realms/remove.d.ts +12 -0
- package/dist/cli/commands/admin/realms/remove.d.ts.map +1 -0
- package/dist/cli/commands/admin/realms/remove.js +35 -0
- package/dist/cli/commands/admin/realms/remove.js.map +1 -0
- package/dist/cli/commands/admin/realms/secp256k1/disable.d.ts +16 -0
- package/dist/cli/commands/admin/realms/secp256k1/disable.d.ts.map +1 -0
- package/dist/cli/commands/admin/realms/secp256k1/disable.js +42 -0
- package/dist/cli/commands/admin/realms/secp256k1/disable.js.map +1 -0
- package/dist/cli/commands/admin/realms/secp256k1/enable.d.ts +16 -0
- package/dist/cli/commands/admin/realms/secp256k1/enable.d.ts.map +1 -0
- package/dist/cli/commands/admin/realms/secp256k1/enable.js +42 -0
- package/dist/cli/commands/admin/realms/secp256k1/enable.js.map +1 -0
- package/dist/cli/commands/admin/realms/secp256k1/index.d.ts +9 -0
- package/dist/cli/commands/admin/realms/secp256k1/index.d.ts.map +1 -0
- package/dist/cli/commands/admin/realms/secp256k1/index.js +17 -0
- package/dist/cli/commands/admin/realms/secp256k1/index.js.map +1 -0
- package/dist/cli/commands/admin/realms/set.d.ts +17 -0
- package/dist/cli/commands/admin/realms/set.d.ts.map +1 -0
- package/dist/cli/commands/admin/realms/set.js +46 -0
- package/dist/cli/commands/admin/realms/set.js.map +1 -0
- package/dist/cli/commands/admin/rotate-key.d.ts +16 -0
- package/dist/cli/commands/admin/rotate-key.d.ts.map +1 -0
- package/dist/cli/commands/admin/rotate-key.js +46 -0
- package/dist/cli/commands/admin/rotate-key.js.map +1 -0
- package/dist/cli/commands/init.d.ts +11 -0
- package/dist/cli/commands/init.d.ts.map +1 -0
- package/dist/cli/commands/init.js +34 -0
- package/dist/cli/commands/init.js.map +1 -0
- package/dist/cli/commands/login.d.ts +12 -0
- package/dist/cli/commands/login.d.ts.map +1 -0
- package/dist/cli/commands/login.js +29 -0
- package/dist/cli/commands/login.js.map +1 -0
- package/dist/cli/commands/logout.d.ts +8 -0
- package/dist/cli/commands/logout.d.ts.map +1 -0
- package/dist/cli/commands/logout.js +19 -0
- package/dist/cli/commands/logout.js.map +1 -0
- package/dist/cli/commands/whoami.d.ts +12 -0
- package/dist/cli/commands/whoami.d.ts.map +1 -0
- package/dist/cli/commands/whoami.js +24 -0
- package/dist/cli/commands/whoami.js.map +1 -0
- package/dist/client/Actions.d.ts +108 -0
- package/dist/client/Actions.d.ts.map +1 -0
- package/dist/client/Actions.js +94 -0
- package/dist/client/Actions.js.map +1 -0
- package/dist/client/Auth.d.ts +143 -0
- package/dist/client/Auth.d.ts.map +1 -0
- package/dist/client/Auth.js +106 -0
- package/dist/client/Auth.js.map +1 -0
- package/dist/client/Authorization.d.ts +29 -0
- package/dist/client/Authorization.d.ts.map +1 -0
- package/dist/client/Authorization.js +12 -0
- package/dist/client/Authorization.js.map +1 -0
- package/dist/client/Decorator.d.ts +172 -0
- package/dist/client/Decorator.d.ts.map +1 -0
- package/dist/client/Decorator.js +241 -0
- package/dist/client/Decorator.js.map +1 -0
- package/dist/client/Key.d.ts +82 -0
- package/dist/client/Key.d.ts.map +1 -0
- package/dist/client/Key.js +81 -0
- package/dist/client/Key.js.map +1 -0
- package/dist/client/Pending.d.ts +38 -0
- package/dist/client/Pending.d.ts.map +1 -0
- package/dist/client/Pending.js +12 -0
- package/dist/client/Pending.js.map +1 -0
- package/dist/client/Permissions.d.ts +36 -0
- package/dist/client/Permissions.d.ts.map +1 -0
- package/dist/client/Permissions.js +16 -0
- package/dist/client/Permissions.js.map +1 -0
- package/dist/client/Storage.d.ts +27 -0
- package/dist/client/Storage.d.ts.map +1 -0
- package/dist/client/Storage.js +16 -0
- package/dist/client/Storage.js.map +1 -0
- package/dist/client/TempoAccount.d.ts +52 -0
- package/dist/client/TempoAccount.d.ts.map +1 -0
- package/dist/client/TempoAccount.js +17 -0
- package/dist/client/TempoAccount.js.map +1 -0
- package/dist/client/Tokens.d.ts +25 -0
- package/dist/client/Tokens.d.ts.map +1 -0
- package/dist/client/Tokens.js +12 -0
- package/dist/client/Tokens.js.map +1 -0
- package/dist/client/User.d.ts +21 -0
- package/dist/client/User.d.ts.map +1 -0
- package/dist/client/User.js +12 -0
- package/dist/client/User.js.map +1 -0
- package/dist/client/actions/account.d.ts +75 -0
- package/dist/client/actions/account.d.ts.map +1 -0
- package/dist/client/actions/account.js +102 -0
- package/dist/client/actions/account.js.map +1 -0
- package/dist/client/actions/device.d.ts +52 -0
- package/dist/client/actions/device.d.ts.map +1 -0
- package/dist/client/actions/device.js +103 -0
- package/dist/client/actions/device.js.map +1 -0
- package/dist/client/actions/email.d.ts +89 -0
- package/dist/client/actions/email.d.ts.map +1 -0
- package/dist/client/actions/email.js +86 -0
- package/dist/client/actions/email.js.map +1 -0
- package/dist/client/actions/oauth.d.ts +112 -0
- package/dist/client/actions/oauth.d.ts.map +1 -0
- package/dist/client/actions/oauth.js +103 -0
- package/dist/client/actions/oauth.js.map +1 -0
- package/dist/client/actions/passkey.d.ts +140 -0
- package/dist/client/actions/passkey.d.ts.map +1 -0
- package/dist/client/actions/passkey.js +170 -0
- package/dist/client/actions/passkey.js.map +1 -0
- package/dist/client/actions/realm.d.ts +25 -0
- package/dist/client/actions/realm.d.ts.map +1 -0
- package/dist/client/actions/realm.js +16 -0
- package/dist/client/actions/realm.js.map +1 -0
- package/dist/client/actions/redirect.d.ts +152 -0
- package/dist/client/actions/redirect.d.ts.map +1 -0
- package/dist/client/actions/redirect.js +311 -0
- package/dist/client/actions/redirect.js.map +1 -0
- package/dist/client/internal/accessKey.d.ts +21 -0
- package/dist/client/internal/accessKey.d.ts.map +1 -0
- package/dist/client/internal/accessKey.js +38 -0
- package/dist/client/internal/accessKey.js.map +1 -0
- package/dist/client/internal/account.d.ts +17 -0
- package/dist/client/internal/account.d.ts.map +1 -0
- package/dist/client/internal/account.js +3 -0
- package/dist/client/internal/account.js.map +1 -0
- package/dist/client/internal/api.d.ts +110 -0
- package/dist/client/internal/api.d.ts.map +1 -0
- package/dist/client/internal/api.js +136 -0
- package/dist/client/internal/api.js.map +1 -0
- package/dist/client/internal/headless.d.ts +159 -0
- package/dist/client/internal/headless.d.ts.map +1 -0
- package/dist/client/internal/headless.js +196 -0
- package/dist/client/internal/headless.js.map +1 -0
- package/dist/client/internal/indexedDb.d.ts +8 -0
- package/dist/client/internal/indexedDb.d.ts.map +1 -0
- package/dist/client/internal/indexedDb.js +32 -0
- package/dist/client/internal/indexedDb.js.map +1 -0
- package/dist/client/internal/request.d.ts +56 -0
- package/dist/client/internal/request.d.ts.map +1 -0
- package/dist/client/internal/request.js +44 -0
- package/dist/client/internal/request.js.map +1 -0
- package/dist/client/internal/store.d.ts +12 -0
- package/dist/client/internal/store.d.ts.map +1 -0
- package/dist/client/internal/store.js +15 -0
- package/dist/client/internal/store.js.map +1 -0
- package/dist/client/internal/verifier.d.ts +25 -0
- package/dist/client/internal/verifier.d.ts.map +1 -0
- package/dist/client/internal/verifier.js +52 -0
- package/dist/client/internal/verifier.js.map +1 -0
- package/dist/client.d.ts +18 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +18 -0
- package/dist/client.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/dist/internal/Apps.d.ts +3169 -0
- package/dist/internal/Apps.d.ts.map +1 -0
- package/dist/internal/Apps.js +948 -0
- package/dist/internal/Apps.js.map +1 -0
- package/dist/internal/Auth.d.ts +4287 -0
- package/dist/internal/Auth.d.ts.map +1 -0
- package/dist/internal/Auth.js +185 -0
- package/dist/internal/Auth.js.map +1 -0
- package/dist/internal/Authorize.d.ts +526 -0
- package/dist/internal/Authorize.d.ts.map +1 -0
- package/dist/internal/Authorize.js +330 -0
- package/dist/internal/Authorize.js.map +1 -0
- package/dist/internal/Cache.d.ts +56 -0
- package/dist/internal/Cache.d.ts.map +1 -0
- package/dist/internal/Cache.js +65 -0
- package/dist/internal/Cache.js.map +1 -0
- package/dist/internal/Chain.d.ts +738 -0
- package/dist/internal/Chain.d.ts.map +1 -0
- package/dist/internal/Chain.js +65 -0
- package/dist/internal/Chain.js.map +1 -0
- package/dist/internal/ChainList.d.ts +117 -0
- package/dist/internal/ChainList.d.ts.map +1 -0
- package/dist/internal/ChainList.js +148 -0
- package/dist/internal/ChainList.js.map +1 -0
- package/dist/internal/ChainName.d.ts +11 -0
- package/dist/internal/ChainName.d.ts.map +1 -0
- package/dist/internal/ChainName.js +13 -0
- package/dist/internal/ChainName.js.map +1 -0
- package/dist/internal/CodeEmail.d.ts +38 -0
- package/dist/internal/CodeEmail.d.ts.map +1 -0
- package/dist/internal/CodeEmail.js +85 -0
- package/dist/internal/CodeEmail.js.map +1 -0
- package/dist/internal/ConfigurableAccount.d.ts +600 -0
- package/dist/internal/ConfigurableAccount.d.ts.map +1 -0
- package/dist/internal/ConfigurableAccount.js +795 -0
- package/dist/internal/ConfigurableAccount.js.map +1 -0
- package/dist/internal/Device.d.ts +246 -0
- package/dist/internal/Device.d.ts.map +1 -0
- package/dist/internal/Device.js +257 -0
- package/dist/internal/Device.js.map +1 -0
- package/dist/internal/Env.d.ts +97 -0
- package/dist/internal/Env.d.ts.map +1 -0
- package/dist/internal/Env.js +2 -0
- package/dist/internal/Env.js.map +1 -0
- package/dist/internal/ErrorResponse.d.ts +608 -0
- package/dist/internal/ErrorResponse.d.ts.map +1 -0
- package/dist/internal/ErrorResponse.js +701 -0
- package/dist/internal/ErrorResponse.js.map +1 -0
- package/dist/internal/Id.d.ts +10 -0
- package/dist/internal/Id.d.ts.map +1 -0
- package/dist/internal/Id.js +34 -0
- package/dist/internal/Id.js.map +1 -0
- package/dist/internal/KeyAuthorization.d.ts +1650 -0
- package/dist/internal/KeyAuthorization.d.ts.map +1 -0
- package/dist/internal/KeyAuthorization.js +1187 -0
- package/dist/internal/KeyAuthorization.js.map +1 -0
- package/dist/internal/Limits.d.ts +70 -0
- package/dist/internal/Limits.d.ts.map +1 -0
- package/dist/internal/Limits.js +36 -0
- package/dist/internal/Limits.js.map +1 -0
- package/dist/internal/Log.d.ts +34 -0
- package/dist/internal/Log.d.ts.map +1 -0
- package/dist/internal/Log.js +99 -0
- package/dist/internal/Log.js.map +1 -0
- package/dist/internal/LogLine.d.ts +29 -0
- package/dist/internal/LogLine.d.ts.map +1 -0
- package/dist/internal/LogLine.js +50 -0
- package/dist/internal/LogLine.js.map +1 -0
- package/dist/internal/Migrations.d.ts +28 -0
- package/dist/internal/Migrations.d.ts.map +1 -0
- package/dist/internal/Migrations.js +82 -0
- package/dist/internal/Migrations.js.map +1 -0
- package/dist/internal/Owner.d.ts +230 -0
- package/dist/internal/Owner.d.ts.map +1 -0
- package/dist/internal/Owner.js +101 -0
- package/dist/internal/Owner.js.map +1 -0
- package/dist/internal/Passkey.d.ts +901 -0
- package/dist/internal/Passkey.d.ts.map +1 -0
- package/dist/internal/Passkey.js +1185 -0
- package/dist/internal/Passkey.js.map +1 -0
- package/dist/internal/PendingKey.d.ts +49 -0
- package/dist/internal/PendingKey.d.ts.map +1 -0
- package/dist/internal/PendingKey.js +58 -0
- package/dist/internal/PendingKey.js.map +1 -0
- package/dist/internal/Privy.d.ts +138 -0
- package/dist/internal/Privy.d.ts.map +1 -0
- package/dist/internal/Privy.js +285 -0
- package/dist/internal/Privy.js.map +1 -0
- package/dist/internal/RateLimit.d.ts +218 -0
- package/dist/internal/RateLimit.d.ts.map +1 -0
- package/dist/internal/RateLimit.js +209 -0
- package/dist/internal/RateLimit.js.map +1 -0
- package/dist/internal/Realm.d.ts +290 -0
- package/dist/internal/Realm.d.ts.map +1 -0
- package/dist/internal/Realm.js +502 -0
- package/dist/internal/Realm.js.map +1 -0
- package/dist/internal/RequestId.d.ts +16 -0
- package/dist/internal/RequestId.d.ts.map +1 -0
- package/dist/internal/RequestId.js +78 -0
- package/dist/internal/RequestId.js.map +1 -0
- package/dist/internal/SigningKey.d.ts +126 -0
- package/dist/internal/SigningKey.d.ts.map +1 -0
- package/dist/internal/SigningKey.js +221 -0
- package/dist/internal/SigningKey.js.map +1 -0
- package/dist/internal/TempoAccount.d.ts +181 -0
- package/dist/internal/TempoAccount.d.ts.map +1 -0
- package/dist/internal/TempoAccount.js +369 -0
- package/dist/internal/TempoAccount.js.map +1 -0
- package/dist/internal/TestInbox.d.ts +42 -0
- package/dist/internal/TestInbox.d.ts.map +1 -0
- package/dist/internal/TestInbox.js +20 -0
- package/dist/internal/TestInbox.js.map +1 -0
- package/dist/internal/Timing.d.ts +52 -0
- package/dist/internal/Timing.d.ts.map +1 -0
- package/dist/internal/Timing.js +116 -0
- package/dist/internal/Timing.js.map +1 -0
- package/dist/internal/Validation.d.ts +52 -0
- package/dist/internal/Validation.d.ts.map +1 -0
- package/dist/internal/Validation.js +22 -0
- package/dist/internal/Validation.js.map +1 -0
- package/dist/internal/Verification.d.ts +24 -0
- package/dist/internal/Verification.d.ts.map +1 -0
- package/dist/internal/Verification.js +37 -0
- package/dist/internal/Verification.js.map +1 -0
- package/dist/internal/Wallet.d.ts +66 -0
- package/dist/internal/Wallet.d.ts.map +1 -0
- package/dist/internal/Wallet.js +59 -0
- package/dist/internal/Wallet.js.map +1 -0
- package/dist/internal/owners/Passkey.d.ts +9 -0
- package/dist/internal/owners/Passkey.d.ts.map +1 -0
- package/dist/internal/owners/Passkey.js +58 -0
- package/dist/internal/owners/Passkey.js.map +1 -0
- package/dist/internal/owners/Privy.d.ts +13 -0
- package/dist/internal/owners/Privy.d.ts.map +1 -0
- package/dist/internal/owners/Privy.js +59 -0
- package/dist/internal/owners/Privy.js.map +1 -0
- package/dist/internal/owners/Secp256k1.d.ts +12 -0
- package/dist/internal/owners/Secp256k1.d.ts.map +1 -0
- package/dist/internal/owners/Secp256k1.js +99 -0
- package/dist/internal/owners/Secp256k1.js.map +1 -0
- package/dist/worker.d.ts +18 -0
- package/dist/worker.d.ts.map +1 -0
- package/dist/worker.js +18 -0
- package/dist/worker.js.map +1 -0
- package/package.json +83 -3
- package/src/Api.ts +157 -0
- package/src/App.ts +316 -0
- package/src/api/account.ts +2266 -0
- package/src/api/authenticate.ts +1662 -0
- package/src/api/authorize.ts +1086 -0
- package/src/api/device.ts +516 -0
- package/src/api/health.ts +72 -0
- package/src/api/lib/AccountStep.ts +485 -0
- package/src/api/lib/Auth.ts +164 -0
- package/src/api/lib/Configure.ts +921 -0
- package/src/api/lib/Consent.ts +388 -0
- package/src/api/lib/Cors.ts +160 -0
- package/src/api/lib/Database.ts +10 -0
- package/src/api/lib/DeviceRequest.ts +244 -0
- package/src/api/lib/FirstAccount.ts +136 -0
- package/src/api/lib/Headless.ts +616 -0
- package/src/api/lib/IsolateCache.ts +28 -0
- package/src/api/lib/KeySigner.ts +690 -0
- package/src/api/lib/PasskeyLink.ts +162 -0
- package/src/api/lib/Session.ts +64 -0
- package/src/api/lib/SignInConsent.ts +393 -0
- package/src/api/oauth.ts +1796 -0
- package/src/app/components/CodeInput.tsx +153 -0
- package/src/app/components/DevTools.tsx +1071 -0
- package/src/app/components/Grant.tsx +476 -0
- package/src/app/components/icons/BRLA.png +0 -0
- package/src/app/components/icons/BRZ.svg +1 -0
- package/src/app/components/icons/CHFAU.png +0 -0
- package/src/app/components/icons/DLUSD.png +0 -0
- package/src/app/components/icons/EURAU.svg +1 -0
- package/src/app/components/icons/EURC.e.svg +1 -0
- package/src/app/components/icons/GBPA.svg +4 -0
- package/src/app/components/icons/GUSD.svg +1 -0
- package/src/app/components/icons/MACH.svg +4 -0
- package/src/app/components/icons/OUSD.svg +5 -0
- package/src/app/components/icons/PRIME.svg +14 -0
- package/src/app/components/icons/SBC.svg +1 -0
- package/src/app/components/icons/SEKAU.svg +5 -0
- package/src/app/components/icons/USD1.svg +30 -0
- package/src/app/components/icons/USDB.svg +11 -0
- package/src/app/components/icons/USDC.e.svg +1 -0
- package/src/app/components/icons/USDT0.svg +1 -0
- package/src/app/components/icons/USDY.svg +16 -0
- package/src/app/components/icons/USDe.svg +1 -0
- package/src/app/components/icons/YLDS.svg +3 -0
- package/src/app/components/icons/alphaUSD.svg +1 -0
- package/src/app/components/icons/betaUSD.svg +1 -0
- package/src/app/components/icons/cUSD.svg +1 -0
- package/src/app/components/icons/cbBTC.svg +1 -0
- package/src/app/components/icons/frxUSD.svg +1 -0
- package/src/app/components/icons/goUSD.svg +5 -0
- package/src/app/components/icons/iUSD.svg +1 -0
- package/src/app/components/icons/pathUSD.svg +25 -0
- package/src/app/components/icons/rUSD.svg +1 -0
- package/src/app/components/icons/reUSD.svg +1 -0
- package/src/app/components/icons/sUSDe.svg +1 -0
- package/src/app/components/icons/siUSD.svg +1 -0
- package/src/app/components/icons/stcUSD.svg +1 -0
- package/src/app/components/icons/syrupUSDC.svg +5 -0
- package/src/app/components/icons/thetaUSD.svg +1 -0
- package/src/app/components/icons/wYLDS.svg +10 -0
- package/src/app/components/icons/wsrUSD.svg +1 -0
- package/src/app/components/logos/OUSD.dark.svg +17 -0
- package/src/app/components/logos/OUSD.light.svg +17 -0
- package/src/app/coverage.server.ts +73 -0
- package/src/app/coverage.ts +69 -0
- package/src/app/crons/cleanup.ts +104 -0
- package/src/app/db/auth.ts +440 -0
- package/src/app/db/migrations/0000_better_auth.sql +53 -0
- package/src/app/db/migrations/0001_oauth_provider.sql +162 -0
- package/src/app/db/migrations/0002_device_code.sql +17 -0
- package/src/app/db/migrations/0003_realms.sql +27 -0
- package/src/app/db/migrations/0004_default_realm.sql +2 -0
- package/src/app/db/migrations/0005_passkeys.sql +30 -0
- package/src/app/db/migrations/0006_first_accounts.sql +9 -0
- package/src/app/db/migrations/0007_pending_keys.sql +13 -0
- package/src/app/db/migrations/0008_secp256k1_owners.sql +18 -0
- package/src/app/db/migrations/0009_device_requests.sql +8 -0
- package/src/app/db/migrations/0010_device_keys.sql +4 -0
- package/src/app/db/migrations/0011_registered_passkeys.sql +2 -0
- package/src/app/db/migrations/0012_passkey_accounts.sql +7 -0
- package/src/app/db/migrations/0013_first_party_apps.sql +4 -0
- package/src/app/db/migrations/0014_logout_revokes_tokens.sql +17 -0
- package/src/app/db/migrations/0015_expiry_indexes.sql +9 -0
- package/src/app/db/migrations/0016_configurable_accounts.sql +15 -0
- package/src/app/db/migrations/0017_account_config_keys.sql +3 -0
- package/src/app/db/migrations/0018_better_auth_1_8.sql +9 -0
- package/src/app/db/migrations/0019_drop_provider_account_index.sql +1 -0
- package/src/app/db/migrations/meta/0000_snapshot.json +362 -0
- package/src/app/db/migrations/meta/0001_snapshot.json +1487 -0
- package/src/app/db/migrations/meta/0002_snapshot.json +1603 -0
- package/src/app/db/migrations/meta/0003_snapshot.json +1760 -0
- package/src/app/db/migrations/meta/0004_snapshot.json +1760 -0
- package/src/app/db/migrations/meta/0005_snapshot.json +1911 -0
- package/src/app/db/migrations/meta/0006_snapshot.json +1967 -0
- package/src/app/db/migrations/meta/0007_snapshot.json +2047 -0
- package/src/app/db/migrations/meta/0008_snapshot.json +2157 -0
- package/src/app/db/migrations/meta/0009_snapshot.json +2207 -0
- package/src/app/db/migrations/meta/0010_snapshot.json +2231 -0
- package/src/app/db/migrations/meta/0011_snapshot.json +2231 -0
- package/src/app/db/migrations/meta/0012_snapshot.json +2231 -0
- package/src/app/db/migrations/meta/0013_snapshot.json +2231 -0
- package/src/app/db/migrations/meta/0014_snapshot.json +2231 -0
- package/src/app/db/migrations/meta/0015_snapshot.json +2375 -0
- package/src/app/db/migrations/meta/0016_snapshot.json +2475 -0
- package/src/app/db/migrations/meta/0017_snapshot.json +2481 -0
- package/src/app/db/migrations/meta/0018_snapshot.json +2535 -0
- package/src/app/db/migrations/meta/0019_snapshot.json +2514 -0
- package/src/app/db/migrations/meta/_journal.json +146 -0
- package/src/app/db/schema.ts +241 -0
- package/src/app/db/table.ts +31 -0
- package/src/app/env.ts +57 -0
- package/src/app/inbox.ts +190 -0
- package/src/app/lib/Client.ts +82 -0
- package/src/app/lib/Inbox.ts +11 -0
- package/src/app/lib/Loader.ts +21 -0
- package/src/app/lib/Upgrade.ts +221 -0
- package/src/app/package.json +8 -0
- package/src/app/public/_headers +4 -0
- package/src/app/routeTree.gen.ts +219 -0
- package/src/app/router.tsx +47 -0
- package/src/app/routes/[_].flows.tsx +4254 -0
- package/src/app/routes/__root.tsx +172 -0
- package/src/app/routes/authorize.tsx +379 -0
- package/src/app/routes/choose-account.tsx +144 -0
- package/src/app/routes/deposit.tsx +107 -0
- package/src/app/routes/device.tsx +273 -0
- package/src/app/routes/error.tsx +62 -0
- package/src/app/routes/index.tsx +511 -0
- package/src/app/routes/login.tsx +577 -0
- package/src/app/screens/Account.tsx +559 -0
- package/src/app/screens/Approval.tsx +444 -0
- package/src/app/screens/ChooseAccount.tsx +206 -0
- package/src/app/screens/Deposit.tsx +523 -0
- package/src/app/screens/DeviceApproval.tsx +500 -0
- package/src/app/screens/NotFound.tsx +62 -0
- package/src/app/screens/SignIn.tsx +372 -0
- package/src/app/screens/WalletUpgrade.tsx +121 -0
- package/src/app/screens/chains/base.svg +3 -0
- package/src/app/screens/chains/ethereum.svg +11 -0
- package/src/app/screens/chains/solana.svg +4 -0
- package/src/app/screens/chains/tempo.svg +4 -0
- package/src/app/server.ts +342 -0
- package/src/app/vite.config.ts +128 -0
- package/src/app/void.config.ts +36 -0
- package/src/app/wallet.ts +69 -0
- package/src/app/zyzz.config.ts +52 -0
- package/src/cli/Admin.ts +74 -0
- package/src/cli/Apps.ts +27 -0
- package/src/cli/Cli.ts +41 -0
- package/src/cli/Project.ts +119 -0
- package/src/cli/Realms.ts +49 -0
- package/src/cli/Session.ts +290 -0
- package/src/cli/User.ts +40 -0
- package/src/cli/V1.ts +54 -0
- package/src/cli/bin.ts +44 -0
- package/src/cli/commands/admin/apps/create.ts +96 -0
- package/src/cli/commands/admin/apps/delete.ts +38 -0
- package/src/cli/commands/admin/apps/index.ts +15 -0
- package/src/cli/commands/admin/apps/list.ts +25 -0
- package/src/cli/commands/admin/apps/rotate-secret.ts +47 -0
- package/src/cli/commands/admin/apps/update.ts +79 -0
- package/src/cli/commands/admin/index.ts +14 -0
- package/src/cli/commands/admin/migrate.ts +19 -0
- package/src/cli/commands/admin/realms/add.ts +40 -0
- package/src/cli/commands/admin/realms/index.ts +14 -0
- package/src/cli/commands/admin/realms/list.ts +38 -0
- package/src/cli/commands/admin/realms/passkeys/index.ts +15 -0
- package/src/cli/commands/admin/realms/passkeys/set.ts +44 -0
- package/src/cli/commands/admin/realms/privy/index.ts +14 -0
- package/src/cli/commands/admin/realms/privy/set.ts +69 -0
- package/src/cli/commands/admin/realms/remove.ts +33 -0
- package/src/cli/commands/admin/realms/secp256k1/disable.ts +40 -0
- package/src/cli/commands/admin/realms/secp256k1/enable.ts +40 -0
- package/src/cli/commands/admin/realms/secp256k1/index.ts +19 -0
- package/src/cli/commands/admin/realms/set.ts +46 -0
- package/src/cli/commands/admin/rotate-key.ts +47 -0
- package/src/cli/commands/init.ts +42 -0
- package/src/cli/commands/login.ts +32 -0
- package/src/cli/commands/logout.ts +19 -0
- package/src/cli/commands/whoami.ts +23 -0
- package/src/client/Actions.ts +180 -0
- package/src/client/Auth.ts +267 -0
- package/src/client/Authorization.ts +34 -0
- package/src/client/Decorator.ts +444 -0
- package/src/client/Key.ts +137 -0
- package/src/client/Pending.ts +45 -0
- package/src/client/Permissions.ts +41 -0
- package/src/client/Storage.ts +29 -0
- package/src/client/TempoAccount.ts +55 -0
- package/src/client/Tokens.ts +27 -0
- package/src/client/User.ts +23 -0
- package/src/client/actions/account.ts +171 -0
- package/src/client/actions/device.ts +166 -0
- package/src/client/actions/email.ts +164 -0
- package/src/client/actions/oauth.ts +179 -0
- package/src/client/actions/passkey.ts +333 -0
- package/src/client/actions/realm.ts +37 -0
- package/src/client/actions/redirect.ts +502 -0
- package/src/client/internal/accessKey.ts +54 -0
- package/src/client/internal/account.ts +18 -0
- package/src/client/internal/api.ts +242 -0
- package/src/client/internal/headless.ts +308 -0
- package/src/client/internal/indexedDb.ts +44 -0
- package/src/client/internal/request.ts +70 -0
- package/src/client/internal/store.ts +20 -0
- package/src/client/internal/verifier.ts +75 -0
- package/src/client.ts +17 -0
- package/src/index.ts +5 -0
- package/src/internal/Apps.ts +1283 -0
- package/src/internal/Auth.ts +273 -0
- package/src/internal/Authorize.ts +433 -0
- package/src/internal/Balance.ts +144 -0
- package/src/internal/BodyLimit.ts +31 -0
- package/src/internal/Cache.ts +119 -0
- package/src/internal/Chain.ts +99 -0
- package/src/internal/ChainList.ts +270 -0
- package/src/internal/ChainName.ts +14 -0
- package/src/internal/ChainStatus.ts +65 -0
- package/src/internal/CodeEmail.ts +138 -0
- package/src/internal/ConfigurableAccount.ts +1315 -0
- package/src/internal/Device.ts +471 -0
- package/src/internal/Env.ts +92 -0
- package/src/internal/ErrorResponse.ts +896 -0
- package/src/internal/Faucet.ts +43 -0
- package/src/internal/Id.ts +41 -0
- package/src/internal/KeyAuthorization.ts +1536 -0
- package/src/internal/Limits.ts +40 -0
- package/src/internal/Log.ts +166 -0
- package/src/internal/LogLine.ts +81 -0
- package/src/internal/Logout.ts +356 -0
- package/src/internal/Migrations.ts +120 -0
- package/src/internal/OpenApi.ts +300 -0
- package/src/internal/Owner.ts +310 -0
- package/src/internal/Passkey.ts +1904 -0
- package/src/internal/PendingKey.ts +104 -0
- package/src/internal/Privy.ts +536 -0
- package/src/internal/RateLimit.ts +346 -0
- package/src/internal/Realm.ts +814 -0
- package/src/internal/RequestId.ts +118 -0
- package/src/internal/SignInGrant.ts +175 -0
- package/src/internal/SigningKey.ts +319 -0
- package/src/internal/TempoAccount.ts +545 -0
- package/src/internal/TestInbox.ts +51 -0
- package/src/internal/Timing.ts +172 -0
- package/src/internal/Validation.ts +52 -0
- package/src/internal/Verification.ts +58 -0
- package/src/internal/Wallet.ts +101 -0
- package/src/internal/owners/Passkey.ts +76 -0
- package/src/internal/owners/Privy.ts +82 -0
- package/src/internal/owners/Secp256k1.ts +139 -0
- package/src/types/app.d.ts +39 -0
- package/src/worker.ts +17 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Authentication-C3oNZAVX.js","names":["Authentication.deserializeOptions","Authentication.sign","Authentication.serializeResponse","__toESM","serializeResponse","sign$1","deserializeOptions","require_react","shouldThrowError","shallowEqualObjects","noop","hashKey","createRetryer","useQueryClient","notifyManager","Removable","Mutation","#client","config","#mutationCache","#observers","getDefaultState","options","observer","x","#retryer","onContinue","#dispatch","mutationFnContext","retryer","variables","restored","isPaused","context","data","error","reducer","action","state","MutationObserver","Subscribable","client","#updateResult","prevOptions","#currentMutation","#notify","#currentResult","#mutateOptions","onMutateResult","listener","import_react","useMutation","queryClient","result","onStoreChange","mutate","args","sign","response","deserialized"],"sources":["../../../../../node_modules/.pnpm/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/mutation.js","../../../../../node_modules/.pnpm/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/mutationObserver.js","../../../../../node_modules/.pnpm/@tanstack+react-query@5.104.1_react@19.3.0/node_modules/@tanstack/react-query/build/modern/useMutation.js","../../../../../node_modules/.pnpm/webauthx@0.1.2_typescript@7.0.2_zod@4.6.7/node_modules/webauthx/dist/client/Authentication.js"],"sourcesContent":["import { notifyManager } from \"./notifyManager.js\";\nimport { createRetryer } from \"./retryer.js\";\nimport { Removable } from \"./removable.js\";\n//#region src/mutation.ts\n/**\n* Represents a single mutation attempt. A `Mutation` holds the mutation's\n* options, state (data/error/status), and the `MutationObserver`s currently\n* subscribed to it.\n*\n* Instances are created and managed internally by `MutationCache`; application\n* code typically interacts with mutations indirectly through `QueryClient` or\n* a framework hook like `useMutation`. Direct access to a `Mutation` instance\n* is possible via `mutationCache.find()`/`getAll()` for inspecting cache state.\n*\n* @example\n* ```ts\n* const mutationCache = queryClient.getMutationCache()\n*\n* const mutation = mutationCache.find({ mutationKey: ['addPost'] })\n* ```\n*/\nvar Mutation = class extends Removable {\n\t#client;\n\t#observers;\n\t#mutationCache;\n\t#retryer;\n\tconstructor(config) {\n\t\tsuper();\n\t\tthis.#client = config.client;\n\t\tthis.mutationId = config.mutationId;\n\t\tthis.#mutationCache = config.mutationCache;\n\t\tthis.#observers = [];\n\t\tthis.state = config.state || getDefaultState();\n\t\tthis.setOptions(config.options);\n\t\tthis.scheduleGc();\n\t}\n\t/** @internal */\n\tsetOptions(options) {\n\t\tthis.options = options;\n\t\tthis.updateGcTime(this.options.gcTime);\n\t}\n\t/**\n\t* The `meta` object passed in the mutation's options, if any.\n\t*/\n\tget meta() {\n\t\treturn this.options.meta;\n\t}\n\t/** @internal */\n\taddObserver(observer) {\n\t\tif (!this.#observers.includes(observer)) {\n\t\t\tthis.#observers.push(observer);\n\t\t\tthis.clearGcTimeout();\n\t\t\tthis.#mutationCache.notify({\n\t\t\t\ttype: \"observerAdded\",\n\t\t\t\tmutation: this,\n\t\t\t\tobserver\n\t\t\t});\n\t\t}\n\t}\n\t/** @internal */\n\tremoveObserver(observer) {\n\t\tthis.#observers = this.#observers.filter((x) => x !== observer);\n\t\tthis.scheduleGc();\n\t\tthis.#mutationCache.notify({\n\t\t\ttype: \"observerRemoved\",\n\t\t\tmutation: this,\n\t\t\tobserver\n\t\t});\n\t}\n\toptionalRemove() {\n\t\tif (!this.#observers.length) {\n\t\t\tif (this.state.status === \"pending\") this.scheduleGc();\n\t\t\telse this.#mutationCache.remove(this);\n\t\t}\n\t}\n\t/**\n\t* Resumes a mutation that is currently paused or was restored from a\n\t* dehydrated, still-`pending` state.\n\t*\n\t* - If this mutation has an active retryer (it paused mid-attempt, e.g. due\n\t* to the network mode or scope-based queuing), its retryer is resumed.\n\t* - Otherwise, if the mutation's status is still `pending` (e.g. it was\n\t* dehydrated while an attempt was in flight and never got a retryer in\n\t* this instance), `execute` is called again with the last known variables.\n\t* - Otherwise the mutation has already settled and this resolves immediately\n\t* without running anything again.\n\t*\n\t* @example\n\t* ```ts\n\t* // typically driven by reconnect handling, e.g. queryClient.resumePausedMutations()\n\t* const mutation = mutationCache.find({ mutationKey: ['addPost'] })\n\t* await mutation?.continue()\n\t* ```\n\t*\n\t* @see {@link Mutation#execute}\n\t*/\n\tcontinue() {\n\t\treturn this.#retryer?.continue() ?? (this.state.status === \"pending\" ? this.execute(this.state.variables) : Promise.resolve());\n\t}\n\t/**\n\t* Runs the mutation function for the given variables through a retryer, and\n\t* drives the mutation's state and lifecycle callbacks through to settlement.\n\t*\n\t* If this mutation's state is already `pending` when `execute` is called\n\t* (i.e. it was restored, still in-flight, from a dehydrated state), the\n\t* `onMutate` step is skipped and a `continue` action is dispatched to\n\t* unpause it; otherwise a `pending` action is dispatched first, then the\n\t* mutation cache's `onMutate` and the mutation's own `onMutate` option are\n\t* awaited in that order, and the resulting context is stored.\n\t*\n\t* The mutation function is then run (subject to `retry`/`retryDelay`/\n\t* `networkMode`, and to the mutation cache's scope-based serialization).\n\t* On success, the cache's `onSuccess`/`onSettled` callbacks run before the\n\t* mutation's own `onSuccess`/`onSettled` options, a `success` action is\n\t* dispatched, and the resolved data is returned. On failure, the same\n\t* cache-then-option ordering is used for `onError`/`onSettled`, but each of\n\t* those four callbacks is individually caught so that a throwing callback\n\t* cannot mask the original error; an `error` action is then dispatched and\n\t* the original error is re-thrown.\n\t*\n\t* @example\n\t* ```ts\n\t* // Called internally by `MutationObserver.mutate` and `Mutation.continue` —\n\t* // applications normally trigger mutations through those, not this method.\n\t* const data = await mutation.execute(variables)\n\t* ```\n\t*\n\t* @see {@link Mutation#continue}\n\t*/\n\tasync execute(variables) {\n\t\tconst onContinue = () => {\n\t\t\tthis.#dispatch({ type: \"continue\" });\n\t\t};\n\t\tconst mutationFnContext = {\n\t\t\tclient: this.#client,\n\t\t\tmeta: this.options.meta,\n\t\t\tmutationKey: this.options.mutationKey\n\t\t};\n\t\tconst retryer = this.#retryer = createRetryer({\n\t\t\tfn: () => {\n\t\t\t\tif (!this.options.mutationFn) return Promise.reject(/* @__PURE__ */ new Error(\"No mutationFn found\"));\n\t\t\t\treturn this.options.mutationFn(variables, mutationFnContext);\n\t\t\t},\n\t\t\tonFail: (failureCount, error) => {\n\t\t\t\tthis.#dispatch({\n\t\t\t\t\ttype: \"failed\",\n\t\t\t\t\tfailureCount,\n\t\t\t\t\terror\n\t\t\t\t});\n\t\t\t},\n\t\t\tonPause: () => {\n\t\t\t\tthis.#dispatch({ type: \"pause\" });\n\t\t\t},\n\t\t\tonContinue,\n\t\t\tretry: this.options.retry ?? 0,\n\t\t\tretryDelay: this.options.retryDelay,\n\t\t\tnetworkMode: this.options.networkMode,\n\t\t\tcanRun: () => this.#mutationCache.canRun(this)\n\t\t});\n\t\tconst restored = this.state.status === \"pending\";\n\t\tconst isPaused = !retryer.canStart();\n\t\ttry {\n\t\t\tif (restored) onContinue();\n\t\t\telse {\n\t\t\t\tthis.#dispatch({\n\t\t\t\t\ttype: \"pending\",\n\t\t\t\t\tvariables,\n\t\t\t\t\tisPaused\n\t\t\t\t});\n\t\t\t\tif (this.#mutationCache.config.onMutate) await this.#mutationCache.config.onMutate(variables, this, mutationFnContext);\n\t\t\t\tconst context = await this.options.onMutate?.(variables, mutationFnContext);\n\t\t\t\tif (context !== this.state.context) this.#dispatch({\n\t\t\t\t\ttype: \"pending\",\n\t\t\t\t\tcontext,\n\t\t\t\t\tvariables,\n\t\t\t\t\tisPaused\n\t\t\t\t});\n\t\t\t}\n\t\t\tconst data = await retryer.start();\n\t\t\tawait this.#mutationCache.config.onSuccess?.(data, variables, this.state.context, this, mutationFnContext);\n\t\t\tawait this.options.onSuccess?.(data, variables, this.state.context, mutationFnContext);\n\t\t\tawait this.#mutationCache.config.onSettled?.(data, null, this.state.variables, this.state.context, this, mutationFnContext);\n\t\t\tawait this.options.onSettled?.(data, null, variables, this.state.context, mutationFnContext);\n\t\t\tthis.#dispatch({\n\t\t\t\ttype: \"success\",\n\t\t\t\tdata\n\t\t\t});\n\t\t\treturn data;\n\t\t} catch (error) {\n\t\t\ttry {\n\t\t\t\tawait this.#mutationCache.config.onError?.(error, variables, this.state.context, this, mutationFnContext);\n\t\t\t} catch (e) {\n\t\t\t\tPromise.reject(e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tawait this.options.onError?.(error, variables, this.state.context, mutationFnContext);\n\t\t\t} catch (e) {\n\t\t\t\tPromise.reject(e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tawait this.#mutationCache.config.onSettled?.(void 0, error, this.state.variables, this.state.context, this, mutationFnContext);\n\t\t\t} catch (e) {\n\t\t\t\tPromise.reject(e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tawait this.options.onSettled?.(void 0, error, variables, this.state.context, mutationFnContext);\n\t\t\t} catch (e) {\n\t\t\t\tPromise.reject(e);\n\t\t\t}\n\t\t\tthis.#dispatch({\n\t\t\t\ttype: \"error\",\n\t\t\t\terror\n\t\t\t});\n\t\t\tthrow error;\n\t\t} finally {\n\t\t\tif (this.#retryer === retryer) this.#retryer = void 0;\n\t\t\tthis.#mutationCache.runNext(this);\n\t\t}\n\t}\n\t#dispatch(action) {\n\t\tconst reducer = (state) => {\n\t\t\tswitch (action.type) {\n\t\t\t\tcase \"failed\": return {\n\t\t\t\t\t...state,\n\t\t\t\t\tfailureCount: action.failureCount,\n\t\t\t\t\tfailureReason: action.error\n\t\t\t\t};\n\t\t\t\tcase \"pause\": return {\n\t\t\t\t\t...state,\n\t\t\t\t\tisPaused: true\n\t\t\t\t};\n\t\t\t\tcase \"continue\": return {\n\t\t\t\t\t...state,\n\t\t\t\t\tisPaused: false\n\t\t\t\t};\n\t\t\t\tcase \"pending\": return {\n\t\t\t\t\t...state,\n\t\t\t\t\tcontext: action.context,\n\t\t\t\t\tdata: void 0,\n\t\t\t\t\tfailureCount: 0,\n\t\t\t\t\tfailureReason: null,\n\t\t\t\t\terror: null,\n\t\t\t\t\tisPaused: action.isPaused,\n\t\t\t\t\tstatus: \"pending\",\n\t\t\t\t\tvariables: action.variables,\n\t\t\t\t\tsubmittedAt: Date.now()\n\t\t\t\t};\n\t\t\t\tcase \"success\": return {\n\t\t\t\t\t...state,\n\t\t\t\t\tdata: action.data,\n\t\t\t\t\tfailureCount: 0,\n\t\t\t\t\tfailureReason: null,\n\t\t\t\t\terror: null,\n\t\t\t\t\tstatus: \"success\",\n\t\t\t\t\tisPaused: false\n\t\t\t\t};\n\t\t\t\tcase \"error\": return {\n\t\t\t\t\t...state,\n\t\t\t\t\tdata: void 0,\n\t\t\t\t\terror: action.error,\n\t\t\t\t\tfailureCount: state.failureCount + 1,\n\t\t\t\t\tfailureReason: action.error,\n\t\t\t\t\tisPaused: false,\n\t\t\t\t\tstatus: \"error\"\n\t\t\t\t};\n\t\t\t}\n\t\t};\n\t\tthis.state = reducer(this.state);\n\t\tnotifyManager.batch(() => {\n\t\t\tthis.#observers.forEach((observer) => {\n\t\t\t\tobserver.onMutationUpdate(action);\n\t\t\t});\n\t\t\tthis.#mutationCache.notify({\n\t\t\t\tmutation: this,\n\t\t\t\ttype: \"updated\",\n\t\t\t\taction\n\t\t\t});\n\t\t});\n\t}\n};\nfunction getDefaultState() {\n\treturn {\n\t\tcontext: void 0,\n\t\tdata: void 0,\n\t\terror: null,\n\t\tfailureCount: 0,\n\t\tfailureReason: null,\n\t\tisPaused: false,\n\t\tstatus: \"idle\",\n\t\tvariables: void 0,\n\t\tsubmittedAt: 0\n\t};\n}\n//#endregion\nexport { Mutation, getDefaultState };\n\n//# sourceMappingURL=mutation.js.map","import { hashKey, shallowEqualObjects } from \"./utils.js\";\nimport { Subscribable } from \"./subscribable.js\";\nimport { notifyManager } from \"./notifyManager.js\";\nimport { getDefaultState } from \"./mutation.js\";\n//#region src/mutationObserver.ts\n/**\n* Observes a single mutation and derives a `MutationObserverResult` from it.\n* A framework hook like `useMutation` creates one `MutationObserver` per hook\n* call, keeps it stable across re-renders, calls `setOptions` when the options\n* passed to the hook change, subscribes to it to re-render on updates, and\n* reads `getCurrentResult()` for the value to return. Calling `mutate()`\n* builds a new underlying `Mutation` in the `MutationCache` and executes it.\n*\n* @example\n* ```ts\n* const observer = new MutationObserver(queryClient, {\n* mutationFn: (variables: { title: string }) => addPost(variables),\n* })\n* ```\n*/\nvar MutationObserver = class extends Subscribable {\n\t#client;\n\t#currentResult = void 0;\n\t#currentMutation;\n\t#mutateOptions;\n\tconstructor(client, options) {\n\t\tsuper();\n\t\tthis.#client = client;\n\t\tthis.setOptions(options);\n\t\tthis.bindMethods();\n\t\tthis.#updateResult();\n\t}\n\tbindMethods() {\n\t\tthis.mutate = this.mutate.bind(this);\n\t\tthis.reset = this.reset.bind(this);\n\t}\n\t/**\n\t* Updates the observer's options.\n\t*\n\t* If the new `mutationKey` differs from the previous one (and both were\n\t* defined), the observer is reset, detaching it from the mutation it was\n\t* observing. Otherwise, if the currently observed mutation is still\n\t* `pending`, its options are updated in place as well.\n\t*\n\t* @example\n\t* ```ts\n\t* observer.setOptions({\n\t* mutationFn: (variables: { title: string }) => addPost(variables),\n\t* onSuccess: (data) => console.log(data),\n\t* })\n\t* ```\n\t*/\n\tsetOptions(options) {\n\t\tconst prevOptions = this.options;\n\t\tthis.options = this.#client.defaultMutationOptions(options);\n\t\tif (!shallowEqualObjects(this.options, prevOptions)) this.#client.getMutationCache().notify({\n\t\t\ttype: \"observerOptionsUpdated\",\n\t\t\tmutation: this.#currentMutation,\n\t\t\tobserver: this\n\t\t});\n\t\tif (prevOptions?.mutationKey && this.options.mutationKey && hashKey(prevOptions.mutationKey) !== hashKey(this.options.mutationKey)) this.reset();\n\t\telse if (this.#currentMutation?.state.status === \"pending\") this.#currentMutation.setOptions(this.options);\n\t}\n\tonSubscribe() {\n\t\tif (this.listeners.size === 1 && this.#currentMutation) {\n\t\t\tthis.#currentMutation.addObserver(this);\n\t\t\tthis.#updateResult();\n\t\t}\n\t}\n\tonUnsubscribe() {\n\t\tif (!this.hasListeners()) this.#currentMutation?.removeObserver(this);\n\t}\n\t/** @internal */\n\tonMutationUpdate(action) {\n\t\tthis.#updateResult();\n\t\tthis.#notify(action);\n\t}\n\t/**\n\t* Returns the observer's current result, derived from the observed\n\t* mutation's state (or the default, `idle` state if no mutation has been\n\t* built yet, e.g. before the first `mutate()` call or after `reset()`).\n\t*/\n\tgetCurrentResult() {\n\t\treturn this.#currentResult;\n\t}\n\t/**\n\t* Detaches the observer from the mutation it is currently observing (if\n\t* any) and resets the observed result back to its default, `idle` state.\n\t*\n\t* This does not cancel an in-flight mutation; the mutation itself keeps\n\t* running to completion and its own callbacks still fire, but this\n\t* observer stops reflecting its state and a subsequent `mutate()` call\n\t* will build a brand new mutation.\n\t*\n\t* @example\n\t* ```ts\n\t* observer.reset()\n\t* ```\n\t*\n\t* @see {@link MutationObserver#mutate}\n\t*/\n\treset() {\n\t\tthis.#currentMutation?.removeObserver(this);\n\t\tthis.#currentMutation = void 0;\n\t\tthis.#updateResult();\n\t\tthis.#notify();\n\t}\n\t/**\n\t* Builds a new `Mutation` in the `MutationCache` using the observer's\n\t* current options, detaches this observer from any previously observed\n\t* mutation, attaches it to the new one, and executes it with the given\n\t* variables.\n\t*\n\t* The optional per-call `options` (`onSuccess`/`onError`/`onSettled`) are\n\t* invoked once the mutation settles, in addition to any callbacks defined\n\t* on the observer's own options.\n\t*\n\t* @example\n\t* ```ts\n\t* await observer.mutate(\n\t* { title: 'New post' },\n\t* { onSuccess: (data) => console.log(data) },\n\t* )\n\t* ```\n\t*/\n\tmutate(variables, options) {\n\t\tthis.#mutateOptions = options;\n\t\tthis.#currentMutation?.removeObserver(this);\n\t\tthis.#currentMutation = this.#client.getMutationCache().build(this.#client, this.options);\n\t\tthis.#currentMutation.addObserver(this);\n\t\treturn this.#currentMutation.execute(variables);\n\t}\n\t#updateResult() {\n\t\tconst state = this.#currentMutation?.state ?? getDefaultState();\n\t\tthis.#currentResult = {\n\t\t\t...state,\n\t\t\tisPending: state.status === \"pending\",\n\t\t\tisSuccess: state.status === \"success\",\n\t\t\tisError: state.status === \"error\",\n\t\t\tisIdle: state.status === \"idle\",\n\t\t\tmutate: this.mutate,\n\t\t\treset: this.reset\n\t\t};\n\t}\n\t#notify(action) {\n\t\tnotifyManager.batch(() => {\n\t\t\tif (this.#mutateOptions && this.hasListeners()) {\n\t\t\t\tconst variables = this.#currentResult.variables;\n\t\t\t\tconst onMutateResult = this.#currentResult.context;\n\t\t\t\tconst context = {\n\t\t\t\t\tclient: this.#client,\n\t\t\t\t\tmeta: this.options.meta,\n\t\t\t\t\tmutationKey: this.options.mutationKey\n\t\t\t\t};\n\t\t\t\tif (action?.type === \"success\") {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tthis.#mutateOptions.onSuccess?.(action.data, variables, onMutateResult, context);\n\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\tPromise.reject(e);\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tthis.#mutateOptions.onSettled?.(action.data, null, variables, onMutateResult, context);\n\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\tPromise.reject(e);\n\t\t\t\t\t}\n\t\t\t\t} else if (action?.type === \"error\") {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tthis.#mutateOptions.onError?.(action.error, variables, onMutateResult, context);\n\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\tPromise.reject(e);\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tthis.#mutateOptions.onSettled?.(void 0, action.error, variables, onMutateResult, context);\n\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\tPromise.reject(e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.listeners.forEach((listener) => {\n\t\t\t\tlistener(this.#currentResult);\n\t\t\t});\n\t\t});\n\t}\n};\n//#endregion\nexport { MutationObserver };\n\n//# sourceMappingURL=mutationObserver.js.map","\"use client\";\nimport { useQueryClient } from \"./QueryClientProvider.js\";\nimport * as React from \"react\";\nimport { MutationObserver, noop, notifyManager, shouldThrowError } from \"@tanstack/query-core\";\n//#region src/useMutation.ts\n/**\n* Unlike queries, mutations are typically used to create/update/delete data or perform server side-effects.\n* `useMutation` is the hook for that.\n*\n* @see {@link mutationOptions} to share these options across multiple `useMutation` call sites, or to look\n* the mutation up elsewhere via its `mutationKey` (e.g. with `useMutationState`).\n* @param options - The {@link UseMutationOptions} to use — everything you can pass to `useMutation`.\n* @param queryClient - Use this to use a custom `QueryClient`. Otherwise, the one from the nearest context will\n* be used.\n* @returns `mutate`/`mutateAsync` also accept per-call `onSuccess`/`onError`/`onSettled` callbacks as a second\n* argument, useful for triggering call-site side effects (e.g. navigation) without coupling them to the shared\n* mutation definition. Hook-level callbacks (passed to `options`) fire for every mutation; per-call callbacks\n* fire only for the latest call you've made, and only while the component is still mounted — unmounting before\n* the mutation settles removes the subscription and prevents them from firing.\n*\n* @example\n* ```tsx\n* import { useMutation, useQueryClient } from '@tanstack/react-query'\n*\n* function AddTodo() {\n* const queryClient = useQueryClient()\n*\n* const addMutation = useMutation({\n* mutationFn: addTodo,\n* onSuccess: () => queryClient.invalidateQueries({ queryKey: ['todos'] }),\n* })\n*\n* return (\n* <button\n* onClick={() =>\n* addMutation.mutate('Item', {\n* onError: (error) => console.error('Failed to add item:', error),\n* })\n* }\n* >\n* Add\n* </button>\n* )\n* }\n* ```\n*\n* @example\n* Rendering the mutation's own state, rather than just firing it off:\n* ```tsx\n* import { useMutation, useQueryClient } from '@tanstack/react-query'\n*\n* function AddTodo() {\n* const queryClient = useQueryClient()\n*\n* const addMutation = useMutation({\n* mutationFn: addTodo,\n* onSuccess: () => queryClient.invalidateQueries({ queryKey: ['todos'] }),\n* })\n*\n* return (\n* <div>\n* {addMutation.isPending ? (\n* 'Adding todo...'\n* ) : (\n* <>\n* {addMutation.isError ? (\n* <div>An error occurred: {addMutation.error.message}</div>\n* ) : null}\n* <button onClick={() => addMutation.mutate('Item')}>Add</button>\n* </>\n* )}\n* </div>\n* )\n* }\n* ```\n*\n* @example\n* Optimistic update via `onMutate`, rolling back on `onError`:\n* ```tsx\n* import { useMutation, useQueryClient } from '@tanstack/react-query'\n*\n* function AddTodo() {\n* const queryClient = useQueryClient()\n*\n* const addMutation = useMutation({\n* mutationFn: addTodo,\n* onMutate: async (newTodo) => {\n* await queryClient.cancelQueries({ queryKey: ['todos'] })\n* const previousTodos = queryClient.getQueryData<Array<string>>(['todos'])\n*\n* queryClient.setQueryData<Array<string>>(['todos'], (old) => [\n* ...(old ?? []),\n* newTodo,\n* ])\n*\n* // Passed to `onError` as `onMutateResult` if the mutation fails.\n* return { previousTodos }\n* },\n* onError: (_err, _newTodo, onMutateResult) => {\n* queryClient.setQueryData(['todos'], onMutateResult?.previousTodos)\n* },\n* onSettled: () => {\n* queryClient.invalidateQueries({ queryKey: ['todos'] })\n* },\n* })\n*\n* return (\n* <button onClick={() => addMutation.mutate('Item')}>Add</button>\n* )\n* }\n* ```\n*\n* @example\n* Callbacks passed per call to `mutate` only fire for the last call — `mutateAsync` gives you a\n* promise per call instead, so you can wait for all of them when they succeed:\n* ```tsx\n* import { useMutation, useQueryClient } from '@tanstack/react-query'\n*\n* function AddTodos() {\n* const queryClient = useQueryClient()\n*\n* const addMutation = useMutation({\n* mutationFn: addTodo,\n* onSuccess: () => queryClient.invalidateQueries({ queryKey: ['todos'] }),\n* })\n*\n* async function handleAddAll(todos: Array<string>) {\n* try {\n* await Promise.all(todos.map((todo) => addMutation.mutateAsync(todo)))\n* } catch (error) {\n* console.error('Failed to add todos:', error)\n* }\n* }\n*\n* return (\n* <button onClick={() => handleAddAll(['Todo 1', 'Todo 2', 'Todo 3'])}>\n* Add all\n* </button>\n* )\n* }\n* ```\n*\n* @example\n* If some of the mutations above can fail independently of the others, and you want to know which ones\n* did — rather than losing that information the moment the first one rejects — swap `Promise.all` for\n* `Promise.allSettled`:\n* ```tsx\n* import { useMutation, useQueryClient } from '@tanstack/react-query'\n*\n* function AddTodos() {\n* const queryClient = useQueryClient()\n*\n* const addMutation = useMutation({\n* mutationFn: addTodo,\n* onSuccess: () => queryClient.invalidateQueries({ queryKey: ['todos'] }),\n* })\n*\n* async function handleAddAll(todos: Array<string>) {\n* const addResults = await Promise.allSettled(\n* todos.map((todo) => addMutation.mutateAsync(todo)),\n* )\n*\n* addResults.forEach((addResult, index) => {\n* if (addResult.status === 'rejected') {\n* console.error(`Failed to add \"${todos[index]}\":`, addResult.reason)\n* }\n* })\n* }\n*\n* return (\n* <button onClick={() => handleAddAll(['Todo 1', 'Todo 2', 'Todo 3'])}>\n* Add all\n* </button>\n* )\n* }\n* ```\n*/\nfunction useMutation(options, queryClient) {\n\tconst client = useQueryClient(queryClient);\n\tconst [observer] = React.useState(() => new MutationObserver(client, options));\n\tReact.useEffect(() => {\n\t\tobserver.setOptions(options);\n\t}, [observer, options]);\n\tconst result = React.useSyncExternalStore(React.useCallback((onStoreChange) => observer.subscribe(notifyManager.batchCalls(onStoreChange)), [observer]), () => observer.getCurrentResult(), () => observer.getCurrentResult());\n\tconst mutate = React.useCallback((...args) => {\n\t\tobserver.mutate(args[0], args[1]).catch(noop);\n\t}, [observer]);\n\tif (result.error && shouldThrowError(observer.options.throwOnError, [result.error])) throw result.error;\n\treturn {\n\t\t...result,\n\t\tmutate,\n\t\tmutateAsync: result.mutate\n\t};\n}\n//#endregion\nexport { useMutation };\n\n//# sourceMappingURL=useMutation.js.map","import { Authentication } from 'ox/webauthn';\n/**\n * Signs a challenge via `navigator.credentials.get`.\n *\n * Accepts either serialized options (from the server) or pre-formed\n * options. Returns a serialized response ready to send back to the server.\n *\n * @example\n * ```ts\n * import { Authentication } from 'webauthx/client'\n *\n * // 1. Fetch serialized options from the server.\n * const options = await fetch('/auth/challenge').then((r) => r.json())\n *\n * // 2. Prompt the user to sign the challenge.\n * const response = await Authentication.sign({ options })\n *\n * // 3. Send the response back to the server for verification.\n * await fetch('/auth/verify', {\n * method: 'POST',\n * body: JSON.stringify(response),\n * })\n * ```\n */\nexport async function sign(options) {\n const response = await (() => {\n if ('options' in options) {\n const deserialized = Authentication.deserializeOptions(options.options);\n return Authentication.sign({\n ...deserialized,\n getFn: options.getFn,\n });\n }\n return Authentication.sign(options);\n })();\n return Authentication.serializeResponse(response);\n}\n//# sourceMappingURL=Authentication.js.map"],"ignoreList":[0,1,2,3],"mappings":"A,6PAqBA,IAAIgB,EAAW,cAAcD,CAAU,CACtC,GACA,GACA,GACA,GACA,YAAY,EAAQ,CACnB,MAAM,EACN,KAAKE,GAAUC,EAAO,OACtB,KAAK,WAAaA,EAAO,WACzB,KAAKC,GAAiBD,EAAO,cAC7B,KAAKE,GAAa,CAAC,EACnB,KAAK,MAAQF,EAAO,OAASG,EAAgB,EAC7C,KAAK,WAAWH,EAAO,OAAO,EAC9B,KAAK,WAAW,CACjB,CAEA,WAAW,EAAS,CACnB,KAAK,QAAUI,EACf,KAAK,aAAa,KAAK,QAAQ,MAAM,CACtC,CAIA,IAAI,MAAO,CACV,OAAO,KAAK,QAAQ,IACrB,CAEA,YAAY,EAAU,CAChB,KAAKF,GAAW,SAASG,CAAQ,IACrC,KAAKH,GAAW,KAAKG,CAAQ,EAC7B,KAAK,eAAe,EACpB,KAAKJ,GAAe,OAAO,CAC1B,KAAM,gBACN,SAAU,KACV,UACD,CAAC,EAEH,CAEA,eAAe,EAAU,CACxB,KAAKC,GAAa,KAAKA,GAAW,OAAQ,GAAMI,IAAMD,CAAQ,EAC9D,KAAK,WAAW,EAChB,KAAKJ,GAAe,OAAO,CAC1B,KAAM,kBACN,SAAU,KACV,UACD,CAAC,CACF,CACA,gBAAiB,CACX,KAAKC,GAAW,SAChB,KAAK,MAAM,SAAW,UAAW,KAAK,WAAW,EAChD,KAAKD,GAAe,OAAO,IAAI,EAEtC,CAsBA,UAAW,CACV,OAAO,KAAKM,IAAU,SAAS,IAAM,KAAK,MAAM,SAAW,UAAY,KAAK,QAAQ,KAAK,MAAM,SAAS,EAAI,QAAQ,QAAQ,EAC7H,CA+BA,MAAM,QAAQ,EAAW,CACxB,IAAMC,MAAmB,CACxB,KAAKC,GAAU,CAAE,KAAM,U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S,CAC7CjC,EAAS,OAAOiC,EAAK,GAAIA,EAAK,EAAE,CAAC,CAAC,MAAM9C,CAAI,CAC7C,EAAG,CAACa,CAAQ,CAAC,EACb,GAAI8B,EAAO,OAAS7C,EAAiBe,EAAS,QAAQ,aAAc,CAAC8B,EAAO,KAAK,CAAC,EAAG,MAAMA,EAAO,MAClG,MAAO,CACN,GAAGA,EACH,SACA,YAAaA,EAAO,MACrB,CACD,CCzKA,eAAsBI,EAAK,EAAS,CAChC,IAAMC,EAAW,UAAa,CAC1B,GAAI,YAAapC,EAAS,CACtB,IAAMqC,EAAe3D,EAAkCsB,EAAQ,OAAO,EACtE,OAAOrB,EAAoB,CACvB,GAAG0D,EACH,MAAOrC,EAAQ,KACnB,CAAC,CACL,CACA,OAAOrB,EAAoBqB,CAAO,CACtC,EAAA,CAAG,EACH,OAAOpB,EAAiCwD,CAAQ,CACpD,C"}
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?><svg width="80" height="80" viewBox="0 0 80 80" fill="none" xmlns="http://www.w3.org/2000/svg"> <g id="sub_brz-Brand assets"> <g id="sub_brz-Frame 11"> <g id="sub_brz-Frame 55"> <g id="sub_brz-Frame 53"> <g id="sub_brz-Currencies" clip-path="url(#sub_brz-clip0_1741_2949)"> <g id="sub_brz-BRZ"> <path id="sub_brz-Background" d="M40 80C62.0914 80 80 62.0914 80 40C80 17.9086 62.0914 0 40 0C17.9086 0 0 17.9086 0 40C0 62.0914 17.9086 80 40 80Z" fill="url(#sub_brz-paint0_linear_1741_2949)"/> <path id="sub_brz-Inner Circle" d="M39.9998 76.144C59.9616 76.144 76.1438 59.9617 76.1438 40C76.1438 20.0382 59.9616 3.85596 39.9998 3.85596C20.0381 3.85596 3.85583 20.0382 3.85583 40C3.85583 59.9617 20.0381 76.144 39.9998 76.144Z" fill="#160F29"/> <g id="sub_brz-Icon"> <path id="sub_brz-Path 1" d="M40.0025 43.5679L32.609 50.9614L40.0025 58.3549L47.396 50.9614L40.0025 43.5679Z" fill="white"/> <path id="sub_brz-Path 2" d="M62.1799 36.1719L54.7879 28.7759L47.392 36.1719L39.9999 28.7759H25.2119L17.8199 36.1719L25.2119 43.5639L32.6079 36.1719L39.9999 43.5639H54.7879L62.1799 36.1719Z" fill="white"/> </g> </g> </g> </g> </g> </g> </g> <defs> <linearGradient id="sub_brz-paint0_linear_1741_2949" x1="11.196" y1="68.804" x2="67.692" y2="12.308" gradientUnits="userSpaceOnUse"> <stop offset="0.04" stop-color="#FFC100"/> <stop offset="1" stop-color="#00C800"/> </linearGradient> <clipPath id="sub_brz-clip0_1741_2949"> <rect width="80" height="80" fill="white"/> </clipPath> </defs> </svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{$ as e,A as t,B as n,D as r,G as i,H as a,L as o,O as s,R as c,U as l,d as u,et as ee,k as te,q as ne,tt as d,z as f}from"./utils-C4ZXZIZW.js";var re=`0.1.1`;function ie(){return re}function ae(e){if(!e)return``;let t=Object.entries(e).map(([e,t])=>t===void 0||t===!1?null:[e,t]).filter(Boolean),n=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>` ${`${e}:`.padEnd(n+1)} ${t}`).join(`
|
|
2
|
+
`)}var p=class e extends Error{static setStaticOptions(t){e.prototype.docsOrigin=t.docsOrigin,e.prototype.showVersion=t.showVersion,e.prototype.version=t.version}constructor(t,n={}){let r=(()=>{if(n.cause instanceof e){if(n.cause.details)return n.cause.details;if(n.cause.shortMessage)return n.cause.shortMessage}return n.cause&&`details`in n.cause&&typeof n.cause.details==`string`?n.cause.details:n.cause?.message?n.cause.message:n.details})(),i=n.cause instanceof e&&n.cause.docsPath||n.docsPath,a=n.docsOrigin??e.prototype.docsOrigin,o=`${a}${i??``}`,s=!!(n.version??e.prototype.showVersion),c=n.version??e.prototype.version,l=[t||`An error occurred.`,...n.metaMessages?[``,...n.metaMessages]:[],...r||i||s?[``,r?`Details: ${r}`:void 0,i?`See: ${o}`:void 0,s?`Version: ${c}`:void 0]:[]].filter(e=>typeof e==`string`).join(`
|
|
3
|
+
`);super(l,n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsOrigin",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"showVersion",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:`BaseError`}),this.cause=n.cause,this.details=r,this.docs=o,this.docsOrigin=a,this.docsPath=i,this.shortMessage=t,this.showVersion=s,this.version=c}walk(e){return m(this,e)}};Object.defineProperty(p,"defaultStaticOptions",{enumerable:!0,configurable:!0,writable:!0,value:{docsOrigin:`https://oxlib.sh`,showVersion:!1,version:`ox@${ie()}`}}),p.setStaticOptions(p.defaultStaticOptions);function m(e,t){return t?.(e)?e:e&&typeof e==`object`&&`cause`in e&&e.cause?m(e.cause,t):t?null:e}var oe=BigInt(0),h=BigInt(1),se=BigInt(2),ce=BigInt(7),g=BigInt(256),_=BigInt(113),v=[],y=[],b=[];for(let e=0,t=h,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],v.push(2*(5*r+n)),y.push((e+1)*(e+2)/2%64);let i=oe;for(let e=0;e<7;e++)t=(t<<h^(t>>ce)*_)%g,t&se&&(i^=h<<(h<<BigInt(e))-h);b.push(i)}var x=o(b,!0),le=x[0],ue=x[1],S=(e,t,n)=>n>32?r(e,t,n):te(e,t,n),C=(e,n,r)=>r>32?s(e,n,r):t(e,n,r);function de(e,t=24){let n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let t=0;t<10;t++)n[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let r=(t+8)%10,i=(t+2)%10,a=n[i],o=n[i+1],s=S(a,o,1)^n[r],c=C(a,o,1)^n[r+1];for(let n=0;n<50;n+=10)e[t+n]^=s,e[t+n+1]^=c}let t=e[2],i=e[3];for(let n=0;n<24;n++){let r=y[n],a=S(t,i,r),o=C(t,i,r),s=v[n];t=e[s],i=e[s+1],e[s]=a,e[s+1]=o}for(let t=0;t<50;t+=10){for(let r=0;r<10;r++)n[r]=e[t+r];for(let r=0;r<10;r++)e[t+r]^=~n[(r+2)%10]&n[(r+4)%10]}e[0]^=le[r],e[1]^=ue[r]}i(n)}var fe=class t extends c{constructor(e,t,n,r=!1,i=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=r,this.rounds=i,a(n),!(0<e&&e<200))throw Error(`only keccak-f1600 function is supported`);this.state=new Uint8Array(200),this.state32=d(this.state)}clone(){return this._cloneInto()}keccak(){e(this.state32),de(this.state32,this.rounds),e(this.state32),this.posOut=0,this.pos=0}update(e){n(this),e=ee(e),f(e);let{blockLen:t,state:r}=this,i=e.length;for(let n=0;n<i;){let a=Math.min(t-this.pos,i-n);for(let t=0;t<a;t++)r[this.pos++]^=e[n++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:n,blockLen:r}=this;e[n]^=t,t&128&&n===r-1&&this.keccak(),e[r-1]^=128,this.keccak()}writeInto(e){n(this,!1),f(e),this.finish();let t=this.state,{blockLen:r}=this;for(let n=0,i=e.length;n<i;){this.posOut>=r&&this.keccak();let a=Math.min(r-this.posOut,i-n);e.set(t.subarray(this.posOut,this.posOut+a),n),this.posOut+=a,n+=a}return e}xofInto(e){if(!this.enableXOF)throw Error(`XOF is not possible for this instance`);return this.writeInto(e)}xof(e){return a(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(l(e,this),this.finished)throw Error(`digest() was already called`);return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,i(this.state)}_cloneInto(e){let{blockLen:n,suffix:r,outputLen:i,rounds:a,enableXOF:o}=this;return e||=new t(n,r,i,o,a),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=a,e.suffix=r,e.outputLen=i,e.enableXOF=o,e.destroyed=this.destroyed,e}},pe=((e,t,n)=>ne(()=>new fe(t,e,n)))(1,136,32);function w(e,t){if(Y(e)>t)throw new Ye({givenSize:Y(e),maxSize:t})}function me(e,t){if(typeof t==`number`&&t>0&&t>Y(e)-1)throw new $({offset:t,position:`start`,size:Y(e)})}function he(e,t,n){if(typeof t==`number`&&typeof n==`number`&&Y(e)!==n-t)throw new $({offset:n,position:`end`,size:Y(e)})}var T={zero:48,nine:57,A:65,F:70,a:97,f:102};function E(e){if(e>=T.zero&&e<=T.nine)return e-T.zero;if(e>=T.A&&e<=T.F)return e-(T.A-10);if(e>=T.a&&e<=T.f)return e-(T.a-10)}function ge(e,t={}){let{dir:n,size:r=32}=t;if(r===0)return e;if(e.length>r)throw new Xe({size:e.length,targetSize:r,type:`Bytes`});let i=new Uint8Array(r);for(let t=0;t<r;t++){let a=n===`right`;i[a?t:r-t-1]=e[a?t:e.length-t-1]}return i}function D(e,t={}){let{dir:n=`left`}=t,r=e,i=0;for(let e=0;e<r.length-1&&r[n===`left`?e:r.length-e-1].toString()===`0`;e++)i++;return r=n===`left`?r.slice(i):r.slice(0,r.length-i),r}function O(e,t){if(V(e)>t)throw new je({givenSize:V(e),maxSize:t})}function k(e,t){if(typeof t==`number`&&t>0&&t>V(e)-1)throw new K({offset:t,position:`start`,size:V(e)})}function A(e,t,n){if(typeof t==`number`&&typeof n==`number`&&V(e)!==n-t)throw new K({offset:n,position:`end`,size:V(e)})}function j(e,t={}){let{dir:n,size:r=32}=t;if(r===0)return e;let i=e.replace(`0x`,``);if(i.length>r*2)throw new Me({size:Math.ceil(i.length/2),targetSize:r,type:`Hex`});return`0x${i[n===`right`?`padEnd`:`padStart`](r*2,`0`)}`}function M(e,t={}){let{dir:n=`left`}=t,r=e.replace(`0x`,``),i=0;for(let e=0;e<r.length-1&&r[n===`left`?e:r.length-e-1].toString()===`0`;e++)i++;return r=n===`left`?r.slice(i):r.slice(0,r.length-i),r===`0`?`0x`:n===`right`&&r.length%2==1?`0x${r}0`:`0x${r}`}var N=`#__bigint`;function P(e,t,n){return JSON.stringify(e,(e,n)=>typeof t==`function`?t(e,n):typeof n==`bigint`?n.toString()+N:n,n)}var F=new TextEncoder,I=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,`0`));function L(e,t={}){let{even:n=!1,strict:r=!1}=t;if(!e||typeof e!=`string`)throw new ke(e);if(r&&!/^0x[0-9a-fA-F]*$/.test(e)||!e.startsWith(`0x`))throw new Ae(e);if(n&&e.length%2!=0)throw new G(e)}function _e(...e){return`0x${e.reduce((e,t)=>e+t.replace(`0x`,``),``)}`}function ve(e){return e instanceof Uint8Array?R(e):Array.isArray(e)?R(new Uint8Array(e)):e}function ye(e,t={}){let n=`0x${Number(e)}`;return typeof t.size==`number`?(O(n,t.size),z(n,t.size)):n}function R(e,t={}){let n=``;for(let t=0;t<e.length;t++)n+=I[e[t]];let r=`0x${n}`;return typeof t.size==`number`?(O(r,t.size),B(r,t.size)):r}function be(e,t={}){let{signed:n,size:r}=t,i=BigInt(e),a;r?a=n?(1n<<BigInt(r)*8n-1n)-1n:2n**(BigInt(r)*8n)-1n:typeof e==`number`&&(a=BigInt(2**53-1));let o=typeof a==`bigint`&&n?-a-1n:0;if(a&&i>a||i<o){let t=typeof e==`bigint`?`n`:``;throw new W({max:a?`${a}${t}`:void 0,min:`${o}${t}`,signed:n,size:r,value:`${e}${t}`})}let s=`0x${(n&&i<0?BigInt.asUintN(r*8,BigInt(i)):i).toString(16)}`;return r?z(s,r):s}function xe(e,t={}){return R(F.encode(e),t)}function Se(e,t){return u(q(e),q(t))}function z(e,t){return j(e,{dir:`left`,size:t})}function B(e,t){return j(e,{dir:`right`,size:t})}function Ce(e){return R(J(e))}function we(e,t,n,r={}){let{strict:i}=r;k(e,t);let a=`0x${e.replace(`0x`,``).slice((t??0)*2,(n??e.length)*2)}`;return i&&A(a,t,n),a}function V(e){return Math.ceil((e.length-2)/2)}function Te(e){return M(e,{dir:`left`})}function H(e,t={}){let{signed:n}=t;t.size&&O(e,t.size);let r=BigInt(e);if(!n)return r;let i=(e.length-2)/2,a=(1n<<BigInt(i)*8n)-1n;return r<=a>>1n?r:r-a-1n}function Ee(e,t={}){return q(e,t)}function U(e,t={}){let{signed:n,size:r}=t;return Number(!n&&!r?e:H(e,t))}function De(e,t={}){let{size:n}=t,r=q(e);return n&&(w(r,n),r=Z(r)),new TextDecoder().decode(r)}function Oe(e,t={}){let{even:n=!1,strict:r=!1}=t;try{return L(e,{even:n,strict:r}),!0}catch{return!1}}var W=class extends p{constructor({max:e,min:t,signed:n,size:r,value:i}){super(`Number \`${i}\` is not in safe${r?` ${r*8}-bit`:``}${n?` signed`:` unsigned`} integer range ${e?`(\`${t}\` to \`${e}\`)`:`(above \`${t}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:`Hex.IntegerOutOfRangeError`})}},ke=class extends p{constructor(e){super(`Value \`${typeof e==`object`?P(e):e}\` of type \`${typeof e}\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:`Hex.InvalidHexTypeError`})}},Ae=class extends p{constructor(e){super(`Value \`${e}\` is an invalid hex value.`,{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:`Hex.InvalidHexValueError`})}},G=class extends p{constructor(e){super(`Hex value \`"${e}"\` is an odd length (${e.length-2} nibbles).`,{metaMessages:[`It must be an even length.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:`Hex.InvalidLengthError`})}},je=class extends p{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:`Hex.SizeOverflowError`})}},K=class extends p{constructor({offset:e,position:t,size:n}){super(`Slice ${t===`start`?`starting`:`ending`} at offset \`${e}\` is out-of-bounds (size: \`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:`Hex.SliceOffsetOutOfBoundsError`})}},Me=class extends p{constructor({size:e,targetSize:t,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:`Hex.SizeExceedsPaddingSizeError`})}},Ne=new TextDecoder,Pe=new TextEncoder;function Fe(e){if(!(e instanceof Uint8Array)&&(!e||typeof e!=`object`||!(`BYTES_PER_ELEMENT`in e)||e.BYTES_PER_ELEMENT!==1||e.constructor.name!==`Uint8Array`))throw new Je(e)}function Ie(...e){let t=0;for(let n of e)t+=n.length;let n=new Uint8Array(t);for(let t=0,r=0;t<e.length;t++){let i=e[t];n.set(i,r),r+=i.length}return n}function Le(e){return e instanceof Uint8Array?e:typeof e==`string`?q(e):Re(e)}function Re(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function q(e,t={}){let{size:n}=t,r=e;n&&(O(e,n),r=B(e,n));let i=r.slice(2);i.length%2&&(i=`0${i}`);let a=i.length/2,o=new Uint8Array(a);for(let e=0,t=0;e<a;e++){let n=E(i.charCodeAt(t++)),r=E(i.charCodeAt(t++));if(n===void 0||r===void 0)throw new p(`Invalid byte sequence ("${i[t-2]}${i[t-1]}" in "${i}").`);o[e]=n<<4|r}return o}function ze(e,t={}){let{size:n}=t,r=Pe.encode(e);return typeof n==`number`?(w(r,n),Ve(r,n)):r}function Be(e,t){return u(e,t)}function Ve(e,t){return ge(e,{dir:`right`,size:t})}function J(e){return crypto.getRandomValues(new Uint8Array(e))}function Y(e){return e.length}function He(e,t,n,r={}){let{strict:i}=r;me(e,t);let a=e.slice(t,n);return i&&he(a,t,n),a}function Ue(e,t={}){let{size:n}=t;return n!==void 0&&w(e,n),H(R(e,t),t)}function We(e,t={}){let{size:n}=t,r=e;if(n!==void 0&&(w(r,n),r=X(r)),r.length>1||r[0]>1)throw new Q(r);return!!r[0]}function Ge(e,t={}){let{size:n}=t;return n!==void 0&&w(e,n),U(R(e,t),t)}function Ke(e,t={}){let{size:n}=t,r=e;return n!==void 0&&(w(r,n),r=Z(r)),Ne.decode(r)}function X(e){return D(e,{dir:`left`})}function Z(e){return D(e,{dir:`right`})}function qe(e){try{return Fe(e),!0}catch{return!1}}var Q=class extends p{constructor(e){super(`Bytes value \`${e}\` is not a valid boolean.`,{metaMessages:["The bytes array must contain a single byte of either a `0` or `1` value."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:`Bytes.InvalidBytesBooleanError`})}},Je=class extends p{constructor(e){super(`Value \`${typeof e==`object`?P(e):e}\` of type \`${typeof e}\` is an invalid Bytes value.`,{metaMessages:["Bytes values must be of type `Bytes`."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:`Bytes.InvalidBytesTypeError`})}},Ye=class extends p{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:`Bytes.SizeOverflowError`})}},$=class extends p{constructor({offset:e,position:t,size:n}){super(`Slice ${t===`start`?`starting`:`ending`} at offset \`${e}\` is out-of-bounds (size: \`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:`Bytes.SliceOffsetOutOfBoundsError`})}},Xe=class extends p{constructor({size:e,targetSize:t,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:`Bytes.SizeExceedsPaddingSizeError`})}};export{H as A,xe as C,Ce as D,B as E,Oe as F,P as I,pe as L,U as M,De as N,V as O,Te as P,p as R,be as S,z as T,L as _,Be as a,ye as b,He as c,Ge as d,Ke as f,G as g,W as h,ze as i,Ee as j,we as k,Ue as l,qe as m,Le as n,J as o,X as p,q as r,Y as s,Ie as t,We as u,_e as v,Se as w,R as x,ve as y,ae as z};
|
|
4
|
+
//# sourceMappingURL=Bytes-C7CRVS3J.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Bytes-C7CRVS3J.js","names":["toBytes","assertSize","Bytes.size","Bytes.SizeOverflowError","assertStartOffset","Bytes.SliceOffsetOutOfBoundsError","assertEndOffset","pad","Bytes.SizeExceedsPaddingSizeError","trim","Hex.size","Hex.SizeOverflowError","Hex.SliceOffsetOutOfBoundsError","Hex.SizeExceedsPaddingSizeError","encoder","assert","concat","from","padRight","fromString","isEqual","Bytes.fromHex","internal.pad","random","Bytes.random","slice","size","trimLeft","internal.trim","toBigInt","toNumber","toString","Bytes.trimRight","validate","Errors.BaseError","Json.stringify","SizeOverflowError","SliceOffsetOutOfBoundsError","SizeExceedsPaddingSizeError","Hex.padRight","internal.charCodeToBase16","Errors.BaseError","internal.pad","Hex.fromBytes","Hex.toBigInt","Hex.toNumber","internal.trim","Json.stringify","swap32IfBE","rotlSL","aexists","rotlBH","clean","anumber","split","rotlBL","Hash","aoutput","equalBytes","toBytes$1","rotlSH","createHasher","u32","abytes","version","getVersion","prettyPrint","args","entries","key","value","maxLength","acc","BaseError","options","details","docsPath","docsBaseUrl","docs","showVersion","message","shortMessage","x","walk","fn","err","_0n","_1n","_2n","_7n","_256n","_0x71n","SHA3_PI","SHA3_ROTL","_SHA3_IOTA","round","R","y","t","j","IOTAS","SHA3_IOTA_H","SHA3_IOTA_L","rotlH","s","h","l","rotlL","keccakP","B","rounds","idx1","idx0","B0","B1","Th","Tl","curH","curL","shift","PI","Keccak","blockLen","suffix","outputLen","enableXOF","data","len","pos","take","i","out","bufferOut","bytes","to","keccak_256","assertSize$1","size","size_","SizeOverflowError","assertStartOffset$1","start","SliceOffsetOutOfBoundsError","assertEndOffset$1","end","charCodeMap","charCodeToBase16","char","pad$1","SizeExceedsPaddingSizeError","paddedBytes","padEnd","dir","trim$1","sliceLength","assertSize","size$1","hex","SizeOverflowError$1","assertStartOffset","SliceOffsetOutOfBoundsError$1","assertEndOffset","pad","hex_","SizeExceedsPaddingSizeError$1","trim","bigIntSuffix","stringify","replacer","space","encoder$1","hexes","assert$1","InvalidHexTypeError","strict","InvalidHexValueError","even","InvalidLengthError","concat$1","values","from$1","fromBytes","fromBoolean","padLeft","string","padRight$1","fromNumber","value_","maxValue","signed","minValue","IntegerOutOfRangeError","fromString$1","isEqual$1","fromHex","hexA","hexB","random$1","random","length","slice$1","trimLeft$1","toBigInt$1","max_unsigned","toBytes","toNumber$1","toString$1","trimRight","validate$1","max","min","maxSize","givenSize","position","offset","type","targetSize","decoder","encoder","assert","InvalidBytesTypeError","concat","arr","result","index","from","fromArray","hexString","nibbleLeft","nibbleRight","fromString","padRight","isEqual","bytesA","bytesB","slice","toBigInt","toBoolean","bytes_","trimLeft","InvalidBytesBooleanError","toNumber","toString","validate"],"sources":["../../../../../node_modules/.pnpm/ox@0.14.59_typescript@7.0.2_zod@4.6.7/node_modules/ox/_esm/core/version.js","../../../../../node_modules/.pnpm/ox@0.14.59_typescript@7.0.2_zod@4.6.7/node_modules/ox/_esm/core/internal/errors.js","../../../../../node_modules/.pnpm/ox@0.14.59_typescript@7.0.2_zod@4.6.7/node_modules/ox/_esm/core/Errors.js","../../../../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/sha3.js","../../../../../node_modules/.pnpm/ox@0.14.59_typescript@7.0.2_zod@4.6.7/node_modules/ox/_esm/core/internal/bytes.js","../../../../../node_modules/.pnpm/ox@0.14.59_typescript@7.0.2_zod@4.6.7/node_modules/ox/_esm/core/internal/hex.js","../../../../../node_modules/.pnpm/ox@0.14.59_typescript@7.0.2_zod@4.6.7/node_modules/ox/_esm/core/Json.js","../../../../../node_modules/.pnpm/ox@0.14.59_typescript@7.0.2_zod@4.6.7/node_modules/ox/_esm/core/Hex.js","../../../../../node_modules/.pnpm/ox@0.14.59_typescript@7.0.2_zod@4.6.7/node_modules/ox/_esm/core/Bytes.js"],"sourcesContent":["/** @internal */\nexport const version = '0.1.1';\n//# sourceMappingURL=version.js.map","import { version } from '../version.js';\n/** @internal */\nexport function getUrl(url) {\n return url;\n}\n/** @internal */\nexport function getVersion() {\n return version;\n}\n/** @internal */\nexport function prettyPrint(args) {\n if (!args)\n return '';\n const entries = Object.entries(args)\n .map(([key, value]) => {\n if (value === undefined || value === false)\n return null;\n return [key, value];\n })\n .filter(Boolean);\n const maxLength = entries.reduce((acc, [key]) => Math.max(acc, key.length), 0);\n return entries\n .map(([key, value]) => ` ${`${key}:`.padEnd(maxLength + 1)} ${value}`)\n .join('\\n');\n}\n//# sourceMappingURL=errors.js.map","import { getVersion } from './internal/errors.js';\n/**\n * Base error class inherited by all errors thrown by ox.\n *\n * @example\n * ```ts\n * import { Errors } from 'ox'\n * throw new Errors.BaseError('An error occurred')\n * ```\n */\nexport class BaseError extends Error {\n static setStaticOptions(options) {\n BaseError.prototype.docsOrigin = options.docsOrigin;\n BaseError.prototype.showVersion = options.showVersion;\n BaseError.prototype.version = options.version;\n }\n constructor(shortMessage, options = {}) {\n const details = (() => {\n if (options.cause instanceof BaseError) {\n if (options.cause.details)\n return options.cause.details;\n if (options.cause.shortMessage)\n return options.cause.shortMessage;\n }\n if (options.cause &&\n 'details' in options.cause &&\n typeof options.cause.details === 'string')\n return options.cause.details;\n if (options.cause?.message)\n return options.cause.message;\n return options.details;\n })();\n const docsPath = (() => {\n if (options.cause instanceof BaseError)\n return options.cause.docsPath || options.docsPath;\n return options.docsPath;\n })();\n const docsBaseUrl = options.docsOrigin ?? BaseError.prototype.docsOrigin;\n const docs = `${docsBaseUrl}${docsPath ?? ''}`;\n const showVersion = Boolean(options.version ?? BaseError.prototype.showVersion);\n const version = options.version ?? BaseError.prototype.version;\n const message = [\n shortMessage || 'An error occurred.',\n ...(options.metaMessages ? ['', ...options.metaMessages] : []),\n ...(details || docsPath || showVersion\n ? [\n '',\n details ? `Details: ${details}` : undefined,\n docsPath ? `See: ${docs}` : undefined,\n showVersion ? `Version: ${version}` : undefined,\n ]\n : []),\n ]\n .filter((x) => typeof x === 'string')\n .join('\\n');\n super(message, options.cause ? { cause: options.cause } : undefined);\n Object.defineProperty(this, \"details\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, \"docs\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, \"docsOrigin\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, \"docsPath\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, \"shortMessage\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, \"showVersion\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, \"version\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, \"cause\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'BaseError'\n });\n this.cause = options.cause;\n this.details = details;\n this.docs = docs;\n this.docsOrigin = docsBaseUrl;\n this.docsPath = docsPath;\n this.shortMessage = shortMessage;\n this.showVersion = showVersion;\n this.version = version;\n }\n walk(fn) {\n return walk(this, fn);\n }\n}\nObject.defineProperty(BaseError, \"defaultStaticOptions\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: {\n docsOrigin: 'https://oxlib.sh',\n showVersion: false,\n version: `ox@${getVersion()}`,\n }\n});\n(() => {\n BaseError.setStaticOptions(BaseError.defaultStaticOptions);\n})();\n/** @internal */\nfunction walk(err, fn) {\n if (fn?.(err))\n return err;\n if (err && typeof err === 'object' && 'cause' in err && err.cause)\n return walk(err.cause, fn);\n return fn ? null : err;\n}\n//# sourceMappingURL=Errors.js.map","/**\n * SHA3 (keccak) hash function, based on a new \"Sponge function\" design.\n * Different from older hashes, the internal state is bigger than output size.\n *\n * Check out [FIPS-202](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.202.pdf),\n * [Website](https://keccak.team/keccak.html),\n * [the differences between SHA-3 and Keccak](https://crypto.stackexchange.com/questions/15727/what-are-the-key-differences-between-the-draft-sha-3-standard-and-the-keccak-sub).\n *\n * Check out `sha3-addons` module for cSHAKE, k12, and others.\n * @module\n */\nimport { rotlBH, rotlBL, rotlSH, rotlSL, split } from \"./_u64.js\";\n// prettier-ignore\nimport { abytes, aexists, anumber, aoutput, clean, createHasher, createXOFer, Hash, swap32IfBE, toBytes, u32 } from \"./utils.js\";\n// No __PURE__ annotations in sha3 header:\n// EVERYTHING is in fact used on every export.\n// Various per round constants calculations\nconst _0n = BigInt(0);\nconst _1n = BigInt(1);\nconst _2n = BigInt(2);\nconst _7n = BigInt(7);\nconst _256n = BigInt(256);\nconst _0x71n = BigInt(0x71);\nconst SHA3_PI = [];\nconst SHA3_ROTL = [];\nconst _SHA3_IOTA = [];\nfor (let round = 0, R = _1n, x = 1, y = 0; round < 24; round++) {\n // Pi\n [x, y] = [y, (2 * x + 3 * y) % 5];\n SHA3_PI.push(2 * (5 * y + x));\n // Rotational\n SHA3_ROTL.push((((round + 1) * (round + 2)) / 2) % 64);\n // Iota\n let t = _0n;\n for (let j = 0; j < 7; j++) {\n R = ((R << _1n) ^ ((R >> _7n) * _0x71n)) % _256n;\n if (R & _2n)\n t ^= _1n << ((_1n << /* @__PURE__ */ BigInt(j)) - _1n);\n }\n _SHA3_IOTA.push(t);\n}\nconst IOTAS = split(_SHA3_IOTA, true);\nconst SHA3_IOTA_H = IOTAS[0];\nconst SHA3_IOTA_L = IOTAS[1];\n// Left rotation (without 0, 32, 64)\nconst rotlH = (h, l, s) => (s > 32 ? rotlBH(h, l, s) : rotlSH(h, l, s));\nconst rotlL = (h, l, s) => (s > 32 ? rotlBL(h, l, s) : rotlSL(h, l, s));\n/** `keccakf1600` internal function, additionally allows to adjust round count. */\nexport function keccakP(s, rounds = 24) {\n const B = new Uint32Array(5 * 2);\n // NOTE: all indices are x2 since we store state as u32 instead of u64 (bigints to slow in js)\n for (let round = 24 - rounds; round < 24; round++) {\n // Theta θ\n for (let x = 0; x < 10; x++)\n B[x] = s[x] ^ s[x + 10] ^ s[x + 20] ^ s[x + 30] ^ s[x + 40];\n for (let x = 0; x < 10; x += 2) {\n const idx1 = (x + 8) % 10;\n const idx0 = (x + 2) % 10;\n const B0 = B[idx0];\n const B1 = B[idx0 + 1];\n const Th = rotlH(B0, B1, 1) ^ B[idx1];\n const Tl = rotlL(B0, B1, 1) ^ B[idx1 + 1];\n for (let y = 0; y < 50; y += 10) {\n s[x + y] ^= Th;\n s[x + y + 1] ^= Tl;\n }\n }\n // Rho (ρ) and Pi (π)\n let curH = s[2];\n let curL = s[3];\n for (let t = 0; t < 24; t++) {\n const shift = SHA3_ROTL[t];\n const Th = rotlH(curH, curL, shift);\n const Tl = rotlL(curH, curL, shift);\n const PI = SHA3_PI[t];\n curH = s[PI];\n curL = s[PI + 1];\n s[PI] = Th;\n s[PI + 1] = Tl;\n }\n // Chi (χ)\n for (let y = 0; y < 50; y += 10) {\n for (let x = 0; x < 10; x++)\n B[x] = s[y + x];\n for (let x = 0; x < 10; x++)\n s[y + x] ^= ~B[(x + 2) % 10] & B[(x + 4) % 10];\n }\n // Iota (ι)\n s[0] ^= SHA3_IOTA_H[round];\n s[1] ^= SHA3_IOTA_L[round];\n }\n clean(B);\n}\n/** Keccak sponge function. */\nexport class Keccak extends Hash {\n // NOTE: we accept arguments in bytes instead of bits here.\n constructor(blockLen, suffix, outputLen, enableXOF = false, rounds = 24) {\n super();\n this.pos = 0;\n this.posOut = 0;\n this.finished = false;\n this.destroyed = false;\n this.enableXOF = false;\n this.blockLen = blockLen;\n this.suffix = suffix;\n this.outputLen = outputLen;\n this.enableXOF = enableXOF;\n this.rounds = rounds;\n // Can be passed from user as dkLen\n anumber(outputLen);\n // 1600 = 5x5 matrix of 64bit. 1600 bits === 200 bytes\n // 0 < blockLen < 200\n if (!(0 < blockLen && blockLen < 200))\n throw new Error('only keccak-f1600 function is supported');\n this.state = new Uint8Array(200);\n this.state32 = u32(this.state);\n }\n clone() {\n return this._cloneInto();\n }\n keccak() {\n swap32IfBE(this.state32);\n keccakP(this.state32, this.rounds);\n swap32IfBE(this.state32);\n this.posOut = 0;\n this.pos = 0;\n }\n update(data) {\n aexists(this);\n data = toBytes(data);\n abytes(data);\n const { blockLen, state } = this;\n const len = data.length;\n for (let pos = 0; pos < len;) {\n const take = Math.min(blockLen - this.pos, len - pos);\n for (let i = 0; i < take; i++)\n state[this.pos++] ^= data[pos++];\n if (this.pos === blockLen)\n this.keccak();\n }\n return this;\n }\n finish() {\n if (this.finished)\n return;\n this.finished = true;\n const { state, suffix, pos, blockLen } = this;\n // Do the padding\n state[pos] ^= suffix;\n if ((suffix & 0x80) !== 0 && pos === blockLen - 1)\n this.keccak();\n state[blockLen - 1] ^= 0x80;\n this.keccak();\n }\n writeInto(out) {\n aexists(this, false);\n abytes(out);\n this.finish();\n const bufferOut = this.state;\n const { blockLen } = this;\n for (let pos = 0, len = out.length; pos < len;) {\n if (this.posOut >= blockLen)\n this.keccak();\n const take = Math.min(blockLen - this.posOut, len - pos);\n out.set(bufferOut.subarray(this.posOut, this.posOut + take), pos);\n this.posOut += take;\n pos += take;\n }\n return out;\n }\n xofInto(out) {\n // Sha3/Keccak usage with XOF is probably mistake, only SHAKE instances can do XOF\n if (!this.enableXOF)\n throw new Error('XOF is not possible for this instance');\n return this.writeInto(out);\n }\n xof(bytes) {\n anumber(bytes);\n return this.xofInto(new Uint8Array(bytes));\n }\n digestInto(out) {\n aoutput(out, this);\n if (this.finished)\n throw new Error('digest() was already called');\n this.writeInto(out);\n this.destroy();\n return out;\n }\n digest() {\n return this.digestInto(new Uint8Array(this.outputLen));\n }\n destroy() {\n this.destroyed = true;\n clean(this.state);\n }\n _cloneInto(to) {\n const { blockLen, suffix, outputLen, rounds, enableXOF } = this;\n to || (to = new Keccak(blockLen, suffix, outputLen, enableXOF, rounds));\n to.state32.set(this.state32);\n to.pos = this.pos;\n to.posOut = this.posOut;\n to.finished = this.finished;\n to.rounds = rounds;\n // Suffix can change in cSHAKE\n to.suffix = suffix;\n to.outputLen = outputLen;\n to.enableXOF = enableXOF;\n to.destroyed = this.destroyed;\n return to;\n }\n}\nconst gen = (suffix, blockLen, outputLen) => createHasher(() => new Keccak(blockLen, suffix, outputLen));\n/** SHA3-224 hash function. */\nexport const sha3_224 = /* @__PURE__ */ (() => gen(0x06, 144, 224 / 8))();\n/** SHA3-256 hash function. Different from keccak-256. */\nexport const sha3_256 = /* @__PURE__ */ (() => gen(0x06, 136, 256 / 8))();\n/** SHA3-384 hash function. */\nexport const sha3_384 = /* @__PURE__ */ (() => gen(0x06, 104, 384 / 8))();\n/** SHA3-512 hash function. */\nexport const sha3_512 = /* @__PURE__ */ (() => gen(0x06, 72, 512 / 8))();\n/** keccak-224 hash function. */\nexport const keccak_224 = /* @__PURE__ */ (() => gen(0x01, 144, 224 / 8))();\n/** keccak-256 hash function. Different from SHA3-256. */\nexport const keccak_256 = /* @__PURE__ */ (() => gen(0x01, 136, 256 / 8))();\n/** keccak-384 hash function. */\nexport const keccak_384 = /* @__PURE__ */ (() => gen(0x01, 104, 384 / 8))();\n/** keccak-512 hash function. */\nexport const keccak_512 = /* @__PURE__ */ (() => gen(0x01, 72, 512 / 8))();\nconst genShake = (suffix, blockLen, outputLen) => createXOFer((opts = {}) => new Keccak(blockLen, suffix, opts.dkLen === undefined ? outputLen : opts.dkLen, true));\n/** SHAKE128 XOF with 128-bit security. */\nexport const shake128 = /* @__PURE__ */ (() => genShake(0x1f, 168, 128 / 8))();\n/** SHAKE256 XOF with 256-bit security. */\nexport const shake256 = /* @__PURE__ */ (() => genShake(0x1f, 136, 256 / 8))();\n//# sourceMappingURL=sha3.js.map","import * as Bytes from '../Bytes.js';\n/** @internal */\nexport function assertSize(bytes, size_) {\n if (Bytes.size(bytes) > size_)\n throw new Bytes.SizeOverflowError({\n givenSize: Bytes.size(bytes),\n maxSize: size_,\n });\n}\n/** @internal */\nexport function assertStartOffset(value, start) {\n if (typeof start === 'number' && start > 0 && start > Bytes.size(value) - 1)\n throw new Bytes.SliceOffsetOutOfBoundsError({\n offset: start,\n position: 'start',\n size: Bytes.size(value),\n });\n}\n/** @internal */\nexport function assertEndOffset(value, start, end) {\n if (typeof start === 'number' &&\n typeof end === 'number' &&\n Bytes.size(value) !== end - start) {\n throw new Bytes.SliceOffsetOutOfBoundsError({\n offset: end,\n position: 'end',\n size: Bytes.size(value),\n });\n }\n}\n/** @internal */\nexport const charCodeMap = {\n zero: 48,\n nine: 57,\n A: 65,\n F: 70,\n a: 97,\n f: 102,\n};\n/** @internal */\nexport function charCodeToBase16(char) {\n if (char >= charCodeMap.zero && char <= charCodeMap.nine)\n return char - charCodeMap.zero;\n if (char >= charCodeMap.A && char <= charCodeMap.F)\n return char - (charCodeMap.A - 10);\n if (char >= charCodeMap.a && char <= charCodeMap.f)\n return char - (charCodeMap.a - 10);\n return undefined;\n}\n/** @internal */\nexport function pad(bytes, options = {}) {\n const { dir, size = 32 } = options;\n if (size === 0)\n return bytes;\n if (bytes.length > size)\n throw new Bytes.SizeExceedsPaddingSizeError({\n size: bytes.length,\n targetSize: size,\n type: 'Bytes',\n });\n const paddedBytes = new Uint8Array(size);\n for (let i = 0; i < size; i++) {\n const padEnd = dir === 'right';\n paddedBytes[padEnd ? i : size - i - 1] =\n bytes[padEnd ? i : bytes.length - i - 1];\n }\n return paddedBytes;\n}\n/** @internal */\nexport function trim(value, options = {}) {\n const { dir = 'left' } = options;\n let data = value;\n let sliceLength = 0;\n for (let i = 0; i < data.length - 1; i++) {\n if (data[dir === 'left' ? i : data.length - i - 1].toString() === '0')\n sliceLength++;\n else\n break;\n }\n data =\n dir === 'left'\n ? data.slice(sliceLength)\n : data.slice(0, data.length - sliceLength);\n return data;\n}\n//# sourceMappingURL=bytes.js.map","import * as Hex from '../Hex.js';\n/** @internal */\nexport function assertSize(hex, size_) {\n if (Hex.size(hex) > size_)\n throw new Hex.SizeOverflowError({\n givenSize: Hex.size(hex),\n maxSize: size_,\n });\n}\n/** @internal */\nexport function assertStartOffset(value, start) {\n if (typeof start === 'number' && start > 0 && start > Hex.size(value) - 1)\n throw new Hex.SliceOffsetOutOfBoundsError({\n offset: start,\n position: 'start',\n size: Hex.size(value),\n });\n}\n/** @internal */\nexport function assertEndOffset(value, start, end) {\n if (typeof start === 'number' &&\n typeof end === 'number' &&\n Hex.size(value) !== end - start) {\n throw new Hex.SliceOffsetOutOfBoundsError({\n offset: end,\n position: 'end',\n size: Hex.size(value),\n });\n }\n}\n/** @internal */\nexport function pad(hex_, options = {}) {\n const { dir, size = 32 } = options;\n if (size === 0)\n return hex_;\n const hex = hex_.replace('0x', '');\n if (hex.length > size * 2)\n throw new Hex.SizeExceedsPaddingSizeError({\n size: Math.ceil(hex.length / 2),\n targetSize: size,\n type: 'Hex',\n });\n return `0x${hex[dir === 'right' ? 'padEnd' : 'padStart'](size * 2, '0')}`;\n}\n/** @internal */\nexport function trim(value, options = {}) {\n const { dir = 'left' } = options;\n let data = value.replace('0x', '');\n let sliceLength = 0;\n for (let i = 0; i < data.length - 1; i++) {\n if (data[dir === 'left' ? i : data.length - i - 1].toString() === '0')\n sliceLength++;\n else\n break;\n }\n data =\n dir === 'left'\n ? data.slice(sliceLength)\n : data.slice(0, data.length - sliceLength);\n if (data === '0')\n return '0x';\n if (dir === 'right' && data.length % 2 === 1)\n return `0x${data}0`;\n return `0x${data}`;\n}\n//# sourceMappingURL=hex.js.map","const bigIntSuffix = '#__bigint';\n/**\n * Serializes a value to a canonical JSON string as defined by\n * [RFC 8785 (JSON Canonicalization Scheme)](https://www.rfc-editor.org/rfc/rfc8785).\n *\n * - Object keys are sorted recursively by UTF-16 code unit comparison.\n * - Primitives are serialized per ECMAScript rules (no trailing zeros on numbers, etc.).\n * - No whitespace is inserted.\n *\n * @example\n * ```ts twoslash\n * import { Json } from 'ox'\n *\n * const json = Json.canonicalize({ b: 2, a: 1 })\n * // @log: '{\"a\":1,\"b\":2}'\n * ```\n *\n * @example\n * ```ts twoslash\n * import { Json } from 'ox'\n *\n * const json = Json.canonicalize({ z: [3, { y: 1, x: 2 }], a: 'hello' })\n * // @log: '{\"a\":\"hello\",\"z\":[3,{\"x\":2,\"y\":1}]}'\n * ```\n *\n * @param value - The value to canonicalize.\n * @returns The canonical JSON string.\n */\nexport function canonicalize(value) {\n if (value === null || typeof value === 'boolean' || typeof value === 'string')\n return JSON.stringify(value);\n if (typeof value === 'number') {\n if (!Number.isFinite(value))\n throw new TypeError('Cannot canonicalize non-finite number');\n return Object.is(value, -0) ? '0' : JSON.stringify(value);\n }\n if (typeof value === 'bigint')\n throw new TypeError('Cannot canonicalize bigint');\n if (Array.isArray(value))\n return `[${value.map((item) => canonicalize(item)).join(',')}]`;\n if (typeof value === 'object') {\n const entries = Object.keys(value)\n .sort()\n .reduce((acc, key) => {\n const v = value[key];\n if (v !== undefined)\n acc.push(`${JSON.stringify(key)}:${canonicalize(v)}`);\n return acc;\n }, []);\n return `{${entries.join(',')}}`;\n }\n return undefined;\n}\n/**\n * Parses a JSON string, with support for `bigint`.\n *\n * @example\n * ```ts twoslash\n * import { Json } from 'ox'\n *\n * const json = Json.parse('{\"foo\":\"bar\",\"baz\":\"69420694206942069420694206942069420694206942069420#__bigint\"}')\n * // @log: {\n * // @log: foo: 'bar',\n * // @log: baz: 69420694206942069420694206942069420694206942069420n\n * // @log: }\n * ```\n *\n * @param string - The value to parse.\n * @param reviver - A function that transforms the results.\n * @returns The parsed value.\n */\nexport function parse(string, reviver) {\n return JSON.parse(string, (key, value_) => {\n const value = value_;\n if (typeof value === 'string' && value.endsWith(bigIntSuffix))\n return BigInt(value.slice(0, -bigIntSuffix.length));\n return typeof reviver === 'function' ? reviver(key, value) : value;\n });\n}\n/**\n * Stringifies a value to its JSON representation, with support for `bigint`.\n *\n * @example\n * ```ts twoslash\n * import { Json } from 'ox'\n *\n * const json = Json.stringify({\n * foo: 'bar',\n * baz: 69420694206942069420694206942069420694206942069420n,\n * })\n * // @log: '{\"foo\":\"bar\",\"baz\":\"69420694206942069420694206942069420694206942069420#__bigint\"}'\n * ```\n *\n * @param value - The value to stringify.\n * @param replacer - A function that transforms the results. It is passed the key and value of the property, and must return the value to be used in the JSON string. If this function returns `undefined`, the property is not included in the resulting JSON string.\n * @param space - A string or number that determines the indentation of the JSON string. If it is a number, it indicates the number of spaces to use as indentation; if it is a string (e.g. `'\\t'`), it uses the string as the indentation character.\n * @returns The JSON string.\n */\nexport function stringify(value, replacer, space) {\n return JSON.stringify(value, (key, value) => {\n if (typeof replacer === 'function')\n return replacer(key, value);\n if (typeof value === 'bigint')\n return value.toString() + bigIntSuffix;\n return value;\n }, space);\n}\n//# sourceMappingURL=Json.js.map","import { equalBytes } from '@noble/curves/abstract/utils';\nimport * as Bytes from './Bytes.js';\nimport * as Errors from './Errors.js';\nimport * as internal_bytes from './internal/bytes.js';\nimport * as internal from './internal/hex.js';\nimport * as Json from './Json.js';\nconst encoder = /*#__PURE__*/ new TextEncoder();\nconst hexes = /*#__PURE__*/ Array.from({ length: 256 }, (_v, i) => i.toString(16).padStart(2, '0'));\n/**\n * Asserts if the given value is {@link ox#Hex.Hex}.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * Hex.assert('abc')\n * // @error: InvalidHexValueTypeError:\n * // @error: Value `\"abc\"` of type `string` is an invalid hex type.\n * // @error: Hex types must be represented as `\"0x\\${string}\"`.\n * ```\n *\n * @param value - The value to assert.\n * @param options - Options.\n */\nexport function assert(value, options = {}) {\n const { even = false, strict = false } = options;\n if (!value)\n throw new InvalidHexTypeError(value);\n if (typeof value !== 'string')\n throw new InvalidHexTypeError(value);\n if (strict) {\n if (!/^0x[0-9a-fA-F]*$/.test(value))\n throw new InvalidHexValueError(value);\n }\n if (!value.startsWith('0x'))\n throw new InvalidHexValueError(value);\n if (even && value.length % 2 !== 0)\n throw new InvalidLengthError(value);\n}\n/**\n * Concatenates two or more {@link ox#Hex.Hex}.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * Hex.concat('0x123', '0x456')\n * // @log: '0x123456'\n * ```\n *\n * @param values - The {@link ox#Hex.Hex} values to concatenate.\n * @returns The concatenated {@link ox#Hex.Hex} value.\n */\nexport function concat(...values) {\n return `0x${values.reduce((acc, x) => acc + x.replace('0x', ''), '')}`;\n}\n/**\n * Instantiates a {@link ox#Hex.Hex} value from a hex string or {@link ox#Bytes.Bytes} value.\n *\n * :::tip\n *\n * To instantiate from a **Boolean**, **String**, or **Number**, use one of the following:\n *\n * - `Hex.fromBoolean`\n *\n * - `Hex.fromString`\n *\n * - `Hex.fromNumber`\n *\n * :::\n *\n * @example\n * ```ts twoslash\n * import { Bytes, Hex } from 'ox'\n *\n * Hex.from('0x48656c6c6f20576f726c6421')\n * // @log: '0x48656c6c6f20576f726c6421'\n *\n * Hex.from(Bytes.from([72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100, 33]))\n * // @log: '0x48656c6c6f20576f726c6421'\n * ```\n *\n * @param value - The {@link ox#Bytes.Bytes} value to encode.\n * @returns The encoded {@link ox#Hex.Hex} value.\n */\nexport function from(value) {\n if (value instanceof Uint8Array)\n return fromBytes(value);\n if (Array.isArray(value))\n return fromBytes(new Uint8Array(value));\n return value;\n}\n/**\n * Encodes a boolean into a {@link ox#Hex.Hex} value.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * Hex.fromBoolean(true)\n * // @log: '0x1'\n *\n * Hex.fromBoolean(false)\n * // @log: '0x0'\n *\n * Hex.fromBoolean(true, { size: 32 })\n * // @log: '0x0000000000000000000000000000000000000000000000000000000000000001'\n * ```\n *\n * @param value - The boolean value to encode.\n * @param options - Options.\n * @returns The encoded {@link ox#Hex.Hex} value.\n */\nexport function fromBoolean(value, options = {}) {\n const hex = `0x${Number(value)}`;\n if (typeof options.size === 'number') {\n internal.assertSize(hex, options.size);\n return padLeft(hex, options.size);\n }\n return hex;\n}\n/**\n * Encodes a {@link ox#Bytes.Bytes} value into a {@link ox#Hex.Hex} value.\n *\n * @example\n * ```ts twoslash\n * import { Bytes, Hex } from 'ox'\n *\n * Hex.fromBytes(Bytes.from([72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100, 33]))\n * // @log: '0x48656c6c6f20576f726c6421'\n * ```\n *\n * @param value - The {@link ox#Bytes.Bytes} value to encode.\n * @param options - Options.\n * @returns The encoded {@link ox#Hex.Hex} value.\n */\nexport function fromBytes(value, options = {}) {\n let string = '';\n for (let i = 0; i < value.length; i++)\n string += hexes[value[i]];\n const hex = `0x${string}`;\n if (typeof options.size === 'number') {\n internal.assertSize(hex, options.size);\n return padRight(hex, options.size);\n }\n return hex;\n}\n/**\n * Encodes a number or bigint into a {@link ox#Hex.Hex} value.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * Hex.fromNumber(420)\n * // @log: '0x1a4'\n *\n * Hex.fromNumber(420, { size: 32 })\n * // @log: '0x00000000000000000000000000000000000000000000000000000000000001a4'\n * ```\n *\n * @param value - The number or bigint value to encode.\n * @param options - Options.\n * @returns The encoded {@link ox#Hex.Hex} value.\n */\nexport function fromNumber(value, options = {}) {\n const { signed, size } = options;\n const value_ = BigInt(value);\n let maxValue;\n if (size) {\n if (signed)\n maxValue = (1n << (BigInt(size) * 8n - 1n)) - 1n;\n else\n maxValue = 2n ** (BigInt(size) * 8n) - 1n;\n }\n else if (typeof value === 'number') {\n maxValue = BigInt(Number.MAX_SAFE_INTEGER);\n }\n const minValue = typeof maxValue === 'bigint' && signed ? -maxValue - 1n : 0;\n if ((maxValue && value_ > maxValue) || value_ < minValue) {\n const suffix = typeof value === 'bigint' ? 'n' : '';\n throw new IntegerOutOfRangeError({\n max: maxValue ? `${maxValue}${suffix}` : undefined,\n min: `${minValue}${suffix}`,\n signed,\n size,\n value: `${value}${suffix}`,\n });\n }\n const stringValue = (signed && value_ < 0 ? BigInt.asUintN(size * 8, BigInt(value_)) : value_).toString(16);\n const hex = `0x${stringValue}`;\n if (size)\n return padLeft(hex, size);\n return hex;\n}\n/**\n * Encodes a string into a {@link ox#Hex.Hex} value.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n * Hex.fromString('Hello World!')\n * // '0x48656c6c6f20576f726c6421'\n *\n * Hex.fromString('Hello World!', { size: 32 })\n * // '0x48656c6c6f20576f726c64210000000000000000000000000000000000000000'\n * ```\n *\n * @param value - The string value to encode.\n * @param options - Options.\n * @returns The encoded {@link ox#Hex.Hex} value.\n */\nexport function fromString(value, options = {}) {\n return fromBytes(encoder.encode(value), options);\n}\n/**\n * Checks if two {@link ox#Hex.Hex} values are equal.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * Hex.isEqual('0xdeadbeef', '0xdeadbeef')\n * // @log: true\n *\n * Hex.isEqual('0xda', '0xba')\n * // @log: false\n * ```\n *\n * @param hexA - The first {@link ox#Hex.Hex} value.\n * @param hexB - The second {@link ox#Hex.Hex} value.\n * @returns `true` if the two {@link ox#Hex.Hex} values are equal, `false` otherwise.\n */\nexport function isEqual(hexA, hexB) {\n return equalBytes(Bytes.fromHex(hexA), Bytes.fromHex(hexB));\n}\n/**\n * Pads a {@link ox#Hex.Hex} value to the left with zero bytes until it reaches the given `size` (default: 32 bytes).\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * Hex.padLeft('0x1234', 4)\n * // @log: '0x00001234'\n * ```\n *\n * @param value - The {@link ox#Hex.Hex} value to pad.\n * @param size - The size (in bytes) of the output hex value.\n * @returns The padded {@link ox#Hex.Hex} value.\n */\nexport function padLeft(value, size) {\n return internal.pad(value, { dir: 'left', size });\n}\n/**\n * Pads a {@link ox#Hex.Hex} value to the right with zero bytes until it reaches the given `size` (default: 32 bytes).\n *\n * @example\n * ```ts\n * import { Hex } from 'ox'\n *\n * Hex.padRight('0x1234', 4)\n * // @log: '0x12340000'\n * ```\n *\n * @param value - The {@link ox#Hex.Hex} value to pad.\n * @param size - The size (in bytes) of the output hex value.\n * @returns The padded {@link ox#Hex.Hex} value.\n */\nexport function padRight(value, size) {\n return internal.pad(value, { dir: 'right', size });\n}\n/**\n * Generates a random {@link ox#Hex.Hex} value of the specified length.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * const hex = Hex.random(32)\n * // @log: '0x...'\n * ```\n *\n * @returns Random {@link ox#Hex.Hex} value.\n */\nexport function random(length) {\n return fromBytes(Bytes.random(length));\n}\n/**\n * Returns a section of a {@link ox#Bytes.Bytes} value given a start/end bytes offset.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * Hex.slice('0x0123456789', 1, 4)\n * // @log: '0x234567'\n * ```\n *\n * @param value - The {@link ox#Hex.Hex} value to slice.\n * @param start - The start offset (in bytes).\n * @param end - The end offset (in bytes).\n * @param options - Options.\n * @returns The sliced {@link ox#Hex.Hex} value.\n */\nexport function slice(value, start, end, options = {}) {\n const { strict } = options;\n internal.assertStartOffset(value, start);\n const value_ = `0x${value\n .replace('0x', '')\n .slice((start ?? 0) * 2, (end ?? value.length) * 2)}`;\n if (strict)\n internal.assertEndOffset(value_, start, end);\n return value_;\n}\n/**\n * Retrieves the size of a {@link ox#Hex.Hex} value (in bytes).\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * Hex.size('0xdeadbeef')\n * // @log: 4\n * ```\n *\n * @param value - The {@link ox#Hex.Hex} value to get the size of.\n * @returns The size of the {@link ox#Hex.Hex} value (in bytes).\n */\nexport function size(value) {\n return Math.ceil((value.length - 2) / 2);\n}\n/**\n * Trims leading zeros from a {@link ox#Hex.Hex} value.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * Hex.trimLeft('0x00000000deadbeef')\n * // @log: '0xdeadbeef'\n * ```\n *\n * @param value - The {@link ox#Hex.Hex} value to trim.\n * @returns The trimmed {@link ox#Hex.Hex} value.\n */\nexport function trimLeft(value) {\n return internal.trim(value, { dir: 'left' });\n}\n/**\n * Trims trailing zeros from a {@link ox#Hex.Hex} value.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * Hex.trimRight('0xdeadbeef00000000')\n * // @log: '0xdeadbeef'\n * ```\n *\n * @param value - The {@link ox#Hex.Hex} value to trim.\n * @returns The trimmed {@link ox#Hex.Hex} value.\n */\nexport function trimRight(value) {\n return internal.trim(value, { dir: 'right' });\n}\n/**\n * Decodes a {@link ox#Hex.Hex} value into a BigInt.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * Hex.toBigInt('0x1a4')\n * // @log: 420n\n *\n * Hex.toBigInt('0x00000000000000000000000000000000000000000000000000000000000001a4', { size: 32 })\n * // @log: 420n\n * ```\n *\n * @param hex - The {@link ox#Hex.Hex} value to decode.\n * @param options - Options.\n * @returns The decoded BigInt.\n */\nexport function toBigInt(hex, options = {}) {\n const { signed } = options;\n if (options.size)\n internal.assertSize(hex, options.size);\n const value = BigInt(hex);\n if (!signed)\n return value;\n const size = (hex.length - 2) / 2;\n const max_unsigned = (1n << (BigInt(size) * 8n)) - 1n;\n const max_signed = max_unsigned >> 1n;\n if (value <= max_signed)\n return value;\n return value - max_unsigned - 1n;\n}\n/**\n * Decodes a {@link ox#Hex.Hex} value into a boolean.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * Hex.toBoolean('0x01')\n * // @log: true\n *\n * Hex.toBoolean('0x0000000000000000000000000000000000000000000000000000000000000001', { size: 32 })\n * // @log: true\n * ```\n *\n * @param hex - The {@link ox#Hex.Hex} value to decode.\n * @param options - Options.\n * @returns The decoded boolean.\n */\nexport function toBoolean(hex, options = {}) {\n if (options.size)\n internal.assertSize(hex, options.size);\n const hex_ = trimLeft(hex);\n if (hex_ === '0x')\n return false;\n if (hex_ === '0x1')\n return true;\n throw new InvalidHexBooleanError(hex);\n}\n/**\n * Decodes a {@link ox#Hex.Hex} value into a {@link ox#Bytes.Bytes}.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * const data = Hex.toBytes('0x48656c6c6f20776f726c6421')\n * // @log: Uint8Array([72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100, 33])\n * ```\n *\n * @param hex - The {@link ox#Hex.Hex} value to decode.\n * @param options - Options.\n * @returns The decoded {@link ox#Bytes.Bytes}.\n */\nexport function toBytes(hex, options = {}) {\n return Bytes.fromHex(hex, options);\n}\n/**\n * Decodes a {@link ox#Hex.Hex} value into a number.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * Hex.toNumber('0x1a4')\n * // @log: 420\n *\n * Hex.toNumber('0x00000000000000000000000000000000000000000000000000000000000001a4', { size: 32 })\n * // @log: 420\n * ```\n *\n * @param hex - The {@link ox#Hex.Hex} value to decode.\n * @param options - Options.\n * @returns The decoded number.\n */\nexport function toNumber(hex, options = {}) {\n const { signed, size } = options;\n if (!signed && !size)\n return Number(hex);\n return Number(toBigInt(hex, options));\n}\n/**\n * Decodes a {@link ox#Hex.Hex} value into a string.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * Hex.toString('0x48656c6c6f20576f726c6421')\n * // @log: 'Hello world!'\n *\n * Hex.toString('0x48656c6c6f20576f726c64210000000000000000000000000000000000000000', {\n * size: 32,\n * })\n * // @log: 'Hello world'\n * ```\n *\n * @param hex - The {@link ox#Hex.Hex} value to decode.\n * @param options - Options.\n * @returns The decoded string.\n */\nexport function toString(hex, options = {}) {\n const { size } = options;\n let bytes = Bytes.fromHex(hex);\n if (size) {\n internal_bytes.assertSize(bytes, size);\n bytes = Bytes.trimRight(bytes);\n }\n return new TextDecoder().decode(bytes);\n}\n/**\n * Checks if the given value is {@link ox#Hex.Hex}.\n *\n * @example\n * ```ts twoslash\n * import { Bytes, Hex } from 'ox'\n *\n * Hex.validate('0xdeadbeef')\n * // @log: true\n *\n * Hex.validate(Bytes.from([1, 2, 3]))\n * // @log: false\n * ```\n *\n * @param value - The value to check.\n * @param options - Options.\n * @returns `true` if the value is a {@link ox#Hex.Hex}, `false` otherwise.\n */\nexport function validate(value, options = {}) {\n const { even = false, strict = false } = options;\n try {\n assert(value, { even, strict });\n return true;\n }\n catch {\n return false;\n }\n}\n/**\n * Thrown when the provided integer is out of range, and cannot be represented as a hex value.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * Hex.fromNumber(420182738912731283712937129)\n * // @error: Hex.IntegerOutOfRangeError: Number \\`4.2018273891273126e+26\\` is not in safe unsigned integer range (`0` to `9007199254740991`)\n * ```\n */\nexport class IntegerOutOfRangeError extends Errors.BaseError {\n constructor({ max, min, signed, size, value, }) {\n super(`Number \\`${value}\\` is not in safe${size ? ` ${size * 8}-bit` : ''}${signed ? ' signed' : ' unsigned'} integer range ${max ? `(\\`${min}\\` to \\`${max}\\`)` : `(above \\`${min}\\`)`}`);\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'Hex.IntegerOutOfRangeError'\n });\n }\n}\n/**\n * Thrown when the provided hex value cannot be represented as a boolean.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * Hex.toBoolean('0xa')\n * // @error: Hex.InvalidHexBooleanError: Hex value `\"0xa\"` is not a valid boolean.\n * // @error: The hex value must be `\"0x0\"` (false) or `\"0x1\"` (true).\n * ```\n */\nexport class InvalidHexBooleanError extends Errors.BaseError {\n constructor(hex) {\n super(`Hex value \\`\"${hex}\"\\` is not a valid boolean.`, {\n metaMessages: [\n 'The hex value must be `\"0x0\"` (false) or `\"0x1\"` (true).',\n ],\n });\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'Hex.InvalidHexBooleanError'\n });\n }\n}\n/**\n * Thrown when the provided value is not a valid hex type.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * Hex.assert(1)\n * // @error: Hex.InvalidHexTypeError: Value `1` of type `number` is an invalid hex type.\n * ```\n */\nexport class InvalidHexTypeError extends Errors.BaseError {\n constructor(value) {\n super(`Value \\`${typeof value === 'object' ? Json.stringify(value) : value}\\` of type \\`${typeof value}\\` is an invalid hex type.`, {\n metaMessages: ['Hex types must be represented as `\"0x${string}\"`.'],\n });\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'Hex.InvalidHexTypeError'\n });\n }\n}\n/**\n * Thrown when the provided hex value is invalid.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * Hex.assert('0x0123456789abcdefg')\n * // @error: Hex.InvalidHexValueError: Value `0x0123456789abcdefg` is an invalid hex value.\n * // @error: Hex values must start with `\"0x\"` and contain only hexadecimal characters (0-9, a-f, A-F).\n * ```\n */\nexport class InvalidHexValueError extends Errors.BaseError {\n constructor(value) {\n super(`Value \\`${value}\\` is an invalid hex value.`, {\n metaMessages: [\n 'Hex values must start with `\"0x\"` and contain only hexadecimal characters (0-9, a-f, A-F).',\n ],\n });\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'Hex.InvalidHexValueError'\n });\n }\n}\n/**\n * Thrown when the provided hex value is an odd length.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * Bytes.fromHex('0xabcde')\n * // @error: Hex.InvalidLengthError: Hex value `\"0xabcde\"` is an odd length (5 nibbles).\n * ```\n */\nexport class InvalidLengthError extends Errors.BaseError {\n constructor(value) {\n super(`Hex value \\`\"${value}\"\\` is an odd length (${value.length - 2} nibbles).`, {\n metaMessages: ['It must be an even length.'],\n });\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'Hex.InvalidLengthError'\n });\n }\n}\n/**\n * Thrown when the size of the value exceeds the expected max size.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * Hex.fromString('Hello World!', { size: 8 })\n * // @error: Hex.SizeOverflowError: Size cannot exceed `8` bytes. Given size: `12` bytes.\n * ```\n */\nexport class SizeOverflowError extends Errors.BaseError {\n constructor({ givenSize, maxSize }) {\n super(`Size cannot exceed \\`${maxSize}\\` bytes. Given size: \\`${givenSize}\\` bytes.`);\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'Hex.SizeOverflowError'\n });\n }\n}\n/**\n * Thrown when the slice offset exceeds the bounds of the value.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * Hex.slice('0x0123456789', 6)\n * // @error: Hex.SliceOffsetOutOfBoundsError: Slice starting at offset `6` is out-of-bounds (size: `5`).\n * ```\n */\nexport class SliceOffsetOutOfBoundsError extends Errors.BaseError {\n constructor({ offset, position, size, }) {\n super(`Slice ${position === 'start' ? 'starting' : 'ending'} at offset \\`${offset}\\` is out-of-bounds (size: \\`${size}\\`).`);\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'Hex.SliceOffsetOutOfBoundsError'\n });\n }\n}\n/**\n * Thrown when the size of the value exceeds the pad size.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * Hex.padLeft('0x1a4e12a45a21323123aaa87a897a897a898a6567a578a867a98778a667a85a875a87a6a787a65a675a6a9', 32)\n * // @error: Hex.SizeExceedsPaddingSizeError: Hex size (`43`) exceeds padding size (`32`).\n * ```\n */\nexport class SizeExceedsPaddingSizeError extends Errors.BaseError {\n constructor({ size, targetSize, type, }) {\n super(`${type.charAt(0).toUpperCase()}${type\n .slice(1)\n .toLowerCase()} size (\\`${size}\\`) exceeds padding size (\\`${targetSize}\\`).`);\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'Hex.SizeExceedsPaddingSizeError'\n });\n }\n}\n//# sourceMappingURL=Hex.js.map","import { equalBytes } from '@noble/curves/abstract/utils';\nimport * as Errors from './Errors.js';\nimport * as Hex from './Hex.js';\nimport * as internal from './internal/bytes.js';\nimport * as internal_hex from './internal/hex.js';\nimport * as Json from './Json.js';\nconst decoder = /*#__PURE__*/ new TextDecoder();\nconst encoder = /*#__PURE__*/ new TextEncoder();\n/**\n * Asserts if the given value is {@link ox#Bytes.Bytes}.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * Bytes.assert('abc')\n * // @error: Bytes.InvalidBytesTypeError:\n * // @error: Value `\"abc\"` of type `string` is an invalid Bytes value.\n * // @error: Bytes values must be of type `Uint8Array`.\n * ```\n *\n * @param value - Value to assert.\n */\nexport function assert(value) {\n if (value instanceof Uint8Array)\n return;\n if (!value)\n throw new InvalidBytesTypeError(value);\n if (typeof value !== 'object')\n throw new InvalidBytesTypeError(value);\n if (!('BYTES_PER_ELEMENT' in value))\n throw new InvalidBytesTypeError(value);\n if (value.BYTES_PER_ELEMENT !== 1 || value.constructor.name !== 'Uint8Array')\n throw new InvalidBytesTypeError(value);\n}\n/**\n * Concatenates two or more {@link ox#Bytes.Bytes}.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * const bytes = Bytes.concat(\n * Bytes.from([1]),\n * Bytes.from([69]),\n * Bytes.from([420, 69]),\n * )\n * // @log: Uint8Array [ 1, 69, 420, 69 ]\n * ```\n *\n * @param values - Values to concatenate.\n * @returns Concatenated {@link ox#Bytes.Bytes}.\n */\nexport function concat(...values) {\n let length = 0;\n for (const arr of values) {\n length += arr.length;\n }\n const result = new Uint8Array(length);\n for (let i = 0, index = 0; i < values.length; i++) {\n const arr = values[i];\n result.set(arr, index);\n index += arr.length;\n }\n return result;\n}\n/**\n * Instantiates a {@link ox#Bytes.Bytes} value from a `Uint8Array`, a hex string, or an array of unsigned 8-bit integers.\n *\n * :::tip\n *\n * To instantiate from a **Boolean**, **String**, or **Number**, use one of the following:\n *\n * - `Bytes.fromBoolean`\n *\n * - `Bytes.fromString`\n *\n * - `Bytes.fromNumber`\n *\n * :::\n *\n * @example\n * ```ts twoslash\n * // @noErrors\n * import { Bytes } from 'ox'\n *\n * const data = Bytes.from([255, 124, 5, 4])\n * // @log: Uint8Array([255, 124, 5, 4])\n *\n * const data = Bytes.from('0xdeadbeef')\n * // @log: Uint8Array([222, 173, 190, 239])\n * ```\n *\n * @param value - Value to convert.\n * @returns A {@link ox#Bytes.Bytes} instance.\n */\nexport function from(value) {\n if (value instanceof Uint8Array)\n return value;\n if (typeof value === 'string')\n return fromHex(value);\n return fromArray(value);\n}\n/**\n * Converts an array of unsigned 8-bit integers into {@link ox#Bytes.Bytes}.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * const data = Bytes.fromArray([255, 124, 5, 4])\n * // @log: Uint8Array([255, 124, 5, 4])\n * ```\n *\n * @param value - Value to convert.\n * @returns A {@link ox#Bytes.Bytes} instance.\n */\nexport function fromArray(value) {\n return value instanceof Uint8Array ? value : new Uint8Array(value);\n}\n/**\n * Encodes a boolean value into {@link ox#Bytes.Bytes}.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * const data = Bytes.fromBoolean(true)\n * // @log: Uint8Array([1])\n * ```\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * const data = Bytes.fromBoolean(true, { size: 32 })\n * // @log: Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1])\n * ```\n *\n * @param value - Boolean value to encode.\n * @param options - Encoding options.\n * @returns Encoded {@link ox#Bytes.Bytes}.\n */\nexport function fromBoolean(value, options = {}) {\n const { size } = options;\n const bytes = new Uint8Array(1);\n bytes[0] = Number(value);\n if (typeof size === 'number') {\n internal.assertSize(bytes, size);\n return padLeft(bytes, size);\n }\n return bytes;\n}\n/**\n * Encodes a {@link ox#Hex.Hex} value into {@link ox#Bytes.Bytes}.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * const data = Bytes.fromHex('0x48656c6c6f20776f726c6421')\n * // @log: Uint8Array([72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100, 33])\n * ```\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * const data = Bytes.fromHex('0x48656c6c6f20776f726c6421', { size: 32 })\n * // @log: Uint8Array([72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100, 33, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])\n * ```\n *\n * @param value - {@link ox#Hex.Hex} value to encode.\n * @param options - Encoding options.\n * @returns Encoded {@link ox#Bytes.Bytes}.\n */\nexport function fromHex(value, options = {}) {\n const { size } = options;\n let hex = value;\n if (size) {\n internal_hex.assertSize(value, size);\n hex = Hex.padRight(value, size);\n }\n let hexString = hex.slice(2);\n if (hexString.length % 2)\n hexString = `0${hexString}`;\n const length = hexString.length / 2;\n const bytes = new Uint8Array(length);\n for (let index = 0, j = 0; index < length; index++) {\n const nibbleLeft = internal.charCodeToBase16(hexString.charCodeAt(j++));\n const nibbleRight = internal.charCodeToBase16(hexString.charCodeAt(j++));\n if (nibbleLeft === undefined || nibbleRight === undefined) {\n throw new Errors.BaseError(`Invalid byte sequence (\"${hexString[j - 2]}${hexString[j - 1]}\" in \"${hexString}\").`);\n }\n bytes[index] = (nibbleLeft << 4) | nibbleRight;\n }\n return bytes;\n}\n/**\n * Encodes a number value into {@link ox#Bytes.Bytes}.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * const data = Bytes.fromNumber(420)\n * // @log: Uint8Array([1, 164])\n * ```\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * const data = Bytes.fromNumber(420, { size: 4 })\n * // @log: Uint8Array([0, 0, 1, 164])\n * ```\n *\n * @param value - Number value to encode.\n * @param options - Encoding options.\n * @returns Encoded {@link ox#Bytes.Bytes}.\n */\nexport function fromNumber(value, options) {\n const hex = Hex.fromNumber(value, options);\n return fromHex(hex);\n}\n/**\n * Encodes a string into {@link ox#Bytes.Bytes}.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * const data = Bytes.fromString('Hello world!')\n * // @log: Uint8Array([72, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100, 33])\n * ```\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * const data = Bytes.fromString('Hello world!', { size: 32 })\n * // @log: Uint8Array([72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100, 33, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])\n * ```\n *\n * @param value - String to encode.\n * @param options - Encoding options.\n * @returns Encoded {@link ox#Bytes.Bytes}.\n */\nexport function fromString(value, options = {}) {\n const { size } = options;\n const bytes = encoder.encode(value);\n if (typeof size === 'number') {\n internal.assertSize(bytes, size);\n return padRight(bytes, size);\n }\n return bytes;\n}\n/**\n * Checks if two {@link ox#Bytes.Bytes} values are equal.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * Bytes.isEqual(Bytes.from([1]), Bytes.from([1]))\n * // @log: true\n *\n * Bytes.isEqual(Bytes.from([1]), Bytes.from([2]))\n * // @log: false\n * ```\n *\n * @param bytesA - First {@link ox#Bytes.Bytes} value.\n * @param bytesB - Second {@link ox#Bytes.Bytes} value.\n * @returns `true` if the two values are equal, otherwise `false`.\n */\nexport function isEqual(bytesA, bytesB) {\n return equalBytes(bytesA, bytesB);\n}\n/**\n * Pads a {@link ox#Bytes.Bytes} value to the left with zero bytes until it reaches the given `size` (default: 32 bytes).\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * Bytes.padLeft(Bytes.from([1]), 4)\n * // @log: Uint8Array([0, 0, 0, 1])\n * ```\n *\n * @param value - {@link ox#Bytes.Bytes} value to pad.\n * @param size - Size to pad the {@link ox#Bytes.Bytes} value to.\n * @returns Padded {@link ox#Bytes.Bytes} value.\n */\nexport function padLeft(value, size) {\n return internal.pad(value, { dir: 'left', size });\n}\n/**\n * Pads a {@link ox#Bytes.Bytes} value to the right with zero bytes until it reaches the given `size` (default: 32 bytes).\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * Bytes.padRight(Bytes.from([1]), 4)\n * // @log: Uint8Array([1, 0, 0, 0])\n * ```\n *\n * @param value - {@link ox#Bytes.Bytes} value to pad.\n * @param size - Size to pad the {@link ox#Bytes.Bytes} value to.\n * @returns Padded {@link ox#Bytes.Bytes} value.\n */\nexport function padRight(value, size) {\n return internal.pad(value, { dir: 'right', size });\n}\n/**\n * Generates random {@link ox#Bytes.Bytes} of the specified length.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * const bytes = Bytes.random(32)\n * // @log: Uint8Array([... x32])\n * ```\n *\n * @param length - Length of the random {@link ox#Bytes.Bytes} to generate.\n * @returns Random {@link ox#Bytes.Bytes} of the specified length.\n */\nexport function random(length) {\n return crypto.getRandomValues(new Uint8Array(length));\n}\n/**\n * Retrieves the size of a {@link ox#Bytes.Bytes} value.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * Bytes.size(Bytes.from([1, 2, 3, 4]))\n * // @log: 4\n * ```\n *\n * @param value - {@link ox#Bytes.Bytes} value.\n * @returns Size of the {@link ox#Bytes.Bytes} value.\n */\nexport function size(value) {\n return value.length;\n}\n/**\n * Returns a section of a {@link ox#Bytes.Bytes} value given a start/end bytes offset.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * Bytes.slice(\n * Bytes.from([1, 2, 3, 4, 5, 6, 7, 8, 9]),\n * 1,\n * 4,\n * )\n * // @log: Uint8Array([2, 3, 4])\n * ```\n *\n * @param value - The {@link ox#Bytes.Bytes} value.\n * @param start - Start offset.\n * @param end - End offset.\n * @param options - Slice options.\n * @returns Sliced {@link ox#Bytes.Bytes} value.\n */\nexport function slice(value, start, end, options = {}) {\n const { strict } = options;\n internal.assertStartOffset(value, start);\n const value_ = value.slice(start, end);\n if (strict)\n internal.assertEndOffset(value_, start, end);\n return value_;\n}\n/**\n * Decodes a {@link ox#Bytes.Bytes} into a bigint.\n *\n * @example\n * ```ts\n * import { Bytes } from 'ox'\n *\n * Bytes.toBigInt(Bytes.from([1, 164]))\n * // @log: 420n\n * ```\n *\n * @param bytes - The {@link ox#Bytes.Bytes} to decode.\n * @param options - Decoding options.\n * @returns Decoded bigint.\n */\nexport function toBigInt(bytes, options = {}) {\n const { size } = options;\n if (typeof size !== 'undefined')\n internal.assertSize(bytes, size);\n const hex = Hex.fromBytes(bytes, options);\n return Hex.toBigInt(hex, options);\n}\n/**\n * Decodes a {@link ox#Bytes.Bytes} into a boolean.\n *\n * @example\n * ```ts\n * import { Bytes } from 'ox'\n *\n * Bytes.toBoolean(Bytes.from([1]))\n * // @log: true\n * ```\n *\n * @param bytes - The {@link ox#Bytes.Bytes} to decode.\n * @param options - Decoding options.\n * @returns Decoded boolean.\n */\nexport function toBoolean(bytes, options = {}) {\n const { size } = options;\n let bytes_ = bytes;\n if (typeof size !== 'undefined') {\n internal.assertSize(bytes_, size);\n bytes_ = trimLeft(bytes_);\n }\n if (bytes_.length > 1 || bytes_[0] > 1)\n throw new InvalidBytesBooleanError(bytes_);\n return Boolean(bytes_[0]);\n}\n/**\n * Encodes a {@link ox#Bytes.Bytes} value into a {@link ox#Hex.Hex} value.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * Bytes.toHex(Bytes.from([72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100, 33]))\n * // '0x48656c6c6f20576f726c6421'\n * ```\n *\n * @param value - The {@link ox#Bytes.Bytes} to decode.\n * @param options - Options.\n * @returns Decoded {@link ox#Hex.Hex} value.\n */\nexport function toHex(value, options = {}) {\n return Hex.fromBytes(value, options);\n}\n/**\n * Decodes a {@link ox#Bytes.Bytes} into a number.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * Bytes.toNumber(Bytes.from([1, 164]))\n * // @log: 420\n * ```\n */\nexport function toNumber(bytes, options = {}) {\n const { size } = options;\n if (typeof size !== 'undefined')\n internal.assertSize(bytes, size);\n const hex = Hex.fromBytes(bytes, options);\n return Hex.toNumber(hex, options);\n}\n/**\n * Decodes a {@link ox#Bytes.Bytes} into a string.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * const data = Bytes.toString(Bytes.from([72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100, 33]))\n * // @log: 'Hello world'\n * ```\n *\n * @param bytes - The {@link ox#Bytes.Bytes} to decode.\n * @param options - Options.\n * @returns Decoded string.\n */\nexport function toString(bytes, options = {}) {\n const { size } = options;\n let bytes_ = bytes;\n if (typeof size !== 'undefined') {\n internal.assertSize(bytes_, size);\n bytes_ = trimRight(bytes_);\n }\n return decoder.decode(bytes_);\n}\n/**\n * Trims leading zeros from a {@link ox#Bytes.Bytes} value.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * Bytes.trimLeft(Bytes.from([0, 0, 0, 0, 1, 2, 3]))\n * // @log: Uint8Array([1, 2, 3])\n * ```\n *\n * @param value - {@link ox#Bytes.Bytes} value.\n * @returns Trimmed {@link ox#Bytes.Bytes} value.\n */\nexport function trimLeft(value) {\n return internal.trim(value, { dir: 'left' });\n}\n/**\n * Trims trailing zeros from a {@link ox#Bytes.Bytes} value.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * Bytes.trimRight(Bytes.from([1, 2, 3, 0, 0, 0, 0]))\n * // @log: Uint8Array([1, 2, 3])\n * ```\n *\n * @param value - {@link ox#Bytes.Bytes} value.\n * @returns Trimmed {@link ox#Bytes.Bytes} value.\n */\nexport function trimRight(value) {\n return internal.trim(value, { dir: 'right' });\n}\n/**\n * Checks if the given value is {@link ox#Bytes.Bytes}.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * Bytes.validate('0x')\n * // @log: false\n *\n * Bytes.validate(Bytes.from([1, 2, 3]))\n * // @log: true\n * ```\n *\n * @param value - Value to check.\n * @returns `true` if the value is {@link ox#Bytes.Bytes}, otherwise `false`.\n */\nexport function validate(value) {\n try {\n assert(value);\n return true;\n }\n catch {\n return false;\n }\n}\n/**\n * Thrown when the bytes value cannot be represented as a boolean.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * Bytes.toBoolean(Bytes.from([5]))\n * // @error: Bytes.InvalidBytesBooleanError: Bytes value `[5]` is not a valid boolean.\n * // @error: The bytes array must contain a single byte of either a `0` or `1` value.\n * ```\n */\nexport class InvalidBytesBooleanError extends Errors.BaseError {\n constructor(bytes) {\n super(`Bytes value \\`${bytes}\\` is not a valid boolean.`, {\n metaMessages: [\n 'The bytes array must contain a single byte of either a `0` or `1` value.',\n ],\n });\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'Bytes.InvalidBytesBooleanError'\n });\n }\n}\n/**\n * Thrown when a value cannot be converted to bytes.\n *\n * @example\n * ```ts twoslash\n * // @noErrors\n * import { Bytes } from 'ox'\n *\n * Bytes.from('foo')\n * // @error: Bytes.InvalidBytesTypeError: Value `foo` of type `string` is an invalid Bytes value.\n * ```\n */\nexport class InvalidBytesTypeError extends Errors.BaseError {\n constructor(value) {\n super(`Value \\`${typeof value === 'object' ? Json.stringify(value) : value}\\` of type \\`${typeof value}\\` is an invalid Bytes value.`, {\n metaMessages: ['Bytes values must be of type `Bytes`.'],\n });\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'Bytes.InvalidBytesTypeError'\n });\n }\n}\n/**\n * Thrown when a size exceeds the maximum allowed size.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * Bytes.fromString('Hello World!', { size: 8 })\n * // @error: Bytes.SizeOverflowError: Size cannot exceed `8` bytes. Given size: `12` bytes.\n * ```\n */\nexport class SizeOverflowError extends Errors.BaseError {\n constructor({ givenSize, maxSize }) {\n super(`Size cannot exceed \\`${maxSize}\\` bytes. Given size: \\`${givenSize}\\` bytes.`);\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'Bytes.SizeOverflowError'\n });\n }\n}\n/**\n * Thrown when a slice offset is out-of-bounds.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * Bytes.slice(Bytes.from([1, 2, 3]), 4)\n * // @error: Bytes.SliceOffsetOutOfBoundsError: Slice starting at offset `4` is out-of-bounds (size: `3`).\n * ```\n */\nexport class SliceOffsetOutOfBoundsError extends Errors.BaseError {\n constructor({ offset, position, size, }) {\n super(`Slice ${position === 'start' ? 'starting' : 'ending'} at offset \\`${offset}\\` is out-of-bounds (size: \\`${size}\\`).`);\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'Bytes.SliceOffsetOutOfBoundsError'\n });\n }\n}\n/**\n * Thrown when a the padding size exceeds the maximum allowed size.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * Bytes.padLeft(Bytes.fromString('Hello World!'), 8)\n * // @error: [Bytes.SizeExceedsPaddingSizeError: Bytes size (`12`) exceeds padding size (`8`).\n * ```\n */\nexport class SizeExceedsPaddingSizeError extends Errors.BaseError {\n constructor({ size, targetSize, type, }) {\n super(`${type.charAt(0).toUpperCase()}${type\n .slice(1)\n .toLowerCase()} size (\\`${size}\\`) exceeds padding size (\\`${targetSize}\\`).`);\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'Bytes.SizeExceedsPaddingSizeError'\n });\n }\n}\n//# sourceMappingURL=Bytes.js.map"],"ignoreList":[0,1,2,3,4,5,6,7,8],"mappings":"A,sJACA,IAAagE,GAAU,QCKvB,SAAgBC,IAAa,CACzB,OAAOD,EACX,CAEA,SAAgBE,GAAY,EAAM,CAC9B,GAAI,CAACC,EACD,MAAO,GACX,IAAMC,EAAU,OAAO,QAAQD,CAAI,CAAC,CAC/B,KAAK,CAACE,EAAKC,KACRA,IAAU,IAAA,IAAaA,IAAU,GAC1B,KACJ,CAACD,EAAKC,CAAK,CACrB,CAAC,CACG,OAAO,OAAO,EACbC,EAAYH,EAAQ,QAAQ,EAAK,CAACC,KAAS,KAAK,IAAIG,EAAKH,EAAI,MAAM,EAAG,CAAC,EAC7E,OAAOD,EACF,KAAK,CAACC,EAAKC,KAAW,KAAK,GAAGD,EAAI,GAAG,OAAOE,EAAY,CAAC,EAAE,IAAID,GAAO,CAAC,CACvE,KAAK;CAAI,CAClB,CCdA,IAAaG,EAAb,MAAaA,UAAkB,KAAM,CACjC,OAAO,iBAAiB,EAAS,CAC7B,EAAU,UAAU,WAAaC,EAAQ,WACzC,EAAU,UAAU,YAAcA,EAAQ,YAC1C,EAAU,UAAU,QAAUA,EAAQ,OAC1C,CACA,YAAY,EAAc,EAAU,CAAC,EAAG,CACpC,IAAMC,OAAiB,CACnB,GAAID,EAAQ,iBAAiBD,EAAW,CACpC,GAAIC,EAAQ,MAAM,QACd,OAAOA,EAAQ,MAA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AY,CAAE,SAAQ,WAAU,QAAS,CACrC,MAAM,SAAS4K,IAAa,QAAU,WAAa,SAAS,eAAeC,EAAO,+BAA+B7E,EAAK,KAAK,EAC3H,OAAO,eAAe,KAAM,OAAQ,CAChC,WAAY,GACZ,aAAc,GACd,SAAU,GACV,MAAO,mCACX,CAAC,CACL,CACJ,EAYaY,GAAb,cAAiD5G,CAAiB,CAC9D,YAAY,CAAE,OAAM,aAAY,QAAS,CACrC,MAAM,GAAG8K,EAAK,OAAO,CAAC,CAAC,CAAC,YAAY,IAAIA,EACnC,MAAM,CAAC,CAAC,CACR,YAAY,EAAE,WAAW9E,EAAK,8BAA8B+E,EAAW,KAAK,EACjF,OAAO,eAAe,KAAM,OAAQ,CAChC,WAAY,GACZ,aAAc,GACd,SAAU,GACV,MAAO,mCACX,CAAC,CACL,CACJ,E"}
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.z_tds_2f_web-SXp91t0{align-items:center}.z_tds_2f_web-SXp91t1{background-color:#0000}.z_tds_2f_web-SXp91t2{border:none}.z_tds_2f_web-SXp91t3{border-radius:var(--z-tds_2f_web-radius-full,9999px)}.z_tds_2f_web-SXp91t4{color:inherit}.z_tds_2f_web-SXp91t5{cursor:pointer}.z_tds_2f_web-SXp91t6{display:inline-flex}.z_tds_2f_web-SXp91t7{flex-shrink:0}.z_tds_2f_web-SXp91t8{margin-inline-end:var(--z-tds_2f_web-spacing-_2d_4,-.25rem)}.z_tds_2f_web-SXp91t9{margin-inline-start:auto}.z_tds_2f_web-SXp91ta{outline-color:#0000}.z_tds_2f_web-SXp91tb{outline-offset:var(--z-tds_2f_web-outlineOffset-0,0px)}.z_tds_2f_web-SXp91tc{outline-style:solid}.z_tds_2f_web-SXp91td{outline-width:var(--z-tds_2f_web-outlineWidth-2,2px)}.z_tds_2f_web-SXp91te{padding-block:var(--z-tds_2f_web-spacing-0,0rem)}.z_tds_2f_web-SXp91tf{padding-inline:var(--z-tds_2f_web-spacing-4,.25rem)}.z_tds_2f_web-SXp91tg{text-decoration:underline}.z_tds_2f_web-SXp91th{text-underline-offset:2px}.z_tds_2f_web-SXp91ti{transition-duration:var(--z-tds_2f_web-transitionDuration-160,.16s)}.z_tds_2f_web-SXp91tj{transition-property:outline-color,outline-offset,text-decoration-color,scale}.z_tds_2f_web-SXp91tk{transition-timing-function:var(--z-tds_2f_web-ease-snappy,cubic-bezier(.23, 1, .32, 1))}.z_tds_2f_web-SXp91tl{font:inherit}.z_tds_2f_web-SXp91tm{white-space:nowrap}.z_tds_2f_web-SXp91tn{&:active{scale:var(--z-tds_2f_web-scale-press,.98)}}.z_tds_2f_web-SXp91to{&:focus-visible{outline-color:var(--z-tds_2f_web-color-blue-700,#4471ed)}}.z_tds_2f_web-SXp91tp{&:focus-visible{outline-offset:var(--z-tds_2f_web-outlineOffset-2,2px)}}.z_tds_2f_web-SXp91tq{&:hover{text-decoration-color:#0000}}@media (prefers-reduced-motion:reduce){.z_tds_2f_web-SXp91tr{transition-property:outline-color,text-decoration-color}.z_tds_2f_web-SXp91ts{&:active{scale:none}}}.z_tds_2f_web-SXp91tt{min-width:var(--z-tds_2f_web-spacing-0,0rem)}.z_tds_2f_web-SXp91tu{&:not(:last-child){margin-inline-end:var(--z-tds_2f_web-spacing-_2d_4,-.25rem)}}.z_tds_2f_web-SXp91tv{justify-content:center}.z_tds_2f_web-SXp91tw{align-items:flex-start}.z_tds_2f_web-SXp91tx{box-sizing:border-box}.z_tds_2f_web-SXp91ty{display:flex}.z_tds_2f_web-SXp91tz{&:where([data-intent=info]){background-color:var(--z-tds_2f_web-color-background-info,light-dark(#e6eefe,#161b29))}}.z_tds_2f_web-SXp91t10{&:where([data-intent=info]){color:var(--z-tds_2f_web-color-blue-900,light-dark(#3d64cd,#7498fb))}}.z_tds_2f_web-SXp91t11{&:where([data-intent=negative]){background-color:var(--z-tds_2f_web-color-background-negative,light-dark(#ffe6e0,#2a1410))}}.z_tds_2f_web-SXp91t12{&:where([data-intent=negative]){color:var(--z-tds_2f_web-color-red-900,light-dark(#cf2203,#f55c45))}}.z_tds_2f_web-SXp91t13{&:where([data-intent=positive]){background-color:var(--z-tds_2f_web-color-background-positive,light-dark(#d3f8df,#052315))}}.z_tds_2f_web-SXp91t14{&:where([data-intent=positive]){color:var(--z-tds_2f_web-color-green-900,light-dark(#037c46,#59e5a4))}}.z_tds_2f_web-SXp91t15{&:where([data-intent=warning]){background-color:var(--z-tds_2f_web-color-background-warning,light-dark(#ffede2,#2d1504))}}.z_tds_2f_web-SXp91t16{&:where([data-intent=warning]){color:var(--z-tds_2f_web-color-amber-900,light-dark(#a55008,#fa8e36))}}.z_tds_2f_web-SXp91t17{&:where([data-shape=pill]){align-items:center}}.z_tds_2f_web-SXp91t18{&:where([data-shape=pill]){border-radius:var(--z-tds_2f_web-radius-full,9999px)}}.z_tds_2f_web-SXp91t19{&:where([data-shape=pill]){justify-content:center}}.z_tds_2f_web-SXp91t1a{&:where([data-size=large]){column-gap:var(--z-tds_2f_web-spacing-12,.75rem)}}.z_tds_2f_web-SXp91t1b{&:where([data-size=large]){padding-block:var(--z-tds_2f_web-spacing-16,1rem)}}.z_tds_2f_web-SXp91t1c{&:where([data-size=large]){padding-inline:var(--z-tds_2f_web-spacing-20,1.25rem)}}.z_tds_2f_web-SXp91t1d{&:where([data-size=large]){font-family:var(--z-tds_2f_web-typography-copy-15-fontFamily,Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji")}}.z_tds_2f_web-SXp91t1e{&:where([data-size=large]){font-size:var(--z-tds_2f_web-typography-copy-15-fontSize,15px)}}.z_tds_2f_web-SXp91t1f{&:where([data-size=large]){font-weight:var(--z-tds_2f_web-typography-copy-15-fontWeight,450)}}.z_tds_2f_web-SXp91t1g{&:where([data-size=large]){letter-spacing:var(--z-tds_2f_web-typography-copy-15-letterSpacing,-.13px)}}.z_tds_2f_web-SXp91t1h{&:where([data-size=large]){line-height:var(--z-tds_2f_web-typography-copy-15-lineHeight,24px)}}.z_tds_2f_web-SXp91t1i{&:where([data-size=large]){& [data-callout-icon]{font-size:var(--z-tds_2f_web-fontSize-20,1.25rem)}}}.z_tds_2f_web-SXp91t1j{&:where([data-size=large]){& [data-callout-icon]{height:var(--z-tds_2f_web-spacing-24,1.5rem)}}}.z_tds_2f_web-SXp91t1k{&:where([data-size=medium]){column-gap:var(--z-tds_2f_web-spacing-12,.75rem)}}.z_tds_2f_web-SXp91t1l{&:where([data-size=medium]){padding-block:var(--z-tds_2f_web-spacing-10,.625rem)}}.z_tds_2f_web-SXp91t1m{&:where([data-size=medium]){padding-inline:var(--z-tds_2f_web-spacing-16,1rem)}}.z_tds_2f_web-SXp91t1n{&:where([data-size=medium]){font-family:var(--z-tds_2f_web-typography-copy-14-fontFamily,Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji")}}.z_tds_2f_web-SXp91t1o{&:where([data-size=medium]){font-size:var(--z-tds_2f_web-typography-copy-14-fontSize,14px)}}.z_tds_2f_web-SXp91t1p{&:where([data-size=medium]){font-weight:var(--z-tds_2f_web-typography-copy-14-fontWeight,450)}}.z_tds_2f_web-SXp91t1q{&:where([data-size=medium]){letter-spacing:var(--z-tds_2f_web-typography-copy-14-letterSpacing,-.09px)}}.z_tds_2f_web-SXp91t1r{&:where([data-size=medium]){line-height:var(--z-tds_2f_web-typography-copy-14-lineHeight,20px)}}.z_tds_2f_web-SXp91t1s{&:where([data-size=medium]){& [data-callout-icon]{font-size:var(--z-tds_2f_web-fontSize-16,1rem)}}}.z_tds_2f_web-SXp91t1t{&:where([data-size=medium]){& [data-callout-icon]{height:var(--z-tds_2f_web-spacing-20,1.25rem)}}}.z_tds_2f_web-SXp91t1u{&:where([data-size=small]){column-gap:var(--z-tds_2f_web-spacing-8,.5rem)}}.z_tds_2f_web-SXp91t1v{&:where([data-size=small]){padding-block:7px}}.z_tds_2f_web-SXp91t1w{&:where([data-size=small]){padding-inline:var(--z-tds_2f_web-spacing-12,.75rem)}}.z_tds_2f_web-SXp91t1x{&:where([data-size=small]){font-family:var(--z-tds_2f_web-typography-copy-13-fontFamily,Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji")}}.z_tds_2f_web-SXp91t1y{&:where([data-size=small]){font-size:var(--z-tds_2f_web-typography-copy-13-fontSize,13px)}}.z_tds_2f_web-SXp91t1z{&:where([data-size=small]){font-weight:var(--z-tds_2f_web-typography-copy-13-fontWeight,450)}}.z_tds_2f_web-SXp91t20{&:where([data-size=small]){letter-spacing:var(--z-tds_2f_web-typography-copy-13-letterSpacing,-.04px)}}.z_tds_2f_web-SXp91t21{&:where([data-size=small]){line-height:var(--z-tds_2f_web-typography-copy-13-lineHeight,18px)}}.z_tds_2f_web-SXp91t22{&:where([data-size=small]){& [data-callout-icon]{font-size:var(--z-tds_2f_web-fontSize-14,.875rem)}}}.z_tds_2f_web-SXp91t23{&:where([data-size=small]){& [data-callout-icon]{height:var(--z-tds_2f_web-spacing-18,1.125rem)}}}.z_tds_2f_web-SXp91t24{&:where([data-shape=default]):where([data-size=large]):where(*,.__zyzz-compound-0){border-radius:var(--z-tds_2f_web-radius-16,1rem)}}.z_tds_2f_web-SXp91t25{&:where([data-shape=default]):where([data-size=medium]):where(*,.__zyzz-compound-1){border-radius:var(--z-tds_2f_web-radius-12,.75rem)}}.z_tds_2f_web-SXp91t26{&:where([data-shape=default]):where([data-size=small]):where(*,.__zyzz-compound-2){border-radius:var(--z-tds_2f_web-radius-8,.5rem)}}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as e}from"./rolldown-runtime-BWaJ3C7D.js";import{E as t,s as n}from"./react-dom-DYzj0HXX.js";import{a as r,i,n as a,r as o}from"./Stack-DGktaLZc.js";import{l as s,s as c}from"./zyzz.config-CJRpjn0E.js";var l=e(t(),1),u=n(),d=(0,l.createContext)(`info`),f={info:a,negative:r,positive:o,warning:i};function p(e){let{className:t,intent:n,shape:r,size:i,vars:a,...o}=e,s=n??`info`;return(0,u.jsx)(d,{value:s,children:(0,u.jsx)(`div`,{role:s===`negative`||s===`warning`?`alert`:`status`,...o,...m.note({className:t,intent:s,shape:r,size:i,style:e.style,vars:a})})})}(function(e){function t(e){let{className:t,vars:n,...r}=e;return(0,u.jsx)(c,{...r,"data-callout-action":``,...m.action({className:t,style:e.style,vars:n})})}e.Action=t;function n(e){let{className:t,vars:n,...r}=e;return(0,u.jsx)(`div`,{...r,...m.content({className:t,style:e.style,vars:n})})}e.Content=n;function r(e){let{children:t,className:n,vars:r,...i}=e,a=f[(0,l.useContext)(d)];return(0,u.jsx)(`span`,{"aria-hidden":`true`,...i,"data-callout-icon":``,...m.icon({className:n,style:e.style,vars:r}),children:t??(0,u.jsx)(a,{})})}e.Icon=r})(p||={});var m;(function(e){e.action=s({className:`z_tds_2f_web-SXp91t0 z_tds_2f_web-SXp91t1 z_tds_2f_web-SXp91t2 z_tds_2f_web-SXp91t3 z_tds_2f_web-SXp91t4 z_tds_2f_web-SXp91t5 z_tds_2f_web-SXp91t6 z_tds_2f_web-SXp91t7 z_tds_2f_web-SXp91t8 z_tds_2f_web-SXp91t9 z_tds_2f_web-SXp91ta z_tds_2f_web-SXp91tb z_tds_2f_web-SXp91tc z_tds_2f_web-SXp91td z_tds_2f_web-SXp91te z_tds_2f_web-SXp91tf z_tds_2f_web-SXp91tg z_tds_2f_web-SXp91th z_tds_2f_web-SXp91ti z_tds_2f_web-SXp91tj z_tds_2f_web-SXp91tk z_tds_2f_web-SXp91tl z_tds_2f_web-SXp91tm z_tds_2f_web-SXp91tn z_tds_2f_web-SXp91to z_tds_2f_web-SXp91tp z_tds_2f_web-SXp91tq z_tds_2f_web-SXp91tr z_tds_2f_web-SXp91ts`}),e.content=s({className:`z_tds_2f_web-SXp91tt z_tds_2f_web-SXp91tu`}),e.icon=s({className:`z_tds_2f_web-SXp91t6 z_tds_2f_web-SXp91t7 z_tds_2f_web-SXp91t0 z_tds_2f_web-SXp91tv`}),e.note=((e={})=>{let t=e.className,n=e.style,r=e.vars,i=r?{...r,...n}:n,a=t?`z_tds_2f_web-SXp91tw z_tds_2f_web-SXp91tx z_tds_2f_web-SXp91ty z_tds_2f_web-SXp91tz z_tds_2f_web-SXp91t10 z_tds_2f_web-SXp91t11 z_tds_2f_web-SXp91t12 z_tds_2f_web-SXp91t13 z_tds_2f_web-SXp91t14 z_tds_2f_web-SXp91t15 z_tds_2f_web-SXp91t16 z_tds_2f_web-SXp91t17 z_tds_2f_web-SXp91t18 z_tds_2f_web-SXp91t19 z_tds_2f_web-SXp91t1a z_tds_2f_web-SXp91t1b z_tds_2f_web-SXp91t1c z_tds_2f_web-SXp91t1d z_tds_2f_web-SXp91t1e z_tds_2f_web-SXp91t1f z_tds_2f_web-SXp91t1g z_tds_2f_web-SXp91t1h z_tds_2f_web-SXp91t1i z_tds_2f_web-SXp91t1j z_tds_2f_web-SXp91t1k z_tds_2f_web-SXp91t1l z_tds_2f_web-SXp91t1m z_tds_2f_web-SXp91t1n z_tds_2f_web-SXp91t1o z_tds_2f_web-SXp91t1p z_tds_2f_web-SXp91t1q z_tds_2f_web-SXp91t1r z_tds_2f_web-SXp91t1s z_tds_2f_web-SXp91t1t z_tds_2f_web-SXp91t1u z_tds_2f_web-SXp91t1v z_tds_2f_web-SXp91t1w z_tds_2f_web-SXp91t1x z_tds_2f_web-SXp91t1y z_tds_2f_web-SXp91t1z z_tds_2f_web-SXp91t20 z_tds_2f_web-SXp91t21 z_tds_2f_web-SXp91t22 z_tds_2f_web-SXp91t23 z_tds_2f_web-SXp91t24 z_tds_2f_web-SXp91t25 z_tds_2f_web-SXp91t26 `+t:`z_tds_2f_web-SXp91tw z_tds_2f_web-SXp91tx z_tds_2f_web-SXp91ty z_tds_2f_web-SXp91tz z_tds_2f_web-SXp91t10 z_tds_2f_web-SXp91t11 z_tds_2f_web-SXp91t12 z_tds_2f_web-SXp91t13 z_tds_2f_web-SXp91t14 z_tds_2f_web-SXp91t15 z_tds_2f_web-SXp91t16 z_tds_2f_web-SXp91t17 z_tds_2f_web-SXp91t18 z_tds_2f_web-SXp91t19 z_tds_2f_web-SXp91t1a z_tds_2f_web-SXp91t1b z_tds_2f_web-SXp91t1c z_tds_2f_web-SXp91t1d z_tds_2f_web-SXp91t1e z_tds_2f_web-SXp91t1f z_tds_2f_web-SXp91t1g z_tds_2f_web-SXp91t1h z_tds_2f_web-SXp91t1i z_tds_2f_web-SXp91t1j z_tds_2f_web-SXp91t1k z_tds_2f_web-SXp91t1l z_tds_2f_web-SXp91t1m z_tds_2f_web-SXp91t1n z_tds_2f_web-SXp91t1o z_tds_2f_web-SXp91t1p z_tds_2f_web-SXp91t1q z_tds_2f_web-SXp91t1r z_tds_2f_web-SXp91t1s z_tds_2f_web-SXp91t1t z_tds_2f_web-SXp91t1u z_tds_2f_web-SXp91t1v z_tds_2f_web-SXp91t1w z_tds_2f_web-SXp91t1x z_tds_2f_web-SXp91t1y z_tds_2f_web-SXp91t1z z_tds_2f_web-SXp91t20 z_tds_2f_web-SXp91t21 z_tds_2f_web-SXp91t22 z_tds_2f_web-SXp91t23 z_tds_2f_web-SXp91t24 z_tds_2f_web-SXp91t25 z_tds_2f_web-SXp91t26`,o=i?{className:a,style:i}:{className:a},s;return s=Object.hasOwn(e,`intent`)?e.intent:void 0,s===void 0&&(s=`info`),s!=null&&(o[`data-intent`]=String(s)),s=Object.hasOwn(e,`shape`)?e.shape:void 0,s===void 0&&(s=`default`),s!=null&&(o[`data-shape`]=String(s)),s=Object.hasOwn(e,`size`)?e.size:void 0,s===void 0&&(s=`medium`),s!=null&&(o[`data-size`]=String(s)),o})})(m||={});export{p as t};
|
|
2
|
+
//# sourceMappingURL=Callout-tQoAitWq.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Callout-tQoAitWq.js","names":["createContext","_jsx","BaseUi.Button","useContext","__toESM","require_react","require_jsx_runtime","AlertCircle","InfoCircle","CheckCircle","create","Button","import_react","import_jsx_runtime","IntentContext","icons","AlertTriangle","Callout","variant","attributes","props","intent","styles","Action","Content","Icon","Glyph","children","external","input","style","vars","inline","className","result","value","\"intent\"","\"shape\"","\"size\""],"sources":["../../../../../node_modules/.pnpm/@tempoxyz+ds@0.2.6_@types+react@19.3.0_react-dom@19.3.0_react@19.3.0__react-native@0.86_f564df10a26f3190a3aaf6288ad1f3d1/node_modules/@tempoxyz/ds/dist/web/components/Callout.css","../../../../../node_modules/.pnpm/@tempoxyz+ds@0.2.6_@types+react@19.3.0_react-dom@19.3.0_react@19.3.0__react-native@0.86_f564df10a26f3190a3aaf6288ad1f3d1/node_modules/@tempoxyz/ds/dist/web/components/Callout.js"],"sourcesContent":[".z_tds_2f_web-SXp91t0{align-items:center}.z_tds_2f_web-SXp91t1{background-color:#0000}.z_tds_2f_web-SXp91t2{border:none}.z_tds_2f_web-SXp91t3{border-radius:var(--z-tds_2f_web-radius-full,9999px)}.z_tds_2f_web-SXp91t4{color:inherit}.z_tds_2f_web-SXp91t5{cursor:pointer}.z_tds_2f_web-SXp91t6{display:inline-flex}.z_tds_2f_web-SXp91t7{flex-shrink:0}.z_tds_2f_web-SXp91t8{margin-inline-end:var(--z-tds_2f_web-spacing-_2d_4,-.25rem)}.z_tds_2f_web-SXp91t9{margin-inline-start:auto}.z_tds_2f_web-SXp91ta{outline-color:#0000}.z_tds_2f_web-SXp91tb{outline-offset:var(--z-tds_2f_web-outlineOffset-0,0px)}.z_tds_2f_web-SXp91tc{outline-style:solid}.z_tds_2f_web-SXp91td{outline-width:var(--z-tds_2f_web-outlineWidth-2,2px)}.z_tds_2f_web-SXp91te{padding-block:var(--z-tds_2f_web-spacing-0,0rem)}.z_tds_2f_web-SXp91tf{padding-inline:var(--z-tds_2f_web-spacing-4,.25rem)}.z_tds_2f_web-SXp91tg{text-decoration:underline}.z_tds_2f_web-SXp91th{text-underline-offset:2px}.z_tds_2f_web-SXp91ti{transition-duration:var(--z-tds_2f_web-transitionDuration-160,.16s)}.z_tds_2f_web-SXp91tj{transition-property:outline-color,outline-offset,text-decoration-color,scale}.z_tds_2f_web-SXp91tk{transition-timing-function:var(--z-tds_2f_web-ease-snappy,cubic-bezier(.23, 1, .32, 1))}.z_tds_2f_web-SXp91tl{font:inherit}.z_tds_2f_web-SXp91tm{white-space:nowrap}.z_tds_2f_web-SXp91tn{&:active{scale:var(--z-tds_2f_web-scale-press,.98)}}.z_tds_2f_web-SXp91to{&:focus-visible{outline-color:var(--z-tds_2f_web-color-blue-700,#4471ed)}}.z_tds_2f_web-SXp91tp{&:focus-visible{outline-offset:var(--z-tds_2f_web-outlineOffset-2,2px)}}.z_tds_2f_web-SXp91tq{&:hover{text-decoration-color:#0000}}@media (prefers-reduced-motion:reduce){.z_tds_2f_web-SXp91tr{transition-property:outline-color,text-decoration-color}.z_tds_2f_web-SXp91ts{&:active{scale:none}}}.z_tds_2f_web-SXp91tt{min-width:var(--z-tds_2f_web-spacing-0,0rem)}.z_tds_2f_web-SXp91tu{&:not(:last-child){margin-inline-end:var(--z-tds_2f_web-spacing-_2d_4,-.25rem)}}.z_tds_2f_web-SXp91tv{justify-content:center}.z_tds_2f_web-SXp91tw{align-items:flex-start}.z_tds_2f_web-SXp91tx{box-sizing:border-box}.z_tds_2f_web-SXp91ty{display:flex}.z_tds_2f_web-SXp91tz{&:where([data-intent=info]){background-color:var(--z-tds_2f_web-color-background-info,light-dark(#e6eefe,#161b29))}}.z_tds_2f_web-SXp91t10{&:where([data-intent=info]){color:var(--z-tds_2f_web-color-blue-900,light-dark(#3d64cd,#7498fb))}}.z_tds_2f_web-SXp91t11{&:where([data-intent=negative]){background-color:var(--z-tds_2f_web-color-background-negative,light-dark(#ffe6e0,#2a1410))}}.z_tds_2f_web-SXp91t12{&:where([data-intent=negative]){color:var(--z-tds_2f_web-color-red-900,light-dark(#cf2203,#f55c45))}}.z_tds_2f_web-SXp91t13{&:where([data-intent=positive]){background-color:var(--z-tds_2f_web-color-background-positive,light-dark(#d3f8df,#052315))}}.z_tds_2f_web-SXp91t14{&:where([data-intent=positive]){color:var(--z-tds_2f_web-color-green-900,light-dark(#037c46,#59e5a4))}}.z_tds_2f_web-SXp91t15{&:where([data-intent=warning]){background-color:var(--z-tds_2f_web-color-background-warning,light-dark(#ffede2,#2d1504))}}.z_tds_2f_web-SXp91t16{&:where([data-intent=warning]){color:var(--z-tds_2f_web-color-amber-900,light-dark(#a55008,#fa8e36))}}.z_tds_2f_web-SXp91t17{&:where([data-shape=pill]){align-items:center}}.z_tds_2f_web-SXp91t18{&:where([data-shape=pill]){border-radius:var(--z-tds_2f_web-radius-full,9999px)}}.z_tds_2f_web-SXp91t19{&:where([data-shape=pill]){justify-content:center}}.z_tds_2f_web-SXp91t1a{&:where([data-size=large]){column-gap:var(--z-tds_2f_web-spacing-12,.75rem)}}.z_tds_2f_web-SXp91t1b{&:where([data-size=large]){padding-block:var(--z-tds_2f_web-spacing-16,1rem)}}.z_tds_2f_web-SXp91t1c{&:where([data-size=large]){padding-inline:var(--z-tds_2f_web-spacing-20,1.25rem)}}.z_tds_2f_web-SXp91t1d{&:where([data-size=large]){font-family:var(--z-tds_2f_web-typography-copy-15-fontFamily,Inter, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\")}}.z_tds_2f_web-SXp91t1e{&:where([data-size=large]){font-size:var(--z-tds_2f_web-typography-copy-15-fontSize,15px)}}.z_tds_2f_web-SXp91t1f{&:where([data-size=large]){font-weight:var(--z-tds_2f_web-typography-copy-15-fontWeight,450)}}.z_tds_2f_web-SXp91t1g{&:where([data-size=large]){letter-spacing:var(--z-tds_2f_web-typography-copy-15-letterSpacing,-.13px)}}.z_tds_2f_web-SXp91t1h{&:where([data-size=large]){line-height:var(--z-tds_2f_web-typography-copy-15-lineHeight,24px)}}.z_tds_2f_web-SXp91t1i{&:where([data-size=large]){& [data-callout-icon]{font-size:var(--z-tds_2f_web-fontSize-20,1.25rem)}}}.z_tds_2f_web-SXp91t1j{&:where([data-size=large]){& [data-callout-icon]{height:var(--z-tds_2f_web-spacing-24,1.5rem)}}}.z_tds_2f_web-SXp91t1k{&:where([data-size=medium]){column-gap:var(--z-tds_2f_web-spacing-12,.75rem)}}.z_tds_2f_web-SXp91t1l{&:where([data-size=medium]){padding-block:var(--z-tds_2f_web-spacing-10,.625rem)}}.z_tds_2f_web-SXp91t1m{&:where([data-size=medium]){padding-inline:var(--z-tds_2f_web-spacing-16,1rem)}}.z_tds_2f_web-SXp91t1n{&:where([data-size=medium]){font-family:var(--z-tds_2f_web-typography-copy-14-fontFamily,Inter, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\")}}.z_tds_2f_web-SXp91t1o{&:where([data-size=medium]){font-size:var(--z-tds_2f_web-typography-copy-14-fontSize,14px)}}.z_tds_2f_web-SXp91t1p{&:where([data-size=medium]){font-weight:var(--z-tds_2f_web-typography-copy-14-fontWeight,450)}}.z_tds_2f_web-SXp91t1q{&:where([data-size=medium]){letter-spacing:var(--z-tds_2f_web-typography-copy-14-letterSpacing,-.09px)}}.z_tds_2f_web-SXp91t1r{&:where([data-size=medium]){line-height:var(--z-tds_2f_web-typography-copy-14-lineHeight,20px)}}.z_tds_2f_web-SXp91t1s{&:where([data-size=medium]){& [data-callout-icon]{font-size:var(--z-tds_2f_web-fontSize-16,1rem)}}}.z_tds_2f_web-SXp91t1t{&:where([data-size=medium]){& [data-callout-icon]{height:var(--z-tds_2f_web-spacing-20,1.25rem)}}}.z_tds_2f_web-SXp91t1u{&:where([data-size=small]){column-gap:var(--z-tds_2f_web-spacing-8,.5rem)}}.z_tds_2f_web-SXp91t1v{&:where([data-size=small]){padding-block:7px}}.z_tds_2f_web-SXp91t1w{&:where([data-size=small]){padding-inline:var(--z-tds_2f_web-spacing-12,.75rem)}}.z_tds_2f_web-SXp91t1x{&:where([data-size=small]){font-family:var(--z-tds_2f_web-typography-copy-13-fontFamily,Inter, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\")}}.z_tds_2f_web-SXp91t1y{&:where([data-size=small]){font-size:var(--z-tds_2f_web-typography-copy-13-fontSize,13px)}}.z_tds_2f_web-SXp91t1z{&:where([data-size=small]){font-weight:var(--z-tds_2f_web-typography-copy-13-fontWeight,450)}}.z_tds_2f_web-SXp91t20{&:where([data-size=small]){letter-spacing:var(--z-tds_2f_web-typography-copy-13-letterSpacing,-.04px)}}.z_tds_2f_web-SXp91t21{&:where([data-size=small]){line-height:var(--z-tds_2f_web-typography-copy-13-lineHeight,18px)}}.z_tds_2f_web-SXp91t22{&:where([data-size=small]){& [data-callout-icon]{font-size:var(--z-tds_2f_web-fontSize-14,.875rem)}}}.z_tds_2f_web-SXp91t23{&:where([data-size=small]){& [data-callout-icon]{height:var(--z-tds_2f_web-spacing-18,1.125rem)}}}.z_tds_2f_web-SXp91t24{&:where([data-shape=default]):where([data-size=large]):where(*,.__zyzz-compound-0){border-radius:var(--z-tds_2f_web-radius-16,1rem)}}.z_tds_2f_web-SXp91t25{&:where([data-shape=default]):where([data-size=medium]):where(*,.__zyzz-compound-1){border-radius:var(--z-tds_2f_web-radius-12,.75rem)}}.z_tds_2f_web-SXp91t26{&:where([data-shape=default]):where([data-size=small]):where(*,.__zyzz-compound-2){border-radius:var(--z-tds_2f_web-radius-8,.5rem)}}","\nimport { Props as __zyzzProps } from 'zyzz/runtime';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport * as BaseUi from '@base-ui/react/button';\nimport { createContext, useContext } from 'react';\nimport { AlertCircle } from '../icons/AlertCircle.js';\nimport { AlertTriangle } from '../icons/AlertTriangle.js';\nimport { CheckCircle } from '../icons/CheckCircle.js';\nimport { InfoCircle } from '../icons/InfoCircle.js';\nimport { style, variants } from '../zyzz.config.js';\nconst IntentContext = createContext('info');\nconst icons = {\n info: InfoCircle,\n negative: AlertCircle,\n positive: CheckCircle,\n warning: AlertTriangle,\n};\n/**\n * An inline message tinted by `intent`. The `negative` and `warning`\n * intents render `role=\"alert\"` and interrupt screen readers. `info` and `positive` render\n * `role=\"status\"` and announce politely. Pass `role` to override either.\n *\n * - Use for guidance tied to nearby content. Use `Banner` for system or page-wide messages.\n * - Keep the message short, with one `Callout.Action` at most.\n * - State the outcome in the text, so the meaning never depends on color alone.\n *\n * @example\n * <Callout intent=\"warning\">\n * <Callout.Icon />\n * <Callout.Content>Network fees are higher than usual.</Callout.Content>\n * <Callout.Action onClick={review}>Review</Callout.Action>\n * </Callout>\n *\n * @see {@link https://base-ui.com/react/components/button | Base UI Button}\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Roles/status_role | MDN status role}\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Roles/alert_role | MDN alert role}\n * @see {@link https://www.w3.org/WAI/WCAG22/Understanding/status-messages.html | WCAG 2.2 Status Messages}\n * @see {@link https://www.w3.org/WAI/WCAG22/Understanding/use-of-color.html | WCAG 2.2 Use of Color}\n * @see {@link https://www.w3.org/WAI/WCAG22/Understanding/contrast-minimum.html | WCAG 2.2 Contrast (Minimum)}\n */\nexport function Callout(props) {\n const { className, intent: variant, shape, size, vars, ...attributes } = props;\n const intent = variant ?? 'info';\n return (_jsx(IntentContext, { value: intent, children: _jsx(\"div\", { \n // Urgent intents interrupt assistive technology, the rest announce politely.\n role: intent === 'negative' || intent === 'warning' ? 'alert' : 'status', ...attributes, ...styles.note({ className, intent, shape, size, style: props.style, vars }) }) }));\n}\n(function (Callout) {\n /**\n * An underlined text `<button>` pushed to the end of the callout and sized to match it.\n * Name the action it performs, such as Review fees.\n */\n function Action(props) {\n const { className, vars, ...attributes } = props;\n return (_jsx(BaseUi.Button, { ...attributes, \"data-callout-action\": \"\", ...styles.action({ className, style: props.style, vars }) }));\n }\n Callout.Action = Action;\n /** Wraps the message text in a `<div>` that can shrink, so long text wraps beside the icon. */\n function Content(props) {\n const { className, vars, ...attributes } = props;\n return _jsx(\"div\", { ...attributes, ...styles.content({ className, style: props.style, vars }) });\n }\n Callout.Content = Content;\n /**\n * Renders the glyph for the callout's `intent` inside an `aria-hidden` `<span>`. Pass `children`\n * to replace the glyph. The icon stays decorative, so the text must carry the meaning.\n */\n function Icon(props) {\n const { children, className, vars, ...attributes } = props;\n const Glyph = icons[useContext(IntentContext)];\n return (_jsx(\"span\", { \"aria-hidden\": \"true\", ...attributes, \"data-callout-icon\": \"\", ...styles.icon({ className, style: props.style, vars }), children: children ?? _jsx(Glyph, {}) }));\n }\n Callout.Icon = Icon;\n})(Callout || (Callout = {}));\nvar styles;\n(function (styles) {\n styles.action = /*#__PURE__*/__zyzzProps.create({className:\"z_tds_2f_web-SXp91t0 z_tds_2f_web-SXp91t1 z_tds_2f_web-SXp91t2 z_tds_2f_web-SXp91t3 z_tds_2f_web-SXp91t4 z_tds_2f_web-SXp91t5 z_tds_2f_web-SXp91t6 z_tds_2f_web-SXp91t7 z_tds_2f_web-SXp91t8 z_tds_2f_web-SXp91t9 z_tds_2f_web-SXp91ta z_tds_2f_web-SXp91tb z_tds_2f_web-SXp91tc z_tds_2f_web-SXp91td z_tds_2f_web-SXp91te z_tds_2f_web-SXp91tf z_tds_2f_web-SXp91tg z_tds_2f_web-SXp91th z_tds_2f_web-SXp91ti z_tds_2f_web-SXp91tj z_tds_2f_web-SXp91tk z_tds_2f_web-SXp91tl z_tds_2f_web-SXp91tm z_tds_2f_web-SXp91tn z_tds_2f_web-SXp91to z_tds_2f_web-SXp91tp z_tds_2f_web-SXp91tq z_tds_2f_web-SXp91tr z_tds_2f_web-SXp91ts\"});\n styles.content = /*#__PURE__*/__zyzzProps.create({className:\"z_tds_2f_web-SXp91tt z_tds_2f_web-SXp91tu\"});\n styles.icon = /*#__PURE__*/__zyzzProps.create({className:\"z_tds_2f_web-SXp91t6 z_tds_2f_web-SXp91t7 z_tds_2f_web-SXp91t0 z_tds_2f_web-SXp91tv\"});\n styles.note = ((input={})=>{const external=input.className,style=input.style,vars=input.vars,inline=vars?{...vars,...style}:style,className=external?\"z_tds_2f_web-SXp91tw z_tds_2f_web-SXp91tx z_tds_2f_web-SXp91ty z_tds_2f_web-SXp91tz z_tds_2f_web-SXp91t10 z_tds_2f_web-SXp91t11 z_tds_2f_web-SXp91t12 z_tds_2f_web-SXp91t13 z_tds_2f_web-SXp91t14 z_tds_2f_web-SXp91t15 z_tds_2f_web-SXp91t16 z_tds_2f_web-SXp91t17 z_tds_2f_web-SXp91t18 z_tds_2f_web-SXp91t19 z_tds_2f_web-SXp91t1a z_tds_2f_web-SXp91t1b z_tds_2f_web-SXp91t1c z_tds_2f_web-SXp91t1d z_tds_2f_web-SXp91t1e z_tds_2f_web-SXp91t1f z_tds_2f_web-SXp91t1g z_tds_2f_web-SXp91t1h z_tds_2f_web-SXp91t1i z_tds_2f_web-SXp91t1j z_tds_2f_web-SXp91t1k z_tds_2f_web-SXp91t1l z_tds_2f_web-SXp91t1m z_tds_2f_web-SXp91t1n z_tds_2f_web-SXp91t1o z_tds_2f_web-SXp91t1p z_tds_2f_web-SXp91t1q z_tds_2f_web-SXp91t1r z_tds_2f_web-SXp91t1s z_tds_2f_web-SXp91t1t z_tds_2f_web-SXp91t1u z_tds_2f_web-SXp91t1v z_tds_2f_web-SXp91t1w z_tds_2f_web-SXp91t1x z_tds_2f_web-SXp91t1y z_tds_2f_web-SXp91t1z z_tds_2f_web-SXp91t20 z_tds_2f_web-SXp91t21 z_tds_2f_web-SXp91t22 z_tds_2f_web-SXp91t23 z_tds_2f_web-SXp91t24 z_tds_2f_web-SXp91t25 z_tds_2f_web-SXp91t26\"+\" \"+external:\"z_tds_2f_web-SXp91tw z_tds_2f_web-SXp91tx z_tds_2f_web-SXp91ty z_tds_2f_web-SXp91tz z_tds_2f_web-SXp91t10 z_tds_2f_web-SXp91t11 z_tds_2f_web-SXp91t12 z_tds_2f_web-SXp91t13 z_tds_2f_web-SXp91t14 z_tds_2f_web-SXp91t15 z_tds_2f_web-SXp91t16 z_tds_2f_web-SXp91t17 z_tds_2f_web-SXp91t18 z_tds_2f_web-SXp91t19 z_tds_2f_web-SXp91t1a z_tds_2f_web-SXp91t1b z_tds_2f_web-SXp91t1c z_tds_2f_web-SXp91t1d z_tds_2f_web-SXp91t1e z_tds_2f_web-SXp91t1f z_tds_2f_web-SXp91t1g z_tds_2f_web-SXp91t1h z_tds_2f_web-SXp91t1i z_tds_2f_web-SXp91t1j z_tds_2f_web-SXp91t1k z_tds_2f_web-SXp91t1l z_tds_2f_web-SXp91t1m z_tds_2f_web-SXp91t1n z_tds_2f_web-SXp91t1o z_tds_2f_web-SXp91t1p z_tds_2f_web-SXp91t1q z_tds_2f_web-SXp91t1r z_tds_2f_web-SXp91t1s z_tds_2f_web-SXp91t1t z_tds_2f_web-SXp91t1u z_tds_2f_web-SXp91t1v z_tds_2f_web-SXp91t1w z_tds_2f_web-SXp91t1x z_tds_2f_web-SXp91t1y z_tds_2f_web-SXp91t1z z_tds_2f_web-SXp91t20 z_tds_2f_web-SXp91t21 z_tds_2f_web-SXp91t22 z_tds_2f_web-SXp91t23 z_tds_2f_web-SXp91t24 z_tds_2f_web-SXp91t25 z_tds_2f_web-SXp91t26\",result=inline?{className,style:inline}:{className};let value;value=Object.hasOwn(input,\"intent\")?input[\"intent\"]:void 0;if(value===void 0)value=\"info\";if(value!==null&&value!==void 0)result[\"data-intent\"]=String(value);value=Object.hasOwn(input,\"shape\")?input[\"shape\"]:void 0;if(value===void 0)value=\"default\";if(value!==null&&value!==void 0)result[\"data-shape\"]=String(value);value=Object.hasOwn(input,\"size\")?input[\"size\"]:void 0;if(value===void 0)value=\"medium\";if(value!==null&&value!==void 0)result[\"data-size\"]=String(value);return result});\n})(styles || (styles = {}));\n//# sourceMappingURL=Callout.js.map\nimport './Callout.css';\n"],"ignoreList":[0,1],"mappings":"A,wOCUMc,GAAA,EAAgBd,EAAAA,cAAAA,CAAc,MAAM,EACpCe,EAAQ,CACV,KAAMP,EACN,SAAUD,EACV,SAAUE,EACV,QAASO,CACb,EAwBA,SAAgBC,EAAQ,EAAO,CAC3B,GAAM,CAAE,YAAW,OAAQC,EAAS,QAAO,OAAM,OAAM,GAAGC,GAAeC,EACnEC,EAASH,GAAW,OAC1B,OAAA,EAAQjB,EAAAA,IAAAA,CAAKa,EAAe,CAAE,MAAOO,EAAQ,UAAA,EAAUpB,EAAAA,IAAAA,CAAK,MAAO,CAE3D,KAAMoB,IAAW,YAAcA,IAAW,UAAY,QAAU,SAAU,GAAGF,EAAY,GAAGG,EAAO,KAAK,CAAE,YAAW,SAAQ,QAAO,OAAM,MAAOF,EAAM,MAAO,MAAK,CAAC,CAAE,CAAC,CAAE,CAAC,CACtL,EACC,SAAU,EAAS,CAKhB,SAASG,EAAO,EAAO,CACnB,GAAM,CAAE,YAAW,OAAM,GAAGJ,GAAeC,EAC3C,OAAA,EAAQnB,EAAAA,IAAAA,CAAKC,EAAe,CAAE,GAAGiB,EAAY,sBAAuB,GAAI,GAAGG,EAAO,OAAO,CAAE,YAAW,MAAOF,EAAM,MAAO,MAAK,CAAC,CAAE,CAAC,CACvI,CACA,EAAQ,OAASG,EAEjB,SAASC,EAAQ,EAAO,CACpB,GAAM,CAAE,YAAW,OAAM,GAAGL,GAAeC,EAC3C,OAAA,EAAOnB,EAAAA,IAAAA,CAAK,MAAO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AAEA,EAAMQ,MAAS,IAAK,GAAKF,IAAQ,IAAK,KAAE,EAAM,WAAaA,GAAQ,OAAqB,EAAO,cAAc,OAAOA,CAAK,GAAE,EAAM,OAAO,OAAON,EAAM,MAAM,EAAEA,EAAMS,KAAQ,IAAK,GAAKH,IAAQ,IAAK,KAAE,EAAM,UAAYA,GAAQ,OAAqB,EAAO,aAAa,OAAOA,CAAK,GAASD,CAAM,EACttF,EAAA,CAAG,AAAWZ,IAAS,CAAC,CAAE,E"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{n as e}from"./ChainName-BMnJyJrd.js";var t={error:{color:31,label:`ERROR`},info:{color:32,label:` INFO`},warn:{color:33,label:` WARN`}};function n(e,t={prefix:``}){return Object.entries(e).flatMap(e=>{let r=`${t.prefix}${e[0]}`,i=e[1];return typeof i==`object`&&i&&!Array.isArray(i)?n(i,{prefix:`${r}.`}):[[r,i]]})}function r(e,r){let{message:a,...o}=e,s=t[r.level],c=n(o);return[[`\x1b[2m${new Date().toISOString().slice(11,23)}\x1b[0m`,`\x1b[1;${s.color}m${s.label}\x1b[0m`,`\x1b[1m${String(a)}\x1b[0m`,...c.filter(e=>!e[0].endsWith(`stack`)).map(e=>`\x1b[3m${e[0]}\x1b[0m\x1b[2m=\x1b[0m${i(e[1])}`)].join(` `),...c.filter(e=>e[0].endsWith(`stack`)).flatMap(e=>String(e[1]).split(`
|
|
2
|
+
`)).map(e=>e.replace(/\/node_modules\/\.pnpm\/[^/]+\/node_modules\//,`/node_modules/`).replace(/\((?:\/[^()]*?)?\/((?:node_modules|src)\/[^()]*)\)/,`($1)`)).map(e=>`\x1b[2m ${e}\x1b[0m`)].join(`
|
|
3
|
+
`)}function i(e){let t=String(e);return/[\s"=]/.test(t)||t===``?JSON.stringify(t):t}function a(){return!1}function o(...e){console.error(p(f(...e),{level:`error`}))}function s(...e){console.info(p(f(...e),{level:`info`}))}function c(e){return e.req.matchedRoutes.find(e=>!e.path.includes(`*`))?.path??`/*`}function l(...e){console.warn(p(f(...e),{level:`warn`}))}function u(e){return Object.fromEntries(Object.entries(e).filter(e=>e[1]!==void 0))}function d(e,t={depth:0}){if(!(e instanceof Error))return{name:`NonError`,type:typeof e};let n=(()=>{let t=m(e,{key:`shortMessage`});if(typeof t==`string`)return t;let n=m(e,{key:`query`});return typeof n==`string`&&Array.isArray(Reflect.get(e,`params`))?`Failed query: ${n}`:e.message})(),r=m(e,{key:`status`});return u({cause:e.cause!==void 0&&t.depth<3?d(e.cause,{depth:t.depth+1}):void 0,code:m(e,{key:`code`}),details:e.name===`RpcRequestError`?m(e,{key:`details`}):void 0,message:n,name:e.name,stack:e.stack?.split(`
|
|
4
|
+
`).filter(e=>/^\s+at /.test(e)).map(e=>e.trim()).join(`
|
|
5
|
+
`),status:typeof r==`number`?r:void 0})}function f(...e){let[t,n]=e.length===2?e:[void 0,e[0]],{error:r,fields:i,message:a}=n;return u({...i,error:r===void 0?void 0:d(r),message:a,request:t?u({id:t.get(`requestId`),method:t.req.method,path:c(t)}):void 0})}function p(e,t){return a()?r(e,t):e}function m(e,t){let n=Reflect.get(e,t.key);return typeof n==`string`||typeof n==`number`?n:void 0}var h=class extends Error{name=`ChainList.InvalidListError`;constructor(e){super(`Invalid ${e.variable} entry ${e.index+1}: ${e.reason}. Write each entry as \`name:chainId=url\`, such as \`local:1337=http://localhost:8545\`, and separate entries with commas.`)}},g={mainnet:4217,testnet:42431},_=[4217,42431,31318,1337],v=_[3];function y(t){let{variable:n=`RPC_URLS`}=t,r=[],i=(t.value??``).split(`,`).map(e=>e.trim()).filter(Boolean);for(let[t,a]of i.entries()){let i=a.indexOf(`=`),o=i===-1?a:a.slice(0,i),s=i===-1?``:a.slice(i+1).trim(),[c=``,l=``]=o.split(`:`).map(e=>e.trim()),u=Number(l);if(!e(c))throw new h({index:t,reason:`the name needs lowercase letters, digits, and dashes, up to 32 characters`,variable:n});if(c in g&&u!==g[c])throw new h({index:t,reason:`\`${c}\` is chain ${g[c]}`,variable:n});if(r.some(e=>e.name===c))throw new h({index:t,reason:`\`${c}\` repeats an earlier entry`,variable:n});if(!_.some(e=>e===u))throw new h({index:t,reason:/^\d+$/.test(l)?`\`${l}\` is not a Tempo chain ID, such as ${v}`:`the chain ID needs digits, such as ${v}`,variable:n});if(!URL.canParse(s)||!/^https?:$/.test(new URL(s).protocol))throw new h({index:t,reason:`the URL needs http or https`,variable:n});r.push({chainId:u,name:c,url:s})}return r}function b(e){let{name:t}=e;if(t===`mainnet`||t===`testnet`)return{chainId:g[t],rpcUrl:x({chainId:g[t],rpcUrls:e.rpcUrls})??e.rpcUrl};let n=y({value:e.rpcUrls}).find(e=>e.name===t);if(n)return{chainId:n.chainId,rpcUrl:n.url}}function x(e){let t=Object.keys(g).find(t=>g[t]===e.chainId);if(t)try{return y({value:e.rpcUrls}).find(e=>e.name===t)?.url}catch(e){if(!(e instanceof h))throw e;l({error:e,message:`RPC_URLS does not parse.`});return}}function S(e){return(e.value??``).split(`,`).map(e=>e.trim()).filter(Boolean).flatMap(t=>{let n=(()=>{try{return b({name:t,rpcUrl:e.rpcUrl,rpcUrls:e.rpcUrls})}catch(e){if(e instanceof h)return;throw e}})();return n?[{chainId:n.chainId,name:t,rpcUrl:n.rpcUrl}]:[]})}export{b as a,s as c,y as i,c as l,S as n,a as o,g as r,o as s,h as t,l as u};
|
|
6
|
+
//# sourceMappingURL=ChainList-C4A_7e-9.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChainList-C4A_7e-9.js","names":["LogLine.format","ChainName.read","read$1","levels","flatten","value","key","options","pair","item","format","fields","level","pairs","message","quote","frame","text","dev","error","parameters","print","entry","info","route","c","warn","compact","describe","shortMessage","read","query","status","line","InvalidListError","ids","known","localnet","list","entries","parts","part","index","split","head","url","name","id","chainId","resolve","override","candidate","configurable","resolved"],"sources":["../../../../internal/LogLine.ts","../../../../internal/Log.ts","../../../../internal/ChainList.ts"],"sourcesContent":["/**\n * Prints `Log` entries as condensed lines on the Vite dev server. The production build logs objects.\n * @module\n */\n/* istanbul ignore file -- Only the dev server formats lines. The suites run the production build. */\n\n/** Each level's label and ANSI color in the dev server's lines. */\nconst levels = {\n error: { color: 31, label: 'ERROR' },\n info: { color: 32, label: ' INFO' },\n warn: { color: 33, label: ' WARN' },\n} as const\n\n/** Flattens nested objects into `[key, value]` pairs with dotted keys, such as `request.id`. */\nfunction flatten(\n value: object,\n options: flatten.Options = { prefix: '' },\n): [string, unknown][] {\n return Object.entries(value).flatMap((pair): [string, unknown][] => {\n const key = `${options.prefix}${pair[0]}`\n const item: unknown = pair[1]\n if (typeof item === 'object' && item !== null && !Array.isArray(item))\n return flatten(item, { prefix: `${key}.` })\n return [[key, item]]\n })\n}\n\ndeclare namespace flatten {\n type Options = {\n /** The dotted path so far, such as `error.cause.`. */\n prefix: string\n }\n}\n\n/** Formats a log entry as one line in the style of Rust's `tracing`, then indented stack frames. */\nexport function format(\n value: Record<string, unknown>,\n options: format.Options,\n) {\n const { message, ...fields } = value\n const level = levels[options.level]\n const pairs = flatten(fields)\n\n const head = [\n `\\x1b[2m${new Date().toISOString().slice(11, 23)}\\x1b[0m`,\n `\\x1b[1;${level.color}m${level.label}\\x1b[0m`,\n `\\x1b[1m${String(message)}\\x1b[0m`,\n ...pairs\n .filter((pair) => !pair[0].endsWith('stack'))\n .map(\n (pair) => `\\x1b[3m${pair[0]}\\x1b[0m\\x1b[2m=\\x1b[0m${quote(pair[1])}`,\n ),\n ].join(' ')\n const frames = pairs\n .filter((pair) => pair[0].endsWith('stack'))\n .flatMap((pair) => String(pair[1]).split('\\n'))\n // Paths start at `src/` or `node_modules/`, without the checkout or pnpm's store directory.\n .map((frame) =>\n frame\n .replace(\n /\\/node_modules\\/\\.pnpm\\/[^/]+\\/node_modules\\//,\n '/node_modules/',\n )\n .replace(/\\((?:\\/[^()]*?)?\\/((?:node_modules|src)\\/[^()]*)\\)/, '($1)'),\n )\n .map((frame) => `\\x1b[2m ${frame}\\x1b[0m`)\n return [head, ...frames].join('\\n')\n}\n\nexport declare namespace format {\n type Options = {\n /** The entry's level. */\n level: keyof typeof levels\n }\n}\n\n/** Quotes a value with whitespace, a quote, or `=`, so each pair stays one token. */\nfunction quote(value: unknown) {\n const text = String(value)\n return /[\\s\"=]/.test(text) || text === '' ? JSON.stringify(text) : text\n}\n","/**\n * Structured logs for the Worker, one object per entry, which Workers Logs indexes by field. An\n * entry holds a fixed message, chosen fields, the request's ID, method, and route, and an error's\n * safe properties. Headers, bodies, query strings, and path parameters never reach a log.\n * @module\n */\nimport type { Context } from 'hono'\nimport * as LogLine from './LogLine.js'\n\n/** What a log entry records. */\nexport type Options = {\n /** The error behind the entry. */\n error?: unknown\n /** Extra fields to index, such as a client ID. Never secrets, tokens, or personal data. */\n fields?: Record<string, boolean | number | string | undefined> | undefined\n /** A fixed sentence, which occurrences group by. It never holds values. */\n message: string\n}\n\n/** Returns whether the module runs on the Vite dev server. */\nexport function dev() {\n return (import.meta as Meta).env?.DEV === true\n}\n\n/** Logs an unexpected failure. Outside a request, such as in a cron, it takes no context. */\nexport function error(c: Context, options: Options): void\nexport function error(options: Options): void\nexport function error(...parameters: [Context, Options] | [Options]) {\n console.error(print(entry(...parameters), { level: 'error' }))\n}\n\n/** Logs a routine event worth keeping, such as a configuration change. */\nexport function info(c: Context, options: Options): void\nexport function info(options: Options): void\nexport function info(...parameters: [Context, Options] | [Options]) {\n console.info(print(entry(...parameters), { level: 'info' }))\n}\n\n/**\n * Returns the pattern of the first matched route without a wildcard, such as\n * `/v1/device/requests/:code`, which hides path parameters. Without one, returns `/*`, since the\n * path can carry a code.\n */\nexport function route(c: Context) {\n // The `hono/route` helper reads a symbol of its own Hono copy, and the Vite dev server loads Void's\n // Hono as another copy. The request's own getter works with either.\n return (\n c.req.matchedRoutes.find((entry) => !entry.path.includes('*'))?.path ?? '/*'\n )\n}\n\n/** Logs a recoverable problem that did not fail the request. */\nexport function warn(c: Context, options: Options): void\nexport function warn(options: Options): void\nexport function warn(...parameters: [Context, Options] | [Options]) {\n console.warn(print(entry(...parameters), { level: 'warn' }))\n}\n\n/** The part of `import.meta` that Vite fills. */\ntype Meta = ImportMeta & {\n /** Absent outside Vite. */\n env?:\n | {\n /** Whether the module runs on the Vite dev server. */\n DEV?: boolean | undefined\n }\n | undefined\n}\n\n/** Returns an object without its `undefined` properties. */\nfunction compact(value: Record<string, unknown>) {\n return Object.fromEntries(\n Object.entries(value).filter((pair) => pair[1] !== undefined),\n )\n}\n\n/** The parts of an error that are safe to log, with its causes up to three deep. */\nfunction describe(\n error: unknown,\n options: describe.Options = { depth: 0 },\n): Record<string, unknown> {\n // A thrown value that is not an `Error` can be anything, including a secret.\n if (!(error instanceof Error)) return { name: 'NonError', type: typeof error }\n\n // Viem and ox put request arguments, which can hold ID tokens and proofs, in `message`, and a\n // summary in `shortMessage`. Drizzle puts a failed query's parameters, which can hold an email\n // address or a code, in `message`, and the query alone in `query`. The stack repeats the message,\n // so only its frames are kept.\n const message = (() => {\n const shortMessage = read(error, { key: 'shortMessage' })\n if (typeof shortMessage === 'string') return shortMessage\n const query = read(error, { key: 'query' })\n if (\n typeof query === 'string' &&\n Array.isArray(Reflect.get(error, 'params'))\n )\n return `Failed query: ${query}`\n return error.message\n })()\n const status = read(error, { key: 'status' })\n return compact({\n cause:\n error.cause !== undefined && options.depth < 3\n ? describe(error.cause, { depth: options.depth + 1 })\n : undefined,\n code: read(error, { key: 'code' }),\n // Viem's `RpcRequestError` holds the node's JSON-RPC error message in `details`, such as the\n // reason that a relay refuses a transaction. Its `message` adds the URL, which can hold a\n // provider's key, and the request body, so only `details` is kept.\n details:\n error.name === 'RpcRequestError'\n ? read(error, { key: 'details' })\n : undefined,\n message,\n name: error.name,\n stack: error.stack\n ?.split('\\n')\n .filter((line) => /^\\s+at /.test(line))\n .map((line) => line.trim())\n .join('\\n'),\n status: typeof status === 'number' ? status : undefined,\n })\n}\n\ndeclare namespace describe {\n type Options = {\n /** How many causes deep this error is. */\n depth: number\n }\n}\n\n/** Builds the logged object, leaving out absent fields. */\nfunction entry(...parameters: [Context, Options] | [Options]) {\n const [c, options] =\n parameters.length === 2 ? parameters : [undefined, parameters[0]]\n const { error, fields, message } = options\n return compact({\n // Fields come first, so they never replace the entry's own keys.\n ...fields,\n error: error === undefined ? undefined : describe(error),\n message,\n request: c\n ? compact({\n id: c.get('requestId'),\n method: c.req.method,\n path: route(c),\n })\n : undefined,\n })\n}\n\n/** Returns the entry as an object, or as one condensed line on the Vite dev server. */\nfunction print(\n value: Record<string, unknown>,\n options: LogLine.format.Options,\n) {\n return dev() ? LogLine.format(value, options) : value\n}\n\n/** Reads an error property when it is a string or number. */\nfunction read(error: Error, options: { key: string }) {\n const value: unknown = Reflect.get(error, options.key)\n return typeof value === 'string' || typeof value === 'number'\n ? value\n : undefined\n}\n","/**\n * The chain lists of the deployment's options, `RPC_URLS`, `TEMPO_API_URLS`, and\n * `CONFIGURABLE_ACCOUNTS`, read without Viem's chain definitions or Zod. `App.create` checks its\n * options with this module when the Worker starts, so the Worker entry loads no second copy of\n * either. `Chain` adds the definitions.\n * @module\n */\nimport type {\n tempo,\n tempoDevnet,\n tempoLocalnet,\n tempoTestnet,\n} from 'viem/tempo/chains'\nimport * as ChainName from './ChainName.js'\nimport * as Log from './Log.js'\n\n/**\n * `RPC_URLS` or `TEMPO_API_URLS` holds an entry that does not parse. The message names the entry by\n * position only, since a URL can hold a key.\n */\nexport class InvalidListError extends Error {\n override readonly name = 'ChainList.InvalidListError'\n\n constructor(options: InvalidListError.Options) {\n super(\n `Invalid ${options.variable} entry ${options.index + 1}: ${options.reason}. Write each entry as \\`name:chainId=url\\`, such as \\`local:1337=http://localhost:8545\\`, and separate entries with commas.`,\n )\n }\n}\n\nexport declare namespace InvalidListError {\n type Options = {\n /** From 0. */\n index: number\n /** What the entry gets wrong. */\n reason: string\n /** The variable that holds the entry. */\n variable: list.Variable\n }\n}\n\n/** Each built-in chain's ID, by its name. Viem's literal types check each ID. */\nexport const ids = { mainnet: 4217, testnet: 42431 } as const satisfies {\n mainnet: (typeof tempo)['id']\n testnet: (typeof tempoTestnet)['id']\n}\n\n/**\n * The IDs of the Tempo chains whose tokens Tempo ID knows, in the order of `Chain.known`, whose\n * type checks each ID against its definition. A listed RPC URL serves one of them.\n */\nexport const known = [4217, 42431, 31318, 1337] as const satisfies readonly [\n (typeof tempo)['id'],\n (typeof tempoTestnet)['id'],\n (typeof tempoDevnet)['id'],\n (typeof tempoLocalnet)['id'],\n]\n\n/** The local chain's ID, which errors give as an example. */\nconst localnet = known[3]\n\n/** A chain that `RPC_URLS` lists. */\nexport type Entry = {\n /** The Tempo chain that the node serves. */\n chainId: number\n /** The name in the `chain` parameter. */\n name: string\n /** The node's RPC URL, which can hold a provider's key. */\n url: string\n}\n\n/**\n * Returns the chains that a `RPC_URLS` value lists, in order, from comma-separated\n * `name:chainId=url` entries. An entry named `mainnet` or `testnet` replaces that chain's RPC URL.\n *\n * @throws {InvalidListError} When an entry does not parse, repeats a name, gives a built-in name\n * another chain's ID, or names a chain that is not a Tempo chain.\n */\nexport function list(options: list.Options): readonly Entry[] {\n const { variable = 'RPC_URLS' } = options\n const entries: Entry[] = []\n const parts = (options.value ?? '')\n .split(',')\n .map((part) => part.trim())\n .filter(Boolean)\n\n for (const [index, part] of parts.entries()) {\n // The URL can hold `=` and `:` itself, so the first `=` ends the name and the chain ID.\n const split = part.indexOf('=')\n const head = split === -1 ? part : part.slice(0, split)\n const url = split === -1 ? '' : part.slice(split + 1).trim()\n const [name = '', id = ''] = head.split(':').map((value) => value.trim())\n const chainId = Number(id)\n\n if (!ChainName.read(name))\n throw new InvalidListError({\n index,\n reason:\n 'the name needs lowercase letters, digits, and dashes, up to 32 characters',\n variable,\n })\n if (name in ids && chainId !== ids[name as keyof typeof ids])\n throw new InvalidListError({\n index,\n reason: `\\`${name}\\` is chain ${ids[name as keyof typeof ids]}`,\n variable,\n })\n if (entries.some((entry) => entry.name === name))\n throw new InvalidListError({\n index,\n reason: `\\`${name}\\` repeats an earlier entry`,\n variable,\n })\n if (!known.some((entry) => entry === chainId))\n throw new InvalidListError({\n index,\n // The segment can hold a URL's key when the entry has no `=`, so only digits are named.\n reason: /^\\d+$/.test(id)\n ? `\\`${id}\\` is not a Tempo chain ID, such as ${localnet}`\n : `the chain ID needs digits, such as ${localnet}`,\n variable,\n })\n if (!URL.canParse(url) || !/^https?:$/.test(new URL(url).protocol))\n throw new InvalidListError({\n index,\n reason: 'the URL needs http or https',\n variable,\n })\n\n entries.push({ chainId, name, url })\n }\n\n return entries\n}\n\nexport declare namespace list {\n type Options = {\n /** The variable's value. */\n value: string | undefined\n /** The variable that errors name. Defaults to `RPC_URLS`. */\n variable?: Variable | undefined\n }\n\n /** A variable that lists chains in the `name:chainId=url` format. */\n type Variable = 'RPC_URLS' | 'TEMPO_API_URLS'\n}\n\n/**\n * Returns the chain ID and RPC URL of the chain `name`, or `undefined` for an unknown name. A listed\n * URL applies first, then `rpcUrl` for a built-in chain, then the chain's public RPC URL.\n *\n * @throws {InvalidListError} When `rpcUrls` does not parse and `name` is not built in.\n */\nexport function resolve(options: resolve.Options): resolve.ReturnType {\n const { name } = options\n if (name === 'mainnet' || name === 'testnet')\n return {\n chainId: ids[name],\n rpcUrl:\n override({ chainId: ids[name], rpcUrls: options.rpcUrls }) ??\n options.rpcUrl,\n }\n\n const entry = list({ value: options.rpcUrls }).find(\n (candidate) => candidate.name === name,\n )\n if (!entry) return undefined\n return { chainId: entry.chainId, rpcUrl: entry.url }\n}\n\nexport declare namespace resolve {\n type Options = {\n /** The chain's name. */\n name: string\n /** `TEMPO_RPC_URL`, for each built-in chain that `rpcUrls` does not list. */\n rpcUrl: string | undefined\n /** The value of `RPC_URLS`. */\n rpcUrls: string | undefined\n }\n\n type ReturnType =\n | {\n /** The chain's ID. */\n chainId: number\n /** The RPC URL, or `undefined` for the chain's own. */\n rpcUrl: string | undefined\n }\n | undefined\n}\n\n/**\n * Returns the URL that a `RPC_URLS` entry gives the built-in chain `chainId`, or `undefined`. A list\n * that does not parse logs a warning, so built-in chains still read.\n */\nexport function override(options: override.Options) {\n const name = (Object.keys(ids) as (keyof typeof ids)[]).find(\n (key) => ids[key] === options.chainId,\n )\n if (!name) return undefined\n\n try {\n return list({ value: options.rpcUrls }).find((entry) => entry.name === name)\n ?.url\n } catch (error) {\n if (!(error instanceof InvalidListError)) throw error\n Log.warn({ error, message: 'RPC_URLS does not parse.' })\n return undefined\n }\n}\n\nexport declare namespace override {\n type Options = {\n /** The chain's ID. */\n chainId: number\n /** The value of `RPC_URLS`. */\n rpcUrls: string | undefined\n }\n}\n\n/**\n * Returns the chains that `CONFIGURABLE_ACCOUNTS` names, in its order, each with its ID and RPC URL.\n * A name that is neither built in nor listed is left out, as is a list that does not parse, since\n * `App.create` refuses both when the Worker starts.\n */\nexport function configurable(\n options: configurable.Options,\n): readonly configurable.Entry[] {\n const names = (options.value ?? '')\n .split(',')\n .map((part) => part.trim())\n .filter(Boolean)\n\n return names.flatMap((name) => {\n const resolved = (() => {\n try {\n return resolve({\n name,\n rpcUrl: options.rpcUrl,\n rpcUrls: options.rpcUrls,\n })\n } catch (error) {\n if (error instanceof InvalidListError) return undefined\n throw error\n }\n })()\n if (!resolved) return []\n return [{ chainId: resolved.chainId, name, rpcUrl: resolved.rpcUrl }]\n })\n}\n\nexport declare namespace configurable {\n type Options = {\n /** The value of `TEMPO_RPC_URL`. */\n rpcUrl?: string | undefined\n /** The value of `RPC_URLS`. */\n rpcUrls: string | undefined\n /** The value of `CONFIGURABLE_ACCOUNTS`: chain names, separated with commas. */\n value: string | undefined\n }\n\n /** A chain whose accounts are configurable. */\n type Entry = {\n /** The chain's ID, one of {@link known}. */\n chainId: number\n /** The chain's name, which the `chain` parameter carries. */\n name: string\n /** The RPC URL that serves the chain, or `undefined` for the chain's own. */\n rpcUrl: string | undefined\n }\n}\n"],"mappings":"A,4CAOA,IAAMG,EAAS,CACb,MAAO,CAAE,MAAO,GAAI,MAAO,OAAQ,EACnC,KAAM,CAAE,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,CAC7B,MAAM,GAAG,CAAC,CACV,IAAK,GAASkC,EAAK,KAAK,CAAC,CAAC,CAC1B,OAAO,OAEH,CAAA,CAAM,QAAS,GAAS,CAC7B,IAAMY,OAAkB,CACtB,GAAI,CACF,OAAOJ,EAAQ,CACb,OACA,OAAQ1C,EAAQ,OAChB,QAASA,EAAQ,OACnB,CAAC,CACH,OAASY,EAAO,CACd,GAAIA,aAAiBe,EAAkB,OACvC,MAAMf,CACR,CACF,EAAA,CAAG,EAEH,OADKkC,EACE,CAAC,CAAE,QAASA,EAAS,QAAS,OAAM,OAAQA,EAAS,MAAO,CAAC,EAD9C,CAAC,CAEzB,CAAC,CACH,C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChainName-BMnJyJrd.js","names":["pattern","read","value"],"sources":["../../../../internal/ChainName.ts"],"sourcesContent":["/**\n * The name of a Tempo chain in the `chain` parameter: `mainnet`, `testnet`, or a name that\n * `RPC_URLS` lists. Pages read the parameter here, since `Chain` holds the chain definitions and the\n * transaction code that they bring.\n * @module\n */\n\n/** A chain's name: up to 32 lowercase letters, digits, and dashes. */\nexport const pattern = /^[a-z0-9][a-z0-9-]{0,31}$/\n\n/** Returns `value` if it is a chain's name, else `undefined`. */\nexport function read(value: unknown) {\n return typeof value === 'string' && pattern.test(value) ? value : undefined\n}\n"],"mappings":"AAQA,IAAaA,EAAU,4BAGvB,SAAgBC,EAAK,EAAgB,CACnC,OAAO,OAAOC,GAAU,UAAYF,EAAQ,KAAKE,CAAK,EAAIA,EAAQ,IAAA,EACpE,C"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{s as e}from"./react-dom-DYzj0HXX.js";var t=e();function n(e){return(0,t.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:(0,t.jsx)(`path`,{d:`M12.4112 2.89832C12.5597 2.66559 12.8689 2.59669 13.1016 2.745C13.3344 2.89349 13.4024 3.20263 13.254 3.43543L7.08796 13.1024C6.90444 13.3901 6.49333 13.4133 6.27839 13.1483L2.77742 8.83289C2.60384 8.6186 2.63676 8.30373 2.85066 8.12976C3.06513 7.95582 3.38082 7.98853 3.55476 8.203L6.61726 11.9784L12.4112 2.89832Z`,fill:`currentColor`})})}export{n as t};
|
|
2
|
+
//# sourceMappingURL=Check-DU_oR3Ev.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Check-DU_oR3Ev.js","names":["_jsx","require_jsx_runtime","import_jsx_runtime","Check","props"],"sources":["../../../../../node_modules/.pnpm/@tempoxyz+ds@0.2.6_@types+react@19.3.0_react-dom@19.3.0_react@19.3.0__react-native@0.86_f564df10a26f3190a3aaf6288ad1f3d1/node_modules/@tempoxyz/ds/dist/web/icons/Check.js"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nexport function Check(props) {\n return (_jsx(\"svg\", { width: \"1em\", height: \"1em\", viewBox: \"0 0 16 16\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", \"aria-hidden\": props['aria-label'] || props['aria-labelledby'] ? undefined : true, role: props['aria-label'] || props['aria-labelledby'] ? 'img' : undefined, ...props, children: _jsx(\"path\", { d: \"M12.4112 2.89832C12.5597 2.66559 12.8689 2.59669 13.1016 2.745C13.3344 2.89349 13.4024 3.20263 13.254 3.43543L7.08796 13.1024C6.90444 13.3901 6.49333 13.4133 6.27839 13.1483L2.77742 8.83289C2.60384 8.6186 2.63676 8.30373 2.85066 8.12976C3.06513 7.95582 3.38082 7.98853 3.55476 8.203L6.61726 11.9784L12.4112 2.89832Z\", fill: \"currentColor\" }) }));\n}\n//# sourceMappingURL=Check.js.map"],"ignoreList":[0],"mappings":"A,sDACA,SAAgBG,EAAM,EAAO,CACzB,OAAA,EAAQH,EAAAA,IAAAA,CAAK,MAAO,CAAE,MAAO,MAAO,OAAQ,MAAO,QAAS,YAAa,KAAM,OAAQ,MAAO,6BAA8B,cAAeI,EAAM,eAAiBA,EAAM,mBAAqB,IAAA,GAAY,GAAM,KAAMA,EAAM,eAAiBA,EAAM,mBAAqB,MAAQ,IAAA,GAAW,GAAGA,EAAO,UAAA,EAAUJ,EAAAA,IAAAA,CAAK,OAAQ,CAAE,EAAG,8TAA+T,KAAM,cAAe,CAAC,CAAE,CAAC,CAC5pB,C"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{s as e}from"./react-dom-DYzj0HXX.js";var t=e();function n(e){return(0,t.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:(0,t.jsx)(`path`,{d:`M6.1464 3.3135C6.34166 3.11824 6.65816 3.11824 6.85343 3.3135L10.7157 7.1758C11.1706 7.63138 11.1709 8.36981 10.7157 8.82522L6.85334 12.6875C6.6582 12.8824 6.34152 12.8823 6.14631 12.6875C5.95114 12.4923 5.95132 12.1758 6.14631 11.9805L10.0087 8.11819C10.0734 8.05331 10.0731 7.94789 10.0087 7.88284L6.1464 4.02053C5.95117 3.8253 5.95124 3.50877 6.1464 3.3135Z`,fill:`currentColor`})})}export{n as t};
|
|
2
|
+
//# sourceMappingURL=ChevronRight-DTBnw-W6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChevronRight-DTBnw-W6.js","names":["_jsx","require_jsx_runtime","import_jsx_runtime","ChevronRight","props"],"sources":["../../../../../node_modules/.pnpm/@tempoxyz+ds@0.2.6_@types+react@19.3.0_react-dom@19.3.0_react@19.3.0__react-native@0.86_f564df10a26f3190a3aaf6288ad1f3d1/node_modules/@tempoxyz/ds/dist/web/icons/ChevronRight.js"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nexport function ChevronRight(props) {\n return (_jsx(\"svg\", { width: \"1em\", height: \"1em\", viewBox: \"0 0 16 16\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", \"aria-hidden\": props['aria-label'] || props['aria-labelledby'] ? undefined : true, role: props['aria-label'] || props['aria-labelledby'] ? 'img' : undefined, ...props, children: _jsx(\"path\", { d: \"M6.1464 3.3135C6.34166 3.11824 6.65816 3.11824 6.85343 3.3135L10.7157 7.1758C11.1706 7.63138 11.1709 8.36981 10.7157 8.82522L6.85334 12.6875C6.6582 12.8824 6.34152 12.8823 6.14631 12.6875C5.95114 12.4923 5.95132 12.1758 6.14631 11.9805L10.0087 8.11819C10.0734 8.05331 10.0731 7.94789 10.0087 7.88284L6.1464 4.02053C5.95117 3.8253 5.95124 3.50877 6.1464 3.3135Z\", fill: \"currentColor\" }) }));\n}\n//# sourceMappingURL=ChevronRight.js.map"],"ignoreList":[0],"mappings":"A,sDACA,SAAgBG,EAAa,EAAO,CAChC,OAAA,EAAQH,EAAAA,IAAAA,CAAK,MAAO,CAAE,MAAO,MAAO,OAAQ,MAAO,QAAS,YAAa,KAAM,OAAQ,MAAO,6BAA8B,cAAeI,EAAM,eAAiBA,EAAM,mBAAqB,IAAA,GAAY,GAAM,KAAMA,EAAM,eAAiBA,EAAM,mBAAqB,MAAQ,IAAA,GAAW,GAAGA,EAAO,UAAA,EAAUJ,EAAAA,IAAAA,CAAK,OAAQ,CAAE,EAAG,2WAA4W,KAAM,cAAe,CAAC,CAAE,CAAC,CACzsB,C"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* empty css */import{s as e}from"./react-dom-DYzj0HXX.js";import{t}from"./Stack-DGktaLZc.js";import{i as n}from"./zyzz.config-CJRpjn0E.js";import{t as r}from"./Amount-Cgwdr3Xt.js";import{t as i}from"./Callout-tQoAitWq.js";import{n as a}from"./Hex-Z6m_0Y0m.js";import{t as o}from"./IconChip-C9ZrmGB5.js";import{t as s}from"./Rows-CQKQwTI1.js";import{t as c}from"./Cloud-CLB3rTTy.js";import{t as l}from"./Fingerprint-DhOPOdRr.js";var u=e();function d(e){return(0,u.jsxs)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:[(0,u.jsx)(`path`,{d:`M10.334 9C10.7019 9.00026 11.001 9.29897 11.001 9.66699C11.0007 10.0348 10.7018 10.3337 10.334 10.334C9.96597 10.334 9.66726 10.0349 9.66699 9.66699C9.66699 9.29881 9.9658 9 10.334 9Z`,fill:`currentColor`}),(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M10.3125 2C10.8761 2 11.3328 2.45688 11.333 3.02051V5.33301H12.833C13.4774 5.33301 14 5.85568 14 6.5V12.833C14 13.4774 13.4774 14 12.833 14H4.5C3.1193 14 2 12.8807 2 11.5V4.33301C2.00018 3.0446 3.0446 2.00018 4.33301 2H10.3125ZM3 11.5C3 12.3285 3.67157 13 4.5 13H12.833C12.9251 13 13 12.9251 13 12.833V6.5C13 6.40795 12.9251 6.33301 12.833 6.33301H4C3.6353 6.33301 3.2944 6.234 3 6.06348V11.5ZM4.33301 3C3.59689 3.00018 3.00018 3.59689 3 4.33301C3 4.88529 3.44772 5.33301 4 5.33301H10.333V3.02051C10.3328 3.00914 10.3238 3 10.3125 3H4.33301Z`,fill:`currentColor`})]})}function f(e){let f=e.heading??`h1`,m=e.selecting!==void 0,h=new Set(e.accounts.map(e=>e.realm));return(0,u.jsxs)(t,{className:p.column?`z_tempo_2d_id-isY5HSn z_tempo_2d_id-isY5HSo`:p.column().className,gap:`32`,children:[(0,u.jsxs)(t,{className:p.header?`z_tempo_2d_id-isY5HS12`:p.header().className,align:`center`,gap:`8`,render:(0,u.jsx)(`header`,{}),children:[(0,u.jsx)(o,{className:p.avatar?`z_tempo_2d_id-isY5HSc z_tempo_2d_id-isY5HSd z_tempo_2d_id-isY5HSe z_tempo_2d_id-isY5HSf z_tempo_2d_id-isY5HSg`:p.avatar().className,"aria-hidden":!0,children:(0,u.jsx)(d,{})}),(0,u.jsx)(f,{className:p.title?`z_tempo_2d_id-isY5HS19 z_tempo_2d_id-isY5HS1a z_tempo_2d_id-isY5HS1b z_tempo_2d_id-isY5HS1c z_tempo_2d_id-isY5HS1d z_tempo_2d_id-isY5HS1e`:p.title().className,children:`Choose a wallet`}),(0,u.jsxs)(`p`,{className:p.description?`z_tempo_2d_id-isY5HSp z_tempo_2d_id-isY5HSq z_tempo_2d_id-isY5HSr z_tempo_2d_id-isY5HSs z_tempo_2d_id-isY5HSt z_tempo_2d_id-isY5HSu z_tempo_2d_id-isY5HSv z_tempo_2d_id-isY5HSw z_tempo_2d_id-isY5HSx z_tempo_2d_id-isY5HSy z_tempo_2d_id-isY5HSz z_tempo_2d_id-isY5HS10 z_tempo_2d_id-isY5HS11`:p.description().className,children:[(0,u.jsx)(`strong`,{children:e.app}),` uses the account you choose. You can choose again after you sign out of Tempo ID.`]})]}),(0,u.jsx)(s,{className:p.accounts?`z_tempo_2d_id-isY5HS0 z_tempo_2d_id-isY5HS1 z_tempo_2d_id-isY5HS2 z_tempo_2d_id-isY5HS3 z_tempo_2d_id-isY5HS4 z_tempo_2d_id-isY5HS5 z_tempo_2d_id-isY5HS6`:p.accounts().className,"aria-label":`Accounts`,dividers:`none`,role:`list`,children:e.accounts.map(t=>(0,u.jsx)(`div`,{role:`listitem`,children:(0,u.jsxs)(s.Row,{action:e.selecting===t.address?`none`:`navigation`,"aria-busy":e.selecting===t.address||void 0,disabled:m&&e.selecting!==t.address,onClick:()=>{m||e.onChoose(t.address)},children:[(0,u.jsx)(o,{className:p.chip?`z_tempo_2d_id-isY5HSc`:p.chip().className,"aria-hidden":!0,size:`40`,children:t.owner===`webAuthn`?(0,u.jsx)(l,{}):(0,u.jsx)(c,{})}),(0,u.jsxs)(s.Info,{children:[(0,u.jsxs)(s.Title,{children:[h.size>1&&t.realm?`${t.realm} · `:null,t.owner===`webAuthn`?`Passkey`:`Cloud`]}),(0,u.jsx)(s.Description,{className:p.address?`z_tempo_2d_id-isY5HS7 z_tempo_2d_id-isY5HS8 z_tempo_2d_id-isY5HS9 z_tempo_2d_id-isY5HSa z_tempo_2d_id-isY5HSb`:p.address().className,children:a(t.address)})]}),t.balance?(0,u.jsx)(r,{className:p.balance?`z_tempo_2d_id-isY5HSh z_tempo_2d_id-isY5HSi z_tempo_2d_id-isY5HSj z_tempo_2d_id-isY5HSk z_tempo_2d_id-isY5HSl z_tempo_2d_id-isY5HSm`:p.balance().className,currency:t.balance.currency,"data-testid":`balance`,value:t.balance.amount}):(0,u.jsx)(`span`,{className:p.unavailable?`z_tempo_2d_id-isY5HS1f z_tempo_2d_id-isY5HS1g z_tempo_2d_id-isY5HS1h z_tempo_2d_id-isY5HS1i z_tempo_2d_id-isY5HS1j z_tempo_2d_id-isY5HS1k z_tempo_2d_id-isY5HS1l`:p.unavailable().className,"data-testid":`balance`,children:`Balance unavailable`}),e.selecting===t.address?(0,u.jsx)(n,{"aria-hidden":!0,size:`large`}):null]})},t.address))}),e.error?(0,u.jsxs)(i,{intent:`negative`,children:[(0,u.jsx)(i.Icon,{}),(0,u.jsx)(i.Content,{children:e.error})]}):null,(0,u.jsx)(`p`,{className:p.status?`z_tempo_2d_id-isY5HS13 z_tempo_2d_id-isY5HS14 z_tempo_2d_id-isY5HS15 z_tempo_2d_id-isY5HS16 z_tempo_2d_id-isY5HS17 z_tempo_2d_id-isY5HS18`:p.status().className,"aria-live":`polite`,role:`status`,children:m?`Continuing to ${e.app}.`:void 0})]})}var p;(function(e){e.accounts=1,e.address=1,e.avatar=1,e.balance=1,e.chip=1,e.column=1,e.description=1,e.header=1,e.status=1,e.title=1,e.unavailable=1})(p||={});export{f as t};
|
|
2
|
+
//# sourceMappingURL=ChooseAccount-BizJvMrY.js.map
|