1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="2f1ad637-0812-f87e-487e-c5083ef78375")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,138981,e=>{"use strict";e.s(["parseAccount",0,function(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}])},762019,e=>{"use strict";let t=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{name:"addr",type:"address"}],name:"getEthBalance",outputs:[{name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getCurrentBlockTimestamp",outputs:[{internalType:"uint256",name:"timestamp",type:"uint256"}],stateMutability:"view",type:"function"}],n=[{name:"query",type:"function",stateMutability:"view",inputs:[{type:"tuple[]",name:"queries",components:[{type:"address",name:"sender"},{type:"string[]",name:"urls"},{type:"bytes",name:"data"}]}],outputs:[{type:"bool[]",name:"failures"},{type:"bytes[]",name:"responses"}]},{name:"HttpError",type:"error",inputs:[{type:"uint16",name:"status"},{type:"string",name:"message"}]}],r=[{inputs:[{name:"dns",type:"bytes"}],name:"DNSDecodingFailed",type:"error"},{inputs:[{name:"ens",type:"string"}],name:"DNSEncodingFailed",type:"error"},{inputs:[],name:"EmptyAddress",type:"error"},{inputs:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"HttpError",type:"error"},{inputs:[],name:"InvalidBatchGatewayResponse",type:"error"},{inputs:[{name:"errorData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{name:"name",type:"bytes"},{name:"resolver",type:"address"}],name:"ResolverNotContract",type:"error"},{inputs:[{name:"name",type:"bytes"}],name:"ResolverNotFound",type:"error"},{inputs:[{name:"primary",type:"string"},{name:"primaryAddress",type:"bytes"}],name:"ReverseAddressMismatch",type:"error"},{inputs:[{internalType:"bytes4",name:"selector",type:"bytes4"}],name:"UnsupportedResolverProfile",type:"error"}],a=[...r,{name:"resolveWithGateways",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],i=[...r,{name:"reverseWithGateways",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"uint256",name:"coinType"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolver"},{type:"address",name:"reverseResolver"}]}];e.s(["addressResolverAbi",0,[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],"batchGatewayAbi",0,n,"erc1155Abi",0,[{inputs:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"balance",type:"uint256"},{internalType:"uint256",name:"needed",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ERC1155InsufficientBalance",type:"error"},{inputs:[{internalType:"address",name:"approver",type:"address"}],name:"ERC1155InvalidApprover",type:"error"},{inputs:[{internalType:"uint256",name:"idsLength",type:"uint256"},{internalType:"uint256",name:"valuesLength",type:"uint256"}],name:"ERC1155InvalidArrayLength",type:"error"},{inputs:[{internalType:"address",name:"operator",type:"address"}],name:"ERC1155InvalidOperator",type:"error"},{inputs:[{internalType:"address",name:"receiver",type:"address"}],name:"ERC1155InvalidReceiver",type:"error"},{inputs:[{internalType:"address",name:"sender",type:"address"}
2],name:"ERC1155InvalidSender",type:"error"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"address",name:"owner",type:"address"}],name:"ERC1155MissingApprovalForAll",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}],"erc1271Abi",0,[{name:"isValidSignature",type:"function",stateMutability:"view",inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],outputs:[{name:"",type:"bytes4"}]}],"erc20Abi",0,[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]}
2],"erc20Abi_bytes32",0,[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{type:"bytes32"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:"bytes32"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]}],"erc4626Abi",0,[{anonymous:!1,inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"sender",type:"address"},{indexed:!0,name:"receiver",type:"address"},{indexed:!1,name:"assets",type:"uint256"},{indexed:!1,name:"shares",type:"uint256"}],name:"Deposit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"sender",type:"address"},{indexed:!0,name:"receiver",type:"address"},{indexed:!0,name:"owner",type:"address"},{indexed:!1,name:"assets",type:"uint256"},{indexed:!1,name:"shares",type:"uint256"}],name:"Withdraw",type:"event"},{inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],name:"allowance",outputs:[{type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],name:"approve",outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"asset",outputs:[{name:"assetTokenAddress",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{name:"account",type:"address"}],name:"balanceOf",outputs:[{type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"shares",type:"uint256"}],name:"convertToAssets",outputs:[{name:"assets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"assets",type:"uint256"}],name:"convertToShares",outputs:[{name:"shares",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"assets",type:"uint256"},{name:"receiver",type:"address"}],name:"deposit",outputs:[{name:"shares",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"caller",type:"address"}],name:"maxDeposit",outputs:[{name:"maxAssets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"caller",type:"address"}],name:"maxMint",outputs:[{name:"maxShares",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"owner",type:"address"}],name:"maxRedeem",outputs:[{name:"maxShares",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"owner",type:"address"}],name:"maxWithdraw",outputs:[{name:"maxAssets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"shares",type:"uint256"},{name:"receiver",type:"address"}],name:"mint",outputs:[{name:"assets",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"assets",type:"uint256"}],name:"previewDeposit",outputs:[{name:"shares",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"shares",type:"uint256"}],name:"previewMint",outputs:[{name:"assets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"shares",type:"uint256"}],name:"previewRedeem",outputs:[{name:"assets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"assets",type:"uint256"}],name:"previewWithdraw",outputs:[{name:"shares",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"shares",type:"uint256"},{name:"receiver",type:"address"},{name:"owner",type:"address"}],name:"redeem",outputs:[{name:"assets",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"totalAssets",outputs:[{name:"totalManagedAssets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"to",type:"address"},{name:"amount",type:"uint256"}],name:"transfer",outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"assets",type:"uint256"},{name:"receiver",type:"address"},{name:"owner",type:"address"}],name:"withdraw",outputs:[{name:"shares",type:"uint256"}],stateMutability:"nonpayable",type:"function"}],"erc6492SignatureValidatorAbi",0,[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}
2],"erc721Abi",0,[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!0,name:"tokenId",type:"uint256"}]},{type:"event",name:"ApprovalForAll",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"operator",type:"address"},{indexed:!1,name:"approved",type:"bool"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!0,name:"tokenId",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"payable",inputs:[{name:"spender",type:"address"},{name:"tokenId",type:"uint256"}],outputs:[]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"getApproved",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{type:"address"}]},{type:"function",name:"isApprovedForAll",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"operator",type:"address"}],outputs:[{type:"bool"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"ownerOf",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"owner",type:"address"}]},{type:"function",name:"safeTransferFrom",stateMutability:"payable",inputs:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"tokenId",type:"uint256"}],outputs:[]},{type:"function",name:"safeTransferFrom",stateMutability:"nonpayable",inputs:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"id",type:"uint256"},{name:"data",type:"bytes"}],outputs:[]},{type:"function",name:"setApprovalForAll",stateMutability:"nonpayable",inputs:[{name:"operator",type:"address"},{name:"approved",type:"bool"}],outputs:[]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"tokenByIndex",stateMutability:"view",inputs:[{name:"index",type:"uint256"}],outputs:[{type:"uint256"}]},{type:"function",name:"tokenByIndex",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"index",type:"uint256"}],outputs:[{name:"tokenId",type:"uint256"}]},{type:"function",name:"tokenURI",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{type:"function",name:"transferFrom",stateMutability:"payable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"tokenId",type:"uint256"}],outputs:[]}],"multicall3Abi",0,t,"textResolverAbi",0,[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],"universalResolverResolveAbi",0,a,"universalResolverReverseAbi",0,i])},294930,e=>{"use strict";e.s(["formatAbiItem",()=>n,"formatAbiParams",()=>r]);var t=e.i(279383);function n(e,{includeName:a=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new t.InvalidDefinitionTypeError(e.type);return`${e.name}(${r(e.inputs,{includeName:a})})`}function r(e,{includeName:t=!1}={}){return e?e.map(e=>(function(e,{includeName:t}){return e.type.startsWith("tuple")?`(${r(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")})(e,{includeName:t})).join(t?", ":","):""}},294987,e=>{"use strict";e.s(["isHex",0,function(e,{strict:t=!0}={}){return!!e&&"string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}])},738840,e=>{"use strict";var t=e.i(294987);e.s(["size",0,function(e){return(0,t.isHex)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}])},224704,e=>{"use strict";let t="2.51.2",n={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:n})=>t?`${e??"https://viem.sh"}${t}${n?`#${n}`:""}`:void 0,version:`viem@${t}`};class r extends Error{constructor(e,a={}){const i=a.cause instanceof r?a.cause.details:a.cause?.message?a.cause.message:a.details,s=a.cause instanceof r&&a.cause.docsPath||a.docsPath,o=n.getDocsUrl?.({...a,docsPath:s});super([e||"An error occurred.","",...a.metaMessages?[...a.metaMessages,""]:[],...o?[`Docs: ${o}`]:[],...i?[`Details: ${i}`]:[],...n.version?[`Version: ${n.version}`]:[]].join("\n"),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=i,this.docsPath=s,this.metaMessages=a.metaMessages,this.name=a.name??this.name,this.shortMessage=e,this.version=t}walk(e){return function e(t,n){return n?.(t)?t:t&&"object"==typeof t&&"cause"in t&&void 0!==t.cause?e(t.cause,n):n?null:t}(this,e)}}e.s(["BaseError",0,r,"setErrorConfig",0,function(e){n=e}],224704)},279383,e=>{"use strict";e.s(["AbiConstructorNotFoundError",()=>
2a,"AbiConstructorParamsNotFoundError",()=>i,"AbiDecodingDataSizeInvalidError",()=>s,"AbiDecodingDataSizeTooSmallError",()=>o,"AbiDecodingZeroDataError",()=>u,"AbiEncodingArrayLengthMismatchError",()=>c,"AbiEncodingBytesSizeMismatchError",()=>d,"AbiEncodingLengthMismatchError",()=>l,"AbiErrorInputsNotFoundError",()=>f,"AbiErrorNotFoundError",()=>p,"AbiErrorSignatureNotFoundError",()=>b,"AbiEventNotFoundError",()=>h,"AbiEventSignatureEmptyTopicsError",()=>m,"AbiEventSignatureNotFoundError",()=>y,"AbiFunctionNotFoundError",()=>g,"AbiFunctionOutputsNotFoundError",()=>v,"AbiFunctionSignatureNotFoundError",()=>w,"AbiItemAmbiguityError",()=>x,"BytesSizeMismatchError",()=>E,"DecodeLogDataMismatch",()=>$,"DecodeLogTopicsMismatch",()=>A,"InvalidAbiDecodingTypeError",()=>T,"InvalidAbiEncodingTypeError",()=>I,"InvalidArrayError",()=>B,"InvalidDefinitionTypeError",()=>P,"UnsupportedPackedAbiType",()=>S]);var t=e.i(294930),n=e.i(738840),r=e.i(224704);class a extends r.BaseError{constructor({docsPath:e}){super("A constructor was not found on the ABI.\nMake sure you are using the correct ABI and that the constructor exists on it.",{docsPath:e,name:"AbiConstructorNotFoundError"})}}class i extends r.BaseError{constructor({docsPath:e}){super("Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.\nMake sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists.",{docsPath:e,name:"AbiConstructorParamsNotFoundError"})}}class s extends r.BaseError{constructor({data:e,size:t}){super(`Data size of ${t}
2 bytes is invalid. 3Size must be in increments of 32 bytes (size % 32 === 0).`,{metaMessages:[`Data: ${e} (${t} bytes)`],name:"AbiDecodingDataSizeInvalidError"})}}class o extends r.BaseError{constructor({data:e,params:n,size:r}){super(`Data size of ${r} bytes is too small for given parameters.`,{metaMessages:[`Params: (${(0,t.formatAbiParams)(n,{includeName:!0})})`,`Data: ${e} (${r} bytes)`],name:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,this.params=n,this.size=r}}class u extends r.BaseError{constructor({cause:e}={}){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError",cause:e})}}class c extends r.BaseError{constructor({expectedLength:e,givenLength:t,type:n}){super(`ABI encoding array length mismatch for type ${n}. 4Expected length: ${e} 5Given length: ${t}`,{name:"AbiEncodingArrayLengthMismatchError"})}}class d extends r.BaseError{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${(0,n.size)(t)}) does not match expected size (bytes${e}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class l extends r.BaseError{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding params/values length mismatch. 6Expected length (params): ${e} 7Given length (values): ${t}`,{name:"AbiEncodingLengthMismatchError"})}}class f extends r.BaseError{constructor(e,{docsPath:t}){super(`Arguments (\`args\`) were provided to "${e}", but "${e}" on the ABI does not contain any parameters (\`inputs\`). 8Cannot encode error result without knowing what the parameter types are. 9Make sure you are using the correct ABI and that the inputs exist on it.`,{docsPath:t,name:"AbiErrorInputsNotFoundError"})}}class p extends r.BaseError{constructor(e,{docsPath:t}={}){super(`Error ${e?`"${e}" `:""}not found on ABI. 10Make sure you are using the correct ABI and that the error exists on it.`,{docsPath:t,name:"AbiErrorNotFoundError"})}}class b extends r.BaseError{constructor(e,{docsPath:t,cause:n}){super(`Encoded error signature "${e}" not found on ABI. 11Make sure you are using the correct ABI and that the error exists on it. 12You can look up the decoded signature here: https://4byte.sourcify.dev/?q=${e}.`,{docsPath:t,name:"AbiErrorSignatureNotFoundError",cause:n}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}class m extends r.BaseError{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e,name:"AbiEventSignatureEmptyTopicsError"})}}class y extends r.BaseError{constructor(e,{docsPath:t}){super(`Encoded event signature "${e}" not found on ABI. 13Make sure you are using the correct ABI and that the event exists on it. 14You can look up the signature here: https://4byte.sourcify.dev/?q=${e}.`,{docsPath:t,name:"AbiEventSignatureNotFoundError"})}}class h extends r.BaseError{constructor(e,{docsPath:t}={}){super(`Event ${e?`"${e}" `:""}not found on ABI. 15Make sure you are using the correct ABI and that the event exists on it.`,{docsPath:t,name:"AbiEventNotFoundError"})}}class g extends r.BaseError{constructor(e,{docsPath:t}={}){super(`Function ${e?`"${e}" `:""}not found on ABI. 16Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionNotFoundError"})}}class v extends r.BaseError{constructor(e,{docsPath:t}){super(`Function "${e}" does not contain any \`outputs\` on ABI. 17Cannot decode function result without knowing what the parameter types are. 18Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionOutputsNotFoundError"})}}class w extends r.BaseError{constructor(e,{docsPath:t}){super(`Encoded function signature "${e}" not found on ABI. 19Make sure you are using the correct ABI and that the function exists on it. 20You can look up the signature here: https://4byte.sourcify.dev/?q=${e}.`,{docsPath:t,name:"AbiFunctionSignatureNotFoundError"})}}class x extends r.BaseError{constructor(e,n){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}
20\` in \`${(0,t.formatAbiItem)(e.abiItem)}\`, and`,`\`${n.type}\` in \`${(0,t.formatAbiItem)(n.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class E extends r.BaseError{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`,{name:"BytesSizeMismatchError"})}}class $ extends r.BaseError{constructor({abiItem:e,data:n,params:r,size:a}){super(`Data size of ${a} bytes is too small for non-indexed event parameters.`,{metaMessages:[`Params: (${(0,t.formatAbiParams)(r,{includeName:!0})})`,`Data: ${n} (${a} bytes)`],name:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e,this.data=n,this.params=r,this.size=a}}class A extends r.BaseError{constructor({abiItem:e,param:n}){super(`Expected a topic for indexed event parameter${n.name?` "${n.name}"`:""} on event "${(0,t.formatAbiItem)(e,{includeName:!0})}".`,{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}class I extends r.BaseError{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid encoding type. 21Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiEncodingType"})}}class T extends r.BaseError{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid decoding type. 22Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiDecodingType"})}}class B extends r.BaseError{constructor(e){super(`Value "${e}" is not a valid array.`,{name:"InvalidArrayError"})}}class P extends r.BaseError{constructor(e){super(`"${e}" is not a valid definition type. 23Valid types: "function", "event", "error"`,{name:"InvalidDefinitionTypeError"})}}class S extends r.BaseError{constructor(e){super(`Type "${e}" is not supported for packed encoding.`,{name:"UnsupportedPackedAbiType"})}}},7411,e=>{"use strict";var t=e.i(224704);class n extends t.BaseError{constructor({address:e}){super(`Address "${e}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}e.s(["InvalidAddressError",0,n])},18139,e=>{"use strict";var t=e.i(224704);class n extends t.BaseError{constructor({offset:e,position:t,size:n}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${n}).`,{name:"SliceOffsetOutOfBoundsError"})}}class r extends t.BaseError{constructor({size:e,targetSize:t,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`,{name:"SizeExceedsPaddingSizeError"})}}class a extends t.BaseError{constructor({size:e,targetSize:t,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} is expected to be ${t} ${n} long, but is ${e} ${n} long.`,{name:"InvalidBytesLengthError"})}}e.s(["InvalidBytesLengthError",0,a,"SizeExceedsPaddingSizeError",0,r,"SliceOffsetOutOfBoundsError",0,n])},335752,e=>{"use strict";var t=e.i(18139);function n(e,{dir:r,size:a=32}={}){if(null===a)return e;let i=e.replace("0x","");if(i.length>2*a)throw new t.SizeExceedsPaddingSizeError({size:Math.ceil(i.length/2),targetSize:a,type:"hex"});return`0x${i["right"===r?"padEnd":"padStart"](2*a,"0")}`}function r(e,{dir:n,size:a=32}={}){if(null===a)return e;if(e.length>a)throw new t.SizeExceedsPaddingSizeError({size:e.length,targetSize:a,type:"bytes"});let i=new Uint8Array(a);for(let t=0;t<a;t++){let r="right"===n;i[r?t:a-t-1]=e[r?t:e.length-t-1]}return i}e.s(["pad",0,function(e,{dir:t,size:a=32}={}){return"string"==typeof e?n(e,{dir:t,size:a}):r(e,{dir:t,size:a})},"padBytes",0,r,"padHex",0,n])},821205,e=>{"use strict";var t=e.i(224704);class n extends t.BaseError{constructor({max:e,min:t,signed:n,size:r,value:a}){super(`Number "${a}" is not in safe ${r?`${8*r}-bit ${n?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`,{name:"IntegerOutOfRangeError"})}}class r extends t.BaseError{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}class a extends t.BaseError{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}class i extends t.BaseError{constructor(e){super(`Hex value "${e}" is an odd length (${e.length}). It must be an even length.`,{name:"InvalidHexValueError"})}}class s extends t.BaseError{constructor({givenSize:e,maxSize:t}
23){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}e.s(["IntegerOutOfRangeError",0,n,"InvalidBytesBooleanError",0,r,"InvalidHexBooleanError",0,a,"InvalidHexValueError",0,i,"SizeOverflowError",0,s])},696748,e=>{"use strict";e.s(["trim",0,function(e,{dir:t="left"}={}){let n="string"==typeof e?e.replace("0x",""):e,r=0;for(let e=0;e<n.length-1;e++)if("0"===n["left"===t?e:n.length-e-1].toString())r++;else break;return(n="left"===t?n.slice(r):n.slice(0,n.length-r),"string"==typeof e)?(1===n.length&&"right"===t&&(n=`${n}0`),`0x${n.length%2==1?`0${n}`:n}`):n}])},977824,e=>{"use strict";e.s(["assertSize",()=>i,"fromHex",()=>s,"hexToBigInt",()=>o,"hexToBool",()=>u,"hexToNumber",()=>c,"hexToString",()=>d]);var t=e.i(821205),n=e.i(738840),r=e.i(696748),a=e.i(916598);function i(e,{size:r}){if((0,n.size)(e)>r)throw new t.SizeOverflowError({givenSize:(0,n.size)(e),maxSize:r})}function s(e,t){let n="string"==typeof t?{to:t}:t,r=n.to;return"number"===r?c(e,n):"bigint"===r?o(e,n):"string"===r?d(e,n):"boolean"===r?u(e,n):(0,a.hexToBytes)(e,n)}function o(e,t={}){let{signed:n}=t;t.size&&i(e,{size:t.size});let r=BigInt(e);if(!n)return r;let a=(e.length-2)/2;return r<=(1n<<8n*BigInt(a)-1n)-1n?r:r-BigInt(`0x${"f".padStart(2*a,"f")}`)-1n}function u(e,n={}){let a=e;if(n.size&&(i(a,{size:n.size}),a=(0,r.trim)(a)),"0x00"===(0,r.trim)(a))return!1;if("0x01"===(0,r.trim)(a))return!0;throw new t.InvalidHexBooleanError(a)}function c(e,n={}){let r=o(e,n),a=Number(r);if(!Number.isSafeInteger(a))throw new t.IntegerOutOfRangeError({max:`${Number.MAX_SAFE_INTEGER}`,min:`${Number.MIN_SAFE_INTEGER}`,signed:n.signed,size:n.size,value:`${r}n`});return a}function d(e,t={}){let n=(0,a.hexToBytes)(e);return t.size&&(i(n,{size:t.size}),n=(0,r.trim)(n,{dir:"right"})),new TextDecoder().decode(n)}},916598,544316,e=>{"use strict";e.s(["boolToBytes",()=>m,"hexToBytes",()=>h,"numberToBytes",()=>g,"stringToBytes",()=>v,"toBytes",()=>b],916598);var t=e.i(224704),n=e.i(294987),r=e.i(335752),a=e.i(977824);e.s(["boolToHex",()=>u,"bytesToHex",()=>c,"numberToHex",()=>d,"stringToHex",()=>f,"toHex",()=>o],544316);var i=e.i(821205);let s=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function o(e,t={}){return"number"==typeof e||"bigint"==typeof e?d(e,t):"string"==typeof e?f(e,t):"boolean"==typeof e?u(e,t):c(e,t)}function u(e,t={}){let n=`0x${Number(e)}`;return"number"==typeof t.size?((0,a.assertSize)(n,{size:t.size}),(0,r.pad)(n,{size:t.size})):n}function c(e,t={}){let n="";for(let t=0;t<e.length;t++)n+=s[e[t]];let i=`0x${n}`;return"number"==typeof t.size?((0,a.assertSize)(i,{size:t.size}),(0,r.pad)(i,{dir:"right",size:t.size})):i}function d(e,t={}){let n,{signed:a,size:s}=t,o=BigInt(e);s?n=a?(1n<<8n*BigInt(s)-1n)-1n:2n**(8n*BigInt(s))-1n:"number"==typeof e&&(n=BigInt(Number.MAX_SAFE_INTEGER));let u="bigint"==typeof n&&a?-n-1n:0;if(n&&o>n||o<u){let t="bigint"==typeof e?"n":"";throw new i.IntegerOutOfRangeError({max:n?`${n}${t}`:void 0,min:`${u}${t}`,signed:a,size:s,value:`${e}${t}`})}let c=`0x${(a&&o<0?(1n<<BigInt(8*s))+BigInt(o):o).toString(16)}`;return s?(0,r.pad)(c,{size:s}):c}let l=new TextEncoder;function f(e,t={}){return c(l.encode(e),t)}let p=new TextEncoder;function b(e,t={}){return"number"==typeof e||"bigint"==typeof e?g(e,t):"boolean"==typeof e?m(e,t):(0,n.isHex)(e)?h(e,t):v(e,t)}function m(e,t={}){let n=new Uint8Array(1);return(n[0]=Number(e),"number"==typeof t.size)?((0,a.assertSize)(n,{size:t.size}),(0,r.pad)(n,{size:t.size})):n}function y(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:void 0}function h(e,n={}){let i=e;n.size&&((0,a.assertSize)(i,{size:n.size}),i=(0,r.pad)(i,{dir:"right",size:n.size}));let s=i.slice(2);s.length%2&&(s=`0${s}`);let o=s.length/2,u=new Uint8Array(o);for(let e=0,n=0;e<o;e++){let r=y(s.charCodeAt(n++)),a=y(s.charCodeAt(n++));if(void 0===r||void 0===a)throw new t.BaseError(`Invalid byte sequence ("${s[n-2]}${s[n-1]}" in "${s}").`);u[e]=16*r+a}return u}function g(e,t){return h(d(e,t))}function v(e,t={}){let n=p.encode(e);return"number"==typeof t.size?((0,a.assertSize)(n,{size:t.size}),(0,r.pad)(n,{dir:"right",size:t.size})):n}},702669,e=>{"use strict";var t=e.i(145535),n=e.i(294987),r=e.i(916598),a=e.i(544316);e.s(["keccak256",0,function(e,i){let s=(0,t.keccak_256)((0,n.isHex)(e,{strict:!1})?(0,r.toBytes)(e):e);return"bytes"===(i||"hex")?s:(0,a.toHex)(s)}])},463823,e=>{"use strict";class t extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){let t=super.get(e);return super.has(e)&&(super.delete(e),super.set(e,t)),t}set(e,t){if(super.has(e)&&super.delete(e),super.set(e,t),this.maxSize&&this.size>this.maxSize){let e=super.keys().next().value;void 0!==e&&super.delete(e)}return this}}e.s(["LruMap",0,t])},443392,e=>{"use strict";e.s(["isAddress",()=>i]);var t=e.i(463823),n=e.i(736618);let r=/^0x[a-fA-F0-9]{40}$/,a=new t.LruMap(8192);function i(e,t){let{strict:i=!0}=t??{},s=`${e}.${i}`;if(a.has(s))return a.get(s);let o=!!r.test(e)&&(e.toLowerCase()===e||!i||(0,n.checksumAddress)(e)===e);return a.set(s,o),o}},736618,e=>{"use strict";e.s(["checksumAddress",()=>o,"getAddress",()=>u]);var t=e.i(7411),n=e.i(916598),r=e.i(702669),a=e.i(463823),i=e.i(443392);let s=new a.LruMap(8192);function o(e,t){if(s.has(`${e}.${t}`))return s.get(`${e}.${t}`);let a=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),i=(0,r.keccak256)((0,n.stringToBytes)(a),"bytes"),o=(t?a.substring(`${t}0x`.length):a).split("");for(let e=0;e<40;e+=2)i[e>>1]>>4>=8&&o[e]&&(o[e]=o[e].toUpperCase()),(15&i[e>>1])>=8&&o[e+1]&&(o[e+1]=o[e+1].toUpperCase());let u=`0x${o.join("")}`;return s.set(`${e}.${t}`,u),u}function u(e,n){if(!(0,i.isAddress)(e,{strict:!1}))throw new t.InvalidAddressError({address:e});return o(e,n)}},162859,504547,e=>{"use strict";var t=e.i(224704);class n extends t.BaseError{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class r extends t.BaseError{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}class a extends t.BaseError{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}e.s(["NegativeOffsetError",0,n,"PositionOutOfBoundsError",0,r,"RecursiveReadLimitExceededError",0,a],504547);let i={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:1/0,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new a({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new r({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new n({offset:e});let t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new n({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===1/0)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};e.s(["createCursor",0,function(e,{recursiveReadLimit:t=8192}={}){let n=Object.create(i);return n.bytes=e,n.dataView=new DataView(e.buffer??e,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}],162859)},28106,e=>{"use strict";var t=e.i(18139),n=e.i(294987),r=e.i(738840);function a(e,n){if("number"==typeof n&&n>0&&n>(0,r.size)(e)-1)throw new t.SliceOffsetOutOfBoundsError({offset:n,position:"start",size:(0,r.size)(e)})}function i(e,n,a){if("number"==typeof n&&"number"==typeof a&&(0,r.size)(e)!==a-n)throw new t.SliceOffsetOutOfBoundsError({offset:a,position:"end",size:(0,r.size)(e)})}function s(e,t,n,{strict:r}={}){a(e,t);let o=e.slice(t,n);return r&&i(o,t,n),o}function o(e,t,n,{strict:r}={}){a(e,t);let s=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return r&&i(s,t,n),s}e.s(["slice",0,function(e,t,r,{strict:a}={}){return(0,n.isHex)(e,{strict:!1})?o(e,t,r,{strict:a}):s(e,t,r,{strict:a})},"sliceBytes",0,s,"sliceHex",0,o])},532276,e=>{"use strict";var t=e.i(821205),n=e.i(696748),r=e.i(977824),a=e.i(544316);function i(e,t={}){void 0!==t.size&&(0,r.assertSize)(e,{size:t.size});let n=(0,a.bytesToHex)(e,t);return(0,r.hexToBigInt)(n,t)}function s(e,a={}){let i=e;if(void 0!==a.size&&((0,r.assertSize)(i,{size:a.size}),i=(0,n.trim)(i)),i.length>1||i[0]>1)throw new t.InvalidBytesBooleanError(i);return!!i[0]}function o(e,t={}){void 0!==t.size&&(0,r.assertSize)(e,{size:t.size});let n=(0,a.bytesToHex)(e,t);return(0,r.hexToNumber)(n,t)}function u(e,t={}){let a=e;return void 0!==t.size&&((0,r.assertSize)(a,{size:t.size}),a=(0,n.trim)(a,{dir:"right"})),new TextDecoder().decode(a)}e.s(["bytesToBigInt",0,i,"bytesToBool",0,s,"bytesToNumber",0,o,"bytesToString",0,u,"fromBytes",0,function(e,t){let n="string"==typeof t?{to:t}:t,r=n.to;return"number"===r?o(e,n):"bigint"===r?i(e,n):"boolean"===r?s(e,n
23):"string"===r?u(e,n):(0,a.bytesToHex)(e,n)}])},351674,e=>{"use strict";function t(e){let t=0;for(let n of e)t+=n.length;let n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}function n(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}e.s(["concat",0,function(e){return"string"==typeof e[0]?n(e):t(e)},"concatBytes",0,t,"concatHex",0,n])},933664,305359,e=>{"use strict";var t=e.i(279383),n=e.i(7411),r=e.i(224704),a=e.i(821205),i=e.i(443392),s=e.i(351674),o=e.i(335752),u=e.i(738840),c=e.i(28106),d=e.i(544316);let l=/^(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)?$/;e.s(["arrayRegex",0,/^(.*)\[([0-9]*)\]$/,"bytesRegex",0,/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,"integerRegex",0,l],305359);function f(e){let t=0;for(let n=0;n<e.length;n++){let{dynamic:r,encoded:a}=e[n];r?t+=32:t+=(0,u.size)(a)}let n=[],r=[],a=0;for(let i=0;i<e.length;i++){let{dynamic:s,encoded:o}=e[i];s?(n.push((0,d.numberToHex)(t+a,{size:32})),r.push(o),a+=(0,u.size)(o)):n.push(o)}return(0,s.concat)([...n,...r])}function p(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}e.s(["encodeAbiParameters",0,function(e,b){if(e.length!==b.length)throw new t.AbiEncodingLengthMismatchError({expectedLength:e.length,givenLength:b.length});let m=f(function({params:e,values:b}){let m=[];for(let y=0;y<e.length;y++)m.push(function e({param:b,value:m}){let y=p(b.type);if(y){let[n,r]=y;return function(n,{length:r,param:a}){let i=null===r;if(!Array.isArray(n))throw new t.InvalidArrayError(n);if(!i&&n.length!==r)throw new t.AbiEncodingArrayLengthMismatchError({expectedLength:r,givenLength:n.length,type:`${a.type}[${r}]`});let o=!1,u=[];for(let t=0;t<n.length;t++){let r=e({param:a,value:n[t]});r.dynamic&&(o=!0),u.push(r)}if(i||o){let e=f(u);if(i){let t=(0,d.numberToHex)(u.length,{size:32});return{dynamic:!0,encoded:u.length>0?(0,s.concat)([t,e]):t}}if(o)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,s.concat)(u.map(({encoded:e})=>e))}}(m,{length:n,param:{...b,type:r}})}if("tuple"===b.type)return function(t,{param:n}){let r=!1,a=[];for(let i=0;i<n.components.length;i++){let s=n.components[i],o=Array.isArray(t)?i:s.name,u=e({param:s,value:t[o]});a.push(u),u.dynamic&&(r=!0)}return{dynamic:r,encoded:r?f(a):(0,s.concat)(a.map(({encoded:e})=>e))}}(m,{param:b});if("address"===b.type){var h=m;if(!(0,i.isAddress)(h))throw new n.InvalidAddressError({address:h});return{dynamic:!1,encoded:(0,o.padHex)(h.toLowerCase())}}if("bool"===b.type){var g=m;if("boolean"!=typeof g)throw new r.BaseError(`Invalid boolean value: "${g}" (type: ${typeof g}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:(0,o.padHex)((0,d.boolToHex)(g))}}if(b.type.startsWith("uint")||b.type.startsWith("int")){let e=b.type.startsWith("int"),[,,t="256"]=l.exec(b.type)??[];return function(e,{signed:t,size:n=256}){if("number"==typeof n){let r=2n**(BigInt(n)-(t?1n:0n))-1n,i=t?-r-1n:0n;if(e>r||e<i)throw new a.IntegerOutOfRangeError({max:r.toString(),min:i.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:(0,d.numberToHex)(e,{size:32,signed:t})}}(m,{signed:e,size:Number(t)})}if(b.type.startsWith("bytes"))return function(e,{param:n}){let[,r]=n.type.split("bytes"),a=(0,u.size)(e);if(!r){let t=e;return a%32!=0&&(t=(0,o.padHex)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,s.concat)([(0,o.padHex)((0,d.numberToHex)(a,{size:32})),t])}}if(a!==Number.parseInt(r,10))throw new t.AbiEncodingBytesSizeMismatchError({expectedSize:Number.parseInt(r,10),value:e});return{dynamic:!1,encoded:(0,o.padHex)(e,{dir:"right"})}}(m,{param:b});if("string"===b.type){var v=m;let e=(0,d.stringToHex)(v),t=Math.ceil((0,u.size)(e)/32),n=[];for(let r=0;r<t;r++)n.push((0,o.padHex)((0,c.slice)(e,32*r,(r+1)*32),{dir:"right"}));return{dynamic:!0,encoded:(0,s.concat)([(0,o.padHex)((0,d.numberToHex)((0,u.size)(e),{size:32})),...n])}}throw new t.InvalidAbiEncodingTypeError(b.type,{docsPath:"/docs/contract/encodeAbiParameters"})}({param:e[y],value:b[y]}));return m}({params:e,values:b}));return 0===m.length?"0x":m},"getArrayComponents",0,p],933664)},853770,e=>{"use strict";var t=e.i(279383),n=e.i(736618),r=e.i(162859),a=e.i(738840),i=e.i(28106),s=e.i(696748),o=e.i(532276),u=e.i(916598),c=e.i(544316),d=e.i(933664);function l(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;
23if("tuple"===t)return e.components?.some(l);let n=(0,d.getArrayComponents)(e.type);return!!(n&&l({...e,type:n[1]}))}e.s(["decodeAbiParameters",0,function(e,f){let p="string"==typeof f?(0,u.hexToBytes)(f):f,b=(0,r.createCursor)(p);if(0===(0,a.size)(p)&&e.length>0)throw new t.AbiDecodingZeroDataError;if((0,a.size)(f)&&32>(0,a.size)(f))throw new t.AbiDecodingDataSizeTooSmallError({data:"string"==typeof f?f:(0,c.bytesToHex)(f),params:e,size:(0,a.size)(f)});let m=0,y=[];for(let r=0;r<e.length;++r){let a=e[r];b.setPosition(m);let[u,f]=function e(r,a,{staticPosition:u}){var f,p,b;let m=(0,d.getArrayComponents)(a.type);if(m){let[t,n]=m;return function(t,n,{length:r,staticPosition:a}){if(!r){let r=a+(0,o.bytesToNumber)(t.readBytes(32)),i=r+32;t.setPosition(r);let s=(0,o.bytesToNumber)(t.readBytes(32)),u=l(n),c=0,d=[];for(let r=0;r<s;++r){t.setPosition(i+(u?32*r:c));let[a,s]=e(t,n,{staticPosition:i});c+=s,d.push(a)}return t.setPosition(a+32),[d,32]}if(l(n)){let i=a+(0,o.bytesToNumber)(t.readBytes(32)),s=[];for(let a=0;a<r;++a){t.setPosition(i+32*a);let[r]=e(t,n,{staticPosition:i});s.push(r)}return t.setPosition(a+32),[s,32]}let i=0,s=[];for(let o=0;o<r;++o){let[r,o]=e(t,n,{staticPosition:a+i});i+=o,s.push(r)}return[s,i]}(r,{...a,type:n},{length:t,staticPosition:u})}if("tuple"===a.type)return function(t,n,{staticPosition:r}){let a=0===n.components.length||n.components.some(({name:e})=>!e),i=a?[]:{},s=0;if(l(n)){let u=r+(0,o.bytesToNumber)(t.readBytes(32));for(let r=0;r<n.components.length;++r){let o=n.components[r];t.setPosition(u+s);let[c,d]=e(t,o,{staticPosition:u});s+=d,i[a?r:o?.name]=c}return t.setPosition(r+32),[i,32]}for(let o=0;o<n.components.length;++o){let u=n.components[o],[c,d]=e(t,u,{staticPosition:r});i[a?o:u?.name]=c,s+=d}return[i,s]}(r,a,{staticPosition:u});if("address"===a.type){let e;return e=r.readBytes(32),[(0,n.checksumAddress)((0,c.bytesToHex)((0,i.sliceBytes)(e,-20))),32]}if("bool"===a.type){return f=r,[(0,o.bytesToBool)(f.readBytes(32),{size:32}),32]}if(a.type.startsWith("bytes"))return function(e,t,{staticPosition:n}){let[r,a]=t.type.split("bytes");if(!a){let t=(0,o.bytesToNumber)(e.readBytes(32));e.setPosition(n+t);let r=(0,o.bytesToNumber)(e.readBytes(32));if(0===r)return e.setPosition(n+32),["0x",32];let a=e.readBytes(r);return e.setPosition(n+32),[(0,c.bytesToHex)(a),32]}return[(0,c.bytesToHex)(e.readBytes(Number.parseInt(a,10),32)),32]}(r,a,{staticPosition:u});if(a.type.startsWith("uint")||a.type.startsWith("int")){let e,t,n;return p=r,e=(b=a).type.startsWith("int"),t=Number.parseInt(b.type.split("int")[1]||"256",10),n=p.readBytes(32),[t>48?(0,o.bytesToBigInt)(n,{signed:e}):(0,o.bytesToNumber)(n,{signed:e}),32]}if("string"===a.type)return function(e,{staticPosition:t}){let n=(0,o.bytesToNumber)(e.readBytes(32));e.setPosition(t+n);let r=(0,o.bytesToNumber)(e.readBytes(32));if(0===r)return e.setPosition(t+32),["",32];let a=e.readBytes(r,32),i=(0,o.bytesToString)((0,s.trim)(a));return e.setPosition(t+32),[i,32]}(r,{staticPosition:u});throw new t.InvalidAbiDecodingTypeError(a.type,{docsPath:"/docs/contract/decodeAbiParameters"})}(b,a,{staticPosition:0});m+=f,y.push(u)}return y}])},853017,459357,e=>{"use strict";var t=e.i(916598),n=e.i(702669),r=e.i(794608);let a=/^tuple(?<array>(\[(\d*)\])*)$/;function i(e){let t="",n=e.length;for(let i=0;i<n;i++)t+=function e(t){let n=t.type;if(a.test(t.type)&&"components"in t){n="(";let i=t.components.length;for(let r=0;r<i;r++)n+=e(t.components[r]),r<i-1&&(n+=", ");let s=(0,r.execTyped)(a,t.type);return n+=`)${s?.array||""}`,e({...t,type:n})}return("indexed"in t&&t.indexed&&(n=`${n}
23 indexed`),t.name)?`${n} ${t.name}`:n}(e[i]),i!==n-1&&(t+=", ");return t}var s=e.i(224704);let o=e=>(function(e){let t=!0,n="",r=0,a="",i=!1;for(let s=0;s<e.length;s++){let o=e[s];if(["(",")",","].includes(o)&&(t=!0),"("===o&&r++,")"===o&&r--,t){if(0===r){if(" "===o&&["event","function",""].includes(a))a="";else if(a+=o,")"===o){i=!0;break}continue}if(" "===o){","!==e[s-1]&&","!==n&&",("!==n&&(n="",t=!1);continue}a+=o,n+=o}}if(!i)throw new s.BaseError("Unable to normalize signature.");return a})((()=>"string"==typeof e?e:"function"===e.type?`function ${e.name}(${i(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs?.length?` returns (${i(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${i(e.inputs)})`:"error"===e.type?`error ${e.name}(${i(e.inputs)})`:"constructor"===e.type?`constructor(${i(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?`fallback() external${"payable"===e.stateMutability?" payable":""}`:"receive() external payable")());e.s(["toSignature",0,o],459357),e.s(["toSignatureHash",0,function(e){var r;return r=o(e),(0,n.keccak256)((0,t.toBytes)(r))}],853017)},754548,e=>{"use strict";let t=e.i(853017).toSignatureHash;e.s(["toEventSelector",0,t])},44285,e=>{"use strict";var t=e.i(28106),n=e.i(853017);e.s(["toFunctionSelector",0,e=>(0,t.slice)((0,n.toSignatureHash)(e),0,4)])},115320,e=>{"use strict";var t=e.i(279383),n=e.i(294987),r=e.i(443392),a=e.i(754548),i=e.i(44285);e.s(["getAbiItem",0,function(e){let s,{abi:o,args:u=[],name:c}=e,d=(0,n.isHex)(c,{strict:!1}),l=o.filter(e=>d?"function"===e.type?(0,i.toFunctionSelector)(e)===c:"event"===e.type&&(0,a.toEventSelector)(e)===c:"name"in e&&e.name===c);if(0!==l.length){if(1===l.length)return l[0];for(let e of l){if("inputs"in e){if(!u||0===u.length){if(!e.inputs||0===e.inputs.length)return e;continue}if(e.inputs&&0!==e.inputs.length&&e.inputs.length===u.length&&u.every((t,n)=>{let a="inputs"in e&&e.inputs[n];return!!a&&function e(t,n){let a=typeof t,i=n.type;switch(i){case"address":return(0,r.isAddress)(t,{strict:!1});case"bool":return"boolean"===a;case"function":case"string":return"string"===a;default:if("tuple"===i&&"components"in n)return Object.values(n.components).every((n,r)=>"object"===a&&e(Object.values(t)[r],n));if(/^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)?$/.test(i))return"number"===a||"bigint"===a;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(i))return"string"===a||t instanceof Uint8Array;
23if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(i))return Array.isArray(t)&&t.every(t=>e(t,{...n,type:i.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}(t,a)})){if(s&&"inputs"in s&&s.inputs){let n=function e(t,n,a){for(let i in t){let s=t[i],o=n[i];if("tuple"===s.type&&"tuple"===o.type&&"components"in s&&"components"in o)return e(s.components,o.components,a[i]);let u=[s.type,o.type];if(u.includes("address")&&u.includes("bytes20")||(u.includes("address")&&u.includes("string")||u.includes("address")&&u.includes("bytes"))&&(0,r.isAddress)(a[i],{strict:!1}))return u}}(e.inputs,s.inputs,u);if(n)throw new t.AbiItemAmbiguityError({abiItem:e,type:n[0]},{abiItem:s,type:n[1]})}s=e}}}return s||l[0]}}])},957969,e=>{"use strict";var t=e.i(279383),n=e.i(853770),r=e.i(115320);let a="/docs/contract/decodeFunctionResult";e.s(["decodeFunctionResult",0,function(e){let{abi:i,args:s,functionName:o,data:u}=e,c=i[0];if(o){let e=(0,r.getAbiItem)({abi:i,args:s,name:o});if(!e)throw new t.AbiFunctionNotFoundError(o,{docsPath:a});c=e}if("function"!==c.type)throw new t.AbiFunctionNotFoundError(void 0,{docsPath:a});if(!c.outputs)throw new t.AbiFunctionOutputsNotFoundError(c.name,{docsPath:a});let d=(0,n.decodeAbiParameters)(c.outputs,u);return d&&d.length>1?d:d&&1===d.length?d[0]:void 0}])},586651,853517,e=>{"use strict";var t=e.i(351674),n=e.i(933664),r=e.i(279383),a=e.i(44285),i=e.i(294930),s=e.i(115320);let o="/docs/contract/encodeFunctionData";function u(e){let{abi:t,args:n,functionName:u}=e,c=t[0];if(u){let e=(0,s.getAbiItem)({abi:t,args:n,name:u});if(!e)throw new r.AbiFunctionNotFoundError(u,{docsPath:o});c=e}if("function"!==c.type)throw new r.AbiFunctionNotFoundError(void 0,{docsPath:o});return{abi:[c],functionName:(0,a.toFunctionSelector)((0,i.formatAbiItem)(c))}}e.s(["prepareEncodeFunctionData",0,u],853517),e.s(["encodeFunctionData",0,function(e){let{args:r}=e,{abi:a,functionName:i}=1===e.abi.length&&e.functionName?.startsWith("0x")?e:u(e),s=a[0],o="inputs"in s&&s.inputs?(0,n.encodeAbiParameters)(s.inputs,r??[]):void 0;return(0,t.concatHex)([i,o??"0x"])}],586651)},39444,e=>{"use strict";var t=e.i(224704);class n extends t.BaseError{constructor({blockNumber:e,chain:t,contract:n}){super(`Chain "${t.name}" does not support contract "${n.name}".`,{metaMessages:["This could be due to any of the following:",...e&&n.blockCreated&&n.blockCreated>e?[`- The contract "${n.name}" was not deployed until block ${n.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract "${n.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}class r extends t.BaseError{constructor({chain:e,currentChainId:t}){super(`The current chain of the wallet (id: ${t}) does not match the target chain for the transaction (id: ${e.id} – ${e.name}).`,{metaMessages:[`Current Chain ID: ${t}`,`Expected Chain ID: ${e.id} – ${e.name}`],name:"ChainMismatchError"})}}class a extends t.BaseError{constructor(){super("No chain was provided to the request.\nPlease provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient.",{name:"ChainNotFoundError"})}}class i extends t.BaseError{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}class s extends t.BaseError{constructor({chainId:e}){super("number"==typeof e?`Chain ID "${e}
23" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}e.s(["ChainDoesNotSupportContract",0,n,"ChainMismatchError",0,r,"ChainNotFoundError",0,a,"ClientChainNotConfiguredError",0,i,"InvalidChainIdError",0,s])},979656,e=>{"use strict";var t=e.i(39444);e.s(["getChainContractAddress",0,function({blockNumber:e,chain:n,contract:r}){let a=n?.contracts?.[r];if(!a)throw new t.ChainDoesNotSupportContract({chain:n,contract:{name:r}});if(e&&a.blockCreated&&a.blockCreated>e)throw new t.ChainDoesNotSupportContract({blockNumber:e,chain:n,contract:{name:r,blockCreated:a.blockCreated}});return a.address}])},706375,e=>{"use strict";e.s(["panicReasons",0,{1:"An `assert` condition failed.",17:"Arithmetic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},"solidityError",0,{inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},"solidityPanic",0,{inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}])},106797,e=>{"use strict";var t=e.i(706375),n=e.i(279383),r=e.i(28106),a=e.i(44285),i=e.i(853770),s=e.i(294930);e.s(["decodeErrorResult",0,function(e){let{abi:o,data:u,cause:c}=e,d=(0,r.slice)(u,0,4);if("0x"===d)throw new n.AbiDecodingZeroDataError({cause:c});let l=[...o||[],t.solidityError,t.solidityPanic].find(e=>"error"===e.type&&d===(0,a.toFunctionSelector)((0,s.formatAbiItem)(e)));if(!l)throw new n.AbiErrorSignatureNotFoundError(d,{docsPath:"/docs/contract/decodeErrorResult",cause:c});return{abiItem:l,args:"inputs"in l&&l.inputs&&l.inputs.length>0?(0,i.decodeAbiParameters)(l.inputs,(0,r.slice)(u,4)):void 0,errorName:l.name}}])},927607,e=>{"use strict";e.s(["stringify",0,(e,t,n)=>JSON.stringify(e,(e,n)=>{let r="bigint"==typeof n?n.toString():n;return"function"==typeof t?t(e,r):r},n)])},160992,e=>{"use strict";var t=e.i(927607);e.s(["formatAbiItemWithArgs",0,function({abiItem:e,args:n,includeFunctionName:r=!0,includeName:a=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${r?e.name:""}(${e.inputs.map((e,r)=>`${a&&e.name?`${e.name}: `:""}${"object"==typeof n[r]?(0,t.stringify)(n[r]):n[r]}`).join(", ")})`}])},457276,e=>{"use strict";e.s(["etherUnits",0,{gwei:9,wei:18},"gweiUnits",0,{ether:-9,wei:9},"weiUnits",0,{ether:-18,gwei:-9}])},742934,e=>{"use strict";e.s(["formatUnits",0,function(e,t){let n=e.toString(),r=n.startsWith("-");r&&(n=n.slice(1));let[a,i]=[(n=n.padStart(t,"0")).slice(0,n.length-t),n.slice(n.length-t)];return i=i.replace(/(0+)$/,""),`${r?"-":""}${a||"0"}${i?`.${i}`:""}`}])},487452,e=>{"use strict";var t=e.i(457276),n=e.i(742934);e.s(["formatEther",0,function(e,r="wei"){return(0,n.formatUnits)(e,t.etherUnits[r])}])},269048,e=>{"use strict";var t=e.i(457276),n=e.i(742934);e.s(["formatGwei",0,function(e,r="wei"){return(0,n.formatUnits)(e,t.gweiUnits[r])}])},649217,e=>{"use strict";var t=e.i(224704);class n extends t.BaseError{constructor({address:e}){super(`State for account "${e}" is set multiple times.`,{name:"AccountStateConflictError"})}}class r extends t.BaseError{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function a(e){return e.reduce((e,{slot:t,value:n})=>`${e} ${t}: ${n} 24`,"")}e.s(["AccountStateConflictError",0,n,"StateAssignmentConflictError",0,r,"prettyStateOverride",0,function(e){return e.reduce((e,{address:t,...n})=>{let r=`${e} ${t}: 25`;return n.nonce&&(r+=` nonce: ${n.nonce} 26`),n.balance&&(r+=` balance: ${n.balance} 27`),n.code&&(r+=` code: ${n.code} 28`),n.state&&(r+=" state:\n",r+=a(n.state)),n.stateDiff&&(r+=" stateDiff:\n",r+=a(n.stateDiff)),r}," State Override:\n").slice(0,-1)}])},803116,e=>{"use strict";var t=e.i(487452),n=e.i(269048),r=e.i(224704);function a(e){let t=Object.entries(e).map(([e,t])=>
28void 0===t||!1===t?null:[e,t]).filter(Boolean),n=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>` ${`${e}:`.padEnd(n+1)} ${t}`).join("\n")}class i extends r.BaseError{constructor(){super("Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.\nUse `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others.",{name:"FeeConflictError"})}}class s extends r.BaseError{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class o extends r.BaseError{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",a(e),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}class u extends r.BaseError{constructor({serializedType:e}){super(`Serialized transaction type "${e}" is invalid.`,{name:"InvalidSerializedTransactionType"}),Object.defineProperty(this,"serializedType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedType=e}}class c extends r.BaseError{constructor({attributes:e,serializedTransaction:t,type:n}){const r=Object.entries(e).map(([e,t])=>void 0===t?e:void 0).filter(Boolean);super(`Invalid serialized transaction of type "${n}" was provided.`,{metaMessages:[`Serialized Transaction: "${t}"`,r.length>0?`Missing Attributes: ${r.join(", ")}`:""].filter(Boolean),name:"InvalidSerializedTransactionError"}),Object.defineProperty(this,"serializedTransaction",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedTransaction=t,this.type=n}}class d extends r.BaseError{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}class l extends r.BaseError{constructor(e,{account:r,docsPath:i,chain:s,data:o,gas:u,gasPrice:c,maxFeePerGas:d,maxPriorityFeePerGas:l,nonce:f,to:p,value:b}){const m=a({chain:s&&`${s?.name} (id: ${s?.id})`,from:r?.address,to:p,value:void 0!==b&&`${(0,t.formatEther)(b)} ${s?.nativeCurrency?.symbol||"ETH"}`,data:o,gas:u,gasPrice:void 0!==c&&`${(0,n.formatGwei)(c)} gwei`,maxFeePerGas:void 0!==d&&`${(0,n.formatGwei)(d)} gwei`,maxPriorityFeePerGas:void 0!==l&&`${(0,n.formatGwei)(l)} gwei`,nonce:f});super(e.shortMessage,{cause:e,docsPath:i,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",m].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class f extends r.BaseError{constructor({blockHash:e,blockNumber:t,blockTag:n,hash:r,index:a}){let i="Transaction";n&&void 0!==a&&(i=`Transaction at block time "${n}" at index "${a}"`),e&&void 0!==a&&(i=`Transaction at block hash "${e}" at index "${a}"`),t&&void 0!==a&&(i=`Transaction at block number "${t}" at index "${a}"`),r&&(i=`Transaction with hash "${r}"`),super(`${i} could not be found.`,{name:"TransactionNotFoundError"})}}class p extends r.BaseError{constructor({hash:e}){super(`Transaction receipt with hash "${e}" could not be found. The Transaction may not be processed on a block yet.`,{name:"TransactionReceiptNotFoundError"})}}class b extends r.BaseError{constructor({receipt:e}){super(`Transaction with hash "${e.transactionHash}" reverted.`,{metaMessages:['The receipt marked the transaction as "reverted". This could mean that the function on the contract you are trying to call threw an error.'," ","You can attempt to extract the revert reason by:","- calling the `simulateContract` or `simulateCalls` Action with the `abi` and `functionName` of the contract","- using the `call` Action with raw `data`"],name:"TransactionReceiptRevertedError"}),Object.defineProperty(this,"receipt",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.receipt=e}}class m extends r.BaseError{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}e.s(["FeeConflictError",0,i,"InvalidLegacyVError",0,s,"InvalidSerializableTransactionError",0,o,"InvalidSerializedTransactionError",0,c,"InvalidSerializedTransactionTypeError",0,u,"InvalidStorageKeySizeError",0,d,"TransactionExecutionError",0,l,"TransactionNotFoundError",0,f,"TransactionReceiptNotFoundError",0,p,"TransactionReceiptRevertedError",0,b,"WaitForTransactionReceiptTimeoutError",0,m,"prettyPrint",0,a])},877692,e=>{"use strict";e.s(["getAbortError",0,function(e){if(e?.reason)return e.reason;if("function"==typeof DOMException)return new DOMException("This operation was aborted","AbortError");let t=Error("This operation was aborted");return t.name="AbortError",t},"getContractAddress",0,e=>e,"getUrl",0,e=>{try{let t=new URL(e);if(!t.username&&!t.password)return e;return t.username="",t.password="",t.toString()}catch{return e}},"isAbortError",0,function(e){return"object"==typeof e&&null!==e&&"name"in e&&"AbortError"===e.name}])},455483,e=>{"use strict";var t=e.i(138981),n=e.i(706375),r=e.i(106797),a=e.i(294930),i=e.i(160992),s=e.i(115320),o=e.i(487452),u=e.i(269048),c=e.i(279383),d=e.i(224704),l=e.i(649217),f=e.i(803116),p=e.i(877692);class b extends d.BaseError{constructor(e,{account:n,docsPath:r,chain:a,data:i,gas:s,gasPrice:c,maxFeePerGas:d,maxPriorityFeePerGas:p,nonce:b,to:m,value:y,stateOverride:h}){const g=n?(0,t.parseAccount)(n):void 0;let v=(0,f.prettyPrint)({from:g?.address,to:m,value:void 0!==y&&`${(0,o.formatEther)(y)} ${a?.nativeCurrency?.symbol||"ETH"}`,data:i,gas:s,gasPrice:void 0!==c&&`${(0,u.formatGwei)(c)} gwei`,maxFeePerGas:void 0!==d&&`${(0,u.formatGwei)(d)} gwei`,maxPriorityFeePerGas:void 0!==p&&`${(0,u.formatGwei)(p)} gwei`,nonce:b});h&&(v+=` 29${(0,l.prettyStateOverride)(h)}`),super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",v].filter(
29Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class m extends d.BaseError{constructor(e,{abi:t,args:n,contractAddress:r,docsPath:o,functionName:u,sender:c}){const d=(0,s.getAbiItem)({abi:t,args:n,name:u}),l=d?(0,i.formatAbiItemWithArgs)({abiItem:d,args:n,includeFunctionName:!1,includeName:!1}):void 0,b=d?(0,a.formatAbiItem)(d,{includeName:!0}):void 0,m=(0,f.prettyPrint)({address:r&&(0,p.getContractAddress)(r),function:b,args:l&&"()"!==l&&`${[...Array(u?.length??0).keys()].map(()=>" ").join("")}${l}`,sender:c});super(e.shortMessage||`An unknown error occurred while executing the contract function "${u}".`,{cause:e,docsPath:o,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],m&&"Contract Call:",m].filter(Boolean),name:"ContractFunctionExecutionError"}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=t,this.args=n,this.cause=e,this.contractAddress=r,this.functionName=u,this.sender=c}}class y extends d.BaseError{constructor({abi:e,data:t,functionName:s,message:o,cause:u}){let d,l,f,p,b;if(t&&"0x"!==t)try{const{abiItem:s,errorName:o,args:c}=l=(0,r.decodeErrorResult)({abi:e,data:t,cause:u});if("Error"===o)p=c[0];else if("Panic"===o){const[e]=c;p=n.panicReasons[e]}else{const e=s?(0,a.formatAbiItem)(s,{includeName:!0}):void 0,t=s&&c?(0,i.formatAbiItemWithArgs)({abiItem:s,args:c,includeFunctionName:!1,includeName:!1}):void 0;f=[e?`Error: ${e}`:"",t&&"()"!==t?` ${[...Array(o?.length??0).keys()].map(()=>" ").join("")}${t}`:""]}}catch(e){d=e}else o&&(p=o);d instanceof c.AbiErrorSignatureNotFoundError&&(b=d.signature,f=[`Unable to decode signature "${b}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://4byte.sourcify.dev/?q=${b}.`]),super(p&&"execution reverted"!==p||b?[`The contract function "${s}" reverted with the following ${b?"signature":"reason"}:`,p||b].join("\n"):`The contract function "${s}" reverted.`,{cause:d??u,metaMessages:f,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"raw",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=l,this.raw=t,this.reason=p,this.signature=b}}class h extends d.BaseError{constructor({functionName:e,cause:t}){super(`The contract function "${e}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${e}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."],name:"ContractFunctionZeroDataError",cause:t})}}class g extends d.BaseError{constructor({factory:e}){super(`Deployment for counterfactual contract call failed${e?` for factory "${e}".`:""}`,{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}class v extends d.BaseError{constructor({data:e,message:t}){super(t||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}e.s(["CallExecutionError",0,b,"ContractFunctionExecutionError",0,m,"ContractFunctionRevertedError",0,y,"ContractFunctionZeroDataError",0,h,"CounterfactualDeploymentFailedError",0,g,"RawContractError",0,v])},97739,e=>{"use strict";var t=e.i(927607),n=e.i(224704),r=e.i(877692);class a extends n.BaseError{constructor({body:e,cause:n,details:a,headers:i,status:s,url:o}){super("HTTP request failed.",{cause:n,details:a,metaMessages:[s&&`Status: ${s}`,`URL: ${(0,r.getUrl)(o)}`,e&&`Request body: ${(0,t.stringify)(e)}
29`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=e,this.headers=i,this.status=s,this.url=o}}class i extends n.BaseError{constructor({body:e,cause:n,details:a,url:i}){super("WebSocket request failed.",{cause:n,details:a,metaMessages:[`URL: ${(0,r.getUrl)(i)}`,e&&`Request body: ${(0,t.stringify)(e)}`].filter(Boolean),name:"WebSocketRequestError"}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=i}}class s extends n.BaseError{constructor({body:e,error:n,url:a}){super("RPC Request failed.",{cause:n,details:n.message,metaMessages:[`URL: ${(0,r.getUrl)(a)}`,`Request body: ${(0,t.stringify)(e)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=n.code,this.data=n.data,this.url=a}}class o extends n.BaseError{constructor({url:e}={}){super("The socket has been closed.",{metaMessages:[e&&`URL: ${(0,r.getUrl)(e)}`].filter(Boolean),name:"SocketClosedError"}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=e}}class u extends n.BaseError{constructor({body:e,url:n}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,r.getUrl)(n)}`,`Request body: ${(0,t.stringify)(e)}`],name:"TimeoutError"}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=n}}e.s(["HttpRequestError",0,a,"RpcRequestError",0,s,"SocketClosedError",0,o,"TimeoutError",0,u,"WebSocketRequestError",0,i])},851963,794608,e=>{"use strict";function t(e,t){let n=e.exec(t);return n?.groups}e.s(["bytesRegex",0,/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,"execTyped",0,t,"integerRegex",0,/^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)?$/,"isTupleRegex",0,/^\(.+?\).*?$/],794608);let n=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/,r=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/,a=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/,i=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/,s=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/,o=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/,u=/^receive\(\) external payable$/,c=new Set(["memory","indexed","storage","calldata"]),d=new Set(["indexed"]),l=new Set(["calldata","memory","storage"]);e.s(["eventModifiers",0,d,"execConstructorSignature",0,function(e){return t(s,e)},"execErrorSignature",0,function(e){return t(n,e)},"execEventSignature",0,function(e){return t(r,e)},"execFallbackSignature",0,function(e){return t(o,e)},"execFunctionSignature",0,function(e){return t(a,e)},"execStructSignature",0,function(e){return t(i,e)},"functionModifiers",0,l,"isConstructorSignature",0,function(e){return s.test(e)},"isErrorSignature",0,function(e){return n.test(e)},"isEventSignature",0,function(e){return r.test(e)},"isFallbackSignature",0,function(e){return o.test(e)},"isFunctionSignature",0,function(e){return a.test(e)},"isReceiveSignature",0,function(e){return u.test(e)},"isStructSignature",0,function(e){return i.test(e)},"modifiers",0,c],851963)},987974,e=>{"use strict";class t extends Error{constructor(e,n={}){const r=n.cause instanceof t?n.cause.details:n.cause?.message?n.cause.message:n.details,a=n.cause instanceof t&&n.cause.docsPath||n.docsPath;super([e||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...a?[`Docs: https://abitype.dev${a}`]:[],...r?[`Details: ${r}`]:[],"Version: [email protected]"].join("\n")),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"}),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=a,this.metaMessages=n.metaMessages,this.shortMessage=e}}e.s(["BaseError",0,t],987974)},224606,244911,e=>{"use strict";var t=e.i(987974);class n extends t.BaseError{constructor({signature:e}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}class r extends t.BaseError{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" 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"})}}class a extends t.BaseError{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}e.s(["InvalidAbiItemError",0,n,"UnknownSolidityTypeError",0,a,"UnknownTypeError",0,r],224606);var i=t;class s extends i.BaseError{constructor({param:e}){super("Failed to parse ABI parameter.",{details:`parseAbiParameter(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiparameter-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParameterError"})}}class o extends i.BaseError{constructor({params:e}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}class u extends i.BaseError{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class c extends i.BaseError{constructor({param:e,name:t}){super("Invalid ABI parameter.",{details:e,metaMessages:[`"${t}" 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"})}}class d extends i.BaseError{constructor({param:e,type:t,modifier:n}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${n}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class l extends i.BaseError{constructor({param:e,type:t,modifier:n}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${n}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${n}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class f extends i.BaseError{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invali
29d."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}e.s(["InvalidAbiParameterError",0,s,"InvalidAbiParametersError",0,o,"InvalidAbiTypeParameterError",0,f,"InvalidFunctionModifierError",0,l,"InvalidModifierError",0,d,"InvalidParameterError",0,u,"SolidityProtectedKeywordError",0,c],244911)},213661,e=>{"use strict";var t=e.i(987974);class n extends t.BaseError{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class r extends t.BaseError{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class a extends t.BaseError{constructor({signature:e}){super("Invalid struct signature.",{details:e,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}e.s(["InvalidSignatureError",0,n,"InvalidStructSignatureError",0,a,"UnknownSignatureError",0,r])},863614,e=>{"use strict";var t=e.i(987974);class n extends t.BaseError{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}e.s(["CircularReferenceError",0,n])},992739,e=>{"use strict";var t=e.i(987974);class n extends t.BaseError{constructor({current:e,depth:t}){super("Unbalanced parentheses.",{metaMessages:[`"${e.trim()}" has too many ${t>0?"opening":"closing"} parentheses.`],details:`Depth "${t}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}e.s(["InvalidParenthesisError",0,n])},628118,602840,151265,e=>{"use strict";var t=e.i(851963),n=e.i(794608),r=e.i(224606),a=e.i(244911),i=e.i(213661),s=e.i(863614),o=e.i(992739);let u=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}]]);function c(e,n={}){if((0,t.isFunctionSignature)(e))return function(e,n={}){let r=(0,t.execFunctionSignature)(e);if(!r)throw new i.InvalidSignatureError({signature:e,type:"function"});let a=b(r.parameters),s=[],o=a.length;for(let e=0;e<o;e++)s.push(p(a[e],{modifiers:t.functionModifiers,structs:n,type:"function"}));let u=[];if(r.returns){let e=b(r.returns),a=e.length;for(let r=0;r<a;r++)u.push(p(e[r],{modifiers:t.functionModifiers,structs:n,type:"function"}))}return{name:r.name,type:"function",stateMutability:r.stateMutability??"nonpayable",inputs:s,outputs:u}}(e,n);if((0,t.isEventSignature)(e))return function(e,n={}){let r=(0,t.execEventSignature)(e);if(!r)throw new i.InvalidSignatureError({signature:e,type:"event"});let a=b(r.parameters),s=[],o=a.length;for(let e=0;e<o;e++)s.push(p(a[e],{modifiers:t.eventModifiers,structs:n,type:"event"}));return{name:r.name,type:"event",inputs:s}}
29(e,n);if((0,t.isErrorSignature)(e))return function(e,n={}){let r=(0,t.execErrorSignature)(e);if(!r)throw new i.InvalidSignatureError({signature:e,type:"error"});let a=b(r.parameters),s=[],o=a.length;for(let e=0;e<o;e++)s.push(p(a[e],{structs:n,type:"error"}));return{name:r.name,type:"error",inputs:s}}(e,n);if((0,t.isConstructorSignature)(e))return function(e,n={}){let r=(0,t.execConstructorSignature)(e);if(!r)throw new i.InvalidSignatureError({signature:e,type:"constructor"});let a=b(r.parameters),s=[],o=a.length;for(let e=0;e<o;e++)s.push(p(a[e],{structs:n,type:"constructor"}));return{type:"constructor",stateMutability:r.stateMutability??"nonpayable",inputs:s}}(e,n);if((0,t.isFallbackSignature)(e)){var r=e;let n=(0,t.execFallbackSignature)(r);if(!n)throw new i.InvalidSignatureError({signature:r,type:"fallback"});return{type:"fallback",stateMutability:n.stateMutability??"nonpayable"}}if((0,t.isReceiveSignature)(e))return{type:"receive",stateMutability:"payable"};throw new i.UnknownSignatureError({signature:e})}let d=/^(?<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$_]*))?$/,l=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,f=/^u?int$/;function p(e,i){var s,o;let c,h=function(e,t,n){let r="";if(n)for(let e of Object.entries(n)){if(!e)continue;let t="";for(let n of e[1])t+=`[${n.type}${n.name?`:${n.name}`:""}]`;r+=`(${e[0]}{${t}})`}return t?`${t}:${e}${r}`:`${e}${r}`}(e,i?.type,i?.structs);if(u.has(h))return u.get(h);let g=n.isTupleRegex.test(e),v=(0,n.execTyped)(g?l:d,e);if(!v)throw new a.InvalidParameterError({param:e});if(v.name&&("address"===(s=v.name)||"bool"===s||"function"===s||"string"===s||"tuple"===s||n.bytesRegex.test(s)||n.integerRegex.test(s)||y.test(s)))throw new a.SolidityProtectedKeywordError({param:e,name:v.name});let w=v.name?{name:v.name}:{},x="indexed"===v.modifier?{indexed:!0}:{},E=i?.structs??{},$={};if(g){c="tuple";let e=b(v.type),t=[],n=e.length;for(let r=0;r<n;r++)t.push(p(e[r],{structs:E}));$={components:t}}else if(v.type in E)c="tuple",$={components:E[v.type]};else if(f.test(v.type))c=`${v.type}256`;else if("address payable"===v.type)c="address";else if(c=v.type,i?.type!=="struct"&&!m(c))throw new r.UnknownSolidityTypeError({type:c});if(v.modifier){if(!i?.modifiers?.has?.(v.modifier))throw new a.InvalidModifierError({param:e,type:i?.type,modifier:v.modifier});if(t.functionModifiers.has(v.modifier)&&(o=c,!v.array&&"bytes"!==o&&"string"!==o&&"tuple"!==o))throw new a.InvalidFunctionModifierError({param:e,type:i?.type,modifier:v.modifier})}let A={type:`${c}${v.array??""}`,...w,...x,...$};return u.set(h,A),A}function b(e,t=[],n="",r=0){let a=e.trim().length;for(let i=0;i<a;i++){let a=e[i],s=e.slice(i+1);switch(a){case",":return 0===r?b(s,[...t,n.trim()]):b(s,t,`${n}${a}`,r);case"(":return b(s,t,`${n}${a}`,r+1);case")":return b(s,t,`${n}${a}`,r-1);default:return b(s,t,`${n}${a}`,r)}}if(""===n)return t;if(0!==r)throw new o.InvalidParenthesisError({current:n,depth:r});return t.push(n.trim()),t}function m(e){return"address"===e||"bool"===e||"function"===e||"string"===e||n.bytesRegex.test(e)||n.integerRegex.test(e)}let y=/^(?: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 h(e){let o={},u=e.length;for(let n=0;n<u;n++){let r=e[n];if(!(0,t.isStructSignature)(r))continue;let a=(0,t.execStructSignature)(r);if(!a)throw new i.InvalidSignatureError({signature:r,type:"struct"});let s=a.properties.split(";"),u=[],c=s.length;for(let e=0;e<c;e++){let t=s[e].trim();if(!t)continue;let n=p(t,{type:"struct"});u.push(n)}if(!u.length)throw new i.InvalidStructSignatureError({signature:r});o[a.name]=u}let c={},d=Object.entries(o),l=d.length;for(let e=0;e<l;e++){let[t,i]=d[e];c[t]=function e(t=[],i={},o=new Set){let u=[],c=t.length;for(let d=0;d<c;d++){let c=t[d];if(n.isTupleRegex.test(c.type))u.push(c);else{let t=(0,n.execTyped)(g,c.type);if(!t?.type)throw new a.InvalidAbiTypeParameterError({abiParameter:c});let{array:d,type:l}=t;if(l in i){if(o.has(l))throw new s.CircularReferenceError({type:l});u.push({...c,type:`tuple${d??""}`,components:e(i[l],i,new Set([...o,l]))})}else if(m(l))u.push(c);else throw new r.UnknownTypeError({type:l})}}return u}(i,o)}return c}e.s(["isSolidityType",0,m,"parseAbiParameter",0,p,"parseSignature",0,c,"splitParameters",0,b],602840);let g=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;e.s(["parseStructs",0,h],151265),e.s(["parseAbi",0,function(e){let n=h(e),r=[],a=e.length;for(let i=0;i<a;i++){let a=e[i];(0,t.isStructSignature)(a)||r.push(c(a,n))}return r}],628118)},692138,440898,950436,758883,e=>{"use strict";e.s(["IntegerOutOfRangeError",()=>Y,"InvalidLengthError",()=>ee,"SizeExceedsPaddingSizeError",()=>er,"SizeOverflowError",()=>et,"SliceOffsetOutOfBoundsError",()=>en,"assert",()=>C,"concat",()=>F,"from",()=>R,"fromBoolean",()=>N,"fromBytes",()=>j,"fromNumber",()=>k,"fromString",()=>U,"padLeft",()=>H,"padRight",()=>D,"random",()=>L,"size",()=>_,"slice",()=>G,"toBigInt",()=>q,"toBytes",()=>W,"toNumber",()=>Z,"toString",()=>J,"trimLeft",()=>V,"validate",()=>K],692138),e.s(["SizeExceedsPaddingSizeError",()=>M,"SizeOverflowError",()=>P,"SliceOffsetOutOfBoundsError",()=>S,"concat",()=>l,"from",()=>f,"fromHex",()=>p,"fromString",()=>b,"isEqual",()=>m,"random",()=>y,"size",()=>h,"slice",()=>g,"toBigInt",()=>v,"toBoolean",()=>w,"toNumber",()=>x,"toString",()=>E,"trimLeft",()=>$,"trimRight",()=>A,"validate",()=>I],758883);var t=e.i(178120);
29class n extends Error{static setStaticOptions(e){n.prototype.docsOrigin=e.docsOrigin,n.prototype.showVersion=e.showVersion,n.prototype.version=e.version}constructor(e,t={}){const r=(()=>{if(t.cause instanceof n){if(t.cause.details)return t.cause.details;if(t.cause.shortMessage)return t.cause.shortMessage}return t.cause&&"details"in t.cause&&"string"==typeof t.cause.details?t.cause.details:t.cause?.message?t.cause.message:t.details})(),a=t.cause instanceof n&&t.cause.docsPath||t.docsPath,i=t.docsOrigin??n.prototype.docsOrigin,s=`${i}${a??""}`,o=!!(t.version??n.prototype.showVersion),u=t.version??n.prototype.version;super([e||"An error occurred.",...t.metaMessages?["",...t.metaMessages]:[],...r||a||o?["",r?`Details: ${r}`:void 0,a?`See: ${s}`:void 0,o?`Version: ${u}`:void 0]:[]].filter(e=>"string"==typeof e).join("\n"),t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsOrigin",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"showVersion",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.cause=t.cause,this.details=r,this.docs=s,this.docsOrigin=i,this.docsPath=a,this.shortMessage=e,this.showVersion=o,this.version=u}walk(e){return function e(t,n){return n?.(t)?t:t&&"object"==typeof t&&"cause"in t&&t.cause?e(t.cause,n):n?null:t}(this,e)}}function r(e,t){if(h(e)>t)throw new P({givenSize:h(e),maxSize:t})}Object.defineProperty(n,"defaultStaticOptions",{enumerable:!0,configurable:!0,writable:!0,value:{docsOrigin:"https://oxlib.sh",showVersion:!1,version:"[email protected]"}}),n.setStaticOptions(n.defaultStaticOptions),e.s(["BaseError",0,n],440898);function a(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:void 0}function i(e,t={}){let{dir:n="left"}=t,r=e,a=0;for(let e=0;e<r.length-1;e++)if("0"===r["left"===n?e:r.length-e-1].toString())a++;else break;return"left"===n?r.slice(a):r.slice(0,r.length-a)}function s(e,t){if(_(e)>t)throw new et({givenSize:_(e),maxSize:t})}function o(e,t={}){let{dir:n,size:r=32}=t;if(0===r)return e;let a=e.replace("0x","");if(a.length>2*r)throw new er({size:Math.ceil(a.length/2),targetSize:r,type:"Hex"});return`0x${a["right"===n?"padEnd":"padStart"](2*r,"0")}`}function u(e,t,n){return JSON.stringify(e,(e,n)=>"function"==typeof t?t(e,n):"bigint"==typeof n?n.toString()+"#__bigint":n,n)}e.s(["stringify",0,u],950436);let c=new TextDecoder,d=new TextEncoder;function l(...e){let t=0;for(let n of e)t+=n.length;let n=new Uint8Array(t);for(let t=0,r=0;t<e.length;t++){let a=e[t];n.set(a,r),r+=a.length}return n}function f(e){var t;return e instanceof Uint8Array?e:"string"==typeof e?p(e):(t=e)instanceof Uint8Array?t:new Uint8Array(t)}function p(e,t={}){let{size:r}=t,i=e;r&&(s(e,r),i=D(e,r));let o=i.slice(2);o.length%2&&(o=`0${o}`);let u=o.length/2,c=new Uint8Array(u);for(let e=0,t=0;e<u;e++){let r=a(o.charCodeAt(t++)),i=a(o.charCodeAt(t++));if(void 0===r||void 0===i)throw new n(`Invalid byte sequence ("${o[t-2]}${o[t-1]}" in "${o}").`);c[e]=r<<4|i}return c}function b(e,t={}){let{size:n}=t,a=d.encode(e);return"number"==typeof n?(r(a,n),function(e,t={}){let{dir:n,size:r=32}=t;if(0===r)return e;if(e.length>r)throw new M({size:e.length,targetSize:r,type:"Bytes"});let a=new Uint8Array(r);for(let t=0;t<r;t++){let i="right"===n;a[i?t:r-t-1]=e[i?t:e.length-t-1]}return a}(a,{dir:"right",size:n})):a}function m(e,n){return(0,t.equalBytes)(e,n)}function y(e){return crypto.getRandomValues(new Uint8Array(e))}function h(e){return e.length}function g(e,t,n,r={}){let{strict:a}=r;if("number"==typeof t&&t>0&&t>h(e)-1)throw new S({offset:t,position:"start",size:h(e)});let i=e.slice(t,n);return a&&function(e,t,n){if("number"==typeof t&&"number"==typeof n&&h(e)!==n-t)throw new S({offset:n,position:"end",size:h(e)})}(i,t,n),i}function v(e,t={}){let{size:n}=t;return void 0!==n&&r(e,n),q(j(e,t),t)}function w(e,t={}){let{size:n}=t,a=e;if(void 0!==n&&(r(a,n),a=$(a)),a.length>1||a[0]>1)throw new T(a);return!!a[0]}function x(e,t={}){let{size:n}=t;return void 0!==n&&r(e,n),Z(j(e,t),t)}function E(e,t={}){let{size:n}=t,a=e;return void 0!==n&&(r(a,n),a=A(a)),c.decode(a)}function $(e){return i(e,{dir:"left"})}function A(e){return i(e,{dir:"right"})}function I(e){try{if(!(e instanceof Uint8Array)&&(!e||"object"!=typeof e||!("BYTES_PER_ELEMENT"in e)||1!==e.BYTES_PER_ELEMENT||"Uint8Array"!==e.constructor.name))throw new B(e);return!0}catch{return!1}}class T extends n{constructor(e){super(`Bytes value \`${e}\` is not a valid boolean.`,{metaMessages:["The bytes array must contain a single byte of either a `0` or `1` value."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesBooleanError"})}}class B extends n{constructor(e){super(`Value \`${"object"==typeof e?u(e):e}\` of type \`${typeof e}
29\` is an invalid Bytes value.`,{metaMessages:["Bytes values must be of type `Bytes`."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesTypeError"})}}class P extends n{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeOverflowError"})}}class S extends n{constructor({offset:e,position:t,size:n}){super(`Slice ${"start"===t?"starting":"ending"} at offset \`${e}\` is out-of-bounds (size: \`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SliceOffsetOutOfBoundsError"})}}class M extends n{constructor({size:e,targetSize:t,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeExceedsPaddingSizeError"})}}let z=new TextEncoder,O=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function C(e,t={}){let{strict:n=!1}=t;if(!e||"string"!=typeof e)throw new X(e);if(n&&!/^0x[0-9a-fA-F]*$/.test(e)||!e.startsWith("0x"))throw new Q(e)}function F(...e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}function R(e){return e instanceof Uint8Array?j(e):Array.isArray(e)?j(new Uint8Array(e)):e}function N(e,t={}){let n=`0x${Number(e)}`;return"number"==typeof t.size?(s(n,t.size),H(n,t.size)):n}function j(e,t={}){let n="";for(let t=0;t<e.length;t++)n+=O[e[t]];let r=`0x${n}`;return"number"==typeof t.size?(s(r,t.size),D(r,t.size)):r}function k(e,t={}){let n,{signed:r,size:a}=t,i=BigInt(e);a?n=r?(1n<<8n*BigInt(a)-1n)-1n:2n**(8n*BigInt(a))-1n:"number"==typeof e&&(n=BigInt(Number.MAX_SAFE_INTEGER));let s="bigint"==typeof n&&r?-n-1n:0;if(n&&i>n||i<s){let t="bigint"==typeof e?"n":"";throw new Y({max:n?`${n}${t}`:void 0,min:`${s}${t}`,signed:r,size:a,value:`${e}${t}`})}let o=(r&&i<0?BigInt.asUintN(8*a,BigInt(i)):i).toString(16),u=`0x${o}`;return a?H(u,a):u}function U(e,t={}){return j(z.encode(e),t)}function H(e,t){return o(e,{dir:"left",size:t})}function D(e,t){return o(e,{dir:"right",size:t})}function L(e){return j(y(e))}function G(e,t,n,r={}){let{strict:a}=r;if("number"==typeof t&&t>0&&t>_(e)-1)throw new en({offset:t,position:"start",size:_(e)});let i=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return a&&function(e,t,n){if("number"==typeof t&&"number"==typeof n&&_(e)!==n-t)throw new en({offset:n,position:"end",size:_(e)})}(i,t,n),i}function _(e){return Math.ceil((e.length-2)/2)}function V(e){return function(e,t={}){let{dir:n="left"}=t,r=e.replace("0x",""),a=0;for(let e=0;e<r.length-1;e++)if("0"===r["left"===n?e:r.length-e-1].toString())a++;else break;return"0"===(r="left"===n?r.slice(a):r.slice(0,r.length-a))?"0x":"right"===n&&r.length%2==1?`0x${r}0`:`0x${r}`}(e,{dir:"left"})}function q(e,t={}){let{signed:n}=t;t.size&&s(e,t.size);let r=BigInt(e);if(!n)return r;let a=(1n<<8n*BigInt((e.length-2)/2))-1n;return r<=a>>1n?r:r-a-1n}function W(e,t={}){return p(e,t)}function Z(e,t={}){let{signed:n,size:r}=t;return n||r?Number(q(e,t)):Number(e)}function J(e,t={}){let{size:n}=t,a=p(e);return n&&(r(a,n),a=A(a)),new TextDecoder().decode(a)}function K(e,t={}){let{strict:n=!1}=t;try{return C(e,{strict:n}),!0}catch{return!1}}class Y extends n{constructor({max:e,min:t,signed:n,size:r,value:a}){super(`Number \`${a}\` is not in safe${r?` ${8*r}-bit`:""}${n?" signed":" unsigned"} integer range ${e?`(\`${t}\` to \`${e}\`)`:`(above \`${t}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}}class X extends n{constructor(e){super(`Value \`${"object"==typeof e?u(e):e}\` of type \`${typeof e}\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}}class Q extends n{constructor(e){super(`Value \`${e}\` is an invalid hex value.`,{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}}class ee extends n{constructor(e){super(`Hex value \`"${e}"\` is an odd length (${e.length-2} nibbles).`,{metaMessages:["It must be an even length."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidLengthError"})}}class et extends n{constructor({givenSize:e,maxSize:t}
29){super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}}class en extends n{constructor({offset:e,position:t,size:n}){super(`Slice ${"start"===t?"starting":"ending"} at offset \`${e}\` is out-of-bounds (size: \`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SliceOffsetOutOfBoundsError"})}}class er extends n{constructor({size:e,targetSize:t,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}}},630776,e=>{"use strict";var t=e.i(692138);function n(e){return{address:e.address,amount:t.fromNumber(e.amount),index:t.fromNumber(e.index),validatorIndex:t.fromNumber(e.validatorIndex)}}e.s(["toRpc",0,function(e){return{..."bigint"==typeof e.baseFeePerGas&&{baseFeePerGas:t.fromNumber(e.baseFeePerGas)},..."bigint"==typeof e.blobBaseFee&&{blobBaseFee:t.fromNumber(e.blobBaseFee)},..."string"==typeof e.feeRecipient&&{feeRecipient:e.feeRecipient},..."bigint"==typeof e.gasLimit&&{gasLimit:t.fromNumber(e.gasLimit)},..."bigint"==typeof e.number&&{number:t.fromNumber(e.number)},..."bigint"==typeof e.prevRandao&&{prevRandao:t.fromNumber(e.prevRandao)},..."bigint"==typeof e.time&&{time:t.fromNumber(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(n)}}}],630776)},950942,e=>{"use strict";e.s(["aggregate3Signature",0,"0x82ad56cb"])},931479,e=>{"use strict";e.s(["deploylessCallViaBytecodeBytecode",0,"0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe","deploylessCallViaFactoryBytecode",0,"0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe","erc6492SignatureValidatorByteCode",0,"0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b
2960405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848
29603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572","multicall3Bytecode",0,"0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9
29150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033"])},185391,e=>{"use strict";var t=e.i(279383),n=e.i(351674),r=e.i(933664);let a="/docs/contract/encodeDeployData";e.s(["encodeDeployData",0,function(e){let{abi:i,args:s,bytecode:o}=e;
29if(!s||0===s.length)return o;let u=i.find(e=>"type"in e&&"constructor"===e.type);if(!u)throw new t.AbiConstructorNotFoundError({docsPath:a});if(!("inputs"in u)||!u.inputs||0===u.inputs.length)throw new t.AbiConstructorParamsNotFoundError({docsPath:a});let c=(0,r.encodeAbiParameters)(u.inputs,s);return(0,n.concatHex)([o,c])}])},198480,e=>{"use strict";var t=e.i(7411),n=e.i(443392);e.s(["isAddressEqual",0,function(e,r){if(!(0,n.isAddress)(e,{strict:!1}))throw new t.InvalidAddressError({address:e});if(!(0,n.isAddress)(r,{strict:!1}))throw new t.InvalidAddressError({address:r});return e.toLowerCase()===r.toLowerCase()}])},331538,e=>{"use strict";var t=e.i(224704),n=e.i(544316);e.s(["formatBlockParameter",0,function(e){let{blockHash:r,blockNumber:a,blockTag:i,requireCanonical:s}=e;if(void 0!==s&&!r)throw new t.BaseError("`requireCanonical` can only be provided when `blockHash` is set.");return r?s?{blockHash:r,requireCanonical:s}:{blockHash:r}:"bigint"==typeof a?(0,n.numberToHex)(a):i??"latest"}])},843005,e=>{"use strict";var t=e.i(269048),n=e.i(224704);class r extends n.BaseError{constructor({cause:e,message:t}={}){const n=t?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${n?`with reason: ${n}`:"for an unknown reason"}.`,{cause:e,name:"ExecutionRevertedError"})}}Object.defineProperty(r,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(r,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted|gas required exceeds allowance/});class a extends n.BaseError{constructor({cause:e,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${(0,t.formatGwei)(n)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:"FeeCapTooHighError"})}}Object.defineProperty(a,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class i extends n.BaseError{constructor({cause:e,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${(0,t.formatGwei)(n)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e,name:"FeeCapTooLowError"})}}Object.defineProperty(i,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class s extends n.BaseError{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e,name:"NonceTooHighError"})}}Object.defineProperty(s,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class o extends n.BaseError{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account. 30Try increasing the nonce or find the latest nonce with \`getTransactionCount\`.`,{cause:e,name:"NonceTooLowError"})}}Object.defineProperty(o,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class u extends n.BaseError{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e,name:"NonceMaxValueError"})}}Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class c extends n.BaseError{constructor({cause:e}={}){super("The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.",{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class d extends n.BaseError{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class l extends n.BaseError{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class f extends n.BaseError{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e,name:"TransactionTypeNotSupportedError"})}}
30Object.defineProperty(f,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class p extends n.BaseError{constructor({cause:e,maxPriorityFeePerGas:n,maxFeePerGas:r}={}){super(`The provided tip (\`maxPriorityFeePerGas\`${n?` = ${(0,t.formatGwei)(n)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${(0,t.formatGwei)(r)} gwei`:""}).`,{cause:e,name:"TipAboveFeeCapError"})}}Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class b extends n.BaseError{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e,name:"UnknownNodeError"})}}e.s(["ExecutionRevertedError",0,r,"FeeCapTooHighError",0,a,"FeeCapTooLowError",0,i,"InsufficientFundsError",0,c,"IntrinsicGasTooHighError",0,d,"IntrinsicGasTooLowError",0,l,"NonceMaxValueError",0,u,"NonceTooHighError",0,s,"NonceTooLowError",0,o,"TipAboveFeeCapError",0,p,"TransactionTypeNotSupportedError",0,f,"UnknownNodeError",0,b])},188600,e=>{"use strict";var t=e.i(224704),n=e.i(843005);e.s(["getNodeError",0,function(e,r){let a=(e.details||"").toLowerCase(),i=e instanceof t.BaseError?e.walk(e=>e?.code===n.ExecutionRevertedError.code):e;return i instanceof t.BaseError?new n.ExecutionRevertedError({cause:e,message:i.details}):n.ExecutionRevertedError.nodeMessage.test(a)?new n.ExecutionRevertedError({cause:e,message:e.details}):n.FeeCapTooHighError.nodeMessage.test(a)?new n.FeeCapTooHighError({cause:e,maxFeePerGas:r?.maxFeePerGas}):n.FeeCapTooLowError.nodeMessage.test(a)?new n.FeeCapTooLowError({cause:e,maxFeePerGas:r?.maxFeePerGas}):n.NonceTooHighError.nodeMessage.test(a)?new n.NonceTooHighError({cause:e,nonce:r?.nonce}):n.NonceTooLowError.nodeMessage.test(a)?new n.NonceTooLowError({cause:e,nonce:r?.nonce}):n.NonceMaxValueError.nodeMessage.test(a)?new n.NonceMaxValueError({cause:e,nonce:r?.nonce}):n.InsufficientFundsError.nodeMessage.test(a)?new n.InsufficientFundsError({cause:e}):n.IntrinsicGasTooHighError.nodeMessage.test(a)?new n.IntrinsicGasTooHighError({cause:e,gas:r?.gas}):n.IntrinsicGasTooLowError.nodeMessage.test(a)?new n.IntrinsicGasTooLowError({cause:e,gas:r?.gas}):n.TransactionTypeNotSupportedError.nodeMessage.test(a)?new n.TransactionTypeNotSupportedError({cause:e}):n.TipAboveFeeCapError.nodeMessage.test(a)?new n.TipAboveFeeCapError({cause:e,maxFeePerGas:r?.maxFeePerGas,maxPriorityFeePerGas:r?.maxPriorityFeePerGas}):new n.UnknownNodeError({cause:e})}])},460704,e=>{"use strict";var t=e.i(455483),n=e.i(843005),r=e.i(188600);e.s(["getCallError",0,function(e,{docsPath:a,...i}){let s,o=(s=(0,r.getNodeError)(e,i))instanceof n.UnknownNodeError?e:s;return new t.CallExecutionError(o,{docsPath:a,...i})}])},151223,e=>{"use strict";e.s(["extract",0,function(e,{format:t}){if(!t)return{};let n={};return!function t(r){for(let a of Object.keys(r))a in e&&(n[a]=e[a]),r[a]&&"object"==typeof r[a]&&!Array.isArray(r[a])&&t(r[a])}(t(e||{})),n}])},30822,e=>{"use strict";e.s(["defineFormatter",0,function(e,t){return({exclude:n,format:r})=>({exclude:n,format:(e,a)=>{let i=t(e,a);if(n)for(let e of n)delete i[e];return{...i,...r(e,a)}},type:e})}])},710826,e=>{"use strict";var t=e.i(544316),n=e.i(30822);let r={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function a(e,n){let a={};return void 0!==e.authorizationList&&(a.authorizationList=e.authorizationList.map(e=>({address:e.address,r:e.r?(0,t.numberToHex)(BigInt(e.r)):e.r,s:e.s?(0,t.numberToHex)(BigInt(e.s)):e.s,chainId:(0,t.numberToHex)(e.chainId),nonce:(0,t.numberToHex)(e.nonce),...void 0!==e.yParity?{yParity:(0,t.numberToHex)(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:(0,t.numberToHex)(e.v)}:{}}))),void 0!==e.accessList&&(a.accessList=e.accessList),void 0!==e.blobVersionedHashes&&(a.blobVersionedHashes=e.blobVersionedHashes),void 0!==e.blobs&&("string"!=typeof e.blobs[0]?a.blobs=e.blobs.map(e=>(0,t.bytesToHex)(e)):a.blobs=e.blobs),void 0!==e.data&&(a.data=e.data),e.account&&(a.from=e.account.address),void 0!==e.from&&(a.from=e.from),void 0!==e.gas&&(a.gas=(0,t.numberToHex)(e.gas)),void 0!==e.gasPrice&&(a.gasPrice=(0,t.numberToHex)(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(a.maxFeePerBlobGas=(0,t.numberToHex)(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(a.maxFeePerGas=(0,t.numberToHex)(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(a.maxPriorityFeePerGas=(0,t.numberToHex)(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(a.nonce=(0,t.numberToHex)(e.nonce)),void 0!==e.to&&(a.to=e.to),void 0!==e.type&&(a.type=r[e.type]),void 0!==e.value&&(
30a.value=(0,t.numberToHex)(e.value)),a}let i=(0,n.defineFormatter)("transactionRequest",a);e.s(["defineTransactionRequest",0,i,"formatTransactionRequest",0,a,"rpcTransactionType",0,r])},64025,e=>{"use strict";e.s(["withResolvers",0,function(){let e=()=>void 0,t=()=>void 0;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}])},521713,e=>{"use strict";var t=e.i(64025);let n=new Map;e.s(["createBatchScheduler",0,function({fn:e,id:r,shouldSplitBatch:a,wait:i=0,sort:s}){let o=async()=>{let t=c();u();let n=t.map(({args:e})=>e);0!==n.length&&e(n).then(e=>{s&&Array.isArray(e)&&e.sort(s);for(let n=0;n<t.length;n++){let{resolve:r}=t[n];r?.([e[n],e])}}).catch(e=>{for(let n=0;n<t.length;n++){let{reject:r}=t[n];r?.(e)}})},u=()=>n.delete(r),c=()=>n.get(r)||[],d=e=>n.set(r,[...c(),e]);return{flush:u,async schedule(e){let{promise:n,resolve:r,reject:s}=(0,t.withResolvers)();return(a?.([...c().map(({args:e})=>e),e])&&o(),c().length>0)?d({args:e,resolve:r,reject:s}):(d({args:e,resolve:r,reject:s}),setTimeout(o,i)),n}}}])},532554,e=>{"use strict";var t=e.i(7411),n=e.i(18139),r=e.i(649217),a=e.i(443392),i=e.i(544316);function s(e){if(e&&0!==e.length)return e.reduce((e,{slot:t,value:r})=>{if(66!==t.length)throw new n.InvalidBytesLengthError({size:t.length,targetSize:66,type:"hex"});if(66!==r.length)throw new n.InvalidBytesLengthError({size:r.length,targetSize:66,type:"hex"});return e[t]=r,e},{})}e.s(["serializeStateOverride",0,function(e){if(!e)return;let n={};for(let{address:o,...u}of e){if(!(0,a.isAddress)(o,{strict:!1}))throw new t.InvalidAddressError({address:o});if(n[o])throw new r.AccountStateConflictError({address:o});n[o]=function(e){let{balance:t,nonce:n,state:a,stateDiff:o,code:u}=e,c={};if(void 0!==u&&(c.code=u),void 0!==t&&(c.balance=(0,i.numberToHex)(t)),void 0!==n&&(c.nonce=(0,i.numberToHex)(n)),void 0!==a&&(c.state=s(a)),void 0!==o){if(c.state)throw new r.StateAssignmentConflictError;c.stateDiff=s(o)}return c}(u)}return n}])},389959,e=>{"use strict";e.s(["maxInt104",0,2n**(104n-1n)-1n,"maxInt112",0,2n**(112n-1n)-1n,"maxInt120",0,2n**(120n-1n)-1n,"maxInt128",0,2n**(128n-1n)-1n,"maxInt136",0,2n**(136n-1n)-1n,"maxInt144",0,2n**(144n-1n)-1n,"maxInt152",0,2n**(152n-1n)-1n,"maxInt16",0,2n**(16n-1n)-1n,"maxInt160",0,2n**(160n-1n)-1n,"maxInt168",0,2n**(168n-1n)-1n,"maxInt176",0,2n**(176n-1n)-1n,"maxInt184",0,2n**(184n-1n)-1n,"maxInt192",0,2n**(192n-1n)-1n,"maxInt200",0,2n**(200n-1n)-1n,"maxInt208",0,2n**(208n-1n)-1n,"maxInt216",0,2n**(216n-1n)-1n,"maxInt224",0,2n**(224n-1n)-1n,"maxInt232",0,2n**(232n-1n)-1n,"maxInt24",0,2n**(24n-1n)-1n,"maxInt240",0,2n**(240n-1n)-1n,"maxInt248",0,2n**(248n-1n)-1n,"maxInt256",0,2n**(256n-1n)-1n,"maxInt32",0,2n**(32n-1n)-1n,"maxInt40",0,2n**(40n-1n)-1n,"maxInt48",0,2n**(48n-1n)-1n,"maxInt56",0,2n**(56n-1n)-1n,"maxInt64",0,2n**(64n-1n)-1n,"maxInt72",0,2n**(72n-1n)-1n,"maxInt8",0,2n**(8n-1n)-1n,"maxInt80",0,2n**(80n-1n)-1n,"maxInt88",0,2n**(88n-1n)-1n,"maxInt96",0,2n**(96n-1n)-1n,"maxUint104",0,2n**104n-1n,"maxUint112",0,2n**112n-1n,"maxUint120",0,2n**120n-1n,"maxUint128",0,2n**128n-1n,"maxUint136",0,2n**136n-1n,"maxUint144",0,2n**144n-1n,"maxUint152",0,2n**152n-1n,"maxUint16",0,2n**16n-1n,"maxUint160",0,2n**160n-1n,"maxUint168",0,2n**168n-1n,"maxUint176",0,2n**176n-1n,"maxUint184",0,2n**184n-1n,"maxUint192",0,2n**192n-1n,"maxUint200",0,2n**200n-1n,"maxUint208",0,2n**208n-1n,"maxUint216",0,2n**216n-1n,"maxUint224",0,2n**224n-1n,"maxUint232",0,2n**232n-1n,"maxUint24",0,2n**24n-1n,"maxUint240",0,2n**240n-1n,"maxUint248",0,2n**248n-1n,"maxUint256",0,2n**256n-1n,"maxUint32",0,2n**32n-1n,"maxUint40",0,2n**40n-1n,"maxUint48",0,2n**48n-1n,"maxUint56",0,2n**56n-1n,"maxUint64",0,2n**64n-1n,"maxUint72",0,2n**72n-1n,"maxUint8",0,2n**8n-1n,"maxUint80",0,2n**80n-1n,"maxUint88",0,2n**88n-1n,"maxUint96",0,2n**96n-1n,"minInt104",0,-(2n**(104n-1n)),"minInt112",0,-(2n**(112n-1n)),"minInt120",0,-(2n**(120n-1n)),"minInt128",0,-(2n**(128n-1n)),"minInt136",0,-(2n**(136n-1n)),"minInt144",0,-(2n**(144n-1n)),"minInt152",0,-(2n**(152n-1n)),"minInt16",0,-(2n**(16n-1n)),"minInt160",0,-(2n**(160n-1n)),"minInt168",0,-(2n**(168
30n-1n)),"minInt176",0,-(2n**(176n-1n)),"minInt184",0,-(2n**(184n-1n)),"minInt192",0,-(2n**(192n-1n)),"minInt200",0,-(2n**(200n-1n)),"minInt208",0,-(2n**(208n-1n)),"minInt216",0,-(2n**(216n-1n)),"minInt224",0,-(2n**(224n-1n)),"minInt232",0,-(2n**(232n-1n)),"minInt24",0,-(2n**(24n-1n)),"minInt240",0,-(2n**(240n-1n)),"minInt248",0,-(2n**(248n-1n)),"minInt256",0,-(2n**(256n-1n)),"minInt32",0,-(2n**(32n-1n)),"minInt40",0,-(2n**(40n-1n)),"minInt48",0,-(2n**(48n-1n)),"minInt56",0,-(2n**(56n-1n)),"minInt64",0,-(2n**(64n-1n)),"minInt72",0,-(2n**(72n-1n)),"minInt8",0,-(2n**(8n-1n)),"minInt80",0,-(2n**(80n-1n)),"minInt88",0,-(2n**(88n-1n)),"minInt96",0,-(2n**(96n-1n))])},782872,e=>{"use strict";var t=e.i(138981),n=e.i(389959),r=e.i(7411),a=e.i(843005),i=e.i(443392);e.s(["assertRequest",0,function(e){let{account:s,maxFeePerGas:o,maxPriorityFeePerGas:u,to:c}=e,d=s?(0,t.parseAccount)(s):void 0;if(d&&!(0,i.isAddress)(d.address))throw new r.InvalidAddressError({address:d.address});if(c&&!(0,i.isAddress)(c))throw new r.InvalidAddressError({address:c});if(o&&o>n.maxUint256)throw new a.FeeCapTooHighError({maxFeePerGas:o});if(u&&o&&u>o)throw new a.TipAboveFeeCapError({maxFeePerGas:o,maxPriorityFeePerGas:u})}])},143681,e=>{"use strict";var t=e.i(628118),n=e.i(630776),r=e.i(138981),a=e.i(762019),i=e.i(950942),s=e.i(931479),o=e.i(224704),u=e.i(39444),c=e.i(455483),d=e.i(877692),l=e.i(957969),f=e.i(185391),p=e.i(586651),b=e.i(198480),m=e.i(331538),y=e.i(979656),h=e.i(460704),g=e.i(151223),v=e.i(710826),w=e.i(521713),x=e.i(532554),E=e.i(782872);async function $(a,l){let{account:p=a.account,authorizationList:y,batch:w=!!a.batch?.multicall,blockHash:$,blockNumber:A,blockTag:I=a.experimental_blockTag??"latest",requireCanonical:S,accessList:M,blobs:z,blockOverrides:O,code:C,data:F,factory:R,factoryData:N,gas:j,gasPrice:k,maxFeePerBlobGas:U,maxFeePerGas:H,maxPriorityFeePerGas:D,nonce:L,requestOptions:G,to:_,value:V,stateOverride:q,...W}=l,Z=p?(0,r.parseAccount)(p):void 0;if(C&&(R||N))throw new o.BaseError("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(C&&_)throw new o.BaseError("Cannot provide both `code` & `to` as parameters.");let J=C&&F,K=R&&N&&_&&F,Y=J||K,X=J?P({code:C,data:F}):K?function(e){let{data:n,factory:r,factoryData:a,to:i}=e;return(0,f.encodeDeployData)({abi:(0,t.parseAbi)(["constructor(address, bytes, address, bytes)"]),bytecode:s.deploylessCallViaFactoryBytecode,args:[i,n,r,a]})}({data:F,factory:R,factoryData:N,to:_}):F;try{let e;(0,E.assertRequest)(l);let t=(0,m.formatBlockParameter)({blockHash:$,blockNumber:A,blockTag:I,requireCanonical:S}),r=O?n.toRpc(O):void 0,s=(0,x.serializeStateOverride)(q),o=a.chain?.formatters?.transactionRequest?.format,c=(o||v.formatTransactionRequest)({...(0,g.extract)(W,{format:o}),accessList:M,account:Z,authorizationList:y,blobs:z,data:X,gas:j,gasPrice:k,maxFeePerBlobGas:U,maxFeePerGas:H,maxPriorityFeePerGas:D,nonce:L,to:Y?void 0:_,value:V},"call");if(w&&function({request:e}){let{data:t,to:n,...r}=e;return!(!t||t.startsWith(i.aggregate3Signature))&&!!n&&!(Object.values(r).filter(e=>void 0!==e).length>0)}({request:c})&&!r&&void 0===$)try{var Q,ee;let{deployless:e=!1}="object"==typeof a.batch?.multicall?a.batch.multicall:{},t=B(a,{blockNumber:A,deployless:e});if(!t||(Q=s,ee=t,!(Q&&Object.keys(Q).some(e=>(0,b.isAddressEqual)(e,ee)))))return await T(a,{...c,blockHash:$,blockNumber:A,blockTag:I,multicallAddress:t,requestOptions:G,requireCanonical:S,rpcStateOverride:s})}catch(e){if(!(e instanceof u.ClientChainNotConfiguredError)&&!(e instanceof u.ChainDoesNotSupportContract))throw e}let d=(e=[c,t],s&&r?[...e,s,r]:s?[...e,s]:r?[...e,{},r]:e),f=await a.request({method:"eth_call",params:d},G);if("0x"===f)return{data:void 0};return{data:f}}catch(i){if(G?.signal?.aborted)throw(0,d.getAbortError)(G.signal);if((0,d.isAbortError)(i))throw i;let t=function(e){if(!(e instanceof o.BaseError))return;let t=e.walk();return"object"==typeof t?.data?t.data?.data:t.data}(i),{offchainLookup:n,offchainLookupSignature:r}=await e.A(657676);if(!1!==a.ccipRead&&t?.slice(0,10)===r&&_)return{data:await n(a,{data:t,requestOptions:G,to:_})};if(Y&&t?.slice(0,10)==="0x101bb98d")throw new c.CounterfactualDeploymentFailedError({factory:R});throw(0,h.getCallError)(i,{...l,account:Z,chain:a.chain})}}let A=0,I=new WeakMap;async function T(e,t){let{batchSize:n=1024,deployless:r=!1,wait:i=0}="object"==typeof e.batch?.multicall?e.batch.multicall:{},{blockHash:o,blockNumber:u,blockTag:d=e.experimental_blockTag??"latest",requireCanonical:f,data:b,multicallAddress:y,requestOptions:h,rpcStateOverride:g,to:v}=t,x=void 0!==y?y:B(e,{blockNumber:u,deployless:r}),E=(0,m.formatBlockParameter)({blockHash:o,blockNumber:u,blockTag:d,requireCanonical:f}),$="string"==typeof E?E:JSON.stringify(E),T=g?`.${JSON.stringify(g)}`:"",{schedule:S}=(0,w.createBatchScheduler)({id:`${e.uid}.${$}.${function(e){if(!e)return"default";let t=I.get(e);if(void 0!==t)return t;let n=A++;return I.set(e,n),n}(h)}${T}`,wait:i,shouldSplitBatch:e=>e.reduce((e,{data:t})=>e+(t.length-2),0)>2*n,fn:async t=>{let n=t.map(e=>
30({allowFailure:!0,callData:e.data,target:e.to})),r=(0,p.encodeFunctionData)({abi:a.multicall3Abi,args:[n],functionName:"aggregate3"}),i={...null===x?{data:P({code:s.multicall3Bytecode,data:r})}:{to:x,data:r}},o=await e.request({method:"eth_call",params:g?[i,E,g]:[i,E]},h);return(0,l.decodeFunctionResult)({abi:a.multicall3Abi,args:[n],functionName:"aggregate3",data:o||"0x"})}}),[{returnData:M,success:z}]=await S({data:b,to:v});if(!z)throw new c.RawContractError({data:M});return"0x"===M?{data:void 0}:{data:M}}function B(e,t){let{blockNumber:n,deployless:r}=t;if(r)return null;if(e.chain)return(0,y.getChainContractAddress)({blockNumber:n,chain:e.chain,contract:"multicall3"});throw new u.ClientChainNotConfiguredError}function P(e){let{code:n,data:r}=e;return(0,f.encodeDeployData)({abi:(0,t.parseAbi)(["constructor(bytes, bytes)"]),bytecode:s.deploylessCallViaBytecodeBytecode,args:[n,r]})}e.s(["call",0,$])}]); 31 32//# debugId=2f1ad637-0812-f87e-487e-c5083ef78375
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.