1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5524],{0:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.wNAF=function(e,t){return{constTimeNegate:s,hasPrecomputes:e=>1!==m(e),unsafeLadder(t,r,n=e.ZERO){let a=t;for(;r>o;)r&i&&(n=n.add(a)),a=a.double(),r>>=i;return n},precomputeWindow(e,r){let{windows:n,windowSize:a}=c(r,t),o=[],i=e,s=i;for(let e=0;e<n;e++){s=i,o.push(s);for(let e=1;e<a;e++)s=s.add(i),o.push(s);i=s.double()}return o},wNAF(r,n,a){let o=e.ZERO,i=e.BASE,u=c(r,t);for(let e=0;e<u.windows;e++){let{nextN:t,offset:r,isZero:c,isNeg:d,isNegF:f,offsetF:p}=l(a,e,u);a=t,c?i=i.add(s(f,n[p])):o=o.add(s(d,n[r]))}return{p:o,f:i}},wNAFUnsafe(r,n,a,i=e.ZERO){let s=c(r,t);for(let e=0;e<s.windows&&a!==o;e++){let{nextN:t,offset:r,isZero:o,isNeg:u}=l(a,e,s);if(a=t,!o){let e=n[r];i=i.add(u?e.negate():e)}}return i},getPrecomputes(e,t,r){let n=p.get(t);return n||(n=this.precomputeWindow(t,e),1!==e&&p.set(t,r(n))),n},wNAFCached(e,t,r){let n=m(e);return this.wNAF(n,this.getPrecomputes(n,e,r),t)},wNAFCachedUnsafe(e,t,r,n){let a=m(e);return 1===a?this.unsafeLadder(e,t,n):this.wNAFUnsafe(a,this.getPrecomputes(a,e,r),t,n)},setWindowSize(e,r){u(r,t),b.set(e,r),p.delete(e)}}},t.pippenger=function(e,t,r,n){d(r,e),f(n,t);let o=r.length,i=n.length;if(o!==i)throw Error("arrays of points and scalars must have equal length");let s=e.ZERO,u=(0,a.bitLen)(BigInt(o)),c=1;u>12?c=u-3:u>4?c=u-2:u>0&&(c=2);let l=(0,a.bitMask)(c),p=Array(Number(l)+1).fill(s),b=Math.floor((t.BITS-1)/c)*c,m=s;for(let e=b;e>=0;e-=c){p.fill(s);for(let t=0;t<i;t++){let a=Number(n[t]>>BigInt(e)&l);p[a]=p[a].add(r[t])}let t=s;for(let e=p.length-1,r=s;e>0;e--)r=r.add(p[e]),t=t.add(r);if(m=m.add(t),0!==e)for(let e=0;e<c;e++)m=m.double()}return m},t.precomputeMSMUnsafe=function(e,t,r,n){u(n,t.BITS),d(r,e);let o=e.ZERO,i=2**n-1,s=Math.ceil(t.BITS/n),c=(0,a.bitMask)(n),l=r.map(e=>{let t=[];for(let r=0,n=e;r<i;r++)t.push(n),n=n.add(e);return t});return e=>{if(f(e,t),e.length>r.length)throw Error("array of scalars must be smaller than array of points");let a=o;for(let t=0;t<s;t++){if(a!==o)for(let e=0;e<n;e++)a=a.double();let r=BigInt(s*n-(t+1)*n);for(let t=0;t<e.length;t++){let n=Number(e[t]>>r&c);n&&(a=a.add(l[t][n-1]))}}return a}},t.validateBasic=function(e){return(0,n.validateField)(e.Fp),(0,a.validateObject)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,n.nLength)(e.n,e.nBitLength),...e,...{p:e.Fp.ORDER}})};let n=r(54241),a=r(81906),o=BigInt(0),i=BigInt(1);function s(e,t){let r=t.negate();return e?r:t}function u(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw Error("invalid window size, expected [1.."+t+"], got W="+e)}function c(e,t){u(e,t);let r=Math.ceil(t/e)+1,n=2**(e-1),o=2**e;return{windows:r,windowSize:n,mask:(0,a.bitMask)(e),maxNumber:o,shiftBy:BigInt(e)}}function l(e,t,r){let{windowSize:n,mask:a,maxNumber:o,shiftBy:s}=r,u=Number(e&a),c=e>>s;u>n&&(u-=o,c+=i);let l=t*n,d=l+Math.abs(u)-1,f=0===u;return{nextN:c,offset:d,isZero:f,isNeg:u<0,isNegF:t%2!=0,offsetF:l}}function d(e,t){if(!Array.isArray(e))throw Error("array expected");e.forEach((e,r)=>{if(!(e instanceof t))throw Error("invalid point at index "+r)})}function f(e,t){if(!Array.isArray(e))throw Error("array of scalars expected");e.forEach((e,r)=>{if(!t.isValid(e))throw Error("invalid scalar at index "+r)})}let p=new WeakMap,b=new WeakMap;function m(e){return b.get(e)||1}},515:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getContractEvents=i;let n=r(1682),a=r(78234),o=r(76947);async function i(e,t){let{abi:r,address:i,args:s,blockHash:u,eventName:c,fromBlock:l,toBlock:d,strict:f}=t,p=c?(0,n.getAbiItem)({abi:r,name:c}):void 0,b=p?void 0:r.filter(e=>"event"===e.type);return(0,a.getAction)(e,o.getLogs,"getLogs")({address:i,args:s,blockHash:u,event:p,events:b,fromBlock:l,toBlock:d,strict:f})}},573:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parameterCache=void 0,t.getParameterCacheKey=function(e,t,r){let n="";if(r)for(let e of Object.entries(r)){if(!e)continue;let t="";for(let r of e[1])t+=`[${r.type}${r.name?`:${r.name}`:""}]`;n+=`(${e[0]}{${t}})`}return t?`${t}:${e}${n}`:e},t.parameterCache=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]])},890:(e,t)=>
1{Object.defineProperty(t,"__esModule",{value:!0}),t.versionedHashVersionKzg=void 0,t.versionedHashVersionKzg=1},1199:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isAddressCache=void 0,t.isAddress=function(e,r){let{strict:n=!0}=r??{},i=`${e}.${n}`;if(t.isAddressCache.has(i))return t.isAddressCache.get(i);let s=!!o.test(e)&&(e.toLowerCase()===e||!n||(0,a.checksumAddress)(e)===e);return t.isAddressCache.set(i,s),s};let n=r(26165),a=r(43333),o=/^0x[a-fA-F0-9]{40}$/;t.isAddressCache=new n.LruMap(8192)},1682:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getAbiItem=function(e){let t,{abi:r,args:o=[],name:l}=e,d=(0,a.isHex)(l,{strict:!1}),f=r.filter(e=>d?"function"===e.type?(0,s.toFunctionSelector)(e)===l:"event"===e.type&&(0,i.toEventSelector)(e)===l:"name"in e&&e.name===l);if(0!==f.length){if(1===f.length)return f[0];for(let e of f){if("inputs"in e){if(!o||0===o.length){if(!e.inputs||0===e.inputs.length)return e;continue}if(e.inputs&&0!==e.inputs.length&&e.inputs.length===o.length&&o.every((t,r)=>{let n="inputs"in e&&e.inputs[r];return!!n&&u(t,n)})){if(t&&"inputs"in t&&t.inputs){let r=c(e.inputs,t.inputs,o);if(r)throw new n.AbiItemAmbiguityError({abiItem:e,type:r[0]},{abiItem:t,type:r[1]})}t=e}}}return t||f[0]}},t.isArgOfType=u,t.getAmbiguousTypes=c;let n=r(95664),a=r(10858),o=r(1199),i=r(53093),s=r(96573);function u(e,t){let r=typeof e,n=t.type;switch(n){case"address":return(0,o.isAddress)(e,{strict:!1});case"bool":return"boolean"===r;case"function":case"string":return"string"===r;default:if("tuple"===n&&"components"in t)return Object.values(t.components).every((t,r)=>u(Object.values(e)[r],t));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(n))return"number"===r||"bigint"===r;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(n))return"string"===r||e instanceof Uint8Array;
1if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(n))return Array.isArray(e)&&e.every(e=>u(e,{...t,type:n.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}function c(e,t,r){for(let n in e){let a=e[n],i=t[n];if("tuple"===a.type&&"tuple"===i.type&&"components"in a&&"components"in i)return c(a.components,i.components,r[n]);let s=[a.type,i.type];if(s.includes("address")&&s.includes("bytes20")||(s.includes("address")&&s.includes("string")||s.includes("address")&&s.includes("bytes"))&&(0,o.isAddress)(r[n],{strict:!1}))return s}}},1992:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setNextBlockBaseFeePerGas=a;let n=r(37264);async function a(e,{baseFeePerGas:t}){await e.request({method:`${e.mode}_setNextBlockBaseFeePerGas`,params:[(0,n.numberToHex)(t)]})}},2059:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.encodeLabelhash=function(e){return`[${e.slice(2)}]`}},2387:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0});let o=r(2494);class i{constructor(e=null,t=!1){this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer="u"<typeof window,this.isValidMessage=({origin:e,data:t,source:r})=>{let n=!t,a=!this.isServer&&r===window.parent,o=void 0!==t.version&&parseInt(t.version.split(".")[0]),i=!0;return Array.isArray(this.allowedOrigins)&&(i=void 0!==this.allowedOrigins.find(t=>t.test(e))),!n&&a&&"number"==typeof o&&o>=1&&i},this.logIncomingMessage=e=>{console.info(`Safe Apps SDK v1: A message was received from origin ${e.origin}. `,e.data)},this.onParentMessage=e=>{this.isValidMessage(e)&&(this.debugMode&&this.logIncomingMessage(e),this.handleIncomingMessage(e.data))},this.handleIncomingMessage=e=>{let{id:t}=e,r=this.callbacks.get(t);r&&(r(e),this.callbacks.delete(t))},this.send=(e,t)=>{let r=o.MessageFormatter.makeRequest(e,t);if(this.isServer)throw Error("Window doesn't exist");return window.parent.postMessage(r,"*"),new Promise((e,t)=>{this.callbacks.set(r.id,r=>{r.success?e(r):t(Error(r.error))})})},this.allowedOrigins=e,this.debugMode=t,this.isServer||window.addEventListener("message",this.onParentMessage)}}t.default=i,a(r(79629),t)},2471:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setNextBlockTimestamp=a;let n=r(37264);async function a(e,{timestamp:t}){await e.request({method:"evm_setNextBlockTimestamp",params:[(0,n.numberToHex)(t)]})}},2494:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MessageFormatter=void 0;let n=r(52108),a=r(52798);class o{}t.MessageFormatter=o,o.makeRequest=(e,t)=>({id:(0,a.generateRequestId)(),method:e,params:t,env:{sdkVersion:(0,n.getSDKVersion)()}}),o.makeResponse=(e,t,r)=>({id:e,success:!0,version:r,data:t}),o.makeErrorResponse=(e,t,r)=>({id:e,success:!1,error:t,version:r})},2611:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getEstimateGasError=function(e,{docsPath:t,...r}){let i,s=(i=(0,o.getNodeError)(e,r))instanceof a.UnknownNodeError?e:i;return new n.EstimateGasExecutionError(s,{docsPath:t,...r})};let n=r(99361),a=r(35342),o=r(88214)},2922:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WaitForTransactionReceiptTimeoutError=t.TransactionReceiptNotFoundError=t.TransactionNotFoundError=t.TransactionExecutionError=t.InvalidStorageKeySizeError=t.InvalidSerializedTransactionError=t.InvalidSerializedTransactionTypeError=t.InvalidSerializableTransactionError=t.InvalidLegacyVError=t.FeeConflictError=void 0,t.prettyPrint=i;let n=r(36276),a=r(88524),o=r(33911);function i(e){let t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),r=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>` ${`${e}:`.padEnd(r+1)} ${t}`).join("\n")}class s extends o.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"})}}t.FeeConflictError=s;class u extends o.BaseError{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}t.InvalidLegacyVError=u;class c extends o.BaseError{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",i(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"})}}t.InvalidSerializableTransactionError=c;class l extends o.BaseError{constructor({serializedType:e}){super(`Serialized transaction type "${e}
1" is invalid.`,{name:"InvalidSerializedTransactionType"}),Object.defineProperty(this,"serializedType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedType=e}}t.InvalidSerializedTransactionTypeError=l;class d extends o.BaseError{constructor({attributes:e,serializedTransaction:t,type:r}){const n=Object.entries(e).map(([e,t])=>void 0===t?e:void 0).filter(Boolean);super(`Invalid serialized transaction of type "${r}" was provided.`,{metaMessages:[`Serialized Transaction: "${t}"`,n.length>0?`Missing Attributes: ${n.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=r}}t.InvalidSerializedTransactionError=d;class f extends o.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"})}}t.InvalidStorageKeySizeError=f;class p extends o.BaseError{constructor(e,{account:t,docsPath:r,chain:o,data:s,gas:u,gasPrice:c,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:f,to:p,value:b}){const m=i({chain:o&&`${o?.name} (id: ${o?.id})`,from:t?.address,to:p,value:void 0!==b&&`${(0,n.formatEther)(b)} ${o?.nativeCurrency?.symbol||"ETH"}`,data:s,gas:u,gasPrice:void 0!==c&&`${(0,a.formatGwei)(c)} gwei`,maxFeePerGas:void 0!==l&&`${(0,a.formatGwei)(l)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,a.formatGwei)(d)} gwei`,nonce:f});super(e.shortMessage,{cause:e,docsPath:r,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}}t.TransactionExecutionError=p;class b extends o.BaseError{constructor({blockHash:e,blockNumber:t,blockTag:r,hash:n,index:a}){let o="Transaction";r&&void 0!==a&&(o=`Transaction at block time "${r}" at index "${a}"`),e&&void 0!==a&&(o=`Transaction at block hash "${e}" at index "${a}"`),t&&void 0!==a&&(o=`Transaction at block number "${t}" at index "${a}"`),n&&(o=`Transaction with hash "${n}"`),super(`${o} could not be found.`,{name:"TransactionNotFoundError"})}}t.TransactionNotFoundError=b;class m extends o.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"})}}t.TransactionReceiptNotFoundError=m;class y extends o.BaseError{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}t.WaitForTransactionReceiptTimeoutError=y},3053:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.recoverAuthorizationAddress=o;let n=r(50807),a=r(69435);async function o(e){let{authorization:t,signature:r}=e;return(0,n.recoverAddress)({hash:(0,a.hashAuthorization)(t),signature:r??t})}},3917:(e,t)=>{async function r(e,t){"ganache"===e.mode?t?await e.request({method:"miner_start"}):await e.request({method:"miner_stop"}):await e.request({method:"evm_setAutomine",params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.setAutomine=r},4632:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.simulateContract=c;let n=r(25055),a=r(84212),o=r(63997),i=r(67916),s=r(78234),u=r(99076);async function c(e,t){let{abi:r,address:c,args:l,dataSuffix:d,functionName:f,...p}=t,b=p.account?(0,n.parseAccount)(p.account):e.account,m=(0,o.encodeFunctionData)({abi:r,args:l,functionName:f});try{let{data:n}=await (0,s.getAction)(e,u.call,"call")({batch:!1,data:`${m}${d?d.replace("0x",""):""}`,to:c,...p,account:b}),o=(0,a.decodeFunctionResult)({abi:r,args:l,functionName:f,data:n||"0x"}),i=r.filter(e=>"name"in e&&e.name===t.functionName);return{result:o,request:{abi:i,address:c,args:l,dataSuffix:d,functionName:f,...p,account:b}}}catch(e){throw(0,i.getContractError)(e,{abi:r,address:c,args:l,docsPath:"/docs/contract/simulateContract",functionName:f,sender:b?.address})}}},4742:(e,t)=>
1{Object.defineProperty(t,"__esModule",{value:!0}),t.defineChain=function(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}},4915:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.signTransaction=d;let n=r(25055),a=r(43473),o=r(64702),i=r(37264),s=r(75621),u=r(78234),c=r(98048),l=r(84692);async function d(e,t){let{account:r=e.account,chain:d=e.chain,...f}=t;if(!r)throw new a.AccountNotFoundError({docsPath:"/docs/actions/wallet/signTransaction"});let p=(0,n.parseAccount)(r);(0,c.assertRequest)({account:p,...t});let b=await (0,u.getAction)(e,l.getChainId,"getChainId")({});null!==d&&(0,o.assertCurrentChain)({currentChainId:b,chain:d});let m=d?.formatters||e.chain?.formatters,y=m?.transactionRequest?.format||s.formatTransactionRequest;return p.signTransaction?p.signTransaction({...f,chainId:b},{serializer:e.chain?.serializers?.transaction}):await e.request({method:"eth_signTransaction",params:[{...y(f,"signTransaction"),chainId:(0,i.numberToHex)(b),from:p.address}]},{retryCount:0})}},5004:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatFeeHistory=function(e){return{baseFeePerGas:e.baseFeePerGas.map(e=>BigInt(e)),gasUsedRatio:e.gasUsedRatio,oldestBlock:BigInt(e.oldestBlock),reward:e.reward?.map(e=>e.map(e=>BigInt(e)))}}},5223:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.erc4626Abi=t.erc721Abi=t.erc1155Abi=t.erc20Abi_bytes32=t.erc20Abi=t.erc6492SignatureValidatorAbi=t.erc1271Abi=t.addressResolverAbi=t.textResolverAbi=t.universalResolverReverseAbi=t.universalResolverResolveAbi=t.batchGatewayAbi=t.multicall3Abi=void 0,t.multicall3Abi=[{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:"getCurrentBlockTimestamp",outputs:[{internalType:"uint256",name:"timestamp",type:"uint256"}],stateMutability:"view",type:"function"}],t.batchGatewayAbi=[{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"}]}];let 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"}];t.universalResolverResolveAbi=[...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"}]}],t.universalResolverReverseAbi=[...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"}]}],t.textResolverAbi=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],t.addressResolverAbi=[{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"}]}],t.erc1271Abi=[{name:"isValidSignature",type:"function",stateMutability:"view",inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],outputs:[{name:"",type:"bytes4"}]}],t.erc6492SignatureValidatorAbi=[{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"}
1],t.erc20Abi=[{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"}]}],t.erc20Abi_bytes32=[{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"}]}],t.erc1155Abi=[{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"}],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"}
1],t.erc721Abi=[{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:[]}],t.erc4626Abi=[{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"}]},5279:(e,t)=>
1{Object.defineProperty(t,"__esModule",{value:!0}),t.minInt120=t.minInt112=t.minInt104=t.minInt96=t.minInt88=t.minInt80=t.minInt72=t.minInt64=t.minInt56=t.minInt48=t.minInt40=t.minInt32=t.minInt24=t.minInt16=t.minInt8=t.maxInt256=t.maxInt248=t.maxInt240=t.maxInt232=t.maxInt224=t.maxInt216=t.maxInt208=t.maxInt200=t.maxInt192=t.maxInt184=t.maxInt176=t.maxInt168=t.maxInt160=t.maxInt152=t.maxInt144=t.maxInt136=t.maxInt128=t.maxInt120=t.maxInt112=t.maxInt104=t.maxInt96=t.maxInt88=t.maxInt80=t.maxInt72=t.maxInt64=t.maxInt56=t.maxInt48=t.maxInt40=t.maxInt32=t.maxInt24=t.maxInt16=t.maxInt8=t.integerRegex=t.bytesRegex=t.arrayRegex=void 0,t.maxUint256=t.maxUint248=t.maxUint240=t.maxUint232=t.maxUint224=t.maxUint216=t.maxUint208=t.maxUint200=t.maxUint192=t.maxUint184=t.maxUint176=t.maxUint168=t.maxUint160=t.maxUint152=t.maxUint144=t.maxUint136=t.maxUint128=t.maxUint120=t.maxUint112=t.maxUint104=t.maxUint96=t.maxUint88=t.maxUint80=t.maxUint72=t.maxUint64=t.maxUint56=t.maxUint48=t.maxUint40=t.maxUint32=t.maxUint24=t.maxUint16=t.maxUint8=t.minInt256=t.minInt248=t.minInt240=t.minInt232=t.minInt224=t.minInt216=t.minInt208=t.minInt200=t.minInt192=t.minInt184=t.minInt176=t.minInt168=t.minInt160=t.minInt152=t.minInt144=t.minInt136=t.minInt128=void 0,t.arrayRegex=/^(.*)\[([0-9]*)\]$/,t.bytesRegex=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,t.integerRegex=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,t.maxInt8=2n**(8n-1n)-1n,t.maxInt16=2n**(16n-1n)-1n,t.maxInt24=2n**(24n-1n)-1n,t.maxInt32=2n**(32n-1n)-1n,t.maxInt40=2n**(40n-1n)-1n,t.maxInt48=2n**(48n-1n)-1n,t.maxInt56=2n**(56n-1n)-1n,t.maxInt64=2n**(64n-1n)-1n,t.maxInt72=2n**(72n-1n)-1n,t.maxInt80=2n**(80n-1n)-1n,t.maxInt88=2n**(88n-1n)-1n,t.maxInt96=2n**(96n-1n)-1n,t.maxInt104=2n**(104n-1n)-1n,t.maxInt112=2n**(112n-1n)-1n,t.maxInt120=2n**(120n-1n)-1n,t.maxInt128=2n**(128n-1n)-1n,t.maxInt136=2n**(136n-1n)-1n,t.maxInt144=2n**(144n-1n)-1n,t.maxInt152=2n**(152n-1n)-1n,t.maxInt160=2n**(160n-1n)-1n,t.maxInt168=2n**(168n-1n)-1n,t.maxInt176=2n**(176n-1n)-1n,t.maxInt184=2n**(184n-1n)-1n,t.maxInt192=2n**(192n-1n)-1n,t.maxInt200=2n**(200n-1n)-1n,t.maxInt208=2n**(208n-1n)-1n,t.maxInt216=2n**(216n-1n)-1n,t.maxInt224=2n**(224n-1n)-1n,t.maxInt232=2n**(232n-1n)-1n,t.maxInt240=2n**(240n-1n)-1n,t.maxInt248=2n**(248n-1n)-1n,t.maxInt256=2n**(256n-1n)-1n,t.minInt8=-(2n**(8n-1n)),t.minInt16=-(2n**(16n-1n)),t.minInt24=-(2n**(24n-1n)),t.minInt32=-(2n**(32n-1n)),t.minInt40=-(2n**(40n-1n)),t.minInt48=-(2n**(48n-1n)),t.minInt56=-(2n**(56n-1n)),t.minInt64=-(2n**(64n-1n)),t.minInt72=-(2n**(72n-1n)),t.minInt80=-(2n**(80n-1n)),t.minInt88=-(2n**(88n-1n)),t.minInt96=-(2n**(96n-1n)),t.minInt104=-(2n**(104n-1n)),t.minInt112=-(2n**(112n-1n)),t.minInt120=-(2n**(120n-1n)),t.minInt128=-(2n**(128n-1n)),t.minInt136=-(2n**(136n-1n)),t.minInt144=-(2n**(144n-1n)),t.minInt152=-(2n**(152n-1n)),t.minInt160=-(2n**(160n-1n)),t.minInt168=-(2n**(168n-1n)),t.minInt176=-(2n**(176n-1n)),t.minInt184=-(2n**(184n-1n)),t.minInt192=-(2n**(192n-1n)),t.minInt200=-(2n**(200n-1n)),t.minInt208=-(2n**(208n-1n)),t.minInt216=-(2n**(216n-1n)),t.minInt224=-(2n**(224n-1n)),t.minInt232=-(2n**(232n-1n)),t.minInt240=-(2n**(240n-1n)),t.minInt248=-(2n**(248n-1n)),t.minInt256=-(2n**(256n-1n)),t.maxUint8=2n**8n-1n,t.maxUint16=2n**16n-1n,t.maxUint24=2n**24n-1n,t.maxUint32=2n**32n-1n,t.maxUint40=2n**40n-1n,t.maxUint48=2n**48n-1n,t.maxUint56=2n**56n-1n,t.maxUint64=2n**64n-1n,t.maxUint72=2n**72n-1n,t.maxUint80=2n**80n-1n,t.maxUint88=2n**88n-1n,t.maxUint96=2n**96n-1n,t.maxUint104=2n**104n-1n,t.maxUint112=2n**112n-1n,t.maxUint120=2n**120n-1n,t.maxUint128=2n**128n-1n,t.maxUint136=2n**136n-1n,t.maxUint144=2n**144n-1n,t.maxUint152=2n**152n-1n,t.maxUint160=2n**160n-1n,t.maxUint168=2n**168n-1n,t.maxUint176=2n**176n-1n,t.maxUint184=2n**184n-1n,t.maxUint192=2n**192n-1n,t.maxUint200=2n**200n-1n,t.maxUint208=2n**208n-1n,t.maxUint216=2n**216n-1n,t.maxUint224=2n**224n-1n,t.maxUint232=2n**232n-1n,t.maxUint240=2n**240n-1n,t.maxUint248=2n**248n-1n,t.maxUint256=2n**256n-1n},6007:(e,t,r)=>
1{Object.defineProperty(t,"__esModule",{value:!0}),t.toRlp=s,t.bytesToRlp=function(e,t="bytes"){return s(e,t)},t.hexToRlp=function(e,t="hex"){return s(e,t)};let n=r(33911),a=r(21574),o=r(96978),i=r(37264);function s(e,t="hex"){let r=function e(t){var r,n;let a,i,s,c;return Array.isArray(t)?(i=u(a=(r=t.map(t=>e(t))).reduce((e,t)=>e+t.length,0)),{length:a<=55?1+a:1+i+a,encode(e){for(let{encode:t}of(a<=55?e.pushByte(192+a):(e.pushByte(247+i),1===i?e.pushUint8(a):2===i?e.pushUint16(a):3===i?e.pushUint24(a):e.pushUint32(a)),r))t(e)}}):(c=u((s="string"==typeof(n=t)?(0,o.hexToBytes)(n):n).length),{length:1===s.length&&s[0]<128?1:s.length<=55?1+s.length:1+c+s.length,encode(e){1===s.length&&s[0]<128||(s.length<=55?e.pushByte(128+s.length):(e.pushByte(183+c),1===c?e.pushUint8(s.length):2===c?e.pushUint16(s.length):3===c?e.pushUint24(s.length):e.pushUint32(s.length))),e.pushBytes(s)}})}(e),n=(0,a.createCursor)(new Uint8Array(r.length));return(r.encode(n),"hex"===t)?(0,i.bytesToHex)(n.bytes):n.bytes}function u(e){if(e<256)return 1;if(e<65536)return 2;if(e<0x1000000)return 3;if(e<0x100000000)return 4;throw new n.BaseError("Length is too large.")}},6110:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.blobsToProofs=function(e){let{kzg:t}=e,r=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),o="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,n.hexToBytes)(e)):e.blobs,i="string"==typeof e.commitments[0]?e.commitments.map(e=>(0,n.hexToBytes)(e)):e.commitments,s=[];for(let e=0;e<o.length;e++){let r=o[e],n=i[e];s.push(Uint8Array.from(t.computeBlobKzgProof(r,n)))}return"bytes"===r?s:s.map(e=>(0,a.bytesToHex)(e))};let n=r(96978),a=r(37264)},6318:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseGwei=function(e,t="wei"){return(0,a.parseUnits)(e,n.gweiUnits[t])};let n=r(98274),a=r(27149)},6917:(e,t,r)=>{r.r(t),r.d(t,{WebSocket:()=>n});let n=function(){if("u">typeof WebSocket)return WebSocket;if(void 0!==global.WebSocket)return global.WebSocket;if(void 0!==window.WebSocket)return window.WebSocket;if(void 0!==self.WebSocket)return self.WebSocket;throw Error("`WebSocket` is not supported in this environment")}()},7052:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.prepareAuthorization=c;let n=r(25055),a=r(43473),o=r(29609),i=r(78234),s=r(84692),u=r(94527);async function c(e,t){let{account:r=e.account,chainId:c,nonce:l}=t;if(!r)throw new a.AccountNotFoundError({docsPath:"/docs/eip7702/prepareAuthorization"});let d=(0,n.parseAccount)(r),f=(()=>{if(t.executor)return"self"===t.executor?t.executor:(0,n.parseAccount)(t.executor)})(),p={address:t.contractAddress??t.address,chainId:c,nonce:l};return void 0===p.chainId&&(p.chainId=e.chain?.id??await (0,i.getAction)(e,s.getChainId,"getChainId")({})),void 0===p.nonce&&(p.nonce=await (0,i.getAction)(e,u.getTransactionCount,"getTransactionCount")({address:d.address,blockTag:"pending"}),("self"===f||f?.address&&(0,o.isAddressEqual)(f.address,d.address))&&(p.nonce+=1)),p}},7414:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getEnsAvatar=i;let n=r(49656),a=r(78234),o=r(99280);async function i(e,{blockNumber:t,blockTag:r,assetGatewayUrls:s,name:u,gatewayUrls:c,strict:l,universalResolverAddress:d}){let f=await (0,a.getAction)(e,o.getEnsText,"getEnsText")({blockNumber:t,blockTag:r,key:"avatar",name:u,universalResolverAddress:d,gatewayUrls:c,strict:l});if(!f)return null;try{return await (0,n.parseAvatarRecord)(e,{record:f,gatewayUrls:s})}catch{return null}}},8117:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbiItem=function(e,{includeName:t=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new n.InvalidDefinitionTypeError(e.type);return`${e.name}(${a(e.inputs,{includeName:t})})`},t.formatAbiParams=a;let n=r(95664);function a(e,{includeName:t=!1}={}){return e?e.map(e=>(function(e,{includeName:t}){return e.type.startsWith("tuple")?`(${a(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")})(e,{includeName:t})).join(t?", ":","):""}},8156:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.cleanupCache=t.listenersCache=void 0,t.observe=function(e,n,a){let o=++r,i=()=>t.listenersCache.get(e)||[],s=()=>{let r,n=i();if(!n.some(e=>e.id===o))return;let a=t.cleanupCache.get(e);if(1===n.length&&a){let e=a();e instanceof Promise&&e.catch(()=>{})}r=i(),t.listenersCache.set(e,r.filter(e=>e.id!==o))},u=i();if(t.listenersCache.set(e,[...u,{id:o,fns:n}]),u&&u.length>0)return s;let c={};for(let e in n)c[e]=(...t)=>{let r=i();if(0!==r.length)for(let n of r)n.fns[e]?.(...t)};let l=a(c);return"function"==typeof l&&t.cleanupCache.set(e,l),s},t.listenersCache=new Map,t.cleanupCache=new Map;let r=0},8183:(e,t)=>
1{async function r(e,{interval:t}){let n="hardhat"===e.mode?1e3*t:t;await e.request({method:`${e.mode}_setBlockTimestampInterval`,params:[n]})}Object.defineProperty(t,"__esModule",{value:!0}),t.setBlockTimestampInterval=r},8410:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.http=function(e,t={}){let{batch:r,fetchFn:u,fetchOptions:c,key:l="http",methods:d,name:f="HTTP JSON-RPC",onFetchRequest:p,onFetchResponse:b,retryDelay:m,raw:y}=t;return({chain:h,retryCount:g,timeout:v})=>{let{batchSize:E=1e3,wait:x=0}="object"==typeof r?r:{},w=t.retryCount??g,P=v??t.timeout??1e4,I=e||h?.rpcUrls.default.http[0];if(!I)throw new a.UrlRequiredError;let A=(0,i.getHttpRpcClient)(I,{fetchFn:u,fetchOptions:c,onRequest:p,onResponse:b,timeout:P});return(0,s.createTransport)({key:l,methods:d,name:f,async request({method:e,params:t}){let a={method:e,params:t},{schedule:i}=(0,o.createBatchScheduler)({id:I,wait:x,shouldSplitBatch:e=>e.length>E,fn:e=>A.request({body:e}),sort:(e,t)=>e.id-t.id}),s=async e=>r?i(e):[await A.request({body:e})],[{error:u,result:c}]=await s(a);if(y)return{error:u,result:c};if(u)throw new n.RpcRequestError({body:a,error:u,url:I});return c},retryCount:w,retryDelay:m,timeout:P,type:"http"},{fetchOptions:c,url:I})}};let n=r(26019),a=r(51255),o=r(9139),i=r(47512),s=r(66643)},8436:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createClient=function(e){let{batch:t,chain:r,ccipRead:o,key:i="base",name:s="Base Client",type:u="base"}=e,c=e.experimental_blockTag??("number"==typeof r?.experimental_preconfirmationTime?"pending":void 0),l=Math.min(Math.max(Math.floor((r?.blockTime??12e3)/2),500),4e3),d=e.pollingInterval??l,f=e.cacheTime??d,p=e.account?(0,n.parseAccount)(e.account):void 0,{config:b,request:m,value:y}=e.transport({chain:r,pollingInterval:d}),h={account:p,batch:t,cacheTime:f,ccipRead:o,chain:r,key:i,name:s,pollingInterval:d,request:m,transport:{...b,...y},type:u,uid:(0,a.uid)(),...c?{experimental_blockTag:c}:{}};return Object.assign(h,{extend:function e(t){return r=>{let n=r(t);for(let e in h)delete n[e];let a={...t,...n};return Object.assign(a,{extend:e(a)})}}(h)})},t.rpcSchema=function(){return null};let n=r(25055),a=r(84198)},8499:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.watchContractEvent=function(e,t){let r,h,g,v,E,{abi:x,address:w,args:P,batch:I=!0,eventName:A,fromBlock:T,onError:O,onLogs:B,poll:S,pollingInterval:j=e.pollingInterval,strict:_}=t;return(void 0!==S?S:"bigint"==typeof T||"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
1onfig.type&&"ipc"!==e.transport.transports[0].config.type))?(r=_??!1,h=(0,d.stringify)(["watchContractEvent",w,P,I,e.uid,A,j,r,T]),(0,c.observe)(h,{onLogs:B,onError:O},t=>{let n,o;void 0!==T&&(n=T-1n);let i=!1,s=(0,l.poll)(async()=>{if(!i){try{o=await (0,u.getAction)(e,f.createContractEventFilter,"createContractEventFilter")({abi:x,address:w,args:P,eventName:A,strict:r,fromBlock:T})}catch{}i=!0;return}try{let a;if(o)a=await (0,u.getAction)(e,m.getFilterChanges,"getFilterChanges")({filter:o});else{let t=await (0,u.getAction)(e,p.getBlockNumber,"getBlockNumber")({});a=n&&n<t?await (0,u.getAction)(e,b.getContractEvents,"getContractEvents")({abi:x,address:w,args:P,eventName:A,fromBlock:n+1n,toBlock:t,strict:r}):[],n=t}if(0===a.length)return;if(I)t.onLogs(a);else for(let e of a)t.onLogs([e])}catch(e){o&&e instanceof a.InvalidInputRpcError&&(i=!1),t.onError?.(e)}},{emitOnBegin:!0,interval:j});return async()=>{o&&await (0,u.getAction)(e,y.uninstallFilter,"uninstallFilter")({filter:o}),s()}})):(g=(0,d.stringify)(["watchContractEvent",w,P,I,e.uid,A,j,_??!1]),v=!0,E=()=>v=!1,(0,c.observe)(g,{onLogs:B,onError:O},t=>((async()=>{try{let r=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type||"ipc"===e.config.type);return t?t.value:e.transport}return e.transport})(),a=A?(0,i.encodeEventTopics)({abi:x,eventName:A,args:P}):[],{unsubscribe:u}=await r.subscribe({params:["logs",{address:w,topics:a}],onData(e){if(!v)return;let r=e.result;try{let{eventName:e,args:n}=(0,o.decodeEventLog)({abi:x,data:r.data,topics:r.topics,strict:_}),a=(0,s.formatLog)(r,{args:n,eventName:e});t.onLogs([a])}catch(i){let e,a;if(i instanceof n.DecodeLogDataMismatch||i instanceof n.DecodeLogTopicsMismatch){if(_)return;e=i.abiItem.name,a=i.abiItem.inputs?.some(e=>!("name"in e&&e.name))}let o=(0,s.formatLog)(r,{args:a?[]:{},eventName:e});t.onLogs([o])}},onError(e){t.onError?.(e)}});E=u,v||E()}catch(e){O?.(e)}})(),()=>E())))};let n=r(95664),a=r(11205),o=r(82276),i=r(34736),s=r(64234),u=r(78234),c=r(8156),l=r(33593),d=r(57737),f=r(59484),p=r(19960),b=r(515),m=r(21815),y=r(53620)},8657:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.verifyMessage=i;let n=r(43333),a=r(29609),o=r(97624);async function i({address:e,message:t,signature:r}){return(0,a.isAddressEqual)((0,n.getAddress)(e),await (0,o.recoverMessageAddress)({message:t,signature:r}))}},8768:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.prepareEncodeFunctionData=function(e){let{abi:t,args:r,functionName:u}=e,c=t[0];if(u){let e=(0,i.getAbiItem)({abi:t,args:r,name:u});if(!e)throw new n.AbiFunctionNotFoundError(u,{docsPath:s});c=e}if("function"!==c.type)throw new n.AbiFunctionNotFoundError(void 0,{docsPath:s});return{abi:[c],functionName:(0,a.toFunctionSelector)((0,o.formatAbiItem)(c))}};let n=r(95664),a=r(96573),o=r(8117),i=r(1682),s="/docs/contract/encodeFunctionData"},9071:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbi=function(e){let t=[],r=e.length;for(let a=0;a<r;a++){let r=e[a],o=(0,n.formatAbiItem)(r);t.push(o)}return t};let n=r(14792)},9139:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createBatchScheduler=function({fn:e,id:t,shouldSplitBatch:r,wait:o=0,sort:i}){let s=async()=>{let t=c();u();let r=t.map(({args:e})=>e);0!==r.length&&e(r).then(e=>{i&&Array.isArray(e)&&e.sort(i);for(let r=0;r<t.length;r++){let{resolve:n}=t[r];n?.([e[r],e])}}).catch(e=>{for(let r=0;r<t.length;r++){let{reject:n}=t[r];n?.(e)}})},u=()=>a.delete(t),c=()=>a.get(t)||[],l=e=>a.set(t,[...c(),e]);return{flush:u,async schedule(e){let{promise:t,resolve:a,reject:i}=(0,n.withResolvers)();return(r?.([...c().map(({args:e})=>e),e])&&s(),c().length>0)?l({args:e,resolve:a,reject:i}):(l({args:e,resolve:a,reject:i}),setTimeout(s,o)),t}}};let n=r(32853),a=new Map},9175:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.signatureToCompactSignature=function(e){let{r:t,s:r,v:o,yParity:i}=e,s=Number(i??o-27n),u=r;if(1===s){let e=(0,n.hexToBytes)(r);e[0]|=128,u=(0,a.bytesToHex)(e)}return{r:t,yParityAndS:u}};let n=r(96978),a=r(37264)},9253:(e,t,r)=>
1{Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeSignature=function(e){let t=!0,r="",n=0,o="",i=!1;for(let a=0;a<e.length;a++){let s=e[a];if(["(",")",","].includes(s)&&(t=!0),"("===s&&n++,")"===s&&n--,t){if(0===n){if(" "===s&&["event","function","error",""].includes(o))o="";else if(o+=s,")"===s){i=!0;break}continue}if(" "===s){","!==e[a-1]&&","!==r&&",("!==r&&(r="",t=!1);continue}o+=s,r+=s}}if(!i)throw new a.BaseError("Unable to normalize signature.");return o},t.isArgOfType=function e(t,r){let a=typeof t,o=r.type;switch(o){case"address":return n.validate(t,{strict:!1});case"bool":return"boolean"===a;case"function":case"string":return"string"===a;default:if("tuple"===o&&"components"in r)return Object.values(r.components).every((r,n)=>e(Object.values(t)[n],r));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(o))return"number"===a||"bigint"===a;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(o))return"string"===a||t instanceof Uint8Array;
1if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(o))return Array.isArray(t)&&t.every(t=>e(t,{...r,type:o.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}},t.getAmbiguousTypes=function e(t,r,a){for(let o in t){let i=t[o],s=r[o];if("tuple"===i.type&&"tuple"===s.type&&"components"in i&&"components"in s)return e(i.components,s.components,a[o]);let u=[i.type,s.type];if(u.includes("address")&&u.includes("bytes20")||(u.includes("address")&&u.includes("string")||u.includes("address")&&u.includes("bytes"))&&n.validate(a[o],{strict:!1}))return u}};let n=r(30990),a=r(45189)},9492:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getContract=function({abi:e,address:t,client:r}){let[p,b]=r?"public"in r&&"wallet"in r?[r.public,r.wallet]:"public"in r?[r.public,void 0]:"wallet"in r?[void 0,r.wallet]:[r,r]:[void 0,void 0],m=null!=p,y=null!=b,h={},g=!1,v=!1,E=!1;for(let t of e)if("function"===t.type?"view"===t.stateMutability||"pure"===t.stateMutability?g=!0:v=!0:"event"===t.type&&(E=!0),g&&v&&E)break;return m&&(g&&(h.read=new Proxy({},{get:(r,a)=>(...r)=>{let{args:o,options:i}=d(r);return(0,n.getAction)(p,s.readContract,"readContract")({abi:e,address:t,functionName:a,args:o,...i})}})),v&&(h.simulate=new Proxy({},{get:(r,a)=>(...r)=>{let{args:o,options:i}=d(r);return(0,n.getAction)(p,u.simulateContract,"simulateContract")({abi:e,address:t,functionName:a,args:o,...i})}})),E&&(h.createEventFilter=new Proxy({},{get:(r,o)=>(...r)=>{let{args:i,options:s}=f(r,e.find(e=>"event"===e.type&&e.name===o));return(0,n.getAction)(p,a.createContractEventFilter,"createContractEventFilter")({abi:e,address:t,eventName:o,args:i,...s})}}),h.getEvents=new Proxy({},{get:(r,a)=>(...r)=>{let{args:o,options:s}=f(r,e.find(e=>"event"===e.type&&e.name===a));return(0,n.getAction)(p,i.getContractEvents,"getContractEvents")({abi:e,address:t,eventName:a,args:o,...s})}}),h.watchEvent=new Proxy({},{get:(r,a)=>(...r)=>{let{args:o,options:i}=f(r,e.find(e=>"event"===e.type&&e.name===a));return(0,n.getAction)(p,c.watchContractEvent,"watchContractEvent")({abi:e,address:t,eventName:a,args:o,...i})}}))),y&&v&&(h.write=new Proxy({},{get:(r,a)=>(...r)=>{let{args:o,options:i}=d(r);return(0,n.getAction)(b,l.writeContract,"writeContract")({abi:e,address:t,functionName:a,args:o,...i})}})),(m||y)&&v&&(h.estimateGas=new Proxy({},{get:(r,a)=>(...r)=>{let{args:i,options:s}=d(r),u=p??b;return(0,n.getAction)(u,o.estimateContractGas,"estimateContractGas")({abi:e,address:t,functionName:a,args:i,...s,account:s.account??b.account})}})),h.address=t,h.abi=e,h},t.getFunctionParameters=d,t.getEventParameters=f;let n=r(78234),a=r(59484),o=r(29589),i=r(515),s=r(36110),u=r(4632),c=r(8499),l=r(86717);function d(e){let t=e.length&&Array.isArray(e[0]);return{args:t?e[0]:[],options:(t?e[1]:e[0])??{}}}function f(e,t){let r=!1;return Array.isArray(e[0])?r=!0:1===e.length?r=t.inputs.some(e=>e.indexed):2===e.length&&(r=!0),{args:r?e[0]:void 0,options:(r?e[1]:e[0])??{}}}},9534:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.hashMessage=function(e,t){return(0,n.keccak256)((0,a.toPrefixedMessage)(e),t)};let n=r(60976),a=r(82142)},9558:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionConfirmations=i;let n=r(78234),a=r(19960),o=r(67672);async function i(e,{hash:t,transactionReceipt:r}){let[s,u]=await Promise.all([(0,n.getAction)(e,a.getBlockNumber,"getBlockNumber")({}),t?(0,n.getAction)(e,o.getTransaction,"getTransaction")({hash:t}):void 0]),c=r?.blockNumber||u?.blockNumber;return c?s-c+1n:0n}},10131:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidChainIdError=t.ClientChainNotConfiguredError=t.ChainNotFoundError=t.ChainMismatchError=t.ChainDoesNotSupportContract=void 0;let n=r(33911);class a extends n.BaseError{constructor({blockNumber:e,chain:t,contract:r}){super(`Chain "${t.name}" does not support contract "${r.name}".`,{metaMessages:["This could be due to any of the following:",...e&&r.blockCreated&&r.blockCreated>e?[`- The contract "${r.name}" was not deployed until block ${r.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract "${r.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}t.ChainDoesNotSupportContract=a;class o extends n.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"})}}t.ChainMismatchError=o;class i extends n.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"})}}t.ChainNotFoundError=i;class s extends n.BaseError{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}t.ClientChainNotConfiguredError=s;class u extends n.BaseError{constructor({chainId:e}){super("number"==typeof e?`Chain ID "${e}
1" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}t.InvalidChainIdError=u},10618:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getHash=i,t.createCurve=function(e,t){let r=t=>(0,o.weierstrass)({...e,...i(t)});return{...r(t),create:r}};let n=r(83265),a=r(55603),o=r(36523);function i(e){return{hash:e,hmac:(t,...r)=>(0,n.hmac)(e,t,(0,a.concatBytes)(...r)),randomBytes:a.randomBytes}}},10858:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isHex=function(e,{strict:t=!0}={}){return!!e&&"string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}},11056:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.verifyMessage=o;let n=r(9534),a=r(56153);async function o(e,{address:t,message:r,factory:i,factoryData:s,signature:u,...c}){let l=(0,n.hashMessage)(r);return(0,a.verifyHash)(e,{address:t,factory:i,factoryData:s,hash:l,signature:u,...c})}},11205:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownRpcError=t.AtomicityNotSupportedError=t.AtomicReadyWalletRejectedUpgradeError=t.BundleTooLargeError=t.UnknownBundleIdError=t.DuplicateIdError=t.UnsupportedChainIdError=t.UnsupportedNonOptionalCapabilityError=t.SwitchChainError=t.ChainDisconnectedError=t.ProviderDisconnectedError=t.UnsupportedProviderMethodError=t.UnauthorizedProviderError=t.UserRejectedRequestError=t.JsonRpcVersionUnsupportedError=t.LimitExceededRpcError=t.MethodNotSupportedRpcError=t.TransactionRejectedRpcError=t.ResourceUnavailableRpcError=t.ResourceNotFoundRpcError=t.InvalidInputRpcError=t.InternalRpcError=t.InvalidParamsRpcError=t.MethodNotFoundRpcError=t.InvalidRequestRpcError=t.ParseRpcError=t.ProviderRpcError=t.RpcError=void 0;let n=r(33911),a=r(26019);class o extends n.BaseError{constructor(e,{code:t,docsPath:r,metaMessages:n,name:o,shortMessage:i}){super(i,{cause:e,docsPath:r,metaMessages:n||e?.metaMessages,name:o||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=o||e.name,this.code=e instanceof a.RpcRequestError?e.code:t??-1}}t.RpcError=o;class i extends o{constructor(e,t){super(e,t),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}t.ProviderRpcError=i;class s extends o{constructor(e){super(e,{code:s.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}t.ParseRpcError=s,Object.defineProperty(s,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class u extends o{constructor(e){super(e,{code:u.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}t.InvalidRequestRpcError=u,Object.defineProperty(u,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class c extends o{constructor(e,{method:t}={}){super(e,{code:c.code,name:"MethodNotFoundRpcError",shortMessage:`The method${t?` "${t}"`:""} does not exist / is not available.`})}}t.MethodNotFoundRpcError=c,Object.defineProperty(c,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class l extends o{constructor(e){super(e,{code:l.code,name:"InvalidParamsRpcError",shortMessage:"Invalid parameters were provided to the RPC method.\nDouble check you have provided the correct parameters."})}}t.InvalidParamsRpcError=l,Object.defineProperty(l,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class d extends o{constructor(e){super(e,{code:d.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}t.InternalRpcError=d,Object.defineProperty(d,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class f extends o{constructor(e){super(e,{code:f.code,name:"InvalidInputRpcError",shortMessage:"Missing or invalid parameters.\nDouble check you have provided the correct parameters."})}}t.InvalidInputRpcError=f,Object.defineProperty(f,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class p extends o{constructor(e){super(e,{code:p.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}t.ResourceNotFoundRpcError=p,Object.defineProperty(p,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class b extends o{constructor(e){super(e,{code:b.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}t.ResourceUnavailableRpcError=b,Object.defineProperty(b,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class m extends o{constructor(e){super(e,{code:m.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}t.TransactionRejectedRpcError=m,Object.defineProperty(m,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class y extends o{constructor(e,{method:t}={}){super(e,{code:y.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${t?` "${t}"`:""} is not supported.`})}}t.MethodNotSupportedRpcError=y,Object.defineProperty(y,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});
1class h extends o{constructor(e){super(e,{code:h.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}t.LimitExceededRpcError=h,Object.defineProperty(h,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class g extends o{constructor(e){super(e,{code:g.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}t.JsonRpcVersionUnsupportedError=g,Object.defineProperty(g,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class v extends i{constructor(e){super(e,{code:v.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}t.UserRejectedRequestError=v,Object.defineProperty(v,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class E extends i{constructor(e){super(e,{code:E.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}t.UnauthorizedProviderError=E,Object.defineProperty(E,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class x extends i{constructor(e,{method:t}={}){super(e,{code:x.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${t?` " ${t}"`:""}.`})}}t.UnsupportedProviderMethodError=x,Object.defineProperty(x,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class w extends i{constructor(e){super(e,{code:w.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}t.ProviderDisconnectedError=w,Object.defineProperty(w,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class P extends i{constructor(e){super(e,{code:P.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}t.ChainDisconnectedError=P,Object.defineProperty(P,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class I extends i{constructor(e){super(e,{code:I.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}t.SwitchChainError=I,Object.defineProperty(I,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class A extends i{constructor(e){super(e,{code:A.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}t.UnsupportedNonOptionalCapabilityError=A,Object.defineProperty(A,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class T extends i{constructor(e){super(e,{code:T.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}t.UnsupportedChainIdError=T,Object.defineProperty(T,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class O extends i{constructor(e){super(e,{code:O.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}t.DuplicateIdError=O,Object.defineProperty(O,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class B extends i{constructor(e){super(e,{code:B.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}t.UnknownBundleIdError=B,Object.defineProperty(B,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class S extends i{constructor(e){super(e,{code:S.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}t.BundleTooLargeError=S,Object.defineProperty(S,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class j extends i{constructor(e){super(e,{code:j.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}t.AtomicReadyWalletRejectedUpgradeError=j,Object.defineProperty(j,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750});class _ extends i{constructor(e){super(e,{code:_.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}t.AtomicityNotSupportedError=_,Object.defineProperty(_,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class M extends o{constructor(e){super(e,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}t.UnknownRpcError=M},11210:(e,t)=>{async function r(e,{blockNumber:t,jsonRpcUrl:n}={}){await e.request({method:`${e.mode}_reset`,params:[{forking:{blockNumber:Number(t),jsonRpcUrl:n}}]})}
1Object.defineProperty(t,"__esModule",{value:!0}),t.reset=r},11258:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SHA512_IV=t.SHA384_IV=t.SHA224_IV=t.SHA256_IV=t.HashMD=void 0,t.setBigUint64=a,t.Chi=function(e,t,r){return e&t^~e&r},t.Maj=function(e,t,r){return e&t^e&r^t&r};let n=r(55603);function a(e,t,r,n){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,n);let a=BigInt(32),o=BigInt(0xffffffff),i=Number(r>>a&o),s=Number(r&o),u=4*!!n,c=4*!n;e.setUint32(t+u,i,n),e.setUint32(t+c,s,n)}class o extends n.Hash{constructor(e,t,r,a){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=a,this.buffer=new Uint8Array(e),this.view=(0,n.createView)(this.buffer)}update(e){(0,n.aexists)(this),e=(0,n.toBytes)(e),(0,n.abytes)(e);let{view:t,buffer:r,blockLen:a}=this,o=e.length;for(let i=0;i<o;){let s=Math.min(a-this.pos,o-i);if(s===a){let t=(0,n.createView)(e);for(;a<=o-i;i+=a)this.process(t,i);continue}r.set(e.subarray(i,i+s),this.pos),this.pos+=s,i+=s,this.pos===a&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,n.aexists)(this),(0,n.aoutput)(e,this),this.finished=!0;let{buffer:t,view:r,blockLen:o,isLE:i}=this,{pos:s}=this;t[s++]=128,(0,n.clean)(this.buffer.subarray(s)),this.padOffset>o-s&&(this.process(r,0),s=0);for(let e=s;e<o;e++)t[e]=0;a(r,o-8,BigInt(8*this.length),i),this.process(r,0);let u=(0,n.createView)(e),c=this.outputLen;if(c%4)throw Error("_sha2: outputLen should be aligned to 32bit");let l=c/4,d=this.get();if(l>d.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<l;e++)u.setUint32(4*e,d[e],i)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:r,length:n,finished:a,destroyed:o,pos:i}=this;return e.destroyed=o,e.finished=a,e.length=n,e.pos=i,n%t&&e.buffer.set(r),e}clone(){return this._cloneInto()}}t.HashMD=o,t.SHA256_IV=Uint32Array.from([0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19]),t.SHA224_IV=Uint32Array.from([0xc1059ed8,0x367cd507,0x3070dd17,0xf70e5939,0xffc00b31,0x68581511,0x64f98fa7,0xbefa4fa4]),t.SHA384_IV=Uint32Array.from([0xcbbb9d5d,0xc1059ed8,0x629a292a,0x367cd507,0x9159015a,0x3070dd17,0x152fecd8,0xf70e5939,0x67332667,0xffc00b31,0x8eb44a87,0x68581511,0xdb0c2e0d,0x64f98fa7,0x47b5481d,0xbefa4fa4]),t.SHA512_IV=Uint32Array.from([0x6a09e667,0xf3bcc908,0xbb67ae85,0x84caa73b,0x3c6ef372,0xfe94f82b,0xa54ff53a,0x5f1d36f1,0x510e527f,0xade682d1,0x9b05688c,0x2b3e6c1f,0x1f83d9ab,0xfb41bd6b,0x5be0cd19,0x137e2179])},11625:(e,t)=>{async function r(e,t){await e.request({method:`${e.mode}_setRpcUrl`,params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.setRpcUrl=r},11791:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.simulateCalls=p;let n=r(97428),a=r(23784),o=r(25055),i=r(13152),s=r(58527),u=r(33911),c=r(63997),l=r(47748),d=r(73390),f=r(62652);async function p(e,t){let{blockNumber:r,blockTag:p,calls:b,stateOverrides:m,traceAssetChanges:y,traceTransfers:h,validation:g}=t,v=t.account?(0,o.parseAccount)(t.account):void 0;if(y&&!v)throw new u.BaseError("`account` is required when `traceAssetChanges` is true");let E=v?n.encode(n.from("constructor(bytes, bytes)"),{bytecode:s.deploylessCallViaBytecodeBytecode,args:["0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033",a.encodeData(a.from("function getBalance(address)"),[v.address])]}):void 0,x=y?await Promise.all(t.calls.map(async t=>{if(!t.data&&!t.abi)return;let{accessList:r}=await (0,d.createAccessList)(e,{account:v.address,...t,data:t.abi?(0,c.encodeFunctionData)(t):t.data});return r.map(({address:e,storageKeys:t})=>t.length>0?e:null)})).then(e=>
vendor: 5,586 bytes, line 1
1e.flat().filter(Boolean)):[],w=await (0,f.simulateBlocks)(e,{blockNumber:r,blockTag:p,blocks:[...y?[{calls:[{data:E}],stateOverrides:m},{calls:x.map((e,t)=>({abi:[a.from("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[v.address],to:e,from:i.zeroAddress,nonce:t})),stateOverrides:[{address:i.zeroAddress,nonce:0}]}]:[],{calls:[...b,{}].map(e=>({...e,from:v?.address})),stateOverrides:m},...y?[{calls:[{data:E}]},{calls:x.map((e,t)=>({abi:[a.from("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[v.address],to:e,from:i.zeroAddress,nonce:t})),stateOverrides:[{address:i.zeroAddress,nonce:0}]},{calls:x.map((e,t)=>({to:e,abi:[a.from("function decimals() returns (uint256)")],functionName:"decimals",from:i.zeroAddress,nonce:t})),stateOverrides:[{address:i.zeroAddress,nonce:0}]},{calls:x.map((e,t)=>({to:e,abi:[a.from("function tokenURI(uint256) returns (string)")],functionName:"tokenURI",args:[0n],from:i.zeroAddress,nonce:t})),stateOverrides:[{address:i.zeroAddress,nonce:0}]},{calls:x.map((e,t)=>({to:e,abi:[a.from("function symbol() returns (string)")],functionName:"symbol",from:i.zeroAddress,nonce:t})),stateOverrides:[{address:i.zeroAddress,nonce:0}]}]:[]],traceTransfers:h,validation:g}),P=y?w[2]:w[0],[I,A,,T,O,B,S,j]=y?w:[],{calls:_,...M}=P,C=_.slice(0,-1)??[],R=[...I?.calls??[],...A?.calls??[]].map(e=>"success"===e.status?(0,l.hexToBigInt)(e.data):null),k=[...T?.calls??[],...O?.calls??[]].map(e=>"success"===e.status?(0,l.hexToBigInt)(e.data):null),H=(B?.calls??[]).map(e=>"success"===e.status?e.result:null),N=(j?.calls??[]).map(e=>"success"===e.status?e.result:null),F=(S?.calls??[]).map(e=>"success"===e.status?e.result:null),U=[];for(let[e,t]of k.entries()){let r=R[e];if("bigint"!=typeof t||"bigint"!=typeof r)continue;let n=H[e-1],a=N[e-1],o=F[e-1],s=0===e?{address:i.ethAddress,decimals:18,symbol:"ETH"}:{address:x[e-1],decimals:o||n?Number(n??1):void 0,symbol:a??void 0};U.some(e=>e.token.address===s.address)||U.push({token:s,value:{pre:r,post:t,diff:t-r}})}return{assetChanges:U,block:M,results:C}}},11813:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.shake256=t.shake128=t.keccak_512=t.keccak_384=t.keccak_256=t.keccak_224=t.sha3_512=t.sha3_384=t.sha3_256=t.sha3_224=t.Keccak=void 0,t.keccakP=v;let n=r(70272),a=r(55603),o=BigInt(0),i=BigInt(1),s=BigInt(2),u=BigInt(7),c=BigInt(256),l=BigInt(113),d=[],f=[],p=[];for(let e=0,t=i,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],d.push(2*(5*n+r)),f.push((e+1)*(e+2)/2%64);let a=o;for(let e=0;e<7;e++)(t=(t<<i^(t>>u)*l)%c)&s&&(a^=i<<(i<<BigInt(e))-i);p.push(a)}let b=(0,n.split)(p,!0),m=b[0],y=b[1],h=(e,t,r)=>r>32?(0,n.rotlBH)(e,t,r):(0,n.rotlSH)(e,t,r),g=(e,t,r)=>r>32?(0,n.rotlBL)(e,t,r):(0,n.rotlSL)(e,t,r);function v(e,t=24){let r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let n=(t+8)%10,a=(t+2)%10,o=r[a],i=r[a+1],s=h(o,i,1)^r[n],u=g(o,i,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=s,e[t+r+1]^=u}let t=e[2],a=e[3];for(let r=0;r<24;r++){let n=f[r],o=h(t,a,n),i=g(t,a,n),s=d[r];t=e[s],a=e[s+1],e[s]=o,e[s+1]=i}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=m[n],e[1]^=y[n]}(0,a.clean)(r)}class E extends a.Hash{constructor(e,t,r,n=!1,o=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=n,this.rounds=o,(0,a.anumber)(r),!(0<e&&e<200))throw Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=(0,a.u32)(this.state)}clone(){return this._cloneInto()}keccak(){(0,a.swap32IfBE)(this.state32),v(this.state32,this.rounds),(0,a.swap32IfBE)(this.state32),this.posOut=0,this.pos=0}update(e){(0,a.aexists)(this),e=(0,a.toBytes)(e),(0,a.abytes)(e);let{blockLen:t,state:r}=this,n=e.length;for(let a=0;a<n;){let o=Math.min(t-this.pos,n-a);for(let t=0;t<o;t++)r[this.pos++]^=e[a++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,(128&t)!=0&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){(0,a.aexists)(this,!1),(0,a.abytes)(e),this.finish();let t=this.state,{blockLen:r}=this;for(let n=0,a=e.length;n<a;){this.posOut>=r&&this.keccak();let o=Math.min(r-this.posOut,a-n);e.set(t.subarray(this.posOut,this.posOut+o),n),this.posOut+=o,n+=o}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,a.anumber)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,a.aoutput)(e,this),this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,(0,a.clean)(this.state)}_cloneInto(e){let{blockLen:t,suffix:r,outputLen:n,rounds:a,enableXOF:o}=this;return e||(e=new E(t,r,n,o,a)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=a,e.suffix=r,e.outputLen=n,e.enableXOF=o,e.destroyed=this.destroyed,e}}t.Keccak=E;let x=(e,t,r)=>(0,a.createHasher)(()=>new E(t,e,r));t.sha3_224=x(6,144,28),t.sha3_256=x(6,136,32),t.sha3_384=x(6,104,48),t.sha3_512=x(6,72,64),t.keccak_224=x(1,144,28),t.keccak_256=x(1,136,32),t.keccak_384=x(1,104,48),t.keccak_512=x(1,72,64);let w=(e,t,r)=>(0,a.createXOFer)((n={})=>new E(t,e,void 0===n.dkLen?r:n.dkLen,!0));t.shake128=w(31,168,16),t.shake256=w(31,136,32)},12961:(e,t,r)=>
1{Object.defineProperty(t,"__esModule",{value:!0}),t.getProof=o;let n=r(37264),a=r(82606);async function o(e,{address:t,blockNumber:r,blockTag:i,storageKeys:s}){let u=void 0!==r?(0,n.numberToHex)(r):void 0,c=await e.request({method:"eth_getProof",params:[t,s,u||(i??"latest")]});return(0,a.formatProof)(c)}},13152:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.zeroAddress=t.ethAddress=t.entryPoint08Address=t.entryPoint07Address=t.entryPoint06Address=void 0,t.entryPoint06Address="0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",t.entryPoint07Address="0x0000000071727De22E5E9d8BAf0edAc6f37da032",t.entryPoint08Address="0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108",t.ethAddress="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",t.zeroAddress="0x0000000000000000000000000000000000000000"},13495:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseErc6492Signature=function(e){if(!(0,a.isErc6492Signature)(e))return{signature:e};let[t,r,o]=(0,n.decodeAbiParameters)([{type:"address"},{type:"bytes"},{type:"bytes"}],e);return{address:t,data:r,signature:o}};let n=r(47065),a=r(55814)},13752:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.narrow=function(e){return e}},14031:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.maxBytesPerTransaction=t.bytesPerBlob=t.fieldElementsPerBlob=t.bytesPerFieldElement=void 0,t.bytesPerFieldElement=32,t.fieldElementsPerBlob=4096,t.bytesPerBlob=t.bytesPerFieldElement*t.fieldElementsPerBlob,t.maxBytesPerTransaction=6*t.bytesPerBlob-1-6*t.fieldElementsPerBlob},14680:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.defineTransaction=t.transactionType=void 0,t.formatTransaction=o;let n=r(85319),a=r(90942);function o(e,r){let a={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?(0,n.hexToNumber)(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?(0,n.hexToNumber)(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?t.transactionType[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return e.authorizationList&&(a.authorizationList=e.authorizationList.map(e=>({address:e.address,chainId:Number(e.chainId),nonce:Number(e.nonce),r:e.r,s:e.s,yParity:Number(e.yParity)}))),a.yParity=(()=>{if(e.yParity)return Number(e.yParity);if("bigint"==typeof a.v){if(0n===a.v||27n===a.v)return 0;if(1n===a.v||28n===a.v)return 1;if(a.v>=35n)return+(a.v%2n===0n)}})(),"legacy"===a.type&&(delete a.accessList,delete a.maxFeePerBlobGas,delete a.maxFeePerGas,delete a.maxPriorityFeePerGas,delete a.yParity),"eip2930"===a.type&&(delete a.maxFeePerBlobGas,delete a.maxFeePerGas,delete a.maxPriorityFeePerGas),"eip1559"===a.type&&delete a.maxFeePerBlobGas,a}t.transactionType={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"},t.defineTransaction=(0,a.defineFormatter)("transaction",o)},14792:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbiItem=function(e){return"function"===e.type?`function ${e.name}(${(0,n.formatAbiParameters)(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs?.length?` returns (${(0,n.formatAbiParameters)(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${(0,n.formatAbiParameters)(e.inputs)})`:"error"===e.type?`error ${e.name}(${(0,n.formatAbiParameters)(e.inputs)})`:"constructor"===e.type?`constructor(${(0,n.formatAbiParameters)(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?`fallback() external${"payable"===e.stateMutability?" payable":""}`:"receive() external payable"};let n=r(23267)},15152:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.defineTransactionReceipt=t.receiptStatuses=void 0,t.formatTransactionReceipt=s;let n=r(85319),a=r(90942),o=r(64234),i=r(14680);function s(e,r){let a={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(e=>(0,o.formatLog)(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,n.hexToNumber)(e.transactionIndex):null,status:e.status?t.receiptStatuses[e.status]:null,type:e.type?i.transactionType[e.type]||e.type:null};return e.blobGasPrice&&(a.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(a.blobGasUsed=BigInt(e.blobGasUsed)),a}t.receiptStatuses={"0x0":"reverted","0x1":"success"},t.defineTransactionReceipt=(0,a.defineFormatter)("transactionReceipt",s)},15233:(e,t)=>
1{Object.defineProperty(t,"__esModule",{value:!0}),t.solidityPanic=t.solidityError=t.panicReasons=void 0,t.panicReasons={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."},t.solidityError={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},t.solidityPanic={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}},15524:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SafeAppProvider=void 0;var n=r(55869);Object.defineProperty(t,"SafeAppProvider",{enumerable:!0,get:function(){return n.SafeAppProvider}})},16576:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SignatureErc8010=void 0,t.SignatureErc8010=r(39375)},16992:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toBytes=function(e){return s(e,"Bytes")},t.toHex=function(e){return s(e,"Hex")},t.to=s,t.decodeRlpCursor=u,t.readLength=c,t.readList=l,t.from=d,t.fromBytes=function(e,t={}){let{as:r="Bytes"}=t;return d(e,{as:r})},t.fromHex=function(e,t={}){let{as:r="Hex"}=t;return d(e,{as:r})};let n=r(33745),a=r(45189),o=r(58515),i=r(43702);function s(e,t){let r=t??("string"==typeof e?"Hex":"Bytes"),a=(()=>{if("string"==typeof e){if(e.length>3&&e.length%2!=0)throw new o.InvalidLengthError(e);return n.fromHex(e)}return e})();return u(i.create(a,{recursiveReadLimit:1/0}),r)}function u(e,t="Hex"){if(0===e.bytes.length)return"Hex"===t?o.fromBytes(e.bytes):e.bytes;let r=e.readByte();if(r<128&&e.decrementPosition(1),r<192){let n=c(e,r,128),a=e.readBytes(n);return"Hex"===t?o.fromBytes(a):a}let n=c(e,r,192);return l(e,n,t)}function c(e,t,r){if(128===r&&t<128)return 1;if(t<=r+55)return t-r;if(t===r+55+1)return e.readUint8();if(t===r+55+2)return e.readUint16();if(t===r+55+3)return e.readUint24();if(t===r+55+4)return e.readUint32();throw new a.BaseError("Invalid RLP prefix")}function l(e,t,r){let n=e.position,a=[];for(;e.position-n<t;)a.push(u(e,r));return a}function d(e,t){let{as:r}=t,a=function e(t){var r,a;let o,i,s,u;return Array.isArray(t)?(i=f(o=(r=t.map(t=>e(t))).reduce((e,t)=>e+t.length,0)),{length:o<=55?1+o:1+i+o,encode(e){for(let{encode:t}of(o<=55?e.pushByte(192+o):(e.pushByte(247+i),1===i?e.pushUint8(o):2===i?e.pushUint16(o):3===i?e.pushUint24(o):e.pushUint32(o)),r))t(e)}}):(u=f((s="string"==typeof(a=t)?n.fromHex(a):a).length),{length:1===s.length&&s[0]<128?1:s.length<=55?1+s.length:1+u+s.length,encode(e){1===s.length&&s[0]<128||(s.length<=55?e.pushByte(128+s.length):(e.pushByte(183+u),1===u?e.pushUint8(s.length):2===u?e.pushUint16(s.length):3===u?e.pushUint24(s.length):e.pushUint32(s.length))),e.pushBytes(s)}})}(e),s=i.create(new Uint8Array(a.length));return(a.encode(s),"Hex"===r)?o.fromBytes(s.bytes):s.bytes}function f(e){if(e<256)return 1;if(e<65536)return 2;if(e<0x1000000)return 3;if(e<0x100000000)return 4;throw new a.BaseError("Length is too large.")}},17406:(e,t)=>{async function r(e,{hash:t}){await e.request({method:`${e.mode}_dropTransaction`,params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.dropTransaction=r},18067:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.verifyTypedData=o;let n=r(98589),a=r(56153);async function o(e,t){let{address:r,factory:o,factoryData:i,signature:s,message:u,primaryType:c,types:l,domain:d,...f}=t,p=(0,n.hashTypedData)({message:u,primaryType:c,types:l,domain:d});return(0,a.verifyHash)(e,{address:r,factory:o,factoryData:i,hash:p,signature:s,...f})}},18181:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createPublicClient=function(e){let{key:t="public",name:r="Public Client"}=e;return(0,n.createClient)({...e,key:t,name:r,type:"publicClient"}).extend(a.publicActions)};let n=r(8436),a=r(48807)},18415:(e,t)=>
1{Object.defineProperty(t,"__esModule",{value:!0}),t.parseSiweMessage=function(e){let{scheme:t,statement:a,...o}=e.match(r)?.groups??{},{chainId:i,expirationTime:s,issuedAt:u,notBefore:c,requestId:l,...d}=e.match(n)?.groups??{},f=e.split("Resources:")[1]?.split("\n- ").slice(1);return{...o,...d,...i?{chainId:Number(i)}:{},...s?{expirationTime:new Date(s)}:{},...u?{issuedAt:new Date(u)}:{},...c?{notBefore:new Date(c)}:{},...l?{requestId:l}:{},...f?{resources:f}:{},...t?{scheme:t}:{},...a?{statement:a}:{}}};let r=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?<address>0x[a-fA-F0-9]{40})\n\n(?:(?<statement>.*)\n\n)?/,n=/(?:URI: (?<uri>.+))\n(?:Version: (?<version>.+))\n(?:Chain ID: (?<chainId>\d+))\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\n(?:Issued At: (?<issuedAt>.+))(?:\nExpiration Time: (?<expirationTime>.+))?(?:\nNot Before: (?<notBefore>.+))?(?:\nRequest ID: (?<requestId>.+))?/},18487:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toBlobs=function(e){let t=e.to??("string"==typeof e.data?"hex":"bytes"),r="string"==typeof e.data?(0,s.hexToBytes)(e.data):e.data,c=(0,i.size)(r);if(!c)throw new a.EmptyBlobError;if(c>n.maxBytesPerTransaction)throw new a.BlobSizeTooLargeError({maxSize:n.maxBytesPerTransaction,size:c});let l=[],d=!0,f=0;for(;d;){let e=(0,o.createCursor)(new Uint8Array(n.bytesPerBlob)),t=0;for(;t<n.fieldElementsPerBlob;){let a=r.slice(f,f+(n.bytesPerFieldElement-1));if(e.pushByte(0),e.pushBytes(a),a.length<31){e.pushByte(128),d=!1;break}t++,f+=31}l.push(e)}return"bytes"===t?l.map(e=>e.bytes):l.map(e=>(0,u.bytesToHex)(e.bytes))};let n=r(14031),a=r(96189),o=r(21574),i=r(27420),s=r(96978),u=r(37264)},18786:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toSignatureHash=function(e){return(0,n.hashSignature)((0,a.toSignature)(e))};let n=r(89469),a=r(26434)},19048:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.fromBlobs=function(e){let t=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),r="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,a.hexToBytes)(e)):e.blobs,i=r.reduce((e,t)=>e+t.length,0),s=(0,n.createCursor)(new Uint8Array(i)),u=!0;for(let e of r){let t=(0,n.createCursor)(e);for(;u&&t.position<e.length;){t.incrementPosition(1);let r=31;for(let n in e.length-t.position<31&&(r=e.length-t.position),Array.from({length:r})){let e=t.readByte();if(128===e&&!t.inspectBytes(t.remaining).includes(128)){u=!1;break}s.pushByte(e)}}}let c=s.bytes.slice(0,s.position);return"hex"===t?(0,o.bytesToHex)(c):c};let n=r(21574),a=r(96978),o=r(37264)},19244:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.encodeErrorResult=function(e){let{abi:t,errorName:r,args:l}=e,d=t[0];if(r){let e=(0,u.getAbiItem)({abi:t,args:l,name:r});if(!e)throw new n.AbiErrorNotFoundError(r,{docsPath:c});d=e}if("error"!==d.type)throw new n.AbiErrorNotFoundError(void 0,{docsPath:c});let f=(0,s.formatAbiItem)(d),p=(0,o.toFunctionSelector)(f),b="0x";if(l&&l.length>0){if(!d.inputs)throw new n.AbiErrorInputsNotFoundError(d.name,{docsPath:c});b=(0,i.encodeAbiParameters)(d.inputs,l)}return(0,a.concatHex)([p,b])};let n=r(95664),a=r(78917),o=r(96573),i=r(70209),s=r(8117),u=r(1682),c="/docs/contract/encodeErrorResult"},19960:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getBlockNumberCache=function(e){return(0,n.getCache)(a(e))},t.getBlockNumber=o;let n=r(72580),a=e=>`blockNumber.${e}`;async function o(e,{cacheTime:t=e.cacheTime}={}){return BigInt(await (0,n.withCache)(()=>e.request({method:"eth_blockNumber"}),{cacheKey:a(e.uid),cacheTime:t}))}},20250:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0});let n=r(20542),a=r(59342),o=(e,t)=>t.some(t=>t.parentCapability===e);t.default=()=>(e,t,r)=>{let i=r.value;return r.value=async function(){let e=new n.Wallet(this.communicator),r=await e.getPermissions();if(o(t,r)||(r=await e.requestPermissions([{[t]:{}}])),!o(t,r))throw new a.PermissionsError("Permissions rejected",a.PERMISSIONS_REQUEST_REJECTED);return i.apply(this)},r}},20542:(e,t,r)=>
1{Object.defineProperty(t,"__esModule",{value:!0}),t.Wallet=void 0;let n=r(79629),a=r(59342);class o{constructor(e){this.communicator=e}async getPermissions(){return(await this.communicator.send(n.Methods.wallet_getPermissions,void 0)).data}async requestPermissions(e){if(!this.isPermissionRequestValid(e))throw new a.PermissionsError("Permissions request is invalid",a.PERMISSIONS_REQUEST_REJECTED);try{return(await this.communicator.send(n.Methods.wallet_requestPermissions,e)).data}catch{throw new a.PermissionsError("Permissions rejected",a.PERMISSIONS_REQUEST_REJECTED)}}isPermissionRequestValid(e){return e.every(e=>"object"==typeof e&&Object.keys(e).every(e=>!!Object.values(n.RestrictedMethods).includes(e)))}}t.Wallet=o},20666:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.functionModifiers=t.eventModifiers=t.modifiers=void 0,t.isErrorSignature=function(e){return a.test(e)},t.execErrorSignature=function(e){return(0,n.execTyped)(a,e)},t.isEventSignature=function(e){return o.test(e)},t.execEventSignature=function(e){return(0,n.execTyped)(o,e)},t.isFunctionSignature=function(e){return i.test(e)},t.execFunctionSignature=function(e){return(0,n.execTyped)(i,e)},t.isStructSignature=function(e){return s.test(e)},t.execStructSignature=function(e){return(0,n.execTyped)(s,e)},t.isConstructorSignature=function(e){return u.test(e)},t.execConstructorSignature=function(e){return(0,n.execTyped)(u,e)},t.isFallbackSignature=function(e){return c.test(e)},t.execFallbackSignature=function(e){return(0,n.execTyped)(c,e)},t.isReceiveSignature=function(e){return l.test(e)};let n=r(58446),a=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/,o=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/,i=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/,s=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/,u=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/,c=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/,l=/^receive\(\) external payable$/;t.modifiers=new Set(["memory","indexed","storage","calldata"]),t.eventModifiers=new Set(["indexed"]),t.functionModifiers=new Set(["calldata","memory","storage"])},21081:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.defineBlock=void 0,t.formatBlock=o;let n=r(90942),a=r(14680);function o(e,t){let r=(e.transactions??[]).map(e=>"string"==typeof e?e:(0,a.formatTransaction)(e));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:r,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}t.defineBlock=(0,n.defineFormatter)("block",o)},21574:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createCursor=function(e,{recursiveReadLimit:t=8192}={}){let r=Object.create(a);return r.bytes=e,r.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r};let n=r(42332),a={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 n.RecursiveReadLimitExceededError({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new n.PositionOutOfBoundsError({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new n.NegativeOffsetError({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.NegativeOffsetError({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 r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+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 r=this.inspectBytes(e);return this.position+=t??e,r},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++}}},21661:(e,t,r)=>
1{Object.defineProperty(t,"__esModule",{value:!0}),t.custom=function(e,t={}){let{key:r="custom",methods:a,name:o="Custom Provider",retryDelay:i}=t;return({retryCount:s})=>(0,n.createTransport)({key:r,methods:a,name:o,request:e.request.bind(e),retryCount:t.retryCount??s,retryDelay:i,type:"custom"})};let n=r(66643)},21815:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getFilterChanges=o;let n=r(48093),a=r(64234);async function o(e,{filter:t}){let r="strict"in t&&t.strict,i=await t.request({method:"eth_getFilterChanges",params:[t.id]});if("string"==typeof i[0])return i;let s=i.map(e=>(0,a.formatLog)(e));return"abi"in t&&t.abi?(0,n.parseEventLogs)({abi:t.abi,logs:s,strict:r}):s}},21822:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.writeContractSync=o;let n=r(42245),a=r(86717);async function o(e,t){return a.writeContract.internal(e,n.sendTransactionSync,"sendTransactionSync",t)}},21830:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),a(r(54606),t),a(r(57357),t),a(r(85816),t),a(r(97898),t)},22114:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.testActions=function({mode:e}){return t=>{let r=t.extend(()=>({mode:e}));return{dropTransaction:e=>(0,n.dropTransaction)(r,e),dumpState:()=>(0,a.dumpState)(r),getAutomine:()=>(0,o.getAutomine)(r),getTxpoolContent:()=>(0,i.getTxpoolContent)(r),getTxpoolStatus:()=>(0,s.getTxpoolStatus)(r),impersonateAccount:e=>(0,u.impersonateAccount)(r,e),increaseTime:e=>(0,c.increaseTime)(r,e),inspectTxpool:()=>(0,l.inspectTxpool)(r),loadState:e=>(0,d.loadState)(r,e),mine:e=>(0,f.mine)(r,e),removeBlockTimestampInterval:()=>(0,p.removeBlockTimestampInterval)(r),reset:e=>(0,b.reset)(r,e),revert:e=>(0,m.revert)(r,e),sendUnsignedTransaction:e=>(0,y.sendUnsignedTransaction)(r,e),setAutomine:e=>(0,h.setAutomine)(r,e),setBalance:e=>(0,g.setBalance)(r,e),setBlockGasLimit:e=>(0,v.setBlockGasLimit)(r,e),setBlockTimestampInterval:e=>(0,E.setBlockTimestampInterval)(r,e),setCode:e=>(0,x.setCode)(r,e),setCoinbase:e=>(0,w.setCoinbase)(r,e),setIntervalMining:e=>(0,P.setIntervalMining)(r,e),setLoggingEnabled:e=>(0,I.setLoggingEnabled)(r,e),setMinGasPrice:e=>(0,A.setMinGasPrice)(r,e),setNextBlockBaseFeePerGas:e=>(0,T.setNextBlockBaseFeePerGas)(r,e),setNextBlockTimestamp:e=>(0,O.setNextBlockTimestamp)(r,e),setNonce:e=>(0,B.setNonce)(r,e),setRpcUrl:e=>(0,S.setRpcUrl)(r,e),setStorageAt:e=>(0,j.setStorageAt)(r,e),snapshot:()=>(0,_.snapshot)(r),stopImpersonatingAccount:e=>(0,M.stopImpersonatingAccount)(r,e)}}};let n=r(17406),a=r(58906),o=r(35049),i=r(69968),s=r(80125),u=r(95215),c=r(92918),l=r(80643),d=r(98676),f=r(30240),p=r(42961),b=r(11210),m=r(46181),y=r(52034),h=r(3917),g=r(86011),v=r(35026),E=r(8183),x=r(52780),w=r(35421),P=r(75252),I=r(91663),A=r(98453),T=r(1992),O=r(2471),B=r(76804),S=r(11625),j=r(48223),_=r(45511),M=r(51934)},22134:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.serializeErc8010Signature=function(e){let{address:t,data:r,signature:o,to:i="hex"}=e,s=n.SignatureErc8010.wrap({authorization:{address:e.authorization.address,chainId:e.authorization.chainId,nonce:BigInt(e.authorization.nonce),r:BigInt(e.authorization.r),s:BigInt(e.authorization.s),yParity:e.authorization.yParity},data:r,signature:o,to:t});return"hex"===i?s:(0,a.hexToBytes)(s)};let n=r(16576),a=r(96978)},22159:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatUnits=function(e,t){let r=e.toString(),n=r.startsWith("-");n&&(r=r.slice(1));let[a,o]=[(r=r.padStart(t,"0")).slice(0,r.length-t),r.slice(r.length-t)];return o=o.replace(/(0+)$/,""),`${n?"-":""}${a||"0"}${o?`.${o}`:""}`}},22391:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.serializeSignature=function({r:e,s:t,to:r="hex",v:i,yParity:s}){let u=(()=>
1{if(0===s||1===s)return s;if(i&&(27n===i||28n===i||i>=35n))return+(i%2n===0n);throw Error("Invalid `v` or `yParity` value")})(),c=`0x${new n.secp256k1.Signature((0,a.hexToBigInt)(e),(0,a.hexToBigInt)(t)).toCompactHex()}${0===u?"1b":"1c"}`;return"hex"===r?c:(0,o.hexToBytes)(c)};let n=r(26414),a=r(85319),o=r(96978)},22811:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createBlockFilter=a;let n=r(56457);async function a(e){let t=(0,n.createFilterRequestScope)(e,{method:"eth_newBlockFilter"}),r=await e.request({method:"eth_newBlockFilter"});return{id:r,request:t(r),type:"block"}}},22926:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.noble=void 0,t.createKeyPair=function(e={}){let{as:t="Hex"}=e,r=l({as:t}),n=c({privateKey:r});return{privateKey:r,publicKey:n}},t.getPublicKey=c,t.getSharedSecret=function(e){let{as:t="Hex",privateKey:r,publicKey:a}=e,o=n.secp256k1.ProjectivePoint.fromHex(u.toHex(a).slice(2)).multiply(n.secp256k1.utils.normPrivateKeyToScalar(i.from(r).slice(2))).toRawBytes(!0);return"Hex"===t?i.fromBytes(o):o},t.randomPrivateKey=l,t.recoverAddress=d,t.recoverPublicKey=f,t.sign=function(e){let{extraEntropy:t=s.extraEntropy,hash:r,payload:a,privateKey:u}=e,{r:c,s:l,recovery:d}=n.secp256k1.sign(o.from(a),o.from(u),{extraEntropy:"boolean"==typeof t?t:i.from(t).slice(2),lowS:!0,...r?{prehash:!0}:{}});return{r:c,s:l,yParity:d}},t.verify=function(e){let{address:t,hash:r,payload:i,publicKey:s,signature:c}=e;return t?a.isEqual(t,d({payload:i,signature:c})):n.secp256k1.verify(c,o.from(i),u.toBytes(s),...r?[{prehash:!0,lowS:!0}]:[])};let n=r(26414),a=r(30990),o=r(33745),i=r(58515),s=r(40753),u=r(45622);function c(e){let{privateKey:t}=e,r=n.secp256k1.ProjectivePoint.fromPrivateKey(i.from(t).slice(2));return u.from(r)}function l(e={}){let{as:t="Hex"}=e,r=n.secp256k1.utils.randomPrivateKey();return"Hex"===t?i.fromBytes(r):r}function d(e){return a.fromPublicKey(f(e))}function f(e){let{payload:t,signature:r}=e,{r:a,s:o,yParity:s}=r,c=new n.secp256k1.Signature(BigInt(a),BigInt(o)).addRecoveryBit(s).recoverPublicKey(i.from(t).substring(2));return u.from(c)}t.noble=n.secp256k1},23267:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbiParameters=function(e){let t="",r=e.length;for(let a=0;a<r;a++){let o=e[a];t+=(0,n.formatAbiParameter)(o),a!==r-1&&(t+=", ")}return t};let n=r(35610)},23784:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.decodeData=function(...e){let[t,r]=(()=>{if(Array.isArray(e[0])){let[t,r,n]=e;return[s(t,r),n]}return e})(),{overloads:n}=t;if(4>i.size(r))throw new a.InvalidSelectorSizeError({data:r});if(0===t.inputs.length)return;let u=n?s([t,...n],r):t;if(!(4>=i.size(r)))return o.decode(u.inputs,i.slice(r,4))},t.decodeResult=function(...e){let[t,r,n={}]=(()=>{if(Array.isArray(e[0])){let[t,r,n,a]=e;return[s(t,r),n,a]}return e})(),a=o.decode(t.outputs,r,n);if(!a||0!==Object.keys(a).length)return a&&1===Object.keys(a).length?Array.isArray(a)?a[0]:Object.values(a)[0]:a},t.encodeData=function(...e){let[t,r=[]]=(()=>{if(Array.isArray(e[0])){let[t,r,n]=e;return[s(t,r,{args:n}),n]}let[t,r]=e;return[t,r]})(),{overloads:n}=t,a=n?s([t,...n],t.name,{args:r}):t,c=u(a),l=r.length>0?o.encode(a.inputs,r):void 0;return l?i.concat(c,l):c},t.encodeResult=function(...e){let[t,r,n={}]=(()=>{if(Array.isArray(e[0])){let[t,r,n,a]=e;return[s(t,r),n,a]}return e})(),{as:a="Array"}=n,i=1===t.outputs.length?[r]:Array.isArray(r)?r:"Object"===a?Object.values(r):[r];return o.encode(t.outputs,i)},t.format=function(e){return n.formatAbiItem(e)},t.from=function(e,t={}){return a.from(e,t)},t.fromAbi=s,t.getSelector=u;let n=r(54145),a=r(43299),o=r(40564),i=r(58515);function s(e,t,r){let n=a.fromAbi(e,t,r);if("function"!==n.type)throw new a.NotFoundError({name:t,type:"function"});return n}function u(e){return a.getSelector(e)}},23941:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getEnsResolver=u;let n=r(89007),a=r(37264),o=r(72831),i=r(78234),s=r(36110);async function u(e,t){let{blockNumber:r,blockTag:u,name:c}=t,{chain:l}=e,d=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!l)throw Error("client chain not configured. universalResolverAddress is required.");return(0,n.getChainContractAddress)({blockNumber:r,chain:l,contract:"ensUniversalResolver"})})(),f=l?.ensTlds;
1if(f&&!f.some(e=>c.endsWith(e)))throw Error(`${c} is not a valid ENS TLD (${f?.join(", ")}) for chain "${l.name}" (id: ${l.id}).`);let[p]=await (0,i.getAction)(e,s.readContract,"readContract")({address:d,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"},{type:"uint256"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[(0,a.toHex)((0,o.packetToBytes)(c))],blockNumber:r,blockTag:u});return p}},23992:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getEnsName=c;let n=r(5223),a=r(89007),o=r(73062),i=r(44247),s=r(78234),u=r(36110);async function c(e,t){let{address:r,blockNumber:c,blockTag:l,coinType:d=60n,gatewayUrls:f,strict:p}=t,{chain:b}=e,m=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!b)throw Error("client chain not configured. universalResolverAddress is required.");return(0,a.getChainContractAddress)({blockNumber:c,chain:b,contract:"ensUniversalResolver"})})();try{let t={address:m,abi:n.universalResolverReverseAbi,args:[r,d,f??[i.localBatchGatewayUrl]],functionName:"reverseWithGateways",blockNumber:c,blockTag:l},a=(0,s.getAction)(e,u.readContract,"readContract"),[o]=await a(t);return o||null}catch(e){if(p)throw e;if((0,o.isNullUniversalResolverError)(e))return null;throw e}}},24141:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.trim=function(e,{dir:t="left"}={}){let r="string"==typeof e?e.replace("0x",""):e,n=0;for(let e=0;e<r.length-1;e++)if("0"===r["left"===t?e:r.length-e-1].toString())n++;else break;return(r="left"===t?r.slice(n):r.slice(0,r.length-n),"string"==typeof e)?(1===r.length&&"right"===t&&(r=`${r}0`),`0x${r.length%2==1?`0${r}`:r}`):r}},24288:(e,t)=>{async function r(e){return await e.request({method:"wallet_getPermissions"},{dedupe:!0})}Object.defineProperty(t,"__esModule",{value:!0}),t.getPermissions=r},24447:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StateAssignmentConflictError=t.AccountStateConflictError=void 0,t.prettyStateMapping=i,t.prettyStateOverride=function(e){return e.reduce((e,{address:t,...r})=>{let n=`${e} ${t}: 2`;return r.nonce&&(n+=` nonce: ${r.nonce} 3`),r.balance&&(n+=` balance: ${r.balance} 4`),r.code&&(n+=` code: ${r.code} 5`),r.state&&(n+=" state:\n",n+=i(r.state)),r.stateDiff&&(n+=" stateDiff:\n",n+=i(r.stateDiff)),n}," State Override:\n").slice(0,-1)};let n=r(33911);class a extends n.BaseError{constructor({address:e}){super(`State for account "${e}" is set multiple times.`,{name:"AccountStateConflictError"})}}t.AccountStateConflictError=a;class o extends n.BaseError{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function i(e){return e.reduce((e,{slot:t,value:r})=>`${e} ${t}: ${r} 6`,"")}t.StateAssignmentConflictError=o},24839:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},25055:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseAccount=function(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}},25109:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.slice=function(e,t,r,{strict:n}={}){return(0,a.isHex)(e,{strict:!1})?c(e,t,r,{strict:n}):u(e,t,r,{strict:n})},t.sliceBytes=u,t.sliceHex=c;let n=r(49322),a=r(10858),o=r(27420);function i(e,t){if("number"==typeof t&&t>0&&t>(0,o.size)(e)-1)throw new n.SliceOffsetOutOfBoundsError({offset:t,position:"start",size:(0,o.size)(e)})}function s(e,t,r){if("number"==typeof t&&"number"==typeof r&&(0,o.size)(e)!==r-t)throw new n.SliceOffsetOutOfBoundsError({offset:r,position:"end",size:(0,o.size)(e)})}function u(e,t,r,{strict:n}={}){i(e,t);let a=e.slice(t,r);return n&&s(a,t,r),a}function c(e,t,r,{strict:n}={}){i(e,t);let a=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return n&&s(a,t,r),a}},25705:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.assertSize=function(e,t){if(n.size(e)>t)throw new n.SizeOverflowError({givenSize:n.size(e),maxSize:t})},t.assertStartOffset=function(e,t){if("number"==typeof t&&t>0&&t>n.size(e)-1)throw new n.SliceOffsetOutOfBoundsError({offset:t,position:"start",size:n.size(e)}
6)},t.assertEndOffset=function(e,t,r){if("number"==typeof t&&"number"==typeof r&&n.size(e)!==r-t)throw new n.SliceOffsetOutOfBoundsError({offset:r,position:"end",size:n.size(e)})},t.pad=function(e,t={}){let{dir:r,size:a=32}=t;if(0===a)return e;let o=e.replace("0x","");if(o.length>2*a)throw new n.SizeExceedsPaddingSizeError({size:Math.ceil(o.length/2),targetSize:a,type:"Hex"});return`0x${o["right"===r?"padEnd":"padStart"](2*a,"0")}`},t.trim=function(e,t={}){let{dir:r="left"}=t,n=e.replace("0x",""),a=0;for(let e=0;e<n.length-1;e++)if("0"===n["left"===r?e:n.length-e-1].toString())a++;else break;return"0"===(n="left"===r?n.slice(a):n.slice(0,n.length-a))?"0x":"right"===r&&n.length%2==1?`0x${n}0`:`0x${n}`};let n=r(58515)},25818:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sha512_224=t.sha512_256=t.sha384=t.sha512=t.sha224=t.sha256=t.SHA512_256=t.SHA512_224=t.SHA384=t.SHA512=t.SHA224=t.SHA256=void 0;let n=r(11258),a=r(70272),o=r(55603),i=Uint32Array.from([0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2]),s=new Uint32Array(64);class u extends n.HashMD{constructor(e=32){super(64,e,8,!1),this.A=0|n.SHA256_IV[0],this.B=0|n.SHA256_IV[1],this.C=0|n.SHA256_IV[2],this.D=0|n.SHA256_IV[3],this.E=0|n.SHA256_IV[4],this.F=0|n.SHA256_IV[5],this.G=0|n.SHA256_IV[6],this.H=0|n.SHA256_IV[7]}get(){let{A:e,B:t,C:r,D:n,E:a,F:o,G:i,H:s}=this;return[e,t,r,n,a,o,i,s]}set(e,t,r,n,a,o,i,s){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|a,this.F=0|o,this.G=0|i,this.H=0|s}process(e,t){for(let r=0;r<16;r++,t+=4)s[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=s[e-15],r=s[e-2],n=(0,o.rotr)(t,7)^(0,o.rotr)(t,18)^t>>>3,a=(0,o.rotr)(r,17)^(0,o.rotr)(r,19)^r>>>10;s[e]=a+s[e-7]+n+s[e-16]|0}let{A:r,B:a,C:u,D:c,E:l,F:d,G:f,H:p}=this;for(let e=0;e<64;e++){let t=p+((0,o.rotr)(l,6)^(0,o.rotr)(l,11)^(0,o.rotr)(l,25))+(0,n.Chi)(l,d,f)+i[e]+s[e]|0,b=((0,o.rotr)(r,2)^(0,o.rotr)(r,13)^(0,o.rotr)(r,22))+(0,n.Maj)(r,a,u)|0;p=f,f=d,d=l,l=c+t|0,c=u,u=a,a=r,r=t+b|0}r=r+this.A|0,a=a+this.B|0,u=u+this.C|0,c=c+this.D|0,l=l+this.E|0,d=d+this.F|0,f=f+this.G|0,p=p+this.H|0,this.set(r,a,u,c,l,d,f,p)}roundClean(){(0,o.clean)(s)}destroy(){this.set(0,0,0,0,0,0,0,0),(0,o.clean)(this.buffer)}}t.SHA256=u;class c extends u{constructor(){super(28),this.A=0|n.SHA224_IV[0],this.B=0|n.SHA224_IV[1],this.C=0|n.SHA224_IV[2],this.D=0|n.SHA224_IV[3],this.E=0|n.SHA224_IV[4],this.F=0|n.SHA224_IV[5],this.G=0|n.SHA224_IV[6],this.H=0|n.SHA224_IV[7]}}t.SHA224=c;let l=a.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e3585
65771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),d=l[0],f=l[1],p=new Uint32Array(80),b=new Uint32Array(80);class m extends n.HashMD{constructor(e=64){super(128,e,16,!1),this.Ah=0|n.SHA512_IV[0],this.Al=0|n.SHA512_IV[1],this.Bh=0|n.SHA512_IV[2],this.Bl=0|n.SHA512_IV[3],this.Ch=0|n.SHA512_IV[4],this.Cl=0|n.SHA512_IV[5],this.Dh=0|n.SHA512_IV[6],this.Dl=0|n.SHA512_IV[7],this.Eh=0|n.SHA512_IV[8],this.El=0|n.SHA512_IV[9],this.Fh=0|n.SHA512_IV[10],this.Fl=0|n.SHA512_IV[11],this.Gh=0|n.SHA512_IV[12],this.Gl=0|n.SHA512_IV[13],this.Hh=0|n.SHA512_IV[14],this.Hl=0|n.SHA512_IV[15]}get(){let{Ah:e,Al:t,Bh:r,Bl:n,Ch:a,Cl:o,Dh:i,Dl:s,Eh:u,El:c,Fh:l,Fl:d,Gh:f,Gl:p,Hh:b,Hl:m}=this;return[e,t,r,n,a,o,i,s,u,c,l,d,f,p,b,m]}set(e,t,r,n,a,o,i,s,u,c,l,d,f,p,b,m){this.Ah=0|e,this.Al=0|t,this.Bh=0|r,this.Bl=0|n,this.Ch=0|a,this.Cl=0|o,this.Dh=0|i,this.Dl=0|s,this.Eh=0|u,this.El=0|c,this.Fh=0|l,this.Fl=0|d,this.Gh=0|f,this.Gl=0|p,this.Hh=0|b,this.Hl=0|m}process(e,t){for(let r=0;r<16;r++,t+=4)p[r]=e.getUint32(t),b[r]=e.getUint32(t+=4);for(let e=16;e<80;e++){let t=0|p[e-15],r=0|b[e-15],n=a.rotrSH(t,r,1)^a.rotrSH(t,r,8)^a.shrSH(t,r,7),o=a.rotrSL(t,r,1)^a.rotrSL(t,r,8)^a.shrSL(t,r,7),i=0|p[e-2],s=0|b[e-2],u=a.rotrSH(i,s,19)^a.rotrBH(i,s,61)^a.shrSH(i,s,6),c=a.rotrSL(i,s,19)^a.rotrBL(i,s,61)^a.shrSL(i,s,6),l=a.add4L(o,c,b[e-7],b[e-16]),d=a.add4H(l,n,u,p[e-7],p[e-16]);p[e]=0|d,b[e]=0|l}let{Ah:r,Al:n,Bh:o,Bl:i,Ch:s,Cl:u,Dh:c,Dl:l,Eh:m,El:y,Fh:h,Fl:g,Gh:v,Gl:E,Hh:x,Hl:w}=this;for(let e=0;e<80;e++){let t=a.rotrSH(m,y,14)^a.rotrSH(m,y,18)^a.rotrBH(m,y,41),P=a.rotrSL(m,y,14)^a.rotrSL(m,y,18)^a.rotrBL(m,y,41),I=m&h^~m&v,A=y&g^~y&E,T=a.add5L(w,P,A,f[e],b[e]),O=a.add5H(T,x,t,I,d[e],p[e]),B=0|T,S=a.rotrSH(r,n,28)^a.rotrBH(r,n,34)^a.rotrBH(r,n,39),j=a.rotrSL(r,n,28)^a.rotrBL(r,n,34)^a.rotrBL(r,n,39),_=r&o^r&s^o&s,M=n&i^n&u^i&u;x=0|v,w=0|E,v=0|h,E=0|g,h=0|m,g=0|y,({h:m,l:y}=a.add(0|c,0|l,0|O,0|B)),c=0|s,l=0|u,s=0|o,u=0|i,o=0|r,i=0|n;let C=a.add3L(B,j,M);r=a.add3H(C,O,S,_),n=0|C}({h:r,l:n}=a.add(0|this.Ah,0|this.Al,0|r,0|n)),({h:o,l:i}=a.add(0|this.Bh,0|this.Bl,0|o,0|i)),({h:s,l:u}=a.add(0|this.Ch,0|this.Cl,0|s,0|u)),({h:c,l:l}=a.add(0|this.Dh,0|this.Dl,0|c,0|l)),({h:m,l:y}=a.add(0|this.Eh,0|this.El,0|m,0|y)),({h:h,l:g}=a.add(0|this.Fh,0|this.Fl,0|h,0|g)),({h:v,l:E}=a.add(0|this.Gh,0|this.Gl,0|v,0|E)),({h:x,l:w}=a.add(0|this.Hh,0|this.Hl,0|x,0|w)),this.set(r,n,o,i,s,u,c,l,m,y,h,g,v,E,x,w)}roundClean(){(0,o.clean)(p,b)}destroy(){(0,o.clean)(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}t.SHA512=m;class y extends m{constructor(){super(48),this.Ah=0|n.SHA384_IV[0],this.Al=0|n.SHA384_IV[1],this.Bh=0|n.SHA384_IV[2],this.Bl=0|n.SHA384_IV[3],this.Ch=0|n.SHA384_IV[4],this.Cl=0|n.SHA384_IV[5],this.Dh=0|n.SHA384_IV[6],this.Dl=0|n.SHA384_IV[7],this.Eh=0|n.SHA384_IV[8],this.El=0|n.SHA384_IV[9],this.Fh=0|n.SHA384_IV[10],this.Fl=0|n.SHA384_IV[11],this.Gh=0|n.SHA384_IV[12],this.Gl=0|n.SHA384_IV[13],this.Hh=0|n.SHA384_IV[14],this.Hl=0|n.SHA384_IV[15]}}t.SHA384=y;let h=Uint32Array.from([0x8c3d37c8,0x19544da2,0x73e19966,0x89dcd4d6,0x1dfab7ae,0x32ff9c82,0x679dd514,0x582f9fcf,0xf6d2b69,0x7bd44da8,0x77e36f73,0x4c48942,0x3f9d85a8,0x6a1d36c8,0x1112e6ad,0x91d692a1]),g=Uint32Array.from([0x22312194,0xfc2bf72c,0x9f555fa3,0xc84c64c2,0x2393b86b,0x6f53b151,0x96387719,0x5940eabd,0x96283ee2,0xa88effe3,0xbe5e1e25,0x53863992,0x2b0199fc,0x2c85b8aa,0xeb72ddc,0x81c52ca2]);class v extends m{constructor(){super(28),this.Ah=0|h[0],this.Al=0|h[1],this.Bh=0|h[2],this.Bl=0|h[3],this.Ch=0|h[4],this.Cl=0|h[5],this.Dh=0|h[6],this.Dl=0|h[7],this.Eh=0|h[8],this.El=0|h[9],this.Fh=0|h[10],this.Fl=0|h[11],this.Gh=0|h[12],this.Gl=0|h[13],this.Hh=0|h[14],this.Hl=0|h[15]}}t.SHA512_224=v;class E extends m{constructor(){super(32),this.Ah=0|g[0],this.Al=0|g[1],this.Bh=0|g[2],this.Bl=0|g[3],this.Ch=0|g[4],this.Cl=0|g[5],this.Dh=0|g[6],this.Dl=0|g[7],this.Eh=0|g[8],this.El=0|g[9],this.Fh=0|g[10],this.Fl=0|g[11],this.Gh=0|g[12],this.Gl=0|g[13],this.Hh=0|g[14],this.Hl=0|g[15]}}t.SHA512_256=E,t.sha256=(0,o.createHasher)(()=>new u),t.sha224=(0,o.createHasher)(()=>new c),t.sha512=(0,o.createHasher)(()=>new m),t.sha384=(0,o.createHasher)(()=>new y),t.sha512_256=(0,o.createHasher)(()=>new E),t.sha512_224=(0,o.createHasher)(()=>new v)},26019:(e,t,r)=>
6{Object.defineProperty(t,"__esModule",{value:!0}),t.TimeoutError=t.SocketClosedError=t.RpcRequestError=t.WebSocketRequestError=t.HttpRequestError=void 0;let n=r(57737),a=r(33911),o=r(56391);class i extends a.BaseError{constructor({body:e,cause:t,details:r,headers:a,status:i,url:s}){super("HTTP request failed.",{cause:t,details:r,metaMessages:[i&&`Status: ${i}`,`URL: ${(0,o.getUrl)(s)}`,e&&`Request body: ${(0,n.stringify)(e)}`].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=a,this.status=i,this.url=s}}t.HttpRequestError=i;class s extends a.BaseError{constructor({body:e,cause:t,details:r,url:a}){super("WebSocket request failed.",{cause:t,details:r,metaMessages:[`URL: ${(0,o.getUrl)(a)}`,e&&`Request body: ${(0,n.stringify)(e)}`].filter(Boolean),name:"WebSocketRequestError"})}}t.WebSocketRequestError=s;class u extends a.BaseError{constructor({body:e,error:t,url:r}){super("RPC Request failed.",{cause:t,details:t.message,metaMessages:[`URL: ${(0,o.getUrl)(r)}`,`Request body: ${(0,n.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}),this.code=t.code,this.data=t.data}}t.RpcRequestError=u;class c extends a.BaseError{constructor({url:e}={}){super("The socket has been closed.",{metaMessages:[e&&`URL: ${(0,o.getUrl)(e)}`].filter(Boolean),name:"SocketClosedError"})}}t.SocketClosedError=c;class l extends a.BaseError{constructor({body:e,url:t}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,o.getUrl)(t)}`,`Request body: ${(0,n.stringify)(e)}`],name:"TimeoutError"})}}t.TimeoutError=l},26165:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LruMap=void 0;class r 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)&&void 0!==t&&(this.delete(e),super.set(e,t)),t}set(e,t){if(super.set(e,t),this.maxSize&&this.size>this.maxSize){let e=this.keys().next().value;e&&this.delete(e)}return this}}t.LruMap=r},26178:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.rpc=void 0,t.getSocket=o;let n=r(47512),a=r(32835);async function o(e){let t=await (0,a.getWebSocketRpcClient)(e);return Object.assign(t.socket,{requests:t.requests,subscriptions:t.subscriptions})}t.rpc={http:(e,t)=>(0,n.getHttpRpcClient)(e).request(t),webSocket:function(e,{body:t,onError:r,onResponse:n}){return e.request({body:t,onError:r,onResponse:n}),e},webSocketAsync:async function(e,{body:t,timeout:r=1e4}){return e.requestAsync({body:t,timeout:r})}}},26414:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.encodeToCurve=t.hashToCurve=t.secp256k1_hasher=t.schnorr=t.secp256k1=void 0;let n=r(25818),a=r(55603),o=r(10618),i=r(39111),s=r(54241),u=r(81906),c=r(36523),l=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),d=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),f=BigInt(0),p=BigInt(1),b=BigInt(2),m=(e,t)=>
6(e+t/b)/t;function y(e){let t=BigInt(3),r=BigInt(6),n=BigInt(11),a=BigInt(22),o=BigInt(23),i=BigInt(44),u=BigInt(88),c=e*e*e%l,d=c*c*e%l,f=(0,s.pow2)(d,t,l)*d%l,p=(0,s.pow2)(f,t,l)*d%l,m=(0,s.pow2)(p,b,l)*c%l,y=(0,s.pow2)(m,n,l)*m%l,g=(0,s.pow2)(y,a,l)*y%l,v=(0,s.pow2)(g,i,l)*g%l,E=(0,s.pow2)(v,u,l)*v%l,x=(0,s.pow2)(E,i,l)*g%l,w=(0,s.pow2)(x,t,l)*d%l,P=(0,s.pow2)(w,o,l)*y%l,I=(0,s.pow2)(P,r,l)*c%l,A=(0,s.pow2)(I,b,l);if(!h.eql(h.sqr(A),e))throw Error("Cannot find square root");return A}let h=(0,s.Field)(l,void 0,void 0,{sqrt:y});t.secp256k1=(0,o.createCurve)({a:f,b:BigInt(7),Fp:h,n:d,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{let t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-p*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),n=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),a=BigInt("0x100000000000000000000000000000000"),o=m(t*e,d),i=m(-r*e,d),u=(0,s.mod)(e-o*t-i*n,d),c=(0,s.mod)(-o*r-i*t,d),l=u>a,f=c>a;if(l&&(u=d-u),f&&(c=d-c),u>a||c>a)throw Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:l,k1:u,k2neg:f,k2:c}}}},n.sha256);let g={};function v(e,...t){let r=g[e];if(void 0===r){let t=(0,n.sha256)(Uint8Array.from(e,e=>e.charCodeAt(0)));r=(0,u.concatBytes)(t,t),g[e]=r}return(0,n.sha256)((0,u.concatBytes)(r,...t))}let E=e=>e.toRawBytes(!0).slice(1),x=e=>(0,u.numberToBytesBE)(e,32),w=e=>(0,s.mod)(e,l),P=e=>(0,s.mod)(e,d),I=t.secp256k1.ProjectivePoint;function A(e){let r=t.secp256k1.utils.normPrivateKeyToScalar(e),n=I.fromPrivateKey(r);return{scalar:n.hasEvenY()?r:P(-r),bytes:E(n)}}function T(e){(0,u.aInRange)("x",e,p,l);let t=w(e*e),r=y(w(t*e+BigInt(7)));r%b!==f&&(r=w(-r));let n=new I(e,r,p);return n.assertValidity(),n}let O=u.bytesToNumberBE;function B(...e){return P(O(v("BIP0340/challenge",...e)))}function S(e,t,r){let n=(0,u.ensureBytes)("signature",e,64),a=(0,u.ensureBytes)("message",t),o=(0,u.ensureBytes)("publicKey",r,32);try{let e,t=T(O(o)),r=O(n.subarray(0,32));if(!(0,u.inRange)(r,p,l))return!1;let i=O(n.subarray(32,64));if(!(0,u.inRange)(i,p,d))return!1;let s=B(x(r),E(t),a),c=(e=P(-s),I.BASE.multiplyAndAddUnsafe(t,i,e));if(!c||!c.hasEvenY()||c.toAffine().x!==r)return!1;return!0}catch(e){return!1}}t.schnorr={getPublicKey:function(e){return A(e).bytes},sign:function(e,t,r=(0,a.randomBytes)(32)){let n=(0,u.ensureBytes)("message",e),{bytes:o,scalar:i}=A(t),s=x(i^O(v("BIP0340/aux",(0,u.ensureBytes)("auxRand",r,32)))),c=P(O(v("BIP0340/nonce",s,o,n)));if(c===f)throw Error("sign failed: k is zero");let{bytes:l,scalar:d}=A(c),p=B(l,o,n),b=new Uint8Array(64);if(b.set(l,0),b.set(x(P(d+p*i)),32),!S(b,n,o))throw Error("sign: Invalid signature produced");return b},verify:S,utils:{randomPrivateKey:t.secp256k1.utils.randomPrivateKey,lift_x:T,pointToBytes:E,numberToBytesBE:u.numberToBytesBE,bytesToNumberBE:u.bytesToNumberBE,taggedHash:v,mod:s.mod}};let j=(0,i.isogenyMap)(h,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(e=>e.map(e=>
6BigInt(e)))),_=(0,c.mapToCurveSimpleSWU)(h,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:h.create(BigInt("-11"))});t.secp256k1_hasher=(0,i.createHasher)(t.secp256k1.ProjectivePoint,e=>{let{x:t,y:r}=_(h.create(e[0]));return j(t,r)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:h.ORDER,m:1,k:128,expand:"xmd",hash:n.sha256}),t.hashToCurve=t.secp256k1_hasher.hashToCurve,t.encodeToCurve=t.secp256k1_hasher.encodeToCurve},26434:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toSignature=void 0;let n=r(54145),a=r(90434);t.toSignature=e=>{let t="string"==typeof e?e:(0,n.formatAbiItem)(e);return(0,a.normalizeSignature)(t)}},26798:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getCallError=function(e,{docsPath:t,...r}){let i,s=(i=(0,o.getNodeError)(e,r))instanceof a.UnknownNodeError?e:i;return new n.CallExecutionError(s,{docsPath:t,...r})};let n=r(81660),a=r(35342),o=r(88214)},27149:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseUnits=function(e,t){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(e))throw new n.InvalidDecimalNumberError({value:e});let[r,a="0"]=e.split("."),o=r.startsWith("-");if(o&&(r=r.slice(1)),a=a.replace(/(0+)$/,""),0===t)1===Math.round(Number(`.${a}`))&&(r=`${BigInt(r)+1n}`),a="";else if(a.length>t){let[e,n,o]=[a.slice(0,t-1),a.slice(t-1,t),a.slice(t)],i=Math.round(Number(`${n}.${o}`));(a=i>9?`${BigInt(e)+BigInt(1)}0`.padStart(e.length+1,"0"):`${e}${i}`).length>t&&(a=a.slice(1),r=`${BigInt(r)+1n}`),a=a.slice(0,t)}else a=a.padEnd(t,"0");return BigInt(`${o?"-":""}${r}${a}`)};let n=r(37872)},27309:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.idCache=void 0,t.idCache={current:0,take(){return this.current++},reset(){this.current=0}}},27420:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.size=function(e){return(0,n.isHex)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length};let n=r(10858)},27504:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sendCallsSync=o;let n=r(73419),a=r(56003);async function o(e,t){let{chain:r=e.chain}=t,o=t.timeout??Math.max((r?.blockTime??0)*3,5e3),i=await (0,n.sendCalls)(e,t);return await (0,a.waitForCallsStatus)(e,{...t,id:i.id,timeout:o})}},27924:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.waitForTransactionReceipt=b;let n=r(52035),a=r(2922),o=r(78234),i=r(8156),s=r(32853),u=r(63988),c=r(57737),l=r(73817),d=r(67672),f=r(36400),p=r(49289);async function b(e,t){let r,b,m,y,h,{checkReplacement:g=!0,confirmations:v=1,hash:E,onReplaced:x,retryCount:w=6,retryDelay:P=({count:e})=>200*~~(1<<e),timeout:I=18e4}
6=t,A=(0,c.stringify)(["waitForTransactionReceipt",e.uid,E]),T=t.pollingInterval?t.pollingInterval:e.chain?.experimental_preconfirmationTime?e.chain.experimental_preconfirmationTime:e.pollingInterval,O=!1,{promise:B,resolve:S,reject:j}=(0,s.withResolvers)(),_=I?setTimeout(()=>{h?.(),y?.(),j(new a.WaitForTransactionReceiptTimeoutError({hash:E}))},I):void 0;return y=(0,i.observe)(A,{onReplaced:x,resolve:S,reject:j},async t=>{if((m=await (0,o.getAction)(e,f.getTransactionReceipt,"getTransactionReceipt")({hash:E}).catch(()=>void 0))&&v<=1){clearTimeout(_),t.resolve(m),y?.();return}h=(0,o.getAction)(e,p.watchBlockNumber,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:T,async onBlockNumber(i){let s=e=>{clearTimeout(_),h?.(),e(),y?.()},c=i;if(!O)try{if(m){if(v>1&&(!m.blockNumber||c-m.blockNumber+1n<v))return;s(()=>t.resolve(m));return}if(g&&!r&&(O=!0,await (0,u.withRetry)(async()=>{(r=await (0,o.getAction)(e,d.getTransaction,"getTransaction")({hash:E})).blockNumber&&(c=r.blockNumber)},{delay:P,retryCount:w}),O=!1),m=await (0,o.getAction)(e,f.getTransactionReceipt,"getTransactionReceipt")({hash:E}),v>1&&(!m.blockNumber||c-m.blockNumber+1n<v))return;s(()=>t.resolve(m))}catch(i){if(i instanceof a.TransactionNotFoundError||i instanceof a.TransactionReceiptNotFoundError){if(!r){O=!1;return}try{b=r,O=!0;let a=await (0,u.withRetry)(()=>(0,o.getAction)(e,l.getBlock,"getBlock")({blockNumber:c,includeTransactions:!0}),{delay:P,retryCount:w,shouldRetry:({error:e})=>e instanceof n.BlockNotFoundError});O=!1;let i=a.transactions.find(({from:e,nonce:t})=>e===b.from&&t===b.nonce);if(!i||(m=await (0,o.getAction)(e,f.getTransactionReceipt,"getTransactionReceipt")({hash:i.hash}),v>1&&(!m.blockNumber||c-m.blockNumber+1n<v)))return;let d="replaced";i.to===b.to&&i.value===b.value&&i.input===b.input?d="repriced":i.from===i.to&&0n===i.value&&(d="cancelled"),s(()=>{t.onReplaced?.({reason:d,replacedTransaction:b,transaction:i,transactionReceipt:m}),t.resolve(m)})}catch(e){s(()=>t.reject(e))}}else s(()=>t.reject(i))}}})}),B}},28409:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OffchainLookupSenderMismatchError=t.OffchainLookupResponseMalformedError=t.OffchainLookupError=void 0;let n=r(57737),a=r(33911),o=r(56391);class i extends a.BaseError{constructor({callbackSelector:e,cause:t,data:r,extraData:n,sender:a,urls:i}){super(t.shortMessage||"An error occurred while fetching for an offchain result.",{cause:t,metaMessages:[...t.metaMessages||[],t.metaMessages?.length?"":[],"Offchain Gateway Call:",i&&[" Gateway URL(s):",...i.map(e=>` ${(0,o.getUrl)(e)}`)],` Sender: ${a}`,` Data: ${r}`,` Callback selector: ${e}`,` Extra data: ${n}`].flat(),name:"OffchainLookupError"})}}t.OffchainLookupError=i;class s extends a.BaseError{constructor({result:e,url:t}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${(0,o.getUrl)(t)}`,`Response: ${(0,n.stringify)(e)}`],name:"OffchainLookupResponseMalformedError"})}}t.OffchainLookupResponseMalformedError=s;class u extends a.BaseError{constructor({sender:e,to:t}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${t}`,`OffchainLookup sender address: ${e}`],name:"OffchainLookupSenderMismatchError"})}}t.OffchainLookupSenderMismatchError=u},28814:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidStructTypeError=t.InvalidPrimaryTypeError=t.InvalidDomainError=void 0;let n=r(57737),a=r(33911);class o extends a.BaseError{constructor({domain:e}){super(`Invalid domain "${(0,n.stringify)(e)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}}t.InvalidDomainError=o;class i extends a.BaseError{constructor({primaryType:e,types:t}){super(`Invalid primary type \`${e}\` must be one of \`${JSON.stringify(Object.keys(t))}\`.`,{docsPath:"/api/glossary/Errors#typeddatainvalidprimarytypeerror",metaMessages:["Check that the primary type is a key in `types`."]})}}t.InvalidPrimaryTypeError=i;class s extends a.BaseError{constructor({type:e}){super(`Struct type "${e}
6" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}t.InvalidStructTypeError=s},29484:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseAbiItem=function(e){let t;if("string"==typeof e)t=(0,i.parseSignature)(e);else{let r=(0,o.parseStructs)(e),n=e.length;for(let o=0;o<n;o++){let n=e[o];if(!(0,a.isStructSignature)(n)){t=(0,i.parseSignature)(n,r);break}}}if(!t)throw new n.InvalidAbiItemError({signature:e});return t};let n=r(53693),a=r(20666),o=r(41377),i=r(68442)},29589:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.estimateContractGas=u;let n=r(25055),a=r(63997),o=r(67916),i=r(78234),s=r(35127);async function u(e,t){let{abi:r,address:u,args:c,functionName:l,dataSuffix:d,...f}=t,p=(0,a.encodeFunctionData)({abi:r,args:c,functionName:l});try{return await (0,i.getAction)(e,s.estimateGas,"estimateGas")({data:`${p}${d?d.replace("0x",""):""}`,to:u,...f})}catch(t){let e=f.account?(0,n.parseAccount)(f.account):void 0;throw(0,o.getContractError)(t,{abi:r,address:u,args:c,docsPath:"/docs/contract/estimateContractGas",functionName:l,sender:e?.address})}}},29609:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isAddressEqual=function(e,t){if(!(0,a.isAddress)(e,{strict:!1}))throw new n.InvalidAddressError({address:e});if(!(0,a.isAddress)(t,{strict:!1}))throw new n.InvalidAddressError({address:t});return e.toLowerCase()===t.toLowerCase()};let n=r(47730),a=r(1199)},29822:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.pad=function(e,{dir:t,size:r=32}={}){return"string"==typeof e?a(e,{dir:t,size:r}):o(e,{dir:t,size:r})},t.padHex=a,t.padBytes=o;let n=r(49322);function a(e,{dir:t,size:r=32}={}){if(null===r)return e;let o=e.replace("0x","");if(o.length>2*r)throw new n.SizeExceedsPaddingSizeError({size:Math.ceil(o.length/2),targetSize:r,type:"hex"});return`0x${o["right"===t?"padEnd":"padStart"](2*r,"0")}`}function o(e,{dir:t,size:r=32}={}){if(null===r)return e;if(e.length>r)throw new n.SizeExceedsPaddingSizeError({size:e.length,targetSize:r,type:"bytes"});let a=new Uint8Array(r);for(let n=0;n<r;n++){let o="right"===t;a[o?n:r-n-1]=e[o?n:e.length-n-1]}return a}},29908:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createTestClient=function(e){let{key:t="test",name:r="Test Client",mode:o}=e;return(0,n.createClient)({...e,key:t,name:r,type:"testClient"}).extend(e=>({mode:o,...(0,a.testActions)({mode:o})(e)}))};let n=r(8436),a=r(22114)},30240:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mine=a;let n=r(37264);async function a(e,{blocks:t,interval:r}){"ganache"===e.mode?await e.request({method:"evm_mine",params:[{blocks:(0,n.numberToHex)(t)}]}):await e.request({method:`${e.mode}_mine`,params:[(0,n.numberToHex)(t),(0,n.numberToHex)(r||0)]})}},30622:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.maxInt8=t.universalSignatureValidatorByteCode=t.erc6492SignatureValidatorByteCode=t.deploylessCallViaFactoryBytecode=t.deploylessCallViaBytecodeBytecode=t.zeroHash=t.zeroAddress=t.ethAddress=t.multicall3Abi=t.universalSignatureValidatorAbi=t.erc6492SignatureValidatorAbi=t.erc4626Abi=t.erc1155Abi=t.erc721Abi=t.erc20Abi_bytes32=t.erc20Abi=t.webSocket=t.http=t.shouldThrow=t.fallback=t.custom=t.createTransport=t.walletActions=t.testActions=t.publicActions=t.createWalletClient=t.createTestClient=t.createPublicClient=t.rpcSchema=t.createClient=t.WaitForCallsStatusTimeoutError=t.getContract=t.UnknownTypeError=t.UnknownSignatureError=t.SolidityProtectedKeywordError=t.parseAbiParameters=t.parseAbiParameter=t.parseAbiItem=t.parseAbi=t.InvalidStructSignatureError=t.InvalidSignatureError=t.InvalidParenthesisError=t.InvalidParameterError=t.InvalidModifierError=t.InvalidFunctionModifierError=t.InvalidAbiTypeParameterError=t.InvalidAbiParametersError=t.InvalidAbiParameterError=t.InvalidAbiItemError=t.CircularReferenceError=void 0,t.maxUint152=t.maxUint144=t.maxUint136=t.maxUint128=t.maxUint120=t.maxUint112=t.maxUint104=t.maxUint96=t.maxUint88=t.maxUint80=t.maxUint72=t.maxUint64=t.maxUint56=t.maxUint48=t.maxUint40=t.maxUint32=t.maxUint24=t.maxUint16=t.maxUint8=t.maxInt256=t.maxInt248=t.maxInt240=t.maxInt232=t.maxInt224=t.maxInt216=t.maxInt208=t.maxInt200=t.maxInt192=t.maxInt184=t.maxInt176=t.maxInt168=t.maxInt160=t.maxInt152=t.maxInt144=t.maxInt136=t.maxInt128=t.maxInt120=t.maxInt112=t.maxInt104=t.maxInt96=t.maxInt88=t.maxInt80=t.maxInt72=t.maxInt64=t.maxInt56=t.maxInt48=t.maxInt40=t.maxInt32=t.maxInt24=t.maxInt16=void 0,t.AbiConstructorNotFoundError=t.weiUnits=t.gweiUnits=t.etherUnits=t.presignMessagePrefix=t.minInt256=t.minInt248=t.minInt240=t.minInt232=t.minInt224=t.minInt216=t.minInt208=t.minInt200=t.minInt192=t.minInt184=t.minInt176=t.minInt168=t.minInt160=t.minInt152=t.minInt144=t.minInt136=t.minInt128=t.minInt120=t.minInt112=t.minInt104=t.minInt96=t.minInt88=t.minInt80=t.minInt72=t.minInt64=t.minInt56=t.minInt48=t.minInt40=t.minInt32=t.minInt24=t.minInt16=t.minInt8=t.maxUint256=t.maxUint248=t.maxUint240=t.maxUint232=t.maxUint224=t.maxUint216=t.maxUint208=t.maxUint200=t.maxUint192=t.maxUint184=t.maxUint176=t.maxUint168=t.maxUint160=void 0,t.EnsAvatarUriResolutionError=t.EnsAvatarUnsupportedNamespaceError=t.EnsAvatarInvalidNftUriError=t.SizeOverflowError=t.InvalidHexValueError=t.InvalidHexBooleanError=t.InvalidBytesBooleanError=t.IntegerOutOfRangeError=t.SliceOffsetOutOfBoundsError=t.SizeExceedsPaddingSizeError=t.RawContractError=t.CounterfactualDeploymentFailedError=t.ContractFunctionZeroDataError=t.ContractFunctionRevertedError=t.ContractFunctionExecutionError=t.CallExecutionError=t.InvalidChainIdError=t.ClientChainNotConfiguredError=t.ChainNotFoundError=t.ChainMismatchError=t.ChainDoesNotSupportContract=t.BundleFailedError=t.BlockNotFoundError=t.setErrorConfig=t.BaseError=t.InvalidAddressError=t.UnsupportedPackedAbiType=t.InvalidDefinitionTypeError=t.InvalidArrayError=t.InvalidAbiEncodingTypeError=t.InvalidAbiDecodingTypeError=t.DecodeLogTopicsMismatch=t.DecodeLogDataMismatch=t.BytesSizeMismatchError=t.AbiFunctionSignatureNotFoundError=t.AbiFunctionOutputsNotFoundError=t.AbiFunctionNotFoundError=t.AbiEventSignatureNotFoundError=t.AbiEventSignatureEmptyTopicsError=t.AbiEventNotFoundError=t.AbiErrorSignatureNotFoundError=t.AbiErrorNotFoundError=t.AbiErrorInputsNotFoundError=t.AbiEncodingLengthMismatchError=t.AbiEncodingBytesSizeMismatchError=t.AbiEncodingArrayLe
6ngthMismatchError=t.AbiDecodingZeroDataError=t.AbiDecodingDataSizeTooSmallError=t.AbiDecodingDataSizeInvalidError=t.AbiConstructorParamsNotFoundError=void 0,t.UnsupportedProviderMethodError=t.UnsupportedNonOptionalCapabilityError=t.UnsupportedChainIdError=t.UnknownRpcError=t.UnknownBundleIdError=t.UnauthorizedProviderError=t.TransactionRejectedRpcError=t.SwitchChainError=t.RpcError=t.ResourceUnavailableRpcError=t.ResourceNotFoundRpcError=t.ProviderRpcError=t.ProviderDisconnectedError=t.ParseRpcError=t.MethodNotSupportedRpcError=t.MethodNotFoundRpcError=t.LimitExceededRpcError=t.JsonRpcVersionUnsupportedError=t.InvalidRequestRpcError=t.InvalidParamsRpcError=t.InvalidInputRpcError=t.InternalRpcError=t.DuplicateIdError=t.ChainDisconnectedError=t.BundleTooLargeError=t.AtomicReadyWalletRejectedUpgradeError=t.AtomicityNotSupportedError=t.WebSocketRequestError=t.TimeoutError=t.SocketClosedError=t.RpcRequestError=t.HttpRequestError=t.UnknownNodeError=t.TransactionTypeNotSupportedError=t.TipAboveFeeCapError=t.NonceTooLowError=t.NonceTooHighError=t.NonceMaxValueError=t.IntrinsicGasTooLowError=t.IntrinsicGasTooHighError=t.InsufficientFundsError=t.FeeCapTooLowError=t.FeeCapTooHighError=t.ExecutionRevertedError=t.FilterTypeNotSupportedError=t.MaxFeePerGasTooLowError=t.Eip1559FeesNotSupportedError=t.BaseFeeScalarError=t.EstimateGasExecutionError=t.EnsInvalidChainIdError=void 0,t.toBlobs=t.toBlobSidecars=t.sidecarsToVersionedHashes=t.fromBlobs=t.commitmentToVersionedHash=t.commitmentsToVersionedHashes=t.blobsToProofs=t.blobsToCommitments=t.isAddressEqual=t.isAddress=t.getCreateAddress=t.getCreate2Address=t.getContractAddress=t.getAddress=t.checksumAddress=t.prepareEncodeFunctionData=t.parseEventLogs=t.getAbiItem=t.encodePacked=t.encodeFunctionResult=t.encodeFunctionData=t.encodeEventTopics=t.encodeErrorResult=t.encodeDeployData=t.encodeAbiParameters=t.decodeFunctionResult=t.decodeFunctionData=t.decodeEventLog=t.decodeErrorResult=t.decodeDeployData=t.decodeAbiParameters=t.EIP1193ProviderRpcError=t.InvalidDecimalNumberError=t.InvalidStructTypeError=t.InvalidPrimaryTypeError=t.InvalidDomainError=t.UrlRequiredError=t.WaitForTransactionReceiptTimeoutError=t.TransactionReceiptNotFoundError=t.TransactionNotFoundError=t.TransactionExecutionError=t.InvalidStorageKeySizeError=t.InvalidSerializedTransactionTypeError=t.InvalidSerializedTransactionError=t.InvalidSerializableTransactionError=t.InvalidLegacyVError=t.FeeConflictError=t.StateAssignmentConflictError=t.AccountStateConflictError=t.UserRejectedRequestError=void 0,t.getContractError=t.toCoinType=t.namehash=t.labelhash=t.toRlp=t.hexToRlp=t.bytesToRlp=t.toHex=t.stringToHex=t.numberToHex=t.bytesToHex=t.boolToHex=t.toBytes=t.stringToBytes=t.numberToBytes=t.hexToBytes=t.boolToBytes=t.fromRlp=t.hexToString=t.hexToNumber=t.hexToBool=t.hexToBigInt=t.fromHex=t.fromBytes=t.bytesToString=t.bytesToNumber=t.bytesToBool=t.bytesToBigInt=t.trim=t.sliceHex=t.sliceBytes=t.slice=t.size=t.padHex=t.padBytes=t.pad=t.isHex=t.isBytes=t.concatHex=t.concatBytes=t.concat=t.getChainContractAddress=t.extractChain=t.defineChain=t.assertCurrentChain=t.offchainLookupSignature=t.offchainLookupAbiItem=t.offchainLookup=t.ccipFetch=t.ccipRequest=void 0,t.recoverTypedDataAddress=t.recoverTransactionAddress=t.recoverPublicKey=t.recoverMessageAddress=t.recoverAddress=t.parseSignature=t.hexToSignature=t.parseErc8010Signature=t.parseErc6492Signature=t.parseCompactSignature=t.hexToCompactSignature=t.isErc8010Signature=t.isErc6492Signature=t.hashTypedData=t.hashStruct=t.hashDomain=t.hashMessage=t.compactSignatureToSignature=t.withTimeout=t.withRetry=t.withCache=t.nonceManager=t.createNonceManager=t.setupKzg=t.defineKzg=t.getFunctionSignature=t.toFunctionSignature=t.getFunctionSelector=t.toFunctionSelector=t.toFunctionHash=t.getEventSignature=t.toEventSignature=t.getEventSelector=t.toEventSelector=t.toEventHash=t.sha256=t.ripemd160=t.keccak256=t.isHash=t.rpcTransactionType=t.formatTransactionRequest=t.defineTransactionRequest=t.formatTransactionReceipt=t.defineTransactionReceipt=t.transactionType=t.formatTransaction=t.defineTransaction=t.formatLog=t.formatBlock=t.defineBlock=void 0,t.parseUnits=t.parseGwei=t.parseEther=t.formatUnits=t.formatGwei=t.formatEther=t.validateTypedData=t.serializeTypedData=t.getTypesForEIP712Domain=t.domainSeparator=t.serializeTransaction=t.serializeAccessList=t.parseTransaction=t.getTransactionType=t.getSerializedTransactionType=t.assertTransactionLegacy=t.assertTransactionEIP2930=t.assertTransactionEIP1559=t.assertRequest=t.stringify=t.verifyTypedData=t.verifyMessage=t.verifyHash=t.toPrefixedMessage=t.signatureToCompactSignature=t.serializeSignature=t.signatureToHex=t.serializeErc8010Signature=t.serializeErc6492Signature=t.serializeCompactSignature=t.compactSignatureToHex=void 0;var n=r(54145);Object.defineProperty(t,"CircularReferenceError",{enumerable:!0,get:function(){return n.CircularReferenceError}}),Object.defineProperty(t,"InvalidAbiItemError",{enumerable:!0,get:function(){return n.InvalidAbiItemError}}),Object.defineProperty(t,"InvalidAbiParameterError",{enumerable:!0,get:function(){return n.InvalidAbiParameterError}}),Object.defineProperty(t,"InvalidAbiParametersError",{enumerable:!0,get:function(){return n.InvalidAbiParametersError}}),Object.defineProperty(t,"InvalidAbiTypeParameterError",{enumerable:!0,get:function(){return n.InvalidAbiTypeParameterError}}),Object.defineProperty(t,"InvalidFunctionModifierError",{enumerable:!0,get:function(){return n.InvalidFunctionModifierError}}),Object.defineProperty(t,"InvalidModifierError",{enumerable:!0,get:function(){return n.InvalidModifierError}}),Object.defineProperty(t,"InvalidParameterError",{enumerable:!0,get:function(){return n.InvalidParameterError}}),Object.defineProperty(t,"InvalidParenthesisError",{enumerable:!0,get:function(){return n.InvalidParenthesisError}}),Object.defineProperty(t,"InvalidSignatureError",{enumerable:!0,get:function(){return n.InvalidSignatureError}}),Object.defineProperty(t,"InvalidStructSignatureError",{enumerable:!0,get:function(){return n.InvalidStructSignatureError}}),Object.defineProperty(t,"parseAbi",{enumerable:!0,get:function(){return n.parseAbi}}),Object.defineProperty(t,"parseAbiItem",{enumerable:!0,get:function(){return n.parseAbiItem}}),Object.defineProperty(t,"parseAbiParameter",{enumerable:!0,get:function(){return n.parseAbiParameter}}),Object.defineProperty(t,"parseAbiParameters",{enumerable:!0,get:function(){return n.parseAbiParameters}}),Object.defineProperty(t,"SolidityProtectedKeywordError",{enumerable:!0,get:function(){return n.SolidityProtectedKeywordError}}),Object.defineProperty(t,"UnknownSignatureError",{enumerable:!0,get:function(){return n.UnknownSignatureError}}),Object.defineProperty(t,"UnknownTypeError",{enumerable:!0,get:function(){return n.UnknownTypeError}});var a=r(9492);Object.defineProperty(t,"getContract",{enumerable:!0,get:function(){return a.getContract}});var o=r(56003);Object.defineProperty(t,"WaitForCallsStatusTimeoutError",{enumerable:!0,get:function(){return o.WaitForCallsStatusTimeoutError}});var i=r(8436);Object.defineProperty(t,"createClient",{enumerable:!0,get:function(){return i.createClient}}),Object.defineProperty(t,"rpcSchema",{enumerable:!0,get:function(){return i.rpcSchema}});var s=r(18181);Object.defineProperty(t,"createPublicClient",{enumerable:!0,get:function(){return s.createPublicClient}});var u=r(29908);Object.defineProperty(t,"createTestClient",{enumerable:!0,get:function(){return u.createTestClient}});var c=r(98673);Object.defineProperty(t,"createWalletClient",{enumerable:!0,get:function(){return c.createWalletClient}});var l=r(48807);Object.defineProperty(t,"publicActions",{enumerable:!0,get:function(){return l.publicActions}});var d=r(22114);Object.defineProperty(t,"testActions",{enumerable:!0,get:function(){return d.testActions}});var f=r(87003);Object.defineProperty(t,"walletActions",{enumerable:!0,get:function(){return f.walletActions}});var p=r(66643);Object.defineProperty(t,"createTransport",{enumerable:!0,get:function(){return p.createTransport}});var b=r(21661);Object.defineProperty(t,"custom",{enumerable:!0,get:function(){return b.custom}});var m=r(83536);Object.defineProperty(t,"fallback",{enumerable:!0,get:function(){return m.fallback}}),Object.defineProperty(t,"shouldThrow",{enumerable:!0,get:function(){return m.shouldThrow}});var y=r(8410);Object.defineProperty(t,"http",{enumerable:!0,get:function(){return y.http}});var h=r(62265);Object.defineProperty(t,"webSocket",{enumerable:!0,get:function(){return h.webSocket}});var g=r(5223);Object.defineProperty(t,"erc20Abi",{enumerable:!0,get:function(){return g.erc20Abi}}),Object.defineProperty(t,"erc20Abi_bytes32",{enumerable:!0,get:function(){return g.erc20Abi_bytes32}}
6),Object.defineProperty(t,"erc721Abi",{enumerable:!0,get:function(){return g.erc721Abi}}),Object.defineProperty(t,"erc1155Abi",{enumerable:!0,get:function(){return g.erc1155Abi}}),Object.defineProperty(t,"erc4626Abi",{enumerable:!0,get:function(){return g.erc4626Abi}}),Object.defineProperty(t,"erc6492SignatureValidatorAbi",{enumerable:!0,get:function(){return g.erc6492SignatureValidatorAbi}}),Object.defineProperty(t,"universalSignatureValidatorAbi",{enumerable:!0,get:function(){return g.erc6492SignatureValidatorAbi}}),Object.defineProperty(t,"multicall3Abi",{enumerable:!0,get:function(){return g.multicall3Abi}});var v=r(13152);Object.defineProperty(t,"ethAddress",{enumerable:!0,get:function(){return v.ethAddress}}),Object.defineProperty(t,"zeroAddress",{enumerable:!0,get:function(){return v.zeroAddress}});var E=r(67351);Object.defineProperty(t,"zeroHash",{enumerable:!0,get:function(){return E.zeroHash}});var x=r(58527);Object.defineProperty(t,"deploylessCallViaBytecodeBytecode",{enumerable:!0,get:function(){return x.deploylessCallViaBytecodeBytecode}}),Object.defineProperty(t,"deploylessCallViaFactoryBytecode",{enumerable:!0,get:function(){return x.deploylessCallViaFactoryBytecode}}),Object.defineProperty(t,"erc6492SignatureValidatorByteCode",{enumerable:!0,get:function(){return x.erc6492SignatureValidatorByteCode}}),Object.defineProperty(t,"universalSignatureValidatorByteCode",{enumerable:!0,get:function(){return x.erc6492SignatureValidatorByteCode}});var w=r(84373);Object.defineProperty(t,"maxInt8",{enumerable:!0,get:function(){return w.maxInt8}}),Object.defineProperty(t,"maxInt16",{enumerable:!0,get:function(){return w.maxInt16}}),Object.defineProperty(t,"maxInt24",{enumerable:!0,get:function(){return w.maxInt24}}),Object.defineProperty(t,"maxInt32",{enumerable:!0,get:function(){return w.maxInt32}}),Object.defineProperty(t,"maxInt40",{enumerable:!0,get:function(){return w.maxInt40}}),Object.defineProperty(t,"maxInt48",{enumerable:!0,get:function(){return w.maxInt48}}),Object.defineProperty(t,"maxInt56",{enumerable:!0,get:function(){return w.maxInt56}}),Object.defineProperty(t,"maxInt64",{enumerable:!0,get:function(){return w.maxInt64}}),Object.defineProperty(t,"maxInt72",{enumerable:!0,get:function(){return w.maxInt72}}),Object.defineProperty(t,"maxInt80",{enumerable:!0,get:function(){return w.maxInt80}}),Object.defineProperty(t,"maxInt88",{enumerable:!0,get:function(){return w.maxInt88}}),Object.defineProperty(t,"maxInt96",{enumerable:!0,get:function(){return w.maxInt96}}),Object.defineProperty(t,"maxInt104",{enumerable:!0,get:function(){return w.maxInt104}}),Object.defineProperty(t,"maxInt112",{enumerable:!0,get:function(){return w.maxInt112}}),Object.defineProperty(t,"maxInt120",{enumerable:!0,get:function(){return w.maxInt120}}),Object.defineProperty(t,"maxInt128",{enumerable:!0,get:function(){return w.maxInt128}}),Object.defineProperty(t,"maxInt136",{enumerable:!0,get:function(){return w.maxInt136}}),Object.defineProperty(t,"maxInt144",{enumerable:!0,get:function(){return w.maxInt144}}),Object.defineProperty(t,"maxInt152",{enumerable:!0,get:function(){return w.maxInt152}}),Object.defineProperty(t,"maxInt160",{enumerable:!0,get:function(){return w.maxInt160}}),Object.defineProperty(t,"maxInt168",{enumerable:!0,get:function(){return w.maxInt168}}),Object.defineProperty(t,"maxInt176",{enumerable:!0,get:function(){return w.maxInt176}}),Object.defineProperty(t,"maxInt184",{enumerable:!0,get:function(){return w.maxInt184}}),Object.defineProperty(t,"maxInt192",{enumerable:!0,get:function(){return w.maxInt192}}),Object.defineProperty(t,"maxInt200",{enumerable:!0,get:function(){return w.maxInt200}}),Object.defineProperty(t,"maxInt208",{enumerable:!0,get:function(){return w.maxInt208}}),Object.defineProperty(t,"maxInt216",{enumerable:!0,get:function(){return w.maxInt216}}),Object.defineProperty(t,"maxInt224",{enumerable:!0,get:function(){return w.maxInt224}}),Object.defineProperty(t,"maxInt232",{enumerable:!0,get:function(){return w.maxInt232}}),Object.defineProperty(t,"maxInt240",{enumerable:!0,get:function(){return w.maxInt240}}),Object.defineProperty(t,"maxInt248",{enumerable:!0,get:function(){return w.maxInt248}}),Object.defineProperty(t,"maxInt256",{enumerable:!0,get:function(){return w.maxInt256}}),Object.defineProperty(t,"maxUint8",{enumerable:!0,get:function(){return w.maxUint8}}),Object.defineProperty(t,"maxUint16",{enumerable:!0,get:function(){return w.maxUint16}}),Object.defineProperty(t,"maxUint24",{enumerable:!0,get:function(){return w.maxUint24}}
6),Object.defineProperty(t,"maxUint32",{enumerable:!0,get:function(){return w.maxUint32}}),Object.defineProperty(t,"maxUint40",{enumerable:!0,get:function(){return w.maxUint40}}),Object.defineProperty(t,"maxUint48",{enumerable:!0,get:function(){return w.maxUint48}}),Object.defineProperty(t,"maxUint56",{enumerable:!0,get:function(){return w.maxUint56}}),Object.defineProperty(t,"maxUint64",{enumerable:!0,get:function(){return w.maxUint64}}),Object.defineProperty(t,"maxUint72",{enumerable:!0,get:function(){return w.maxUint72}}),Object.defineProperty(t,"maxUint80",{enumerable:!0,get:function(){return w.maxUint80}}),Object.defineProperty(t,"maxUint88",{enumerable:!0,get:function(){return w.maxUint88}}),Object.defineProperty(t,"maxUint96",{enumerable:!0,get:function(){return w.maxUint96}}),Object.defineProperty(t,"maxUint104",{enumerable:!0,get:function(){return w.maxUint104}}),Object.defineProperty(t,"maxUint112",{enumerable:!0,get:function(){return w.maxUint112}}),Object.defineProperty(t,"maxUint120",{enumerable:!0,get:function(){return w.maxUint120}}),Object.defineProperty(t,"maxUint128",{enumerable:!0,get:function(){return w.maxUint128}}),Object.defineProperty(t,"maxUint136",{enumerable:!0,get:function(){return w.maxUint136}}),Object.defineProperty(t,"maxUint144",{enumerable:!0,get:function(){return w.maxUint144}}),Object.defineProperty(t,"maxUint152",{enumerable:!0,get:function(){return w.maxUint152}}),Object.defineProperty(t,"maxUint160",{enumerable:!0,get:function(){return w.maxUint160}}),Object.defineProperty(t,"maxUint168",{enumerable:!0,get:function(){return w.maxUint168}}),Object.defineProperty(t,"maxUint176",{enumerable:!0,get:function(){return w.maxUint176}}),Object.defineProperty(t,"maxUint184",{enumerable:!0,get:function(){return w.maxUint184}}),Object.defineProperty(t,"maxUint192",{enumerable:!0,get:function(){return w.maxUint192}}),Object.defineProperty(t,"maxUint200",{enumerable:!0,get:function(){return w.maxUint200}}),Object.defineProperty(t,"maxUint208",{enumerable:!0,get:function(){return w.maxUint208}}),Object.defineProperty(t,"maxUint216",{enumerable:!0,get:function(){return w.maxUint216}}),Object.defineProperty(t,"maxUint224",{enumerable:!0,get:function(){return w.maxUint224}}),Object.defineProperty(t,"maxUint232",{enumerable:!0,get:function(){return w.maxUint232}}),Object.defineProperty(t,"maxUint240",{enumerable:!0,get:function(){return w.maxUint240}}),Object.defineProperty(t,"maxUint248",{enumerable:!0,get:function(){return w.maxUint248}}),Object.defineProperty(t,"maxUint256",{enumerable:!0,get:function(){return w.maxUint256}}),Object.defineProperty(t,"minInt8",{enumerable:!0,get:function(){return w.minInt8}}),Object.defineProperty(t,"minInt16",{enumerable:!0,get:function(){return w.minInt16}}),Object.defineProperty(t,"minInt24",{enumerable:!0,get:function(){return w.minInt24}}),Object.defineProperty(t,"minInt32",{enumerable:!0,get:function(){return w.minInt32}}),Object.defineProperty(t,"minInt40",{enumerable:!0,get:function(){return w.minInt40}}),Object.defineProperty(t,"minInt48",{enumerable:!0,get:function(){return w.minInt48}}),Object.defineProperty(t,"minInt56",{enumerable:!0,get:function(){return w.minInt56}}),Object.defineProperty(t,"minInt64",{enumerable:!0,get:function(){return w.minInt64}}),Object.defineProperty(t,"minInt72",{enumerable:!0,get:function(){return w.minInt72}}),Object.defineProperty(t,"minInt80",{enumerable:!0,get:function(){return w.minInt80}}),Object.defineProperty(t,"minInt88",{enumerable:!0,get:function(){return w.minInt88}}),Object.defineProperty(t,"minInt96",{enumerable:!0,get:function(){return w.minInt96}}),Object.defineProperty(t,"minInt104",{enumerable:!0,get:function(){return w.minInt104}}),Object.defineProperty(t,"minInt112",{enumerable:!0,get:function(){return w.minInt112}}),Object.defineProperty(t,"minInt120",{enumerable:!0,get:function(){return w.minInt120}}),Object.defineProperty(t,"minInt128",{enumerable:!0,get:function(){return w.minInt128}}),Object.defineProperty(t,"minInt136",{enumerable:!0,get:function(){return w.minInt136}}),Object.defineProperty(t,"minInt144",{enumerable:!0,get:function(){return w.minInt144}}),Object.defineProperty(t,"minInt152",{enumerable:!0,get:function(){return w.minInt152}}),Object.defineProperty(t,"minInt160",{enumerable:!0,get:function(){return w.minInt160}}),Object.defineProperty(t,"minInt168",{enumerable:!0,get:function(){return w.minInt168}}),Object.defineProperty(t,"minInt176",{enumerable:!0,get:function(){return w.minInt176}}),Object.defineProperty(t,"minInt184",{enumerable:!0,get:function(){return w.minInt184}}),Object.defineProperty(t,"minInt192",{enumerable:!0,get:function(){return w.minInt192}}),Object.defineProperty(t,"minInt200",{enumerable:!0,get:function(){return w.minInt200}}),Object.defineProperty(t,"minInt208",{enumerable:!0,get:function(){return w.minInt208}}),Object.defineProperty(t,"minInt216",{enumerable:!0,get:function(){return w.minInt216}}),Object.defineProperty(t,"minInt224",{enumerable:!0,get:function(){return w.minInt224}}),Object.defineProperty(t,"minInt232",{enumerable:!0,get:function(){return w.minInt232}}),Object.defineProperty(t,"minInt240",{enumerable:!0,get:function(){return w.minInt240}}),Object.defineProperty(t,"minInt248",{enumerable:!0,get:function(){return w.minInt248}}),Object.defineProperty(t,"minInt256",{enumerable:!0,get:function(){return w.minInt256}});var P=r(39142);Object.defineProperty(t,"presignMessagePrefix",{enumerable:!0,get:function(){return P.presignMessagePrefix}});var I=r(98274);Object.defineProperty(t,"etherUnits",{enumerable:!0,get:function(){return I.etherUnits}}),Object.defineProperty(t,"gweiUnits",{enumerable:!0,get:function(){return I.gweiUnits}}),Object.defineProperty(t,"weiUnits",{enumerable:!0,get:function(){return I.weiUnits}});var A=r(95664);Object.defineProperty(t,"AbiConstructorNotFoundError",{enumerable:!0,get:function(){return A.AbiConstructorNotFoundError}}),Object.defineProperty(t,"AbiConstructorParamsNotFoundError",{enumerable:!0,get:function(){return A.AbiConstructorParamsNotFoundError}}),Object.defineProperty(t,"AbiDecodingDataSizeInvalidError",{enumerable:!0,get:function(){return A.AbiDecodingDataSizeInvalidError}}),Object.defineProperty(t,"AbiDecodingDataSizeTooSmallError",{enumerable:!0,get:function(){return A.AbiDecodingDataSizeTooSmallError}}),Object.defineProperty(t,"AbiDecodingZeroDataError",{enumerable:!0,get:function(){return A.AbiDecodingZeroDataError}}
6),Object.defineProperty(t,"AbiEncodingArrayLengthMismatchError",{enumerable:!0,get:function(){return A.AbiEncodingArrayLengthMismatchError}}),Object.defineProperty(t,"AbiEncodingBytesSizeMismatchError",{enumerable:!0,get:function(){return A.AbiEncodingBytesSizeMismatchError}}),Object.defineProperty(t,"AbiEncodingLengthMismatchError",{enumerable:!0,get:function(){return A.AbiEncodingLengthMismatchError}}),Object.defineProperty(t,"AbiErrorInputsNotFoundError",{enumerable:!0,get:function(){return A.AbiErrorInputsNotFoundError}}),Object.defineProperty(t,"AbiErrorNotFoundError",{enumerable:!0,get:function(){return A.AbiErrorNotFoundError}}),Object.defineProperty(t,"AbiErrorSignatureNotFoundError",{enumerable:!0,get:function(){return A.AbiErrorSignatureNotFoundError}}),Object.defineProperty(t,"AbiEventNotFoundError",{enumerable:!0,get:function(){return A.AbiEventNotFoundError}}),Object.defineProperty(t,"AbiEventSignatureEmptyTopicsError",{enumerable:!0,get:function(){return A.AbiEventSignatureEmptyTopicsError}}),Object.defineProperty(t,"AbiEventSignatureNotFoundError",{enumerable:!0,get:function(){return A.AbiEventSignatureNotFoundError}}),Object.defineProperty(t,"AbiFunctionNotFoundError",{enumerable:!0,get:function(){return A.AbiFunctionNotFoundError}}),Object.defineProperty(t,"AbiFunctionOutputsNotFoundError",{enumerable:!0,get:function(){return A.AbiFunctionOutputsNotFoundError}}),Object.defineProperty(t,"AbiFunctionSignatureNotFoundError",{enumerable:!0,get:function(){return A.AbiFunctionSignatureNotFoundError}}),Object.defineProperty(t,"BytesSizeMismatchError",{enumerable:!0,get:function(){return A.BytesSizeMismatchError}}),Object.defineProperty(t,"DecodeLogDataMismatch",{enumerable:!0,get:function(){return A.DecodeLogDataMismatch}}),Object.defineProperty(t,"DecodeLogTopicsMismatch",{enumerable:!0,get:function(){return A.DecodeLogTopicsMismatch}}),Object.defineProperty(t,"InvalidAbiDecodingTypeError",{enumerable:!0,get:function(){return A.InvalidAbiDecodingTypeError}}),Object.defineProperty(t,"InvalidAbiEncodingTypeError",{enumerable:!0,get:function(){return A.InvalidAbiEncodingTypeError}}),Object.defineProperty(t,"InvalidArrayError",{enumerable:!0,get:function(){return A.InvalidArrayError}}),Object.defineProperty(t,"InvalidDefinitionTypeError",{enumerable:!0,get:function(){return A.InvalidDefinitionTypeError}}),Object.defineProperty(t,"UnsupportedPackedAbiType",{enumerable:!0,get:function(){return A.UnsupportedPackedAbiType}});var T=r(47730);Object.defineProperty(t,"InvalidAddressError",{enumerable:!0,get:function(){return T.InvalidAddressError}});var O=r(33911);Object.defineProperty(t,"BaseError",{enumerable:!0,get:function(){return O.BaseError}}),Object.defineProperty(t,"setErrorConfig",{enumerable:!0,get:function(){return O.setErrorConfig}});var B=r(52035);Object.defineProperty(t,"BlockNotFoundError",{enumerable:!0,get:function(){return B.BlockNotFoundError}});var S=r(34955);Object.defineProperty(t,"BundleFailedError",{enumerable:!0,get:function(){return S.BundleFailedError}});var j=r(10131);Object.defineProperty(t,"ChainDoesNotSupportContract",{enumerable:!0,get:function(){return j.ChainDoesNotSupportContract}}),Object.defineProperty(t,"ChainMismatchError",{enumerable:!0,get:function(){return j.ChainMismatchError}}),Object.defineProperty(t,"ChainNotFoundError",{enumerable:!0,get:function(){return j.ChainNotFoundError}}),Object.defineProperty(t,"ClientChainNotConfiguredError",{enumerable:!0,get:function(){return j.ClientChainNotConfiguredError}}),Object.defineProperty(t,"InvalidChainIdError",{enumerable:!0,get:function(){return j.InvalidChainIdError}});var _=r(81660);Object.defineProperty(t,"CallExecutionError",{enumerable:!0,get:function(){return _.CallExecutionError}}),Object.defineProperty(t,"ContractFunctionExecutionError",{enumerable:!0,get:function(){return _.ContractFunctionExecutionError}}),Object.defineProperty(t,"ContractFunctionRevertedError",{enumerable:!0,get:function(){return _.ContractFunctionRevertedError}}),Object.defineProperty(t,"ContractFunctionZeroDataError",{enumerable:!0,get:function(){return _.ContractFunctionZeroDataError}}),Object.defineProperty(t,"CounterfactualDeploymentFailedError",{enumerable:!0,get:function(){return _.CounterfactualDeploymentFailedError}}),Object.defineProperty(t,"RawContractError",{enumerable:!0,get:function(){return _.RawContractError}});var M=r(49322);Object.defineProperty(t,"SizeExceedsPaddingSizeError",{enumerable:!0,get:function(){return M.SizeExceedsPaddingSizeError}}),Object.defineProperty(t,"SliceOffsetOutOfBoundsError",{enumerable:!0,get:function(){return M.SliceOffsetOutOfBoundsError}});var C=r(36119);Object.defineProperty(t,"IntegerOutOfRangeError",{enumerable:!0,get:function(){return C.IntegerOutOfRangeError}}),Object.defineProperty(t,"InvalidBytesBooleanError",{enumerable:!0,get:function(){return C.InvalidBytesBooleanError}}),Object.defineProperty(t,"InvalidHexBooleanError",{enumerable:!0,get:function(){return C.InvalidHexBooleanError}}),Object.defineProperty(t,"InvalidHexValueError",{enumerable:!0,get:function(){return C.InvalidHexValueError}}),Object.defineProperty(t,"SizeOverflowError",{enumerable:!0,get:function(){return C.SizeOverflowError}});var R=r(89274);Object.defineProperty(t,"EnsAvatarInvalidNftUriError",{enumerable:!0,get:function(){return R.EnsAvatarInvalidNftUriError}}),Object.defineProperty(t,"EnsAvatarUnsupportedNamespaceError",{enumerable:!0,get:function(){return R.EnsAvatarUnsupportedNamespaceError}}),Object.defineProperty(t,"EnsAvatarUriResolutionError",{enumerable:!0,get:function(){return R.EnsAvatarUriResolutionError}}),Object.defineProperty(t,"EnsInvalidChainIdError",{enumerable:!0,get:function(){return R.EnsInvalidChainIdError}});var k=r(99361);Object.defineProperty(t,"EstimateGasExecutionError",{enumerable:!0,get:function(){return k.EstimateGasExecutionError}});var H=r(62082);Object.defineProperty(t,"BaseFeeScalarError",{enumerable:!0,get:function(){return H.BaseFeeScalarError}}),Object.defineProperty(t,"Eip1559FeesNotSupportedError",{enumerable:!0,get:function(){return H.Eip1559FeesNotSupportedError}}
6),Object.defineProperty(t,"MaxFeePerGasTooLowError",{enumerable:!0,get:function(){return H.MaxFeePerGasTooLowError}});var N=r(40092);Object.defineProperty(t,"FilterTypeNotSupportedError",{enumerable:!0,get:function(){return N.FilterTypeNotSupportedError}});var F=r(35342);Object.defineProperty(t,"ExecutionRevertedError",{enumerable:!0,get:function(){return F.ExecutionRevertedError}}),Object.defineProperty(t,"FeeCapTooHighError",{enumerable:!0,get:function(){return F.FeeCapTooHighError}}),Object.defineProperty(t,"FeeCapTooLowError",{enumerable:!0,get:function(){return F.FeeCapTooLowError}}),Object.defineProperty(t,"InsufficientFundsError",{enumerable:!0,get:function(){return F.InsufficientFundsError}}),Object.defineProperty(t,"IntrinsicGasTooHighError",{enumerable:!0,get:function(){return F.IntrinsicGasTooHighError}}),Object.defineProperty(t,"IntrinsicGasTooLowError",{enumerable:!0,get:function(){return F.IntrinsicGasTooLowError}}),Object.defineProperty(t,"NonceMaxValueError",{enumerable:!0,get:function(){return F.NonceMaxValueError}}),Object.defineProperty(t,"NonceTooHighError",{enumerable:!0,get:function(){return F.NonceTooHighError}}),Object.defineProperty(t,"NonceTooLowError",{enumerable:!0,get:function(){return F.NonceTooLowError}}),Object.defineProperty(t,"TipAboveFeeCapError",{enumerable:!0,get:function(){return F.TipAboveFeeCapError}}),Object.defineProperty(t,"TransactionTypeNotSupportedError",{enumerable:!0,get:function(){return F.TransactionTypeNotSupportedError}}),Object.defineProperty(t,"UnknownNodeError",{enumerable:!0,get:function(){return F.UnknownNodeError}});var U=r(26019);Object.defineProperty(t,"HttpRequestError",{enumerable:!0,get:function(){return U.HttpRequestError}}),Object.defineProperty(t,"RpcRequestError",{enumerable:!0,get:function(){return U.RpcRequestError}}),Object.defineProperty(t,"SocketClosedError",{enumerable:!0,get:function(){return U.SocketClosedError}}),Object.defineProperty(t,"TimeoutError",{enumerable:!0,get:function(){return U.TimeoutError}}),Object.defineProperty(t,"WebSocketRequestError",{enumerable:!0,get:function(){return U.WebSocketRequestError}});var z=r(11205);Object.defineProperty(t,"AtomicityNotSupportedError",{enumerable:!0,get:function(){return z.AtomicityNotSupportedError}}),Object.defineProperty(t,"AtomicReadyWalletRejectedUpgradeError",{enumerable:!0,get:function(){return z.AtomicReadyWalletRejectedUpgradeError}}),Object.defineProperty(t,"BundleTooLargeError",{enumerable:!0,get:function(){return z.BundleTooLargeError}}),Object.defineProperty(t,"ChainDisconnectedError",{enumerable:!0,get:function(){return z.ChainDisconnectedError}}),Object.defineProperty(t,"DuplicateIdError",{enumerable:!0,get:function(){return z.DuplicateIdError}}),Object.defineProperty(t,"InternalRpcError",{enumerable:!0,get:function(){return z.InternalRpcError}}),Object.defineProperty(t,"InvalidInputRpcError",{enumerable:!0,get:function(){return z.InvalidInputRpcError}}),Object.defineProperty(t,"InvalidParamsRpcError",{enumerable:!0,get:function(){return z.InvalidParamsRpcError}}),Object.defineProperty(t,"InvalidRequestRpcError",{enumerable:!0,get:function(){return z.InvalidRequestRpcError}}),Object.defineProperty(t,"JsonRpcVersionUnsupportedError",{enumerable:!0,get:function(){return z.JsonRpcVersionUnsupportedError}}),Object.defineProperty(t,"LimitExceededRpcError",{enumerable:!0,get:function(){return z.LimitExceededRpcError}}),Object.defineProperty(t,"MethodNotFoundRpcError",{enumerable:!0,get:function(){return z.MethodNotFoundRpcError}}),Object.defineProperty(t,"MethodNotSupportedRpcError",{enumerable:!0,get:function(){return z.MethodNotSupportedRpcError}}),Object.defineProperty(t,"ParseRpcError",{enumerable:!0,get:function(){return z.ParseRpcError}}),Object.defineProperty(t,"ProviderDisconnectedError",{enumerable:!0,get:function(){return z.ProviderDisconnectedError}}),Object.defineProperty(t,"ProviderRpcError",{enumerable:!0,get:function(){return z.ProviderRpcError}}),Object.defineProperty(t,"ResourceNotFoundRpcError",{enumerable:!0,get:function(){return z.ResourceNotFoundRpcError}}),Object.defineProperty(t,"ResourceUnavailableRpcError",{enumerable:!0,get:function(){return z.ResourceUnavailableRpcError}}),Object.defineProperty(t,"RpcError",{enumerable:!0,get:function(){return z.RpcError}}),Object.defineProperty(t,"SwitchChainError",{enumerable:!0,get:function(){return z.SwitchChainError}}),Object.defineProperty(t,"TransactionRejectedRpcError",{enumerable:!0,get:function(){return z.TransactionRejectedRpcError}}),Object.defineProperty(t,"UnauthorizedProviderError",{enumerable:!0,get:function(){return z.UnauthorizedProviderError}}),Object.defineProperty(t,"UnknownBundleIdError",{enumerable:!0,get:function(){return z.UnknownBundleIdError}}),Object.defineProperty(t,"UnknownRpcError",{enumerable:!0,get:function(){return z.UnknownRpcError}}),Object.defineProperty(t,"UnsupportedChainIdError",{enumerable:!0,get:function(){return z.UnsupportedChainIdError}}),Object.defineProperty(t,"UnsupportedNonOptionalCapabilityError",{enumerable:!0,get:function(){return z.UnsupportedNonOptionalCapabilityError}}),Object.defineProperty(t,"UnsupportedProviderMethodError",{enumerable:!0,get:function(){return z.UnsupportedProviderMethodError}}),Object.defineProperty(t,"UserRejectedRequestError",{enumerable:!0,get:function(){return z.UserRejectedRequestError}});var L=r(24447);Object.defineProperty(t,"AccountStateConflictError",{enumerable:!0,get:function(){return L.AccountStateConflictError}}
6),Object.defineProperty(t,"StateAssignmentConflictError",{enumerable:!0,get:function(){return L.StateAssignmentConflictError}});var $=r(2922);Object.defineProperty(t,"FeeConflictError",{enumerable:!0,get:function(){return $.FeeConflictError}}),Object.defineProperty(t,"InvalidLegacyVError",{enumerable:!0,get:function(){return $.InvalidLegacyVError}}),Object.defineProperty(t,"InvalidSerializableTransactionError",{enumerable:!0,get:function(){return $.InvalidSerializableTransactionError}}),Object.defineProperty(t,"InvalidSerializedTransactionError",{enumerable:!0,get:function(){return $.InvalidSerializedTransactionError}}),Object.defineProperty(t,"InvalidSerializedTransactionTypeError",{enumerable:!0,get:function(){return $.InvalidSerializedTransactionTypeError}}),Object.defineProperty(t,"InvalidStorageKeySizeError",{enumerable:!0,get:function(){return $.InvalidStorageKeySizeError}}),Object.defineProperty(t,"TransactionExecutionError",{enumerable:!0,get:function(){return $.TransactionExecutionError}}),Object.defineProperty(t,"TransactionNotFoundError",{enumerable:!0,get:function(){return $.TransactionNotFoundError}}),Object.defineProperty(t,"TransactionReceiptNotFoundError",{enumerable:!0,get:function(){return $.TransactionReceiptNotFoundError}}),Object.defineProperty(t,"WaitForTransactionReceiptTimeoutError",{enumerable:!0,get:function(){return $.WaitForTransactionReceiptTimeoutError}});var D=r(51255);Object.defineProperty(t,"UrlRequiredError",{enumerable:!0,get:function(){return D.UrlRequiredError}});var q=r(28814);Object.defineProperty(t,"InvalidDomainError",{enumerable:!0,get:function(){return q.InvalidDomainError}}),Object.defineProperty(t,"InvalidPrimaryTypeError",{enumerable:!0,get:function(){return q.InvalidPrimaryTypeError}}),Object.defineProperty(t,"InvalidStructTypeError",{enumerable:!0,get:function(){return q.InvalidStructTypeError}});var G=r(37872);Object.defineProperty(t,"InvalidDecimalNumberError",{enumerable:!0,get:function(){return G.InvalidDecimalNumberError}});var V=r(39712);Object.defineProperty(t,"EIP1193ProviderRpcError",{enumerable:!0,get:function(){return V.ProviderRpcError}});var W=r(47065);Object.defineProperty(t,"decodeAbiParameters",{enumerable:!0,get:function(){return W.decodeAbiParameters}});var K=r(69890);Object.defineProperty(t,"decodeDeployData",{enumerable:!0,get:function(){return K.decodeDeployData}});var Z=r(40292);Object.defineProperty(t,"decodeErrorResult",{enumerable:!0,get:function(){return Z.decodeErrorResult}});var J=r(82276);Object.defineProperty(t,"decodeEventLog",{enumerable:!0,get:function(){return J.decodeEventLog}});var Y=r(73445);Object.defineProperty(t,"decodeFunctionData",{enumerable:!0,get:function(){return Y.decodeFunctionData}});var X=r(84212);Object.defineProperty(t,"decodeFunctionResult",{enumerable:!0,get:function(){return X.decodeFunctionResult}});var Q=r(70209);Object.defineProperty(t,"encodeAbiParameters",{enumerable:!0,get:function(){return Q.encodeAbiParameters}});var ee=r(45866);Object.defineProperty(t,"encodeDeployData",{enumerable:!0,get:function(){return ee.encodeDeployData}});var et=r(19244);Object.defineProperty(t,"encodeErrorResult",{enumerable:!0,get:function(){return et.encodeErrorResult}});var er=r(34736);Object.defineProperty(t,"encodeEventTopics",{enumerable:!0,get:function(){return er.encodeEventTopics}});var en=r(63997);Object.defineProperty(t,"encodeFunctionData",{enumerable:!0,get:function(){return en.encodeFunctionData}});var ea=r(41756);Object.defineProperty(t,"encodeFunctionResult",{enumerable:!0,get:function(){return ea.encodeFunctionResult}});var eo=r(96065);Object.defineProperty(t,"encodePacked",{enumerable:!0,get:function(){return eo.encodePacked}});var ei=r(1682);Object.defineProperty(t,"getAbiItem",{enumerable:!0,get:function(){return ei.getAbiItem}});var es=r(48093);Object.defineProperty(t,"parseEventLogs",{enumerable:!0,get:function(){return es.parseEventLogs}});var eu=r(8768);Object.defineProperty(t,"prepareEncodeFunctionData",{enumerable:!0,get:function(){return eu.prepareEncodeFunctionData}});var ec=r(43333);Object.defineProperty(t,"checksumAddress",{enumerable:!0,get:function(){return ec.checksumAddress}}),Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return ec.getAddress}});var el=r(31507);Object.defineProperty(t,"getContractAddress",{enumerable:!0,get:function(){return el.getContractAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return el.getCreate2Address}}),Object.defineProperty(t,"getCreateAddress",{enumerable:!0,get:function(){return el.getCreateAddress}});var ed=r(1199);Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return ed.isAddress}});var ef=r(29609);Object.defineProperty(t,"isAddressEqual",{enumerable:!0,get:function(){return ef.isAddressEqual}});var ep=r(49817);Object.defineProperty(t,"blobsToCommitments",{enumerable:!0,get:function(){return ep.blobsToCommitments}});var eb=r(6110);Object.defineProperty(t,"blobsToProofs",{enumerable:!0,get:function(){return eb.blobsToProofs}});var em=r(89052);Object.defineProperty(t,"commitmentsToVersionedHashes",{enumerable:!0,get:function(){return em.commitmentsToVersionedHashes}});var ey=r(42177);Object.defineProperty(t,"commitmentToVersionedHash",{enumerable:!0,get:function(){return ey.commitmentToVersionedHash}});var eh=r(19048);Object.defineProperty(t,"fromBlobs",{enumerable:!0,get:function(){return eh.fromBlobs}});var eg=r(33418);Object.defineProperty(t,"sidecarsToVersionedHashes",{enumerable:!0,get:function(){return eg.sidecarsToVersionedHashes}});var ev=r(88062);Object.defineProperty(t,"toBlobSidecars",{enumerable:!0,get:function(){return ev.toBlobSidecars}});var eE=r(18487);Object.defineProperty(t,"toBlobs",{enumerable:!0,get:function(){return eE.toBlobs}});var ex=r(68463);Object.defineProperty(t,"ccipRequest",{enumerable:!0,get:function(){return ex.ccipRequest}}),Object.defineProperty(t,"ccipFetch",{enumerable:!0,get:function(){return ex.ccipRequest}}),Object.defineProperty(t,"offchainLookup",{enumerable:!0,get:function(){return ex.offchainLookup}}),Object.defineProperty(t,"offchainLookupAbiItem",{enumerable:!0,get:function(){return ex.offchainLookupAbiItem}}),Object.defineProperty(t,"offchainLookupSignature",{enumerable:!0,get:function(){return ex.offchainLookupSignature}});var ew=r(64702);Object.defineProperty(t,"assertCurrentChain",{enumerable:!0,get:function(){return ew.assertCurrentChain}});var eP=r(4742);Object.defineProperty(t,"defineChain",{enumerable:!0,get:function(){return eP.defineChain}});var eI=r(93328);Object.defineProperty(t,"extractChain",{enumerable:!0,get:function(){return eI.extractChain}});var eA=r(89007);Object.defineProperty(t,"getChainContractAddress",{enumerable:!0,get:function(){return eA.getChainContractAddress}});var eT=r(78917);Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return eT.concat}}),Object.defineProperty(t,"concatBytes",{enumerable:!0,get:function(){return eT.concatBytes}}),Object.defineProperty(t,"concatHex",{enumerable:!0,get:function(){return eT.concatHex}});var eO=r(51804);Object.defineProperty(t,"isBytes",{enumerable:!0,get:function(){return eO.isBytes}});var eB=r(10858);Object.defineProperty(t,"isHex",{enumerable:!0,get:function(){return eB.isHex}});var eS=r(29822);Object.defineProperty(t,"pad",{enumerable:!0,get:function(){return eS.pad}}),Object.defineProperty(t,"padBytes",{enumerable:!0,get:function(){return eS.padBytes}}),Object.defineProperty(t,"padHex",{enumerable:!0,get:function(){return eS.padHex}});var ej=r(27420);Object.defineProperty(t,"size",{enumerable:!0,get:function(){return ej.size}}
6);var e_=r(25109);Object.defineProperty(t,"slice",{enumerable:!0,get:function(){return e_.slice}}),Object.defineProperty(t,"sliceBytes",{enumerable:!0,get:function(){return e_.sliceBytes}}),Object.defineProperty(t,"sliceHex",{enumerable:!0,get:function(){return e_.sliceHex}});var eM=r(24141);Object.defineProperty(t,"trim",{enumerable:!0,get:function(){return eM.trim}});var eC=r(65949);Object.defineProperty(t,"bytesToBigInt",{enumerable:!0,get:function(){return eC.bytesToBigInt}}),Object.defineProperty(t,"bytesToBool",{enumerable:!0,get:function(){return eC.bytesToBool}}),Object.defineProperty(t,"bytesToNumber",{enumerable:!0,get:function(){return eC.bytesToNumber}}),Object.defineProperty(t,"bytesToString",{enumerable:!0,get:function(){return eC.bytesToString}}),Object.defineProperty(t,"fromBytes",{enumerable:!0,get:function(){return eC.fromBytes}});var eR=r(85319);Object.defineProperty(t,"fromHex",{enumerable:!0,get:function(){return eR.fromHex}}),Object.defineProperty(t,"hexToBigInt",{enumerable:!0,get:function(){return eR.hexToBigInt}}),Object.defineProperty(t,"hexToBool",{enumerable:!0,get:function(){return eR.hexToBool}}),Object.defineProperty(t,"hexToNumber",{enumerable:!0,get:function(){return eR.hexToNumber}}),Object.defineProperty(t,"hexToString",{enumerable:!0,get:function(){return eR.hexToString}});var ek=r(39988);Object.defineProperty(t,"fromRlp",{enumerable:!0,get:function(){return ek.fromRlp}});var eH=r(96978);Object.defineProperty(t,"boolToBytes",{enumerable:!0,get:function(){return eH.boolToBytes}}),Object.defineProperty(t,"hexToBytes",{enumerable:!0,get:function(){return eH.hexToBytes}}),Object.defineProperty(t,"numberToBytes",{enumerable:!0,get:function(){return eH.numberToBytes}}),Object.defineProperty(t,"stringToBytes",{enumerable:!0,get:function(){return eH.stringToBytes}}),Object.defineProperty(t,"toBytes",{enumerable:!0,get:function(){return eH.toBytes}});var eN=r(37264);Object.defineProperty(t,"boolToHex",{enumerable:!0,get:function(){return eN.boolToHex}}),Object.defineProperty(t,"bytesToHex",{enumerable:!0,get:function(){return eN.bytesToHex}}),Object.defineProperty(t,"numberToHex",{enumerable:!0,get:function(){return eN.numberToHex}}),Object.defineProperty(t,"stringToHex",{enumerable:!0,get:function(){return eN.stringToHex}}),Object.defineProperty(t,"toHex",{enumerable:!0,get:function(){return eN.toHex}});var eF=r(6007);Object.defineProperty(t,"bytesToRlp",{enumerable:!0,get:function(){return eF.bytesToRlp}}),Object.defineProperty(t,"hexToRlp",{enumerable:!0,get:function(){return eF.hexToRlp}}),Object.defineProperty(t,"toRlp",{enumerable:!0,get:function(){return eF.toRlp}});var eU=r(43537);Object.defineProperty(t,"labelhash",{enumerable:!0,get:function(){return eU.labelhash}});var ez=r(80278);Object.defineProperty(t,"namehash",{enumerable:!0,get:function(){return ez.namehash}});var eL=r(44341);Object.defineProperty(t,"toCoinType",{enumerable:!0,get:function(){return eL.toCoinType}});var e$=r(67916);Object.defineProperty(t,"getContractError",{enumerable:!0,get:function(){return e$.getContractError}});var eD=r(21081);Object.defineProperty(t,"defineBlock",{enumerable:!0,get:function(){return eD.defineBlock}}),Object.defineProperty(t,"formatBlock",{enumerable:!0,get:function(){return eD.formatBlock}});var eq=r(64234);Object.defineProperty(t,"formatLog",{enumerable:!0,get:function(){return eq.formatLog}});var eG=r(14680);Object.defineProperty(t,"defineTransaction",{enumerable:!0,get:function(){return eG.defineTransaction}}),Object.defineProperty(t,"formatTransaction",{enumerable:!0,get:function(){return eG.formatTransaction}}),Object.defineProperty(t,"transactionType",{enumerable:!0,get:function(){return eG.transactionType}});var eV=r(15152);Object.defineProperty(t,"defineTransactionReceipt",{enumerable:!0,get:function(){return eV.defineTransactionReceipt}}),Object.defineProperty(t,"formatTransactionReceipt",{enumerable:!0,get:function(){return eV.formatTransactionReceipt}});var eW=r(75621);Object.defineProperty(t,"defineTransactionRequest",{enumerable:!0,get:function(){return eW.defineTransactionRequest}}),Object.defineProperty(t,"formatTransactionRequest",{enumerable:!0,get:function(){return eW.formatTransactionRequest}}),Object.defineProperty(t,"rpcTransactionType",{enumerable:!0,get:function(){return eW.rpcTransactionType}});var eK=r(38493);Object.defineProperty(t,"isHash",{enumerable:!0,get:function(){return eK.isHash}});var eZ=r(60976);Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return eZ.keccak256}});var eJ=r(95295);Object.defineProperty(t,"ripemd160",{enumerable:!0,get:function(){return eJ.ripemd160}});var eY=r(43890);Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return eY.sha256}});var eX=r(50964);Object.defineProperty(t,"toEventHash",{enumerable:!0,get:function(){return eX.toEventHash}});var eQ=r(53093);Object.defineProperty(t,"toEventSelector",{enumerable:!0,get:function(){return eQ.toEventSelector}}),Object.defineProperty(t,"getEventSelector",{enumerable:!0,get:function(){return eQ.toEventSelector}});var e0=r(33742);Object.defineProperty(t,"toEventSignature",{enumerable:!0,get:function(){return e0.toEventSignature}}),Object.defineProperty(t,"getEventSignature",{enumerable:!0,get:function(){return e0.toEventSignature}});var e1=r(43660);Object.defineProperty(t,"toFunctionHash",{enumerable:!0,get:function(){return e1.toFunctionHash}});var e6=r(96573);Object.defineProperty(t,"toFunctionSelector",{enumerable:!0,get:function(){return e6.toFunctionSelector}}),Object.defineProperty(t,"getFunctionSelector",{enumerable:!0,get:function(){return e6.toFunctionSelector}});var e5=r(31894);Object.defineProperty(t,"toFunctionSignature",{enumerable:!0,get:function(){return e5.toFunctionSignature}}),Object.defineProperty(t,"getFunctionSignature",{enumerable:!0,get:function(){return e5.toFunctionSignature}});var e2=r(98190);Object.defineProperty(t,"defineKzg",{enumerable:!0,get:function(){return e2.defineKzg}});var e8=r(55898);Object.defineProperty(t,"setupKzg",{enumerable:!0,get:function(){return e8.setupKzg}});var e4=r(55354);Object.defineProperty(t,"createNonceManager",{enumerable:!0,get:function(){return e4.createNonceManager}}),Object.defineProperty(t,"nonceManager",{enumerable:!0,get:function(){return e4.nonceManager}});var e3=r(72580);Object.defineProperty(t,"withCache",{enumerable:!0,get:function(){return e3.withCache}});var e9=r(63988);Object.defineProperty(t,"withRetry",{enumerable:!0,get:function(){return e9.withRetry}});var e7=r(40869);Object.defineProperty(t,"withTimeout",{enumerable:!0,get:function(){return e7.withTimeout}});var te=r(55179);Object.defineProperty(t,"compactSignatureToSignature",{enumerable:!0,get:function(){return te.compactSignatureToSignature}});var tt=r(9534);Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return tt.hashMessage}});var tr=r(98589);Object.defineProperty(t,"hashDomain",{enumerable:!0,get:function(){return tr.hashDomain}}),Object.defineProperty(t,"hashStruct",{enumerable:!0,get:function(){return tr.hashStruct}}),Object.defineProperty(t,"hashTypedData",{enumerable:!0,get:function(){return tr.hashTypedData}
6});var tn=r(55814);Object.defineProperty(t,"isErc6492Signature",{enumerable:!0,get:function(){return tn.isErc6492Signature}});var ta=r(34074);Object.defineProperty(t,"isErc8010Signature",{enumerable:!0,get:function(){return ta.isErc8010Signature}});var to=r(41783);Object.defineProperty(t,"hexToCompactSignature",{enumerable:!0,get:function(){return to.parseCompactSignature}}),Object.defineProperty(t,"parseCompactSignature",{enumerable:!0,get:function(){return to.parseCompactSignature}});var ti=r(13495);Object.defineProperty(t,"parseErc6492Signature",{enumerable:!0,get:function(){return ti.parseErc6492Signature}});var ts=r(47295);Object.defineProperty(t,"parseErc8010Signature",{enumerable:!0,get:function(){return ts.parseErc8010Signature}});var tu=r(81748);Object.defineProperty(t,"hexToSignature",{enumerable:!0,get:function(){return tu.parseSignature}}),Object.defineProperty(t,"parseSignature",{enumerable:!0,get:function(){return tu.parseSignature}});var tc=r(50807);Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return tc.recoverAddress}});var tl=r(97624);Object.defineProperty(t,"recoverMessageAddress",{enumerable:!0,get:function(){return tl.recoverMessageAddress}});var td=r(98379);Object.defineProperty(t,"recoverPublicKey",{enumerable:!0,get:function(){return td.recoverPublicKey}});var tf=r(80249);Object.defineProperty(t,"recoverTransactionAddress",{enumerable:!0,get:function(){return tf.recoverTransactionAddress}});var tp=r(73745);Object.defineProperty(t,"recoverTypedDataAddress",{enumerable:!0,get:function(){return tp.recoverTypedDataAddress}});var tb=r(90526);Object.defineProperty(t,"compactSignatureToHex",{enumerable:!0,get:function(){return tb.serializeCompactSignature}}),Object.defineProperty(t,"serializeCompactSignature",{enumerable:!0,get:function(){return tb.serializeCompactSignature}});var tm=r(56402);Object.defineProperty(t,"serializeErc6492Signature",{enumerable:!0,get:function(){return tm.serializeErc6492Signature}});var ty=r(22134);Object.defineProperty(t,"serializeErc8010Signature",{enumerable:!0,get:function(){return ty.serializeErc8010Signature}});var th=r(22391);Object.defineProperty(t,"signatureToHex",{enumerable:!0,get:function(){return th.serializeSignature}}),Object.defineProperty(t,"serializeSignature",{enumerable:!0,get:function(){return th.serializeSignature}});var tg=r(9175);Object.defineProperty(t,"signatureToCompactSignature",{enumerable:!0,get:function(){return tg.signatureToCompactSignature}});var tv=r(82142);Object.defineProperty(t,"toPrefixedMessage",{enumerable:!0,get:function(){return tv.toPrefixedMessage}});var tE=r(65866);Object.defineProperty(t,"verifyHash",{enumerable:!0,get:function(){return tE.verifyHash}});var tx=r(8657);Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return tx.verifyMessage}});var tw=r(82854);Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return tw.verifyTypedData}});var tP=r(57737);Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return tP.stringify}});var tI=r(98048);Object.defineProperty(t,"assertRequest",{enumerable:!0,get:function(){return tI.assertRequest}});var tA=r(88465);Object.defineProperty(t,"assertTransactionEIP1559",{enumerable:!0,get:function(){return tA.assertTransactionEIP1559}}),Object.defineProperty(t,"assertTransactionEIP2930",{enumerable:!0,get:function(){return tA.assertTransactionEIP2930}}),Object.defineProperty(t,"assertTransactionLegacy",{enumerable:!0,get:function(){return tA.assertTransactionLegacy}});var tT=r(44191);Object.defineProperty(t,"getSerializedTransactionType",{enumerable:!0,get:function(){return tT.getSerializedTransactionType}});var tO=r(40513);Object.defineProperty(t,"getTransactionType",{enumerable:!0,get:function(){return tO.getTransactionType}});var tB=r(58496);Object.defineProperty(t,"parseTransaction",{enumerable:!0,get:function(){return tB.parseTransaction}});var tS=r(43415);Object.defineProperty(t,"serializeAccessList",{enumerable:!0,get:function(){return tS.serializeAccessList}});var tj=r(96943);Object.defineProperty(t,"serializeTransaction",{enumerable:!0,get:function(){return tj.serializeTransaction}});var t_=r(91024);Object.defineProperty(t,"domainSeparator",{enumerable:!0,get:function(){return t_.domainSeparator}}),Object.defineProperty(t,"getTypesForEIP712Domain",{enumerable:!0,get:function(){return t_.getTypesForEIP712Domain}}),Object.defineProperty(t,"serializeTypedData",{enumerable:!0,get:function(){return t_.serializeTypedData}
6}),Object.defineProperty(t,"validateTypedData",{enumerable:!0,get:function(){return t_.validateTypedData}});var tM=r(36276);Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return tM.formatEther}});var tC=r(88524);Object.defineProperty(t,"formatGwei",{enumerable:!0,get:function(){return tC.formatGwei}});var tR=r(22159);Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return tR.formatUnits}});var tk=r(87286);Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return tk.parseEther}});var tH=r(6318);Object.defineProperty(t,"parseGwei",{enumerable:!0,get:function(){return tH.parseGwei}});var tN=r(27149);Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return tN.parseUnits}})},30990:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidChecksumError=t.InvalidInputError=t.InvalidAddressError=void 0,t.assert=c,t.checksum=l,t.from=d,t.fromPublicKey=function(e,t={}){let r=i.keccak256(`0x${s.toHex(e).slice(4)}`).substring(26);return d(`0x${r}`,t)},t.isEqual=function(e,t){return c(e,{strict:!1}),c(t,{strict:!1}),e.toLowerCase()===t.toLowerCase()},t.validate=function(e,t={}){let{strict:r=!0}=t??{};try{return c(e,{strict:r}),!0}catch{return!1}};let n=r(33745),a=r(92753),o=r(45189),i=r(87358),s=r(45622),u=/^0x[a-fA-F0-9]{40}$/;function c(e,t={}){let{strict:r=!0}=t;if(!u.test(e))throw new f({address:e,cause:new p});if(r){if(e.toLowerCase()===e)return;if(l(e)!==e)throw new f({address:e,cause:new b})}}function l(e){if(a.checksum.has(e))return a.checksum.get(e);c(e,{strict:!1});let t=e.substring(2).toLowerCase(),r=i.keccak256(n.fromString(t),{as:"Bytes"}),o=t.split("");for(let e=0;e<40;e+=2)r[e>>1]>>4>=8&&o[e]&&(o[e]=o[e].toUpperCase()),(15&r[e>>1])>=8&&o[e+1]&&(o[e+1]=o[e+1].toUpperCase());let s=`0x${o.join("")}`;return a.checksum.set(e,s),s}function d(e,t={}){let{checksum:r=!1}=t;return(c(e),r)?l(e):e}class f extends o.BaseError{constructor({address:e,cause:t}){super(`Address "${e}" is invalid.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}}t.InvalidAddressError=f;class p extends o.BaseError{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}}t.InvalidInputError=p;class b extends o.BaseError{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}t.InvalidChecksumError=b},31507:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getContractAddress=function(e){return"CREATE2"===e.opcode?f(e):d(e)},t.getCreateAddress=d,t.getCreate2Address=f;let n=r(78917),a=r(51804),o=r(29822),i=r(25109),s=r(96978),u=r(6007),c=r(60976),l=r(43333);function d(e){let t=(0,s.toBytes)((0,l.getAddress)(e.from)),r=(0,s.toBytes)(e.nonce);return 0===r[0]&&(r=new Uint8Array([])),(0,l.getAddress)(`0x${(0,c.keccak256)((0,u.toRlp)([t,r],"bytes")).slice(26)}`)}function f(e){let t=(0,s.toBytes)((0,l.getAddress)(e.from)),r=(0,o.pad)((0,a.isBytes)(e.salt)?e.salt:(0,s.toBytes)(e.salt),{size:32}),u="bytecodeHash"in e?(0,a.isBytes)(e.bytecodeHash)?e.bytecodeHash:(0,s.toBytes)(e.bytecodeHash):(0,c.keccak256)(e.bytecode,"bytes");return(0,l.getAddress)((0,i.slice)((0,c.keccak256)((0,n.concat)([(0,s.toBytes)("0xff"),t,r,u])),12))}},31544:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbiItemWithArgs=function({abiItem:e,args:t,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 t[r]?(0,n.stringify)(t[r]):t[r]}`).join(", ")})`};let n=r(57737)},31786:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sendTransaction=g;let n=r(25055),a=r(43473),o=r(33911),i=r(3053),s=r(64702),u=r(63894),c=r(84129),l=r(75621),d=r(78234),f=r(26165),p=r(98048),b=r(84692),m=r(37458),y=r(63644),h=new f.LruMap(128);async function g(e,t){let{account:r=e.account,chain:f=e.chain,accessList:g,authorizationList:v,blobs:E,data:x,gas:w,gasPrice:P,maxFeePerBlobGas:I,maxFeePerGas:A,maxPriorityFeePerGas:T,nonce:O,type:B,value:S,...j}=t;if(void 0===r)throw new a.AccountNotFoundError({docsPath:"/docs/actions/wallet/sendTransaction"});let _=r?(0,n.parseAccount)(r):null;try{(0,p.assertRequest)(t);let r=await (async()=>t.to?t.to:null!==t.to&&v&&v.length>0?await (0,i.recoverAuthorizationAddress)({authorization:v[0]}).catch(()=>{throw new o.BaseError("`to` is required. Could not infer from `authorizationList`.")}):void 0)();if(_?.type==="json-rpc"||null===_){let t;null!==f&&(t=await (0,d.getAction)(e,b.getChainId,"getChainId")({}),(0,s.assertCurrentChain)({currentChainId:t,chain:f}));let n=e.chain?.formatters?.transactionRequest?.format,a=(n||l.formatTransactionRequest)({...(0,c.extract)(j,{format:n}),accessList:g,authorizationList:v,blobs:E,chainId:t,data:x,from:_?.address,gas:w,gasPrice:P,maxFeePerBlobGas:I,maxFeePerGas:A,maxPriorityFeePerGas:T,nonce:O,to:r,type:B,value:S},"sendTransaction"),o=h.get(e.uid);try{return await e.request({method:o?"wallet_sendTransaction":"eth_sendTransaction",params:[a]},{retryCount:0})}catch(t){if(!1===o)throw t;if("InvalidInputRpcError"===t.name||"InvalidParamsRpcError"===t.name||"MethodNotFoundRpcError"===t.name||"MethodNotSupportedRpcError"===t.name)return await e.request({method:"wallet_sendTransaction",params:[a]},{retryCount:0}).then(t=>(h.set(e.uid,!0),t)).catch(r=>{if("MethodNotFoundRpcError"===r.name||"MethodNotSupportedRpcError"===r.name)throw h.set(e.uid,!1),t;throw r});throw t}}if(_?.type==="local"){let t=await (0,d.getAction)(e,m.prepareTransactionRequest,"prepareTransactionRequest")({account:_,accessList:g,authorizationList:v,blobs:E,chain:f,data:x,gas:w,gasPrice:P,maxFeePerBlobGas:I,maxFeePerGas:A,maxPriorityFeePerGas:T,nonce:O,nonceManager:_.nonceManager,parameters:[...m.defaultParameters,"sidecars"],type:B,value:S,...j,to:r}),n=f?.serializers?.transaction,a=await _.signTransaction(t,{serializer:n});return await (0,d.getAction)(e,y.sendRawTransaction,"sendRawTransaction")({serializedTransaction:a})}if(_?.type==="smart")throw new a.AccountTypeNotSupportedError({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"});throw new a.AccountTypeNotSupportedError({docsPath:"/docs/actions/wallet/sendTransaction",type:_?.type})}catch(e){if(e instanceof a.AccountTypeNotSupportedError)throw e;throw(0,u.getTransactionError)(e,{...t,account:_,chain:t.chain||void 0})}}},31894:(e,t,r)=>
6{Object.defineProperty(t,"__esModule",{value:!0}),t.toFunctionSignature=void 0;var n=r(26434);Object.defineProperty(t,"toFunctionSignature",{enumerable:!0,get:function(){return n.toSignature}})},32187:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.integerRegex=t.bytesRegex=t.arrayRegex=void 0,t.arrayRegex=/^(.*)\[([0-9]*)\]$/,t.bytesRegex=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,t.integerRegex=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/},32835:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getWebSocketRpcClient=o;let n=r(26019),a=r(85033);async function o(e,t={}){let{keepAlive:i,reconnect:s}=t;return(0,a.getSocketRpcClient)({async getSocket({onClose:t,onError:a,onOpen:o,onResponse:i}){let s=await Promise.resolve().then(()=>r(6917)).then(e=>e.WebSocket),u=new s(e);function c(){u.removeEventListener("close",c),u.removeEventListener("message",l),u.removeEventListener("error",a),u.removeEventListener("open",o),t()}function l({data:e}){if("string"!=typeof e||0!==e.trim().length)try{let t=JSON.parse(e);i(t)}catch(e){a(e)}}u.addEventListener("close",c),u.addEventListener("message",l),u.addEventListener("error",a),u.addEventListener("open",o),u.readyState===s.CONNECTING&&await new Promise((e,t)=>{u&&(u.onopen=e,u.onerror=t)});let{close:d}=u;return Object.assign(u,{close(){d.bind(u)(),c()},ping(){try{if(u.readyState===u.CLOSED||u.readyState===u.CLOSING)throw new n.WebSocketRequestError({url:u.url,cause:new n.SocketClosedError({url:u.url})});u.send(JSON.stringify({jsonrpc:"2.0",id:null,method:"net_version",params:[]}))}catch(e){a(e)}},request({body:e}){if(u.readyState===u.CLOSED||u.readyState===u.CLOSING)throw new n.WebSocketRequestError({body:e,url:u.url,cause:new n.SocketClosedError({url:u.url})});return u.send(JSON.stringify(e))}})},keepAlive:i,reconnect:s,url:e})}},32853:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.withResolvers=function(){let e=()=>void 0,t=()=>void 0;return{promise:new Promise((r,n)=>{e=r,t=n}),resolve:e,reject:t}}},33023:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.charCodeMap=void 0,t.assertSize=function(e,t){if(n.size(e)>t)throw new n.SizeOverflowError({givenSize:n.size(e),maxSize:t})},t.assertStartOffset=function(e,t){if("number"==typeof t&&t>0&&t>n.size(e)-1)throw new n.SliceOffsetOutOfBoundsError({offset:t,position:"start",size:n.size(e)})},t.assertEndOffset=function(e,t,r){if("number"==typeof t&&"number"==typeof r&&n.size(e)!==r-t)throw new n.SliceOffsetOutOfBoundsError({offset:r,position:"end",size:n.size(e)})},t.charCodeToBase16=function(e){return e>=t.charCodeMap.zero&&e<=t.charCodeMap.nine?e-t.charCodeMap.zero:e>=t.charCodeMap.A&&e<=t.charCodeMap.F?e-(t.charCodeMap.A-10):e>=t.charCodeMap.a&&e<=t.charCodeMap.f?e-(t.charCodeMap.a-10):void 0},t.pad=function(e,t={}){let{dir:r,size:a=32}=t;if(0===a)return e;if(e.length>a)throw new n.SizeExceedsPaddingSizeError({size:e.length,targetSize:a,type:"Bytes"});let o=new Uint8Array(a);for(let t=0;t<a;t++){let n="right"===r;o[n?t:a-t-1]=e[n?t:e.length-t-1]}return o},t.trim=function(e,t={}){let{dir:r="left"}=t,n=e,a=0;for(let e=0;e<n.length-1;e++)if("0"===n["left"===r?e:n.length-e-1].toString())a++;else break;return"left"===r?n.slice(a):n.slice(0,n.length-a)};let n=r(33745);t.charCodeMap={zero:48,nine:57,A:65,F:70,a:97,f:102}},33418:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sidecarsToVersionedHashes=function(e){let{sidecars:t,version:r}=e,a=e.to??("string"==typeof t[0].blob?"hex":"bytes"),o=[];for(let{commitment:e}of t)o.push((0,n.commitmentToVersionedHash)({commitment:e,to:a,version:r}));return o};let n=r(42177)},33437:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CircularReferenceError=void 0;let n=r(41588);class a extends n.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"})}}t.CircularReferenceError=a},33525:(e,t,r)=>
6{Object.defineProperty(t,"__esModule",{value:!0}),t.serializeStateMapping=u,t.serializeAccountStateOverride=c,t.serializeStateOverride=function(e){if(!e)return;let t={};for(let{address:r,...a}of e){if(!(0,i.isAddress)(r,{strict:!1}))throw new n.InvalidAddressError({address:r});if(t[r])throw new o.AccountStateConflictError({address:r});t[r]=c(a)}return t};let n=r(47730),a=r(49322),o=r(24447),i=r(1199),s=r(37264);function u(e){if(e&&0!==e.length)return e.reduce((e,{slot:t,value:r})=>{if(66!==t.length)throw new a.InvalidBytesLengthError({size:t.length,targetSize:66,type:"hex"});if(66!==r.length)throw new a.InvalidBytesLengthError({size:r.length,targetSize:66,type:"hex"});return e[t]=r,e},{})}function c(e){let{balance:t,nonce:r,state:n,stateDiff:a,code:i}=e,c={};if(void 0!==i&&(c.code=i),void 0!==t&&(c.balance=(0,s.numberToHex)(t)),void 0!==r&&(c.nonce=(0,s.numberToHex)(r)),void 0!==n&&(c.state=u(n)),void 0!==a){if(c.state)throw new o.StateAssignmentConflictError;c.stateDiff=u(a)}return c}},33593:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.poll=function(e,{emitOnBegin:t,initialWaitTime:r,interval:a}){let o=!0,i=()=>o=!1;return(async()=>{let s;t&&(s=await e({unpoll:i}));let u=await r?.(s)??a;await (0,n.wait)(u);let c=async()=>{o&&(await e({unpoll:i}),await (0,n.wait)(a),c())};c()})(),i};let n=r(87637)},33742:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toEventSignature=void 0;var n=r(26434);Object.defineProperty(t,"toEventSignature",{enumerable:!0,get:function(){return n.toSignature}})},33745:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SizeExceedsPaddingSizeError=t.SliceOffsetOutOfBoundsError=t.SizeOverflowError=t.InvalidBytesTypeError=t.InvalidBytesBooleanError=void 0,t.assert=d,t.concat=function(...e){let t=0;for(let r of e)t+=r.length;let r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){let a=e[t];r.set(a,n),n+=a.length}return r},t.from=function(e){return e instanceof Uint8Array?e:"string"==typeof e?p(e):f(e)},t.fromArray=f,t.fromBoolean=function(e,t={}){let{size:r}=t,n=new Uint8Array(1);return(n[0]=Number(e),"number"==typeof r)?(i.assertSize(n,r),b(n,r)):n},t.fromHex=p,t.fromNumber=function(e,t){return p(o.fromNumber(e,t))},t.fromString=function(e,t={}){let{size:r}=t,n=l.encode(e);return"number"==typeof r?(i.assertSize(n,r),m(n,r)):n},t.isEqual=function(e,t){return(0,n.equalBytes)(e,t)},t.padLeft=b,t.padRight=m,t.random=function(e){return crypto.getRandomValues(new Uint8Array(e))},t.size=function(e){return e.length},t.slice=function(e,t,r,n={}){let{strict:a}=n;i.assertStartOffset(e,t);let o=e.slice(t,r);return a&&i.assertEndOffset(o,t,r),o},t.toBigInt=function(e,t={}){let{size:r}=t;void 0!==r&&i.assertSize(e,r);let n=o.fromBytes(e,t);return o.toBigInt(n,t)},t.toBoolean=function(e,t={}){let{size:r}=t,n=e;if(void 0!==r&&(i.assertSize(n,r),n=y(n)),n.length>1||n[0]>1)throw new g(n);return!!n[0]},t.toHex=function(e,t={}){return o.fromBytes(e,t)},t.toNumber=function(e,t={}){let{size:r}=t;void 0!==r&&i.assertSize(e,r);let n=o.fromBytes(e,t);return o.toNumber(n,t)},t.toString=function(e,t={}){let{size:r}=t,n=e;return void 0!==r&&(i.assertSize(n,r),n=h(n)),c.decode(n)},t.trimLeft=y,t.trimRight=h,t.validate=function(e){try{return d(e),!0}catch{return!1}};let n=r(81906),a=r(45189),o=r(58515),i=r(33023),s=r(25705),u=r(58184),c=new TextDecoder,l=new TextEncoder;function d(e){if(!(e instanceof Uint8Array)&&(!e||"object"!=typeof e||!("BYTES_PER_ELEMENT"in e)||1!==e.BYTES_PER_ELEMENT||"Uint8Array"!==e.constructor.name))throw new v(e)}function f(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function p(e,t={}){let{size:r}=t,n=e;r&&(s.assertSize(e,r),n=o.padRight(e,r));let u=n.slice(2);u.length%2&&(u=`0${u}`);let c=u.length/2,l=new Uint8Array(c);for(let e=0,t=0;e<c;e++){let r=i.charCodeToBase16(u.charCodeAt(t++)),n=i.charCodeToBase16(u.charCodeAt(t++));if(void 0===r||void 0===n)throw new a.BaseError(`Invalid byte sequence ("${u[t-2]}${u[t-1]}" in "${u}").`);l[e]=16*r+n}return l}function b(e,t){return i.pad(e,{dir:"left",size:t})}function m(e,t){return i.pad(e,{dir:"right",size:t})}function y(e){return i.trim(e,{dir:"left"})}function h(e){return i.trim(e,{dir:"right"})}class g extends a.BaseError{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"})}}t.InvalidBytesBooleanError=g;class v extends a.BaseError{constructor(e){super(`Value \`${"object"==typeof e?u.stringify(e):e}\` of type \`${typeof e}
6\` 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"})}}t.InvalidBytesTypeError=v;class E extends a.BaseError{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"})}}t.SizeOverflowError=E;class x extends a.BaseError{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset \`${e}\` is out-of-bounds (size: \`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SliceOffsetOutOfBoundsError"})}}t.SliceOffsetOutOfBoundsError=x;class w extends a.BaseError{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeExceedsPaddingSizeError"})}}t.SizeExceedsPaddingSizeError=w},33851:(e,t)=>{async function r(e,t){return e.request({method:"wallet_requestPermissions",params:[t]},{retryCount:0})}Object.defineProperty(t,"__esModule",{value:!0}),t.requestPermissions=r},33911:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseError=void 0,t.setErrorConfig=function(e){a=e};let n=r(48406),a={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:r})=>t?`${e??"https://viem.sh"}${t}${r?`#${r}`:""}`:void 0,version:`viem@${n.version}`};class o extends Error{constructor(e,t={}){const r=t.cause instanceof o?t.cause.details:t.cause?.message?t.cause.message:t.details,i=t.cause instanceof o&&t.cause.docsPath||t.docsPath,s=a.getDocsUrl?.({...t,docsPath:i});super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...s?[`Docs: ${s}`]:[],...r?[`Details: ${r}`]:[],...a.version?[`Version: ${a.version}`]:[]].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,"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=r,this.docsPath=i,this.metaMessages=t.metaMessages,this.name=t.name??this.name,this.shortMessage=e,this.version=n.version}walk(e){return function e(t,r){return r?.(t)?t:t&&"object"==typeof t&&"cause"in t&&void 0!==t.cause?e(t.cause,r):r?null:t}(this,e)}}t.BaseError=o},34040:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidParenthesisError=void 0;let n=r(41588);class a extends n.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"})}}t.InvalidParenthesisError=a},34074:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isErc8010Signature=function(e){return n.SignatureErc8010.validate(e)};let n=r(16576)},34736:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.encodeEventTopics=function(e){let{abi:t,eventName:r,args:a}=e,o=t[0];if(r){let e=(0,l.getAbiItem)({abi:t,name:r});if(!e)throw new n.AbiEventNotFoundError(r,{docsPath:d});o=e}if("event"!==o.type)throw new n.AbiEventNotFoundError(void 0,{docsPath:d});let i=(0,c.formatAbiItem)(o),u=(0,s.toEventSelector)(i),p=[];if(a&&"inputs"in o){let e=o.inputs?.filter(e=>"indexed"in e&&e.indexed),t=Array.isArray(a)?a:Object.values(a).length>0?e?.map(e=>a[e.name])??[]:[];t.length>0&&(p=e?.map((e,r)=>Array.isArray(t[r])?t[r].map((n,a)=>f({param:e,value:t[r][a]})):void 0!==t[r]&&null!==t[r]?f({param:e,value:t[r]}):null)??[])}return[u,...p]};let n=r(95664),a=r(40092),o=r(96978),i=r(60976),s=r(53093),u=r(70209),c=r(8117),l=r(1682),d="/docs/contract/encodeEventTopics";function f({param:e,value:t}
6){if("string"===e.type||"bytes"===e.type)return(0,i.keccak256)((0,o.toBytes)(t));if("tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/))throw new a.FilterTypeNotSupportedError(e.type);return(0,u.encodeAbiParameters)([e],[t])}},34890:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=t.RIPEMD160=void 0;let n=r(91157);t.RIPEMD160=n.RIPEMD160,t.ripemd160=n.ripemd160},34955:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BundleFailedError=void 0;let n=r(33911);class a extends n.BaseError{constructor(e){super(`Call bundle failed with status: ${e.statusCode}`,{name:"BundleFailedError"}),Object.defineProperty(this,"result",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.result=e}}t.BundleFailedError=a},35026:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setBlockGasLimit=a;let n=r(37264);async function a(e,{gasLimit:t}){await e.request({method:"evm_setBlockGasLimit",params:[(0,n.numberToHex)(t)]})}},35049:(e,t)=>{async function r(e){return"ganache"===e.mode?await e.request({method:"eth_mining"}):await e.request({method:`${e.mode}_getAutomine`})}Object.defineProperty(t,"__esModule",{value:!0}),t.getAutomine=r},35127:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.estimateGas=p;let n=r(25055),a=r(33911),o=r(3053),i=r(37264),s=r(2611),u=r(84129),c=r(75621),l=r(33525),d=r(98048),f=r(37458);async function p(e,t){let{account:r=e.account}=t,p=r?(0,n.parseAccount)(r):void 0;try{let{accessList:r,authorizationList:n,blobs:s,blobVersionedHashes:b,blockNumber:m,blockTag:y,data:h,gas:g,gasPrice:v,maxFeePerBlobGas:E,maxFeePerGas:x,maxPriorityFeePerGas:w,nonce:P,value:I,stateOverride:A,...T}=await (0,f.prepareTransactionRequest)(e,{...t,parameters:p?.type==="local"?void 0:["blobVersionedHashes"]}),O=("bigint"==typeof m?(0,i.numberToHex)(m):void 0)||y,B=(0,l.serializeStateOverride)(A),S=await (async()=>T.to?T.to:n&&n.length>0?await (0,o.recoverAuthorizationAddress)({authorization:n[0]}).catch(()=>{throw new a.BaseError("`to` is required. Could not infer from `authorizationList`")}):void 0)();(0,d.assertRequest)(t);let j=e.chain?.formatters?.transactionRequest?.format,_=(j||c.formatTransactionRequest)({...(0,u.extract)(T,{format:j}),from:p?.address,accessList:r,authorizationList:n,blobs:s,blobVersionedHashes:b,data:h,gas:g,gasPrice:v,maxFeePerBlobGas:E,maxFeePerGas:x,maxPriorityFeePerGas:w,nonce:P,to:S,value:I},"estimateGas");return BigInt(await e.request({method:"eth_estimateGas",params:B?[_,O??e.experimental_blockTag??"latest",B]:O?[_,O]:[_]}))}catch(r){throw(0,s.getEstimateGasError)(r,{...t,account:p,chain:e.chain})}}},35235:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.estimateMaxPriorityFeePerGas=u,t.internal_estimateMaxPriorityFeePerGas=c;let n=r(62082),a=r(85319),o=r(78234),i=r(73817),s=r(79190);async function u(e,t){return c(e,t)}async function c(e,t){let{block:r,chain:u=e.chain,request:c}=t||{};try{let t=u?.fees?.maxPriorityFeePerGas??u?.fees?.defaultPriorityFee;if("function"==typeof t){let n=r||await (0,o.getAction)(e,i.getBlock,"getBlock")({}),a=await t({block:n,client:e,request:c});if(null===a)throw Error();return a}if(void 0!==t)return t;let n=await e.request({method:"eth_maxPriorityFeePerGas"});return(0,a.hexToBigInt)(n)}catch{let[t,a]=await Promise.all([r?Promise.resolve(r):(0,o.getAction)(e,i.getBlock,"getBlock")({}),(0,o.getAction)(e,s.getGasPrice,"getGasPrice")({})]);if("bigint"!=typeof t.baseFeePerGas)throw new n.Eip1559FeesNotSupportedError;let u=a-t.baseFeePerGas;if(u<0n)return 0n;return u}}},35342:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownNodeError=t.TipAboveFeeCapError=t.TransactionTypeNotSupportedError=t.IntrinsicGasTooLowError=t.IntrinsicGasTooHighError=t.InsufficientFundsError=t.NonceMaxValueError=t.NonceTooLowError=t.NonceTooHighError=t.FeeCapTooLowError=t.FeeCapTooHighError=t.ExecutionRevertedError=void 0;let n=r(88524),a=r(33911);class o extends a.BaseError{constructor({cause:e,message:t}={}){const r=t?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:e,name:"ExecutionRevertedError"})}}t.ExecutionRevertedError=o,Object.defineProperty(o,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(o,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class i extends a.BaseError{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,n.formatGwei)(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:"FeeCapTooHighError"})}}t.FeeCapTooHighError=i,Object.defineProperty(i,"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 s extends a.BaseError{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,n.formatGwei)(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e,name:"FeeCapTooLowError"})}}t.FeeCapTooLowError=s,Object.defineProperty(s,"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 u extends a.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"})}}t.NonceTooHighError=u,Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class c extends a.BaseError{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account.
7Try increasing the nonce or find the latest nonce with \`getTransactionCount\`.`,{cause:e,name:"NonceTooLowError"})}}t.NonceTooLowError=c,Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class l extends a.BaseError{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e,name:"NonceMaxValueError"})}}t.NonceMaxValueError=l,Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class d extends a.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"})}}t.InsufficientFundsError=d,Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class f extends a.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"})}}t.IntrinsicGasTooHighError=f,Object.defineProperty(f,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class p extends a.BaseError{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e,name:"IntrinsicGasTooLowError"})}}t.IntrinsicGasTooLowError=p,Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class b extends a.BaseError{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e,name:"TransactionTypeNotSupportedError"})}}t.TransactionTypeNotSupportedError=b,Object.defineProperty(b,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class m extends a.BaseError{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:r}={}){super(`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${(0,n.formatGwei)(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${(0,n.formatGwei)(r)} gwei`:""}).`,{cause:e,name:"TipAboveFeeCapError"})}}t.TipAboveFeeCapError=m,Object.defineProperty(m,"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 y extends a.BaseError{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e,name:"UnknownNodeError"})}}t.UnknownNodeError=y},35421:(e,t)=>{async function r(e,{address:t}){await e.request({method:`${e.mode}_setCoinbase`,params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.setCoinbase=r},35610:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbiParameter=function e(t){let r=t.type;if(a.test(t.type)&&"components"in t){r="(";let o=t.components.length;for(let n=0;n<o;n++)r+=e(t.components[n]),n<o-1&&(r+=", ");let i=(0,n.execTyped)(a,t.type);return r+=`)${i?.array??""}`,e({...t,type:r})}return("indexed"in t&&t.indexed&&(r=`${r}
7 indexed`),t.name)?`${r} ${t.name}`:r};let n=r(58446),a=/^tuple(?<array>(\[(\d*)\])*)$/},35641:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getFilterLogs=o;let n=r(48093),a=r(64234);async function o(e,{filter:t}){let r=t.strict??!1,i=(await t.request({method:"eth_getFilterLogs",params:[t.id]})).map(e=>(0,a.formatLog)(e));return t.abi?(0,n.parseEventLogs)({abi:t.abi,logs:i,strict:r}):i}},36110:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.readContract=u;let n=r(84212),a=r(63997),o=r(67916),i=r(78234),s=r(99076);async function u(e,t){let{abi:r,address:u,args:c,functionName:l,...d}=t,f=(0,a.encodeFunctionData)({abi:r,args:c,functionName:l});try{let{data:t}=await (0,i.getAction)(e,s.call,"call")({...d,data:f,to:u});return(0,n.decodeFunctionResult)({abi:r,args:c,functionName:l,data:t||"0x"})}catch(e){throw(0,o.getContractError)(e,{abi:r,address:u,args:c,docsPath:"/docs/contract/readContract",functionName:l})}}},36119:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SizeOverflowError=t.InvalidHexValueError=t.InvalidHexBooleanError=t.InvalidBytesBooleanError=t.IntegerOutOfRangeError=void 0;let n=r(33911);class a extends n.BaseError{constructor({max:e,min:t,signed:r,size:n,value:a}){super(`Number "${a}" is not in safe ${n?`${8*n}-bit ${r?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`,{name:"IntegerOutOfRangeError"})}}t.IntegerOutOfRangeError=a;class o extends n.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"})}}t.InvalidBytesBooleanError=o;class i extends n.BaseError{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}t.InvalidHexBooleanError=i;class s extends n.BaseError{constructor(e){super(`Hex value "${e}" is an odd length (${e.length}). It must be an even length.`,{name:"InvalidHexValueError"})}}t.InvalidHexValueError=s;class u extends n.BaseError{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}t.SizeOverflowError=u},36276:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatEther=function(e,t="wei"){return(0,a.formatUnits)(e,n.etherUnits[t])};let n=r(98274),a=r(22159)},36400:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionReceipt=o;let n=r(2922),a=r(15152);async function o(e,{hash:t}){let r=await e.request({method:"eth_getTransactionReceipt",params:[t]},{dedupe:!0});if(!r)throw new n.TransactionReceiptNotFoundError({hash:t});return(e.chain?.formatters?.transactionReceipt?.format||a.formatTransactionReceipt)(r,"getTransactionReceipt")}},36523:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DER=t.DERErr=void 0,t.weierstrassPoints=b,t.weierstrass=function(e){let r,s=(r=(0,n.validateBasic)(e),(0,o.validateObject)(r,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...r})),{Fp:d,n:f,nByteLength:p,nBitLength:m}=s,y=d.BYTES+1,h=2*d.BYTES+1;function g(e){return(0,a.mod)(e,f)}function v(e){return(0,a.invert)(e,f)}let{ProjectivePoint:E,normPrivateKeyToScalar:x,weierstrassEquation:w,isWithinCurveOrder:P}=b({...s,toBytes(e,t,r){let n=t.toAffine(),a=d.toBytes(n.x),i=o.concatBytes;return((0,o.abool)("isCompressed",r),r)?i(Uint8Array.from([t.hasEvenY()?2:3]),a):i(Uint8Array.from([4]),a,d.toBytes(n.y))},fromBytes(e){let t=e.length,r=e[0],n=e.subarray(1);if(t===y&&(2===r||3===r)){let e,t=(0,o.bytesToNumberBE)(n);if(!(0,o.inRange)(t,l,d.ORDER))throw Error("Point is not on curve");let a=w(t);try{e=d.sqrt(a)}catch(e){throw Error("Point is not on curve"+(e instanceof Error?": "+e.message:""))}return(1&r)==1!=((e&l)===l)&&(e=d.neg(e)),{x:t,y:e}}if(t===h&&4===r)return{x:d.fromBytes(n.subarray(0,d.BYTES)),y:d.fromBytes(n.subarray(d.BYTES,2*d.BYTES))};throw Error("invalid Point, expected length of "+y+", or uncompressed "+h+", got "+t)}}),I=(e,t,r)=>(0,o.bytesToNumberBE)(e.slice(t,r));class A{constructor(e,t,r){(0,o.aInRange)("r",e,l,f),(0,o.aInRange)("s",t,l,f),this.r=e,this.s=t,null!=r&&(this.recovery=r),Object.freeze(this)}static fromCompact(e){return new A(I(e=(0,o.ensureBytes)("compactSignature",e,2*p),0,p),I(e,p,2*p))}static fromDER(e){let{r,s:n}=t.DER.toSig((0,o.ensureBytes)("DER",e));return new A(r,n)}assertValidity(){}addRecoveryBit(e){return new A(this.r,this.s,e)}recoverPublicKey(e){let{r:t,s:r,recovery:n}=this,a=B((0,o.ensureBytes)("msgHash",e));if(null==n||![0,1,2,3].includes(n))throw Error("recovery id invalid");let i=2===n||3===n?t+s.n:t;if(i>=d.ORDER)throw Error("recovery id 2 or 3 invalid");let c=(1&n)==0?"02":"03",l=E.fromHex(c+u(i,d.BYTES)),f=v(i),p=g(-a*f),b=g(r*f),m=E.BASE.multiplyAndAddUnsafe(l,p,b);if(!m)throw Error("point at infinify");return m.assertValidity(),m}hasHighS(){return this.s>f>>l}normalizeS(){return this.hasHighS()?new A(this.r,g(-this.s),this.recovery):this}toDERRawBytes(){return(0,o.hexToBytes)(this.toDERHex())}toDERHex(){return t.DER.hexFromSig(this)}toCompactRawBytes(){return(0,o.hexToBytes)(this.toCompactHex())}toCompactHex(){return u(this.r,p)+u(this.s,p)}}function T(e){if("bigint"==typeof e)return!1;if(e instanceof E)return!0;let t=(0,o.ensureBytes)("key",e).length,r=d.BYTES,n=r+1;if(!s.allowedPrivateKeyLengths&&p!==n)return t===n||t===2*r+1}let O=s.bits2int||function(e){if(e.length>8192)throw Error("input is too large");let t=(0,o.bytesToNumberBE)(e),r=8*e.length-m;return r>0?t>>BigInt(r):t},B=s.bits2int_modN||function(e){return g(O(e))},S=(0,o.bitMask)(m);function j(e){return(0,o.aInRange)("num < 2^"+m,e,c,S),(0,o.numberToBytesBE)(e,p)}let _={lowS:s.lowS,prehash:!1},M={lowS:s.lowS,prehash:!1};return E.BASE._setWindowSize(8),{CURVE:s,getPublicKey:function(e,t=!0){return E.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t,r=!0){if(!0===T(e))throw Error("first arg must be private key");if(!1===T(t))throw Error("second arg must be public key");return E.fromHex(t).multiply(x(e)).toRawBytes(r)},sign:function(e,t,r=_){let{seed:n,k2sig:a}=function(e,t,r=_){if(["recovered","canonical"].some(e=>e in r))throw Error("sign() legacy options not supported");let{hash:n,randomBytes:a}=s,{lowS:u,prehash:p,extraEntropy:b}=r;null==u&&(u=!0),e=(0,o.ensureBytes)("msgHash",e),i(r),p&&(e=(0,o.ensureBytes)("prehashed msgHash",n(e)));let m=B(e),y=x(t),h=[j(y),j(m)];if(null!=b&&!1!==b){let e=!0===b?a(d.BYTES):b;h.push((0,o.ensureBytes)("extraEntropy",e))}return{seed:(0,o.concatBytes)(...h),k2sig:function(e){var t;let r=O(e);if(!P(r))return;let n=v(r),a=E.BASE.multiply(r).toAffine(),o=g(a.x);if(o===c)return;let i=g(n*g(m+o*y));if(i===c)return;let s=2*(a.x!==o)|Number(a.y&l),d=i;return u&&i>f>>l&&(d=(t=i)>f>>l?g(-t):t,s^=1),new A(o,d,s)}}}(e,t,r);return(0,o.createHmacDrbg)(s.hash.outputLen,s.nByteLength,s.hmac)(n,a)},verify:function(e,r,n,a=M){let u,c;r=(0,o.ensureBytes)("msgHash",r),n=(0,o.ensureBytes)("publicKey",n);let{lowS:l,prehash:d,format:f}=a;if(i(a),"strict"in a)throw Error("options.strict was renamed to lowS");if(void 0!==f&&"compact"!==f&&"der"!==f)throw Error("format must be compact or der");
7let p="string"==typeof e||(0,o.isBytes)(e),b=!p&&!f&&"object"==typeof e&&null!==e&&"bigint"==typeof e.r&&"bigint"==typeof e.s;if(!p&&!b)throw Error("invalid signature, expected Uint8Array, hex string or Signature instance");try{if(b&&(c=new A(e.r,e.s)),p){try{"compact"!==f&&(c=A.fromDER(e))}catch(e){if(!(e instanceof t.DER.Err))throw e}c||"der"===f||(c=A.fromCompact(e))}u=E.fromHex(n)}catch(e){return!1}if(!c||l&&c.hasHighS())return!1;d&&(r=s.hash(r));let{r:m,s:y}=c,h=B(r),x=v(y),w=g(h*x),P=g(m*x),I=E.BASE.multiplyAndAddUnsafe(u,w,P)?.toAffine();return!!I&&g(I.x)===m},ProjectivePoint:E,Signature:A,utils:{isValidPrivateKey(e){try{return x(e),!0}catch(e){return!1}},normPrivateKeyToScalar:x,randomPrivateKey:()=>{let e=(0,a.getMinHashLength)(s.n);return(0,a.mapHashToField)(s.randomBytes(e),s.n)},precompute:(e=8,t=E.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)}}},t.SWUFpSqrtRatio=m,t.mapToCurveSimpleSWU=function(e,t){if((0,a.validateField)(e),!e.isValid(t.A)||!e.isValid(t.B)||!e.isValid(t.Z))throw Error("mapToCurveSimpleSWU: invalid opts");let r=m(e,t.Z);if(!e.isOdd)throw Error("Fp.isOdd is not implemented!");return n=>{let o,i,s,u,c,l,d,f;o=e.sqr(n),o=e.mul(o,t.Z),i=e.sqr(o),i=e.add(i,o),s=e.add(i,e.ONE),s=e.mul(s,t.B),u=e.cmov(t.Z,e.neg(i),!e.eql(i,e.ZERO)),u=e.mul(u,t.A),i=e.sqr(s),l=e.sqr(u),c=e.mul(l,t.A),i=e.add(i,c),i=e.mul(i,s),l=e.mul(l,u),c=e.mul(l,t.B),i=e.add(i,c),d=e.mul(o,s);let{isValid:p,value:b}=r(i,l);f=e.mul(o,n),f=e.mul(f,b),d=e.cmov(d,s,p),f=e.cmov(f,b,p);let m=e.isOdd(n)===e.isOdd(f);f=e.cmov(e.neg(f),f,m);let y=(0,a.FpInvertBatch)(e,[u],!0)[0];return{x:d=e.mul(d,y),y:f}}};let n=r(0),a=r(54241),o=r(81906);function i(e){void 0!==e.lowS&&(0,o.abool)("lowS",e.lowS),void 0!==e.prehash&&(0,o.abool)("prehash",e.prehash)}class s extends Error{constructor(e=""){super(e)}}function u(e,t){return(0,o.bytesToHex)((0,o.numberToBytesBE)(e,t))}t.DERErr=s,t.DER={Err:s,_tlv:{encode:(e,r)=>{let{Err:n}=t.DER;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(1&r.length)throw new n("tlv.encode: unpadded data");let a=r.length/2,i=(0,o.numberToHexUnpadded)(a);if(i.length/2&128)throw new n("tlv.encode: long form length too big");let s=a>127?(0,o.numberToHexUnpadded)(i.length/2|128):"";return(0,o.numberToHexUnpadded)(e)+s+i+r},decode(e,r){let{Err:n}=t.DER,a=0;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(r.length<2||r[a++]!==e)throw new n("tlv.decode: wrong tlv");let o=r[a++],i=0;if(128&o){let e=127&o;if(!e)throw new n("tlv.decode(long): indefinite length not supported");if(e>4)throw new n("tlv.decode(long): byte length is too big");let t=r.subarray(a,a+e);if(t.length!==e)throw new n("tlv.decode: length bytes not complete");if(0===t[0])throw new n("tlv.decode(long): zero leftmost byte");for(let e of t)i=i<<8|e;if(a+=e,i<128)throw new n("tlv.decode(long): not minimal encoding")}else i=o;let s=r.subarray(a,a+i);if(s.length!==i)throw new n("tlv.decode: wrong value length");return{v:s,l:r.subarray(a+i)}}},_int:{encode(e){let{Err:r}=t.DER;if(e<c)throw new r("integer: negative integers are not allowed");let n=(0,o.numberToHexUnpadded)(e);if(8&Number.parseInt(n[0],16)&&(n="00"+n),1&n.length)throw new r("unexpected DER parsing assertion: unpadded hex");return n},decode(e){let{Err:r}=t.DER;if(128&e[0])throw new r("invalid signature integer: negative");if(0===e[0]&&!(128&e[1]))throw new r("invalid signature integer: unnecessary leading zero");return(0,o.bytesToNumberBE)(e)}},toSig(e){let{Err:r,_int:n,_tlv:a}=t.DER,i=(0,o.ensureBytes)("signature",e),{v:s,l:u}=a.decode(48,i);if(u.length)throw new r("invalid signature: left bytes after parsing");let{v:c,l:l}=a.decode(2,s),{v:d,l:f}=a.decode(2,l);if(f.length)throw new r("invalid signature: left bytes after parsing");return{r:n.decode(c),s:n.decode(d)}},hexFromSig(e){let{_tlv:r,_int:n}=t.DER,a=r.encode(2,n.encode(e.r)),o=r.encode(2,n.encode(e.s));return r.encode(48,a+o)}};let c=BigInt(0),l=BigInt(1),d=BigInt(2),f=BigInt(3),p=BigInt(4);function b(e){let t=function(e){let t=(0,n.validateBasic)(e);(0,o.validateObject)(t,{a:"field",b:"field"},{allowInfinityPoint:"boolean",allowedPrivateKeyLengths:"array",clearCofactor:"function",fromBytes:"function",isTorsionFree:"function",toBytes:"function",wrapPrivateKey:"boolean"});let{endo:r,Fp:a,a:i}=t;if(r){if(!a.eql(i,a.ZERO))throw Error("invalid endo: CURVE.a must be 0");if("object"!=typeof r||"bigint"!=typeof r.beta||"function"!=typeof r.splitScalar)throw Error('invalid endo: expected "beta": bigint and "splitScalar": function')}return Object.freeze({...t})}(e),{Fp:r}=t,i=(0,a.Field)(t.n,t.nBitLength),s=t.toBytes||((e,t,n)=>{let a=t.toAffine();return(0,o.concatBytes)(Uint8Array.from([4]),r.toBytes(a.x),r.toBytes(a.y))}),u=t.fromBytes||(e=>{let t=e.subarray(1);return{x:r.fromBytes(t.subarray(0,r.BYTES)),y:r.fromBytes(t.subarray(r.BYTES,2*r.BYTES))}});function d(e){let{a:n,b:a}=t,o=r.sqr(e),i=r.mul(o,e);return r.add(r.add(i,r.mul(e,n)),a)}function b(e,t){let n=r.sqr(t),a=d(e);return r.eql(n,a)}if(!b(t.Gx,t.Gy))throw Error("bad curve params: generator point");let m=r.mul(r.pow(t.a,f),p),y=r.mul(r.sqr(t.b),BigInt(27));if(r.is0(r.add(m,y)))throw Error("bad curve params: a or b");function h(e){let r,{allowedPrivateKeyLengths:n,nByteLength:i,wrapPrivateKey:s,n:u}=t;if(n&&"bigint"!=typeof e){if((0,o.isBytes)(e)&&(e=(0,o.bytesToHex)(e)),"string"!=typeof e||!n.includes(e.length))throw Error("invalid private key");e=e.padStart(2*i,"0")}try{r="bigint"==typeof e?e:(0,o.bytesToNumberBE)((0,o.ensureBytes)("private key",e,i))}catch(t){throw Error("invalid private key, expected hex or "+i+" bytes, got "+typeof e)}return s&&(r=(0,a.mod)(r,u)),(0,o.aInRange)("private key",r,l,u),r}function g(e){if(!(e instanceof x))throw Error("ProjectivePoint expected")}let v=(0,o.memoized)((e,t)=>{let{px:n,py:a,pz:o}=e;if(r.eql(o,r.ONE))return{x:n,y:a};let i=e.is0();null==t&&(t=i?r.ONE:r.inv(o));let s=r.mul(n,t),u=r.mul(a,t),c=r.mul(o,t);if(i)return{x:r.ZERO,y:r.ZERO};
vendor: 4,420 bytes, line 7
7if(!r.eql(c,r.ONE))throw Error("invZ was invalid");return{x:s,y:u}}),E=(0,o.memoized)(e=>{if(e.is0()){if(t.allowInfinityPoint&&!r.is0(e.py))return;throw Error("bad point: ZERO")}let{x:n,y:a}=e.toAffine();if(!r.isValid(n)||!r.isValid(a))throw Error("bad point: x or y not FE");if(!b(n,a))throw Error("bad point: equation left != right");if(!e.isTorsionFree())throw Error("bad point: not in prime-order subgroup");return!0});class x{constructor(e,t,n){if(null==e||!r.isValid(e))throw Error("x required");if(null==t||!r.isValid(t)||r.is0(t))throw Error("y required");if(null==n||!r.isValid(n))throw Error("z required");this.px=e,this.py=t,this.pz=n,Object.freeze(this)}static fromAffine(e){let{x:t,y:n}=e||{};if(!e||!r.isValid(t)||!r.isValid(n))throw Error("invalid affine point");if(e instanceof x)throw Error("projective point not allowed");let a=e=>r.eql(e,r.ZERO);return a(t)&&a(n)?x.ZERO:new x(t,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){let t=(0,a.FpInvertBatch)(r,e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(x.fromAffine)}static fromHex(e){let t=x.fromAffine(u((0,o.ensureBytes)("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return x.BASE.multiply(h(e))}static msm(e,t){return(0,n.pippenger)(x,i,e,t)}_setWindowSize(e){I.setWindowSize(this,e)}assertValidity(){E(this)}hasEvenY(){let{y:e}=this.toAffine();if(r.isOdd)return!r.isOdd(e);throw Error("Field doesn't support isOdd")}equals(e){g(e);let{px:t,py:n,pz:a}=this,{px:o,py:i,pz:s}=e,u=r.eql(r.mul(t,s),r.mul(o,a)),c=r.eql(r.mul(n,s),r.mul(i,a));return u&&c}negate(){return new x(this.px,r.neg(this.py),this.pz)}double(){let{a:e,b:n}=t,a=r.mul(n,f),{px:o,py:i,pz:s}=this,u=r.ZERO,c=r.ZERO,l=r.ZERO,d=r.mul(o,o),p=r.mul(i,i),b=r.mul(s,s),m=r.mul(o,i);return m=r.add(m,m),l=r.mul(o,s),l=r.add(l,l),u=r.mul(e,l),c=r.mul(a,b),c=r.add(u,c),u=r.sub(p,c),c=r.add(p,c),c=r.mul(u,c),u=r.mul(m,u),l=r.mul(a,l),b=r.mul(e,b),m=r.sub(d,b),m=r.mul(e,m),m=r.add(m,l),l=r.add(d,d),d=r.add(l,d),d=r.add(d,b),d=r.mul(d,m),c=r.add(c,d),b=r.mul(i,s),b=r.add(b,b),d=r.mul(b,m),u=r.sub(u,d),l=r.mul(b,p),l=r.add(l,l),new x(u,c,l=r.add(l,l))}add(e){g(e);let{px:n,py:a,pz:o}=this,{px:i,py:s,pz:u}=e,c=r.ZERO,l=r.ZERO,d=r.ZERO,p=t.a,b=r.mul(t.b,f),m=r.mul(n,i),y=r.mul(a,s),h=r.mul(o,u),v=r.add(n,a),E=r.add(i,s);v=r.mul(v,E),E=r.add(m,y),v=r.sub(v,E),E=r.add(n,o);let w=r.add(i,u);return E=r.mul(E,w),w=r.add(m,h),E=r.sub(E,w),w=r.add(a,o),c=r.add(s,u),w=r.mul(w,c),c=r.add(y,h),w=r.sub(w,c),d=r.mul(p,E),c=r.mul(b,h),d=r.add(c,d),c=r.sub(y,d),d=r.add(y,d),l=r.mul(c,d),y=r.add(m,m),y=r.add(y,m),h=r.mul(p,h),E=r.mul(b,E),y=r.add(y,h),h=r.sub(m,h),h=r.mul(p,h),E=r.add(E,h),m=r.mul(y,E),l=r.add(l,m),m=r.mul(w,E),c=r.mul(v,c),c=r.sub(c,m),m=r.mul(v,y),d=r.mul(w,d),new x(c,l,d=r.add(d,m))}subtract(e){return this.add(e.negate())}is0(){return this.equals(x.ZERO)}wNAF(e){return I.wNAFCached(this,e,x.normalizeZ)}multiplyUnsafe(e){let{endo:n,n:a}=t;(0,o.aInRange)("scalar",e,c,a);let i=x.ZERO;if(e===c)return i;if(this.is0()||e===l)return this;if(!n||I.hasPrecomputes(this))return I.wNAFCachedUnsafe(this,e,x.normalizeZ);let{k1neg:s,k1:u,k2neg:d,k2:f}=n.splitScalar(e),p=i,b=i,m=this;for(;u>c||f>c;)u&l&&(p=p.add(m)),f&l&&(b=b.add(m)),m=m.double(),u>>=l,f>>=l;return s&&(p=p.negate()),d&&(b=b.negate()),b=new x(r.mul(b.px,n.beta),b.py,b.pz),p.add(b)}multiply(e){let n,a,{endo:i,n:s}=t;if((0,o.aInRange)("scalar",e,l,s),i){let{k1neg:t,k1:o,k2neg:s,k2:u}=i.splitScalar(e),{p:c,f:l}=this.wNAF(o),{p:d,f:f}=this.wNAF(u);c=I.constTimeNegate(t,c),d=I.constTimeNegate(s,d),d=new x(r.mul(d.px,i.beta),d.py,d.pz),n=c.add(d),a=l.add(f)}else{let{p:t,f:r}=this.wNAF(e);n=t,a=r}return x.normalizeZ([n,a])[0]}multiplyAndAddUnsafe(e,t,r){let n=x.BASE,a=(e,t)=>t!==c&&t!==l&&e.equals(n)?e.multiply(t):e.multiplyUnsafe(t),o=a(this,t).add(a(e,r));return o.is0()?void 0:o}toAffine(e){return v(this,e)}isTorsionFree(){let{h:e,isTorsionFree:r}=t;if(e===l)return!0;if(r)return r(x,this);throw Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:e,clearCofactor:r}=t;return e===l?this:r?r(x,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return(0,o.abool)("isCompressed",e),this.assertValidity(),s(x,this,e)}toHex(e=!0){return(0,o.abool)("isCompressed",e),(0,o.bytesToHex)(this.toRawBytes(e))}}x.BASE=new x(t.Gx,t.Gy,r.ONE),x.ZERO=new x(r.ZERO,r.ONE,r.ZERO);let{endo:w,nBitLength:P}
7=t,I=(0,n.wNAF)(x,w?Math.ceil(P/2):P);return{CURVE:t,ProjectivePoint:x,normPrivateKeyToScalar:h,weierstrassEquation:d,isWithinCurveOrder:function(e){return(0,o.inRange)(e,l,t.n)}}}function m(e,t){let r=e.ORDER,n=c;for(let e=r-l;e%d===c;e/=d)n+=l;let a=n,o=d<<a-l-l,i=o*d,s=(r-l)/i,u=(s-l)/d,b=i-l,m=e.pow(t,s),y=e.pow(t,(s+l)/d),h=(t,r)=>{let n=m,i=e.pow(r,b),s=e.sqr(i);s=e.mul(s,r);let c=e.mul(t,s);c=e.pow(c,u),c=e.mul(c,i),i=e.mul(c,r),s=e.mul(c,t);let f=e.mul(s,i);c=e.pow(f,o);let p=e.eql(c,e.ONE);i=e.mul(s,y),c=e.mul(f,n),s=e.cmov(i,s,p),f=e.cmov(c,f,p);for(let t=a;t>l;t--){let r=t-d;r=d<<r-l;let a=e.pow(f,r),o=e.eql(a,e.ONE);i=e.mul(s,n),n=e.mul(n,n),a=e.mul(f,n),s=e.cmov(i,s,o),f=e.cmov(a,f,o)}return{isValid:p,value:s}};if(e.ORDER%p===f){let r=(e.ORDER-f)/p,n=e.sqrt(e.neg(t));h=(t,a)=>{let o=e.sqr(a),i=e.mul(t,a);o=e.mul(o,i);let s=e.pow(o,r);s=e.mul(s,i);let u=e.mul(s,n),c=e.mul(e.sqr(s),a),l=e.eql(c,t),d=e.cmov(u,s,l);return{isValid:l,value:d}}}return h}},37264:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toHex=function(e,t={}){return"number"==typeof e||"bigint"==typeof e?c(e,t):"string"==typeof e?d(e,t):"boolean"==typeof e?s(e,t):u(e,t)},t.boolToHex=s,t.bytesToHex=u,t.numberToHex=c,t.stringToHex=d;let n=r(36119),a=r(29822),o=r(85319),i=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function s(e,t={}){let r=`0x${Number(e)}`;return"number"==typeof t.size?((0,o.assertSize)(r,{size:t.size}),(0,a.pad)(r,{size:t.size})):r}function u(e,t={}){let r="";for(let t=0;t<e.length;t++)r+=i[e[t]];let n=`0x${r}`;return"number"==typeof t.size?((0,o.assertSize)(n,{size:t.size}),(0,a.pad)(n,{dir:"right",size:t.size})):n}function c(e,t={}){let r,{signed:o,size:i}=t,s=BigInt(e);i?r=o?(1n<<8n*BigInt(i)-1n)-1n:2n**(8n*BigInt(i))-1n:"number"==typeof e&&(r=BigInt(Number.MAX_SAFE_INTEGER));let u="bigint"==typeof r&&o?-r-1n:0;if(r&&s>r||s<u){let t="bigint"==typeof e?"n":"";throw new n.IntegerOutOfRangeError({max:r?`${r}${t}`:void 0,min:`${u}${t}`,signed:o,size:i,value:`${e}${t}`})}let l=`0x${(o&&s<0?(1n<<BigInt(8*i))+BigInt(s):s).toString(16)}`;return i?(0,a.pad)(l,{size:i}):l}let l=new TextEncoder;function d(e,t={}){return u(l.encode(e),t)}},37458:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.eip1559NetworkCache=t.defaultParameters=void 0,t.prepareTransactionRequest=h;let n=r(25055),a=r(48439),o=r(35127),i=r(73817),s=r(94527),u=r(62082),c=r(49817),l=r(6110),d=r(89052),f=r(88062),p=r(78234),b=r(98048),m=r(40513),y=r(84692);async function h(e,r){let h,g,{account:v=e.account,blobs:E,chain:x,gas:w,kzg:P,nonce:I,nonceManager:A,parameters:T=t.defaultParameters,type:O}=r,B=v?(0,n.parseAccount)(v):v,S={...r,...B?{from:B?.address}:{}};async function j(){return h||(h=await (0,p.getAction)(e,i.getBlock,"getBlock")({blockTag:"latest"}))}async function _(){return g||(x?x.id:void 0!==r.chainId?r.chainId:g=await (0,p.getAction)(e,y.getChainId,"getChainId")({}))}if(T.includes("nonce")&&void 0===I&&B)if(A){let t=await _();S.nonce=await A.consume({address:B.address,chainId:t,client:e})}else S.nonce=await (0,p.getAction)(e,s.getTransactionCount,"getTransactionCount")({address:B.address,blockTag:"pending"});if((T.includes("blobVersionedHashes")||T.includes("sidecars"))&&E&&P){let e=(0,c.blobsToCommitments)({blobs:E,kzg:P});if(T.includes("blobVersionedHashes")&&(S.blobVersionedHashes=(0,d.commitmentsToVersionedHashes)({commitments:e,to:"hex"})),T.includes("sidecars")){let t=(0,l.blobsToProofs)({blobs:E,commitments:e,kzg:P});S.sidecars=(0,f.toBlobSidecars)({blobs:E,commitments:e,proofs:t,to:"hex"})}}if(T.includes("chainId")&&(S.chainId=await _()),(T.includes("fees")||T.includes("type"))&&void 0===O)try{S.type=(0,m.getTransactionType)(S)}catch{let r=t.eip1559NetworkCache.get(e.uid);if(void 0===r){let n=await j();r="bigint"==typeof n?.baseFeePerGas,t.eip1559NetworkCache.set(e.uid,r)}S.type=r?"eip1559":"legacy"}if(T.includes("fees"))if("legacy"!==S.type&&"eip2930"!==S.type){if(void 0===S.maxFeePerGas||void 0===S.maxPriorityFeePerGas){let t=await j(),{maxFeePerGas:n,maxPriorityFeePerGas:o}=await (0,a.internal_estimateFeesPerGas)(e,{block:t,chain:x,request:S});if(void 0===r.maxPriorityFeePerGas&&r.maxFeePerGas&&r.maxFeePerGas<o)throw new u.MaxFeePerGasTooLowError({maxPriorityFeePerGas:o});S.maxPriorityFeePerGas=o,S.maxFeePerGas=n}}else{if(void 0!==r.maxFeePerGas||void 0!==r.maxPriorityFeePerGas)throw new u.Eip1559FeesNotSupportedError;if(void 0===r.gasPrice){let t=await j(),{gasPrice:r}=await (0,a.internal_estimateFeesPerGas)(e,{block:t,chain:x,request:S,type:"legacy"});S.gasPrice=r}}return T.includes("gas")&&void 0===w&&(S.gas=await (0,p.getAction)(e,o.estimateGas,"estimateGas")({...S,account:B?{address:B.address,type:"json-rpc"}:B})),(0,b.assertRequest)(S),delete S.parameters,S}t.defaultParameters=["blobVersionedHashes","chainId","fees","gas","nonce","type"],t.eip1559NetworkCache=new Map},37872:(e,t,r)=>
7{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidDecimalNumberError=void 0;let n=r(33911);class a extends n.BaseError{constructor({value:e}){super(`Number \`${e}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}t.InvalidDecimalNumberError=a},37913:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MAGIC_VALUE_BYTES=t.MAGIC_VALUE=void 0,t.MAGIC_VALUE="0x1626ba7e",t.MAGIC_VALUE_BYTES="0x20c13b0b"},38114:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.decodeParameter=c,t.decodeAddress=l,t.decodeArray=d,t.decodeBool=f,t.decodeBytes=p,t.decodeNumber=b,t.decodeTuple=m,t.decodeString=y,t.prepareParameters=function({checksumAddress:e,parameters:t,values:r}){let n=[];for(let a=0;a<t.length;a++)n.push(h({checksumAddress:e,parameter:t[a],value:r[a]}));return n},t.prepareParameter=h,t.encode=g,t.encodeAddress=v,t.encodeArray=E,t.encodeBytes=x,t.encodeBoolean=w,t.encodeNumber=P,t.encodeString=I,t.encodeTuple=A,t.getArrayComponents=T,t.hasDynamicChild=O;let n=r(40564),a=r(30990),o=r(33745),i=r(45189),s=r(58515),u=r(5279);function c(e,t,r){let{checksumAddress:a,staticPosition:o}=r,i=T(t.type);if(i){let[r,n]=i;return d(e,{...t,type:n},{checksumAddress:a,length:r,staticPosition:o})}if("tuple"===t.type)return m(e,t,{checksumAddress:a,staticPosition:o});if("address"===t.type)return l(e,{checksum:a});if("bool"===t.type)return f(e);if(t.type.startsWith("bytes"))return p(e,t,{staticPosition:o});if(t.type.startsWith("uint")||t.type.startsWith("int"))return b(e,t);if("string"===t.type)return y(e,{staticPosition:o});throw new n.InvalidTypeError(t.type)}function l(e,t={}){let r,{checksum:n=!1}=t,i=e.readBytes(32);return[(r=s.fromBytes(o.slice(i,-20)),n?a.checksum(r):r),32]}function d(e,t,r){let{checksumAddress:n,length:a,staticPosition:i}=r;if(!a){let r=i+o.toNumber(e.readBytes(32)),a=r+32;e.setPosition(r);let s=o.toNumber(e.readBytes(32)),u=O(t),l=0,d=[];for(let r=0;r<s;++r){e.setPosition(a+(u?32*r:l));let[o,i]=c(e,t,{checksumAddress:n,staticPosition:a});l+=i,d.push(o)}return e.setPosition(i+32),[d,32]}if(O(t)){let r=i+o.toNumber(e.readBytes(32)),s=[];for(let o=0;o<a;++o){e.setPosition(r+32*o);let[a]=c(e,t,{checksumAddress:n,staticPosition:r});s.push(a)}return e.setPosition(i+32),[s,32]}let s=0,u=[];for(let r=0;r<a;++r){let[r,a]=c(e,t,{checksumAddress:n,staticPosition:i+s});s+=a,u.push(r)}return[u,s]}function f(e){return[o.toBoolean(e.readBytes(32),{size:32}),32]}function p(e,t,{staticPosition:r}){let[n,a]=t.type.split("bytes");if(!a){let t=o.toNumber(e.readBytes(32));e.setPosition(r+t);let n=o.toNumber(e.readBytes(32));if(0===n)return e.setPosition(r+32),["0x",32];let a=e.readBytes(n);return e.setPosition(r+32),[s.fromBytes(a),32]}return[s.fromBytes(e.readBytes(Number.parseInt(a,10),32)),32]}function b(e,t){let r=t.type.startsWith("int"),n=Number.parseInt(t.type.split("int")[1]||"256",10),a=e.readBytes(32);return[n>48?o.toBigInt(a,{signed:r}):o.toNumber(a,{signed:r}),32]}function m(e,t,r){let{checksumAddress:n,staticPosition:a}=r,i=0===t.components.length||t.components.some(({name:e})=>!e),s=i?[]:{},u=0;if(O(t)){let r=a+o.toNumber(e.readBytes(32));for(let a=0;a<t.components.length;++a){let o=t.components[a];e.setPosition(r+u);let[l,d]=c(e,o,{checksumAddress:n,staticPosition:r});u+=d,s[i?a:o?.name]=l}return e.setPosition(a+32),[s,32]}for(let r=0;r<t.components.length;++r){let o=t.components[r],[l,d]=c(e,o,{checksumAddress:n,staticPosition:a});s[i?r:o?.name]=l,u+=d}return[s,u]}function y(e,{staticPosition:t}){let r=o.toNumber(e.readBytes(32));e.setPosition(t+r);let n=o.toNumber(e.readBytes(32));if(0===n)return e.setPosition(t+32),["",32];let a=e.readBytes(n,32),i=o.toString(o.trimLeft(a));return e.setPosition(t+32),[i,32]}function h({checksumAddress:e=!1,parameter:t,value:r}){let a=T(t.type);if(a){let[n,o]=a;return E(r,{checksumAddress:e,length:n,parameter:{...t,type:o}})}if("tuple"===t.type)return A(r,{checksumAddress:e,parameter:t});if("address"===t.type)return v(r,{checksum:e});if("bool"===t.type)return w(r);if(t.type.startsWith("uint")||t.type.startsWith("int")){let e=t.type.startsWith("int"),[,,n="256"]=u.integerRegex.exec(t.type)??[];return P(r,{signed:e,size:Number(n)})}if(t.type.startsWith("bytes"))return x(r,{type:t.type});if("string"===t.type)return I(r);throw new n.InvalidTypeError(t.type)}function g(e){let t=0;for(let r=0;r<e.length;r++){let{dynamic:n,encoded:a}=e[r];n?t+=32:t+=s.size(a)}let r=[],n=[],a=0;for(let o=0;o<e.length;o++){let{dynamic:i,encoded:u}=e[o];i?(r.push(s.fromNumber(t+a,{size:32})),n.push(u),a+=s.size(u)):r.push(u)}return s.concat(...r,...n)}function v(e,t){let{checksum:r=!1}=t;return a.assert(e,{strict:r}),{dynamic:!1,encoded:s.padLeft(e.toLowerCase())}}function E(e,t){let{checksumAddress:r,length:a,parameter:o}=t,i=null===a;if(!Array.isArray(e))throw new n.InvalidArrayError(e);
7if(!i&&e.length!==a)throw new n.ArrayLengthMismatchError({expectedLength:a,givenLength:e.length,type:`${o.type}[${a}]`});let u=!1,c=[];for(let t=0;t<e.length;t++){let n=h({checksumAddress:r,parameter:o,value:e[t]});n.dynamic&&(u=!0),c.push(n)}if(i||u){let e=g(c);if(i){let t=s.fromNumber(c.length,{size:32});return{dynamic:!0,encoded:c.length>0?s.concat(t,e):t}}if(u)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:s.concat(...c.map(({encoded:e})=>e))}}function x(e,{type:t}){let[,r]=t.split("bytes"),a=s.size(e);if(!r){let t=e;return a%32!=0&&(t=s.padRight(t,32*Math.ceil((e.length-2)/2/32))),{dynamic:!0,encoded:s.concat(s.padLeft(s.fromNumber(a,{size:32})),t)}}if(a!==Number.parseInt(r,10))throw new n.BytesSizeMismatchError({expectedSize:Number.parseInt(r,10),value:e});return{dynamic:!1,encoded:s.padRight(e)}}function w(e){if("boolean"!=typeof e)throw new i.BaseError(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:s.padLeft(s.fromBoolean(e))}}function P(e,{signed:t,size:r}){if("number"==typeof r){let n=2n**(BigInt(r)-(t?1n:0n))-1n,a=t?-n-1n:0n;if(e>n||e<a)throw new s.IntegerOutOfRangeError({max:n.toString(),min:a.toString(),signed:t,size:r/8,value:e.toString()})}return{dynamic:!1,encoded:s.fromNumber(e,{size:32,signed:t})}}function I(e){let t=s.fromString(e),r=Math.ceil(s.size(t)/32),n=[];for(let e=0;e<r;e++)n.push(s.padRight(s.slice(t,32*e,(e+1)*32)));return{dynamic:!0,encoded:s.concat(s.padRight(s.fromNumber(s.size(t),{size:32})),...n)}}function A(e,t){let{checksumAddress:r,parameter:n}=t,a=!1,o=[];for(let t=0;t<n.components.length;t++){let i=n.components[t],s=Array.isArray(e)?t:i.name,u=h({checksumAddress:r,parameter:i,value:e[s]});o.push(u),u.dynamic&&(a=!0)}return{dynamic:a,encoded:a?g(o):s.concat(...o.map(({encoded:e})=>e))}}function T(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function O(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(O);let r=T(e.type);return!!(r&&O({...e,type:r[1]}))}},38493:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isHash=function(e){return(0,n.isHex)(e)&&32===(0,a.size)(e)};let n=r(10858),a=r(27420)},38892:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Eth=void 0;let n=r(56361),a=r(79629),o=(e="latest")=>e,i=(e=!1)=>e,s=e=>Number.isInteger(e)?`0x${e.toString(16)}`:e;class u{constructor(e){this.communicator=e,this.call=this.buildRequest({call:n.RPC_CALLS.eth_call,formatters:[null,o]}),this.getBalance=this.buildRequest({call:n.RPC_CALLS.eth_getBalance,formatters:[null,o]}),this.getCode=this.buildRequest({call:n.RPC_CALLS.eth_getCode,formatters:[null,o]}),this.getStorageAt=this.buildRequest({call:n.RPC_CALLS.eth_getStorageAt,formatters:[null,s,o]}),this.getPastLogs=this.buildRequest({call:n.RPC_CALLS.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:n.RPC_CALLS.eth_getBlockByHash,formatters:[null,i]}),this.getBlockByNumber=this.buildRequest({call:n.RPC_CALLS.eth_getBlockByNumber,formatters:[s,i]}),this.getTransactionByHash=this.buildRequest({call:n.RPC_CALLS.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:n.RPC_CALLS.eth_getTransactionReceipt}),this.getTransactionCount=this.buildRequest({call:n.RPC_CALLS.eth_getTransactionCount,formatters:[null,o]}),this.getGasPrice=this.buildRequest({call:n.RPC_CALLS.eth_gasPrice}),this.getEstimateGas=e=>this.buildRequest({call:n.RPC_CALLS.eth_estimateGas})([e]),this.setSafeSettings=this.buildRequest({call:n.RPC_CALLS.safe_setSettings})}buildRequest(e){let{call:t,formatters:r}=e;return async e=>(r&&Array.isArray(e)&&r.forEach((t,r)=>{t&&(e[r]=t(e[r]))}),(await this.communicator.send(a.Methods.rpcCall,{call:t,params:e||[]})).data)}}t.Eth=u},39111:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.expand_message_xmd=u,t.expand_message_xof=c,t.hash_to_field=l,t.isogenyMap=function(e,t){let r=t.map(e=>Array.from(e).reverse());return(t,a)=>{let[o,i,s,u]=r.map(r=>r.reduce((r,n)=>e.add(e.mul(r,t),n))),[c,l]=(0,n.FpInvertBatch)(e,[i,u],!0);return t=e.mul(o,c),a=e.mul(a,e.mul(s,l)),{x:t,y:a}}},t.createHasher=function(e,t,r){if("function"!=typeof t)throw Error("mapToCurve() must be defined");function n(r){return e.fromAffine(t(r))}function a(t){let r=t.clearCofactor();return r.equals(e.ZERO)?e.ZERO:(r.assertValidity(),r)}return{defaults:r,hashToCurve(e,t){let o=l(e,2,{...r,DST:r.DST,...t}),i=n(o[0]),s=n(o[1]);return a(i.add(s))},encodeToCurve:(e,t)=>
7a(n(l(e,1,{...r,DST:r.encodeDST,...t})[0])),mapToCurve(e){if(!Array.isArray(e))throw Error("expected array of bigints");for(let t of e)if("bigint"!=typeof t)throw Error("expected array of bigints");return a(n(e))}}};let n=r(54241),a=r(81906),o=a.bytesToNumberBE;function i(e,t){if(s(e),s(t),e<0||e>=1<<8*t)throw Error("invalid I2OSP input: "+e);let r=Array.from({length:t}).fill(0);for(let n=t-1;n>=0;n--)r[n]=255&e,e>>>=8;return new Uint8Array(r)}function s(e){if(!Number.isSafeInteger(e))throw Error("number expected")}function u(e,t,r,n){(0,a.abytes)(e),(0,a.abytes)(t),s(r),t.length>255&&(t=n((0,a.concatBytes)((0,a.utf8ToBytes)("H2C-OVERSIZE-DST-"),t)));let{outputLen:o,blockLen:u}=n,c=Math.ceil(r/o);if(r>65535||c>255)throw Error("expand_message_xmd: invalid lenInBytes");let l=(0,a.concatBytes)(t,i(t.length,1)),d=i(0,u),f=i(r,2),p=Array(c),b=n((0,a.concatBytes)(d,e,f,i(0,1),l));p[0]=n((0,a.concatBytes)(b,i(1,1),l));for(let e=1;e<=c;e++){let t=[function(e,t){let r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=e[n]^t[n];return r}(b,p[e-1]),i(e+1,1),l];p[e]=n((0,a.concatBytes)(...t))}return(0,a.concatBytes)(...p).slice(0,r)}function c(e,t,r,n,o){if((0,a.abytes)(e),(0,a.abytes)(t),s(r),t.length>255){let e=Math.ceil(2*n/8);t=o.create({dkLen:e}).update((0,a.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(t).digest()}if(r>65535||t.length>255)throw Error("expand_message_xof: invalid lenInBytes");return o.create({dkLen:r}).update(e).update(i(r,2)).update(t).update(i(t.length,1)).digest()}function l(e,t,r){let i;(0,a.validateObject)(r,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});let{p:l,k:d,m:f,hash:p,expand:b,DST:m}=r;(0,a.abytes)(e),s(t);let y="string"==typeof m?(0,a.utf8ToBytes)(m):m,h=Math.ceil((l.toString(2).length+d)/8),g=t*f*h;if("xmd"===b)i=u(e,y,g,p);else if("xof"===b)i=c(e,y,g,d,p);else if("_internal_pass"===b)i=e;else throw Error('expand must be "xmd" or "xof"');let v=Array(t);for(let e=0;e<t;e++){let t=Array(f);for(let r=0;r<f;r++){let a=h*(r+e*f),s=i.subarray(a,a+h);t[r]=(0,n.mod)(o(s),l)}v[e]=t}return v}},39142:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.presignMessagePrefix=void 0,t.presignMessagePrefix="\x19Ethereum Signed Message:\n"},39375:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidWrappedSignatureError=t.suffixParameters=t.magicBytes=void 0,t.assert=c,t.from=function(e){return"string"==typeof e?l(e):e},t.unwrap=l,t.wrap=function(e){let{data:r,signature:o}=e;c(e);let l=s.recoverAddress({payload:a.getSignPayload(e.authorization),signature:u.from(e.authorization)}),d=n.encode(t.suffixParameters,[{...e.authorization,delegation:e.authorization.address,chainId:BigInt(e.authorization.chainId)},e.to??l,r??"0x"]),f=i.fromNumber(i.size(d),{size:32});return i.concat(o,d,f,t.magicBytes)},t.validate=function(e){try{return c(e),!0}catch{return!1}};let n=r(40564),a=r(66687),o=r(45189),i=r(58515),s=r(22926),u=r(70160);function c(e){if("string"==typeof e){if(i.slice(e,-32)!==t.magicBytes)throw new d(e)}else u.assert(e.authorization)}function l(e){c(e);let r=i.toNumber(i.slice(e,-64,-32)),o=i.slice(e,-r-64,-64),s=i.slice(e,0,-r-64),[u,l,d]=n.decode(t.suffixParameters,o);return{authorization:a.from({address:u.delegation,chainId:Number(u.chainId),nonce:u.nonce,yParity:u.yParity,r:u.r,s:u.s}),signature:s,...d&&"0x"!==d?{data:d,to:l}:{}}}t.magicBytes="0x8010801080108010801080108010801080108010801080108010801080108010",t.suffixParameters=n.from("(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data");class d extends o.BaseError{constructor(e){super(`Value \`${e}\` is an invalid ERC-8010 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc8010.InvalidWrappedSignatureError"})}}t.InvalidWrappedSignatureError=d},39712:(e,t)=>
7{Object.defineProperty(t,"__esModule",{value:!0}),t.ProviderRpcError=void 0;class r extends Error{constructor(e,t){super(t),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=e,this.details=t}}t.ProviderRpcError=r},39818:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.signAuthorization=i;let n=r(25055),a=r(43473),o=r(7052);async function i(e,t){let{account:r=e.account}=t;if(!r)throw new a.AccountNotFoundError({docsPath:"/docs/eip7702/signAuthorization"});let i=(0,n.parseAccount)(r);if(!i.signAuthorization)throw new a.AccountTypeNotSupportedError({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:i.type});let s=await (0,o.prepareAuthorization)(e,t);return i.signAuthorization(s)}},39988:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.fromRlp=function(e,t="hex"){let r=(()=>{if("string"==typeof e){if(e.length>3&&e.length%2!=0)throw new a.InvalidHexValueError(e);return(0,i.hexToBytes)(e)}return e})();return function e(t,r="hex"){if(0===t.bytes.length)return"hex"===r?(0,s.bytesToHex)(t.bytes):t.bytes;let n=t.readByte();if(n<128&&t.decrementPosition(1),n<192){let e=u(t,n,128),a=t.readBytes(e);return"hex"===r?(0,s.bytesToHex)(a):a}let a=u(t,n,192);var o=t,i=a,c=r;let l=o.position,d=[];for(;o.position-l<i;)d.push(e(o,c));return d}((0,o.createCursor)(r,{recursiveReadLimit:1/0}),t)};let n=r(33911),a=r(36119),o=r(21574),i=r(96978),s=r(37264);function u(e,t,r){if(128===r&&t<128)return 1;if(t<=r+55)return t-r;if(t===r+55+1)return e.readUint8();if(t===r+55+2)return e.readUint16();if(t===r+55+3)return e.readUint24();if(t===r+55+4)return e.readUint32();throw new n.BaseError("Invalid RLP prefix")}},40092:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FilterTypeNotSupportedError=void 0;let n=r(33911);class a extends n.BaseError{constructor(e){super(`Filter type "${e}" is not supported.`,{name:"FilterTypeNotSupportedError"})}}t.FilterTypeNotSupportedError=a},40292:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.decodeErrorResult=function(e){let{abi:t,data:r}=e,c=(0,o.slice)(r,0,4);if("0x"===c)throw new a.AbiDecodingZeroDataError;let l=[...t||[],n.solidityError,n.solidityPanic].find(e=>"error"===e.type&&c===(0,i.toFunctionSelector)((0,u.formatAbiItem)(e)));if(!l)throw new a.AbiErrorSignatureNotFoundError(c,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:l,args:"inputs"in l&&l.inputs&&l.inputs.length>0?(0,s.decodeAbiParameters)(l.inputs,(0,o.slice)(r,4)):void 0,errorName:l.name}};let n=r(15233),a=r(95664),o=r(25109),i=r(96573),s=r(47065),u=r(8117)},40513:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionType=function(e){if(e.type)return e.type;if(void 0!==e.authorizationList)return"eip7702";if(void 0!==e.blobs||void 0!==e.blobVersionedHashes||void 0!==e.maxFeePerBlobGas||void 0!==e.sidecars)return"eip4844";if(void 0!==e.maxFeePerGas||void 0!==e.maxPriorityFeePerGas)return"eip1559";if(void 0!==e.gasPrice)return void 0!==e.accessList?"eip2930":"legacy";throw new n.InvalidSerializableTransactionError({transaction:e})};let n=r(2922)},40564:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidTypeError=t.InvalidArrayError=t.LengthMismatchError=t.BytesSizeMismatchError=t.ArrayLengthMismatchError=t.ZeroDataError=t.DataSizeTooSmallError=void 0,t.decode=function(e,t,r={}){let{as:n="Array",checksumAddress:a=!1}=r,i="string"==typeof t?o.fromHex(t):t,l=c.create(i);if(0===o.size(i)&&e.length>0)throw new p;if(o.size(i)&&32>o.size(i))throw new f({data:"string"==typeof t?t:s.fromBytes(t),parameters:e,size:o.size(i)});let d=0,b="Array"===n?[]:{};for(let t=0;t<e.length;++t){let r=e[t];l.setPosition(d);let[o,i]=u.decodeParameter(l,r,{checksumAddress:a,staticPosition:0});d+=i,"Array"===n?b.push(o):b[r.name??t]=o}return b},t.encode=function(e,t,r){let{checksumAddress:n=!1}=r??{};if(e.length!==t.length)throw new y({expectedLength:e.length,givenLength:t.length});let a=u.prepareParameters({checksumAddress:n,parameters:e,values:t}),o=u.encode(a);return 0===o.length?"0x":o},t.encodePacked=d,t.format=function(e){return n.formatAbiParameters(e)},t.from=function(e){return Array.isArray(e)&&"string"==typeof e[0]||"string"==typeof e?n.parseAbiParameters(e):e};let n=r(54145),a=r(30990),o=r(33745),i=r(45189),s=r(58515),u=r(38114),c=r(43702),l=r(5279);function d(e,t){if(e.length!==t.length)throw new y({expectedLength:e.length,givenLength:t.length});let r=[];for(let n=0;n<e.length;n++){let a=e[n],o=t[n];
7r.push(d.encode(a,o))}return s.concat(...r)}(d||(t.encodePacked=d={})).encode=function e(t,r,n=!1){if("address"===t)return a.assert(r),s.padLeft(r.toLowerCase(),32*!!n);if("string"===t)return s.fromString(r);if("bytes"===t)return r;if("bool"===t)return s.padLeft(s.fromBoolean(r),n?32:1);let o=t.match(l.integerRegex);if(o){let[e,t,a="256"]=o,i=Number.parseInt(a,10)/8;return s.fromNumber(r,{size:n?32:i,signed:"int"===t})}let i=t.match(l.bytesRegex);if(i){let[e,t]=i;if(Number.parseInt(t,10)!==(r.length-2)/2)throw new m({expectedSize:Number.parseInt(t,10),value:r});return s.padRight(r,32*!!n)}let u=t.match(l.arrayRegex);if(u&&Array.isArray(r)){let[t,n]=u,a=[];for(let t=0;t<r.length;t++)a.push(e(n,r[t],!0));return 0===a.length?"0x":s.concat(...a)}throw new g(t)};class f extends i.BaseError{constructor({data:e,parameters:t,size:r}){super(`Data size of ${r} bytes is too small for given parameters.`,{metaMessages:[`Params: (${n.formatAbiParameters(t)})`,`Data: ${e} (${r} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.DataSizeTooSmallError"})}}t.DataSizeTooSmallError=f;class p extends i.BaseError{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ZeroDataError"})}}t.ZeroDataError=p;class b extends i.BaseError{constructor({expectedLength:e,givenLength:t,type:r}){super(`Array length mismatch for type \`${r}\`. Expected: \`${e}\`. Given: \`${t}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ArrayLengthMismatchError"})}}t.ArrayLengthMismatchError=b;class m extends i.BaseError{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${s.size(t)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}}t.BytesSizeMismatchError=m;class y extends i.BaseError{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding parameters/values length mismatch. 8Expected length (parameters): ${e} 9Given length (values): ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}}t.LengthMismatchError=y;class h extends i.BaseError{constructor(e){super(`Value \`${e}\` is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidArrayError"})}}t.InvalidArrayError=h;class g extends i.BaseError{constructor(e){super(`Type \`${e}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}}t.InvalidTypeError=g},40668:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.fromRpc=function(e){return{...e.baseFeePerGas&&{baseFeePerGas:BigInt(e.baseFeePerGas)},...e.blobBaseFee&&{blobBaseFee:BigInt(e.blobBaseFee)},...e.feeRecipient&&{feeRecipient:e.feeRecipient},...e.gasLimit&&{gasLimit:BigInt(e.gasLimit)},...e.number&&{number:BigInt(e.number)},...e.prevRandao&&{prevRandao:BigInt(e.prevRandao)},...e.time&&{time:BigInt(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(a.fromRpc)}}},t.toRpc=function(e){return{..."bigint"==typeof e.baseFeePerGas&&{baseFeePerGas:n.fromNumber(e.baseFeePerGas)},..."bigint"==typeof e.blobBaseFee&&{blobBaseFee:n.fromNumber(e.blobBaseFee)},..."string"==typeof e.feeRecipient&&{feeRecipient:e.feeRecipient},..."bigint"==typeof e.gasLimit&&{gasLimit:n.fromNumber(e.gasLimit)},..."bigint"==typeof e.number&&{number:n.fromNumber(e.number)},..."bigint"==typeof e.prevRandao&&{prevRandao:n.fromNumber(e.prevRandao)},..."bigint"==typeof e.time&&{time:n.fromNumber(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(a.toRpc)}}};let n=r(58515),a=r(51133)},40753:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.extraEntropy=void 0,t.setExtraEntropy=function(e){t.extraEntropy=e},t.extraEntropy=!1},40869:(e,t)=>
9{Object.defineProperty(t,"__esModule",{value:!0}),t.withTimeout=function(e,{errorInstance:t=Error("timed out"),timeout:r,signal:n}){return new Promise((a,o)=>{(async()=>{let i;try{let s=new AbortController;r>0&&(i=setTimeout(()=>{n?s.abort():o(t)},r)),a(await e({signal:s?.signal||null}))}catch(e){e?.name==="AbortError"&&o(t),o(e)}finally{clearTimeout(i)}})()})}},41309:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getEnsAddress=m;let n=r(5223),a=r(84212),o=r(63997),i=r(89007),s=r(24141),u=r(37264),c=r(73062),l=r(44247),d=r(80278),f=r(72831),p=r(78234),b=r(36110);async function m(e,t){let{blockNumber:r,blockTag:m,coinType:y,name:h,gatewayUrls:g,strict:v}=t,{chain:E}=e,x=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!E)throw Error("client chain not configured. universalResolverAddress is required.");return(0,i.getChainContractAddress)({blockNumber:r,chain:E,contract:"ensUniversalResolver"})})(),w=E?.ensTlds;if(w&&!w.some(e=>h.endsWith(e)))return null;let P=null!=y?[(0,d.namehash)(h),BigInt(y)]:[(0,d.namehash)(h)];try{let t=(0,o.encodeFunctionData)({abi:n.addressResolverAbi,functionName:"addr",args:P}),i={address:x,abi:n.universalResolverResolveAbi,functionName:"resolveWithGateways",args:[(0,u.toHex)((0,f.packetToBytes)(h)),t,g??[l.localBatchGatewayUrl]],blockNumber:r,blockTag:m},c=(0,p.getAction)(e,b.readContract,"readContract"),d=await c(i);if("0x"===d[0])return null;let y=(0,a.decodeFunctionResult)({abi:n.addressResolverAbi,args:P,functionName:"addr",data:d[0]});if("0x"===y||"0x00"===(0,s.trim)(y))return null;return y}catch(e){if(v)throw e;if((0,c.isNullUniversalResolverError)(e))return null;throw e}}},41377:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseStructs=function(e){let t={},r=e.length;for(let n=0;n<r;n++){let r=e[n];if(!(0,u.isStructSignature)(r))continue;let a=(0,u.execStructSignature)(r);if(!a)throw new i.InvalidSignatureError({signature:r,type:"struct"});let o=a.properties.split(";"),s=[],l=o.length;for(let e=0;e<l;e++){let t=o[e].trim();if(!t)continue;let r=(0,c.parseAbiParameter)(t,{type:"struct"});s.push(r)}if(!s.length)throw new i.InvalidStructSignatureError({signature:r});t[a.name]=s}let d={},f=Object.entries(t),p=f.length;for(let e=0;e<p;e++){let[r,i]=f[e];d[r]=function e(t,r,i=new Set){let u=[],d=t.length;for(let f=0;f<d;f++){let d=t[f];if(n.isTupleRegex.test(d.type))u.push(d);else{let t=(0,n.execTyped)(l,d.type);if(!t?.type)throw new o.InvalidAbiTypeParameterError({abiParameter:d});let{array:f,type:p}=t;if(p in r){if(i.has(p))throw new s.CircularReferenceError({type:p});u.push({...d,type:`tuple${f??""}`,components:e(r[p]??[],r,new Set([...i,p]))})}else if((0,c.isSolidityType)(p))u.push(d);else throw new a.UnknownTypeError({type:p})}}return u}(i,t)}return d};let n=r(58446),a=r(53693),o=r(56125),i=r(41494),s=r(33437),u=r(20666),c=r(68442),l=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/},41494:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidStructSignatureError=t.UnknownSignatureError=t.InvalidSignatureError=void 0;let n=r(41588);class a extends n.BaseError{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}t.InvalidSignatureError=a;class o extends n.BaseError{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}t.UnknownSignatureError=o;class i extends n.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"})}}t.InvalidStructSignatureError=i},41588:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseError=void 0;let n=r(42389);class a extends Error{constructor(e,t={}){const r=t.cause instanceof a?t.cause.details:t.cause?.message?t.cause.message:t.details,o=t.cause instanceof a&&t.cause.docsPath||t.docsPath;super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...o?[`Docs: https://abitype.dev${o}`]:[],...r?[`Details: ${r}`]:[],`Version: abitype@${n.version}`].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"}),t.cause&&(this.cause=t.cause),this.details=r,this.docsPath=o,this.metaMessages=t.metaMessages,this.shortMessage=e}}t.BaseError=a},41590:(e,t,r)=>
9{Object.defineProperty(t,"__esModule",{value:!0}),t.encodedLabelToLabelhash=function(e){if(66!==e.length||0!==e.indexOf("[")||65!==e.indexOf("]"))return null;let t=`0x${e.slice(1,65)}`;return(0,n.isHex)(t)?t:null};let n=r(10858)},41756:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.encodeFunctionResult=function(e){let{abi:t,functionName:r,result:s}=e,u=t[0];if(r){let e=(0,o.getAbiItem)({abi:t,name:r});if(!e)throw new n.AbiFunctionNotFoundError(r,{docsPath:i});u=e}if("function"!==u.type)throw new n.AbiFunctionNotFoundError(void 0,{docsPath:i});if(!u.outputs)throw new n.AbiFunctionOutputsNotFoundError(u.name,{docsPath:i});let c=(()=>{if(0===u.outputs.length)return[];if(1===u.outputs.length)return[s];if(Array.isArray(s))return s;throw new n.InvalidArrayError(s)})();return(0,a.encodeAbiParameters)(u.outputs,c)};let n=r(95664),a=r(70209),o=r(1682),i="/docs/contract/encodeFunctionResult"},41783:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseCompactSignature=function(e){let{r:t,s:r}=n.secp256k1.Signature.fromCompact(e.slice(2,130));return{r:(0,a.numberToHex)(t,{size:32}),yParityAndS:(0,a.numberToHex)(r,{size:32})}};let n=r(26414),a=r(37264)},41848:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getAddresses=a;let n=r(43333);async function a(e){return e.account?.type==="local"?[e.account.address]:(await e.request({method:"eth_accounts"},{dedupe:!0})).map(e=>(0,n.checksumAddress)(e))}},42177:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.commitmentToVersionedHash=function(e){let{commitment:t,version:r=1}=e,o=e.to??("string"==typeof t?"hex":"bytes"),i=(0,a.sha256)(t,"bytes");return i.set([r],0),"bytes"===o?i:(0,n.bytesToHex)(i)};let n=r(37264),a=r(43890)},42245:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sendTransactionSync=v;let n=r(25055),a=r(43473),o=r(33911),i=r(3053),s=r(64702),u=r(63894),c=r(84129),l=r(75621),d=r(78234),f=r(26165),p=r(98048),b=r(84692),m=r(27924),y=r(37458),h=r(64939),g=new f.LruMap(128);async function v(e,t){let{account:r=e.account,chain:f=e.chain,accessList:v,authorizationList:E,blobs:x,data:w,gas:P,gasPrice:I,maxFeePerBlobGas:A,maxFeePerGas:T,maxPriorityFeePerGas:O,nonce:B,pollingInterval:S,type:j,value:_,...M}=t,C=t.timeout??Math.max((f?.blockTime??0)*3,5e3);if(void 0===r)throw new a.AccountNotFoundError({docsPath:"/docs/actions/wallet/sendTransactionSync"});let R=r?(0,n.parseAccount)(r):null;try{(0,p.assertRequest)(t);let r=await (async()=>t.to?t.to:null!==t.to&&E&&E.length>0?await (0,i.recoverAuthorizationAddress)({authorization:E[0]}).catch(()=>{throw new o.BaseError("`to` is required. Could not infer from `authorizationList`.")}):void 0)();if(R?.type==="json-rpc"||null===R){let t;null!==f&&(t=await (0,d.getAction)(e,b.getChainId,"getChainId")({}),(0,s.assertCurrentChain)({currentChainId:t,chain:f}));let n=e.chain?.formatters?.transactionRequest?.format,a=(n||l.formatTransactionRequest)({...(0,c.extract)(M,{format:n}),accessList:v,authorizationList:E,blobs:x,chainId:t,data:w,from:R?.address,gas:P,gasPrice:I,maxFeePerBlobGas:A,maxFeePerGas:T,maxPriorityFeePerGas:O,nonce:B,to:r,type:j,value:_},"sendTransaction"),o=g.get(e.uid),i=o?"wallet_sendTransaction":"eth_sendTransaction",u=await (async()=>{try{return await e.request({method:i,params:[a]},{retryCount:0})}catch(t){if(!1===o)throw t;if("InvalidInputRpcError"===t.name||"InvalidParamsRpcError"===t.name||"MethodNotFoundRpcError"===t.name||"MethodNotSupportedRpcError"===t.name)return await e.request({method:"wallet_sendTransaction",params:[a]},{retryCount:0}).then(t=>(g.set(e.uid,!0),t)).catch(r=>{if("MethodNotFoundRpcError"===r.name||"MethodNotSupportedRpcError"===r.name)throw g.set(e.uid,!1),t;throw r});throw t}})();return(0,d.getAction)(e,m.waitForTransactionReceipt,"waitForTransactionReceipt")({checkReplacement:!1,hash:u,pollingInterval:S,timeout:C})}if(R?.type==="local"){let t=await (0,d.getAction)(e,y.prepareTransactionRequest,"prepareTransactionRequest")({account:R,accessList:v,authorizationList:E,blobs:x,chain:f,data:w,gas:P,gasPrice:I,maxFeePerBlobGas:A,maxFeePerGas:T,maxPriorityFeePerGas:O,nonce:B,nonceManager:R.nonceManager,parameters:[...y.defaultParameters,"sidecars"],type:j,value:_,...M,to:r}),n=f?.serializers?.transaction,a=await R.signTransaction(t,{serializer:n});return await (0,d.getAction)(e,h.sendRawTransactionSync,"sendRawTransactionSync")({serializedTransaction:a})}if(R?.type==="smart")throw new a.AccountTypeNotSupportedError({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"});throw new a.AccountTypeNotSupportedError({docsPath:"/docs/actions/wallet/sendTransactionSync",type:R?.type})}catch(e){if(e instanceof a.AccountTypeNotSupportedError)throw e;throw(0,u.getTransactionError)(e,{...t,account:R,chain:t.chain||void 0})}}},42332:(e,t,r)=>
9{Object.defineProperty(t,"__esModule",{value:!0}),t.RecursiveReadLimitExceededError=t.PositionOutOfBoundsError=t.NegativeOffsetError=void 0;let n=r(33911);class a extends n.BaseError{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}t.NegativeOffsetError=a;class o extends n.BaseError{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}t.PositionOutOfBoundsError=o;class i extends n.BaseError{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}t.RecursiveReadLimitExceededError=i},42389:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="1.1.0"},42415:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidWrappedSignatureError=t.universalSignatureValidatorAbi=t.universalSignatureValidatorBytecode=t.magicBytes=void 0,t.assert=i,t.from=function(e){return"string"==typeof e?s(e):e},t.unwrap=s,t.wrap=function(e){let{data:r,signature:a,to:i}=e;return o.concat(n.encode(n.from("address, bytes, bytes"),[i,r,a]),t.magicBytes)},t.validate=function(e){try{return i(e),!0}catch{return!1}};let n=r(40564),a=r(45189),o=r(58515);function i(e){if(o.slice(e,-32)!==t.magicBytes)throw new u(e)}function s(e){i(e);let[t,r,a]=n.decode(n.from("address, bytes, bytes"),e);return{data:r,signature:a,to:t}}t.magicBytes="0x6492649264926492649264926492649264926492649264926492649264926492",t.universalSignatureValidatorBytecode="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848
9603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572",t.universalSignatureValidatorAbi=[{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"}];class u extends a.BaseError{constructor(e){super(`Value \`${e}\` is an invalid ERC-6492 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc6492.InvalidWrappedSignatureError"})}}t.InvalidWrappedSignatureError=u},42846:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseAbiParameter=function(e){let t;if("string"==typeof e)t=(0,i.parseAbiParameter)(e,{modifiers:a.modifiers});else{let r=(0,o.parseStructs)(e),n=e.length;for(let o=0;o<n;o++){let n=e[o];if(!(0,a.isStructSignature)(n)){t=(0,i.parseAbiParameter)(n,{modifiers:a.modifiers,structs:r});break}}}if(!t)throw new n.InvalidAbiParameterError({param:e});return t};let n=r(56125),a=r(20666),o=r(41377),i=r(68442)},42961:(e,t)=>{async function r(e){await e.request({method:`${e.mode}_removeBlockTimestampInterval`})}Object.defineProperty(t,"__esModule",{value:!0}),t.removeBlockTimestampInterval=r},43299:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidSelectorSizeError=t.NotFoundError=t.AmbiguityError=void 0,t.format=function(e){return n.formatAbiItem(e)},t.from=function(e,t={}){let{prepare:r=!0}=t,a=Array.isArray(e)||"string"==typeof e?n.parseAbiItem(e):e;return{...a,...r?{hash:d(a)}:{}}},t.fromAbi=u,t.getSelector=c,t.getSignature=l,t.getSignatureHash=d;let n=r(54145),a=r(45189),o=r(87358),i=r(58515),s=r(9253);function u(e,t,r){let n,{args:a=[],prepare:o=!0}=r??{},u=i.validate(t,{strict:!1}),l=e.filter(e=>u?"function"===e.type||"error"===e.type?c(e)===i.slice(t,0,4):"event"===e.type&&d(e)===t:"name"in e&&e.name===t);if(0===l.length)throw new p({name:t});if(1===l.length)return{...l[0],...o?{hash:d(l[0])}:{}};for(let e of l){if("inputs"in e){if(!a||0===a.length){if(!e.inputs||0===e.inputs.length)return{...e,...o?{hash:d(e)}:{}};continue}if(e.inputs&&0!==e.inputs.length&&e.inputs.length===a.length&&a.every((t,r)=>{let n="inputs"in e&&e.inputs[r];return!!n&&s.isArgOfType(t,n)})){if(n&&"inputs"in n&&n.inputs){let t=s.getAmbiguousTypes(e.inputs,n.inputs,a);if(t)throw new f({abiItem:e,type:t[0]},{abiItem:n,type:t[1]})}n=e}}}let b=(()=>{if(n)return n;let[e,...t]=l;return{...e,overloads:t}})();if(!b)throw new p({name:t});return{...b,...o?{hash:d(b)}:{}}}function c(...e){let t=(()=>{if(Array.isArray(e[0])){let[t,r]=e;return u(t,r)}return e[0]})();return i.slice(d(t),0,4)}function l(...e){let t=(()=>{if(Array.isArray(e[0])){let[t,r]=e;return u(t,r)}return e[0]})(),r="string"==typeof t?t:n.formatAbiItem(t);return s.normalizeSignature(r)}function d(...e){let t=(()=>{if(Array.isArray(e[0])){let[t,r]=e;return u(t,r)}return e[0]})();return"string"!=typeof t&&"hash"in t&&t.hash?t.hash:o.keccak256(i.fromString(l(t)))}class f extends a.BaseError{constructor(e,t){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:[`\`${e.type}\` in \`${s.normalizeSignature(n.formatAbiItem(e.abiItem))}\`, and`,`\`${t.type}\` in \`${s.normalizeSignature(n.formatAbiItem(t.abiItem))}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.AmbiguityError"})}}t.AmbiguityError=f;class p extends a.BaseError{constructor({name:e,data:t,type:r="item"}){const n=e?` with name "${e}"`:t?` with data "${t}"`:"";super(`ABI ${r}${n} not found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.NotFoundError"})}}t.NotFoundError=p;class b extends a.BaseError{constructor({data:e}
9){super(`Selector size is invalid. Expected 4 bytes. Received ${i.size(e)} bytes ("${e}").`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.InvalidSelectorSizeError"})}}t.InvalidSelectorSizeError=b},43333:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.checksumAddress=c,t.getAddress=function(e,t){if(!(0,s.isAddress)(e,{strict:!1}))throw new n.InvalidAddressError({address:e});return c(e,t)};let n=r(47730),a=r(96978),o=r(60976),i=r(26165),s=r(1199),u=new i.LruMap(8192);function c(e,t){if(u.has(`${e}.${t}`))return u.get(`${e}.${t}`);let r=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),n=(0,o.keccak256)((0,a.stringToBytes)(r),"bytes"),i=(t?r.substring(`${t}0x`.length):r).split("");for(let e=0;e<40;e+=2)n[e>>1]>>4>=8&&i[e]&&(i[e]=i[e].toUpperCase()),(15&n[e>>1])>=8&&i[e+1]&&(i[e+1]=i[e+1].toUpperCase());let s=`0x${i.join("")}`;return u.set(`${e}.${t}`,s),s}},43415:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.serializeAccessList=function(e){if(!e||0===e.length)return[];let t=[];for(let r=0;r<e.length;r++){let{address:i,storageKeys:s}=e[r];for(let e=0;e<s.length;e++)if(s[e].length-2!=64)throw new a.InvalidStorageKeySizeError({storageKey:s[e]});if(!(0,o.isAddress)(i,{strict:!1}))throw new n.InvalidAddressError({address:i});t.push([i,s])}return t};let n=r(47730),a=r(2922),o=r(1199)},43473:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AccountTypeNotSupportedError=t.AccountNotFoundError=void 0;let n=r(33911);class a extends n.BaseError{constructor({docsPath:e}={}){super("Could not find an Account to execute with this Action.\nPlease provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client.",{docsPath:e,docsSlug:"account",name:"AccountNotFoundError"})}}t.AccountNotFoundError=a;class o extends n.BaseError{constructor({docsPath:e,metaMessages:t,type:r}){super(`Account type "${r}" is not supported.`,{docsPath:e,metaMessages:t,name:"AccountTypeNotSupportedError"})}}t.AccountTypeNotSupportedError=o},43537:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.labelhash=function(e){let t=new Uint8Array(32).fill(0);return e?(0,i.encodedLabelToLabelhash)(e)||(0,o.keccak256)((0,n.stringToBytes)(e)):(0,a.bytesToHex)(t)};let n=r(96978),a=r(37264),o=r(60976),i=r(41590)},43660:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toFunctionHash=void 0;var n=r(18786);Object.defineProperty(t,"toFunctionHash",{enumerable:!0,get:function(){return n.toSignatureHash}})},43702:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RecursiveReadLimitExceededError=t.PositionOutOfBoundsError=t.NegativeOffsetError=void 0,t.create=function(e,{recursiveReadLimit:t=8192}={}){let r=Object.create(a);return r.bytes=e,r.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r};let n=r(45189),a={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 s({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new i({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new o({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 o({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 r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+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 r=this.inspectBytes(e);return this.position+=t??e,r},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++}};class o extends n.BaseError{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.NegativeOffsetError"})}}t.NegativeOffsetError=o;class i extends n.BaseError{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.PositionOutOfBoundsError"})}}t.PositionOutOfBoundsError=i;class s extends n.BaseError{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.RecursiveReadLimitExceededError"})}}t.RecursiveReadLimitExceededError=s},43890:(e,t,r)=>
9{Object.defineProperty(t,"__esModule",{value:!0}),t.sha256=function(e,t){let r=(0,n.sha256)((0,a.isHex)(e,{strict:!1})?(0,o.toBytes)(e):e);return"bytes"===(t||"hex")?r:(0,i.toHex)(r)};let n=r(96141),a=r(10858),o=r(96978),i=r(37264)},44191:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getSerializedTransactionType=function(e){let t=(0,a.sliceHex)(e,0,1);if("0x04"===t)return"eip7702";if("0x03"===t)return"eip4844";if("0x02"===t)return"eip1559";if("0x01"===t)return"eip2930";if("0x"!==t&&(0,o.hexToNumber)(t)>=192)return"legacy";throw new n.InvalidSerializedTransactionTypeError({serializedType:t})};let n=r(2922),a=r(25109),o=r(85319)},44247:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.localBatchGatewayUrl=void 0,t.localBatchGatewayRequest=u;let n=r(5223),a=r(15233),o=r(73445),i=r(19244),s=r(41756);async function u(e){let{data:r,ccipRequest:c}=e,{args:[l]}=(0,o.decodeFunctionData)({abi:n.batchGatewayAbi,data:r}),d=[],f=[];return await Promise.all(l.map(async(e,r)=>{try{f[r]=e.urls.includes(t.localBatchGatewayUrl)?await u({data:e.data,ccipRequest:c}):await c(e),d[r]=!1}catch(e){var o;d[r]=!0,f[r]="HttpRequestError"===(o=e).name&&o.status?(0,i.encodeErrorResult)({abi:n.batchGatewayAbi,errorName:"HttpError",args:[o.status,o.shortMessage]}):(0,i.encodeErrorResult)({abi:[a.solidityError],errorName:"Error",args:["shortMessage"in o?o.shortMessage:o.message]})}})),(0,s.encodeFunctionResult)({abi:n.batchGatewayAbi,functionName:"query",result:[d,f]})}t.localBatchGatewayUrl="x-batch-gateway:true"},44341:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toCoinType=function(e){if(1===e)return 60n;if(e>=0x80000000||e<0)throw new n.EnsInvalidChainIdError({chainId:e});return BigInt((0x80000000|e)>>>0)};let n=r(89274)},44694:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isImageUri=c,t.getGateway=l,t.resolveAvatarUri=d,t.getJsonImage=f,t.getMetadataAvatarUri=p,t.parseAvatarUri=b,t.parseNftUri=function(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));let[r,n,o]=t.split("/"),[i,s]=r.split(":"),[u,c]=n.split(":");if(!i||"eip155"!==i.toLowerCase())throw new a.EnsAvatarInvalidNftUriError({reason:"Only EIP-155 supported"});if(!s)throw new a.EnsAvatarInvalidNftUriError({reason:"Chain ID not found"});if(!c)throw new a.EnsAvatarInvalidNftUriError({reason:"Contract address not found"});if(!o)throw new a.EnsAvatarInvalidNftUriError({reason:"Token ID not found"});if(!u)throw new a.EnsAvatarInvalidNftUriError({reason:"ERC namespace not found"});return{chainID:Number.parseInt(s,10),namespace:u.toLowerCase(),contractAddress:c,tokenID:o}},t.getNftTokenUri=m;let n=r(36110),a=r(89274),o=/(?<protocol>https?:\/\/[^/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,i=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?<target>[\w\-.]+))?(?<subtarget>\/.*)?$/,s=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,u=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function c(e){try{let t=await fetch(e,{method:"HEAD"});if(200===t.status){let e=t.headers.get("content-type");return e?.startsWith("image/")}return!1}catch(t){if("object"==typeof t&&void 0!==t.response||!Object.hasOwn(globalThis,"Image"))return!1;return new Promise(t=>{let r=new Image;r.onload=()=>{t(!0)},r.onerror=()=>{t(!1)},r.src=e})}}function l(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function d({uri:e,gatewayUrls:t}){let r=s.test(e);if(r)return{uri:e,isOnChain:!0,isEncoded:r};let n=l(t?.ipfs,"https://ipfs.io"),c=l(t?.arweave,"https://arweave.net"),f=e.match(o),{protocol:p,subpath:b,target:m,subtarget:y=""}=f?.groups||{},h="ipns:/"===p||"ipns/"===b,g="ipfs:/"===p||"ipfs/"===b||i.test(e);if(e.startsWith("http")&&!h&&!g){let r=e;return t?.arweave&&(r=e.replace(/https:\/\/arweave.net/g,t?.arweave)),{uri:r,isOnChain:!1,isEncoded:!1}}if((h||g)&&m)return{uri:`${n}/${h?"ipns":"ipfs"}/${m}${y}`,isOnChain:!1,isEncoded:!1};if("ar:/"===p&&m)return{uri:`${c}/${m}${y||""}`,isOnChain:!1,isEncoded:!1};let v=e.replace(u,"");if(v.startsWith("<svg")&&(v=`data:image/svg+xml;base64,${btoa(v)}`),v.startsWith("data:")||v.startsWith("{"))return{uri:v,isOnChain:!0,isEncoded:!1};throw new a.EnsAvatarUriResolutionError({uri:e})}function f(e){if("object"!=typeof e||!("image"in e)&&!("image_url"in e)&&!("image_data"in e))throw new a.EnsAvatarInvalidMetadataError({data:e});return e.image||e.image_url||e.image_data}async function p({gatewayUrls:e,uri:t}){try{let r=await fetch(t).then(e=>e.json());return await b({gatewayUrls:e,uri:f(r)})}catch{throw new a.EnsAvatarUriResolutionError({uri:t})}}async function b({gatewayUrls:e,uri:t}){let{uri:r,isOnChain:n}=d({uri:t,gatewayUrls:e});if(n||await c(r))return r;throw new a.EnsAvatarUriResolutionError({uri:t})}async function m(e,{nft:t}){if("erc721"===t.namespace)return(0,n.readContract)(e,{address:t.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}
9],functionName:"tokenURI",args:[BigInt(t.tokenID)]});if("erc1155"===t.namespace)return(0,n.readContract)(e,{address:t.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(t.tokenID)]});throw new a.EnsAvatarUnsupportedNamespaceError({namespace:t.namespace})}},44727:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getCallsStatus=u;let n=r(25109),a=r(24141),o=r(85319),i=r(15152),s=r(73419);async function u(e,t){let r;async function u(t){if(t.endsWith(s.fallbackMagicIdentifier.slice(2))){let r=(0,a.trim)((0,n.sliceHex)(t,-64,-32)),i=(0,n.sliceHex)(t,0,-64).slice(2).match(/.{1,64}/g),u=await Promise.all(i.map(t=>s.fallbackTransactionErrorMagicIdentifier.slice(2)!==t?e.request({method:"eth_getTransactionReceipt",params:[`0x${t}`]},{dedupe:!0}):void 0)),c=u.some(e=>null===e)?100:u.every(e=>e?.status==="0x1")?200:u.every(e=>e?.status==="0x0")?500:600;return{atomic:!1,chainId:(0,o.hexToNumber)(r),receipts:u.filter(Boolean),status:c,version:"2.0.0"}}return e.request({method:"wallet_getCallsStatus",params:[t]})}let{atomic:c=!1,chainId:l,receipts:d,version:f="2.0.0",...p}=await u(t.id),[b,m]=(r=p.status)>=100&&r<200?["pending",r]:r>=200&&r<300?["success",r]:r>=300&&r<700?["failure",r]:"CONFIRMED"===r?["success",200]:"PENDING"===r?["pending",100]:[void 0,r];return{...p,atomic:c,chainId:l?(0,o.hexToNumber)(l):void 0,receipts:d?.map(e=>({...e,blockNumber:(0,o.hexToBigInt)(e.blockNumber),gasUsed:(0,o.hexToBigInt)(e.gasUsed),status:i.receiptStatuses[e.status]}))??[],statusCode:m,status:b,version:f}}},45189:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseError=void 0;let n=r(50515);class a extends Error{constructor(e,t={}){const r=(()=>{if(t.cause instanceof a){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})(),o=t.cause instanceof a&&t.cause.docsPath||t.docsPath,i=`https://oxlib.sh${o??""}`;super([e||"An error occurred.",...t.metaMessages?["",...t.metaMessages]:[],...r||o?["",r?`Details: ${r}`:void 0,o?`See: ${i}`: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,"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,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:`ox@${(0,n.getVersion)()}`}),this.cause=t.cause,this.details=r,this.docs=i,this.docsPath=o,this.shortMessage=e}walk(e){return function e(t,r){return r?.(t)?t:t&&"object"==typeof t&&"cause"in t&&t.cause?e(t.cause,r):r?null:t}(this,e)}}t.BaseError=a},45511:(e,t)=>{async function r(e){return await e.request({method:"evm_snapshot"})}Object.defineProperty(t,"__esModule",{value:!0}),t.snapshot=r},45622:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidSerializedSizeError=t.InvalidUncompressedPrefixError=t.InvalidCompressedPrefixError=t.InvalidPrefixError=t.InvalidError=void 0,t.assert=s,t.compress=function(e){let{x:t,y:r}=e;return{prefix:r%2n===0n?2:3,x:t}},t.from=function(e){let t=(()=>{if(o.validate(e))return c(e);if(n.validate(e))return u(e);let{prefix:t,x:r,y:a}=e;return"bigint"==typeof r&&"bigint"==typeof a?{prefix:t??4,x:r,y:a}:{prefix:t,x:r}})();return s(t),t},t.fromBytes=u,t.fromHex=c,t.toBytes=function(e,t={}){return n.fromHex(l(e,t))},t.toHex=l,t.validate=function(e,t={}){try{return s(e,t),!0}catch(e){return!1}};let n=r(33745),a=r(45189),o=r(58515),i=r(58184);function s(e,t={}){let{compressed:r}=t,{prefix:n,x:a,y:o}=e;if(!1===r||"bigint"==typeof a&&"bigint"==typeof o){if(4!==n)throw new f({prefix:n,cause:new b});return}if(!0===r||"bigint"==typeof a&&void 0===o){if(3!==n&&2!==n)throw new f({prefix:n,cause:new p});return}throw new d({publicKey:e})}function u(e){return c(o.fromBytes(e))}function c(e){if(132!==e.length&&130!==e.length&&68!==e.length)throw new m
9({publicKey:e});if(130===e.length)return{prefix:4,x:BigInt(o.slice(e,0,32)),y:BigInt(o.slice(e,32,64))};if(132===e.length){let t=Number(o.slice(e,0,1));return{prefix:t,x:BigInt(o.slice(e,1,33)),y:BigInt(o.slice(e,33,65))}}return{prefix:Number(o.slice(e,0,1)),x:BigInt(o.slice(e,1,33))}}function l(e,t={}){s(e);let{prefix:r,x:n,y:a}=e,{includePrefix:i=!0}=t;return o.concat(i?o.fromNumber(r,{size:1}):"0x",o.fromNumber(n,{size:32}),"bigint"==typeof a?o.fromNumber(a,{size:32}):"0x")}class d extends a.BaseError{constructor({publicKey:e}){super(`Value \`${i.stringify(e)}\` is not a valid public key.`,{metaMessages:["Public key must contain:","- an `x` and `prefix` value (compressed)","- an `x`, `y`, and `prefix` value (uncompressed)"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidError"})}}t.InvalidError=d;class f extends a.BaseError{constructor({prefix:e,cause:t}){super(`Prefix "${e}" is invalid.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidPrefixError"})}}t.InvalidPrefixError=f;class p extends a.BaseError{constructor(){super("Prefix must be 2 or 3 for compressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidCompressedPrefixError"})}}t.InvalidCompressedPrefixError=p;class b extends a.BaseError{constructor(){super("Prefix must be 4 for uncompressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidUncompressedPrefixError"})}}t.InvalidUncompressedPrefixError=b;class m extends a.BaseError{constructor({publicKey:e}){super(`Value \`${e}\` is an invalid public key size.`,{metaMessages:["Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).",`Received ${o.size(o.from(e))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidSerializedSizeError"})}}t.InvalidSerializedSizeError=m},45729:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.verifySiweMessage=s;let n=r(9534),a=r(18415),o=r(97550),i=r(56153);async function s(e,t){let{address:r,domain:s,message:u,nonce:c,scheme:l,signature:d,time:f=new Date,...p}=t,b=(0,a.parseSiweMessage)(u);if(!b.address||!(0,o.validateSiweMessage)({address:r,domain:s,message:b,nonce:c,scheme:l,time:f}))return!1;let m=(0,n.hashMessage)(u);return(0,i.verifyHash)(e,{address:b.address,hash:m,signature:d,...p})}},45866:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.encodeDeployData=function(e){let{abi:t,args:r,bytecode:s}=e;if(!r||0===r.length)return s;let u=t.find(e=>"type"in e&&"constructor"===e.type);if(!u)throw new n.AbiConstructorNotFoundError({docsPath:i});if(!("inputs"in u)||!u.inputs||0===u.inputs.length)throw new n.AbiConstructorParamsNotFoundError({docsPath:i});let c=(0,o.encodeAbiParameters)(u.inputs,r);return(0,a.concatHex)([s,c])};let n=r(95664),a=r(78917),o=r(70209),i="/docs/contract/encodeDeployData"},46181:(e,t)=>{async function r(e,{id:t}){await e.request({method:"evm_revert",params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.revert=r},47065:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.decodeAbiParameters=function(e,t){let r="string"==typeof t?(0,l.hexToBytes)(t):t,b=(0,o.createCursor)(r);if(0===(0,i.size)(r)&&e.length>0)throw new n.AbiDecodingZeroDataError;if((0,i.size)(t)&&32>(0,i.size)(t))throw new n.AbiDecodingDataSizeTooSmallError({data:"string"==typeof t?t:(0,d.bytesToHex)(t),params:e,size:(0,i.size)(t)});let m=0,y=[];for(let t=0;t<e.length;++t){let r=e[t];b.setPosition(m);let[o,i]=function e(t,r,{staticPosition:o}){var i,l,b;let m=(0,f.getArrayComponents)(r.type);if(m){let[n,a]=m;return function(t,r,{length:n,staticPosition:a}){if(!n){let n=a+(0,c.bytesToNumber)(t.readBytes(32)),o=n+32;t.setPosition(n);let i=(0,c.bytesToNumber)(t.readBytes(32)),s=p(r),u=0,l=[];for(let n=0;n<i;++n){t.setPosition(o+(s?32*n:u));let[a,i]=e(t,r,{staticPosition:o});u+=i,l.push(a)}return t.setPosition(a+32),[l,32]}if(p(r)){let o=a+(0,c.bytesToNumber)(t.readBytes(32)),i=[];for(let a=0;a<n;++a){t.setPosition(o+32*a);let[n]=e(t,r,{staticPosition:o});i.push(n)}return t.setPosition(a+32),[i,32]}let o=0,i=[];for(let s=0;s<n;++s){let[n,s]=e(t,r,{staticPosition:a+o});o+=s,i.push(n)}return[i,o]}(t,{...r,type:a},{length:n,staticPosition:o})}if("tuple"===r.type)return function(t,r,{staticPosition:n}){let a=0===r.components.length||r.components.some(({name:e})=>!e),o=a?[]:{},i=0;if(p(r)){let s=n+(0,c.bytesToNumber)(t.readBytes(32));for(let n=0;n<r.components.length;++n){let u=r.components[n];t.setPosition(s+i);let[c,l]=e(t,u,{staticPosition:s});
9i+=l,o[a?n:u?.name]=c}return t.setPosition(n+32),[o,32]}for(let s=0;s<r.components.length;++s){let u=r.components[s],[c,l]=e(t,u,{staticPosition:n});o[a?s:u?.name]=c,i+=l}return[o,i]}(t,r,{staticPosition:o});if("address"===r.type){let e;return e=t.readBytes(32),[(0,a.checksumAddress)((0,d.bytesToHex)((0,s.sliceBytes)(e,-20))),32]}if("bool"===r.type){return i=t,[(0,c.bytesToBool)(i.readBytes(32),{size:32}),32]}if(r.type.startsWith("bytes"))return function(e,t,{staticPosition:r}){let[n,a]=t.type.split("bytes");if(!a){let t=(0,c.bytesToNumber)(e.readBytes(32));e.setPosition(r+t);let n=(0,c.bytesToNumber)(e.readBytes(32));if(0===n)return e.setPosition(r+32),["0x",32];let a=e.readBytes(n);return e.setPosition(r+32),[(0,d.bytesToHex)(a),32]}return[(0,d.bytesToHex)(e.readBytes(Number.parseInt(a,10),32)),32]}(t,r,{staticPosition:o});if(r.type.startsWith("uint")||r.type.startsWith("int")){let e,n,a;return l=t,e=(b=r).type.startsWith("int"),n=Number.parseInt(b.type.split("int")[1]||"256",10),a=l.readBytes(32),[n>48?(0,c.bytesToBigInt)(a,{signed:e}):(0,c.bytesToNumber)(a,{signed:e}),32]}if("string"===r.type)return function(e,{staticPosition:t}){let r=(0,c.bytesToNumber)(e.readBytes(32));e.setPosition(t+r);let n=(0,c.bytesToNumber)(e.readBytes(32));if(0===n)return e.setPosition(t+32),["",32];let a=e.readBytes(n,32),o=(0,c.bytesToString)((0,u.trim)(a));return e.setPosition(t+32),[o,32]}(t,{staticPosition:o});throw new n.InvalidAbiDecodingTypeError(r.type,{docsPath:"/docs/contract/decodeAbiParameters"})}(b,r,{staticPosition:0});m+=i,y.push(o)}return y};let n=r(95664),a=r(43333),o=r(21574),i=r(27420),s=r(25109),u=r(24141),c=r(65949),l=r(96978),d=r(37264),f=r(70209);function p(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(p);let r=(0,f.getArrayComponents)(e.type);return!!(r&&p({...e,type:r[1]}))}},47295:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseErc8010Signature=function(e){if(!(0,o.isErc8010Signature)(e))return{signature:e};let{authorization:t,to:r,...i}=n.SignatureErc8010.unwrap(e);return{authorization:{address:t.address,chainId:t.chainId,nonce:Number(t.nonce),r:(0,a.numberToHex)(t.r,{size:32}),s:(0,a.numberToHex)(t.s,{size:32}),yParity:t.yParity},...r?{address:r}:{},...i}};let n=r(16576),a=r(37264),o=r(34074)},47512:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getHttpRpcClient=function(e,t={}){return{async request(r){let{body:s,fetchFn:u=t.fetchFn??fetch,onRequest:c=t.onRequest,onResponse:l=t.onResponse,timeout:d=t.timeout??1e4}=r,f={...t.fetchOptions??{},...r.fetchOptions??{}},{headers:p,method:b,signal:m}=f;try{let t,r=await (0,a.withTimeout)(async({signal:t})=>{let r={...f,body:Array.isArray(s)?(0,o.stringify)(s.map(e=>({jsonrpc:"2.0",id:e.id??i.idCache.take(),...e}))):(0,o.stringify)({jsonrpc:"2.0",id:s.id??i.idCache.take(),...s}),headers:{"Content-Type":"application/json",...p},method:b||"POST",signal:m||(d>0?t:null)},n=new Request(e,r),a=await c?.(n,r)??{...r,url:e};return await u(a.url??e,a)},{errorInstance:new n.TimeoutError({body:s,url:e}),timeout:d,signal:!0});if(l&&await l(r),r.headers.get("Content-Type")?.startsWith("application/json"))t=await r.json();else{t=await r.text();try{t=JSON.parse(t||"{}")}catch(e){if(r.ok)throw e;t={error:t}}}if(!r.ok)throw new n.HttpRequestError({body:s,details:(0,o.stringify)(t.error)||r.statusText,headers:r.headers,status:r.status,url:e});return t}catch(t){if(t instanceof n.HttpRequestError||t instanceof n.TimeoutError)throw t;throw new n.HttpRequestError({body:s,cause:t,url:e})}}}};let n=r(26019),a=r(40869),o=r(57737),i=r(27309)},47730:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidAddressError=void 0;let n=r(33911);class a extends n.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"})}}t.InvalidAddressError=a},47748:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.padBytes=t.pad=t.isHex=t.isBytes=t.concatHex=t.concatBytes=t.concat=t.getChainContractAddress=t.extractChain=t.defineChain=t.assertCurrentChain=t.offchainLookupSignature=t.offchainLookupAbiItem=t.offchainLookup=t.ccipFetch=t.ccipRequest=t.buildRequest=t.verifyAuthorization=t.serializeAuthorizationList=t.recoverAuthorizationAddress=t.hashAuthorization=t.isAddressEqual=t.isAddress=t.getCreateAddress=t.getCreate2Address=t.getContractAddress=t.getAddress=t.parseEventLogs=t.getAbiItem=t.formatAbiItemWithArgs=t.formatAbiParams=t.formatAbiItem=t.encodePacked=t.encodeFunctionResult=t.encodeFunctionData=t.encodeEventTopics=t.encodeErrorResult=t.encodeDeployData=t.encodeAbiParameters=t.decodeFunctionResult=t.decodeFunctionData=t.decodeEventLog=t.decodeErrorResult=t.decodeAbiParameters=t.publicKeyToAddress=t.parseAccount=t.parseAbiParameters=t.parseAbiParameter=t.parseAbiItem=t.parseAbi=void 0,t.ripemd160=t.keccak256=t.isHash=t.getAction=t.formatTransactionRequest=t.defineTransactionRequest=t.defineTransactionReceipt=t.transactionType=t.formatTransaction=t.defineTransaction=t.formatLog=t.defineFormatter=t.extract=t.formatBlock=t.defineBlock=t.getTransactionError=t.getNodeError=t.containsNodeError=t.getEstimateGasError=t.getContractError=t.getCallError=t.toRlp=t.toHex=t.stringToHex=t.numberToHex=t.bytesToHex=t.boolToHex=t.toBytes=t.stringToBytes=t.numberToBytes=t.hexToBytes=t.boolToBytes=t.fromRlp=t.hexToString=t.hexToNumber=t.hexToBool=t.hexToBigInt=t.fromHex=t.fromBytes=t.bytesToString=t.bytesToNumber=t.bytesToBool=t.bytesToBigint=t.bytesToBigInt=t.trim=t.sliceHex=t.sliceBytes=t.slice=t.size=t.padHex=void 0,t.validateTypedData=t.serializeTypedData=t.serializeTransaction=t.serializeAccessList=t.parseTransaction=t.getTransactionType=t.getSerializedTransactionType=t.assertTransactionLegacy=t.assertTransactionEIP2930=t.assertTransactionEIP1559=t.assertRequest=t.stringify=t.verifyTypedData=t.verifyMessage=t.verifyHash=t.serializeErc8010Signature=t.serializeErc6492Signature=t.recoverTypedDataAddress=t.recoverPublicKey=t.recoverMessageAddress=t.recoverAddress=t.parseErc8010Signature=t.parseErc6492Signature=t.isErc8010Signature=t.isErc6492Signature=t.hashTypedData=t.hashStruct=t.hashMessage=t.getWebSocketRpcClient=t.socketClientCache=t.getSocketRpcClient=t.getHttpRpcClient=t.rpc=t.getSocket=t.integerRegex=t.bytesRegex=t.arrayRegex=t.nonceManager=t.createNonceManager=t.getFunctionSignature=t.toFunctionSignature=t.getFunctionSelector=t.toFunctionSelector=t.toFunctionHash=t.getEventSignature=t.toEventSignature=t.getEventSelector=t.toEventSelector=t.toEventHash=t.sha256=void 0,t.parseUnits=t.parseGwei=t.parseEther=t.formatUnits=t.formatGwei=t.formatEther=void 0;var n=r(54145);Object.defineProperty(t,"parseAbi",{enumerable:!0,get:function(){return n.parseAbi}}),Object.defineProperty(t,"parseAbiItem",{enumerable:!0,get:function(){return n.parseAbiItem}}),Object.defineProperty(t,"parseAbiParameter",{enumerable:!0,get:function(){return n.parseAbiParameter}}),Object.defineProperty(t,"parseAbiParameters",{enumerable:!0,get:function(){return n.parseAbiParameters}});var a=r(25055);Object.defineProperty(t,"parseAccount",{enumerable:!0,get:function(){return a.parseAccount}});var o=r(79874);Object.defineProperty(t,"publicKeyToAddress",{enumerable:!0,get:function(){return o.publicKeyToAddress}});var i=r(47065);Object.defineProperty(t,"decodeAbiParameters",{enumerable:!0,get:function(){return i.decodeAbiParameters}});var s=r(40292);Object.defineProperty(t,"decodeErrorResult",{enumerable:!0,get:function(){return s.decodeErrorResult}});var u=r(82276);Object.defineProperty(t,"decodeEventLog",{enumerable:!0,get:function(){return u.decodeEventLog}});var c=r(73445);Object.defineProperty(t,"decodeFunctionData",{enumerable:!0,get:function(){return c.decodeFunctionData}});var l=r(84212);Object.defineProperty(t,"decodeFunctionResult",{enumerable:!0,get:function(){return l.decodeFunctionResult}});var d=r(70209);Object.defineProperty(t,"encodeAbiParameters",{enumerable:!0,get:function(){return d.encodeAbiParameters}});var f=r(45866);Object.defineProperty(t,"encodeDeployData",{enumerable:!0,get:function(){return f.encodeDeployData}});var p=r(19244);Object.defineProperty(t,"encodeErrorResult",{enumerable:!0,get:function(){return p.encodeErrorResult}});var b=r(34736);Object.defineProperty(t,"encodeEventTopics",{enumerable:!0,get:function(){return b.encodeEventTopics}});var m=r(63997);Object.defineProperty(t,"encodeFunctionData",{enumerable:!0,get:function(){return m.encodeFunctionData}});var y=r(41756);Object.defineProperty(t,"encodeFunctionResult",{enumerable:!0,get:function(){return y.encodeFunctionResult}});var h=r(96065);Object.defineProperty(t,"encodePacked",{enumerable:!0,get:function(){return h.encodePacked}});var g=r(8117);Object.defineProperty(t,"formatAbiItem",{enumerable:!0,get:function(){return g.formatAbiItem}}),Object.defineProperty(t,"formatAbiParams",{enumerable:!0,get:function(){return g.formatAbiParams}});var v=r(31544);Object.defineProperty(t,"formatAbiItemWithArgs",{enumerable:!0,get:function(){return v.formatAbiItemWithArgs}});var E=r(1682);Object.defineProperty(t,"getAbiItem",{enumerable:!0,get:function(){return E.getAbiItem}});var x=r(48093);Object.defineProperty(t,"parseEventLogs",{enumerable:!0,get:function(){return x.parseEventLogs}});var w=r(43333);Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return w.getAddress}});var P=r(31507);Object.defineProperty(t,"getContractAddress",{enumerable:!0,get:function(){return P.getContractAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return P.getCreate2Address}}),Object.defineProperty(t,"getCreateAddress",{enumerable:!0,get:function(){return P.getCreateAddress}});var I=r(1199);Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return I.isAddress}});var A=r(29609);Object.defineProperty(t,"isAddressEqual",{enumerable:!0,get:function(){return A.isAddressEqual}});var T=r(69435);Object.defineProperty(t,"hashAuthorization",{enumerable:!0,get:function(){return T.hashAuthorization}});var O=r(3053);Object.defineProperty(t,"recoverAuthorizationAddress",{enumerable:!0,get:function(){return O.recoverAuthorizationAddress}});var B=r(78913);Object.defineProperty(t,"serializeAuthorizationList",{enumerable:!0,get:function(){return B.serializeAuthorizationList}});var S=r(96704);Object.defineProperty(t,"verifyAuthorization",{enumerable:!0,get:function(){return S.verifyAuthorization}});var j=r(72517);Object.defineProperty(t,"buildRequest",{enumerable:!0,get:function(){return j.buildRequest}});var _=r(68463);Object.defineProperty(t,"ccipRequest",{enumerable:!0,get:function(){return _.ccipRequest}}),Object.defineProperty(t,"ccipFetch",{enumerable:!0,get:function(){return _.ccipRequest}}),Object.defineProperty(t,"offchainLookup",{enumerable:!0,get:function(){return _.offchainLookup}}),Object.defineProperty(t,"offchainLookupAbiItem",{enumerable:!0,get:function(){return _.offchainLookupAbiItem}}),Object.defineProperty(t,"offchainLookupSignature",{enumerable:!0,get:function(){return _.offchainLookupSignature}});var M=r(64702);Object.defineProperty(t,"assertCurrentChain",{enumerable:!0,get:function(){return M.assertCurrentChain}});var C=r(4742);Object.defineProperty(t,"defineChain",{enumerable:!0,get:function(){return C.defineChain}});var R=r(93328);Object.defineProperty(t,"extractChain",{enumerable:!0,get:function(){return R.extractChain}});var k=r(89007);Object.defineProperty(t,"getChainContractAddress",{enumerable:!0,get:function(){return k.getChainContractAddress}});var H=r(78917);Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return H.concat}}),Object.defineProperty(t,"concatBytes",{enumerable:!0,get:function(){return H.concatBytes}}),Object.defineProperty(t,"concatHex",{enumerable:!0,get:function(){return H.concatHex}});var N=r(51804);Object.defineProperty(t,"isBytes",{enumerable:!0,get:function(){return N.isBytes}});var F=r(10858);Object.defineProperty(t,"isHex",{enumerable:!0,get:function(){return F.isHex}});var U=r(29822);Object.defineProperty(t,"pad",{enumerable:!0,get:function(){return U.pad}}),Object.defineProperty(t,"padBytes",{enumerable:!0,get:function(){return U.padBytes}}),Object.defineProperty(t,"padHex",{enumerable:!0,get:function(){return U.padHex}});var z=r(27420);Object.defineProperty(t,"size",{enumerable:!0,get:function(){return z.size}});var L=r(25109);Object.defineProperty(t,"slice",{enumerable:!0,get:function(){return L.slice}}),Object.defineProperty(t,"sliceBytes",{enumerable:!0,get:function(){return L.sliceBytes}}),Object.defineProperty(t,"sliceHex",{enumerable:!0,get:function(){return L.sliceHex}});var $=r(24141);Object.defineProperty(t,"trim",{enumerable:!0,get:function(){return $.trim}});var D=r(65949);Object.defineProperty(t,"bytesToBigInt",{enumerable:!0,get:function(){return D.bytesToBigInt}}),Object.defineProperty(t,"bytesToBigint",{enumerable:!0,get:function(){return D.bytesToBigInt}}),Object.defineProperty(t,"bytesToBool",{enumerable:!0,get:function(){return D.bytesToBool}}),Object.defineProperty(t,"bytesToNumber",{enumerable:!0,get:function(){return D.bytesToNumber}}),Object.defineProperty(t,"bytesToString",{enumerable:!0,get:function(){return D.bytesToString}}),Object.defineProperty(t,"fromBytes",{enumerable:!0,get:function(){return D.fromBytes}});var q=r(85319);Object.defineProperty(t,"fromHex",{enumerable:!0,get:function(){return q.fromHex}}),Object.defineProperty(t,"hexToBigInt",{enumerable:!0,get:function(){return q.hexToBigInt}}),Object.defineProperty(t,"hexToBool",{enumerable:!0,get:function(){return q.hexToBool}}),Object.defineProperty(t,"hexToNumber",{enumerable:!0,get:function(){return q.hexToNumber}}),Object.defineProperty(t,"hexToString",{enumerable:!0,get:function(){return q.hexToString}});var G=r(39988);Object.defineProperty(t,"fromRlp",{enumerable:!0,get:function(){return G.fromRlp}});var V=r(96978);Object.defineProperty(t,"boolToBytes",{enumerable:!0,get:function(){return V.boolToBytes}}),Object.defineProperty(t,"hexToBytes",{enumerable:!0,get:function(){return V.hexToBytes}}),Object.defineProperty(t,"numberToBytes",{enumerable:!0,get:function(){return V.numberToBytes}}),Object.defineProperty(t,"stringToBytes",{enumerable:!0,get:function(){return V.stringToBytes}}),Object.defineProperty(t,"toBytes",{enumerable:!0,get:function(){return V.toBytes}});var W=r(37264);Object.defineProperty(t,"boolToHex",{enumerable:!0,get:function(){return W.boolToHex}}),Object.defineProperty(t,"bytesToHex",{enumerable:!0,get:function(){return W.bytesToHex}}),Object.defineProperty(t,"numberToHex",{enumerable:!0,get:function(){return W.numberToHex}}),Object.defineProperty(t,"stringToHex",{enumerable:!0,get:function(){return W.stringToHex}}),Object.defineProperty(t,"toHex",{enumerable:!0,get:function(){return W.toHex}});var K=r(6007);Object.defineProperty(t,"toRlp",{enumerable:!0,get:function(){return K.toRlp}});var Z=r(26798);Object.defineProperty(t,"getCallError",{enumerable:!0,get:function(){return Z.getCallError}});var J=r(67916);Object.defineProperty(t,"getContractError",{enumerable:!0,get:function(){return J.getContractError}});var Y=r(2611);Object.defineProperty(t,"getEstimateGasError",{enumerable:!0,get:function(){return Y.getEstimateGasError}});var X=r(88214);Object.defineProperty(t,"containsNodeError",{enumerable:!0,get:function(){return X.c
9ontainsNodeError}}),Object.defineProperty(t,"getNodeError",{enumerable:!0,get:function(){return X.getNodeError}});var Q=r(63894);Object.defineProperty(t,"getTransactionError",{enumerable:!0,get:function(){return Q.getTransactionError}});var ee=r(21081);Object.defineProperty(t,"defineBlock",{enumerable:!0,get:function(){return ee.defineBlock}}),Object.defineProperty(t,"formatBlock",{enumerable:!0,get:function(){return ee.formatBlock}});var et=r(84129);Object.defineProperty(t,"extract",{enumerable:!0,get:function(){return et.extract}});var er=r(90942);Object.defineProperty(t,"defineFormatter",{enumerable:!0,get:function(){return er.defineFormatter}});var en=r(64234);Object.defineProperty(t,"formatLog",{enumerable:!0,get:function(){return en.formatLog}});var ea=r(14680);Object.defineProperty(t,"defineTransaction",{enumerable:!0,get:function(){return ea.defineTransaction}}),Object.defineProperty(t,"formatTransaction",{enumerable:!0,get:function(){return ea.formatTransaction}}),Object.defineProperty(t,"transactionType",{enumerable:!0,get:function(){return ea.transactionType}});var eo=r(15152);Object.defineProperty(t,"defineTransactionReceipt",{enumerable:!0,get:function(){return eo.defineTransactionReceipt}});var ei=r(75621);Object.defineProperty(t,"defineTransactionRequest",{enumerable:!0,get:function(){return ei.defineTransactionRequest}}),Object.defineProperty(t,"formatTransactionRequest",{enumerable:!0,get:function(){return ei.formatTransactionRequest}});var es=r(78234);Object.defineProperty(t,"getAction",{enumerable:!0,get:function(){return es.getAction}});var eu=r(38493);Object.defineProperty(t,"isHash",{enumerable:!0,get:function(){return eu.isHash}});var ec=r(60976);Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return ec.keccak256}});var el=r(95295);Object.defineProperty(t,"ripemd160",{enumerable:!0,get:function(){return el.ripemd160}});var ed=r(43890);Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return ed.sha256}});var ef=r(50964);Object.defineProperty(t,"toEventHash",{enumerable:!0,get:function(){return ef.toEventHash}});var ep=r(53093);Object.defineProperty(t,"toEventSelector",{enumerable:!0,get:function(){return ep.toEventSelector}}),Object.defineProperty(t,"getEventSelector",{enumerable:!0,get:function(){return ep.toEventSelector}});var eb=r(33742);Object.defineProperty(t,"toEventSignature",{enumerable:!0,get:function(){return eb.toEventSignature}}),Object.defineProperty(t,"getEventSignature",{enumerable:!0,get:function(){return eb.toEventSignature}});var em=r(43660);Object.defineProperty(t,"toFunctionHash",{enumerable:!0,get:function(){return em.toFunctionHash}});var ey=r(96573);Object.defineProperty(t,"toFunctionSelector",{enumerable:!0,get:function(){return ey.toFunctionSelector}}),Object.defineProperty(t,"getFunctionSelector",{enumerable:!0,get:function(){return ey.toFunctionSelector}});var eh=r(31894);Object.defineProperty(t,"toFunctionSignature",{enumerable:!0,get:function(){return eh.toFunctionSignature}}),Object.defineProperty(t,"getFunctionSignature",{enumerable:!0,get:function(){return eh.toFunctionSignature}});var eg=r(55354);Object.defineProperty(t,"createNonceManager",{enumerable:!0,get:function(){return eg.createNonceManager}}),Object.defineProperty(t,"nonceManager",{enumerable:!0,get:function(){return eg.nonceManager}});var ev=r(32187);Object.defineProperty(t,"arrayRegex",{enumerable:!0,get:function(){return ev.arrayRegex}}),Object.defineProperty(t,"bytesRegex",{enumerable:!0,get:function(){return ev.bytesRegex}}),Object.defineProperty(t,"integerRegex",{enumerable:!0,get:function(){return ev.integerRegex}});var eE=r(26178);Object.defineProperty(t,"getSocket",{enumerable:!0,get:function(){return eE.getSocket}}),Object.defineProperty(t,"rpc",{enumerable:!0,get:function(){return eE.rpc}});var ex=r(47512);Object.defineProperty(t,"getHttpRpcClient",{enumerable:!0,get:function(){return ex.getHttpRpcClient}});var ew=r(85033);Object.defineProperty(t,"getSocketRpcClient",{enumerable:!0,get:function(){return ew.getSocketRpcClient}}),Object.defineProperty(t,"socketClientCache",{enumerable:!0,get:function(){return ew.socketClientCache}});var eP=r(32835);Object.defineProperty(t,"getWebSocketRpcClient",{enumerable:!0,get:function(){return eP.getWebSocketRpcClient}});var eI=r(9534);Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return eI.hashMessage}});var eA=r(98589);Object.defineProperty(t,"hashStruct",{enumerable:!0,get:function(){return eA.hashStruct}}),Object.defineProperty(t,"hashTypedData",{enumerable:!0,get:function(){return eA.hashTypedData}
9});var eT=r(55814);Object.defineProperty(t,"isErc6492Signature",{enumerable:!0,get:function(){return eT.isErc6492Signature}});var eO=r(34074);Object.defineProperty(t,"isErc8010Signature",{enumerable:!0,get:function(){return eO.isErc8010Signature}});var eB=r(13495);Object.defineProperty(t,"parseErc6492Signature",{enumerable:!0,get:function(){return eB.parseErc6492Signature}});var eS=r(47295);Object.defineProperty(t,"parseErc8010Signature",{enumerable:!0,get:function(){return eS.parseErc8010Signature}});var ej=r(50807);Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return ej.recoverAddress}});var e_=r(97624);Object.defineProperty(t,"recoverMessageAddress",{enumerable:!0,get:function(){return e_.recoverMessageAddress}});var eM=r(98379);Object.defineProperty(t,"recoverPublicKey",{enumerable:!0,get:function(){return eM.recoverPublicKey}});var eC=r(73745);Object.defineProperty(t,"recoverTypedDataAddress",{enumerable:!0,get:function(){return eC.recoverTypedDataAddress}});var eR=r(56402);Object.defineProperty(t,"serializeErc6492Signature",{enumerable:!0,get:function(){return eR.serializeErc6492Signature}});var ek=r(22134);Object.defineProperty(t,"serializeErc8010Signature",{enumerable:!0,get:function(){return ek.serializeErc8010Signature}});var eH=r(65866);Object.defineProperty(t,"verifyHash",{enumerable:!0,get:function(){return eH.verifyHash}});var eN=r(8657);Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return eN.verifyMessage}});var eF=r(82854);Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return eF.verifyTypedData}});var eU=r(57737);Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return eU.stringify}});var ez=r(98048);Object.defineProperty(t,"assertRequest",{enumerable:!0,get:function(){return ez.assertRequest}});var eL=r(88465);Object.defineProperty(t,"assertTransactionEIP1559",{enumerable:!0,get:function(){return eL.assertTransactionEIP1559}}),Object.defineProperty(t,"assertTransactionEIP2930",{enumerable:!0,get:function(){return eL.assertTransactionEIP2930}}),Object.defineProperty(t,"assertTransactionLegacy",{enumerable:!0,get:function(){return eL.assertTransactionLegacy}});var e$=r(44191);Object.defineProperty(t,"getSerializedTransactionType",{enumerable:!0,get:function(){return e$.getSerializedTransactionType}});var eD=r(40513);Object.defineProperty(t,"getTransactionType",{enumerable:!0,get:function(){return eD.getTransactionType}});var eq=r(58496);Object.defineProperty(t,"parseTransaction",{enumerable:!0,get:function(){return eq.parseTransaction}});var eG=r(43415);Object.defineProperty(t,"serializeAccessList",{enumerable:!0,get:function(){return eG.serializeAccessList}});var eV=r(96943);Object.defineProperty(t,"serializeTransaction",{enumerable:!0,get:function(){return eV.serializeTransaction}});var eW=r(91024);Object.defineProperty(t,"serializeTypedData",{enumerable:!0,get:function(){return eW.serializeTypedData}}),Object.defineProperty(t,"validateTypedData",{enumerable:!0,get:function(){return eW.validateTypedData}});var eK=r(36276);Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return eK.formatEther}});var eZ=r(88524);Object.defineProperty(t,"formatGwei",{enumerable:!0,get:function(){return eZ.formatGwei}});var eJ=r(22159);Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return eJ.formatUnits}});var eY=r(87286);Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return eY.parseEther}});var eX=r(6318);Object.defineProperty(t,"parseGwei",{enumerable:!0,get:function(){return eX.parseGwei}});var eQ=r(27149);Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return eQ.parseUnits}})},48093:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseEventLogs=function(e){let{abi:t,args:r,logs:c,strict:l=!0}=e,d=(()=>{if(e.eventName)return Array.isArray(e.eventName)?e.eventName:[e.eventName]})();return c.map(e=>{try{let n=t.find(t=>"event"===t.type&&e.topics[0]===(0,s.toEventSelector)(t));if(!n)return null;let c=(0,u.decodeEventLog)({...e,abi:[n],strict:l});if(d&&!d.includes(c.eventName)||!function(e){let{args:t,inputs:r,matchArgs:n}=e;if(!n)return!0;
9if(!t)return!1;function s(e,t,r){try{if("address"===e.type)return(0,a.isAddressEqual)(t,r);if("string"===e.type||"bytes"===e.type)return(0,i.keccak256)((0,o.toBytes)(t))===r;return t===r}catch{return!1}}return Array.isArray(t)&&Array.isArray(n)?n.every((e,n)=>{if(null==e)return!0;let a=r[n];return!!a&&(Array.isArray(e)?e:[e]).some(e=>s(a,e,t[n]))}):!("object"!=typeof t||Array.isArray(t)||"object"!=typeof n||Array.isArray(n))&&Object.entries(n).every(([e,n])=>{if(null==n)return!0;let a=r.find(t=>t.name===e);return!!a&&(Array.isArray(n)?n:[n]).some(r=>s(a,r,t[e]))})}({args:c.args,inputs:n.inputs,matchArgs:r}))return null;return{...c,...e}}catch(a){let t,r;if(a instanceof n.AbiEventSignatureNotFoundError)return null;if(a instanceof n.DecodeLogDataMismatch||a instanceof n.DecodeLogTopicsMismatch){if(l)return null;t=a.abiItem.name,r=a.abiItem.inputs?.some(e=>!("name"in e&&e.name))}return{...e,args:r?[]:{},eventName:t}}}).filter(Boolean)};let n=r(95664),a=r(29609),o=r(96978),i=r(60976),s=r(53093),u=r(82276)},48223:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setStorageAt=a;let n=r(37264);async function a(e,{address:t,index:r,value:o}){await e.request({method:`${e.mode}_setStorageAt`,params:[t,"number"==typeof r?(0,n.numberToHex)(r):r,o]})}},48406:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="2.38.0"},48439:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.estimateFeesPerGas=u,t.internal_estimateFeesPerGas=c;let n=r(62082),a=r(78234),o=r(35235),i=r(73817),s=r(79190);async function u(e,t){return c(e,t)}async function c(e,t){let{block:r,chain:u=e.chain,request:c,type:l="eip1559"}=t||{},d=await (async()=>"function"==typeof u?.fees?.baseFeeMultiplier?u.fees.baseFeeMultiplier({block:r,client:e,request:c}):u?.fees?.baseFeeMultiplier??1.2)();if(d<1)throw new n.BaseFeeScalarError;let f=d.toString().split(".")[1]?.length??0,p=10**f,b=e=>e*BigInt(Math.ceil(d*p))/BigInt(p),m=r||await (0,a.getAction)(e,i.getBlock,"getBlock")({});if("function"==typeof u?.fees?.estimateFeesPerGas){let t=await u.fees.estimateFeesPerGas({block:r,client:e,multiply:b,request:c,type:l});if(null!==t)return t}if("eip1559"===l){if("bigint"!=typeof m.baseFeePerGas)throw new n.Eip1559FeesNotSupportedError;let t="bigint"==typeof c?.maxPriorityFeePerGas?c.maxPriorityFeePerGas:await (0,o.internal_estimateMaxPriorityFeePerGas)(e,{block:m,chain:u,request:c}),r=b(m.baseFeePerGas);return{maxFeePerGas:c?.maxFeePerGas??r+t,maxPriorityFeePerGas:t}}return{gasPrice:c?.gasPrice??b(await (0,a.getAction)(e,s.getGasPrice,"getGasPrice")({}))}}},48807:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.publicActions=function(e){return{call:t=>(0,u.call)(e,t),createAccessList:t=>(0,c.createAccessList)(e,t),createBlockFilter:()=>(0,l.createBlockFilter)(e),createContractEventFilter:t=>(0,d.createContractEventFilter)(e,t),createEventFilter:t=>(0,f.createEventFilter)(e,t),createPendingTransactionFilter:()=>(0,p.createPendingTransactionFilter)(e),estimateContractGas:t=>(0,b.estimateContractGas)(e,t),estimateGas:t=>(0,y.estimateGas)(e,t),getBalance:t=>(0,g.getBalance)(e,t),getBlobBaseFee:()=>(0,v.getBlobBaseFee)(e),getBlock:t=>(0,E.getBlock)(e,t),getBlockNumber:t=>(0,x.getBlockNumber)(e,t),getBlockTransactionCount:t=>(0,w.getBlockTransactionCount)(e,t),getBytecode:t=>(0,I.getCode)(e,t),getChainId:()=>(0,P.getChainId)(e),getCode:t=>(0,I.getCode)(e,t),getContractEvents:t=>(0,A.getContractEvents)(e,t),getEip712Domain:t=>(0,T.getEip712Domain)(e,t),getEnsAddress:t=>(0,n.getEnsAddress)(e,t),getEnsAvatar:t=>(0,a.getEnsAvatar)(e,t),getEnsName:t=>(0,o.getEnsName)(e,t),getEnsResolver:t=>(0,i.getEnsResolver)(e,t),getEnsText:t=>(0,s.getEnsText)(e,t),getFeeHistory:t=>(0,O.getFeeHistory)(e,t),estimateFeesPerGas:t=>(0,m.estimateFeesPerGas)(e,t),getFilterChanges:t=>(0,B.getFilterChanges)(e,t),getFilterLogs:t=>(0,S.getFilterLogs)(e,t),getGasPrice:()=>(0,j.getGasPrice)(e),getLogs:t=>(0,_.getLogs)(e,t),getProof:t=>(0,M.getProof)(e,t),estimateMaxPriorityFeePerGas:t=>(0,h.estimateMaxPriorityFeePerGas)(e,t),getStorageAt:t=>(0,C.getStorageAt)(e,t),getTransaction:t=>(0,R.getTransaction)(e,t),getTransactionConfirmations:t=>(0,k.getTransactionConfirmations)(e,t),getTransactionCount:t=>(0,H.getTransactionCount)(e,t),getTransactionReceipt:t=>(0,N.getTransactionReceipt)(e,t),multicall:t=>(0,F.multicall)(e,t),prepareTransactionRequest:t=>(0,ee.prepareTransactionRequest)(e,t),readContract:t=>(0,U.readContract)(e,t),sendRawTransaction:t=>(0,et.sendRawTransaction)(e,t),sendRawTransactionSync:t=>(0,er.sendRawTransactionSync)(e,t),simulate:t=>(0,z.simulateBlocks)(e,t),simulateBlocks:t=>(0,z.simulateBlocks)(e,t),simulateCalls:t=>(0,L.simulateCalls)(e,t),simulateContract:t=>(0,$.simulateContract)(e,t),verifyHash:t=>(0,q.verifyHash)(e,t),verifyMessage:t=>(0,G.verifyMessage)(e,t),verifySiweMessage:t=>(0,Q.verifySiweMessage)(e,t),verifyTypedData:t=>(0,V.verifyTypedData)(e,t),uninstallFilter:t=>(0,D.uninstallFilter)(e,t),waitForTransactionReceipt:t=>(0,W.waitForTransactionReceipt)(e,t),watchBlocks:t=>(0,Z.watchBlocks)(e,t),watchBlockNumber:t=>(0,K.watchBlockNumber)(e,t),watchContractEvent:t=>(0,J.watchContractEvent)(e,t),watchEvent:t=>(0,Y.watchEvent)(e,t),watchPendingTransactions:t=>(0,X.watchPendingTransactions)(e,t)}};
9let n=r(41309),a=r(7414),o=r(23992),i=r(23941),s=r(99280),u=r(99076),c=r(73390),l=r(22811),d=r(59484),f=r(64242),p=r(61103),b=r(29589),m=r(48439),y=r(35127),h=r(35235),g=r(99312),v=r(67646),E=r(73817),x=r(19960),w=r(71570),P=r(84692),I=r(88673),A=r(515),T=r(90292),O=r(79596),B=r(21815),S=r(35641),j=r(79190),_=r(76947),M=r(12961),C=r(66988),R=r(67672),k=r(9558),H=r(94527),N=r(36400),F=r(57889),U=r(36110),z=r(62652),L=r(11791),$=r(4632),D=r(53620),q=r(56153),G=r(11056),V=r(18067),W=r(27924),K=r(49289),Z=r(64549),J=r(8499),Y=r(86097),X=r(58799),Q=r(45729),ee=r(37458),et=r(63644),er=r(64939)},48910:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Eip712DomainNotFoundError=void 0;let n=r(33911);class a extends n.BaseError{constructor({address:e}){super(`No EIP-712 domain found on contract "${e}".`,{metaMessages:["Ensure that:",`- The contract is deployed at the address "${e}".`,"- `eip712Domain()` function exists on the contract.","- `eip712Domain()` function matches signature to ERC-5267 specification."],name:"Eip712DomainNotFoundError"})}}t.Eip712DomainNotFoundError=a},49289:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.watchBlockNumber=function(e,{emitOnBegin:t=!1,emitMissed:r=!1,onBlockNumber:c,onError:l,poll:d,pollingInterval:f=e.pollingInterval}){let p,b,m;return(void 0!==d?d:"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
9onfig.type&&"ipc"!==e.transport.transports[0].config.type))?(b=(0,s.stringify)(["watchBlockNumber",e.uid,t,r,f]),(0,o.observe)(b,{onBlockNumber:c,onError:l},n=>(0,i.poll)(async()=>{try{let t=await (0,a.getAction)(e,u.getBlockNumber,"getBlockNumber")({cacheTime:0});if(void 0!==p){if(t===p)return;if(t-p>1&&r)for(let e=p+1n;e<t;e++)n.onBlockNumber(e,p),p=e}(void 0===p||t>p)&&(n.onBlockNumber(t,p),p=t)}catch(e){n.onError?.(e)}},{emitOnBegin:t,interval:f}))):(m=(0,s.stringify)(["watchBlockNumber",e.uid,t,r]),(0,o.observe)(m,{onBlockNumber:c,onError:l},t=>{let r=!0,a=()=>r=!1;return(async()=>{try{let o=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type||"ipc"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:i}=await o.subscribe({params:["newHeads"],onData(e){if(!r)return;let a=(0,n.hexToBigInt)(e.result?.number);t.onBlockNumber(a,p),p=a},onError(e){t.onError?.(e)}});a=i,r||a()}catch(e){l?.(e)}})(),()=>a()}))};let n=r(85319),a=r(78234),o=r(8156),i=r(33593),s=r(57737),u=r(19960)},49322:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidBytesLengthError=t.SizeExceedsPaddingSizeError=t.SliceOffsetOutOfBoundsError=void 0;let n=r(33911);class a extends n.BaseError{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${r}).`,{name:"SliceOffsetOutOfBoundsError"})}}t.SliceOffsetOutOfBoundsError=a;class o extends n.BaseError{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`,{name:"SizeExceedsPaddingSizeError"})}}t.SizeExceedsPaddingSizeError=o;class i extends n.BaseError{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} is expected to be ${t} ${r} long, but is ${e} ${r} long.`,{name:"InvalidBytesLengthError"})}}t.InvalidBytesLengthError=i},49656:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseAvatarRecord=a;let n=r(44694);async function a(e,{gatewayUrls:t,record:r}){return/eip155:/i.test(r)?o(e,{gatewayUrls:t,record:r}):(0,n.parseAvatarUri)({uri:r,gatewayUrls:t})}async function o(e,{gatewayUrls:t,record:r}){let a=(0,n.parseNftUri)(r),i=await (0,n.getNftTokenUri)(e,{nft:a}),{uri:s,isOnChain:u,isEncoded:c}=(0,n.resolveAvatarUri)({uri:i,gatewayUrls:t});if(u&&(s.includes("data:application/json;base64,")||s.startsWith("{"))){let e=JSON.parse(c?atob(s.replace("data:application/json;base64,","")):s);return(0,n.parseAvatarUri)({uri:(0,n.getJsonImage)(e),gatewayUrls:t})}let l=a.tokenID;return"erc1155"===a.namespace&&(l=l.replace("0x","").padStart(64,"0")),(0,n.getMetadataAvatarUri)({gatewayUrls:t,uri:s.replace(/(?:0x)?{id}/,l)})}},49817:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.blobsToCommitments=function(e){let{kzg:t}=e,r=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),o="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,n.hexToBytes)(e)):e.blobs,i=[];for(let e of o)i.push(Uint8Array.from(t.blobToKzgCommitment(e)));return"bytes"===r?i:i.map(e=>(0,a.bytesToHex)(e))};let n=r(96978),a=r(37264)},50515:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getUrl=function(e){return e},t.getVersion=function(){return n.version},t.prettyPrint=function(e){if(!e)return"";let t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),r=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>` ${`${e}:`.padEnd(r+1)} ${t}`).join("\n")};let n=r(64458)},50807:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.recoverAddress=o;let n=r(79874),a=r(98379);async function o({hash:e,signature:t}){return(0,n.publicKeyToAddress)(await (0,a.recoverPublicKey)({hash:e,signature:t}))}},50964:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toEventHash=void 0;var n=r(18786);Object.defineProperty(t,"toEventHash",{enumerable:!0,get:function(){return n.toSignatureHash}})},51129:(e,t)=>{async function r(e,t){return await e.request({method:"wallet_watchAsset",params:t},{retryCount:0})}
9Object.defineProperty(t,"__esModule",{value:!0}),t.watchAsset=r},51133:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.fromRpc=function(e){return{...e,amount:BigInt(e.amount),index:Number(e.index),validatorIndex:Number(e.validatorIndex)}},t.toRpc=function(e){return{address:e.address,amount:n.fromNumber(e.amount),index:n.fromNumber(e.index),validatorIndex:n.fromNumber(e.validatorIndex)}};let n=r(58515)},51255:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UrlRequiredError=void 0;let n=r(33911);class a extends n.BaseError{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}t.UrlRequiredError=a},51804:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isBytes=function(e){return!!e&&"object"==typeof e&&"BYTES_PER_ELEMENT"in e&&1===e.BYTES_PER_ELEMENT&&"Uint8Array"===e.constructor.name}},51934:(e,t)=>{async function r(e,{address:t}){await e.request({method:`${e.mode}_stopImpersonatingAccount`,params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.stopImpersonatingAccount=r},52034:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sendUnsignedTransaction=o;let n=r(84129),a=r(75621);async function o(e,t){let{accessList:r,data:o,from:i,gas:s,gasPrice:u,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:d,to:f,value:p,...b}=t,m=e.chain?.formatters?.transactionRequest?.format,y=(m||a.formatTransactionRequest)({...(0,n.extract)(b,{format:m}),accessList:r,data:o,from:i,gas:s,gasPrice:u,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:d,to:f,value:p},"sendUnsignedTransaction");return await e.request({method:"eth_sendUnsignedTransaction",params:[y]})}},52035:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BlockNotFoundError=void 0;let n=r(33911);class a extends n.BaseError{constructor({blockHash:e,blockNumber:t}){let r="Block";e&&(r=`Block at hash "${e}"`),t&&(r=`Block at number "${t}"`),super(`${r} could not be found.`,{name:"BlockNotFoundError"})}}t.BlockNotFoundError=a},52108:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getSDKVersion=void 0,t.getSDKVersion=()=>"9.1.0"},52780:(e,t)=>{async function r(e,{address:t,bytecode:n}){"ganache"===e.mode?await e.request({method:"evm_setAccountCode",params:[t,n]}):await e.request({method:`${e.mode}_setCode`,params:[t,n]})}Object.defineProperty(t,"__esModule",{value:!0}),t.setCode=r},52798:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.generateRequestId=void 0;let r=e=>e.toString(16).padStart(2,"0");t.generateRequestId=()=>{if("u">typeof window){let e;return e=new Uint8Array(5),window.crypto.getRandomValues(e),Array.from(e,r).join("")}return new Date().getTime().toString(36)}},53093:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toEventSelector=void 0,t.toEventSelector=r(18786).toSignatureHash},53307:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseAbi=function(e){let t=(0,a.parseStructs)(e),r=[],i=e.length;for(let a=0;a<i;a++){let i=e[a];(0,n.isStructSignature)(i)||r.push((0,o.parseSignature)(i,t))}return r};let n=r(20666),a=r(41377),o=r(68442)},53620:(e,t)=>{async function r(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}Object.defineProperty(t,"__esModule",{value:!0}),t.uninstallFilter=r},53693:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownSolidityTypeError=t.UnknownTypeError=t.InvalidAbiItemError=void 0;let n=r(41588);class a extends n.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"})}}t.InvalidAbiItemError=a;class o extends n.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"})}}t.UnknownTypeError=o;class i extends n.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"})}}t.UnknownSolidityTypeError=i},54145:(e,t,r)=>
9{Object.defineProperty(t,"__esModule",{value:!0}),t.CircularReferenceError=t.InvalidParenthesisError=t.UnknownSignatureError=t.InvalidSignatureError=t.InvalidStructSignatureError=t.InvalidAbiParameterError=t.InvalidAbiParametersError=t.InvalidParameterError=t.SolidityProtectedKeywordError=t.InvalidModifierError=t.InvalidFunctionModifierError=t.InvalidAbiTypeParameterError=t.UnknownSolidityTypeError=t.InvalidAbiItemError=t.UnknownTypeError=t.parseAbiParameters=t.parseAbiParameter=t.parseAbiItem=t.parseAbi=t.formatAbiParameters=t.formatAbiParameter=t.formatAbiItem=t.formatAbi=t.narrow=t.BaseError=void 0;var n=r(41588);Object.defineProperty(t,"BaseError",{enumerable:!0,get:function(){return n.BaseError}});var a=r(13752);Object.defineProperty(t,"narrow",{enumerable:!0,get:function(){return a.narrow}});var o=r(9071);Object.defineProperty(t,"formatAbi",{enumerable:!0,get:function(){return o.formatAbi}});var i=r(14792);Object.defineProperty(t,"formatAbiItem",{enumerable:!0,get:function(){return i.formatAbiItem}});var s=r(35610);Object.defineProperty(t,"formatAbiParameter",{enumerable:!0,get:function(){return s.formatAbiParameter}});var u=r(23267);Object.defineProperty(t,"formatAbiParameters",{enumerable:!0,get:function(){return u.formatAbiParameters}});var c=r(53307);Object.defineProperty(t,"parseAbi",{enumerable:!0,get:function(){return c.parseAbi}});var l=r(29484);Object.defineProperty(t,"parseAbiItem",{enumerable:!0,get:function(){return l.parseAbiItem}});var d=r(42846);Object.defineProperty(t,"parseAbiParameter",{enumerable:!0,get:function(){return d.parseAbiParameter}});var f=r(80943);Object.defineProperty(t,"parseAbiParameters",{enumerable:!0,get:function(){return f.parseAbiParameters}});var p=r(53693);Object.defineProperty(t,"UnknownTypeError",{enumerable:!0,get:function(){return p.UnknownTypeError}}),Object.defineProperty(t,"InvalidAbiItemError",{enumerable:!0,get:function(){return p.InvalidAbiItemError}}),Object.defineProperty(t,"UnknownSolidityTypeError",{enumerable:!0,get:function(){return p.UnknownSolidityTypeError}});var b=r(56125);Object.defineProperty(t,"InvalidAbiTypeParameterError",{enumerable:!0,get:function(){return b.InvalidAbiTypeParameterError}}),Object.defineProperty(t,"InvalidFunctionModifierError",{enumerable:!0,get:function(){return b.InvalidFunctionModifierError}}),Object.defineProperty(t,"InvalidModifierError",{enumerable:!0,get:function(){return b.InvalidModifierError}}),Object.defineProperty(t,"SolidityProtectedKeywordError",{enumerable:!0,get:function(){return b.SolidityProtectedKeywordError}}),Object.defineProperty(t,"InvalidParameterError",{enumerable:!0,get:function(){return b.InvalidParameterError}}),Object.defineProperty(t,"InvalidAbiParametersError",{enumerable:!0,get:function(){return b.InvalidAbiParametersError}}),Object.defineProperty(t,"InvalidAbiParameterError",{enumerable:!0,get:function(){return b.InvalidAbiParameterError}});var m=r(41494);Object.defineProperty(t,"InvalidStructSignatureError",{enumerable:!0,get:function(){return m.InvalidStructSignatureError}}),Object.defineProperty(t,"InvalidSignatureError",{enumerable:!0,get:function(){return m.InvalidSignatureError}}),Object.defineProperty(t,"UnknownSignatureError",{enumerable:!0,get:function(){return m.UnknownSignatureError}});var y=r(34040);Object.defineProperty(t,"InvalidParenthesisError",{enumerable:!0,get:function(){return y.InvalidParenthesisError}});var h=r(33437);Object.defineProperty(t,"CircularReferenceError",{enumerable:!0,get:function(){return h.CircularReferenceError}})},54241:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isNegativeLE=void 0,t.mod=f,t.pow=function(e,t,r){return v(P(r),e,t)},t.pow2=function(e,t,r){let n=e;for(;t-- >o;)n*=n,n%=r;return n},t.invert=p,t.tonelliShanks=y,t.FpSqrt=h,t.validateField=function(e){let t=g.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,a.validateObject)(e,t)},t.FpPow=v,t.FpInvertBatch=E,t.FpDiv=function(e,t,r){return e.mul(t,"bigint"==typeof r?p(r,e.ORDER):e.inv(r))},t.FpLegendre=x,t.FpIsSquare=function(e,t){return 1===x(e,t)},t.nLength=w,t.Field=P,t.FpSqrtOdd=function(e,t){if(!e.isOdd)throw Error("Field doesn't have isOdd");let r=e.sqrt(t);return e.isOdd(r)?r:e.neg(r)},t.FpSqrtEven=function(e,t){if(!e.isOdd)throw Error("Field doesn't have isOdd");let r=e.sqrt(t);return e.isOdd(r)?e.neg(r):r},t.hashToPrivateScalar=function(e,t,r=!1){let n=(e=(0,a.ensureBytes)("privateHash",e)).length,o=w(t).nByteLength+8;if(o<24||n<o||n>1024)throw Error("hashToPrivateScalar: expected "+o+"-1024 bytes of input, got "+n);return f(r?(0,a.bytesToNumberLE)(e):(0,a.bytesToNumberBE)(e),t-i)+i},t.getFieldBytesLength=I,t.getMinHashLength=A,t.mapHashToField=function(e,t,r=!1){let n=e.length,o=I(t),s=A(t);if(n<16||n<s||n>1024)throw Error("expected "+s+"-1024 bytes of input, got "+n);let u=f(r?(0,a.bytesToNumberLE)(e):(0,a.bytesToNumberBE)(e),t-i)+i;return r?(0,a.numberToBytesLE)(u,o):(0,a.numberToBytesBE)(u,o)};let n=r(55603),a=r(81906),o=BigInt(0),i=BigInt(1),s=BigInt(2),u=BigInt(3),c=BigInt(4),l=BigInt(5),d=BigInt(8);function f(e,t){let r=e%t;return r>=o?r:t+r}function p(e,t){if(e===o)throw Error("invert: expected non-zero number");if(t<=o)throw Error("invert: expected positive modulus, got "+t);let r=f(e,t),n=t,a=o,s=i,u=i,c=o;for(;r!==o;){let e=n/r,t=n%r,o=a-u*e,i=s-c*e;n=r,r=t,a=u,s=c,u=o,c=i}if(n!==i)throw Error("invert: does not exist");return f(a,t)}function b(e,t){let r=(e.ORDER+i)/c,n=e.pow(t,r);if(!e.eql(e.sqr(n),t))throw Error("Cannot find square root");return n}function m(e,t){let r=(e.ORDER-l)/d,n=e.mul(t,s),a=e.pow(n,r),o=e.mul(t,a),i=e.mul(e.mul(o,s),a),u=e.mul(o,e.sub(i,e.ONE));if(!e.eql(e.sqr(u),t))throw Error("Cannot find square root");return u}function y(e){if(e<BigInt(3))throw Error("sqrt is not defined for small field");let t=e-i,r=0;for(;t%s===o;)t/=s,r++;let n=s,a=P(e);for(;1===x(a,n);)if(n++>1e3)throw Error("Cannot find square root: probably non-prime P");if(1===r)return b;let u=a.pow(n,t),c=(t+i)/s;return function(e,n){if(e.is0(n))return n;if(1!==x(e,n))throw Error("Cannot find square root");let a=r,o=e.mul(e.ONE,u),s=e.pow(n,t),l=e.pow(n,c);for(;!e.eql(s,e.ONE);){if(e.is0(s))return e.ZERO;let t=1,r=e.sqr(s);for(;!e.eql(r,e.ONE);)if(t++,r=e.sqr(r),t===a)throw Error("Cannot find square root");let n=i<<BigInt(a-t-1),u=e.pow(o,n);a=t,o=e.sqr(u),s=e.mul(s,o),l=e.mul(l,u)}return l}}function h(e){return e%c===u?b:e%d===l?m:y(e)}t.isNegativeLE=(e,t)=>(f(e,t)&i)===i;let g=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function v(e,t,r){if(r<o)throw Error("invalid exponent, negatives unsupported");if(r===o)return e.ONE;if(r===i)return t;let n=e.ONE,a=t;for(;r>o;)r&i&&(n=e.mul(n,a)),a=e.sqr(a),r>>=i;return n}function E(e,t,r=!1){let n=Array(t.length).fill(r?e.ZERO:void 0),a=t.reduce((t,r,a)=>e.is0(r)?t:(n[a]=t,e.mul(t,r)),e.ONE),o=e.inv(a);return t.reduceRight((t,r,a)=>e.is0(r)?t:(n[a]=e.mul(t,n[a]),e.mul(t,r)),o),n}function x(e,t){let r=(e.ORDER-i)/s,n=e.pow(t,r),a=e.eql(n,e.ONE),o=e.eql(n,e.ZERO),u=e.eql(n,e.neg(e.ONE));if(!a&&!o&&!u)throw Error("invalid Legendre symbol result");return a?1:o?0:-1}function w(e,t){void 0!==t&&(0,n.anumber)(t);let r=void 0!==t?t:e.toString(2).length,a=Math.ceil(r/8);return{nBitLength:r,nByteLength:a}}function P(e,t,r=!1,n={}){let s;if(e<=o)throw Error("invalid field: expected ORDER > 0, got "+e);let{nBitLength:u,nByteLength:c}=w(e,t);if(c>2048)throw Error("invalid field: expected ORDER of <= 2048 bytes");let l=Object.freeze({ORDER:e,isLE:r,BITS:u,BYTES:c,MASK:(0,a.bitMask)(u),ZERO:o,ONE:i,create:t=>f(t,e),isValid:t=>{if("bigint"!=typeof t)throw Error("invalid field element: expected bigint, got "+typeof t);return o<=t&&t<e},is0:e=>e===o,isOdd:e=>(e&i)===i,neg:t=>f(-t,e),eql:(e,t)=>
9e===t,sqr:t=>f(t*t,e),add:(t,r)=>f(t+r,e),sub:(t,r)=>f(t-r,e),mul:(t,r)=>f(t*r,e),pow:(e,t)=>v(l,e,t),div:(t,r)=>f(t*p(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>p(t,e),sqrt:n.sqrt||(t=>(s||(s=h(e)),s(l,t))),toBytes:e=>r?(0,a.numberToBytesLE)(e,c):(0,a.numberToBytesBE)(e,c),fromBytes:e=>{if(e.length!==c)throw Error("Field.fromBytes: expected "+c+" bytes, got "+e.length);return r?(0,a.bytesToNumberLE)(e):(0,a.bytesToNumberBE)(e)},invertBatch:e=>E(l,e),cmov:(e,t,r)=>r?t:e});return Object.freeze(l)}function I(e){if("bigint"!=typeof e)throw Error("field order must be bigint");return Math.ceil(e.toString(2).length/8)}function A(e){let t=I(e);return t+Math.ceil(t/2)}},54606:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isObjectEIP712TypedData=void 0,t.isObjectEIP712TypedData=e=>"object"==typeof e&&null!=e&&"domain"in e&&"types"in e&&"message"in e},55179:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.compactSignatureToSignature=function({r:e,yParityAndS:t}){let r=(0,n.hexToBytes)(t),o=128&r[0]?1:0;return 1===o&&(r[0]&=127),{r:e,s:(0,a.bytesToHex)(r),yParity:o}};let n=r(96978),a=r(37264)},55354:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.nonceManager=void 0,t.createNonceManager=o,t.jsonRpc=i;let n=r(94527),a=r(26165);function o(e){let{source:t}=e,r=new Map,n=new a.LruMap(8192),o=new Map,i=({address:e,chainId:t})=>`${e}.${t}`;return{async consume({address:e,chainId:r,client:a}){let o=i({address:e,chainId:r}),s=this.get({address:e,chainId:r,client:a});this.increment({address:e,chainId:r});let u=await s;return await t.set({address:e,chainId:r},u),n.set(o,u),u},async increment({address:e,chainId:t}){let n=i({address:e,chainId:t}),a=r.get(n)??0;r.set(n,a+1)},async get({address:e,chainId:a,client:s}){let u=i({address:e,chainId:a}),c=o.get(u);return c||(c=(async()=>{try{let r=await t.get({address:e,chainId:a,client:s}),o=n.get(u)??0;if(o>0&&r<=o)return o+1;return n.delete(u),r}finally{this.reset({address:e,chainId:a})}})(),o.set(u,c)),(r.get(u)??0)+await c},reset({address:e,chainId:t}){let n=i({address:e,chainId:t});r.delete(n),o.delete(n)}}}function i(){return{async get(e){let{address:t,client:r}=e;return(0,n.getTransactionCount)(r,{address:t,blockTag:"pending"})},set(){}}}t.nonceManager=o({source:i()})},55603:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.Hash=t.nextTick=t.swap32IfBE=t.byteSwapIfBE=t.swap8IfBE=t.isLE=void 0,t.isBytes=a,t.anumber=o,t.abytes=i,t.ahash=function(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.createHasher");o(e.outputLen),o(e.blockLen)},t.aexists=function(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")},t.aoutput=function(e,t){i(e);let r=t.outputLen;if(e.length<r)throw Error("digestInto() expects output buffer of length at least "+r)},t.u8=function(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},t.u32=function(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))},t.clean=function(...e){for(let t=0;t<e.length;t++)e[t].fill(0)},t.createView=function(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)},t.rotr=function(e,t){return e<<32-t|e>>>t},t.rotl=function(e,t){return e<<t|e>>>32-t>>>0},t.byteSwap=s,t.byteSwap32=u,t.bytesToHex=function(e){if(i(e),c)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=l[e[r]];return t},t.hexToBytes=function(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);if(c)return Uint8Array.fromHex(e);let t=e.length,r=t/2;if(t%2)throw Error("hex string expected, got unpadded hex of length "+t);let n=new Uint8Array(r);for(let t=0,a=0;t<r;t++,a+=2){let r=d(e.charCodeAt(a)),o=d(e.charCodeAt(a+1));if(void 0===r||void 0===o)throw Error('hex string expected, got non-hex character "'+(e[a]+e[a+1])+'" at index '+a);n[t]=16*r+o}return n},t.asyncLoop=f,t.utf8ToBytes=p,t.bytesToUtf8=function(e){return new TextDecoder().decode(e)},t.toBytes=b,t.kdfInputToBytes=function(e){return"string"==typeof e&&(e=p(e)),i(e),e},t.concatBytes=function(...e){let t=0;for(let r=0;r<e.length;r++){let n=e[r];i(n),t+=n.length}let r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){let a=e[t];r.set(a,n),n+=a.length}return r},t.checkOpts=function(e,t){if(void 0!==t&&"[object Object]"!==({}).toString.call(t))throw Error("options should be object or undefined");return Object.assign(e,t)},t.createHasher=y,t.createOptHasher=h,t.createXOFer=g,t.randomBytes=function(e=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(e));if(n.crypto&&"function"==typeof n.crypto.randomBytes)return Uint8Array.from(n.crypto.randomBytes(e));throw Error("crypto.getRandomValues must be defined")};let n=r(24839);function a(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function o(e){if(!Number.isSafeInteger(e)||e<0)throw Error("positive integer expected, got "+e)}function i(e,...t){if(!a(e))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error("Uint8Array expected of length "+t+", got length="+e.length)}function s(e){return e<<24&0xff000000|e<<8&0xff0000|e>>>8&65280|e>>>24&255}function u(e){for(let t=0;t<e.length;t++)e[t]=s(e[t]);return e}t.isLE=68===new Uint8Array(new Uint32Array([0x11223344]).buffer)[0],t.swap8IfBE=t.isLE?e=>e:e=>s(e),t.byteSwapIfBE=t.swap8IfBE,t.swap32IfBE=t.isLE?e=>e:u;let c="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,l=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function d(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:void 0}async function f(e,r,n){let a=Date.now();for(let o=0;o<e;o++){n(o);let e=Date.now()-a;e>=0&&e<r||(await (0,t.nextTick)(),a+=e)}}function p(e){if("string"!=typeof e)throw Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function b(e){return"string"==typeof e&&(e=p(e)),i(e),e}t.nextTick=async()=>{};class m{}function y(e){let t=t=>e().update(b(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function h(e){let t=(t,r)=>e(r).update(b(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t}function g(e){let t=(t,r)=>e(r).update(b(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t}t.Hash=m,t.wrapConstructor=y,t.wrapConstructorWithOpts=h,t.wrapXOFConstructorWithOpts=g},55814:(e,t,r)=>
9{Object.defineProperty(t,"__esModule",{value:!0}),t.isErc6492Signature=function(e){return(0,a.sliceHex)(e,-32)===n.erc6492MagicBytes};let n=r(67351),a=r(25109)},55869:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SafeAppProvider=void 0;let n=r(72836),a=r(69319),o=r(90589);class i extends a.EventEmitter{constructor(e,t){super(),this.submittedTxs=new Map,this.safe=e,this.sdk=t}async connect(){this.emit("connect",{chainId:this.chainId})}async disconnect(){}get chainId(){return this.safe.chainId}async request(e){let{method:t,params:r=[]}=e;switch(t){case"eth_accounts":return[this.safe.safeAddress];case"net_version":case"eth_chainId":return(0,o.numberToHex)(this.chainId);case"personal_sign":{let[e,t]=r;if(this.safe.safeAddress.toLowerCase()!==t.toLowerCase())throw Error("The address or message hash is invalid");let n=await this.sdk.txs.signMessage(e);return("signature"in n?n.signature:void 0)||"0x"}case"eth_sign":{let[e,t]=r;if(this.safe.safeAddress.toLowerCase()!==e.toLowerCase()||!t.startsWith("0x"))throw Error("The address or message hash is invalid");let n=await this.sdk.txs.signMessage(t);return("signature"in n?n.signature:void 0)||"0x"}case"eth_signTypedData":case"eth_signTypedData_v4":{let[e,t]=r,n="string"==typeof t?JSON.parse(t):t;if(this.safe.safeAddress.toLowerCase()!==e.toLowerCase())throw Error("The address is invalid");let a=await this.sdk.txs.signTypedMessage(n);return("signature"in a?a.signature:void 0)||"0x"}case"eth_sendTransaction":let a={...r[0],value:r[0].value||"0",data:r[0].data||"0x"};"string"==typeof a.gas&&a.gas.startsWith("0x")&&(a.gas=parseInt(a.gas,16));let i=await this.sdk.txs.send({txs:[a],params:{safeTxGas:a.gas}});return this.submittedTxs.set(i.safeTxHash,{from:this.safe.safeAddress,hash:i.safeTxHash,gas:0,gasPrice:"0x00",nonce:0,input:a.data,value:a.value,to:a.to,blockHash:null,blockNumber:null,transactionIndex:null}),i.safeTxHash;case"eth_blockNumber":return(await this.sdk.eth.getBlockByNumber(["latest"])).number;case"eth_getBalance":return this.sdk.eth.getBalance([(0,o.getLowerCase)(r[0]),r[1]]);case"eth_getCode":return this.sdk.eth.getCode([(0,o.getLowerCase)(r[0]),r[1]]);case"eth_getTransactionCount":return this.sdk.eth.getTransactionCount([(0,o.getLowerCase)(r[0]),r[1]]);case"eth_getStorageAt":return this.sdk.eth.getStorageAt([(0,o.getLowerCase)(r[0]),r[1],r[2]]);case"eth_getBlockByNumber":return this.sdk.eth.getBlockByNumber([r[0],r[1]]);case"eth_getBlockByHash":return this.sdk.eth.getBlockByHash([r[0],r[1]]);case"eth_getTransactionByHash":let s=r[0];try{s=(await this.sdk.txs.getBySafeTxHash(s)).txHash||s}catch(e){}if(this.submittedTxs.has(s))return this.submittedTxs.get(s);return this.sdk.eth.getTransactionByHash([s]).then(e=>(e&&(e.hash=r[0]),e));case"eth_getTransactionReceipt":{let e=r[0];try{e=(await this.sdk.txs.getBySafeTxHash(e)).txHash||e}catch(e){}return this.sdk.eth.getTransactionReceipt([e]).then(e=>(e&&(e.transactionHash=r[0]),e))}case"eth_estimateGas":return this.sdk.eth.getEstimateGas(r[0]);case"eth_call":return this.sdk.eth.call([r[0],r[1]]);case"eth_getLogs":return this.sdk.eth.getPastLogs([r[0]]);case"eth_gasPrice":return this.sdk.eth.getGasPrice();case"wallet_getPermissions":return this.sdk.wallet.getPermissions();case"wallet_requestPermissions":return this.sdk.wallet.requestPermissions(r[0]);case"safe_setSettings":return this.sdk.eth.setSafeSettings([r[0]]);case"wallet_sendCalls":{let{from:e,calls:t,chainId:n}=r[0];if(n!==(0,o.numberToHex)(this.chainId))throw Error(`Safe is not on chain ${n}`);if(e!==this.safe.safeAddress)throw Error("Invalid from address");let a=t.map((e,t)=>{if(!e.to)throw Error(`Invalid call #${t}: missing "to" field`);return{to:e.to,data:e.data??"0x",value:e.value??(0,o.numberToHex)(0)}}),{safeTxHash:i}=await this.sdk.txs.send({txs:a});return{id:i}}case"wallet_getCallsStatus":{let e=r[0],t={[n.TransactionStatus.AWAITING_CONFIRMATIONS]:100,[n.TransactionStatus.AWAITING_EXECUTION]:100,[n.TransactionStatus.SUCCESS]:200,[n.TransactionStatus.CANCELLED]:400,[n.TransactionStatus.FAILED]:500},a=await this.sdk.txs.getBySafeTxHash(e),i={version:"1.0",id:e,chainId:(0,o.numberToHex)(this.chainId),status:t[a.txStatus]};if(!a.txHash)return i;let s=await this.sdk.eth.getTransactionReceipt([a.txHash]);if(!s)return i;let u=a.txData?.dataDecoded?.method!=="multiSend"?1:a.txData.dataDecoded.parameters?.[0].valueDecoded?.length??1,c=Number(s.blockNumber),l=Number(s.gasUsed);return i.receipts=Array(u).fill({logs:s.logs,status:(0,o.numberToHex)(+(a.txStatus===n.TransactionStatus.SUCCESS)),blockHash:s.blockHash,blockNumber:(0,o.numberToHex)(c),gasUsed:(0,o.numberToHex)(l),transactionHash:a.txHash}),i}case"wallet_showCallsStatus":throw Error(`"${e.method}" not supported`);case"wallet_getCapabilities":return{[(0,o.numberToHex)(this.chainId)]:{atomicBatch:{supported:!0}
9}};default:throw Error(`"${e.method}" not implemented`)}}send(e,t){e||t("Undefined request"),this.request(e).then(r=>t(null,{jsonrpc:"2.0",id:e.id,result:r})).catch(e=>t(e,null))}}t.SafeAppProvider=i},55898:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setupKzg=function(e,t){try{e.loadTrustedSetup(t)}catch(e){if(!e.message.includes("trusted setup is already loaded"))throw e}return(0,n.defineKzg)(e)};let n=r(98190)},56003:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WaitForCallsStatusTimeoutError=void 0,t.waitForCallsStatus=f;let n=r(33911),a=r(34955),o=r(78234),i=r(8156),s=r(33593),u=r(32853),c=r(63988),l=r(57737),d=r(44727);async function f(e,t){let r,{id:n,pollingInterval:f=e.pollingInterval,status:b=({statusCode:e})=>200===e||e>=300,retryCount:m=4,retryDelay:y=({count:e})=>200*~~(1<<e),timeout:h=6e4,throwOnFailure:g=!1}=t,v=(0,l.stringify)(["waitForCallsStatus",e.uid,n]),{promise:E,resolve:x,reject:w}=(0,u.withResolvers)(),P=(0,i.observe)(v,{resolve:x,reject:w},t=>{let i=(0,s.poll)(async()=>{let s=e=>{clearTimeout(r),i(),e(),P()};try{let r=await (0,c.withRetry)(async()=>{let t=await (0,o.getAction)(e,d.getCallsStatus,"getCallsStatus")({id:n});if(g&&"failure"===t.status)throw new a.BundleFailedError(t);return t},{retryCount:m,delay:y});if(!b(r))return;s(()=>t.resolve(r))}catch(e){s(()=>t.reject(e))}},{interval:f,emitOnBegin:!0});return i});return r=h?setTimeout(()=>{P(),clearTimeout(r),w(new p({id:n}))},h):void 0,await E}class p extends n.BaseError{constructor({id:e}){super(`Timed out while waiting for call bundle with id "${e}" to be confirmed.`,{name:"WaitForCallsStatusTimeoutError"})}}t.WaitForCallsStatusTimeoutError=p},56125:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidAbiTypeParameterError=t.InvalidFunctionModifierError=t.InvalidModifierError=t.SolidityProtectedKeywordError=t.InvalidParameterError=t.InvalidAbiParametersError=t.InvalidAbiParameterError=void 0;let n=r(41588);class a extends n.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"})}}t.InvalidAbiParameterError=a;class o extends n.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"})}}t.InvalidAbiParametersError=o;class i extends n.BaseError{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}t.InvalidParameterError=i;class s extends n.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"})}}t.SolidityProtectedKeywordError=s;class u extends n.BaseError{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}t.InvalidModifierError=u;class c extends n.BaseError{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${r}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}t.InvalidFunctionModifierError=c;class l extends n.BaseError{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invali
9d."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}t.InvalidAbiTypeParameterError=l},56153:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.verifyHash=P,t.verifyErc8010=I,t.verifyErc1271=T;let n=r(80232),a=r(16576),o=r(5223),i=r(58527),s=r(81660),u=r(45866),c=r(63997),l=r(43333),d=r(29609),f=r(96704),p=r(78917),b=r(10858),m=r(85319),y=r(37264),h=r(78234),g=r(50807),v=r(22391),E=r(99076),x=r(88673),w=r(36110);async function P(e,t){let r,{address:n,hash:o,erc6492VerifierAddress:i=t.universalSignatureVerifierAddress??e.chain?.contracts?.erc6492Verifier?.address,multicallAddress:s=t.multicallAddress??e.chain?.contracts?.multicall3?.address}=t,u=(r=t.signature,(0,b.isHex)(r)?r:"object"==typeof r&&"r"in r&&"s"in r?(0,v.serializeSignature)(r):(0,y.bytesToHex)(r));try{if(a.SignatureErc8010.validate(u))return await I(e,{...t,multicallAddress:s,signature:u});return await A(e,{...t,verifierAddress:i,signature:u})}catch(e){try{if((0,d.isAddressEqual)((0,l.getAddress)(n),await (0,g.recoverAddress)({hash:o,signature:u})))return!0}catch{}if(e instanceof O)return!1;throw e}}async function I(e,t){let{address:r,blockNumber:n,blockTag:s,hash:u,multicallAddress:l}=t,{authorization:d,data:b,signature:m,to:g}=a.SignatureErc8010.unwrap(t.signature);if(await (0,x.getCode)(e,{address:r,blockNumber:n,blockTag:s})===(0,p.concatHex)(["0xef0100",d.address]))return await T(e,{address:r,blockNumber:n,blockTag:s,hash:u,signature:m});let v={address:d.address,chainId:Number(d.chainId),nonce:Number(d.nonce),r:(0,y.numberToHex)(d.r,{size:32}),s:(0,y.numberToHex)(d.s,{size:32}),yParity:d.yParity};if(!await (0,f.verifyAuthorization)({address:r,authorization:v}))throw new O;let E=await (0,h.getAction)(e,w.readContract,"readContract")({...l?{address:l}:{code:i.multicall3Bytecode},authorizationList:[v],abi:o.multicall3Abi,blockNumber:n,blockTag:"pending",functionName:"aggregate3",args:[[...b?[{allowFailure:!0,target:g??r,callData:b}]:[],{allowFailure:!0,target:r,callData:(0,c.encodeFunctionData)({abi:o.erc1271Abi,functionName:"isValidSignature",args:[u,m]})}]]}),P=E[E.length-1]?.returnData;if(P?.startsWith("0x1626ba7e"))return!0;throw new O}async function A(e,t){let{address:r,factory:a,factoryData:l,hash:d,signature:f,verifierAddress:p,...b}=t,y=await (async()=>!a&&!l||n.SignatureErc6492.validate(f)?f:n.SignatureErc6492.wrap({data:l,signature:f,to:a}))(),g=p?{to:p,data:(0,c.encodeFunctionData)({abi:o.erc6492SignatureValidatorAbi,functionName:"isValidSig",args:[r,d,y]}),...b}:{data:(0,u.encodeDeployData)({abi:o.erc6492SignatureValidatorAbi,args:[r,d,y],bytecode:i.erc6492SignatureValidatorByteCode}),...b},{data:v}=await (0,h.getAction)(e,E.call,"call")(g).catch(e=>{if(e instanceof s.CallExecutionError)throw new O;throw e});if((0,m.hexToBool)(v??"0x0"))return!0;throw new O}async function T(e,t){let{address:r,blockNumber:n,blockTag:a,hash:i,signature:u}=t;if((await (0,h.getAction)(e,w.readContract,"readContract")({address:r,abi:o.erc1271Abi,args:[i,u],blockNumber:n,blockTag:a,functionName:"isValidSignature"}).catch(e=>{if(e instanceof s.ContractFunctionExecutionError)throw new O;throw e})).startsWith("0x1626ba7e"))return!0;throw new O}class O extends Error{}},56361:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RPC_CALLS=void 0,t.RPC_CALLS={eth_call:"eth_call",eth_gasPrice:"eth_gasPrice",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt",eth_getTransactionCount:"eth_getTransactionCount",eth_estimateGas:"eth_estimateGas",safe_setSettings:"safe_setSettings"}},56391:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getUrl=t.getContractAddress=void 0,t.getContractAddress=e=>e,t.getUrl=e=>e},56402:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.serializeErc6492Signature=function(e){let{address:t,data:r,signature:s,to:u="hex"}=e,c=(0,o.concatHex)([(0,a.encodeAbiParameters)([{type:"address"},{type:"bytes"},{type:"bytes"}],[t,r,s]),n.erc6492MagicBytes]);return"hex"===u?c:(0,i.hexToBytes)(c)};let n=r(67351),a=r(70209),o=r(78917),i=r(96978)},56457:(e,t)=>
9{Object.defineProperty(t,"__esModule",{value:!0}),t.createFilterRequestScope=function(e,{method:t}){let r={};return"fallback"===e.transport.type&&e.transport.onResponse?.(({method:e,response:n,status:a,transport:o})=>{"success"===a&&t===e&&(r[n]=o.request)}),t=>r[t]||e.request}},57357:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},57509:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LruMap=void 0;class r 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)&&void 0!==t&&(this.delete(e),super.set(e,t)),t}set(e,t){if(super.set(e,t),this.maxSize&&this.size>this.maxSize){let e=this.keys().next().value;e&&this.delete(e)}return this}}t.LruMap=r},57737:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=void 0,t.stringify=(e,t,r)=>JSON.stringify(e,(e,r)=>{let n="bigint"==typeof r?r.toString():r;return"function"==typeof t?t(e,n):n},r)},57889:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.multicall=b;let n=r(5223),a=r(58527),o=r(95664),i=r(33911),s=r(81660),u=r(84212),c=r(63997),l=r(89007),d=r(67916),f=r(78234),p=r(36110);async function b(e,t){let{account:r,authorizationList:b,allowFailure:m=!0,blockNumber:y,blockOverrides:h,blockTag:g,stateOverride:v}=t,E=t.contracts,{batchSize:x=t.batchSize??1024,deployless:w=t.deployless??!1}="object"==typeof e.batch?.multicall?e.batch.multicall:{},P=(()=>{if(t.multicallAddress)return t.multicallAddress;if(w)return null;if(e.chain)return(0,l.getChainContractAddress)({blockNumber:y,chain:e.chain,contract:"multicall3"});throw Error("client chain not configured. multicallAddress is required.")})(),I=[[]],A=0,T=0;for(let e=0;e<E.length;e++){let{abi:t,address:n,args:a,functionName:o}=E[e];try{let e=(0,c.encodeFunctionData)({abi:t,args:a,functionName:o});T+=(e.length-2)/2,x>0&&T>x&&I[A].length>0&&(A++,T=(e.length-2)/2,I[A]=[]),I[A]=[...I[A],{allowFailure:!0,callData:e,target:n}]}catch(i){let e=(0,d.getContractError)(i,{abi:t,address:n,args:a,docsPath:"/docs/contract/multicall",functionName:o,sender:r});if(!m)throw e;I[A]=[...I[A],{allowFailure:!0,callData:"0x",target:n}]}}let O=await Promise.allSettled(I.map(t=>(0,f.getAction)(e,p.readContract,"readContract")({...null===P?{code:a.multicall3Bytecode}:{address:P},abi:n.multicall3Abi,account:r,args:[t],authorizationList:b,blockNumber:y,blockOverrides:h,blockTag:g,functionName:"aggregate3",stateOverride:v}))),B=[];for(let e=0;e<O.length;e++){let t=O[e];if("rejected"===t.status){if(!m)throw t.reason;for(let r=0;r<I[e].length;r++)B.push({status:"failure",error:t.reason,result:void 0});continue}let r=t.value;for(let t=0;t<r.length;t++){let{returnData:n,success:a}=r[t],{callData:i}=I[e][t],{abi:c,address:l,functionName:f,args:p}=E[B.length];try{if("0x"===i)throw new o.AbiDecodingZeroDataError;if(!a)throw new s.RawContractError({data:n});let e=(0,u.decodeFunctionResult)({abi:c,args:p,data:n,functionName:f});B.push(m?{result:e,status:"success"}:e)}catch(t){let e=(0,d.getContractError)(t,{abi:c,address:l,args:p,docsPath:"/docs/contract/multicall",functionName:f});if(!m)throw e;B.push({error:e,result:void 0,status:"failure"})}}}if(B.length!==E.length)throw new i.BaseError("multicall results mismatch");return B}},58184:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parse=function(e,t){return JSON.parse(e,(e,n)=>"string"==typeof n&&n.endsWith(r)?BigInt(n.slice(0,-r.length)):"function"==typeof t?t(e,n):n)},t.stringify=function(e,t,n){return JSON.stringify(e,(e,n)=>"function"==typeof t?t(e,n):"bigint"==typeof n?n.toString()+r:n,n)};let r="#__bigint"},58446:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isTupleRegex=t.integerRegex=t.bytesRegex=void 0,t.execTyped=function(e,t){let r=e.exec(t);return r?.groups},t.bytesRegex=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,t.integerRegex=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,t.isTupleRegex=/^\(.+?\).*?$/},58496:(e,t,r)=>
9{Object.defineProperty(t,"__esModule",{value:!0}),t.parseTransaction=function(e){let t=(0,b.getSerializedTransactionType)(e);return"eip1559"===t?function(e){let t=m(e),[r,n,o,i,u,c,d,f,b,g,v,E]=t;if(9!==t.length&&12!==t.length)throw new a.InvalidSerializedTransactionError({attributes:{chainId:r,nonce:n,maxPriorityFeePerGas:o,maxFeePerGas:i,gas:u,to:c,value:d,data:f,accessList:b,...t.length>9?{v:g,r:v,s:E}:{}},serializedTransaction:e,type:"eip1559"});let x={chainId:(0,l.hexToNumber)(r),type:"eip1559"};return(0,s.isHex)(c)&&"0x"!==c&&(x.to=c),(0,s.isHex)(u)&&"0x"!==u&&(x.gas=(0,l.hexToBigInt)(u)),(0,s.isHex)(f)&&"0x"!==f&&(x.data=f),(0,s.isHex)(n)&&(x.nonce="0x"===n?0:(0,l.hexToNumber)(n)),(0,s.isHex)(d)&&"0x"!==d&&(x.value=(0,l.hexToBigInt)(d)),(0,s.isHex)(i)&&"0x"!==i&&(x.maxFeePerGas=(0,l.hexToBigInt)(i)),(0,s.isHex)(o)&&"0x"!==o&&(x.maxPriorityFeePerGas=(0,l.hexToBigInt)(o)),0!==b.length&&"0x"!==b&&(x.accessList=y(b)),(0,p.assertTransactionEIP1559)(x),{...12===t.length?h(t):void 0,...x}}(e):"eip2930"===t?function(e){let t=m(e),[r,n,o,i,u,c,d,f,b,g,v]=t;if(8!==t.length&&11!==t.length)throw new a.InvalidSerializedTransactionError({attributes:{chainId:r,nonce:n,gasPrice:o,gas:i,to:u,value:c,data:d,accessList:f,...t.length>8?{v:b,r:g,s:v}:{}},serializedTransaction:e,type:"eip2930"});let E={chainId:(0,l.hexToNumber)(r),type:"eip2930"};return(0,s.isHex)(u)&&"0x"!==u&&(E.to=u),(0,s.isHex)(i)&&"0x"!==i&&(E.gas=(0,l.hexToBigInt)(i)),(0,s.isHex)(d)&&"0x"!==d&&(E.data=d),(0,s.isHex)(n)&&(E.nonce="0x"===n?0:(0,l.hexToNumber)(n)),(0,s.isHex)(c)&&"0x"!==c&&(E.value=(0,l.hexToBigInt)(c)),(0,s.isHex)(o)&&"0x"!==o&&(E.gasPrice=(0,l.hexToBigInt)(o)),0!==f.length&&"0x"!==f&&(E.accessList=y(f)),(0,p.assertTransactionEIP2930)(E),{...11===t.length?h(t):void 0,...E}}(e):"eip4844"===t?function(e){let t=m(e),r=4===t.length,n=r?t[0]:t,o=r?t.slice(1):[],[u,c,d,f,b,g,v,E,x,w,P,I,A,T]=n,[O,B,S]=o;if(11!==n.length&&14!==n.length)throw new a.InvalidSerializedTransactionError({attributes:{chainId:u,nonce:c,maxPriorityFeePerGas:d,maxFeePerGas:f,gas:b,to:g,value:v,data:E,accessList:x,...n.length>9?{v:I,r:A,s:T}:{}},serializedTransaction:e,type:"eip4844"});let j={blobVersionedHashes:P,chainId:(0,l.hexToNumber)(u),to:g,type:"eip4844"};return(0,s.isHex)(b)&&"0x"!==b&&(j.gas=(0,l.hexToBigInt)(b)),(0,s.isHex)(E)&&"0x"!==E&&(j.data=E),(0,s.isHex)(c)&&(j.nonce="0x"===c?0:(0,l.hexToNumber)(c)),(0,s.isHex)(v)&&"0x"!==v&&(j.value=(0,l.hexToBigInt)(v)),(0,s.isHex)(w)&&"0x"!==w&&(j.maxFeePerBlobGas=(0,l.hexToBigInt)(w)),(0,s.isHex)(f)&&"0x"!==f&&(j.maxFeePerGas=(0,l.hexToBigInt)(f)),(0,s.isHex)(d)&&"0x"!==d&&(j.maxPriorityFeePerGas=(0,l.hexToBigInt)(d)),0!==x.length&&"0x"!==x&&(j.accessList=y(x)),O&&B&&S&&(j.sidecars=(0,i.toBlobSidecars)({blobs:O,commitments:B,proofs:S})),(0,p.assertTransactionEIP4844)(j),{...14===n.length?h(n):void 0,...j}}(e):"eip7702"===t?function(e){let t=m(e),[r,n,o,i,u,c,d,f,b,g,v,E,x]=t;if(10!==t.length&&13!==t.length)throw new a.InvalidSerializedTransactionError({attributes:{chainId:r,nonce:n,maxPriorityFeePerGas:o,maxFeePerGas:i,gas:u,to:c,value:d,data:f,accessList:b,authorizationList:g,...t.length>9?{v,r:E,s:x}:{}},serializedTransaction:e,type:"eip7702"});let w={chainId:(0,l.hexToNumber)(r),type:"eip7702"};return(0,s.isHex)(c)&&"0x"!==c&&(w.to=c),(0,s.isHex)(u)&&"0x"!==u&&(w.gas=(0,l.hexToBigInt)(u)),(0,s.isHex)(f)&&"0x"!==f&&(w.data=f),(0,s.isHex)(n)&&(w.nonce="0x"===n?0:(0,l.hexToNumber)(n)),(0,s.isHex)(d)&&"0x"!==d&&(w.value=(0,l.hexToBigInt)(d)),(0,s.isHex)(i)&&"0x"!==i&&(w.maxFeePerGas=(0,l.hexToBigInt)(i)),(0,s.isHex)(o)&&"0x"!==o&&(w.maxPriorityFeePerGas=(0,l.hexToBigInt)(o)),0!==b.length&&"0x"!==b&&(w.accessList=y(b)),0!==g.length&&"0x"!==g&&(w.authorizationList=function(e){let t=[];for(let r=0;r<e.length;r++){let[n,a,o,i,s,u]=e[r];t.push({address:a,chainId:"0x"===n?0:(0,l.hexToNumber)(n),nonce:"0x"===o?0:(0,l.hexToNumber)(o),...h([i,s,u])})}return t}(g)),(0,p.assertTransactionEIP7702)(w),{...13===t.length?h(t):void 0,...w}}(e):function(e){let t=(0,d.fromRlp)(e,"hex"),[r,n,o,i,u,c,f,b,m]=t;if(6!==t.length&&9!==t.length)throw new a.InvalidSerializedTransactionError({attributes:{nonce:r,gasPrice:n,gas:o,to:i,value:u,data:c,...t.length>6?{v:f,r:b,s:m}:{}},serializedTransaction:e,type:"legacy"});let y={type:"legacy"};
9if((0,s.isHex)(i)&&"0x"!==i&&(y.to=i),(0,s.isHex)(o)&&"0x"!==o&&(y.gas=(0,l.hexToBigInt)(o)),(0,s.isHex)(c)&&"0x"!==c&&(y.data=c),(0,s.isHex)(r)&&(y.nonce="0x"===r?0:(0,l.hexToNumber)(r)),(0,s.isHex)(u)&&"0x"!==u&&(y.value=(0,l.hexToBigInt)(u)),(0,s.isHex)(n)&&"0x"!==n&&(y.gasPrice=(0,l.hexToBigInt)(n)),(0,p.assertTransactionLegacy)(y),6===t.length)return y;let h=(0,s.isHex)(f)&&"0x"!==f?(0,l.hexToBigInt)(f):0n;if("0x"===m&&"0x"===b)return h>0&&(y.chainId=Number(h)),y;let g=Number((h-35n)/2n);if(g>0)y.chainId=g;else if(27n!==h&&28n!==h)throw new a.InvalidLegacyVError({v:h});return y.v=h,y.s=m,y.r=b,y.yParity=+(h%2n===0n),y}(e)},t.toTransactionArray=m,t.parseAccessList=y;let n=r(47730),a=r(2922),o=r(1199),i=r(88062),s=r(10858),u=r(29822),c=r(24141),l=r(85319),d=r(39988),f=r(38493),p=r(88465),b=r(44191);function m(e){return(0,d.fromRlp)(`0x${e.slice(4)}`,"hex")}function y(e){let t=[];for(let r=0;r<e.length;r++){let[a,i]=e[r];if(!(0,o.isAddress)(a,{strict:!1}))throw new n.InvalidAddressError({address:a});t.push({address:a,storageKeys:i.map(e=>(0,f.isHash)(e)?e:(0,c.trim)(e))})}return t}function h(e){let t=e.slice(-3),r="0x"===t[0]||0n===(0,l.hexToBigInt)(t[0])?27n:28n;return{r:(0,u.padHex)(t[1],{size:32}),s:(0,u.padHex)(t[2],{size:32}),v:r,yParity:+(27n!==r)}}},58515:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SizeExceedsPaddingSizeError=t.SliceOffsetOutOfBoundsError=t.SizeOverflowError=t.InvalidLengthError=t.InvalidHexValueError=t.InvalidHexTypeError=t.InvalidHexBooleanError=t.IntegerOutOfRangeError=void 0,t.assert=d,t.concat=function(...e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`},t.from=function(e){return e instanceof Uint8Array?f(e):Array.isArray(e)?f(new Uint8Array(e)):e},t.fromBoolean=function(e,t={}){let r=`0x${Number(e)}`;return"number"==typeof t.size?(s.assertSize(r,t.size),p(r,t.size)):r},t.fromBytes=f,t.fromNumber=function(e,t={}){let r,{signed:n,size:a}=t,o=BigInt(e);a?r=n?(1n<<8n*BigInt(a)-1n)-1n:2n**(8n*BigInt(a))-1n:"number"==typeof e&&(r=BigInt(Number.MAX_SAFE_INTEGER));let i="bigint"==typeof r&&n?-r-1n:0;if(r&&o>r||o<i){let t="bigint"==typeof e?"n":"";throw new h({max:r?`${r}${t}`:void 0,min:`${i}${t}`,signed:n,size:a,value:`${e}${t}`})}let s=(n&&o<0?(1n<<BigInt(8*a))+BigInt(o):o).toString(16),u=`0x${s}`;return a?p(u,a):u},t.fromString=function(e,t={}){return f(c.encode(e),t)},t.isEqual=function(e,t){return(0,n.equalBytes)(a.fromHex(e),a.fromHex(t))},t.padLeft=p,t.padRight=b,t.random=function(e){return f(a.random(e))},t.slice=function(e,t,r,n={}){let{strict:a}=n;s.assertStartOffset(e,t);let o=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return a&&s.assertEndOffset(o,t,r),o},t.size=function(e){return Math.ceil((e.length-2)/2)},t.trimLeft=m,t.trimRight=function(e){return s.trim(e,{dir:"right"})},t.toBigInt=y,t.toBoolean=function(e,t={}){t.size&&s.assertSize(e,t.size);let r=m(e);if("0x"===r)return!1;if("0x1"===r)return!0;throw new g(e)},t.toBytes=function(e,t={}){return a.fromHex(e,t)},t.toNumber=function(e,t={}){let{signed:r,size:n}=t;return r||n?Number(y(e,t)):Number(e)},t.toString=function(e,t={}){let{size:r}=t,n=a.fromHex(e);return r&&(i.assertSize(n,r),n=a.trimRight(n)),new TextDecoder().decode(n)},t.validate=function(e,t={}){let{strict:r=!1}=t;try{return d(e,{strict:r}),!0}catch{return!1}};let n=r(81906),a=r(33745),o=r(45189),i=r(33023),s=r(25705),u=r(58184),c=new TextEncoder,l=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function d(e,t={}){let{strict:r=!1}=t;if(!e||"string"!=typeof e)throw new v(e);if(r&&!/^0x[0-9a-fA-F]*$/.test(e)||!e.startsWith("0x"))throw new E(e)}function f(e,t={}){let r="";for(let t=0;t<e.length;t++)r+=l[e[t]];let n=`0x${r}`;return"number"==typeof t.size?(s.assertSize(n,t.size),b(n,t.size)):n}function p(e,t){return s.pad(e,{dir:"left",size:t})}function b(e,t){return s.pad(e,{dir:"right",size:t})}function m(e){return s.trim(e,{dir:"left"})}function y(e,t={}){let{signed:r}=t;t.size&&s.assertSize(e,t.size);let n=BigInt(e);if(!r)return n;let a=(1n<<8n*BigInt((e.length-2)/2))-1n;return n<=a>>1n?n:n-a-1n}class h extends o.BaseError{constructor({max:e,min:t,signed:r,size:n,value:a}){super(`Number \`${a}\` is not in safe${n?` ${8*n}-bit`:""}${r?" signed":" unsigned"} integer range ${e?`(\`${t}\` to \`${e}\`)`:`(above \`${t}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}}t.IntegerOutOfRangeError=h;class g extends o.BaseError{constructor(e){super(`Hex value \`"${e}"\` is not a valid boolean.`,{metaMessages:['The hex value must be `"0x0"` (false) or `"0x1"` (true).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexBooleanError"})}}t.InvalidHexBooleanError=g;class v extends o.BaseError{constructor(e){super(`Value \`${"object"==typeof e?u.stringify(e):e}\` of type \`${typeof e}
9\` 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"})}}t.InvalidHexTypeError=v;class E extends o.BaseError{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"})}}t.InvalidHexValueError=E;class x extends o.BaseError{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"})}}t.InvalidLengthError=x;class w extends o.BaseError{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}}t.SizeOverflowError=w;class P extends o.BaseError{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset \`${e}\` is out-of-bounds (size: \`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SliceOffsetOutOfBoundsError"})}}t.SliceOffsetOutOfBoundsError=P;class I extends o.BaseError{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}}t.SizeExceedsPaddingSizeError=I},58527:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.multicall3Bytecode=t.erc6492SignatureValidatorByteCode=t.deploylessCallViaFactoryBytecode=t.deploylessCallViaBytecodeBytecode=void 0,t.deploylessCallViaBytecodeBytecode="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",t.deploylessCallViaFactoryBytecode="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",t.erc6492SignatureValidatorByteCode="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b
960405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848
9603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572",t.multicall3Bytecode="0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9
9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033"},58799:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.watchPendingTransactions=function(e,{batch:t=!0,onError:r,onTransactions:l,poll:d,pollingInterval:f=e.pollingInterval}){let p,b,m;return(void 0!==d?d:"webSocket"!==e.transport.type&&"ipc"!==e.transport.type)?(p=(0,i.stringify)(["watchPendingTransactions",e.uid,t,f]),(0,a.observe)(p,{onTransactions:l,onError:r},r=>{let a,i=(0,o.poll)(async()=>{try{if(!a)try{a=await (0,n.getAction)(e,s.createPendingTransactionFilter,"createPendingTransactionFilter")({});return}catch(e){throw i(),e}let o=await (0,n.getAction)(e,u.getFilterChanges,"getFilterChanges")({filter:a});if(0===o.length)return;if(t)r.onTransactions(o);else for(let e of o)r.onTransactions([e])}catch(e){r.onError?.(e)}},{emitOnBegin:!0,interval:f});return async()=>{a&&await (0,n.getAction)(e,c.uninstallFilter,"uninstallFilter")({filter:a}),i()}})):(b=!0,m=()=>b=!1,(async()=>{try{let{unsubscribe:t}=await e.transport.subscribe({params:["newPendingTransactions"],onData(e){if(!b)return;let t=e.result;l([t])},onError(e){r?.(e)}});m=t,b||m()}catch(e){r?.(e)}})(),()=>m())};
9let n=r(78234),a=r(8156),o=r(33593),i=r(57737),s=r(61103),u=r(21815),c=r(53620)},58906:(e,t)=>{async function r(e){return e.request({method:`${e.mode}_dumpState`})}Object.defineProperty(t,"__esModule",{value:!0}),t.dumpState=r},59342:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PermissionsError=t.PERMISSIONS_REQUEST_REJECTED=void 0,t.PERMISSIONS_REQUEST_REJECTED=4001;class r extends Error{constructor(e,t,n){super(e),this.code=t,this.data=n,Object.setPrototypeOf(this,r.prototype)}}t.PermissionsError=r},59484:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createContractEventFilter=i;let n=r(34736),a=r(37264),o=r(56457);async function i(e,t){let{address:r,abi:i,args:s,eventName:u,fromBlock:c,strict:l,toBlock:d}=t,f=(0,o.createFilterRequestScope)(e,{method:"eth_newFilter"}),p=u?(0,n.encodeEventTopics)({abi:i,args:s,eventName:u}):void 0,b=await e.request({method:"eth_newFilter",params:[{address:r,fromBlock:"bigint"==typeof c?(0,a.numberToHex)(c):c,toBlock:"bigint"==typeof d?(0,a.numberToHex)(d):d,topics:p}]});return{abi:i,args:s,eventName:u,id:b,request:f(b),strict:!!l,type:"event"}}},60164:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.addChain=a;let n=r(37264);async function a(e,{chain:t}){let{id:r,name:o,nativeCurrency:i,rpcUrls:s,blockExplorers:u}=t;await e.request({method:"wallet_addEthereumChain",params:[{chainId:(0,n.numberToHex)(r),chainName:o,nativeCurrency:i,rpcUrls:s.default.http,blockExplorerUrls:u?Object.values(u).map(({url:e})=>e):void 0}]},{dedupe:!0,retryCount:0})}},60976:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.keccak256=function(e,t){let r=(0,n.keccak_256)((0,a.isHex)(e,{strict:!1})?(0,o.toBytes)(e):e);return"bytes"===(t||"hex")?r:(0,i.toHex)(r)};let n=r(11813),a=r(10858),o=r(96978),i=r(37264)},61103:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createPendingTransactionFilter=a;let n=r(56457);async function a(e){let t=(0,n.createFilterRequestScope)(e,{method:"eth_newPendingTransactionFilter"}),r=await e.request({method:"eth_newPendingTransactionFilter"});return{id:r,request:t(r),type:"transaction"}}},62082:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MaxFeePerGasTooLowError=t.Eip1559FeesNotSupportedError=t.BaseFeeScalarError=void 0;let n=r(88524),a=r(33911);class o extends a.BaseError{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}t.BaseFeeScalarError=o;class i extends a.BaseError{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}t.Eip1559FeesNotSupportedError=i;class s extends a.BaseError{constructor({maxPriorityFeePerGas:e}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${(0,n.formatGwei)(e)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}t.MaxFeePerGasTooLowError=s},62265:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.webSocket=function(e,t={}){let{keepAlive:r,key:u="webSocket",methods:c,name:l="WebSocket JSON-RPC",reconnect:d,retryDelay:f}=t;return({chain:p,retryCount:b,timeout:m})=>{let y=t.retryCount??b,h=m??t.timeout??1e4,g=e||p?.rpcUrls.default.webSocket?.[0],v={keepAlive:r,reconnect:d};if(!g)throw new a.UrlRequiredError;return(0,s.createTransport)({key:u,methods:c,name:l,async request({method:e,params:t}){let r={method:e,params:t},a=await (0,i.getWebSocketRpcClient)(g,v),{error:o,result:s}=await a.requestAsync({body:r,timeout:h});if(o)throw new n.RpcRequestError({body:r,error:o,url:g});return s},retryCount:y,retryDelay:f,timeout:h,type:"webSocket"},{getSocket:()=>(0,o.getSocket)(g),getRpcClient:()=>(0,i.getWebSocketRpcClient)(g,v),async subscribe({params:e,onData:t,onError:r}){let n=await (0,i.getWebSocketRpcClient)(g,v),{result:a}=await new Promise((a,o)=>n.request({body:{method:"eth_subscribe",params:e},onError(e){o(e),r?.(e)},onResponse(e){if(e.error){o(e.error),r?.(e.error);return}"number"==typeof e.id?a(e):"eth_subscription"===e.method&&t(e.params)}}));return{subscriptionId:a,unsubscribe:async()=>new Promise(e=>n.request({body:{method:"eth_unsubscribe",params:[a]},onResponse:e}))}}})}};let n=r(26019),a=r(51255),o=r(26178),i=r(32835),s=r(66643)},62652:(e,t,r)=>
9{Object.defineProperty(t,"__esModule",{value:!0}),t.simulateBlocks=v;let n=r(40668),a=r(25055),o=r(95664),i=r(81660),s=r(35342),u=r(84212),c=r(63997),l=r(78917),d=r(37264),f=r(67916),p=r(88214),b=r(21081),m=r(64234),y=r(75621),h=r(33525),g=r(98048);async function v(e,t){let{blockNumber:r,blockTag:v=e.experimental_blockTag??"latest",blocks:E,returnFullTransactions:x,traceTransfers:w,validation:P}=t;try{let t=[];for(let e of E){let r=e.blockOverrides?n.toRpc(e.blockOverrides):void 0,o=e.calls.map(e=>{let t=e.account?(0,a.parseAccount)(e.account):void 0,r=e.abi?(0,c.encodeFunctionData)(e):e.data,n={...e,data:e.dataSuffix?(0,l.concat)([r||"0x",e.dataSuffix]):r,from:e.from??t?.address};return(0,g.assertRequest)(n),(0,y.formatTransactionRequest)(n)}),i=e.stateOverrides?(0,h.serializeStateOverride)(e.stateOverrides):void 0;t.push({blockOverrides:r,calls:o,stateOverrides:i})}let s="bigint"==typeof r?(0,d.numberToHex)(r):void 0;return(await e.request({method:"eth_simulateV1",params:[{blockStateCalls:t,returnFullTransactions:x,traceTransfers:w,validation:P},s||v]})).map((e,t)=>({...(0,b.formatBlock)(e),calls:e.calls.map((e,r)=>{let{abi:n,args:a,functionName:s,to:c}=E[t].calls[r],l=e.error?.data??e.returnData,d=BigInt(e.gasUsed),p=e.logs?.map(e=>(0,m.formatLog)(e)),b="0x1"===e.status?"success":"failure",y=n&&"success"===b&&"0x"!==l?(0,u.decodeFunctionResult)({abi:n,data:l,functionName:s}):null,h=(()=>{let t;if("success"!==b&&(e.error?.data==="0x"?t=new o.AbiDecodingZeroDataError:e.error&&(t=new i.RawContractError(e.error)),t))return(0,f.getContractError)(t,{abi:n??[],address:c??"0x",args:a,functionName:s??"<unknown>"})})();return{data:l,gasUsed:d,logs:p,status:b,..."success"===b?{result:y}:{error:h}}})}))}catch(t){let e=(0,p.getNodeError)(t,{});if(e instanceof s.UnknownNodeError)throw t;throw e}}},63644:(e,t)=>{async function r(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]},{retryCount:0})}Object.defineProperty(t,"__esModule",{value:!0}),t.sendRawTransaction=r},63894:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionError=function(e,{docsPath:t,...r}){let i,s=(i=(0,o.getNodeError)(e,r))instanceof n.UnknownNodeError?e:i;return new a.TransactionExecutionError(s,{docsPath:t,...r})};let n=r(35342),a=r(2922),o=r(88214)},63988:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.withRetry=function(e,{delay:t=100,retryCount:r=2,shouldRetry:a=()=>!0}={}){return new Promise((o,i)=>{let s=async({count:u=0}={})=>{let c=async({error:e})=>{let r="function"==typeof t?t({count:u,error:e}):t;r&&await (0,n.wait)(r),s({count:u+1})};try{let t=await e();o(t)}catch(e){if(u<r&&await a({count:u,error:e}))return c({error:e});i(e)}};s()})};let n=r(87637)},63997:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.encodeFunctionData=function(e){let{args:t}=e,{abi:r,functionName:i}=1===e.abi.length&&e.functionName?.startsWith("0x")?e:(0,o.prepareEncodeFunctionData)(e),s=r[0],u="inputs"in s&&s.inputs?(0,a.encodeAbiParameters)(s.inputs,t??[]):void 0;return(0,n.concatHex)([i,u??"0x"])};let n=r(78917),a=r(70209),o=r(8768)},64234:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatLog=function(e,{args:t,eventName:r}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...r?{args:t,eventName:r}:{}}}},64242:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createEventFilter=i;let n=r(34736),a=r(37264),o=r(56457);async function i(e,{address:t,args:r,event:s,events:u,fromBlock:c,strict:l,toBlock:d}={}){let f=u??(s?[s]:void 0),p=(0,o.createFilterRequestScope)(e,{method:"eth_newFilter"}),b=[];f&&(b=[f.flatMap(e=>(0,n.encodeEventTopics)({abi:[e],eventName:e.name,args:r}))],s&&(b=b[0]));let m=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"==typeof c?(0,a.numberToHex)(c):c,toBlock:"bigint"==typeof d?(0,a.numberToHex)(d):d,...b.length?{topics:b}:{}}]});return{abi:f,args:r,eventName:s?s.name:void 0,fromBlock:c,id:m,request:p(m),strict:!!l,toBlock:d,type:"event"}}},64458:(e,t)=>
9{Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="0.1.1"},64549:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.watchBlocks=function(e,{blockTag:t=e.experimental_blockTag??"latest",emitMissed:r=!1,emitOnBegin:u=!1,onBlock:c,onError:l,includeTransactions:d,poll:f,pollingInterval:p=e.pollingInterval}){let b,m,y,h,g,v=void 0!==f?f:"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].config.type&&"ipc"!==e.transport.transports[0].config.type),E=d??!1;return v?(m=(0,i.stringify)(["watchBlocks",e.uid,t,r,u,E,p]),(0,a.observe)(m,{onBlock:c,onError:l},a=>(0,o.poll)(async()=>{try{let o=await (0,n.getAction)(e,s.getBlock,"getBlock")({blockTag:t,includeTransactions:E});if(null!==o.number&&b?.number!=null){if(o.number===b.number)return;if(o.number-b.number>1&&r)for(let t=b?.number+1n;t<o.number;t++){let r=await (0,n.getAction)(e,s.getBlock,"getBlock")({blockNumber:t,includeTransactions:E});a.onBlock(r,b),b=r}}(b?.number==null||"pending"===t&&o?.number==null||null!==o.number&&o.number>b.number)&&(a.onBlock(o,b),b=o)}catch(e){a.onError?.(e)}},{emitOnBegin:u,interval:p}))):(y=!0,h=!0,g=()=>y=!1,(async()=>{try{u&&(0,n.getAction)(e,s.getBlock,"getBlock")({blockTag:t,includeTransactions:E}).then(e=>{!y||h&&(c(e,void 0),h=!1)}).catch(l);let r=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type||"ipc"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:a}=await r.subscribe({params:["newHeads"],async onData(t){if(!y)return;let r=await (0,n.getAction)(e,s.getBlock,"getBlock")({blockNumber:t.result?.number,includeTransactions:E}).catch(()=>{});y&&(c(r,b),h=!1,b=r)},onError(e){l?.(e)}});g=a,y||g()}catch(e){l?.(e)}})(),()=>g())};let n=r(78234),a=r(8156),o=r(33593),i=r(57737),s=r(73817)},64702:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.assertCurrentChain=function({chain:e,currentChainId:t}){if(!e)throw new n.ChainNotFoundError;if(t!==e.id)throw new n.ChainMismatchError({chain:e,currentChainId:t})};let n=r(10131)},64939:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sendRawTransactionSync=o;let n=r(15152),a=r(47748);async function o(e,{serializedTransaction:t,timeout:r}){let i=await e.request({method:"eth_sendRawTransactionSync",params:r?[t,(0,a.numberToHex)(r)]:[t]},{retryCount:0});return(e.chain?.formatters?.transactionReceipt?.format||n.formatTransactionReceipt)(i)}},65048:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let a=n(r(2387)),o=r(88458),i=r(38892),s=r(75314),u=r(20542);class c{constructor(e={}){const{allowedDomains:t=null,debug:r=!1}=e;this.communicator=new a.default(t,r),this.eth=new i.Eth(this.communicator),this.txs=new o.TXs(this.communicator),this.safe=new s.Safe(this.communicator),this.wallet=new u.Wallet(this.communicator)}}t.default=c},65866:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.verifyHash=i;let n=r(43333),a=r(29609),o=r(50807);async function i({address:e,hash:t,signature:r}){return(0,a.isAddressEqual)((0,n.getAddress)(e),await (0,o.recoverAddress)({hash:t,signature:r}))}},65949:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.fromBytes=function(e,t){let r="string"==typeof t?{to:t}:t,n=r.to;return"number"===n?c(e,r):"bigint"===n?s(e,r):"boolean"===n?u(e,r):"string"===n?l(e,r):(0,i.bytesToHex)(e,r)},t.bytesToBigInt=s,t.bytesToBool=u,t.bytesToNumber=c,t.bytesToString=l;let n=r(36119),a=r(24141),o=r(85319),i=r(37264);function s(e,t={}){void 0!==t.size&&(0,o.assertSize)(e,{size:t.size});let r=(0,i.bytesToHex)(e,t);return(0,o.hexToBigInt)(r,t)}function u(e,t={}){let r=e;if(void 0!==t.size&&((0,o.assertSize)(r,{size:t.size}),r=(0,a.trim)(r)),r.length>1||r[0]>1)throw new n.InvalidBytesBooleanError(r);return!!r[0]}function c(e,t={}){void 0!==t.size&&(0,o.assertSize)(e,{size:t.size});let r=(0,i.bytesToHex)(e,t);return(0,o.hexToNumber)(r,t)}function l(e,t={}){let r=e;return void 0!==t.size&&((0,o.assertSize)(r,{size:t.size}),r=(0,a.trim)(r,{dir:"right"})),new TextDecoder().decode(r)}},66201:(e,t,r)=>
9{Object.defineProperty(t,"__esModule",{value:!0}),t.promiseCache=void 0,t.withDedupe=function(e,{enabled:r=!0,id:n}){if(!r||!n)return e();if(t.promiseCache.get(n))return t.promiseCache.get(n);let a=e().finally(()=>t.promiseCache.delete(n));return t.promiseCache.set(n,a),a},t.promiseCache=new(r(26165)).LruMap(8192)},66643:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createTransport=function({key:e,methods:t,name:r,request:o,retryCount:i=3,retryDelay:s=150,timeout:u,type:c},l){let d=(0,a.uid)();return{config:{key:e,methods:t,name:r,request:o,retryCount:i,retryDelay:s,timeout:u,type:c},request:(0,n.buildRequest)(o,{methods:t,retryCount:i,retryDelay:s,uid:d}),value:l}};let n=r(72517),a=r(84198)},66687:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.from=s,t.fromRpc=u,t.fromRpcList=function(e){return e.map(u)},t.fromTuple=c,t.fromTupleList=function(e){let t=[];for(let r of e)t.push(c(r));return t},t.getSignPayload=function(e){return l(e,{presign:!0})},t.hash=l,t.toRpc=d,t.toRpcList=function(e){return e.map(d)},t.toTuple=f,t.toTupleList=function(e){if(!e||0===e.length)return[];let t=[];for(let r of e)t.push(f(r));return t};let n=r(87358),a=r(58515),o=r(16992),i=r(70160);function s(e,t={}){return"string"==typeof e.chainId?u(e):{...e,...t.signature}}function u(e){let{address:t,chainId:r,nonce:n}=e,a=i.extract(e);return{address:t,chainId:Number(r),nonce:BigInt(n),...a}}function c(e){let[t,r,n,a,o,u]=e,c={address:r,chainId:"0x"===t?0:Number(t),nonce:"0x"===n?0n:BigInt(n)};return a&&o&&u&&(c={...c,...i.fromTuple([a,o,u])}),s(c)}function l(e,t={}){let{presign:r}=t;return n.keccak256(a.concat("0x05",o.fromHex(f(r?{address:e.address,chainId:e.chainId,nonce:e.nonce}:e))))}function d(e){let{address:t,chainId:r,nonce:n,...o}=e;return{address:t,chainId:a.fromNumber(r),nonce:a.fromNumber(n),...i.toRpc(o)}}function f(e){let{address:t,chainId:r,nonce:n}=e,o=i.extract(e);return[r?a.fromNumber(r):"0x",t,n?a.fromNumber(n):"0x",...o?i.toTuple(o):[]]}},66988:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getStorageAt=a;let n=r(37264);async function a(e,{address:t,blockNumber:r,blockTag:o="latest",slot:i}){let s=void 0!==r?(0,n.numberToHex)(r):void 0;return await e.request({method:"eth_getStorageAt",params:[t,i,s||o]})}},67351:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.zeroHash=t.erc6492MagicBytes=void 0,t.erc6492MagicBytes="0x6492649264926492649264926492649264926492649264926492649264926492",t.zeroHash="0x0000000000000000000000000000000000000000000000000000000000000000"},67646:(e,t)=>{async function r(e){return BigInt(await e.request({method:"eth_blobBaseFee"}))}Object.defineProperty(t,"__esModule",{value:!0}),t.getBlobBaseFee=r},67672:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getTransaction=i;let n=r(2922),a=r(37264),o=r(14680);async function i(e,{blockHash:t,blockNumber:r,blockTag:s,hash:u,index:c}){let l=s||"latest",d=void 0!==r?(0,a.numberToHex)(r):void 0,f=null;if(u?f=await e.request({method:"eth_getTransactionByHash",params:[u]},{dedupe:!0}):t?f=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,(0,a.numberToHex)(c)]},{dedupe:!0}):(d||l)&&(f=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[d||l,(0,a.numberToHex)(c)]},{dedupe:!!d})),!f)throw new n.TransactionNotFoundError({blockHash:t,blockNumber:r,blockTag:l,hash:u,index:c});return(e.chain?.formatters?.transaction?.format||o.formatTransaction)(f,"getTransaction")}},67916:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getContractError=function(e,{abi:t,address:r,args:u,docsPath:c,functionName:l,sender:d}){let f=e instanceof o.RawContractError?e:e instanceof a.BaseError?e.walk(e=>"data"in e)||e.walk():{},{code:p,data:b,details:m,message:y,shortMessage:h}=f,g=e instanceof n.AbiDecodingZeroDataError?new o.ContractFunctionZeroDataError({functionName:l}):[3,s.InternalRpcError.code].includes(p)&&(b||m||y||h)?new o.ContractFunctionRevertedError({abi:t,data:"object"==typeof b?b.data:b,functionName:l,message:f instanceof i.RpcRequestError?m:h??y}):e;return new o.ContractFunctionExecutionError(g,{abi:t,args:u,contractAddress:r,docsPath:c,functionName:l,sender:d})};let n=r(95664),a=r(33911),o=r(81660),i=r(26019),s=r(11205)}
9,68442:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseSignature=function(e,t={}){if((0,c.isFunctionSignature)(e))return l(e,t);if((0,c.isEventSignature)(e))return d(e,t);if((0,c.isErrorSignature)(e))return f(e,t);if((0,c.isConstructorSignature)(e))return p(e,t);if((0,c.isFallbackSignature)(e))return b(e);if((0,c.isReceiveSignature)(e))return{type:"receive",stateMutability:"payable"};throw new i.UnknownSignatureError({signature:e})},t.parseFunctionSignature=l,t.parseEventSignature=d,t.parseErrorSignature=f,t.parseConstructorSignature=p,t.parseFallbackSignature=b,t.parseAbiParameter=g,t.splitParameters=v,t.isSolidityType=E,t.isSolidityKeyword=w,t.isValidDataLocation=P;let n=r(58446),a=r(53693),o=r(56125),i=r(41494),s=r(34040),u=r(573),c=r(20666);function l(e,t={}){let r=(0,c.execFunctionSignature)(e);if(!r)throw new i.InvalidSignatureError({signature:e,type:"function"});let n=v(r.parameters),a=[],o=n.length;for(let e=0;e<o;e++)a.push(g(n[e],{modifiers:c.functionModifiers,structs:t,type:"function"}));let s=[];if(r.returns){let e=v(r.returns),n=e.length;for(let r=0;r<n;r++)s.push(g(e[r],{modifiers:c.functionModifiers,structs:t,type:"function"}))}return{name:r.name,type:"function",stateMutability:r.stateMutability??"nonpayable",inputs:a,outputs:s}}function d(e,t={}){let r=(0,c.execEventSignature)(e);if(!r)throw new i.InvalidSignatureError({signature:e,type:"event"});let n=v(r.parameters),a=[],o=n.length;for(let e=0;e<o;e++)a.push(g(n[e],{modifiers:c.eventModifiers,structs:t,type:"event"}));return{name:r.name,type:"event",inputs:a}}function f(e,t={}){let r=(0,c.execErrorSignature)(e);if(!r)throw new i.InvalidSignatureError({signature:e,type:"error"});let n=v(r.parameters),a=[],o=n.length;for(let e=0;e<o;e++)a.push(g(n[e],{structs:t,type:"error"}));return{name:r.name,type:"error",inputs:a}}function p(e,t={}){let r=(0,c.execConstructorSignature)(e);if(!r)throw new i.InvalidSignatureError({signature:e,type:"constructor"});let n=v(r.parameters),a=[],o=n.length;for(let e=0;e<o;e++)a.push(g(n[e],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:r.stateMutability??"nonpayable",inputs:a}}function b(e){let t=(0,c.execFallbackSignature)(e);if(!t)throw new i.InvalidSignatureError({signature:e,type:"fallback"});return{type:"fallback",stateMutability:t.stateMutability??"nonpayable"}}let m=/^(?<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$_]*))?$/,y=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,h=/^u?int$/;function g(e,t){let r,i=(0,u.getParameterCacheKey)(e,t?.type,t?.structs);if(u.parameterCache.has(i))return u.parameterCache.get(i);let s=n.isTupleRegex.test(e),l=(0,n.execTyped)(s?y:m,e);if(!l)throw new o.InvalidParameterError({param:e});if(l.name&&w(l.name))throw new o.SolidityProtectedKeywordError({param:e,name:l.name});let d=l.name?{name:l.name}:{},f="indexed"===l.modifier?{indexed:!0}:{},p=t?.structs??{},b={};if(s){r="tuple";let e=v(l.type),t=[],n=e.length;for(let r=0;r<n;r++)t.push(g(e[r],{structs:p}));b={components:t}}else if(l.type in p)r="tuple",b={components:p[l.type]};else if(h.test(l.type))r=`${l.type}256`;else if("address payable"===l.type)r="address";else if(r=l.type,t?.type!=="struct"&&!E(r))throw new a.UnknownSolidityTypeError({type:r});if(l.modifier){if(!t?.modifiers?.has?.(l.modifier))throw new o.InvalidModifierError({param:e,type:t?.type,modifier:l.modifier});if(c.functionModifiers.has(l.modifier)&&!P(r,!!l.array))throw new o.InvalidFunctionModifierError({param:e,type:t?.type,modifier:l.modifier})}let x={type:`${r}${l.array??""}`,...d,...f,...b};return u.parameterCache.set(i,x),x}function v(e,t=[],r="",n=0){let a=e.trim().length;for(let o=0;o<a;o++){let a=e[o],i=e.slice(o+1);switch(a){case",":return 0===n?v(i,[...t,r.trim()]):v(i,t,`${r}${a}`,n);case"(":return v(i,t,`${r}${a}`,n+1);case")":return v(i,t,`${r}${a}`,n-1);default:return v(i,t,`${r}${a}`,n)}}if(""===r)return t;if(0!==n)throw new s.InvalidParenthesisError({current:r,depth:n});return t.push(r.trim()),t}function E(e){return"address"===e||"bool"===e||"function"===e||"string"===e||n.bytesRegex.test(e)||n.integerRegex.test(e)}let x=/^(?: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 w(e){return"address"===e||"bool"===e||"function"===e||"string"===e||"tuple"===e||n.bytesRegex.test(e)||n.integerRegex.test(e)||x.test(e)}function P(e,t){return t||"bytes"===e||"string"===e||"tuple"===e}},68463:(e,t,r)=>
9{Object.defineProperty(t,"__esModule",{value:!0}),t.offchainLookupAbiItem=t.offchainLookupSignature=void 0,t.offchainLookup=p,t.ccipRequest=b;let n=r(99076),a=r(28409),o=r(26019),i=r(40292),s=r(70209),u=r(29609),c=r(78917),l=r(10858),d=r(44247),f=r(57737);async function p(e,{blockNumber:r,blockTag:o,data:l,to:f}){let{args:m}=(0,i.decodeErrorResult)({data:l,abi:[t.offchainLookupAbiItem]}),[y,h,g,v,E]=m,{ccipRead:x}=e,w=x&&"function"==typeof x?.request?x.request:b;try{if(!(0,u.isAddressEqual)(f,y))throw new a.OffchainLookupSenderMismatchError({sender:y,to:f});let t=h.includes(d.localBatchGatewayUrl)?await (0,d.localBatchGatewayRequest)({data:g,ccipRequest:w}):await w({data:g,sender:y,urls:h}),{data:i}=await (0,n.call)(e,{blockNumber:r,blockTag:o,data:(0,c.concat)([v,(0,s.encodeAbiParameters)([{type:"bytes"},{type:"bytes"}],[t,E])]),to:f});return i}catch(e){throw new a.OffchainLookupError({callbackSelector:v,cause:e,data:l,extraData:E,sender:y,urls:h})}}async function b({data:e,sender:t,urls:r}){let n=Error("An unknown error occurred.");for(let i=0;i<r.length;i++){let s=r[i],u=s.includes("{data}")?"GET":"POST",c="POST"===u?{data:e,sender:t}:void 0,d="POST"===u?{"Content-Type":"application/json"}:{};try{let r,i=await fetch(s.replace("{sender}",t.toLowerCase()).replace("{data}",e),{body:JSON.stringify(c),headers:d,method:u});if(r=i.headers.get("Content-Type")?.startsWith("application/json")?(await i.json()).data:await i.text(),!i.ok){n=new o.HttpRequestError({body:c,details:r?.error?(0,f.stringify)(r.error):i.statusText,headers:i.headers,status:i.status,url:s});continue}if(!(0,l.isHex)(r)){n=new a.OffchainLookupResponseMalformedError({result:r,url:s});continue}return r}catch(e){n=new o.HttpRequestError({body:c,details:e.message,url:s})}}throw n}t.offchainLookupSignature="0x556f1830",t.offchainLookupAbiItem={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]}},69319:e=>{var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise(function(r,n){var a,o,i;function s(r){e.removeListener(t,u),n(r)}function u(){"function"==typeof e.removeListener&&e.removeListener("error",s),r([].slice.call(arguments))}m(e,t,u,{once:!0}),"error"!==t&&(a=e,o=s,i={once:!0},"function"==typeof a.on&&m(a,"error",o,i))})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var i=10;function s(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,r,n){if(s(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),i=o[t]),void 0===i)i=o[t]=r,++e._eventsCount;else if("function"==typeof i?i=o[t]=n?[r,i]:[i,r]:n?i.unshift(r):i.push(r),(a=u(e))>0&&i.length>a&&!i.warned){i.warned=!0;var a,o,i,c=Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=i.length,console&&console.warn&&console.warn(c)}return e}function l(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},a=l.bind(n);return a.listener=r,n.wrapFn=a,a}function f(e,t,r){var n=e._events;if(void 0===n)return[];var a=n[t];return void 0===a?[]:"function"==typeof a?r?[a.listener||a]:[a]:r?function(e){for(var t=Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(a):b(a,a.length)}function p(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function b(e,t){for(var r=Array(t),n=0;n<t;++n)r[n]=e[n];return r}function m(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else if("function"==typeof e.addEventListener)e.addEventListener(t,function a(o){n.once&&e.removeEventListener(t,a),r(o)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return i},set:function(e){if("number"!=typeof e||e<0||a(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");i=e}}),o.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var a="error"===e,o=this._events;if(void 0!==o)a=a&&void 0===o.error;else if(!a)return!1;if(a){if(t.length>0&&(i=t[0]),i instanceof Error)throw i;var i,s=Error("Unhandled error."+(i?" ("+i.message+")":""));throw s.context=i,s}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)n(u,this,t);else for(var c=u.length,l=b(u,c),r=0;r<c;++r)n(l[r],this,t);return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var r,n,a,o,i;if(s(t),void 0===(n=this._events)||void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit
9("removeListener",e,r.listener||t));else if("function"!=typeof r){for(a=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){i=r[o].listener,a=o;break}if(a<0)return this;0===a?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,a),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,i||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0==arguments.length){var a,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(a=o[n])&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return f(this,e,!0)},o.prototype.rawListeners=function(e){return f(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},69435:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.hashAuthorization=function(e){let{chainId:t,nonce:r,to:u}=e,c=e.contractAddress??e.address,l=(0,s.keccak256)((0,n.concatHex)(["0x05",(0,i.toRlp)([t?(0,o.numberToHex)(t):"0x",c,r?(0,o.numberToHex)(r):"0x"])]));return"bytes"===u?(0,a.hexToBytes)(l):l};let n=r(78917),a=r(96978),o=r(37264),i=r(6007),s=r(60976)},69890:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.decodeDeployData=function(e){let{abi:t,bytecode:r,data:i}=e;if(i===r)return{bytecode:r};let s=t.find(e=>"type"in e&&"constructor"===e.type);if(!s)throw new n.AbiConstructorNotFoundError({docsPath:o});if(!("inputs"in s)||!s.inputs||0===s.inputs.length)throw new n.AbiConstructorParamsNotFoundError({docsPath:o});return{args:(0,a.decodeAbiParameters)(s.inputs,`0x${i.replace(r,"")}`),bytecode:r}};let n=r(95664),a=r(47065),o="/docs/contract/decodeDeployData"},69968:(e,t)=>{async function r(e){return await e.request({method:"txpool_content"})}Object.defineProperty(t,"__esModule",{value:!0}),t.getTxpoolContent=r},70160:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidVError=t.InvalidYParityError=t.InvalidSError=t.InvalidRError=t.MissingPropertiesError=t.InvalidSerializedSizeError=void 0,t.assert=c,t.fromBytes=l,t.fromHex=d,t.extract=function(e){if(void 0!==e.r&&void 0!==e.s)return f(e)},t.from=f,t.fromDerBytes=function(e){return p(i.fromBytes(e))},t.fromDerHex=p,t.fromLegacy=b,t.fromRpc=m,t.fromTuple=function(e){let[t,r,n]=e;return f({r:"0x"===r?0n:BigInt(r),s:"0x"===n?0n:BigInt(n),yParity:"0x"===t?0:Number(t)})},t.toBytes=function(e){return a.fromHex(y(e))},t.toHex=y,t.toDerBytes=function(e){return new n.secp256k1.Signature(e.r,e.s).toDERRawBytes()},t.toDerHex=function(e){let t=new n.secp256k1.Signature(e.r,e.s);return`0x${t.toDERHex()}`},t.toLegacy=function(e){return{r:e.r,s:e.s,v:g(e.yParity)}},t.toRpc=function(e){let{r:t,s:r,yParity:n}=e;return{r:i.fromNumber(t,{size:32}),s:i.fromNumber(r,{size:32}),yParity:0===n?"0x0":"0x1"}},t.toTuple=function(e){let{r:t,s:r,yParity:n}=e;return[n?"0x01":"0x",0n===t?"0x":i.trimLeft(i.fromNumber(t)),0n===r?"0x":i.trimLeft(i.fromNumber(r))]},t.validate=function(e,t={}){try{return c(e,t),!0}catch{return!1}},t.vToYParity=h,t.yParityToV=g;let n=r(26414),a=r(33745),o=r(45189),i=r(58515),s=r(58184),u=r(5279);function c(e,t={}){let{recovered:r}=t;if(void 0===e.r||void 0===e.s||r&&void 0===e.yParity)throw new E({signature:e});if(e.r<0n||e.r>u.maxUint256)throw new x({value:e.r});if(e.s<0n||e.s>u.maxUint256)throw new w({value:e.s});if("number"==typeof e.yParity&&0!==e.yParity&&1!==e.yParity)throw new P({value:e.yParity})}function l(e){return d(i.fromBytes(e))}function d(e){if(130!==e.length&&132!==e.length)throw new v({signature:e});let t=BigInt(i.slice(e,0,32)),r=BigInt(i.slice(e,32,64)),n=(()=>{let t=Number(`0x${e.slice(130)}`);if(!Number.isNaN(t))try{return h(t)}catch{throw new P({value:t})}})();return void 0===n?{r:t,s:r}:{r:t,s:r,yParity:n}}function f(e){let t="string"==typeof e?d(e):e instanceof Uint8Array?l(e):"str
9ing"==typeof e.r?m(e):e.v?b(e):{r:e.r,s:e.s,...void 0!==e.yParity?{yParity:e.yParity}:{}};return c(t),t}function p(e){let{r:t,s:r}=n.secp256k1.Signature.fromDER(i.from(e).slice(2));return{r:t,s:r}}function b(e){return{r:e.r,s:e.s,yParity:h(e.v)}}function m(e){let t=(()=>{let t=e.v?Number(e.v):void 0,r=e.yParity?Number(e.yParity):void 0;if("number"==typeof t&&"number"!=typeof r&&(r=h(t)),"number"!=typeof r)throw new P({value:e.yParity});return r})();return{r:BigInt(e.r),s:BigInt(e.s),yParity:t}}function y(e){c(e);let t=e.r,r=e.s;return i.concat(i.fromNumber(t,{size:32}),i.fromNumber(r,{size:32}),"number"==typeof e.yParity?i.fromNumber(g(e.yParity),{size:1}):"0x")}function h(e){if(0===e||27===e)return 0;if(1===e||28===e)return 1;if(e>=35)return+(e%2==0);throw new I({value:e})}function g(e){if(0===e)return 27;if(1===e)return 28;throw new P({value:e})}class v extends o.BaseError{constructor({signature:e}){super(`Value \`${e}\` is an invalid signature size.`,{metaMessages:["Expected: 64 bytes or 65 bytes.",`Received ${i.size(i.from(e))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSerializedSizeError"})}}t.InvalidSerializedSizeError=v;class E extends o.BaseError{constructor({signature:e}){super(`Signature \`${s.stringify(e)}\` is missing either an \`r\`, \`s\`, or \`yParity\` property.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.MissingPropertiesError"})}}t.MissingPropertiesError=E;class x extends o.BaseError{constructor({value:e}){super(`Value \`${e}\` is an invalid r value. r must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidRError"})}}t.InvalidRError=x;class w extends o.BaseError{constructor({value:e}){super(`Value \`${e}\` is an invalid s value. s must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSError"})}}t.InvalidSError=w;class P extends o.BaseError{constructor({value:e}){super(`Value \`${e}\` is an invalid y-parity value. Y-parity must be 0 or 1.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidYParityError"})}}t.InvalidYParityError=P;class I extends o.BaseError{constructor({value:e}){super(`Value \`${e}\` is an invalid v value. v must be 27, 28 or >=35.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidVError"})}}t.InvalidVError=I},70209:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.encodeAbiParameters=function(e,t){if(e.length!==t.length)throw new n.AbiEncodingLengthMismatchError({expectedLength:e.length,givenLength:t.length});let r=b(function({params:e,values:t}){let r=[];for(let y=0;y<e.length;y++)r.push(function e({param:t,value:r}){let y=m(t.type);if(y){let[a,o]=y;return function(t,{length:r,param:a}){let o=null===r;if(!Array.isArray(t))throw new n.InvalidArrayError(t);if(!o&&t.length!==r)throw new n.AbiEncodingArrayLengthMismatchError({expectedLength:r,givenLength:t.length,type:`${a.type}[${r}]`});let i=!1,s=[];for(let r=0;r<t.length;r++){let n=e({param:a,value:t[r]});n.dynamic&&(i=!0),s.push(n)}if(o||i){let e=b(s);if(o){let t=(0,f.numberToHex)(s.length,{size:32});return{dynamic:!0,encoded:s.length>0?(0,u.concat)([t,e]):t}}if(i)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,u.concat)(s.map(({encoded:e})=>e))}}(r,{length:a,param:{...t,type:o}})}if("tuple"===t.type)return function(t,{param:r}){let n=!1,a=[];for(let o=0;o<r.components.length;o++){let i=r.components[o],s=Array.isArray(t)?o:i.name,u=e({param:i,value:t[s]});a.push(u),u.dynamic&&(n=!0)}return{dynamic:n,encoded:n?b(a):(0,u.concat)(a.map(({encoded:e})=>e))}}(r,{param:t});if("address"===t.type){var h=r;if(!(0,s.isAddress)(h))throw new a.InvalidAddressError({address:h});return{dynamic:!1,encoded:(0,c.padHex)(h.toLowerCase())}}if("bool"===t.type){var g=r;if("boolean"!=typeof g)throw new o.BaseError(`Invalid boolean value: "${g}" (type: ${typeof g}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:(0,c.padHex)((0,f.boolToHex)(g))}}if(t.type.startsWith("uint")||t.type.startsWith("int")){let e=t.type.startsWith("int"),[,,n="256"]=p.integerRegex.exec(t.type)??[];return function(e,{signed:t,size:r=256}){if("number"==typeof r){let n=2n**(BigInt(r)-(t?1n:0n))-1n,a=t?-n-1n:0n;if(e>n||e<a)throw new i.IntegerOutOfRangeError({max:n.toString(),min:a.toString(),signed:t,size:r/8,value:e.toString()})}return{dynamic:!1,encoded:(0,f.numberToHex)(e,{size:32,signed:t})}}(r,{signed:e,size:Number(n)})}if(t.type.startsWith("bytes"))return function(e,{param:t}){let[,r]=t.type.split("bytes"),a=(0,l.size)(e);if(!r){let t=e;
9return a%32!=0&&(t=(0,c.padHex)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,u.concat)([(0,c.padHex)((0,f.numberToHex)(a,{size:32})),t])}}if(a!==Number.parseInt(r,10))throw new n.AbiEncodingBytesSizeMismatchError({expectedSize:Number.parseInt(r,10),value:e});return{dynamic:!1,encoded:(0,c.padHex)(e,{dir:"right"})}}(r,{param:t});if("string"===t.type){var v=r;let e=(0,f.stringToHex)(v),t=Math.ceil((0,l.size)(e)/32),n=[];for(let r=0;r<t;r++)n.push((0,c.padHex)((0,d.slice)(e,32*r,(r+1)*32),{dir:"right"}));return{dynamic:!0,encoded:(0,u.concat)([(0,c.padHex)((0,f.numberToHex)((0,l.size)(e),{size:32})),...n])}}throw new n.InvalidAbiEncodingTypeError(t.type,{docsPath:"/docs/contract/encodeAbiParameters"})}({param:e[y],value:t[y]}));return r}({params:e,values:t}));return 0===r.length?"0x":r},t.getArrayComponents=m;let n=r(95664),a=r(47730),o=r(33911),i=r(36119),s=r(1199),u=r(78917),c=r(29822),l=r(27420),d=r(25109),f=r(37264),p=r(32187);function b(e){let t=0;for(let r=0;r<e.length;r++){let{dynamic:n,encoded:a}=e[r];n?t+=32:t+=(0,l.size)(a)}let r=[],n=[],a=0;for(let o=0;o<e.length;o++){let{dynamic:i,encoded:s}=e[o];i?(r.push((0,f.numberToHex)(t+a,{size:32})),n.push(s),a+=(0,l.size)(s)):r.push(s)}return(0,u.concat)([...r,...n])}function m(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}},70272:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toBig=t.shrSL=t.shrSH=t.rotrSL=t.rotrSH=t.rotrBL=t.rotrBH=t.rotr32L=t.rotr32H=t.rotlSL=t.rotlSH=t.rotlBL=t.rotlBH=t.add5L=t.add5H=t.add4L=t.add4H=t.add3L=t.add3H=void 0,t.add=v,t.fromBig=a,t.split=o;let r=BigInt(0x100000000-1),n=BigInt(32);function a(e,t=!1){return t?{h:Number(e&r),l:Number(e>>n&r)}:{h:0|Number(e>>n&r),l:0|Number(e&r)}}function o(e,t=!1){let r=e.length,n=new Uint32Array(r),i=new Uint32Array(r);for(let o=0;o<r;o++){let{h:r,l:s}=a(e[o],t);[n[o],i[o]]=[r,s]}return[n,i]}let i=(e,t)=>BigInt(e>>>0)<<n|BigInt(t>>>0);t.toBig=i;let s=(e,t,r)=>e>>>r;t.shrSH=s;let u=(e,t,r)=>e<<32-r|t>>>r;t.shrSL=u;let c=(e,t,r)=>e>>>r|t<<32-r;t.rotrSH=c;let l=(e,t,r)=>e<<32-r|t>>>r;t.rotrSL=l;let d=(e,t,r)=>e<<64-r|t>>>r-32;t.rotrBH=d;let f=(e,t,r)=>e>>>r-32|t<<64-r;t.rotrBL=f;let p=(e,t)=>t;t.rotr32H=p;let b=(e,t)=>e;t.rotr32L=b;let m=(e,t,r)=>e<<r|t>>>32-r;t.rotlSH=m;let y=(e,t,r)=>t<<r|e>>>32-r;t.rotlSL=y;let h=(e,t,r)=>t<<r-32|e>>>64-r;t.rotlBH=h;let g=(e,t,r)=>e<<r-32|t>>>64-r;function v(e,t,r,n){let a=(t>>>0)+(n>>>0);return{h:e+r+(a/0x100000000|0)|0,l:0|a}}t.rotlBL=g;let E=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);t.add3L=E;let x=(e,t,r,n)=>t+r+n+(e/0x100000000|0)|0;t.add3H=x;let w=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0);t.add4L=w;let P=(e,t,r,n,a)=>t+r+n+a+(e/0x100000000|0)|0;t.add4H=P;let I=(e,t,r,n,a)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(a>>>0);t.add5L=I;let A=(e,t,r,n,a,o)=>t+r+n+a+o+(e/0x100000000|0)|0;t.add5H=A,t.default={fromBig:a,split:o,toBig:i,shrSH:s,shrSL:u,rotrSH:c,rotrSL:l,rotrBH:d,rotrBL:f,rotr32H:p,rotr32L:b,rotlSH:m,rotlSL:y,rotlBH:h,rotlBL:g,add:v,add3L:E,add3H:x,add4L:w,add4H:P,add5H:A,add5L:I}},71570:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getBlockTransactionCount=o;let n=r(85319),a=r(37264);async function o(e,{blockHash:t,blockNumber:r,blockTag:i="latest"}={}){let s,u=void 0!==r?(0,a.numberToHex)(r):void 0;return s=t?await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]},{dedupe:!0}):await e.request({method:"eth_getBlockTransactionCountByNumber",params:[u||i]},{dedupe:!!u}),(0,n.hexToNumber)(s)}},72517:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.buildRequest=function(e,t={}){return async(r,d={})=>{let{dedupe:f=!1,methods:p,retryDelay:b=150,retryCount:m=3,uid:y}={...t,...d},{method:h}=r;if(p?.exclude?.includes(h)||p?.include&&!p.include.includes(h))throw new o.MethodNotSupportedRpcError(Error("method not supported"),{method:h});let g=f?(0,i.stringToHex)(`${y}.${(0,c.stringify)(r)}`):void 0;return(0,s.withDedupe)(()=>(0,u.withRetry)(async()=>{try{return await e(r)}catch(e){switch(e.code){case o.ParseRpcError.code:throw new o.ParseRpcError(e);case o.InvalidRequestRpcError.code:throw new o.InvalidRequestRpcError(e);case o.MethodNotFoundRpcError.code:throw new o.MethodNotFoundRpcError(e,{method:r.method});case o.InvalidParamsRpcError.code:throw new o.InvalidParamsRpcError(e);case o.InternalRpcError.code:throw new o.InternalRpcError(e);case o.InvalidInputRpcError.code:throw new o.InvalidInputRpcError(e);case o.ResourceNotFoundRpcError.code:throw new o.ResourceNotFoundRpcError(e);case o.ResourceUnavailableRpcError.code:throw new o.ResourceUnavailableRpcError(e);case o.TransactionRejectedRpcError.code:throw new o.TransactionRejectedRpcError(e);case o.MethodNotSupportedRpcError.code:throw new o.MethodNotSupportedRpcError(e,{method:r.method});case o.LimitExceededRpcError.code:throw new o.LimitExceededRpcError(e);case o.JsonRpcVersionUnsupportedError.code:throw new o.JsonRpcVersionUnsupportedError(e);case o.UserRejectedRequestError.code:throw new o.UserRejectedRequestError(e);case o.UnauthorizedProviderError.code:throw new o.UnauthorizedProviderError(e);case o.UnsupportedProviderMethodError.code:throw new o.UnsupportedProviderMethodError(e);case o.ProviderDisconnectedError.code:throw new o.ProviderDisconnectedError(e);case o.ChainDisconnectedError.code:throw new o.ChainDisconnectedError(e);case o.SwitchChainError.code:throw new o.SwitchChainError(e);case o.UnsupportedNonOptionalCapabilityError.code:throw new o.UnsupportedNonOptionalCapabilityError(e);case o.UnsupportedChainIdError.code:throw new o.UnsupportedChainIdError(e);case o.DuplicateIdError.code:throw new o.DuplicateIdError(e);case o.UnknownBundleIdError.code:throw new o.UnknownBundleIdError(e);case o.BundleTooLargeError.code:throw new o.BundleTooLargeError(e);case o.AtomicReadyWalletRejectedUpgradeError.code:throw new o.AtomicReadyWalletRejectedUpgradeError(e);case o.AtomicityNotSupportedError.code:throw new o.AtomicityNotSupportedError(e);case 5e3:throw new o.UserRejectedRequestError(e);default:if(e instanceof n.BaseError)throw e;throw new o.UnknownRpcError(e)}}},{delay:({count:e,error:t})=>{if(t&&t instanceof a.HttpRequestError){let e=t?.headers?.get("Retry-After");if(e?.match(/\d/))return 1e3*Number.parseInt(e,10)}return~~(1<<e)*b},retryCount:m,shouldRetry:({error:e})=>l(e)}),{enabled:f,id:g})}},t.shouldRetry=l;let n=r(33911),a=r(26019),o=r(11205),i=r(37264),s=r(66201),u=r(63988),c=r(57737);function l(e){return"code"in e&&"number"==typeof e.code?-1===e.code||e.code===o.LimitExceededRpcError.code||e.code===o.InternalRpcError.code:!(e instanceof a.HttpRequestError)||!e.status||403===e.status||408===e.status||413===e.status||429===e.status||500===e.status||502===e.status||503===e.status||504===e.status||!1}},72580:(e,t)=>{function r(e){let r=(e,t)=>({clear:()=>t.delete(e),get:()=>t.get(e),set:r=>t.set(e,r)}
9),n=r(e,t.promiseCache),a=r(e,t.responseCache);return{clear:()=>{n.clear(),a.clear()},promise:n,response:a}}async function n(e,{cacheKey:t,cacheTime:a=1/0}){let o=r(t),i=o.response.get();if(i&&a>0&&Date.now()-i.created.getTime()<a)return i.data;let s=o.promise.get();s||(s=e(),o.promise.set(s));try{let e=await s;return o.response.set({created:new Date,data:e}),e}finally{o.promise.clear()}}Object.defineProperty(t,"__esModule",{value:!0}),t.responseCache=t.promiseCache=void 0,t.getCache=r,t.withCache=n,t.promiseCache=new Map,t.responseCache=new Map},72831:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packetToBytes=function(e){let t=e.replace(/^\.|\.$/gm,"");if(0===t.length)return new Uint8Array(1);let r=new Uint8Array((0,n.stringToBytes)(t).byteLength+2),i=0,s=t.split(".");for(let e=0;e<s.length;e++){let t=(0,n.stringToBytes)(s[e]);t.byteLength>255&&(t=(0,n.stringToBytes)((0,a.encodeLabelhash)((0,o.labelhash)(s[e])))),r[i]=t.length,r.set(t,i+1),i+=t.length+1}return r.byteLength!==i+1?r.slice(0,i+1):r};let n=r(96978),a=r(2059),o=r(43537)},72836:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getSDKVersion=void 0,t.default=o(r(65048)).default,a(r(65048),t),a(r(21830),t),a(r(79629),t),a(r(2494),t);var i=r(52108);Object.defineProperty(t,"getSDKVersion",{enumerable:!0,get:function(){return i.getSDKVersion}}),a(r(56361),t)},73062:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isNullUniversalResolverError=function(e){if(!(e instanceof n.BaseError))return!1;let t=e.walk(e=>e instanceof a.ContractFunctionRevertedError);return t instanceof a.ContractFunctionRevertedError&&(t.data?.errorName==="HttpError"||t.data?.errorName==="ResolverError"||t.data?.errorName==="ResolverNotContract"||t.data?.errorName==="ResolverNotFound"||t.data?.errorName==="ReverseAddressMismatch"||t.data?.errorName==="UnsupportedResolverProfile")};let n=r(33911),a=r(81660)},73385:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.switchChain=a;let n=r(37264);async function a(e,{id:t}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,n.numberToHex)(t)}]},{retryCount:0})}},73390:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createAccessList=c;let n=r(25055),a=r(37264),o=r(26798),i=r(84129),s=r(75621),u=r(98048);async function c(e,t){let{account:r=e.account,blockNumber:c,blockTag:l="latest",blobs:d,data:f,gas:p,gasPrice:b,maxFeePerBlobGas:m,maxFeePerGas:y,maxPriorityFeePerGas:h,to:g,value:v,...E}=t,x=r?(0,n.parseAccount)(r):void 0;try{(0,u.assertRequest)(t);let r="bigint"==typeof c?(0,a.numberToHex)(c):void 0,n=e.chain?.formatters?.transactionRequest?.format,o=(n||s.formatTransactionRequest)({...(0,i.extract)(E,{format:n}),from:x?.address,blobs:d,data:f,gas:p,gasPrice:b,maxFeePerBlobGas:m,maxFeePerGas:y,maxPriorityFeePerGas:h,to:g,value:v},"createAccessList"),w=await e.request({method:"eth_createAccessList",params:[o,r||l]});return{accessList:w.accessList,gasUsed:BigInt(w.gasUsed)}}catch(r){throw(0,o.getCallError)(r,{...t,account:x,chain:e.chain})}}},73419:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.fallbackTransactionErrorMagicIdentifier=t.fallbackMagicIdentifier=void 0,t.sendCalls=f;let n=r(25055),a=r(33911),o=r(11205),i=r(63997),s=r(78917),u=r(85319),c=r(37264),l=r(63894),d=r(31786);async function f(e,r){let{account:f=e.account,capabilities:p,chain:b=e.chain,experimental_fallback:m,experimental_fallbackDelay:y=32,forceAtomic:h=!1,id:g,version:v="2.0.0"}=r,E=f?(0,n.parseAccount)(f):null,x=r.calls.map(e=>{let t=e.abi?(0,i.encodeFunctionData)({abi:e.abi,functionName:e.functionName,args:e.args}):e.data;return{data:e.dataSuffix&&t?(0,s.concat)([t,e.dataSuffix]):t,to:e.to,value:e.value?(0,c.numberToHex)(e.value):void 0}});try{let t=await e.request({method:"wallet_sendCalls",params:[{atomicRequired:h,calls:x,capabilities:p,chainId:(0,c.numberToHex)(b.id),from:E?.address,id:g,version:v}]},{retryCount:0});if("string"==typeof t)return{id:t};return t}catch(n){if(m&&("MethodNotFoundRpcError"===n.name||"MethodNotSupportedRpcError"===n.name||"UnknownRpcError"===n.name||n.details.toLowerCase().includes("does not exist / is not available")||n.details.toLowerCase().includes("missing or invalid. request()")||n.details.toLowerCase().includes("did n
9ot match any variant of untagged enum")||n.details.toLowerCase().includes("account upgraded to unsupported contract")||n.details.toLowerCase().includes("eip-7702 not supported")||n.details.toLowerCase().includes("unsupported wc_ method")||n.details.toLowerCase().includes("feature toggled misconfigured"))){if(p&&Object.values(p).some(e=>!e.optional)){let e="non-optional `capabilities` are not supported on fallback to `eth_sendTransaction`.";throw new o.UnsupportedNonOptionalCapabilityError(new a.BaseError(e,{details:e}))}if(h&&x.length>1){let e="`forceAtomic` is not supported on fallback to `eth_sendTransaction`.";throw new o.AtomicityNotSupportedError(new a.BaseError(e,{details:e}))}let r=[];for(let t of x){let n=(0,d.sendTransaction)(e,{account:E,chain:b,data:t.data,to:t.to,value:t.value?(0,u.hexToBigInt)(t.value):void 0});r.push(n),y>0&&await new Promise(e=>setTimeout(e,y))}let n=await Promise.allSettled(r);if(n.every(e=>"rejected"===e.status))throw n[0].reason;let i=n.map(e=>"fulfilled"===e.status?e.value:t.fallbackTransactionErrorMagicIdentifier);return{id:(0,s.concat)([...i,(0,c.numberToHex)(b.id,{size:32}),t.fallbackMagicIdentifier])}}throw(0,l.getTransactionError)(n,{...r,account:E,chain:r.chain})}}t.fallbackMagicIdentifier="0x5792579257925792579257925792579257925792579257925792579257925792",t.fallbackTransactionErrorMagicIdentifier=(0,c.numberToHex)(0,{size:32})},73445:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.decodeFunctionData=function(e){let{abi:t,data:r}=e,u=(0,a.slice)(r,0,4),c=t.find(e=>"function"===e.type&&u===(0,o.toFunctionSelector)((0,s.formatAbiItem)(e)));if(!c)throw new n.AbiFunctionSignatureNotFoundError(u,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:c.name,args:"inputs"in c&&c.inputs&&c.inputs.length>0?(0,i.decodeAbiParameters)(c.inputs,(0,a.slice)(r,4)):void 0}};let n=r(95664),a=r(25109),o=r(96573),i=r(47065),s=r(8117)},73745:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.recoverTypedDataAddress=o;let n=r(98589),a=r(50807);async function o(e){let{domain:t,message:r,primaryType:o,signature:i,types:s}=e;return(0,a.recoverAddress)({hash:(0,n.hashTypedData)({domain:t,message:r,primaryType:o,types:s}),signature:i})}},73817:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getBlock=i;let n=r(52035),a=r(37264),o=r(21081);async function i(e,{blockHash:t,blockNumber:r,blockTag:s=e.experimental_blockTag??"latest",includeTransactions:u}={}){let c=u??!1,l=void 0!==r?(0,a.numberToHex)(r):void 0,d=null;if(!(d=t?await e.request({method:"eth_getBlockByHash",params:[t,c]},{dedupe:!0}):await e.request({method:"eth_getBlockByNumber",params:[l||s,c]},{dedupe:!!l})))throw new n.BlockNotFoundError({blockHash:t,blockNumber:r});return(e.chain?.formatters?.block?.format||o.formatBlock)(d,"getBlock")}},74225:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.deployContract=function(e,t){let{abi:r,args:o,bytecode:i,...s}=t,u=(0,n.encodeDeployData)({abi:r,args:o,bytecode:i});return(0,a.sendTransaction)(e,{...s,...s.authorizationList?{to:null}:{},data:u})};let n=r(45866),a=r(31786)},75252:(e,t)=>{async function r(e,{interval:t}){let n="hardhat"===e.mode?1e3*t:t;await e.request({method:"evm_setIntervalMining",params:[n]})}Object.defineProperty(t,"__esModule",{value:!0}),t.setIntervalMining=r},75314:function(e,t,r){var n=this&&this.__decorate||function(e,t,r,n){var a,o=arguments.length,i=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Safe=void 0;let o=r(30622),i=r(37913),s=r(79629),u=r(56361),c=r(21830),l=a(r(20250));class d{constructor(e){this.communicator=e}async getChainInfo(){return(await this.communicator.send(s.Methods.getChainInfo,void 0)).data}async getInfo(){return(await this.communicator.send(s.Methods.getSafeInfo,void 0)).data}async experimental_getBalances({currency:e="usd"}={}){return(await this.communicator.send(s.Methods.getSafeBalances,{currency:e})).data}
9async check1271Signature(e,t="0x"){let r=await this.getInfo(),n=(0,o.encodeFunctionData)({abi:[{constant:!1,inputs:[{name:"_dataHash",type:"bytes32"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,t]}),a={call:u.RPC_CALLS.eth_call,params:[{to:r.safeAddress,data:n},"latest"]};try{return(await this.communicator.send(s.Methods.rpcCall,a)).data.slice(0,10).toLowerCase()===i.MAGIC_VALUE}catch(e){return!1}}async check1271SignatureBytes(e,t="0x"){let r=await this.getInfo(),n=(0,o.encodeFunctionData)({abi:[{constant:!1,inputs:[{name:"_data",type:"bytes"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,t]}),a={call:u.RPC_CALLS.eth_call,params:[{to:r.safeAddress,data:n},"latest"]};try{return(await this.communicator.send(s.Methods.rpcCall,a)).data.slice(0,10).toLowerCase()===i.MAGIC_VALUE_BYTES}catch(e){return!1}}calculateMessageHash(e){return(0,o.hashMessage)(e)}calculateTypedMessageHash(e){let t="object"==typeof e.domain.chainId?e.domain.chainId.toNumber():Number(e.domain.chainId),r=e.primaryType;if(!r){let t=Object.values(e.types),n=Object.keys(e.types).filter(e=>t.every(t=>t.every(({type:t})=>t.replace("[","").replace("]","")!==e)));if(0===n.length||n.length>1)throw Error("Please specify primaryType");r=n[0]}return(0,o.hashTypedData)({message:e.message,domain:{...e.domain,chainId:t,verifyingContract:e.domain.verifyingContract,salt:e.domain.salt},types:e.types,primaryType:r})}async getOffChainSignature(e){return(await this.communicator.send(s.Methods.getOffChainSignature,e)).data}async isMessageSigned(e,t="0x"){let r;if("string"==typeof e&&(r=async()=>{let r=this.calculateMessageHash(e);return await this.isMessageHashSigned(r,t)}),(0,c.isObjectEIP712TypedData)(e)&&(r=async()=>{let r=this.calculateTypedMessageHash(e);return await this.isMessageHashSigned(r,t)}),r)return await r();throw Error("Invalid message type")}async isMessageHashSigned(e,t="0x"){for(let r of[this.check1271Signature.bind(this),this.check1271SignatureBytes.bind(this)])if(await r(e,t))return!0;return!1}async getEnvironmentInfo(){return(await this.communicator.send(s.Methods.getEnvironmentInfo,void 0)).data}async requestAddressBook(){return(await this.communicator.send(s.Methods.requestAddressBook,void 0)).data}}t.Safe=d,n([(0,l.default)()],d.prototype,"requestAddressBook",null)},75621:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.defineTransactionRequest=t.rpcTransactionType=void 0,t.formatTransactionRequest=o;let n=r(37264),a=r(90942);function o(e,r){let a={};return void 0!==e.authorizationList&&(a.authorizationList=e.authorizationList.map(e=>({address:e.address,r:e.r?(0,n.numberToHex)(BigInt(e.r)):e.r,s:e.s?(0,n.numberToHex)(BigInt(e.s)):e.s,chainId:(0,n.numberToHex)(e.chainId),nonce:(0,n.numberToHex)(e.nonce),...void 0!==e.yParity?{yParity:(0,n.numberToHex)(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:(0,n.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,n.bytesToHex)(e)):a.blobs=e.blobs),void 0!==e.data&&(a.data=e.data),void 0!==e.from&&(a.from=e.from),void 0!==e.gas&&(a.gas=(0,n.numberToHex)(e.gas)),void 0!==e.gasPrice&&(a.gasPrice=(0,n.numberToHex)(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(a.maxFeePerBlobGas=(0,n.numberToHex)(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(a.maxFeePerGas=(0,n.numberToHex)(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(a.maxPriorityFeePerGas=(0,n.numberToHex)(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(a.nonce=(0,n.numberToHex)(e.nonce)),void 0!==e.to&&(a.to=e.to),void 0!==e.type&&(a.type=t.rpcTransactionType[e.type]),void 0!==e.value&&(a.value=(0,n.numberToHex)(e.value)),a}t.rpcTransactionType={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"},t.defineTransactionRequest=(0,a.defineFormatter)("transactionRequest",o)},76723:(e,t,r)=>
9{Object.defineProperty(t,"__esModule",{value:!0}),t.requestAddresses=a;let n=r(43333);async function a(e){return(await e.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(e=>(0,n.getAddress)(e))}},76804:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setNonce=a;let n=r(37264);async function a(e,{address:t,nonce:r}){await e.request({method:`${e.mode}_setNonce`,params:[t,(0,n.numberToHex)(r)]})}},76947:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getLogs=s;let n=r(34736),a=r(48093),o=r(37264),i=r(64234);async function s(e,{address:t,blockHash:r,fromBlock:u,toBlock:c,event:l,events:d,args:f,strict:p}={}){let b=d??(l?[l]:void 0),m=[];b&&(m=[b.flatMap(e=>(0,n.encodeEventTopics)({abi:[e],eventName:e.name,args:d?void 0:f}))],l&&(m=m[0]));let y=(r?await e.request({method:"eth_getLogs",params:[{address:t,topics:m,blockHash:r}]}):await e.request({method:"eth_getLogs",params:[{address:t,topics:m,fromBlock:"bigint"==typeof u?(0,o.numberToHex)(u):u,toBlock:"bigint"==typeof c?(0,o.numberToHex)(c):c}]})).map(e=>(0,i.formatLog)(e));return b?(0,a.parseEventLogs)({abi:b,args:f,logs:y,strict:p??!1}):y}},77624:(e,t)=>{async function r(e,t){let{id:r}=t;await e.request({method:"wallet_showCallsStatus",params:[r]})}Object.defineProperty(t,"__esModule",{value:!0}),t.showCallsStatus=r},78234:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getAction=function(e,t,r){let n=e[t.name];if("function"==typeof n)return n;let a=e[r];return"function"==typeof a?a:r=>t(e,r)}},78913:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.serializeAuthorizationList=function(e){if(!e||0===e.length)return[];let t=[];for(let r of e){let{chainId:e,nonce:o,...i}=r,s=r.address;t.push([e?(0,n.toHex)(e):"0x",s,o?(0,n.toHex)(o):"0x",...(0,a.toYParitySignatureArray)({},i)])}return t};let n=r(37264),a=r(96943)},78917:(e,t)=>{function r(e){let t=0;for(let r of e)t+=r.length;let r=new Uint8Array(t),n=0;for(let t of e)r.set(t,n),n+=t.length;return r}function n(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}Object.defineProperty(t,"__esModule",{value:!0}),t.concat=function(e){return"string"==typeof e[0]?n(e):r(e)},t.concatBytes=r,t.concatHex=n},79190:(e,t)=>{async function r(e){return BigInt(await e.request({method:"eth_gasPrice"}))}Object.defineProperty(t,"__esModule",{value:!0}),t.getGasPrice=r},79596:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getFeeHistory=o;let n=r(37264),a=r(5004);async function o(e,{blockCount:t,blockNumber:r,blockTag:i="latest",rewardPercentiles:s}){let u="bigint"==typeof r?(0,n.numberToHex)(r):void 0,c=await e.request({method:"eth_feeHistory",params:[(0,n.numberToHex)(t),u||i,s]},{dedupe:!!u});return(0,a.formatFeeHistory)(c)}},79629:(e,t)=>{var r,n,a;Object.defineProperty(t,"__esModule",{value:!0}),t.RestrictedMethods=t.Methods=void 0,(a=r||(t.Methods=r={})).sendTransactions="sendTransactions",a.rpcCall="rpcCall",a.getChainInfo="getChainInfo",a.getSafeInfo="getSafeInfo",a.getTxBySafeTxHash="getTxBySafeTxHash",a.getSafeBalances="getSafeBalances",a.signMessage="signMessage",a.signTypedMessage="signTypedMessage",a.getEnvironmentInfo="getEnvironmentInfo",a.getOffChainSignature="getOffChainSignature",a.requestAddressBook="requestAddressBook",a.wallet_getPermissions="wallet_getPermissions",a.wallet_requestPermissions="wallet_requestPermissions",(n||(t.RestrictedMethods=n={})).requestAddressBook="requestAddressBook"},79874:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.publicKeyToAddress=function(e){let t=(0,a.keccak256)(`0x${e.substring(4)}`).substring(26);return(0,n.checksumAddress)(`0x${t}`)};let n=r(43333),a=r(60976)},80125:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getTxpoolStatus=a;let n=r(85319);async function a(e){let{pending:t,queued:r}=await e.request({method:"txpool_status"});return{pending:(0,n.hexToNumber)(t),queued:(0,n.hexToNumber)(r)}}},80232:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SignatureErc6492=void 0,t.SignatureErc6492=r(42415)},80249:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.recoverTransactionAddress=s;let n=r(60976),a=r(58496),o=r(96943),i=r(50807);async function s(e){let{serializedTransaction:t,signature:r}=e,s=(0,a.parseTransaction)(t),u=r??{r:s.r,s:s.s,v:s.v,yParity:s.yParity}
9,c=(0,o.serializeTransaction)({...s,r:void 0,s:void 0,v:void 0,yParity:void 0,sidecars:void 0});return await (0,i.recoverAddress)({hash:(0,n.keccak256)(c),signature:u})}},80278:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.namehash=function(e){let t=new Uint8Array(32).fill(0);if(!e)return(0,o.bytesToHex)(t);let r=e.split(".");for(let e=r.length-1;e>=0;e-=1){let o=(0,s.encodedLabelToLabelhash)(r[e]),u=o?(0,a.toBytes)(o):(0,i.keccak256)((0,a.stringToBytes)(r[e]),"bytes");t=(0,i.keccak256)((0,n.concat)([t,u]),"bytes")}return(0,o.bytesToHex)(t)};let n=r(78917),a=r(96978),o=r(37264),i=r(60976),s=r(41590)},80643:(e,t)=>{async function r(e){return await e.request({method:"txpool_inspect"})}Object.defineProperty(t,"__esModule",{value:!0}),t.inspectTxpool=r},80943:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseAbiParameters=function(e){let t=[];if("string"==typeof e){let r=(0,i.splitParameters)(e),n=r.length;for(let e=0;e<n;e++)t.push((0,s.parseAbiParameter)(r[e],{modifiers:a.modifiers}))}else{let r=(0,o.parseStructs)(e),n=e.length;for(let o=0;o<n;o++){let n=e[o];if((0,a.isStructSignature)(n))continue;let u=(0,i.splitParameters)(n),c=u.length;for(let e=0;e<c;e++)t.push((0,s.parseAbiParameter)(u[e],{modifiers:a.modifiers,structs:r}))}}if(0===t.length)throw new n.InvalidAbiParametersError({params:e});return t};let n=r(56125),a=r(20666),o=r(41377),i=r(68442),s=r(68442)},81660:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RawContractError=t.CounterfactualDeploymentFailedError=t.ContractFunctionZeroDataError=t.ContractFunctionRevertedError=t.ContractFunctionExecutionError=t.CallExecutionError=void 0;let n=r(25055),a=r(15233),o=r(40292),i=r(8117),s=r(31544),u=r(1682),c=r(36276),l=r(88524),d=r(95664),f=r(33911),p=r(24447),b=r(2922),m=r(56391);class y extends f.BaseError{constructor(e,{account:t,docsPath:r,chain:a,data:o,gas:i,gasPrice:s,maxFeePerGas:u,maxPriorityFeePerGas:d,nonce:f,to:m,value:y,stateOverride:h}){const g=t?(0,n.parseAccount)(t):void 0;let v=(0,b.prettyPrint)({from:g?.address,to:m,value:void 0!==y&&`${(0,c.formatEther)(y)} ${a?.nativeCurrency?.symbol||"ETH"}`,data:o,gas:i,gasPrice:void 0!==s&&`${(0,l.formatGwei)(s)} gwei`,maxFeePerGas:void 0!==u&&`${(0,l.formatGwei)(u)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,l.formatGwei)(d)} gwei`,nonce:f});h&&(v+=` 10${(0,p.prettyStateOverride)(h)}`),super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",v].filter(
vendor: 4,490 bytes, line 10
10Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}t.CallExecutionError=y;class h extends f.BaseError{constructor(e,{abi:t,args:r,contractAddress:n,docsPath:a,functionName:o,sender:c}){const l=(0,u.getAbiItem)({abi:t,args:r,name:o}),d=l?(0,s.formatAbiItemWithArgs)({abiItem:l,args:r,includeFunctionName:!1,includeName:!1}):void 0,f=l?(0,i.formatAbiItem)(l,{includeName:!0}):void 0,p=(0,b.prettyPrint)({address:n&&(0,m.getContractAddress)(n),function:f,args:d&&"()"!==d&&`${[...Array(o?.length??0).keys()].map(()=>" ").join("")}${d}`,sender:c});super(e.shortMessage||`An unknown error occurred while executing the contract function "${o}".`,{cause:e,docsPath:a,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],p&&"Contract Call:",p].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=r,this.cause=e,this.contractAddress=n,this.functionName=o,this.sender=c}}t.ContractFunctionExecutionError=h;class g extends f.BaseError{constructor({abi:e,data:t,functionName:r,message:n}){let u,c,l,f,p;if(t&&"0x"!==t)try{const{abiItem:r,errorName:n,args:u}=c=(0,o.decodeErrorResult)({abi:e,data:t});if("Error"===n)f=u[0];else if("Panic"===n){const[e]=u;f=a.panicReasons[e]}else{const e=r?(0,i.formatAbiItem)(r,{includeName:!0}):void 0,t=r&&u?(0,s.formatAbiItemWithArgs)({abiItem:r,args:u,includeFunctionName:!1,includeName:!1}):void 0;l=[e?`Error: ${e}`:"",t&&"()"!==t?` ${[...Array(n?.length??0).keys()].map(()=>" ").join("")}${t}`:""]}}catch(e){u=e}else n&&(f=n);u instanceof d.AbiErrorSignatureNotFoundError&&(p=u.signature,l=[`Unable to decode signature "${p}" 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://openchain.xyz/signatures?query=${p}.`]),super(f&&"execution reverted"!==f||p?[`The contract function "${r}" reverted with the following ${p?"signature":"reason"}:`,f||p].join("\n"):`The contract function "${r}" reverted.`,{cause:u,metaMessages:l,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=c,this.raw=t,this.reason=f,this.signature=p}}t.ContractFunctionRevertedError=g;class v extends f.BaseError{constructor({functionName:e}){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"})}}t.ContractFunctionZeroDataError=v;class E extends f.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"})}}t.CounterfactualDeploymentFailedError=E;class x extends f.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}}t.RawContractError=x},81748:(e,t,r)=>
10{Object.defineProperty(t,"__esModule",{value:!0}),t.parseSignature=function(e){let{r:t,s:r}=n.secp256k1.Signature.fromCompact(e.slice(2,130)),o=Number(`0x${e.slice(130)}`),[i,s]=(()=>{if(0===o||1===o)return[void 0,o];if(27===o)return[BigInt(o),0];if(28===o)return[BigInt(o),1];throw Error("Invalid yParityOrV value")})();return void 0!==i?{r:(0,a.numberToHex)(t,{size:32}),s:(0,a.numberToHex)(r,{size:32}),v:i,yParity:s}:{r:(0,a.numberToHex)(t,{size:32}),s:(0,a.numberToHex)(r,{size:32}),yParity:s}};let n=r(26414),a=r(37264)},81906:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.notImplemented=t.bitMask=void 0,t.isBytes=a,t.abytes=o,t.abool=function(e,t){if("boolean"!=typeof t)throw Error(e+" boolean expected, got "+t)},t.numberToHexUnpadded=i,t.hexToNumber=s,t.bytesToHex=l,t.hexToBytes=f,t.bytesToNumberBE=function(e){return s(l(e))},t.bytesToNumberLE=function(e){return o(e),s(l(Uint8Array.from(e).reverse()))},t.numberToBytesBE=p,t.numberToBytesLE=function(e,t){return p(e,t).reverse()},t.numberToVarBytesBE=function(e){return f(i(e))},t.ensureBytes=function(e,t,r){let n;if("string"==typeof t)try{n=f(t)}catch(t){throw Error(e+" must be hex string or Uint8Array, cause: "+t)}else if(a(t))n=Uint8Array.from(t);else throw Error(e+" must be hex string or Uint8Array");let o=n.length;if("number"==typeof r&&o!==r)throw Error(e+" of length "+r+" expected, got "+o);return n},t.concatBytes=b,t.equalBytes=function(e,t){if(e.length!==t.length)return!1;let r=0;for(let n=0;n<e.length;n++)r|=e[n]^t[n];return 0===r},t.utf8ToBytes=function(e){if("string"!=typeof e)throw Error("string expected");return new Uint8Array(new TextEncoder().encode(e))},t.inRange=y,t.aInRange=function(e,t,r,n){if(!y(t,r,n))throw Error("expected valid "+e+": "+r+" <= n < "+n+", got "+t)},t.bitLen=function(e){let t;for(t=0;e>r;e>>=n,t+=1);return t},t.bitGet=function(e,t){return e>>BigInt(t)&n},t.bitSet=function(e,t,a){return e|(a?n:r)<<BigInt(t)},t.createHmacDrbg=function(e,t,r){if("number"!=typeof e||e<2)throw Error("hashLen must be a number");if("number"!=typeof t||t<2)throw Error("qByteLen must be a number");if("function"!=typeof r)throw Error("hmacFn must be a function");let n=h(e),a=h(e),o=0,i=()=>{n.fill(1),a.fill(0),o=0},s=(...e)=>r(a,n,...e),u=(e=h(0))=>{let t;if(a=s((t=[0],Uint8Array.from(t)),e),n=s(),0!==e.length){let t;a=s((t=[1],Uint8Array.from(t)),e),n=s()}},c=()=>{if(o++>=1e3)throw Error("drbg: tried 1000 values");let e=0,r=[];for(;e<t;){let t=(n=s()).slice();r.push(t),e+=n.length}return b(...r)};return(e,t)=>{let r;for(i(),u(e);!(r=t(c()));)u();return i(),r}},t.validateObject=function(e,t,r={}){let n=(t,r,n)=>{let a=g[r];if("function"!=typeof a)throw Error("invalid validator function");let o=e[t];if((!n||void 0!==o)&&!a(o,e))throw Error("param "+String(t)+" is invalid. Expected "+r+", got "+o)};for(let[e,r]of Object.entries(t))n(e,r,!1);for(let[e,t]of Object.entries(r))n(e,t,!0);return e},t.memoized=function(e){let t=new WeakMap;return(r,...n)=>{let a=t.get(r);if(void 0!==a)return a;let o=e(r,...n);return t.set(r,o),o}};let r=BigInt(0),n=BigInt(1);function a(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function o(e){if(!a(e))throw Error("Uint8Array expected")}function i(e){let t=e.toString(16);return 1&t.length?"0"+t:t}function s(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);return""===e?r:BigInt("0x"+e)}let u="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,c=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function l(e){if(o(e),u)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=c[e[r]];return t}function d(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:void 0}function f(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);if(u)return Uint8Array.fromHex(e);let t=e.length,r=t/2;if(t%2)throw Error("hex string expected, got unpadded hex of length "+t);let n=new Uint8Array(r);for(let t=0,a=0;t<r;t++,a+=2){let r=d(e.charCodeAt(a)),o=d(e.charCodeAt(a+1));if(void 0===r||void 0===o)throw Error('hex string expected, got non-hex character "'+(e[a]+e[a+1])+'" at index '+a);n[t]=16*r+o}return n}function p(e,t){return f(e.toString(16).padStart(2*t,"0"))}function b(...e){let t=0;for(let r=0;r<e.length;r++){let n=e[r];o(n),t+=n.length}let r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){let a=e[t];r.set(a,n),n+=a.length}return r}let m=e=>"bigint"==typeof e&&r<=e;function y(e,t,r){return m(e)&&m(t)&&m(r)&&t<=e&&e<r}t.bitMask=e=>(n<<BigInt(e))-n;let h=e=>new Uint8Array(e),g={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||a(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};t.notImplemented=()=>{throw Error("not implemented")}},82142:(e,t,r)=>
10{Object.defineProperty(t,"__esModule",{value:!0}),t.toPrefixedMessage=function(e){let t="string"==typeof e?(0,i.stringToHex)(e):"string"==typeof e.raw?e.raw:(0,i.bytesToHex)(e.raw),r=(0,i.stringToHex)(`${n.presignMessagePrefix}${(0,o.size)(t)}`);return(0,a.concat)([r,t])};let n=r(39142),a=r(78917),o=r(27420),i=r(37264)},82276:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.decodeEventLog=function(e){let{abi:t,data:r,strict:l,topics:d}=e,f=l??!0,[p,...b]=d;if(!p)throw new n.AbiEventSignatureEmptyTopicsError({docsPath:c});let m=t.find(e=>"event"===e.type&&p===(0,i.toEventSelector)((0,u.formatAbiItem)(e)));if(!(m&&"name"in m)||"event"!==m.type)throw new n.AbiEventSignatureNotFoundError(p,{docsPath:c});let{name:y,inputs:h}=m,g=h?.some(e=>!("name"in e&&e.name)),v=g?[]:{},E=h.map((e,t)=>[e,t]).filter(([e])=>"indexed"in e&&e.indexed);for(let e=0;e<E.length;e++){let[t,r]=E[e],a=b[e];if(!a)throw new n.DecodeLogTopicsMismatch({abiItem:m,param:t});v[g?r:t.name||r]=function({param:e,value:t}){return"string"===e.type||"bytes"===e.type||"tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/)?t:((0,s.decodeAbiParameters)([e],t)||[])[0]}({param:t,value:a})}let x=h.filter(e=>!("indexed"in e&&e.indexed));if(x.length>0){if(r&&"0x"!==r)try{let e=(0,s.decodeAbiParameters)(x,r);if(e)if(g)for(let t=0;t<h.length;t++)v[t]=v[t]??e.shift();else for(let t=0;t<x.length;t++)v[x[t].name]=e[t]}catch(e){if(f){if(e instanceof n.AbiDecodingDataSizeTooSmallError||e instanceof a.PositionOutOfBoundsError)throw new n.DecodeLogDataMismatch({abiItem:m,data:r,params:x,size:(0,o.size)(r)});throw e}}else if(f)throw new n.DecodeLogDataMismatch({abiItem:m,data:"0x",params:x,size:0})}return{eventName:y,args:Object.values(v).length>0?v:void 0}};let n=r(95664),a=r(42332),o=r(27420),i=r(53093),s=r(47065),u=r(8117),c="/docs/contract/decodeEventLog"},82606:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatProof=function(e){return{...e,balance:e.balance?BigInt(e.balance):void 0,nonce:e.nonce?(0,n.hexToNumber)(e.nonce):void 0,storageProof:e.storageProof?e.storageProof.map(e=>({...e,value:BigInt(e.value)})):void 0}};let n=r(47748)},82854:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.verifyTypedData=i;let n=r(43333),a=r(29609),o=r(73745);async function i(e){let{address:t,domain:r,message:i,primaryType:s,signature:u,types:c}=e;return(0,a.isAddressEqual)((0,n.getAddress)(t),await (0,o.recoverTypedDataAddress)({domain:r,message:i,primaryType:s,signature:u,types:c}))}},83265:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=t.HMAC=void 0;let n=r(55603);class a extends n.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,n.ahash)(e);const r=(0,n.toBytes)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const a=this.blockLen,o=new Uint8Array(a);o.set(r.length>a?e.create().update(r).digest():r);for(let e=0;e<o.length;e++)o[e]^=54;this.iHash.update(o),this.oHash=e.create();for(let e=0;e<o.length;e++)o[e]^=106;this.oHash.update(o),(0,n.clean)(o)}update(e){return(0,n.aexists)(this),this.iHash.update(e),this}digestInto(e){(0,n.aexists)(this),(0,n.abytes)(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));let{oHash:t,iHash:r,finished:n,destroyed:a,blockLen:o,outputLen:i}=this;return e.finished=n,e.destroyed=a,e.blockLen=o,e.outputLen=i,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}t.HMAC=a,t.hmac=(e,t,r)=>new a(e,t).update(r).digest(),t.hmac.create=(e,t)=>new a(e,t)},83536:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.fallback=function(e,t={}){let{key:r="fallback",name:n="Fallback",rank:a=!1,shouldThrow:o=s,retryCount:c,retryDelay:l}=t;return({chain:t,pollingInterval:s=4e3,timeout:d,...f})=>{let p=e,b=()=>{},m=(0,i.createTransport)({key:r,name:n,async request({method:e,params:r}){let n,a=async(i=0)=>{let s=p[i]({...f,chain:t,retryCount:0,timeout:d});try{let t=await s.request({method:e,params:r});return b({method:e,params:r,response:t,transport:s,status:"success"}),t}catch(u){if(b({error:u,method:e,params:r,transport:s,status:"error"}),o(u)||i===p.length-1||!(n??=p.slice(i+1).some(r=>{let{include:n,exclude:a}=r({chain:t}).config.methods||{};return n?n.includes(e):!a||!a.includes(e)})))throw u;return a(i+1)}};return a()},retryCount:c,retryDelay:l,type:"fallback"},{onResponse:e=>b=e,transports:p.map(e=>e({chain:t,retryCount:0}))});if(a){let e="object"==typeof a?a:{};u({chain:t,interval:e.interval??s,onTransports:e=>
10p=e,ping:e.ping,sampleCount:e.sampleCount,timeout:e.timeout,transports:p,weights:e.weights})}return m}},t.shouldThrow=s,t.rankTransports=u;let n=r(35342),a=r(11205),o=r(87637),i=r(66643);function s(e){return!!("code"in e&&"number"==typeof e.code&&(e.code===a.TransactionRejectedRpcError.code||e.code===a.UserRejectedRequestError.code||n.ExecutionRevertedError.nodeMessage.test(e.message)||5e3===e.code))}function u({chain:e,interval:t=4e3,onTransports:r,ping:n,sampleCount:a=10,timeout:i=1e3,transports:s,weights:c={}}){let{stability:l=.7,latency:d=.3}=c,f=[],p=async()=>{let u=await Promise.all(s.map(async t=>{let r,a,o=t({chain:e,retryCount:0,timeout:i}),s=Date.now();try{await (n?n({transport:o}):o.request({method:"net_listening"})),a=1}catch{a=0}finally{r=Date.now()}return{latency:r-s,success:a}}));f.push(u),f.length>a&&f.shift();let c=Math.max(...f.map(e=>Math.max(...e.map(({latency:e})=>e))));r(s.map((e,t)=>{let r=f.map(e=>e[t].latency),n=r.reduce((e,t)=>e+t,0)/r.length,a=f.map(e=>e[t].success),o=a.reduce((e,t)=>e+t,0)/a.length;return 0===o?[0,t]:[d*(1-n/c)+l*o,t]}).sort((e,t)=>t[0]-e[0]).map(([,e])=>s[e])),await (0,o.wait)(t),p()};p()}},84129:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.extract=function(e,{format:t}){if(!t)return{};let r={};return!function t(n){for(let a of Object.keys(n))a in e&&(r[a]=e[a]),n[a]&&"object"==typeof n[a]&&!Array.isArray(n[a])&&t(n[a])}(t(e||{})),r}},84198:(e,t)=>{let r;Object.defineProperty(t,"__esModule",{value:!0}),t.uid=function(e=11){if(!r||n+e>512){r="",n=0;for(let e=0;e<256;e++)r+=(256+256*Math.random()|0).toString(16).substring(1)}return r.substring(n,n+++e)};let n=256},84212:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.decodeFunctionResult=function(e){let{abi:t,args:r,functionName:s,data:u}=e,c=t[0];if(s){let e=(0,o.getAbiItem)({abi:t,args:r,name:s});if(!e)throw new n.AbiFunctionNotFoundError(s,{docsPath:i});c=e}if("function"!==c.type)throw new n.AbiFunctionNotFoundError(void 0,{docsPath:i});if(!c.outputs)throw new n.AbiFunctionOutputsNotFoundError(c.name,{docsPath:i});let l=(0,a.decodeAbiParameters)(c.outputs,u);return l&&l.length>1?l:l&&1===l.length?l[0]:void 0};let n=r(95664),a=r(47065),o=r(1682),i="/docs/contract/decodeFunctionResult"},84373:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.minInt144=t.minInt136=t.minInt128=t.minInt120=t.minInt112=t.minInt104=t.minInt96=t.minInt88=t.minInt80=t.minInt72=t.minInt64=t.minInt56=t.minInt48=t.minInt40=t.minInt32=t.minInt24=t.minInt16=t.minInt8=t.maxInt256=t.maxInt248=t.maxInt240=t.maxInt232=t.maxInt224=t.maxInt216=t.maxInt208=t.maxInt200=t.maxInt192=t.maxInt184=t.maxInt176=t.maxInt168=t.maxInt160=t.maxInt152=t.maxInt144=t.maxInt136=t.maxInt128=t.maxInt120=t.maxInt112=t.maxInt104=t.maxInt96=t.maxInt88=t.maxInt80=t.maxInt72=t.maxInt64=t.maxInt56=t.maxInt48=t.maxInt40=t.maxInt32=t.maxInt24=t.maxInt16=t.maxInt8=void 0,t.maxUint256=t.maxUint248=t.maxUint240=t.maxUint232=t.maxUint224=t.maxUint216=t.maxUint208=t.maxUint200=t.maxUint192=t.maxUint184=t.maxUint176=t.maxUint168=t.maxUint160=t.maxUint152=t.maxUint144=t.maxUint136=t.maxUint128=t.maxUint120=t.maxUint112=t.maxUint104=t.maxUint96=t.maxUint88=t.maxUint80=t.maxUint72=t.maxUint64=t.maxUint56=t.maxUint48=t.maxUint40=t.maxUint32=t.maxUint24=t.maxUint16=t.maxUint8=t.minInt256=t.minInt248=t.minInt240=t.minInt232=t.minInt224=t.minInt216=t.minInt208=t.minInt200=t.minInt192=t.minInt184=t.minInt176=t.minInt168=t.minInt160=t.minInt152=void 0,t.maxInt8=2n**(8n-1n)-1n,t.maxInt16=2n**(16n-1n)-1n,t.maxInt24=2n**(24n-1n)-1n,t.maxInt32=2n**(32n-1n)-1n,t.maxInt40=2n**(40n-1n)-1n,t.maxInt48=2n**(48n-1n)-1n,t.maxInt56=2n**(56n-1n)-1n,t.maxInt64=2n**(64n-1n)-1n,t.maxInt72=2n**(72n-1n)-1n,t.maxInt80=2n**(80n-1n)-1n,t.maxInt88=2n**(88n-1n)-1n,t.maxInt96=2n**(96n-1n)-1n,t.maxInt104=2n**(104n-1n)-1n,t.maxInt112=2n**(112n-1n)-1n,t.maxInt120=2n**(120n-1n)-1n,t.maxInt128=2n**(128n-1n)-1n,t.maxInt136=2n**(136n-1n)-1n,t.maxInt144=2n**(144n-1n)-1n,t.maxInt152=2n**(152n-1n)-1n,t.maxInt160=2n**(160n-1n)-1n,t.maxInt168=2n**(168n-1n)-1n,t.maxInt176=2n**(176n-1n)-1n,t.maxInt184=2n**(184n-1n)-1n,t.maxInt192=2n**(192n-1n)-1n,t.maxInt200=2n**(200n-1n)-1n,t.maxInt208=2n**(208n-1n)-1n,t.maxInt216=2n**(216n-1n)-1n,t.maxInt224=2n**(224n-1n)-1n,t.maxInt232=2n**(232n-1n)-1n,t.maxInt240=2n**(240n-1n)-1n,t.maxInt248=2n**(248n-1n)-1n,t.maxInt256=2n**(256n-1n)-1n,t.minInt8=-(2n**(8n-1n)),t.minInt16=-(2n**(16n-1n)),t.minInt24=-(2n**(24n-1n)),t.minInt32=-(2n**(32n-1n)),t.minInt40=-(2n**(40n-1n)),t.minInt48=-(2n**(48n-1n)),t.minInt56=-(2n**(56n-1n)),t.minInt64=-(2n**(64n-1n)),t.minInt72=-(2n**(72n-1n)),t.minInt80=-(2n**(80n-1n)),t.minInt88=-(2n**(88n-1n)),t.minInt96=-(2n**(96n-1n)),t.minInt104=-(2n**(104n-1n)),t.minInt112=-(2n**(112n-1n)),t.minInt120=-(2n**(120n-1n)),t.minInt128=-(2n**(128n-1n)),t.minInt136=-(2n**(136n-1n)),t.minInt144=-(2n**(144n-1n)),t.minInt152=-(2n**(152n-1n)),t.minInt160=-(2n**(160n-1n)),t.minInt168=-(2n**(168
10n-1n)),t.minInt176=-(2n**(176n-1n)),t.minInt184=-(2n**(184n-1n)),t.minInt192=-(2n**(192n-1n)),t.minInt200=-(2n**(200n-1n)),t.minInt208=-(2n**(208n-1n)),t.minInt216=-(2n**(216n-1n)),t.minInt224=-(2n**(224n-1n)),t.minInt232=-(2n**(232n-1n)),t.minInt240=-(2n**(240n-1n)),t.minInt248=-(2n**(248n-1n)),t.minInt256=-(2n**(256n-1n)),t.maxUint8=2n**8n-1n,t.maxUint16=2n**16n-1n,t.maxUint24=2n**24n-1n,t.maxUint32=2n**32n-1n,t.maxUint40=2n**40n-1n,t.maxUint48=2n**48n-1n,t.maxUint56=2n**56n-1n,t.maxUint64=2n**64n-1n,t.maxUint72=2n**72n-1n,t.maxUint80=2n**80n-1n,t.maxUint88=2n**88n-1n,t.maxUint96=2n**96n-1n,t.maxUint104=2n**104n-1n,t.maxUint112=2n**112n-1n,t.maxUint120=2n**120n-1n,t.maxUint128=2n**128n-1n,t.maxUint136=2n**136n-1n,t.maxUint144=2n**144n-1n,t.maxUint152=2n**152n-1n,t.maxUint160=2n**160n-1n,t.maxUint168=2n**168n-1n,t.maxUint176=2n**176n-1n,t.maxUint184=2n**184n-1n,t.maxUint192=2n**192n-1n,t.maxUint200=2n**200n-1n,t.maxUint208=2n**208n-1n,t.maxUint216=2n**216n-1n,t.maxUint224=2n**224n-1n,t.maxUint232=2n**232n-1n,t.maxUint240=2n**240n-1n,t.maxUint248=2n**248n-1n,t.maxUint256=2n**256n-1n},84692:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getChainId=a;let n=r(85319);async function a(e){let t=await e.request({method:"eth_chainId"},{dedupe:!0});return(0,n.hexToNumber)(t)}},85033:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.socketClientCache=void 0,t.getSocketRpcClient=s;let n=r(26019),a=r(9139),o=r(40869),i=r(27309);async function s(e){let{getSocket:r,keepAlive:s=!0,key:u="socket",reconnect:c=!0,url:l}=e,{interval:d=3e4}="object"==typeof s?s:{},{attempts:f=5,delay:p=2e3}="object"==typeof c?c:{},b=JSON.stringify({keepAlive:s,key:u,url:l,reconnect:c}),m=t.socketClientCache.get(b);if(m)return m;let y=0,{schedule:h}=(0,a.createBatchScheduler)({id:b,fn:async()=>{let e,a,u,h=new Map,g=new Map,v=!1;function E(){c&&y<f?v||(v=!0,y++,a?.close(),setTimeout(async()=>{await x().catch(console.error),v=!1},p)):(h.clear(),g.clear())}async function x(){let t=await r({onClose(){for(let e of h.values())e.onError?.(new n.SocketClosedError({url:l}));for(let e of g.values())e.onError?.(new n.SocketClosedError({url:l}));E()},onError(t){for(let r of(e=t,h.values()))r.onError?.(e);for(let t of g.values())t.onError?.(e);E()},onOpen(){e=void 0,y=0},onResponse(e){let t="eth_subscription"===e.method,r=t?e.params.subscription:e.id,n=t?g:h,a=n.get(r);a&&a.onResponse(e),t||n.delete(r)}});if(a=t,s&&(u&&clearInterval(u),u=setInterval(()=>a.ping?.(),d)),c&&g.size>0)for(let[e,{onResponse:t,body:r,onError:n}]of g.entries())r&&(g.delete(e),m?.request({body:r,onResponse:t,onError:n}));return t}return await x(),e=void 0,m={close(){u&&clearInterval(u),a.close(),t.socketClientCache.delete(b)},get socket(){return a},request({body:t,onError:r,onResponse:n}){e&&r&&r(e);let o=t.id??i.idCache.take(),s=e=>{("number"!=typeof e.id||o===e.id)&&("eth_subscribe"===t.method&&"string"==typeof e.result&&g.set(e.result,{onResponse:s,onError:r,body:t}),"eth_unsubscribe"===t.method&&g.delete(t.params?.[0]),n(e))};h.set(o,{onResponse:s,onError:r});try{a.request({body:{jsonrpc:"2.0",id:o,...t}})}catch(e){r?.(e)}},requestAsync({body:e,timeout:t=1e4}){return(0,o.withTimeout)(()=>new Promise((t,r)=>this.request({body:e,onError:r,onResponse:t})),{errorInstance:new n.TimeoutError({body:e,url:l}),timeout:t})},requests:h,subscriptions:g,url:l},t.socketClientCache.set(b,m),[m]}}),[g,[v]]=await h();return v}t.socketClientCache=new Map},85102:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.aggregate3Signature=void 0,t.aggregate3Signature="0x82ad56cb"},85319:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.assertSize=s,t.fromHex=function(e,t){let r="string"==typeof t?{to:t}:t,n=r.to;return"number"===n?l(e,r):"bigint"===n?u(e,r):"string"===n?d(e,r):"boolean"===n?c(e,r):(0,i.hexToBytes)(e,r)},t.hexToBigInt=u,t.hexToBool=c,t.hexToNumber=l,t.hexToString=d;let n=r(36119),a=r(27420),o=r(24141),i=r(96978);function s(e,{size:t}){if((0,a.size)(e)>t)throw new n.SizeOverflowError({givenSize:(0,a.size)(e),maxSize:t})}function u(e,t={}){let{signed:r}=t;t.size&&s(e,{size:t.size});let n=BigInt(e);if(!r)return n;let a=(e.length-2)/2;
10return n<=(1n<<8n*BigInt(a)-1n)-1n?n:n-BigInt(`0x${"f".padStart(2*a,"f")}`)-1n}function c(e,t={}){let r=e;if(t.size&&(s(r,{size:t.size}),r=(0,o.trim)(r)),"0x00"===(0,o.trim)(r))return!1;if("0x01"===(0,o.trim)(r))return!0;throw new n.InvalidHexBooleanError(r)}function l(e,t={}){return Number(u(e,t))}function d(e,t={}){let r=(0,i.hexToBytes)(e);return t.size&&(s(r,{size:t.size}),r=(0,o.trim)(r,{dir:"right"})),new TextDecoder().decode(r)}},85816:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TransferDirection=t.TransactionStatus=t.TokenType=t.Operation=void 0;var n=r(67099);Object.defineProperty(t,"Operation",{enumerable:!0,get:function(){return n.Operation}}),Object.defineProperty(t,"TokenType",{enumerable:!0,get:function(){return n.TokenType}}),Object.defineProperty(t,"TransactionStatus",{enumerable:!0,get:function(){return n.TransactionStatus}}),Object.defineProperty(t,"TransferDirection",{enumerable:!0,get:function(){return n.TransferDirection}})},86011:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setBalance=a;let n=r(37264);async function a(e,{address:t,value:r}){"ganache"===e.mode?await e.request({method:"evm_setAccountBalance",params:[t,(0,n.numberToHex)(r)]}):await e.request({method:`${e.mode}_setBalance`,params:[t,(0,n.numberToHex)(r)]})}},86097:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.watchEvent=function(e,{address:t,args:r,batch:h=!0,event:g,events:v,fromBlock:E,onError:x,onLogs:w,poll:P,pollingInterval:I=e.pollingInterval,strict:A}){let T,O,B,S=void 0!==P?P:"bigint"==typeof E||"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
10onfig.type&&"ipc"!==e.transport.transports[0].config.type),j=A??!1;return S?(T=(0,d.stringify)(["watchEvent",t,r,h,e.uid,g,I,E]),(0,c.observe)(T,{onLogs:w,onError:x},n=>{let o,i;void 0!==E&&(o=E-1n);let s=!1,c=(0,l.poll)(async()=>{if(!s){try{i=await (0,u.getAction)(e,f.createEventFilter,"createEventFilter")({address:t,args:r,event:g,events:v,strict:j,fromBlock:E})}catch{}s=!0;return}try{let a;if(i)a=await (0,u.getAction)(e,b.getFilterChanges,"getFilterChanges")({filter:i});else{let n=await (0,u.getAction)(e,p.getBlockNumber,"getBlockNumber")({});a=o&&o!==n?await (0,u.getAction)(e,m.getLogs,"getLogs")({address:t,args:r,event:g,events:v,fromBlock:o+1n,toBlock:n}):[],o=n}if(0===a.length)return;if(h)n.onLogs(a);else for(let e of a)n.onLogs([e])}catch(e){i&&e instanceof a.InvalidInputRpcError&&(s=!1),n.onError?.(e)}},{emitOnBegin:!0,interval:I});return async()=>{i&&await (0,u.getAction)(e,y.uninstallFilter,"uninstallFilter")({filter:i}),c()}})):(O=!0,B=()=>O=!1,(async()=>{try{let a=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type||"ipc"===e.config.type);return t?t.value:e.transport}return e.transport})(),u=v??(g?[g]:void 0),c=[];u&&(c=[u.flatMap(e=>(0,i.encodeEventTopics)({abi:[e],eventName:e.name,args:r}))],g&&(c=c[0]));let{unsubscribe:l}=await a.subscribe({params:["logs",{address:t,topics:c}],onData(e){if(!O)return;let t=e.result;try{let{eventName:e,args:r}=(0,o.decodeEventLog)({abi:u??[],data:t.data,topics:t.topics,strict:j}),n=(0,s.formatLog)(t,{args:r,eventName:e});w([n])}catch(o){let e,r;if(o instanceof n.DecodeLogDataMismatch||o instanceof n.DecodeLogTopicsMismatch){if(A)return;e=o.abiItem.name,r=o.abiItem.inputs?.some(e=>!("name"in e&&e.name))}let a=(0,s.formatLog)(t,{args:r?[]:{},eventName:e});w([a])}},onError(e){x?.(e)}});B=l,O||B()}catch(e){x?.(e)}})(),()=>B())};let n=r(95664),a=r(11205),o=r(82276),i=r(34736),s=r(64234),u=r(78234),c=r(8156),l=r(33593),d=r(57737),f=r(64242),p=r(19960),b=r(21815),m=r(76947),y=r(53620)},86717:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.writeContract=c;let n=r(25055),a=r(43473),o=r(63997),i=r(67916),s=r(78234),u=r(31786);async function c(e,t){return c.internal(e,u.sendTransaction,"sendTransaction",t)}(c||(t.writeContract=c={})).internal=async function(e,t,r,u){let{abi:c,account:l=e.account,address:d,args:f,dataSuffix:p,functionName:b,...m}=u;if(void 0===l)throw new a.AccountNotFoundError({docsPath:"/docs/contract/writeContract"});let y=l?(0,n.parseAccount)(l):null,h=(0,o.encodeFunctionData)({abi:c,args:f,functionName:b});try{return await (0,s.getAction)(e,t,r)({data:`${h}${p?p.replace("0x",""):""}`,to:d,account:y,...m})}catch(e){throw(0,i.getContractError)(e,{abi:c,address:d,args:f,docsPath:"/docs/contract/writeContract",functionName:b,sender:y?.address})}}},87003:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.walletActions=function(e){return{addChain:t=>(0,a.addChain)(e,t),deployContract:t=>(0,o.deployContract)(e,t),getAddresses:()=>(0,i.getAddresses)(e),getCallsStatus:t=>(0,s.getCallsStatus)(e,t),getCapabilities:t=>(0,u.getCapabilities)(e,t),getChainId:()=>(0,n.getChainId)(e),getPermissions:()=>(0,c.getPermissions)(e),prepareAuthorization:t=>(0,l.prepareAuthorization)(e,t),prepareTransactionRequest:t=>(0,d.prepareTransactionRequest)(e,t),requestAddresses:()=>(0,f.requestAddresses)(e),requestPermissions:t=>(0,p.requestPermissions)(e,t),sendCalls:t=>(0,b.sendCalls)(e,t),sendCallsSync:t=>(0,m.sendCallsSync)(e,t),sendRawTransaction:t=>(0,y.sendRawTransaction)(e,t),sendRawTransactionSync:t=>(0,h.sendRawTransactionSync)(e,t),sendTransaction:t=>(0,g.sendTransaction)(e,t),sendTransactionSync:t=>(0,v.sendTransactionSync)(e,t),showCallsStatus:t=>(0,E.showCallsStatus)(e,t),signAuthorization:t=>(0,x.signAuthorization)(e,t),signMessage:t=>(0,w.signMessage)(e,t),signTransaction:t=>(0,P.signTransaction)(e,t),signTypedData:t=>(0,I.signTypedData)(e,t),switchChain:t=>(0,A.switchChain)(e,t),waitForCallsStatus:t=>(0,T.waitForCallsStatus)(e,t),watchAsset:t=>(0,O.watchAsset)(e,t),writeContract:t=>(0,B.writeContract)(e,t),writeContractSync:t=>(0,S.writeContractSync)(e,t)}};let n=r(84692),a=r(60164),o=r(74225),i=r(41848),s=r(44727),u=r(96405),c=r(24288),l=r(7052),d=r(37458),f=r(76723),p=r(33851),b=r(73419),m=r(27504),y=r(63644),h=r(64939),g=r(31786),v=r(42245),E=r(77624),x=r(39818),w=r(95080),P=r(4915),I=r(93003),A=r(73385),T=r(56003),O=r(51129),B=r(86717),S=r(21822)},87286:(e,t,r)=>
10{Object.defineProperty(t,"__esModule",{value:!0}),t.parseEther=function(e,t="wei"){return(0,a.parseUnits)(e,n.etherUnits[t])};let n=r(98274),a=r(27149)},87358:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.keccak256=function(e,t={}){let{as:r="string"==typeof e?"Hex":"Bytes"}=t,n=(0,a.keccak_256)(i.from(e));return"Bytes"===r?n:s.fromBytes(n)},t.ripemd160=function(e,t={}){let{as:r="string"==typeof e?"Hex":"Bytes"}=t,a=(0,n.ripemd160)(i.from(e));return"Bytes"===r?a:s.fromBytes(a)},t.sha256=function(e,t={}){let{as:r="string"==typeof e?"Hex":"Bytes"}=t,n=(0,o.sha256)(i.from(e));return"Bytes"===r?n:s.fromBytes(n)},t.validate=function(e){return s.validate(e)&&32===s.size(e)};let n=r(34890),a=r(11813),o=r(96141),i=r(33745),s=r(58515)},87637:(e,t)=>{async function r(e){return new Promise(t=>setTimeout(t,e))}Object.defineProperty(t,"__esModule",{value:!0}),t.wait=r},88062:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toBlobSidecars=function(e){let{data:t,kzg:r,to:i}=e,s=e.blobs??(0,o.toBlobs)({data:t,to:i}),u=e.commitments??(0,n.blobsToCommitments)({blobs:s,kzg:r,to:i}),c=e.proofs??(0,a.blobsToProofs)({blobs:s,commitments:u,kzg:r,to:i}),l=[];for(let e=0;e<s.length;e++)l.push({blob:s[e],commitment:u[e],proof:c[e]});return l};let n=r(49817),a=r(6110),o=r(18487)},88214:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.containsNodeError=function(e){return e instanceof i.TransactionRejectedRpcError||e instanceof i.InvalidInputRpcError||e instanceof o.RpcRequestError&&e.code===a.ExecutionRevertedError.code},t.getNodeError=function(e,t){let r=(e.details||"").toLowerCase(),o=e instanceof n.BaseError?e.walk(e=>e?.code===a.ExecutionRevertedError.code):e;return o instanceof n.BaseError?new a.ExecutionRevertedError({cause:e,message:o.details}):a.ExecutionRevertedError.nodeMessage.test(r)?new a.ExecutionRevertedError({cause:e,message:e.details}):a.FeeCapTooHighError.nodeMessage.test(r)?new a.FeeCapTooHighError({cause:e,maxFeePerGas:t?.maxFeePerGas}):a.FeeCapTooLowError.nodeMessage.test(r)?new a.FeeCapTooLowError({cause:e,maxFeePerGas:t?.maxFeePerGas}):a.NonceTooHighError.nodeMessage.test(r)?new a.NonceTooHighError({cause:e,nonce:t?.nonce}):a.NonceTooLowError.nodeMessage.test(r)?new a.NonceTooLowError({cause:e,nonce:t?.nonce}):a.NonceMaxValueError.nodeMessage.test(r)?new a.NonceMaxValueError({cause:e,nonce:t?.nonce}):a.InsufficientFundsError.nodeMessage.test(r)?new a.InsufficientFundsError({cause:e}):a.IntrinsicGasTooHighError.nodeMessage.test(r)?new a.IntrinsicGasTooHighError({cause:e,gas:t?.gas}):a.IntrinsicGasTooLowError.nodeMessage.test(r)?new a.IntrinsicGasTooLowError({cause:e,gas:t?.gas}):a.TransactionTypeNotSupportedError.nodeMessage.test(r)?new a.TransactionTypeNotSupportedError({cause:e}):a.TipAboveFeeCapError.nodeMessage.test(r)?new a.TipAboveFeeCapError({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new a.UnknownNodeError({cause:e})};let n=r(33911),a=r(35342),o=r(26019),i=r(11205)},88458:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TXs=void 0;let n=r(79629),a=r(21830);class o{constructor(e){this.communicator=e}async getBySafeTxHash(e){if(!e)throw Error("Invalid safeTxHash");return(await this.communicator.send(n.Methods.getTxBySafeTxHash,{safeTxHash:e})).data}async signMessage(e){return(await this.communicator.send(n.Methods.signMessage,{message:e})).data}async signTypedMessage(e){if(!(0,a.isObjectEIP712TypedData)(e))throw Error("Invalid typed data");return(await this.communicator.send(n.Methods.signTypedMessage,{typedData:e})).data}async send({txs:e,params:t}){if(!e||!e.length)throw Error("No transactions were passed");return(await this.communicator.send(n.Methods.sendTransactions,{txs:e,params:t})).data}}t.TXs=o},88465:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.assertTransactionEIP7702=function(e){let{authorizationList:t}=e;if(t)for(let e of t){let{chainId:t}=e,r=e.address;if(!(0,l.isAddress)(r))throw new o.InvalidAddressError({address:r});if(t<0)throw new u.InvalidChainIdError({chainId:t})}b(e)},t.assertTransactionEIP4844=function(e){let{blobVersionedHashes:t}=e;if(t){if(0===t.length)throw new s.EmptyBlobError;for(let e of t){let t=(0,d.size)(e),r=(0,p.hexToNumber)((0,f.slice)(e,0,1));if(32!==t)throw new s.InvalidVersionedHashSizeError({hash:e,size:t});if(r!==n.versionedHashVersionKzg)throw new s.InvalidVersionedHashVersionError({hash:e,version:r})}}b(e)},t.assertTransactionEIP1559=b,t.assertTransactionEIP2930=function(e){let{chainId:t,maxPriorityFeePerGas:r,gasPrice:n,maxFeePerGas:s,to:d}=e;if(t<=0)throw new u.InvalidChainIdError({chainId:t});if(d&&!(0,l.isAddress)(d))throw new o.InvalidAddressError({address:d});if(r||s)throw new i.BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(n&&n>a.maxUint256)throw new c.FeeCapTooHighError({maxFeePerGas:n})},t.assertTransactionLegacy=function(e){let{chainId:t,maxPriorityFeePerGas:r,gasPrice:n,maxFeePerGas:s,to:d}=e;if(d&&!(0,l.isAddress)(d))throw new o.InvalidAddressError({address:d});if(void 0!==t&&t<=0)throw new u.InvalidChainIdError({chainId:t});if(r||s)throw new i.BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(n&&n>a.maxUint256)throw new c.FeeCapTooHighError({maxFeePerGas:n})};let n=r(890),a=r(84373),o=r(47730),i=r(33911),s=r(96189),u=r(10131),c=r(35342),l=r(1199),d=r(27420),f=r(25109),p=r(85319);function b(e){let{chainId:t,maxPriorityFeePerGas:r,maxFeePerGas:n,to:i}=e;if(t<=0)throw new u.InvalidChainIdError({chainId:t});if(i&&!(0,l.isAddress)(i))throw new o.InvalidAddressError({address:i});if(n&&n>a.maxUint256)throw new c.FeeCapTooHighError({maxFeePerGas:n});if(r&&n&&r>n)throw new c.TipAboveFeeCapError({maxFeePerGas:n,maxPriorityFeePerGas:r})}},88524:(e,t,r)=>
10{Object.defineProperty(t,"__esModule",{value:!0}),t.formatGwei=function(e,t="wei"){return(0,a.formatUnits)(e,n.gweiUnits[t])};let n=r(98274),a=r(22159)},88673:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getCode=a;let n=r(37264);async function a(e,{address:t,blockNumber:r,blockTag:o="latest"}){let i=void 0!==r?(0,n.numberToHex)(r):void 0,s=await e.request({method:"eth_getCode",params:[t,i||o]},{dedupe:!!i});if("0x"!==s)return s}},89007:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getChainContractAddress=function({blockNumber:e,chain:t,contract:r}){let a=t?.contracts?.[r];if(!a)throw new n.ChainDoesNotSupportContract({chain:t,contract:{name:r}});if(e&&a.blockCreated&&a.blockCreated>e)throw new n.ChainDoesNotSupportContract({blockNumber:e,chain:t,contract:{name:r,blockCreated:a.blockCreated}});return a.address};let n=r(10131)},89052:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.commitmentsToVersionedHashes=function(e){let{commitments:t,version:r}=e,a=e.to??("string"==typeof t[0]?"hex":"bytes"),o=[];for(let e of t)o.push((0,n.commitmentToVersionedHash)({commitment:e,to:a,version:r}));return o};let n=r(42177)},89274:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EnsInvalidChainIdError=t.EnsAvatarUnsupportedNamespaceError=t.EnsAvatarUriResolutionError=t.EnsAvatarInvalidNftUriError=t.EnsAvatarInvalidMetadataError=void 0;let n=r(33911);class a extends n.BaseError{constructor({data:e}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(e)}`],name:"EnsAvatarInvalidMetadataError"})}}t.EnsAvatarInvalidMetadataError=a;class o extends n.BaseError{constructor({reason:e}){super(`ENS NFT avatar URI is invalid. ${e}`,{name:"EnsAvatarInvalidNftUriError"})}}t.EnsAvatarInvalidNftUriError=o;class i extends n.BaseError{constructor({uri:e}){super(`Unable to resolve ENS avatar URI "${e}". The URI may be malformed, invalid, or does not respond with a valid image.`,{name:"EnsAvatarUriResolutionError"})}}t.EnsAvatarUriResolutionError=i;class s extends n.BaseError{constructor({namespace:e}){super(`ENS NFT avatar namespace "${e}" is not supported. Must be "erc721" or "erc1155".`,{name:"EnsAvatarUnsupportedNamespaceError"})}}t.EnsAvatarUnsupportedNamespaceError=s;class u extends n.BaseError{constructor({chainId:e}){super(`Invalid ENSIP-11 chainId: ${e}. Must be between 0 and 0x7fffffff, or 1.`,{name:"EnsInvalidChainIdError"})}}t.EnsInvalidChainIdError=u},89469:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.hashSignature=function(e){return(0,a.keccak256)((0,n.toBytes)(e))};let n=r(96978),a=r(60976)},90292:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getEip712Domain=i;let n=r(48910),a=r(78234),o=r(36110);async function i(e,t){let{address:r,factory:i,factoryData:u}=t;try{let[t,n,c,l,d,f,p]=await (0,a.getAction)(e,o.readContract,"readContract")({abi:s,address:r,functionName:"eip712Domain",factory:i,factoryData:u});return{domain:{name:n,version:c,chainId:Number(l),verifyingContract:d,salt:f},extensions:p,fields:t}}catch(e){if("ContractFunctionExecutionError"===e.name&&"ContractFunctionZeroDataError"===e.cause.name)throw new n.Eip712DomainNotFoundError({address:r});throw e}}let s=[{inputs:[],name:"eip712Domain",outputs:[{name:"fields",type:"bytes1"},{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"},{name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"}]},90434:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeSignature=function(e){let t=!0,r="",a=0,o="",i=!1;for(let n=0;n<e.length;n++){let s=e[n];if(["(",")",","].includes(s)&&(t=!0),"("===s&&a++,")"===s&&a--,t){if(0===a){if(" "===s&&["event","function",""].includes(o))o="";else if(o+=s,")"===s){i=!0;break}continue}if(" "===s){","!==e[n-1]&&","!==r&&",("!==r&&(r="",t=!1);continue}o+=s,r+=s}}if(!i)throw new n.BaseError("Unable to normalize signature.");return o};let n=r(33911)},90526:(e,t,r)=>
10{Object.defineProperty(t,"__esModule",{value:!0}),t.serializeCompactSignature=function({r:e,yParityAndS:t}){return`0x${new n.secp256k1.Signature((0,a.hexToBigInt)(e),(0,a.hexToBigInt)(t)).toCompactHex()}`};let n=r(26414),a=r(85319)},90589:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.numberToHex=t.getLowerCase=void 0,t.getLowerCase=function(e){return e?e.toLowerCase():e},t.numberToHex=function(e){return`0x${e.toString(16)}`}},90942:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.defineFormatter=function(e,t){return({exclude:r,format:n})=>({exclude:r,format:(e,a)=>{let o=t(e,a);if(r)for(let e of r)delete o[e];return{...o,...n(e,a)}},type:e})}},91024:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.serializeTypedData=function(e){let{domain:t,message:r,primaryType:n,types:a}=e,o=(e,t)=>{let r={...t};for(let t of e){let{name:e,type:n}=t;"address"===n&&(r[e]=r[e].toLowerCase())}return r},i=a.EIP712Domain&&t?o(a.EIP712Domain,t):{},s=(()=>{if("EIP712Domain"!==n)return o(a[n],r)})();return(0,d.stringify)({domain:i,message:s,primaryType:n,types:a})},t.validateTypedData=function(e){let{domain:t,message:r,primaryType:l,types:d}=e,f=(e,t)=>{for(let r of e){let{name:e,type:l}=r,p=t[e],b=l.match(c.integerRegex);if(b&&("number"==typeof p||"bigint"==typeof p)){let[e,t,r]=b;(0,u.numberToHex)(p,{signed:"int"===t,size:Number.parseInt(r,10)/8})}if("address"===l&&"string"==typeof p&&!(0,i.isAddress)(p))throw new a.InvalidAddressError({address:p});let m=l.match(c.bytesRegex);if(m){let[e,t]=m;if(t&&(0,s.size)(p)!==Number.parseInt(t,10))throw new n.BytesSizeMismatchError({expectedSize:Number.parseInt(t,10),givenSize:(0,s.size)(p)})}let y=d[l];y&&(function(e){if("address"===e||"bool"===e||"string"===e||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new o.InvalidStructTypeError({type:e})}(l),f(y,p))}};if(d.EIP712Domain&&t){if("object"!=typeof t)throw new o.InvalidDomainError({domain:t});f(d.EIP712Domain,t)}if("EIP712Domain"!==l)if(d[l])f(d[l],r);else throw new o.InvalidPrimaryTypeError({primaryType:l,types:d})},t.getTypesForEIP712Domain=f,t.domainSeparator=function({domain:e}){return(0,l.hashDomain)({domain:e,types:{EIP712Domain:f({domain:e})}})};let n=r(95664),a=r(47730),o=r(28814),i=r(1199),s=r(27420),u=r(37264),c=r(32187),l=r(98589),d=r(57737);function f({domain:e}){return["string"==typeof e?.name&&{name:"name",type:"string"},e?.version&&{name:"version",type:"string"},("number"==typeof e?.chainId||"bigint"==typeof e?.chainId)&&{name:"chainId",type:"uint256"},e?.verifyingContract&&{name:"verifyingContract",type:"address"},e?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean)}},91157:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=t.RIPEMD160=t.md5=t.MD5=t.sha1=t.SHA1=void 0;let n=r(11258),a=r(55603),o=Uint32Array.from([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]),i=new Uint32Array(80);class s extends n.HashMD{constructor(){super(64,20,8,!1),this.A=0|o[0],this.B=0|o[1],this.C=0|o[2],this.D=0|o[3],this.E=0|o[4]}get(){let{A:e,B:t,C:r,D:n,E:a}=this;return[e,t,r,n,a]}set(e,t,r,n,a){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|a}process(e,t){for(let r=0;r<16;r++,t+=4)i[r]=e.getUint32(t,!1);for(let e=16;e<80;e++)i[e]=(0,a.rotl)(i[e-3]^i[e-8]^i[e-14]^i[e-16],1);let{A:r,B:o,C:s,D:u,E:c}=this;for(let e=0;e<80;e++){let t,l;e<20?(t=(0,n.Chi)(o,s,u),l=0x5a827999):e<40?(t=o^s^u,l=0x6ed9eba1):e<60?(t=(0,n.Maj)(o,s,u),l=0x8f1bbcdc):(t=o^s^u,l=0xca62c1d6);let d=(0,a.rotl)(r,5)+t+c+l+i[e]|0;c=u,u=s,s=(0,a.rotl)(o,30),o=r,r=d}r=r+this.A|0,o=o+this.B|0,s=s+this.C|0,u=u+this.D|0,c=c+this.E|0,this.set(r,o,s,u,c)}roundClean(){(0,a.clean)(i)}destroy(){this.set(0,0,0,0,0),(0,a.clean)(this.buffer)}}t.SHA1=s,t.sha1=(0,a.createHasher)(()=>new s);let u=Array.from({length:64},(e,t)=>Math.floor(0x100000000*Math.abs(Math.sin(t+1)))),c=o.slice(0,4),l=new Uint32Array(16);class d extends n.HashMD{constructor(){super(64,16,8,!0),this.A=0|c[0],this.B=0|c[1],this.C=0|c[2],this.D=0|c[3]}get(){let{A:e,B:t,C:r,D:n}=this;return[e,t,r,n]}set(e,t,r,n){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n}process(e,t){for(let r=0;r<16;r++,t+=4)l[r]=e.getUint32(t,!0);let{A:r,B:o,C:i,D:s}=this;for(let e=0;e<64;e++){let t,c,d;e<16?(t=(0,n.Chi)(o,i,s),c=e,d=[7,12,17,22]):e<32?(t=(0,n.Chi)(s,o,i),c=(5*e+1)%16,d=[5,9,14,20]):e<48?(t=o^i^s,c=(3*e+5)%16,d=[4,11,16,23]):(t=i^(o|~s),c=7*e%16,d=[6,10,15,21]),t=t+r+u[e]+l[c],r=s,s=i,i=o,o+=(0,a.rotl)(t,d[e%4])}r=r+this.A|0,o=o+this.B|0,i=i+this.C|0,s=s+this.D|0,this.set(r,o,i,s)}roundClean(){(0,a.clean)(l)}destroy(){this.set(0,0,0,0),(0,a.clean)(this.buffer)}}t.MD5=d,t.md5=(0,a.createHasher)(()=>new d);let f=Uint8Array.from([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),p=Uint8Array.from(Array(16).fill(0).map((e,t)=>t)),b=p.map(e=>(9*e+5)%16),m=(()=>{let e=[[p],[b]];for(let t=0;t<4;t++)for(let r of e)r.push(r[t].map(e=>f[e]));return e})(),y=m[0],h=m[1],g=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(e=>Uint8Array.from(e)),v=y.map((e,t)=>e.map(e=>g[t][e])),E=h.map((e,t)=>e.map(e=>g[t][e])),x=Uint32Array.from([0,0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xa953fd4e]),w=Uint32Array.from([0x50a28be6,0x5c4dd124,0x6d703ef3,0x7a6d76e9,0]);function P(e,t,r,n){return 0===e?t^r^n:1===e?t&r|~t&n:2===e?(t|~r)^n:3===e?t&n|r&~n:t^(r|~n)}let I=new Uint32Array(16);class A extends n.HashMD{constructor(){super(64,20,8,!0),this.h0=0x67452301,this.h1=-0x10325477,this.h2=-0x67452302,this.h3=0x10325476,this.h4=-0x3c2d1e10}get(){let{h0:e,h1:t,h2:r,h3:n,h4:a}=this;return[e,t,r,n,a]}set(e,t,r,n,a){this.h0=0|e,this.h1=0|t,this.h2=0|r,this.h3=0|n,this.h4=0|a}process(e,t){for(let r=0;r<16;r++,t+=4)I[r]=e.getUint32(t,!0);let r=0|this.h0,n=r,o=0|this.h1,i=o,s=0|this.h2,u=s,c=0|this.h3,l=c,d=0|this.h4,f=d;for(let e=0;e<5;e++){let t=4-e,p=x[e],b=w[e],m=y[e],g=h[e],A=v[e],T=E[e];for(let t=0;t<16;t++){let n=(0,a.rotl)(r+P(e,o,s,c)+I[m[t]]+p,A[t])+d|0;r=d,d=c,c=0|(0,a.rotl)(s,10),s=o,o=n}for(let e=0;e<16;e++){let r=(0,a.rotl)(n+P(t,i,u,l)+I[g[e]]+b,T[e])+f|0;n=f,f=l,l=0|(0,a.rotl)(u,10),u=i,i=r}}this.set(this.h1+s+l|0,this.h2+c+f|0,this.h3+d+n|0,this.h4+r+i|0,this.h0+o+u|0)}roundClean(){(0,a.clean)(I)}destroy(){this.destroyed=!0,(0,a.clean)(this.buffer),this.set(0,0,0,0,0)}}t.RIPEMD160=A,t.ripemd160=(0,a.createHasher)(()=>new A)},91663:(e,t)=>{async function r(e,t){await e.request({method:`${e.mode}_setLoggingEnabled`,params:[t]})}
10Object.defineProperty(t,"__esModule",{value:!0}),t.setLoggingEnabled=r},92753:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.checksum=void 0,t.clear=function(){for(let e of Object.values(n))e.clear()};let n={checksum:new(r(57509)).LruMap(8192)};t.checksum=n.checksum},92918:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.increaseTime=a;let n=r(37264);async function a(e,{seconds:t}){return await e.request({method:"evm_increaseTime",params:[(0,n.numberToHex)(t)]})}},93003:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.signTypedData=i;let n=r(25055),a=r(43473),o=r(91024);async function i(e,t){let{account:r=e.account,domain:i,message:s,primaryType:u}=t;if(!r)throw new a.AccountNotFoundError({docsPath:"/docs/actions/wallet/signTypedData"});let c=(0,n.parseAccount)(r),l={EIP712Domain:(0,o.getTypesForEIP712Domain)({domain:i}),...t.types};if((0,o.validateTypedData)({domain:i,message:s,primaryType:u,types:l}),c.signTypedData)return c.signTypedData({domain:i,message:s,primaryType:u,types:l});
10let d=(0,o.serializeTypedData)({domain:i,message:s,primaryType:u,types:l});return e.request({method:"eth_signTypedData_v4",params:[c.address,d]},{retryCount:0})}},93328:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.extractChain=function({chains:e,id:t}){return e.find(e=>e.id===t)}},94527:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionCount=o;let n=r(85319),a=r(37264);async function o(e,{address:t,blockTag:r="latest",blockNumber:i}){let s=await e.request({method:"eth_getTransactionCount",params:[t,"bigint"==typeof i?(0,a.numberToHex)(i):r]},{dedupe:!!i});return(0,n.hexToNumber)(s)}},95080:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.signMessage=i;let n=r(25055),a=r(43473),o=r(37264);async function i(e,{account:t=e.account,message:r}){if(!t)throw new a.AccountNotFoundError({docsPath:"/docs/actions/wallet/signMessage"});let s=(0,n.parseAccount)(t);if(s.signMessage)return s.signMessage({message:r});let u="string"==typeof r?(0,o.stringToHex)(r):r.raw instanceof Uint8Array?(0,o.toHex)(r.raw):r.raw;return e.request({method:"personal_sign",params:[u,s.address]},{retryCount:0})}},95215:(e,t)=>{async function r(e,{address:t}){await e.request({method:`${e.mode}_impersonateAccount`,params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.impersonateAccount=r},95295:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=function(e,t){let r=(0,n.ripemd160)((0,a.isHex)(e,{strict:!1})?(0,o.toBytes)(e):e);return"bytes"===(t||"hex")?r:(0,i.toHex)(r)};let n=r(34890),a=r(10858),o=r(96978),i=r(37264)},95664:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnsupportedPackedAbiType=t.InvalidDefinitionTypeError=t.InvalidArrayError=t.InvalidAbiDecodingTypeError=t.InvalidAbiEncodingTypeError=t.DecodeLogTopicsMismatch=t.DecodeLogDataMismatch=t.BytesSizeMismatchError=t.AbiItemAmbiguityError=t.AbiFunctionSignatureNotFoundError=t.AbiFunctionOutputsNotFoundError=t.AbiFunctionNotFoundError=t.AbiEventNotFoundError=t.AbiEventSignatureNotFoundError=t.AbiEventSignatureEmptyTopicsError=t.AbiErrorSignatureNotFoundError=t.AbiErrorNotFoundError=t.AbiErrorInputsNotFoundError=t.AbiEncodingLengthMismatchError=t.AbiEncodingBytesSizeMismatchError=t.AbiEncodingArrayLengthMismatchError=t.AbiDecodingZeroDataError=t.AbiDecodingDataSizeTooSmallError=t.AbiDecodingDataSizeInvalidError=t.AbiConstructorParamsNotFoundError=t.AbiConstructorNotFoundError=void 0;let n=r(8117),a=r(27420),o=r(33911);class i extends o.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"})}}t.AbiConstructorNotFoundError=i;class s extends o.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"})}}t.AbiConstructorParamsNotFoundError=s;class u extends o.BaseError{constructor({data:e,size:t}){super(`Data size of ${t}
10 bytes is invalid. 11Size must be in increments of 32 bytes (size % 32 === 0).`,{metaMessages:[`Data: ${e} (${t} bytes)`],name:"AbiDecodingDataSizeInvalidError"})}}t.AbiDecodingDataSizeInvalidError=u;class c extends o.BaseError{constructor({data:e,params:t,size:r}){super(`Data size of ${r} bytes is too small for given parameters.`,{metaMessages:[`Params: (${(0,n.formatAbiParams)(t,{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=t,this.size=r}}t.AbiDecodingDataSizeTooSmallError=c;class l extends o.BaseError{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}t.AbiDecodingZeroDataError=l;class d extends o.BaseError{constructor({expectedLength:e,givenLength:t,type:r}){super(`ABI encoding array length mismatch for type ${r}. 12Expected length: ${e} 13Given length: ${t}`,{name:"AbiEncodingArrayLengthMismatchError"})}}t.AbiEncodingArrayLengthMismatchError=d;class f extends o.BaseError{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${(0,a.size)(t)}) does not match expected size (bytes${e}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}t.AbiEncodingBytesSizeMismatchError=f;class p extends o.BaseError{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding params/values length mismatch. 14Expected length (params): ${e} 15Given length (values): ${t}`,{name:"AbiEncodingLengthMismatchError"})}}t.AbiEncodingLengthMismatchError=p;class b extends o.BaseError{constructor(e,{docsPath:t}){super(`Arguments (\`args\`) were provided to "${e}", but "${e}" on the ABI does not contain any parameters (\`inputs\`). 16Cannot encode error result without knowing what the parameter types are. 17Make sure you are using the correct ABI and that the inputs exist on it.`,{docsPath:t,name:"AbiErrorInputsNotFoundError"})}}t.AbiErrorInputsNotFoundError=b;class m extends o.BaseError{constructor(e,{docsPath:t}={}){super(`Error ${e?`"${e}" `:""}not found on ABI. 18Make sure you are using the correct ABI and that the error exists on it.`,{docsPath:t,name:"AbiErrorNotFoundError"})}}t.AbiErrorNotFoundError=m;class y extends o.BaseError{constructor(e,{docsPath:t}){super(`Encoded error signature "${e}" not found on ABI. 19Make sure you are using the correct ABI and that the error exists on it. 20You can look up the decoded signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t,name:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}t.AbiErrorSignatureNotFoundError=y;class h extends o.BaseError{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e,name:"AbiEventSignatureEmptyTopicsError"})}}t.AbiEventSignatureEmptyTopicsError=h;class g extends o.BaseError{constructor(e,{docsPath:t}){super(`Encoded event signature "${e}" not found on ABI. 21Make sure you are using the correct ABI and that the event exists on it. 22You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t,name:"AbiEventSignatureNotFoundError"})}}t.AbiEventSignatureNotFoundError=g;class v extends o.BaseError{constructor(e,{docsPath:t}={}){super(`Event ${e?`"${e}" `:""}not found on ABI. 23Make sure you are using the correct ABI and that the event exists on it.`,{docsPath:t,name:"AbiEventNotFoundError"})}}t.AbiEventNotFoundError=v;class E extends o.BaseError{constructor(e,{docsPath:t}={}){super(`Function ${e?`"${e}" `:""}not found on ABI. 24Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionNotFoundError"})}}t.AbiFunctionNotFoundError=E;class x extends o.BaseError{constructor(e,{docsPath:t}){super(`Function "${e}" does not contain any \`outputs\` on ABI. 25Cannot decode function result without knowing what the parameter types are. 26Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionOutputsNotFoundError"})}}t.AbiFunctionOutputsNotFoundError=x;class w extends o.BaseError{constructor(e,{docsPath:t}){super(`Encoded function signature "${e}" not found on ABI. 27Make sure you are using the correct ABI and that the function exists on it. 28You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t,name:"AbiFunctionSignatureNotFoundError"})}}t.AbiFunctionSignatureNotFoundError=w;class P extends o.BaseError{constructor(e,t){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}
28\` in \`${(0,n.formatAbiItem)(e.abiItem)}\`, and`,`\`${t.type}\` in \`${(0,n.formatAbiItem)(t.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}t.AbiItemAmbiguityError=P;class I extends o.BaseError{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`,{name:"BytesSizeMismatchError"})}}t.BytesSizeMismatchError=I;class A extends o.BaseError{constructor({abiItem:e,data:t,params:r,size:a}){super(`Data size of ${a} bytes is too small for non-indexed event parameters.`,{metaMessages:[`Params: (${(0,n.formatAbiParams)(r,{includeName:!0})})`,`Data: ${t} (${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=t,this.params=r,this.size=a}}t.DecodeLogDataMismatch=A;class T extends o.BaseError{constructor({abiItem:e,param:t}){super(`Expected a topic for indexed event parameter${t.name?` "${t.name}"`:""} on event "${(0,n.formatAbiItem)(e,{includeName:!0})}".`,{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}t.DecodeLogTopicsMismatch=T;class O extends o.BaseError{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid encoding type. 29Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiEncodingType"})}}t.InvalidAbiEncodingTypeError=O;class B extends o.BaseError{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid decoding type. 30Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiDecodingType"})}}t.InvalidAbiDecodingTypeError=B;class S extends o.BaseError{constructor(e){super(`Value "${e}" is not a valid array.`,{name:"InvalidArrayError"})}}t.InvalidArrayError=S;class j extends o.BaseError{constructor(e){super(`"${e}" is not a valid definition type. 31Valid types: "function", "event", "error"`,{name:"InvalidDefinitionTypeError"})}}t.InvalidDefinitionTypeError=j;class _ extends o.BaseError{constructor(e){super(`Type "${e}" is not supported for packed encoding.`,{name:"UnsupportedPackedAbiType"})}}t.UnsupportedPackedAbiType=_},96065:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.encodePacked=function(e,t){if(e.length!==t.length)throw new n.AbiEncodingLengthMismatchError({expectedLength:e.length,givenLength:t.length});let r=[];for(let l=0;l<e.length;l++){let d=e[l],f=t[l];r.push(function e(t,r,l=!1){if("address"===t){if(!(0,o.isAddress)(r))throw new a.InvalidAddressError({address:r});return(0,s.pad)(r.toLowerCase(),{size:l?32:null})}if("string"===t)return(0,u.stringToHex)(r);if("bytes"===t)return r;if("bool"===t)return(0,s.pad)((0,u.boolToHex)(r),{size:l?32:1});let d=t.match(c.integerRegex);if(d){let[e,t,n="256"]=d,a=Number.parseInt(n,10)/8;return(0,u.numberToHex)(r,{size:l?32:a,signed:"int"===t})}let f=t.match(c.bytesRegex);if(f){let[e,t]=f;if(Number.parseInt(t,10)!==(r.length-2)/2)throw new n.BytesSizeMismatchError({expectedSize:Number.parseInt(t,10),givenSize:(r.length-2)/2});return(0,s.pad)(r,{dir:"right",size:l?32:null})}let p=t.match(c.arrayRegex);if(p&&Array.isArray(r)){let[t,n]=p,a=[];for(let t=0;t<r.length;t++)a.push(e(n,r[t],!0));return 0===a.length?"0x":(0,i.concatHex)(a)}throw new n.UnsupportedPackedAbiType(t)}(d,f))}return(0,i.concatHex)(r)};let n=r(95664),a=r(47730),o=r(1199),i=r(78917),s=r(29822),u=r(37264),c=r(32187)},96141:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.SHA224=t.sha256=t.SHA256=void 0;let n=r(25818);t.SHA256=n.SHA256,t.sha256=n.sha256,t.SHA224=n.SHA224,t.sha224=n.sha224},96189:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidVersionedHashVersionError=t.InvalidVersionedHashSizeError=t.EmptyBlobError=t.BlobSizeTooLargeError=void 0;let n=r(890),a=r(33911);class o extends a.BaseError{constructor({maxSize:e,size:t}){super("Blob size is too large.",{metaMessages:[`Max: ${e} bytes`,`Given: ${t} bytes`],name:"BlobSizeTooLargeError"})}}t.BlobSizeTooLargeError=o;class i extends a.BaseError{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}t.EmptyBlobError=i;class s extends a.BaseError{constructor({hash:e,size:t}){super(`Versioned hash "${e}
31" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${t}`],name:"InvalidVersionedHashSizeError"})}}t.InvalidVersionedHashSizeError=s;class u extends a.BaseError{constructor({hash:e,version:t}){super(`Versioned hash "${e}" version is invalid.`,{metaMessages:[`Expected: ${n.versionedHashVersionKzg}`,`Received: ${t}`],name:"InvalidVersionedHashVersionError"})}}t.InvalidVersionedHashVersionError=u},96405:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getCapabilities=o;let n=r(25055),a=r(37264);async function o(e,t={}){let{account:r=e.account,chainId:i}=t,s=r?(0,n.parseAccount)(r):void 0,u=i?[s?.address,[(0,a.numberToHex)(i)]]:[s?.address],c=await e.request({method:"wallet_getCapabilities",params:u}),l={};for(let[e,t]of Object.entries(c))for(let[r,n]of(l[Number(e)]={},Object.entries(t)))"addSubAccount"===r&&(r="unstable_addSubAccount"),l[Number(e)][r]=n;return"number"==typeof i?l[i]:l}},96573:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toFunctionSelector=void 0;let n=r(25109),a=r(18786);t.toFunctionSelector=e=>(0,n.slice)((0,a.toSignatureHash)(e),0,4)},96704:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.verifyAuthorization=i;let n=r(43333),a=r(29609),o=r(3053);async function i({address:e,authorization:t,signature:r}){return(0,a.isAddressEqual)((0,n.getAddress)(e),await (0,o.recoverAuthorizationAddress)({authorization:t,signature:r}))}},96943:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.serializeTransaction=function(e,t){let r=(0,b.getTransactionType)(e);return"eip1559"===r?function(e,t){let{chainId:r,gas:n,nonce:a,to:o,value:i,maxFeePerGas:s,maxPriorityFeePerGas:u,accessList:l,data:b}=e;(0,p.assertTransactionEIP1559)(e);let h=(0,m.serializeAccessList)(l),g=[(0,d.numberToHex)(r),a?(0,d.numberToHex)(a):"0x",u?(0,d.numberToHex)(u):"0x",s?(0,d.numberToHex)(s):"0x",n?(0,d.numberToHex)(n):"0x",o??"0x",i?(0,d.numberToHex)(i):"0x",b??"0x",h,...y(e,t)];return(0,c.concatHex)(["0x02",(0,f.toRlp)(g)])}(e,t):"eip2930"===r?function(e,t){let{chainId:r,gas:n,data:a,nonce:o,to:i,value:s,accessList:u,gasPrice:l}=e;(0,p.assertTransactionEIP2930)(e);let b=(0,m.serializeAccessList)(u),h=[(0,d.numberToHex)(r),o?(0,d.numberToHex)(o):"0x",l?(0,d.numberToHex)(l):"0x",n?(0,d.numberToHex)(n):"0x",i??"0x",s?(0,d.numberToHex)(s):"0x",a??"0x",b,...y(e,t)];return(0,c.concatHex)(["0x01",(0,f.toRlp)(h)])}(e,t):"eip4844"===r?function(e,t){let{chainId:r,gas:n,nonce:a,to:l,value:b,maxFeePerBlobGas:h,maxFeePerGas:g,maxPriorityFeePerGas:v,accessList:E,data:x}=e;(0,p.assertTransactionEIP4844)(e);let w=e.blobVersionedHashes,P=e.sidecars;if(e.blobs&&(void 0===w||void 0===P)){let t="string"==typeof e.blobs[0]?e.blobs:e.blobs.map(e=>(0,d.bytesToHex)(e)),r=e.kzg,n=(0,o.blobsToCommitments)({blobs:t,kzg:r});if(void 0===w&&(w=(0,s.commitmentsToVersionedHashes)({commitments:n})),void 0===P){let e=(0,i.blobsToProofs)({blobs:t,commitments:n,kzg:r});P=(0,u.toBlobSidecars)({blobs:t,commitments:n,proofs:e})}}let I=(0,m.serializeAccessList)(E),A=[(0,d.numberToHex)(r),a?(0,d.numberToHex)(a):"0x",v?(0,d.numberToHex)(v):"0x",g?(0,d.numberToHex)(g):"0x",n?(0,d.numberToHex)(n):"0x",l??"0x",b?(0,d.numberToHex)(b):"0x",x??"0x",I,h?(0,d.numberToHex)(h):"0x",w??[],...y(e,t)],T=[],O=[],B=[];if(P)for(let e=0;e<P.length;e++){let{blob:t,commitment:r,proof:n}=P[e];T.push(t),O.push(r),B.push(n)}return(0,c.concatHex)(["0x03",P?(0,f.toRlp)([A,T,O,B]):(0,f.toRlp)(A)])}(e,t):"eip7702"===r?function(e,t){let{authorizationList:r,chainId:n,gas:o,nonce:i,to:s,value:u,maxFeePerGas:l,maxPriorityFeePerGas:b,accessList:h,data:g}=e;(0,p.assertTransactionEIP7702)(e);let v=(0,m.serializeAccessList)(h),E=(0,a.serializeAuthorizationList)(r);return(0,c.concatHex)(["0x04",(0,f.toRlp)([(0,d.numberToHex)(n),i?(0,d.numberToHex)(i):"0x",b?(0,d.numberToHex)(b):"0x",l?(0,d.numberToHex)(l):"0x",o?(0,d.numberToHex)(o):"0x",s??"0x",u?(0,d.numberToHex)(u):"0x",g??"0x",v,E,...y(e,t)])])}(e,t):function(e,t){let{chainId:r=0,gas:a,data:o,nonce:i,to:s,value:u,gasPrice:c}=e;(0,p.assertTransactionLegacy)(e);let b=[i?(0,d.numberToHex)(i):"0x",c?(0,d.numberToHex)(c):"0x",a?(0,d.numberToHex)(a):"0x",s??"0x",u?(0,d.numberToHex)(u):"0x",o??"0x"];if(t){let e=(()=>
31{if(t.v>=35n)return(t.v-35n)/2n>0?t.v:27n+(35n===t.v?0n:1n);if(r>0)return BigInt(2*r)+BigInt(35n+t.v-27n);let e=27n+(27n===t.v?0n:1n);if(t.v!==e)throw new n.InvalidLegacyVError({v:t.v});return e})(),a=(0,l.trim)(t.r),o=(0,l.trim)(t.s);b=[...b,(0,d.numberToHex)(e),"0x00"===a?"0x":a,"0x00"===o?"0x":o]}else r>0&&(b=[...b,(0,d.numberToHex)(r),"0x","0x"]);return(0,f.toRlp)(b)}(e,t)},t.toYParitySignatureArray=y;let n=r(2922),a=r(78913),o=r(49817),i=r(6110),s=r(89052),u=r(88062),c=r(78917),l=r(24141),d=r(37264),f=r(6007),p=r(88465),b=r(40513),m=r(43415);function y(e,t){let r=t??e,{v:n,yParity:a}=r;if(void 0===r.r||void 0===r.s||void 0===n&&void 0===a)return[];let o=(0,l.trim)(r.r),i=(0,l.trim)(r.s);return["number"==typeof a?a?(0,d.numberToHex)(1):"0x":0n===n?"0x":1n===n?(0,d.numberToHex)(1):27n===n?"0x":(0,d.numberToHex)(1),"0x00"===o?"0x":o,"0x00"===i?"0x":i]}},96978:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toBytes=function(e,t={}){return"number"==typeof e||"bigint"==typeof e?f(e,t):"boolean"==typeof e?c(e,t):(0,a.isHex)(e)?d(e,t):p(e,t)},t.boolToBytes=c,t.hexToBytes=d,t.numberToBytes=f,t.stringToBytes=p;let n=r(33911),a=r(10858),o=r(29822),i=r(85319),s=r(37264),u=new TextEncoder;function c(e,t={}){let r=new Uint8Array(1);return(r[0]=Number(e),"number"==typeof t.size)?((0,i.assertSize)(r,{size:t.size}),(0,o.pad)(r,{size:t.size})):r}function l(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:void 0}function d(e,t={}){let r=e;t.size&&((0,i.assertSize)(r,{size:t.size}),r=(0,o.pad)(r,{dir:"right",size:t.size}));let a=r.slice(2);a.length%2&&(a=`0${a}`);let s=a.length/2,u=new Uint8Array(s);for(let e=0,t=0;e<s;e++){let r=l(a.charCodeAt(t++)),o=l(a.charCodeAt(t++));if(void 0===r||void 0===o)throw new n.BaseError(`Invalid byte sequence ("${a[t-2]}${a[t-1]}" in "${a}").`);u[e]=16*r+o}return u}function f(e,t){return d((0,s.numberToHex)(e,t))}function p(e,t={}){let r=u.encode(e);return"number"==typeof t.size?((0,i.assertSize)(r,{size:t.size}),(0,o.pad)(r,{dir:"right",size:t.size})):r}},97428:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.decode=function(...e){let[t,r]=(()=>{if(Array.isArray(e[0])){let[t,r]=e;return[s(t),r]}return e})(),{bytecode:n}=r;if(0===t.inputs.length)return;let a=r.data.replace(n,"0x");return o.decode(t.inputs,a)},t.encode=function(...e){let[t,r]=(()=>{if(Array.isArray(e[0])){let[t,r]=e;return[s(t),r]}return e})(),{bytecode:n,args:a}=r;return i.concat(n,t.inputs?.length&&a?.length?o.encode(t.inputs,a):"0x")},t.format=function(e){return n.formatAbiItem(e)},t.from=function(e){return a.from(e)},t.fromAbi=s;let n=r(54145),a=r(43299),o=r(40564),i=r(58515);function s(e){let t=e.find(e=>"constructor"===e.type);if(!t)throw new a.NotFoundError({name:"constructor"});return t}},97550:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.validateSiweMessage=function(e){let{address:t,domain:r,message:o,nonce:i,scheme:s,time:u=new Date}=e;if(r&&o.domain!==r||i&&o.nonce!==i||s&&o.scheme!==s||o.expirationTime&&u>=o.expirationTime||o.notBefore&&u<o.notBefore)return!1;try{if(!o.address||!(0,n.isAddress)(o.address,{strict:!1})||t&&!(0,a.isAddressEqual)(o.address,t))return!1}catch{return!1}return!0};let n=r(1199),a=r(29609)},97624:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.recoverMessageAddress=o;let n=r(9534),a=r(50807);async function o({message:e,signature:t}){return(0,a.recoverAddress)({hash:(0,n.hashMessage)(e),signature:t})}},97898:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),r(79629)},98048:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.assertRequest=function(e){let{account:t,gasPrice:r,maxFeePerGas:c,maxPriorityFeePerGas:l,to:d}=e,f=t?(0,n.parseAccount)(t):void 0;if(f&&!(0,u.isAddress)(f.address))throw new o.InvalidAddressError({address:f.address});if(d&&!(0,u.isAddress)(d))throw new o.InvalidAddressError({address:d});if(void 0!==r&&(void 0!==c||void 0!==l))throw new s.FeeConflictError;if(c&&c>a.maxUint256)throw new i.FeeCapTooHighError({maxFeePerGas:c});if(l&&c&&l>c)throw new i.TipAboveFeeCapError({maxFeePerGas:c,maxPriorityFeePerGas:l})};let n=r(25055),a=r(84373),o=r(47730),i=r(35342),s=r(2922),u=r(1199)},98190:(e,t)=>
31{Object.defineProperty(t,"__esModule",{value:!0}),t.defineKzg=function({blobToKzgCommitment:e,computeBlobKzgProof:t}){return{blobToKzgCommitment:e,computeBlobKzgProof:t}}},98274:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.weiUnits=t.gweiUnits=t.etherUnits=void 0,t.etherUnits={gwei:9,wei:18},t.gweiUnits={ether:-9,wei:9},t.weiUnits={ether:-18,gwei:-9}},98379:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.recoverPublicKey=s;let n=r(10858),a=r(27420),o=r(85319),i=r(37264);async function s({hash:e,signature:t}){let c=(0,n.isHex)(e)?e:(0,i.toHex)(e),{secp256k1:l}=await Promise.resolve().then(()=>r(26414)),d=(()=>{if("object"==typeof t&&"r"in t&&"s"in t){let{r:e,s:r,v:n,yParity:a}=t,i=u(Number(a??n));return new l.Signature((0,o.hexToBigInt)(e),(0,o.hexToBigInt)(r)).addRecoveryBit(i)}let e=(0,n.isHex)(t)?t:(0,i.toHex)(t);if(65!==(0,a.size)(e))throw Error("invalid signature length");let r=u((0,o.hexToNumber)(`0x${e.slice(130)}`));return l.Signature.fromCompact(e.substring(2,130)).addRecoveryBit(r)})().recoverPublicKey(c.substring(2)).toHex(!1);return`0x${d}`}function u(e){if(0===e||1===e)return e;if(27===e)return 0;if(28===e)return 1;throw Error("Invalid yParityOrV value")}},98453:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setMinGasPrice=a;let n=r(37264);async function a(e,{gasPrice:t}){await e.request({method:`${e.mode}_setMinGasPrice`,params:[(0,n.numberToHex)(t)]})}},98589:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.hashTypedData=function(e){let{domain:t={},message:r,primaryType:n}=e,o={EIP712Domain:(0,s.getTypesForEIP712Domain)({domain:t}),...e.types};(0,s.validateTypedData)({domain:t,message:r,primaryType:n,types:o});let l=["0x1901"];return t&&l.push(u({domain:t,types:o})),"EIP712Domain"!==n&&l.push(c({data:r,primaryType:n,types:o})),(0,i.keccak256)((0,a.concat)(l))},t.hashDomain=u,t.hashStruct=c,t.encodeType=l;let n=r(70209),a=r(78917),o=r(37264),i=r(60976),s=r(91024);function u({domain:e,types:t}){return c({data:e,primaryType:"EIP712Domain",types:t})}function c({data:e,primaryType:t,types:r}){let a=function e({data:t,primaryType:r,types:a}){let s=[{type:"bytes32"}],u=[function({primaryType:e,types:t}){let r=(0,o.toHex)(l({primaryType:e,types:t}));return(0,i.keccak256)(r)}({primaryType:r,types:a})];for(let c of a[r]){let[r,l]=function t({types:r,name:a,type:s,value:u}){if(void 0!==r[s])return[{type:"bytes32"},(0,i.keccak256)(e({data:u,primaryType:s,types:r}))];if("bytes"===s){let e=u.length%2?"0":"";return u=`0x${e+u.slice(2)}`,[{type:"bytes32"},(0,i.keccak256)(u)]}if("string"===s)return[{type:"bytes32"},(0,i.keccak256)((0,o.toHex)(u))];if(s.lastIndexOf("]")===s.length-1){let e=s.slice(0,s.lastIndexOf("[")),o=u.map(n=>t({name:a,type:e,types:r,value:n}));return[{type:"bytes32"},(0,i.keccak256)((0,n.encodeAbiParameters)(o.map(([e])=>e),o.map(([,e])=>e)))]}return[{type:s},u]}({types:a,name:c.name,type:c.type,value:t[c.name]});s.push(r),u.push(l)}return(0,n.encodeAbiParameters)(s,u)}({data:e,primaryType:t,types:r});return(0,i.keccak256)(a)}function l({primaryType:e,types:t}){let r="",n=function e({primaryType:t,types:r},n=new Set){let a=t.match(/^\w*/u),o=a?.[0];if(n.has(o)||void 0===r[o])return n;for(let t of(n.add(o),r[o]))e({primaryType:t.type,types:r},n);return n}({primaryType:e,types:t});for(let a of(n.delete(e),[e,...Array.from(n).sort()]))r+=`${a}(${t[a].map(({name:e,type:t})=>`${t} ${e}`).join(",")})`;return r}},98673:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createWalletClient=function(e){let{key:t="wallet",name:r="Wallet Client",transport:o}=e;return(0,n.createClient)({...e,key:t,name:r,transport:o,type:"walletClient"}).extend(a.walletActions)};let n=r(8436),a=r(87003)},98676:(e,t)=>{async function r(e,{state:t}){await e.request({method:`${e.mode}_loadState`,params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.loadState=r},99076:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.call=P,t.getRevertErrorData=T;let n=r(54145),a=r(40668),o=r(25055),i=r(5223),s=r(85102),u=r(58527),c=r(33911),l=r(10131),d=r(81660),f=r(84212),p=r(45866),b=r(63997),m=r(89007),y=r(37264),h=r(26798),g=r(84129),v=r(75621),E=r(9139),x=r(33525),w=r(98048);async function P(e,t){let{account:i=e.account,authorizationList:f,batch:b=!!e.batch?.multicall,blockNumber:m,blockTag:E=e.experimental_blockTag??"latest",accessList:P,blobs:O,blockOverrides:B,code:S,data:j,factory:_,factoryData:M,gas:C,gasPrice:R,maxFeePerBlobGas:k,maxFeePerGas:H,maxPriorityFeePerGas:N,nonce:F,to:U,value:z,stateOverride:L,...$}=t,D=i?(0,o.parseAccount)(i):void 0;if(S&&(_||M))throw new c.BaseError("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(S&&U)throw new c.BaseError("Cannot provide both `code` & `to` as parameters.");let q=S&&j,G=_&&M&&U&&j,V=q||G,W=q?A({code:S,data:j}):G?function(e){let{data:t,factory:r,factoryData:a,to:o}=e;return(0,p.encodeDeployData)({abi:(0,n.parseAbi)(["constructor(address, bytes, address, bytes)"]),bytecode:u.deploylessCallViaFactoryBytecode,args:[o,t,r,a]})}({data:j,factory:_,factoryData:M,to:U}
vendor: 2,422 bytes, line 31
31):j;try{let r;(0,w.assertRequest)(t);let n=("bigint"==typeof m?(0,y.numberToHex)(m):void 0)||E,o=B?a.toRpc(B):void 0,i=(0,x.serializeStateOverride)(L),u=e.chain?.formatters?.transactionRequest?.format,c=(u||v.formatTransactionRequest)({...(0,g.extract)($,{format:u}),from:D?.address,accessList:P,authorizationList:f,blobs:O,data:W,gas:C,gasPrice:R,maxFeePerBlobGas:k,maxFeePerGas:H,maxPriorityFeePerGas:N,nonce:F,to:V?void 0:U,value:z},"call");if(b&&function({request:e}){let{data:t,to:r,...n}=e;return!(!t||t.startsWith(s.aggregate3Signature))&&!!r&&!(Object.values(n).filter(e=>void 0!==e).length>0)}({request:c})&&!i&&!o)try{return await I(e,{...c,blockNumber:m,blockTag:E})}catch(e){if(!(e instanceof l.ClientChainNotConfiguredError)&&!(e instanceof l.ChainDoesNotSupportContract))throw e}let d=(r=[c,n],i&&o?[...r,i,o]:i?[...r,i]:o?[...r,{},o]:r),p=await e.request({method:"eth_call",params:d});if("0x"===p)return{data:void 0};return{data:p}}catch(i){let n=T(i),{offchainLookup:a,offchainLookupSignature:o}=await Promise.resolve().then(()=>r(68463));if(!1!==e.ccipRead&&n?.slice(0,10)===o&&U)return{data:await a(e,{data:n,to:U})};if(V&&n?.slice(0,10)==="0x101bb98d")throw new d.CounterfactualDeploymentFailedError({factory:_});throw(0,h.getCallError)(i,{...t,account:D,chain:e.chain})}}async function I(e,t){let{batchSize:r=1024,deployless:n=!1,wait:a=0}="object"==typeof e.batch?.multicall?e.batch.multicall:{},{blockNumber:o,blockTag:s=e.experimental_blockTag??"latest",data:c,to:p}=t,h=(()=>{if(n)return null;if(t.multicallAddress)return t.multicallAddress;if(e.chain)return(0,m.getChainContractAddress)({blockNumber:o,chain:e.chain,contract:"multicall3"});throw new l.ClientChainNotConfiguredError})(),g=("bigint"==typeof o?(0,y.numberToHex)(o):void 0)||s,{schedule:v}=(0,E.createBatchScheduler)({id:`${e.uid}.${g}`,wait:a,shouldSplitBatch:e=>e.reduce((e,{data:t})=>e+(t.length-2),0)>2*r,fn:async t=>{let r=t.map(e=>({allowFailure:!0,callData:e.data,target:e.to})),n=(0,b.encodeFunctionData)({abi:i.multicall3Abi,args:[r],functionName:"aggregate3"}),a=await e.request({method:"eth_call",params:[{...null===h?{data:A({code:u.multicall3Bytecode,data:n})}:{to:h,data:n}},g]});return(0,f.decodeFunctionResult)({abi:i.multicall3Abi,args:[r],functionName:"aggregate3",data:a||"0x"})}}),[{returnData:x,success:w}]=await v({data:c,to:p});if(!w)throw new d.RawContractError({data:x});return"0x"===x?{data:void 0}:{data:x}}
31function A(e){let{code:t,data:r}=e;return(0,p.encodeDeployData)({abi:(0,n.parseAbi)(["constructor(bytes, bytes)"]),bytecode:u.deploylessCallViaBytecodeBytecode,args:[t,r]})}function T(e){if(!(e instanceof c.BaseError))return;let t=e.walk();return"object"==typeof t?.data?t.data?.data:t.data}},99280:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getEnsText=b;let n=r(5223),a=r(84212),o=r(63997),i=r(89007),s=r(37264),u=r(73062),c=r(44247),l=r(80278),d=r(72831),f=r(78234),p=r(36110);async function b(e,t){let{blockNumber:r,blockTag:b,key:m,name:y,gatewayUrls:h,strict:g}=t,{chain:v}=e,E=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!v)throw Error("client chain not configured. universalResolverAddress is required.");return(0,i.getChainContractAddress)({blockNumber:r,chain:v,contract:"ensUniversalResolver"})})(),x=v?.ensTlds;if(x&&!x.some(e=>y.endsWith(e)))return null;try{let t={address:E,abi:n.universalResolverResolveAbi,args:[(0,s.toHex)((0,d.packetToBytes)(y)),(0,o.encodeFunctionData)({abi:n.textResolverAbi,functionName:"text",args:[(0,l.namehash)(y),m]}),h??[c.localBatchGatewayUrl]],functionName:"resolveWithGateways",blockNumber:r,blockTag:b},i=(0,f.getAction)(e,p.readContract,"readContract"),u=await i(t);if("0x"===u[0])return null;let g=(0,a.decodeFunctionResult)({abi:n.textResolverAbi,functionName:"text",data:u[0]});return""===g?null:g}catch(e){if(g)throw e;if((0,u.isNullUniversalResolverError)(e))return null;throw e}}},99312:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getBalance=a;let n=r(37264);async function a(e,{address:t,blockNumber:r,blockTag:o=e.experimental_blockTag??"latest"}){let i="bigint"==typeof r?(0,n.numberToHex)(r):void 0;return BigInt(await e.request({method:"eth_getBalance",params:[t,i||o]}))}},99361:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EstimateGasExecutionError=void 0;let n=r(36276),a=r(88524),o=r(33911),i=r(2922);class s extends o.BaseError{constructor(e,{account:t,docsPath:r,chain:o,data:s,gas:u,gasPrice:c,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:f,to:p,value:b}){const m=(0,i.prettyPrint)({from:t?.address,to:p,value:void 0!==b&&`${(0,n.formatEther)(b)} ${o?.nativeCurrency?.symbol||"ETH"}`,data:s,gas:u,gasPrice:void 0!==c&&`${(0,a.formatGwei)(c)} gwei`,maxFeePerGas:void 0!==l&&`${(0,a.formatGwei)(l)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,a.formatGwei)(d)} gwei`,nonce:f});super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",m].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}t.EstimateGasExecutionError=s}}]);
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.