@tempoxyz/id 0.0.0-pr-293.sha-db2bcd0 → 0.0.0-pr-293.sha-e314a6e
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/dist/app/client/assets/Account-BYLpNFf3.css +1 -0
- package/dist/app/client/assets/Account-DKlYpUaF.js +1 -0
- package/dist/app/client/assets/Amount-ZdtluGf-.css +1 -0
- package/dist/app/client/assets/Amount-uCaXmEC1.js +1 -0
- package/dist/app/client/assets/{Approval-lMS61Hor.js → Approval-_VTK0bIA.js} +1 -1
- package/dist/app/client/assets/{Authentication-CNU_hdsE.js → Authentication-CcZraW4V.js} +1 -1
- package/dist/app/client/assets/Callout-Cpp2tekO.js +1 -0
- package/dist/app/client/assets/Callout-DBfEmP7q.css +1 -0
- package/dist/app/client/assets/{Chain-CgM0gkul.js → Chain-BaJbQHEq.js} +1 -1
- package/dist/app/client/assets/{Check-l6Xt-h8M.js → Check-T-Kf-w2J.js} +1 -1
- package/dist/app/client/assets/{ChevronRight-Dgx1CBfS.js → ChevronRight-Cb0izsfB.js} +1 -1
- package/dist/app/client/assets/{ChooseAccount-DKQvWYym.js → ChooseAccount-BbdtokuQ.js} +1 -1
- package/dist/app/client/assets/{Client-B3HiaUR7.js → Client-XdlKOIjT.js} +1 -1
- package/dist/app/client/assets/{Close-CHeDbDyp.js → Close-9qiwSZoT.js} +1 -1
- package/dist/app/client/assets/{Cloud-BnBzwFJQ.js → Cloud-yU0Kxv28.js} +1 -1
- package/dist/app/client/assets/CodeInput-BqRteSwD.css +1 -0
- package/dist/app/client/assets/CodeInput-C8ad0edh.js +1 -0
- package/dist/app/client/assets/Deposit-CclrAoXL.css +1 -0
- package/dist/app/client/assets/Deposit-b5yx-L71.js +1 -0
- package/dist/app/client/assets/DevTools-BYkmtuV5.css +1 -0
- package/dist/app/client/assets/DevTools-Cgd0Ogan.js +1 -0
- package/dist/app/client/assets/{DeviceApproval-DKQklicf.js → DeviceApproval-CGdmL9U5.js} +1 -1
- package/dist/app/client/assets/{Fingerprint-CVLZp0fE.js → Fingerprint-081gQp_i.js} +1 -1
- package/dist/app/client/assets/{Globe-RAkdkLVn.js → Globe-D4HEnXoi.js} +1 -1
- package/dist/app/client/assets/Grant-5a-n1gJH.css +1 -0
- package/dist/app/client/assets/Grant-C-7ibHJb.js +1 -0
- package/dist/app/client/assets/Hex-C9KeV7_9.css +1 -0
- package/dist/app/client/assets/Hex-COpLAksw.js +10 -0
- package/dist/app/client/assets/IconChip-Cr71cqFZ.js +1 -0
- package/dist/app/client/assets/IconChip-yqaQ2y_d.css +1 -0
- package/dist/app/client/assets/InputGroup-BMExR1w7.js +1 -0
- package/dist/app/client/assets/InputGroup-BlZvt9In.css +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-CVy-jQh9.js +1 -0
- package/dist/app/client/assets/{PopoverPopup-AaR182Lw.js → PopoverPopup-CQv00nl_.js} +1 -1
- package/dist/app/client/assets/Rows-CT3nC-Gp.js +1 -0
- package/dist/app/client/assets/Rows-DPGTUdA8.css +1 -0
- package/dist/app/client/assets/{Separator-C1NRk_mW.js → Separator-Doxz2kha.js} +1 -1
- package/dist/app/client/assets/SignIn-D2D3rbzT.js +1 -0
- package/dist/app/client/assets/SignIn-mlBTwUq4.css +1 -0
- package/dist/app/client/assets/Stack-D7Yt22Ed.css +1 -0
- package/dist/app/client/assets/Stack-qm24zmlV.js +1 -0
- package/dist/app/client/assets/ToolbarRootContext-Ctu7JTLk.js +1 -0
- package/dist/app/client/assets/Tooltip-arQraM0D.js +1 -0
- package/dist/app/client/assets/Tooltip-d3y9ESUJ.css +1 -0
- package/dist/app/client/assets/___-I98bns4o.css +1 -0
- package/dist/app/client/assets/___.flows-8Dmgeehd.js +5 -0
- package/dist/app/client/assets/{authorize-BQ1QbDZ8.js → authorize-DAtsqrNM.js} +1 -1
- package/dist/app/client/assets/{choose-account-Da0fLaYb.js → choose-account-DEFRgijo.js} +1 -1
- package/dist/app/client/assets/{deposit-CwKR_KjX.js → deposit--QiYWQfo.js} +1 -1
- package/dist/app/client/assets/{device-CCwq2oAs.js → device-Bq9xs5K6.js} +1 -1
- package/dist/app/client/assets/{error-Dj24A5n4.js → error-IQXxc1eM.js} +1 -1
- package/dist/app/client/assets/{getPseudoElementBounds-DH_jjqMh.js → getPseudoElementBounds-4olojy3W.js} +1 -1
- package/dist/app/client/assets/index-CyFheDuU.js +13 -0
- package/dist/app/client/assets/index-DSkPoKOK.css +1 -0
- package/dist/app/client/assets/{lazyRouteComponent-108fI1-o.js → lazyRouteComponent-Dz0rIGYN.js} +1 -1
- package/dist/app/client/assets/{login--cK4-SN_.js → login-B0BjHqjo.js} +1 -1
- package/dist/app/client/assets/pathUSD-BMh6ajrW.css +1 -0
- package/dist/app/client/assets/pathUSD-DuAfAKZZ.js +1 -0
- package/dist/app/client/assets/{removable-CZFK4Sbw.js → removable-CbJQgeuY.js} +1 -1
- package/dist/app/client/assets/{routes-BEKA6M9o.js → routes-BkBTe_Iu.js} +1 -1
- package/dist/app/client/assets/{suspense-ClIj0Mjn.js → suspense-Djz3yPi6.js} +1 -1
- package/dist/app/client/assets/useNavigate-B3GfD6JV.js +1 -0
- package/dist/app/client/assets/{useRegisterFieldControl-r_mKBm9D.js → useRegisterFieldControl-C8uwO_R4.js} +1 -1
- package/dist/app/client/assets/zyzz-DYC-X0_B.css +1 -0
- package/dist/app/client/assets/zyzz.config-DJRBo25J.js +2 -0
- package/dist/app/server/.vite/manifest.json +640 -608
- package/dist/app/server/assets/Account-BYLpNFf3.css +1 -0
- package/dist/app/server/assets/Account-g1_Uaj86.js +2 -0
- package/dist/app/server/assets/Account-g1_Uaj86.js.map +1 -0
- package/dist/app/server/assets/Amount-BXSuv2fx.js +2 -0
- package/dist/app/server/assets/Amount-BXSuv2fx.js.map +1 -0
- package/dist/app/server/assets/Amount-ZdtluGf-.css +1 -0
- package/dist/app/server/assets/{Approval-DhLkTvkI.js → Approval-DA8fDZIl.js} +2 -2
- package/dist/app/server/assets/{Approval-DhLkTvkI.js.map → Approval-DA8fDZIl.js.map} +1 -1
- package/dist/app/server/assets/{Authentication-Odm8-gfs.js → Authentication-BJgy8lyC.js} +2 -2
- package/dist/app/server/assets/{Authentication-Odm8-gfs.js.map → Authentication-BJgy8lyC.js.map} +1 -1
- package/dist/app/server/assets/{Authentication-DLWMd2mA.js → Authentication-CsSh3HGu.js} +2 -2
- package/dist/app/server/assets/{Authentication-DLWMd2mA.js.map → Authentication-CsSh3HGu.js.map} +1 -1
- package/dist/app/server/assets/Callout-DBfEmP7q.css +1 -0
- package/dist/app/server/assets/Callout-DlcQ5BUo.js +2 -0
- package/dist/app/server/assets/Callout-DlcQ5BUo.js.map +1 -0
- package/dist/app/server/assets/{Chain-CQgBRAXx.js → Chain-C9RGZDJm.js} +2 -2
- package/dist/app/server/assets/{Chain-CQgBRAXx.js.map → Chain-C9RGZDJm.js.map} +1 -1
- package/dist/app/server/assets/{Check-BwwQ6kDn.js → Check-CQIa-Y5d.js} +2 -2
- package/dist/app/server/assets/{Check-BwwQ6kDn.js.map → Check-CQIa-Y5d.js.map} +1 -1
- package/dist/app/server/assets/{ChevronRight-B_ft-uyS.js → ChevronRight-wzF9Mh2e.js} +2 -2
- package/dist/app/server/assets/{ChevronRight-B_ft-uyS.js.map → ChevronRight-wzF9Mh2e.js.map} +1 -1
- package/dist/app/server/assets/{ChooseAccount-FJJ2kRPk.js → ChooseAccount-De_YweJM.js} +2 -2
- package/dist/app/server/assets/{ChooseAccount-FJJ2kRPk.js.map → ChooseAccount-De_YweJM.js.map} +1 -1
- package/dist/app/server/assets/{Client-D3gnMDTr.js → Client-BAXSFa9e.js} +2 -2
- package/dist/app/server/assets/{Client-D3gnMDTr.js.map → Client-BAXSFa9e.js.map} +1 -1
- package/dist/app/server/assets/{ClientOnly-CbQVNHub.js → ClientOnly-B8k5xDwz.js} +2 -2
- package/dist/app/server/assets/{ClientOnly-CbQVNHub.js.map → ClientOnly-B8k5xDwz.js.map} +1 -1
- package/dist/app/server/assets/{Close-ChRMz-uR.js → Close-C74hwnOn.js} +2 -2
- package/dist/app/server/assets/{Close-ChRMz-uR.js.map → Close-C74hwnOn.js.map} +1 -1
- package/dist/app/server/assets/{Cloud-C3_mtq_Y.js → Cloud-CYXeneSe.js} +2 -2
- package/dist/app/server/assets/{Cloud-C3_mtq_Y.js.map → Cloud-CYXeneSe.js.map} +1 -1
- package/dist/app/server/assets/CodeInput-BqRteSwD.css +1 -0
- package/dist/app/server/assets/CodeInput-DdkMKOyq.js +2 -0
- package/dist/app/server/assets/CodeInput-DdkMKOyq.js.map +1 -0
- package/dist/app/server/assets/{Credential-D82PNwyx.js → Credential-DXcfPJEP.js} +2 -2
- package/dist/app/server/assets/{Credential-D82PNwyx.js.map → Credential-DXcfPJEP.js.map} +1 -1
- package/dist/app/server/assets/Deposit-CclrAoXL.css +1 -0
- package/dist/app/server/assets/Deposit-DOp5HCDX.js +2 -0
- package/dist/app/server/assets/Deposit-DOp5HCDX.js.map +1 -0
- package/dist/app/server/assets/DevTools-BYkmtuV5.css +1 -0
- package/dist/app/server/assets/DevTools-CxdPUN3V.js +2 -0
- package/dist/app/server/assets/DevTools-CxdPUN3V.js.map +1 -0
- package/dist/app/server/assets/{DeviceApproval-BhWgrv9l.js → DeviceApproval-o7T8XlX3.js} +2 -2
- package/dist/app/server/assets/{DeviceApproval-BhWgrv9l.js.map → DeviceApproval-o7T8XlX3.js.map} +1 -1
- package/dist/app/server/assets/{ExecutionError-DSSCSoHl.js → ExecutionError-DoRNvh3D.js} +2 -2
- package/dist/app/server/assets/{ExecutionError-DSSCSoHl.js.map → ExecutionError-DoRNvh3D.js.map} +1 -1
- package/dist/app/server/assets/{Faucet-Cv-nQMBR.js → Faucet-jp6zNWHE.js} +2 -2
- package/dist/app/server/assets/{Faucet-Cv-nQMBR.js.map → Faucet-jp6zNWHE.js.map} +1 -1
- package/dist/app/server/assets/{Fingerprint-B0Iay4Ws.js → Fingerprint-CAqjOS3T.js} +2 -2
- package/dist/app/server/assets/{Fingerprint-B0Iay4Ws.js.map → Fingerprint-CAqjOS3T.js.map} +1 -1
- package/dist/app/server/assets/{Globe-C6rnzTY0.js → Globe-BZ_5dGqa.js} +2 -2
- package/dist/app/server/assets/{Globe-C6rnzTY0.js.map → Globe-BZ_5dGqa.js.map} +1 -1
- package/dist/app/server/assets/Grant-5a-n1gJH.css +1 -0
- package/dist/app/{client/assets/Grant-DurkleN7.js → server/assets/Grant-BwOC2P94.js} +2 -1
- package/dist/app/server/assets/Grant-BwOC2P94.js.map +1 -0
- package/dist/app/server/assets/Hex-67thYs-f.js +11 -0
- package/dist/app/server/assets/Hex-67thYs-f.js.map +1 -0
- package/dist/app/server/assets/Hex-C9KeV7_9.css +1 -0
- package/dist/app/server/assets/IconChip-Cmufss8d.js +2 -0
- package/dist/app/server/assets/IconChip-Cmufss8d.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-Bn2KM9pd.js +2 -0
- package/dist/app/server/assets/InputGroup-Bn2KM9pd.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-DvDbd8kj.js +2 -0
- package/dist/app/server/assets/{Loader-Ivf5dWFl.js.map → Loader-DvDbd8kj.js.map} +1 -1
- package/dist/app/server/assets/{Match-DusFDz9D.js → Match-C65vhhhD.js} +2 -2
- package/dist/app/server/assets/{Match-DusFDz9D.js.map → Match-C65vhhhD.js.map} +1 -1
- package/dist/app/server/assets/PopoverPopup-kuWGUSYM.js +2 -0
- package/dist/app/server/assets/{PopoverPopup-D98JOZVe.js.map → PopoverPopup-kuWGUSYM.js.map} +1 -1
- package/dist/app/server/assets/Rows-DPGTUdA8.css +1 -0
- package/dist/app/server/assets/Rows-eTPur_py.js +2 -0
- package/dist/app/server/assets/Rows-eTPur_py.js.map +1 -0
- package/dist/app/server/assets/{Separator-B6od-9JY.js → Separator-BPNenixO.js} +2 -2
- package/dist/app/server/assets/{Separator-B6od-9JY.js.map → Separator-BPNenixO.js.map} +1 -1
- package/dist/app/server/assets/SignIn-CVPZSR-8.js +2 -0
- package/dist/app/server/assets/SignIn-CVPZSR-8.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-DQMZBUUB.js +2 -0
- package/dist/app/server/assets/Stack-DQMZBUUB.js.map +1 -0
- package/dist/app/server/assets/ToolbarRootContext-5168W3t4.js +2 -0
- package/dist/app/server/assets/{ToolbarRootContext-BCmWBQ7n.js.map → ToolbarRootContext-5168W3t4.js.map} +1 -1
- package/dist/app/server/assets/Tooltip-DR3nssae.js +2 -0
- package/dist/app/server/assets/Tooltip-DR3nssae.js.map +1 -0
- package/dist/app/server/assets/Tooltip-d3y9ESUJ.css +1 -0
- package/dist/app/server/assets/___-I98bns4o.css +1 -0
- package/dist/app/server/assets/___.flows-D_J822MU.js +6 -0
- package/dist/app/server/assets/___.flows-D_J822MU.js.map +1 -0
- package/dist/app/server/assets/_tanstack-start-manifest_v-DQjMcFpU.js +1 -0
- package/dist/app/server/assets/{_zyzz__2Fhome_2Frunner_2Fwork_2Fid_2Fid_2Fsrc_2Fapp_2Froutes_2F_5B__5D.flows.tsx-Drf_Iqhc.js → _zyzz__2Fhome_2Frunner_2Fwork_2Fid_2Fid_2Fsrc_2Fapp_2Froutes_2F_5B__5D.flows.tsx-EmCsnNUQ.js} +2 -2
- package/dist/app/server/assets/{_zyzz__2Fhome_2Frunner_2Fwork_2Fid_2Fid_2Fsrc_2Fapp_2Froutes_2F_5B__5D.flows.tsx-Drf_Iqhc.js.map → _zyzz__2Fhome_2Frunner_2Fwork_2Fid_2Fid_2Fsrc_2Fapp_2Froutes_2F_5B__5D.flows.tsx-EmCsnNUQ.js.map} +1 -1
- package/dist/app/server/assets/{accessKey-CxNqjouy.js → accessKey-DlBe71R7.js} +4 -4
- package/dist/app/server/assets/{accessKey-CxNqjouy.js.map → accessKey-DlBe71R7.js.map} +1 -1
- package/dist/app/server/assets/{authorize-D_5EG0WN.js → authorize-C3nY01zc.js} +2 -2
- package/dist/app/server/assets/{authorize-D_5EG0WN.js.map → authorize-C3nY01zc.js.map} +1 -1
- package/dist/app/server/assets/{authorize-pZETCSux.js → authorize-C9tfZ34z.js} +2 -2
- package/dist/app/server/assets/{authorize-pZETCSux.js.map → authorize-C9tfZ34z.js.map} +1 -1
- package/dist/app/server/assets/{authorize-DXYo-K2n-08rIhXFT.js → authorize-DXYo-K2n-Bc8o9t1x.js} +2 -2
- package/dist/app/server/assets/{authorize-DXYo-K2n-08rIhXFT.js.map → authorize-DXYo-K2n-Bc8o9t1x.js.map} +1 -1
- package/dist/app/server/assets/{choose-account-BOPrs9l7.js → choose-account-DNfcLweT.js} +2 -2
- package/dist/app/server/assets/{choose-account-BOPrs9l7.js.map → choose-account-DNfcLweT.js.map} +1 -1
- package/dist/app/server/assets/{choose-account-MDW4jp29.js → choose-account-Lq0qFqBr.js} +2 -2
- package/dist/app/server/assets/{choose-account-MDW4jp29.js.map → choose-account-Lq0qFqBr.js.map} +1 -1
- package/dist/app/server/assets/{core-Dxqe4Tzf.js → core-Ci_AVqAl.js} +2 -2
- package/dist/app/server/assets/{core-Dxqe4Tzf.js.map → core-Ci_AVqAl.js.map} +1 -1
- package/dist/app/server/assets/default-u_dwuiYb-D3URkhAV.js +2 -0
- package/dist/app/server/assets/{default-u_dwuiYb-BZX-cEte.js.map → default-u_dwuiYb-D3URkhAV.js.map} +1 -1
- package/dist/app/server/assets/{deposit-AgLrOoA3.js → deposit-Ch8VqCtG.js} +2 -2
- package/dist/app/server/assets/{deposit-AgLrOoA3.js.map → deposit-Ch8VqCtG.js.map} +1 -1
- package/dist/app/server/assets/{deposit-Cjt69KmJ.js → deposit-xQrouL3f.js} +2 -2
- package/dist/app/server/assets/{deposit-Cjt69KmJ.js.map → deposit-xQrouL3f.js.map} +1 -1
- package/dist/app/server/assets/{device-TEgIth9V.js → device-BAsgIC7D.js} +2 -2
- package/dist/app/server/assets/{device-TEgIth9V.js.map → device-BAsgIC7D.js.map} +1 -1
- package/dist/app/server/assets/{device-DO_RH0Or.js → device-BV99aHMG.js} +2 -2
- package/dist/app/server/assets/{device-DO_RH0Or.js.map → device-BV99aHMG.js.map} +1 -1
- package/dist/app/server/assets/dist-BhIyCFP8.js +1 -0
- package/dist/app/server/assets/{dist-C9wLcfH8.js → dist-C-Rzwa6V.js} +2 -2
- package/dist/app/server/assets/{dist-C9wLcfH8.js.map → dist-C-Rzwa6V.js.map} +1 -1
- package/dist/app/server/assets/{dist-SBl0rlY-.js → dist-CJN10pUl.js} +2 -2
- package/dist/app/server/assets/{dist-SBl0rlY-.js.map → dist-CJN10pUl.js.map} +1 -1
- package/dist/app/server/assets/{effect-QlVUlMFu-aB2jdYth.js → effect-QlVUlMFu-svPBY1dH.js} +2 -2
- package/dist/app/server/assets/{effect-QlVUlMFu-aB2jdYth.js.map → effect-QlVUlMFu-svPBY1dH.js.map} +1 -1
- package/dist/app/server/assets/{error-BDVg4EUJ.js → error-CHeOE_lh.js} +2 -2
- package/dist/app/server/assets/{error-BDVg4EUJ.js.map → error-CHeOE_lh.js.map} +1 -1
- package/dist/app/server/assets/{error-Yg6jqry-.js → error-PecJkSHO.js} +2 -2
- package/dist/app/server/assets/{error-Yg6jqry-.js.map → error-PecJkSHO.js.map} +1 -1
- package/dist/app/server/assets/{factory-BPswjDEW.js → factory-Bs0vLkBr.js} +2 -2
- package/dist/app/server/assets/{factory-BPswjDEW.js.map → factory-Bs0vLkBr.js.map} +1 -1
- package/dist/app/server/assets/getPseudoElementBounds-DIn3v91B.js +2 -0
- package/dist/app/server/assets/{getPseudoElementBounds-BdqJhx6M.js.map → getPseudoElementBounds-DIn3v91B.js.map} +1 -1
- package/dist/app/server/assets/{index-CLddUTqr-Bavq3Qss.js → index-CLddUTqr-CmUyZRXY.js} +2 -2
- package/dist/app/server/assets/{index-CLddUTqr-Bavq3Qss.js.map → index-CLddUTqr-CmUyZRXY.js.map} +1 -1
- package/dist/app/server/assets/{index-DZEfthgZ--TkOBRwP.js → index-DZEfthgZ-Bkf7F_aP.js} +2 -2
- package/dist/app/server/assets/{index-DZEfthgZ--TkOBRwP.js.map → index-DZEfthgZ-Bkf7F_aP.js.map} +1 -1
- package/dist/app/server/assets/{kysely-adapter-BVql8na5.js → kysely-adapter-DhztbDJz.js} +1 -1
- package/dist/app/server/assets/{lazyRouteComponent-BXabRVTE.js → lazyRouteComponent-DOSE663E.js} +2 -2
- package/dist/app/server/assets/{lazyRouteComponent-BXabRVTE.js.map → lazyRouteComponent-DOSE663E.js.map} +1 -1
- package/dist/app/server/assets/{login-BR3Vh4Jw.js → login-6K4ND-gN.js} +2 -2
- package/dist/app/server/assets/{login-BR3Vh4Jw.js.map → login-6K4ND-gN.js.map} +1 -1
- package/dist/app/server/assets/{login-DtRzF4FQ.js → login-CGq85v-9.js} +2 -2
- package/dist/app/server/assets/{login-DtRzF4FQ.js.map → login-CGq85v-9.js.map} +1 -1
- package/dist/app/server/assets/{matchContext-Cuq8aYzA.js → matchContext-BHbopc_c.js} +2 -2
- package/dist/app/server/assets/{matchContext-Cuq8aYzA.js.map → matchContext-BHbopc_c.js.map} +1 -1
- package/dist/app/server/assets/{mutation-BseSOMT8.js → mutation-D0MCZKRo.js} +2 -2
- package/dist/app/server/assets/{mutation-BseSOMT8.js.map → mutation-D0MCZKRo.js.map} +1 -1
- package/dist/app/server/assets/pathUSD-BMh6ajrW.css +1 -0
- package/dist/app/server/assets/pathUSD-DqRWfB70.js +2 -0
- package/dist/app/server/assets/pathUSD-DqRWfB70.js.map +1 -0
- package/dist/app/server/assets/{query-lzX3sTGO.js → query-BfAOtP6H.js} +2 -2
- package/dist/app/server/assets/{query-lzX3sTGO.js.map → query-BfAOtP6H.js.map} +1 -1
- package/dist/app/server/assets/react-dom-BbDIEd_j.css +1 -0
- package/dist/app/server/assets/{react-dom-DtwtyQPy.js → react-dom-pSpaua7D.js} +1 -1
- package/dist/app/server/assets/{react-dom-DtwtyQPy.js.map → react-dom-pSpaua7D.js.map} +1 -1
- package/dist/app/server/assets/{removable-HVB1MGzn.js → removable-BIS_RRBc.js} +2 -2
- package/dist/app/server/assets/{removable-HVB1MGzn.js.map → removable-BIS_RRBc.js.map} +1 -1
- package/dist/app/server/assets/{resolveError-DSqzEjUE.js → resolveError-DPXmbkOB.js} +2 -2
- package/dist/app/server/assets/{resolveError-DSqzEjUE.js.map → resolveError-DPXmbkOB.js.map} +1 -1
- package/dist/app/server/assets/{router-uhTdTHZE.js → router-nrTsbXpb.js} +2 -2
- package/dist/app/server/assets/router-nrTsbXpb.js.map +1 -0
- package/dist/app/server/assets/routes-BgiIzrOt.css +1 -0
- package/dist/app/server/assets/{routes-CeDOMpI-.js → routes-ClVSwEtU.js} +2 -2
- package/dist/app/server/assets/{routes-CeDOMpI-.js.map → routes-ClVSwEtU.js.map} +1 -1
- package/dist/app/server/assets/routes-DM3C9lXZ.js +2 -0
- package/dist/app/server/assets/routes-DM3C9lXZ.js.map +1 -0
- package/dist/app/server/assets/{schemas-fV27l6kI.js → schemas-CFw4XgfH.js} +2 -2
- package/dist/app/server/assets/{schemas-fV27l6kI.js.map → schemas-CFw4XgfH.js.map} +1 -1
- package/dist/app/server/assets/{secp256k1-5tp4GQIt.js → secp256k1-BmATpikU.js} +2 -2
- package/dist/app/server/assets/{secp256k1-5tp4GQIt.js.map → secp256k1-BmATpikU.js.map} +1 -1
- package/dist/app/server/assets/{sury-CWZTCd75-BPXRo6iz.js → sury-CWZTCd75-B2_9nmQ-.js} +2 -2
- package/dist/app/server/assets/{sury-CWZTCd75-BPXRo6iz.js.map → sury-CWZTCd75-B2_9nmQ-.js.map} +1 -1
- package/dist/app/server/assets/{suspense-CVCU9Kbi.js → suspense-gv0MCXZ8.js} +2 -2
- package/dist/app/server/assets/{suspense-CVCU9Kbi.js.map → suspense-gv0MCXZ8.js.map} +1 -1
- package/dist/app/server/assets/{useNavigate-D9psnozp.js → useNavigate-gn6-bYOz.js} +2 -2
- package/dist/app/server/assets/{useNavigate-D9psnozp.js.map → useNavigate-gn6-bYOz.js.map} +1 -1
- package/dist/app/server/assets/useRegisterFieldControl-DMeVvRtG.js +2 -0
- package/dist/app/server/assets/{useRegisterFieldControl-UOdCWAKS.js.map → useRegisterFieldControl-DMeVvRtG.js.map} +1 -1
- package/dist/app/server/assets/{utils-Dst7Jy9U.js → utils-CJnLBS6t.js} +2 -2
- package/dist/app/server/assets/{utils-Dst7Jy9U.js.map → utils-CJnLBS6t.js.map} +1 -1
- package/dist/app/server/assets/{valibot--1zFm7rT-LDsJca69.js → valibot--1zFm7rT-DAm9l6Yd.js} +2 -2
- package/dist/app/server/assets/{valibot--1zFm7rT-LDsJca69.js.map → valibot--1zFm7rT-DAm9l6Yd.js.map} +1 -1
- package/dist/app/server/assets/{valibot-D_HTw1Gn-DY-tIZ72.js → valibot-D_HTw1Gn-B_uu9X0a.js} +2 -2
- package/dist/app/server/assets/{valibot-D_HTw1Gn-DY-tIZ72.js.map → valibot-D_HTw1Gn-B_uu9X0a.js.map} +1 -1
- package/dist/app/server/assets/{zod-Bwrt9trS-Cf4c1iF8.js → zod-Bwrt9trS-DDq3sdx6.js} +2 -2
- package/dist/app/server/assets/{zod-Bwrt9trS-Cf4c1iF8.js.map → zod-Bwrt9trS-DDq3sdx6.js.map} +1 -1
- package/dist/app/server/assets/{zod-DSgpEGAE-IkLVlUaZ.js → zod-DSgpEGAE-Dzlub58Z.js} +2 -2
- package/dist/app/server/assets/{zod-DSgpEGAE-IkLVlUaZ.js.map → zod-DSgpEGAE-Dzlub58Z.js.map} +1 -1
- package/dist/app/server/assets/zyzz-6R2K52xP.css +1 -0
- package/dist/app/server/assets/{zyzz.config-DYq-16_0.js → zyzz.config-CW977vYL.js} +3 -3
- package/dist/app/server/assets/zyzz.config-CW977vYL.js.map +1 -0
- package/dist/app/server/index.js +3 -3
- package/package.json +1 -1
- package/dist/app/client/assets/Account-DiXbQ7gq.css +0 -1
- package/dist/app/client/assets/Account-JXT-dSA8.js +0 -1
- package/dist/app/client/assets/Amount-C5uw89Ge.js +0 -1
- package/dist/app/client/assets/Amount-Ck6sPRDT.css +0 -1
- package/dist/app/client/assets/Callout-DE0CvxbE.css +0 -1
- package/dist/app/client/assets/Callout-D_dLrptL.js +0 -1
- package/dist/app/client/assets/CodeInput-CXbj-o_B.js +0 -1
- package/dist/app/client/assets/CodeInput-C_clyqA2.css +0 -1
- package/dist/app/client/assets/Deposit-CAkrtNYZ.css +0 -1
- package/dist/app/client/assets/Deposit-Cv7IQBO0.js +0 -1
- package/dist/app/client/assets/DevTools-CnWAfvO2.js +0 -1
- package/dist/app/client/assets/DevTools-DLG9O0YT.css +0 -1
- package/dist/app/client/assets/Grant-B6bmC4rh.css +0 -1
- package/dist/app/client/assets/Hex-BR5nHbFT.js +0 -10
- package/dist/app/client/assets/Hex-CriDfcNg.css +0 -1
- package/dist/app/client/assets/IconChip-BVqRSUpG.css +0 -1
- package/dist/app/client/assets/IconChip-ClKbN-8M.js +0 -1
- package/dist/app/client/assets/InputGroup-4QFqa-T2.css +0 -1
- package/dist/app/client/assets/InputGroup-CEI6gBId.js +0 -1
- package/dist/app/client/assets/Inter-Variable-DiVDrmQJ.woff2 +0 -0
- package/dist/app/client/assets/Loader-CtzJeMeX.js +0 -1
- package/dist/app/client/assets/Rows-DgpXomcK.js +0 -1
- package/dist/app/client/assets/Rows-oSTffNii.css +0 -1
- package/dist/app/client/assets/SignIn-CjGB1wk9.js +0 -1
- package/dist/app/client/assets/SignIn-Dz1G9XNf.css +0 -1
- package/dist/app/client/assets/Stack-90EFgtQe.js +0 -1
- package/dist/app/client/assets/Stack-CKvHhjzW.css +0 -1
- package/dist/app/client/assets/ToolbarRootContext-dnisUzmP.js +0 -1
- package/dist/app/client/assets/Tooltip-9TI_rDvs.css +0 -1
- package/dist/app/client/assets/Tooltip-C3H_9mgz.js +0 -1
- package/dist/app/client/assets/___-7yUISk6H.css +0 -1
- package/dist/app/client/assets/___.flows-DwoJPGMf.js +0 -5
- package/dist/app/client/assets/index-BXTO-7dr.css +0 -1
- package/dist/app/client/assets/index-CkKM7xlX.js +0 -13
- package/dist/app/client/assets/pathUSD-DY3ycgMd.js +0 -1
- package/dist/app/client/assets/pathUSD-Dn2NadYx.css +0 -1
- package/dist/app/client/assets/useNavigate-DsbQ8bTr.js +0 -1
- package/dist/app/client/assets/zyzz-MTPfhrAv.css +0 -1
- package/dist/app/client/assets/zyzz.config-ENEfJGzk.js +0 -2
- package/dist/app/server/assets/Account-BqjoGTzm.js +0 -2
- package/dist/app/server/assets/Account-BqjoGTzm.js.map +0 -1
- package/dist/app/server/assets/Account-DiXbQ7gq.css +0 -1
- package/dist/app/server/assets/Amount-Ck6sPRDT.css +0 -1
- package/dist/app/server/assets/Amount-CmypanEu.js +0 -2
- package/dist/app/server/assets/Amount-CmypanEu.js.map +0 -1
- package/dist/app/server/assets/Callout-DE0CvxbE.css +0 -1
- package/dist/app/server/assets/Callout-_eafmkya.js +0 -2
- package/dist/app/server/assets/Callout-_eafmkya.js.map +0 -1
- package/dist/app/server/assets/CodeInput-CRxIP0KX.js +0 -2
- package/dist/app/server/assets/CodeInput-CRxIP0KX.js.map +0 -1
- package/dist/app/server/assets/CodeInput-C_clyqA2.css +0 -1
- package/dist/app/server/assets/Deposit-CAkrtNYZ.css +0 -1
- package/dist/app/server/assets/Deposit-CiWidviP.js +0 -2
- package/dist/app/server/assets/Deposit-CiWidviP.js.map +0 -1
- package/dist/app/server/assets/DevTools-BJcNvNjx.js +0 -2
- package/dist/app/server/assets/DevTools-BJcNvNjx.js.map +0 -1
- package/dist/app/server/assets/DevTools-DLG9O0YT.css +0 -1
- package/dist/app/server/assets/Grant-B6bmC4rh.css +0 -1
- package/dist/app/server/assets/Grant-N8RQy7lZ.js +0 -2
- package/dist/app/server/assets/Grant-N8RQy7lZ.js.map +0 -1
- package/dist/app/server/assets/Hex-CriDfcNg.css +0 -1
- package/dist/app/server/assets/Hex-vNjxlXvk.js +0 -11
- package/dist/app/server/assets/Hex-vNjxlXvk.js.map +0 -1
- package/dist/app/server/assets/IconChip-BQdjH8i6.js +0 -2
- package/dist/app/server/assets/IconChip-BQdjH8i6.js.map +0 -1
- package/dist/app/server/assets/IconChip-BVqRSUpG.css +0 -1
- package/dist/app/server/assets/InputGroup-4QFqa-T2.css +0 -1
- package/dist/app/server/assets/InputGroup-BhUIBTgI.js +0 -2
- package/dist/app/server/assets/InputGroup-BhUIBTgI.js.map +0 -1
- package/dist/app/server/assets/Inter-Variable-DiVDrmQJ.woff2 +0 -0
- package/dist/app/server/assets/Loader-Ivf5dWFl.js +0 -2
- package/dist/app/server/assets/PopoverPopup-D98JOZVe.js +0 -2
- package/dist/app/server/assets/Rows-BuyZXkPa.js +0 -2
- package/dist/app/server/assets/Rows-BuyZXkPa.js.map +0 -1
- package/dist/app/server/assets/Rows-oSTffNii.css +0 -1
- package/dist/app/server/assets/SignIn-D7jl6zbw.js +0 -2
- package/dist/app/server/assets/SignIn-D7jl6zbw.js.map +0 -1
- package/dist/app/server/assets/SignIn-Dz1G9XNf.css +0 -1
- package/dist/app/server/assets/Stack-C3ecM7vx.js +0 -2
- package/dist/app/server/assets/Stack-C3ecM7vx.js.map +0 -1
- package/dist/app/server/assets/Stack-CKvHhjzW.css +0 -1
- package/dist/app/server/assets/ToolbarRootContext-BCmWBQ7n.js +0 -2
- package/dist/app/server/assets/Tooltip-9TI_rDvs.css +0 -1
- package/dist/app/server/assets/Tooltip-D3NLigmC.js +0 -2
- package/dist/app/server/assets/Tooltip-D3NLigmC.js.map +0 -1
- package/dist/app/server/assets/___-7yUISk6H.css +0 -1
- package/dist/app/server/assets/___.flows-DRvHKxBR.js +0 -6
- package/dist/app/server/assets/___.flows-DRvHKxBR.js.map +0 -1
- package/dist/app/server/assets/_tanstack-start-manifest_v-BIobT_5u.js +0 -1
- package/dist/app/server/assets/default-u_dwuiYb-BZX-cEte.js +0 -2
- package/dist/app/server/assets/dist-k0uWU-Rh.js +0 -1
- package/dist/app/server/assets/getPseudoElementBounds-BdqJhx6M.js +0 -2
- package/dist/app/server/assets/pathUSD-CVs71wGH.js +0 -2
- package/dist/app/server/assets/pathUSD-CVs71wGH.js.map +0 -1
- package/dist/app/server/assets/pathUSD-Dn2NadYx.css +0 -1
- package/dist/app/server/assets/react-dom-bupMaze0.css +0 -1
- package/dist/app/server/assets/router-uhTdTHZE.js.map +0 -1
- package/dist/app/server/assets/routes-ZveUsG66.js +0 -2
- package/dist/app/server/assets/routes-ZveUsG66.js.map +0 -1
- package/dist/app/server/assets/routes-dxKeFXjL.css +0 -1
- package/dist/app/server/assets/useRegisterFieldControl-UOdCWAKS.js +0 -2
- package/dist/app/server/assets/zyzz-DuvTIyXM.css +0 -1
- package/dist/app/server/assets/zyzz.config-DYq-16_0.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{E as e,j as t,s as n}from"./react-dom-DtwtyQPy.js";import{i as r,t as i}from"./Stack-C3ecM7vx.js";import{r as a}from"./zyzz.config-DYq-16_0.js";import{t as o}from"./Tooltip-D3NLigmC.js";import{n as s,t as c}from"./Grant-N8RQy7lZ.js";import{t as l}from"./CodeInput-CRxIP0KX.js";import{t as u}from"./Check-BwwQ6kDn.js";import{t as d}from"./Callout-_eafmkya.js";import{t as f}from"./IconChip-BQdjH8i6.js";import{a as p}from"./pathUSD-CVs71wGH.js";import{t as m}from"./Globe-C6rnzTY0.js";var h=n();function g(e){return(0,h.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,h.jsx)(`path`,{d:`M8.00098 4.66602C8.27653 4.66645 8.50062 4.89045 8.50098 5.16602V7.79297L10.1875 9.47949C10.3825 9.67462 10.3823 9.99125 10.1875 10.1865C9.99226 10.3818 9.67574 10.3817 9.48047 10.1865L7.64746 8.35352C7.55377 8.25982 7.50106 8.13249 7.50098 8V5.16602C7.50133 4.89018 7.72505 4.66602 8.00098 4.66602Z`,fill:`currentColor`}),(0,h.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8.00098 1.33301C11.6824 1.33345 14.6668 4.31853 14.667 8C14.6668 11.6815 11.6824 14.6656 8.00098 14.666C4.31919 14.666 1.33318 11.6817 1.33301 8C1.33319 4.31826 4.31919 1.33301 8.00098 1.33301ZM8.00098 2.33301C4.87148 2.33301 2.33417 4.87054 2.33398 8C2.33416 11.1294 4.87147 13.666 8.00098 13.666C11.1301 13.6656 13.6668 11.1292 13.667 8C13.6668 4.87082 11.1301 2.33345 8.00098 2.33301Z`,fill:`currentColor`})]})}function _(e){return(0,h.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,h.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M12.834 2C13.4779 2.00044 14 2.52293 14 3.16699V10.667H14.834C15.1098 10.6674 15.334 10.8911 15.334 11.167V12.833C15.334 13.4772 14.8111 13.9997 14.167 14H1.83398C1.18965 14 0.666016 13.4773 0.666016 12.833V11.167C0.666016 10.8909 0.89085 10.667 1.16699 10.667H2V3.16699C2 2.52266 2.52266 2 3.16699 2H12.834ZM1.66699 12.833C1.66699 12.9251 1.74194 13 1.83398 13H14.167C14.2588 12.9997 14.334 12.9249 14.334 12.833V11.667H1.66699V12.833ZM3.16699 3C3.07494 3 3 3.07494 3 3.16699V10.667H13V3.16699C13 3.07522 12.9257 3.00044 12.834 3H3.16699Z`,fill:`currentColor`})})}function v(e){return(0,h.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,h.jsx)(`path`,{d:`M10.0693 8.80616C11.3199 8.97992 12.4268 9.31057 13.2363 9.76222C14.0167 10.1977 14.6668 10.8347 14.667 11.6665C14.667 12.1908 14.4026 12.6417 14.0283 13.0005C13.6553 13.358 13.1419 13.6575 12.5488 13.898C11.3599 14.3799 9.75149 14.6664 8.00098 14.6665C6.25029 14.6665 4.64122 14.3799 3.45215 13.898C2.8591 13.6575 2.34566 13.3579 1.97266 13.0005C1.59839 12.6417 1.33303 12.1908 1.33301 11.6665C1.33316 10.8345 1.98414 10.1978 2.76465 9.76222C3.5742 9.31057 4.68102 8.97991 5.93164 8.80616C6.20498 8.76845 6.45812 8.95956 6.49609 9.23292C6.53371 9.50605 6.3424 9.75821 6.06934 9.7964C4.89651 9.95932 3.9196 10.2628 3.25195 10.6353C2.55551 11.0239 2.33415 11.4018 2.33398 11.6665C2.33401 11.8324 2.41535 12.0395 2.66504 12.2788C2.9161 12.5193 3.30576 12.7594 3.82812 12.9712C4.87088 13.3938 6.34642 13.6665 8.00098 13.6665C9.65529 13.6664 11.1303 13.3938 12.1729 12.9712C12.6953 12.7593 13.0859 12.5194 13.3369 12.2788C13.5863 12.0397 13.667 11.8323 13.667 11.6665C13.6668 11.4018 13.4452 11.0238 12.749 10.6353C12.0814 10.2628 11.1043 9.95934 9.93164 9.7964C9.65837 9.75831 9.4681 9.50621 9.50586 9.23292C9.54385 8.95943 9.79585 8.76822 10.0693 8.80616Z`,fill:`currentColor`}),(0,h.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M6.11426 2.11475C7.15559 1.07435 8.84294 1.07287 9.88477 2.11475C10.9263 3.15634 10.9267 4.84526 9.88477 5.88624C9.49213 6.2783 9.00732 6.52222 8.5 6.61866V11.4995C8.5 11.7757 8.27614 11.9995 8 11.9995C7.72386 11.9995 7.5 11.7757 7.5 11.4995V6.61866C6.99206 6.52234 6.50626 6.27863 6.11328 5.88526C5.07366 4.84407 5.07276 3.15585 6.11426 2.11475ZM9.17773 2.82179C8.52695 2.17094 7.47264 2.17121 6.82129 2.82179C6.17108 3.4718 6.17058 4.52781 6.82129 5.17921C7.47111 5.82948 8.52635 5.82864 9.17773 5.17823C9.82854 4.52804 9.82894 3.47304 9.17773 2.82179Z`,fill:`currentColor`})]})}var y=t(e(),1);function b(e){let t=e.heading??`h1`,n=(0,y.useId)(),b=e.request?.app,w=e.refusal??e.request?.key_authorization?.refusal,T=e.status===`denied`?`Denied. The device was not signed in.`:e.request?b?(0,h.jsxs)(h.Fragment,{children:[`Make sure this code matches the one on your device, then approve to grant `,(0,h.jsx)(`strong`,{children:b.name}),` `,(0,h.jsxs)(o.Root,{children:[(0,h.jsx)(o.Trigger,{delay:150,render:(0,h.jsx)(s,{className:C.verified?`z_tempo_2d_id-tpVtLR2z z_tempo_2d_id-tpVtLR1o z_tempo_2d_id-tpVtLR30 z_tempo_2d_id-tpVtLR31 z_tempo_2d_id-tpVtLR1p z_tempo_2d_id-tpVtLR32 z_tempo_2d_id-tpVtLR33 z_tempo_2d_id-tpVtLR34`:C.verified().className,"aria-label":`Verified`,role:`img`,tabIndex:0})}),(0,h.jsx)(o.Popup,{children:`Verified app`})]}),` `,`access to your account.`]}):(0,h.jsxs)(h.Fragment,{children:[`Make sure this code matches the one on your device, then approve to grant`,` `,(0,h.jsxs)(o.Root,{children:[(0,h.jsx)(o.Trigger,{delay:150,render:(0,h.jsxs)(`span`,{className:C.unverified?`z_tempo_2d_id-tpVtLR2o z_tempo_2d_id-tpVtLRi z_tempo_2d_id-tpVtLR2p z_tempo_2d_id-tpVtLR2q z_tempo_2d_id-tpVtLR2r z_tempo_2d_id-tpVtLR2s z_tempo_2d_id-tpVtLR2t z_tempo_2d_id-tpVtLR2u z_tempo_2d_id-tpVtLR2v z_tempo_2d_id-tpVtLR2w z_tempo_2d_id-tpVtLR2x z_tempo_2d_id-3w2jki4`:C.unverified().className,tabIndex:0,children:[(0,h.jsx)(r,{className:C.warning?`z_tempo_2d_id-tpVtLR2z z_tempo_2d_id-tpVtLR1o z_tempo_2d_id-tpVtLR35 z_tempo_2d_id-tpVtLR31 z_tempo_2d_id-tpVtLR1p`:C.warning().className}),`an unverified app`]})}),(0,h.jsx)(o.Popup,{children:`Unverified app`})]}),` `,`access to your account.`]}):`Enter the code shown in your terminal.`;return e.status===`approved`?(0,h.jsx)(i,{className:C.column?`z_tempo_2d_id-tpVtLRx z_tempo_2d_id-tpVtLRy`:C.column().className,gap:`32`,children:(0,h.jsxs)(i,{className:C.header?`z_tempo_2d_id-tpVtLR1k`:C.header().className,align:`center`,gap:`8`,render:(0,h.jsx)(`header`,{}),children:[(0,h.jsx)(f,{className:C.avatar?`z_tempo_2d_id-tpVtLR0 z_tempo_2d_id-tpVtLR1 z_tempo_2d_id-tpVtLR2 z_tempo_2d_id-tpVtLR3 z_tempo_2d_id-tpVtLR4 z_tempo_2d_id-tpVtLR5 z_tempo_2d_id-tpVtLR6`:C.avatar().className,"aria-hidden":!0,children:(0,h.jsx)(u,{})}),(0,h.jsx)(t,{className:C.title?`z_tempo_2d_id-tpVtLR2i z_tempo_2d_id-tpVtLR2j z_tempo_2d_id-tpVtLR2k z_tempo_2d_id-tpVtLR2l z_tempo_2d_id-tpVtLR2m z_tempo_2d_id-tpVtLR2n`:C.title().className,children:`Authorization successful`}),(0,h.jsxs)(p,{className:C.success?`z_tempo_2d_id-tpVtLR2d z_tempo_2d_id-tpVtLR2e z_tempo_2d_id-tpVtLR2f z_tempo_2d_id-tpVtLR2g z_tempo_2d_id-tpVtLR2h`:C.success().className,"aria-live":`polite`,gap:`8`,justify:`center`,render:(0,h.jsx)(`p`,{}),role:`status`,children:[(0,h.jsx)(`span`,{className:C.check?`z_tempo_2d_id-tpVtLRo z_tempo_2d_id-tpVtLRp z_tempo_2d_id-tpVtLRq z_tempo_2d_id-tpVtLRr z_tempo_2d_id-tpVtLRs z_tempo_2d_id-3w2jki9 z_tempo_2d_id-tpVtLRu z_tempo_2d_id-tpVtLRv z_tempo_2d_id-tpVtLRw`:C.check().className,children:(0,h.jsx)(u,{})}),`You can close this tab.`]})]})}):(0,h.jsxs)(i,{className:C.column?`z_tempo_2d_id-tpVtLRx z_tempo_2d_id-tpVtLRy`:C.column().className,gap:`32`,children:[(0,h.jsxs)(i,{className:C.header?`z_tempo_2d_id-tpVtLR1k`:C.header().className,align:`center`,gap:`8`,render:(0,h.jsx)(`header`,{}),children:[(0,h.jsx)(f,{className:C.avatar?`z_tempo_2d_id-tpVtLR0 z_tempo_2d_id-tpVtLR1 z_tempo_2d_id-tpVtLR2 z_tempo_2d_id-tpVtLR3 z_tempo_2d_id-tpVtLR4 z_tempo_2d_id-tpVtLR5 z_tempo_2d_id-tpVtLR6`:C.avatar().className,"data-verified":!e.request||!!b,children:!e.request||b?(0,h.jsx)(_,{}):(0,h.jsx)(r,{})}),(0,h.jsx)(t,{className:C.title?`z_tempo_2d_id-tpVtLR2i z_tempo_2d_id-tpVtLR2j z_tempo_2d_id-tpVtLR2k z_tempo_2d_id-tpVtLR2l z_tempo_2d_id-tpVtLR2m z_tempo_2d_id-tpVtLR2n`:C.title().className,children:`Authorize a device`}),(0,h.jsx)(`p`,{className:C.description?`z_tempo_2d_id-tpVtLRz z_tempo_2d_id-tpVtLR10 z_tempo_2d_id-tpVtLR11 z_tempo_2d_id-tpVtLR12 z_tempo_2d_id-tpVtLR13 z_tempo_2d_id-tpVtLR14 z_tempo_2d_id-tpVtLR15 z_tempo_2d_id-tpVtLR16 z_tempo_2d_id-tpVtLR17 z_tempo_2d_id-tpVtLR18 z_tempo_2d_id-tpVtLR19 z_tempo_2d_id-tpVtLR1a z_tempo_2d_id-tpVtLR1b z_tempo_2d_id-tpVtLR1c`:C.description().className,children:T})]}),e.status===`denied`?null:e.request?(0,h.jsxs)(i,{gap:`16`,children:[(0,h.jsx)(l,{"aria-label":`Code`,defaultValue:e.request.user_code,length:8,readOnly:!0,separator:4,size:`medium`},e.request.user_code),e.request.key_authorization?(0,h.jsx)(c,{heading:e.heading===`h4`?`h5`:`h2`,keyAuthorization:e.request.key_authorization}):null,e.request.challenge?(0,h.jsxs)(`div`,{className:C.challenge?`z_tempo_2d_id-tpVtLR7 z_tempo_2d_id-tpVtLR8 z_tempo_2d_id-tpVtLR9 z_tempo_2d_id-tpVtLRa z_tempo_2d_id-tpVtLRb`:C.challenge().className,role:`note`,children:[(0,h.jsx)(`p`,{className:C.challengeTitle?`z_tempo_2d_id-tpVtLRi z_tempo_2d_id-tpVtLRj z_tempo_2d_id-tpVtLRk z_tempo_2d_id-tpVtLRl z_tempo_2d_id-tpVtLRm z_tempo_2d_id-tpVtLRn`:C.challengeTitle().className,children:`This sign-in also signs a message`}),(0,h.jsx)(`p`,{className:C.challengeText?`z_tempo_2d_id-nr-Vm71w z_tempo_2d_id-tpVtLRd z_tempo_2d_id-tpVtLRe z_tempo_2d_id-tpVtLRf z_tempo_2d_id-tpVtLRg z_tempo_2d_id-tpVtLRh`:C.challengeText().className,children:`Approve only if you started this sign-in in your own terminal and expect this message.`}),(0,h.jsx)(`pre`,{className:C.message?`z_tempo_2d_id-tpVtLR1j z_tempo_2d_id-nr-Vm71q z_tempo_2d_id-tpVtLR1r z_tempo_2d_id-tpVtLR1s z_tempo_2d_id-tpVtLR1t z_tempo_2d_id-tpVtLR1u z_tempo_2d_id-tpVtLR1v z_tempo_2d_id-tpVtLR1w`:C.message().className,children:e.request.challenge})]}):null,(0,h.jsxs)(`dl`,{className:C.details?`z_tempo_2d_id-tpVtLR1i z_tempo_2d_id-tpVtLR8 z_tempo_2d_id-tpVtLR9 z_tempo_2d_id-tpVtLRa z_tempo_2d_id-tpVtLR1j z_tempo_2d_id-tpVtLRb z_tempo_2d_id-tpVtLRd z_tempo_2d_id-tpVtLRe z_tempo_2d_id-tpVtLRf z_tempo_2d_id-tpVtLRg z_tempo_2d_id-tpVtLRh`:C.details().className,children:[e.request.device?(0,h.jsxs)(p,{className:C.row?`z_tempo_2d_id-tpVtLR2a z_tempo_2d_id-tpVtLR2b`:C.row().className,gap:`12`,children:[(0,h.jsx)(`dt`,{children:(0,h.jsx)(_,{className:C.icon?`z_tempo_2d_id-tpVtLR1l z_tempo_2d_id-tpVtLR1m z_tempo_2d_id-tpVtLR1n z_tempo_2d_id-tpVtLR1o z_tempo_2d_id-tpVtLR1p`:C.icon().className,"aria-label":`Device name`,role:`img`})}),(0,h.jsxs)(`dd`,{children:[(0,h.jsx)(`bdi`,{className:C.device?`z_tempo_2d_id-tpVtLR1d z_tempo_2d_id-tpVtLR1e z_tempo_2d_id-tpVtLR1f z_tempo_2d_id-tpVtLR1g z_tempo_2d_id-tpVtLR1h`:C.device().className,children:e.request.device.slice(0,64)}),` `,(0,h.jsx)(`span`,{className:C.source?`z_tempo_2d_id-tpVtLR2c`:C.source().className,children:`(as the device reports it)`})]})]}):null,e.request.location?(0,h.jsxs)(p,{className:C.row?`z_tempo_2d_id-tpVtLR2a z_tempo_2d_id-tpVtLR2b`:C.row().className,gap:`12`,children:[(0,h.jsx)(`dt`,{children:(0,h.jsx)(v,{className:C.icon?`z_tempo_2d_id-tpVtLR1l z_tempo_2d_id-tpVtLR1m z_tempo_2d_id-tpVtLR1n z_tempo_2d_id-tpVtLR1o z_tempo_2d_id-tpVtLR1p`:C.icon().className,"aria-label":`Location`,role:`img`})}),(0,h.jsx)(`dd`,{children:e.request.location})]}):null,(0,h.jsxs)(p,{className:C.row?`z_tempo_2d_id-tpVtLR2a z_tempo_2d_id-tpVtLR2b`:C.row().className,gap:`12`,children:[(0,h.jsx)(`dt`,{children:(0,h.jsx)(g,{className:C.icon?`z_tempo_2d_id-tpVtLR1l z_tempo_2d_id-tpVtLR1m z_tempo_2d_id-tpVtLR1n z_tempo_2d_id-tpVtLR1o z_tempo_2d_id-tpVtLR1p`:C.icon().className,"aria-label":`Requested`,role:`img`})}),(0,h.jsxs)(`dd`,{children:[S.format(e.request.created_at*1e3),` UTC`]})]}),e.request.ip?(0,h.jsxs)(p,{className:C.row?`z_tempo_2d_id-tpVtLR2a z_tempo_2d_id-tpVtLR2b`:C.row().className,gap:`12`,children:[(0,h.jsx)(`dt`,{children:(0,h.jsx)(m,{className:C.icon?`z_tempo_2d_id-tpVtLR1l z_tempo_2d_id-tpVtLR1m z_tempo_2d_id-tpVtLR1n z_tempo_2d_id-tpVtLR1o z_tempo_2d_id-tpVtLR1p`:C.icon().className,"aria-label":`IP address`,role:`img`})}),(0,h.jsx)(`dd`,{children:e.request.ip})]}):null]}),(0,h.jsx)(a,{disabled:e.denying||!!w,loading:e.approving,onClick:e.onApprove,children:`Approve`}),(0,h.jsx)(a,{disabled:e.approving,loading:e.denying,onClick:e.onDeny,variant:`text`,children:`Deny`}),e.email?(0,h.jsxs)(`p`,{className:C.note?`z_tempo_2d_id-tpVtLR1x z_tempo_2d_id-tpVtLR1y z_tempo_2d_id-tpVtLR1z z_tempo_2d_id-tpVtLR20 z_tempo_2d_id-tpVtLR21 z_tempo_2d_id-tpVtLR22 z_tempo_2d_id-tpVtLR23 z_tempo_2d_id-tpVtLR24 z_tempo_2d_id-tpVtLR25 z_tempo_2d_id-tpVtLR26 z_tempo_2d_id-tpVtLR27 z_tempo_2d_id-tpVtLR28 z_tempo_2d_id-tpVtLR29`:C.note().className,children:[`Signed in as `,(0,h.jsx)(`strong`,{children:e.email}),`.`]}):null]}):(0,h.jsxs)(i,{gap:`32`,render:(0,h.jsx)(`form`,{onSubmit:e.onSubmitCode}),children:[(0,h.jsx)(l,{"aria-describedby":`${n}-error`,"aria-label":`Code shown in your terminal`,autoComplete:`off`,autoFocus:e.autoFocus,defaultValue:e.code,invalid:e.invalid,length:8,name:`code`,readOnly:e.fetching,required:!0,separator:4,size:`medium`}),(0,h.jsx)(a,{loading:e.fetching,type:`submit`,children:`Continue`})]}),(()=>{let t=e.error??(w?x[w]:void 0);return t?(0,h.jsxs)(d,{id:`${n}-error`,intent:`negative`,children:[(0,h.jsx)(d.Icon,{}),(0,h.jsx)(d.Content,{children:t})]}):null})()]})}var x={foreign_account:`The terminal requests a key for a Tempo Account that you do not hold. Deny the request, and start the sign-in again in the terminal as that account's owner.`,no_account:`You have no Tempo Account for this app yet, so no account can approve the key. Deny the request, create an account, and try again.`,passkey:`This Tempo Account signs with a passkey that this page cannot use. Deny the request, and return to the terminal.`,unavailable:`Tempo ID cannot read your Tempo Account right now. Reload the page in a minute, or deny the request.`,upgrade:`This Tempo Account must upgrade to a configurable wallet on this chain before it approves keys. Deny the request, upgrade the wallet on your account page, and try again.`},S=new Intl.DateTimeFormat(`en-US`,{dateStyle:`medium`,timeStyle:`short`,timeZone:`UTC`}),C;(function(e){e.avatar=1,e.challenge=1,e.challengeText=1,e.challengeTitle=1,e.check=1,e.column=1,e.description=1,e.device=1,e.details=1,e.header=1,e.icon=1,e.message=1,e.note=1,e.row=1,e.source=1,e.success=1,e.title=1,e.unverified=1,e.verified=1,e.warning=1})(C||={});export{b as t};
|
|
2
|
-
//# sourceMappingURL=DeviceApproval-
|
|
1
|
+
import{E as e,j as t,s as n}from"./react-dom-pSpaua7D.js";import{i as r,t as i}from"./Stack-DQMZBUUB.js";import{r as a}from"./zyzz.config-CW977vYL.js";import{t as o}from"./Tooltip-DR3nssae.js";import{n as s,t as c}from"./Grant-BwOC2P94.js";import{t as l}from"./CodeInput-DdkMKOyq.js";import{t as u}from"./Check-CQIa-Y5d.js";import{t as d}from"./Callout-DlcQ5BUo.js";import{t as f}from"./IconChip-Cmufss8d.js";import{a as p}from"./pathUSD-DqRWfB70.js";import{t as m}from"./Globe-BZ_5dGqa.js";var h=n();function g(e){return(0,h.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,h.jsx)(`path`,{d:`M8.00098 4.66602C8.27653 4.66645 8.50062 4.89045 8.50098 5.16602V7.79297L10.1875 9.47949C10.3825 9.67462 10.3823 9.99125 10.1875 10.1865C9.99226 10.3818 9.67574 10.3817 9.48047 10.1865L7.64746 8.35352C7.55377 8.25982 7.50106 8.13249 7.50098 8V5.16602C7.50133 4.89018 7.72505 4.66602 8.00098 4.66602Z`,fill:`currentColor`}),(0,h.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8.00098 1.33301C11.6824 1.33345 14.6668 4.31853 14.667 8C14.6668 11.6815 11.6824 14.6656 8.00098 14.666C4.31919 14.666 1.33318 11.6817 1.33301 8C1.33319 4.31826 4.31919 1.33301 8.00098 1.33301ZM8.00098 2.33301C4.87148 2.33301 2.33417 4.87054 2.33398 8C2.33416 11.1294 4.87147 13.666 8.00098 13.666C11.1301 13.6656 13.6668 11.1292 13.667 8C13.6668 4.87082 11.1301 2.33345 8.00098 2.33301Z`,fill:`currentColor`})]})}function _(e){return(0,h.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,h.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M12.834 2C13.4779 2.00044 14 2.52293 14 3.16699V10.667H14.834C15.1098 10.6674 15.334 10.8911 15.334 11.167V12.833C15.334 13.4772 14.8111 13.9997 14.167 14H1.83398C1.18965 14 0.666016 13.4773 0.666016 12.833V11.167C0.666016 10.8909 0.89085 10.667 1.16699 10.667H2V3.16699C2 2.52266 2.52266 2 3.16699 2H12.834ZM1.66699 12.833C1.66699 12.9251 1.74194 13 1.83398 13H14.167C14.2588 12.9997 14.334 12.9249 14.334 12.833V11.667H1.66699V12.833ZM3.16699 3C3.07494 3 3 3.07494 3 3.16699V10.667H13V3.16699C13 3.07522 12.9257 3.00044 12.834 3H3.16699Z`,fill:`currentColor`})})}function v(e){return(0,h.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,h.jsx)(`path`,{d:`M10.0693 8.80616C11.3199 8.97992 12.4268 9.31057 13.2363 9.76222C14.0167 10.1977 14.6668 10.8347 14.667 11.6665C14.667 12.1908 14.4026 12.6417 14.0283 13.0005C13.6553 13.358 13.1419 13.6575 12.5488 13.898C11.3599 14.3799 9.75149 14.6664 8.00098 14.6665C6.25029 14.6665 4.64122 14.3799 3.45215 13.898C2.8591 13.6575 2.34566 13.3579 1.97266 13.0005C1.59839 12.6417 1.33303 12.1908 1.33301 11.6665C1.33316 10.8345 1.98414 10.1978 2.76465 9.76222C3.5742 9.31057 4.68102 8.97991 5.93164 8.80616C6.20498 8.76845 6.45812 8.95956 6.49609 9.23292C6.53371 9.50605 6.3424 9.75821 6.06934 9.7964C4.89651 9.95932 3.9196 10.2628 3.25195 10.6353C2.55551 11.0239 2.33415 11.4018 2.33398 11.6665C2.33401 11.8324 2.41535 12.0395 2.66504 12.2788C2.9161 12.5193 3.30576 12.7594 3.82812 12.9712C4.87088 13.3938 6.34642 13.6665 8.00098 13.6665C9.65529 13.6664 11.1303 13.3938 12.1729 12.9712C12.6953 12.7593 13.0859 12.5194 13.3369 12.2788C13.5863 12.0397 13.667 11.8323 13.667 11.6665C13.6668 11.4018 13.4452 11.0238 12.749 10.6353C12.0814 10.2628 11.1043 9.95934 9.93164 9.7964C9.65837 9.75831 9.4681 9.50621 9.50586 9.23292C9.54385 8.95943 9.79585 8.76822 10.0693 8.80616Z`,fill:`currentColor`}),(0,h.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M6.11426 2.11475C7.15559 1.07435 8.84294 1.07287 9.88477 2.11475C10.9263 3.15634 10.9267 4.84526 9.88477 5.88624C9.49213 6.2783 9.00732 6.52222 8.5 6.61866V11.4995C8.5 11.7757 8.27614 11.9995 8 11.9995C7.72386 11.9995 7.5 11.7757 7.5 11.4995V6.61866C6.99206 6.52234 6.50626 6.27863 6.11328 5.88526C5.07366 4.84407 5.07276 3.15585 6.11426 2.11475ZM9.17773 2.82179C8.52695 2.17094 7.47264 2.17121 6.82129 2.82179C6.17108 3.4718 6.17058 4.52781 6.82129 5.17921C7.47111 5.82948 8.52635 5.82864 9.17773 5.17823C9.82854 4.52804 9.82894 3.47304 9.17773 2.82179Z`,fill:`currentColor`})]})}var y=t(e(),1);function b(e){let t=e.heading??`h1`,n=(0,y.useId)(),b=e.request?.app,w=e.refusal??e.request?.key_authorization?.refusal,T=e.status===`denied`?`Denied. The device was not signed in.`:e.request?b?(0,h.jsxs)(h.Fragment,{children:[`Make sure this code matches the one on your device, then approve to grant `,(0,h.jsx)(`strong`,{children:b.name}),` `,(0,h.jsxs)(o.Root,{children:[(0,h.jsx)(o.Trigger,{delay:150,render:(0,h.jsx)(s,{className:C.verified?`z_tempo_2d_id-tpVtLR2z z_tempo_2d_id-tpVtLR1o z_tempo_2d_id-tpVtLR30 z_tempo_2d_id-tpVtLR31 z_tempo_2d_id-tpVtLR1p z_tempo_2d_id-tpVtLR32 z_tempo_2d_id-tpVtLR33 z_tempo_2d_id-tpVtLR34`:C.verified().className,"aria-label":`Verified`,role:`img`,tabIndex:0})}),(0,h.jsx)(o.Popup,{children:`Verified app`})]}),` `,`access to your account.`]}):(0,h.jsxs)(h.Fragment,{children:[`Make sure this code matches the one on your device, then approve to grant`,` `,(0,h.jsxs)(o.Root,{children:[(0,h.jsx)(o.Trigger,{delay:150,render:(0,h.jsxs)(`span`,{className:C.unverified?`z_tempo_2d_id-tpVtLR2o z_tempo_2d_id-tpVtLRi z_tempo_2d_id-tpVtLR2p z_tempo_2d_id-tpVtLR2q z_tempo_2d_id-tpVtLR2r z_tempo_2d_id-tpVtLR2s z_tempo_2d_id-tpVtLR2t z_tempo_2d_id-tpVtLR2u z_tempo_2d_id-tpVtLR2v z_tempo_2d_id-tpVtLR2w z_tempo_2d_id-tpVtLR2x z_tempo_2d_id-3w2jki4`:C.unverified().className,tabIndex:0,children:[(0,h.jsx)(r,{className:C.warning?`z_tempo_2d_id-tpVtLR2z z_tempo_2d_id-tpVtLR1o z_tempo_2d_id-tpVtLR35 z_tempo_2d_id-tpVtLR31 z_tempo_2d_id-tpVtLR1p`:C.warning().className}),`an unverified app`]})}),(0,h.jsx)(o.Popup,{children:`Unverified app`})]}),` `,`access to your account.`]}):`Enter the code shown in your terminal.`;return e.status===`approved`?(0,h.jsx)(i,{className:C.column?`z_tempo_2d_id-tpVtLRx z_tempo_2d_id-tpVtLRy`:C.column().className,gap:`32`,children:(0,h.jsxs)(i,{className:C.header?`z_tempo_2d_id-tpVtLR1k`:C.header().className,align:`center`,gap:`8`,render:(0,h.jsx)(`header`,{}),children:[(0,h.jsx)(f,{className:C.avatar?`z_tempo_2d_id-tpVtLR0 z_tempo_2d_id-tpVtLR1 z_tempo_2d_id-tpVtLR2 z_tempo_2d_id-tpVtLR3 z_tempo_2d_id-tpVtLR4 z_tempo_2d_id-tpVtLR5 z_tempo_2d_id-tpVtLR6`:C.avatar().className,"aria-hidden":!0,children:(0,h.jsx)(u,{})}),(0,h.jsx)(t,{className:C.title?`z_tempo_2d_id-tpVtLR2i z_tempo_2d_id-tpVtLR2j z_tempo_2d_id-tpVtLR2k z_tempo_2d_id-tpVtLR2l z_tempo_2d_id-tpVtLR2m z_tempo_2d_id-tpVtLR2n`:C.title().className,children:`Authorization successful`}),(0,h.jsxs)(p,{className:C.success?`z_tempo_2d_id-tpVtLR2d z_tempo_2d_id-tpVtLR2e z_tempo_2d_id-tpVtLR2f z_tempo_2d_id-tpVtLR2g z_tempo_2d_id-tpVtLR2h`:C.success().className,"aria-live":`polite`,gap:`8`,justify:`center`,render:(0,h.jsx)(`p`,{}),role:`status`,children:[(0,h.jsx)(`span`,{className:C.check?`z_tempo_2d_id-tpVtLRo z_tempo_2d_id-tpVtLRp z_tempo_2d_id-tpVtLRq z_tempo_2d_id-tpVtLRr z_tempo_2d_id-tpVtLRs z_tempo_2d_id-3w2jki9 z_tempo_2d_id-tpVtLRu z_tempo_2d_id-tpVtLRv z_tempo_2d_id-tpVtLRw`:C.check().className,children:(0,h.jsx)(u,{})}),`You can close this tab.`]})]})}):(0,h.jsxs)(i,{className:C.column?`z_tempo_2d_id-tpVtLRx z_tempo_2d_id-tpVtLRy`:C.column().className,gap:`32`,children:[(0,h.jsxs)(i,{className:C.header?`z_tempo_2d_id-tpVtLR1k`:C.header().className,align:`center`,gap:`8`,render:(0,h.jsx)(`header`,{}),children:[(0,h.jsx)(f,{className:C.avatar?`z_tempo_2d_id-tpVtLR0 z_tempo_2d_id-tpVtLR1 z_tempo_2d_id-tpVtLR2 z_tempo_2d_id-tpVtLR3 z_tempo_2d_id-tpVtLR4 z_tempo_2d_id-tpVtLR5 z_tempo_2d_id-tpVtLR6`:C.avatar().className,"data-verified":!e.request||!!b,children:!e.request||b?(0,h.jsx)(_,{}):(0,h.jsx)(r,{})}),(0,h.jsx)(t,{className:C.title?`z_tempo_2d_id-tpVtLR2i z_tempo_2d_id-tpVtLR2j z_tempo_2d_id-tpVtLR2k z_tempo_2d_id-tpVtLR2l z_tempo_2d_id-tpVtLR2m z_tempo_2d_id-tpVtLR2n`:C.title().className,children:`Authorize a device`}),(0,h.jsx)(`p`,{className:C.description?`z_tempo_2d_id-tpVtLRz z_tempo_2d_id-tpVtLR10 z_tempo_2d_id-tpVtLR11 z_tempo_2d_id-tpVtLR12 z_tempo_2d_id-tpVtLR13 z_tempo_2d_id-tpVtLR14 z_tempo_2d_id-tpVtLR15 z_tempo_2d_id-tpVtLR16 z_tempo_2d_id-tpVtLR17 z_tempo_2d_id-tpVtLR18 z_tempo_2d_id-tpVtLR19 z_tempo_2d_id-tpVtLR1a z_tempo_2d_id-tpVtLR1b z_tempo_2d_id-tpVtLR1c`:C.description().className,children:T})]}),e.status===`denied`?null:e.request?(0,h.jsxs)(i,{gap:`16`,children:[(0,h.jsx)(l,{"aria-label":`Code`,defaultValue:e.request.user_code,length:8,readOnly:!0,separator:4,size:`medium`},e.request.user_code),e.request.key_authorization?(0,h.jsx)(c,{heading:e.heading===`h4`?`h5`:`h2`,keyAuthorization:e.request.key_authorization}):null,e.request.challenge?(0,h.jsxs)(`div`,{className:C.challenge?`z_tempo_2d_id-tpVtLR7 z_tempo_2d_id-tpVtLR8 z_tempo_2d_id-tpVtLR9 z_tempo_2d_id-tpVtLRa z_tempo_2d_id-tpVtLRb`:C.challenge().className,role:`note`,children:[(0,h.jsx)(`p`,{className:C.challengeTitle?`z_tempo_2d_id-tpVtLRi z_tempo_2d_id-tpVtLRj z_tempo_2d_id-tpVtLRk z_tempo_2d_id-tpVtLRl z_tempo_2d_id-tpVtLRm z_tempo_2d_id-tpVtLRn`:C.challengeTitle().className,children:`This sign-in also signs a message`}),(0,h.jsx)(`p`,{className:C.challengeText?`z_tempo_2d_id-nr-Vm71w z_tempo_2d_id-tpVtLRd z_tempo_2d_id-tpVtLRe z_tempo_2d_id-tpVtLRf z_tempo_2d_id-tpVtLRg z_tempo_2d_id-tpVtLRh`:C.challengeText().className,children:`Approve only if you started this sign-in in your own terminal and expect this message.`}),(0,h.jsx)(`pre`,{className:C.message?`z_tempo_2d_id-tpVtLR1j z_tempo_2d_id-nr-Vm71q z_tempo_2d_id-tpVtLR1r z_tempo_2d_id-tpVtLR1s z_tempo_2d_id-tpVtLR1t z_tempo_2d_id-tpVtLR1u z_tempo_2d_id-tpVtLR1v z_tempo_2d_id-tpVtLR1w`:C.message().className,children:e.request.challenge})]}):null,(0,h.jsxs)(`dl`,{className:C.details?`z_tempo_2d_id-tpVtLR1i z_tempo_2d_id-tpVtLR8 z_tempo_2d_id-tpVtLR9 z_tempo_2d_id-tpVtLRa z_tempo_2d_id-tpVtLR1j z_tempo_2d_id-tpVtLRb z_tempo_2d_id-tpVtLRd z_tempo_2d_id-tpVtLRe z_tempo_2d_id-tpVtLRf z_tempo_2d_id-tpVtLRg z_tempo_2d_id-tpVtLRh`:C.details().className,children:[e.request.device?(0,h.jsxs)(p,{className:C.row?`z_tempo_2d_id-tpVtLR2a z_tempo_2d_id-tpVtLR2b`:C.row().className,gap:`12`,children:[(0,h.jsx)(`dt`,{children:(0,h.jsx)(_,{className:C.icon?`z_tempo_2d_id-tpVtLR1l z_tempo_2d_id-tpVtLR1m z_tempo_2d_id-tpVtLR1n z_tempo_2d_id-tpVtLR1o z_tempo_2d_id-tpVtLR1p`:C.icon().className,"aria-label":`Device name`,role:`img`})}),(0,h.jsxs)(`dd`,{children:[(0,h.jsx)(`bdi`,{className:C.device?`z_tempo_2d_id-tpVtLR1d z_tempo_2d_id-tpVtLR1e z_tempo_2d_id-tpVtLR1f z_tempo_2d_id-tpVtLR1g z_tempo_2d_id-tpVtLR1h`:C.device().className,children:e.request.device.slice(0,64)}),` `,(0,h.jsx)(`span`,{className:C.source?`z_tempo_2d_id-tpVtLR2c`:C.source().className,children:`(as the device reports it)`})]})]}):null,e.request.location?(0,h.jsxs)(p,{className:C.row?`z_tempo_2d_id-tpVtLR2a z_tempo_2d_id-tpVtLR2b`:C.row().className,gap:`12`,children:[(0,h.jsx)(`dt`,{children:(0,h.jsx)(v,{className:C.icon?`z_tempo_2d_id-tpVtLR1l z_tempo_2d_id-tpVtLR1m z_tempo_2d_id-tpVtLR1n z_tempo_2d_id-tpVtLR1o z_tempo_2d_id-tpVtLR1p`:C.icon().className,"aria-label":`Location`,role:`img`})}),(0,h.jsx)(`dd`,{children:e.request.location})]}):null,(0,h.jsxs)(p,{className:C.row?`z_tempo_2d_id-tpVtLR2a z_tempo_2d_id-tpVtLR2b`:C.row().className,gap:`12`,children:[(0,h.jsx)(`dt`,{children:(0,h.jsx)(g,{className:C.icon?`z_tempo_2d_id-tpVtLR1l z_tempo_2d_id-tpVtLR1m z_tempo_2d_id-tpVtLR1n z_tempo_2d_id-tpVtLR1o z_tempo_2d_id-tpVtLR1p`:C.icon().className,"aria-label":`Requested`,role:`img`})}),(0,h.jsxs)(`dd`,{children:[S.format(e.request.created_at*1e3),` UTC`]})]}),e.request.ip?(0,h.jsxs)(p,{className:C.row?`z_tempo_2d_id-tpVtLR2a z_tempo_2d_id-tpVtLR2b`:C.row().className,gap:`12`,children:[(0,h.jsx)(`dt`,{children:(0,h.jsx)(m,{className:C.icon?`z_tempo_2d_id-tpVtLR1l z_tempo_2d_id-tpVtLR1m z_tempo_2d_id-tpVtLR1n z_tempo_2d_id-tpVtLR1o z_tempo_2d_id-tpVtLR1p`:C.icon().className,"aria-label":`IP address`,role:`img`})}),(0,h.jsx)(`dd`,{children:e.request.ip})]}):null]}),(0,h.jsx)(a,{disabled:e.denying||!!w,loading:e.approving,onClick:e.onApprove,children:`Approve`}),(0,h.jsx)(a,{disabled:e.approving,loading:e.denying,onClick:e.onDeny,variant:`text`,children:`Deny`}),e.email?(0,h.jsxs)(`p`,{className:C.note?`z_tempo_2d_id-tpVtLR1x z_tempo_2d_id-tpVtLR1y z_tempo_2d_id-tpVtLR1z z_tempo_2d_id-tpVtLR20 z_tempo_2d_id-tpVtLR21 z_tempo_2d_id-tpVtLR22 z_tempo_2d_id-tpVtLR23 z_tempo_2d_id-tpVtLR24 z_tempo_2d_id-tpVtLR25 z_tempo_2d_id-tpVtLR26 z_tempo_2d_id-tpVtLR27 z_tempo_2d_id-tpVtLR28 z_tempo_2d_id-tpVtLR29`:C.note().className,children:[`Signed in as `,(0,h.jsx)(`strong`,{children:e.email}),`.`]}):null]}):(0,h.jsxs)(i,{gap:`32`,render:(0,h.jsx)(`form`,{onSubmit:e.onSubmitCode}),children:[(0,h.jsx)(l,{"aria-describedby":`${n}-error`,"aria-label":`Code shown in your terminal`,autoComplete:`off`,autoFocus:e.autoFocus,defaultValue:e.code,invalid:e.invalid,length:8,name:`code`,readOnly:e.fetching,required:!0,separator:4,size:`medium`}),(0,h.jsx)(a,{loading:e.fetching,type:`submit`,children:`Continue`})]}),(()=>{let t=e.error??(w?x[w]:void 0);return t?(0,h.jsxs)(d,{id:`${n}-error`,intent:`negative`,children:[(0,h.jsx)(d.Icon,{}),(0,h.jsx)(d.Content,{children:t})]}):null})()]})}var x={foreign_account:`The terminal requests a key for a Tempo Account that you do not hold. Deny the request, and start the sign-in again in the terminal as that account's owner.`,no_account:`You have no Tempo Account for this app yet, so no account can approve the key. Deny the request, create an account, and try again.`,passkey:`This Tempo Account signs with a passkey that this page cannot use. Deny the request, and return to the terminal.`,unavailable:`Tempo ID cannot read your Tempo Account right now. Reload the page in a minute, or deny the request.`,upgrade:`This Tempo Account must upgrade to a configurable wallet on this chain before it approves keys. Deny the request, upgrade the wallet on your account page, and try again.`},S=new Intl.DateTimeFormat(`en-US`,{dateStyle:`medium`,timeStyle:`short`,timeZone:`UTC`}),C;(function(e){e.avatar=1,e.challenge=1,e.challengeText=1,e.challengeTitle=1,e.check=1,e.column=1,e.description=1,e.device=1,e.details=1,e.header=1,e.icon=1,e.message=1,e.note=1,e.row=1,e.source=1,e.success=1,e.title=1,e.unverified=1,e.verified=1,e.warning=1})(C||={});export{b as t};
|
|
2
|
+
//# sourceMappingURL=DeviceApproval-o7T8XlX3.js.map
|
package/dist/app/server/assets/{DeviceApproval-BhWgrv9l.js.map → DeviceApproval-o7T8XlX3.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeviceApproval-BhWgrv9l.js","names":["_jsxs","_jsx","_jsx","_jsxs","_jsx","useId","_Fragment","require_react","__toESM","require_jsx_runtime","AlertTriangle","Stack","Button","Tooltip","BadgeCheck","Grant","CodeInput","Check","Callout","IconChip","Inline","Globe","import_jsx_runtime","Clock","props","Laptop","LocationPin","import_react","DeviceApproval","Title","id","app","refusal","description","styles","date","error","refusals"],"sources":["../../../../../node_modules/.pnpm/@tempoxyz+ds@0.2.5_@types+react@19.3.0_react-dom@19.3.0_react@19.3.0__react-native@0.86_bbc03918b3aa42ad595cf90afc2ac3af/node_modules/@tempoxyz/ds/dist/web/icons/Clock.js","../../../../../node_modules/.pnpm/@tempoxyz+ds@0.2.5_@types+react@19.3.0_react-dom@19.3.0_react@19.3.0__react-native@0.86_bbc03918b3aa42ad595cf90afc2ac3af/node_modules/@tempoxyz/ds/dist/web/icons/Laptop.js","../../../../../node_modules/.pnpm/@tempoxyz+ds@0.2.5_@types+react@19.3.0_react-dom@19.3.0_react@19.3.0__react-native@0.86_bbc03918b3aa42ad595cf90afc2ac3af/node_modules/@tempoxyz/ds/dist/web/icons/LocationPin.js","../../../screens/DeviceApproval.tsx"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport function Clock(props) {\n return (_jsxs(\"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: \"M8.00098 4.66602C8.27653 4.66645 8.50062 4.89045 8.50098 5.16602V7.79297L10.1875 9.47949C10.3825 9.67462 10.3823 9.99125 10.1875 10.1865C9.99226 10.3818 9.67574 10.3817 9.48047 10.1865L7.64746 8.35352C7.55377 8.25982 7.50106 8.13249 7.50098 8V5.16602C7.50133 4.89018 7.72505 4.66602 8.00098 4.66602Z\", fill: \"currentColor\" }), _jsx(\"path\", { fillRule: \"evenodd\", clipRule: \"evenodd\", d: \"M8.00098 1.33301C11.6824 1.33345 14.6668 4.31853 14.667 8C14.6668 11.6815 11.6824 14.6656 8.00098 14.666C4.31919 14.666 1.33318 11.6817 1.33301 8C1.33319 4.31826 4.31919 1.33301 8.00098 1.33301ZM8.00098 2.33301C4.87148 2.33301 2.33417 4.87054 2.33398 8C2.33416 11.1294 4.87147 13.666 8.00098 13.666C11.1301 13.6656 13.6668 11.1292 13.667 8C13.6668 4.87082 11.1301 2.33345 8.00098 2.33301Z\", fill: \"currentColor\" })] }));\n}\n//# sourceMappingURL=Clock.js.map","import { jsx as _jsx } from \"react/jsx-runtime\";\nexport function Laptop(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\", { fillRule: \"evenodd\", clipRule: \"evenodd\", d: \"M12.834 2C13.4779 2.00044 14 2.52293 14 3.16699V10.667H14.834C15.1098 10.6674 15.334 10.8911 15.334 11.167V12.833C15.334 13.4772 14.8111 13.9997 14.167 14H1.83398C1.18965 14 0.666016 13.4773 0.666016 12.833V11.167C0.666016 10.8909 0.89085 10.667 1.16699 10.667H2V3.16699C2 2.52266 2.52266 2 3.16699 2H12.834ZM1.66699 12.833C1.66699 12.9251 1.74194 13 1.83398 13H14.167C14.2588 12.9997 14.334 12.9249 14.334 12.833V11.667H1.66699V12.833ZM3.16699 3C3.07494 3 3 3.07494 3 3.16699V10.667H13V3.16699C13 3.07522 12.9257 3.00044 12.834 3H3.16699Z\", fill: \"currentColor\" }) }));\n}\n//# sourceMappingURL=Laptop.js.map","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport function LocationPin(props) {\n return (_jsxs(\"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: \"M10.0693 8.80616C11.3199 8.97992 12.4268 9.31057 13.2363 9.76222C14.0167 10.1977 14.6668 10.8347 14.667 11.6665C14.667 12.1908 14.4026 12.6417 14.0283 13.0005C13.6553 13.358 13.1419 13.6575 12.5488 13.898C11.3599 14.3799 9.75149 14.6664 8.00098 14.6665C6.25029 14.6665 4.64122 14.3799 3.45215 13.898C2.8591 13.6575 2.34566 13.3579 1.97266 13.0005C1.59839 12.6417 1.33303 12.1908 1.33301 11.6665C1.33316 10.8345 1.98414 10.1978 2.76465 9.76222C3.5742 9.31057 4.68102 8.97991 5.93164 8.80616C6.20498 8.76845 6.45812 8.95956 6.49609 9.23292C6.53371 9.50605 6.3424 9.75821 6.06934 9.7964C4.89651 9.95932 3.9196 10.2628 3.25195 10.6353C2.55551 11.0239 2.33415 11.4018 2.33398 11.6665C2.33401 11.8324 2.41535 12.0395 2.66504 12.2788C2.9161 12.5193 3.30576 12.7594 3.82812 12.9712C4.87088 13.3938 6.34642 13.6665 8.00098 13.6665C9.65529 13.6664 11.1303 13.3938 12.1729 12.9712C12.6953 12.7593 13.0859 12.5194 13.3369 12.2788C13.5863 12.0397 13.667 11.8323 13.667 11.6665C13.6668 11.4018 13.4452 11.0238 12.749 10.6353C12.0814 10.2628 11.1043 9.95934 9.93164 9.7964C9.65837 9.75831 9.4681 9.50621 9.50586 9.23292C9.54385 8.95943 9.79585 8.76822 10.0693 8.80616Z\", fill: \"currentColor\" }), _jsx(\"path\", { fillRule: \"evenodd\", clipRule: \"evenodd\", d: \"M6.11426 2.11475C7.15559 1.07435 8.84294 1.07287 9.88477 2.11475C10.9263 3.15634 10.9267 4.84526 9.88477 5.88624C9.49213 6.2783 9.00732 6.52222 8.5 6.61866V11.4995C8.5 11.7757 8.27614 11.9995 8 11.9995C7.72386 11.9995 7.5 11.7757 7.5 11.4995V6.61866C6.99206 6.52234 6.50626 6.27863 6.11328 5.88526C5.07366 4.84407 5.07276 3.15585 6.11426 2.11475ZM9.17773 2.82179C8.52695 2.17094 7.47264 2.17121 6.82129 2.82179C6.17108 3.4718 6.17058 4.52781 6.82129 5.17921C7.47111 5.82948 8.52635 5.82864 9.17773 5.17823C9.82854 4.52804 9.82894 3.47304 9.17773 2.82179Z\", fill: \"currentColor\" })] }));\n}\n//# sourceMappingURL=LocationPin.js.map","/** The device screen, where a signed-in user decides on a CLI's user code and key. @module */\nimport { Button, Callout, IconChip, Inline, Stack, Tooltip } from '@tempoxyz/ds'\nimport {\n AlertTriangle,\n BadgeCheck,\n Check,\n Clock,\n Globe,\n Laptop,\n LocationPin,\n} from '@tempoxyz/ds/icons'\nimport { type FormEvent, type ReactNode, useId } from 'react'\nimport type * as KeyAuthorization from '../../internal/KeyAuthorization.js'\nimport { CodeInput } from '../components/CodeInput.js'\nimport { Grant } from '../components/Grant.js'\nimport { style } from '../zyzz.config.js'\n\n/**\n * The device screen: a code form without `request`, or the request and its key, then the outcome.\n * Approve is disabled if approval cannot sign the key.\n */\nexport function DeviceApproval(props: DeviceApproval.Props): ReactNode {\n const Title = props.heading ?? 'h1'\n // Several screens can share a document, such as on the flows canvas, so each derives its own IDs.\n const id = useId()\n const app = props.request?.app\n const refusal = props.refusal ?? props.request?.key_authorization?.refusal\n const description = (() => {\n if (props.status === 'denied')\n return 'Denied. The device was not signed in.'\n if (!props.request) return 'Enter the code shown in your terminal.'\n // An app without a display name could be anyone's, so the screen flags it.\n if (!app)\n return (\n <>\n Make sure this code matches the one on your device, then approve to\n grant{' '}\n <Tooltip.Root>\n <Tooltip.Trigger\n delay={150}\n render={\n <span {...styles.unverified()} tabIndex={0}>\n <AlertTriangle {...styles.warning()} />\n an unverified app\n </span>\n }\n />\n <Tooltip.Popup>Unverified app</Tooltip.Popup>\n </Tooltip.Root>{' '}\n access to your account.\n </>\n )\n return (\n <>\n Make sure this code matches the one on your device, then approve to\n grant <strong>{app.name}</strong>{' '}\n <Tooltip.Root>\n <Tooltip.Trigger\n delay={150}\n render={\n <BadgeCheck\n {...styles.verified()}\n aria-label=\"Verified\"\n role=\"img\"\n tabIndex={0}\n />\n }\n />\n <Tooltip.Popup>Verified app</Tooltip.Popup>\n </Tooltip.Root>{' '}\n access to your account.\n </>\n )\n })()\n\n if (props.status === 'approved')\n return (\n <Stack {...styles.column()} gap=\"32\">\n <Stack {...styles.header()} align=\"center\" gap=\"8\" render={<header />}>\n <IconChip {...styles.avatar()} aria-hidden>\n <Check />\n </IconChip>\n <Title {...styles.title()}>Authorization successful</Title>\n <Inline\n {...styles.success()}\n aria-live=\"polite\"\n gap=\"8\"\n justify=\"center\"\n render={<p />}\n role=\"status\"\n >\n <span {...styles.check()}>\n <Check />\n </span>\n You can close this tab.\n </Inline>\n </Stack>\n </Stack>\n )\n\n return (\n <Stack {...styles.column()} gap=\"32\">\n <Stack {...styles.header()} align=\"center\" gap=\"8\" render={<header />}>\n {/* Apps have no logos, so the code step and a verified app show a device in their place. */}\n <IconChip\n {...styles.avatar()}\n data-verified={!props.request || Boolean(app)}\n >\n {!props.request || app ? <Laptop /> : <AlertTriangle />}\n </IconChip>\n <Title {...styles.title()}>Authorize a device</Title>\n <p {...styles.description()}>{description}</p>\n </Stack>\n {(() => {\n if (props.status === 'denied') return null\n if (!props.request)\n return (\n <Stack gap=\"32\" render={<form onSubmit={props.onSubmitCode} />}>\n <CodeInput\n aria-describedby={`${id}-error`}\n aria-label=\"Code shown in your terminal\"\n autoComplete=\"off\"\n autoFocus={props.autoFocus}\n defaultValue={props.code}\n invalid={props.invalid}\n length={8}\n name=\"code\"\n // The field holds while the lookup runs, so a refusal clears only the code it refused.\n readOnly={props.fetching}\n required\n separator={4}\n size=\"medium\"\n />\n <Button loading={props.fetching} type=\"submit\">\n Continue\n </Button>\n </Stack>\n )\n return (\n <Stack gap=\"16\">\n <CodeInput\n aria-label=\"Code\"\n defaultValue={props.request.user_code}\n // A different request remounts the boxes, which read their value once.\n key={props.request.user_code}\n length={8}\n readOnly\n separator={4}\n size=\"medium\"\n />\n {props.request.key_authorization ? (\n <Grant\n heading={props.heading === 'h4' ? 'h5' : 'h2'}\n keyAuthorization={props.request.key_authorization}\n />\n ) : null}\n {props.request.challenge ? (\n <div {...styles.challenge()} role=\"note\">\n <p {...styles.challengeTitle()}>\n This sign-in also signs a message\n </p>\n <p {...styles.challengeText()}>\n Approve only if you started this sign-in in your own terminal\n and expect this message.\n </p>\n <pre {...styles.message()}>{props.request.challenge}</pre>\n </div>\n ) : null}\n <dl {...styles.details()}>\n {props.request.device ? (\n <Inline {...styles.row()} gap=\"12\">\n <dt>\n <Laptop\n {...styles.icon()}\n aria-label=\"Device name\"\n role=\"img\"\n />\n </dt>\n <dd>\n {/* The CLI chooses the name, so it renders as text within the API's 64 characters, and the screen says where it comes from. */}\n {/* `bdi` isolates the name's direction from the label after it. */}\n <bdi {...styles.device()}>\n {props.request.device.slice(0, 64)}\n </bdi>{' '}\n <span {...styles.source()}>(as the device reports it)</span>\n </dd>\n </Inline>\n ) : null}\n {props.request.location ? (\n <Inline {...styles.row()} gap=\"12\">\n <dt>\n <LocationPin\n {...styles.icon()}\n aria-label=\"Location\"\n role=\"img\"\n />\n </dt>\n <dd>{props.request.location}</dd>\n </Inline>\n ) : null}\n <Inline {...styles.row()} gap=\"12\">\n <dt>\n <Clock {...styles.icon()} aria-label=\"Requested\" role=\"img\" />\n </dt>\n <dd>{date.format(props.request.created_at * 1000)} UTC</dd>\n </Inline>\n {props.request.ip ? (\n <Inline {...styles.row()} gap=\"12\">\n <dt>\n <Globe\n {...styles.icon()}\n aria-label=\"IP address\"\n role=\"img\"\n />\n </dt>\n <dd>{props.request.ip}</dd>\n </Inline>\n ) : null}\n </dl>\n <Button\n disabled={props.denying || Boolean(refusal)}\n loading={props.approving}\n onClick={props.onApprove}\n >\n Approve\n </Button>\n <Button\n disabled={props.approving}\n loading={props.denying}\n onClick={props.onDeny}\n variant=\"text\"\n >\n Deny\n </Button>\n {props.email ? (\n <p {...styles.note()}>\n Signed in as <strong>{props.email}</strong>.\n </p>\n ) : null}\n </Stack>\n )\n })()}\n\n {/* A failed decision outranks the refusal, whose only action is the denial that failed. */}\n {(() => {\n const error = props.error ?? (refusal ? refusals[refusal] : undefined)\n if (!error) return null\n return (\n <Callout id={`${id}-error`} intent=\"negative\">\n <Callout.Icon />\n <Callout.Content>{error}</Callout.Content>\n </Callout>\n )\n })()}\n </Stack>\n )\n}\n\nexport declare namespace DeviceApproval {\n type Props = {\n /** Whether the approval is in progress. */\n approving: boolean\n /** Whether the code field takes focus on mount. */\n autoFocus?: boolean | undefined\n /** The user code that the form starts with. */\n code: string\n /** Whether the denial is in progress. */\n denying: boolean\n /** The signed-in user's address. Absent, no account shows. */\n email?: string | undefined\n /** Why the read or the decision failed. */\n error?: string | undefined\n /** Whether the entered code's request is loading. */\n fetching: boolean\n /** `h1` by default, or `h4` on the flows canvas. */\n heading?: 'h1' | 'h4' | undefined\n /** Whether the code matched no request, which marks the field invalid. */\n invalid: boolean\n /** Approves the request, which signs the CLI in. */\n onApprove: () => void\n /** Denies the request. */\n onDeny: () => void\n /** Submits the entered user code. */\n onSubmitCode: (event: FormEvent<HTMLFormElement>) => void\n /** Why approval cannot sign the key. Replaces the key's own `refusal`. */\n refusal?: Refusal | undefined\n /** The CLI's request. Absent until the code matches one. */\n request?: Request | undefined\n /** Absent until the user decides. */\n status?: 'approved' | 'denied' | undefined\n }\n\n /** A requested key, as the device page shows it. */\n type Key = KeyAuthorization.Description & {\n /** Absent if approval can sign the key. */\n refusal?: Refusal | undefined\n }\n\n /**\n * Why approval cannot sign a key: a `foreign_account`, an owner `passkey` that the page cannot\n * use, `no_account`, or `unavailable` accounts.\n */\n type Refusal =\n | 'foreign_account'\n | 'no_account'\n | 'passkey'\n | 'unavailable'\n | 'upgrade'\n\n /** A device request, as `GET /v1/device/requests/:code` returns it. */\n type Request = {\n /** Absent if the app has no display name. */\n app?: { name: string } | undefined\n /** The message whose hash the key's signature covers. Absent if none. */\n challenge?: string | undefined\n /** Unix seconds. */\n created_at: number\n /** The name that the CLI reported, such as its hostname. Absent if none. */\n device?: string | undefined\n /** Absent if unknown. */\n ip?: string | undefined\n /** Absent if the CLI requests no key. */\n key_authorization?: Key | undefined\n /** The CLI's city and country. Absent if unknown. */\n location?: string | undefined\n /** The user code, such as `BCDF-GHJK`. */\n user_code: string\n }\n}\n\n/** The screen's text for each refusal. */\nconst refusals: Record<DeviceApproval.Refusal, string> = {\n foreign_account:\n \"The terminal requests a key for a Tempo Account that you do not hold. Deny the request, and start the sign-in again in the terminal as that account's owner.\",\n no_account:\n 'You have no Tempo Account for this app yet, so no account can approve the key. Deny the request, create an account, and try again.',\n passkey:\n 'This Tempo Account signs with a passkey that this page cannot use. Deny the request, and return to the terminal.',\n unavailable:\n 'Tempo ID cannot read your Tempo Account right now. Reload the page in a minute, or deny the request.',\n upgrade:\n 'This Tempo Account must upgrade to a configurable wallet on this chain before it approves keys. Deny the request, upgrade the wallet on your account page, and try again.',\n}\n\n/** Formats in UTC, so the server render and the browser agree. */\nconst date = new Intl.DateTimeFormat('en-US', {\n dateStyle: 'medium',\n timeStyle: 'short',\n timeZone: 'UTC',\n})\n\nnamespace styles {\n // IconChip has no 64 size, so the chip sets the size of the account screen's avatar. It sits apart\n // from the title, and an unverified app's chip takes the warning tint.\n export const avatar = style({\n borderRadius: 'full',\n fontSize: '24',\n height: '64',\n marginBottom: '12',\n width: '64',\n '&[data-verified=\"false\"]': {\n backgroundColor: 'amber.100',\n color: 'amber.900',\n },\n })\n\n export const challenge = style({\n backgroundColor: 'amber.100',\n borderRadius: '16',\n display: 'grid',\n gap: '8',\n padding: '16',\n })\n\n export const challengeText = style({\n color: 'foreground',\n typography: 'copy.14',\n })\n\n export const challengeTitle = style({\n color: 'amber.900',\n typography: 'label.14',\n })\n\n export const check = style({\n alignItems: 'center',\n backgroundColor: 'foreground',\n borderRadius: 'full',\n color: 'background.primary',\n display: 'inline-flex',\n flexShrink: 0,\n height: '24',\n justifyContent: 'center',\n width: '24',\n })\n\n export const column = style({\n maxWidth: '512',\n width: '100% !custom',\n })\n\n // A narrow measure wraps the app's name onto a second line.\n export const description = style({\n color: 'gray.900',\n maxWidth: '320',\n textWrap: 'balance',\n typography: 'copy.16',\n '& strong': { color: 'foreground', typography: 'copy.16.strong' },\n })\n\n export const device = style({ typography: 'copy.14.strong' })\n\n export const details = style({\n backgroundColor: 'gray.100',\n borderRadius: '16',\n display: 'grid',\n gap: '8',\n margin: '0',\n padding: '16',\n typography: 'copy.14',\n })\n\n export const header = style({ textAlign: 'center' })\n\n export const icon = style({\n color: 'gray.900',\n display: 'block',\n flexShrink: 0,\n height: '16',\n width: '16',\n })\n\n export const message = style({\n margin: '0',\n overflowWrap: 'anywhere',\n typography: 'copy.13.mono',\n whiteSpace: 'pre-wrap',\n })\n\n export const note = style({\n color: 'gray.900',\n textAlign: 'center',\n typography: 'copy.14',\n '& strong': { color: 'foreground', typography: 'copy.14.strong' },\n })\n\n export const row = style({ minWidth: '0', overflowWrap: 'anywhere' })\n\n export const source = style({ color: 'gray.900' })\n\n export const success = style({ typography: 'copy.16' })\n\n export const title = style({\n textWrap: 'balance',\n typography: 'heading.24',\n })\n\n export const unverified = style({\n borderRadius: '4',\n color: 'amber.900',\n outline: 'none',\n typography: 'copy.16.strong',\n whiteSpace: 'nowrap',\n ':focus-visible': {\n outline: '2px solid',\n outlineColor: 'blue.700',\n outlineOffset: '2',\n },\n })\n\n export const verified = style({\n display: 'inline',\n height: '16',\n outline: 'none',\n verticalAlign: 'middle',\n width: '16',\n ':focus-visible': {\n outline: '2px solid',\n outlineColor: 'blue.700',\n outlineOffset: '2',\n },\n })\n\n export const warning = style({\n display: 'inline',\n height: '16',\n marginInlineEnd: '4',\n verticalAlign: 'middle',\n width: '16',\n })\n}\n"],"ignoreList":[0,1,2],"mappings":"A,qfACA,SAAgBuB,EAAM,EAAO,CACzB,OAAA,EAAQvB,EAAAA,KAAAA,CAAM,MAAO,CAAE,MAAO,MAAO,OAAQ,MAAO,QAAS,YAAa,KAAM,OAAQ,MAAO,6BAA8B,cAAewB,EAAM,eAAiBA,EAAM,mBAAqB,IAAA,GAAY,GAAM,KAAMA,EAAM,eAAiBA,EAAM,mBAAqB,MAAQ,IAAA,GAAW,GAAGA,EAAO,SAAU,EAAA,EAACvB,EAAAA,IAAAA,CAAK,OAAQ,CAAE,EAAG,8SAA+S,KAAM,cAAe,CAAC,GAAA,EAAGA,EAAAA,IAAAA,CAAK,OAAQ,CAAE,SAAU,UAAW,SAAU,UAAW,EAAG,uYAAwY,KAAM,cAAe,CAAC,CAAC,CAAE,CAAC,CAC5mC,CCFA,SAAgBwB,EAAO,EAAO,CAC1B,OAAA,EAAQvB,EAAAA,IAAAA,CAAK,MAAO,CAAE,MAAO,MAAO,OAAQ,MAAO,QAAS,YAAa,KAAM,OAAQ,MAAO,6BAA8B,cAAesB,EAAM,eAAiBA,EAAM,mBAAqB,IAA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V,EAAA,OAAS,EAET,EAAA,KAAO,EAQP,EAAA,QAAU,EAOV,EAAA,KAAO,EAOP,EAAA,IAAM,EAEN,EAAA,OAAS,EAET,EAAA,QAAU,EAEV,EAAA,MAAQ,EAKR,EAAA,WAAa,EAab,EAAA,SAAW,EAaX,EAAA,QAAU,CAOzB,EAAA,CAAA,AAAAA,IAAA,CAAA,CAAA,E"}
|
|
1
|
+
{"version":3,"file":"DeviceApproval-o7T8XlX3.js","names":["_jsxs","_jsx","_jsx","_jsxs","_jsx","useId","_Fragment","require_react","__toESM","require_jsx_runtime","AlertTriangle","Stack","Button","Tooltip","BadgeCheck","Grant","CodeInput","Check","Callout","IconChip","Inline","Globe","import_jsx_runtime","Clock","props","Laptop","LocationPin","import_react","DeviceApproval","Title","id","app","refusal","description","styles","date","error","refusals"],"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/Clock.js","../../../../../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/Laptop.js","../../../../../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/LocationPin.js","../../../screens/DeviceApproval.tsx"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport function Clock(props) {\n return (_jsxs(\"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: \"M8.00098 4.66602C8.27653 4.66645 8.50062 4.89045 8.50098 5.16602V7.79297L10.1875 9.47949C10.3825 9.67462 10.3823 9.99125 10.1875 10.1865C9.99226 10.3818 9.67574 10.3817 9.48047 10.1865L7.64746 8.35352C7.55377 8.25982 7.50106 8.13249 7.50098 8V5.16602C7.50133 4.89018 7.72505 4.66602 8.00098 4.66602Z\", fill: \"currentColor\" }), _jsx(\"path\", { fillRule: \"evenodd\", clipRule: \"evenodd\", d: \"M8.00098 1.33301C11.6824 1.33345 14.6668 4.31853 14.667 8C14.6668 11.6815 11.6824 14.6656 8.00098 14.666C4.31919 14.666 1.33318 11.6817 1.33301 8C1.33319 4.31826 4.31919 1.33301 8.00098 1.33301ZM8.00098 2.33301C4.87148 2.33301 2.33417 4.87054 2.33398 8C2.33416 11.1294 4.87147 13.666 8.00098 13.666C11.1301 13.6656 13.6668 11.1292 13.667 8C13.6668 4.87082 11.1301 2.33345 8.00098 2.33301Z\", fill: \"currentColor\" })] }));\n}\n//# sourceMappingURL=Clock.js.map","import { jsx as _jsx } from \"react/jsx-runtime\";\nexport function Laptop(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\", { fillRule: \"evenodd\", clipRule: \"evenodd\", d: \"M12.834 2C13.4779 2.00044 14 2.52293 14 3.16699V10.667H14.834C15.1098 10.6674 15.334 10.8911 15.334 11.167V12.833C15.334 13.4772 14.8111 13.9997 14.167 14H1.83398C1.18965 14 0.666016 13.4773 0.666016 12.833V11.167C0.666016 10.8909 0.89085 10.667 1.16699 10.667H2V3.16699C2 2.52266 2.52266 2 3.16699 2H12.834ZM1.66699 12.833C1.66699 12.9251 1.74194 13 1.83398 13H14.167C14.2588 12.9997 14.334 12.9249 14.334 12.833V11.667H1.66699V12.833ZM3.16699 3C3.07494 3 3 3.07494 3 3.16699V10.667H13V3.16699C13 3.07522 12.9257 3.00044 12.834 3H3.16699Z\", fill: \"currentColor\" }) }));\n}\n//# sourceMappingURL=Laptop.js.map","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport function LocationPin(props) {\n return (_jsxs(\"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: \"M10.0693 8.80616C11.3199 8.97992 12.4268 9.31057 13.2363 9.76222C14.0167 10.1977 14.6668 10.8347 14.667 11.6665C14.667 12.1908 14.4026 12.6417 14.0283 13.0005C13.6553 13.358 13.1419 13.6575 12.5488 13.898C11.3599 14.3799 9.75149 14.6664 8.00098 14.6665C6.25029 14.6665 4.64122 14.3799 3.45215 13.898C2.8591 13.6575 2.34566 13.3579 1.97266 13.0005C1.59839 12.6417 1.33303 12.1908 1.33301 11.6665C1.33316 10.8345 1.98414 10.1978 2.76465 9.76222C3.5742 9.31057 4.68102 8.97991 5.93164 8.80616C6.20498 8.76845 6.45812 8.95956 6.49609 9.23292C6.53371 9.50605 6.3424 9.75821 6.06934 9.7964C4.89651 9.95932 3.9196 10.2628 3.25195 10.6353C2.55551 11.0239 2.33415 11.4018 2.33398 11.6665C2.33401 11.8324 2.41535 12.0395 2.66504 12.2788C2.9161 12.5193 3.30576 12.7594 3.82812 12.9712C4.87088 13.3938 6.34642 13.6665 8.00098 13.6665C9.65529 13.6664 11.1303 13.3938 12.1729 12.9712C12.6953 12.7593 13.0859 12.5194 13.3369 12.2788C13.5863 12.0397 13.667 11.8323 13.667 11.6665C13.6668 11.4018 13.4452 11.0238 12.749 10.6353C12.0814 10.2628 11.1043 9.95934 9.93164 9.7964C9.65837 9.75831 9.4681 9.50621 9.50586 9.23292C9.54385 8.95943 9.79585 8.76822 10.0693 8.80616Z\", fill: \"currentColor\" }), _jsx(\"path\", { fillRule: \"evenodd\", clipRule: \"evenodd\", d: \"M6.11426 2.11475C7.15559 1.07435 8.84294 1.07287 9.88477 2.11475C10.9263 3.15634 10.9267 4.84526 9.88477 5.88624C9.49213 6.2783 9.00732 6.52222 8.5 6.61866V11.4995C8.5 11.7757 8.27614 11.9995 8 11.9995C7.72386 11.9995 7.5 11.7757 7.5 11.4995V6.61866C6.99206 6.52234 6.50626 6.27863 6.11328 5.88526C5.07366 4.84407 5.07276 3.15585 6.11426 2.11475ZM9.17773 2.82179C8.52695 2.17094 7.47264 2.17121 6.82129 2.82179C6.17108 3.4718 6.17058 4.52781 6.82129 5.17921C7.47111 5.82948 8.52635 5.82864 9.17773 5.17823C9.82854 4.52804 9.82894 3.47304 9.17773 2.82179Z\", fill: \"currentColor\" })] }));\n}\n//# sourceMappingURL=LocationPin.js.map","/** The device screen, where a signed-in user decides on a CLI's user code and key. @module */\nimport { Button, Callout, IconChip, Inline, Stack, Tooltip } from '@tempoxyz/ds'\nimport {\n AlertTriangle,\n BadgeCheck,\n Check,\n Clock,\n Globe,\n Laptop,\n LocationPin,\n} from '@tempoxyz/ds/icons'\nimport { type FormEvent, type ReactNode, useId } from 'react'\nimport type * as KeyAuthorization from '../../internal/KeyAuthorization.js'\nimport { CodeInput } from '../components/CodeInput.js'\nimport { Grant } from '../components/Grant.js'\nimport { style } from '../zyzz.config.js'\n\n/**\n * The device screen: a code form without `request`, or the request and its key, then the outcome.\n * Approve is disabled if approval cannot sign the key.\n */\nexport function DeviceApproval(props: DeviceApproval.Props): ReactNode {\n const Title = props.heading ?? 'h1'\n // Several screens can share a document, such as on the flows canvas, so each derives its own IDs.\n const id = useId()\n const app = props.request?.app\n const refusal = props.refusal ?? props.request?.key_authorization?.refusal\n const description = (() => {\n if (props.status === 'denied')\n return 'Denied. The device was not signed in.'\n if (!props.request) return 'Enter the code shown in your terminal.'\n // An app without a display name could be anyone's, so the screen flags it.\n if (!app)\n return (\n <>\n Make sure this code matches the one on your device, then approve to\n grant{' '}\n <Tooltip.Root>\n <Tooltip.Trigger\n delay={150}\n render={\n <span {...styles.unverified()} tabIndex={0}>\n <AlertTriangle {...styles.warning()} />\n an unverified app\n </span>\n }\n />\n <Tooltip.Popup>Unverified app</Tooltip.Popup>\n </Tooltip.Root>{' '}\n access to your account.\n </>\n )\n return (\n <>\n Make sure this code matches the one on your device, then approve to\n grant <strong>{app.name}</strong>{' '}\n <Tooltip.Root>\n <Tooltip.Trigger\n delay={150}\n render={\n <BadgeCheck\n {...styles.verified()}\n aria-label=\"Verified\"\n role=\"img\"\n tabIndex={0}\n />\n }\n />\n <Tooltip.Popup>Verified app</Tooltip.Popup>\n </Tooltip.Root>{' '}\n access to your account.\n </>\n )\n })()\n\n if (props.status === 'approved')\n return (\n <Stack {...styles.column()} gap=\"32\">\n <Stack {...styles.header()} align=\"center\" gap=\"8\" render={<header />}>\n <IconChip {...styles.avatar()} aria-hidden>\n <Check />\n </IconChip>\n <Title {...styles.title()}>Authorization successful</Title>\n <Inline\n {...styles.success()}\n aria-live=\"polite\"\n gap=\"8\"\n justify=\"center\"\n render={<p />}\n role=\"status\"\n >\n <span {...styles.check()}>\n <Check />\n </span>\n You can close this tab.\n </Inline>\n </Stack>\n </Stack>\n )\n\n return (\n <Stack {...styles.column()} gap=\"32\">\n <Stack {...styles.header()} align=\"center\" gap=\"8\" render={<header />}>\n {/* Apps have no logos, so the code step and a verified app show a device in their place. */}\n <IconChip\n {...styles.avatar()}\n data-verified={!props.request || Boolean(app)}\n >\n {!props.request || app ? <Laptop /> : <AlertTriangle />}\n </IconChip>\n <Title {...styles.title()}>Authorize a device</Title>\n <p {...styles.description()}>{description}</p>\n </Stack>\n {(() => {\n if (props.status === 'denied') return null\n if (!props.request)\n return (\n <Stack gap=\"32\" render={<form onSubmit={props.onSubmitCode} />}>\n <CodeInput\n aria-describedby={`${id}-error`}\n aria-label=\"Code shown in your terminal\"\n autoComplete=\"off\"\n autoFocus={props.autoFocus}\n defaultValue={props.code}\n invalid={props.invalid}\n length={8}\n name=\"code\"\n // The field holds while the lookup runs, so a refusal clears only the code it refused.\n readOnly={props.fetching}\n required\n separator={4}\n size=\"medium\"\n />\n <Button loading={props.fetching} type=\"submit\">\n Continue\n </Button>\n </Stack>\n )\n return (\n <Stack gap=\"16\">\n <CodeInput\n aria-label=\"Code\"\n defaultValue={props.request.user_code}\n // A different request remounts the boxes, which read their value once.\n key={props.request.user_code}\n length={8}\n readOnly\n separator={4}\n size=\"medium\"\n />\n {props.request.key_authorization ? (\n <Grant\n heading={props.heading === 'h4' ? 'h5' : 'h2'}\n keyAuthorization={props.request.key_authorization}\n />\n ) : null}\n {props.request.challenge ? (\n <div {...styles.challenge()} role=\"note\">\n <p {...styles.challengeTitle()}>\n This sign-in also signs a message\n </p>\n <p {...styles.challengeText()}>\n Approve only if you started this sign-in in your own terminal\n and expect this message.\n </p>\n <pre {...styles.message()}>{props.request.challenge}</pre>\n </div>\n ) : null}\n <dl {...styles.details()}>\n {props.request.device ? (\n <Inline {...styles.row()} gap=\"12\">\n <dt>\n <Laptop\n {...styles.icon()}\n aria-label=\"Device name\"\n role=\"img\"\n />\n </dt>\n <dd>\n {/* The CLI chooses the name, so it renders as text within the API's 64 characters, and the screen says where it comes from. */}\n {/* `bdi` isolates the name's direction from the label after it. */}\n <bdi {...styles.device()}>\n {props.request.device.slice(0, 64)}\n </bdi>{' '}\n <span {...styles.source()}>(as the device reports it)</span>\n </dd>\n </Inline>\n ) : null}\n {props.request.location ? (\n <Inline {...styles.row()} gap=\"12\">\n <dt>\n <LocationPin\n {...styles.icon()}\n aria-label=\"Location\"\n role=\"img\"\n />\n </dt>\n <dd>{props.request.location}</dd>\n </Inline>\n ) : null}\n <Inline {...styles.row()} gap=\"12\">\n <dt>\n <Clock {...styles.icon()} aria-label=\"Requested\" role=\"img\" />\n </dt>\n <dd>{date.format(props.request.created_at * 1000)} UTC</dd>\n </Inline>\n {props.request.ip ? (\n <Inline {...styles.row()} gap=\"12\">\n <dt>\n <Globe\n {...styles.icon()}\n aria-label=\"IP address\"\n role=\"img\"\n />\n </dt>\n <dd>{props.request.ip}</dd>\n </Inline>\n ) : null}\n </dl>\n <Button\n disabled={props.denying || Boolean(refusal)}\n loading={props.approving}\n onClick={props.onApprove}\n >\n Approve\n </Button>\n <Button\n disabled={props.approving}\n loading={props.denying}\n onClick={props.onDeny}\n variant=\"text\"\n >\n Deny\n </Button>\n {props.email ? (\n <p {...styles.note()}>\n Signed in as <strong>{props.email}</strong>.\n </p>\n ) : null}\n </Stack>\n )\n })()}\n\n {/* A failed decision outranks the refusal, whose only action is the denial that failed. */}\n {(() => {\n const error = props.error ?? (refusal ? refusals[refusal] : undefined)\n if (!error) return null\n return (\n <Callout id={`${id}-error`} intent=\"negative\">\n <Callout.Icon />\n <Callout.Content>{error}</Callout.Content>\n </Callout>\n )\n })()}\n </Stack>\n )\n}\n\nexport declare namespace DeviceApproval {\n type Props = {\n /** Whether the approval is in progress. */\n approving: boolean\n /** Whether the code field takes focus on mount. */\n autoFocus?: boolean | undefined\n /** The user code that the form starts with. */\n code: string\n /** Whether the denial is in progress. */\n denying: boolean\n /** The signed-in user's address. Absent, no account shows. */\n email?: string | undefined\n /** Why the read or the decision failed. */\n error?: string | undefined\n /** Whether the entered code's request is loading. */\n fetching: boolean\n /** `h1` by default, or `h4` on the flows canvas. */\n heading?: 'h1' | 'h4' | undefined\n /** Whether the code matched no request, which marks the field invalid. */\n invalid: boolean\n /** Approves the request, which signs the CLI in. */\n onApprove: () => void\n /** Denies the request. */\n onDeny: () => void\n /** Submits the entered user code. */\n onSubmitCode: (event: FormEvent<HTMLFormElement>) => void\n /** Why approval cannot sign the key. Replaces the key's own `refusal`. */\n refusal?: Refusal | undefined\n /** The CLI's request. Absent until the code matches one. */\n request?: Request | undefined\n /** Absent until the user decides. */\n status?: 'approved' | 'denied' | undefined\n }\n\n /** A requested key, as the device page shows it. */\n type Key = KeyAuthorization.Description & {\n /** Absent if approval can sign the key. */\n refusal?: Refusal | undefined\n }\n\n /**\n * Why approval cannot sign a key: a `foreign_account`, an owner `passkey` that the page cannot\n * use, `no_account`, or `unavailable` accounts.\n */\n type Refusal =\n | 'foreign_account'\n | 'no_account'\n | 'passkey'\n | 'unavailable'\n | 'upgrade'\n\n /** A device request, as `GET /v1/device/requests/:code` returns it. */\n type Request = {\n /** Absent if the app has no display name. */\n app?: { name: string } | undefined\n /** The message whose hash the key's signature covers. Absent if none. */\n challenge?: string | undefined\n /** Unix seconds. */\n created_at: number\n /** The name that the CLI reported, such as its hostname. Absent if none. */\n device?: string | undefined\n /** Absent if unknown. */\n ip?: string | undefined\n /** Absent if the CLI requests no key. */\n key_authorization?: Key | undefined\n /** The CLI's city and country. Absent if unknown. */\n location?: string | undefined\n /** The user code, such as `BCDF-GHJK`. */\n user_code: string\n }\n}\n\n/** The screen's text for each refusal. */\nconst refusals: Record<DeviceApproval.Refusal, string> = {\n foreign_account:\n \"The terminal requests a key for a Tempo Account that you do not hold. Deny the request, and start the sign-in again in the terminal as that account's owner.\",\n no_account:\n 'You have no Tempo Account for this app yet, so no account can approve the key. Deny the request, create an account, and try again.',\n passkey:\n 'This Tempo Account signs with a passkey that this page cannot use. Deny the request, and return to the terminal.',\n unavailable:\n 'Tempo ID cannot read your Tempo Account right now. Reload the page in a minute, or deny the request.',\n upgrade:\n 'This Tempo Account must upgrade to a configurable wallet on this chain before it approves keys. Deny the request, upgrade the wallet on your account page, and try again.',\n}\n\n/** Formats in UTC, so the server render and the browser agree. */\nconst date = new Intl.DateTimeFormat('en-US', {\n dateStyle: 'medium',\n timeStyle: 'short',\n timeZone: 'UTC',\n})\n\nnamespace styles {\n // IconChip has no 64 size, so the chip sets the size of the account screen's avatar. It sits apart\n // from the title, and an unverified app's chip takes the warning tint.\n export const avatar = style({\n borderRadius: 'full',\n fontSize: '24',\n height: '64',\n marginBottom: '12',\n width: '64',\n '&[data-verified=\"false\"]': {\n backgroundColor: 'amber.100',\n color: 'amber.900',\n },\n })\n\n export const challenge = style({\n backgroundColor: 'amber.100',\n borderRadius: '16',\n display: 'grid',\n gap: '8',\n padding: '16',\n })\n\n export const challengeText = style({\n color: 'foreground',\n typography: 'copy.14',\n })\n\n export const challengeTitle = style({\n color: 'amber.900',\n typography: 'label.14',\n })\n\n export const check = style({\n alignItems: 'center',\n backgroundColor: 'foreground',\n borderRadius: 'full',\n color: 'background.primary',\n display: 'inline-flex',\n flexShrink: 0,\n height: '24',\n justifyContent: 'center',\n width: '24',\n })\n\n export const column = style({\n maxWidth: '512',\n width: '100% !custom',\n })\n\n // A narrow measure wraps the app's name onto a second line.\n export const description = style({\n color: 'gray.900',\n maxWidth: '320',\n textWrap: 'balance',\n typography: 'copy.16',\n '& strong': { color: 'foreground', typography: 'copy.16.strong' },\n })\n\n export const device = style({ typography: 'copy.14.strong' })\n\n export const details = style({\n backgroundColor: 'gray.100',\n borderRadius: '16',\n display: 'grid',\n gap: '8',\n margin: '0',\n padding: '16',\n typography: 'copy.14',\n })\n\n export const header = style({ textAlign: 'center' })\n\n export const icon = style({\n color: 'gray.900',\n display: 'block',\n flexShrink: 0,\n height: '16',\n width: '16',\n })\n\n export const message = style({\n margin: '0',\n overflowWrap: 'anywhere',\n typography: 'copy.13.mono',\n whiteSpace: 'pre-wrap',\n })\n\n export const note = style({\n color: 'gray.900',\n textAlign: 'center',\n typography: 'copy.14',\n '& strong': { color: 'foreground', typography: 'copy.14.strong' },\n })\n\n export const row = style({ minWidth: '0', overflowWrap: 'anywhere' })\n\n export const source = style({ color: 'gray.900' })\n\n export const success = style({ typography: 'copy.16' })\n\n export const title = style({\n textWrap: 'balance',\n typography: 'heading.24',\n })\n\n export const unverified = style({\n borderRadius: '4',\n color: 'amber.900',\n outline: 'none',\n typography: 'copy.16.strong',\n whiteSpace: 'nowrap',\n ':focus-visible': {\n outline: '2px solid',\n outlineColor: 'blue.700',\n outlineOffset: '2',\n },\n })\n\n export const verified = style({\n display: 'inline',\n height: '16',\n outline: 'none',\n verticalAlign: 'middle',\n width: '16',\n ':focus-visible': {\n outline: '2px solid',\n outlineColor: 'blue.700',\n outlineOffset: '2',\n },\n })\n\n export const warning = style({\n display: 'inline',\n height: '16',\n marginInlineEnd: '4',\n verticalAlign: 'middle',\n width: '16',\n })\n}\n"],"ignoreList":[0,1,2],"mappings":"A,qfACA,SAAgBuB,EAAM,EAAO,CACzB,OAAA,EAAQvB,EAAAA,KAAAA,CAAM,MAAO,CAAE,MAAO,MAAO,OAAQ,MAAO,QAAS,YAAa,KAAM,OAAQ,MAAO,6BAA8B,cAAewB,EAAM,eAAiBA,EAAM,mBAAqB,IAAA,GAAY,GAAM,KAAMA,EAAM,eAAiBA,EAAM,mBAAqB,MAAQ,IAAA,GAAW,GAAGA,EAAO,SAAU,EAAA,EAACvB,EAAAA,IAAAA,CAAK,OAAQ,CAAE,EAAG,8SAA+S,KAAM,cAAe,CAAC,GAAA,EAAGA,EAAAA,IAAAA,CAAK,OAAQ,CAAE,SAAU,UAAW,SAAU,UAAW,EAAG,uYAAwY,KAAM,cAAe,CAAC,CAAC,CAAE,CAAC,CAC5mC,CCFA,SAAgBwB,EAAO,EAAO,CAC1B,OAAA,EAAQvB,EAAAA,IAAAA,CAAK,MAAO,CAAE,MAAO,MAAO,OAAQ,MAAO,QAAS,YAAa,KAAM,OAAQ,MAAO,6BAA8B,cAAesB,EAAM,eAAiBA,EAAM,mBAAqB,IAAA,GAAY,GAAM,KAAMA,EAAM,eAAiBA,EAAM,mBAAqB,MAAQ,IAAA,GAAW,GAAGA,EAAO,UAAA,EAAUtB,EAAAA,IAAAA,CAAK,OAAQ,CAAE,SAAU,UAAW,SAAU,UAAW,EAAG,8hBAA+hB,KAAM,cAAe,CAAC,CAAE,CAAC,CACt6B,CCFA,SAAgBwB,EAAY,EAAO,CAC/B,OAAA,EAAQvB,EAAA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@
|
|
|
1
|
-
import{A as e,E as t,H as n,J as r,N as i,Q as a,Qt as o,U as s,V as c,Vt as l,X as u,Z as d,a as f,c as p,et as m,i as h,j as g,l as _,m as v,o as y,p as b,pt as x,q as S,r as C,s as w,u as T,z as E}from"./accessKey-CxNqjouy.js";import{E as D,O as ee,w as te}from"./Bytes-YtuDjUWf.js";import{W as ne}from"./Authentication-Odm8-gfs.js";import{Gt as re,L as ie,at as ae,dt as O,h as oe,i as se,it as ce,m as k,n as le,on as A,pt as j,rn as ue,rt as de,t as fe,u as M,ut as N}from"./call-BaWxWyrp.js";var pe={defaultAdmin:`DEFAULT_ADMIN_ROLE`,pause:`PAUSE_ROLE`,unpause:`UNPAUSE_ROLE`,issuer:`ISSUER_ROLE`,burnBlocked:`BURN_BLOCKED_ROLE`,burnAt:`BURN_AT_ROLE`};function P(e){return e===`defaultAdmin`?`0x0000000000000000000000000000000000000000000000000000000000000000`:ne(te(pe[e]??e))}async function F(e,t){let{abi:n,address:r,args:i,functionName:a,dataSuffix:o=typeof e.dataSuffix==`string`?e.dataSuffix:e.dataSuffix?.value,...s}=t,c=N({abi:n,args:i,functionName:a});try{return await l(e,m,`estimateGas`)({data:`${c}${o?o.replace(`0x`,``):``}`,to:r,...s})}catch(e){let t=s.account?O(s.account):void 0;throw x(e,{abi:n,address:r,args:i,docsPath:`/docs/contract/estimateContractGas`,functionName:a,sender:t?.address})}}async function I(e,t){let{abi:n,address:r,args:i,functionName:a,dataSuffix:o=typeof e.dataSuffix==`string`?e.dataSuffix:e.dataSuffix?.value,...s}=t,c=s.account?O(s.account):e.account,u=N({abi:n,args:i,functionName:a});try{let{data:d}=await l(e,fe,`call`)({batch:!1,data:`${u}${o?o.replace(`0x`,``):``}`,to:r,...s,account:c});return{result:oe({abi:n,args:i,functionName:a,data:d||`0x`}),request:{abi:n.filter(e=>`name`in e&&e.name===t.functionName),address:r,args:i,dataSuffix:o,functionName:a,...s,account:c}}}catch(e){throw x(e,{abi:n,address:r,args:i,docsPath:`/docs/contract/simulateContract`,functionName:a,sender:c?.address})}}function me(e,t){return de(e,t)}async function L(e,t){let{account:n,authorizationList:r,allowFailure:i=!0,blockHash:a,blockNumber:o,blockOverrides:s,blockTag:c,requireCanonical:u,stateOverride:f}=t,p=t.contracts,m=typeof e.batch?.multicall==`object`?e.batch.multicall:{},h=t.batchSize??m.batchSize??1024,g=t.deployless??m.deployless??!1,_=(()=>{if(t.multicallAddress)return t.multicallAddress;if(g)return null;if(e.chain)return se({blockNumber:o,chain:e.chain,contract:`multicall3`});throw Error(`client chain not configured. multicallAddress is required.`)})(),v=[[]],y=0,b=0;for(let e=0;e<p.length;e++){let{abi:t,address:r,args:a,functionName:o}=p[e];try{let e=N({abi:t,args:a,functionName:o});b+=(e.length-2)/2,h>0&&b>h&&v[y].length>0&&(y++,b=(e.length-2)/2,v[y]=[]),v[y]=[...v[y],{allowFailure:!0,callData:e,target:r}]}catch(e){let s=x(e,{abi:t,address:r,args:a,docsPath:`/docs/contract/multicall`,functionName:o,sender:n});if(!i)throw s;v[y]=[...v[y],{allowFailure:!0,callData:`0x`,target:r}]}}let S=!!e.batch?.multicall,C=S?v.flatMap(e=>e.map(e=>[e])):v,w=await Promise.allSettled(C.map(t=>S?he(e,{account:n,authorizationList:r,batchSize:h,blockHash:a,blockNumber:o,blockOverrides:s,blockTag:c,call:t[0],multicallAddress:_,requireCanonical:u,stateOverride:f}).then(e=>[e]):l(e,d,`readContract`)({..._===null?{code:M}:{address:_},abi:k,account:n,args:[t],authorizationList:r,blockHash:a,blockNumber:o,blockOverrides:s,blockTag:c,functionName:`aggregate3`,requireCanonical:u,stateOverride:f}))),T=[];for(let e=0;e<w.length;e++){let t=w[e];if(t.status===`rejected`){if(!i)throw t.reason;for(let n=0;n<C[e].length;n++)T.push({status:`failure`,error:t.reason,result:void 0});continue}let n=t.value;for(let t=0;t<n.length;t++){let{returnData:r,success:a}=n[t],{callData:o}=C[e][t],{abi:s,address:c,functionName:l,args:u}=p[T.length];try{if(o===`0x`)throw new re;if(!a)throw new ie({data:r});let e=oe({abi:s,args:u,data:r,functionName:l});T.push(i?{result:e,status:`success`}:e)}catch(e){let t=x(e,{abi:s,address:c,args:u,docsPath:`/docs/contract/multicall`,functionName:l});if(!i)throw t;T.push({error:t,result:void 0,status:`failure`})}}}if(T.length!==p.length)throw new ue(`multicall results mismatch`);return T}async function he(e,t){let{batchSize:n,call:r,multicallAddress:i,...a}=t,{wait:o=0}=typeof e.batch?.multicall==`object`?e.batch.multicall:{},{schedule:s}=le({id:ce([`multicall`,e.uid,n,i,a]),wait:o,shouldSplitBatch(e){return n!==0&&e.reduce((e,{callData:t})=>e+(t.length-2)/2,0)>n},fn:t=>l(e,d,`readContract`)({...i===null?{code:M}:{address:i},...a,abi:k,args:[t],functionName:`aggregate3`})}),[c]=await s(r);return c}var ge=`0x0000000000000000000000000000000000000000`;function R(e,t){return{amount:e,decimals:t,formatted:s(e,t)}}function z(e,t){if(typeof e==`bigint`)return e;let n=e.decimals??t;return me(e.formatted,_e(n))}function _e(e){if(e===void 0)throw Error("Token decimals are required. Pass `amount.decimals` or select a declared token.");return e}async function B(e,t){return B.inner(S,e,t)}(function(e){async function t(t,n,r){return await b(t)(n,{...r,...e.call(n,r)})}e.inner=t;function n(...e){let[t,n]=w(e),{amount:r,spender:i,token:a}=n,{address:o,decimals:s}=p(t,{token:a});return C({address:o,abi:E,functionName:`approve`,args:[i,z(r,s)]})}e.call=n;async function r(t,n){return F(t,{...y(n),...e.call(t,n)})}e.estimateGas=r;async function i(t,n){return I(t,{...y(n),...e.call(t,n)})}e.simulate=i;function o(e){let[t]=a({abi:E,logs:e,eventName:`Approval`});if(!t)throw Error("`Approval` event not found.");return t}e.extractEvent=o})(B||={});async function V(e,t){return V.inner(S,e,t)}(function(e){async function t(t,n,r){let{amount:i,from:a,token:o,...s}=r,c=e.call(n,{amount:i,from:a,token:o});return await b(t)(n,{...s,...c})}e.inner=t;function n(...e){let[t,n]=w(e),{from:r,amount:i,token:a}=n,{address:o,decimals:s}=p(t,{token:a});return C({address:o,abi:E,functionName:`burnBlocked`,args:[r,z(i,s)]})}e.call=n;function r(e){let[t]=a({abi:E,logs:e,eventName:`BurnBlocked`});if(!t)throw Error("`BurnBlocked` event not found.");return t}e.extractEvent=r})(V||={});async function H(e,t){return H.inner(S,e,t)}(function(e){async function t(t,n,r){let{amount:i,from:a,memo:o,token:s,...c}=r,l=e.call(n,{amount:i,from:a,memo:o,token:s});return await b(t)(n,{...c,...l})}e.inner=t;function n(...e){let[t,n]=w(e),{amount:r,from:i,memo:a,token:o}=n,{address:s,decimals:c}=p(t,{token:o}),l=z(r,c);if(i)return C({address:s,abi:E,functionName:`burnAt`,args:[i,l]});let u=a?{functionName:`burnWithMemo`,args:[l,D(a,32)]}:{functionName:`burn`,args:[l]};return C({address:s,abi:E,...u})}e.call=n;function r(e){let[t]=a({abi:E,logs:e,eventName:[`Burn`,`BurnAt`]});if(!t)throw Error("`Burn` or `BurnAt` event not found.");return t}e.extractEvent=r})(H||={});async function U(e,t){return U.inner(S,e,t)}(function(e){async function t(t,n,r){let{policyId:i,token:a,...o}=r,s=e.call(n,{policyId:i,token:a});return await b(t)(n,{...o,...s})}e.inner=t;function n(...e){let[t,n]=w(e),{token:r,policyId:i}=n;return C({address:p(t,{token:r}).address,abi:E,functionName:`changeTransferPolicyId`,args:[i]})}e.call=n;function r(e){let[t]=a({abi:E,logs:e,eventName:`TransferPolicyUpdate`});if(!t)throw Error("`TransferPolicyUpdate` event not found.");return t}e.extractEvent=r})(U||={});async function W(e,t){return W.inner(S,e,t)}(function(n){async function r(e,t,r){let{account:i=t.account,admin:a=t.account,chain:o=t.chain,...s}=r,c=a?O(a):void 0;if(!c)throw Error(`admin is required.`);let l=n.call(t,{...s,admin:c.address});return await b(e)(t,{...r,account:i,chain:o,...l})}n.inner=r;function i(...n){let[r,i]=w(n),{name:a,symbol:o,currency:s,logoURI:l,quoteToken:u=t,admin:d,salt:f=ee(32)}=i;return C({address:e,abi:c,args:typeof l==`string`?[a,o,s,p(r,{token:u}).address,d,f,l]:[a,o,s,p(r,{token:u}).address,d,f],functionName:`createToken`})}n.call=i;function o(e){let[t]=a({abi:c,logs:e,eventName:`TokenCreated`,strict:!0});if(!t)throw Error("`TokenCreated` event not found.");return t}n.extractEvent=o})(W||={});async function G(e,t){let{account:n,decimals:r,spender:i,token:a,...o}=t,[s,{decimals:c}]=await Promise.all([b(d)(e,{...o,...G.call(e,{account:n,spender:i,token:a})}),_(e,{decimals:r,token:a})]);return R(s,c)}(function(e){function t(...e){let[t,n]=w(e);return C({address:p(t,n).address,abi:E,functionName:`allowance`,args:[n.account,n.spender]})}e.call=t})(G||={});async function K(e,t){let{account:n=e.account,decimals:r,token:i,...a}=t;if(!n)throw new u;let o=O(n).address,[s,{decimals:c}]=await Promise.all([b(d)(e,{...a,...K.call(e,{account:o,token:i})}),_(e,{decimals:r,token:i})]);return R(s,c)}(function(e){function t(...e){let[t,n]=w(e),r=n.account??t?.account;if(!r)throw new u;let i=O(r).address;return C({address:p(t,n).address,abi:E,functionName:`balanceOf`,args:[i]})}e.call=t})(K||={});async function ve(e,t){let{token:n,...r}=t,{address:i}=p(e,{token:n}),a=E,s=h(e,n),c={...s?.decimals==null?{}:{decimals:s.decimals},...s?.name==null?{}:{name:s.name},...s?.symbol==null?{}:{symbol:s.symbol}};return o(i)===o(`0x20c0000000000000000000000000000000000000`)?q(e,{...r,contracts:[{address:i,abi:a,functionName:`currency`},{address:i,abi:a,functionName:`decimals`},{address:i,abi:a,functionName:`logoURI`},{address:i,abi:a,functionName:`name`},{address:i,abi:a,functionName:`symbol`},{address:i,abi:a,functionName:`totalSupply`}]}).then(([e,t,n,r,i,a])=>({name:J(r),symbol:J(i),currency:J(e),decimals:J(t),logoURI:J(n,``),totalSupply:J(a),...c})):q(e,{...r,contracts:[{address:i,abi:a,functionName:`currency`},{address:i,abi:a,functionName:`decimals`},{address:i,abi:a,functionName:`logoURI`},{address:i,abi:a,functionName:`quoteToken`},{address:i,abi:a,functionName:`name`},{address:i,abi:a,functionName:`paused`},{address:i,abi:a,functionName:`supplyCap`},{address:i,abi:a,functionName:`symbol`},{address:i,abi:a,functionName:`totalSupply`},{address:i,abi:a,functionName:`transferPolicyId`}]}).then(([e,t,n,r,i,a,o,s,l,u])=>({name:J(i),symbol:J(s),currency:J(e),decimals:J(t),logoURI:J(n,``),quoteToken:J(r),totalSupply:J(l),paused:J(a),supplyCap:J(o),transferPolicyId:J(u),...c}))}async function q(e,t){if(e.batch?.multicall===void 0)return L(e,{...t,allowFailure:!0,deployless:!0});let{contracts:n,...r}=t;return(await Promise.allSettled(n.map(t=>b(d)(e,{...r,...t})))).map(e=>e.status===`fulfilled`?{result:e.value,status:`success`}:{error:e.reason,status:`failure`})}function J(e,...t){if(e.status===`failure`){if(t.length>0)return t[0];throw e.error}return e.result}async function Y(e,t){let{decimals:n,token:r,...i}=t,[a,{decimals:o}]=await Promise.all([b(d)(e,{...i,...Y.call(e,{token:r})}),_(e,{decimals:n,token:r})]);return R(a,o)}(function(e){function t(...e){let[t,n]=w(e);return C({address:p(t,n).address,abi:E,args:[],functionName:`totalSupply`})}e.call=t})(Y||={});async function X(e,t){return b(d)(e,{...t,...X.call(e,t)})}(function(e){function t(...e){let[t,n]=w(e),{role:r,token:i}=n;return C({address:p(t,{token:i}).address,abi:E,functionName:`getRoleAdmin`,args:[P(r)]})}e.call=t})(X||={});async function Z(e,t){let{account:n=e.account}=t,r=n?O(n).address:void 0;if(!r)throw Error(`account is required.`);return b(d)(e,{...t,...Z.call(e,{...t,account:r})})}(function(e){function t(...e){let[t,n]=w(e),{account:r,role:i,token:a}=n;return C({address:p(t,{token:a}).address,abi:E,functionName:`hasRole`,args:[r,P(i)]})}e.call=t})(Z||={});async function ye(e,t){return ye.inner(r,e,t)}(function(e){async function t(t,n,r){return await b(t)(n,{...r,calls:r.roles.map(t=>{let i=e.call(n,{...r,role:t});return{...i,data:N(i)}})})}e.inner=t;function n(...e){let[t,n]=w(e),{token:r,to:i,role:a}=n,o=P(a);return C({address:p(t,{token:r}).address,abi:E,functionName:`grantRole`,args:[o,i]})}e.call=n;function r(e){let t=a({abi:E,logs:e,eventName:`RoleMembershipUpdated`});if(t.length===0)throw Error("`RoleMembershipUpdated` events not found.");return t}e.extractEvents=r})(ye||={});async function be(e,t){return be.inner(S,e,t)}(function(e){async function t(t,n,r){let{amount:i,memo:a,to:o,token:s,...c}=r,l=e.call(n,{amount:i,memo:a,to:o,token:s});return await b(t,{hints:{Unauthorized:[`Minting requires the issuer role. Grant it to this account first.`]}})(n,{...c,...l})}e.inner=t;function n(...e){let[t,n]=w(e),{to:r,amount:i,memo:a,token:o}=n,{address:s,decimals:c}=p(t,{token:o}),l=z(i,c),u=a?{functionName:`mintWithMemo`,args:[r,l,D(a,32)]}:{functionName:`mint`,args:[r,l]};return C({address:s,abi:E,...u})}e.call=n;function r(e){let[t]=a({abi:E,logs:e,eventName:`Mint`});if(!t)throw Error("`Mint` event not found.");return t}e.extractEvent=r})(be||={});async function xe(e,t){return xe.inner(S,e,t)}(function(e){async function t(t,n,r){let{token:i,...a}=r,o=e.call(n,{token:i});return await b(t)(n,{...a,...o})}e.inner=t;function n(...e){let[t,n]=w(e),{token:r}=n;return C({address:p(t,{token:r}).address,abi:E,functionName:`pause`,args:[]})}e.call=n;function r(e){let[t]=a({abi:E,logs:e,eventName:`PauseStateUpdate`});if(!t)throw Error("`PauseStateUpdate` event not found.");return t}e.extractEvent=r})(xe||={});async function Se(e,t){return Se.inner(r,e,t)}(function(e){async function t(t,n,r){return await b(t)(n,{...r,calls:r.roles.map(t=>{let i=e.call(n,{...r,role:t});return{...i,data:N(i)}})})}e.inner=t;function n(...e){let[t,n]=w(e),{token:r,role:i}=n,a=P(i);return C({address:p(t,{token:r}).address,abi:E,functionName:`renounceRole`,args:[a]})}e.call=n;function r(e){let t=a({abi:E,logs:e,eventName:`RoleMembershipUpdated`});if(t.length===0)throw Error("`RoleMembershipUpdated` events not found.");return t}e.extractEvents=r})(Se||={});async function Ce(e,t){return Ce.inner(r,e,t)}(function(e){async function t(t,n,r){let{from:i,...a}=r;return await b(t)(n,{...a,calls:r.roles.map(t=>{let i=e.call(n,{...r,role:t});return{...i,data:N(i)}})})}e.inner=t;function n(...e){let[t,n]=w(e),{token:r,from:i,role:a}=n,o=P(a);return C({address:p(t,{token:r}).address,abi:E,functionName:`revokeRole`,args:[o,i]})}e.call=n;function r(e){let t=a({abi:E,logs:e,eventName:`RoleMembershipUpdated`});if(t.length===0)throw Error("`RoleMembershipUpdated` events not found.");return t}e.extractEvents=r})(Ce||={});async function we(e,t){return we.inner(S,e,t)}(function(e){async function t(t,n,r){let{supplyCap:i,token:a,...o}=r,s=e.call(n,{supplyCap:i,token:a});return await b(t)(n,{...o,...s})}e.inner=t;function n(...e){let[t,n]=w(e),{token:r,supplyCap:i}=n;return C({address:p(t,{token:r}).address,abi:E,functionName:`setSupplyCap`,args:[i]})}e.call=n;function r(e){let[t]=a({abi:E,logs:e,eventName:`SupplyCapUpdate`});if(!t)throw Error("`SupplyCapUpdate` event not found.");return t}e.extractEvent=r})(we||={});async function Te(e,t){return Te.inner(S,e,t)}(function(e){async function t(t,n,r){let{adminRole:i,role:a,token:o,...s}=r,c=e.call(n,{adminRole:i,role:a,token:o});return await b(t)(n,{...s,...c})}e.inner=t;function n(...e){let[t,n]=w(e),{token:r,role:i,adminRole:a}=n,o=P(i),s=P(a);return C({address:p(t,{token:r}).address,abi:E,functionName:`setRoleAdmin`,args:[o,s]})}e.call=n;function r(e){let[t]=a({abi:E,logs:e,eventName:`RoleAdminUpdated`});if(!t)throw Error("`RoleAdminUpdated` event not found.");return t}e.extractEvent=r})(Te||={});async function Ee(e,t){return Ee.inner(S,e,t)}(function(e){async function t(t,n,r){return await b(t)(n,{...r,...e.call(n,r)})}e.inner=t;function n(...e){let[t,n]=w(e),{from:r,memo:i,to:a,token:o}=n,{address:s,decimals:c}=p(t,{token:o}),l=z(n.amount,c),u=i&&r?{functionName:`transferFromWithMemo`,args:[r,a,l,D(i,32)]}:i?{functionName:`transferWithMemo`,args:[a,l,D(i,32)]}:r?{functionName:`transferFrom`,args:[r,a,l]}:{functionName:`transfer`,args:[a,l]};return C({address:s,abi:E,...u})}e.call=n;async function r(t,n){return F(t,{...y(n),...e.call(t,n)})}e.estimateGas=r;async function i(t,n){return I(t,{...y(n),...e.call(t,n)})}e.simulate=i;function o(e){let[t]=a({abi:E,logs:e,eventName:`Transfer`});if(!t)throw Error("`Transfer` event not found.");return t}e.extractEvent=o})(Ee||={});async function De(e,t){return De.inner(S,e,t)}(function(e){async function t(t,n,r){let{token:i,...a}=r,o=e.call(n,{token:i});return await b(t)(n,{...a,...o})}e.inner=t;function n(...e){let[t,n]=w(e),{token:r}=n;return C({address:p(t,{token:r}).address,abi:E,functionName:`unpause`,args:[]})}e.call=n;function r(e){let[t]=a({abi:E,logs:e,eventName:`PauseStateUpdate`});if(!t)throw Error("`PauseStateUpdate` event not found.");return t}e.extractEvent=r})(De||={});async function Oe(e,t){return Oe.inner(S,e,t)}(function(e){async function t(t,n,r){let{quoteToken:i,token:a,...o}=r,s=e.call(n,{quoteToken:i,token:a});return await b(t)(n,{...o,...s})}e.inner=t;function n(...e){let[t,n]=w(e),{token:r,quoteToken:i}=n;return C({address:p(t,{token:r}).address,abi:E,functionName:`setNextQuoteToken`,args:[p(t,{token:i}).address]})}e.call=n;function r(e){let[t]=a({abi:E,logs:e,eventName:`NextQuoteTokenSet`});if(!t)throw Error("`NextQuoteTokenSet` event not found.");return t}e.extractEvent=r})(Oe||={});async function ke(e,t){return ke.inner(S,e,t)}(function(e){async function t(t,n,r){let{token:i,...a}=r,o=e.call(n,{token:i});return await b(t)(n,{...a,...o})}e.inner=t;function n(...e){let[t,n]=w(e),{token:r}=n;return C({address:p(t,{token:r}).address,abi:E,functionName:`completeQuoteTokenUpdate`,args:[]})}e.call=n;function r(e){let[t]=a({abi:E,logs:e,eventName:`QuoteTokenUpdate`});if(!t)throw Error("`QuoteTokenUpdateCompleted` event not found.");return t}e.extractEvent=r})(ke||={});var Ae=class extends v{constructor(e){let{decimals:t}=e,[n,r,i]=e.error.args;super(e,{details:{token:i,available:T(n,t),required:T(r,t),shortfall:T(r-n,t)},name:`TokenInsufficientBalanceError`,shortMessage:`Insufficient balance of token "${i}".`}),Object.defineProperty(this,"available",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"decimals",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"token",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.available=n,this.decimals=t,this.required=r,this.token=i}},je=class extends v{constructor(e){let{allowance:t,amount:n,decimals:r,owner:i,spender:a,token:o}=e;super(e,{details:{token:o,owner:i,spender:a,allowance:T(t,r),amount:T(n,r)},name:`TokenInsufficientAllowanceError`,shortMessage:`Spender "${a}" has an insufficient allowance from "${i}" for token "${o}".`}),Object.defineProperty(this,"allowance",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"amount",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"decimals",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"owner",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"spender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"token",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.allowance=t,this.amount=n,this.decimals=r,this.owner=i,this.spender=a,this.token=o}},Me=class extends v{constructor(e){let{amount:t,decimals:n,supplyCap:r,token:i,totalSupply:a}=e;super(e,{details:{token:i,amount:T(t,n),"total supply":T(a,n),"supply cap":T(r,n),"mintable amount":r!==void 0&&a!==void 0?T(r-a,n):void 0},name:`TokenSupplyCapExceededError`,shortMessage:`Minting exceeds the supply cap of token "${i}".`}),Object.defineProperty(this,"amount",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"decimals",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"supplyCap",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"token",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"totalSupply",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.amount=t,this.decimals=n,this.supplyCap=r,this.token=i,this.totalSupply=a}},Ne=class extends v{constructor(e){let{from:t,policyId:n,recipientAuthorized:r,senderAuthorized:i,to:a,token:o}=e,s=i===!1?`sender "${t}"`:r===!1?`recipient "${a}"`:`this transfer`;super(e,{details:{token:o,policy:n,from:t,to:a,"sender authorized":i?.toString(),"recipient authorized":r?.toString()},name:`TokenPolicyForbidsError`,shortMessage:`The transfer policy of token "${o}" forbids ${s}.`}),Object.defineProperty(this,"from",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"policyId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"recipientAuthorized",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"senderAuthorized",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"to",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"token",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.from=t,this.policyId=n,this.recipientAuthorized=r,this.senderAuthorized=i,this.to=a,this.token=o}},Pe=class extends v{constructor(e){super(e,{name:`TokenPausedError`,shortMessage:`Token "${e.token}" is paused.`}),Object.defineProperty(this,"token",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.token=e.token}},Fe=class extends v{constructor(e){let{account:t,role:n,token:r}=e;super(e,{details:{token:r,account:t,role:n},name:`TokenUnauthorizedError`,shortMessage:`Account "${t}" does not have the "${n}" role on token "${r}".`}),Object.defineProperty(this,"account",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"role",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"token",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.account=t,this.role=n,this.token=r}},Ie={burn:`issuer`,burnAt:`burnAt`,burnBlocked:`burnBlocked`,burnWithMemo:`issuer`,changeTransferPolicyId:`defaultAdmin`,completeQuoteTokenUpdate:`defaultAdmin`,mint:`issuer`,mintWithMemo:`issuer`,pause:`pause`,setLogoURI:`defaultAdmin`,setNextQuoteToken:`defaultAdmin`,setSupplyCap:`defaultAdmin`,unpause:`unpause`},Le={"ContractPaused()":({base:e,call:t})=>f(t?.address)?new Pe({...e,token:t.address}):void 0,"InsufficientAllowance()":async e=>{let{base:t,call:n,signer:r}=e,i=n?.arg(`from`);if(!f(n?.address)||!i||!r)return;let a=n.address,[o,s]=await e.read([{address:a,abi:E,functionName:`allowance`,args:[i,r.address]},{address:a,abi:E,functionName:`decimals`}]);return new je({...t,allowance:o?.result,amount:n.arg(`amount`),decimals:s?.result,owner:i,spender:r.address,token:a})},"InsufficientBalance(uint256,uint256,address)":async e=>{let t=e.base.error.args?.[2];if(!t)return;let[n]=await e.read([{address:t,abi:E,functionName:`decimals`}]);return new Ae({...e.base,decimals:n?.result})},"PolicyForbids()":async e=>{let{base:t,call:r,signer:i}=e;if(!f(r?.address))return;let a=r.address,o=r.functionName.startsWith(`mint`),s=o?void 0:r.arg(`from`)??i?.address,c=r.arg(`to`),[l]=await e.read([{address:a,abi:E,functionName:`transferPolicyId`}]),u={address:g,abi:n},[d,p]=l?.result===void 0?[]:await e.read([{...u,functionName:`isAuthorizedSender`,args:[l.result,s??`0x0000000000000000000000000000000000000000`]},{...u,functionName:o?`isAuthorizedMintRecipient`:`isAuthorizedRecipient`,args:[l.result,c??`0x0000000000000000000000000000000000000000`]}]);return new Ne({...t,from:s,policyId:l?.result,recipientAuthorized:c?p?.result:void 0,senderAuthorized:s?d?.result:void 0,to:c,token:a})},"SupplyCapExceeded()":async e=>{let{base:t,call:n}=e;if(!f(n?.address))return;let r=n.address,[i,a,o]=await e.read([{address:r,abi:E,functionName:`supplyCap`},{address:r,abi:E,functionName:`totalSupply`},{address:r,abi:E,functionName:`decimals`}]);return new Me({...t,amount:n.arg(`amount`),decimals:o?.result,supplyCap:i?.result,token:r,totalSupply:a?.result})},"Unauthorized()":({base:e,call:t,signer:n})=>{let r=t&&Ie[t.functionName];if(f(t?.address)&&r&&n)return new Fe({...e,account:n.address,role:r,token:t.address})}},Q={"AbdicationAlreadyScheduled(uint8)":`Abdication is already scheduled for capability {0}.`,"AccountAlreadyConfigurable()":`The account is already a configurable account.`,"AccountHasCode()":`Accounts with code cannot be upgraded.`,"AccountNotAllowed(address)":`Account {0} is not allowed.`,"ActiveLeaderRemoved()":`The active leader cannot be removed.`,"AddressAlreadyHasValidator()":`This address already has a validator.`,"AddressNotReserved()":`Address is not reserved.`,"AddressReserved()":`Address is reserved.`,"AlreadyInitialized()":`Already initialized.`,"AmountExceedsDeposit()":`Amount exceeds deposit.`,"AmountNotIncreasing()":`Amount is not increasing.`,"BelowMinimumOrderSize(uint128)":`Order size is below the minimum allowed ({0}).`,"CallNotAllowed()":`This call is not allowed.`,"CallbackDidNotReturnToZone()":`The callback did not return to the zone.`,"CallbackRejected()":`The callback was rejected.`,"CannotChangeWithinBlock()":`Cannot change within the same block.`,"CapabilityAbdicated(uint8)":`Capability {0} has been abdicated.`,"CaptureAmountInvalid()":`Capture amount is invalid.`,"ChannelAlreadyExists()":`Channel already exists.`,"ChannelNotFound()":`Channel not found.`,"CloseNotReady()":`Channel is not ready to close.`,"ContractPaused()":`Contract is paused.`,"DepositBlockCapacityExceeded(uint64)":`The deposit capacity per block exceeds the maximum ({0}).`,"DepositOverflow()":`Deposit overflow.`,"DepositTooSmall()":`The deposit is too small.`,"DepositsNotActive()":`Deposits are not active.`,"DivisionByZero()":`Division by zero.`,"DuplicateAllowedAccount()":`The allowed account is duplicated.`,"DuplicateOwner()":`The owner is duplicated.`,"DuplicateZoneGateway()":`The zone gateway is duplicated.`,"EmptyV1ValidatorSet()":`Validator set is empty.`,"EncryptionKeyExpired(uint256,uint64,uint64)":`Encryption key {0} has expired.`,"ExpiringNonceHashNotSet()":`Expiring nonce hash is not set.`,"ExpiringNonceReplay()":`Expiring nonce has already been used.`,"ExpiringNonceSetFull()":`Expiring nonce set is full.`,"ExpiryInPast()":`Expiry is in the past.`,"GasFeeRateTooHigh()":`The gas fee rate is too high.`,"IdenticalAddresses()":`Addresses must be different.`,"IdenticalTokens()":`Cannot swap a token for itself — input and output tokens must be different.`,"IncompatiblePolicyType()":`Incompatible policy type.`,"IndexAlreadySet()":`The index is already set.`,"IngressAlreadyExists(string)":`Ingress "{0}" already exists.`,"InsufficientAllowance()":`Insufficient allowance.`,"InsufficientBalance()":`Insufficient balance.`,"InsufficientBalance(uint256,uint256,address)":`Insufficient balance. Required: {1}, available: {0}.`,"InsufficientFeeTokenBalance()":`Insufficient fee token balance.`,"InsufficientLiquidity()":`Not enough liquidity in the order book to fill this trade.`,"InsufficientOutput()":`The output amount is below the slippage minimum — try increasing slippage tolerance.`,"InsufficientReserves()":`Insufficient reserves.`,"InvalidAccount()":`Invalid account.`,"InvalidAdmin()":`Invalid administrator.`,"InvalidAmount()":`Invalid amount.`,"InvalidBaseToken()":`This token is not a valid base token for the requested pair.`,"InvalidBouncebackRecipient()":`Invalid bounceback recipient.`,"InvalidCallScope()":`Invalid call scope.`,"InvalidCallbackTarget()":`Invalid callback target.`,"InvalidCiphertextLength(uint256,uint256)":`Invalid ciphertext length. Expected {1}, got {0}.`,"InvalidClaimAddress()":`Invalid claim address.`,"InvalidClosedLoopConfig()":`Invalid closed-loop configuration.`,"InvalidConfig()":`Invalid configuration.`,"InvalidConfigurableAccountOwner()":`Invalid owner.`,"InvalidCurrency()":`Invalid currency.`,"InvalidDepositTransition()":`Invalid deposit transition.`,"InvalidEncryptionKeyIndex(uint256)":`Invalid encryption key index ({0}).`,"InvalidEphemeralPubkey()":`Invalid ephemeral public key.`,"InvalidExpiringNonceExpiry()":`Invalid expiring nonce expiry.`,"InvalidFlipTick()":`The flip-order price tick is invalid.`,"InvalidFormat()":`Invalid format.`,"InvalidKeyAuthorizationWitness()":`Invalid key authorization witness.`,"InvalidKeyId()":`Invalid key ID.`,"InvalidLeader()":`Invalid leader.`,"InvalidLogoURI()":`Invalid logo URI.`,"InvalidMasterAddress()":`Invalid master address.`,"InvalidMigrationIndex()":`Invalid migration index.`,"InvalidMode()":`Invalid mode.`,"InvalidNonceKey()":`Invalid nonce key.`,"InvalidOwner()":`Invalid owner.`,"InvalidOwnerOrder()":`Invalid owner order.`,"InvalidPayee()":`Invalid payee.`,"InvalidPayload()":`Invalid payload.`,"InvalidPolicyType()":`Invalid policy type.`,"InvalidProof()":`Invalid proof.`,"InvalidProofOfPossession()":`Invalid proof of possession.`,"InvalidPublicKey()":`Invalid public key.`,"InvalidQuorumCertificate()":`Invalid quorum certificate.`,"InvalidQuoteToken()":`Invalid quote token.`,"InvalidReceipt()":`Invalid receipt.`,"InvalidReceivePolicyType()":`Invalid receive policy type.`,"InvalidRecipient()":`Invalid recipient.`,"InvalidRecoveryAuthority()":`Invalid recovery authority.`,"InvalidSequencerSet()":`Invalid sequencer set.`,"InvalidSignature()":`Invalid signature.`,"InvalidSignatureFormat()":`Invalid signature format.`,"InvalidSignatureType()":`Invalid signature type.`,"InvalidSpendingLimit()":`Invalid spending limit.`,"InvalidSupplyCap()":`Invalid supply cap.`,"InvalidSwapCalculation()":`Invalid swap calculation.`,"InvalidTempoBlockNumber()":`Invalid Tempo block number.`,"InvalidThreshold()":`Invalid threshold.`,"InvalidTick()":`The price tick is invalid.`,"InvalidToken()":`This token is not supported on the exchange.`,"InvalidTokenEnablementTransition()":`Invalid token enablement transition.`,"InvalidTransferPolicyId()":`Invalid transfer policy.`,"InvalidValidatorAddress()":`Invalid validator address.`,"InvalidWeight()":`Invalid weight.`,"KeyAlreadyExists()":`Key already exists.`,"KeyAlreadyRevoked()":`Key has already been revoked.`,"KeyAuthorizationWitnessAlreadyBurned()":`Key authorization witness has already been burned.`,"KeyExpired()":`Key has expired.`,"KeyNotFound()":`Key not found.`,"LeaderAlreadyUpdatedThisBlock()":`The leader has already been updated in this block.`,"LegacyAuthorizeKeySelectorChanged(bytes4)":`Legacy authorize key selector changed to {0}.`,"LogoURITooLong()":`Logo URI is too long.`,"MasterIdCollision(address)":`Master ID collision with {0}.`,"MaxInputExceeded()":`The required input exceeds the slippage maximum — try increasing slippage tolerance.`,"MigrationNotComplete()":`Migration is not complete.`,"MustDelegateCall()":`A delegate call is required.`,"NoEncryptionKeyAtBlock(uint64)":`No encryption key exists at block {0}.`,"NoEncryptionKeySet()":`No encryption key is set.`,"NoOptedInSupply()":`No opted-in supply.`,"NonceOverflow()":`Nonce overflow.`,"NotAdmin()":`The caller is not the administrator.`,"NotFactory()":`The caller is not the factory.`,"NotHostPort(string,string,string)":`"{1}" is not a valid host:port for {0}.`,"NotInitialized()":`Not initialized.`,"NotIp(string,string)":`"{0}" is not a valid IP address.`,"NotIpPort(string,string)":`"{0}" is not a valid IP:port.`,"NotIpPort(string,string,string)":`"{1}" is not a valid IP:port for {0}.`,"NotOwner()":`The caller is not an owner.`,"NotPauseAuthority()":`The caller is not the pause authority.`,"NotPayeeOrOperator()":`Not payee or operator.`,"NotPayer()":`Not payer.`,"NotPendingAdmin()":`The caller is not the pending administrator.`,"NotSelf()":`The caller must be the contract itself.`,"NotSequencer()":`The caller is not a sequencer.`,"OnlyDirectCall()":`A direct call is required.`,"OrderDoesNotExist()":`No order exists with the given ID.`,"OrderNotStale()":`This order is not yet eligible for stale-cleanup.`,"PairAlreadyExists()":`A trading pair for these tokens has already been created.`,"PairDoesNotExist()":`No trading pair exists for these tokens.`,"PermitExpired()":`Permit has expired.`,"PolicyForbids()":`Forbidden by policy.`,"PolicyNotFound()":`Policy not found.`,"PolicyNotSimple()":`Policy is not a simple policy.`,"PortalIsPaused()":`The portal is paused.`,"PrimitiveRootRequired()":`The root key must sign the upgrade transaction.`,"ProofOfWorkFailed()":`Proof of work failed.`,"ProtectedAddress()":`Address is protected.`,"ProtocolNonceNotSupported()":`Protocol nonce is not supported.`,"PublicKeyAlreadyExists()":`Public key already exists.`,"ReentrantWithdrawal()":`Reentrant withdrawals are not allowed.`,"RootKeyRetired(address)":`The root key of {0} is retired.`,"SequencerConfigurationUnchanged()":`The sequencer configuration is unchanged.`,"SignatureTypeMismatch(uint8,uint8)":`Signature type mismatch. Expected {0}, got {1}.`,"SpendingLimitExceeded()":`Spending limit exceeded.`,"StaleLeadershipEpoch(uint64,uint64)":`Stale leadership epoch. Expected {0}, got {1}.`,"SupplyCapExceeded()":`Supply cap exceeded.`,"TickOutOfBounds(int16)":`Price tick {0} is outside the allowed range.`,"TokenAlreadyEnabled()":`The token is already enabled.`,"TokenAlreadyExists(address)":`Token {0} already exists.`,"TokenEnablementBlockCapacityExceeded(uint64)":`The token enablement capacity per block exceeds the maximum ({0}).`,"TokenEnablementCursorNotInitialized()":`The token enablement cursor is not initialized.`,"TokenMetadataTooLong()":`Token metadata is too long.`,"TokenNotEnabled()":`The token is not enabled.`,"TokenTransferPolicyNotSet()":`The token transfer policy is not set.`,"TooManyOwners()":`There are too many owners.`,"TransferFailed()":`The transfer failed.`,"Unauthorized()":`Unauthorized.`,"UnauthorizedCaller()":`Unauthorized caller.`,"UnauthorizedClaimer()":`Unauthorized claimer.`,"UnauthorizedConfigurableAccountCaller()":`Unauthorized configurable account caller.`,"Uninitialized()":`Uninitialized.`,"UpgradeMustBeOnlyCall()":`The upgrade must be the only call in the transaction.`,"ValidatorAlreadyDeactivated()":`Validator is already deactivated.`,"ValidatorAlreadyExists()":`Validator already exists.`,"ValidatorNotFound()":`Validator not found.`,"VirtualAddressNotAllowed()":`Virtual address is not allowed.`,"VirtualAddressUnregistered()":`Virtual address is not registered.`,"ZeroDeposit()":`Deposit cannot be zero.`,"ZeroPublicKey()":`Public key cannot be zero.`},Re={"CallNotAllowed()":[`The access key's scopes do not allow this target, selector, or recipient.`,`Authorize an access key whose scopes include this call.`],"ContractPaused()":[`The token is paused. An account with the unpause role can unpause it.`],"ExpiringNonceReplay()":[`Resend the transaction with a new nonce.`],"ExpiryInPast()":[`Set the expiry to a future time.`],"InsufficientAllowance()":[`Approve the spender for at least this amount.`],"InsufficientBalance(uint256,uint256,address)":[`Fund the account or lower the amount.`],"InsufficientFeeTokenBalance()":[`Fund the account with the fee token, or pay fees with another token.`],"KeyAlreadyExists()":[`Use a new access key, or revoke the existing one.`],"KeyAlreadyRevoked()":[`Revoked access keys cannot be used or re-authorized. Authorize a new access key.`],"KeyExpired()":[`Authorize a new access key.`],"KeyNotFound()":[`Authorize the access key first, or authorize it in the same transaction with a key authorization.`],"PolicyForbids()":[`The token transfer policy forbids this sender or recipient.`],"SpendingLimitExceeded()":[`Raise the spending limit, or wait for a periodic limit to reset.`],"UnauthorizedCaller()":[`Sign with the root key or an admin access key.`],"AmountExceedsDeposit()":[`Top up the channel, or use a voucher for a smaller amount.`],"AmountNotIncreasing()":[`Use a voucher with a higher cumulative amount than the amount already settled.`],"BelowMinimumOrderSize(uint128)":[`Place a larger order.`],"ChannelNotFound()":[`Check the channel details, or open the channel first.`],"CloseNotReady()":[`Request a close, then wait for the grace period to end before withdrawing.`],"InsufficientBalance()":[`Deposit more of the token, or lower the amount.`],"InsufficientLiquidity()":[`Use a smaller amount.`],"InsufficientOutput()":[`Lower the minimum output amount, or sell a smaller amount.`],"InsufficientReserves()":[`Use a smaller amount.`],"InvalidExpiringNonceExpiry()":[`Set the transaction expiry to a time in the near future.`],"InvalidFlipTick()":[`Choose a flip tick on the correct side of the order tick.`],"MaxInputExceeded()":[`Raise the maximum input amount, or buy a smaller amount.`],"OrderDoesNotExist()":[`Check the order ID. Filled and cancelled orders no longer exist.`],"OrderNotStale()":[`Only orders whose maker lost authorization can be cancelled as stale.`],"PairDoesNotExist()":[`Create the trading pair first.`],"PolicyNotFound()":[`Check the policy ID, or create the policy first.`],"SignatureTypeMismatch(uint8,uint8)":[`Sign with the same key type the access key was authorized with.`],"SupplyCapExceeded()":[`Mint a smaller amount, or raise the supply cap.`],"TickOutOfBounds(int16)":[`Use a tick within the allowed range.`],"Unauthorized()":[`The account lacks the permission this call requires.`],"AccountAlreadyConfigurable()":["The account is already configurable. Rotate its owners with `updateConfig` instead."],"AccountHasCode()":[`Only accounts without code or delegation can be upgraded in place.`],"PrimitiveRootRequired()":[`Send the upgrade from the account's root key, not an access key or another account.`],"RootKeyRetired(address)":[`The account was upgraded to a configurable account. Sign with its owners instead of the retired root key.`],"UnauthorizedConfigurableAccountCaller()":[`Only the configurable account can update its own configuration.`],"UpgradeMustBeOnlyCall()":["Send `upgradeAccount` as the only call, without a key authorization or authorization list."]};function ze(e,t){return t?e.replace(/\{(\d+)\}/g,(e,n)=>{let r=t[Number(n)];return r===void 0?`{${n}}`:String(r)}):e}function Be(e){let t=typeof e==`string`?{data:e,message:`Unknown execution error.`}:e,n=He(t),r=Object.getOwnPropertyDescriptors(t);`stack`in t&&(r.stack={configurable:r.stack?.configurable??!0,enumerable:r.stack?.enumerable??!1,value:t.stack,writable:r.stack?.writable??!0});for(let[e,t]of Object.entries(Object.getOwnPropertyDescriptors(n)))r[e]={...t,enumerable:r[e]?.enumerable??!0};return Object.create(Object.getPrototypeOf(t),r)}function Ve(e){return e.errorName===`unknown`?{errorName:`unknown`,message:e.message}:{errorName:e.errorName,abiItem:e.abiItem,message:e.message,data:e.data}}function $(e,t=new Set){if(!e||typeof e!=`object`||t.has(e))return null;t.add(e);let n=e;if(typeof n.data==`string`&&/^0x(?:[\da-f]{2})*$/i.test(n.data))return n.data;for(let e of[n.data,n.cause,n.error]){let n=$(e,t);if(n)return n}if(typeof n.walk==`function`){let e=n.walk(e=>typeof e.data==`string`);if(e)return $(e,t)}return null}function He(e){let t=e.details??e.shortMessage??e.message,n=$(e);if(n)try{let e=ae({abi:i,data:n}),r=Q[A(e.abiItem)];return{...e,data:n,message:r?ze(r,e.args):t.replace(/^execution reverted:\s*/i,``)}}catch{if(n.length===10){let e=i.find(e=>e.type===`error`&&j(A(e))===n.toLowerCase());if(e?.type===`error`)return{abiItem:e,args:void 0,data:n,errorName:e.name,message:Q[A(e)]}}}let r=/\b(\w+)\(\1\)/.exec(t),a=r?i.find(e=>e.name===r[1]&&e.inputs.length===0):void 0;if(a)return{abiItem:a,args:void 0,data:j(A(a)),errorName:a.name,message:Q[A(a)]};let o=/:\s*(\w+)\(([^)]*)\)/.exec(t);if(o){let e=Object.entries(Q).filter(([e])=>e.startsWith(`${o[1]}(`)),t=o[2]===``?Q[`${o[1]}()`]:e.length===1?e[0]?.[1]:void 0;if(t)return{errorName:`unknown`,message:t}}return{errorName:`unknown`,message:t.replace(/^execution reverted:\s*/i,``)}}export{Le as a,ge as c,Ve as i,L as l,Re as n,K as o,Q as r,ve as s,Be as t};
|
|
2
|
-
//# sourceMappingURL=ExecutionError-
|
|
1
|
+
import{A as e,E as t,H as n,J as r,N as i,Q as a,Qt as o,U as s,V as c,Vt as l,X as u,Z as d,a as f,c as p,et as m,i as h,j as g,l as _,m as v,o as y,p as b,pt as x,q as S,r as C,s as w,u as T,z as E}from"./accessKey-DlBe71R7.js";import{E as D,O as ee,w as te}from"./Bytes-YtuDjUWf.js";import{W as ne}from"./Authentication-BJgy8lyC.js";import{Gt as re,L as ie,at as ae,dt as O,h as oe,i as se,it as ce,m as k,n as le,on as A,pt as j,rn as ue,rt as de,t as fe,u as M,ut as N}from"./call-BaWxWyrp.js";var pe={defaultAdmin:`DEFAULT_ADMIN_ROLE`,pause:`PAUSE_ROLE`,unpause:`UNPAUSE_ROLE`,issuer:`ISSUER_ROLE`,burnBlocked:`BURN_BLOCKED_ROLE`,burnAt:`BURN_AT_ROLE`};function P(e){return e===`defaultAdmin`?`0x0000000000000000000000000000000000000000000000000000000000000000`:ne(te(pe[e]??e))}async function F(e,t){let{abi:n,address:r,args:i,functionName:a,dataSuffix:o=typeof e.dataSuffix==`string`?e.dataSuffix:e.dataSuffix?.value,...s}=t,c=N({abi:n,args:i,functionName:a});try{return await l(e,m,`estimateGas`)({data:`${c}${o?o.replace(`0x`,``):``}`,to:r,...s})}catch(e){let t=s.account?O(s.account):void 0;throw x(e,{abi:n,address:r,args:i,docsPath:`/docs/contract/estimateContractGas`,functionName:a,sender:t?.address})}}async function I(e,t){let{abi:n,address:r,args:i,functionName:a,dataSuffix:o=typeof e.dataSuffix==`string`?e.dataSuffix:e.dataSuffix?.value,...s}=t,c=s.account?O(s.account):e.account,u=N({abi:n,args:i,functionName:a});try{let{data:d}=await l(e,fe,`call`)({batch:!1,data:`${u}${o?o.replace(`0x`,``):``}`,to:r,...s,account:c});return{result:oe({abi:n,args:i,functionName:a,data:d||`0x`}),request:{abi:n.filter(e=>`name`in e&&e.name===t.functionName),address:r,args:i,dataSuffix:o,functionName:a,...s,account:c}}}catch(e){throw x(e,{abi:n,address:r,args:i,docsPath:`/docs/contract/simulateContract`,functionName:a,sender:c?.address})}}function me(e,t){return de(e,t)}async function L(e,t){let{account:n,authorizationList:r,allowFailure:i=!0,blockHash:a,blockNumber:o,blockOverrides:s,blockTag:c,requireCanonical:u,stateOverride:f}=t,p=t.contracts,m=typeof e.batch?.multicall==`object`?e.batch.multicall:{},h=t.batchSize??m.batchSize??1024,g=t.deployless??m.deployless??!1,_=(()=>{if(t.multicallAddress)return t.multicallAddress;if(g)return null;if(e.chain)return se({blockNumber:o,chain:e.chain,contract:`multicall3`});throw Error(`client chain not configured. multicallAddress is required.`)})(),v=[[]],y=0,b=0;for(let e=0;e<p.length;e++){let{abi:t,address:r,args:a,functionName:o}=p[e];try{let e=N({abi:t,args:a,functionName:o});b+=(e.length-2)/2,h>0&&b>h&&v[y].length>0&&(y++,b=(e.length-2)/2,v[y]=[]),v[y]=[...v[y],{allowFailure:!0,callData:e,target:r}]}catch(e){let s=x(e,{abi:t,address:r,args:a,docsPath:`/docs/contract/multicall`,functionName:o,sender:n});if(!i)throw s;v[y]=[...v[y],{allowFailure:!0,callData:`0x`,target:r}]}}let S=!!e.batch?.multicall,C=S?v.flatMap(e=>e.map(e=>[e])):v,w=await Promise.allSettled(C.map(t=>S?he(e,{account:n,authorizationList:r,batchSize:h,blockHash:a,blockNumber:o,blockOverrides:s,blockTag:c,call:t[0],multicallAddress:_,requireCanonical:u,stateOverride:f}).then(e=>[e]):l(e,d,`readContract`)({..._===null?{code:M}:{address:_},abi:k,account:n,args:[t],authorizationList:r,blockHash:a,blockNumber:o,blockOverrides:s,blockTag:c,functionName:`aggregate3`,requireCanonical:u,stateOverride:f}))),T=[];for(let e=0;e<w.length;e++){let t=w[e];if(t.status===`rejected`){if(!i)throw t.reason;for(let n=0;n<C[e].length;n++)T.push({status:`failure`,error:t.reason,result:void 0});continue}let n=t.value;for(let t=0;t<n.length;t++){let{returnData:r,success:a}=n[t],{callData:o}=C[e][t],{abi:s,address:c,functionName:l,args:u}=p[T.length];try{if(o===`0x`)throw new re;if(!a)throw new ie({data:r});let e=oe({abi:s,args:u,data:r,functionName:l});T.push(i?{result:e,status:`success`}:e)}catch(e){let t=x(e,{abi:s,address:c,args:u,docsPath:`/docs/contract/multicall`,functionName:l});if(!i)throw t;T.push({error:t,result:void 0,status:`failure`})}}}if(T.length!==p.length)throw new ue(`multicall results mismatch`);return T}async function he(e,t){let{batchSize:n,call:r,multicallAddress:i,...a}=t,{wait:o=0}=typeof e.batch?.multicall==`object`?e.batch.multicall:{},{schedule:s}=le({id:ce([`multicall`,e.uid,n,i,a]),wait:o,shouldSplitBatch(e){return n!==0&&e.reduce((e,{callData:t})=>e+(t.length-2)/2,0)>n},fn:t=>l(e,d,`readContract`)({...i===null?{code:M}:{address:i},...a,abi:k,args:[t],functionName:`aggregate3`})}),[c]=await s(r);return c}var ge=`0x0000000000000000000000000000000000000000`;function R(e,t){return{amount:e,decimals:t,formatted:s(e,t)}}function z(e,t){if(typeof e==`bigint`)return e;let n=e.decimals??t;return me(e.formatted,_e(n))}function _e(e){if(e===void 0)throw Error("Token decimals are required. Pass `amount.decimals` or select a declared token.");return e}async function B(e,t){return B.inner(S,e,t)}(function(e){async function t(t,n,r){return await b(t)(n,{...r,...e.call(n,r)})}e.inner=t;function n(...e){let[t,n]=w(e),{amount:r,spender:i,token:a}=n,{address:o,decimals:s}=p(t,{token:a});return C({address:o,abi:E,functionName:`approve`,args:[i,z(r,s)]})}e.call=n;async function r(t,n){return F(t,{...y(n),...e.call(t,n)})}e.estimateGas=r;async function i(t,n){return I(t,{...y(n),...e.call(t,n)})}e.simulate=i;function o(e){let[t]=a({abi:E,logs:e,eventName:`Approval`});if(!t)throw Error("`Approval` event not found.");return t}e.extractEvent=o})(B||={});async function V(e,t){return V.inner(S,e,t)}(function(e){async function t(t,n,r){let{amount:i,from:a,token:o,...s}=r,c=e.call(n,{amount:i,from:a,token:o});return await b(t)(n,{...s,...c})}e.inner=t;function n(...e){let[t,n]=w(e),{from:r,amount:i,token:a}=n,{address:o,decimals:s}=p(t,{token:a});return C({address:o,abi:E,functionName:`burnBlocked`,args:[r,z(i,s)]})}e.call=n;function r(e){let[t]=a({abi:E,logs:e,eventName:`BurnBlocked`});if(!t)throw Error("`BurnBlocked` event not found.");return t}e.extractEvent=r})(V||={});async function H(e,t){return H.inner(S,e,t)}(function(e){async function t(t,n,r){let{amount:i,from:a,memo:o,token:s,...c}=r,l=e.call(n,{amount:i,from:a,memo:o,token:s});return await b(t)(n,{...c,...l})}e.inner=t;function n(...e){let[t,n]=w(e),{amount:r,from:i,memo:a,token:o}=n,{address:s,decimals:c}=p(t,{token:o}),l=z(r,c);if(i)return C({address:s,abi:E,functionName:`burnAt`,args:[i,l]});let u=a?{functionName:`burnWithMemo`,args:[l,D(a,32)]}:{functionName:`burn`,args:[l]};return C({address:s,abi:E,...u})}e.call=n;function r(e){let[t]=a({abi:E,logs:e,eventName:[`Burn`,`BurnAt`]});if(!t)throw Error("`Burn` or `BurnAt` event not found.");return t}e.extractEvent=r})(H||={});async function U(e,t){return U.inner(S,e,t)}(function(e){async function t(t,n,r){let{policyId:i,token:a,...o}=r,s=e.call(n,{policyId:i,token:a});return await b(t)(n,{...o,...s})}e.inner=t;function n(...e){let[t,n]=w(e),{token:r,policyId:i}=n;return C({address:p(t,{token:r}).address,abi:E,functionName:`changeTransferPolicyId`,args:[i]})}e.call=n;function r(e){let[t]=a({abi:E,logs:e,eventName:`TransferPolicyUpdate`});if(!t)throw Error("`TransferPolicyUpdate` event not found.");return t}e.extractEvent=r})(U||={});async function W(e,t){return W.inner(S,e,t)}(function(n){async function r(e,t,r){let{account:i=t.account,admin:a=t.account,chain:o=t.chain,...s}=r,c=a?O(a):void 0;if(!c)throw Error(`admin is required.`);let l=n.call(t,{...s,admin:c.address});return await b(e)(t,{...r,account:i,chain:o,...l})}n.inner=r;function i(...n){let[r,i]=w(n),{name:a,symbol:o,currency:s,logoURI:l,quoteToken:u=t,admin:d,salt:f=ee(32)}=i;return C({address:e,abi:c,args:typeof l==`string`?[a,o,s,p(r,{token:u}).address,d,f,l]:[a,o,s,p(r,{token:u}).address,d,f],functionName:`createToken`})}n.call=i;function o(e){let[t]=a({abi:c,logs:e,eventName:`TokenCreated`,strict:!0});if(!t)throw Error("`TokenCreated` event not found.");return t}n.extractEvent=o})(W||={});async function G(e,t){let{account:n,decimals:r,spender:i,token:a,...o}=t,[s,{decimals:c}]=await Promise.all([b(d)(e,{...o,...G.call(e,{account:n,spender:i,token:a})}),_(e,{decimals:r,token:a})]);return R(s,c)}(function(e){function t(...e){let[t,n]=w(e);return C({address:p(t,n).address,abi:E,functionName:`allowance`,args:[n.account,n.spender]})}e.call=t})(G||={});async function K(e,t){let{account:n=e.account,decimals:r,token:i,...a}=t;if(!n)throw new u;let o=O(n).address,[s,{decimals:c}]=await Promise.all([b(d)(e,{...a,...K.call(e,{account:o,token:i})}),_(e,{decimals:r,token:i})]);return R(s,c)}(function(e){function t(...e){let[t,n]=w(e),r=n.account??t?.account;if(!r)throw new u;let i=O(r).address;return C({address:p(t,n).address,abi:E,functionName:`balanceOf`,args:[i]})}e.call=t})(K||={});async function ve(e,t){let{token:n,...r}=t,{address:i}=p(e,{token:n}),a=E,s=h(e,n),c={...s?.decimals==null?{}:{decimals:s.decimals},...s?.name==null?{}:{name:s.name},...s?.symbol==null?{}:{symbol:s.symbol}};return o(i)===o(`0x20c0000000000000000000000000000000000000`)?q(e,{...r,contracts:[{address:i,abi:a,functionName:`currency`},{address:i,abi:a,functionName:`decimals`},{address:i,abi:a,functionName:`logoURI`},{address:i,abi:a,functionName:`name`},{address:i,abi:a,functionName:`symbol`},{address:i,abi:a,functionName:`totalSupply`}]}).then(([e,t,n,r,i,a])=>({name:J(r),symbol:J(i),currency:J(e),decimals:J(t),logoURI:J(n,``),totalSupply:J(a),...c})):q(e,{...r,contracts:[{address:i,abi:a,functionName:`currency`},{address:i,abi:a,functionName:`decimals`},{address:i,abi:a,functionName:`logoURI`},{address:i,abi:a,functionName:`quoteToken`},{address:i,abi:a,functionName:`name`},{address:i,abi:a,functionName:`paused`},{address:i,abi:a,functionName:`supplyCap`},{address:i,abi:a,functionName:`symbol`},{address:i,abi:a,functionName:`totalSupply`},{address:i,abi:a,functionName:`transferPolicyId`}]}).then(([e,t,n,r,i,a,o,s,l,u])=>({name:J(i),symbol:J(s),currency:J(e),decimals:J(t),logoURI:J(n,``),quoteToken:J(r),totalSupply:J(l),paused:J(a),supplyCap:J(o),transferPolicyId:J(u),...c}))}async function q(e,t){if(e.batch?.multicall===void 0)return L(e,{...t,allowFailure:!0,deployless:!0});let{contracts:n,...r}=t;return(await Promise.allSettled(n.map(t=>b(d)(e,{...r,...t})))).map(e=>e.status===`fulfilled`?{result:e.value,status:`success`}:{error:e.reason,status:`failure`})}function J(e,...t){if(e.status===`failure`){if(t.length>0)return t[0];throw e.error}return e.result}async function Y(e,t){let{decimals:n,token:r,...i}=t,[a,{decimals:o}]=await Promise.all([b(d)(e,{...i,...Y.call(e,{token:r})}),_(e,{decimals:n,token:r})]);return R(a,o)}(function(e){function t(...e){let[t,n]=w(e);return C({address:p(t,n).address,abi:E,args:[],functionName:`totalSupply`})}e.call=t})(Y||={});async function X(e,t){return b(d)(e,{...t,...X.call(e,t)})}(function(e){function t(...e){let[t,n]=w(e),{role:r,token:i}=n;return C({address:p(t,{token:i}).address,abi:E,functionName:`getRoleAdmin`,args:[P(r)]})}e.call=t})(X||={});async function Z(e,t){let{account:n=e.account}=t,r=n?O(n).address:void 0;if(!r)throw Error(`account is required.`);return b(d)(e,{...t,...Z.call(e,{...t,account:r})})}(function(e){function t(...e){let[t,n]=w(e),{account:r,role:i,token:a}=n;return C({address:p(t,{token:a}).address,abi:E,functionName:`hasRole`,args:[r,P(i)]})}e.call=t})(Z||={});async function ye(e,t){return ye.inner(r,e,t)}(function(e){async function t(t,n,r){return await b(t)(n,{...r,calls:r.roles.map(t=>{let i=e.call(n,{...r,role:t});return{...i,data:N(i)}})})}e.inner=t;function n(...e){let[t,n]=w(e),{token:r,to:i,role:a}=n,o=P(a);return C({address:p(t,{token:r}).address,abi:E,functionName:`grantRole`,args:[o,i]})}e.call=n;function r(e){let t=a({abi:E,logs:e,eventName:`RoleMembershipUpdated`});if(t.length===0)throw Error("`RoleMembershipUpdated` events not found.");return t}e.extractEvents=r})(ye||={});async function be(e,t){return be.inner(S,e,t)}(function(e){async function t(t,n,r){let{amount:i,memo:a,to:o,token:s,...c}=r,l=e.call(n,{amount:i,memo:a,to:o,token:s});return await b(t,{hints:{Unauthorized:[`Minting requires the issuer role. Grant it to this account first.`]}})(n,{...c,...l})}e.inner=t;function n(...e){let[t,n]=w(e),{to:r,amount:i,memo:a,token:o}=n,{address:s,decimals:c}=p(t,{token:o}),l=z(i,c),u=a?{functionName:`mintWithMemo`,args:[r,l,D(a,32)]}:{functionName:`mint`,args:[r,l]};return C({address:s,abi:E,...u})}e.call=n;function r(e){let[t]=a({abi:E,logs:e,eventName:`Mint`});if(!t)throw Error("`Mint` event not found.");return t}e.extractEvent=r})(be||={});async function xe(e,t){return xe.inner(S,e,t)}(function(e){async function t(t,n,r){let{token:i,...a}=r,o=e.call(n,{token:i});return await b(t)(n,{...a,...o})}e.inner=t;function n(...e){let[t,n]=w(e),{token:r}=n;return C({address:p(t,{token:r}).address,abi:E,functionName:`pause`,args:[]})}e.call=n;function r(e){let[t]=a({abi:E,logs:e,eventName:`PauseStateUpdate`});if(!t)throw Error("`PauseStateUpdate` event not found.");return t}e.extractEvent=r})(xe||={});async function Se(e,t){return Se.inner(r,e,t)}(function(e){async function t(t,n,r){return await b(t)(n,{...r,calls:r.roles.map(t=>{let i=e.call(n,{...r,role:t});return{...i,data:N(i)}})})}e.inner=t;function n(...e){let[t,n]=w(e),{token:r,role:i}=n,a=P(i);return C({address:p(t,{token:r}).address,abi:E,functionName:`renounceRole`,args:[a]})}e.call=n;function r(e){let t=a({abi:E,logs:e,eventName:`RoleMembershipUpdated`});if(t.length===0)throw Error("`RoleMembershipUpdated` events not found.");return t}e.extractEvents=r})(Se||={});async function Ce(e,t){return Ce.inner(r,e,t)}(function(e){async function t(t,n,r){let{from:i,...a}=r;return await b(t)(n,{...a,calls:r.roles.map(t=>{let i=e.call(n,{...r,role:t});return{...i,data:N(i)}})})}e.inner=t;function n(...e){let[t,n]=w(e),{token:r,from:i,role:a}=n,o=P(a);return C({address:p(t,{token:r}).address,abi:E,functionName:`revokeRole`,args:[o,i]})}e.call=n;function r(e){let t=a({abi:E,logs:e,eventName:`RoleMembershipUpdated`});if(t.length===0)throw Error("`RoleMembershipUpdated` events not found.");return t}e.extractEvents=r})(Ce||={});async function we(e,t){return we.inner(S,e,t)}(function(e){async function t(t,n,r){let{supplyCap:i,token:a,...o}=r,s=e.call(n,{supplyCap:i,token:a});return await b(t)(n,{...o,...s})}e.inner=t;function n(...e){let[t,n]=w(e),{token:r,supplyCap:i}=n;return C({address:p(t,{token:r}).address,abi:E,functionName:`setSupplyCap`,args:[i]})}e.call=n;function r(e){let[t]=a({abi:E,logs:e,eventName:`SupplyCapUpdate`});if(!t)throw Error("`SupplyCapUpdate` event not found.");return t}e.extractEvent=r})(we||={});async function Te(e,t){return Te.inner(S,e,t)}(function(e){async function t(t,n,r){let{adminRole:i,role:a,token:o,...s}=r,c=e.call(n,{adminRole:i,role:a,token:o});return await b(t)(n,{...s,...c})}e.inner=t;function n(...e){let[t,n]=w(e),{token:r,role:i,adminRole:a}=n,o=P(i),s=P(a);return C({address:p(t,{token:r}).address,abi:E,functionName:`setRoleAdmin`,args:[o,s]})}e.call=n;function r(e){let[t]=a({abi:E,logs:e,eventName:`RoleAdminUpdated`});if(!t)throw Error("`RoleAdminUpdated` event not found.");return t}e.extractEvent=r})(Te||={});async function Ee(e,t){return Ee.inner(S,e,t)}(function(e){async function t(t,n,r){return await b(t)(n,{...r,...e.call(n,r)})}e.inner=t;function n(...e){let[t,n]=w(e),{from:r,memo:i,to:a,token:o}=n,{address:s,decimals:c}=p(t,{token:o}),l=z(n.amount,c),u=i&&r?{functionName:`transferFromWithMemo`,args:[r,a,l,D(i,32)]}:i?{functionName:`transferWithMemo`,args:[a,l,D(i,32)]}:r?{functionName:`transferFrom`,args:[r,a,l]}:{functionName:`transfer`,args:[a,l]};return C({address:s,abi:E,...u})}e.call=n;async function r(t,n){return F(t,{...y(n),...e.call(t,n)})}e.estimateGas=r;async function i(t,n){return I(t,{...y(n),...e.call(t,n)})}e.simulate=i;function o(e){let[t]=a({abi:E,logs:e,eventName:`Transfer`});if(!t)throw Error("`Transfer` event not found.");return t}e.extractEvent=o})(Ee||={});async function De(e,t){return De.inner(S,e,t)}(function(e){async function t(t,n,r){let{token:i,...a}=r,o=e.call(n,{token:i});return await b(t)(n,{...a,...o})}e.inner=t;function n(...e){let[t,n]=w(e),{token:r}=n;return C({address:p(t,{token:r}).address,abi:E,functionName:`unpause`,args:[]})}e.call=n;function r(e){let[t]=a({abi:E,logs:e,eventName:`PauseStateUpdate`});if(!t)throw Error("`PauseStateUpdate` event not found.");return t}e.extractEvent=r})(De||={});async function Oe(e,t){return Oe.inner(S,e,t)}(function(e){async function t(t,n,r){let{quoteToken:i,token:a,...o}=r,s=e.call(n,{quoteToken:i,token:a});return await b(t)(n,{...o,...s})}e.inner=t;function n(...e){let[t,n]=w(e),{token:r,quoteToken:i}=n;return C({address:p(t,{token:r}).address,abi:E,functionName:`setNextQuoteToken`,args:[p(t,{token:i}).address]})}e.call=n;function r(e){let[t]=a({abi:E,logs:e,eventName:`NextQuoteTokenSet`});if(!t)throw Error("`NextQuoteTokenSet` event not found.");return t}e.extractEvent=r})(Oe||={});async function ke(e,t){return ke.inner(S,e,t)}(function(e){async function t(t,n,r){let{token:i,...a}=r,o=e.call(n,{token:i});return await b(t)(n,{...a,...o})}e.inner=t;function n(...e){let[t,n]=w(e),{token:r}=n;return C({address:p(t,{token:r}).address,abi:E,functionName:`completeQuoteTokenUpdate`,args:[]})}e.call=n;function r(e){let[t]=a({abi:E,logs:e,eventName:`QuoteTokenUpdate`});if(!t)throw Error("`QuoteTokenUpdateCompleted` event not found.");return t}e.extractEvent=r})(ke||={});var Ae=class extends v{constructor(e){let{decimals:t}=e,[n,r,i]=e.error.args;super(e,{details:{token:i,available:T(n,t),required:T(r,t),shortfall:T(r-n,t)},name:`TokenInsufficientBalanceError`,shortMessage:`Insufficient balance of token "${i}".`}),Object.defineProperty(this,"available",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"decimals",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"token",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.available=n,this.decimals=t,this.required=r,this.token=i}},je=class extends v{constructor(e){let{allowance:t,amount:n,decimals:r,owner:i,spender:a,token:o}=e;super(e,{details:{token:o,owner:i,spender:a,allowance:T(t,r),amount:T(n,r)},name:`TokenInsufficientAllowanceError`,shortMessage:`Spender "${a}" has an insufficient allowance from "${i}" for token "${o}".`}),Object.defineProperty(this,"allowance",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"amount",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"decimals",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"owner",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"spender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"token",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.allowance=t,this.amount=n,this.decimals=r,this.owner=i,this.spender=a,this.token=o}},Me=class extends v{constructor(e){let{amount:t,decimals:n,supplyCap:r,token:i,totalSupply:a}=e;super(e,{details:{token:i,amount:T(t,n),"total supply":T(a,n),"supply cap":T(r,n),"mintable amount":r!==void 0&&a!==void 0?T(r-a,n):void 0},name:`TokenSupplyCapExceededError`,shortMessage:`Minting exceeds the supply cap of token "${i}".`}),Object.defineProperty(this,"amount",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"decimals",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"supplyCap",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"token",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"totalSupply",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.amount=t,this.decimals=n,this.supplyCap=r,this.token=i,this.totalSupply=a}},Ne=class extends v{constructor(e){let{from:t,policyId:n,recipientAuthorized:r,senderAuthorized:i,to:a,token:o}=e,s=i===!1?`sender "${t}"`:r===!1?`recipient "${a}"`:`this transfer`;super(e,{details:{token:o,policy:n,from:t,to:a,"sender authorized":i?.toString(),"recipient authorized":r?.toString()},name:`TokenPolicyForbidsError`,shortMessage:`The transfer policy of token "${o}" forbids ${s}.`}),Object.defineProperty(this,"from",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"policyId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"recipientAuthorized",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"senderAuthorized",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"to",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"token",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.from=t,this.policyId=n,this.recipientAuthorized=r,this.senderAuthorized=i,this.to=a,this.token=o}},Pe=class extends v{constructor(e){super(e,{name:`TokenPausedError`,shortMessage:`Token "${e.token}" is paused.`}),Object.defineProperty(this,"token",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.token=e.token}},Fe=class extends v{constructor(e){let{account:t,role:n,token:r}=e;super(e,{details:{token:r,account:t,role:n},name:`TokenUnauthorizedError`,shortMessage:`Account "${t}" does not have the "${n}" role on token "${r}".`}),Object.defineProperty(this,"account",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"role",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"token",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.account=t,this.role=n,this.token=r}},Ie={burn:`issuer`,burnAt:`burnAt`,burnBlocked:`burnBlocked`,burnWithMemo:`issuer`,changeTransferPolicyId:`defaultAdmin`,completeQuoteTokenUpdate:`defaultAdmin`,mint:`issuer`,mintWithMemo:`issuer`,pause:`pause`,setLogoURI:`defaultAdmin`,setNextQuoteToken:`defaultAdmin`,setSupplyCap:`defaultAdmin`,unpause:`unpause`},Le={"ContractPaused()":({base:e,call:t})=>f(t?.address)?new Pe({...e,token:t.address}):void 0,"InsufficientAllowance()":async e=>{let{base:t,call:n,signer:r}=e,i=n?.arg(`from`);if(!f(n?.address)||!i||!r)return;let a=n.address,[o,s]=await e.read([{address:a,abi:E,functionName:`allowance`,args:[i,r.address]},{address:a,abi:E,functionName:`decimals`}]);return new je({...t,allowance:o?.result,amount:n.arg(`amount`),decimals:s?.result,owner:i,spender:r.address,token:a})},"InsufficientBalance(uint256,uint256,address)":async e=>{let t=e.base.error.args?.[2];if(!t)return;let[n]=await e.read([{address:t,abi:E,functionName:`decimals`}]);return new Ae({...e.base,decimals:n?.result})},"PolicyForbids()":async e=>{let{base:t,call:r,signer:i}=e;if(!f(r?.address))return;let a=r.address,o=r.functionName.startsWith(`mint`),s=o?void 0:r.arg(`from`)??i?.address,c=r.arg(`to`),[l]=await e.read([{address:a,abi:E,functionName:`transferPolicyId`}]),u={address:g,abi:n},[d,p]=l?.result===void 0?[]:await e.read([{...u,functionName:`isAuthorizedSender`,args:[l.result,s??`0x0000000000000000000000000000000000000000`]},{...u,functionName:o?`isAuthorizedMintRecipient`:`isAuthorizedRecipient`,args:[l.result,c??`0x0000000000000000000000000000000000000000`]}]);return new Ne({...t,from:s,policyId:l?.result,recipientAuthorized:c?p?.result:void 0,senderAuthorized:s?d?.result:void 0,to:c,token:a})},"SupplyCapExceeded()":async e=>{let{base:t,call:n}=e;if(!f(n?.address))return;let r=n.address,[i,a,o]=await e.read([{address:r,abi:E,functionName:`supplyCap`},{address:r,abi:E,functionName:`totalSupply`},{address:r,abi:E,functionName:`decimals`}]);return new Me({...t,amount:n.arg(`amount`),decimals:o?.result,supplyCap:i?.result,token:r,totalSupply:a?.result})},"Unauthorized()":({base:e,call:t,signer:n})=>{let r=t&&Ie[t.functionName];if(f(t?.address)&&r&&n)return new Fe({...e,account:n.address,role:r,token:t.address})}},Q={"AbdicationAlreadyScheduled(uint8)":`Abdication is already scheduled for capability {0}.`,"AccountAlreadyConfigurable()":`The account is already a configurable account.`,"AccountHasCode()":`Accounts with code cannot be upgraded.`,"AccountNotAllowed(address)":`Account {0} is not allowed.`,"ActiveLeaderRemoved()":`The active leader cannot be removed.`,"AddressAlreadyHasValidator()":`This address already has a validator.`,"AddressNotReserved()":`Address is not reserved.`,"AddressReserved()":`Address is reserved.`,"AlreadyInitialized()":`Already initialized.`,"AmountExceedsDeposit()":`Amount exceeds deposit.`,"AmountNotIncreasing()":`Amount is not increasing.`,"BelowMinimumOrderSize(uint128)":`Order size is below the minimum allowed ({0}).`,"CallNotAllowed()":`This call is not allowed.`,"CallbackDidNotReturnToZone()":`The callback did not return to the zone.`,"CallbackRejected()":`The callback was rejected.`,"CannotChangeWithinBlock()":`Cannot change within the same block.`,"CapabilityAbdicated(uint8)":`Capability {0} has been abdicated.`,"CaptureAmountInvalid()":`Capture amount is invalid.`,"ChannelAlreadyExists()":`Channel already exists.`,"ChannelNotFound()":`Channel not found.`,"CloseNotReady()":`Channel is not ready to close.`,"ContractPaused()":`Contract is paused.`,"DepositBlockCapacityExceeded(uint64)":`The deposit capacity per block exceeds the maximum ({0}).`,"DepositOverflow()":`Deposit overflow.`,"DepositTooSmall()":`The deposit is too small.`,"DepositsNotActive()":`Deposits are not active.`,"DivisionByZero()":`Division by zero.`,"DuplicateAllowedAccount()":`The allowed account is duplicated.`,"DuplicateOwner()":`The owner is duplicated.`,"DuplicateZoneGateway()":`The zone gateway is duplicated.`,"EmptyV1ValidatorSet()":`Validator set is empty.`,"EncryptionKeyExpired(uint256,uint64,uint64)":`Encryption key {0} has expired.`,"ExpiringNonceHashNotSet()":`Expiring nonce hash is not set.`,"ExpiringNonceReplay()":`Expiring nonce has already been used.`,"ExpiringNonceSetFull()":`Expiring nonce set is full.`,"ExpiryInPast()":`Expiry is in the past.`,"GasFeeRateTooHigh()":`The gas fee rate is too high.`,"IdenticalAddresses()":`Addresses must be different.`,"IdenticalTokens()":`Cannot swap a token for itself — input and output tokens must be different.`,"IncompatiblePolicyType()":`Incompatible policy type.`,"IndexAlreadySet()":`The index is already set.`,"IngressAlreadyExists(string)":`Ingress "{0}" already exists.`,"InsufficientAllowance()":`Insufficient allowance.`,"InsufficientBalance()":`Insufficient balance.`,"InsufficientBalance(uint256,uint256,address)":`Insufficient balance. Required: {1}, available: {0}.`,"InsufficientFeeTokenBalance()":`Insufficient fee token balance.`,"InsufficientLiquidity()":`Not enough liquidity in the order book to fill this trade.`,"InsufficientOutput()":`The output amount is below the slippage minimum — try increasing slippage tolerance.`,"InsufficientReserves()":`Insufficient reserves.`,"InvalidAccount()":`Invalid account.`,"InvalidAdmin()":`Invalid administrator.`,"InvalidAmount()":`Invalid amount.`,"InvalidBaseToken()":`This token is not a valid base token for the requested pair.`,"InvalidBouncebackRecipient()":`Invalid bounceback recipient.`,"InvalidCallScope()":`Invalid call scope.`,"InvalidCallbackTarget()":`Invalid callback target.`,"InvalidCiphertextLength(uint256,uint256)":`Invalid ciphertext length. Expected {1}, got {0}.`,"InvalidClaimAddress()":`Invalid claim address.`,"InvalidClosedLoopConfig()":`Invalid closed-loop configuration.`,"InvalidConfig()":`Invalid configuration.`,"InvalidConfigurableAccountOwner()":`Invalid owner.`,"InvalidCurrency()":`Invalid currency.`,"InvalidDepositTransition()":`Invalid deposit transition.`,"InvalidEncryptionKeyIndex(uint256)":`Invalid encryption key index ({0}).`,"InvalidEphemeralPubkey()":`Invalid ephemeral public key.`,"InvalidExpiringNonceExpiry()":`Invalid expiring nonce expiry.`,"InvalidFlipTick()":`The flip-order price tick is invalid.`,"InvalidFormat()":`Invalid format.`,"InvalidKeyAuthorizationWitness()":`Invalid key authorization witness.`,"InvalidKeyId()":`Invalid key ID.`,"InvalidLeader()":`Invalid leader.`,"InvalidLogoURI()":`Invalid logo URI.`,"InvalidMasterAddress()":`Invalid master address.`,"InvalidMigrationIndex()":`Invalid migration index.`,"InvalidMode()":`Invalid mode.`,"InvalidNonceKey()":`Invalid nonce key.`,"InvalidOwner()":`Invalid owner.`,"InvalidOwnerOrder()":`Invalid owner order.`,"InvalidPayee()":`Invalid payee.`,"InvalidPayload()":`Invalid payload.`,"InvalidPolicyType()":`Invalid policy type.`,"InvalidProof()":`Invalid proof.`,"InvalidProofOfPossession()":`Invalid proof of possession.`,"InvalidPublicKey()":`Invalid public key.`,"InvalidQuorumCertificate()":`Invalid quorum certificate.`,"InvalidQuoteToken()":`Invalid quote token.`,"InvalidReceipt()":`Invalid receipt.`,"InvalidReceivePolicyType()":`Invalid receive policy type.`,"InvalidRecipient()":`Invalid recipient.`,"InvalidRecoveryAuthority()":`Invalid recovery authority.`,"InvalidSequencerSet()":`Invalid sequencer set.`,"InvalidSignature()":`Invalid signature.`,"InvalidSignatureFormat()":`Invalid signature format.`,"InvalidSignatureType()":`Invalid signature type.`,"InvalidSpendingLimit()":`Invalid spending limit.`,"InvalidSupplyCap()":`Invalid supply cap.`,"InvalidSwapCalculation()":`Invalid swap calculation.`,"InvalidTempoBlockNumber()":`Invalid Tempo block number.`,"InvalidThreshold()":`Invalid threshold.`,"InvalidTick()":`The price tick is invalid.`,"InvalidToken()":`This token is not supported on the exchange.`,"InvalidTokenEnablementTransition()":`Invalid token enablement transition.`,"InvalidTransferPolicyId()":`Invalid transfer policy.`,"InvalidValidatorAddress()":`Invalid validator address.`,"InvalidWeight()":`Invalid weight.`,"KeyAlreadyExists()":`Key already exists.`,"KeyAlreadyRevoked()":`Key has already been revoked.`,"KeyAuthorizationWitnessAlreadyBurned()":`Key authorization witness has already been burned.`,"KeyExpired()":`Key has expired.`,"KeyNotFound()":`Key not found.`,"LeaderAlreadyUpdatedThisBlock()":`The leader has already been updated in this block.`,"LegacyAuthorizeKeySelectorChanged(bytes4)":`Legacy authorize key selector changed to {0}.`,"LogoURITooLong()":`Logo URI is too long.`,"MasterIdCollision(address)":`Master ID collision with {0}.`,"MaxInputExceeded()":`The required input exceeds the slippage maximum — try increasing slippage tolerance.`,"MigrationNotComplete()":`Migration is not complete.`,"MustDelegateCall()":`A delegate call is required.`,"NoEncryptionKeyAtBlock(uint64)":`No encryption key exists at block {0}.`,"NoEncryptionKeySet()":`No encryption key is set.`,"NoOptedInSupply()":`No opted-in supply.`,"NonceOverflow()":`Nonce overflow.`,"NotAdmin()":`The caller is not the administrator.`,"NotFactory()":`The caller is not the factory.`,"NotHostPort(string,string,string)":`"{1}" is not a valid host:port for {0}.`,"NotInitialized()":`Not initialized.`,"NotIp(string,string)":`"{0}" is not a valid IP address.`,"NotIpPort(string,string)":`"{0}" is not a valid IP:port.`,"NotIpPort(string,string,string)":`"{1}" is not a valid IP:port for {0}.`,"NotOwner()":`The caller is not an owner.`,"NotPauseAuthority()":`The caller is not the pause authority.`,"NotPayeeOrOperator()":`Not payee or operator.`,"NotPayer()":`Not payer.`,"NotPendingAdmin()":`The caller is not the pending administrator.`,"NotSelf()":`The caller must be the contract itself.`,"NotSequencer()":`The caller is not a sequencer.`,"OnlyDirectCall()":`A direct call is required.`,"OrderDoesNotExist()":`No order exists with the given ID.`,"OrderNotStale()":`This order is not yet eligible for stale-cleanup.`,"PairAlreadyExists()":`A trading pair for these tokens has already been created.`,"PairDoesNotExist()":`No trading pair exists for these tokens.`,"PermitExpired()":`Permit has expired.`,"PolicyForbids()":`Forbidden by policy.`,"PolicyNotFound()":`Policy not found.`,"PolicyNotSimple()":`Policy is not a simple policy.`,"PortalIsPaused()":`The portal is paused.`,"PrimitiveRootRequired()":`The root key must sign the upgrade transaction.`,"ProofOfWorkFailed()":`Proof of work failed.`,"ProtectedAddress()":`Address is protected.`,"ProtocolNonceNotSupported()":`Protocol nonce is not supported.`,"PublicKeyAlreadyExists()":`Public key already exists.`,"ReentrantWithdrawal()":`Reentrant withdrawals are not allowed.`,"RootKeyRetired(address)":`The root key of {0} is retired.`,"SequencerConfigurationUnchanged()":`The sequencer configuration is unchanged.`,"SignatureTypeMismatch(uint8,uint8)":`Signature type mismatch. Expected {0}, got {1}.`,"SpendingLimitExceeded()":`Spending limit exceeded.`,"StaleLeadershipEpoch(uint64,uint64)":`Stale leadership epoch. Expected {0}, got {1}.`,"SupplyCapExceeded()":`Supply cap exceeded.`,"TickOutOfBounds(int16)":`Price tick {0} is outside the allowed range.`,"TokenAlreadyEnabled()":`The token is already enabled.`,"TokenAlreadyExists(address)":`Token {0} already exists.`,"TokenEnablementBlockCapacityExceeded(uint64)":`The token enablement capacity per block exceeds the maximum ({0}).`,"TokenEnablementCursorNotInitialized()":`The token enablement cursor is not initialized.`,"TokenMetadataTooLong()":`Token metadata is too long.`,"TokenNotEnabled()":`The token is not enabled.`,"TokenTransferPolicyNotSet()":`The token transfer policy is not set.`,"TooManyOwners()":`There are too many owners.`,"TransferFailed()":`The transfer failed.`,"Unauthorized()":`Unauthorized.`,"UnauthorizedCaller()":`Unauthorized caller.`,"UnauthorizedClaimer()":`Unauthorized claimer.`,"UnauthorizedConfigurableAccountCaller()":`Unauthorized configurable account caller.`,"Uninitialized()":`Uninitialized.`,"UpgradeMustBeOnlyCall()":`The upgrade must be the only call in the transaction.`,"ValidatorAlreadyDeactivated()":`Validator is already deactivated.`,"ValidatorAlreadyExists()":`Validator already exists.`,"ValidatorNotFound()":`Validator not found.`,"VirtualAddressNotAllowed()":`Virtual address is not allowed.`,"VirtualAddressUnregistered()":`Virtual address is not registered.`,"ZeroDeposit()":`Deposit cannot be zero.`,"ZeroPublicKey()":`Public key cannot be zero.`},Re={"CallNotAllowed()":[`The access key's scopes do not allow this target, selector, or recipient.`,`Authorize an access key whose scopes include this call.`],"ContractPaused()":[`The token is paused. An account with the unpause role can unpause it.`],"ExpiringNonceReplay()":[`Resend the transaction with a new nonce.`],"ExpiryInPast()":[`Set the expiry to a future time.`],"InsufficientAllowance()":[`Approve the spender for at least this amount.`],"InsufficientBalance(uint256,uint256,address)":[`Fund the account or lower the amount.`],"InsufficientFeeTokenBalance()":[`Fund the account with the fee token, or pay fees with another token.`],"KeyAlreadyExists()":[`Use a new access key, or revoke the existing one.`],"KeyAlreadyRevoked()":[`Revoked access keys cannot be used or re-authorized. Authorize a new access key.`],"KeyExpired()":[`Authorize a new access key.`],"KeyNotFound()":[`Authorize the access key first, or authorize it in the same transaction with a key authorization.`],"PolicyForbids()":[`The token transfer policy forbids this sender or recipient.`],"SpendingLimitExceeded()":[`Raise the spending limit, or wait for a periodic limit to reset.`],"UnauthorizedCaller()":[`Sign with the root key or an admin access key.`],"AmountExceedsDeposit()":[`Top up the channel, or use a voucher for a smaller amount.`],"AmountNotIncreasing()":[`Use a voucher with a higher cumulative amount than the amount already settled.`],"BelowMinimumOrderSize(uint128)":[`Place a larger order.`],"ChannelNotFound()":[`Check the channel details, or open the channel first.`],"CloseNotReady()":[`Request a close, then wait for the grace period to end before withdrawing.`],"InsufficientBalance()":[`Deposit more of the token, or lower the amount.`],"InsufficientLiquidity()":[`Use a smaller amount.`],"InsufficientOutput()":[`Lower the minimum output amount, or sell a smaller amount.`],"InsufficientReserves()":[`Use a smaller amount.`],"InvalidExpiringNonceExpiry()":[`Set the transaction expiry to a time in the near future.`],"InvalidFlipTick()":[`Choose a flip tick on the correct side of the order tick.`],"MaxInputExceeded()":[`Raise the maximum input amount, or buy a smaller amount.`],"OrderDoesNotExist()":[`Check the order ID. Filled and cancelled orders no longer exist.`],"OrderNotStale()":[`Only orders whose maker lost authorization can be cancelled as stale.`],"PairDoesNotExist()":[`Create the trading pair first.`],"PolicyNotFound()":[`Check the policy ID, or create the policy first.`],"SignatureTypeMismatch(uint8,uint8)":[`Sign with the same key type the access key was authorized with.`],"SupplyCapExceeded()":[`Mint a smaller amount, or raise the supply cap.`],"TickOutOfBounds(int16)":[`Use a tick within the allowed range.`],"Unauthorized()":[`The account lacks the permission this call requires.`],"AccountAlreadyConfigurable()":["The account is already configurable. Rotate its owners with `updateConfig` instead."],"AccountHasCode()":[`Only accounts without code or delegation can be upgraded in place.`],"PrimitiveRootRequired()":[`Send the upgrade from the account's root key, not an access key or another account.`],"RootKeyRetired(address)":[`The account was upgraded to a configurable account. Sign with its owners instead of the retired root key.`],"UnauthorizedConfigurableAccountCaller()":[`Only the configurable account can update its own configuration.`],"UpgradeMustBeOnlyCall()":["Send `upgradeAccount` as the only call, without a key authorization or authorization list."]};function ze(e,t){return t?e.replace(/\{(\d+)\}/g,(e,n)=>{let r=t[Number(n)];return r===void 0?`{${n}}`:String(r)}):e}function Be(e){let t=typeof e==`string`?{data:e,message:`Unknown execution error.`}:e,n=He(t),r=Object.getOwnPropertyDescriptors(t);`stack`in t&&(r.stack={configurable:r.stack?.configurable??!0,enumerable:r.stack?.enumerable??!1,value:t.stack,writable:r.stack?.writable??!0});for(let[e,t]of Object.entries(Object.getOwnPropertyDescriptors(n)))r[e]={...t,enumerable:r[e]?.enumerable??!0};return Object.create(Object.getPrototypeOf(t),r)}function Ve(e){return e.errorName===`unknown`?{errorName:`unknown`,message:e.message}:{errorName:e.errorName,abiItem:e.abiItem,message:e.message,data:e.data}}function $(e,t=new Set){if(!e||typeof e!=`object`||t.has(e))return null;t.add(e);let n=e;if(typeof n.data==`string`&&/^0x(?:[\da-f]{2})*$/i.test(n.data))return n.data;for(let e of[n.data,n.cause,n.error]){let n=$(e,t);if(n)return n}if(typeof n.walk==`function`){let e=n.walk(e=>typeof e.data==`string`);if(e)return $(e,t)}return null}function He(e){let t=e.details??e.shortMessage??e.message,n=$(e);if(n)try{let e=ae({abi:i,data:n}),r=Q[A(e.abiItem)];return{...e,data:n,message:r?ze(r,e.args):t.replace(/^execution reverted:\s*/i,``)}}catch{if(n.length===10){let e=i.find(e=>e.type===`error`&&j(A(e))===n.toLowerCase());if(e?.type===`error`)return{abiItem:e,args:void 0,data:n,errorName:e.name,message:Q[A(e)]}}}let r=/\b(\w+)\(\1\)/.exec(t),a=r?i.find(e=>e.name===r[1]&&e.inputs.length===0):void 0;if(a)return{abiItem:a,args:void 0,data:j(A(a)),errorName:a.name,message:Q[A(a)]};let o=/:\s*(\w+)\(([^)]*)\)/.exec(t);if(o){let e=Object.entries(Q).filter(([e])=>e.startsWith(`${o[1]}(`)),t=o[2]===``?Q[`${o[1]}()`]:e.length===1?e[0]?.[1]:void 0;if(t)return{errorName:`unknown`,message:t}}return{errorName:`unknown`,message:t.replace(/^execution reverted:\s*/i,``)}}export{Le as a,ge as c,Ve as i,L as l,Re as n,K as o,Q as r,ve as s,Be as t};
|
|
2
|
+
//# sourceMappingURL=ExecutionError-DoRNvh3D.js.map
|