@dev.sail.money/sailor 1.3.0-237 → 1.3.0-238
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -17
- package/package.json +5 -1
- package/packages/cli/README.md +1 -1
- package/packages/cli/dist/index.cjs +3 -3
- package/packages/sdk/dist/intelligence.d.ts +1 -1
- package/packages/sdk/dist/intelligence.js +1 -1
- package/packages/ui/dist/assets/{add-CBbu2pe_.js → add-DoHGZfJI.js} +1 -1
- package/packages/ui/dist/assets/{all-wallets-C1oy4NUu.js → all-wallets-CUKVFyT3.js} +1 -1
- package/packages/ui/dist/assets/{app-store-DKqyf0Zv.js → app-store-DyQ4PZOs.js} +1 -1
- package/packages/ui/dist/assets/{apple-DyoIbCFy.js → apple-Dc-GOiDW.js} +1 -1
- package/packages/ui/dist/assets/{arrow-bottom-pUWeEqYu.js → arrow-bottom-C-dI8Oh_.js} +1 -1
- package/packages/ui/dist/assets/{arrow-bottom-circle-CMS-OqZQ.js → arrow-bottom-circle-BH2LebvP.js} +1 -1
- package/packages/ui/dist/assets/{arrow-left-B81HMJNL.js → arrow-left-CUIn5NsD.js} +1 -1
- package/packages/ui/dist/assets/{arrow-right-Z5czoKlC.js → arrow-right-B-X57DDF.js} +1 -1
- package/packages/ui/dist/assets/{arrow-top-C6ym1oll.js → arrow-top-BNOmzVbg.js} +1 -1
- package/packages/ui/dist/assets/{bank-B41nlslf.js → bank-Dqcy3Map.js} +1 -1
- package/packages/ui/dist/assets/{basic-CWqOb7CV.js → basic-CN95kOlB.js} +1 -1
- package/packages/ui/dist/assets/{browser-DDKdqoZ9.js → browser-v-WzD6Au.js} +1 -1
- package/packages/ui/dist/assets/{card-BgOmTajq.js → card-DJmQXuOi.js} +1 -1
- package/packages/ui/dist/assets/{ccip-CtJUKWRd.js → ccip-8oS512uk.js} +1 -1
- package/packages/ui/dist/assets/{checkmark-CGqQipH4.js → checkmark-6Rvy6Al7.js} +1 -1
- package/packages/ui/dist/assets/{checkmark-bold-Ci5xf90j.js → checkmark-bold-GYXSMFUr.js} +1 -1
- package/packages/ui/dist/assets/{chevron-bottom-D7Xert17.js → chevron-bottom-BF1Fa2NO.js} +1 -1
- package/packages/ui/dist/assets/{chevron-left-BGbUebR2.js → chevron-left-kj9KjPLp.js} +1 -1
- package/packages/ui/dist/assets/{chevron-right-xVsESnHU.js → chevron-right-CHH0lg7_.js} +1 -1
- package/packages/ui/dist/assets/{chevron-top-DEA9cR6v.js → chevron-top-DjHmnG32.js} +1 -1
- package/packages/ui/dist/assets/{chrome-store-BsyI-4PI.js → chrome-store-KzNe4H9H.js} +1 -1
- package/packages/ui/dist/assets/{clock-Dct9oQ3M.js → clock-xHvMNQNx.js} +1 -1
- package/packages/ui/dist/assets/{close-BvSCnI2y.js → close-nKtgX0WM.js} +1 -1
- package/packages/ui/dist/assets/{coinPlaceholder-p7RiWkon.js → coinPlaceholder-gnwD3g4G.js} +1 -1
- package/packages/ui/dist/assets/{compass-BUeeZqX4.js → compass-wnLBxh3w.js} +1 -1
- package/packages/ui/dist/assets/{copy-C5jXbxLq.js → copy-CmLisiOG.js} +1 -1
- package/packages/ui/dist/assets/{core-CiAm42Mq.js → core-BLOM5s8O.js} +3 -3
- package/packages/ui/dist/assets/{cursor-C0T7JWFO.js → cursor-DgwjrlpZ.js} +1 -1
- package/packages/ui/dist/assets/{cursor-transparent-BZp3-JmA.js → cursor-transparent-CjVDknUI.js} +1 -1
- package/packages/ui/dist/assets/{desktop-BIui_Lzb.js → desktop-BSGjR5fT.js} +1 -1
- package/packages/ui/dist/assets/{disconnect-B3Bxdchp.js → disconnect-DkOQ_j9U.js} +1 -1
- package/packages/ui/dist/assets/{discord-VWI0yDyx.js → discord-DtvZ281_.js} +1 -1
- package/packages/ui/dist/assets/{etherscan-BpBvUT9i.js → etherscan-BB3baLbR.js} +1 -1
- package/packages/ui/dist/assets/{exclamation-triangle-o1TJHIUw.js → exclamation-triangle-BrR8a-pR.js} +1 -1
- package/packages/ui/dist/assets/{extension-4RaLvbh5.js → extension-BiGAMg97.js} +1 -1
- package/packages/ui/dist/assets/{external-link-BHIwjDgj.js → external-link-qUc7QuKA.js} +1 -1
- package/packages/ui/dist/assets/{facebook-Bes5g-wN.js → facebook-BuXatc22.js} +1 -1
- package/packages/ui/dist/assets/{farcaster-CiJ-352m.js → farcaster-USwPlLU8.js} +1 -1
- package/packages/ui/dist/assets/{filters-DMOteumb.js → filters-BWx3pZxN.js} +1 -1
- package/packages/ui/dist/assets/{github-D2nDec9X.js → github-CUSWD7ff.js} +1 -1
- package/packages/ui/dist/assets/{google-lZZlQZPQ.js → google-CxJSLEaz.js} +1 -1
- package/packages/ui/dist/assets/{help-circle-D4cSSziR.js → help-circle-_8isjSO0.js} +1 -1
- package/packages/ui/dist/assets/{id-BmhXZq5P.js → id-DJCzMfx_.js} +1 -1
- package/packages/ui/dist/assets/{image-Dz4FPeET.js → image-CmG69MZj.js} +1 -1
- package/packages/ui/dist/assets/{index-DeoQO45V.js → index-3YqzzyrK.js} +3 -3
- package/packages/ui/dist/assets/{index-BeUp3nOq.js → index-BIqjq0q5.js} +1 -1
- package/packages/ui/dist/assets/{index-LiKeH8Cd.js → index-D8zwDy7d.js} +4 -4
- package/packages/ui/dist/assets/{index-Et5S3ZaW.js → index-DHVwxjrm.js} +1 -1
- package/packages/ui/dist/assets/{index-CvRylmZJ.js → index-DsxB7ORb.js} +1 -1
- package/packages/ui/dist/assets/{index.es-dfpEui-9.js → index.es-Hqwz_Ukd.js} +4 -4
- package/packages/ui/dist/assets/{info-77RSvIMg.js → info-XYctdUoY.js} +1 -1
- package/packages/ui/dist/assets/{info-circle-CWsII-NN.js → info-circle-D_fYZUhv.js} +1 -1
- package/packages/ui/dist/assets/{lightbulb-BZXzm7XE.js → lightbulb-BqKkDThe.js} +1 -1
- package/packages/ui/dist/assets/{mail-DMG1YqB0.js → mail-CM4laVWT.js} +1 -1
- package/packages/ui/dist/assets/{metamask-sdk-K1x_iqcc.js → metamask-sdk-8TvB8vxr.js} +1 -1
- package/packages/ui/dist/assets/{mobile-DuJfOBSk.js → mobile-C2cl_MIN.js} +1 -1
- package/packages/ui/dist/assets/{more-Cs9ySK2F.js → more-DOik7ytj.js} +1 -1
- package/packages/ui/dist/assets/{network-placeholder-CMDPmB1E.js → network-placeholder-CC9Cg0q_.js} +1 -1
- package/packages/ui/dist/assets/{nftPlaceholder-Cj0f9y2u.js → nftPlaceholder-Oe_bTYkM.js} +1 -1
- package/packages/ui/dist/assets/{off-9zSSsm-e.js → off-ao0Rdo1E.js} +1 -1
- package/packages/ui/dist/assets/{play-store-CPwIb8Gj.js → play-store-BcQlROdR.js} +1 -1
- package/packages/ui/dist/assets/{plus-BOHQri8o.js → plus-DSOprccT.js} +1 -1
- package/packages/ui/dist/assets/{qr-code-DqhbK276.js → qr-code-B64-C9CJ.js} +1 -1
- package/packages/ui/dist/assets/{recycle-horizontal-BpGM56Qz.js → recycle-horizontal-BJg7qNO9.js} +1 -1
- package/packages/ui/dist/assets/{refresh-BPzZlhTP.js → refresh-Dexg1q9p.js} +1 -1
- package/packages/ui/dist/assets/{reown-logo-OCkI0xzo.js → reown-logo-D8KP4d24.js} +1 -1
- package/packages/ui/dist/assets/{search-B1JEJvwq.js → search-CBfhIhB0.js} +1 -1
- package/packages/ui/dist/assets/{secp256k1-BqUeV9Cb.js → secp256k1-BOKPNuRR.js} +1 -1
- package/packages/ui/dist/assets/{send-JNsDlNoq.js → send-DpJV-P0b.js} +1 -1
- package/packages/ui/dist/assets/{swapHorizontal-C3Z1FImK.js → swapHorizontal-DC-Elc2j.js} +1 -1
- package/packages/ui/dist/assets/{swapHorizontalBold-Cmdy2iAn.js → swapHorizontalBold-Unn8xI55.js} +1 -1
- package/packages/ui/dist/assets/{swapHorizontalMedium-DFX57Nn9.js → swapHorizontalMedium-B58RR8wP.js} +1 -1
- package/packages/ui/dist/assets/{swapHorizontalRoundedBold-baB389c8.js → swapHorizontalRoundedBold-UTrbE6zM.js} +1 -1
- package/packages/ui/dist/assets/{swapVertical-DmAYGfK1.js → swapVertical-CLBtBVG1.js} +1 -1
- package/packages/ui/dist/assets/{telegram-BHbYE-nI.js → telegram-C_tvCVU8.js} +1 -1
- package/packages/ui/dist/assets/{three-dots-BwRWl6qJ.js → three-dots-BIn_IFa0.js} +1 -1
- package/packages/ui/dist/assets/{twitch-Drx0q6B6.js → twitch-BqiEXRul.js} +1 -1
- package/packages/ui/dist/assets/{twitterIcon-AuJ2KQ6p.js → twitterIcon-CquA5TCG.js} +1 -1
- package/packages/ui/dist/assets/{verify-Dkrd3q7o.js → verify-DOUX5_SE.js} +1 -1
- package/packages/ui/dist/assets/{verify-filled-B9e3-nz-.js → verify-filled-nMk53S_a.js} +1 -1
- package/packages/ui/dist/assets/{w3m-modal-DtkEjQA7.js → w3m-modal-B-JVYtbP.js} +1 -1
- package/packages/ui/dist/assets/{wallet-CqYzSiBd.js → wallet-BjbzMOXA.js} +1 -1
- package/packages/ui/dist/assets/{wallet-placeholder-B05kTN_K.js → wallet-placeholder-DPidGoJt.js} +1 -1
- package/packages/ui/dist/assets/{walletconnect-BwoPXLaS.js → walletconnect-Dw14KwDj.js} +1 -1
- package/packages/ui/dist/assets/{warning-circle-DK9Ai8rT.js → warning-circle-Ewxxj9bx.js} +1 -1
- package/packages/ui/dist/assets/{x-BNdh5DVW.js → x-B5Li_yME.js} +1 -1
- package/packages/ui/dist/index.html +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{M as Ev,P as jv}from"./index-
|
|
1
|
+
import{M as Ev,P as jv}from"./index-D8zwDy7d.js";import{r as wv}from"./index-BV8s6ez1.js";import{r as Pv}from"./events-DQ172AOg.js";function Av(e,r){for(var n=0;n<r.length;n++){const t=r[n];if(typeof t!="string"&&!Array.isArray(t)){for(const o in t)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(t,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>t[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Tv(){if(typeof WebSocket<"u")return WebSocket;if(typeof global.WebSocket<"u")return global.WebSocket;if(typeof window.WebSocket<"u")return window.WebSocket;if(typeof self.WebSocket<"u")return self.WebSocket;throw new Error("`WebSocket` is not supported in this environment")}const Sv=Tv(),Iv=Object.freeze(Object.defineProperty({__proto__:null,WebSocket:Sv},Symbol.toStringTag,{value:"Module"}));var Td={},zn={},Ft={},rn={},Or={},Un={},Ln={},fl;function Xp(){if(fl)return Ln;fl=1,Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.getSDKVersion=void 0;const e=()=>"9.1.0";return Ln.getSDKVersion=e,Ln}var Dn={},ll;function Rv(){if(ll)return Dn;ll=1,Object.defineProperty(Dn,"__esModule",{value:!0}),Dn.generateRequestId=void 0;const e=t=>t.toString(16).padStart(2,"0"),r=t=>{const o=new Uint8Array(t/2);return window.crypto.getRandomValues(o),Array.from(o,e).join("")},n=()=>typeof window<"u"?r(10):new Date().getTime().toString(36);return Dn.generateRequestId=n,Dn}var bl;function Qp(){if(bl)return Un;bl=1,Object.defineProperty(Un,"__esModule",{value:!0}),Un.MessageFormatter=void 0;const e=Xp(),r=Rv();class n{}return Un.MessageFormatter=n,n.makeRequest=(t,o)=>({id:(0,r.generateRequestId)(),method:t,params:o,env:{sdkVersion:(0,e.getSDKVersion)()}}),n.makeResponse=(t,o,s)=>({id:t,success:!0,version:s,data:o}),n.makeErrorResponse=(t,o,s)=>({id:t,success:!1,error:o,version:s}),Un}var Cr={},ml;function Vr(){if(ml)return Cr;ml=1,Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.RestrictedMethods=Cr.Methods=void 0;var e;(function(n){n.sendTransactions="sendTransactions",n.rpcCall="rpcCall",n.getChainInfo="getChainInfo",n.getSafeInfo="getSafeInfo",n.getTxBySafeTxHash="getTxBySafeTxHash",n.getSafeBalances="getSafeBalances",n.signMessage="signMessage",n.signTypedMessage="signTypedMessage",n.getEnvironmentInfo="getEnvironmentInfo",n.getOffChainSignature="getOffChainSignature",n.requestAddressBook="requestAddressBook",n.wallet_getPermissions="wallet_getPermissions",n.wallet_requestPermissions="wallet_requestPermissions"})(e||(Cr.Methods=e={}));var r;return(function(n){n.requestAddressBook="requestAddressBook"})(r||(Cr.RestrictedMethods=r={})),Cr}var hl;function Bv(){return hl||(hl=1,(function(e){var r=Or&&Or.__createBinding||(Object.create?(function(s,i,a,c){c===void 0&&(c=a);var u=Object.getOwnPropertyDescriptor(i,a);(!u||("get"in u?!i.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(s,c,u)}):(function(s,i,a,c){c===void 0&&(c=a),s[c]=i[a]})),n=Or&&Or.__exportStar||function(s,i){for(var a in s)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&r(i,s,a)};Object.defineProperty(e,"__esModule",{value:!0});const t=Qp();class o{constructor(i=null,a=!1){this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer=typeof window>"u",this.isValidMessage=({origin:c,data:u,source:l})=>{const f=!u,m=!this.isServer&&l===window.parent,y=typeof u.version<"u"&&parseInt(u.version.split(".")[0]),h=typeof y=="number"&&y>=1;let b=!0;return Array.isArray(this.allowedOrigins)&&(b=this.allowedOrigins.find(v=>v.test(c))!==void 0),!f&&m&&h&&b},this.logIncomingMessage=c=>{console.info(`Safe Apps SDK v1: A message was received from origin ${c.origin}. `,c.data)},this.onParentMessage=c=>{this.isValidMessage(c)&&(this.debugMode&&this.logIncomingMessage(c),this.handleIncomingMessage(c.data))},this.handleIncomingMessage=c=>{const{id:u}=c,l=this.callbacks.get(u);l&&(l(c),this.callbacks.delete(u))},this.send=(c,u)=>{const l=t.MessageFormatter.makeRequest(c,u);if(this.isServer)throw new Error("Window doesn't exist");return window.parent.postMessage(l,"*"),new Promise((f,m)=>{this.callbacks.set(l.id,y=>{if(!y.success){m(new Error(y.error));return}f(y)})})},this.allowedOrigins=i,this.debugMode=a,this.isServer||window.addEventListener("message",this.onParentMessage)}}e.default=o,n(Vr(),e)})(Or)),Or}var Gn={},xr={},Vn={},yl;function Ov(){if(yl)return Vn;yl=1,Object.defineProperty(Vn,"__esModule",{value:!0}),Vn.isObjectEIP712TypedData=void 0;const e=r=>typeof r=="object"&&r!=null&&"domain"in r&&"types"in r&&"message"in r;return Vn.isObjectEIP712TypedData=e,Vn}var Sd={},pl;function Cv(){return pl||(pl=1,Object.defineProperty(Sd,"__esModule",{value:!0})),Sd}var Id={},gl;function xv(){return gl||(gl=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TransferDirection=e.TransactionStatus=e.TokenType=e.Operation=void 0;var r=wv();Object.defineProperty(e,"Operation",{enumerable:!0,get:function(){return r.Operation}}),Object.defineProperty(e,"TokenType",{enumerable:!0,get:function(){return r.TokenType}}),Object.defineProperty(e,"TransactionStatus",{enumerable:!0,get:function(){return r.TransactionStatus}}),Object.defineProperty(e,"TransferDirection",{enumerable:!0,get:function(){return r.TransferDirection}})})(Id)),Id}var Rd={},_l;function qv(){return _l||(_l=1,Object.defineProperty(Rd,"__esModule",{value:!0}),Vr()),Rd}var vl;function nf(){return vl||(vl=1,(function(e){var r=xr&&xr.__createBinding||(Object.create?(function(t,o,s,i){i===void 0&&(i=s);var a=Object.getOwnPropertyDescriptor(o,s);(!a||("get"in a?!o.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return o[s]}}),Object.defineProperty(t,i,a)}):(function(t,o,s,i){i===void 0&&(i=s),t[i]=o[s]})),n=xr&&xr.__exportStar||function(t,o){for(var s in t)s!=="default"&&!Object.prototype.hasOwnProperty.call(o,s)&&r(o,t,s)};Object.defineProperty(e,"__esModule",{value:!0}),n(Ov(),e),n(Cv(),e),n(xv(),e),n(qv(),e)})(xr)),xr}var El;function Mv(){if(El)return Gn;El=1,Object.defineProperty(Gn,"__esModule",{value:!0}),Gn.TXs=void 0;const e=Vr(),r=nf();class n{constructor(o){this.communicator=o}async getBySafeTxHash(o){if(!o)throw new Error("Invalid safeTxHash");return(await this.communicator.send(e.Methods.getTxBySafeTxHash,{safeTxHash:o})).data}async signMessage(o){const s={message:o};return(await this.communicator.send(e.Methods.signMessage,s)).data}async signTypedMessage(o){if(!(0,r.isObjectEIP712TypedData)(o))throw new Error("Invalid typed data");return(await this.communicator.send(e.Methods.signTypedMessage,{typedData:o})).data}async send({txs:o,params:s}){if(!o||!o.length)throw new Error("No transactions were passed");const i={txs:o,params:s};return(await this.communicator.send(e.Methods.sendTransactions,i)).data}}return Gn.TXs=n,Gn}var Wn={},Kn={},jl;function of(){return jl||(jl=1,Object.defineProperty(Kn,"__esModule",{value:!0}),Kn.RPC_CALLS=void 0,Kn.RPC_CALLS={eth_call:"eth_call",eth_gasPrice:"eth_gasPrice",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt",eth_getTransactionCount:"eth_getTransactionCount",eth_estimateGas:"eth_estimateGas",safe_setSettings:"safe_setSettings"}),Kn}var wl;function kv(){if(wl)return Wn;wl=1,Object.defineProperty(Wn,"__esModule",{value:!0}),Wn.Eth=void 0;const e=of(),r=Vr(),n={defaultBlockParam:(o="latest")=>o,returnFullTxObjectParam:(o=!1)=>o,blockNumberToHex:o=>Number.isInteger(o)?`0x${o.toString(16)}`:o};class t{constructor(s){this.communicator=s,this.call=this.buildRequest({call:e.RPC_CALLS.eth_call,formatters:[null,n.defaultBlockParam]}),this.getBalance=this.buildRequest({call:e.RPC_CALLS.eth_getBalance,formatters:[null,n.defaultBlockParam]}),this.getCode=this.buildRequest({call:e.RPC_CALLS.eth_getCode,formatters:[null,n.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:e.RPC_CALLS.eth_getStorageAt,formatters:[null,n.blockNumberToHex,n.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:e.RPC_CALLS.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:e.RPC_CALLS.eth_getBlockByHash,formatters:[null,n.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:e.RPC_CALLS.eth_getBlockByNumber,formatters:[n.blockNumberToHex,n.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:e.RPC_CALLS.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:e.RPC_CALLS.eth_getTransactionReceipt}),this.getTransactionCount=this.buildRequest({call:e.RPC_CALLS.eth_getTransactionCount,formatters:[null,n.defaultBlockParam]}),this.getGasPrice=this.buildRequest({call:e.RPC_CALLS.eth_gasPrice}),this.getEstimateGas=i=>this.buildRequest({call:e.RPC_CALLS.eth_estimateGas})([i]),this.setSafeSettings=this.buildRequest({call:e.RPC_CALLS.safe_setSettings})}buildRequest(s){const{call:i,formatters:a}=s;return async c=>{a&&Array.isArray(c)&&a.forEach((f,m)=>{f&&(c[m]=f(c[m]))});const u={call:i,params:c||[]};return(await this.communicator.send(r.Methods.rpcCall,u)).data}}}return Wn.Eth=t,Wn}var Nt={},Bd={},Od={},Zn={},Jn={},Pl;function Hv(){return Pl||(Pl=1,Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.version=void 0,Jn.version="1.2.3"),Jn}var Al;function An(){if(Al)return Zn;Al=1,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.BaseError=void 0;const e=Hv();class r extends Error{constructor(t,o={}){var c;const s=o.cause instanceof r?o.cause.details:(c=o.cause)!=null&&c.message?o.cause.message:o.details,i=o.cause instanceof r&&o.cause.docsPath||o.docsPath,a=[t||"An error occurred.","",...o.metaMessages?[...o.metaMessages,""]:[],...i?[`Docs: https://abitype.dev${i}`]:[],...s?[`Details: ${s}`]:[],`Version: abitype@${e.version}`].join(`
|
|
2
2
|
`);super(a),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),o.cause&&(this.cause=o.cause),this.details=s,this.docsPath=i,this.metaMessages=o.metaMessages,this.shortMessage=t}}return Zn.BaseError=r,Zn}var pi={},Tl;function Fv(){if(Tl)return pi;Tl=1,Object.defineProperty(pi,"__esModule",{value:!0}),pi.narrow=e;function e(r){return r}return pi}var gi={},_i={},vi={},Ei={},Ot={},Sl;function qu(){if(Sl)return Ot;Sl=1,Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.isTupleRegex=Ot.integerRegex=Ot.bytesRegex=void 0,Ot.execTyped=e;function e(r,n){const t=r.exec(n);return t==null?void 0:t.groups}return Ot.bytesRegex=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Ot.integerRegex=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,Ot.isTupleRegex=/^\(.+?\).*?$/,Ot}var Il;function eg(){if(Il)return Ei;Il=1,Object.defineProperty(Ei,"__esModule",{value:!0}),Ei.formatAbiParameter=n;const e=qu(),r=/^tuple(?<array>(\[(\d*)\])*)$/;function n(t){let o=t.type;if(r.test(t.type)&&"components"in t){o="(";const s=t.components.length;for(let a=0;a<s;a++){const c=t.components[a];o+=n(c),a<s-1&&(o+=", ")}const i=(0,e.execTyped)(r,t.type);return o+=`)${(i==null?void 0:i.array)||""}`,n({...t,type:o})}return"indexed"in t&&t.indexed&&(o=`${o} indexed`),t.name?`${o} ${t.name}`:o}return Ei}var Rl;function tg(){if(Rl)return vi;Rl=1,Object.defineProperty(vi,"__esModule",{value:!0}),vi.formatAbiParameters=r;const e=eg();function r(n){let t="";const o=n.length;for(let s=0;s<o;s++){const i=n[s];t+=(0,e.formatAbiParameter)(i),s!==o-1&&(t+=", ")}return t}return vi}var Bl;function rg(){if(Bl)return _i;Bl=1,Object.defineProperty(_i,"__esModule",{value:!0}),_i.formatAbiItem=r;const e=tg();function r(n){var t;return n.type==="function"?`function ${n.name}(${(0,e.formatAbiParameters)(n.inputs)})${n.stateMutability&&n.stateMutability!=="nonpayable"?` ${n.stateMutability}`:""}${(t=n.outputs)!=null&&t.length?` returns (${(0,e.formatAbiParameters)(n.outputs)})`:""}`:n.type==="event"?`event ${n.name}(${(0,e.formatAbiParameters)(n.inputs)})`:n.type==="error"?`error ${n.name}(${(0,e.formatAbiParameters)(n.inputs)})`:n.type==="constructor"?`constructor(${(0,e.formatAbiParameters)(n.inputs)})${n.stateMutability==="payable"?" payable":""}`:n.type==="fallback"?`fallback() external${n.stateMutability==="payable"?" payable":""}`:"receive() external payable"}return _i}var Ol;function Nv(){if(Ol)return gi;Ol=1,Object.defineProperty(gi,"__esModule",{value:!0}),gi.formatAbi=r;const e=rg();function r(n){const t=[],o=n.length;for(let s=0;s<o;s++){const i=n[s],a=(0,e.formatAbiItem)(i);t.push(a)}return t}return gi}var ji={},Re={},Cl;function Tn(){if(Cl)return Re;Cl=1,Object.defineProperty(Re,"__esModule",{value:!0}),Re.functionModifiers=Re.eventModifiers=Re.modifiers=void 0,Re.isErrorSignature=n,Re.execErrorSignature=t,Re.isEventSignature=s,Re.execEventSignature=i,Re.isFunctionSignature=c,Re.execFunctionSignature=u,Re.isStructSignature=f,Re.execStructSignature=m,Re.isConstructorSignature=h,Re.execConstructorSignature=b,Re.isFallbackSignature=_,Re.execFallbackSignature=g,Re.isReceiveSignature=d;const e=qu(),r=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function n(w){return r.test(w)}function t(w){return(0,e.execTyped)(r,w)}const o=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function s(w){return o.test(w)}function i(w){return(0,e.execTyped)(o,w)}const a=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;function c(w){return a.test(w)}function u(w){return(0,e.execTyped)(a,w)}const l=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function f(w){return l.test(w)}function m(w){return(0,e.execTyped)(l,w)}const y=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function h(w){return y.test(w)}function b(w){return(0,e.execTyped)(y,w)}const v=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function _(w){return v.test(w)}function g(w){return(0,e.execTyped)(v,w)}const P=/^receive\(\) external payable$/;function d(w){return P.test(w)}return Re.modifiers=new Set(["memory","indexed","storage","calldata"]),Re.eventModifiers=new Set(["indexed"]),Re.functionModifiers=new Set(["calldata","memory","storage"]),Re}var wi={},$t={},xl;function Mu(){if(xl)return $t;xl=1,Object.defineProperty($t,"__esModule",{value:!0}),$t.UnknownSolidityTypeError=$t.UnknownTypeError=$t.InvalidAbiItemError=void 0;const e=An();class r extends e.BaseError{constructor({signature:s}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(s,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}$t.InvalidAbiItemError=r;class n extends e.BaseError{constructor({type:s}){super("Unknown type.",{metaMessages:[`Type "${s}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}$t.UnknownTypeError=n;class t extends e.BaseError{constructor({type:s}){super("Unknown type.",{metaMessages:[`Type "${s}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}return $t.UnknownSolidityTypeError=t,$t}var He={},ql;function Lo(){if(ql)return He;ql=1,Object.defineProperty(He,"__esModule",{value:!0}),He.InvalidAbiTypeParameterError=He.InvalidFunctionModifierError=He.InvalidModifierError=He.SolidityProtectedKeywordError=He.InvalidParameterError=He.InvalidAbiParametersError=He.InvalidAbiParameterError=void 0;const e=An();class r extends e.BaseError{constructor({param:u}){super("Failed to parse ABI parameter.",{details:`parseAbiParameter(${JSON.stringify(u,null,2)})`,docsPath:"/api/human#parseabiparameter-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParameterError"})}}He.InvalidAbiParameterError=r;class n extends e.BaseError{constructor({params:u}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(u,null,2)})`,docsPath:"/api/human#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}He.InvalidAbiParametersError=n;class t extends e.BaseError{constructor({param:u}){super("Invalid ABI parameter.",{details:u}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}He.InvalidParameterError=t;class o extends e.BaseError{constructor({param:u,name:l}){super("Invalid ABI parameter.",{details:u,metaMessages:[`"${l}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}He.SolidityProtectedKeywordError=o;class s extends e.BaseError{constructor({param:u,type:l,modifier:f}){super("Invalid ABI parameter.",{details:u,metaMessages:[`Modifier "${f}" not allowed${l?` in "${l}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}He.InvalidModifierError=s;class i extends e.BaseError{constructor({param:u,type:l,modifier:f}){super("Invalid ABI parameter.",{details:u,metaMessages:[`Modifier "${f}" not allowed${l?` in "${l}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${f}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}He.InvalidFunctionModifierError=i;class a extends e.BaseError{constructor({abiParameter:u}){super("Invalid ABI parameter.",{details:JSON.stringify(u,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}return He.InvalidAbiTypeParameterError=a,He}var zt={},Ml;function af(){if(Ml)return zt;Ml=1,Object.defineProperty(zt,"__esModule",{value:!0}),zt.InvalidStructSignatureError=zt.UnknownSignatureError=zt.InvalidSignatureError=void 0;const e=An();class r extends e.BaseError{constructor({signature:s,type:i}){super(`Invalid ${i} signature.`,{details:s}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}zt.InvalidSignatureError=r;class n extends e.BaseError{constructor({signature:s}){super("Unknown signature.",{details:s}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}zt.UnknownSignatureError=n;class t extends e.BaseError{constructor({signature:s}){super("Invalid struct signature.",{details:s,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}return zt.InvalidStructSignatureError=t,zt}var Yn={},kl;function ng(){if(kl)return Yn;kl=1,Object.defineProperty(Yn,"__esModule",{value:!0}),Yn.CircularReferenceError=void 0;const e=An();class r extends e.BaseError{constructor({type:t}){super("Circular reference detected.",{metaMessages:[`Struct "${t}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}return Yn.CircularReferenceError=r,Yn}var Qe={},Xn={},Hl;function og(){if(Hl)return Xn;Hl=1,Object.defineProperty(Xn,"__esModule",{value:!0}),Xn.InvalidParenthesisError=void 0;const e=An();class r extends e.BaseError{constructor({current:t,depth:o}){super("Unbalanced parentheses.",{metaMessages:[`"${t.trim()}" has too many ${o>0?"opening":"closing"} parentheses.`],details:`Depth "${o}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}return Xn.InvalidParenthesisError=r,Xn}var nn={},Fl;function $v(){if(Fl)return nn;Fl=1,Object.defineProperty(nn,"__esModule",{value:!0}),nn.parameterCache=void 0,nn.getParameterCacheKey=e;function e(r,n,t){let o="";if(t)for(const s of Object.entries(t)){if(!s)continue;let i="";for(const a of s[1])i+=`[${a.type}${a.name?`:${a.name}`:""}]`;o+=`(${s[0]}{${i}})`}return n?`${n}:${r}${o}`:`${r}${o}`}return nn.parameterCache=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]),nn}var Nl;function Pn(){if(Nl)return Qe;Nl=1,Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.parseSignature=a,Qe.parseFunctionSignature=c,Qe.parseEventSignature=u,Qe.parseErrorSignature=l,Qe.parseConstructorSignature=f,Qe.parseFallbackSignature=m,Qe.parseAbiParameter=v,Qe.splitParameters=_,Qe.isSolidityType=g,Qe.isSolidityKeyword=d,Qe.isValidDataLocation=w;const e=qu(),r=Mu(),n=Lo(),t=af(),o=og(),s=$v(),i=Tn();function a(E,p={}){if((0,i.isFunctionSignature)(E))return c(E,p);if((0,i.isEventSignature)(E))return u(E,p);if((0,i.isErrorSignature)(E))return l(E,p);if((0,i.isConstructorSignature)(E))return f(E,p);if((0,i.isFallbackSignature)(E))return m(E);if((0,i.isReceiveSignature)(E))return{type:"receive",stateMutability:"payable"};throw new t.UnknownSignatureError({signature:E})}function c(E,p={}){const S=(0,i.execFunctionSignature)(E);if(!S)throw new t.InvalidSignatureError({signature:E,type:"function"});const A=_(S.parameters),T=[],C=A.length;for(let R=0;R<C;R++)T.push(v(A[R],{modifiers:i.functionModifiers,structs:p,type:"function"}));const I=[];if(S.returns){const R=_(S.returns),q=R.length;for(let F=0;F<q;F++)I.push(v(R[F],{modifiers:i.functionModifiers,structs:p,type:"function"}))}return{name:S.name,type:"function",stateMutability:S.stateMutability??"nonpayable",inputs:T,outputs:I}}function u(E,p={}){const S=(0,i.execEventSignature)(E);if(!S)throw new t.InvalidSignatureError({signature:E,type:"event"});const A=_(S.parameters),T=[],C=A.length;for(let I=0;I<C;I++)T.push(v(A[I],{modifiers:i.eventModifiers,structs:p,type:"event"}));return{name:S.name,type:"event",inputs:T}}function l(E,p={}){const S=(0,i.execErrorSignature)(E);if(!S)throw new t.InvalidSignatureError({signature:E,type:"error"});const A=_(S.parameters),T=[],C=A.length;for(let I=0;I<C;I++)T.push(v(A[I],{structs:p,type:"error"}));return{name:S.name,type:"error",inputs:T}}function f(E,p={}){const S=(0,i.execConstructorSignature)(E);if(!S)throw new t.InvalidSignatureError({signature:E,type:"constructor"});const A=_(S.parameters),T=[],C=A.length;for(let I=0;I<C;I++)T.push(v(A[I],{structs:p,type:"constructor"}));return{type:"constructor",stateMutability:S.stateMutability??"nonpayable",inputs:T}}function m(E){const p=(0,i.execFallbackSignature)(E);if(!p)throw new t.InvalidSignatureError({signature:E,type:"fallback"});return{type:"fallback",stateMutability:p.stateMutability??"nonpayable"}}const y=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,h=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,b=/^u?int$/;function v(E,p){var j,k;const S=(0,s.getParameterCacheKey)(E,p==null?void 0:p.type,p==null?void 0:p.structs);if(s.parameterCache.has(S))return s.parameterCache.get(S);const A=e.isTupleRegex.test(E),T=(0,e.execTyped)(A?h:y,E);if(!T)throw new n.InvalidParameterError({param:E});if(T.name&&d(T.name))throw new n.SolidityProtectedKeywordError({param:E,name:T.name});const C=T.name?{name:T.name}:{},I=T.modifier==="indexed"?{indexed:!0}:{},R=(p==null?void 0:p.structs)??{};let q,F={};if(A){q="tuple";const B=_(T.type),O=[],x=B.length;for(let M=0;M<x;M++)O.push(v(B[M],{structs:R}));F={components:O}}else if(T.type in R)q="tuple",F={components:R[T.type]};else if(b.test(T.type))q=`${T.type}256`;else if(T.type==="address payable")q="address";else if(q=T.type,(p==null?void 0:p.type)!=="struct"&&!g(q))throw new r.UnknownSolidityTypeError({type:q});if(T.modifier){if(!((k=(j=p==null?void 0:p.modifiers)==null?void 0:j.has)!=null&&k.call(j,T.modifier)))throw new n.InvalidModifierError({param:E,type:p==null?void 0:p.type,modifier:T.modifier});if(i.functionModifiers.has(T.modifier)&&!w(q,!!T.array))throw new n.InvalidFunctionModifierError({param:E,type:p==null?void 0:p.type,modifier:T.modifier})}const H={type:`${q}${T.array??""}`,...C,...I,...F};return s.parameterCache.set(S,H),H}function _(E,p=[],S="",A=0){const T=E.trim().length;for(let C=0;C<T;C++){const I=E[C],R=E.slice(C+1);switch(I){case",":return A===0?_(R,[...p,S.trim()]):_(R,p,`${S}${I}`,A);case"(":return _(R,p,`${S}${I}`,A+1);case")":return _(R,p,`${S}${I}`,A-1);default:return _(R,p,`${S}${I}`,A)}}if(S==="")return p;if(A!==0)throw new o.InvalidParenthesisError({current:S,depth:A});return p.push(S.trim()),p}function g(E){return E==="address"||E==="bool"||E==="function"||E==="string"||e.bytesRegex.test(E)||e.integerRegex.test(E)}const P=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;function d(E){return E==="address"||E==="bool"||E==="function"||E==="string"||E==="tuple"||e.bytesRegex.test(E)||e.integerRegex.test(E)||P.test(E)}function w(E,p){return p||E==="bytes"||E==="string"||E==="tuple"}return Qe}var $l;function ku(){if($l)return wi;$l=1,Object.defineProperty(wi,"__esModule",{value:!0}),wi.parseStructs=a;const e=qu(),r=Mu(),n=Lo(),t=af(),o=ng(),s=Tn(),i=Pn();function a(l){const f={},m=l.length;for(let v=0;v<m;v++){const _=l[v];if(!(0,s.isStructSignature)(_))continue;const g=(0,s.execStructSignature)(_);if(!g)throw new t.InvalidSignatureError({signature:_,type:"struct"});const P=g.properties.split(";"),d=[],w=P.length;for(let E=0;E<w;E++){const S=P[E].trim();if(!S)continue;const A=(0,i.parseAbiParameter)(S,{type:"struct"});d.push(A)}if(!d.length)throw new t.InvalidStructSignatureError({signature:_});f[g.name]=d}const y={},h=Object.entries(f),b=h.length;for(let v=0;v<b;v++){const[_,g]=h[v];y[_]=u(g,f)}return y}const c=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;function u(l=[],f={},m=new Set){const y=[],h=l.length;for(let b=0;b<h;b++){const v=l[b];if(e.isTupleRegex.test(v.type))y.push(v);else{const g=(0,e.execTyped)(c,v.type);if(!(g!=null&&g.type))throw new n.InvalidAbiTypeParameterError({abiParameter:v});const{array:P,type:d}=g;if(d in f){if(m.has(d))throw new o.CircularReferenceError({type:d});y.push({...v,type:`tuple${P??""}`,components:u(f[d],f,new Set([...m,d]))})}else if((0,i.isSolidityType)(d))y.push(v);else throw new r.UnknownTypeError({type:d})}}return y}return wi}var zl;function zv(){if(zl)return ji;zl=1,Object.defineProperty(ji,"__esModule",{value:!0}),ji.parseAbi=t;const e=Tn(),r=ku(),n=Pn();function t(o){const s=(0,r.parseStructs)(o),i=[],a=o.length;for(let c=0;c<a;c++){const u=o[c];(0,e.isStructSignature)(u)||i.push((0,n.parseSignature)(u,s))}return i}return ji}var Pi={},Ul;function Uv(){if(Ul)return Pi;Ul=1,Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.parseAbiItem=o;const e=Mu(),r=Tn(),n=ku(),t=Pn();function o(s){let i;if(typeof s=="string")i=(0,t.parseSignature)(s);else{const a=(0,n.parseStructs)(s),c=s.length;for(let u=0;u<c;u++){const l=s[u];if(!(0,r.isStructSignature)(l)){i=(0,t.parseSignature)(l,a);break}}}if(!i)throw new e.InvalidAbiItemError({signature:s});return i}return Pi}var Ai={},Ll;function Lv(){if(Ll)return Ai;Ll=1,Object.defineProperty(Ai,"__esModule",{value:!0}),Ai.parseAbiParameter=o;const e=Lo(),r=Tn(),n=ku(),t=Pn();function o(s){let i;if(typeof s=="string")i=(0,t.parseAbiParameter)(s,{modifiers:r.modifiers});else{const a=(0,n.parseStructs)(s),c=s.length;for(let u=0;u<c;u++){const l=s[u];if(!(0,r.isStructSignature)(l)){i=(0,t.parseAbiParameter)(l,{modifiers:r.modifiers,structs:a});break}}}if(!i)throw new e.InvalidAbiParameterError({param:s});return i}return Ai}var Ti={},Dl;function Dv(){if(Dl)return Ti;Dl=1,Object.defineProperty(Ti,"__esModule",{value:!0}),Ti.parseAbiParameters=s;const e=Lo(),r=Tn(),n=ku(),t=Pn(),o=Pn();function s(i){const a=[];if(typeof i=="string"){const c=(0,t.splitParameters)(i),u=c.length;for(let l=0;l<u;l++)a.push((0,o.parseAbiParameter)(c[l],{modifiers:r.modifiers}))}else{const c=(0,n.parseStructs)(i),u=i.length;for(let l=0;l<u;l++){const f=i[l];if((0,r.isStructSignature)(f))continue;const m=(0,t.splitParameters)(f),y=m.length;for(let h=0;h<y;h++)a.push((0,o.parseAbiParameter)(m[h],{modifiers:r.modifiers,structs:c}))}}if(a.length===0)throw new e.InvalidAbiParametersError({params:i});return a}return Ti}var Gl;function br(){return Gl||(Gl=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CircularReferenceError=e.InvalidParenthesisError=e.UnknownSignatureError=e.InvalidSignatureError=e.InvalidStructSignatureError=e.InvalidAbiParameterError=e.InvalidAbiParametersError=e.InvalidParameterError=e.SolidityProtectedKeywordError=e.InvalidModifierError=e.InvalidFunctionModifierError=e.InvalidAbiTypeParameterError=e.UnknownSolidityTypeError=e.InvalidAbiItemError=e.UnknownTypeError=e.parseAbiParameters=e.parseAbiParameter=e.parseAbiItem=e.parseAbi=e.formatAbiParameters=e.formatAbiParameter=e.formatAbiItem=e.formatAbi=e.narrow=e.BaseError=void 0;var r=An();Object.defineProperty(e,"BaseError",{enumerable:!0,get:function(){return r.BaseError}});var n=Fv();Object.defineProperty(e,"narrow",{enumerable:!0,get:function(){return n.narrow}});var t=Nv();Object.defineProperty(e,"formatAbi",{enumerable:!0,get:function(){return t.formatAbi}});var o=rg();Object.defineProperty(e,"formatAbiItem",{enumerable:!0,get:function(){return o.formatAbiItem}});var s=eg();Object.defineProperty(e,"formatAbiParameter",{enumerable:!0,get:function(){return s.formatAbiParameter}});var i=tg();Object.defineProperty(e,"formatAbiParameters",{enumerable:!0,get:function(){return i.formatAbiParameters}});var a=zv();Object.defineProperty(e,"parseAbi",{enumerable:!0,get:function(){return a.parseAbi}});var c=Uv();Object.defineProperty(e,"parseAbiItem",{enumerable:!0,get:function(){return c.parseAbiItem}});var u=Lv();Object.defineProperty(e,"parseAbiParameter",{enumerable:!0,get:function(){return u.parseAbiParameter}});var l=Dv();Object.defineProperty(e,"parseAbiParameters",{enumerable:!0,get:function(){return l.parseAbiParameters}});var f=Mu();Object.defineProperty(e,"UnknownTypeError",{enumerable:!0,get:function(){return f.UnknownTypeError}}),Object.defineProperty(e,"InvalidAbiItemError",{enumerable:!0,get:function(){return f.InvalidAbiItemError}}),Object.defineProperty(e,"UnknownSolidityTypeError",{enumerable:!0,get:function(){return f.UnknownSolidityTypeError}});var m=Lo();Object.defineProperty(e,"InvalidAbiTypeParameterError",{enumerable:!0,get:function(){return m.InvalidAbiTypeParameterError}}),Object.defineProperty(e,"InvalidFunctionModifierError",{enumerable:!0,get:function(){return m.InvalidFunctionModifierError}}),Object.defineProperty(e,"InvalidModifierError",{enumerable:!0,get:function(){return m.InvalidModifierError}}),Object.defineProperty(e,"SolidityProtectedKeywordError",{enumerable:!0,get:function(){return m.SolidityProtectedKeywordError}}),Object.defineProperty(e,"InvalidParameterError",{enumerable:!0,get:function(){return m.InvalidParameterError}}),Object.defineProperty(e,"InvalidAbiParametersError",{enumerable:!0,get:function(){return m.InvalidAbiParametersError}}),Object.defineProperty(e,"InvalidAbiParameterError",{enumerable:!0,get:function(){return m.InvalidAbiParameterError}});var y=af();Object.defineProperty(e,"InvalidStructSignatureError",{enumerable:!0,get:function(){return y.InvalidStructSignatureError}}),Object.defineProperty(e,"InvalidSignatureError",{enumerable:!0,get:function(){return y.InvalidSignatureError}}),Object.defineProperty(e,"UnknownSignatureError",{enumerable:!0,get:function(){return y.UnknownSignatureError}});var h=og();Object.defineProperty(e,"InvalidParenthesisError",{enumerable:!0,get:function(){return h.InvalidParenthesisError}});var b=ng();Object.defineProperty(e,"CircularReferenceError",{enumerable:!0,get:function(){return b.CircularReferenceError}})})(Od)),Od}var on={},Si={},Vl;function me(){if(Vl)return Si;Vl=1,Object.defineProperty(Si,"__esModule",{value:!0}),Si.getAction=e;function e(r,n,t){const o=r[n.name];if(typeof o=="function")return o;const s=r[t];return typeof s=="function"?s:i=>n(r,i)}return Si}var Ii={},Ri={},se={},Qn={},Wl;function Qt(){if(Wl)return Qn;Wl=1,Object.defineProperty(Qn,"__esModule",{value:!0}),Qn.formatAbiItem=r,Qn.formatAbiParams=n;const e=Se();function r(o,{includeName:s=!1}={}){if(o.type!=="function"&&o.type!=="event"&&o.type!=="error")throw new e.InvalidDefinitionTypeError(o.type);return`${o.name}(${n(o.inputs,{includeName:s})})`}function n(o,{includeName:s=!1}={}){return o?o.map(i=>t(i,{includeName:s})).join(s?", ":","):""}function t(o,{includeName:s}){return o.type.startsWith("tuple")?`(${n(o.components,{includeName:s})})${o.type.slice(5)}`:o.type+(s&&o.name?` ${o.name}`:"")}return Qn}var Bi={},Oi={},Kl;function Ze(){if(Kl)return Oi;Kl=1,Object.defineProperty(Oi,"__esModule",{value:!0}),Oi.isHex=e;function e(r,{strict:n=!0}={}){return!r||typeof r!="string"?!1:n?/^0x[0-9a-fA-F]*$/.test(r):r.startsWith("0x")}return Oi}var Zl;function Ue(){if(Zl)return Bi;Zl=1,Object.defineProperty(Bi,"__esModule",{value:!0}),Bi.size=r;const e=Ze();function r(n){return(0,e.isHex)(n,{strict:!1})?Math.ceil((n.length-2)/2):n.length}return Bi}var an={},eo={},Jl;function Gv(){return Jl||(Jl=1,Object.defineProperty(eo,"__esModule",{value:!0}),eo.version=void 0,eo.version="2.51.3"),eo}var Yl;function ue(){if(Yl)return an;Yl=1,Object.defineProperty(an,"__esModule",{value:!0}),an.BaseError=void 0,an.setErrorConfig=n;const e=Gv();let r={getDocsUrl:({docsBaseUrl:s,docsPath:i="",docsSlug:a})=>i?`${s??"https://viem.sh"}${i}${a?`#${a}`:""}`:void 0,version:`viem@${e.version}`};function n(s){r=s}class t extends Error{constructor(i,a={}){var m;const c=(()=>{var y;return a.cause instanceof t?a.cause.details:(y=a.cause)!=null&&y.message?a.cause.message:a.details})(),u=a.cause instanceof t&&a.cause.docsPath||a.docsPath,l=(m=r.getDocsUrl)==null?void 0:m.call(r,{...a,docsPath:u}),f=[i||"An error occurred.","",...a.metaMessages?[...a.metaMessages,""]:[],...l?[`Docs: ${l}`]:[],...c?[`Details: ${c}`]:[],...r.version?[`Version: ${r.version}`]:[]].join(`
|
|
3
3
|
`);super(f,a.cause?{cause:a.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=c,this.docsPath=u,this.metaMessages=a.metaMessages,this.name=a.name??this.name,this.shortMessage=i,this.version=e.version}walk(i){return o(this,i)}}an.BaseError=t;function o(s,i){return i!=null&&i(s)?s:s&&typeof s=="object"&&"cause"in s&&s.cause!==void 0?o(s.cause,i):i?null:s}return an}var Xl;function Se(){if(Xl)return se;Xl=1,Object.defineProperty(se,"__esModule",{value:!0}),se.UnsupportedPackedAbiType=se.InvalidDefinitionTypeError=se.InvalidArrayError=se.InvalidAbiDecodingTypeError=se.InvalidAbiEncodingTypeError=se.DecodeLogTopicsMismatch=se.DecodeLogDataMismatch=se.BytesSizeMismatchError=se.AbiItemAmbiguityError=se.AbiFunctionSignatureNotFoundError=se.AbiFunctionOutputsNotFoundError=se.AbiFunctionNotFoundError=se.AbiEventNotFoundError=se.AbiEventSignatureNotFoundError=se.AbiEventSignatureEmptyTopicsError=se.AbiErrorSignatureNotFoundError=se.AbiErrorNotFoundError=se.AbiErrorInputsNotFoundError=se.AbiEncodingLengthMismatchError=se.AbiEncodingBytesSizeMismatchError=se.AbiEncodingArrayLengthMismatchError=se.AbiDecodingZeroDataError=se.AbiDecodingDataSizeTooSmallError=se.AbiDecodingDataSizeInvalidError=se.AbiConstructorParamsNotFoundError=se.AbiConstructorNotFoundError=void 0;const e=Qt(),r=Ue(),n=ue();class t extends n.BaseError{constructor({docsPath:q}){super(["A constructor was not found on the ABI.","Make sure you are using the correct ABI and that the constructor exists on it."].join(`
|
|
4
4
|
`),{docsPath:q,name:"AbiConstructorNotFoundError"})}}se.AbiConstructorNotFoundError=t;class o extends n.BaseError{constructor({docsPath:q}){super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join(`
|