@dcl/shop 0.1.0-29843281528.commit-80ee4fe → 0.1.0-29869835587.commit-e6e6578
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/assets/{AnimatedBackground-DuljJ5eE.js → AnimatedBackground-BvysF8a0.js} +1 -1
- package/assets/Assets-DoUIRoSX.js +503 -0
- package/assets/{Cart-DgfiEY34.js → Cart-Cyj_u0xP.js} +1 -1
- package/assets/{CircularProgress-CFOLSY9J.js → CircularProgress-Bf7cTa84.js} +5 -5
- package/assets/{Collection-Br_6eVW2.js → Collection-BFUSn0Z_.js} +2 -2
- package/assets/{CollectionCarousel-DijkJOGi.js → CollectionCarousel-BaK4BZqg.js} +1 -1
- package/assets/Creator-CTfg9WAL.js +1 -0
- package/assets/{CssVarsProvider-B-9OhdaT.js → CssVarsProvider-DQXUaIP8.js} +1 -1
- package/assets/{ExchangeController-DZeSfQ3O.js → ExchangeController-H99cRhIr.js} +1 -1
- package/assets/GetCredits-BqhYAHL0.js +1 -0
- package/assets/{HelpersUtil-CIxak-Dl.js → HelpersUtil-CN9OoRaT.js} +1 -1
- package/assets/{ImportListings-BupAm--j.js → ImportListings-CCQDdZMF.js} +2 -2
- package/assets/ItemDetail-BiAHzfHh.css +1 -0
- package/assets/ItemDetail-C6EEFa3M.js +78 -0
- package/assets/{LoadMore-DdNzWoKw.js → LoadMore-QYabEF53.js} +1 -1
- package/assets/MarketCheckout-B1QbAQBC.js +50 -0
- package/assets/{MyAssets-Bob-0Xll.js → MyAssets-gjvqMgx3.js} +3 -3
- package/assets/{MyFavorites-DIQniaKO.js → MyFavorites-CCbFgdqL.js} +1 -1
- package/assets/{MyPurchases-Ds2kIXc6.js → MyPurchases-D04-_M8f.js} +1 -1
- package/assets/{NotFound-CTFVq52Q.js → NotFound-ViHzr3Nr.js} +1 -1
- package/assets/PrimaryListModal-D6DU8-ZC.js +1 -0
- package/assets/{StoreSettings-CcLPXhlS.js → StoreSettings-BnHjda9z.js} +8 -8
- package/assets/{Success-CKgJamne.js → Success-CbfD54bz.js} +2 -2
- package/assets/{SwapController-BvaLktQP.js → SwapController-Tfj7j5wZ.js} +1 -1
- package/assets/{TradeService-BkvXSNTO.js → TradeService-kxdTGO_i.js} +1 -1
- package/assets/{W3MFrameProviderSingleton-CVKTirvY.js → W3MFrameProviderSingleton-BWjqHbac.js} +3 -3
- package/assets/{WebCryptoP256-DqHDVOgM.js → WebCryptoP256-8HU24K3x.js} +1 -1
- package/assets/{basic-CPzfNN7q.js → basic-DX-B5_bS.js} +1 -1
- package/assets/{biconomy-Dv0xaKml.js → biconomy-DIiiyQwz.js} +1 -1
- package/assets/{buy-C-p0vOlr.js → buy-C5_gzZWJ.js} +1 -1
- package/assets/{buy-gasless-80rsxFwS.js → buy-gasless-Cxx1jwuH.js} +1 -1
- package/assets/{cart-checkout-C8WkR2Mv.js → cart-checkout-C3WNM4cy.js} +1 -1
- package/assets/{categories-DMvvNpsP.js → categories-DQ55lr2p.js} +10 -10
- package/assets/{ccip-BwOwAXNb.js → ccip-BafcYzQ9.js} +1 -1
- package/assets/{ccip-BwGwocPa.js → ccip-CYEnvd4I.js} +1 -1
- package/assets/collection-DHOETntw.js +1 -0
- package/assets/{controller-CgqGHx7D.js → controller-B80HcZCL.js} +2 -2
- package/assets/{core-B2nfA4sd.js → core-BtRDOtev.js} +4 -4
- package/assets/{custom-CdZQaelR.js → custom-DiiPEfeO.js} +1 -1
- package/assets/{data-capture-DMW4pF-p.js → data-capture-BFGedRFL.js} +1 -1
- package/assets/{decimals-D67NJCrH.js → decimals-Cdn10TAV.js} +1 -1
- package/assets/{decimals-rp_QRWgQ.js → decimals-DCazhsdS.js} +1 -1
- package/assets/{detectExtension-CdyBy88S.js → detectExtension-BSAkQ0I6.js} +1 -1
- package/assets/{email-DbiwTCeu.js → email-D8YhsjSC.js} +1 -1
- package/assets/{embedded-wallet-BsM4YZGP.js → embedded-wallet-CIVu6rdk.js} +1 -1
- package/assets/emotion-CSxEP8yM.js +1 -0
- package/assets/emotion-styled.browser.esm-ClqtCiJQ.js +1 -0
- package/assets/{engine-BIaee4cN.js → engine-DsQHyohE.js} +1 -1
- package/assets/{errors-Cy2OMz1f.js → errors-BLIsDEoc.js} +1 -1
- package/assets/{estimate-l1-fee-gJM_qs-2.js → estimate-l1-fee-Cna0j8C0.js} +1 -1
- package/assets/{eth_estimateGas-D2ajTk6Z.js → eth_estimateGas-A7dV8Dq8.js} +1 -1
- package/assets/{eth_getStorageAt-BvK-sxlh.js → eth_getStorageAt-DVqXAuzZ.js} +1 -1
- package/assets/{eth_getTransactionCount-YDPYaO31.js → eth_getTransactionCount-DLrwUt6V.js} +1 -1
- package/assets/{extractIPFS-jmhJ6PDc.js → extractIPFS-Dq1wghef.js} +1 -1
- package/assets/{features-DliQhpqn.js → features-CFz8G3yF.js} +1 -1
- package/assets/{fetchTokenMetadata-e-tnU9jP.js → fetchTokenMetadata-BTRazXId.js} +2 -2
- package/assets/{get-ecosystem-wallet-info-CZC3jXDk.js → get-ecosystem-wallet-info-B8H2bbhI.js} +1 -1
- package/assets/{getBalance-DW56jwnz.js → getBalance-BewKvJ6T.js} +1 -1
- package/assets/{getInstalledModules-DnVuL5FL.js → getInstalledModules-ByFUGStC.js} +1 -1
- package/assets/{getNFT-BrnrnPkZ.js → getNFT-1nUsfQAJ.js} +1 -1
- package/assets/{getNFT-DS4NW5JT.js → getNFT-BuDjU8-b.js} +2 -2
- package/assets/{getOverlayAlpha-BYOq19Nw.js → getOverlayAlpha-B_CoLTSj.js} +1 -1
- package/assets/{hashTypedData-CwfOunhR.js → hashTypedData-BYNsvxyc.js} +1 -1
- package/assets/{hashTypedData-y5e_N0pF.js → hashTypedData-DHR5yJit.js} +1 -1
- package/assets/{import-DGp843-7.js → import-CWsWpkUA.js} +1 -1
- package/assets/{in-app-wallet-calls-ByxidTQ9.js → in-app-wallet-calls-Fj_OJpWi.js} +1 -1
- package/assets/{index-CRwyTQtp.js → index--JSSHFMQ.js} +1 -1
- package/assets/{index-CczWbtzB.js → index-07n_zhYq.js} +1 -1
- package/assets/{index-kB2cGSV_.js → index-2yTqM9xZ.js} +1 -1
- package/assets/{index-BOxK6fGr.js → index-B04ndUbB.js} +2 -2
- package/assets/{index-BCJ8zpyP.js → index-B3vzzuVP.js} +1 -1
- package/assets/{index-DHR1PStF.js → index-B4OkjZ5Z.js} +3 -3
- package/assets/{index-DsA36hey.js → index-B4p2eLga.js} +1 -1
- package/assets/index-BBuZMaWr.js +231 -0
- package/assets/{index-CAlaPEFD.js → index-BCGZozX2.js} +1 -1
- package/assets/{index-CEE7Cn_g.js → index-BDRB8FDm.js} +1 -1
- package/assets/{index-m29akl6f.js → index-BDfpUFpd.js} +1 -1
- package/assets/{index-5c0GQ1Nl.js → index-BMFRmVon.js} +1 -1
- package/assets/{index-DJ4kGSWA.js → index-BQwZ_U1w.js} +1 -1
- package/assets/{index-BX4FwzVP.js → index-BSjx8-a9.js} +1 -1
- package/assets/{index-CqiRo3Zn.js → index-BmxotHif.js} +1 -1
- package/assets/{index-E8b-gnkf.js → index-BtmcJRGy.js} +1 -1
- package/assets/{index-Hi72v_of.js → index-BuMOiAUw.js} +1 -1
- package/assets/{index-BJi9mWLa.js → index-BufR0bxC.js} +1 -1
- package/assets/{index-nLudmUJ4.js → index-C7VPGrdO.js} +1 -1
- package/assets/{index-BLFpf7VZ.js → index-CN5ZLDnc.js} +1 -1
- package/assets/{index-CthUHORI.js → index-CTwiT5J0.js} +1 -1
- package/assets/{index-B2az3PiP.js → index-CWuMb79R.js} +3 -3
- package/assets/{index-BVNelofo.js → index-CXYokVDz.js} +1 -1
- package/assets/{index-BVLvW024.js → index-C_jKIil3.js} +1 -1
- package/assets/{index-BqZuhkNd.js → index-CaHcCfyv.js} +1 -1
- package/assets/{index-WmhNuNqi.js → index-CcJuo_B4.js} +1 -1
- package/assets/{index-CnR9-WYz.js → index-CdfmzGmf.js} +1 -1
- package/assets/{index-DNGMKwFA.js → index-Cmi7sq59.js} +1 -1
- package/assets/{index-B0v1VfMr.js → index-Cr7q_wI-.js} +1 -1
- package/assets/{index-BoOFl8c5.js → index-CtzfdSwK.js} +1 -1
- package/assets/{index-ygPPQNgl.js → index-Cuf2In7m.js} +1 -1
- package/assets/{index-BR727Jzt.js → index-Cuq6iGY1.js} +1 -1
- package/assets/{index-BJMmq_1b.js → index-Cv6TsksD.js} +1 -1
- package/assets/{index-DM2l6nmY.js → index-CwWLPHI8.js} +1 -1
- package/assets/{index-g4vOnab2.js → index-CzDOjIXr.js} +1 -1
- package/assets/{index-BWP2Fumx.js → index-DJsdR_Dh.js} +1 -1
- package/assets/{index-ChULorg8.js → index-Da6whmyR.js} +1 -1
- package/assets/{index-Dt2sCUK8.js → index-DfnBxBKK.js} +2 -2
- package/assets/{index-BhjB6g3C.js → index-Dhu9IXc1.js} +1 -1
- package/assets/{index-BRDfjRE7.js → index-DkfyzgR8.js} +1 -1
- package/assets/{index-BT3aLy2n.js → index-Do7lLz-O.js} +1 -1
- package/assets/{index-1HD-ZiOz.js → index-FUu8bz4c.js} +1 -1
- package/assets/{index-CXBJ9EIH.js → index-PGZV0u8x.js} +1 -1
- package/assets/index-PISx9bvm.css +1 -0
- package/assets/{index-D51Jnqov.js → index-Y6b_vUQr.js} +1 -1
- package/assets/{index-Bu8ostX3.js → index-fOZ3JG1l.js} +1 -1
- package/assets/{index-MuXuv7Gk.js → index-g3sxw2b2.js} +2 -2
- package/assets/{index-rvOCdvOD.js → index-goSkKmOv.js} +1 -1
- package/assets/{index-CqSBxYu9.js → index-gvpjFbR1.js} +1 -1
- package/assets/{index-DJoRdzge.js → index-mfpj9mGL.js} +1 -1
- package/assets/{index-DI8CjH9V.js → index-nRbKhfJe.js} +2 -2
- package/assets/{index-td4pFZfG.js → index-tKIgdudq.js} +1 -1
- package/assets/{index.es-Bvwb44-d.js → index.es-BsTkmkjS.js} +1 -1
- package/assets/{index.es-C7AZp5D9.js → index.es-CiHN99GO.js} +1 -1
- package/assets/{index.es-F7YT6EP3.js → index.es-Dvmu0NoU.js} +4 -4
- package/assets/loader-logo-CK-TcJ-S.js +1 -0
- package/assets/{localBatchGatewayRequest-zR7Ha1uQ.js → localBatchGatewayRequest-Cej95COc.js} +1 -1
- package/assets/{mana-rate-B9PgPeC4.js → mana-rate-Disk-ReT.js} +1 -1
- package/assets/{networks-dXDx9gAD.js → networks-Dapm2cWP.js} +1 -1
- package/assets/{onramp-fNtRJPac.js → onramp-DLQLHSLI.js} +1 -1
- package/assets/{openzeppelin-sYEux5UU.js → openzeppelin-B2ua0Itn.js} +1 -1
- package/assets/{ownerOf-CnmeWudT.js → ownerOf-DOppg2jR.js} +1 -1
- package/assets/{parseNft-T29OsJ6m.js → parseNft-D_8M9mfO.js} +2 -2
- package/assets/{parseSignature-D06Xu3Gf.js → parseSignature-BUx9b-zW.js} +3 -3
- package/assets/{parseSignature-C6Ri9jBZ.js → parseSignature-O3FZfUUc.js} +1 -1
- package/assets/{pay-with-exchange-BoMmA1Tj.js → pay-with-exchange-DaiVhZAg.js} +1 -1
- package/assets/{qr-overlay-beGwyXqx.js → qr-overlay-CGmkZvV0.js} +1 -1
- package/assets/{receive-D4ql0UiI.js → receive-DVL3YCyE.js} +1 -1
- package/assets/{resolveImplementation-DQuU7tt4.js → resolveImplementation-06H3horI.js} +1 -1
- package/assets/{rpc-dvg5kHBi.js → rpc-q1fg-PaK.js} +1 -1
- package/assets/{secp256k1-BRQHdiKx.js → secp256k1-D6rN1PGV.js} +1 -1
- package/assets/{secp256k1-BiBpjJ-Y.js → secp256k1-DT5nTJQH.js} +1 -1
- package/assets/{secp256k1-DzCAsKA4.js → secp256k1-Dj-unqH_.js} +1 -1
- package/assets/{send-DsvtMOwS.js → send-CjhoocaG.js} +1 -1
- package/assets/{send-batch-transaction-BI7PszNe.js → send-batch-transaction-Bbiva6rb.js} +1 -1
- package/assets/{send-eip712-transaction-DkDZjHS-.js → send-eip712-transaction-NxK7USDp.js} +2 -2
- package/assets/{send-gasless-transaction-BWiIvBJH.js → send-gasless-transaction-x5mofsoE.js} +2 -2
- package/assets/{sendRawTransaction-CJYjLdky.js → sendRawTransaction-CxX-WJOv.js} +3 -3
- package/assets/{serializeTransaction-DsE3bqzt.js → serializeTransaction-KtBgxNjB.js} +1 -1
- package/assets/{session-proposal-C87UteoU.js → session-proposal-KoaDAo-a.js} +1 -1
- package/assets/{session-request-Dp0rC7zH.js → session-request-CSef7ndM.js} +2 -2
- package/assets/{sha256-D0Lh0Apw.js → sha256-DkPvB4om.js} +1 -1
- package/assets/{signing-BPU6VB4U.js → signing-B9F_g0GG.js} +4 -4
- package/assets/{socials-DS6Oy5zA.js → socials-BqxUUXtR.js} +1 -1
- package/assets/{swaps-D1v4d6OG.js → swaps-EDZta6zk.js} +1 -1
- package/assets/{thirdweb-C4HaRY0z.js → thirdweb-D99mQjH-.js} +3 -3
- package/assets/{totalSupply-BeKwmSJ8.js → totalSupply-BhpAtMjH.js} +1 -1
- package/assets/{trade-encoding-DWEKE2_D.js → trade-encoding-CWytSFjw.js} +1 -1
- package/assets/{transactionReceipt-hL0wb2x7.js → transactionReceipt-OilL7-NS.js} +1 -1
- package/assets/{transactions-D8hLtdUl.js → transactions-CGvL3Aj1.js} +1 -1
- package/assets/useInfiniteGrid-CpiD11c4.js +1 -0
- package/assets/{useStore-JJzXYl67.js → useStore-CQIJvFZA.js} +1 -1
- package/assets/useTheme-6tr3eE7K.js +1 -0
- package/assets/useTheme-Dpdkvivv.js +1 -0
- package/assets/{verifyHash-8JWQpVAA.js → verifyHash-2hJaw2xF.js} +1 -1
- package/assets/{w3m-modal-BsLEDK_w.js → w3m-modal-CXTIrAhw.js} +1 -1
- package/assets/{w3m-modal-C6EBRfim.js → w3m-modal-DZpfNka8.js} +1 -1
- package/assets/{wait-for-tx-receipt-Dwtf8AK-.js → wait-for-tx-receipt-Dt-8wYDQ.js} +1 -1
- package/assets/{wallets-gXvJ-4C5.js → wallets-v6YyPYY8.js} +6 -6
- package/assets/{web-connector-DF_01FjF.js → web-connector-DBKfHuJF.js} +3 -3
- package/assets/{writeContract-w2MHfkK2.js → writeContract-CJkUo9D7.js} +1 -1
- package/assets/{zoraTestnet-B_HTvQOr.js → zoraTestnet-CRD_79WO.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/assets/Assets-C_Pb_gKM.js +0 -503
- package/assets/Creator-CXMSNUos.js +0 -1
- package/assets/GetCredits-Dc4MRaep.js +0 -1
- package/assets/ItemDetail-CGF_X4b-.js +0 -48
- package/assets/ItemDetail-CV-0-ZkB.css +0 -1
- package/assets/MarketCheckout-Cec3x9i9.js +0 -3
- package/assets/PrimaryListModal-Ca5_30gC.js +0 -1
- package/assets/collection-DPrYZX6W.js +0 -1
- package/assets/emotion-styled.browser.esm-exjoQmBi.js +0 -1
- package/assets/index-BqifAYYN.css +0 -1
- package/assets/index-T-zasmbE.js +0 -231
- package/assets/loader-logo-sfRgTXGv.js +0 -1
- package/assets/useInfiniteGrid-DtqZsW6Q.js +0 -1
- package/assets/useTheme-B1XbAz3A.js +0 -1
- package/assets/useTheme-Cke4HwaD.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/native-BMBZUPnx.js","assets/sentry-DKBoGDXH.js","assets/react-C51i12iP.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{p as gt,b as Yt,i as Zt,I as Qt,m as bt,s as ut,A as D,e as Xt,g as U,d as te,f as N,r as ee,h as ae,j as ne,k as re,w as se,n as oe,o as ie,q as ce,t as ue,v as de,u as le,x as Q,y as me,z as fe,B as he,C as $,D as pe,E as ye,F as ge,G as be,H as we,J as xe,K as Ee,L as Ie,M as Te,N as St,O as At,P as Ce,Q as Pt,R as _t,S as Rt,T as ve,U as dt,V as qt,W as Se,X as Ae,Y as Ft,Z as Pe,_ as Ut,$ as J,a0 as _e,a1 as kt,a2 as Re,a3 as qe,a4 as lt,a5 as Fe,a6 as Ue,a7 as ke,a8 as Be,a9 as Ne,aa as Bt,ab as Le}from"./parseSignature-D06Xu3Gf.js";import{ac as vr,ad as Sr,ae as Ar,af as Pr,ag as _r,ah as Rr,ai as qr,aj as Fr,ak as Ur,al as kr,am as Br,an as Nr,ao as Lr,ap as Mr,aq as Dr,ar as zr,as as Gr,at as $r,au as Hr,av as Or,aw as jr,ax as Wr,ay as Vr,az as Jr,aA as Kr,aB as Yr,aC as Zr,aD as Qr,aE as Xr,aF as ts,aG as es,aH as as,aI as ns,aJ as rs,aK as ss,aL as os,aM as is,aN as cs,aO as us,aP as ds,aQ as ls,aR as ms,aS as fs,aT as hs,aU as ps,aV as ys,aW as gs,aX as bs,aY as ws,aZ as xs,a_ as Es,a$ as Is,b0 as Ts,b1 as Cs,b2 as vs,b3 as Ss,b4 as As,b5 as Ps,b6 as _s,b7 as Rs,b8 as qs,b9 as Fs,ba as Us,bb as ks,bc as Bs,bd as Ns,be as Ls,bf as Ms,bg as Ds,bh as zs,bi as Gs,bj as $s,bk as Hs,bl as Os,bm as js,bn as Ws,bo as Vs,bp as Js,bq as Ks,br as Ys,bs as Zs,bt as Qs,bu as Xs,bv as to,bw as eo,bx as ao,by as no,bz as ro,br as so,bA as oo,bB as io,bC as co,bD as uo,bE as lo,bF as mo,bG as fo,bH as ho,bH as po,bI as yo,bJ as go,bi as bo,bj as wo,bK as xo,bL as Eo,bM as Io,bN as To,bO as Co}from"./parseSignature-D06Xu3Gf.js";import{T as B,b9 as k,U as Me,I as Y,ba as De,G as ze,bb as Ge,X as H,_ as ct,$ as G,B as mt,D as E,P as $e,a7 as He,bc as j,a6 as wt,R as Nt,bd as Lt,d as Mt,L as R,F as ft,A as F,be as A,M as Oe,N as je,bf as We,bg as xt,aG as ht,J as Ve,bh as Je,bi as Ke,bj as Ye,bk as Et}from"./signing-BPU6VB4U.js";import{bl as So,bm as Ao,bn as Po,bo as _o,bp as Ro,bq as qo,br as Fo,bs as Uo,bt as ko,bu as Bo,bv as No,bw as Lo,bx as Mo,by as Do,bz as zo,Q as Go,bA as $o,bB as Ho,bC as Oo,bD as jo,bE as Wo,bF as Vo,bG as Jo,bH as Ko,bI as Yo,bJ as Zo,bK as Qo,bL as Xo,bM as ti,bN as ei,bO as ai,bP as ni,bQ as ri,bR as si,bS as oi,bT as ii,bU as ci,bV as ui,E as di,bW as li,bX as mi,bY as fi,bZ as hi,b_ as pi,p as yi,b$ as gi,at as bi,au as wi,c0 as xi,c1 as Ei,c2 as Ii,c3 as Ti,c4 as Ci,f as vi,c4 as Si,c5 as Ai,c6 as Pi,c7 as _i,c8 as Ri,c9 as qi,ca as Fi,cb as Ui,cc as ki,cd as Bi,C as Ni,ce as Li,c3 as Mi,c4 as Di,ce as zi,f as Gi,c4 as $i,z as Hi}from"./signing-BPU6VB4U.js";import{w as Ze,h as Qe,g as Xe,v as ta,s as ea}from"./hashTypedData-y5e_N0pF.js";import{I as ji,a as Wi,b as Vi,d as Ji,c as Ki,e as Yi}from"./hashTypedData-y5e_N0pF.js";import{T as aa,a as Z,W as It,b as na,U as ra,R as sa}from"./rpc-dvg5kHBi.js";import{A as Qi,c as Xi,B as tc,C as ec,D as ac,H as nc,I as rc,d as sc,e as oc,f as ic,J as cc,L as uc,M as dc,h as lc,P as mc,i as fc,j as hc,k as pc,l as yc,m as gc,S as bc,n as wc,o as xc,p as Ec,q as Ic,r as Tc,s as Cc}from"./rpc-dvg5kHBi.js";import{_ as oa}from"./index-T-zasmbE.js";import{t as ia,H as ca}from"./sha256-D0Lh0Apw.js";import{b as Sc,h as Ac,a as Pc,c as _c,d as Rc,e as qc,f as Fc,g as Uc,i as kc,j as Bc,k as Nc,l as Lc,n as Mc,o as Dc,p as zc,q as Gc,r as $c,u as Hc,v as Oc,w as jc,x as Wc,y as Vc,z as Jc,A as Kc,B as Yc,C as Zc,D as Qc,E as Xc,F as tu,G as eu,I as au,J as nu,K as ru,L as su,M as ou,N as iu,O as cu,P as uu,Q as du,R as lu,S as mu,m as fu,T as hu,U as pu,V as yu,W as gu,X as bu,Y as wu,Z as xu,_ as Eu,$ as Iu,a0 as Tu,a1 as Cu,a2 as vu,a3 as Su,a4 as Au,a5 as Pu,a6 as _u,a7 as Ru,a8 as qu,a9 as Fu,aa as Uu,ab as ku,ac as Bu,ad as Nu,ae as Lu,af as Mu,ag as Du,ah as zu,ai as Gu,aj as $u,ak as Hu,al as Ou,am as ju,an as Wu,ao as Vu,ap as Ju,aq as Ku,ar as Yu,as as Zu,at as Qu,au as Xu,av as td,aw as ed,ax as ad,ay as nd,az as rd,aA as sd,aB as od,aC as id,aD as cd,aE as ud,aF as dd,aG as ld,aH as md,aI as fd,aJ as hd,aK as pd,s as yd}from"./sha256-D0Lh0Apw.js";import{ccipRequest as bd,ccipRequest as wd,offchainLookup as xd,offchainLookupAbiItem as Ed,offchainLookupSignature as Id}from"./ccip-BwOwAXNb.js";import{d as Cd,a as vd,f as Sd}from"./transactionReceipt-hL0wb2x7.js";import"./utils-CBfcEx8F.js";import"./sentry-DKBoGDXH.js";import"./react-C51i12iP.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-BeFqf2KO.js";import"./intl-CBcMB1D2.js";function Jn(t){let e;if(typeof t=="string")e=gt(t,{modifiers:bt});else{const a=Yt(t),n=t.length;for(let r=0;r<n;r++){const s=t[r];if(!Zt(s)){e=gt(s,{modifiers:bt,structs:a});break}}}if(!e)throw new Qt({param:t});return e}async function M(t,e){return M.internal(t,ut,"sendTransaction",e)}(function(t){async function e(a,n,r,s){const{abi:u,account:d=a.account,address:c,args:i,dataSuffix:f,functionName:m,...h}=s;if(typeof d>"u")throw new D({docsPath:"/docs/contract/writeContract"});const o=d?N(d):null,p=Xt({abi:u,args:i,functionName:m});try{return await U(a,n,r)({data:`${p}${f?f.replace("0x",""):""}`,to:c,account:o,...h})}catch(l){throw te(l,{abi:u,address:c,args:i,docsPath:"/docs/contract/writeContract",functionName:m,sender:o==null?void 0:o.address})}}t.internal=e})(M||(M={}));function Kn({abi:t,address:e,client:a}){const n=a,[r,s]=n?"public"in n&&"wallet"in n?[n.public,n.wallet]:"public"in n?[n.public,void 0]:"wallet"in n?[void 0,n.wallet]:[n,n]:[void 0,void 0],u=r!=null,d=s!=null,c={};let i=!1,f=!1,m=!1;for(const h of t)if(h.type==="function"?h.stateMutability==="view"||h.stateMutability==="pure"?i=!0:f=!0:h.type==="event"&&(m=!0),i&&f&&m)break;return u&&(i&&(c.read=new Proxy({},{get(h,o){return(...p)=>{const{args:l,options:y}=W(p);return U(r,ee,"readContract")({abi:t,address:e,functionName:o,args:l,...y})}}})),f&&(c.simulate=new Proxy({},{get(h,o){return(...p)=>{const{args:l,options:y}=W(p);return U(r,ae,"simulateContract")({abi:t,address:e,functionName:o,args:l,...y})}}})),m&&(c.createEventFilter=new Proxy({},{get(h,o){return(...p)=>{const l=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(p,l);return U(r,ne,"createContractEventFilter")({abi:t,address:e,eventName:o,args:y,...w})}}}),c.getEvents=new Proxy({},{get(h,o){return(...p)=>{const l=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(p,l);return U(r,re,"getContractEvents")({abi:t,address:e,eventName:o,args:y,...w})}}}),c.watchEvent=new Proxy({},{get(h,o){return(...p)=>{const l=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(p,l);return U(r,se,"watchContractEvent")({abi:t,address:e,eventName:o,args:y,...w})}}}))),d&&f&&(c.write=new Proxy({},{get(h,o){return(...p)=>{const{args:l,options:y}=W(p);return U(s,M,"writeContract")({abi:t,address:e,functionName:o,args:l,...y})}}})),(u||d)&&f&&(c.estimateGas=new Proxy({},{get(h,o){return(...p)=>{const{args:l,options:y}=W(p);return U(r??s,oe,"estimateContractGas")({abi:t,address:e,functionName:o,args:l,...y,account:y.account??s.account})}}})),c.address=e,c.abi=t,c}function W(t){const e=t.length&&Array.isArray(t[0]),a=e?t[0]:[],n=(e?t[1]:t[0])??{};return{args:a,options:n}}function rt(t,e){let a=!1;Array.isArray(t[0])?a=!0:t.length===1?a=e.inputs.some(s=>s.indexed):t.length===2&&(a=!0);const n=a?t[0]:void 0,r=(a?t[1]:t[0])??{};return{args:n,options:r}}function Tt(t){return!t||typeof t!="object"||!("BYTES_PER_ELEMENT"in t)?!1:t.BYTES_PER_ELEMENT===1&&t.constructor.name==="Uint8Array"}function Yn(t){return t.opcode==="CREATE2"?da(t):ua(t)}function ua(t){const e=B(k(t.from));let a=B(t.nonce);return a[0]===0&&(a=new Uint8Array([])),k(`0x${Y(ia([e,a],"bytes")).slice(26)}`)}function da(t){const e=B(k(t.from)),a=Me(Tt(t.salt)?t.salt:B(t.salt),{size:32}),n="bytecodeHash"in t?Tt(t.bytecodeHash)?t.bytecodeHash:B(t.bytecodeHash):Y(t.bytecode,"bytes");return k(De(Y(ze([B("0xff"),e,a,n])),12))}function Zn({chains:t,id:e}){return t.find(a=>a.id===e)}function Dt(t,e="hex"){const a=(()=>{if(typeof t=="string"){if(t.length>3&&t.length%2!==0)throw new Ge(t);return H(t)}return t})(),n=ct(a,{recursiveReadLimit:Number.POSITIVE_INFINITY});return zt(n,e)}function zt(t,e="hex"){if(t.bytes.length===0)return e==="hex"?G(t.bytes):t.bytes;const a=t.readByte();if(a<128&&t.decrementPosition(1),a<192){const r=Ct(t,a,128),s=t.readBytes(r);return e==="hex"?G(s):s}const n=Ct(t,a,192);return la(t,n,e)}function Ct(t,e,a){if(a===128&&e<128)return 1;if(e<=a+55)return e-a;if(e===a+55+1)return t.readUint8();if(e===a+55+2)return t.readUint16();if(e===a+55+3)return t.readUint24();if(e===a+55+4)return t.readUint32();throw new mt("Invalid RLP prefix")}function la(t,e,a){const n=t.position,r=[];for(;t.position-n<e;)r.push(zt(t,a));return r}function ma(t){return E(t)&&$e(t)===32}const fa=Uint8Array.from([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),Gt=Uint8Array.from(new Array(16).fill(0).map((t,e)=>e)),ha=Gt.map(t=>(9*t+5)%16),$t=(()=>{const a=[[Gt],[ha]];for(let n=0;n<4;n++)for(let r of a)r.push(r[n].map(s=>fa[s]));return a})(),Ht=$t[0],Ot=$t[1],jt=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(t=>Uint8Array.from(t)),pa=Ht.map((t,e)=>t.map(a=>jt[e][a])),ya=Ot.map((t,e)=>t.map(a=>jt[e][a])),ga=Uint32Array.from([0,1518500249,1859775393,2400959708,2840853838]),ba=Uint32Array.from([1352829926,1548603684,1836072691,2053994217,0]);function vt(t,e,a,n){return t===0?e^a^n:t===1?e&a|~e&n:t===2?(e|~a)^n:t===3?e&n|a&~n:e^(a|~n)}const V=new Uint32Array(16);class wa extends ca{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:a,h2:n,h3:r,h4:s}=this;return[e,a,n,r,s]}set(e,a,n,r,s){this.h0=e|0,this.h1=a|0,this.h2=n|0,this.h3=r|0,this.h4=s|0}process(e,a){for(let o=0;o<16;o++,a+=4)V[o]=e.getUint32(a,!0);let n=this.h0|0,r=n,s=this.h1|0,u=s,d=this.h2|0,c=d,i=this.h3|0,f=i,m=this.h4|0,h=m;for(let o=0;o<5;o++){const p=4-o,l=ga[o],y=ba[o],w=Ht[o],g=Ot[o],C=pa[o],b=ya[o];for(let x=0;x<16;x++){const I=j(n+vt(o,s,d,i)+V[w[x]]+l,C[x])+m|0;n=m,m=i,i=j(d,10)|0,d=s,s=I}for(let x=0;x<16;x++){const I=j(r+vt(p,u,c,f)+V[g[x]]+y,b[x])+h|0;r=h,h=f,f=j(c,10)|0,c=u,u=I}}this.set(this.h1+d+f|0,this.h2+i+h|0,this.h3+m+r|0,this.h4+n+u|0,this.h0+s+c|0)}roundClean(){wt(V)}destroy(){this.destroyed=!0,wt(this.buffer),this.set(0,0,0,0,0)}}const xa=He(()=>new wa),Ea=xa;function Qn(t,e){const a=e||"hex",n=Ea(E(t,{strict:!1})?B(t):t);return a==="bytes"?n:Nt(n)}const st=new Map;async function Ia(t){const{getSocket:e,keepAlive:a=!0,key:n="socket",reconnect:r=!0,url:s}=t,{interval:u=3e4}=typeof a=="object"?a:{},{attempts:d=5,delay:c=2e3}=typeof r=="object"?r:{},i=JSON.stringify({keepAlive:a,key:n,url:s,reconnect:r});let f=st.get(i);if(f)return f;let m=0;const{schedule:h}=ie({id:i,fn:async()=>{const l=new Map,y=new Map;let w,g,C,b=!1;function x(){if(r&&m<d){if(b)return;b=!0,m++,g==null||g.close(),setTimeout(async()=>{await I().catch(console.error),b=!1},c)}else l.clear(),y.clear()}async function I(){const T=await e({onClose(){var v,P;for(const S of l.values())(v=S.onError)==null||v.call(S,new Z({url:s}));for(const S of y.values())(P=S.onError)==null||P.call(S,new Z({url:s}));x()},onError(v){var P,S;w=v;for(const _ of l.values())(P=_.onError)==null||P.call(_,w);for(const _ of y.values())(S=_.onError)==null||S.call(_,w);x()},onOpen(){w=void 0,m=0},onResponse(v){const P=v.method==="eth_subscription",S=P?v.params.subscription:v.id,_=P?y:l,q=_.get(S);q&&q.onResponse(v),P||_.delete(S)}});if(g=T,a&&(C&&clearInterval(C),C=setInterval(()=>{var v;return(v=g.ping)==null?void 0:v.call(g)},u)),r&&y.size>0){const v=y.entries();for(const[P,{onResponse:S,body:_,onError:q}]of v)_&&(y.delete(P),f==null||f.request({body:_,onResponse:S,onError:q}))}return T}return await I(),w=void 0,f={close(){C&&clearInterval(C),g.close(),st.delete(i)},get socket(){return g},request({body:T,onError:v,onResponse:P}){w&&v&&v(w);const S=T.id??ce.take(),_=q=>{var z;typeof q.id=="number"&&S!==q.id||(T.method==="eth_subscribe"&&typeof q.result=="string"&&y.set(q.result,{onResponse:_,onError:v,body:T}),T.method==="eth_unsubscribe"&&y.delete((z=T.params)==null?void 0:z[0]),P(q))};l.set(S,{onResponse:_,onError:v});try{g.request({body:{jsonrpc:"2.0",id:S,...T}})}catch(q){v==null||v(q)}},requestAsync({body:T,timeout:v=1e4}){return Ze(()=>new Promise((P,S)=>this.request({body:T,onError:S,onResponse:P})),{errorInstance:new aa({body:T,url:s}),timeout:v})},requests:l,subscriptions:y,url:s},st.set(i,f),[f]}}),[o,[p]]=await h();return p}async function K(t,e={}){const{keepAlive:a,reconnect:n}=e;return Ia({async getSocket({onClose:r,onError:s,onOpen:u,onResponse:d}){const c=await oa(()=>import("./native-BMBZUPnx.js").then(o=>o.n),__vite__mapDeps([0,1,2])).then(o=>o.WebSocket),i=new c(t);function f(){i.removeEventListener("close",f),i.removeEventListener("message",m),i.removeEventListener("error",s),i.removeEventListener("open",u),r()}function m({data:o}){if(!(typeof o=="string"&&o.trim().length===0))try{const p=JSON.parse(o);d(p)}catch(p){s(p)}}i.addEventListener("close",f),i.addEventListener("message",m),i.addEventListener("error",s),i.addEventListener("open",u),i.readyState===c.CONNECTING&&await new Promise((o,p)=>{i&&(i.onopen=o,i.onerror=p)});const{close:h}=i;return Object.assign(i,{close(){h.bind(i)(),f()},ping(){try{if(i.readyState===i.CLOSED||i.readyState===i.CLOSING)throw new It({url:i.url,cause:new Z({url:i.url})});const o={jsonrpc:"2.0",id:null,method:"net_version",params:[]};i.send(JSON.stringify(o))}catch(o){s(o)}},request({body:o}){if(i.readyState===i.CLOSED||i.readyState===i.CLOSING)throw new It({body:o,url:i.url,cause:new Z({url:i.url})});return i.send(JSON.stringify(o))}})},keepAlive:a,reconnect:n,url:t})}async function Ta(t){const e=await K(t);return Object.assign(e.socket,{requests:e.requests,subscriptions:e.subscriptions})}function Ca(t){return Lt(t,-32)===ue}function va(t){return de(t)}function Xn(t){if(!Ca(t))return{signature:t};const[e,a,n]=Mt([{type:"address"},{type:"bytes"},{type:"bytes"}],t);return{address:e,data:a,signature:n}}function tr(t){if(!va(t))return{signature:t};const{authorization:e,to:a,...n}=le(t);return{authorization:{address:e.address,chainId:e.chainId,nonce:Number(e.nonce),r:R(e.r,{size:32}),s:R(e.s,{size:32}),yParity:e.yParity},...a?{address:a}:{},...n}}async function Sa({message:t,signature:e}){return Q({hash:me(t),signature:e})}async function Aa(t){const{domain:e,message:a,primaryType:n,signature:r,types:s}=t;return Q({hash:Qe({domain:e,message:a,primaryType:n,types:s}),signature:r})}function er(t){const{address:e,data:a,signature:n,to:r="hex"}=t,s=fe({authorization:{address:t.authorization.address,chainId:t.authorization.chainId,nonce:BigInt(t.authorization.nonce),r:BigInt(t.authorization.r),s:BigInt(t.authorization.s),yParity:t.authorization.yParity},data:a,signature:n,to:e});return r==="hex"?s:H(s)}async function ar({address:t,hash:e,signature:a}){return ft(k(t),await Q({hash:e,signature:a}))}async function nr({address:t,message:e,signature:a}){return ft(k(t),await Sa({message:e,signature:a}))}async function rr(t){const{address:e,domain:a,message:n,primaryType:r,signature:s,types:u}=t;return ft(k(e),await Aa({domain:a,message:n,primaryType:r,signature:s,types:u}))}function Pa(t){const e=Lt(t,0,1);if(e==="0x04")return"eip7702";if(e==="0x03")return"eip4844";if(e==="0x02")return"eip1559";if(e==="0x01")return"eip2930";if(e!=="0x"&&F(e)>=192)return"legacy";throw new he({serializedType:e})}function _a(t){const e=Pa(t);return e==="eip1559"?Fa(t):e==="eip2930"?Ua(t):e==="eip4844"?qa(t):e==="eip7702"?Ra(t):ka(t)}function Ra(t){const e=X(t),[a,n,r,s,u,d,c,i,f,m,h,o,p]=e;if(e.length!==10&&e.length!==13)throw new $({attributes:{chainId:a,nonce:n,maxPriorityFeePerGas:r,maxFeePerGas:s,gas:u,to:d,value:c,data:i,accessList:f,authorizationList:m,...e.length>9?{v:h,r:o,s:p}:{}},serializedTransaction:t,type:"eip7702"});const l={chainId:F(a),type:"eip7702"};return E(d)&&d!=="0x"&&(l.to=d),E(u)&&u!=="0x"&&(l.gas=A(u)),E(i)&&i!=="0x"&&(l.data=i),E(n)&&(l.nonce=n==="0x"?0:F(n)),E(c)&&c!=="0x"&&(l.value=A(c)),E(s)&&s!=="0x"&&(l.maxFeePerGas=A(s)),E(r)&&r!=="0x"&&(l.maxPriorityFeePerGas=A(r)),f.length!==0&&f!=="0x"&&(l.accessList=tt(f)),m.length!==0&&m!=="0x"&&(l.authorizationList=Ba(m)),we(l),{...e.length===13?O(e):void 0,...l}}function qa(t){const e=X(t),a=e.length===4,n=a?e[0]:e,r=a?e.slice(1):[],[s,u,d,c,i,f,m,h,o,p,l,y,w,g]=n,[C,b,x]=r;if(!(n.length===11||n.length===14))throw new $({attributes:{chainId:s,nonce:u,maxPriorityFeePerGas:d,maxFeePerGas:c,gas:i,to:f,value:m,data:h,accessList:o,...n.length>9?{v:y,r:w,s:g}:{}},serializedTransaction:t,type:"eip4844"});const I={blobVersionedHashes:l,chainId:F(s),to:f,type:"eip4844"};return E(i)&&i!=="0x"&&(I.gas=A(i)),E(h)&&h!=="0x"&&(I.data=h),E(u)&&(I.nonce=u==="0x"?0:F(u)),E(m)&&m!=="0x"&&(I.value=A(m)),E(p)&&p!=="0x"&&(I.maxFeePerBlobGas=A(p)),E(c)&&c!=="0x"&&(I.maxFeePerGas=A(c)),E(d)&&d!=="0x"&&(I.maxPriorityFeePerGas=A(d)),o.length!==0&&o!=="0x"&&(I.accessList=tt(o)),C&&b&&x&&(I.sidecars=ge({blobs:C,commitments:b,proofs:x})),be(I),{...n.length===14?O(n):void 0,...I}}function Fa(t){const e=X(t),[a,n,r,s,u,d,c,i,f,m,h,o]=e;if(!(e.length===9||e.length===12))throw new $({attributes:{chainId:a,nonce:n,maxPriorityFeePerGas:r,maxFeePerGas:s,gas:u,to:d,value:c,data:i,accessList:f,...e.length>9?{v:m,r:h,s:o}:{}},serializedTransaction:t,type:"eip1559"});const p={chainId:F(a),type:"eip1559"};return E(d)&&d!=="0x"&&(p.to=d),E(u)&&u!=="0x"&&(p.gas=A(u)),E(i)&&i!=="0x"&&(p.data=i),E(n)&&(p.nonce=n==="0x"?0:F(n)),E(c)&&c!=="0x"&&(p.value=A(c)),E(s)&&s!=="0x"&&(p.maxFeePerGas=A(s)),E(r)&&r!=="0x"&&(p.maxPriorityFeePerGas=A(r)),f.length!==0&&f!=="0x"&&(p.accessList=tt(f)),pe(p),{...e.length===12?O(e):void 0,...p}}function Ua(t){const e=X(t),[a,n,r,s,u,d,c,i,f,m,h]=e;if(!(e.length===8||e.length===11))throw new $({attributes:{chainId:a,nonce:n,gasPrice:r,gas:s,to:u,value:d,data:c,accessList:i,...e.length>8?{v:f,r:m,s:h}:{}},serializedTransaction:t,type:"eip2930"});const o={chainId:F(a),type:"eip2930"};return E(u)&&u!=="0x"&&(o.to=u),E(s)&&s!=="0x"&&(o.gas=A(s)),E(c)&&c!=="0x"&&(o.data=c),E(n)&&(o.nonce=n==="0x"?0:F(n)),E(d)&&d!=="0x"&&(o.value=A(d)),E(r)&&r!=="0x"&&(o.gasPrice=A(r)),i.length!==0&&i!=="0x"&&(o.accessList=tt(i)),ye(o),{...e.length===11?O(e):void 0,...o}}function ka(t){const e=Dt(t,"hex"),[a,n,r,s,u,d,c,i,f]=e;if(!(e.length===6||e.length===9))throw new $({attributes:{nonce:a,gasPrice:n,gas:r,to:s,value:u,data:d,...e.length>6?{v:c,r:i,s:f}:{}},serializedTransaction:t,type:"legacy"});const m={type:"legacy"};if(E(s)&&s!=="0x"&&(m.to=s),E(r)&&r!=="0x"&&(m.gas=A(r)),E(d)&&d!=="0x"&&(m.data=d),E(a)&&(m.nonce=a==="0x"?0:F(a)),E(u)&&u!=="0x"&&(m.value=A(u)),E(n)&&n!=="0x"&&(m.gasPrice=A(n)),xe(m),e.length===6)return m;const h=E(c)&&c!=="0x"?A(c):0n;if(f==="0x"&&i==="0x")return h>0&&(m.chainId=Number(h)),m;const o=h,p=Number((o-35n)/2n);if(p>0)m.chainId=p;else if(o!==27n&&o!==28n)throw new Ee({v:o});return m.v=o,m.s=f,m.r=i,m.yParity=o%2n===0n?1:0,m}function X(t){return Dt(`0x${t.slice(4)}`,"hex")}function tt(t){const e=[];for(let a=0;a<t.length;a++){const[n,r]=t[a];if(!Oe(n,{strict:!1}))throw new je({address:n});e.push({address:n,storageKeys:r.map(s=>ma(s)?s:We(s))})}return e}function Ba(t){const e=[];for(let a=0;a<t.length;a++){const[n,r,s,u,d,c]=t[a];e.push({address:r,chainId:n==="0x"?0:F(n),nonce:s==="0x"?0:F(s),...O([u,d,c])})}return e}function O(t){const e=t.slice(-3),a=e[0]==="0x"||A(e[0])===0n?27n:28n;return{r:xt(e[1],{size:32}),s:xt(e[2],{size:32}),v:a,yParity:a===27n?0:1}}class Na extends mt{constructor({value:e}){super(`Number \`${e}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function Wt(t,e){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(t))throw new Na({value:t});let[a,n="0"]=t.split(".");const r=a.startsWith("-");if(r&&(a=a.slice(1)),n=n.replace(/(0+)$/,""),e===0)Math.round(+`.${n}`)===1&&(a=`${BigInt(a)+1n}`),n="";else if(n.length>e){const[s,u,d]=[n.slice(0,e-1),n.slice(e-1,e),n.slice(e)],c=Math.round(+`${u}.${d}`);c>9?n=`${BigInt(s)+BigInt(1)}0`.padStart(s.length+1,"0"):n=`${s}${c}`,n.length>e&&(n=n.slice(1),a=`${BigInt(a)+1n}`),n=n.slice(0,e)}else n=n.padEnd(e,"0");return BigInt(`${r?"-":""}${a}${n}`)}function sr(t,e="wei"){return Wt(t,Ie[e])}function or(t,e="wei"){return Wt(t,Te[e])}async function La(t,{hash:e}){await t.request({method:`${t.mode}_dropTransaction`,params:[e]})}async function Ma(t){return t.request({method:`${t.mode}_dumpState`})}async function Da(t){return t.mode==="ganache"?await t.request({method:"eth_mining"}):await t.request({method:`${t.mode}_getAutomine`})}async function za(t){return await t.request({method:"txpool_content"})}async function Ga(t){const{pending:e,queued:a}=await t.request({method:"txpool_status"});return{pending:F(e),queued:F(a)}}async function $a(t,{address:e}){await t.request({method:`${t.mode}_impersonateAccount`,params:[e]})}async function Ha(t,{seconds:e}){return await t.request({method:"evm_increaseTime",params:[R(e)]})}async function Oa(t){return await t.request({method:"txpool_inspect"})}async function ja(t,{state:e}){await t.request({method:`${t.mode}_loadState`,params:[e]})}async function Wa(t,{blocks:e,interval:a}){t.mode==="ganache"?await t.request({method:"evm_mine",params:[{blocks:R(e)}]}):await t.request({method:`${t.mode}_mine`,params:[R(e),R(a||0)]})}async function Va(t){await t.request({method:`${t.mode}_removeBlockTimestampInterval`})}async function Ja(t,{blockNumber:e,jsonRpcUrl:a}={}){await t.request({method:`${t.mode}_reset`,params:[{forking:{blockNumber:Number(e),jsonRpcUrl:a}}]})}async function Ka(t,{id:e}){await t.request({method:"evm_revert",params:[e]})}async function Ya(t,e){var w,g,C;const{accessList:a,data:n,from:r,gas:s,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:c,nonce:i,to:f,value:m,...h}=e,o=(C=(g=(w=t.chain)==null?void 0:w.formatters)==null?void 0:g.transactionRequest)==null?void 0:C.format,l=(o||ht)({...St(h,{format:o}),accessList:a,data:n,from:r,gas:s,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:c,nonce:i,to:f,value:m},"sendUnsignedTransaction");return await t.request({method:"eth_sendUnsignedTransaction",params:[l]})}async function Za(t,e){t.mode==="ganache"?e?await t.request({method:"miner_start"}):await t.request({method:"miner_stop"}):await t.request({method:"evm_setAutomine",params:[e]})}async function Qa(t,{address:e,value:a}){t.mode==="ganache"?await t.request({method:"evm_setAccountBalance",params:[e,R(a)]}):await t.request({method:`${t.mode}_setBalance`,params:[e,R(a)]})}async function Xa(t,{gasLimit:e}){await t.request({method:"evm_setBlockGasLimit",params:[R(e)]})}async function tn(t,{interval:e}){const a=t.mode==="hardhat"?e*1e3:e;await t.request({method:`${t.mode}_setBlockTimestampInterval`,params:[a]})}async function en(t,{address:e,bytecode:a}){t.mode==="ganache"?await t.request({method:"evm_setAccountCode",params:[e,a]}):await t.request({method:`${t.mode}_setCode`,params:[e,a]})}async function an(t,{address:e}){await t.request({method:`${t.mode}_setCoinbase`,params:[e]})}async function nn(t,{interval:e}){const a=t.mode==="hardhat"?e*1e3:e;await t.request({method:"evm_setIntervalMining",params:[a]})}async function rn(t,e){await t.request({method:`${t.mode}_setLoggingEnabled`,params:[e]})}async function sn(t,{gasPrice:e}){await t.request({method:`${t.mode}_setMinGasPrice`,params:[R(e)]})}async function on(t,{baseFeePerGas:e}){await t.request({method:`${t.mode}_setNextBlockBaseFeePerGas`,params:[R(e)]})}async function cn(t,{timestamp:e}){await t.request({method:"evm_setNextBlockTimestamp",params:[R(e)]})}async function un(t,{address:e,nonce:a}){await t.request({method:`${t.mode}_setNonce`,params:[e,R(a)]})}async function dn(t,e){await t.request({method:`${t.mode}_setRpcUrl`,params:[e]})}async function ln(t,{address:e,index:a,value:n}){await t.request({method:`${t.mode}_setStorageAt`,params:[e,typeof a=="number"?R(a):a,n]})}async function mn(t){return await t.request({method:"evm_snapshot"})}async function fn(t,{address:e}){await t.request({method:`${t.mode}_stopImpersonatingAccount`,params:[e]})}function hn({mode:t}){return e=>{const a=e.extend(()=>({mode:t}));return{dropTransaction:n=>La(a,n),dumpState:()=>Ma(a),getAutomine:()=>Da(a),getTxpoolContent:()=>za(a),getTxpoolStatus:()=>Ga(a),impersonateAccount:n=>$a(a,n),increaseTime:n=>Ha(a,n),inspectTxpool:()=>Oa(a),loadState:n=>ja(a,n),mine:n=>Wa(a,n),removeBlockTimestampInterval:()=>Va(a),reset:n=>Ja(a,n),revert:n=>Ka(a,n),sendUnsignedTransaction:n=>Ya(a,n),setAutomine:n=>Za(a,n),setBalance:n=>Qa(a,n),setBlockGasLimit:n=>Xa(a,n),setBlockTimestampInterval:n=>tn(a,n),setCode:n=>en(a,n),setCoinbase:n=>an(a,n),setIntervalMining:n=>nn(a,n),setLoggingEnabled:n=>rn(a,n),setMinGasPrice:n=>sn(a,n),setNextBlockBaseFeePerGas:n=>on(a,n),setNextBlockTimestamp:n=>cn(a,n),setNonce:n=>un(a,n),setRpcUrl:n=>dn(a,n),setStorageAt:n=>ln(a,n),snapshot:()=>mn(a),stopImpersonatingAccount:n=>fn(a,n)}}}function ir(t){const{key:e="test",name:a="Test Client",mode:n}=t;return At({...t,key:e,name:a,type:"testClient"}).extend(s=>({mode:n,...hn({mode:n})(s)}))}async function pn(t,{chain:e}){const{id:a,name:n,nativeCurrency:r,rpcUrls:s,blockExplorers:u}=e;await t.request({method:"wallet_addEthereumChain",params:[{chainId:R(a),chainName:n,nativeCurrency:r,rpcUrls:s.default.http,blockExplorerUrls:u?Object.values(u).map(({url:d})=>d):void 0}]},{dedupe:!0,retryCount:0})}function yn(t,e){const{abi:a,args:n,bytecode:r,...s}=e,u=Ce({abi:a,args:n,bytecode:r});return ut(t,{...s,...s.authorizationList?{to:null}:{},data:u})}async function gn(t){var a;return((a=t.account)==null?void 0:a.type)==="local"?[t.account.address]:(await t.request({method:"eth_accounts"},{dedupe:!0})).map(n=>Ve(n))}async function bn(t,e={}){const{account:a=t.account,chainId:n}=e,r=a?N(a):void 0,s=n?[r==null?void 0:r.address,[R(n)]]:[r==null?void 0:r.address],u=await t.request({method:"wallet_getCapabilities",params:s}),d={};for(const[c,i]of Object.entries(u)){d[Number(c)]={};for(let[f,m]of Object.entries(i))f==="addSubAccount"&&(f="unstable_addSubAccount"),d[Number(c)][f]=m}return typeof n=="number"?d[n]:d}async function wn(t){return await t.request({method:"wallet_getPermissions"},{dedupe:!0})}async function xn(t){return(await t.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(a=>k(a))}async function En(t,e){return t.request({method:"wallet_requestPermissions",params:[e]},{retryCount:0})}async function In(t,e){const{chain:a=t.chain}=e,n=e.timeout??Math.max(((a==null?void 0:a.blockTime)??0)*3,5e3),r=await Pt(t,e);return await _t(t,{...e,id:r.id,timeout:n})}const ot=new Je(128);async function Vt(t,e){var x,I,T,v;const{account:a=t.account,chain:n=t.chain,accessList:r,authorizationList:s,blobs:u,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:m,maxPriorityFeePerGas:h,nonce:o,pollingInterval:p,throwOnReceiptRevert:l,type:y,value:w,...g}=e,C=e.timeout??Math.max(((n==null?void 0:n.blockTime)??0)*3,5e3);if(typeof a>"u")throw new D({docsPath:"/docs/actions/wallet/sendTransactionSync"});const b=a?N(a):null;try{Rt(e);const P=await(async()=>{if(e.to)return e.to;if(e.to!==null&&s&&s.length>0)return await ve({authorization:s[0]}).catch(()=>{throw new mt("`to` is required. Could not infer from `authorizationList`.")})})();if((b==null?void 0:b.type)==="json-rpc"||b===null){let S;n!==null&&(S=await U(t,dt,"getChainId")({}),qt({currentChainId:S,chain:n}));const _=(T=(I=(x=t.chain)==null?void 0:x.formatters)==null?void 0:I.transactionRequest)==null?void 0:T.format,z=(_||ht)({...St(g,{format:_}),accessList:r,account:b,authorizationList:s,blobs:u,chainId:S,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:m,maxPriorityFeePerGas:h,nonce:o,to:P,type:y,value:w},"sendTransaction"),pt=ot.get(t.uid),Jt=pt?"wallet_sendTransaction":"eth_sendTransaction",Kt=await(async()=>{try{return await t.request({method:Jt,params:[z]},{retryCount:0})}catch(yt){if(pt===!1)throw yt;const L=yt;if(L.name==="InvalidInputRpcError"||L.name==="InvalidParamsRpcError"||L.name==="MethodNotFoundRpcError"||L.name==="MethodNotSupportedRpcError")return await t.request({method:"wallet_sendTransaction",params:[z]},{retryCount:0}).then(at=>(ot.set(t.uid,!0),at)).catch(at=>{const nt=at;throw nt.name==="MethodNotFoundRpcError"||nt.name==="MethodNotSupportedRpcError"?(ot.set(t.uid,!1),L):nt});throw L}})(),et=await U(t,Se,"waitForTransactionReceipt")({checkReplacement:!1,hash:Kt,pollingInterval:p,timeout:C});if(l&&et.status==="reverted")throw new Ae({receipt:et});return et}if((b==null?void 0:b.type)==="local"){const S=await U(t,Ft,"prepareTransactionRequest")({account:b,accessList:r,authorizationList:s,blobs:u,chain:n,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:m,maxPriorityFeePerGas:h,nonce:o,nonceManager:b.nonceManager,parameters:[...Pe,"sidecars"],type:y,value:w,...g,to:P}),_=(v=n==null?void 0:n.serializers)==null?void 0:v.transaction,q=await b.signTransaction(S,{serializer:_});return await U(t,Ut,"sendRawTransactionSync")({serializedTransaction:q,throwOnReceiptRevert:l})}throw(b==null?void 0:b.type)==="smart"?new J({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new J({docsPath:"/docs/actions/wallet/sendTransactionSync",type:b==null?void 0:b.type})}catch(P){throw P instanceof J?P:_e(P,{...e,account:b,chain:e.chain||void 0})}}async function Tn(t,e){const{id:a}=e;await t.request({method:"wallet_showCallsStatus",params:[a]})}async function Cn(t,e){const{account:a=t.account}=e;if(!a)throw new D({docsPath:"/docs/eip7702/signAuthorization"});const n=N(a);if(!n.signAuthorization)throw new J({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:n.type});const r=await kt(t,e);return n.signAuthorization(r)}async function vn(t,{account:e=t.account,message:a}){if(!e)throw new D({docsPath:"/docs/actions/wallet/signMessage"});const n=N(e);if(n.signMessage)return n.signMessage({message:a});const r=typeof a=="string"?Ke(a):a.raw instanceof Uint8Array?Nt(a.raw):a.raw;return t.request({method:"personal_sign",params:[r,n.address]},{retryCount:0})}async function Sn(t,e){var i,f,m,h;const{account:a=t.account,chain:n=t.chain,...r}=e;if(!a)throw new D({docsPath:"/docs/actions/wallet/signTransaction"});const s=N(a);Rt({account:s,...e});const u=await U(t,dt,"getChainId")({});n!==null&&qt({currentChainId:u,chain:n});const d=(n==null?void 0:n.formatters)||((i=t.chain)==null?void 0:i.formatters),c=((f=d==null?void 0:d.transactionRequest)==null?void 0:f.format)||ht;return s.signTransaction?s.signTransaction({...r,chainId:u},{serializer:(h=(m=t.chain)==null?void 0:m.serializers)==null?void 0:h.transaction}):await t.request({method:"eth_signTransaction",params:[{...c({...r,account:s},"signTransaction"),chainId:R(u),from:s.address}]},{retryCount:0})}async function An(t,e){const{account:a=t.account,domain:n,message:r,primaryType:s}=e;if(!a)throw new D({docsPath:"/docs/actions/wallet/signTypedData"});const u=N(a),d={EIP712Domain:Xe({domain:n}),...e.types};if(ta({domain:n,message:r,primaryType:s,types:d}),u.signTypedData)return u.signTypedData({domain:n,message:r,primaryType:s,types:d});const c=ea({domain:n,message:r,primaryType:s,types:d});return t.request({method:"eth_signTypedData_v4",params:[u.address,c]},{retryCount:0})}async function Pn(t,{id:e}){await t.request({method:"wallet_switchEthereumChain",params:[{chainId:R(e)}]},{retryCount:0})}async function _n(t,e){return await t.request({method:"wallet_watchAsset",params:e},{retryCount:0})}async function Rn(t,e){return M.internal(t,Vt,"sendTransactionSync",e)}function qn(t){return{addChain:e=>pn(t,e),deployContract:e=>yn(t,e),getAddresses:()=>gn(t),getCallsStatus:e=>qe(t,e),getCapabilities:e=>bn(t,e),getChainId:()=>dt(t),getPermissions:()=>wn(t),prepareAuthorization:e=>kt(t,e),prepareTransactionRequest:e=>Ft(t,e),requestAddresses:()=>xn(t),requestPermissions:e=>En(t,e),sendCalls:e=>Pt(t,e),sendCallsSync:e=>In(t,e),sendRawTransaction:e=>Re(t,e),sendRawTransactionSync:e=>Ut(t,e),sendTransaction:e=>ut(t,e),sendTransactionSync:e=>Vt(t,e),showCallsStatus:e=>Tn(t,e),signAuthorization:e=>Cn(t,e),signMessage:e=>vn(t,e),signTransaction:e=>Sn(t,e),signTypedData:e=>An(t,e),switchChain:e=>Pn(t,e),waitForCallsStatus:e=>_t(t,e),watchAsset:e=>_n(t,e),writeContract:e=>M(t,e),writeContractSync:e=>Rn(t,e)}}function cr(t){const{key:e="wallet",name:a="Wallet Client",transport:n}=t;return At({...t,key:e,name:a,transport:n,type:"walletClient"}).extend(qn)}function ur(t,e={}){const{key:a="custom",methods:n,name:r="Custom Provider",retryDelay:s}=e;return({retryCount:u})=>lt({key:a,methods:n,name:r,request:t.request.bind(t),retryCount:e.retryCount??u,retryDelay:s,type:"custom"})}function dr(t,e={}){const{key:a="fallback",name:n="Fallback",rank:r=!1,shouldThrow:s=Fn,retryCount:u,retryDelay:d}=e;return(({chain:c,pollingInterval:i=4e3,timeout:f,...m})=>{let h=t,o=()=>{};const p=lt({key:a,name:n,async request({method:l,params:y}){let w;const g=async(C=0)=>{const b=h[C]({...m,chain:c,retryCount:0,timeout:f});try{const x=await b.request({method:l,params:y});return o({method:l,params:y,response:x,transport:b,status:"success"}),x}catch(x){if(o({error:x,method:l,params:y,transport:b,status:"error"}),s(x)||C===h.length-1||(w??(w=h.slice(C+1).some(I=>{const{include:T,exclude:v}=I({chain:c}).config.methods||{};return T?T.includes(l):v?!v.includes(l):!0})),!w))throw x;return g(C+1)}};return g()},retryCount:u,retryDelay:d,type:"fallback"},{onResponse:l=>o=l,transports:h.map(l=>l({chain:c,retryCount:0}))});if(r){const l=typeof r=="object"?r:{};Un({chain:c,interval:l.interval??i,onTransports:y=>h=y,ping:l.ping,sampleCount:l.sampleCount,timeout:l.timeout,transports:h,weights:l.weights})}return p})}function Fn(t){return!!("code"in t&&typeof t.code=="number"&&(t.code===na.code||t.code===ra.code||Fe.nodeMessage.test(t.message)||t.code===5e3))}function Un({chain:t,interval:e=4e3,onTransports:a,ping:n,sampleCount:r=10,timeout:s=1e3,transports:u,weights:d={}}){const{stability:c=.7,latency:i=.3}=d,f=[],m=async()=>{const h=await Promise.all(u.map(async l=>{const y=l({chain:t,retryCount:0,timeout:s}),w=Date.now();let g,C;try{await(n?n({transport:y}):y.request({method:"net_listening"})),C=1}catch{C=0}finally{g=Date.now()}return{latency:g-w,success:C}}));f.push(h),f.length>r&&f.shift();const o=Math.max(...f.map(l=>Math.max(...l.map(({latency:y})=>y)))),p=u.map((l,y)=>{const w=f.map(I=>I[y].latency),C=1-w.reduce((I,T)=>I+T,0)/w.length/o,b=f.map(I=>I[y].success),x=b.reduce((I,T)=>I+T,0)/b.length;return x===0?[0,y]:[i*C+c*x,y]}).sort((l,y)=>y[0]-l[0]);a(p.map(([,l])=>u[l])),await Ue(e),m()};m()}function lr(t,e={}){const{keepAlive:a,key:n="webSocket",methods:r,name:s="WebSocket JSON-RPC",reconnect:u,retryDelay:d}=e;return({chain:c,retryCount:i,timeout:f})=>{var l;const m=e.retryCount??i,h=f??e.timeout??1e4,o=t||((l=c==null?void 0:c.rpcUrls.default.webSocket)==null?void 0:l[0]),p={keepAlive:a,reconnect:u};if(!o)throw new ke;return lt({key:n,methods:r,name:s,async request({method:y,params:w}){const g={method:y,params:w},C=await K(o,p),{error:b,result:x}=await C.requestAsync({body:g,timeout:h});if(b)throw new sa({body:g,error:b,url:o});return x},retryCount:m,retryDelay:d,timeout:h,type:"webSocket"},{getSocket(){return Ta(o)},getRpcClient(){return K(o,p)},async subscribe({params:y,onData:w,onError:g}){const C=await K(o,p),{result:b}=await new Promise((x,I)=>C.request({body:{method:"eth_subscribe",params:y},onError(T){I(T),g==null||g(T)},onResponse(T){if(T.error){I(T.error),g==null||g(T.error);return}if(typeof T.id=="number"){x(T);return}T.method==="eth_subscription"&&w(T.params)}}));return{subscriptionId:b,async unsubscribe(){return new Promise(x=>C.request({body:{method:"eth_unsubscribe",params:[b]},onResponse:x}))}}}})}}class mr extends Error{constructor(e,a){super(a),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=e,this.details=a}}const it="/docs/contract/decodeDeployData";function fr(t){const{abi:e,bytecode:a,data:n}=t;if(n===a)return{bytecode:a};const r=e.find(u=>"type"in u&&u.type==="constructor");if(!r)throw new Ye({docsPath:it});if(!("inputs"in r))throw new Et({docsPath:it});if(!r.inputs||r.inputs.length===0)throw new Et({docsPath:it});return{args:Mt(r.inputs,`0x${n.replace(a,"")}`),bytecode:a}}function hr(t){const e=t.to??(typeof t.blobs[0]=="string"?"hex":"bytes"),a=typeof t.blobs[0]=="string"?t.blobs.map(d=>H(d)):t.blobs,n=a.reduce((d,c)=>d+c.length,0),r=ct(new Uint8Array(n));let s=!0;for(const d of a){const c=ct(d);for(;s&&c.position<d.length;){c.incrementPosition(1);let i=31;d.length-c.position<31&&(i=d.length-c.position);for(const f in Array.from({length:i})){const m=c.readByte();if(m===128&&!c.inspectBytes(c.remaining).includes(128)){s=!1;break}r.pushByte(m)}}}const u=r.bytes.slice(0,r.position);return e==="hex"?G(u):u}function pr(t){const{sidecars:e,version:a}=t,n=t.to??(typeof e[0].blob=="string"?"hex":"bytes"),r=[];for(const{commitment:s}of e)r.push(Be({commitment:s,to:n,version:a}));return r}const kn=2147483648;function yr(t){if(t===1)return 60n;if(t>=kn||t<0)throw new Ne({chainId:t});return BigInt((2147483648|t)>>>0)}function Bn({blobToKzgCommitment:t,computeBlobKzgProof:e}){return{blobToKzgCommitment:t,computeBlobKzgProof:e}}function gr(t,e){try{t.loadTrustedSetup(e)}catch(a){const n=a;if(!n.message.includes("trusted setup is already loaded"))throw n}return Bn(t)}function br({r:t,yParityAndS:e}){const a=H(e),n=a[0]&128?1:0,r=a;return n===1&&(r[0]&=127),{r:t,s:G(r),yParity:n}}function wr(t){const{r:e,s:a}=Bt.Signature.fromCompact(t.slice(2,130));return{r:R(e,{size:32}),yParityAndS:R(a,{size:32})}}async function xr(t){const{serializedTransaction:e,signature:a}=t,n=_a(e),r=a??{r:n.r,s:n.s,v:n.v,yParity:n.yParity},s=Le({...n,r:void 0,s:void 0,v:void 0,yParity:void 0,sidecars:void 0});return await Q({hash:Y(s),signature:r})}function Er({r:t,yParityAndS:e}){return`0x${new Bt.Signature(A(t),A(e)).toCompactHex()}`}function Ir(t){const{r:e,s:a,v:n,yParity:r}=t,s=Number(r??n-27n);let u=a;if(s===1){const d=H(a);d[0]|=128,u=G(d)}return{r:e,yParityAndS:u}}export{Ye as AbiConstructorNotFoundError,Et as AbiConstructorParamsNotFoundError,So as AbiDecodingDataSizeInvalidError,Ao as AbiDecodingDataSizeTooSmallError,Po as AbiDecodingZeroDataError,_o as AbiEncodingArrayLengthMismatchError,Ro as AbiEncodingBytesSizeMismatchError,qo as AbiEncodingLengthMismatchError,Fo as AbiErrorInputsNotFoundError,Uo as AbiErrorNotFoundError,ko as AbiErrorSignatureNotFoundError,Bo as AbiEventNotFoundError,No as AbiEventSignatureEmptyTopicsError,Lo as AbiEventSignatureNotFoundError,Mo as AbiFunctionNotFoundError,Do as AbiFunctionOutputsNotFoundError,zo as AbiFunctionSignatureNotFoundError,vr as AccountStateConflictError,Qi as AtomicReadyWalletRejectedUpgradeError,Xi as AtomicityNotSupportedError,mt as BaseError,Sr as BaseFeeScalarError,Ar as BlockNotFoundError,Pr as BundleFailedError,tc as BundleTooLargeError,Go as BytesSizeMismatchError,_r as CallExecutionError,ec as ChainDisconnectedError,Rr as ChainDoesNotSupportContract,qr as ChainMismatchError,Fr as ChainNotFoundError,Ur as CircularReferenceError,kr as ClientChainNotConfiguredError,Br as ContractFunctionExecutionError,Nr as ContractFunctionRevertedError,Lr as ContractFunctionZeroDataError,Mr as CounterfactualDeploymentFailedError,$o as DecodeLogDataMismatch,Ho as DecodeLogTopicsMismatch,ac as DuplicateIdError,mr as EIP1193ProviderRpcError,Dr as Eip1559FeesNotSupportedError,zr as EnsAvatarInvalidNftUriError,Gr as EnsAvatarUnsupportedNamespaceError,$r as EnsAvatarUriResolutionError,Ne as EnsInvalidChainIdError,Hr as EstimateGasExecutionError,Fe as ExecutionRevertedError,Or as FeeCapTooHighError,jr as FeeCapTooLowError,Wr as FeeConflictError,Oo as FilterTypeNotSupportedError,nc as HttpRequestError,Vr as InsufficientFundsError,jo as IntegerOutOfRangeError,rc as InternalRpcError,Jr as IntrinsicGasTooHighError,Kr as IntrinsicGasTooLowError,Wo as InvalidAbiDecodingTypeError,Vo as InvalidAbiEncodingTypeError,Yr as InvalidAbiItemError,Qt as InvalidAbiParameterError,Zr as InvalidAbiParametersError,Qr as InvalidAbiTypeParameterError,je as InvalidAddressError,Jo as InvalidArrayError,Ko as InvalidBytesBooleanError,Xr as InvalidChainIdError,Na as InvalidDecimalNumberError,Yo as InvalidDefinitionTypeError,ji as InvalidDomainError,ts as InvalidFunctionModifierError,Zo as InvalidHexBooleanError,Ge as InvalidHexValueError,sc as InvalidInputRpcError,Ee as InvalidLegacyVError,es as InvalidModifierError,as as InvalidParameterError,oc as InvalidParamsRpcError,ns as InvalidParenthesisError,Wi as InvalidPrimaryTypeError,ic as InvalidRequestRpcError,rs as InvalidSerializableTransactionError,$ as InvalidSerializedTransactionError,he as InvalidSerializedTransactionTypeError,ss as InvalidSignatureError,os as InvalidStorageKeySizeError,is as InvalidStructSignatureError,Vi as InvalidStructTypeError,cc as JsonRpcVersionUnsupportedError,uc as LimitExceededRpcError,cs as MaxFeePerGasTooLowError,dc as MethodNotFoundRpcError,lc as MethodNotSupportedRpcError,us as NonceMaxValueError,ds as NonceTooHighError,ls as NonceTooLowError,mc as ParseRpcError,fc as ProviderDisconnectedError,hc as ProviderRpcError,ms as RawContractError,pc as ResourceNotFoundRpcError,yc as ResourceUnavailableRpcError,gc as RpcError,sa as RpcRequestError,Qo as SizeExceedsPaddingSizeError,Xo as SizeOverflowError,ti as SliceOffsetOutOfBoundsError,Z as SocketClosedError,fs as SolidityProtectedKeywordError,hs as StateAssignmentConflictError,bc as SwitchChainError,aa as TimeoutError,ps as TipAboveFeeCapError,ys as TransactionExecutionError,gs as TransactionNotFoundError,bs as TransactionReceiptNotFoundError,na as TransactionRejectedRpcError,ws as TransactionTypeNotSupportedError,wc as UnauthorizedProviderError,xc as UnknownBundleIdError,xs as UnknownNodeError,Ec as UnknownRpcError,Es as UnknownSignatureError,Is as UnknownTypeError,Ic as UnsupportedChainIdError,Tc as UnsupportedNonOptionalCapabilityError,ei as UnsupportedPackedAbiType,Cc as UnsupportedProviderMethodError,ke as UrlRequiredError,ra as UserRejectedRequestError,Ts as WaitForCallsStatusTimeoutError,Cs as WaitForTransactionReceiptTimeoutError,It as WebSocketRequestError,qt as assertCurrentChain,Rt as assertRequest,pe as assertTransactionEIP1559,ye as assertTransactionEIP2930,xe as assertTransactionLegacy,vs as blobsToCommitments,Ss as blobsToProofs,ai as boolToBytes,ni as boolToHex,ri as bytesToBigInt,si as bytesToBool,G as bytesToHex,oi as bytesToNumber,Sc as bytesToRlp,ii as bytesToString,bd as ccipFetch,wd as ccipRequest,Ve as checksumAddress,Be as commitmentToVersionedHash,As as commitmentsToVersionedHashes,Er as compactSignatureToHex,br as compactSignatureToSignature,ze as concat,ci as concatBytes,ui as concatHex,At as createClient,Ps as createNonceManager,_s as createPublicClient,ir as createTestClient,lt as createTransport,cr as createWalletClient,ur as custom,Mt as decodeAbiParameters,fr as decodeDeployData,di as decodeErrorResult,li as decodeEventLog,Rs as decodeFunctionData,qs as decodeFunctionResult,mi as defineBlock,fi as defineChain,Bn as defineKzg,hi as defineTransaction,Cd as defineTransactionReceipt,pi as defineTransactionRequest,Fs as deploylessCallViaBytecodeBytecode,Us as deploylessCallViaFactoryBytecode,Ji as domainSeparator,yi as encodeAbiParameters,Ce as encodeDeployData,ks as encodeErrorResult,gi as encodeEventTopics,Xt as encodeFunctionData,Bs as encodeFunctionResult,Ns as encodePacked,Ls as erc1155Abi,Ms as erc20Abi,Ds as erc20Abi_bytes32,zs as erc4626Abi,Gs as erc6492SignatureValidatorAbi,$s as erc6492SignatureValidatorByteCode,Hs as erc721Abi,Os as ethAddress,Ie as etherUnits,Zn as extractChain,dr as fallback,bi as formatBlock,js as formatEther,Ws as formatGwei,vd as formatLog,wi as formatTransaction,Sd as formatTransactionReceipt,ht as formatTransactionRequest,Vs as formatUnits,hr as fromBlobs,xi as fromBytes,Ei as fromHex,Dt as fromRlp,Ii as getAbiItem,k as getAddress,Js as getChainContractAddress,Kn as getContract,Yn as getContractAddress,te as getContractError,da as getCreate2Address,ua as getCreateAddress,Ti as getEventSelector,Ci as getEventSignature,vi as getFunctionSelector,Si as getFunctionSignature,Pa as getSerializedTransactionType,Ks as getTransactionType,Xe as getTypesForEIP712Domain,Te as gweiUnits,Ki as hashDomain,me as hashMessage,Yi as hashStruct,Qe as hashTypedData,A as hexToBigInt,Ai as hexToBool,H as hexToBytes,wr as hexToCompactSignature,F as hexToNumber,Ac as hexToRlp,Ys as hexToSignature,Pi as hexToString,Zs as http,Oe as isAddress,ft as isAddressEqual,Tt as isBytes,Ca as isErc6492Signature,va as isErc8010Signature,ma as isHash,E as isHex,Y as keccak256,Qs as labelhash,Pc as maxInt104,_c as maxInt112,Rc as maxInt120,qc as maxInt128,Fc as maxInt136,Uc as maxInt144,kc as maxInt152,Bc as maxInt16,Nc as maxInt160,Lc as maxInt168,Mc as maxInt176,Dc as maxInt184,zc as maxInt192,Gc as maxInt200,$c as maxInt208,Hc as maxInt216,Oc as maxInt224,jc as maxInt232,Wc as maxInt24,Vc as maxInt240,Jc as maxInt248,Kc as maxInt256,Yc as maxInt32,Zc as maxInt40,Qc as maxInt48,Xc as maxInt56,tu as maxInt64,eu as maxInt72,au as maxInt8,nu as maxInt80,ru as maxInt88,su as maxInt96,ou as maxUint104,iu as maxUint112,cu as maxUint120,uu as maxUint128,du as maxUint136,lu as maxUint144,mu as maxUint152,fu as maxUint16,hu as maxUint160,pu as maxUint168,yu as maxUint176,gu as maxUint184,bu as maxUint192,wu as maxUint200,xu as maxUint208,Eu as maxUint216,Iu as maxUint224,Tu as maxUint232,Cu as maxUint24,vu as maxUint240,Su as maxUint248,Au as maxUint256,Pu as maxUint32,_u as maxUint40,Ru as maxUint48,qu as maxUint56,Fu as maxUint64,Uu as maxUint72,ku as maxUint8,Bu as maxUint80,Nu as maxUint88,Lu as maxUint96,Mu as minInt104,Du as minInt112,zu as minInt120,Gu as minInt128,$u as minInt136,Hu as minInt144,Ou as minInt152,ju as minInt16,Wu as minInt160,Vu as minInt168,Ju as minInt176,Ku as minInt184,Yu as minInt192,Zu as minInt200,Qu as minInt208,Xu as minInt216,td as minInt224,ed as minInt232,ad as minInt24,nd as minInt240,rd as minInt248,sd as minInt256,od as minInt32,id as minInt40,cd as minInt48,ud as minInt56,dd as minInt64,ld as minInt72,md as minInt8,fd as minInt80,hd as minInt88,pd as minInt96,Xs as multicall3Abi,to as namehash,eo as nonceManager,_i as numberToBytes,R as numberToHex,xd as offchainLookup,Ed as offchainLookupAbiItem,Id as offchainLookupSignature,Me as pad,Ri as padBytes,xt as padHex,ao as parseAbi,no as parseAbiItem,Jn as parseAbiParameter,ro as parseAbiParameters,wr as parseCompactSignature,Xn as parseErc6492Signature,tr as parseErc8010Signature,sr as parseEther,qi as parseEventLogs,or as parseGwei,so as parseSignature,_a as parseTransaction,Wt as parseUnits,oo as prepareEncodeFunctionData,io as presignMessagePrefix,co as publicActions,Q as recoverAddress,Sa as recoverMessageAddress,uo as recoverPublicKey,xr as recoverTransactionAddress,Aa as recoverTypedDataAddress,Qn as ripemd160,lo as rpcSchema,Fi as rpcTransactionType,mo as serializeAccessList,Er as serializeCompactSignature,fo as serializeErc6492Signature,er as serializeErc8010Signature,ho as serializeSignature,Le as serializeTransaction,ea as serializeTypedData,Ui as setErrorConfig,gr as setupKzg,yd as sha256,Fn as shouldThrow,pr as sidecarsToVersionedHashes,Ir as signatureToCompactSignature,po as signatureToHex,$e as size,De as slice,ki as sliceBytes,Lt as sliceHex,Bi as stringToBytes,Ke as stringToHex,Ni as stringify,hn as testActions,ge as toBlobSidecars,yo as toBlobs,B as toBytes,yr as toCoinType,Li as toEventHash,Mi as toEventSelector,Di as toEventSignature,zi as toFunctionHash,Gi as toFunctionSelector,$i as toFunctionSignature,Nt as toHex,go as toPrefixedMessage,ia as toRlp,Hi as transactionType,We as trim,bo as universalSignatureValidatorAbi,wo as universalSignatureValidatorByteCode,ta as validateTypedData,ar as verifyHash,nr as verifyMessage,rr as verifyTypedData,qn as walletActions,lr as webSocket,xo as weiUnits,Eo as withCache,Io as withRetry,Ze as withTimeout,To as zeroAddress,Co as zeroHash};
|
|
2
|
+
import{p as gt,b as Yt,i as Zt,I as Qt,m as bt,s as ut,A as D,e as Xt,g as U,d as te,f as N,r as ee,h as ae,j as ne,k as re,w as se,n as oe,o as ie,q as ce,t as ue,v as de,u as le,x as Q,y as me,z as fe,B as he,C as $,D as pe,E as ye,F as ge,G as be,H as we,J as xe,K as Ee,L as Ie,M as Te,N as St,O as At,P as Ce,Q as Pt,R as _t,S as Rt,T as ve,U as dt,V as qt,W as Se,X as Ae,Y as Ft,Z as Pe,_ as Ut,$ as J,a0 as _e,a1 as kt,a2 as Re,a3 as qe,a4 as lt,a5 as Fe,a6 as Ue,a7 as ke,a8 as Be,a9 as Ne,aa as Bt,ab as Le}from"./parseSignature-BUx9b-zW.js";import{ac as vr,ad as Sr,ae as Ar,af as Pr,ag as _r,ah as Rr,ai as qr,aj as Fr,ak as Ur,al as kr,am as Br,an as Nr,ao as Lr,ap as Mr,aq as Dr,ar as zr,as as Gr,at as $r,au as Hr,av as Or,aw as jr,ax as Wr,ay as Vr,az as Jr,aA as Kr,aB as Yr,aC as Zr,aD as Qr,aE as Xr,aF as ts,aG as es,aH as as,aI as ns,aJ as rs,aK as ss,aL as os,aM as is,aN as cs,aO as us,aP as ds,aQ as ls,aR as ms,aS as fs,aT as hs,aU as ps,aV as ys,aW as gs,aX as bs,aY as ws,aZ as xs,a_ as Es,a$ as Is,b0 as Ts,b1 as Cs,b2 as vs,b3 as Ss,b4 as As,b5 as Ps,b6 as _s,b7 as Rs,b8 as qs,b9 as Fs,ba as Us,bb as ks,bc as Bs,bd as Ns,be as Ls,bf as Ms,bg as Ds,bh as zs,bi as Gs,bj as $s,bk as Hs,bl as Os,bm as js,bn as Ws,bo as Vs,bp as Js,bq as Ks,br as Ys,bs as Zs,bt as Qs,bu as Xs,bv as to,bw as eo,bx as ao,by as no,bz as ro,br as so,bA as oo,bB as io,bC as co,bD as uo,bE as lo,bF as mo,bG as fo,bH as ho,bH as po,bI as yo,bJ as go,bi as bo,bj as wo,bK as xo,bL as Eo,bM as Io,bN as To,bO as Co}from"./parseSignature-BUx9b-zW.js";import{T as B,b9 as k,U as Me,I as Y,ba as De,G as ze,bb as Ge,X as H,_ as ct,$ as G,B as mt,D as E,P as $e,a7 as He,bc as j,a6 as wt,R as Nt,bd as Lt,d as Mt,L as R,F as ft,A as F,be as A,M as Oe,N as je,bf as We,bg as xt,aG as ht,J as Ve,bh as Je,bi as Ke,bj as Ye,bk as Et}from"./signing-B9F_g0GG.js";import{bl as So,bm as Ao,bn as Po,bo as _o,bp as Ro,bq as qo,br as Fo,bs as Uo,bt as ko,bu as Bo,bv as No,bw as Lo,bx as Mo,by as Do,bz as zo,Q as Go,bA as $o,bB as Ho,bC as Oo,bD as jo,bE as Wo,bF as Vo,bG as Jo,bH as Ko,bI as Yo,bJ as Zo,bK as Qo,bL as Xo,bM as ti,bN as ei,bO as ai,bP as ni,bQ as ri,bR as si,bS as oi,bT as ii,bU as ci,bV as ui,E as di,bW as li,bX as mi,bY as fi,bZ as hi,b_ as pi,p as yi,b$ as gi,at as bi,au as wi,c0 as xi,c1 as Ei,c2 as Ii,c3 as Ti,c4 as Ci,f as vi,c4 as Si,c5 as Ai,c6 as Pi,c7 as _i,c8 as Ri,c9 as qi,ca as Fi,cb as Ui,cc as ki,cd as Bi,C as Ni,ce as Li,c3 as Mi,c4 as Di,ce as zi,f as Gi,c4 as $i,z as Hi}from"./signing-B9F_g0GG.js";import{w as Ze,h as Qe,g as Xe,v as ta,s as ea}from"./hashTypedData-DHR5yJit.js";import{I as ji,a as Wi,b as Vi,d as Ji,c as Ki,e as Yi}from"./hashTypedData-DHR5yJit.js";import{T as aa,a as Z,W as It,b as na,U as ra,R as sa}from"./rpc-q1fg-PaK.js";import{A as Qi,c as Xi,B as tc,C as ec,D as ac,H as nc,I as rc,d as sc,e as oc,f as ic,J as cc,L as uc,M as dc,h as lc,P as mc,i as fc,j as hc,k as pc,l as yc,m as gc,S as bc,n as wc,o as xc,p as Ec,q as Ic,r as Tc,s as Cc}from"./rpc-q1fg-PaK.js";import{_ as oa}from"./index-BBuZMaWr.js";import{t as ia,H as ca}from"./sha256-DkPvB4om.js";import{b as Sc,h as Ac,a as Pc,c as _c,d as Rc,e as qc,f as Fc,g as Uc,i as kc,j as Bc,k as Nc,l as Lc,n as Mc,o as Dc,p as zc,q as Gc,r as $c,u as Hc,v as Oc,w as jc,x as Wc,y as Vc,z as Jc,A as Kc,B as Yc,C as Zc,D as Qc,E as Xc,F as tu,G as eu,I as au,J as nu,K as ru,L as su,M as ou,N as iu,O as cu,P as uu,Q as du,R as lu,S as mu,m as fu,T as hu,U as pu,V as yu,W as gu,X as bu,Y as wu,Z as xu,_ as Eu,$ as Iu,a0 as Tu,a1 as Cu,a2 as vu,a3 as Su,a4 as Au,a5 as Pu,a6 as _u,a7 as Ru,a8 as qu,a9 as Fu,aa as Uu,ab as ku,ac as Bu,ad as Nu,ae as Lu,af as Mu,ag as Du,ah as zu,ai as Gu,aj as $u,ak as Hu,al as Ou,am as ju,an as Wu,ao as Vu,ap as Ju,aq as Ku,ar as Yu,as as Zu,at as Qu,au as Xu,av as td,aw as ed,ax as ad,ay as nd,az as rd,aA as sd,aB as od,aC as id,aD as cd,aE as ud,aF as dd,aG as ld,aH as md,aI as fd,aJ as hd,aK as pd,s as yd}from"./sha256-DkPvB4om.js";import{ccipRequest as bd,ccipRequest as wd,offchainLookup as xd,offchainLookupAbiItem as Ed,offchainLookupSignature as Id}from"./ccip-BafcYzQ9.js";import{d as Cd,a as vd,f as Sd}from"./transactionReceipt-OilL7-NS.js";import"./utils-CBfcEx8F.js";import"./sentry-DKBoGDXH.js";import"./react-C51i12iP.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-BeFqf2KO.js";import"./intl-CBcMB1D2.js";function Jn(t){let e;if(typeof t=="string")e=gt(t,{modifiers:bt});else{const a=Yt(t),n=t.length;for(let r=0;r<n;r++){const s=t[r];if(!Zt(s)){e=gt(s,{modifiers:bt,structs:a});break}}}if(!e)throw new Qt({param:t});return e}async function M(t,e){return M.internal(t,ut,"sendTransaction",e)}(function(t){async function e(a,n,r,s){const{abi:u,account:d=a.account,address:c,args:i,dataSuffix:f,functionName:m,...h}=s;if(typeof d>"u")throw new D({docsPath:"/docs/contract/writeContract"});const o=d?N(d):null,p=Xt({abi:u,args:i,functionName:m});try{return await U(a,n,r)({data:`${p}${f?f.replace("0x",""):""}`,to:c,account:o,...h})}catch(l){throw te(l,{abi:u,address:c,args:i,docsPath:"/docs/contract/writeContract",functionName:m,sender:o==null?void 0:o.address})}}t.internal=e})(M||(M={}));function Kn({abi:t,address:e,client:a}){const n=a,[r,s]=n?"public"in n&&"wallet"in n?[n.public,n.wallet]:"public"in n?[n.public,void 0]:"wallet"in n?[void 0,n.wallet]:[n,n]:[void 0,void 0],u=r!=null,d=s!=null,c={};let i=!1,f=!1,m=!1;for(const h of t)if(h.type==="function"?h.stateMutability==="view"||h.stateMutability==="pure"?i=!0:f=!0:h.type==="event"&&(m=!0),i&&f&&m)break;return u&&(i&&(c.read=new Proxy({},{get(h,o){return(...p)=>{const{args:l,options:y}=W(p);return U(r,ee,"readContract")({abi:t,address:e,functionName:o,args:l,...y})}}})),f&&(c.simulate=new Proxy({},{get(h,o){return(...p)=>{const{args:l,options:y}=W(p);return U(r,ae,"simulateContract")({abi:t,address:e,functionName:o,args:l,...y})}}})),m&&(c.createEventFilter=new Proxy({},{get(h,o){return(...p)=>{const l=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(p,l);return U(r,ne,"createContractEventFilter")({abi:t,address:e,eventName:o,args:y,...w})}}}),c.getEvents=new Proxy({},{get(h,o){return(...p)=>{const l=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(p,l);return U(r,re,"getContractEvents")({abi:t,address:e,eventName:o,args:y,...w})}}}),c.watchEvent=new Proxy({},{get(h,o){return(...p)=>{const l=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(p,l);return U(r,se,"watchContractEvent")({abi:t,address:e,eventName:o,args:y,...w})}}}))),d&&f&&(c.write=new Proxy({},{get(h,o){return(...p)=>{const{args:l,options:y}=W(p);return U(s,M,"writeContract")({abi:t,address:e,functionName:o,args:l,...y})}}})),(u||d)&&f&&(c.estimateGas=new Proxy({},{get(h,o){return(...p)=>{const{args:l,options:y}=W(p);return U(r??s,oe,"estimateContractGas")({abi:t,address:e,functionName:o,args:l,...y,account:y.account??s.account})}}})),c.address=e,c.abi=t,c}function W(t){const e=t.length&&Array.isArray(t[0]),a=e?t[0]:[],n=(e?t[1]:t[0])??{};return{args:a,options:n}}function rt(t,e){let a=!1;Array.isArray(t[0])?a=!0:t.length===1?a=e.inputs.some(s=>s.indexed):t.length===2&&(a=!0);const n=a?t[0]:void 0,r=(a?t[1]:t[0])??{};return{args:n,options:r}}function Tt(t){return!t||typeof t!="object"||!("BYTES_PER_ELEMENT"in t)?!1:t.BYTES_PER_ELEMENT===1&&t.constructor.name==="Uint8Array"}function Yn(t){return t.opcode==="CREATE2"?da(t):ua(t)}function ua(t){const e=B(k(t.from));let a=B(t.nonce);return a[0]===0&&(a=new Uint8Array([])),k(`0x${Y(ia([e,a],"bytes")).slice(26)}`)}function da(t){const e=B(k(t.from)),a=Me(Tt(t.salt)?t.salt:B(t.salt),{size:32}),n="bytecodeHash"in t?Tt(t.bytecodeHash)?t.bytecodeHash:B(t.bytecodeHash):Y(t.bytecode,"bytes");return k(De(Y(ze([B("0xff"),e,a,n])),12))}function Zn({chains:t,id:e}){return t.find(a=>a.id===e)}function Dt(t,e="hex"){const a=(()=>{if(typeof t=="string"){if(t.length>3&&t.length%2!==0)throw new Ge(t);return H(t)}return t})(),n=ct(a,{recursiveReadLimit:Number.POSITIVE_INFINITY});return zt(n,e)}function zt(t,e="hex"){if(t.bytes.length===0)return e==="hex"?G(t.bytes):t.bytes;const a=t.readByte();if(a<128&&t.decrementPosition(1),a<192){const r=Ct(t,a,128),s=t.readBytes(r);return e==="hex"?G(s):s}const n=Ct(t,a,192);return la(t,n,e)}function Ct(t,e,a){if(a===128&&e<128)return 1;if(e<=a+55)return e-a;if(e===a+55+1)return t.readUint8();if(e===a+55+2)return t.readUint16();if(e===a+55+3)return t.readUint24();if(e===a+55+4)return t.readUint32();throw new mt("Invalid RLP prefix")}function la(t,e,a){const n=t.position,r=[];for(;t.position-n<e;)r.push(zt(t,a));return r}function ma(t){return E(t)&&$e(t)===32}const fa=Uint8Array.from([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),Gt=Uint8Array.from(new Array(16).fill(0).map((t,e)=>e)),ha=Gt.map(t=>(9*t+5)%16),$t=(()=>{const a=[[Gt],[ha]];for(let n=0;n<4;n++)for(let r of a)r.push(r[n].map(s=>fa[s]));return a})(),Ht=$t[0],Ot=$t[1],jt=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(t=>Uint8Array.from(t)),pa=Ht.map((t,e)=>t.map(a=>jt[e][a])),ya=Ot.map((t,e)=>t.map(a=>jt[e][a])),ga=Uint32Array.from([0,1518500249,1859775393,2400959708,2840853838]),ba=Uint32Array.from([1352829926,1548603684,1836072691,2053994217,0]);function vt(t,e,a,n){return t===0?e^a^n:t===1?e&a|~e&n:t===2?(e|~a)^n:t===3?e&n|a&~n:e^(a|~n)}const V=new Uint32Array(16);class wa extends ca{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:a,h2:n,h3:r,h4:s}=this;return[e,a,n,r,s]}set(e,a,n,r,s){this.h0=e|0,this.h1=a|0,this.h2=n|0,this.h3=r|0,this.h4=s|0}process(e,a){for(let o=0;o<16;o++,a+=4)V[o]=e.getUint32(a,!0);let n=this.h0|0,r=n,s=this.h1|0,u=s,d=this.h2|0,c=d,i=this.h3|0,f=i,m=this.h4|0,h=m;for(let o=0;o<5;o++){const p=4-o,l=ga[o],y=ba[o],w=Ht[o],g=Ot[o],C=pa[o],b=ya[o];for(let x=0;x<16;x++){const I=j(n+vt(o,s,d,i)+V[w[x]]+l,C[x])+m|0;n=m,m=i,i=j(d,10)|0,d=s,s=I}for(let x=0;x<16;x++){const I=j(r+vt(p,u,c,f)+V[g[x]]+y,b[x])+h|0;r=h,h=f,f=j(c,10)|0,c=u,u=I}}this.set(this.h1+d+f|0,this.h2+i+h|0,this.h3+m+r|0,this.h4+n+u|0,this.h0+s+c|0)}roundClean(){wt(V)}destroy(){this.destroyed=!0,wt(this.buffer),this.set(0,0,0,0,0)}}const xa=He(()=>new wa),Ea=xa;function Qn(t,e){const a=e||"hex",n=Ea(E(t,{strict:!1})?B(t):t);return a==="bytes"?n:Nt(n)}const st=new Map;async function Ia(t){const{getSocket:e,keepAlive:a=!0,key:n="socket",reconnect:r=!0,url:s}=t,{interval:u=3e4}=typeof a=="object"?a:{},{attempts:d=5,delay:c=2e3}=typeof r=="object"?r:{},i=JSON.stringify({keepAlive:a,key:n,url:s,reconnect:r});let f=st.get(i);if(f)return f;let m=0;const{schedule:h}=ie({id:i,fn:async()=>{const l=new Map,y=new Map;let w,g,C,b=!1;function x(){if(r&&m<d){if(b)return;b=!0,m++,g==null||g.close(),setTimeout(async()=>{await I().catch(console.error),b=!1},c)}else l.clear(),y.clear()}async function I(){const T=await e({onClose(){var v,P;for(const S of l.values())(v=S.onError)==null||v.call(S,new Z({url:s}));for(const S of y.values())(P=S.onError)==null||P.call(S,new Z({url:s}));x()},onError(v){var P,S;w=v;for(const _ of l.values())(P=_.onError)==null||P.call(_,w);for(const _ of y.values())(S=_.onError)==null||S.call(_,w);x()},onOpen(){w=void 0,m=0},onResponse(v){const P=v.method==="eth_subscription",S=P?v.params.subscription:v.id,_=P?y:l,q=_.get(S);q&&q.onResponse(v),P||_.delete(S)}});if(g=T,a&&(C&&clearInterval(C),C=setInterval(()=>{var v;return(v=g.ping)==null?void 0:v.call(g)},u)),r&&y.size>0){const v=y.entries();for(const[P,{onResponse:S,body:_,onError:q}]of v)_&&(y.delete(P),f==null||f.request({body:_,onResponse:S,onError:q}))}return T}return await I(),w=void 0,f={close(){C&&clearInterval(C),g.close(),st.delete(i)},get socket(){return g},request({body:T,onError:v,onResponse:P}){w&&v&&v(w);const S=T.id??ce.take(),_=q=>{var z;typeof q.id=="number"&&S!==q.id||(T.method==="eth_subscribe"&&typeof q.result=="string"&&y.set(q.result,{onResponse:_,onError:v,body:T}),T.method==="eth_unsubscribe"&&y.delete((z=T.params)==null?void 0:z[0]),P(q))};l.set(S,{onResponse:_,onError:v});try{g.request({body:{jsonrpc:"2.0",id:S,...T}})}catch(q){v==null||v(q)}},requestAsync({body:T,timeout:v=1e4}){return Ze(()=>new Promise((P,S)=>this.request({body:T,onError:S,onResponse:P})),{errorInstance:new aa({body:T,url:s}),timeout:v})},requests:l,subscriptions:y,url:s},st.set(i,f),[f]}}),[o,[p]]=await h();return p}async function K(t,e={}){const{keepAlive:a,reconnect:n}=e;return Ia({async getSocket({onClose:r,onError:s,onOpen:u,onResponse:d}){const c=await oa(()=>import("./native-BMBZUPnx.js").then(o=>o.n),__vite__mapDeps([0,1,2])).then(o=>o.WebSocket),i=new c(t);function f(){i.removeEventListener("close",f),i.removeEventListener("message",m),i.removeEventListener("error",s),i.removeEventListener("open",u),r()}function m({data:o}){if(!(typeof o=="string"&&o.trim().length===0))try{const p=JSON.parse(o);d(p)}catch(p){s(p)}}i.addEventListener("close",f),i.addEventListener("message",m),i.addEventListener("error",s),i.addEventListener("open",u),i.readyState===c.CONNECTING&&await new Promise((o,p)=>{i&&(i.onopen=o,i.onerror=p)});const{close:h}=i;return Object.assign(i,{close(){h.bind(i)(),f()},ping(){try{if(i.readyState===i.CLOSED||i.readyState===i.CLOSING)throw new It({url:i.url,cause:new Z({url:i.url})});const o={jsonrpc:"2.0",id:null,method:"net_version",params:[]};i.send(JSON.stringify(o))}catch(o){s(o)}},request({body:o}){if(i.readyState===i.CLOSED||i.readyState===i.CLOSING)throw new It({body:o,url:i.url,cause:new Z({url:i.url})});return i.send(JSON.stringify(o))}})},keepAlive:a,reconnect:n,url:t})}async function Ta(t){const e=await K(t);return Object.assign(e.socket,{requests:e.requests,subscriptions:e.subscriptions})}function Ca(t){return Lt(t,-32)===ue}function va(t){return de(t)}function Xn(t){if(!Ca(t))return{signature:t};const[e,a,n]=Mt([{type:"address"},{type:"bytes"},{type:"bytes"}],t);return{address:e,data:a,signature:n}}function tr(t){if(!va(t))return{signature:t};const{authorization:e,to:a,...n}=le(t);return{authorization:{address:e.address,chainId:e.chainId,nonce:Number(e.nonce),r:R(e.r,{size:32}),s:R(e.s,{size:32}),yParity:e.yParity},...a?{address:a}:{},...n}}async function Sa({message:t,signature:e}){return Q({hash:me(t),signature:e})}async function Aa(t){const{domain:e,message:a,primaryType:n,signature:r,types:s}=t;return Q({hash:Qe({domain:e,message:a,primaryType:n,types:s}),signature:r})}function er(t){const{address:e,data:a,signature:n,to:r="hex"}=t,s=fe({authorization:{address:t.authorization.address,chainId:t.authorization.chainId,nonce:BigInt(t.authorization.nonce),r:BigInt(t.authorization.r),s:BigInt(t.authorization.s),yParity:t.authorization.yParity},data:a,signature:n,to:e});return r==="hex"?s:H(s)}async function ar({address:t,hash:e,signature:a}){return ft(k(t),await Q({hash:e,signature:a}))}async function nr({address:t,message:e,signature:a}){return ft(k(t),await Sa({message:e,signature:a}))}async function rr(t){const{address:e,domain:a,message:n,primaryType:r,signature:s,types:u}=t;return ft(k(e),await Aa({domain:a,message:n,primaryType:r,signature:s,types:u}))}function Pa(t){const e=Lt(t,0,1);if(e==="0x04")return"eip7702";if(e==="0x03")return"eip4844";if(e==="0x02")return"eip1559";if(e==="0x01")return"eip2930";if(e!=="0x"&&F(e)>=192)return"legacy";throw new he({serializedType:e})}function _a(t){const e=Pa(t);return e==="eip1559"?Fa(t):e==="eip2930"?Ua(t):e==="eip4844"?qa(t):e==="eip7702"?Ra(t):ka(t)}function Ra(t){const e=X(t),[a,n,r,s,u,d,c,i,f,m,h,o,p]=e;if(e.length!==10&&e.length!==13)throw new $({attributes:{chainId:a,nonce:n,maxPriorityFeePerGas:r,maxFeePerGas:s,gas:u,to:d,value:c,data:i,accessList:f,authorizationList:m,...e.length>9?{v:h,r:o,s:p}:{}},serializedTransaction:t,type:"eip7702"});const l={chainId:F(a),type:"eip7702"};return E(d)&&d!=="0x"&&(l.to=d),E(u)&&u!=="0x"&&(l.gas=A(u)),E(i)&&i!=="0x"&&(l.data=i),E(n)&&(l.nonce=n==="0x"?0:F(n)),E(c)&&c!=="0x"&&(l.value=A(c)),E(s)&&s!=="0x"&&(l.maxFeePerGas=A(s)),E(r)&&r!=="0x"&&(l.maxPriorityFeePerGas=A(r)),f.length!==0&&f!=="0x"&&(l.accessList=tt(f)),m.length!==0&&m!=="0x"&&(l.authorizationList=Ba(m)),we(l),{...e.length===13?O(e):void 0,...l}}function qa(t){const e=X(t),a=e.length===4,n=a?e[0]:e,r=a?e.slice(1):[],[s,u,d,c,i,f,m,h,o,p,l,y,w,g]=n,[C,b,x]=r;if(!(n.length===11||n.length===14))throw new $({attributes:{chainId:s,nonce:u,maxPriorityFeePerGas:d,maxFeePerGas:c,gas:i,to:f,value:m,data:h,accessList:o,...n.length>9?{v:y,r:w,s:g}:{}},serializedTransaction:t,type:"eip4844"});const I={blobVersionedHashes:l,chainId:F(s),to:f,type:"eip4844"};return E(i)&&i!=="0x"&&(I.gas=A(i)),E(h)&&h!=="0x"&&(I.data=h),E(u)&&(I.nonce=u==="0x"?0:F(u)),E(m)&&m!=="0x"&&(I.value=A(m)),E(p)&&p!=="0x"&&(I.maxFeePerBlobGas=A(p)),E(c)&&c!=="0x"&&(I.maxFeePerGas=A(c)),E(d)&&d!=="0x"&&(I.maxPriorityFeePerGas=A(d)),o.length!==0&&o!=="0x"&&(I.accessList=tt(o)),C&&b&&x&&(I.sidecars=ge({blobs:C,commitments:b,proofs:x})),be(I),{...n.length===14?O(n):void 0,...I}}function Fa(t){const e=X(t),[a,n,r,s,u,d,c,i,f,m,h,o]=e;if(!(e.length===9||e.length===12))throw new $({attributes:{chainId:a,nonce:n,maxPriorityFeePerGas:r,maxFeePerGas:s,gas:u,to:d,value:c,data:i,accessList:f,...e.length>9?{v:m,r:h,s:o}:{}},serializedTransaction:t,type:"eip1559"});const p={chainId:F(a),type:"eip1559"};return E(d)&&d!=="0x"&&(p.to=d),E(u)&&u!=="0x"&&(p.gas=A(u)),E(i)&&i!=="0x"&&(p.data=i),E(n)&&(p.nonce=n==="0x"?0:F(n)),E(c)&&c!=="0x"&&(p.value=A(c)),E(s)&&s!=="0x"&&(p.maxFeePerGas=A(s)),E(r)&&r!=="0x"&&(p.maxPriorityFeePerGas=A(r)),f.length!==0&&f!=="0x"&&(p.accessList=tt(f)),pe(p),{...e.length===12?O(e):void 0,...p}}function Ua(t){const e=X(t),[a,n,r,s,u,d,c,i,f,m,h]=e;if(!(e.length===8||e.length===11))throw new $({attributes:{chainId:a,nonce:n,gasPrice:r,gas:s,to:u,value:d,data:c,accessList:i,...e.length>8?{v:f,r:m,s:h}:{}},serializedTransaction:t,type:"eip2930"});const o={chainId:F(a),type:"eip2930"};return E(u)&&u!=="0x"&&(o.to=u),E(s)&&s!=="0x"&&(o.gas=A(s)),E(c)&&c!=="0x"&&(o.data=c),E(n)&&(o.nonce=n==="0x"?0:F(n)),E(d)&&d!=="0x"&&(o.value=A(d)),E(r)&&r!=="0x"&&(o.gasPrice=A(r)),i.length!==0&&i!=="0x"&&(o.accessList=tt(i)),ye(o),{...e.length===11?O(e):void 0,...o}}function ka(t){const e=Dt(t,"hex"),[a,n,r,s,u,d,c,i,f]=e;if(!(e.length===6||e.length===9))throw new $({attributes:{nonce:a,gasPrice:n,gas:r,to:s,value:u,data:d,...e.length>6?{v:c,r:i,s:f}:{}},serializedTransaction:t,type:"legacy"});const m={type:"legacy"};if(E(s)&&s!=="0x"&&(m.to=s),E(r)&&r!=="0x"&&(m.gas=A(r)),E(d)&&d!=="0x"&&(m.data=d),E(a)&&(m.nonce=a==="0x"?0:F(a)),E(u)&&u!=="0x"&&(m.value=A(u)),E(n)&&n!=="0x"&&(m.gasPrice=A(n)),xe(m),e.length===6)return m;const h=E(c)&&c!=="0x"?A(c):0n;if(f==="0x"&&i==="0x")return h>0&&(m.chainId=Number(h)),m;const o=h,p=Number((o-35n)/2n);if(p>0)m.chainId=p;else if(o!==27n&&o!==28n)throw new Ee({v:o});return m.v=o,m.s=f,m.r=i,m.yParity=o%2n===0n?1:0,m}function X(t){return Dt(`0x${t.slice(4)}`,"hex")}function tt(t){const e=[];for(let a=0;a<t.length;a++){const[n,r]=t[a];if(!Oe(n,{strict:!1}))throw new je({address:n});e.push({address:n,storageKeys:r.map(s=>ma(s)?s:We(s))})}return e}function Ba(t){const e=[];for(let a=0;a<t.length;a++){const[n,r,s,u,d,c]=t[a];e.push({address:r,chainId:n==="0x"?0:F(n),nonce:s==="0x"?0:F(s),...O([u,d,c])})}return e}function O(t){const e=t.slice(-3),a=e[0]==="0x"||A(e[0])===0n?27n:28n;return{r:xt(e[1],{size:32}),s:xt(e[2],{size:32}),v:a,yParity:a===27n?0:1}}class Na extends mt{constructor({value:e}){super(`Number \`${e}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function Wt(t,e){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(t))throw new Na({value:t});let[a,n="0"]=t.split(".");const r=a.startsWith("-");if(r&&(a=a.slice(1)),n=n.replace(/(0+)$/,""),e===0)Math.round(+`.${n}`)===1&&(a=`${BigInt(a)+1n}`),n="";else if(n.length>e){const[s,u,d]=[n.slice(0,e-1),n.slice(e-1,e),n.slice(e)],c=Math.round(+`${u}.${d}`);c>9?n=`${BigInt(s)+BigInt(1)}0`.padStart(s.length+1,"0"):n=`${s}${c}`,n.length>e&&(n=n.slice(1),a=`${BigInt(a)+1n}`),n=n.slice(0,e)}else n=n.padEnd(e,"0");return BigInt(`${r?"-":""}${a}${n}`)}function sr(t,e="wei"){return Wt(t,Ie[e])}function or(t,e="wei"){return Wt(t,Te[e])}async function La(t,{hash:e}){await t.request({method:`${t.mode}_dropTransaction`,params:[e]})}async function Ma(t){return t.request({method:`${t.mode}_dumpState`})}async function Da(t){return t.mode==="ganache"?await t.request({method:"eth_mining"}):await t.request({method:`${t.mode}_getAutomine`})}async function za(t){return await t.request({method:"txpool_content"})}async function Ga(t){const{pending:e,queued:a}=await t.request({method:"txpool_status"});return{pending:F(e),queued:F(a)}}async function $a(t,{address:e}){await t.request({method:`${t.mode}_impersonateAccount`,params:[e]})}async function Ha(t,{seconds:e}){return await t.request({method:"evm_increaseTime",params:[R(e)]})}async function Oa(t){return await t.request({method:"txpool_inspect"})}async function ja(t,{state:e}){await t.request({method:`${t.mode}_loadState`,params:[e]})}async function Wa(t,{blocks:e,interval:a}){t.mode==="ganache"?await t.request({method:"evm_mine",params:[{blocks:R(e)}]}):await t.request({method:`${t.mode}_mine`,params:[R(e),R(a||0)]})}async function Va(t){await t.request({method:`${t.mode}_removeBlockTimestampInterval`})}async function Ja(t,{blockNumber:e,jsonRpcUrl:a}={}){await t.request({method:`${t.mode}_reset`,params:[{forking:{blockNumber:Number(e),jsonRpcUrl:a}}]})}async function Ka(t,{id:e}){await t.request({method:"evm_revert",params:[e]})}async function Ya(t,e){var w,g,C;const{accessList:a,data:n,from:r,gas:s,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:c,nonce:i,to:f,value:m,...h}=e,o=(C=(g=(w=t.chain)==null?void 0:w.formatters)==null?void 0:g.transactionRequest)==null?void 0:C.format,l=(o||ht)({...St(h,{format:o}),accessList:a,data:n,from:r,gas:s,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:c,nonce:i,to:f,value:m},"sendUnsignedTransaction");return await t.request({method:"eth_sendUnsignedTransaction",params:[l]})}async function Za(t,e){t.mode==="ganache"?e?await t.request({method:"miner_start"}):await t.request({method:"miner_stop"}):await t.request({method:"evm_setAutomine",params:[e]})}async function Qa(t,{address:e,value:a}){t.mode==="ganache"?await t.request({method:"evm_setAccountBalance",params:[e,R(a)]}):await t.request({method:`${t.mode}_setBalance`,params:[e,R(a)]})}async function Xa(t,{gasLimit:e}){await t.request({method:"evm_setBlockGasLimit",params:[R(e)]})}async function tn(t,{interval:e}){const a=t.mode==="hardhat"?e*1e3:e;await t.request({method:`${t.mode}_setBlockTimestampInterval`,params:[a]})}async function en(t,{address:e,bytecode:a}){t.mode==="ganache"?await t.request({method:"evm_setAccountCode",params:[e,a]}):await t.request({method:`${t.mode}_setCode`,params:[e,a]})}async function an(t,{address:e}){await t.request({method:`${t.mode}_setCoinbase`,params:[e]})}async function nn(t,{interval:e}){const a=t.mode==="hardhat"?e*1e3:e;await t.request({method:"evm_setIntervalMining",params:[a]})}async function rn(t,e){await t.request({method:`${t.mode}_setLoggingEnabled`,params:[e]})}async function sn(t,{gasPrice:e}){await t.request({method:`${t.mode}_setMinGasPrice`,params:[R(e)]})}async function on(t,{baseFeePerGas:e}){await t.request({method:`${t.mode}_setNextBlockBaseFeePerGas`,params:[R(e)]})}async function cn(t,{timestamp:e}){await t.request({method:"evm_setNextBlockTimestamp",params:[R(e)]})}async function un(t,{address:e,nonce:a}){await t.request({method:`${t.mode}_setNonce`,params:[e,R(a)]})}async function dn(t,e){await t.request({method:`${t.mode}_setRpcUrl`,params:[e]})}async function ln(t,{address:e,index:a,value:n}){await t.request({method:`${t.mode}_setStorageAt`,params:[e,typeof a=="number"?R(a):a,n]})}async function mn(t){return await t.request({method:"evm_snapshot"})}async function fn(t,{address:e}){await t.request({method:`${t.mode}_stopImpersonatingAccount`,params:[e]})}function hn({mode:t}){return e=>{const a=e.extend(()=>({mode:t}));return{dropTransaction:n=>La(a,n),dumpState:()=>Ma(a),getAutomine:()=>Da(a),getTxpoolContent:()=>za(a),getTxpoolStatus:()=>Ga(a),impersonateAccount:n=>$a(a,n),increaseTime:n=>Ha(a,n),inspectTxpool:()=>Oa(a),loadState:n=>ja(a,n),mine:n=>Wa(a,n),removeBlockTimestampInterval:()=>Va(a),reset:n=>Ja(a,n),revert:n=>Ka(a,n),sendUnsignedTransaction:n=>Ya(a,n),setAutomine:n=>Za(a,n),setBalance:n=>Qa(a,n),setBlockGasLimit:n=>Xa(a,n),setBlockTimestampInterval:n=>tn(a,n),setCode:n=>en(a,n),setCoinbase:n=>an(a,n),setIntervalMining:n=>nn(a,n),setLoggingEnabled:n=>rn(a,n),setMinGasPrice:n=>sn(a,n),setNextBlockBaseFeePerGas:n=>on(a,n),setNextBlockTimestamp:n=>cn(a,n),setNonce:n=>un(a,n),setRpcUrl:n=>dn(a,n),setStorageAt:n=>ln(a,n),snapshot:()=>mn(a),stopImpersonatingAccount:n=>fn(a,n)}}}function ir(t){const{key:e="test",name:a="Test Client",mode:n}=t;return At({...t,key:e,name:a,type:"testClient"}).extend(s=>({mode:n,...hn({mode:n})(s)}))}async function pn(t,{chain:e}){const{id:a,name:n,nativeCurrency:r,rpcUrls:s,blockExplorers:u}=e;await t.request({method:"wallet_addEthereumChain",params:[{chainId:R(a),chainName:n,nativeCurrency:r,rpcUrls:s.default.http,blockExplorerUrls:u?Object.values(u).map(({url:d})=>d):void 0}]},{dedupe:!0,retryCount:0})}function yn(t,e){const{abi:a,args:n,bytecode:r,...s}=e,u=Ce({abi:a,args:n,bytecode:r});return ut(t,{...s,...s.authorizationList?{to:null}:{},data:u})}async function gn(t){var a;return((a=t.account)==null?void 0:a.type)==="local"?[t.account.address]:(await t.request({method:"eth_accounts"},{dedupe:!0})).map(n=>Ve(n))}async function bn(t,e={}){const{account:a=t.account,chainId:n}=e,r=a?N(a):void 0,s=n?[r==null?void 0:r.address,[R(n)]]:[r==null?void 0:r.address],u=await t.request({method:"wallet_getCapabilities",params:s}),d={};for(const[c,i]of Object.entries(u)){d[Number(c)]={};for(let[f,m]of Object.entries(i))f==="addSubAccount"&&(f="unstable_addSubAccount"),d[Number(c)][f]=m}return typeof n=="number"?d[n]:d}async function wn(t){return await t.request({method:"wallet_getPermissions"},{dedupe:!0})}async function xn(t){return(await t.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(a=>k(a))}async function En(t,e){return t.request({method:"wallet_requestPermissions",params:[e]},{retryCount:0})}async function In(t,e){const{chain:a=t.chain}=e,n=e.timeout??Math.max(((a==null?void 0:a.blockTime)??0)*3,5e3),r=await Pt(t,e);return await _t(t,{...e,id:r.id,timeout:n})}const ot=new Je(128);async function Vt(t,e){var x,I,T,v;const{account:a=t.account,chain:n=t.chain,accessList:r,authorizationList:s,blobs:u,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:m,maxPriorityFeePerGas:h,nonce:o,pollingInterval:p,throwOnReceiptRevert:l,type:y,value:w,...g}=e,C=e.timeout??Math.max(((n==null?void 0:n.blockTime)??0)*3,5e3);if(typeof a>"u")throw new D({docsPath:"/docs/actions/wallet/sendTransactionSync"});const b=a?N(a):null;try{Rt(e);const P=await(async()=>{if(e.to)return e.to;if(e.to!==null&&s&&s.length>0)return await ve({authorization:s[0]}).catch(()=>{throw new mt("`to` is required. Could not infer from `authorizationList`.")})})();if((b==null?void 0:b.type)==="json-rpc"||b===null){let S;n!==null&&(S=await U(t,dt,"getChainId")({}),qt({currentChainId:S,chain:n}));const _=(T=(I=(x=t.chain)==null?void 0:x.formatters)==null?void 0:I.transactionRequest)==null?void 0:T.format,z=(_||ht)({...St(g,{format:_}),accessList:r,account:b,authorizationList:s,blobs:u,chainId:S,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:m,maxPriorityFeePerGas:h,nonce:o,to:P,type:y,value:w},"sendTransaction"),pt=ot.get(t.uid),Jt=pt?"wallet_sendTransaction":"eth_sendTransaction",Kt=await(async()=>{try{return await t.request({method:Jt,params:[z]},{retryCount:0})}catch(yt){if(pt===!1)throw yt;const L=yt;if(L.name==="InvalidInputRpcError"||L.name==="InvalidParamsRpcError"||L.name==="MethodNotFoundRpcError"||L.name==="MethodNotSupportedRpcError")return await t.request({method:"wallet_sendTransaction",params:[z]},{retryCount:0}).then(at=>(ot.set(t.uid,!0),at)).catch(at=>{const nt=at;throw nt.name==="MethodNotFoundRpcError"||nt.name==="MethodNotSupportedRpcError"?(ot.set(t.uid,!1),L):nt});throw L}})(),et=await U(t,Se,"waitForTransactionReceipt")({checkReplacement:!1,hash:Kt,pollingInterval:p,timeout:C});if(l&&et.status==="reverted")throw new Ae({receipt:et});return et}if((b==null?void 0:b.type)==="local"){const S=await U(t,Ft,"prepareTransactionRequest")({account:b,accessList:r,authorizationList:s,blobs:u,chain:n,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:m,maxPriorityFeePerGas:h,nonce:o,nonceManager:b.nonceManager,parameters:[...Pe,"sidecars"],type:y,value:w,...g,to:P}),_=(v=n==null?void 0:n.serializers)==null?void 0:v.transaction,q=await b.signTransaction(S,{serializer:_});return await U(t,Ut,"sendRawTransactionSync")({serializedTransaction:q,throwOnReceiptRevert:l})}throw(b==null?void 0:b.type)==="smart"?new J({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new J({docsPath:"/docs/actions/wallet/sendTransactionSync",type:b==null?void 0:b.type})}catch(P){throw P instanceof J?P:_e(P,{...e,account:b,chain:e.chain||void 0})}}async function Tn(t,e){const{id:a}=e;await t.request({method:"wallet_showCallsStatus",params:[a]})}async function Cn(t,e){const{account:a=t.account}=e;if(!a)throw new D({docsPath:"/docs/eip7702/signAuthorization"});const n=N(a);if(!n.signAuthorization)throw new J({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:n.type});const r=await kt(t,e);return n.signAuthorization(r)}async function vn(t,{account:e=t.account,message:a}){if(!e)throw new D({docsPath:"/docs/actions/wallet/signMessage"});const n=N(e);if(n.signMessage)return n.signMessage({message:a});const r=typeof a=="string"?Ke(a):a.raw instanceof Uint8Array?Nt(a.raw):a.raw;return t.request({method:"personal_sign",params:[r,n.address]},{retryCount:0})}async function Sn(t,e){var i,f,m,h;const{account:a=t.account,chain:n=t.chain,...r}=e;if(!a)throw new D({docsPath:"/docs/actions/wallet/signTransaction"});const s=N(a);Rt({account:s,...e});const u=await U(t,dt,"getChainId")({});n!==null&&qt({currentChainId:u,chain:n});const d=(n==null?void 0:n.formatters)||((i=t.chain)==null?void 0:i.formatters),c=((f=d==null?void 0:d.transactionRequest)==null?void 0:f.format)||ht;return s.signTransaction?s.signTransaction({...r,chainId:u},{serializer:(h=(m=t.chain)==null?void 0:m.serializers)==null?void 0:h.transaction}):await t.request({method:"eth_signTransaction",params:[{...c({...r,account:s},"signTransaction"),chainId:R(u),from:s.address}]},{retryCount:0})}async function An(t,e){const{account:a=t.account,domain:n,message:r,primaryType:s}=e;if(!a)throw new D({docsPath:"/docs/actions/wallet/signTypedData"});const u=N(a),d={EIP712Domain:Xe({domain:n}),...e.types};if(ta({domain:n,message:r,primaryType:s,types:d}),u.signTypedData)return u.signTypedData({domain:n,message:r,primaryType:s,types:d});const c=ea({domain:n,message:r,primaryType:s,types:d});return t.request({method:"eth_signTypedData_v4",params:[u.address,c]},{retryCount:0})}async function Pn(t,{id:e}){await t.request({method:"wallet_switchEthereumChain",params:[{chainId:R(e)}]},{retryCount:0})}async function _n(t,e){return await t.request({method:"wallet_watchAsset",params:e},{retryCount:0})}async function Rn(t,e){return M.internal(t,Vt,"sendTransactionSync",e)}function qn(t){return{addChain:e=>pn(t,e),deployContract:e=>yn(t,e),getAddresses:()=>gn(t),getCallsStatus:e=>qe(t,e),getCapabilities:e=>bn(t,e),getChainId:()=>dt(t),getPermissions:()=>wn(t),prepareAuthorization:e=>kt(t,e),prepareTransactionRequest:e=>Ft(t,e),requestAddresses:()=>xn(t),requestPermissions:e=>En(t,e),sendCalls:e=>Pt(t,e),sendCallsSync:e=>In(t,e),sendRawTransaction:e=>Re(t,e),sendRawTransactionSync:e=>Ut(t,e),sendTransaction:e=>ut(t,e),sendTransactionSync:e=>Vt(t,e),showCallsStatus:e=>Tn(t,e),signAuthorization:e=>Cn(t,e),signMessage:e=>vn(t,e),signTransaction:e=>Sn(t,e),signTypedData:e=>An(t,e),switchChain:e=>Pn(t,e),waitForCallsStatus:e=>_t(t,e),watchAsset:e=>_n(t,e),writeContract:e=>M(t,e),writeContractSync:e=>Rn(t,e)}}function cr(t){const{key:e="wallet",name:a="Wallet Client",transport:n}=t;return At({...t,key:e,name:a,transport:n,type:"walletClient"}).extend(qn)}function ur(t,e={}){const{key:a="custom",methods:n,name:r="Custom Provider",retryDelay:s}=e;return({retryCount:u})=>lt({key:a,methods:n,name:r,request:t.request.bind(t),retryCount:e.retryCount??u,retryDelay:s,type:"custom"})}function dr(t,e={}){const{key:a="fallback",name:n="Fallback",rank:r=!1,shouldThrow:s=Fn,retryCount:u,retryDelay:d}=e;return(({chain:c,pollingInterval:i=4e3,timeout:f,...m})=>{let h=t,o=()=>{};const p=lt({key:a,name:n,async request({method:l,params:y}){let w;const g=async(C=0)=>{const b=h[C]({...m,chain:c,retryCount:0,timeout:f});try{const x=await b.request({method:l,params:y});return o({method:l,params:y,response:x,transport:b,status:"success"}),x}catch(x){if(o({error:x,method:l,params:y,transport:b,status:"error"}),s(x)||C===h.length-1||(w??(w=h.slice(C+1).some(I=>{const{include:T,exclude:v}=I({chain:c}).config.methods||{};return T?T.includes(l):v?!v.includes(l):!0})),!w))throw x;return g(C+1)}};return g()},retryCount:u,retryDelay:d,type:"fallback"},{onResponse:l=>o=l,transports:h.map(l=>l({chain:c,retryCount:0}))});if(r){const l=typeof r=="object"?r:{};Un({chain:c,interval:l.interval??i,onTransports:y=>h=y,ping:l.ping,sampleCount:l.sampleCount,timeout:l.timeout,transports:h,weights:l.weights})}return p})}function Fn(t){return!!("code"in t&&typeof t.code=="number"&&(t.code===na.code||t.code===ra.code||Fe.nodeMessage.test(t.message)||t.code===5e3))}function Un({chain:t,interval:e=4e3,onTransports:a,ping:n,sampleCount:r=10,timeout:s=1e3,transports:u,weights:d={}}){const{stability:c=.7,latency:i=.3}=d,f=[],m=async()=>{const h=await Promise.all(u.map(async l=>{const y=l({chain:t,retryCount:0,timeout:s}),w=Date.now();let g,C;try{await(n?n({transport:y}):y.request({method:"net_listening"})),C=1}catch{C=0}finally{g=Date.now()}return{latency:g-w,success:C}}));f.push(h),f.length>r&&f.shift();const o=Math.max(...f.map(l=>Math.max(...l.map(({latency:y})=>y)))),p=u.map((l,y)=>{const w=f.map(I=>I[y].latency),C=1-w.reduce((I,T)=>I+T,0)/w.length/o,b=f.map(I=>I[y].success),x=b.reduce((I,T)=>I+T,0)/b.length;return x===0?[0,y]:[i*C+c*x,y]}).sort((l,y)=>y[0]-l[0]);a(p.map(([,l])=>u[l])),await Ue(e),m()};m()}function lr(t,e={}){const{keepAlive:a,key:n="webSocket",methods:r,name:s="WebSocket JSON-RPC",reconnect:u,retryDelay:d}=e;return({chain:c,retryCount:i,timeout:f})=>{var l;const m=e.retryCount??i,h=f??e.timeout??1e4,o=t||((l=c==null?void 0:c.rpcUrls.default.webSocket)==null?void 0:l[0]),p={keepAlive:a,reconnect:u};if(!o)throw new ke;return lt({key:n,methods:r,name:s,async request({method:y,params:w}){const g={method:y,params:w},C=await K(o,p),{error:b,result:x}=await C.requestAsync({body:g,timeout:h});if(b)throw new sa({body:g,error:b,url:o});return x},retryCount:m,retryDelay:d,timeout:h,type:"webSocket"},{getSocket(){return Ta(o)},getRpcClient(){return K(o,p)},async subscribe({params:y,onData:w,onError:g}){const C=await K(o,p),{result:b}=await new Promise((x,I)=>C.request({body:{method:"eth_subscribe",params:y},onError(T){I(T),g==null||g(T)},onResponse(T){if(T.error){I(T.error),g==null||g(T.error);return}if(typeof T.id=="number"){x(T);return}T.method==="eth_subscription"&&w(T.params)}}));return{subscriptionId:b,async unsubscribe(){return new Promise(x=>C.request({body:{method:"eth_unsubscribe",params:[b]},onResponse:x}))}}}})}}class mr extends Error{constructor(e,a){super(a),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=e,this.details=a}}const it="/docs/contract/decodeDeployData";function fr(t){const{abi:e,bytecode:a,data:n}=t;if(n===a)return{bytecode:a};const r=e.find(u=>"type"in u&&u.type==="constructor");if(!r)throw new Ye({docsPath:it});if(!("inputs"in r))throw new Et({docsPath:it});if(!r.inputs||r.inputs.length===0)throw new Et({docsPath:it});return{args:Mt(r.inputs,`0x${n.replace(a,"")}`),bytecode:a}}function hr(t){const e=t.to??(typeof t.blobs[0]=="string"?"hex":"bytes"),a=typeof t.blobs[0]=="string"?t.blobs.map(d=>H(d)):t.blobs,n=a.reduce((d,c)=>d+c.length,0),r=ct(new Uint8Array(n));let s=!0;for(const d of a){const c=ct(d);for(;s&&c.position<d.length;){c.incrementPosition(1);let i=31;d.length-c.position<31&&(i=d.length-c.position);for(const f in Array.from({length:i})){const m=c.readByte();if(m===128&&!c.inspectBytes(c.remaining).includes(128)){s=!1;break}r.pushByte(m)}}}const u=r.bytes.slice(0,r.position);return e==="hex"?G(u):u}function pr(t){const{sidecars:e,version:a}=t,n=t.to??(typeof e[0].blob=="string"?"hex":"bytes"),r=[];for(const{commitment:s}of e)r.push(Be({commitment:s,to:n,version:a}));return r}const kn=2147483648;function yr(t){if(t===1)return 60n;if(t>=kn||t<0)throw new Ne({chainId:t});return BigInt((2147483648|t)>>>0)}function Bn({blobToKzgCommitment:t,computeBlobKzgProof:e}){return{blobToKzgCommitment:t,computeBlobKzgProof:e}}function gr(t,e){try{t.loadTrustedSetup(e)}catch(a){const n=a;if(!n.message.includes("trusted setup is already loaded"))throw n}return Bn(t)}function br({r:t,yParityAndS:e}){const a=H(e),n=a[0]&128?1:0,r=a;return n===1&&(r[0]&=127),{r:t,s:G(r),yParity:n}}function wr(t){const{r:e,s:a}=Bt.Signature.fromCompact(t.slice(2,130));return{r:R(e,{size:32}),yParityAndS:R(a,{size:32})}}async function xr(t){const{serializedTransaction:e,signature:a}=t,n=_a(e),r=a??{r:n.r,s:n.s,v:n.v,yParity:n.yParity},s=Le({...n,r:void 0,s:void 0,v:void 0,yParity:void 0,sidecars:void 0});return await Q({hash:Y(s),signature:r})}function Er({r:t,yParityAndS:e}){return`0x${new Bt.Signature(A(t),A(e)).toCompactHex()}`}function Ir(t){const{r:e,s:a,v:n,yParity:r}=t,s=Number(r??n-27n);let u=a;if(s===1){const d=H(a);d[0]|=128,u=G(d)}return{r:e,yParityAndS:u}}export{Ye as AbiConstructorNotFoundError,Et as AbiConstructorParamsNotFoundError,So as AbiDecodingDataSizeInvalidError,Ao as AbiDecodingDataSizeTooSmallError,Po as AbiDecodingZeroDataError,_o as AbiEncodingArrayLengthMismatchError,Ro as AbiEncodingBytesSizeMismatchError,qo as AbiEncodingLengthMismatchError,Fo as AbiErrorInputsNotFoundError,Uo as AbiErrorNotFoundError,ko as AbiErrorSignatureNotFoundError,Bo as AbiEventNotFoundError,No as AbiEventSignatureEmptyTopicsError,Lo as AbiEventSignatureNotFoundError,Mo as AbiFunctionNotFoundError,Do as AbiFunctionOutputsNotFoundError,zo as AbiFunctionSignatureNotFoundError,vr as AccountStateConflictError,Qi as AtomicReadyWalletRejectedUpgradeError,Xi as AtomicityNotSupportedError,mt as BaseError,Sr as BaseFeeScalarError,Ar as BlockNotFoundError,Pr as BundleFailedError,tc as BundleTooLargeError,Go as BytesSizeMismatchError,_r as CallExecutionError,ec as ChainDisconnectedError,Rr as ChainDoesNotSupportContract,qr as ChainMismatchError,Fr as ChainNotFoundError,Ur as CircularReferenceError,kr as ClientChainNotConfiguredError,Br as ContractFunctionExecutionError,Nr as ContractFunctionRevertedError,Lr as ContractFunctionZeroDataError,Mr as CounterfactualDeploymentFailedError,$o as DecodeLogDataMismatch,Ho as DecodeLogTopicsMismatch,ac as DuplicateIdError,mr as EIP1193ProviderRpcError,Dr as Eip1559FeesNotSupportedError,zr as EnsAvatarInvalidNftUriError,Gr as EnsAvatarUnsupportedNamespaceError,$r as EnsAvatarUriResolutionError,Ne as EnsInvalidChainIdError,Hr as EstimateGasExecutionError,Fe as ExecutionRevertedError,Or as FeeCapTooHighError,jr as FeeCapTooLowError,Wr as FeeConflictError,Oo as FilterTypeNotSupportedError,nc as HttpRequestError,Vr as InsufficientFundsError,jo as IntegerOutOfRangeError,rc as InternalRpcError,Jr as IntrinsicGasTooHighError,Kr as IntrinsicGasTooLowError,Wo as InvalidAbiDecodingTypeError,Vo as InvalidAbiEncodingTypeError,Yr as InvalidAbiItemError,Qt as InvalidAbiParameterError,Zr as InvalidAbiParametersError,Qr as InvalidAbiTypeParameterError,je as InvalidAddressError,Jo as InvalidArrayError,Ko as InvalidBytesBooleanError,Xr as InvalidChainIdError,Na as InvalidDecimalNumberError,Yo as InvalidDefinitionTypeError,ji as InvalidDomainError,ts as InvalidFunctionModifierError,Zo as InvalidHexBooleanError,Ge as InvalidHexValueError,sc as InvalidInputRpcError,Ee as InvalidLegacyVError,es as InvalidModifierError,as as InvalidParameterError,oc as InvalidParamsRpcError,ns as InvalidParenthesisError,Wi as InvalidPrimaryTypeError,ic as InvalidRequestRpcError,rs as InvalidSerializableTransactionError,$ as InvalidSerializedTransactionError,he as InvalidSerializedTransactionTypeError,ss as InvalidSignatureError,os as InvalidStorageKeySizeError,is as InvalidStructSignatureError,Vi as InvalidStructTypeError,cc as JsonRpcVersionUnsupportedError,uc as LimitExceededRpcError,cs as MaxFeePerGasTooLowError,dc as MethodNotFoundRpcError,lc as MethodNotSupportedRpcError,us as NonceMaxValueError,ds as NonceTooHighError,ls as NonceTooLowError,mc as ParseRpcError,fc as ProviderDisconnectedError,hc as ProviderRpcError,ms as RawContractError,pc as ResourceNotFoundRpcError,yc as ResourceUnavailableRpcError,gc as RpcError,sa as RpcRequestError,Qo as SizeExceedsPaddingSizeError,Xo as SizeOverflowError,ti as SliceOffsetOutOfBoundsError,Z as SocketClosedError,fs as SolidityProtectedKeywordError,hs as StateAssignmentConflictError,bc as SwitchChainError,aa as TimeoutError,ps as TipAboveFeeCapError,ys as TransactionExecutionError,gs as TransactionNotFoundError,bs as TransactionReceiptNotFoundError,na as TransactionRejectedRpcError,ws as TransactionTypeNotSupportedError,wc as UnauthorizedProviderError,xc as UnknownBundleIdError,xs as UnknownNodeError,Ec as UnknownRpcError,Es as UnknownSignatureError,Is as UnknownTypeError,Ic as UnsupportedChainIdError,Tc as UnsupportedNonOptionalCapabilityError,ei as UnsupportedPackedAbiType,Cc as UnsupportedProviderMethodError,ke as UrlRequiredError,ra as UserRejectedRequestError,Ts as WaitForCallsStatusTimeoutError,Cs as WaitForTransactionReceiptTimeoutError,It as WebSocketRequestError,qt as assertCurrentChain,Rt as assertRequest,pe as assertTransactionEIP1559,ye as assertTransactionEIP2930,xe as assertTransactionLegacy,vs as blobsToCommitments,Ss as blobsToProofs,ai as boolToBytes,ni as boolToHex,ri as bytesToBigInt,si as bytesToBool,G as bytesToHex,oi as bytesToNumber,Sc as bytesToRlp,ii as bytesToString,bd as ccipFetch,wd as ccipRequest,Ve as checksumAddress,Be as commitmentToVersionedHash,As as commitmentsToVersionedHashes,Er as compactSignatureToHex,br as compactSignatureToSignature,ze as concat,ci as concatBytes,ui as concatHex,At as createClient,Ps as createNonceManager,_s as createPublicClient,ir as createTestClient,lt as createTransport,cr as createWalletClient,ur as custom,Mt as decodeAbiParameters,fr as decodeDeployData,di as decodeErrorResult,li as decodeEventLog,Rs as decodeFunctionData,qs as decodeFunctionResult,mi as defineBlock,fi as defineChain,Bn as defineKzg,hi as defineTransaction,Cd as defineTransactionReceipt,pi as defineTransactionRequest,Fs as deploylessCallViaBytecodeBytecode,Us as deploylessCallViaFactoryBytecode,Ji as domainSeparator,yi as encodeAbiParameters,Ce as encodeDeployData,ks as encodeErrorResult,gi as encodeEventTopics,Xt as encodeFunctionData,Bs as encodeFunctionResult,Ns as encodePacked,Ls as erc1155Abi,Ms as erc20Abi,Ds as erc20Abi_bytes32,zs as erc4626Abi,Gs as erc6492SignatureValidatorAbi,$s as erc6492SignatureValidatorByteCode,Hs as erc721Abi,Os as ethAddress,Ie as etherUnits,Zn as extractChain,dr as fallback,bi as formatBlock,js as formatEther,Ws as formatGwei,vd as formatLog,wi as formatTransaction,Sd as formatTransactionReceipt,ht as formatTransactionRequest,Vs as formatUnits,hr as fromBlobs,xi as fromBytes,Ei as fromHex,Dt as fromRlp,Ii as getAbiItem,k as getAddress,Js as getChainContractAddress,Kn as getContract,Yn as getContractAddress,te as getContractError,da as getCreate2Address,ua as getCreateAddress,Ti as getEventSelector,Ci as getEventSignature,vi as getFunctionSelector,Si as getFunctionSignature,Pa as getSerializedTransactionType,Ks as getTransactionType,Xe as getTypesForEIP712Domain,Te as gweiUnits,Ki as hashDomain,me as hashMessage,Yi as hashStruct,Qe as hashTypedData,A as hexToBigInt,Ai as hexToBool,H as hexToBytes,wr as hexToCompactSignature,F as hexToNumber,Ac as hexToRlp,Ys as hexToSignature,Pi as hexToString,Zs as http,Oe as isAddress,ft as isAddressEqual,Tt as isBytes,Ca as isErc6492Signature,va as isErc8010Signature,ma as isHash,E as isHex,Y as keccak256,Qs as labelhash,Pc as maxInt104,_c as maxInt112,Rc as maxInt120,qc as maxInt128,Fc as maxInt136,Uc as maxInt144,kc as maxInt152,Bc as maxInt16,Nc as maxInt160,Lc as maxInt168,Mc as maxInt176,Dc as maxInt184,zc as maxInt192,Gc as maxInt200,$c as maxInt208,Hc as maxInt216,Oc as maxInt224,jc as maxInt232,Wc as maxInt24,Vc as maxInt240,Jc as maxInt248,Kc as maxInt256,Yc as maxInt32,Zc as maxInt40,Qc as maxInt48,Xc as maxInt56,tu as maxInt64,eu as maxInt72,au as maxInt8,nu as maxInt80,ru as maxInt88,su as maxInt96,ou as maxUint104,iu as maxUint112,cu as maxUint120,uu as maxUint128,du as maxUint136,lu as maxUint144,mu as maxUint152,fu as maxUint16,hu as maxUint160,pu as maxUint168,yu as maxUint176,gu as maxUint184,bu as maxUint192,wu as maxUint200,xu as maxUint208,Eu as maxUint216,Iu as maxUint224,Tu as maxUint232,Cu as maxUint24,vu as maxUint240,Su as maxUint248,Au as maxUint256,Pu as maxUint32,_u as maxUint40,Ru as maxUint48,qu as maxUint56,Fu as maxUint64,Uu as maxUint72,ku as maxUint8,Bu as maxUint80,Nu as maxUint88,Lu as maxUint96,Mu as minInt104,Du as minInt112,zu as minInt120,Gu as minInt128,$u as minInt136,Hu as minInt144,Ou as minInt152,ju as minInt16,Wu as minInt160,Vu as minInt168,Ju as minInt176,Ku as minInt184,Yu as minInt192,Zu as minInt200,Qu as minInt208,Xu as minInt216,td as minInt224,ed as minInt232,ad as minInt24,nd as minInt240,rd as minInt248,sd as minInt256,od as minInt32,id as minInt40,cd as minInt48,ud as minInt56,dd as minInt64,ld as minInt72,md as minInt8,fd as minInt80,hd as minInt88,pd as minInt96,Xs as multicall3Abi,to as namehash,eo as nonceManager,_i as numberToBytes,R as numberToHex,xd as offchainLookup,Ed as offchainLookupAbiItem,Id as offchainLookupSignature,Me as pad,Ri as padBytes,xt as padHex,ao as parseAbi,no as parseAbiItem,Jn as parseAbiParameter,ro as parseAbiParameters,wr as parseCompactSignature,Xn as parseErc6492Signature,tr as parseErc8010Signature,sr as parseEther,qi as parseEventLogs,or as parseGwei,so as parseSignature,_a as parseTransaction,Wt as parseUnits,oo as prepareEncodeFunctionData,io as presignMessagePrefix,co as publicActions,Q as recoverAddress,Sa as recoverMessageAddress,uo as recoverPublicKey,xr as recoverTransactionAddress,Aa as recoverTypedDataAddress,Qn as ripemd160,lo as rpcSchema,Fi as rpcTransactionType,mo as serializeAccessList,Er as serializeCompactSignature,fo as serializeErc6492Signature,er as serializeErc8010Signature,ho as serializeSignature,Le as serializeTransaction,ea as serializeTypedData,Ui as setErrorConfig,gr as setupKzg,yd as sha256,Fn as shouldThrow,pr as sidecarsToVersionedHashes,Ir as signatureToCompactSignature,po as signatureToHex,$e as size,De as slice,ki as sliceBytes,Lt as sliceHex,Bi as stringToBytes,Ke as stringToHex,Ni as stringify,hn as testActions,ge as toBlobSidecars,yo as toBlobs,B as toBytes,yr as toCoinType,Li as toEventHash,Mi as toEventSelector,Di as toEventSignature,zi as toFunctionHash,Gi as toFunctionSelector,$i as toFunctionSignature,Nt as toHex,go as toPrefixedMessage,ia as toRlp,Hi as transactionType,We as trim,bo as universalSignatureValidatorAbi,wo as universalSignatureValidatorByteCode,ta as validateTypedData,ar as verifyHash,nr as verifyMessage,rr as verifyTypedData,qn as walletActions,lr as webSocket,xo as weiUnits,Eo as withCache,Io as withRetry,Ze as withTimeout,To as zeroAddress,Co as zeroHash};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as t,a as d,i as p,b as n}from"./lit-element-B3y9oplH.js";import{n as f}from"./class-map-CxwNmq0D.js";import{c as w,t as k}from"./index-
|
|
1
|
+
import{w as t,a as d,i as p,b as n}from"./lit-element-B3y9oplH.js";import{n as f}from"./class-map-CxwNmq0D.js";import{c as w,t as k}from"./index-BQwZ_U1w.js";import{r as v}from"./index-B4OkjZ5Z.js";const g=t`<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
2
|
<rect width="64" height="64" fill="#F7931A"/>
|
|
3
3
|
<g clip-path="url(#clip0_1045_17)">
|
|
4
4
|
<path d="M63.0394 39.7409C58.7654 56.8839 41.4024 67.3169 24.2574 63.0419C7.11937 58.7679 -3.31363 41.4039 0.962367 24.2619C5.23437 7.11686 22.5974 -3.31714 39.7374 0.956863C56.8814 5.23086 67.3134 22.5969 63.0394 39.7409Z" fill="#F7931A"/>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as h,b as v}from"./lit-element-B3y9oplH.js";import{n as d}from"./class-map-CxwNmq0D.js";import"./index-
|
|
1
|
+
import{i as h,b as v}from"./lit-element-B3y9oplH.js";import{n as d}from"./class-map-CxwNmq0D.js";import"./index-Do7lLz-O.js";import{d as m,r as f}from"./index-B4OkjZ5Z.js";import{c as u,U as p}from"./index-BQwZ_U1w.js";const g=m`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
width: var(--local-width);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
`)),
|
|
1
|
+
import{aX as _,aY as g,aZ as k,D as M,E as f,a_ as F,a$ as j,b0 as I,b1 as R,k as V,T as O}from"./index-BBuZMaWr.js";import{b2 as $e,b3 as we,K as Ee,b4 as Te,b5 as Pe,J as _e,L as ke,b6 as Fe,b7 as je,J as Ie}from"./index-BBuZMaWr.js";import{u as Ve}from"./useTheme-Dpdkvivv.js";import{u as L}from"./useTheme-6tr3eE7K.js";import{j as z}from"./react-C51i12iP.js";import{T as C}from"./CssVarsProvider-DQXUaIP8.js";import{C as ze,e as Ce,g as Ae,a as He,s as Be,u as Ue}from"./CssVarsProvider-DQXUaIP8.js";import{g as Ge}from"./getOverlayAlpha-B_CoLTSj.js";import"./dcl-schemas-BICTSpB5.js";import"./sentry-DKBoGDXH.js";import"./ethers-BeFqf2KO.js";import"./intl-CBcMB1D2.js";function A(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:_(t.components[n].defaultProps,r)}function H({props:e,name:t,defaultTheme:n,themeId:r}){let s=L(n);return s=s[r]||s,A({theme:s,name:t,props:e})}function w(e,t=0,n=1){return k(e,t,n)}function B(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,s)=>s<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function U(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function d(e){if(e.type)return e;if(e.charAt(0)==="#")return d(B(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(g(9,e));let r=e.substring(t+1,e.length-1),s;if(n==="color"){if(r=r.split(" "),s=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(s)===-1)throw new Error(g(10,s))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:s}}function S(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((s,o)=>o<3?parseInt(s,10):s):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function pe(e){if(e.indexOf("#")===0)return e;const{values:t}=d(e);return`#${t.map((n,r)=>U(r===3?Math.round(255*n):n)).join("")}`}function D(e){e=d(e);const{values:t}=e,n=t[0],r=t[1]/100,s=t[2]/100,o=r*Math.min(s,1-s),p=(h,m=(h+n/30)%12)=>s-o*Math.max(Math.min(m-3,9-m,1),-1);let l="rgb";const i=[Math.round(p(0)*255),Math.round(p(8)*255),Math.round(p(4)*255)];return e.type==="hsla"&&(l+="a",i.push(t[3])),S({type:l,values:i})}function $(e){e=d(e);let t=e.type==="hsl"||e.type==="hsla"?d(D(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function ue(e,t){const n=$(e),r=$(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function me(e,t){return e=d(e),t=w(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,S(e)}function G(e,t){if(e=d(e),t=w(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return S(e)}function J(e,t){if(e=d(e),t=w(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return S(e)}function le(e,t=.15){return $(e)>.5?G(e,t):J(e,t)}const W=["defaultProps","mixins","overrides","palette","props","styleOverrides"],K=["type","mode"];function he(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:s={},props:o={},styleOverrides:p={}}=e,l=M(e,W),i=f({},l,{components:{}});Object.keys(t).forEach(a=>{const u=i.components[a]||{};u.defaultProps=t[a],i.components[a]=u}),Object.keys(o).forEach(a=>{const u=i.components[a]||{};u.defaultProps=o[a],i.components[a]=u}),Object.keys(p).forEach(a=>{const u=i.components[a]||{};u.styleOverrides=p[a],i.components[a]=u}),Object.keys(r).forEach(a=>{const u=i.components[a]||{};u.styleOverrides=r[a],i.components[a]=u}),i.spacing=F(e.spacing);const h=j(e.breakpoints||{}),m=i.spacing;i.mixins=f({gutters:(a={})=>f({paddingLeft:m(2),paddingRight:m(2)},a,{[h.up("sm")]:f({paddingLeft:m(3),paddingRight:m(3)},a[h.up("sm")])})},n);const{type:y,mode:x}=s,v=M(s,K),b=x||y||"light";return i.palette=f({text:{hint:b==="dark"?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:b,type:b},v),i}function fe(e,...t){return I(R({unstable_strictMode:!0},e),...t)}let E=!1;function de(e){return E||(console.warn(["MUI: createStyles from @mui/material/styles is deprecated.","Please use @mui/styles/createStyles"].join(`
|
|
2
|
+
`)),E=!0),e}function T(e){return String(parseFloat(e)).length===String(e).length}function N(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function c(e){return parseFloat(e)}function X(e){return(t,n)=>{const r=N(t);if(r===n)return t;let s=c(t);r!=="px"&&(r==="em"||r==="rem")&&(s=c(t)*c(e));let o=s;if(n!=="px")if(n==="em")o=s/c(e);else if(n==="rem")o=s/c(e);else return t;return parseFloat(o.toFixed(5))+n}}function Y({size:e,grid:t}){const n=e-e%t,r=n+t;return e-n<r-e?n:r}function Z({lineHeight:e,pixels:t,htmlFontSize:n}){return t/(e*n)}function q({cssProperty:e,min:t,max:n,unit:r="rem",breakpoints:s=[600,900,1200],transform:o=null}){const p={[e]:`${t}${r}`},l=(n-t)/s[s.length-1];return s.forEach(i=>{let h=t+l*i;o!==null&&(h=o(h)),p[`@media (min-width:${i}px)`]={[e]:`${Math.round(h*1e4)/1e4}${r}`}}),p}function ce(e,t={}){const{breakpoints:n=["sm","md","lg"],disableAlign:r=!1,factor:s=2,variants:o=["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]}=t,p=f({},e);p.typography=f({},p.typography);const l=p.typography,i=X(l.htmlFontSize),h=n.map(m=>p.breakpoints.values[m]);return o.forEach(m=>{const y=l[m];if(!y)return;const x=parseFloat(i(y.fontSize,"rem"));if(x<=1)return;const v=x,b=1+(v-1)/s;let{lineHeight:a}=y;if(!T(a)&&!r)throw new Error(g(6));T(a)||(a=parseFloat(i(a,"rem"))/parseFloat(x));let u=null;r||(u=P=>Y({size:P,grid:Z({pixels:4,lineHeight:a,htmlFontSize:l.htmlFontSize})})),l[m]=f({},y,q({cssProperty:"fontSize",min:b,max:v,unit:"rem",breakpoints:h,transform:u}))}),p}function ge({props:e,name:t}){return H({props:e,name:t,defaultTheme:V,themeId:O})}const Q=["theme"];function ye(e){let{theme:t}=e,n=M(e,Q);const r=t[O];return z.jsx(C,f({},n,{themeId:r?O:void 0,theme:r||t}))}function xe(){throw new Error(g(14))}function be(){throw new Error(g(15))}function ve(){throw new Error(g(16))}function Se(){throw new Error(g(20))}export{ze as Experimental_CssVarsProvider,$e as StyledEngineProvider,O as THEME_ID,ye as ThemeProvider,he as adaptV4Theme,me as alpha,we as createMuiTheme,de as createStyles,I as createTheme,Ee as css,G as darken,d as decomposeColor,Te as duration,Pe as easing,le as emphasize,_e as experimentalStyled,Ce as experimental_extendTheme,Se as experimental_sx,ue as getContrastRatio,Ae as getInitColorSchemeScript,$ as getLuminance,Ge as getOverlayAlpha,B as hexToRgb,D as hslToRgb,ke as keyframes,J as lighten,xe as makeStyles,Fe as private_createMixins,je as private_createTypography,He as private_excludeVariablesFromRoot,S as recomposeColor,ce as responsiveFontSizes,pe as rgbToHex,Be as shouldSkipGeneratingVar,Ie as styled,fe as unstable_createMuiStrictModeTheme,N as unstable_getUnit,c as unstable_toUnitless,Ue as useColorScheme,Ve as useTheme,ge as useThemeProps,be as withStyles,ve as withTheme};
|